DocumentTranslationException

Hi there, I've been using the Deepl python package to translate the entire PDFs. I had it running for some time already and most of the time it worked perfectly. Today, I was going through the logs and found some failed cases and the error logs I've collected. I couldn't figure out what went wrong so please provide some suggestions on how to address them:
#1:
Traceback (most recent call last):
  File "/opt/document_translator.py", line 528, in translate_batch_docs
    target_lang=self.target_language_code)
  File "/opt/conda/lib/python3.6/site-packages/deepl/translator.py", line 780, in translate_document_from_filepath
    raise e
  File "/opt/conda/lib/python3.6/site-packages/deepl/translator.py", line 775, in translate_document_from_filepath
    glossary=glossary,
  File "/opt/conda/lib/python3.6/site-packages/deepl/translator.py", line 839, in translate_document
    "Error occurred while translating document", handle
deepl.exceptions.DocumentTranslationException: <super: <class 'DocumentTranslationException'>, <DocumentTranslationException object>>, document request: Document ID: B54E4E5999C915EF63AACA877843C03C, key: 2B17****
!

#2:
Traceback (most recent call last):
  File "/opt/document_translator.py", line 528, in translate_batch_docs
    target_lang=self.target_language_code)
  File "/opt/conda/lib/python3.6/site-packages/deepl/translator.py", line 780, in translate_document_from_filepath
    raise e
  File "/opt/conda/lib/python3.6/site-packages/deepl/translator.py", line 775, in translate_document_from_filepath
    glossary=glossary,
  File "/opt/conda/lib/python3.6/site-packages/deepl/translator.py", line 817, in translate_document
    glossary=glossary,
  File "/opt/conda/lib/python3.6/site-packages/deepl/translator.py", line 876, in translate_document_upload
    self._raise_for_status(status, content, json)
  File "/opt/conda/lib/python3.6/site-packages/deepl/translator.py", line 522, in _raise_for_status
    "Too many requests, DeepL servers are currently experiencing "
deepl.exceptions.TooManyRequestsException: Too many requests, DeepL servers are currently experiencing high load, message: Too many non-downloaded documents!

#3:
Traceback (most recent call last):
  File "/opt/conda/lib/python3.6/site-packages/urllib3/connectionpool.py", line 445, in _make_request
    six.raise_from(e, None)
  File "<string>", line 3, in raise_from
  File "/opt/conda/lib/python3.6/site-packages/urllib3/connectionpool.py", line 440, in _make_request
    httplib_response = conn.getresponse()
  File "/opt/conda/lib/python3.6/http/client.py", line 1379, in getresponse
    response.begin()
  File "/opt/conda/lib/python3.6/http/client.py", line 311, in begin
    version, status, reason = self._read_status()
  File "/opt/conda/lib/python3.6/http/client.py", line 272, in _read_status
    line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")
  File "/opt/conda/lib/python3.6/socket.py", line 586, in readinto
    return self._sock.recv_into(b)
  File "/opt/conda/lib/python3.6/ssl.py", line 1012, in recv_into
    return self.read(nbytes, buffer)
  File "/opt/conda/lib/python3.6/ssl.py", line 874, in read
    return self._sslobj.read(len, buffer)
  File "/opt/conda/lib/python3.6/ssl.py", line 631, in read
    v = self._sslobj.read(len, buffer)
socket.timeout: The read operation timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/opt/conda/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/opt/conda/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/opt/conda/lib/python3.6/site-packages/urllib3/util/retry.py", line 532, in increment
    raise six.reraise(type(error), error, _stacktrace)
  File "/opt/conda/lib/python3.6/site-packages/urllib3/packages/six.py", line 735, in reraise
    raise value
  File "/opt/conda/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/opt/conda/lib/python3.6/site-packages/urllib3/connectionpool.py", line 447, in _make_request
    self._raise_timeout(err=e, url=url, timeout_value=read_timeout)
  File "/opt/conda/lib/python3.6/site-packages/urllib3/connectionpool.py", line 337, in _raise_timeout
    self, url, "Read timed out. (read timeout=%s)" % timeout_value
urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='api.deepl.com', port=443): Read timed out. (read timeout=10.886348485946655)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/opt/conda/lib/python3.6/site-packages/deepl/http_client.py", line 168, in _internal_request
    request, stream=stream, timeout=timeout, **kwargs
  File "/opt/conda/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/opt/conda/lib/python3.6/site-packages/requests/adapters.py", line 529, in send
    raise ReadTimeout(e, request=request)
requests.exceptions.ReadTimeout: HTTPSConnectionPool(host='api.deepl.com', port=443): Read timed out. (read timeout=10.886348485946655)

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/opt/document_translator.py", line 528, in translate_batch_docs
    target_lang=self.target_language_code)
  File "/opt/conda/lib/python3.6/site-packages/deepl/translator.py", line 780, in translate_document_from_filepath
    raise e
  File "/opt/conda/lib/python3.6/site-packages/deepl/translator.py", line 775, in translate_document_from_filepath
    glossary=glossary,
  File "/opt/conda/lib/python3.6/site-packages/deepl/translator.py", line 817, in translate_document
    glossary=glossary,
  File "/opt/conda/lib/python3.6/site-packages/deepl/translator.py", line 874, in translate_document_upload
    "v2/document", data=request_data, files=files
  File "/opt/conda/lib/python3.6/site-packages/deepl/translator.py", line 476, in _api_call
    **kwargs,
  File "/opt/conda/lib/python3.6/site-packages/deepl/http_client.py", line 119, in request_with_backoff
    raise exception
  File "/opt/conda/lib/python3.6/site-packages/deepl/http_client.py", line 106, in request_with_backoff
    request, stream=stream, timeout=backoff.get_timeout()
  File "/opt/conda/lib/python3.6/site-packages/deepl/http_client.py", line 184, in _internal_request
    raise ConnectionException(message, should_retry=True) from e
deepl.exceptions.ConnectionException: Request timed out: HTTPSConnectionPool(host='api.deepl.com', port=443): Read timed out. (read timeout=10.886348485946655)
!

I'm using deepl==1.3.1 and the code I use was:
class DocumentTranslator(object):
    def __init__(self):
        self.translator = deepl.Translator(auth_key=AUTO_TRANSLATION_KEY)
        self.target_language_code = "en-us"

    def translate_batch_docs(pdfs):
        for pdf in pdfs:
            translated_pdf = pdf.replace('.pdf', '_translated.pdf')
            self.translator.translate_document_from_filepath(pdf, translated_pdf, target_lang=self.target_language_code)

Hi @ay2456,
In # 2, it seems you have "Too many non-downloaded documents", so downloading some already-translated documents should resolve the issue.
In # 3, the request timed out. This was probably due to temporary problems with our network, so retrying that document.
In # 1, there was some error during translation on DeepL servers. Unfortunately due to a bug in the DocumentTranslationException stringize function, we cannot see in the log what the underlying cause was. That bug will be fixed soon.
However using the logged document ID and key you can try check the status and retrieve the document, using something like this:
def retrieve_document(id, key, output_path):
    handle = deepl.DocumentHandle(id, key)
    status = translator.translate_document_get_status(handle)
    if status.ok and status.done:
        translator.translate_document_download(handle, output_path)
        return True
    else:
        print("Document translation not finished or error occurred")
        return False

Your code seems fine, but you could consider catching any DocumentTranslationException and recording the document_request that contains the ID and key, so you can retrieve them later or contact support.

v1.4.1 includes the fix I described for # 1.

@daniel-jones-deepl Thank you for the quick reply and fix! Appreciated it!
I have 2 follow-up questions:
Q1: Regarding the retrieve_document example you provided above, usually how long do I have to wait until I can consider the translation failed? Will it throw DocumentTranslationException as well?
Q2: In cases like # 1 where something failed on the Deepl server-side, am I getting billed for the request?

@daniel-jones-deepl I updated the deepl package to 1.4.1 and ran into the # 1 exception again, this time the error log looked like this:
---------------------------------------------------------------------------
DocumentTranslationException              Traceback (most recent call last)
Input In [15], in <module>
----> 1 dt.translate_batch_docs([pdf_path])

Input In [12], in DocumentTranslator.translate_batch_docs(self, pdfs)
      7 for pdf in pdfs:
      8     translated_pdf = pdf.replace('.pdf', '_translated.pdf')
----> 9     self.translator.translate_document_from_filepath(pdf, translated_pdf, target_lang=self.target_language_code)

File /opt/conda/lib/python3.9/site-packages/deepl/translator.py:792, in Translator.translate_document_from_filepath(self, input_path, output_path, source_lang, target_lang, formality, glossary)
    790 out_file.close()
    791 os.unlink(output_path)
--> 792 raise e

File /opt/conda/lib/python3.9/site-packages/deepl/translator.py:781, in Translator.translate_document_from_filepath(self, input_path, output_path, source_lang, target_lang, formality, glossary)
    779 with open(output_path, "wb") as out_file:
    780     try:
--> 781         self.translate_document(
    782             in_file,
    783             out_file,
    784             target_lang=target_lang,
    785             source_lang=source_lang,
    786             formality=formality,
    787             glossary=glossary,
    788         )
    789     except Exception as e:
    790         out_file.close()

File /opt/conda/lib/python3.9/site-packages/deepl/translator.py:851, in Translator.translate_document(self, input_document, output_document, source_lang, target_lang, formality, glossary)
    848     raise DocumentTranslationException(str(e), handle) from e
    850 if not status.ok:
--> 851     raise DocumentTranslationException(
    852         "Error occurred while translating document", handle
    853     )

DocumentTranslationException: Error occurred while translating document, document request: Document ID: FEC7FDF4AAEEE98***, key: 50FEA198BA72CD7DADFA64F13***

It still doesn't say what was wrong.
Also, is there an easier way to fetch the document_request? I had to parse the error messages to get it right now?

Hi @ay2456, sorry that this reply is so delayed.
Firstly your most recent question: yes, you can fetch the document request by catching the thrown exception, like this:
try:
    self.translator.translate...                       # Call deepl functions
except deepl.DocumentTranslationException as error:
    document_request = error.document_request          # Get the document_request
    document_id = document_request.document_id
    document_key = document_request.document_key
    ...                                                # Save the document ID and key for later use
    raise error                                        # Throw the error onwards

Just a quick extra note: error.document_request will soon be renamed to error.document_handle (to match the class DocumentHandle), but we'll make the change backward-compatible so the above code will still work.
Next, your earlier Q1: no, Translator.translate_document_get_status and Translator.translate_document_download do not throw DocumentTranslationException, and they should only throw if there is a connection error. A document translation error would be indicated in the status as not status.ok. In my experience, a document translation failure will be reported in seconds, but it could vary based on many factors. I can see now the retrieve_document example I gave above squashes the two cases of error and not-done together, we can split them apart to make it clearer:
def retrieve_document(id, key, output_path):
    handle = deepl.DocumentHandle(id, key)
    status = translator.translate_document_get_status(handle)
    if not status.ok:
        print("Document translation failed")  # Maybe you would prefer to raise an exception here?
        return False
    elif status.done:
        translator.translate_document_download(handle, output_path)
        return True
    else:
        print("Document translation not yet finished")
        return False

If your documents have a translation failure, you could contact our support.
Lastly, Q2: no we will not bill you if the document translation failure is on our side.

Ah sorry, I also missed your point about the error message not saying what was wrong. Unfortunately our API does not expose an error message in case of document translation failure. So for that document could you please contact support?

@daniel-jones-deepl Thank you for the reply! Let's do more testing. I'll close this issue if everything works properly.


Running an empty command reports as the last command run

Testing #141339

Write echo hi in powershell
Hint enter several times
In recent commands, observe duplicates of the last command even though nothing was run

This is https://github.com/microsoft/vscode/issues/141180


Can't use functional components with ref

Can't use functional components, because they don't support ref, eg:
export const SomeForm = ({
  handleSubmit = () => {},
  isLoading = false,
  errorMessage = '',
}) => (
  <form onSubmit={handleSubmit}>
    <Field
      component={TextField}
      withRef
      ref="password"
      fullWidth
      disabled={isLoading}
      name="password"
      type="password"
      hintText={'E-Mail'}
      validate={[required, email]}
    />

    {errorMessage && <ErrorMessage>{errorMessage}</ErrorMessage>}
  </form>
);

Any ideas?

React doesn't allow ref inside functional component more details here
You may not use the ref attribute on functional components because they don't have instances:


[FEATURE REQUEST] Start bhagwad gita quiz should be highlighted and in top

https://akshitagupta15june.github.io/Moksh/Divine_page/story.html
currently the quiz button is on bottom and also not catchy it should be highlighted in this page and on top

Please assign it to me

Please assign this to me

please assign this issue to me @akshitagupta15june

Assigned!

Assigned!

@akshitagupta15june did you want the button on top of "Desk Yoga Made Easy with these 3 Yoga Exercises!"? Where exactly is preferred. Thanks again for assigning!

I can't see the image

I can't see the image

Not sure why it didn't upload, but now it's there @akshitagupta15june

not in top but can u keep it below the 4 Exercises to Boost Your Workday! also please beautify this button, or if you have any ideas to make it more creative

are u still working on it?

please assign me this issue @akshitagupta15june

are u still working on it?

I am going to do a PR today.


AlertDialog not showing

Steps to Reproduce
 _redeemQRDialog() {
    showDialog(
        context: context,
        builder: (BuildContext context) {
          return Container(
            width: 300,
            child: AlertDialog(
              title: Text(
                'TITLE',
                style: TextStyle(color: Theme.of(context).primaryColor),
              ),
              content: Column(
                mainAxisSize: MainAxisSize.min,
                children: <Widget>[
                  Text('Laat de klant de QR-code scannen'),
                  QrImage(
                    data: bloc.redeemQRCode,
                    gapless: true,
                    foregroundColor:
                    Theme.of(context).primaryColor,),
                ],
              ),
              actions: <Widget>[
                FlatButton(
                  child: Text('HIDE'),
                  onPressed: () => Navigator.pop(context),
                ),
              ],
            ),
          );
        });
  }

Open AlertDialog in Andriod 10 on OnePlus 7 Pro
Expected results:
An AlertDialog containing title, QR-code and close button
Actual results:
Screen

Logs
[+2225 ms] I/flutter (19249): ══╡ EXCEPTION CAUGHT BY RENDERING LIBRARY ╞═════════════════════════════════════════════════════════ [   +1 ms] I/flutter (19249): The following NoSuchMethodError was thrown during performLayout(): [   +1 ms] I/flutter (19249): The method 'copyWith' was called on null. [   +1 ms] I/flutter (19249): Receiver: null [   +1 ms] I/flutter (19249): Tried calling: copyWith(maxWidth: Infinity) [        ] I/flutter (19249):  [        ] I/flutter (19249): The relevant error-causing widget was: [        ] I/flutter (19249):   AlertDialog [        ] I/flutter (19249):   file:///C:/Users/daniel/projects/stempelkaart/business-app/lib/views/main_pages/qr-code-page.dart:163:20 [        ] I/flutter (19249):  [        ] I/flutter (19249): When the exception was thrown, this was the stack: [        ] I/flutter (19249): #0      Object.noSuchMethod (dart:core-patch/object_patch.dart:53:5) [        ] I/flutter (19249): #1      _RenderButtonBarRow.constraints (package:flutter/src/material/button_bar.dart:292:30) [   +1 ms] I/flutter (19249): #2      RenderObject.debugFillProperties (package:flutter/src/rendering/object.dart:2791:68) [        ] I/flutter (19249): #3      RenderBox.debugFillProperties (package:flutter/src/rendering/box.dart:2417:11) [        ] I/flutter (19249): #4      RenderFlex.debugFillProperties (package:flutter/src/rendering/flex.dart:1015:11) [        ] I/flutter (19249): #5      DiagnosticableNode.builder (package:flutter/src/foundation/diagnostics.dart:2900:14) [   +3 ms] I/flutter (19249): #6      DiagnosticableNode.style (package:flutter/src/foundation/diagnostics.dart:2907:70) [        ] I/flutter (19249): #7      DiagnosticsNode.toString (package:flutter/src/foundation/diagnostics.dart:1629:12) [   +1 ms] I/flutter (19249): #8      _StringBase._interpolate (dart:core-patch/string_patch.dart:845:19) [   +1 ms] I/flutter (19249): #9      TextTreeRenderer.render.visitor (package:flutter/src/foundation/diagnostics.dart:1140:69) [        ] I/flutter (19249): #10     TextTreeRenderer.render.visitor (package:flutter/src/foundation/diagnostics.dart:1142:22) [        ] I/flutter (19249): #11     TextTreeRenderer.render.visitor (package:flutter/src/foundation/diagnostics.dart:1142:22) [        ] I/flutter (19249): #12     TextTreeRenderer.render.visitor (package:flutter/src/foundation/diagnostics.dart:1142:22) [   +1 ms] I/flutter (19249): #13     TextTreeRenderer.render.visitor (package:flutter/src/foundation/diagnostics.dart:1142:22) [        ] I/flutter (19249): #14     TextTreeRenderer.render (package:flutter/src/foundation/diagnostics.dart:1150:14) [        ] I/flutter (19249): #15     TextTreeRenderer.render (package:flutter/src/foundation/diagnostics.dart:1294:39) [        ] I/flutter (19249): #16     FlutterError.dumpErrorToConsole (package:flutter/src/foundation/assertions.dart:652:11) [        ] I/flutter (19249): #17     FlutterError.reportError (package:flutter/src/foundation/assertions.dart:741:14) [   +1 ms] I/flutter (19249): #18     RenderObject._debugReportException (package:flutter/src/rendering/object.dart:1270:18) [   +1 ms] I/flutter (19249): #19     RenderObject.layout (package:flutter/src/rendering/object.dart:1731:7) [        ] I/flutter (19249): #20     RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:105:13) [        ] I/flutter (19249): #21     _RenderCustomClip.performLayout (package:flutter/src/rendering/proxy_box.dart:1232:11) [        ] I/flutter (19249): #22     RenderObject.layout (package:flutter/src/rendering/object.dart:1724:7) [        ] I/flutter (19249): #23     RenderConstrainedBox.performLayout (package:flutter/src/rendering/proxy_box.dart:259:13) [   +1 ms] I/flutter (19249): #24     RenderObject.layout (package:flutter/src/rendering/object.dart:1724:7) [        ] I/flutter (19249): #25     RenderPositionedBox.performLayout (package:flutter/src/rendering/shifted_box.dart:392:13) [        ] I/flutter (19249): #26     RenderObject.layout (package:flutter/src/rendering/object.dart:1724:7) [        ] I/flutter (19249): #27     RenderPadding.performLayout (package:flutter/src/rendering/shifted_box.dart:206:11) [   +1 ms] I/flutter (19249): #28     RenderObject.layout (package:flutter/src/rendering/object.dart:1724:7) [   +1 ms] I/flutter (19249): #29     RenderConstrainedBox.performLayout (package:flutter/src/rendering/proxy_box.dart:259:13) [   +1 ms] I/flutter (19249): #30     RenderObject.layout (package:flutter/src/rendering/object.dart:1724:7) [        ] I/flutter (19249): #31     RenderPadding.performLayout (package:flutter/src/rendering/shifted_box.dart:206:11) [   +1 ms] I/flutter (19249): #32     RenderObject.layout (package:flutter/src/rendering/object.dart:1724:7) [        ] I/flutter (19249): #33     RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:105:13) [        ] I/flutter (19249): #34     RenderObject.layout (package:flutter/src/rendering/object.dart:1724:7) [        ] I/flutter (19249): #35     RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:105:13) [   +1 ms] I/flutter (19249): #36     RenderObject.layout (package:flutter/src/rendering/object.dart:1724:7) [        ] I/flutter (19249): #37     RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:105:13) [        ] I/flutter (19249): #38     RenderObject.layout (package:flutter/src/rendering/object.dart:1724:7) [        ] I/flutter (19249): #39     RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:105:13) [        ] I/flutter (19249): #40     RenderObject.layout (package:flutter/src/rendering/object.dart:1724:7) [        ] I/flutter (19249): #41     RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:105:13) [        ] I/flutter (19249): #42     RenderObject.layout (package:flutter/src/rendering/object.dart:1724:7) [        ] I/flutter (19249): #43     RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:105:13) [        ] I/flutter (19249): #44     RenderObject.layout (package:flutter/src/rendering/object.dart:1724:7) [        ] I/flutter (19249): #45     RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:105:13) [        ] I/flutter (19249): #46     RenderOffstage.performLayout (package:flutter/src/rendering/proxy_box.dart:3168:13) [   +1 ms] I/flutter (19249): #47     RenderObject.layout (package:flutter/src/rendering/object.dart:1724:7) [        ] I/flutter (19249): #48     RenderStack.performLayout (package:flutter/src/rendering/stack.dart:505:15) [        ] I/flutter (19249): #49     RenderObject._layoutWithoutResize (package:flutter/src/rendering/object.dart:1584:7) [        ] I/flutter (19249): #50     PipelineOwner.flushLayout (package:flutter/src/rendering/object.dart:844:18) [        ] I/flutter (19249): #51     RendererBinding.drawFrame (package:flutter/src/rendering/binding.dart:344:19) [        ] I/flutter (19249): #52     WidgetsBinding.drawFrame (package:flutter/src/widgets/binding.dart:774:13) [        ] I/flutter (19249): #53     RendererBinding._handlePersistentFrameCallback (package:flutter/src/rendering/binding.dart:283:5) [        ] I/flutter (19249): #54     SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:1102:15) [        ] I/flutter (19249): #55     SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:1041:9) [        ] I/flutter (19249): #56     SchedulerBinding._handleDrawFrame (package:flutter/src/scheduler/binding.dart:957:5) [        ] I/flutter (19249): #60     _invoke (dart:ui/hooks.dart:259:10) [   +1 ms] I/flutter (19249): #61     _drawFrame (dart:ui/hooks.dart:217:3) [        ] I/flutter (19249): (elided 3 frames from package dart:async) [        ] I/flutter (19249):  [        ] I/flutter (19249): The following RenderObject was being processed when the exception was fired: RenderPhysicalShape#49d2f relayoutBoundary=up2 NEEDS-LAYOUT NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE: [        ] I/flutter (19249):   needs compositing [        ] I/flutter (19249):   creator: PhysicalShape ← _MaterialInterior ← Material ← ConstrainedBox ← Center ← MediaQuery ← [        ] I/flutter (19249):     Padding ← AnimatedPadding ← Dialog ← AlertDialog ← ConstrainedBox ← Container ← ⋯ [        ] I/flutter (19249):   parentData: <none> (can use size) [        ] I/flutter (19249):   constraints: BoxConstraints(280.0<=w<=390.2, 0.0<=h<=934.2) [        ] I/flutter (19249):   size: MISSING [        ] I/flutter (19249):   elevation: 24.0 [        ] I/flutter (19249):   color: Color(0xffffffff) [   +2 ms] I/flutter (19249):   shadowColor: Color(0xffffffff) [        ] I/flutter (19249):   clipper: ShapeBorderClipper [   +1 ms] I/flutter (19249): This RenderObject had the following descendants (showing up to depth 5): [   +2 ms] I/flutter (19249):     child: RenderCustomPaint#7d076 relayoutBoundary=up3 NEEDS-LAYOUT NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE [        ] I/flutter (19249):       child: _RenderInkFeatures#10787 relayoutBoundary=up4 NEEDS-LAYOUT NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE [   +1 ms] I/flutter (19249):         child: RenderIntrinsicWidth#3c984 relayoutBoundary=up5 NEEDS-LAYOUT NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE [        ] I/flutter (19249):           child: RenderFlex#36e0f NEEDS-LAYOUT NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE [        ] I/flutter (19249):             child 1: RenderPadding#2716a NEEDS-LAYOUT NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE [   +1 ms] I/flutter (19249):             child 2: RenderPadding#48d98 NEEDS-LAYOUT NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE [        ] I/flutter (19249):             child 3: RenderPadding#fc2ac NEEDS-LAYOUT NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE [        ] I/flutter (19249): ════════════════════════════════════════════════════════════════════════════════════════════════════ [   +1 ms] I/flutter (19249): Another exception was thrown: RenderBox was not laid out: RenderPhysicalShape#49d2f relayoutBoundary=up2 NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE [        ] I/flutter (19249): Another exception was thrown: 'package:flutter/src/rendering/shifted_box.dart': Failed assertion: line 321 pos 12: 'child.hasSize': is not true. [        ] I/flutter (19249): Another exception was thrown: RenderBox was not laid out: RenderPhysicalShape#49d2f relayoutBoundary=up2 [        ] I/flutter (19249): Another exception was thrown: Updated layout information required for RenderCustomPaint#7d076 relayoutBoundary=up3 NEEDS-LAYOUT NEEDS-PAINT to calculate semantics.

[√] Flutter (Channel beta, v1.12.13+hotfix.6, on Microsoft Windows [Version 10.0.18362.535], locale en-NL)
    • Flutter version 1.12.13+hotfix.6 at C:\src\flutter
    • Framework revision 18cd7a3601 (5 weeks ago), 2019-12-11 06:35:39 -0800
    • Engine revision 2994f7e1e6
    • Dart version 2.7.0

[!] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
    • Android SDK at C:\Users\daniel\AppData\Local\Android\sdk
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-29, build-tools 29.0.2
    • Java binary at: C:\Users\daniel\AppData\Local\JetBrains\Toolbox\apps\AndroidStudio\ch-0\191.6010548\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b03)
    X Android license status unknown.
      Try re-installing or updating your Android SDK Manager.
      See https://developer.android.com/studio/#downloads or visit https://flutter.dev/setup/#android-setup for detailed instructions.

[√] Chrome - develop for the web
    • Chrome at C:\Program Files (x86)\Google\Chrome\Application\chrome.exe

[√] Android Studio (version 3.5)
    • Android Studio at C:\Users\daniel\AppData\Local\JetBrains\Toolbox\apps\AndroidStudio\ch-0\191.6010548
    • Flutter plugin version 42.1.1
    • Dart plugin version 191.8593
    • Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b03)

[√] IntelliJ IDEA Ultimate Edition (version 2019.3)
    • IntelliJ at C:\Users\daniel\AppData\Local\JetBrains\Toolbox\apps\IDEA-U\ch-0\193.5662.53
    • Flutter plugin version 42.1.4
    • Dart plugin version 193.5731

[√] Connected device (3 available)
    • GM1913     • 33311d9f   • android-arm64  • Android 10 (API 29)
    • Chrome     • chrome     • web-javascript • Google Chrome 79.0.3945.117
    • Web Server • web-server • web-javascript • Flutter Tools

! Doctor found issues in 1 category.

Also tried the stable channel, but no succes. The AlertDialog does not show on my OnePlus 7 Pro, with Andriod 10. OxygenOs build 10.0.3.GM21BA.
It does pop up on my Samsung Galaxy S7 Edge, running Andriod 8.0.0.

try to wrap your AlertDialog content with a Container which has fixed width & height. i.e. :
content: Container(width: 300, height: 300, child: Column(
                mainAxisSize: MainAxisSize.min,
                children: <Widget>[
                  Text('Laat de klant de QR-code scannen'),
                  QrImage(
                    data: bloc.redeemQRCode,
                    gapless: true,
                    foregroundColor:
                    Theme.of(context).primaryColor,),
                ],
              )),

I'm getting this same error on an ios simulator with this code:
changeActiveStateDialog(BuildContext context, bool isActive, User member,
    Function onPressed) async {
  await showDialog(
      context: context,
      builder: (context) {
        return AlertDialog(
          title: Text(isActive
              ? 'Activate ${member.displayName}?'
              : 'Deactive ${member.displayName}?'),
          actions: <Widget>[
            FlatButton(
              child: Text(
                "No",
                style: kDefaultTextStyle,
              ),
              onPressed: () {
                Navigator.of(context).pop();
              },
            ),
            Container(
              constraints: BoxConstraints(maxWidth: 95, maxHeight: 40),
              child: Button(text: "Yes", onPressed: onPressed),
            ),
          ],
        );
      });
}

Found a fix for mine:
changeActiveStateDialog(BuildContext context, bool isActive, User member,
    Function onPressed) async {
  await showDialog(
      context: context,
      builder: (BuildContext context) {
        return AlertDialog(
          title: Text(isActive
              ? 'Activate ${member.displayName}?'
              : 'Deactive ${member.displayName}?'),
          actions: <Widget>[
            FlatButton(
              child: Text(
                "No",
                style: kDefaultTextStyle,
              ),
              onPressed: () {
                Navigator.of(context).pop();
              },
            ),
            Container(
              height: 40,
              width: 120,
              constraints: BoxConstraints(maxWidth: 95, maxHeight: 40),
              child: Button(text: "Yes", onPressed: onPressed),
            ),
          ],
        );
      });
}

It looks like defining the height and width of the container for one of the AlertDialog children did it for me. It must be that for some reason the child is not getting size information from the parent so you need to specifically define the size with a container.

Hi @danielroek,
Can you please confirm if you still experience this issue on latest Flutter channel (eg : dev, master) and using same device ?

@darshankawar Do you want to know if it works with or without a fixed-size container in the AlertDialog content? It does work with a fixed-size container. But I haven't checked if it works without one since this issue

@danielroek, Would like to know if it works now per your original issue and on same device you mentioned.

Thanks @danielroek for confirming.
Do you feel this issue can be closed since you can now see the alert dialog ?

Sure, the workaround is not a big problem


Plural year translation

We don't have plural form for years in Norway, but have change it to "Choose year".

Awesome thanks! now in version 1.43.0


Updates and fixes to HttpSensitivityGenerator

Motivation and Context

Closes https://github.com/awslabs/smithy-rs/issues/1702
Prepares for the logging middleware to be converted into a Plugin.

Description

Simplify sensitivity detection logic by assuming bindings only exist at top level input/output.
Fix greedy label logic - they can now exist alongside of normal labels.
Fix httpPrefixHeader false positive.
Export RequestFmt and ResponseFmt types alongside the closures.
More extensive use of Writable to improve readability.

Putting this back into draft to add more test coverage and documentation.


documentation bug re "CREATE FUNCTION .... language javascript"

The following transcript illustrates there is a documentation bug on the page:
http://orientdb.com/docs/2.1/SQL-Create-Function.html
where it claims:
"language, optional, is the language. By default is "Javascript"."
OrientDB console v.2.1.5 (build 2.1.x@r; 2015-10-29 16:54:25+0000) www.orientdb.com
...
orientdb {db=diner}> CREATE FUNCTION test1 "print('Testing 1')"

Function created successfully with id=#6:6

orientdb {db=diner}> select test1()

Error: com.orientechnologies.orient.core.command.OCommandExecutorNotFoundException: Cannot find a command executor for the command request: sql.print('Testing 1')

orientdb {db=diner}> CREATE FUNCTION test2 "print('Testing 2')"  language javascript

Function created successfully with id=#6:7

orientdb {db=diner}> select test2()
Testing 2
----+------
#   |@CLASS
----+------
0   |null
----+------

The docs you've linked to is the SQL command reference. I am not sure, but if you look under the console command reference, CREATE FUNCTION isn't under those commands.
http://orientdb.com/docs/2.1/Console-Commands.html
So, either the CREATE FUNCTION command is missing in the docs under "Console Commands" and this is a bug....
...... or the command was never meant to work over the console to begin with. If so, then I'd still call this a bug, as the command, if it isn't supposed to be supported by the console, should then return a "No such function" error and not strange results, contrary to the actual SQL command and possibly causing confusion with users.
Scott

@smolinari - The key point that your post suggests you may be missing is that "CREATE FUNCTION" does work as expected (both for javascript and SQL functions) provided the LANGUAGE keyword is given.  Thus I think that your "either ... or ..." dichotomy is thus probably wrong as it's clear there are multiple deficiencies in the documentation.

Only the ODB team knows......
The fact something works in certain situations could be a mistake. i.e. functions working over the console.
It is either missing documentation and a bug, because the key word is necessary for JS functions to work over the console and functions aren't described in the console documentation or it is a bug with no missing documentation, because functions function over the console and actually shouldn't. Just because they do function partially doesn't mean it was intended. Put another way, if functions worked properly over the console, I'd be more reluctant to say the documentation is missing.
Scott


CD pipeline doesn't wait for deployment (error instead)

Hello,
Everytime the CD pipeline is ran manually or automatically triggered by the CI pipeline, I get an error on the "Wait for changes to be applied" task ("wait for the deployment completion" job to be specific)

Here is the output logged into the agent's console:
==============================================================================
Task         : Wait for deployment completion
Description  : Invoke a REST API as a part of your pipeline.
Version      : 1.198.0
Author       : Microsoft Corporation
Help URL     : https://docs.microsoft.com/azure/devops/pipelines/tasks/utility/http-rest-api
==============================================================================
2022-06-03T08:56:54.7618625Z PATCH https://dev.azure.com/REDACTED/REDACTED/_apis/git/repositories/arc-cicd-demo-gitops/pullRequests/9/properties?api-version=6.0
Request body: [
  {
    "op": "add",
    "path": "/callback-task-id",
    "from": null,
    "value": "{\"taskid\":\"6f2d1337-9ed3-578f-60ac-e83280f1bf3d\", \"jobid\":\"736cfeee-0e1e-576a-9966-266cc2920b0a\", \"planurl\":\"https://dev.azure.com/REDACTED/\",  \"planid\":\"607710ba-7a67-47d6-b381-24f8e5ceb42a\", \"projectid\":\"bb51bca6-9deb-4c65-9d53-8a7028050369\", \"pr_num\":\"9\"}"
  }
]
				Response Code: 0
				Response: An error was encountered while processing request. Exception: {"$id":"1","innerException":null,"message":"TF401019: The Git repository with name or identifier arc-cicd-demo-gitops does not exist or you do not have permissions for the operation you are attempting.","typeName":"Microsoft.TeamFoundation.Git.Server.GitRepositoryNotFoundException, Microsoft.TeamFoundation.Git.Server","typeKey":"GitRepositoryNotFoundException","errorCode":0,"eventId":3000}
Exception Message: The remote server returned an error: (404) Not Found. (type WebException)

As you have may noticed, I have changed the changed the api-version from 6.0-preview.1 to the stable version 6.0 (I get the  same issue on the 6.0-preview.1 version).
I am also sure that the arc-cicd-demo-gitops repository exists and I have FULL permissions on my Build Service User

Go to Pipelines/Settings and switch off Protect access to repositories in YAML pipelines option.

Thank you @eedorenko
The issue has been resolved 👍


When I try to read from stream - stream does not support seeking

Bug Report
My way, I download csv files from some resource by Guzzle, use for that stream option, then I use stream way for saving this files to digital ocean space, and the another script, consumer get this job for handle data inside the file, by each row. And I gaced with error stream does not support seeking

Information
Description

Version
"^9.5"

PHP version
7.4.10

OS Platform
alpine:edge

Summary
when executed process I faced with - stream does not support seeking
Standalone code, or other way to reproduce the problem
for save and read file by stream way I use
"league/flysystem-bundle": "dev-master"
        "keven/flysystem-concatenate": "dev-master",

save part ($phpStream - stream from guzzle ), with save part everythng ok, wihout error
        $this->do->getStorage()
            ->writeStream($doPath, $phpStream);

then another consumer for read part
        $readStream = $this->do->getStorage()->readStream($filePath);

        /** @var Reader $csv */
        $csv = Reader::createFromStream($readStream);
        $csv->setHeaderOffset(0);
        $csv->setDelimiter(';');

        //build a statement
        $stmt = (new Statement())
            ->offset(1)
            ->limit(10);

        //query your records from the document
        $records = $stmt->process($csv);

        foreach ($records as $offsetRecord => $record) {
            $t = 1;
        }

I was deep inside and found point where exactly problem
when created Stream class in construnctor
\League\Csv\Stream::__construct
set property
    $this->is_seekable = stream_get_meta_data($stream)['seekable'];

and my stream answered
result = {array} [11]
 crypto = {array} [4]
 timed_out = false
 blocked = true
 eof = false
 wrapper_data = {array} [12]
 wrapper_type = "http"
 stream_type = "tcp_socket/ssl"
 mode = "r"
 unread_bytes = {int} 7715
 seekable = false
 uri = "https://minimoj-consumer.ams3.digitaloceanspaces.com/minimoj-consumer/minimoj/download_files/adrecord/gus_textil/20200909163429.csv"

and then in \League\Csv\Stream::rewind
this properrty cheked and thrown exception if it was false
    public function rewind()
    {
        if (!$this->is_seekable) {
            throw new Exception('stream does not support seeking');
        }

How to correct use stream ? And with what bundle problem, csv or flysystem or with digital ocean space storage ?
Expected result
I should get scv rows with limit and offset from csv file
Actual result
thrown exception about stream does not support seeking

@shubaivan thanks for the detailed report but I'm afraid there's nothing I can do to help you. The exception you get does indicate the issue. The stream your are feeding the library is not seekable.
The solution is to see how to make ther stream from your third party provider streamable. I'm afraid this is out of scope for the issue list as you are faced with a documented limitation from the library.
Sorry I can not be of more help

@nyamsprod but third library this is flysystem-bundle products from the same company thephpleague. I got this stream from flysystem-bundle
flysystem:
  storages:
    reaources.storage:
      adapter: 'aws'
      options:
        client: 'Aws\S3\S3Client' # The service ID of the Aws\S3\S3Client instance
        bucket: 'minimoj-consumer'
        prefix: 'minimoj'

services:
  Aws\S3\S3Client:
    arguments:
      - endpoint: '%env(S3_END_POINT)%'
        version: 'latest'
        region: 'ams3'
        use_path_style_endpoint: true
        credentials:
          key: '%env(S3_STORAGE_KEY)%'
          secret: '%env(S3_STORAGE_SECRET)%'

then
use Keven\Flysystem\Concatenate\Append;
use Keven\Flysystem\Concatenate\Concatenate;
use League\Flysystem\FilesystemInterface;
use League\Flysystem\Util;

class DigitalOceanStorage
{
    private $storage;

    // The variable name $defaultStorage matters: it needs to be the camelized version
    // of the name of your storage.
    public function __construct(FilesystemInterface $reaourcesStorage)
    {
        $reaourcesStorage->addPlugin(new Append());
        $this->storage = $reaourcesStorage;
    }

    /**
     * @return FilesystemInterface
     */
    public function getStorage(): FilesystemInterface
    {
        return $this->storage;
    }

and in my service
    /**
     * @var DigitalOceanStorage
     */
    private $do;

           .....

            $readStream = $this->do->getStorage()->readStream($filePath);

and this is stream not seekable
result = {array} [11]
 crypto = {array} [4]
 timed_out = false
 blocked = true
 eof = false
 wrapper_data = {array} [12]
 wrapper_type = "http"
 stream_type = "tcp_socket/ssl"
 mode = "r"
 unread_bytes = {int} 7715
 seekable = false
 uri = "https://minimoj-consumer.ams3.digitaloceanspaces.com/minimoj-consumer/minimoj/download_files/adrecord/gus_textil/20200909163429.csv"

rom what this is dependencies, rom digital ocean space ?

@shubaivan the php league is not a company. Your issue has nothing to do with the CSV package and If you believe that the issue comes from the flysystem-bundle then the best course of action is to fill your issue on that package issue tracker. Since I don't use/know how works this bundle I'm afraid I can not be of much help.

@shubaivan I could solve this problem in this thread https://github.com/thephpleague/csv/issues/222. You can see my solution and if you need help please contact me


feat: loading state for my collection #trivial

The type of this PR is: Feature
This PR resolves CX-705
Description
Adds a loading spinner while adding, editing or deleting an artwork in My Collection.
Initially tried to use the loading boolean in MyCollectionArtworkModel but this value is updated when the corresponding network action (edit, delete, submit) completes but before the modal is dismissed causing the loading screen to be dismissed before the modal dismisses which doesn't look great.
So the approach of this PR:

Remove the loading boolean from sessionState
Add a loading boolean to the component to set upon submission, deletion, save edit
Add new errorOccurred boolean to state to dismiss loading state when an error occurs
Add a callback for deletion because we require confirmation

Screenshots

PR Checklist (tick all before merging)

[x] I have included screenshots or videos to illustrate my changes, or I have not changed anything that impacts the UI.
[x] I have added tests for my changes, or my changes don't require testing, or I have included a link to a separate Jira ticket covering the tests.
[x] I have documented any follow-up work that this PR will require, or it does not require any.
[x] I have added an app state migration, or my changes do not require one. (What are migrations?)
[x] I have added a CHANGELOG.yml entry or my changes do not require one.

LGTM 🎉 I assigned you to merge the PR. Feel free to merge once Sam Approves 🙏


Revert "handle hotfix upgrades"

This reverts commit 9b8e428ea7ef584e1bea9f310c8b46f6ae5d5b5f.
Fixes: https://github.com/Azure/ARO-RP/issues/1208

/azp run e2e


[GUI] device attribute's value is cut at the beginning

In this situation, the static attribute client_endpoint has the value unsecure-client-endpoint-0 but the GUI cuts the beginnning (first letter). The following image illustrates the situation.

Test OK.

Tested in version: 63.1-20190705


"Scărlătești" is listed in the drop-down menu

Description:
"Scărlătești" is listed in the drop-down menu alongside its corresponding county and commune, according to the law
Precondition:
The website is up an running.

Step 1
Type "Scărlătești" in the search bar.

Expected results
The location is listed in the drop-down menu as "Scărlătești, Brăila (Cireșu)".


Add SEO relevance to Legible Font Size docs

https://developers.google.com/web/tools/lighthouse/audits/font-sizes
Overview is currently

Font sizes smaller than 12px are often difficult to read on mobile devices, and may require users to pinch-to-zoom in order to display the text at a comfortable reading size.

I think we need to connect this back to SEO and describe why mobile friendliness is an important factor.

@rviscomi do you have links that connect font size to SEO?

It goes back to the general advice that abandonments are bad for SEO, and users who can't read your website will abandon. I'll try to find specific documentation on this.

@kaycebasques for the mobile friendly SEO audits (font size, meta viewport) we can cite these blog posts from Google and Bing to support mobile friendliness being a ranking/SEO factor:

Google
Bing


Fixed #23829 -- ping_google supports customization of https scheme and site_domain

This PR adds optional arguments to ping_google to support changing to https scheme using secure option and overriding the domain of sitemaps using site_domain.
https://code.djangoproject.com/ticket/23829

@adamchainz I've addressed your reviews. Can you please do another pass?

Hey @adamalton
I've fixed the docs. Separated the flags of management command from the arguments that ping_google function accepts. I've also added a release entry as well.
Please let me know if any more changes are needed.

@carltongibson I think having it https by default would be good. Shall I go ahead and modify the PR, or should we wait for a discussion on the bug first?

I'd say, assume the best, and make the change. (Release will need pulling into Breaking Changes.)

@carltongibson Refactored this. I'm not sure how the breaking changes are mentioned in the release note. Is there any special syntax to follow, or anything to take care of?

@carltongibson All done here. 👍

Thanks, @carltongibson & @adamchainz 🎉

OK. Thanks for the input. De-RFC-ing.

Hmmm. This is a bit of a pain. 😕 we can't provide the desired new usage from day one and a BC shim. Looks like we're saying "do this sub-optimal thing for ages, and we'll be breaking the old usage then". Part of me would rather just bite the bullet at the beginning.

... if you're doing HTTPS properly...

Yes, if. 🙂 I'd guess most are redirecting from http to https, even if they're not doing the rest. So, maybe http isn't that bad, but can we think of a decent way of handling the deprecation?


Fix/remove midoblgsm image references + fix collect logs

This change is

Reviewed 9 of 9 files at r1.
Review status: all files reviewed at latest revision, all discussions resolved.

Comments from Reviewable


Create tests for Google Drive and Dropbox Imports

cc @rafatower
Since deploying something that broke Drive and Dropbox imports, it has become apparent we should figure out how to make tests for services providers and overcome OAuth difficulties in TDD.

I'm taking this ticket out of the milestone since it's for the future End-to-End tests.

Hey, @rafatower , could you find someone else to assign or disregard this issue?
Thanks!

There has been no activity on this issue for more several months. We are closing it. If you think this still needs to be addressed please open a new issue.


EADDRINUSE / multiple static sites

If we could detect the port being used we wouldn't run into errors like EADDRINUSE associated with port 3000 and we could develop multiple sites at the same time

Fixed in e92fd304c32baf0e8e340449c5a135736652f8f9


STORM-253: Allow storm worker to use dynamic port instead of pre-configed. Add a ne...

PR for STORM-253
Allow supervisor to decide worker dynamiclly instead of pre-configured in configure file. This is especially useful in a shared cluster environment.
Changes:

Add a new config "supervisor.slots" to set the number of workers per supervisor.
Add class ServerSocketFactory to reserve the port for worker.

@clockfly, Is this pull request still valid?  If so, it seems we need an up-merge.  If not, can we close it?

it is a long time that this PR not get updated.
Let's close it for now, I prefer to create new PR if this patch is still needed.


Make labels permanently visible

Hi guys,
We have been looking at porting this project into dotProject and found that with long running projects that have run for multiple years we were not able to see the labels along the whole gantt chart, so a solution we thought of to fix our problem and help make the project more generally user friendly was to make the labels follow the container as they were scrolled past so each step of the project is always visible along the chart.
Hope this helps

Found an issue with how this works: Most of the logic is in the example file index.html, meaning it wouldn't work without the example file.


Error: java.lang.NoClassDefFoundError: org/apache/spark/sql/delta/files/TahoeLogFileIndex

I'm executing Hyperspace v.0.4.0 on a Data Databricks Cluster 6.4 (includes Apache Spark 2.4.5, Scala 2.11) using "com.microsoft.hyperspace:hyperspace-core_2.11:0.4.0"
When I create an index using a dataframe from parquet source it works 100%, but when trying to create an index using a dataframe from a Delta source I'm getting the following error even after configured spark.conf.set:
java.lang.NoClassDefFoundError: org/apache/spark/sql/delta/files/TahoeLogFileIndex
Does anyone know what's happening?

Yes. Databricks Runtime uses a special built version of Apache Spark in which the Delta Lake implementation is totally different that the OSS Delta.
This is the reason that the TahoeLogFileIndex is not found when running Hyperspace on DBR. It may not be even use in their own Delta implementation.
I'm sorry for this bad news but to use Delta with Hyperspace you need to switch to OSS Spark.

Are there any active plans for resolving this issue ?

Similar issue with OSS Spark -> spark 3.0.1, Scala - 2.12, Delta - 2.12_0.7.0 using Hyperspace version 3.0 (for spark 3.0 , built from source). Please update.
Py4JJavaError: An error occurred while calling o130.createIndex.
: java.lang.NoClassDefFoundError: org/apache/spark/sql/delta/files/TahoeLogFileIndex
at com.microsoft.hyperspace.index.sources.delta.DeltaLakeFileBasedSource.isSupportedRelation(DeltaLakeFileBasedSource.scala:49)

@panish-git Could you check if delta dependency is added properly and also try to test using delta 0.8.0?


site cannot be reached

I tried to check the page: https://lassonet.ml/ but failed.

Could you check and update the link? Thanks!

Thanks for bearing.
There were some issues with the previous domain name provider, and we have migrated the LassoNet website to https://lasso-net.github.io/.
Does that work?


"Move" is available even if there's no folder to move to

1. Have you downloaded File Manager from caddyserver.com? If yes, when have you done that? If no, and you are running a custom build, which is the revision of File Manager's repository?
Caddy v0.10.10 (non-commercial)
http.filemanager v1.3.6
Used on Windows 7 x64.
2. What is your entire Caddyfile?
:2015 {
	root F:/caddy-filemanager-test
	filemanager /admin ./admin {
		no_auth
	}
}

3. What are you trying to do?
Move a file to another folder. (without a folder to move to being available)
4. What did you expect to see?
The "Move" option being greyed out or unavailable.
5. What did you see instead (give full error messages and/or log)?
The "Move" option being available.
6. How can someone who is starting from scratch reproduce this behaviour as minimally as possible?
Use the caddyfile above with at least one file that can be moved.
This issue could probably be labeled as an "enhancement" as it doesn't really hinder use.

Done!


Updated alerts to react-toastify

I have updated standard alerts to react-toastify library.
Please have a look.

Thanks for pointing out the mistakes.
I have committed the changes you have asked.
Have a look!


MIT or Proprietary?

The license distributed with this package is MIT.
However, every file has a contradictory notice stating:

Unauthorized copying of this file, via any medium is strictly prohibited
Proprietary and confidential

This effectively renders the package completely unusable as the very act of installing this package from pub.dev means you're copying the files. The statements are in complete contradiction of the MIT open source license.
So which is it?  I'm confused.

The code base is actually a mixed license.
There are significant portions copied from the pub command which come under
the MIT license whereas other parts are not.
So the code base is fully open source but only parts are FOSS.
I'm not quite certain what the license should look like but I will do some
reading and update the license.
appreciate the feedback.
Brett
On Mon, 11 Jul 2022 at 22:55, Dom Jocubeit @.***> wrote:

The license distributed with this package is MIT.
However, every file has a contradictory notice stating:

Unauthorized copying of this file, via any medium is strictly
prohibited
Proprietary and confidential

This effectively renders the package completely unusable as the very act
of installing this package from pub.dev means you're copying the files.
The statements are in complete contradiction of the MIT open source license.
So which is it? I'm confused.
—
Reply to this email directly, view it on GitHub
https://github.com/onepub-dev/fixed/issues/8, or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAG32OHYTUYREC6BYF6CBTLVTQKS7ANCNFSM53HNNLRQ
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>

Sorry about the long delay on this one.
My original response actually pertained to another project.
The odd licenses in the code where the result of a way wood script that incorrectly updated fixed.
I've fixed these licenses to correctly reflect the MIT license.


Opening/closing a thread logs as a Ticket

It's because the logger for tickets reads the Audit Log for threads being created.
Like this, created a log item for a ticket, even though it's not:
https://discord.com/channels/900302240559018015/1055501831800889454/1072137049378922566
Possible fix: Add a condition that checks for [Ticket} in the title of the thread before logging

https://github.com/practical-python-org/ZorakBot/pull/82


IMPROVE: reuse existing function

The stringify function may be reused instead of being recreated on each call and it is deterministic by default (the returned function is actually not used currently). Since JSON.stringify(undefined) also returns undefined, that condition is also removed.

Sorry, I was not available last days.
Thx a lot for the info and for proposing this update.
Your lib is awesome 🥳


Retry download after Aborter is aborted due to timeout

Is your feature request related to a problem? Please describe.
No retry after Aborter.timeout is triggered
Describe the solution you'd like
I set 30min Aborter.timeout for downloading data from blob, recently I find the frequency of timeout increases (maybe due to some connection issues?). I think @azure/storage-blob have already provided retry policy, but Aborter.timeout seem like not triggering retries. I'm wondering if retry can be added after Aborter.timeout, or if there's any alternative solution I can apply now?
Thank you so much!
Describe alternatives you've considered
Additional context
Below is how I download data from blob
const downloadResponse  = await blobURL.download(Aborter.timeout(TIME_OUT_30_MIN), 0);
const readableStream = downloadResponse.readableStreambody;
// Store downloaded stream to file
const writableStream = fs.createWriteStream(file);
readableStream.on('error', (error) => {/* timeout error is caught here, and I wanna trigger retries */});
writableStream.on('close', () => { /* finish download, do other thing... */ });
readableStream.pipe(writableStream);

The two errors I caught:
{ AbortError: The user aborted a request. /* stack trace..*/, type: 'aborted', message: 'The user aborted a request.' }
{ Error: The request was aborted /* stack trace..*/
code: 'REQUEST_ABORTED_ERROR',
statusCode: undefined,
request: undefined,
response: undefined,
body: undefined }

Hi @kiboliu It's by design. Abort will stop further retry happens. Abort timeout should take consideration time of all retries.

@XiaoningLiu Thank you for your reply! I'm wondering how is the retry implemented? Will the retry happen on the same connection, or kill current connection and build a new connection for retry? The reason why I ask this is that I think my issue is due to connection issues, so if the retry is implemented on the same connection maybe it does not work as expected.

@kiboliu You can config the keep-alive options. By default the keep-alive is enabled, so the retry will happen in the same TCP connection.

@XiaoningLiu I see. This also remind me that our use case is ~2500 kubernetes pods are trying to pull data from blob and ~30 of them are stuck and killed by timeout. Each pod is building a new TCP connection, so that ~2500 connections are established concurrently, is it possible to exceed the maximum connections to blob? And actually before I upgrade from 10.3.0 to 10.4.0 the issue happened rarely, not sure if 10.4.0 introduce any changes about it.

@kiboliu "is it possible to exceed the maximum connections to blob?" Your question is about establish these amount of connections in single Node.js process? I think the limitation is from Node.js. When keepalive is false in storage SDK, it will use Node.js default http agent. You can config the parameter increase the maximum number of connections: http.globalAgent.maxSockets.

@XiaoningLiu can we consider closing this issue as i believe we have answered the query?


No download?

Curious if there is a download to this anywhere?

Binary releases are not available yet. It was originally a tool for internal use. So, only building from sources. Building links it with some python dlls: python3.dll and python3x.dll, where $x \geqslant 3$. This is the disadvantage of the binary release.


Cannot set Categorical columns containing quotes

Environment

Operating System: Linux
Python Version: 3.6.5
How did you install Qgrid: pip
Python packages:

qgrid==1.0.5
notebook==5.3.0
jupyterlab==0.32.1

Jupyter lab packages (if applicable): $ jupyter labextension list

@jupyter-widgets/jupyterlab-manager
        @jupyter-widgets/jupyterlab-manager v0.35.0  enabled  OK
qgrid
        qgrid v1.0.5  enabled  OK

Description of Issue

What did you expect to happen?

Being able to select a categorical data containing arbitrary text, including quotes. In particular, I was expecting to set a category item among `{"ConL1", "ConL2", "ConL3", "ConLS", "ConLS'"}.

What happened instead?

When I encountered this bug for the first time, I got an error popup, and the following traceback in the server log:

[IPKernelApp] ERROR | Error occurred while attempting to edit the DataFrame. Check the notebook server logs for more information.
Traceback (most recent call last):
  File "/home/althonos/.local/lib/python3.6/site-packages/qgrid/grid.py", line 1224, in _handle_qgrid_msg_helper
    self._df.loc[location] = val_to_set
  File "/usr/lib/python3.6/site-packages/pandas/core/indexing.py", line 189, in __setitem__
    self._setitem_with_indexer(indexer, value)
  File "/usr/lib/python3.6/site-packages/pandas/core/indexing.py", line 615, in _setitem_with_indexer
    setter(item, value)
  File "/usr/lib/python3.6/site-packages/pandas/core/indexing.py", line 539, in setter
    s._data = s._data.setitem(indexer=pi, value=v)
  File "/usr/lib/python3.6/site-packages/pandas/core/internals.py", line 3693, in setitem
    return self.apply('setitem', **kwargs)
  File "/usr/lib/python3.6/site-packages/pandas/core/internals.py", line 3581, in apply
    applied = getattr(b, f)(**kwargs)
  File "/usr/lib/python3.6/site-packages/pandas/core/internals.py", line 1934, in setitem
    self.values[indexer] = value
  File "/usr/lib/python3.6/site-packages/pandas/core/arrays/categorical.py", line 1982, in __setitem__
    raise ValueError("Cannot setitem on a Categorical with a new "
ValueError: Cannot setitem on a Categorical with a new category, set the categories first

When trying to come with a reproducible test case, I could only reach a point where the update would simply not happen, but no error would be raised.

Reproduction Steps

Create a notebook with the following cell:

import qgrid
import pandas

df = pandas.DataFrame({'test': pandas.Categorical(['', ''], categories={'', "Hi", "'Hello'"})})
qgrid.QGridWidget(df=df, show_toolbar=True)

Try to set the value of the test column to 'Hello': nothing is updated (the cell stays empty).

Thanks for the report...this is fixed in the latest release (1.1.0) which is now available on pypi and conda.


[backport] fix/ci: Linux NPM race condition editing "except" CIDR and NPM pipeline fixes

Reason for Change:
Backporting #2841 and pipeline changes for NPM Cyclonus, Conformance, and Scale Test pipelines.
Issue Fixed:
#2840
Requirements:

[x] uses conventional commit messages
[ ] includes documentation
[ ] adds unit tests
[x] relevant PR labels added

Notes:

/azp run Azure Container Networking PR

/azp run NPM Conformance Tests

/azp run NPM Scale Test


Strip sampling headers

Summary
We only want to allow sampling/debugging of requests from internal
(developer/GDS) IPs. If the request is from an external IP (i.e. a
normal user), strip out the two headers that indicate internal
debugging: X-B3-SAMPLED and X-B3-FLAGS.

I took the opportunity to run this against my local linting script, configtest all passes fine 😸
Do we need to add in the macro to the maintenance.j2 template? Presumably healthcheck.j2 is only going to be accessed by internal IPs so that won't need it.
Also I'm a bit wary around if statements - if we're just setting variables at server level it should be OK (basically, as long as we don't use the macro inside a location directive: https://www.nginx.com/resources/wiki/start/topics/depth/ifisevil/).

Yeah I read that article too. Don't think we have much choice here, and this isn't a particularly high-performance router. It should be fine in this instance. :)

As for maintenance and healthcheck templates, yeah, I don't think we need to worry about those ones here. They're both just static returns that don't navigate through the system, so the debugging flags won't really have an effect as-is.

I did a bad test of this actually, by clearing out the macro definition rather than removing the macro call from one server block.
It turns out that nginx -t can't detect if the variables are missing from one server block which contains location blocks using those variables, if those variables are defined in a different server block. So I don't think we can have a proper test that will catch this.
However, if it gets merged it will break preview pretty obviously, so it should get caught by functional tests. I think this will be fine?
@Wynndow

Yeah I guess. It still feels a bit icky but I don't have an alternative.
Are you worried at all that this isn't going to be tested properly until it hits prod? All the func/smoke tests will come from dev user ip's.

I've tested it on preview the best way I could think, which was to deploy it as-is and then deploy it by changing the 0 and 1 around in the map block of the http context.
It feels like that effectively tests the rest of the config. Open to your input.


Updates app config and urls to populate docs link.

Updates app config and urls.py for the links to be populated in the Installed Apps. Closes #345.

@jvanderaa Was this supposed to fix #308? The linked issue does not exist in this repo.

Yep. Lot's of repos at once going in without having the Drift manager ready to go.


KeyError at /search/

Hello!
I'm getting this error when I use the search field in the storefront:

KeyError at /search/
'_source'

Exception Type:
KeyError

'_source'

/app/saleor/search/backends/elasticsearch.py in , line 458

I direct to the line that indicates(line 458), and that code looks like the original code of saleor. do you have any idea about what Is happening here?
Thanks for your time.

Hello again!
A few moments ago a co-worker find a solution, I don't know exactly what he did but right now the Search Is working very well, I will try to document the solution more precisely in case this happens again to me or someone in the future.


Error preprocessing imagenet

Thanks for the great work! I ran into an error when setting up imagenet: the script cannot find the synsets file. I think the problem can be fixed as follows.
In download_and_preprocess_imagenet.sh, line 64:
LABELS_FILE="${WORK_DIR}/data/imagenet_lsvrc_2015_synsets.txt" should be changed to
LABELS_FILE="${WORK_DIR}/imagenet_lsvrc_2015_synsets.txt".

Thanks for reporting! I fixed in the latest commit.


Adds a nondet_s2n_mem_init() predicate for CBMC proofs

Resolved issues:
Resolves https://github.com/awslabs/s2n/issues/2124.
Description of changes:
Creates a nondet_s2n_mem_init() macro to make the code cleaner.

Adds nondet_s2n_mem_init() to CBMC proofs;
Updates .gitignore;
clang-format CBMC proofs.

Call-outs:
N/A.
Testing:
N/A.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Codecov Report

Merging #2225 into main will increase coverage by 43.84%.
The diff coverage is n/a.

@@             Coverage Diff             @@
##             main    #2225       +/-   ##
===========================================
+ Coverage   39.67%   83.51%   +43.84%
===========================================
  Files         167      249       +82
  Lines       12372    16611     +4239
===========================================
+ Hits         4908    13873     +8965
+ Misses       7464     2738     -4726


[UWP] OpenUrl selectActions appear as links to accessibility

Related Issue
Fixes #3591
Related #3555
Description
There was another scenario where an action was being reported as a button rather than a link to accessibility. The fix is to instantiate the appropriate LinkButton for selectActions of type Action.OpenUrl. I also looked for other instances where this would be appropriate, but found none.
How Verified
Unit tests, Visualizer+AccInsights, and TestApp
Microsoft Reviewers: Open in CodeFlow

Note -- above commit is cherry-pick to master :)


Save as isn't translated in command palet

VSCode Version: 0.10.14 -Insiders
OS Version: Windows7
Local: Japanese

Issue
[Save as] isn't translated in command palet. see following image.

In [FIle] - [Save as] is translated as 名前を付けて保存.

Verified by code review, translations will arrive tomorrow


(Analyzer, package:meta) Annotations on field initializers

I'd like to be able to write
class Foo {
  @required
  final String name;

  const Foo({this.name});
}

Instead of
class Foo {
  final String name;

  const Foo({@required this.name});
}

Also see https://github.com/dart-lang/dartdoc/issues/1259

I'm not certain I understand the semantics you're asking for.
Would this only apply to final fields, or can it be applied to any instance field? I assume it wouldn't apply to static fields.
Would this also imply that every constructor is required to have a named field formal parameter for the field and that we would produce a hint if (a) there is no constructor or (b) there is a constructor that doesn't have it as a named parameter? What if it were a normal (required) parameter for some constructor? I assume that it wouldn't make sense for it to be an optional positional parameter.

No no, not required, this would be to supplement existing work.
What I'm asking for is if you have a field formal parameter, the annotation could be on the field instead of the parameter.

The shorthand seems convenient, but I think there is a significant possibility that allowing this annotation on fields would confuse users more than it helps them. That's why I'm asking about the semantics, in case you have a semantic that makes sense.
As a thought experiment, assume that this annotation doesn't exist.
If I tell a user (verbally, for example) that the parameter p (of some constructor) is required, then they know what that means because we talk about required parameters in other contexts: it means that when they invoke the constructor they need to provide a value for p. If p is a named parameter, then they are either confused (because the spec says named parameters are optional) or they figure out that it means that it is not optional despite being named (that we're working around a limitation in the language, that it won't let us define parameters that are both named and required).
If I tell a user that an instance field f is required, what does that imply to them? I don't think they have a context for understanding that, and I don't think their first assumption will be that it only applies to references to the field in named constructor parameters (because it looks like it applies to the field, not a specific kind of reference to the field).
Now assume that the annotation exists and is allowed on fields. What if the user saw code like the following:
class C {
  @required
  int f;

  C([this.f]);
}

Is that parameter required? If so, then why it is allowed to be marked as optional? If not, why not?
I think that if we allow the annotation on fields then we need to define the semantics, and that includes issuing hints if it's used in a way that doesn't make sense.


gradle c++ cmake-library publishing multiple libraries custom-publishing-plugin

Cmake can produce multiple library files produced by root cmakelist.txt or multiple subprojects. there is no way to set these library paths/names, but just a single library name. is it possible to do this or does this needs a feature request to the custom publish plugin.
Note: using Kotlin DSL
Expected Behavior

Instead of:
cmake {
    binary.set("lib/libopencv_core.so" ))
}

Replace:
cmake {
    binary.addAll(listOf("lib/libopencv_core.so","lib/libopencv_highgui.so","libopencv_imgcodecs.so"  ))
}

Or
cmake {
    binary.addAll(listOf("path/to/lib/directory1","path/to/lib/directory2"  ))
}

Current Behavior

does not allow adding a list of directories or .so/.a files. therefore the publishing plugin can not publish all produced libraries.

Script compilation error:
Line 29:     binary.addAll(listOf("lib/libopencv_core.so","lib/libopencv_highgui.so","libopencv_imgcodecs.so"  ))
^ Unresolved reference. None of the following candidates is applicable because of receiver type mismatch:
public fun  MutableCollection<in TypeVariable(T)>.addAll(elements: Array<out TypeVariable(T)>): Boolean defined in kotlin.collections
public fun  MutableCollection<in TypeVariable(T)>.addAll(elements: Iterable<TypeVariable(T)>): Boolean defined in kotlin.collections
public fun  MutableCollection<in TypeVariable(T)>.addAll(elements: Sequence<TypeVariable(T)>): Boolean defined in kotlin.collections
1 error

Context

Trying to build opencv and pushing it to the local maven repository.
Steps to Reproduce (for bugs)

Download . extract. copy inside gradle project.
place build.gradle.kts inside extracted opencv:
plugins {
    id("org.gradle.samples.cmake-library") version "1.0"
    id ("org.gradle.samples.custom-publication") version "1.0"
}

group = "org.gradle.sample"
version = "3.4.6"

cmake {
    binary.addAll(listOf("lib/libopencv_core.so","lib/libopencv_highgui.so","libopencv_imgcodecs.so"  ))
    includeDirectory.set(layout.projectDirectory.dir("include"))
}

settings.gradle.kts:
include (":opencv")
./gradlew publishToMavenLocal
Your Environment

Build scan URL:
https://scans.gradle.com/s/va6p274ef22ic

@lacasseio any leads on this?

@lacasseio I described this in our Slack discussion. Here are some more details.
I have the same situation building Boost Libraries. Although in the case of Boost for some subset of the libraries there is a definitive separation of libraries + headers. Ideally I do not need to break the header files that come as a compete set to make subsets per Boost library feature. To make this worse Boost has the concept of header only libraries as many of the provided functionality is completely C++ template based and has no footprint in the system as a linkable shared or static library.
By Boost distribution own admission not all the included libraries have an easily observable boundary in the /usr/include/boost space either. So, making this work is going to be a chore for sure.
Before Gradle multi-variant publishing was available I created a plugin that I have been using to service these libraries that have one set of headers and multiple feature specific shared/static libraries. My plugin is a Software Model plugin which presented to the Software Model a model -> repositories -> myRepository structure populated dynamically with PrebuiltLibrary definitions. Each of these was informed by an additional metadata file published with the Boost packages allowing the extracted libraries to be usable as direct references in the BinarySpec.lib calls. The header only portion of Boost was represented by PrebuiltLibrary objects that did not define a link or runtime component but only a header component.
I hope to come up with a similar solution for this library in a new plugin or perhaps take the time to create a publishing model where the Boost library build generates a set of sub-projects based on a list of individual libraries each feeding from a common "installed" location which produces the defined libraries as header API ZIP files and matching shared/static libraries. Where there is only headers in a library the publication would list just the API ZIP main publication skipping the debug/release variants as there are none.
My previous solution combined the packaging and a consumer driven plugin to make this possible, I would like to try to make this fit the new model as much as possible.

@lacasseio one more detail I uncovered relating to cmake and other library tools with Linux library builds of shared libraries.
The Boost library generates "versioned" shared libraries. This is quite typical and involves embedding the versioned library name in the .so files. It is called "SONAME" in the Elf library format. Additionally, with a multi-module library like this often one library has a link to another one also expressed using the versioned library SONAME values. Take for example this Boost library:
$ patchelf --print-soname libboost_log.so.1.71.0
libboost_log.so.1.71.0

$ patchelf --print-needed libboost_log.so.1.71.0
libboost_filesystem.so.1.71.0
libboost_thread.so.1.71.0
librt.so.1
libstdc++.so.6
libgcc_s.so.1
libpthread.so.0
libc.so.6
ld-linux-x86-64.so.2

Here you can see that the library has its SONAME as the versioned file and also other libboost component libraries are referenced as needed by their full versioned names. Publishing these as unversioned library files will not work as they no longer can function when installed, their needed links are not visible. When using a renamed library such as this the linker will actually use the SONAME inside to populate the NEEDED section of the library that depends on Boost so that too will fail to find the libraries after the linker completes.
When installed the Boost library shared files create the ldconfig traditional symlink structure like this:
$ ls -l libboost_log.so*
lrwxrwxrwx 1 avolanis avolanis       22 Jun 28 21:59 libboost_log.so -> libboost_log.so.1.71.0
lrwxrwxrwx 1 avolanis avolanis       22 Jun 28 21:59 libboost_log.so.1 -> libboost_log.so.1.71.0
lrwxrwxrwx 1 avolanis avolanis       22 Jun 28 21:59 libboost_log.so.1.71 -> libboost_log.so.1.71.0
-rwxr-xr-x 1 avolanis avolanis 21086944 Jun 30 10:18 libboost_log.so.1.71.0

One solution to this that I am trying now is to use the patchelf tool to change the SONAME and all NEEDED library references to the plain unversioned names in each Boost library. The syntax is pretty simple and may work in this case.
$patchelf --set-soname libboost_log.so libboost_log.so
$patchelf --replace-needed libboost_filesystem.so.1.71.0 libboost_filesystem.so libboost_log.so
...

While this might work I was wondering if publishing the versioned names would also be supported by Gradle publishing and what it might look like.


Add Pound Sterling (£) Sign

This adds a symbol for the british currency, the pound sterling.
Relates to https://github.com/knausj85/knausj_talon/issues/512
This also sets us up as @rntz suggested to be able to use the term {currency} sign for various other currencies.
Since this removes one of the commands to create a # symbol, I'd love to get multiple approvals and welcome any discussion.

I'm okay with this, but it does change the meaning of the "pound" command, so I'd like to get @knausj85 ’s opinion at least.

I'm okay with this. I'll merge in a few days if no-one objects.


ReferenceError: SERVER is not defined

hi,
0.1.9 build results in the following error
ReferenceError: SERVER is not defined
    at Object.<anonymous> (.../node_modules/rogue/scripts/dev.js:16:31)
    at Module._compile (internal/modules/cjs/loader.js:702:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:713:10)
    at Module.load (internal/modules/cjs/loader.js:612:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:551:12)
    at Function.Module._load (internal/modules/cjs/loader.js:543:3)
    at Function.Module.runMain (internal/modules/cjs/loader.js:744:10)
    at startup (internal/bootstrap/node.js:238:19)
    at bootstrapNodeJSCore (internal/bootstrap/node.js:572:3)

0.1.6 is OK
thanks,
tinto

Yea those were experimental publishes, sorry about that
The official first release is 0.2.4

works now, no worries :)
thanks!!
On Thu, Jul 5, 2018 at 4:10 PM Alid Castano<EMAIL_ADDRESS>wrote:

Yea those were experimental publishes, sorry about that
The official first release is 0.2.4
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/alidcastano/rogue/issues/27#issuecomment-402734766,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AIi5JujFBrtWO-cbYSo9yNNeypikin7gks5uDh5xgaJpZM4VD05A
.


Request for a official dark theme version

Hi. I would like to know if there are plans to launch a dark version of theme?

@didaquis hi there! I've not considered it before, but seems like a reasonable request. In the meatime you could overwrite the default _sass/_settings.scss file with your own colour settings. I've created a basic example:
// new _sass/_settings.scss file

// Background colours
$backgroundColour:#1a1a1a;
$codeBackgroundColour:#323232;
$featureBackgroundColour:#000000;
$accentColour:#a5bdff;
$headingColour:#ffffff;
$bodyColour:#d2d2d2;
$linkColour:#5380ff;
$hoverColour:#a5bdff;
$focusColour:#fa407b;
$captionColour:#808080;
$white:#fff;

// Typography
$bodytype: (
  font-family: 'Georgia, serif',
  regular: 400,
  bold: 700,
  italic: italic,
  cap-height: 0.75
);

$headingtype: (
  font-family: '"Merriweather", serif',
  regular: 400,
  bold: 700,
  cap-height: 0.75
);

$monospacetype: (
  font-family: 'Menlo, monospace',
  regular: 400,
  cap-height: 0.68
);

// Font import, if you're using a non-standard web font
@import url('https://fonts.googleapis.com/css?family=Merriweather:400,700');

Which produces this:

The only issue you may hit is that the default code highlighting colour isn't readable against dark backgrounds. So I'd recommend picking a dark code colour theme from pygments css http://richleland.github.io/pygments-css/ and replacing the _sass/_syntax.css file. fruity.css looks good.
Hope you find this useful!

Thank you!


Fix SPM exclude warning

Will get the following warning when building swift-driver or the repo itself.

Seems like "cmake_install.cmake" and "CMakeFiles" are generated after we building it with CMake. Since they are not in the git history, I think we should remove them to fix the warning.

@neonichu Is there something wrong with my Xcode or Swift version to see such warning?
It seems there should be no warning when your PR is landing. #253
My environment
Swift version: Apple Swift version 5.5.1 (swiftlang-13<IP_ADDRESS> clang-13<IP_ADDRESS>)
Target: arm64-apple-macosx12.0
Unix version: Darwin 21.2.0 Darwin Kernel Version 21.2.0: Tue Nov 16 23:24:18 PST 2021; root:xnu-8019.61.4~4/RELEASE_ARM64_T8101 arm64 arm;
macOS version: 12.1
Xcode-select path: '/Applications/Xcode.app/Contents/Developer'
Xcode: Xcode 13.1 (Build version 13A1030d)

@swift-ci test

@swift-ci please test


Minimized/optimized builds for production?

I was able to reduce filesize 22% overall on these files:

30% on widget.js with uglifyjs
23% on script.js with uglifyjs
24% on style.css with csso

Additionally, I was able to save 58% on the SVGs with svgo.
I'd be happy to write a pre-commit script that would automatically run these optimizations, but it'd also require a bit of a restructure of the repo. We could keep all the files in the same directory, and just add min to the minified files (widget.min.js and so on), or we could use a separate directory (min or prod or something) where all the minified files are kept. I'm leaning towards the latter method, since it'd mean the minify script would just have to copy everything over and minify all the files, whereas if we kept files in place the script would need to modify references in files (change src="script.js" to src="script.min.js" in iframe.html, and so on).

This would be wonderful if you want to take it on!
The ideal would be keeping generated code of of version control to avoid messy diffs - bundling production assets into a dist dir would be a good start, would be excellent to get this into a CI script pushing the contents of that dir to a gh-pages branch for publishing.
Were you thinking of using Webpack, Gulp, Grunt, or something else?


Localsettings tags

@emord as discussed. if it looks ok, i'll notify the team so people are aware
cc: @mkangia

so localsettings is everything and now there's hq- settings to only deploy those? that looks good to me

that's correct
@dimagi/team-commcare-hq fyi if you deploy localsettings it will now also update formplayer and touchforms. This is so they get proper machine updates when machines change. If you want to only deploy hq localsettings, use the hq-localsettings tag

@benrudolph what does this mean for a person who doesn't know much about formplayer and touchforms? Should we just continue to deploy localsettings and not worry about the fact that it's doing more than just localsettings? Or is hq-localsettings the new common case, and we should only deploy localsettings in special cases?

@millerdev I think usually formplayer settings should not change, or it should be obvious why they change. If it's not there's a backup for deploying a subset of these changes (like hq-localsettings)
this came up because I deployed localsettings to NIC but not formplayers. As a result formplayer was authenticating against couch 1 instead of couch. so I think this change is strictly better so things like that don't happen again


Error after upgrading to 1.0.0

After upgrading to 1.0.0, I'm having this problem:
ReferenceError: debug is not defined
at /moleculer-io/lib/index.js:230:11
        return _asyncToGenerator(function* () {
          debug('brocast: ', ctx.params);
          let namespace = _this2.io;

Shouldn't it be _this2.logger.debug('broadcast: ', ctx.params);

Sorry, I had forgot to remove the debug lib in brocast action 😅
Fixed at v1.0.1


"regdb_e_classnotreg class not registered" after call CoCreateInstance, pServiceProvider still null pointer

Hi~
I have a problem when my MFC program load VirtualDesktopAccessor.dll always exception appeared,
I try to trace VirtualDesktopAccessor.dll soure code, that issue about access violation occurred from "_RegisterService" function and get error code is "regdb_e_classnotreg class not registered" after call CoCreateInstance, pServiceProvider still null pointer, but my develop OS & SDK has up to Windows 10 already, I have something wrong?

I don't know, I do know that with old Windows 10 build (before anniversary edition) it causes null errors. This version supports only the latest Windows 10 (The anniversary edition). You have to get older from revision history if you need older dll.

Yes, Jari is right. Thanks.
Basically the version of the DLL you need to use depends on the version of
your Windows. The patches on older releases include an older version of the
DLL that you can try, if your Windows is not up-to-date.
On 3 Nov 2016 11:36, "Jari Pennanen"<EMAIL_ADDRESS>wrote:

I don't know, I do know that with old Windows 10 build (before anniversary
edition) it causes null errors. This version supports only the latest
Windows 10 (The anniversary edition). You have to get older from revision
history if you need older dll.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/Ciantic/VirtualDesktopAccessor/issues/12#issuecomment-258120110,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABpaAWu1ftrVvU11C_HyFvyJlmg8-Hx4ks5q6cdSgaJpZM4KnNWb
.

Thanks Jari, Sergio reply & sharing,
I check Microsoft anniversary edition number is 1607, and using 3 PC (Windows 10) to verify VirtualDesktopAccessor, all PC up to date  anniversary edition, but only 1 PC occur null errors on all PC (I using this PC to coding) other 2 PC using VirtualDesktopAccessor to working normally.
Except OS envirnmental any causes are there unregistered some COM service possibility? thanks

Sorry, please ignore my previous reply, I thought this issue had been
raised in my own repo.
On 4 Nov 2016 06:01, "jih836"<EMAIL_ADDRESS>wrote:

Thanks Jari, Sergio reply & sharing,
I check Microsoft anniversary edition number is 1607, and using 3 PC
(Windows 10) to verify VirtualDesktopAccessor, all PC up to date
anniversary edition, but only 1 PC occur null errors on all PC (I using
this PC to coding) other 2 PC using VirtualDesktopAccessor to working
normally.
Except OS envirnmental any causes are there unregistered some COM service
possibility? thanks
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/Ciantic/VirtualDesktopAccessor/issues/12#issuecomment-258351464,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABpaAaNxrDQ0bBNBLbnutwrgkdwPlkDlks5q6spQgaJpZM4KnNWb
.


Add task maintaining estimator cache in the background

Related: #1615
This PR adds a helper function which can be used to update the cache of a CachingPriceEstimator in the background.
This function will be used in a follow up commit which will create a new price estimator hierarchy specifically for native price estimations.
Test Plan
added new unit test

Another point is that the general cache was added mostly for the native estimates. Once we have those in their own component we can get rid of the general cache again.

I initially started out working on a specialized cache like you are suggesting but came to the conclusion that we could get a pretty good solution by composing existing code but I agree that optimizing this solution further would incur significant maintenance overhead.
I don't really like the idea of having 2 similar (but not identical) caching implementations. But ditching the general cache because it would no longer be needed seems worthwhile.

It is very likely that i will be ditched so I'm in favor of pretending it doesn't exist for the purposes for the native token cache.

It is very likely that i will be ditched ...

Oh no! 😅
Then I will work on a PR with a proposal for a new cache.

Closed in favor of #1626


ci: use matrix to reduce build time

👌
On Mon, Sep 30, 2024 at 22:06 UUBulb @.***> wrote:

等gopsutil更新把cgo去掉
—
Reply to this email directly, view it on GitHub
https://github.com/nezhahq/agent/pull/70#issuecomment-2383310404, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AG7DUMPATOZZCMOF2CVTZ5DZZFLGLAVCNFSM6AAAAABO5N5PI2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGOBTGMYTANBQGQ
.
You are receiving this because you commented.Message ID:
@.***>

邀请你加入nezhahq了

能发了吗


Help with Raspi 1

Thank you for your time and effort to make this project. I have been successful running this project on my Raspi 3, but when I try to do the same on Raspi 1, I have the following issues regardless of which GPIO I try to set it to. I believe on the Rpi 1 the only choice for PWM is GPIO18 so I am frankly baffled by the error. I appreciate your help resolving this:
Gpio 18 is illegal for LED channel 0
Traceback (most recent call last):
File "visualization.py", line 9, in
import led
File "/home/pi/LED/python/led.py", line 18, in
strip.begin()
File "build/bdist.linux-armv6l/egg/neopixel.py", line 115, in begin
RuntimeError: ws2811_init failed with code -11 (Selected GPIO not possible)
munmap error
: Invalid argument

Try a recent code revision and let me know if you are still having the problem.

Closing due to inactivity


fix: reorders the advanced settings form

Description
reorders the position of forms in advanced settings
Fixes #11992
Type of change

Bugfix (non-breaking change which fixes an issue)

How Has This Been Tested?
Manually
Checklist:

[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my own code
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[ ] My changes generate no new warnings
[ ] I have added tests that prove my fix is effective or that my feature works
[ ] New and existing unit tests pass locally with my changes

/ok-to-test sha=ba89bc4

/ok-to-test sha=e9a7dc5


Analogue Pocket Sync 4.12.1 silent installer

Checklist for Pull Requests

[X] Have you signed the Contributor License Agreement?
[ ] Is there a linked Issue?

Manifests

[X] Have you checked that there aren't other open pull requests for the same manifest update/change?

[X] Does your manifest conform to the 1.6 schema?

Note: <path> is the directory's name containing the manifest you're submitting.

Microsoft Reviewers: Open in CodeFlow

Automatic Validation ended with:

Installation failed with exit code -1978335226
2024-09-26 11:37:57.566 [CLI ] ShellExecute installer failed: 2

Automated error analysis suggests -1978335226 may mean Running ShellExecute failed
(Automated response - build 896.)

.\Pocket.Sync_4.12.1_x64-setup.exe /S

PS C:\Users\enaselli\AppData\Local\Pocket Sync> dir

    Directory: C:\Users\enaselli\AppData\Local\Pocket Sync

Mode                 LastWriteTime         Length Name
----                 -------------         ------ ----
-a---          12/09/2024    23:12       17800192 Pocket Sync.exe
-a---          26/09/2024    16:17          76266 uninstall.exe

The source installer works as well with the silent switch


I am not able to sync code from leetcode to github account

Please review previous closed issues before filling out a new one! Duplicate issues will be closed without comment.
Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior:

Go to '...'
Click on '....'
Scroll down to '....'
See error

Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.

Use the old leetcode ui instead the new leetcode ui

@khewdev which version is it? do you mind to share the specific link?


Draft: Page editor underline tabs

Addresses #8137. This is a PR for the implementation of a new tab design for the page editor interface.
This is still a draft and WIP
Currently based off of the new header updates branch however this will be rebased off of the main branch once it is ready

@zerolab Ah thanks for the suggestion, that is what I would normally do for sure but I don't think I can target my other PR because it's from a forked repo's branch 😕 ?
If there is some way to do it that you know of i'm definitely keen to learn 🙂

Ah, I take it all back as I didn't realise the other branch was also from your fork. In this case we can't do anything. Heh, sorry for the noise.

These conflicts should resolve when this branch is rebased 🤞

@stevedya rebased!

@stevedya there are still quite a few test failures, looks like we need to update the snippets chooser as well? We shouldn’t consider anything to be ready to review until all tests are passing for it, or we’ve agreed to review early case by case. I think it’s important you add that kind of detail in the PR description, currently your description still says:

new tab design for the page editor interface

We’re applying it in lots of other places. Would be well worthwhile to list those places, along with any indications on where to test them

This is still a draft and WIP

Same here – please always update the PR description as you get something ready to review.

custom event naming conventions, not documented though but we did try to start a convention ss per description here.
https://github.com/wagtail/wagtail/pull/7534#issue-1005342855
See description on that PR

@stevedya rebased, with some of the tests fixed. All of the tests could pass but I’m unclear on why we’re not setting which tab is active in more cases.


[Rosetta] Fix indexer integration test

This pull request includes two changes. First, coinbase receiver has been added to the list of fields being checked for existing account addresses as it was missing and making the test fail in certain conditions. Second, the test order has been changed to ensure that the faster test runs first and fails fast.

!ci-build-me


Add summary after listing rules

Closes #416

Codecov Report

Merging #417 (1540a77) into master (09fdb4f) will decrease coverage by 1.02%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master     #417      +/-   ##
==========================================
- Coverage   97.80%   96.77%   -1.03%
==========================================
  Files          22       22
  Lines        2139     2142       +3
==========================================
- Hits         2092     2073      -19
- Misses         47       69      +22

Impacted Files
Coverage Δ

robocop/run.py
96.05% <100.00%> (+0.05%)
:arrow_up:

robocop/checkers/misc.py
92.43% <0.00%> (-5.05%)
:arrow_down:

robocop/checkers/documentation.py
96.00% <0.00%> (-4.00%)
:arrow_down:

robocop/checkers/comments.py
96.96% <0.00%> (-3.04%)
:arrow_down:

robocop/checkers/errors.py
95.23% <0.00%> (-2.39%)
:arrow_down:

robocop/checkers/__init__.py
91.01% <0.00%> (-2.25%)
:arrow_down:

robocop/checkers/naming.py
97.25% <0.00%> (-1.65%)
:arrow_down:

robocop/utils/misc.py
97.81% <0.00%> (-1.46%)
:arrow_down:

robocop/checkers/lengths.py
98.75% <0.00%> (-1.25%)
:arrow_down:

robocop/checkers/spacing.py
98.58% <0.00%> (-1.07%)
:arrow_down:

Continue to review full report at Codecov.

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

I think I will make the counter information more precise, e.g.:
"Altogether 3 rule(s) with following severity:
    1 Error rule(s),
    1 Warning rule(s),
    1 Info rule(s).\n"

Also, I think we can drop the part "with configurable parameters." since I don't see a big value in it. But you can try to convince me, because maybe I don't see it clearly 😉

I think I will make the counter information more precise, e.g.:
Altogether 3 rule(s) with following severity:
    1 Error rule(s),
    1 Warning rule(s),
    1 Info rule(s).

Also, I think we can drop the part "with configurable parameters." since I don't see a big value in it. But you can try to convince me, because maybe I don't see it clearly 😉

It's bit of "just a remined those are only rules with configurable parameters, not all of them" but I see point we don't really need them - especially we're not reminding if some rules were filtered out, ie:
--list missing-doc*

Yes, I think we can drop it. If someone wants to list only configurable rules, I guess one remembers what was passed several seconds ago and what is expected. No need to add it, in my opinion.


Add DebianSourcesLexer lexer

Debian and derivatives have a new *.sources file based on deb822 format to set up system-wide packages repositories.
Ubuntu uses already it since 24.04 release.
This format will replace the sources.list format in the future.
I added the next release (2.19) in version_added but, of course, it should be changed if it will be release in another release. I can remove it too if a maintainer wants to manage it.
closes: #2747

Merged for 2.19! Thanks!