cmd/go: option to display accumulated cgo LDFLAGS for -buildmode=c-archive/c-shared

Trying to build a simple Go library that spins up an http.Server from a call in C, but it fails to compile the C against the produced library object. Similar examples without involving http work just fine.
$ go version
go version devel +a2aaede Wed Jun 17 14:55:39 2015 +0000 darwin/amd64
$ ld -v
@(#)PROGRAM:ld  PROJECT:ld64-241.9
configured to support archs: armv6 armv7 armv7s arm64 i386 x86_64 x86_64h armv6m armv7m armv7em
LTO support using: LLVM version 3.5svn
$ gcc --version
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 6.0 (clang-600.0.57) (based on LLVM 3.5svn)
Target: x86_64-apple-darwin13.4.0
Thread model: posix

Error:
$ gcc -o gohttp-c examples/c/main.c gohttplib.a -lpthread
Undefined symbols for architecture x86_64:
  "_CFArrayGetCount", referenced from:
      _FetchPEMRoots in gohttplib.a(000003.o)
  "_CFArrayGetValueAtIndex", referenced from:
      _FetchPEMRoots in gohttplib.a(000003.o)
  "_CFDataAppendBytes", referenced from:
      _FetchPEMRoots in gohttplib.a(000003.o)
  "_CFDataCreateMutable", referenced from:
      _FetchPEMRoots in gohttplib.a(000003.o)
  "_CFDataGetBytePtr", referenced from:
      _FetchPEMRoots in gohttplib.a(000003.o)
      __cgo_6dbb806e9976_Cfunc_CFDataGetBytePtr in gohttplib.a(000003.o)
     (maybe you meant: __cgo_6dbb806e9976_Cfunc_CFDataGetBytePtr)
  "_CFDataGetLength", referenced from:
      _FetchPEMRoots in gohttplib.a(000003.o)
      __cgo_6dbb806e9976_Cfunc_CFDataGetLength in gohttplib.a(000003.o)
     (maybe you meant: __cgo_6dbb806e9976_Cfunc_CFDataGetLength)
  "_CFRelease", referenced from:
      _FetchPEMRoots in gohttplib.a(000003.o)
      __cgo_6dbb806e9976_Cfunc_CFRelease in gohttplib.a(000003.o)
     (maybe you meant: __cgo_6dbb806e9976_Cfunc_CFRelease)
  "_SecKeychainItemExport", referenced from:
      _FetchPEMRoots in gohttplib.a(000003.o)
  "_SecTrustCopyAnchorCertificates", referenced from:
      _FetchPEMRoots in gohttplib.a(000003.o)
  "_kCFAllocatorDefault", referenced from:
      _FetchPEMRoots in gohttplib.a(000003.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [example-c] Error 1

More thorough description and full code examples are available in this StackOverflow question.
This might be related to the OSX/darwin arch as a commenter was able to get it working on Ubuntu.

Does it work if you add "http://go/gocomments#TOC-ErrorStrings" to the gcc link line?  Probably just before the -pthread option.
I took those options from the # cgo LDFLAGS line in crypto/x509/root_cgo_darwin.go.  I don't see a way for us to add those lines to the final command line, as that is not under our control.  I don't know if there is a way to avoid needing them at all.  There may be Darwin-specific approaches that I am not aware of.

@ianlancetaylor Aha, this does the trick indeed:
gcc -o gohttp-c examples/c/main.c gohttplib.a -framework CoreFoundation -framework Security -lpthread

(I think you have a mispaste in your comment with "http://go/gocomments#TOC-ErrorStrings")

Fixed the mispaste, sorry about that.
I'm going to postpone this to 1.6.  I don't know what to do about it, but maybe someone can think of something.

Sounds like this is a documentation issue. I don't know of any magic way to convince the linker to automatically link a library. And if Ian doesn't, there probably isn't one.

@ianlancetaylor, I think this is a documentation issue, but where do we put the note that the final link will need to include libraries used by the Go sources? Is there something other than your build modes doc?

I started to write docs in helpBuildmode in cmd/go/help.go, but it's too horrible to make people dig into the crypto/x509 sources to figure out what options to pass.  I think what we need to do is have a way for cmd/go to print out the accumulated cgo LDFLAGS from the packages added to a c-archive or c-shared build.  Then people can in principle capture that at the time they build the archive/shared library (probably using a Makefile), and pass it on their final linker command line.
So, postponing until 1.7.

As a follow up to this, there is a bigger related issue on iOS. The following functions exist on macOS but not on iOS:
SecTrustSettingsCopyCertificates
SecTrustSettingsCopyTrustSettings
SecCertificateCopyNormalizedSubjectContent
SecCertificateCopyNormalizedIssuerContent
SecItemExport
So adding -framework Security doesn't help there. This means that any code that imports net/http (or anything else that uses crypto/x509) can not be used on iOS.


is that possible to use full INT8 during tiny-yolo-v3

Hi @AlexeyAB
I would like to know is that possible to use full INT8 during all yolo-light2

after pre-processing layer
is that possible to convert it to INT8 before entering the first layer
can i use INT8/INT16 bias
can I save output to 8 bit before next layer (of course befoer yolo layer it still float32)

@AlexeyAB
Answer for myself
All 3 questions are yes, and i have tested with CPU
I want to run quantization with pure CPU mode.
And When I change the Makefile to let yolo2-light running on CPU mode.
the mAP drops to very low, after I trace the code, i noticed the quantization of CUDNN mode is different with running GPU mode (some layer don't quantize in CUDNN mode)
Now the question is, on yolov2 or yolov3, on CUDNN examples, the size=1 & stride=2 layer doesn't do the quantize, but is it possible to do quantize with CPU mode?
And if i want to change the CPU to support all convolution layer quantization, where should i moidfy?

@jasonwu1977 hi Jason, I met similar issue as you, could you can talk it more about it through my qq 494529371? big thanks.

Have you sloved it out yet? or anyone else know?


OpenFold with MMSeqs2

Although OpenFold supports MSA generation by MMSeqs2, it appears that BatchFold has no provision to use it. Could you please add support for it?

Hi @ssrb19 , thanks for your question! We did some testing of MMSeqs2 last year and found that it isn't a good fit for batch execution. When you run analysis with MMSeqs2 via tools like ColabFold, it submits jobs to a web server hosted by an academic team. This server keeps the indexed reference database in memory, which allows it to respond to requests very quickly. However, when running analyses in batch, the time it takes to load and index the reference data on a new instance eliminates much of the speed advantages of MMSeqs2 over JackHMMER/hhbilts. This is why we made the decision against including MMSeqs in our architecture. I hope this helps!


Dataclass deepcopy 1.10

This PR adds a test and a fix for issue #4949.
resolves #4949

@PrettyWood Sure, I'll add __copy__.
While pondering how it should behave, I realized that Python does not copy types: copy(T) is T and deepcopy(T) is T.
Maybe DataclassProxy instances should behave like types and have __copy__/__deepcopy__ just return self?

@mbillingr Yes but here we speak about instances of DataclassProxy, not DataclassProxy itself.
So copy and deepcopy should return a new instance

@PrettyWood you are right, of course. Although these instances are used like types they are not supposed to pretend to be types.
I have added a test and implementation for __copy__.
Also, I've made the assumption explicit in the tests that the copied thing is not the original .
Please review.

ping @PrettyWood
Just a small reminder that this PR is still around :)

Thank you so much


The phone number is invalid (caused by SendCodeRequest)  and no data found to publish site

Running into this error when running tg-archive --sync
Traceback (most recent call last):
File "/home/lode/.local/bin/tg-archive", line 11, in <module>
sys.exit(main())
File "/home/lode/.local/lib/python3.6/site-packages/tgarchive/__init__.py", line 119, in main
Sync(cfg, args.session, db.DB(args.data)).sync(args.id)
File "/home/lode/.local/lib/python3.6/site-packages/tgarchive/sync.py", line 33, in __init__
self.client.start()
File "/home/lode/.local/lib/python3.6/site-packages/telethon/client/auth.py", line 133, in start
else self.loop.run_until_complete(coro)
File "/usr/lib/python3.6/asyncio/base_events.py", line 484, in run_until_complete
return future.result()
File "/home/lode/.local/lib/python3.6/site-packages/telethon/client/auth.py", line 189, in _start
await self.send_code_request(phone, force_sms=force_sms)
File "/home/lode/.local/lib/python3.6/site-packages/telethon/client/auth.py", line 515, in send_code_request
phone, self.api_id, self.api_hash, types.CodeSettings()))
File "/home/lode/.local/lib/python3.6/site-packages/telethon/client/users.py", line 30, in __call__
return await self._call(self._sender, request, ordered=ordered)
File "/home/lode/.local/lib/python3.6/site-packages/telethon/client/users.py", line 79, in _call
result = await future
telethon.errors.rpcerrorlist.PhoneNumberInvalidError: The phone number is invalid (caused by SendCodeRequest)

session.session file is created though, running tg-archive --build gives
2021-05-25 17:02:31,213: building site                                                                                2021-05-25 17:02:31,236: no data found to publish site
Do I need to paste the group ID with "@" in the yaml file?
This is my yaml file, do I need to edit something?:
# Telegram API ID and hash from the Telegram dev portal.
# Signup for it here: https://my.telegram.org/auth?to=apps
api_id: "redacted"
api_hash: "redacted"
# Telegram channel / group name to import. Your user account
# that was used to creat the API ID should be a member of this group.
group: "redacted"
# Avatars and media will be downloaded into media_dir.
download_media: True
download_avatars: True
avatar_size: [64, 64] # Width, Height.
media_dir: "media"
# These should be configured carefully to not get rate limited by Telegram.
# Number of messages to fetch in one batch.
fetch_batch_size: 2000
# Seconds to wait after fetching one full batch and moving on to the next one.
fetch_wait: 5
# Max number of messages to fetch across all batches before the stopping.
# This should be greater than fetch_batch_size.
# Set to 0 to never stop until all messages have been fetched.
fetch_limit: 0
publish_dir: "site"
static_dir: "static"
per_page: 500
show_day_index: True
# URL to link Telegram group names and usernames.
telegram_url: "https://t.me/{id}"
# IMPORTANT: Telegram shows the full name on your (API key holder's)
# phonebook for users who are in your phonebook.
show_sender_fullname: False
publish_rss_feed: True
rss_feed_entries: 100 # Show Latest N messages in the RSS feed.
# Root URL where the site will be hosted. No trailing slash.
site_url: "https://mysite.com"
site_name: "@{group} - Telegram group archive"
site_description: "Public archive of Telegram messages."
meta_description: "@{group} {date} - Telegram message archive."
page_title: "Page {page} - {date} @{group} Telegram message archive."

Do I need to paste the group ID with "@" in the yaml file?

No, the just the group ID is enough. eg: fossunited

The phone number is invalid (caused by SendCodeRequest)

Looks like you are specifying an invalid phone number, so clearly the OTP auth + actual session creation has not happened. Delete the session file and try again with a country code prefixed phone number. eg: +91123456789.

Got there indeed the country code was the mistake, was typing the country code and pasting the rest.
It went ahead, and send the verification code in Telegram. When I run tg-archive --sync
The errors are now:
2021-05-25 17:32:50,249: Failed to load SSL library: <class 'OSError'> (no library called "ssl" found)                                                                                2021-05-25 17:32:50,519: starting Telegram sync (batch_size=2000, limit=0, wait=5)                                                                                2021-05-25 17:32:50,526: Connecting to <IP_ADDRESS>:443/TcpFull...                                                                                2021-05-25 17:32:50,546: Connection to <IP_ADDRESS>:443/TcpFull complete!                                                                                2021-05-25 17:32:50,566: The server closed the connection                                                                                2021-05-25 17:32:50,566: Connection closed while receiving data                                                                                2021-05-25 17:32:50,569: Closing current connection to begin reconnect...                                                                                2021-05-25 17:32:50,570: Connecting to <IP_ADDRESS>:443/TcpFull...                                                                                2021-05-25 17:32:50,591: Connection to <IP_ADDRESS>:443/TcpFull complete!                                                                                2021-05-25 17:32:51,657: downloading avatar #1880607048                                                                                2021-05-25 17:32:51,737: error downloading avatar: #1880607048: cannot identify image file <_io.BytesIO object at 0x000001BB40605090>                                                                                2021-05-25 17:32:51,737: downloading avatar #1893680481                                                                                2021-05-25 17:32:51,740: error downloading avatar: #1893680481: cannot identify image file <_io.BytesIO object at 0x000001BB40867C70>                                                                                2021-05-25 17:32:51,741: downloading avatar #1893680481                                                                                2021-05-25 17:32:51,741: error downloading avatar: #1893680481: cannot identify image file <_io.BytesIO object at 0x000001BB4086C270>                                                                                2021-05-25 17:32:51,742: downloading avatar #1639782558                                                                                2021-05-25 17:32:51,742: error downloading avatar: #1639782558: cannot identify image file <_io.BytesIO object at 0x000001BB4086C2C0>                                                                                2021-05-25 17:32:51,744: downloading avatar #1632773503                                                                                2021-05-25 17:32:51,744: error downloading avatar: #1632773503: cannot identify image file <_io.BytesIO object at 0x000001BB4086C4A0>                                                                                2021-05-25 17:32:51,751: downloading avatar #1864639196                                                                                2021-05-25 17:32:51,751: error downloading avatar: #1864639196: cannot identify image file <_io.BytesIO object at 0x000001BB4086C540>                                                                                2021-05-25 17:32:51,752: downloading avatar #1547928260                                                                                2021-05-25 17:32:51,753: error downloading avatar: #1547928260: cannot identify image file <_io.BytesIO object at 0x000001BB4086C4F0>                                                                                2021-05-25 17:32:51,758: downloading avatar #1864639196                                                                                2021-05-25 17:32:51,758: error downloading avatar: #1864639196: cannot identify image file <_io.BytesIO object at 0x000001BB4086C5E0>                                                                                2021-05-25 17:32:51,759: downloading avatar #1707481749                                                                                2021-05-25 17:32:51,759: error downloading avatar: #1707481749: cannot identify image file <_io.BytesIO object at 0x000001BB4086C860>                                                                                2021-05-25 17:32:51,760: downloading avatar #1867406902                                                                                2021-05-25 17:32:51,760: error downloading avatar: #1867406902: cannot identify image file <_io.BytesIO object at 0x000001BB4086C950>                                                                                2021-05-25 17:32:51,762: downloading avatar #1115737285                                                                                2021-05-25 17:32:51,762: error downloading avatar: #1115737285: cannot identify image file <_io.BytesIO object at 0x000001BB4086C9A0>                                                                                2021-05-25 17:32:51,769: downloading avatar #1751041962                                                                                2021-05-25 17:32:51,773: error downloading avatar: #1751041962: cannot identify image file <_io.BytesIO object at 0x000001BB4086CC20>                                                                                2021-05-25 17:32:51,774: downloading avatar #1864639196                                                                                2021-05-25 17:32:51,774: error downloading avatar: #1864639196: cannot identify image file <_io.BytesIO object at 0x000001BB4086CD60>                                                                                2021-05-25 17:32:51,775: downloading avatar #1675607009                                                                                2021-05-25 17:32:51,775: error downloading avatar: #1675607009: cannot identify image file <_io.BytesIO object at 0x000001BB4086CEA0>                                                                                2021-05-25 17:32:51,775: downloading media #27                                                                                2021-05-25 17:32:51,777: Starting direct file download in chunks of 131072 at 0, stride 131072                                                                                2021-05-25 17:32:51,814: Starting direct file download in chunks of 131072 at 0, stride 131072                                                                                2021-05-25 17:32:51,855: downloading avatar #1872302161                                                                                2021-05-25 17:32:51,855: error downloading avatar: #1872302161: cannot identify image file <_io.BytesIO object at 0x000001BB40876360>                                                                                2021-05-25 17:32:51,859: downloading avatar #1707481749                                                                                2021-05-25 17:32:51,859: error downloading avatar: #1707481749: cannot identify image file <_io.BytesIO object at 0x000001BB408764F0>                                                                                2021-05-25 17:32:51,859: downloading avatar #1774859119                                                                                2021-05-25 17:32:51,860: error downloading avatar: #1774859119: cannot identify image file <_io.BytesIO object at 0x000001BB40876590>                                                                                2021-05-25 17:32:51,861: downloading avatar #1718198442                                                                                2021-05-25 17:32:51,862: error downloading avatar: #1718198442: cannot identify image file <_io.BytesIO object at 0x000001BB40876720>                                                                                2021-05-25 17:32:51,868: downloading avatar #1681021111                                                                                2021-05-25 17:32:51,868: error downloading avatar: #1681021111: cannot identify image file <_io.BytesIO object at 0x000001BB40876860>                                                                                2021-05-25 17:32:51,869: downloading avatar #1681021111                                                                                2021-05-25 17:32:51,869: error downloading avatar: #1681021111: cannot identify image file <_io.BytesIO object at 0x000001BB40876900>                                                                                2021-05-25 17:32:51,870: downloading avatar #1681021111                                                                                2021-05-25 17:32:51,870: error downloading avatar: #1681021111: cannot identify image file <_io.BytesIO object at 0x000001BB408768B0>                                                                                2021-05-25 17:32:51,871: downloading avatar #1707610380                                                                                2021-05-25 17:32:51,871: error downloading avatar: #1707610380: cannot identify image file <_io.BytesIO object at 0x000001BB40876CC0>                                                                                2021-05-25 17:32:51,872: downloading avatar #1294697289                                                                                2021-05-25 17:32:51,872: error downloading avatar: #1294697289: cannot identify image file <_io.BytesIO object at 0x000001BB40876D60>                                                                                2021-05-25 17:32:51,873: downloading avatar #1707481749                                                                                2021-05-25 17:32:51,873: error downloading avatar: #1707481749: cannot identify image file <_io.BytesIO object at 0x000001BB40876D10>                                                                                2021-05-25 17:32:51,874: downloading avatar #1707481749                                                                                2021-05-25 17:32:51,874: error downloading avatar: #1707481749: cannot identify image file <_io.BytesIO object at 0x000001BB40876E00>                                                                                2021-05-25 17:32:51,874: downloading media #46                                                                                2021-05-25 17:32:51,876: Starting direct file download in chunks of 131072 at 0, stride 131072                                                                                2021-05-25 17:32:51,976: Starting direct file download in chunks of 131072 at 0, stride 131072                                                                                2021-05-25 17:32:52,014: downloading avatar #1707481749                                                                                2021-05-25 17:32:52,014: error downloading avatar: #1707481749: cannot identify image file <_io.BytesIO object at 0x000001BB40876EF0>                                                                                2021-05-25 17:32:52,018: downloading avatar #1708483535                                                                                2021-05-25 17:32:52,019: error downloading avatar: #1708483535: cannot identify image file <_io.BytesIO object at 0x000001BB4087A1D0>                                                                                2021-05-25 17:32:52,019: downloading avatar #781095242                                                                                2021-05-25 17:32:52,019: error downloading avatar: #781095242: cannot identify image file <_io.BytesIO object at 0x000001BB4087A3B0>                                                                                2021-05-25 17:32:52,020: downloading avatar #1504625319                                                                                2021-05-25 17:32:52,020: error downloading avatar: #1504625319: cannot identify image file <_io.BytesIO object at 0x000001BB4087A4F0>                                                                                2021-05-25 17:32:52,021: downloading avatar #1691749202                                                                                2021-05-25 17:32:52,021: error downloading avatar: #1691749202: cannot identify image file <_io.BytesIO object at 0x000001BB4087A590>                                                                                2021-05-25 17:32:52,022: downloading avatar #1850887073                                                                                2021-05-25 17:32:52,022: error downloading avatar: #1850887073: cannot identify image file <_io.BytesIO object at 0x000001BB4087A540>                                                                                2021-05-25 17:32:52,023: downloading avatar #1850887073                                                                                2021-05-25 17:32:52,023: error downloading avatar: #1850887073: cannot identify image file <_io.BytesIO object at 0x000001BB4087A770>                                                                                2021-05-25 17:32:52,024: downloading avatar #1850887073                                                                                2021-05-25 17:32:52,024: error downloading avatar: #1850887073: cannot identify image file <_io.BytesIO object at 0x000001BB4087A950>                                                                                2021-05-25 17:32:52,025: downloading avatar #1215290474                                                                                2021-05-25 17:32:52,025: error downloading avatar: #1215290474: cannot identify image file <_io.BytesIO object at 0x000001BB4087AC70>                                                                                2021-05-25 17:32:52,026: downloading avatar #1850887073                                                                                2021-05-25 17:32:52,026: error downloading avatar: #1850887073: cannot identify image file <_io.BytesIO object at 0x000001BB4087AD10>                                                                                2021-05-25 17:32:52,027: downloading avatar #1215290474                                                                                2021-05-25 17:32:52,028: error downloading avatar: #1215290474: cannot identify image file <_io.BytesIO object at 0x000001BB4087B130>                                                                                2021-05-25 17:32:52,029: downloading avatar #1576565460                                                                                2021-05-25 17:32:52,035: error downloading avatar: #1576565460: cannot identify image file <_io.BytesIO object at 0x000001BB4087B270>                                                                                2021-05-25 17:32:52,041: downloading avatar #1850887073                                                                                2021-05-25 17:32:52,042: error downloading avatar: #1850887073: cannot identify image file <_io.BytesIO object at 0x000001BB4087B3B0>                                                                                2021-05-25 17:32:52,043: downloading avatar #1850887073                                                                                2021-05-25 17:32:52,043: error downloading avatar: #1850887073: cannot identify image file <_io.BytesIO object at 0x000001BB4087B590>                                                                                2021-05-25 17:32:52,045: downloading avatar #1850887073                                                                                2021-05-25 17:32:52,045: error downloading avatar: #1850887073: cannot identify image file <_io.BytesIO object at 0x000001BB4087B810>                                                                                2021-05-25 17:32:52,051: downloading avatar #1867925334                                                                                2021-05-25 17:32:52,055: error downloading avatar: #1867925334: cannot identify image file <_io.BytesIO object at 0x000001BB4087B8B0>                                                                                2021-05-25 17:32:52,056: downloading avatar #1790755682                                                                                2021-05-25 17:32:52,056: error downloading avatar: #1790755682: cannot identify image file <_io.BytesIO object at 0x000001BB4087B860>                                                                                2021-05-25 17:32:52,057: downloading avatar #1681021111                                                                                2021-05-25 17:32:52,057: error downloading avatar: #1681021111: cannot identify image file <_io.BytesIO object at 0x000001BB4087BAE0>                                                                                2021-05-25 17:32:52,058: downloading avatar #1850887073                                                                                2021-05-25 17:32:52,058: error downloading avatar: #1850887073: cannot identify image file <_io.BytesIO object at 0x000001BB4087BCC0>                                                                                2021-05-25 17:32:52,058: downloading avatar #1681021111                                                                                2021-05-25 17:32:52,059: error downloading avatar: #1681021111: cannot identify image file <_io.BytesIO object at 0x000001BB4087BD60>                                                                                2021-05-25 17:32:52,059: downloading avatar #1077088831                                                                                2021-05-25 17:32:52,060: error downloading avatar: #1077088831: cannot identify image file <_io.BytesIO object at 0x000001BB4087BEA0>                                                                                2021-05-25 17:32:52,060: downloading avatar #1850887073                                                                                2021-05-25 17:32:52,061: error downloading avatar: #1850887073: cannot identify image file <_io.BytesIO object at 0x000001BB4087BF40>                                                                                2021-05-25 17:32:52,062: downloading avatar #1850887073                                                                                2021-05-25 17:32:52,062: error downloading avatar: #1850887073: cannot identify image file <_io.BytesIO object at 0x000001BB405E8EF0>                                                                                2021-05-25 17:32:52,068: downloading avatar #1681021111                                                                                2021-05-25 17:32:52,074: error downloading avatar: #1681021111: cannot identify image file <_io.BytesIO object at 0x000001BB405E8F90>                                                                                2021-05-25 17:32:52,074: downloading avatar #1850887073                                                                                2021-05-25 17:32:52,075: error downloading avatar: #1850887073: cannot identify image file <_io.BytesIO object at 0x000001BB4086C360>                                                                                2021-05-25 17:32:52,075: downloading avatar #1867925334                                                                                2021-05-25 17:32:52,076: error downloading avatar: #1867925334: cannot identify image file <_io.BytesIO object at 0x000001BB4086C400>                                                                                2021-05-25 17:32:52,078: downloading avatar #1681021111                                                                                2021-05-25 17:32:52,085: error downloading avatar: #1681021111: cannot identify image file <_io.BytesIO object at 0x000001BB4086C450>                                                                                2021-05-25 17:32:52,086: downloading avatar #1790755682                                                                                2021-05-25 17:32:52,087: error downloading avatar: #1790755682: cannot identify image file <_io.BytesIO object at 0x000001BB4086C4F0>                                                                                2021-05-25 17:32:52,089: downloading avatar #1850887073                                                                                2021-05-25 17:32:52,090: error downloading avatar: #1850887073: cannot identify image file <_io.BytesIO object at 0x000001BB4086C590>                                                                                2021-05-25 17:32:52,091: downloading avatar #1691749202                                                                                2021-05-25 17:32:52,092: error downloading avatar: #1691749202: cannot identify image file <_io.BytesIO object at 0x000001BB4086C680>                                                                                2021-05-25 17:32:52,093: downloading avatar #216709910                                                                                2021-05-25 17:32:52,095: error downloading avatar: #216709910: cannot identify image file <_io.BytesIO object at 0x000001BB4086C720>                                                                                2021-05-25 17:32:52,096: downloading avatar #1850887073                                                                                2021-05-25 17:32:52,103: error downloading avatar: #1850887073: cannot identify image file <_io.BytesIO object at 0x000001BB4086C860>                                                                                Traceback (most recent call last):                                                                                File "C:\Users\lode_\AppData\Local\Programs\Python\Python39\Scripts\tg-archive-script.py", line 33, in <module>                                                                                sys.exit(load_entry_point('tg-archive==0.3.4', 'console_scripts', 'tg-archive')())                                                                                File "c:\users\lode_\appdata\local\programs\python\python39\lib\site-packages\tgarchive\__init__.py", line 112, in main                                                                                Sync(cfg, args.session, db.DB(args.data)).sync(args.id)                                                                                File "c:\users\lode_\appdata\local\programs\python\python39\lib\site-packages\tgarchive\sync.py", line 60, in sync                                                                                for m in self._get_messages(group_id,                                                                                File "c:\users\lode_\appdata\local\programs\python\python39\lib\site-packages\tgarchive\sync.py", line 121, in _get_messages                                                                                med = self._make_poll(m)                                                                                File "c:\users\lode_\appdata\local\programs\python\python39\lib\site-packages\tgarchive\sync.py", line 182, in _make_poll                                                                                for i, r in enumerate(msg.media.results.results):                                                                                TypeError: 'NoneType' object is not iterable

Can you try and upgrade to v0.3.6?

lode@desktop-terminus:~$ tg-archive --version
v0.3.6

lode@desktop-terminus:~/telegram-group-folder$ tg-archive --sync
2021-05-27 16:57:20,429: starting Telegram sync (batch_size=2000, limit=0, wait=5)
2021-05-27 16:57:20,432: Connecting to <IP_ADDRESS>:443/TcpFull...
2021-05-27 16:57:20,452: Connection to <IP_ADDRESS>:443/TcpFull complete!
Please enter your phone (or bot token): +32484910395
2021-05-27 16:57:37,535: Phone migrated to 4
2021-05-27 16:57:37,558: Reconnecting to new data center 4
2021-05-27 16:57:37,597: Disconnecting from <IP_ADDRESS>:443/TcpFull...
2021-05-27 16:57:37,597: Disconnection from <IP_ADDRESS>:443/TcpFull complete!
2021-05-27 16:57:37,598: Connecting to <IP_ADDRESS>:443/TcpFull...
2021-05-27 16:57:37,973: Connection to <IP_ADDRESS>:443/TcpFull complete!
Please enter the code you received: redacted
Signed in successfully as redacted
2021-05-27 16:57:47,910: downloading avatar #1520078789
2021-05-27 16:57:47,910: Starting direct file download in chunks of 65536 at 0, stride 65536
Traceback (most recent call last):
  File "/home/lode/.local/bin/tg-archive", line 8, in <module>
    sys.exit(main())
  File "/home/lode/.local/lib/python3.6/site-packages/tgarchive/__init__.py", line 119, in main
    Sync(cfg, args.session, db.DB(args.data)).sync(args.id)
  File "/home/lode/.local/lib/python3.6/site-packages/tgarchive/sync.py", line 69, in sync
    self.db.insert_user(m.user)
  File "/home/lode/.local/lib/python3.6/site-packages/tgarchive/db.py", line 174, in insert_user
    """, (u.id, u.username, u.first_name, u.last_name, " ".join(u.tags), u.avatar))
sqlite3.OperationalError: near "ON": syntax error

lode@desktop-terminus:~/Als1manachterjurgen$ tg-archive --build
2021-05-27 17:02:37,245: building site
2021-05-27 17:02:37,268: no data found to publish site

Ok I think it works on Windows Powershell! Nice!
I can see media showing up.
I guess now I need to know how to open the data.sqlite file.
https://user-images.githubusercontent.com/14292591/119850954-4c91c100-bf0e-11eb-9661-5b1f232d8df9.mp4

I guess now I need to know how to open the data.sqlite file.

https://sqlitebrowser.org is great for that.


Add hook for adding .custom-scrollbar to scrollable panels

Create hook
Add extra style to hide arrow, which can surface in cases like this:

This will support cleaning up:

[ ] carbonplan.org/design (via layouts)
[ ] carbonplan.org/research/forest-carbon
[ ] carbonplan.org/research/forest-risks

lgtm!


doc: update the doc of notebook sample

This PR adds some notes and warnings about the geography tag in the asset.
Fixes #725
Signed-off-by: Hui Yu<EMAIL_ADDRESS>

Thanks!
Hopefully https://github.com/fybrik/fybrik/pull/1004 will make this unnecessary but it's great to have proper docs for our current release.

/cherry-pick branch=releases/0.5.1


Enable CI layout reproduction

The new "ci_data.yml" tasks file in the "reproducer" role allows to
fetch data from an existing run output. It will fetch the needed bits,
and get everything ready for the actual deploy, by loading all of the
generated pieces.
It will detect how many compute were engaged in the run, and reflect it
in the generated layout.
The new "ci_job.yml" tasks file will ensure repositories are present,
especially ci-framework and install_yamls, at the expected revision.
It will then generate a playbook, more or less in the same way zuul does
on its own, aggregating the CI playbooks passed via the "run" job
parameter.
Depends-On: https://github.com/openstack-k8s-operators/ci-framework/pull/609
As a pull request owner and reviewers, I checked that:

[ ] Appropriate testing is done and actually running
[ ] Appropriate documentation exists and/or is up-to-date:

[ ] README in the role
[ ] Content of the docs/source is reflecting the changes

recheck

/test all

Generated doc:
https://logserver.rdoproject.org/74/574/bebcf25337ba544b1c7b648afa742aa2b6002996/github-check/cifmw-doc/137a2dd/doc_build/html/cookbooks/reproducer.html
Would be good to get some proper feedback on that as well - to ensure it's clear and easy enough to follow and reproduce a job, with the listed/known limitations :)

/hold
I kind of missed the "how to clean" part... Woopsy.

/unhold

/lgtm

recheck

thank you tempest.


Build fails with "node-gyp" errors after upgrading from vs2017-win2016 image to windows-2019

Description
Submitting issue as requested here.
Our build works using the vs2017-win2016 image, but starting with windows-2019 (and also with windows-2022), it fails on this step:
steps:

task: Npm@1
displayName: 'NPM Install Grunt'
inputs:
command: custom
workingDir: MyCompany.MyDept.WebApp
verbose: false
customCommand: 'install grunt --save-dev'

The log for that step shows this error:
2022-01-11T16:33:15.9639153Z 5233 error gyp ERR! UNCAUGHT EXCEPTION
2022-01-11T16:33:15.9639561Z 5233 error gyp ERR! stack Error: spawn C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\15.0\Bin\MSBuild.exe ENOENT
2022-01-11T16:33:15.9640087Z 5233 error gyp ERR! stack     at Process.ChildProcess._handle.onexit (node:internal/child_process:282:19)
2022-01-11T16:33:15.9640561Z 5233 error gyp ERR! stack     at onErrorNT (node:internal/child_process:477:16)
2022-01-11T16:33:15.9641014Z 5233 error gyp ERR! stack     at processTicksAndRejections (node:internal/process/task_queues:83:21)
2022-01-11T16:33:15.9641410Z 5233 error gyp ERR! System Windows_NT 10.0.17763
2022-01-11T16:33:15.9641996Z 5233 error gyp ERR! command "C:\Program Files\nodejs\node.exe" "D:\a\1\s\MyCompany.MyDept.WebApp\node_modules\node-gyp\bin\node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
2022-01-11T16:33:15.9642659Z 5233 error gyp ERR! cwd D:\a\1\s\MyCompany.MyDept.WebApp\node_modules\node-sass
2022-01-11T16:33:15.9643000Z 5233 error gyp ERR! node -v v16.13.1
2022-01-11T16:33:15.9643273Z 5233 error gyp ERR! node-gyp -v v3.8.0
2022-01-11T16:33:15.9644058Z 5233 error gyp ERR! This is a bug in node-gyp.
2022-01-11T16:33:15.9644423Z 5233 error gyp ERR! Try to update node-gyp and file an Issue if it does not help:
2022-01-11T16:33:15.9644842Z 5233 error gyp ERR!     https://github.com/nodejs/node-gyp/issues
2022-01-11T16:33:15.9645180Z 5233 error Build failed with error code: 7
I did find that the error resolved by making these changes to our package.json:
Changing this:
"gulp-sass": "^3.1.0",
To this:
"gulp-sass": "^5.1.0",
And adding this:
"sass": "^1.48.0"
I believe this change removed gulp-sass dependency on node-sass which is deprecated. See this.
I do have concerns about the implications of this change for the code base as it's rather large, and I don't really know what might be affected by it. If there's a more surgical solution, I'd love to know it. Microsoft support is also working with me to find a solution.
Virtual environments affected

[ ] Ubuntu 18.04
[ ] Ubuntu 20.04
[ ] macOS 10.15
[ ] macOS 11
[ ] Windows Server 2016
[X] Windows Server 2019
[X] Windows Server 2022

Image version and build link
Virtual Environment > Version: 20211219.1, OS: Microsoft Windows Server 2019
Is it regression?
20211219.1, OS Microsoft Windows Server 2016
Expected behavior
The task succeeds. On the WS 2016 image, it works.
Actual behavior
The step fails with the "node-gyp" error included above.
Repro steps
I'm just running our build. Same as I was before when it worked. No changes to the pipeline configuration other than changing the image from WS2016 to WS2019 or WS2022

Hello @marvinpjr. Thanks for the issue reporting. Could you please provide link to the build and/or repro steps with a simple project for investigation?

This is interesting. I've sat down on this for nearly 3 days and tried everything. What I found out by running ng serve on another project was this:
C:\Users\PawelFlajszer\source\repos\AuditLabTwo\AuditLab.UI\ClientApp>ng serve
Your global Angular CLI version (13.1.3) is greater than your local version (7.3.10). The local Angular CLI version is used.

To disable this warning use "ng config -g cli.warnings.versionMismatch false".
(node:26344) [DEP0111] DeprecationWarning: Access to process.binding('http_parser') is deprecated.
(Use `node --trace-deprecation ...` to show where the warning was created)
** Angular Live Development Server is listening on localhost:4200, open your browser on http://localhost:4200/ **

Date: 2022-01-19T13:52:59.462Z
Hash: b82a3d1fc2c5a9c79438
Time: 25711ms
chunk {main} main.js, main.js.map (main) 908 kB [initial] [rendered]
chunk {polyfills} polyfills.js, polyfills.js.map (polyfills) 237 kB [initial] [rendered]
chunk {runtime} runtime.js, runtime.js.map (runtime) 6.08 kB [entry] [rendered]
chunk {scripts} scripts.js, scripts.js.map (scripts) 161 kB [entry] [rendered]
chunk {styles} styles.css, styles.css.map (styles) 166 kB [initial] [rendered]
chunk {vendor} vendor.js, vendor.js.map (vendor) 8.24 MB [initial] [rendered]

ERROR in ./src/theme.scss
Module build failed (from ./node_modules/mini-css-extract-plugin/dist/loader.js):
ModuleBuildError: Module build failed (from ./node_modules/sass-loader/lib/loader.js):
Error: Node Sass does not yet support your current environment: Windows 64-bit with Unsupported runtime (93)
For more information on which environments are supported please see:
https://github.com/sass/node-sass/releases/tag/v4.14.1
    at module.exports (C:\Users\PawelFlajszer\source\repos\AuditLabTwo\AuditLab.UI\ClientApp\node_modules\node-sass\lib\binding.js:13:13)
    at Object.<anonymous> (C:\Users\PawelFlajszer\source\repos\AuditLabTwo\AuditLab.UI\ClientApp\node_modules\node-sass\lib\index.js:14:35)
    at Module._compile (node:internal/modules/cjs/loader:1101:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
    at Module.load (node:internal/modules/cjs/loader:981:32)
    at Function.Module._load (node:internal/modules/cjs/loader:822:12)
    at Module.require (node:internal/modules/cjs/loader:1005:19)
    at require (node:internal/modules/cjs/helpers:102:18)
    at Object.sassLoader (C:\Users\PawelFlajszer\source\repos\AuditLabTwo\AuditLab.UI\ClientApp\node_modules\sass-loader\lib\loader.js:46:72)
    at C:\Users\PawelFlajszer\source\repos\AuditLabTwo\AuditLab.UI\ClientApp\node_modules\webpack\lib\NormalModule.js:301:20
    at C:\Users\PawelFlajszer\source\repos\AuditLabTwo\AuditLab.UI\ClientApp\node_modules\loader-runner\lib\LoaderRunner.js:367:11
    at C:\Users\PawelFlajszer\source\repos\AuditLabTwo\AuditLab.UI\ClientApp\node_modules\loader-runner\lib\LoaderRunner.js:233:18
    at runSyncOrAsync (C:\Users\PawelFlajszer\source\repos\AuditLabTwo\AuditLab.UI\ClientApp\node_modules\loader-runner\lib\LoaderRunner.js:143:3)
    at iterateNormalLoaders (C:\Users\PawelFlajszer\source\repos\AuditLabTwo\AuditLab.UI\ClientApp\node_modules\loader-runner\lib\LoaderRunner.js:232:2)
    at C:\Users\PawelFlajszer\source\repos\AuditLabTwo\AuditLab.UI\ClientApp\node_modules\loader-runner\lib\LoaderRunner.js:205:4
    at VirtualFileSystemDecorator.readFile (C:\Users\PawelFlajszer\source\repos\AuditLabTwo\AuditLab.UI\ClientApp\node_modules\@ngtools\webpack\src\virtual_file_system_decorator.js:39:13)
    at processResource (C:\Users\PawelFlajszer\source\repos\AuditLabTwo\AuditLab.UI\ClientApp\node_modules\loader-runner\lib\LoaderRunner.js:202:11)
    at iteratePitchingLoaders (C:\Users\PawelFlajszer\source\repos\AuditLabTwo\AuditLab.UI\ClientApp\node_modules\loader-runner\lib\LoaderRunner.js:158:10)
    at iteratePitchingLoaders (C:\Users\PawelFlajszer\source\repos\AuditLabTwo\AuditLab.UI\ClientApp\node_modules\loader-runner\lib\LoaderRunner.js:165:10)
    at C:\Users\PawelFlajszer\source\repos\AuditLabTwo\AuditLab.UI\ClientApp\node_modules\loader-runner\lib\LoaderRunner.js:176:18
    at loadLoader (C:\Users\PawelFlajszer\source\repos\AuditLabTwo\AuditLab.UI\ClientApp\node_modules\loader-runner\lib\loadLoader.js:47:3)
    at iteratePitchingLoaders (C:\Users\PawelFlajszer\source\repos\AuditLabTwo\AuditLab.UI\ClientApp\node_modules\loader-runner\lib\LoaderRunner.js:169:2)
    at iteratePitchingLoaders (C:\Users\PawelFlajszer\source\repos\AuditLabTwo\AuditLab.UI\ClientApp\node_modules\loader-runner\lib\LoaderRunner.js:165:10)
    at C:\Users\PawelFlajszer\source\repos\AuditLabTwo\AuditLab.UI\ClientApp\node_modules\loader-runner\lib\LoaderRunner.js:176:18
    at loadLoader (C:\Users\PawelFlajszer\source\repos\AuditLabTwo\AuditLab.UI\ClientApp\node_modules\loader-runner\lib\loadLoader.js:47:3)
i ｢wdm｣: Failed to compile.

Please note the error message:
Error: Node Sass does not yet support your current environment: Windows 64-bit with Unsupported runtime (93)

On further investigation you can read in node-sass docs for the release I'm trying to install v4.14.1:

Supported Environments

OS
Architecture
Node

Windows
x86 & x64
0.10, 0.12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14

I was running node v16.x.x
Steps to fix are then:

Uninstall node.js
Download node v14.15.0 from here. for me it's node-v14.15.0-x64.msi (tested this one and it works, not sure about other versions)

Thanks @pflajszer. I think this is related to what you are saying. I did find this post on stack overflow, so I tried using the Node Tool step as it suggests, placing it before any NPM task steps in my pipeline. The yaml for the Node Tool step in my pipeline looks like this:
steps:

task: NodeTool@0
displayName: 'Use Node 14.x'
inputs:
versionSpec: 14.x

Unfortunately, that did not resolve the issue for me.

Yes, I think the solution is that we have to upgrade. Internally, with our team, we are talking about a test plan to identify any issues that arise in the application from upgrading to the current sass compiler.

@marvinpjr, great, I'm going to close this issue since seems our assistance is not required here anymore. Please feel free to contact us or reopen it in case of concerns or issues. Thank you!


hotfix for dst

This might could be improved later, but works for now.
Also switched requests so we can log the useful message from the server along with the 400 client error info. e.g. { "error": { "message": "Missing required query parameter: api_key" }}

Merging so the site works again. Feel free to comment/revisit code for cleanup tho


Display the user info in the profile page

We should implement an API to retrieve:

user photo
user email
user full name
user birthdate
user gender

Using the API, we can get the user info and bind them to the profile page fields.

This issue has been solved.


[storage-blob] environment variable inputs and samples with error handling

Environment Variables in Samples
This one is simple. Rather than having users edit and paste in their Account and Account Key, pass them in as environment variables. This is easy to do when debugging using VSCode, and also takes minimal effort through the command prompt. The benefit is that users will be less likely to publish personal information in files.
Samples with Error Handling
In the samples for azure storage v12 I don't see any sample dealing with how to handle an HTTP error (for example 400). Can error handling be added to the advanced.js sample?

@HarshaNalluru Do you have time for sample update about error handling in track2?

Closing as the work is merged.


CAS-1368: Support POST response to service after password warning check

This adds a new view to display the LPPE password warning message and submit the authentication response to the requested service in a POST.  This is required for services using SAML 2 such as GoogleApps.
JIRA issue: https://issues.jasig.org/browse/CAS-1368

I'll merge this, and will then bring it forth into 3.6


🌱 GitLab: track e2e coverage better

What kind of change does this PR introduce?
Track GitLab e2e coverage better. Should increase code coverage for clients/gitlabrepo.
Also unset -cover for consistency -- in ginkgo -coverprofile sets -cover.

Brings clients/gitlabrepo coverage from 32.11% -> 59.59% :
https://app.codecov.io/gh/ossf/scorecard/pull/3601/tree/clients/gitlabrepo


can't grid search over solver_kwargs

One can't grid search over solver__kwargs in the MLP estimators because get_params can't find them.
from sklearn.datasets import load_digits
from muffnn import MLPClassifier
from sklearn.model_selection import GridSearchCV

digits = load_digits()
gs = GridSearchCV(MLPClassifier(), param_grid={'solver_kwargs': [{'learning_rate': x} for x in [0.1, 1.0, 10.0]]})
gs.fit(digits.data, digits.target)

This results in this exception:
ValueError: Invalid parameter solver_kwargs for estimator MLPClassifier. Check the list of available parameters with `estimator.get_params().keys()`.

I think we should just remove the ** here (and similarly in the other classes).

Ahhh yes. This is my bad. 😦


refactor(WEG-146): Refactor map file to smaller hooks for better adaptation and maintenance in the future

This PR ensures the map is easier to maintain and adapt in the future by extracting generic business logic into meaningful react hooks. This can be improved even further in the future but this is a good first step. The different hooks are:

useEaseOnBackToMap (To easing back the the previous location when navigating back to the map overview)
useMapIsFullyLoaded (To poll for the map styles to load)
useOnMapFeatureMove (To hover on markers)
useMapUserGeolocationMarker (To ease to the user's geolocation when activating the geolocation)
useInitialViewport (To manage the initial viewport based on the url parameters)
useMapHighlightMarker (To add/remove the active marker on facility pages)
useMapSearchMarker (To add/remove the search marker)
useMaplibreMap (To init the map instance)

:tada: This PR is included in version 1.4.0-rc.1 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


Change preadv to work with &[IoVec<...>] instead of &mut [IoVec<...>]

They have the same signature, iovec is not modified by the syscall.

Would you be willing to submit a PR fixing this? That'll be the fastest way to get this addressed.


Ability to copy hyphenated text without hyphens in PDF

Description
I really love how uniform the text looks with set par(justify: true) + set text(hyphenate: true), but I hate that such documents are notoriously hard to copy text from. You have to manually remove all the hyphens before the text becomes usable. AFAIK, it's possible to implement. The solution is probably the same or somewhat similar to https://github.com/typst/typst/issues/2249. But I think the difference is that you don't just make some text non-selectable, you have to join together the hyphenated parts together.
Use Case
More usable hyphenated PDF files for those that want to copy the text from it.

This is basically the same as this one. If the hyphen symbol would not be a minus sign but instead a unicode hyphen minus you could just replace all unicode hyphen minus by an empty string and it would be finished.
But as you can see in the comments for some reason many people don't want it (for me it's unclear why).
So, it never was implemented and today still a minus sign is used for linebreak hyphenation.


No fab files

Hello everyone.
I am just starting withal the configurations and downloads.
Right now, I run the fab reference build
vagrant@precise32:~$ fab reference build
the result is: Fatal error: Couldn't find any fabfiles!
Now,
vagrant@precise32:~$ ls
returns nothing. So how do I make vagrant@precise32:~$  point to the folder where I have the fabfile.py ?
Thank you in advance.

Hi Craxer01,
You need to navigate into the /vagrant directory as outlined in these directions: http://vi-firmware.openxcplatform.com/en/master/getting-started/default-build.html
That should fix your issue. If not we can reopen the issue.

hello Zac. Thanks for the answer.
What I am saying is that running the shell I get access to theC:....... /vagrant directory but fab will not work.
Running the vagrant ssh will not give me access to the /vagrant directory as it only shows one .sh file.

Hi Craxer,
If you don't have a /vagrant directory or a 'vi-firmware' link in /home/vagrant/, then your 'vagrant up' didn't work right. Go back and look at the logs or look at doing 'vagrant provision' again or 'vagrant destroy' and start over.
What is the .sh file you're seeing?
If you're still having issues, please check the threads on the OpenXC google group and post a question there if you need more help.
https://groups.google.com/forum/#!forum/openxc
Regards,
Eric


Issues with deployment steps

This tutorial is lacking in many areas. It is not very clear what needs to be modified in order for the python file to run properly. e.g. installing boto3
I don't know what to change in pom.xml or .py file. I love how the readme says "inspect"....lol
I think the authors need to revisit the deployment steps and give clearer guidance.

@ddevice1234  I went through the pain of getting the setup.py script to work with Python 3 and boto3.  You may be interested in my blog post http://www.qube3s.com/exploration-into-ecs-elastic-container-service-part-i-night2/ .  At the bottom I provided a link to my modified version of the script.  Hosted on github https://github.com/mrizzo99/aws_pet_clinic_microservice/tree/master/1_ECS_Java_Spring_PetClinic


raw.lxc key does't appened but inserted into container's lxc.conf

Required information

LXC version: 4.0.10 ( >= 4.0.7)
LXD version: 4.17

Issue description
According to instances.md, configuration key raw.lxc  contains "Raw LXC configuration to be appended to the generated one". For LXD 4.17 the strings from raw.lxc key does not appended to the generated lxc.conf but inserted somewhere in that file.
Due to the changes in LXC >= 4.0.7 (1, 2) that makes impossible to configure container's network interfaces via LXC keys like lxc.net.[N].ip[46].* .
Steps to reproduce

Create minimal CT:

# lxc init images:busybox/1.33.1 raw-lxc-test --storage  default
Creating raw-lxc-test

The instance you are starting doesn't have any network attached to it.
  To create a new network, use: lxc network create
  To attach a network to an instance, use: lxc network attach

Add a physical network interface into CT, and lets LXC set IPv4 address on it via 'raw.lxc':

# lxc config device add raw-lxc-test eth0 nic name=eth0 nictype=physical parent=raw-lxc
Device eth0 added to raw-lxc-test
# lxc config set raw-lxc-test raw.lxc="lxc.net.0.ipv4.address=<IP_ADDRESS>/24"

Resulting CT configuration:
# lxc config show raw-lxc-test
architecture: x86_64
config:
  image.architecture: amd64
  image.description: Busybox 1.33.1 amd64 (20210806_06:00)
  image.os: Busybox
  image.release: 1.33.1
  image.serial: "20210806_06:00"
  image.type: squashfs
  image.variant: default
  raw.lxc: lxc.net.0.ipv4.address=<IP_ADDRESS>/24
  volatile.apply_template: create
  volatile.base_image: 982fe78bba9b756ea0e53b145ea1180577b1fa15108afc205d3fcf8f04114dcf
  volatile.idmap.base: "0"
  volatile.idmap.next: '[{"Isuid":true,"Isgid":false,"Hostid":1000000,"Nsid":0,"Maprange":65536},{"Isuid":false,"Isgid":true,"Hostid":1000000,"Nsid":0,"Maprange":65536}]'
  volatile.last_state.idmap: '[]'
  volatile.uuid: de680a53-e263-4a37-9126-f5b15a6b82e2
devices:
  eth0:
    name: eth0
    nictype: physical
    parent: raw-lxc
    type: nic
  root:
    path: /
    pool: default
    type: disk
ephemeral: false
profiles:
- default
stateful: false
description: ""

Create dummy network interface 'raw-lxc', start a CT. LXC should rename interface to 'eth0' and set IPv4 address on it - but the later one is not happen, there is no IPv4 on eth0 inside CT:

# ip link add raw-lxc type dummy
# lxc start raw-lxc-test
# lxc exec raw-lxc-test ip addr show dev eth0
13: eth0: <BROADCAST,NOARP,UP,LOWER_UP> mtu 1500 qdisc noqueue qlen 1000
    link/ether 52:05:22:cc:80:a0 brd ff:ff:ff:ff:ff:ff
    inet6 fe80::5005:22ff:fecc:80a0/64 scope link
       valid_lft forever preferred_lft forever

In the generated CT lxc.conf content of the raw.lxc key was inserted inside configuration file, not appended to it:
# tail /var/log/lxd/raw-lxc-test/lxc.conf
lxc.seccomp.profile = /var/lib/lxd/security/seccomp/raw-lxc-test
lxc.idmap = u 0 1000000 65536
lxc.idmap = g 0 1000000 65536
lxc.mount.auto = shmounts:/var/lib/lxd/shmounts/raw-lxc-test:/dev/.lxd-mounts
lxc.net.0.ipv4.address=<IP_ADDRESS>/24
lxc.net.0.type = phys
lxc.net.0.name = eth0
lxc.net.0.flags = up
lxc.net.0.link = raw-lxc
lxc.rootfs.path = dir:/var/lib/lxd/containers/raw-lxc-test/rootfs

And in the LXC >= 4.0.7 lxc.net.0.type wipes all previous interface configuration - so lxc.net.0.ipv4.address is dropped.

Let's imitate the raw.lxc value appending to the end of generated by LXD lxc.conf file - right according to the documentation.

Stop CT via LXD and delete LXD-specific lines from the generated lxc.conf:
# lxc stop raw-lxc-test
# sed -e '/lxc\.hook/ d' -e '/lxc\.seccomp\.profile/ d' -e '/idmap/ d' -i  /var/log/lxd/raw-lxc-test/lxc.conf

Move 'raw.lxc' content (lxc.net.0.ipv4.address=<IP_ADDRESS>/24) to the end of the lxc.conf:
# sed -e '/ipv4\.address/ d' -i /var/log/lxd/raw-lxc-test/lxc.conf
# echo "lxc.net.0.ipv4.address=<IP_ADDRESS>/24" >> /var/log/lxd/raw-lxc-test/lxc.conf

Now the end of the lxc.conf file is following:
# tail  /var/log/lxd/raw-lxc-test/lxc.conf
lxc.tty.max = 0
lxc.uts.name = raw-lxc-test
lxc.mount.entry = /var/lib/lxd/devlxd dev/lxd none bind,create=dir 0 0
lxc.mount.auto = shmounts:/var/lib/lxd/shmounts/raw-lxc-test:/dev/.lxd-mounts
lxc.net.0.type = phys
lxc.net.0.name = eth0
lxc.net.0.flags = up
lxc.net.0.link = raw-lxc
lxc.rootfs.path = dir:/var/lib/lxd/containers/raw-lxc-test/rootfs
lxc.net.0.ipv4.address=<IP_ADDRESS>/24

Start CT via raw LXC and check eth0 configuration:
# lxc-start -f /var/log/lxd/raw-lxc-test/lxc.conf raw-lxc-test
# lxc-attach raw-lxc-test ip addr show eth0
14: eth0: <BROADCAST,NOARP,UP,LOWER_UP> mtu 1500 qdisc noqueue qlen 1000
    link/ether 52:05:22:cc:80:a0 brd ff:ff:ff:ff:ff:ff
    inet <IP_ADDRESS>/24 brd <IP_ADDRESS> scope global eth0
       valid_lft forever preferred_lft forever
    inet6 fe80::5005:22ff:fecc:80a0/64 scope link
       valid_lft forever preferred_lft forever

Yes that makes sense that it would be a problem after the change in liblxc.


Add annotation to representation

Hi, I'm trying to add an annotation to each of the representations in my stage and I can't find the center / position of the representations.
I could get the position of one residue / atom inside each representation, but I assume that it must be possible to get the position of all the residues in a selection as component.autoView() does.
What do you recommend for doing this? To use annotations or labels?
Thanks!

Solved with component.getCenterUntransformed(selection).
By the way, component.getCenterUntransformed() and component.getCenter() doesn't accept selection in the documentation:
https://nglviewer.org/ngl/api/file/src/component/component.js.html#lineNumber387
https://nglviewer.org/ngl/api/file/src/component/component.js.html#lineNumber372
Is there a newest version of the documentation? I'm using the docs for 1.0.0 version, while I'm working with 2.0.0 and sometimes it's hard to find these improvements just watching the source code.


current cue disc parsing library doesn't have mutli-bin support. - maybe switch to to libcue to enable multi-bin support.?

as title.
i have had problems launching titles in multi-bin/cue file format.
Given that there is a big push from Redump members (including 100's of FMT discs entries to the DB from myself and 100s more yet to come)
it would be good if if the frontend could support bin/cue (have yet to see anything for FMT preservation that requires anything from the subchannels so CCD is a bit of a misnomer in this case)

Thank you for your input.
I can try adding support for multi-binary CUE format.  But, in my experience, multi-binary CUE format is inconsistent in handling PREGAP.  CUE file itself does not have a concrete standard, and different disc-imaging tools create slightly different CUE file, but multi-binary makes it substantially worse.  Especially, probably due to the mishandling of PREGAP, very often the total length of multiple binaries does not match the size of the binary from the single-binary format.  Often 300KB longer than actual.  300KB is for 2 seconds as most of the PREGAPs are 2-second long.  I have never seen different disc-imaging tool create binary files of different length if you make it in a single-binary CUE format.  I can make it better if I am able to tell where I need to skip 300KB from the CUE file, but not the case.  In such a longer multi-binary CUE, PREGAP randomly exists or doesn’t exist.  My best suggestion is keep it single-binary.
That said, I should be able to make some of the programs runnable from a multi-bin CUE format.
Tsugaru has absolutely zero external dependencies, and I want to keep it this way.  Too many projects collapsed after taking too many external dependencies.  (Libraries under externals directory are all from my other repositories.)  So, I wouldn’t take libcue.  Sorry.
It would be a great help if you know of an official CUE-file format.  I have found various contradicting format descriptions.  I had to read CUE files to develop my own interpretation.

I have made a release that includes a support for multi-binary CUE format.  However, unless the multi-binary dump is made correctly, those titles that looks at TOC to check the presence of the original disc will not work.  In my experience, a disc-imaging software rarely made a correct image whenever I chose the multi-binary option.
One thing you can check if the multi-binary image is correct or not is to compare the total binary size with the single-binary image.  Multi-binary image is typically larger, in which case the image is most likely doomed.
CD-ROM is not made multi-binary.  CD-ROM is just soup of sectors.  Even between data track and audio track, there is nothing clearly divide tracks.  Only TOC gives the meaning.  From the controller point of view, you can totally ignore TOC and send a single command to start playing in the middle of track 2 all the way to the middle of track 3.  The CD drive doesn’t care about the track boundary.  So, again my best suggestion is to keep it a single-binary CUE.

@captainys
シングルbinとマルチbinは相互に可逆変換（というか、ただの分割/結合ですが）出来るはずで、それが一致しないというのは吸い出し方法、もしくは、吸い出しツールに問題があると思います。
私もマルチbin対応を秘かに望んでいたので、今回の対応はありがたいです。


HADOOP-17419 by adding support to SELinux file perms format

The resolution has been tested in our internal pipeline which uses a Security Enhanced Linux distribution.

:confetti_ball: +1 overall

Vote
Subsystem
Runtime
Logfile
Comment

+0 :ok:
reexec
30m  5s

Docker mode activated.

_ Prechecks _

+1 :green_heart:
dupname
0m  0s

No case conflicting files found.

+1 :green_heart:
@author
0m  0s

The patch does not contain any @author tags.

+1 :green_heart:

0m  0s
test4tests
The patch appears to include 1 new or modified test files.

_ trunk Compile Tests _

+1 :green_heart:
mvninstall
37m 38s

trunk passed

+1 :green_heart:
compile
21m 37s

trunk passed with JDK Ubuntu-<IP_ADDRESS>+1-Ubuntu-0ubuntu1.18.04

+1 :green_heart:
compile
23m 45s

trunk passed with JDK Private Build-1.8.0_275-8u275-b01-0ubuntu1~18.04-b01

+1 :green_heart:
checkstyle
0m 48s

trunk passed

+1 :green_heart:
mvnsite
1m 39s

trunk passed

+1 :green_heart:
shadedclient
21m 24s

branch has no errors when building and testing our client artifacts.

+1 :green_heart:
javadoc
1m 12s

trunk passed with JDK Ubuntu-<IP_ADDRESS>+1-Ubuntu-0ubuntu1.18.04

+1 :green_heart:
javadoc
1m 39s

trunk passed with JDK Private Build-1.8.0_275-8u275-b01-0ubuntu1~18.04-b01

+0 :ok:
spotbugs
2m 32s

Used deprecated FindBugs config; considering switching to SpotBugs.

+1 :green_heart:
findbugs
2m 29s

trunk passed

_ Patch Compile Tests _

+1 :green_heart:
mvninstall
1m  2s

the patch passed

+1 :green_heart:
compile
21m  6s

the patch passed with JDK Ubuntu-<IP_ADDRESS>+1-Ubuntu-0ubuntu1.18.04

+1 :green_heart:
javac
21m  6s

the patch passed

+1 :green_heart:
compile
19m  0s

the patch passed with JDK Private Build-1.8.0_275-8u275-b01-0ubuntu1~18.04-b01

+1 :green_heart:
javac
19m  0s

the patch passed

-0 :warning:
checkstyle
0m 54s
/diff-checkstyle-hadoop-common-project_hadoop-common.txt
hadoop-common-project/hadoop-common: The patch generated 2 new + 1 unchanged - 0 fixed = 3 total (was 1)

+1 :green_heart:
mvnsite
1m 38s

the patch passed

+1 :green_heart:
whitespace
0m  0s

The patch has no whitespace issues.

+1 :green_heart:
shadedclient
19m  6s

patch has no errors when building and testing our client artifacts.

+1 :green_heart:
javadoc
0m 57s

the patch passed with JDK Ubuntu-<IP_ADDRESS>+1-Ubuntu-0ubuntu1.18.04

+1 :green_heart:
javadoc
1m 29s

the patch passed with JDK Private Build-1.8.0_275-8u275-b01-0ubuntu1~18.04-b01

+1 :green_heart:
findbugs
2m 23s

the patch passed

_ Other Tests _

+1 :green_heart:
unit
9m 39s

hadoop-common in the patch passed.

+1 :green_heart:
asflicense
0m 47s

The patch does not generate ASF License warnings.

221m 59s

Subsystem
Report/Notes

Docker
ClientAPI=1.41 ServerAPI=1.41 base: https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-2541/1/artifact/out/Dockerfile

GITHUB PR
https://github.com/apache/hadoop/pull/2541

Optional Tests
dupname asflicense compile javac javadoc mvninstall mvnsite unit shadedclient findbugs checkstyle

uname
Linux 7cc2d316d433 4.15.0-112-generic #113-Ubuntu SMP Thu Jul 9 23:41:39 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

Build tool
maven

Personality
dev-support/bin/hadoop.sh

git revision
trunk / be35fa186cc

Default Java
Private Build-1.8.0_275-8u275-b01-0ubuntu1~18.04-b01

Multi-JDK versions
/usr/lib/jvm/java-11-openjdk-amd64:Ubuntu-<IP_ADDRESS>+1-Ubuntu-0ubuntu1.18.04 /usr/lib/jvm/java-8-openjdk-amd64:Private Build-1.8.0_275-8u275-b01-0ubuntu1~18.04-b01

Test Results
https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-2541/1/testReport/

Max. process+thread count
3114 (vs. ulimit of 5500)

modules
C: hadoop-common-project/hadoop-common U: hadoop-common-project/hadoop-common

Console output
https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-2541/1/console

versions
git=2.17.1 maven=3.6.0 findbugs=4.0.6

Powered by
Apache Yetus 0.13.0-SNAPSHOT https://yetus.apache.org

This message was automatically generated.


Allow @usernames in tuck command

Currently the tuck command's regex pattern doesn't accept arguments starting with @. This prevents usages such as tuckeg @jammehcow pajaL.

I'm picking this up, just wanted something to log against.


Item IDs

Hi
In both example files of config, we have the following:
"item_filter": {
      "1": { "keep" : 100 },
      "101": { "keep" : 0 },
      "102": { "keep" : 0 },
      "103": { "keep" : 20 },
      "201": { "keep" : 20 },
      "701": { "keep" : 50 }
    }

But I dont know the id of items so.. I don't know what I'm configuring... so It would be nice to have with comments which item is each line, like this:
"item_filter": {
      "1": { "keep" : 100 },  //Item
      "101": { "keep" : 0 },  //Potion
      "102": { "keep" : 0 },  //Super Potion
      "103": { "keep" : 20 }, //Hyper Potion
      "201": { "keep" : 20 }, //Revive
      "701": { "keep" : 50 }  //Another item
    }

I tried to find them on google but couldn't..
good work guys

Item-ID's

Ok great, thanks..
..so what is the reason of not commenting which item are you configuring? It's a bad idea?

Please use this article as your reference: https://github.com/PokemonGoF/PokemonGo-Bot/wiki/Item-ID's
/closed


Code formatting

Thanks for your suggestions and making one-liner cleaner.
I made some changes in your merge request:

Keep "|" style, I prefer having "|" as the start symbol for the pipelines because it's easy to read and understand the structure of pipelines.
Remove .editorconfig because I'm not using it for code formatting and for now I don't want to limit the tools for the project. I add it in .gitignore, please feel free to use .editorconfig in your setup.

Thanks for your suggestions and making one-liner cleaner.
I made some changes in your merge request:

Keep "|" style, I prefer having "|" as the start symbol for the pipelines because it's easy to read and understand the structure of pipelines.
Remove .editorconfig because I'm not using it for code formatting and for now I don't want to limit the tools for the project. I add it in .gitignore, please feel free to use .editorconfig in your setup.


NIFI-13773 Migrated FTP and SFTP processors' Proxy properties to Prox…

…yConfigurationService
Summary
NIFI-13773
Tracking
Please complete the following tracking steps prior to pull request creation.
Issue Tracking

[x] Apache NiFi Jira issue created

Pull Request Tracking

[x] Pull Request title starts with Apache NiFi Jira issue number, such as NIFI-00000
[x] Pull Request commit message starts with Apache NiFi Jira issue number, as such NIFI-00000

Pull Request Formatting

[x] Pull Request based on current revision of the main branch
[x] Pull Request refers to a feature branch with one commit containing changes

Verification
Please indicate the verification steps performed prior to pull request creation.
Build

[x] Build completed using mvn clean install -P contrib-check

[x] JDK 21

Licensing

[ ] New dependencies are compatible with the Apache License 2.0 according to the License Policy
[ ] New dependencies are documented in applicable LICENSE and NOTICE files

Documentation

[ ] Documentation formatting appears as expected in rendered files

Closing due to wrong ticket number in branch name commit message.


(Bug) Removes delete action from feed list and updates snapshot

This PR closes #165529061, by:

Removing Delete action from feed list in Dashboard

Delete is not possible for transactions but there will be other feed items that are deletable.

@kbardi keep coverage positive


fix:wrong workspace name when focus on a named special workspace

Describe your PR, what does it fix/add?
fix wrong workspace name when focus on a named special workspace,see the issue
Is there anything you want to mention? (unchecked code, possible bugs, found problems, breaking compatibility, etc.)
#4556
Is it ready for merging, or does it need work?
i am not good at cpp,so i am not sure substr is a good idea,but i think m_szName need to be fixed when tooglespecialworkspace

emm...how about that

Easier to use the function directly
diff --git a/src/helpers/Monitor.cpp b/src/helpers/Monitor.cpp
index 9126f936..75d92194 100644
--- a/src/helpers/Monitor.cpp
+++ b/src/helpers/Monitor.cpp
@@ -539,7 +539,7 @@ void CMonitor::changeWorkspace(CWorkspace* const pWorkspace, bool internal, bool
     if (pWorkspace->m_bIsSpecialWorkspace) {
         if (specialWorkspaceID != pWorkspace->m_iID) {
             Debug::log(LOG, "changeworkspace on special, togglespecialworkspace to id {}", pWorkspace->m_iID);
-            g_pKeybindManager->m_mDispatchers["togglespecialworkspace"](pWorkspace->m_szName == "special" ? "" : pWorkspace->m_szName);
+            setSpecialWorkspace(pWorkspace);
         }
         return;
     }


Add s3 guide

Linked to part of https://github.com/iterative/dvc.org/issues/2866
Or https://github.com/iterative/dvc.org/issues/3832

Perhaps we could try to have guides like the one for Google Drive (with screenshots, etc.) for other popular remotes? (no stats to support but AWS and Azure appear to be the most commonly asked about)

We at Ritza.co love helping companies like DVC produce useful content for their users. Feel free to reach out if you would like more :)

This is pretty cool @sixhobbits , thanks! And we do want to specifically cover S3 remotes in more detail somewhere in our docs (rel https://github.com/iterative/dvc.org/issues/3832).
But we would prefer to avoid documenting Amazon S3 as much as possible at the same time (mention an operation and link to their docs instead). Keep in mind we do have a recent blog post about this already, where these screenshots are OK because it's dated (no need to maintain it). Maybe for the docs we should use aws s3 CLI examples instead?
Also, it seems like there was a learning process to write this, which is greatly appreciated because of the lack of bias (fresh eyes); that said, we can probably skip some steps that may be evident for someone who reaches this guide (e.g. DVC installation), or just mention some things and link to existing docs

makes sense! Thanks for the prompt feedback. Going to close this one and if we have left over capacity in future we can look at doing a version with command line examples instead. Keep us in mind if you're ever looking to augment your docs team :)


Setup initial project infra

Initial work for spring-cloud/spring-cloud-dataflow#1122 and spring-cloud/spring-cloud-dataflow#1123 to bring over needed modules, do package rename and setup CI builds.

Initial import done and CI building https://build.spring.io/browse/SCD-DASHMASTER.

I believe we need to preserve the commit history for the modules moved here

This is the one I used before to keep the commit history in one of our projects: http://www.pixelite.co.nz/article/extracting-file-folder-from-git-repository-with-full-git-history/

I don't think that works that well. afaik, git totally loses history when you change path of a file.
12:32 $ git log yyy/1
commit dbe4db2244ec3a6d68b8003b7341c02e6abcbd54
Author: Janne Valkealahti<EMAIL_ADDRESS>Date:   Wed Jan 18 12:32:31 2017 +0000

    commit1

12:32 $ mv yyy xxx
✔ /tmp/hhh [master L|✚ 10…10]
12:32 $ git add .
✔ /tmp/hhh [master L|●20]
12:32 $ git commit -m commit2
[master c09c806] commit2

12:32 $ git log xxx/1
commit c09c8067452746a4bbccf3e133166e6af3a98a19
Author: Janne Valkealahti<EMAIL_ADDRESS>Date:   Wed Jan 18 12:32:59 2017 +0000

    commit2

With this when we change package/dir names from dataflow to dashboard any history is kinda useless.


Polymer/shadyCSS doesn't attach polyfilled CSS node when element is using light DOM

Hello,
There seems to be a problem with CSS not being added to elements when using Firefox and using elements that operate with light DOM.
_attachDom(dom) {
  this.appendChild(dom);
}

Live Demo
http://plnkr.co/edit/KwXzA2A29BCxQxJg0jNw?p=preview
Steps to Reproduce
Run the demo
Expected Results
Same behavior as with shadow dom enabled OR what chrome does - elements get styled correctly.
"red/blue colored"  elements should have proper colors.
Actual Results
Elements are not being styled at all
Browsers Affected

[x ] Firefox + probably others that use polyfill

Any news on this?

Can acknowledge this issue. Currently the Polymer code around integrating ShadyCSS is assuming we're stamping into ShadowDOM. It's probably going to be a separate issue from #4809 since the change will likely be in Polymer rather than ShadyCSS.
To fix this we'll probably need to move the template scope shimming into _attachDom.

This is actually a bit more complicated that just moving ShadyCSS.prepareTemplate into _attachDom because that would lead to ShadyCSS.prepareTemplate removing or modifying the <style> in the template after the metadata for data binding has been processed.
Kicking this back to @sorvell to do a deeper look

I'm a bit confused how come this works in chromium for me? I'm force enabling polyfills, shouldn't it be broken too.

Also - is there any workaround I can use right now to fix production application before this gets fixed?

@azakus @sorvell any ideas? I saw that 2.1.0 is tagged today, and I won't be able to deploy anything in production till I can somehow work around this problem.

@sorvell @azakus I thought that this was done on purpose. If you add styles inside the light DOM, they'll leak out to affect parent elements, right? This seems like a misfeature.
In the docs, we explicitly say not to do this:
"A template stamped into light DOM shouldn't contain any

@arthurevans I think it is expected that styles added inside light DOM leak to main document.
I think an equivalent of vue's styled components would be easy to create with that functionality https://vuejs.org/v2/guide/single-file-components.html.
My main rationale for light DOM using elements is a scenario where I have to wrap libraries that don't work properly inside shadow DOM (until they get patched) - like QuillJS or dragula. So my application entry node and view nodes don't use shadow.

Sorry for the delay on this. @arthurevans is essentially correct. ShadyCSS is intended to mirror the capabilities of native Shadow DOM styling and therefore we don't really want to encourage its use for styling children of an element like this.
That said, the use case here is understandable. For this type of scenario, you can implement your own cooperative styling system like ShadyCSS does (adding "scoping" classes to elements and the stylesheet). The code for this static scoping is here and is relatively self contained (https://github.com/webcomponents/shadycss/blob/master/src/style-transformer.js).
Polymer does template preparation in the static _finalizeTemplate method. This is called just once when the first instance of the element is created. You can implement this method and override how styling is done.
All that said, this is a bit cumbersome since ShadyCSS does a lot of the heavy lifting here already. Here is a workaround you can use that's easier than rolling your own, but it's not guaranteed to function since it makes use of the private scoping class ShadyCSS uses.


New command: flow owner list

Usage
m365 flow owner list [options]
Description
Lists all owners of a Power Automate flow
Options

Option
Description

-e, --environmentName <environmentName>
The name of the environment.

-n, --name <name>
The name of the Power Automate flow.

--asAdmin
Run the command as admin.

Examples
Gets the owners by the name of the Power Automate flow within a specified environment
m365 flow owner list --environmentName Default-c5a5d746-3520-453f-8a69-780f8e44917e --name 72f2be4a-78c1-4220-a048-dbf557296a72

Gets the owners by the name of the Power Automate flow within a specified environment with admin permissions
m365 flow owner list --environmentName Default-c5a5d746-3520-453f-8a69-780f8e44917e --name 72f2be4a-78c1-4220-a048-dbf557296a72 --asAdmin

Default properties

roleName
id (ID of the user or group)
type

Additional Info
This command is missing at the moment compared to the PowerShell admin commands for Power Automate. Without this command you can't get an overview of all the owners and you can only get the creator of a Power Automate flow.
PowerShell command: https://learn.microsoft.com/en-us/powershell/module/microsoft.powerapps.administration.powershell/get-adminflowownerrole

Hi @Cyhexy great suggestion! Spec looks quite good to me!
According to me, we don't have this functionality yet.
Just checked the PS command, and it seems like we can definitely add this to the CLI.
To retrieve it as regular user:
GET https://management.azure.com/providers/Microsoft.ProcessSimple/environments/<environment>/flows/<flow name>/permissions?api-version=2016-11-01

To retrieve it as admin:
GET https://management.azure.com/providers/Microsoft.ProcessSimple/scopes/admin/environments/<environment>/flows/<flow name>/permissions?api-version=2016-11-01

Response looks something like this:
        {
            "name": "b2091e18-7882-4efe-b7d1-90703f5a5c65",
            "id": "/providers/Microsoft.ProcessSimple/environments/Default-c5a5d746-3520-453f-8a69-780f8e44917e/flows/c52e93af-e946-470f-946e-5b592e1a69e7/permissions/b2091e18-7882-4efe-b7d1-90703f5a5c65",
            "type": "/providers/Microsoft.ProcessSimple/environments/flows/permissions",
            "properties": {
                "roleName": "Owner",
                "permissionType": "Principal",
                "principal": {
                    "id": "b2091e18-7882-4efe-b7d1-90703f5a5c65",
                    "type": "User"
                }
            }
        }

So I suggest that we use properties/roleName, properties/principal/id and `properties/principal/type´ as default properties.

Yes please!

Thank you @MathijsVerbeeck, @Cyhexy will be a happy man!

Thank you @MathijsVerbeeck, @Cyhexy will be a happy man!

If that's the case, he better buys me a sandwich chicken bacon the next time we visit the Mixx!

From now on, this command is available in our beta release. Thank you for creating this issue!


14tv.com 易趣

Checklist

[x] I'm reporting a new site support request
[x] I've verified that I'm running youtube-dl version 2020.11.29
[x] I've checked that all provided URLs are alive and playable in a browser
[x] I've checked that none of provided URLs violate any copyrights
[x] I've searched the bugtracker for similar site support requests including closed ones

Example URLs

Description

No credentials needed.

You need a brief description, some example URLs, or this would be closed.


Fix 3.x-dev tests on CI

Currently the 3.9-dev and 3.10-dev aren't actually running any tests and being marked as a pass:
nox > Session tests-3.9-dev skipped: Python interpreter 3.9-dev not found.

https://github.com/brettcannon/gidgethub/runs/6680350315?check_suite_focus=true
nox > Session tests-3.10-dev skipped: Python interpreter 3.10-dev not found.

https://github.com/brettcannon/gidgethub/runs/6680350397?check_suite_focus=true
We can fix this by adding a variable to map from python-version (which may or may not end in -dev) to a nox-python-version, which does not end in -dev.

Also bump other action versions, add colour to the log output, allow testing feature branches, update Trove classifiers.

Codecov Report

Merging #183 (a1cda2b) into main (07040aa) will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff            @@
##              main      #183   +/-   ##
=========================================
  Coverage   100.00%   100.00%
=========================================
  Files            9         9
  Lines          461       461
  Branches        98       102    +4
=========================================
  Hits           461       461

:mega: Codecov can now indicate which changes are the most critical in Pull Requests. Learn more


[Question] What is the reasoning behind UnusedMethodArgument?

I was hoping to get some clarification on the reasoning behind the UnusedMethodArgument (#996) cop.
Internally on our current project, we are trying to figure out what the usefulness of having an unused method argument that is prepending with _, since if it is unused, it should probably just be deleted (I'm unable to think of a use case where it shouldn't be?).
As well, would the community be open to having a cop that (or option to this cop) that rather than prepending _ as a solution, instead require the deletion of unused arguments?

If the method in question is part of a public API and the implementation no longer needs the parameter then this forms a change of contract with the callers if the parameters are not maintained following a change of implementation.
Consider if this was a gem that you had dependencies upon, any changes to parameterisation of the public API would result in a change of contract so you would have to manage this change more carefully with your consumers (semver major version change etc.). Placeholder parameters may be used to maintain this contract going forward.

You may also not be in control of the call site for the method, like in the case of a callback. Or in the name of polymorphism you may create, say, a no-op for a parameterized method.


Teams Desktop & Web - Markdown Not Honoured

The documentation details that Teams should support the following elements of markdown:

Numbered Lists
Nested Numbered Lists
Forced Line Breaks

However, even when copying the example code, the markdown formatting is being ignored in Teams (Desktop & Web). The formatting is rendering correctly on other clients (i.e. Outlook).

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

ID: e22eb42c-6ab3-854c-c229-569f1ca6d2ea
Version Independent ID: b86cc920-b40d-3a2c-c88b-a36e3692fbbc
Content: Use markdown to format Power Automate approvals - Power Automate
Content Source: articles/approvals-markdown-support.md
Service: flow
GitHub Login: @gcorvera
Microsoft Alias: gcorvera

@hamenon-ms Kindly take a look at this issue.

@BH-BP Thanks for reporting this issue. We'll track the resolution in this issue: https://github.com/MicrosoftDocs/power-automate-docs/issues/396. Closing this issue.


--save will not work if packages are already installed

Say I want to install a package and I run tsd install  angular
By mistake I forgot to use the --save flag.
If I try to re-run tsd install angular --save the tsd.json is not updated with install commits.
A user must delete installed angular package and then rerun tsd install angular --save for the installed package commits to appear inside tsd.json

Hi @matthewharwood, tsd isn't actually managed by the TypeScript team - it's managed by DefinitelyTyped. You can file an issue with them at https://github.com/DefinitelyTyped/tsd/issues/new


Add support for setting k8s version in EKS NodeGroup

Adds support for a different k8s version on EKS nodegroup than used on control-plane.
This allows to define an invalid EKS cluster under rancher which is needed for negative testing of Hosted Providers operators.

If the nodegroup k8s version is not defined it will use the same version as for control-plane so it should be backward compatible.

Can you make back ports? Looks good

@igomez06 backports done.

Do we need a 2.7 backport as well for this test/feature or are we good with these backports?

Do we need a 2.7 backport as well for this test/feature or are we good with these backports? @thehejik

@caliskanugur backport PR created, please see above - we are always using main module for hosted providers testing even on v2.7, but maybe someone else will use it


ci: correctly bump peer dependencies after release

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

[x] The commit message follows Conventional Commits
[ ] Tests for the changes have been added (for bug fixes / features)
[ ] Docs have been added / updated (for bug fixes / features)

PR Type
What kind of change does this PR introduce?

[ ] Bugfix
[ ] Feature
[ ] Refactoring
[ ] Code style update
[x] Build or CI related changes
[ ] Documentation content changes

Does this PR introduce a breaking change?

[ ] Yes
[x] No

Codecov Report

Merging #1344 (b45571c) into main (4eff5a2) will decrease coverage by 16.06%.
The diff coverage is n/a.

@@             Coverage Diff             @@
##             main    #1344       +/-   ##
===========================================
- Coverage   64.81%   48.75%   -16.07%
===========================================
  Files         754       50      -704
  Lines        8677      562     -8115
  Branches     1734       76     -1658
===========================================
- Hits         5624      274     -5350
+ Misses       2638      275     -2363
+ Partials      415       13      -402

Flag
Coverage Δ

addon-charts
?

addon-doc
?

addon-editor
46.05% <ø> (ø)

addon-mobile
?

addon-table
81.39% <ø> (ø)

addon-tablebars
?

cdk
?

core
?

kit
?

summary
48.75% <ø> (-16.07%)
:arrow_down:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files
Coverage Δ

projects/cdk/directives/let/let.module.ts

...s/kit/components/radio-group/radio-group.module.ts

projects/addon-doc/src/languages/russian.ts

projects/kit/tokens/mobile-aware.ts

...cts/kit/components/input-file/input-file.module.ts

projects/addon-doc/src/tokens/pages.ts

projects/cdk/utils/dom/is-inside-iframe.ts

...ts/addon-doc/src/components/page/page.providers.ts

projects/core/services/hint.service.ts

...ore/utils/mask/create-auto-corrected-money-pipe.ts

... and 694 more

Continue to review full report at Codecov.

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


Update install-unifi.sh

Increment version, see https://community.ubnt.com/t5/UniFi-Updates-Blog/UniFi-5-4-15-Stable-has-been-released/ba-p/1910910

Superseded already


Update capabilities to Deep Insights

The operator in the OpenShift embedded hub has been verified as providing Deep Insights by Red Hat Operator Enablement team member Melvin Hillsman.

@mrhillsman Do you want to increase the CSV and operand version or is this a just text change?

@aneeshkp it is just a text change; there were no changes to the CSVs, manifests, etc.


Could not import

"[could not import]"
After completion I think it fails to run the generated components code maybe due to some syntax error.

yes, i implemented a component validation pass in server/modules/multipass/passes/validate-check-generated-component/ but it seems it still doesn't catch all invalid cases

iterating on the validation pass with each update - with the aim of getting valid components directly

currently trying implementations with react-live (or alternatives) on the frontend dashboard to deal with this, we'll see how it goes


4156, 4151

Issue #: /bcgov/entity#4156, /bcgov/entity#4151
Description of changes:
Fixes and updates to step 1 so form validation errors show when a user resumes an application
Office Addresses

added references to address components (sbc common component BaseAddress) so the form validate() function is accessible
add checks on mounted to compare the default address state to what is loaded so re-validation can occur to show errors (e.g. non BC province)
updated formValid() check to fix a bug where the validity for all addresses were not correct

Business Contact

Added a default business contact object for comparison to re-evaluate validation (e.g. invalid email)
Added check on mount to re-validate form if it is not the same as the default form state

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of the bcrs-entities-create-ui license (Apache 2.0).

This ended up being a little tricky as the address components are the common components, so I had to add some references to access the validation. We also didn't want errors to show on a fresh form so for step 1 forms I added some checks against what we consider a default state before re-validating.
The other steps don't seem to be as much as issue since we open an edit form and the user hits done.

That's actually a pretty clean solution. Well done!
Obviously we were missing unit tests to verify various scenarios. Could you please add some to validate your changes (as well as catch any future regressions)? Thanks.

I looked as business contacts and it does have invalid type checks. I am thinking it must have to do more with how the whole app life cycle works and when validation is triggered.
Also, the address components are from the sbc-common-components. I can definitely try to dig into this, just not sure if I should invest the time now as it could be a time sink.

Obviously we were missing unit tests to verify various scenarios. Could you please add some to validate your changes (as well as catch any future regressions)? Thanks.

I looked as business contacts and it does have invalid type checks. I am thinking it must have to do more with how the whole app life cycle works and when validation is triggered.
Also, the address components are from the sbc-common-components. I can definitely try to dig into this, just not sure if I should invest the time now as it could be a time sink.

It's not the BaseAddress component that I want to test, but the OfficeAddresses component... just some simple tests to make sure that validation is done when the component is mounted, and passes/fails according to the page content.
If you're out of time then just add some "TODO" comments in the appropriate unit test file with details on what still needs to be tested (eg, which validation scenarios). Thx.

Obviously we were missing unit tests to verify various scenarios. Could you please add some to validate your changes (as well as catch any future regressions)? Thanks.

I looked as business contacts and it does have invalid type checks. I am thinking it must have to do more with how the whole app life cycle works and when validation is triggered.
Also, the address components are from the sbc-common-components. I can definitely try to dig into this, just not sure if I should invest the time now as it could be a time sink.

It's not the BaseAddress component that I want to test, but the OfficeAddresses component... just some simple tests to make sure that validation is done when the component is mounted, and passes/fails according to the page content.
If you're out of time then just add some "TODO" comments in the appropriate unit test file with details on what still needs to be tested (eg, which validation scenarios). Thx.

Ahh okay, makes sense. Added some tests for office addresses.

Love the unit tests - nice and simple and to the point. Thanks!


vs code has an error in math function specifically power function and addition

153 is an armstrong number but with my programme i am unable to verify it  in visual studio but if i run the same code in another compiler it is working well and it is showilg 153 is armstrong number.
here is the following code :
#include<stdio.h>
#include<stdlib.h>
#include<math.h>
int main()
{
system("cls");
long long n1,n2,a,b,c=0,count=0,flag;
printf("Enter two numbers => \n");
scanf("%lld%lld",&n1,&n2);
printf("List of numbers are => n2 = %lld \n",n2);
system("cls");
while(n1<=n2)
{
count=0;
a=n1;
b=0;
c=0;
while(a!=0)
{
a=a/10;
count++;
}
//printf("for %lld value of count is => %lld \n",n1,count);
a=n1;
flag=0;
//system("cls");
while(a!=0)
{
b=a%10;
c=c+pow(b,count);
printf("b= %lld and c=> %lld \n",b,c);
a=a/10;
}
// printf("for %lld value of c is => %lld \n",n1,c);
/if(n1==c)
{
printf("%lld \n",n1);
}
//printf("%lld \n",n1);/
++n1;
}
}

Are you talking about Visual Studio or Visual Studio Code?


EasyCLA : Permissions need to be updated while adding Github org.

Summary
Whenever user tries to add any Github Org to a project, dashboard is throwing an error.
Background

Open EasyCla GitHub Tab by click on Manage button
Enter GitHub Org URL & click on connect button

Actual Behavior
Its not accepting the any org name & throwing error.

cc : @thakurveerendras

@thakurveerendras we missed updating GitHub token for US East 2 in DEV. We fixed it and now this should be working as expected.

Tested the issue on the dev site & found that it is working fine after fixing the GitHub token key as mentioned above, So moving this ticket to Done state

This is done, so closing.