Fix filename on CMakeLists.txt

Fixed filename common.c to common.cc.
I got the following error on Windows 10 with Visual Studio 16 2019.
CMake Error at CMakeLists.txt:63 (add_library):
  Cannot find source file:

    common.c

  Tried extensions .c .C .c++ .cc .cpp .cxx .cu .mpp .m .M .mm .ixx .cppm .h
  .hh .h++ .hm .hpp .hxx .in .txx .f .F .for .f77 .f90 .f95 .f03 .hip .ispc

I executed the next command got from https://www.tensorflow.org/lite/guide/build_cmake?hl=en.
cmake -G "Visual Studio 16 2019" ..\tensorflow\tensorflow\lite\c\

Hi @rabbitfoot530 This PR is duplicate of PR#54566. Hence closing this. Thank you!


Cannot boot AIX, won't load to BIOS on 40p PPC machine

When attempting to boot into AIX 5.1, I can only get 'Guest has not initalized the display", even after adding in the bios image.
AIX.utm.zip

Heres a link to the tutorial i was attempting to do https://astr0baby.wordpress.com/2019/04/26/running-aix-5-1-on-qemu-system-ppc/

You are refering to a tutorial which uses a feature branch of an older version of QEMU created by a developer "Artyom Tarasenko" (your tutorial is based on this tutorial: https://virtuallyfun.com/2019/04/22/installing-aix-on-qemu/ )
AIX 5.1 has never been upstreamed by him and is still not officially supported by the QEMU team


Scroll bar on the home screen looks out of place.

@rudrakshi99 @todi-2000 @Shruti3004
I have implemented what I said in the issue. I can provide screen shots of the same if asked to do so.
Kindly merge the PR if it seems fine, and guide me for further contributions.


feat: return bytesOfPadding

Spun out of https://github.com/celestiaorg/celestia-app/pull/781
In https://github.com/celestiaorg/celestia-app/pull/781 , there is a need to calculate the total data length written to a compact share splitter so that a varint of this data length can be written to the first share. It becomes easier to perform this calculation if the utility function zeroPadIfNecessary returns the bytesOfPadding because the export command can subtract the bytesOfPadding from the number of bytes used by all shares in the compact share splitter.
Without this change, it may be possible to calculate the # of bytes written by summing the # of bytes written to shares and the number of bytes in the pending share prior to adding padding to the pending share but this option includes more edge cases.

Codecov Report

Merging #810 (3256561) into main (3dcce79) will not change coverage.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##             main     #810   +/-   ##
=======================================
  Coverage   23.29%   23.29%
=======================================
  Files          71       71
  Lines        8790     8790
=======================================
  Hits         2048     2048
  Misses       6570     6570
  Partials      172      172

Impacted Files
Coverage Δ

pkg/shares/parse_sparse_shares.go
80.00% <100.00%> (ø)

pkg/shares/split_compact_shares.go
84.24% <100.00%> (ø)

pkg/shares/split_sparse_shares.go
68.36% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

Sorry for not including a proper PR description initially. I updated the PR description above to provide more context.


avoid "white flash" after LaunchScreen

The RCTRootView shows for at least one frame its background Color (default white) before JS/React is ready. This is annoying. Special if you want to animate the Launchscreen after its gone in ReactNative (Something like the Twitter IOS App).
I think this will help, getting ReactNative apps Start more smoothly. I use it and it works, think i will help others
Greez Christoph

Rather than defaulting it in the template i think it's better to add this to documentation. Most small/mid size apps should not see any flash like this.
Using LaunchScreen.xib only works for ios 8+. Although RN now only supports ios 8+ its worth noting this.
There is loadingViewFadeDelay and loadingViewFadeDuration defaulting to 0.25 which could be a lot for small/mid size apps. Worth documenting them as well.

Where is the best place to write a Documentation for it?

imo best pace would be the guides section. There is a docs directory where all the docs go.
Something like this: https://facebook.github.io/react-native/releases/next/docs/integration-with-existing-apps.html

I've seen this issue a few times in the facebook group and I end up doing this in every project I work on so I'm kind of for adding this to the template. If we do I think we should add a few comment lines that explains what it does and the other options like loadingViewFadeDelay and loadingViewFadeDuration. I think comments like this in template files are always useful so people can decide to keep the code or not.

yeah. some comment around the template would be nice too. My only hope is that the user is making a concise choice when using this.

Also in favor of adding this to the template.

Can you explain what this does?  Line 27 already lets the developer specify the colour of the screen on startup.  Is that not sufficient?

what do you think about:
  // re-load the LaunchScreen to prevent white screen showing before your app renders
  // remove it, if you target IOS 7 or do not have a LaunchScreen
  UIView* launchScreen =  [[[NSBundle mainBundle] loadNibNamed:@"LaunchScreen" owner:self options:nil] objectAtIndex:0];
  launchScreen.frame = [UIScreen mainScreen].bounds;
  rootView.loadingView = launchScreen;
  rootView.loadingViewFadeDelay = 0.20;        // ajust time for your needs
  rootView.loadingViewFadeDuration = 0.20;     // ajust time for your needs

@shaneosullivan
it reloads the LaunchScreen which can contain an Image and Text, until React is ready for take over. There is no frame the Background is shown.
In my Example the React Native App comes with the same Image as the LaunchScreen and animates it (like the Twitter IOS App).
But the Background is important thought, because you can sometime see it if rotate the device. So the backgroundColor should fit to your app.

To understand how this changes things, it'd be useful to have a screencast of the before/after effect.  Would you mind recording one?

Screencasts..
screencasts.zip
(and yes the animation is not finished jet)

Looks good - what does a normal, non-animated RN app look like?  Is the white flash there too before your change?  Neither of my apps experience this - is it related to the fact that you're running an animation immediately?
Have you tried just setting the correct background colour for your app, without your changes here?  Did that resolve the issue too?

@shaneosullivan if you have change the background color (what i tried first) it is not that bad like the white, but you can still see it. In a app without that, you will see the Launchscreen a Frame or two longer, but not the background color.
So you can choose the background Color for your app, not the launch (e.g Rotating)

I suggest adding something like the following to your code in order to document why the change is needed:
  /**
   * The following lines ensure that your initial view is displayed while JavaScript is loading,,
   * so users aren't presented with a blank screen.
   * See also loadingViewFadeDelay and loadingViewFadeDuration.
   */

I'm curious as well to know how these changes affect apps that do not play an animation on load. What would happen in that case?

Hey. I just found this PR and have solved the same problem recently myself. In a slightly different way (this one seems simpler). Anyway I have before and after GIFs so you can see the difference. https://peterminarik.tumblr.com/post/153039209421/how-to-fix-the-initial-white-flash-in-your-react

It looks like this pull request has been abandoned so I am going to close it. If you are still interested in working on this please feel free to reopen it!


Fix tests so they delete any settings they add. Azure#8068

Deleted keys generated by below test methods
GetBatchSettingStartsWith
GetBatchSettingEndsWith
GetBatchSettingContains
GetBatchSettingsWithMultipleLabels

Can one of the admins verify this patch?

Hi and thanks for the contribution!
With the test change we also need to update the test recordings as the request we send will be different.
/cc @AlexanderSher @annelo-msft

Thanks @AlexGhiondea for the update. I have updated the PR with recordings change.
/cc @AlexanderSher  @annelo-msft

It looks like some of the special character configuration settings  "~`!@#$^&()_+=[]{}|;"'<>./--" still aren't being deleted.

@annelo-msft , i have updated the test records. So CI is passing now. Regarding the 'special characters', i have observed that its not working with Azure Portal as well. So it could have been the same case (the API is not deleting) while we send request to Azure API.
Azure Portal

@Prince269090, thanks for this investigation!
Would you be willing to file issues for the item's you've found?  If you have a consistent repro for the issue with the service, it would be great to file an issue in their repo: https://github.com/Azure/AppConfiguration/issues
For issues on the client side, please file an issue here and tag it with the AzConfig label, so we can follow these items through.
Thanks so much for all your help with this!

@annelo-msft , i have created issue in the repo. https://github.com/Azure/azure-sdk-for-net/issues/8624. Seems i don't have rights to add the 'AzConfig' label.
Also, issue added in another repo for azure key deletion. https://github.com/Azure/AppConfiguration/issues/181


List view: Add hyperlink on image

Add the hyperlink that is now on the glosses also to the image (without any marker like a blue line around the image). So don't remove it on the glosses! (both NGT and ASL)

Works now.

@Woseseltops , but not for ASL yet, does it? Could you add it there as well?

Done, the ASL signbank is up to date again! This took 2 hours or so, because somewhere in the process something went wrong, and I got the error 'unable to access database'. I tried everything to fix it, to the point where I started to panic a bit because I really tried EVERYTHING and it all seemed to be correctly set. In the end it turned out to be that the ASL signbank was pointing to the NGT settings file :( .

Can be closed?


[RFC] Extend memory management header with kind field

The notion of "builtin" types etc. was getting kind of unwieldy.
#16 attempted to clean that up, but @sedwards-lab suggested this alternate approach.
This PR also cuts out the reuse() function. Since we already use a segregated-fits allocator, deallocation followed by allocation effectively reuses the space. We may want to bring back reuse() for large objects, but cases where we can successfully reuse a large object without suffering internal fragmentation are fleeting.

Codecov Report

Merging #20 (e19d548) into dev (6209372) will decrease coverage by 1.28%.
The diff coverage is 41.66%.

@@            Coverage Diff             @@
##              dev      #20      +/-   ##
==========================================
- Coverage   70.98%   69.69%   -1.29%
==========================================
  Files           3        3
  Lines         224      231       +7
  Branches       59       54       -5
==========================================
+ Hits          159      161       +2
- Misses         45       54       +9
+ Partials       20       16       -4

Impacted Files
Coverage Δ

src/ssm-mem.c
54.87% <41.66%> (-2.46%)
:arrow_down:

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 6209372...e19d548. Read the comment docs.


etcd_debugging_mvcc_db_total_size_in_bytes is not equal with etcdctl command

Environment:
version
# etcdctl version
etcdctl version: 3.2.5
API version: 3.2

OS
$ uname -a
Linux i-F7D45611 3.10.0-327.el7.x86_64 #1 SMP Thu Oct 29 17:29:29 EDT 2015 x86_64 x86_64 x86_64 GNU/Linux
$ cat /etc/redhat-release
Red Hat Enterprise Linux Server release 7.2 (Maipo)

Issue
$  curl -s http://localhost:2379/metrics |grep etcd_debugging_mvcc_db_total_size_in_bytes
# HELP etcd_debugging_mvcc_db_total_size_in_bytes Total size of the underlying database in bytes.
# TYPE etcd_debugging_mvcc_db_total_size_in_bytes gauge
etcd_debugging_mvcc_db_total_size_in_bytes 1.88628992e+09

$ python -c "print float('1.88628992e+09')/(1024**3)"
1.75674438477

$ etcdctl endpoint status
<IP_ADDRESS>:2379, 44a2cb29846f3916, 3.2.5, 1.9 GB, true, 6, 5113277

the etcd_debugging_mvcc_db_total_size_in_bytes is  1.88628992e+09, it is 1.75G != 1.9G
but etcdctl print with field, looks it is same with etcd_debugging_mvcc_db_total_size_in_bytes
# etcdctl endpoint status -w fields |grep DBSize
"DBSize" :<PHONE_NUMBER>

GiB and GB are different things. I think you confused yourself.
one gibibyte | 1 GiB = 230 Byte = 1,073,741,824 Byte
one gigabyte | 1 GB = 109 Byte = 1,000,000,000 Byte
`


Move to lowest/locked/latest matrix

Switches to a test matrix that uses a composer.lock, and then uses:

composer update --prefer-lowest to test against the lowest supported dependnecies.
composer install to test against the known working dependencies.
composer update to test against the latest versions of all dependenies.

The hope is to determine whether or not tests fail for #23.

@stefanotorresi Another one you don't have to do. :smile:


I want to add a link related to the project for better understanding .

https://piyushsahu99.github.io/donorconnect/
here it is the link for readme file

which type of link?

Link for the app
On Wed, Oct 2, 2024, 3:42 PM Hetkumar Prajapati @.***>
wrote:

which type of link?
—
Reply to this email directly, view it on GitHub
https://github.com/prajapatihet/donorconnect/issues/7#issuecomment-2388259270,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/BFNL67XHPVE34ZK4XQSHIHDZZPBKXAVCNFSM6AAAAABPHKXED6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGOBYGI2TSMRXGA
.
You are receiving this because you authored the thread.Message ID:
@.***>

like App Screen designs?

To showcase how our project is working
On Wed, Oct 2, 2024, 3:55 PM Hetkumar Prajapati @.***>
wrote:

like App Screen designs?
—
Reply to this email directly, view it on GitHub
https://github.com/prajapatihet/donorconnect/issues/7#issuecomment-2388306022,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/BFNL67RFY4L3O3WX47434WDZZPC2XAVCNFSM6AAAAABPHKXED6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGOBYGMYDMMBSGI
.
You are receiving this because you authored the thread.Message ID:
@.***>

Can you please specify it more clear.
You want to add this link in app or in readme file if in readme file then which type of link?

pls aasign this task to me


Support new layout modules

Add support for new CSS layout modules and new display values like:
{
display: contents;
display: flex;
display: inline-flex;
display: grid;
display: inline-grid;
display: run-in;
}

Don’t forget the vendor-prefixed variations.

Can you provide a reduced test case for your usage?

Heh I was afraid you'd ask ;)
I'll give it a go but may take a little while to extract it from the project. I hope to update the ticket before tomorrow evening.


Not need going out from ZMode when push escape button on keyboard

Issue Type: Feature Request
I going ot ZMode by push Ctrl+K then Z.
Ok. I am in ZMode.
Then I working in Zmode working working.
And then I push ESC button on keyboard for some reasons. I can push many times ESC button - I think it normal. But if I push ESC to many times I am going out from ZMode.
That bad behavior.
VS Code version: Code 1.55.2 (3c4e3df9e89829dce27b7b5c24508306b151f30d, 2021-04-13T09:35:57.887Z)
OS version: Windows_NT x64 10.0.19041

Jackson now owns Zen mode thus forwarding to him.


Linux daemon script: "update-rc.d: error: identityserver Default-Start contains no runlevels, aborting."

when trying to use the sysVinit script from the documentation, it gives the error "update-rc.d: error: identityserver Default-Start contains no runlevels, aborting."  I was able to get it working by adding the following after the shebang:
### BEGIN INIT INFO
# Provides:          wso2is
# Required-Start:    $all
# Required-Stop:
# Default-Start:     2 3 4 5
# Default-Stop:
# Short-Description: starts the wso2 identity server
### END INIT INFO

Updated the basic startup script structure to include the suggested changes after shebang.
Did this change in doc versions 5.4.0 through 5.7.0.


Black Brick

Environment

OS: [Pop OS]
scrcpy version: [2.1.1]
installation method: [forgot]
device model: Samsung S21ultra
Android version: [latest?]

The device is stuck with a black screen.
Original command:
scrcpy  --turn-screen-off --no-audio --no-downsize-on-error --shortcut-mod=lalt --disable-screensaver  --tcpip=<device.ip>:5555

It worked fine.
CTRL+C in the terminal.
scrcpy 2.1.1 <https://github.com/Genymobile/scrcpy>
INFO: Connecting to device.ip:5555...

The device is still on. I connected it to a windows pc and it is being recognized.
How do i restore the screen functionality?
I can not connect to device via ip anymore
adb connect device.ip:5555
failed to connect to 'device.ip:5555': Connection refused

Looks that a bug in the device ROM (scrcpy just requests to change the power mode to turn the screen off and on, but the device system performs the action).

I can not connect to device via ip anymore

It looks like the system crashed then.
If pressing POWER to turn it off/on does not work, you should reboot.

The device is still on. I connected it to a windows pc and it is being recognized.

If you plug it over USB, is it detected by adb devices? If so, try to run scrcpy. Or execute adb reboot.
If it does not work, turn the power on by pressing POWER for 5 seconds, if it stlil does not work, press POWER for 30 seconds.

I think the device restarts with a black screen...
'''
adb devices

daemon not running; starting now at tcp:5037
daemon started successfully
List of devices attached
R5CR60XB4CV	device
'''
mod+o
mod+shift+o
still leaves the screen black
'''
scrcpy --shortcut-mod=lalt
scrcpy 2.1.1 https://github.com/Genymobile/scrcpy
INFO: ADB device found:
INFO:     -->   (usb)  R5CR60XB4CV                     device  SM_G998B
/usr/local/share/scrcpy/scrcpy-server: 1 file pushed. 5.4 MB/s (56995 bytes in 0.010s)
[server] INFO: Device: [samsung] samsung SM-G998B (Android 13)
INFO: Renderer: opengl
INFO: OpenGL version: 4.6.0 NVIDIA 535.104.05
INFO: Trilinear filtering enabled
INFO: Texture: 1080x2400
[server] INFO: Device screen turned off
[server] INFO: Device screen turned on
'''

Is it possible to boot up a phone without a functional screen and use it on the pc?

Oh, the screen is broken? So when you say "black screen", it's just in the mirroring window? (the physical device screen is black anyway, right?)

I have no idea if the screen is broken or not. I was working but when it stopped working I also dropped the phone and both problems occurred.
The physical device is black.
I managed to open the emergency menu while streaming to the pc but I can't enter pin or open stuff since it goes black

OK, so if the mirroring is black, it's due to views with "secure flag" that cannot be mirrored since Android 12 (#36 #2129).
I guess your lock screen has this "secure flag" enabled.

Ok. Thanks for the support.
I assume there is no way the app can hold my screen hostage even after a reboot right?
Triggering  mod+o should turn the screen on if it would work right?
You think I can conclude that the fall damaged the screen somehow,
its just weird that it went black and nothing is happening,
have not seen a screen behave like this,
usually it takes a lot more to completely break them.

It was the screen that broke.
I am sorry for the trouble.
Thanks for the software.
Hit me up if ya ever find yourself in Berlin.


Update Beta 6

Wondering if we should update the documentation for this method. It's going to read weird, but maybe the mismatch between T and Wrapped will be worse?

It's a fair point. For me the issue is having T all over the place and then an Wrapped . But it might be worth to change the documentation for this particular case.

Thanks! Merged in 3cba8a2


fused branchial arches

Consider adding the term
fused branchial arches
def - failure of two or more arches to fully separate
child of abnormal branchial arch morphology (MP:0002884)
phenotype appears in J:185330
Reported by: sbello
Original Ticket: obo/mammalian-phenotype-requests/1181

MP:0020350


List Messages is broken when a message has an object recipient

The docs say that a message's recipient will either be the ID as a string OR if it is an Object then it will be an object with the collection and ID.

The Message struct only supports string.

Which means when you try to get a message from the API that has an object as its recipient, you end up getting this error:
"json: cannot unmarshal object into Go struct field Message.items.recipient of type string

I see, there's a separate interface called ObjectsService. I think you'd run into this problem if you have a mix of Object recipients and non-object recipients... but I could be wrong. Either way it seems like the ObjectsService is working for what I need so I'll go ahead and close this, thanks!

Glad you found a workaround @troylelandshields - do drop a note if you find that it's not working after all, or drop into our Customer slack if you haven't yet!

My workaround didn't work, but looks like the real fix is to just make sure I'm using the latest version since you guys ahve already fixed this :)


Connection over TCP/IP

Great tool, thanks! Is there a way to make a connection over TCP/IP to the Combilog ? Something like
combilog.Comblog(logger_addr=<IP_ADDRESS>, port=8000)
Best regards.

I am not sure if the logger supports this way of communication for reading and setting channels at all. It does have a built in web server where you can change settings using a web interface.
Their documentation does not go into more detail than: Communication is supported via standard interface (RS232), tel-
ephone or GSM modem or TCP/IP protocol.  This sentence is referring to their combilog GUI software though. So if it was possible it is at least not documented.
If you know a way or have an idea on how to find out let me know.

I didn't find a way to connect  through TCP/IP.  I use now a raspberry pi to get the data over USB and sending them over TCP/IP.

Ah cool, that's pretty similar to the setup I am running, although my raspberry pi is also running the database. May I ask just out of curiosity in what context you are using the combilog logger and this package?  I am surprised someone actually uses this package since the logger is pretty rare outside of professional applications.
If you have any other suggestions, features or future improvements, please let me know.


Show default flag values for flutter config

Use case
Currently, running flutter config lists all available flags, but not its value or default value. For example:
--[no-]enable-web                            Enable or disable Flutter for web. This setting will take effect on the
                                                 master, dev, beta, and stable channels.
                                                 setting will take effect on the master, dev, beta, and stable channels.
                                                 Newer beta versions are available on the beta channel.

Proposal
Add some text to show the default value of the flag, for example:
--[no-]enable-web                            Enable or disable Flutter for web. This setting will take effect on the
                                                 master, dev, beta, and stable channels.
                                                 setting will take effect on the master, dev, beta, and stable channels.
                                                 Newer beta versions are available on the beta channel.
                                                 Defaults to `false`.

@Zazo032 If you look at the bottom of the flutter config output you should see the current values of the configs that are set, so you don't need the Current value is "true". part (and we wouldn't include that dynamic lookup in help output, which is what the top part is).
Settings:
  ios-signing-cert: Apple Development (123456)
  enable-web: true
  enable-linux-desktop: true
  enable-macos-desktop: true
  enable-windows-desktop: true
  enable-android: true

But fair point about not knowing what the default values are.

Should this issue focus on update the help output to include the default value? I yes, then maybe we need to update the title. Right now I'm not sure what would be the fix for this.

I updated the issue. Having the default values on each flag description would be perfect, and with them there's no need to also show current values, as @jmagman said

The original use case occurs using latest versions. Keeping this issue open.


WIP: Off-the-shelf-charts

Closing, this is superseded by the more targeted workaround discussed in https://github.com/bookingcom/shipper/pull/32. We discovered discussing this issue that we probably don't have enough information or experience to design the API for that 'loadbalancer' key just yet.


Different issue with SciBite CORD transform

Fresh out of the oven from Jenkins:
09:03:59  [transform.py][           transform] INFO: Parsing ScibiteCordTransform
09:06:35  Traceback (most recent call last):
09:06:35    File "run.py", line 81, in <module>
09:06:35      cli()
09:06:35    File "/var/lib/jenkins/workspace/ge_Graph_Hub_kg-covid-19_jenkins/config/venv/lib/python3.7/site-packages/click/core.py", line 829, in __call__
09:06:35      return self.main(*args, **kwargs)
09:06:35    File "/var/lib/jenkins/workspace/ge_Graph_Hub_kg-covid-19_jenkins/config/venv/lib/python3.7/site-packages/click/core.py", line 782, in main
09:06:35      rv = self.invoke(ctx)
09:06:35    File "/var/lib/jenkins/workspace/ge_Graph_Hub_kg-covid-19_jenkins/config/venv/lib/python3.7/site-packages/click/core.py", line 1259, in invoke
09:06:35      return _process_result(sub_ctx.command.invoke(sub_ctx))
09:06:35    File "/var/lib/jenkins/workspace/ge_Graph_Hub_kg-covid-19_jenkins/config/venv/lib/python3.7/site-packages/click/core.py", line 1066, in invoke
09:06:35      return ctx.invoke(self.callback, **ctx.params)
09:06:35    File "/var/lib/jenkins/workspace/ge_Graph_Hub_kg-covid-19_jenkins/config/venv/lib/python3.7/site-packages/click/core.py", line 610, in invoke
09:06:35      return callback(*args, **kwargs)
09:06:35    File "run.py", line 59, in transform
09:06:35      kg_transform(*args, **kwargs)
09:06:35    File "/var/lib/jenkins/workspace/ge_Graph_Hub_kg-covid-19_jenkins/config/kg_covid_19/transform.py", line 51, in transform
09:06:35      t.run()
09:06:35    File "/var/lib/jenkins/workspace/ge_Graph_Hub_kg-covid-19_jenkins/config/kg_covid_19/transform_utils/scibite_cord/scibite_cord.py", line 46, in run
09:06:35      self.parse_annotations(node_handle, edge_handle, data_files[0])
09:06:35    File "/var/lib/jenkins/workspace/ge_Graph_Hub_kg-covid-19_jenkins/config/kg_covid_19/transform_utils/scibite_cord/scibite_cord.py", line 67, in parse_annotations
09:06:35      for filename in os.listdir(data_dir):
09:06:35  FileNotFoundError: [Errno 2] No such file or directory: 'data/raw/data/biorxiv_medrxiv/biorxiv_medrxiv'

Possibly some simple file housekeeping issue

@deepakunni3 possibly something changed between version 1.2 -> 1.3 in this CORD-19_1_X.zip?

Yes, the path of the extracted folders have changed slightly.
PR incoming...

Closed by #94


Archive while alive?

Is it feasible to archive the chats using one of the ChatProcessor (archiver) while the stream is still alive? This is useful and possibly the only choice for streams that are meant to be unarchived after ending.
Or, if the problem is with elapsedTime or similar metadata in chatdata feeding to processor, is it feasible to make something like CustomExtractor that fills these metadata with arbitrary values?

Thank you for your great idea!
I try to implement the feature. (getting archived chat data while retrieving live data in the background)

Because the target unarchived stream I'm going to archive is coming in 2 days so I have got to see if I can do any quick hot-patch to at least achieve it for now.
For the HTML archiver. I removed  or len(chat_components) == 0 from
https://github.com/taizan-hokuto/pytchat/blob/c84a32682c6ad62e3710612123508b304e6eb7e4/pytchat/processors/html_archiver.py#L87-L88
and changed below to self.processor = DummyProcessor()
https://github.com/taizan-hokuto/pytchat/blob/c84a32682c6ad62e3710612123508b304e6eb7e4/pytchat/processors/html_archiver.py#L53
then I tried the PoC
import time
import pytchat
from pytchat.processors.html_archiver import HTMLArchiver

stream = pytchat.create(video_id="fzo7sE_kNN8")
ar = HTMLArchiver('out.html')
try:
    l = 0
    while l < 5:
        chats = stream.get()
        print(chats.json())

        ar.process(chats)

        l += len(chats.items)
        print(f'current len: {l}')
        time.sleep(3)
finally:
    ar.finalize()

And it just worked for me. Of course I am looking forward to a better way but for now I'll use this.

The elapsedTime will be given after archiving. There is no elapsedTime attribute during the live broadcast; it may be possible to get it from the timestamp attribute by calculation.

This is a better version of my PoC, it does not requires editing pytchat itself.
#!/usr/bin/env python

import sys
import time
import logging
import json
from datetime import datetime, timedelta, timezone

import pytchat
from pytchat.processors.dummy_processor import DummyProcessor
from pytchat.processors.html_archiver import HTMLArchiver

logging.basicConfig(level=logging.INFO, format='%(asctime)s %(pathname)s:%(lineno)s:\t%(msg)s')

def fetch(video_id, fallback_poll_interval=5):
    stream = pytchat.create(video_id=video_id, processor=DummyProcessor())
    total_len = 0

    with open(video_id + '.json', 'a') as json_out:
        logging.info(f'appending to {json_out.name}')

        while stream.is_alive():
            poll_interval = fallback_poll_interval

            chats = stream.get()
            if len(chats) != 1:
                time.sleep(poll_interval)
                continue

            chat = chats[0]
            if not chat:
                time.sleep(poll_interval)
                continue

            poll_interval = chat.get('timeout', poll_interval)
            chatdata = chat.get('chatdata') or []
            for item in chatdata:
                json_out.write(json.dumps(item, ensure_ascii=False, sort_keys=True, separators=(',', ':')) + '\n')

            logging.info(f'len: {total_len} + {len(chatdata)}, sleep: {poll_interval}')
            total_len += len(chatdata)

            time.sleep(poll_interval)

def render(video_id, start_us_utc):
    start = datetime.fromtimestamp(start_us_utc / 1e6, timezone.utc)
    ar = HTMLArchiver(video_id + '.html')

    with open(video_id + '.json') as json_in:
        logging.info(f'reading from {json_in.name}')
        batch = []

        for line in json_in:
            chat = json.loads(line)
            if 'addChatItemAction' not in chat:
                continue

            # write elapsed time
            for k, v in chat['addChatItemAction']['item'].items():
                if not v.get('timestampUsec'):
                    continue
                timestamp_us = float(v['timestampUsec'])
                timestamp = datetime.fromtimestamp(timestamp_us / 1e6, timezone.utc)
                if timestamp >= start:
                    elapsed = str(timestamp - start)
                else:
                    elapsed = '-' + str(start - timestamp)
                chat['addChatItemAction']['item'][k]['timestampText'] = {'simpleText': elapsed}

            batch.append(chat)
            if (len(batch)+1) % 32 == 0:
                ar.process([{'chatdata': batch}])
                batch.clear()

        if len(batch) > 0:
            ar.process([{'chatdata': batch}])
    ar.finalize()

if __name__ == '__main__':
    verb = sys.argv[1]
    if verb == 'fetch':
        video_id = sys.argv[2]
        fetch(video_id)
    elif verb == 'render':
        video_id = sys.argv[2]
        start_us_utc = float(sys.argv[3])
        render(video_id, start_us_utc)
    else:
        sys.exit(1)

Excellent! The idea of converting timestamp and elapsed time is very helpful..
And I never thought of using youtube-dl in this way to get a start time of the video.
I will use it as a reference.


What kind of gpu environment did you use to train the model?

I tried to learn both pretrain and fine-tuning with one RTX-2080ti, but it takes a lot of time. What kind of learning environment did you use?
I would appreciate it if you could tell me the specs and number of gpu's you used for model pretraining and fine-tuning.

Hi @kambehmw,
Thank you for trying our repository! Are you trying to extend ContraCode to a new programming language?
Pretraining is memory hungry as contrastive learning benefits from large batch sizes (see https://arxiv.org/abs/2002.05709). Moreover, the transformer backbone we leverage uses significantly more memory than typical image classification architectures.
We generally performed pretraining over 4 16GB V100 GPUs, 2 48GB RTX 8000 GPUs or 4 24GB RTX 6000 GPUs. We provide pretrained checkpoints due to the large cost of pretraining.
Given the lower memory capacity of the RTX 2080TI, I would recommend (1) reducing the sequence length for the Transformer encoder, (2) decreasing the hidden dimension size of our model and (3) adding checkpoint annotations for gradient checkpointing (e.g. PyTorch gradient checkpointing).
Thanks,
Paras

@parasj
Thanks for your reply.
I am tinkering with your source code to try to understand the methodology of your paper.
If I can come up with an idea, I will try to extend ContraCode to a new programming language.
Thanks for the memory saving advice as well. I'll also consider using GPUs with good specs in the cloud as an option.
Thanks again.

@kambehmw Thanks! Happy to discuss further as well. My email in my profile.

@parasj
Let me ask one more question.
We ran pretraining on the following environment in GCP
GCP:

n1-standard-16 (vCPU x 16, 60 GB memory)
V100 x 4
HDD 512GB

As in the README, the command to be executed is as follows
python representjs/pretrain_distributed.py pretrain_lstm2l_hidden \
  --num_epochs=200 --batch_size=512 --lr=1e-4 --num_workers=4 \
  --subword_regularization_alpha 0.1 --program_mode contrastive --label_mode contrastive --save_every 5000 \
  --train_filepath=data/codesearchnet_javascript/javascript_augmented.pickle.gz \
  --spm_filepath=data/codesearchnet_javascript/csnjs_8k_9995p_unigram_url.model \
  --min_alternatives 2 --dist_url tcp://localhost:10001 --rank 0 \
  --encoder_type lstm --lstm_project_mode hidden --n_encoder_layers 2

The data/codesearchnet_javascript/javascript_augmented.pickle.gz file will take quite a long time to load.
It takes about 1-2 hours to load the file and it's not finished. How long did it take you to load it when you ran it? (Is it because of the GCP environment?)
Also, do you have any ideas for reducing the load time?


core: lib: worker: create waitForServiceState helper

A commonly recurring action in the test suite is waiting for a given
service to be active. Create a helper function in the worker class to
remove this redundancy.
Change-type: patch
Signed-off-by: Joseph Kogut<EMAIL_ADDRESS>

Based on recent discussions we may want to avoid adding new helpers to core, and instead keep the balenaOS-specific functions in the test suite, or in the worker.

Closing in favor of moving this to the suite setup module, instead of adding more interfaces to the core


Slather fixes

We were making it do code coverage on the wrong files!
:dancer:
Now we're not.

Coverage increased (+0.57%) to 86.46% when pulling 529fa8f3f979ff2c665185cef0f3bd5955aae588 on orta:master into 6c658cde851f92cf02f9dddf0df167eafaea5ef8 on andreamazz:master.

Top notch! :+1:
Thanks! :beers:


examples: remove darwin SDKs from cross compile example

Motivation
Seems like these SDKs aren't necessary, and worse, they're causing issues for some reason. Might as well simplify the example a bit!
Fixes #320
Checklist

[ ] added tests to verify new behavior
[ ] added an example template or updated an existing one
[ ] updated docs/API.md (or general documentation) with changes
[ ] updated CHANGELOG.md

Well, now I'm getting:

= note: ld: framework not found Security
clang-11: error: linker command failed with exit code 1 (use -v to see invocation)

So removing that breaks it at a different point.

But my research says that compiling from macOS to Linux is not supposed to work: https://users.rust-lang.org/t/cant-cross-compile-project-with-openssl/70922/6

Ah yeah its unfortunate that it basically doesn't work :(

There are a bunch of different opinions on this. I'm chasing it for a while now but haven't seen it work yet. Not sure whether Nix provides a fully open source Linux compatible world to compile on macOS.


New Repo created on DCS when user selects Language -Resource for which the Repo does not exist.

Open TCC>Select Org
Select Resource and Language (Make sure you do not have a  Repo made for this combination eg. es-419_tq)
Upon selecting the file in stepper, TCC shows warning that the Repository does not exist for the selected Language and resource. This is the expected behaviour.
Now go to qa.door43.org and See your user Dashboard. Note that you ll see the Repository in step 3 added under your username.

We will have to verify in the codebase but if my memory is correct there was a function called “ensureRepo” that will create the repo of it doesn’t exist. Not sure if that’s how it is implemented.

As far as Remember, when Repo doesn’t exist, we manually had to create a Repo for the language-resource combination(which can be now done by gateway-Admin).


[WIP] Refactor madx_run_clm.py

Current changes: just some unused / commented out code from madx_run_clm.py. There is more, but I was not certain why certain parts are commented out.
We'll need to refactor the script as well once we add new ft strategies.
I also wonder whether it would be helpful to turn language experiments into a single packaged script (train tokenizer + adapt model + possibly run eval?) So that it is easier to onboard and have the others run experiments.

I also wonder whether it would be helpful to turn language experiments into a single packaged script (train tokenizer + adapt model + possibly run eval?) So that it is easier to onboard and have the others run experiments.

Might be in the future, but at least during these sprints, let's keep it separate.

We might also want to reconfigure the file structure?
My thoughts would be something like:
multilingual-modeling/
- lang-adapt/
    - README.md
    - scripts/
    - finetune/
        - *.py
    -  *.py
- evaluation/
    - eval_xnli/
    - eval_exp_sentence_retreival_eval/

Yea the structure is a mess right now. There's too many duplication (e.g., on the eval side, we actually don't need eval_xnli) due to legacy codes before.
I am working on it right now.

this makes sense to me, but I had problems downloading XNLI when there was a folder called "xnli" in the same path. Renaming to anything else (xnli_scripts, etc) fixes this problem.

This makes sense to me, but I had problems downloading XNLI when there was a folder called "xnli" in the same path. Renaming to anything else (xnli_scripts, etc) fixes this problem.
Okay will do!

@haileyschoelkopf Fixed by a8486d4 (using scripts_* instead.


v4.0.0 development

This is a continuation of #71. I just felt that it was justified to create a new clean issue.
Motivation
As the current Version 3.0.5 has some big issues and the windows support has always been lacking, I took the time to restructure the complete library.
Changes
The following changes have been made:
Breaking changes

the readkey() function now raises a KeyboardInterupt when CTRL+C is pressed. (but readchar() can still be used to capture it). This is more inline with the python philosophy (IMHO) and prevents developers from accidentally trapping their users with no option to stop the programm.

fixes

windows now returns strings instead of bytestrings, same as on linux
windows now supports most special characters
swaped LF and CR, as per #69
windows actually returns CR on ENTER, so the ENTER variable now points to the appropriate existing variable
__all__ should return a list of strings
f5-f12 had wrong codes on linux

removed

removed python 2.7, 3.4, 3.5 and pypy support

changed

general cleanup of config and setup files
bump precommit-hook versions
simplyfied .yamellinter.yml

added

extensive testing for both windows and linux
automated workflow that runs the test on both platforms
more keycodes for windows
add end-of-line-fixer to pre-commit
mac OS and FreeBSD run the linux behavior (note in the README that they are not supported but should work)

Did you try to use the PyCharm terminal for example to debug the input test script? I got one report that the inputs do not work on windows using PyCharm. I myself did not test it, and I think there is also an issue open for the old version, so it is not very important that this works.

No I only tested in Windows CMD terminal and Debian bash so far. Both while using VS code. I have never used PyCharm. But you right, there is already an issue: #51

@Cube707
Thanks a lot for notifying me in #64!
This version indeed solves issue 1 in #64 but unfortunately it doesn't fix issue 2 as per my test on my ovh server (running ubuntu). Below is my test script:
import sys
sys.path.insert(0, r"/root/python-readchar-v4")
from threading import Thread
from queue import Queue
from typing import Callable, Dict
import time
import logging
import readchar

logging.basicConfig(
    format='%(asctime)s - %(levelname)s - %(module)s - %(message)s', level=logging.INFO,
)

running = False

class KeyBoardMonitor(object):

    def __init__(self, callbacks: Dict[str, Callable[[str], None]] = None, quit_symbol: str = 'q'):
        self.callbacks = callbacks if callbacks else {}
        self.quit_symbol = quit_symbol
        self.running = True
        self.queue = Queue()
        self.thread = Thread(name="keyboard monitoring", target=self._keyboard_monitor)

    def register_callback(self, order: str, callback: Callable[[str], None]) -> None:
        self.callbacks[order] = callback

    def unregister_callback(self, order):
        del self.callbacks[order]

    def start(self):
        self.thread.start()

    def stop(self):
        self.running = False

    def _keyboard_monitor(self):
        while self.running:
            ch = str(readchar.readchar())
            if ch in self.callbacks:
                self.callbacks[ch](ch)
            if ch == self.quit_symbol:
                self.running = False

def myprint(ch):
    print(ch, "entered")
    if ch == 'q':
        global running
        running = False

if __name__=="__main__":
    watchdog = KeyBoardMonitor(callbacks={'q': myprint, 'p': myprint})
    watchdog.start()
    running = True
    for _ in range(300):
        if not running:
            break
        time.sleep(1)
        logging.info(f"current_time: {time.time()}")

copy this into file and change the path in sys.path.insert to the "master" branch of local clone of your repo in r"/root/python-readchar-v4", I still see unwanted blanks (should come from the \r generated by setraw and missing linebreaks between logs:

In contrast, if using my version in pull request #64, I can get clean log outputs.

Would you please take some further look?
Thanks!

@qianyun210603 please see https://github.com/Cube707/python-readchar/pull/5
Would you also be so kind and edit your comment shorter to keep this thread manageable and more on-topic. Its already big enough with all the commits and linked issues...


fix(Turbo-Irys): Fixed Irys node issue in Warp when using Turbo

Updated getIrysNode function to return 'arweave' if Turbo urls (https://up.arweave.net or https://turbo.ardrive.io) are used to instantiate Irys.

Added catch-all error in getIrysNode function to catch possible unsupported node options.

Updated docs for using Turbo with Irys to use https://turbo.ardrive.io instead of https://up.arweave.net since the former offers better performance.

These updates should resolve errors in registering warp contracts when using Turbo through Irys.

Thanks
The integration is now live from v0.2.0


Make the integration tests robust

Currently integration test is a bit flaky because of
variability in the dnet bootup time. Fixed it to wait for
dnet to come up before performing any tests.
Signed-off-by: Jana Radhakrishnan<EMAIL_ADDRESS>

thanks for fixing the flaky IT. it is giving so many false-positives...
LGTM

all green ... yaaay... :tada:


Linux (ubuntu 16 support)

I'm thinking of buying this but unsure if it has linux support so Iwant to be sure before spending the buck
https://www.reddit.com/r/ergodox/comments/3gucvu/anyone_using_ergodox_with_linux/

Do it.
I am using two Ergodox EZ keyboards at home and at work. Both systems went through an upgrade from Ubuntu 14.04 to 16.04 without any issues.


Add support for tag patterns (aka "I'd like to install kustomize using bin")

I would like to use bin to install the latest version of kustomize. The releases page hosts multiple packages; the kustomize releases are tagged with kustomize/<version>.
I can install a specific version of kustomize by running something like:
bin install github.com/kubernetes-sigs/kustomize/releases/tag/kustomize/v4.5.7

But I don't always know the latest version. I'd like to be able to run:
bin install github.com/kubernetes-sigs/kustomize/releases/tag/kustomize/\*

And have it install the latest release matching that tag.

@marcosnils -f acts as --force in the install cmd.
What about using -e and --regexp as the filtering flag?
For example:
bin install -e ^kustomize.* https://github.com/kubernetes-sigs/kustomize

or
bin install --regexp ^kustomize.* https://github.com/kubernetes-sigs/kustomize

SGTM I realized about this afterwards when starting to implement it.
Using -e and --expr sounds like a better flag


Use UnmarshalStrict for yaml Unmarshalling

The yaml library we are using now support UnmarshalStrict which will return an error for for unknowns, or double definitions
https://godoc.org/gopkg.in/yaml.v2#UnmarshalStrict
After start using UnmarshalStrict CheckOverflow will be no longer needer
https://github.com/prometheus/prometheus/blob/dfd6709a44eb4a809c41b6676500b8b4ccfd9af1/util/yaml/yaml.go#L22-L31

Related to https://github.com/prometheus/prometheus/issues/1275 and as per IRC< @fabx said: "I still think we should be using https://github.com/ghodss/yaml "

so basically if the other devs agree, replace gopkg.in/yaml with ghodss/yaml or just add PR to use UnmarshalStrict

Does ghodss/yaml handle YAML anchors?
On Tue, Mar 27, 2018 at 1:34 PM Krasi Georgiev<EMAIL_ADDRESS>wrote:

so basically if the other devs agree, replace gopkg.in/yaml with
ghodss/yaml or just add PR to use UnmarshalStrict
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/prometheus/prometheus/issues/4017#issuecomment-376492198,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAANaC_fZRqY8Qy-BQsjqScpOp7xrErQks5tiiOtgaJpZM4S8vs_
.

It uses the same YAML library but just performs a conversion to JSON, which
is then parsed through the much saner encoding/json.
On Tue, Mar 27, 2018 at 1:43 PM Tobias Schmidt<EMAIL_ADDRESS>wrote:

Does ghodss/yaml handle YAML anchors?
On Tue, Mar 27, 2018 at 1:34 PM Krasi Georgiev<EMAIL_ADDRESS>wrote:

so basically if the other devs agree, replace gopkg.in/yaml with
ghodss/yaml or just add PR to use UnmarshalStrict
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<
https://github.com/prometheus/prometheus/issues/4017#issuecomment-376492198
,
or mute the thread
<
https://github.com/notifications/unsubscribe-auth/AAANaC_fZRqY8Qy-BQsjqScpOp7xrErQks5tiiOtgaJpZM4S8vs_
.

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/prometheus/prometheus/issues/4017#issuecomment-376494587,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AEuA8uyp0MSzgWjV2kFLGvnAe9cY4pk9ks5tiiXxgaJpZM4S8vs_
.

I still fail to see the benefits of switching the data to a format that's not the one we're trying to parse.


There is an error when deleting a blob with name contains spaces from Local Emulator

OS: Win10
Build Version: 20210127.3
Repro Steps:

Create a blob container from Local Emulator -> Create a block blob with name "test 1" -> Delete the blob "test 1".
Check whether delete the blob successfully.

Expect:
Delete the blob successfully without any error.
Actual:
There is an error.

More Info:

There is no error when executing "Copy URL/Download" commands for the blob "test 1".
[Unstable] This issue also reproduces when deleting a file "test 1" or a blob "test 1" for a storage account.
This issue doesn't reproduce when deleting a directory "test 1".

This issue has become stale and is at risk of being closed. The community has 60 days to upvote the issue. If it receives 5 upvotes we will keep it open and take another look. If not, we will close it. To learn more about how we handle issues, please see our documentation.
Happy Coding!

:slightly_frowning_face: In the last 60 days, this issue has received less than 5 community upvotes and we closed it. Still a big Thank You to you for taking the time to create it! To learn more about how we handle issues, please see our documentation.
Happy Coding!


Response messages differ when duplicate API create via rest APIs when different database types used

Description:
Integration test case name APIMANAGER3226APINameWithDifferentCaseTestCase is getting failed with mysql or mssql db type is used.
Further when H2 db type is used in the product, the response message is returning with the content "A duplicate API name already exists for " which is hardcoded message in publisher/modules/api/add.jag.
Then, if we run the same test when the product is pointed to MySQL, the response message is "A duplicate API already exists for " where the word 'name' is missing and this message can be scene in the ApisApiServiceImpl.java and APIProviderHostObject.java on carbon-apimgt
No any difference can be scene on request parameters which are sending out from the tests on both attempts
Affected Product Version:
2.x
OS, DB, other environment details and versions:
H2, MySQL
2.x, wso2am-2.5.0
Steps to reproduce:
Run integration test case 'APIMANAGER3226APINameWithDifferentCaseTestCase' while the product is pointing to MySQL db.

Found that, when its come to MySQL, the response message is exactly retuned from jsFunction_addAPI method of APIProviderHostObject.java(line:1360)

FIx by https://github.com/wso2/carbon-apimgt/pull/5686


Delete static html and rename dashboard workflow

Checklist

[ ] When adding a Github handle to be tracked that is not yours, request the user to approve the PR

Preferring next js from #21


Build fails if slack.yml file is not found

Build fails is failing if slack.yml is not found at .github/slack.yml.
According to the docs, this file is optional.

I've rolled back the update until I can deploy a fix. If you point to v1 you will get a working version. Thanks for letting me know.

This should be fixed in version 1.3.2. Let me know if there are any issues.


OAuth transparent authentication in Caddy

I am trying to setup Caddy as a transparent reverse proxy with authentication, meaning that authentication to remote endpoints is done on Caddy. Users can access the Caddy virtual host with no authentication and then Caddy authenticates to the remote endpoint.
I am no expert in this but I am having a hard time understanding the docs and I am failing to setup proper config. All examples on docs refer to the case where the user is redirected to an authentication portal and then authenticates.
In my case, I do not want that. I want users to access the Caddy domain with no authentication and Caddy does authentication as a reverse proxy.
Is this use-case currently supported by this plugin? If so, can you please direct me to a docs link where I can try to get something working?
Thanks in advance

@ArjonBu Caddy functions as the authentication portal. So you would access the normal Caddy endpoint for your service with no authentication, like you stated, be redirected to the auth portal (still hosted by Caddy), sign in with your OAuth, and then be redirected automatically back to your original Caddy endpoint.
There's a Discord example here that's pretty clear cut:
https://github.com/authcrunch/authcrunch.github.io/blob/c6d02968980595021863c223369f9f6cb31992b6/assets/conf/oauth/discord/Caddyfile


Membership - Alireza Sabouri

Name:
AliReZa Sabouri
Projects:
Just want to help but I also have a few projects (Gridify - Husky.Net ...)

Welcome. I've added you to this repo. If you'd like your name listed in the Readme.md, please submit a PR. I'd also ask that you join the Slack channel @maintainers-committee, https://join.slack.com/t/netfoundation/shared_invite/zt-c7np4gr7-rN5cjBt4iNFOgUE9seOfzA


design locale representation

See locale objects wiki page.

I reorganized the wiki page. I've taken a liking to the kind of language used in the ECMA-402 spec, so I used a bit of it to describe a couple of abstract locale constructors. Enjoy!

I don't know if we need two different types of locales---one with strict adherence to BCP47 and one without---but it helps illustrate the possible use-case for "lenient" and "strict" constructors of some kind.

Requirement: Locales must be able to represent any setting possible on Linux, Windows and Android
RFC5646 alone is not sufficient to achieve that, so here is the grammar:
locale = tag *( ":" [ category "=" ] tag )
tag = langtag
    / irregular
category = 1*ALPHANUM
langtag = language
        [ SEP script ]
        [ SEP region ]
        *( SEP variant )
        *( SEP extension )
language = 2*3ALPHA [ SEP 3ALPHA ]
script = 4ALPHA
region = 2ALPHA
       / 3DIGIT
variant = 5*8ALPHANUM
        / DIGIT 3ALPHANUM
extension = ALPHANUM 1*( SEP 2*8ALPHANUM )
irregular = ALPHANUM SEP *( SEP / ALPHANUM )

The langtag mostly follows RFC5646, except:

Our private use has the same format as other extensions, so it does not get a separate production.
The 4*8ALPHA variant of language is omitted and only one sublanguage is accepted for now, because nothing of the other forms is defined.

Depending on whether we end up calling the root "root" in CLDR-style or "und" in RFC5646-style we might need to enable the 4*ALPHA production.

The irregular is a bit leaner to cover the i-something irregulars and x-so-me-thi-n-g privates.

The Unix complex settings are supported using the alternate tags. E.g. if the environment has
LANGUAGE=cs:en_GB:en
LANG=cs_CZ
LC_MESSAGES=en_GB

the corresponding language tag will be
cs-CZ:messages=en-GB:cs:en-GB:en

(this is relatively simple variable settings; user can go wild with the LANGUAGE, LANG and LC_* variables)
On the other hand on Windows complex settings may involve overriding specific options, so somebody might set English (USA), but 24-hour format and we'll get
en-US-u-hc-h23

(h23 means hours go 00–23, h24 means they go 24, 01–23; I don't think Windows distinguishes the two and I don't think it ever uses the later)
Where there is no u extension keyword, we define our own in the same format, so on Windows if somebody sets English (USA), but group separator as ␠, we'll get
en-US-x-gs-0080

(0080 is codepoint for non-breaking space)
Additionally Windows have a UI locale. I have no clue when it should be used, but we can represent it as ui subcategory. So we may get e.g.
en-US-u-hc-h23-ms-metric-x-gs-0080:ui=cs-CZ-x-ds-002e

And it also has a system language, which will probably end up as alternate at the end.
Besides functions for splitting the tag to the components (including actually interpreting the u and x extensions we are going to use) we will need function to get the next alternate tag and tag for specific category, which each facet will ask for. Which will return the non-specific tag if there is no specific one, so
Locale"cs-CZ:messages=en-GB:cs:en-GB:en".category("messages")

will return
Locale"en-GB:cs:en-GB:en"

while
Locale"cs-CZ:messages=en-GB:cs:en-GB:en".category("time")

will return
Locale"cs-CZ:cs:en-GB:en"

I am not yet sure whether the specific facet query should return the following non-specific alternates, i.e. whether
Locale"cs-CZ:messages=en-GB:cs:en-GB:en".category("messages")

is Locale"en-GB:cs:en-GB:en" or Locale"en-GB" or whether the LANGUAGE` alternates should be placed before or after the category overrides, i.e whether the above configuration should return
Locale"cs-CZ:messages=en-GB:cs:en-GB:en"

or
Locale"cs-CZ:cs:en-GB:en:messages=en-GB"
(in the later case, the alternates would not be returned for messages even if the function did return the following alternates in that case; it will definitely not return anything before the category tag).
Yes, it is a bit complicated. But the systems can actually be configured that way and Rust programs should follow

I have rewritten the https://github.com/rust-locale/rust-locale/wiki/Locale-objects again, with the above design.

libc and GNU back to haunt us again... Isn't that where these language tag monstrosities come from?
Can we just stick to BCP47 for now? Is there a good reason why we have to support, from the beginning, exactly what libc supports? We've already decided to postpone /usr/share/locale-DB support...

No, we can't. Not on Windows and not on Unix. I am not relaxing the requirement of representing the system settings in their entirety.

By the way, this is not about GNU. Windows is actually bigger offender here, because it allows overriding each and every item separately. And users are used to it and expect software to honour their settings.
Also, don't take Java as a good example. It is a horrible example more often than not.

don't take Java as a good example. It is a horrible example more often than not.

haha I thought the same of C++! I'd like to know your reasoning, perhaps in a new wiki page for criticisms of extant libraries and APIs?
When we take a hard stance for a feature, it would be nice if we provide an explanation and/or justification. We need to be able to reference it later, and everyone else on this project should be able to understand our reasoning.

OK, so there are two issues here and only one that actually concerns me.

rust-locale should be able to represent (for some definition of "represent") system settings completely.
rust-locale should provide this support wholly in language tags.

It's 2 I'm not sure about. Departing completely from BCP47 language tags in order to represent complete system settings in one string is not necessary.
A better way
We can represent system settings in different ways: a map, a "system settings" struct, etc. "Representation" of system settings is open-ended, luckily.
Let's say we define an abstract operation called BuildSettingsFromEnvironment that returns a suitable data structure containing one Locale per env setting1. This would let our language tag parser maintain BCP47 compliance.

1 It looked like each individual component in your original comment was (or could be) BCP47 compliant. Hence, one Locale from LANG, one from LC_CTYPES, one from LANGUAGES, etc. If the C++-like locale-as-container is used, obviously the return value of BuildSettingsFromEnvironment would be one Locale with its facets filled in with the correct "stuff".

The guiding principle I have in mind when I suggest the above is: Locale's constructor should remain as simple as possible and comply with BCP47.
If it should depart from the standard, we should have a Very Good Reason.
Lacking any compelling argument against it, I think we can parse env. settings in a separate place without concatenating all the things into one string and parsing it.

haha I thought the same of C++! I'd like to know your reasoning, perhaps in a new wiki page for criticisms of extant libraries and APIs?

C++ is (generally) designed quite well for orthogonality and extensibility. And while the locale module is not the best example of it, it is still pretty good at it. It is an interface that a library can implement and the application can set it and everything then uses it. And libraries do extend it and new revisions of the standard extend it.
And for casual use, it is still simple. You just set the default instance, or if you need to switch them, take appropriate instance and imbue it in the basic_stream. The verbose facet stuff is for extending it.
In contrast, Java libraries either are not all that extensible, or are insanely convoluted to work around limitations of the language. Locales seem to be a case of the former: I don't see a way to e.g. install a new NumberFormat.

When we take a hard stance for a feature, it would be nice if we provide an explanation and/or justification.

The features are mostly there in the use-case list. Ok, I should probably add a general principle: “Application must respect all settings that the user generally expects applications on their system to obey.”

It's 2 I'm not sure about. Departing completely from BCP47 language tags in order to represent complete system settings in one string is not necessary.

Actually, it seems to be a purely terminological problem. For me, Locale is what represents the user preferences (as matches the C/C++ use of the term), while for you Locale is the single language and user may request different for each category (as matches the Java use of the term). We just need less ambiguous names for them.
Also, we both clearly have both concepts. In what I described, the single language is there, as the fundamental basic building block, just under name tag. It absolutely is not departing completely from BCP47; it is building on it.
Ok, so let's call the RFC5646 tag a LanguageTag in accordance with that RFC and lets call the complete set of user preferences RegionalSettings (I would gladly accept better proposal for the later).
Now Java does not seem to have any single-object representation of the RegionalSettings, but I think it is very useful to have it so that applications that need to switch between them don't need to switch category by category.
Now whether the LanguageTag and RegionalSettings are stored internally as strings or some kind of collections of components does not really matter. However both should have string representations and RegionalSettings should consist of primary LanguageTag, zero or more fallback LanguageTags and optional category-specific override for open-ended list of categories. And above I described that on the string representation.
The reason to have primary tag and optional overrides is to allow the category list to be open-ended. Windows only have two categories, “messages” (which they call UI) and the rest. POSIX and C++ standards have six categories: “collate”, “ctype”, “messages”, “monetary”, “numeric” and “time”. GNU LibC adds fiver more “address”, “measurement”, “name”, “paper” and “telephone” (the “identification” is not really a category). And some application or library might just come up with something more (though the most obvious case of units is covered by “measurement”). So we need to know which language tag applies to category that was not specifically configured.

The guiding principle I have in mind when I suggest the above is: Locale's constructor should remain as simple as possible and comply with BCP47.

BCP47 is a tool, not a virtue on its own. The ultimate goal is to represent the user settings.
And since the confusion was caused by different idea what should be called Locale, lets not call anything by that name from now on.

It looked like each individual component in your original comment was (or could be) BCP47 compliant.

It was very explicitly BCP47-compliant. And it was exactly what you wanted and I refused to call “locale”, because for me the goal was from the start to represent the system settings and this intermediate step was not particularly interesting.

I think we can parse env. settings in a separate place without concatenating all the things into one string and parsing it.

We are designing interface, not implementation.
The parsing of system settings will only happen somewhere deep in the library and all the user will see is the user(), global() and current() instances of RegionalSettings. Hm, that name is really long, given it will be the type users will most often need to manipulate, but if we are to avoid Locale to avoid confusing people coming from Java, I am currently out of ideas. Culture does not work for me, because culture is more like the LanguageTag. This should try to capture the fact that it is the representation of the personal quirks of the particular user.

I don't see a way to e.g. install a new NumberFormat.

https://docs.oracle.com/javase/8/docs/api/java/util/spi/LocaleServiceProvider.html

I don't see any reason to avoid the name Locale now that you've clarified and distinguished the usage of LanguageTag. I'm happy with that!

https://docs.oracle.com/javase/8/docs/api/java/util/spi/LocaleServiceProvider.html

I'll take a look. Java is not a language I regularly use and the documentation is not so easy for me to navigate in.

I don't see any reason to avoid the name Locale

It will probably be a bit confusing for other people with Java background too, but if we don't come up with something else short, it could do.

@ogham I'd like to be made a contributor. I have a languagetag prototype I want to put into a branch here.

@mrhota, I fixed the permissions so all members have write everywhere (and you are a member).

Some technical notes I have so far:

The LanguageTag, Locale, and appropriate global instances, should live in an auxiliary subcrate, locale_core. I am just not sure whether to create a new repository for it or just include it in a subdirectory. The reason is to avoid (we can't prevent it, but we should be able to avoid most reasons for it) having multiple copies of the global instances in a single application by having locale always depend on the latest locale_core, so even with multiple versions of locale, the underlying locale_core should hopefully be the same.

LanguageTag is very much tied to string, so maybe we should have a LanguageTag for borrowed str. One idea I had is defining struct LanguageTag<'a> { inner: std::borrow::Cow<'a str>, } and giving it Borrow<LanguageTag<'a>> and method into_static(&self) -> LanguageTag<'static>. That would also give more freedom to internal implementation of Locale—with owned string in LanguageTag we would have to store Locale as collection of LanguageTags.

I am still not sure whether to pull in nom to do the parsing (for RFC5645 and Unix tags, and sometimes whichever we have) or write it by hand (in more-or-less similar style).

What about eventually making nom basis of the parsing side of localization. We want to do parsing dates, numbers etc. too and having the generic parser form use the nom signature would make it easy to build on.

Ok, I decided to keep the regexes, at least for now. It should be mostly written in https://github.com/rust-locale/rust-locale/commit/8c8560c79bf49747a132bfa136f79ecfb36b3568.
What is left is getting the tags from Locale and subtags from LanguageTag. I am currently thinking that:

Locale should return Iterator<LanguageTag> that apply to provided category.

LanguageTag should have methods to get the:

language (&str)
script (&str)
region (&str)
iterator over variants (Iterator<&str>)
iterator over extensions (Iterator<(char, &str)>)

The last one is somewhat tricky. The char is the extension type, which might be any lowercase letter or number, but in practice it may only be t, u or x. And the value is the individual extension. The reason for the split is that it should split the known extensions by their substructure. For example en-IN-u-ca-buddhist-cu-eur-tz-deber has just one u, but actually 3 extensions: ('u', "ca-buddhist"), ('u', "cu-eur"), ('u', "tz-deber"). I was even thinking about splitting it further, but it would only make sense for the u and x extensions, but not the others like t that are not in the form of keyword-value.

It should be there, the only thing left is wrapping the implementation in locale_core with equivalent implementation in Locale.

I think it is essentially designed and implemented, so we can close this now so we don't drown in issues.


Support emissary executor for Kubeflow Pipelines

Is your feature request related to a problem? Please describe.
TL;DR:

Docker executor is the default workflow executor for Argo on KFP
Kubernetes 1.20+ is deprecating docker as a container runtime
Pipeline component specifications will change, requiring changes to parts of the Elyra code

See https://www.kubeflow.org/docs/components/pipelines/installation/choose-executor/ for detailed information
TODOs:

[x] ~Impact on and roadmap for kfp-tekton workflow engine, which might be impacted as well~ No impact and thus nothing to do for Elyra!
[ ] Determine whether Elyra  already tolerates KFP/emissary for some scenarios
- Tolerate: a KFP runtime environment is configured for emissary; which of the current Elyra workflows are broken?
[ ] Determine what supporting KFP/emissary entails
- Based on findings of above task
[ ] Determine what it takes to explicitly support KFP/emissary
- Based on findings of above task

Required KFP runtime metadata changes:

Need to extend the schema to support a third type 'engine type'.
The existing Argo option would remain the default to retain backward compatibility and imply that the cluster is configured to use Docker as workflow executor.
Add a new Argo with Emissary Executor option

Required KFP processor, VPE, etc changes

Impact of https://www.kubeflow.org/docs/components/pipelines/installation/choose-executor/#migrate-pipeline-components-to-run-on-emissary-executor

on generic component handling - TBD
on custom component handling - TBD

A pipeline component that requires migration currently triggers the following error in KFP during pipeline execution:

(https://argoproj.github.io/argo-workflows/workflow-executors/#emissary-emissary)

Based on further research,  I believe it would be sufficient to do the following to 'deliver' emissary support:

Add emissary specific requirements to https://elyra.readthedocs.io/en/latest/user_guide/best-practices-custom-pipeline-components.html
Extend the KFP component parser to issue a warning if a component specification does not include the implementation.container.command property. (The warning would indicate that this component might not work if KFP is configured to use the Emissary Workflow Executor.)

User experience if we are taking this approach:

JL log contains warning message, which is issued when Elyra loads the component from a catalog
Component is loaded into cache/palette
User can add component to pipeline (no indication that this is potentially a 'bad' component)
Pipeline execution might fail with the error listed above. (See below for information why it might fail instead of will fail.

As a general usability follow-up, we should think about how we can surface catalog/component parser issues to the user in the UI. Since these kind of issues are hidden today, users have a hard time troubleshooting unexpected behavior, such as why  components are not displayed in the VPE palette.

Other potential solutions that I've considered but discarded, along with the reasoning:

extend pipeline validation to catch/surface issues:

this requires introduction of a new engine type (argo with emissary) which the validator would have to take into consideration
a user would generally not be able to address the potential issue in JupyterLab/Elyra, because it might require an update to the component definition
this approach would not address the general issue mentioned above that there are many other issues that are not surfaced today

discard component definitions that are not compatible with the emissary workflow executor while the component cache is populated

this approach is not viable because users might have configured their Argo deployment in such a way that the component's container might be runnable, as indicated here: https://argoproj.github.io/argo-workflows/workflow-executors/#image-index


Documentation

Hello! I would like to know more how your json parser works!
I am interested.
Do you have plans to make a documentation for it?
Regards,
Lucas.

I am quite interested as well, would love to hear more from @smjburton

Hello, I will try to add documentation in the coming months. In the mean time, I've included a basic implementation in the README for the project. Let me know if there's anything specific I can help you out with.
Thanks,
Scott

Nice!


Allow for easy versioning of structures

I was thinking something like http://www.boost.org/doc/libs/1_36_0/libs/serialization/doc/tutorial.html#versioning could be expressed elegantly with attributes like (unchecked syntax):
#[derive(Serialize, Deserialize)]
#[serde(version=5, removed_field(version=4, name="old_field", type=String))]
struct Example {
    #[serde(added(version=5, default_value=None))]
    new_field: Option<String>,

    #[serde(added(version=4, default="build_example"))]
    field: String,
}

fn build_example(old_field: &String, new_field: &Option<String>) -> String {
    "OLD ".to_owned() + old_field
}

Here, there has been a field added in version 5, which defaults to None when deserializing a file generated with a previous version, and in version 4 the field old_field has been renamed to field and it's required to add "OLD " in front of every value encoded with pre-4 versions.
This would avoid the need to write custom serializer/deserializers when having to handle multiple versions of a format, and having something more transparent to the user than https://github.com/serde-rs/serde/issues/745
Then this whole idea requires quite a bit of engineering, I guess, and of thought about the way to pass arguments to build_example.
What do you think about it?

This would be immensely useful for anyone writing large amounts of data to disk in an evolving program where data structures change but old saved data still needs to be usable.

I agree this would be valuable! Lots of users want versioning of structures and the ability to evolve over time while continuing to support old data.
I am closing the issue because I believe this would be better explored as a library separate from Serde, possibly built on top of Serde. Once there is a standalone prototype and people generally agree that it meets their needs, we can reconsider whether an modifications in Serde are required to integrate better with the functionality.

I've written something: https://github.com/avl/savefile

@avl For the record, this means that savefile will never be useful to me for any of my projects:

Features savefile does not have, and will not have:

Support for external protocols/data formats. There'll never be json, yaml, xml or any other backends. Savefile uses the savefile format, period.

...for several reasons:

I don't trust my data to binary serialization formats... with one exception. (SQLite, because of its test suite, which is literally avionics grade and has an unmatched track record.)
I don't trust my data to serialization formats with only one implementation and no published standard... with one exception. (SQLite, because it's included in the standard library of every "batteries included" language and has the aforementioned test suite and track record.)
In the name of data portability, I choose formats which don't single-handedly impose an additional "tools for building compiled extensions" requirement on scripting languages.)
My main use for Serde in the near term would be migrating to Rust with existing JSON-serialized data where I implement #745 by using schemaless parsing and then matching the version field to a list of deserialization functions.

I'm not sure if there is a "blessed" library yet, but I did run across https://github.com/fredpointzero/serde-version which at least attempts to address this issue.

@wickedchicken Not sure if I totally understood the library as I find it, based on the examples, not that useful.
Would something like this even work?
# Version one
{
  "text": "some text"
}

# Version two
{
  "text": {
    "somekey": "other value"
  }
}

Just adding to the discussion.
There is this other crate: versionize

Probably a good idea to mention this about versionize right in the thread:

It does not aim to be a generic serialization framework and only the bincode backend is supported.


Crashes when saving traces when mcount is never called.

Creating fake uftrace data dir at /myfs..
  Creating ./info
    feats = TASK_SESSION
    info = CMDLINE | TASKINFO
    cmdline = 'fakeuftrace'
    tid = []
thread 'main' panicked at 'index out of bounds: the len is 0 but the index is 0', src/frontend.rs:131:38

Fixed in d86e3f69e6c0018feb52eaf78ea19a75ec66e22f


Add dialect support to QueryBuilder

Consider supporting multiple dialects for operations like "limit" and "on duplicate key update".

As part of this update, enhance the existing onDuplicateKeyUpdate() method to accept a map instead of just a varargs sequence of strings. This should apply to the doUpdate() method above as well.
Additionally, provide a static valueOf() method that will accept a string and return an ExpressionBuilder instance as described in issue #124. Finally, provide an as() method that will accept a String. Among other things, this will support the MySQL variant of "on duplicate key update"; for example, from the MySQL documentation (https://dev.mysql.com/doc/refman/8.0/en/insert-on-duplicate.html):
QueryBuilder.insertInto("t1").set(mapOf(
  entry("a", 1),
  entry("b", 2),
  entry("c", 3)
)).as("new").onDuplicateKeyUpdate(mapOf(
  entry("c", valueOf("new.a+new.b"))
));

INSERT INTO t1 SET a=1,b=2,c=3 AS new
  ON DUPLICATE KEY UPDATE c = new.a+new.b;


Closing, since the patch is outdated


Question regarding running given algorithms on Nasbench102

Thank you very much for this remarkable contribution.
I am trying to run the given algorithms on Nasbench102, I noticed that data path has to be given, why is it needed since the benchmark dataset already has all the evaluation results? What should I do if I just want to test those algorithms on Nasbench102?
Thank you very much!

Hi, originally, I hope to provide an alternative option to obtain the performance (training and evaluating) instead of getting from API. Indeed, the current script does not need to set the data path. I just simplify the codes of RS, R-EA, REINFORCE, and BOHB. You can try them know (I already remove the data path args):
[7] bash ./scripts-search/algos/R-EA.sh -1
[8] bash ./scripts-search/algos/Random.sh -1
[9] bash ./scripts-search/algos/REINFORCE.sh -1
[10] bash ./scripts-search/algos/BOHB.sh -1

Note that, DARTS/GDAS/SETN/RANDOM-NAS/ENAS still need to set the data path, because they share the parameters of all architectures. But after searching, using our API, you can directly obtain the performance of their searched architecture without re-training them on CIFAR-10 / CIFAR-100 / ImageNet-16-120.

@pipilurj I will temporally close this issue, please feel free to re-open it if you have further questions.

Ok！ Thank you very much for your reply!
D-X-Y<EMAIL_ADDRESS>周三上午9:56写道：

@pipilurj https://github.com/pipilurj I will temporally close this
issue, please feel free to re-open it if you have further questions.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/D-X-Y/NAS-Projects/issues/44?email_source=notifications&email_token=AIS6CU5WQRL2LERVNTZWI63Q3PZ3DA5CNFSM4KBT5X3KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEH43QOY#issuecomment-570013755,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AIS6CU2UPEWPCJTLSJ56LJDQ3PZ3DANCNFSM4KBT5X3A
.

--
Best Regards,
Renjie PI


How to change color of Preview panel ? [Transparent Blue Rect]

Hi dear devs , How can I change color of preview panel on dragging ?
https://pasteboard.co/IeWhrad.jpg
I tried to find it but I don't know what is the name of this thing :D
thanks

The UI element is the drag form (DragForm.cs) and its colors are set in
https://github.com/dockpanelsuite/dockpanelsuite/blob/master/WinFormsUI/ThemeVS2012/VS2012DockOutlineFactory.cs#L22

That's it , Thank you !


Update texteditor for new husky ckeditor parameters

Tasks:

[x] gather feedback for my changes
[x] submit changes to the documentation
[x] added changelog line
[x] merge https://github.com/massiveart/husky/pull/478
[ ] merge https://github.com/sulu-io/sulu-standard/pull/454

Informations:

Q
A

Tests pass?
none

Fixed tickets
fixes #1041 fixes #896 fixes #864

BC Breaks
yes

Doc
https://github.com/sulu-io/sulu-docs/pull/35

@danrot / @wachterjohannes  husky is updated and this PR is ready for review. its based on https://github.com/massiveart/husky/pull/478
/cc @c00n84

@wachterjohannes any ideas why texteditor is not being saved on the page?

@wachterjohannes sorry my fail :)

Should iFrames and scripts now be true by default?

I personally would not allow iFrames and scripts by default. @c00n84 what do you thing?

@chirimoya @danrot I think it's okay when iframe and script tags are not default. I can live with that. So everyone can configure it, if he wants to.

iframes and scripts deactivated in default texteditor config

Please update docu ... http://docs.sulu.io/en/latest/reference/content-types/text_editor.html

@alexander-schranz max_height doesn't seem to work. can you check?

@chirimoya docs added: https://github.com/sulu-io/sulu-docs/pull/35,
max_height I cant reproduce

@alexander-schranz looks like it was a caching problem. works now


list SNPs and their proteins that do not have pathways yet (WikiPathways + Reactome)

Got a from Marek (UMC) a list of diseases and genes, in the supp info, from this article: https://onlinelibrary.wiley.com/doi/10.1002/jimd.12348

I have converted the spreadsheet into RDF Turtle now.

I'm glad you found the table useful!

I'm glad you found the table useful!

We did not quite get to the SNPs, but just having the list of genes indeed was very useful!


New CSS causes odd skipping on page refresh

The new CSS layout is causing the testing page to "bug out" for a split second on each page refresh.  Page flickering, I guess you could call it?

Solved by removing full materialize.css file.  We can re-implement it without the full file.


I have ERROR

ERROR:
Cannot read property 'bind' of undefined
CALL STACK:
TypeError: Cannot read property 'bind' of undefined
at JQueryWebPart../sp-webpart-base.js.WEBPACK_AMD_DEFINE_RESULT../lib/core/BaseClientSideWebPart.js.BaseClientSideWebPart._internalInitialize (https://localhost:4321/node_modules/@microsoft/sp-webpart-base/dist/sp-webpart-base_en-us.js:1666:35)
at ClientSideWebPartManager../sp-webpart-base.js.WEBPACK_AMD_DEFINE_RESULT../lib/core/ClientSideWebPartManager.js.ClientSideWebPartManager._initializeWebPart (https://localhost:4321/node_modules/@microsoft/sp-webpart-base/dist/sp-webpart-base_en-us.js:3684:17)
at https://localhost:4321/node_modules/@microsoft/sp-webpart-base/dist/sp-webpart-base_en-us.js:2943:31
I have this error, when i am trying to add jquery accordion to web part. Can anyone help me ?

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

ID: 9f5a35c2-9914-fc67-1550-15d4f63c918c
Version Independent ID: 8418c398-1a93-622d-4df8-84c866fef67f
Content: Add jQueryUI Accordion to your SharePoint client-side web part
Content Source: docs/spfx/web-parts/get-started/add-jqueryui-accordion-to-web-part.md
Product: sharepoint
Technology: sharepoint-framework
GitHub Login: @spdevdocs
Microsoft Alias: spdevdocs

Thank you for the issue. Can you provide some more information us?

What version of SPFx/Node/NPM are you using?
When does the error happen?
Does the error happen  when you do gulp serve, or does it happen when you try to add the web part to a page?

I have just ran through the tutorial and I am not receiving this error.


not able to launch posix_sitl.launch

Hi
I have followed the instruction from here https://dev.px4.io/en/simulation/ros_interface.html and after successful build i did roslaunch px4 posix_sitl.launch  and its showing me :
ResourceNotFound: gazebo_ros
ROS path [0]=/opt/ros/kinetic/share/ros
ROS path [1]=/home/zubair/px4_ws/src/mavlink
ROS path [2]=/home/zubair/px4_ws/src/mavros/libmavconn
ROS path [3]=/home/zubair/px4_ws/src/mavros/mavros_msgs
ROS path [4]=/home/zubair/px4_ws/src/mavros/mavros
ROS path [5]=/home/zubair/px4_ws/src/mavros/mavros_extras
ROS path [6]=/home/zubair/px4_ws/src/mavros/test_mavros
ROS path [7]=/opt/ros/kinetic/share
ROS path [8]=/home/zubair/src/Firmware
ROS path [9]=/home/zubair/src/Firmware/Tools/sitl_gazebo
ROS path [10]=/home/zubair/Firmware
ROS path [11]=/home/zubair/Firmware/Tools/sitl_gazebo
I am using ROS Kinetic by the way
can anyone help me with this ??

What Ubuntu platform are you running on and what script did you use to set up the environment?

Thanks, I just solved the problem by using "aptitude" and by installing ros
packages again using aptitude as I had broken packages..
To people facing the same problem.
On Thu 31 May, 2018, 00:20 Hamish Willee<EMAIL_ADDRESS>wrote:

What Ubuntu platform are you running on and what script did you use to set
up the environment?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/PX4/Firmware/issues/9568#issuecomment-393350324, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AQrq2wAXE3Eiy6X5FQObXbn4N2tku9zHks5t3ylVgaJpZM4UUF1_
.

Yes. gazebo_ros is the package that allows Gabezo to interface with ROS. Possibly you didn't install ROS with desktop-full, which contains this package.


Build All Wheels using cibuildwheel

This PR will bring in the following changes:

Build all wheels using cibuildwheel
Add in python 3.11 support for uamqp
Update openSSL version


Deployed in multiple ec2 instance

We deploy jgroups-docker in multiple ec2 instance in AWS and we use the JDBC_PING in JGroup.
The question is how to config bind_addr in jgroup configuration file.
Could you provide an example ?
Thanks

How do you deploy? Do you use --net=host?
You need to find out the interface that works if you use (for example) netcat (netcat -s and netcat -c) to establish a TCP connection between 2 hosts.
That interface should be bind_addr. If you look at [1] (bottom of page), you can use symbolic names to pick the bind address. JDBC_PING picks up the bind address from the transport (TCP).
[1] http://www.jgroups.org/manual4/index.html#Transport


rke2 cluster upgrade fails to respond until Edit as Yaml Button is clicked

Rancher Server Setup

Rancher version: v2.6.5-rc6
Installation option (Docker install/Helm Chart):

sudo docker run -d --privileged --restart=unless-stopped -p 80:80 -p 443:443 -e CATTLE_BOOTSTRAP_PASSWORD=<REDACTED> rancher/rancher:v2.6.5-rc6"

Information about the Cluster
Cluster Configuration:
3 etcd nodes, 2 cp and 2 worker nodes

Kubernetes version: Upgrade from v1.21.12+rke2r1 to v1.22.9-rc1+rke2r2 or v1.22.9-rc1+rke2r2 to v1.23.6-rc1+rke2r2
Infrastructure Provider: Cluster provisioned using Amazon EC2

User Information

What is the role of the user logged in? (Admin/Cluster Owner/Cluster Member/Project Owner/Project Member/Custom): Admin

Describe the bug
While upgrading the cluster with above mentioned version, upgrade fails to respond and displays below messages

To Reproduce

Provision a 3 etcd nodes, 2 cp and 2 worker nodes rke2 cluster with v1.21.12+rke2r1
Point the KDM to Developers branch with latest version updates.
Upgrade the cluster by clicking on Edit Config and selecting the version to upgrade to v1.22.9-rc1+rke2r2
Upgrade process does not start.
Click on Edit as yaml, do nothing and click on Save, upgrade process is now triggered.

Expected Result
When new version is selected and on clicking Save upgrade process should start.
Actual Result
Unless Edit as Yaml button is clicked and saved upgrade process does not start
** Additional info**
When Save button is clicked

Verified working on 2.6-head 054b5d1-

Created an rke2 node driver 3 worker + 1 etcd + 1 cp on v1.21.12+rke2r1
Upgraded the cluster to v1.22.9-rc1+rke2r2.
Upgrade went through fine without any errors.

Confirming it works as expected in 2.6-head. Upgraded the cluster from v1.22.9-rc1+rke2r2 to v1.23.6-rc1+rke2r2
Closing issue.


v5

[x] deprecate greed option
[x] implement new catch method
[x] deprecate complex config
[x] deprecate useNonGlobalFetch
[x] Global config for sendAsJSON
[ ] Accept a Response object as a response in .mock() waiting on https://github.com/bitinn/node-fetch/pull/132
[x] Expose fetch-mock's mockResponse() internal as a utility
[x] reset and restore return fetchMock instance
[x] deprecate reMock
[ ] write upgrade notes
[x] deprecate accepting an array of routes

[x] bind fetchMock.mock to fetchMock so can be passed into [].map()

[ ] regex call matching #83 ???
[x] API change to mock(matcher, response, options)

[x] get, post, put, delete, head shorthands
[ ] Configure number of times a mock can be used
[ ] mockOnce, getOnce, postOnce etc

The last change to mock! 👍

mainly done. Gonna go for a release

https://github.com/wheresrhys/fetch-mock/pull/110

Ah no, blocked by bitinn/node-fetch#132

Just vote it :)

I just saw your commit about shorthands, what you think about PATCH?

If you want to add a PR for it after v5 is released I'll consider it if other users :+1: it. get, post, put, delete and head are the 'Big 5' methods, and as long as fetch-mock provides an api to target other methods I'm reasonably comfortable with leaving the shorthand coverage at that. I might add OPTINS too.
What's your use case for PATCH? I've never had to use it

Sure, I will add it :)
I've used PATH neither, just thinking about offer more options to the users


Reverse option for asymmetric diverging colors not respecting left and right

Hi again!
I've been testing the latest release in our app and it works like a charm! our custom palettes are fully integrated with Dicopal :)
I noticed a minor issue when reversing unbalanced diverging schemes:
If you reverse, the left and right parameters are not reflected in the colors returned.

I suppose that the expected behavior in this example would be that there are 4 reds to the left and 2 blues to the right.
Screenshot taken from this notebook: https://observablehq.com/d/7a162d4ac1f308bb
Thanks again for your marvelous work!
Joe

Thank you for your feedback and your kind words!
You're right, I guess currently it simply inverts the generated palette rather than inverting the number of classes left and right before generating it :facepalm::sweat_smile:
I'm going to fix this soon (we're facing this issue in one of our app too).


Feature request: Custom image for weather icon

As far as I can tell, we can only use mdi icons for weather icon. The API I'm using provides its own image and there can be a lot of variants of the icon (see https://om.yr.no/symbol/) so it's hard to map all of those to mdi icons. So I would suggest having support for specifying own icon image instead of using mdi icons.

Just realized that not mdi icons are used but included svg icons. Still, it would be a lot of work to try to map those to ones provided by yr and probably some wouldn't match exactly.

We are actually using Weather Underground icons with images stored in \images\weather-icons.

So what does YR sensor return? What is the value of the icon?

It returns numeric value of the icon in state (for example sensor.yr_symbol.state: 2) and corresponding URL of the icon image in attributes:
attribution: Weather forecast from met.no, delivered by the Norwegian Meteorological Institute. friendly_name: YR Symbol
entity_picture: https://api.met.no/weatherapi/weathericon/1.1/?symbol=2;content_type=image/png

I could take a shot at implementing this if you agree it is useful and we can agree on how it should be defined in the config file.

I'm not claiming that YR's images are better visually but if the choice is to either do the manual labor of mapping YR's icons to bundled ones (and as I said, there would probably be no 1=1 matches for some icons -- but possibly I'm wrong here) or just using whatever API provides, then I would think that latter is easier and more future proof.
YR does actually also provides icons in SVG format so it would work in all sizes.
For example: https://www.yr.no/grafikk/sym/v2016/svg/01d.svg
There is more information about the API here: https://om.yr.no/info/verdata/spesifikasjon/ (in Norwegian).
Unfortunately the HA component (https://www.home-assistant.io/components/sensor.yr/) doesn't expose URLs of those "new" images (there is "old" and "new" variant of icons), so it would be hard to use those SVG images currently. The component would need to be updated first...

We could create a CSS file with classes for YR icons. Let's think about it.

We could create a CSS file with classes for YR icons. Let's think about it.

Sure but that would be catering for one specific sensor instead of having generic solution.

Couldn't you just use the .attributes.entity_picture of the YR sensor as the icon on the weather tile?

As far as I can see from the code, the value of the icon property (also value returned from iconMap) is just applied as a class name. So it wouldn't work to specify image URL here.

I've implemented this for myself. Feel free to review and decide if it's worth it.


Request PoST providers only on a proper screen in Smeshing Setup

It closes #1496 and makes https://github.com/spacemeshos/go-spacemesh/issues/4754 a bit less critical :)

@monikasmolarek if we will call it earlier it actually may cause the freezing of the PC on the earlier step, where it is not apparent why it consumes so much resources and freezes everything.
So I think it is fine to have "Detecting PoS processors..." on this screen for a while. In case you think it is not obvious — we can tweak the GUI on this screen, e.g. extend this text to "Detecting PoS processors, please wait..." and make it orange, for example.

since GPU benchmarking may freeze PC for a while — I think we should not put there any animated spinners :)

Okay, I'll merge this PR now
If you think we'll need to tweak GUI — please open another issue for it ;)


Update training_tricks.py

What does this PR do?
reset auto_lr_find so that it would not be called during batch size seach
Fixes # (3088)
Before submitting

[x] Was this discussed/approved via a Github issue? (no need for typos and docs improvements)
[x] Did you read the contributor guideline, Pull Request section?
[x] Did you make sure your PR does only one thing, instead of bundling different changes together? Otherwise, we ask you to create a separate PR for every change.
[ ] Did you make sure to update the documentation with your changes?
[ ] Did you write any new necessary tests?
[ ] Did you verify new and existing tests pass locally with your changes?
[ ] If you made a notable change (that affects users), did you update the CHANGELOG?

PR review
Anyone in the community is free to review the PR once the tests have passed.
If we didn't discuss your PR in Github issues there's a high chance it will not be merged.
Did you have fun?
Make sure you had fun coding 🙃

Hello @LeeJZh! Thanks for opening this PR.

In the file pytorch_lightning/trainer/training_tricks.py:

Line 230:34: E261 at least two spaces before inline comment

Do see the Hitchhiker's guide to code style


Remove scipy dependency

scipy is a slightly hefty dependency at 37.2 MB. It's only used for softmax and log_softmax, which can be implemented in numpy
The implementations are almost copy-pasted from scipy, so they are equally efficient:
# ipython
import numpy as np
import scipy.special
from guidance._utils import log_softmax, softmax

size = (10, 32_000)
logits: np.ndarray = -np.random.uniform(low=0, high=60, size=size)

%timeit log_softmax(logits, axis=-1)
%timeit scipy.special.log_softmax(logits, axis=-1)

%timeit softmax(logits, axis=-1)
%timeit scipy.special.softmax(logits, axis=-1)

Thanks @kddubey ! Looks good will merge if tests and review look good.


Fix join() in Glide service

There is still a deprecated join() in the codebase that makes Glide choke in PHP 7.4. This PR hopeful fixes it 🎉

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

Any plan on fixing this ? This breaks the whole CMS on PHP 7.4 ...

🆒


⚠ Bofrost.at has degraded performance

In a841d14, Bofrost.at (https://www.bofrost.at) experienced degraded performance:

HTTP code: 200
Response time: 2880 ms

Resolved: Bofrost.at performance has improved in 04d0a4b.