Unclosed Resource Warnings

Running test_flatten.py yields a number of UnclosedResource warnings.  Using the pdfrw method instead of pypdf3 during Merge call in Flatten seemed to limit the number of warnings but not eliminate them.  PyPDF3 appears to be the origin of the problem.

It appears that the source of UnclosedResource warnings has been fixed based on MacOS tests.  Not sure what was changed that resulted in the fix.  Has not been tested on Windows 10 (Windows 10 was raising more errors than MacOS).

Windows 10 test_flatten.py console output
Launching unittests with arguments python -m unittest C:/Users/Stephen/Scripts/pdfconduit/tests/test_flatten.py in C:\Users\Stephen\Scripts\pdfconduit\tests
ResourceWarning: unclosed file <_io.BufferedRandom name=3> [flatten.py:94]
ResourceWarning: unclosed file <_io.BufferedRandom name=3> [pdf.py:54]
flatten 1x      --> 2.527738332748413
flatten 2x      --> 5.085687160491943
flatten 3x      --> 9.904916048049927
Ran 3 tests in 17.690s
OK

Unclosed resource warnings have completely disappeared from macOS tests.  Testings Windows 10 now

Flatten module still causing unclosed file warnings to be raised.
C:/Users/Stephen/Scripts/pdfconduit/tests\test_flatten.py
ResourceWarning: unclosed file <_io.BufferedRandom name=3> [pdf2img.py:81]
ResourceWarning: unclosed file <_io.BufferedRandom name=3> [pdf.py:55]
tests test_flatten TestFlatten test_flatten_1x --> 31.5


User defined functions and types

Add support for UDFs and UDTs.

definitely separate tickets ...
On Tue, Feb 9, 2016 at 12:27 PM, Joy Arulraj<EMAIL_ADDRESS>wrote:

Add support for UDFs and UDTs.

—
Reply to this email directly or view it on GitHub
https://github.com/cmu-db/peloton/issues/30.

--
Anthony Tomasic
Senior Systems Scientist
Language Technologies Institute
Carnegie Mellon University
http://ideate.cmu.edu/graduate-programs-research/emerging-media/
http://ideate.cmu.edu/graduate-programs-research/emerging-media/
http://www.tiramisutransit.com
http://mcds.cs.cmu.edu http://mcds.cs.cmu.edu
http://www.cs.cmu.edu/~tomasic


Prettify layout for better readability

@mapfel : Thanks for your contribution! The author(s) have been notified to review your proposed change.


tprocedure snippet suggestion

Hi,
In VS Code when you use the 'tprocedure' snippet the function that is created is 'Global' as default. In the NAV development client this now defaults as 'local' when a new function is created and has done for the last few versions. Is it possible to either add a new snippet like: 'tprocedurelocal' or change the snippet to be local as default?
Thanks
Andy

Thanks, this was already reported under #213.


Undefined symbols for architecture x86_64: "_jump_fcontext" & "_make_fcontext"

    > @rahulgpt1 there is no expectation this will work below react-native 0.69.1

The patch put into 0.69.1 explicitly defines those symbols via linker directives

Hi Mike,
As you said hermes wouldn't work in RN version 0.68.2, but you people resolved this issue in RN version 0.69.1 so I updated my RN version to 0.69.1 but it still gives the same error undefined symbol for "_jump_fcontext" & "_make_fcontext".
See the attached screenshot:

System Detail:

MacOS Monterey (12.2.1)
MacBook Pro (M1 Chip)
Xcode 13.0

Pod File Configuration Details:

use_frameworks! (Not using)
modular_headers => true (For some of the pods like below)
pod 'CNIOLinux', '= 2.20.2',:modular_headers => true
pod 'CNIODarwin', '= 2.20.2',:modular_headers => true
pod 'CNIOAtomics', '= 2.20.2',:modular_headers => true
pod 'CNIOSHA1', '= 2.20.2',:modular_headers => true
pod 'CNIOHTTPParser', '= 2.20.2',:modular_headers => true
pod 'CNIOBoringSSL','= 2.9',:modular_headers => true
pod 'CNIOBoringSSLShims','= 2.9',:modular_headers => true
pod 'CGRPCZlib', '= 1.0.0-alpha.18',:modular_headers => true
Bitcode : (Tried both by enabling and disabling)

Thanks
Originally posted by @rahulgpt1 in https://github.com/facebook/react-native/issues/34030#issuecomment-1278516370

Please make a reproduction and post it, starting with npx react-native init ProjectName, committing that, then just committing the changes required to show the error.
I do similar and do not reproduce, via my build test harness here https://github.com/mikehardy/rnfbdemo/blob/main/make-demo.sh (but with use_frameworks, so may not apply, just saying you can make a reproduction
https://stackoverflow.com/help/minimal-reproducible-example

Hi Mike,
Now I am having another issue 'react/bridging/CallbackWrapper.h' file not found when building the app(whether hermes is enabled or disabled). In my project I have already applied the path for react-native+0.69.1.patch
I tried https://github.com/facebook/react-native/issues/34102#issuecomment-1180727214 this solution but that doesn't work for me and also tried  https://github.com/facebook/react-native/issues/34102#issuecomment-1185518186 but no luck. Please have a look on attached screenshot.

Sorry to forgot now we are using static linkage**(use_frameworks! :linkage => :static)**

With apologies this is not an open-ended tech support thread for me. I try to help when I can, but lacking reproducible examples and just looking at screenshots isn't the way. I link a reproducible example above, it works. I don't have time to participate in this discussion any more

@rahulgpt1 Hi, in our team we have the same problem. Any news about this? Did you solve this? Best

+1

We noticed that this seems to be an issue when we add the -all_load linker flag.  After a bit of research it looks like this might be a folly/boost issue?  Is boost up to date?

@rahulgpt1 Hi, in our team we have the same problem. Any news about this? Did you solve this? Best

May I ask if your team has finally resolved the issue? If possible, please let me know what to do. Thank you.

I am still experiencing this issue on React native 0.73


segfault when linking to unwind library

When building a binary linked against the libwunwind, and when there is an exception inside ChakraCore, there is a segfault.
the problem
When using valgrind, I get:
==6096== Syscall param msync(start) points to uninitialised byte(s)
==6096==    at 0x690355B: msync (msync.c:25)
==6096==    by 0x4E3CFC3: ??? (in /usr/lib/x86_64-linux-gnu/libunwind.so.8.0.1)
==6096==    by 0x4E40D20: ??? (in /usr/lib/x86_64-linux-gnu/libunwind.so.8.0.1)
==6096==    by 0x4E4101E: ??? (in /usr/lib/x86_64-linux-gnu/libunwind.so.8.0.1)
==6096==    by 0x4E41568: ??? (in /usr/lib/x86_64-linux-gnu/libunwind.so.8.0.1)
==6096==    by 0x4E3DAC0: _ULx86_64_step (in /usr/lib/x86_64-linux-gnu/libunwind.so.8.0.1)
==6096==    by 0x4E3C6D8: _Unwind_RaiseException (in /usr/lib/x86_64-linux-gnu/libunwind.so.8.0.1)
==6096==    by 0x5AF5C26: __cxa_throw (in /home/XXX/.root/Applications/ChakraCore/out/Release/libChakraCore.so)
==6096==    by 0x5812BB3: Js::JavascriptExceptionOperators::DoThrow(Js::JavascriptExceptionObject*, Js::ScriptContext*) (in /home/XXX/.root/Applications/ChakraCore/out/Release/libChakraCore.so)
==6096==    by 0x581398F: Js::JavascriptExceptionOperators::ThrowExceptionObjectInternal(Js::JavascriptExceptionObject*, Js::ScriptContext*, bool, bool, void*, bool) (in /home/XXX/.root/Applications/ChakraCore/out/Release/libChakraCore.so)
==6096==    by 0x58130BA: Js::JavascriptExceptionOperators::ThrowExceptionObject(Js::JavascriptExceptionObject*, Js::ScriptContext*, bool, void*, bool) (in /home/XXX/.root/Applications/ChakraCore/out/Release/libChakraCore.so)
==6096==    by 0x5813074: Js::JavascriptExceptionOperators::Throw(void*, Js::ScriptContext*) (in /home/XXX/.root/Applications/ChakraCore/out/Release/libChakraCore.so)
==6096==  Address 0x1ffefff000 is on thread 1's stack
==6096==  in frame #6, created by _Unwind_RaiseException (???:)

==6096==
==6096== Invalid read of size 8
==6096==    at 0x4E3CC14: _Ux86_64_setcontext (in /usr/lib/x86_64-linux-gnu/libunwind.so.8.0.1)
==6096==    by 0x57A438E: Js::InterpreterStackFrame::InterpreterHelper(Js::ScriptFunction*, Js::ArgumentReader, void*, void*, Js::InterpreterStackFrame::AsmJsReturnStruct*) (in /home/XXX/.root/Applications/ChakraCore/out/Release/libChakraCore.so)
==6096==    by 0x57A3FBD: Js::InterpreterStackFrame::InterpreterThunk(Js::JavascriptCallStackLayout*) (in /home/XXX/.root/Applications/ChakraCore/out/Release/libChakraCore.so)
==6096==    by 0x4190FA1: ???
==6096==    by 0x5A063FD: amd64_CallFunction (in /home/melidrissi/.root/Applications/ChakraCore/out/Release/libChakraCore.so)
==6096==    by 0x58C599A: Js::JavascriptFunction::CallRootFunction(Js::Arguments, Js::ScriptContext*, bool) (in /home/XXX/.root/Applications/ChakraCore/out/Release/libChakraCore.so)
==6096==    by 0x543936B: RunScriptCore(void*, unsigned char const*, unsigned long, LoadScriptFlag, unsigned long, char16_t const*, bool, _JsParseScriptAttributes, bool, void**) (in /home/XXX/.root/Applications/ChakraCore/out/Release/libChakraCore.so)
==6096==    by 0x543CB3C: JsRun (in /home/XXX/.root/Applications/ChakraCore/out/Release/libChakraCore.so)
==6096==    by 0x108CD2: main (toto.cpp:53)
==6096==  Address 0x1ffeffed88 is on thread 1's stack
==6096==  2760 bytes below stack pointer

(full valgrind's log: vagrind_log.txt)
an idea/clue
When I look for unwind symbol in ChakraCore :
readelf -sW libChakraCore.so | grep _Unwind
    43:<PHONE_NUMBER>000000     0 FUNC    GLOBAL DEFAULT  UND<EMAIL_ADDRESS>(10)
    47:<PHONE_NUMBER>000000     0 FUNC    GLOBAL DEFAULT  UND<EMAIL_ADDRESS>(11)
    82:<PHONE_NUMBER>000000     0 FUNC    GLOBAL DEFAULT  UND<EMAIL_ADDRESS>(4)
   104:<PHONE_NUMBER>000000     0 FUNC    GLOBAL DEFAULT  UND<EMAIL_ADDRESS>(4)
   134:<PHONE_NUMBER>000000     0 FUNC    GLOBAL DEFAULT  UND<EMAIL_ADDRESS>(4)
   165:<PHONE_NUMBER>000000     0 FUNC    GLOBAL DEFAULT  UND<EMAIL_ADDRESS>(4)
   219:<PHONE_NUMBER>000000     0 FUNC    GLOBAL DEFAULT  UND<EMAIL_ADDRESS>(4)
   301:<PHONE_NUMBER>000000     0 FUNC    GLOBAL DEFAULT  UND<EMAIL_ADDRESS>(4)
   354:<PHONE_NUMBER>000000     0 FUNC    GLOBAL DEFAULT  UND<EMAIL_ADDRESS>(4)
   430:<PHONE_NUMBER>000000     0 FUNC    GLOBAL DEFAULT  UND<EMAIL_ADDRESS>(4)
   445:<PHONE_NUMBER>000000     0 FUNC    GLOBAL DEFAULT  UND<EMAIL_ADDRESS>(4)
  3261:<PHONE_NUMBER>882b60    59 FUNC    LOCAL  DEFAULT   11 _ZL23__gxx_exception_cleanup19_Unwind_Reason_CodeP17_Unwind_Exception
  3267:<PHONE_NUMBER>883020    81 FUNC    LOCAL  DEFAULT   11 _ZL21base_of_encoded_valuehP15_Unwind_Context.part.3
  3268:<PHONE_NUMBER>883080   241 FUNC    LOCAL  DEFAULT   11 _ZL17parse_lsda_headerP15_Unwind_ContextPKhP16lsda_header_info
 45291:<PHONE_NUMBER>000000     0 FUNC    GLOBAL DEFAULT  UND _Unwind_GetIPInfo@@GCC_4.2.0
 45295:<PHONE_NUMBER>000000     0 FUNC    GLOBAL DEFAULT  UND _Unwind_Resume_or_Rethrow@@GCC_3.3
 45330:<PHONE_NUMBER>000000     0 FUNC    GLOBAL DEFAULT  UND _Unwind_GetDataRelBase@@GCC_3.0
 45352:<PHONE_NUMBER>000000     0 FUNC    GLOBAL DEFAULT  UND _Unwind_GetRegionStart@@GCC_3.0
 45382:<PHONE_NUMBER>000000     0 FUNC    GLOBAL DEFAULT  UND _Unwind_SetGR@@GCC_3.0
 45413:<PHONE_NUMBER>000000     0 FUNC    GLOBAL DEFAULT  UND _Unwind_GetTextRelBase@@GCC_3.0
 45467:<PHONE_NUMBER>000000     0 FUNC    GLOBAL DEFAULT  UND _Unwind_Resume@@GCC_3.0
 45549:<PHONE_NUMBER>000000     0 FUNC    GLOBAL DEFAULT  UND _Unwind_DeleteException@@GCC_3.0
 45602:<PHONE_NUMBER>000000     0 FUNC    GLOBAL DEFAULT  UND _Unwind_RaiseException@@GCC_3.0
 45677:<PHONE_NUMBER>000000     0 FUNC    GLOBAL DEFAULT  UND _Unwind_GetLanguageSpecificData@@GCC_3.0
 45692:<PHONE_NUMBER>000000     0 FUNC    GLOBAL DEFAULT  UND _Unwind_SetIP@@GCC_3.0

There are marked as Undefined, and I read here on a similary ticket that it should not.
question
Can you tell me what I'm doing wrong ? This topic is a bit technical for me.
example code
starting with official linux sample
and replacing:
 const char* script = "(()=>{return \'Hello World!\';})()" ;

with
const char* script = "b";

in order to generate an exception.
My binary is build:
gcc -g -I/home/XXX/.root/Applications/ChakraCore/lib/Jsrt/ -L/home/XXX/.root/Applications/ChakraCore/out/Release  -lunwind -lunwind-x86_64  -lChakraCore -pthread -lm -ldl -licuuc toto.cpp

hardware/software
I'm under linux, using ChakraCore (git log) : commit 3f76911 (HEAD -> master, origin/master, origin/HEAD)

kernel : Linux 4.14.0-3-amd64 #1 SMP Debian 4.14.13-1 (2018-01-14) x86_64 GNU/Linux
libc6: 2.26-4

@lemmel I'm assuming that you have a solution that depends on libunwind?

I route all the messages of my application to a custom logger, and when gravity is greater than warning I display the call stack and informations.
As i'm currently coding, there is a lot of warning :-), but I can live for the time without it, if it was your question.

As linker dependency order matters, could you please try locating -lChakraCore before libunwind?

Same result with:
gcc -g -I/home/XXX/.root/Applications/ChakraCore/lib/Jsrt/ -L/home/XXX/.root/Applications/ChakraCore/out/Release -lChakraCore -lunwind -lunwind-x86_64  -pthread -lm -ldl -licuuc toto.cpp

Can you try put -lgcc_s before libunwind? I recall seeing a problem of libunwind with ChakraCore/C++ exception before.

It does the trick but I'm not at ease with it, as gcc_s and libunwind can do the same thing: rewind stack trace.
I did some (very superficial) research, and by putting gcc_s on front, it seems that symbols of gcc_s are used at first, and symbols from libunwind used when its specific are called: they both provide some identical symbols.
So it seems that a mixed up of 2 libraries is done by adding gcc_s on the linker command line.
But for the time:

all my small tests performed well
there is a Bug Fix Advisory from RedHat that advise to do the same (c.f. the Bug Report).

So I consider that I got a satisfactory answer, many thanks to @jianchun !


Undefined variable: splitMode

Introduced by #1035, the let is removed at https://github.com/scrooloose/nerdtree/pull/1035/files#diff-aacb944c971018c39683b783f57a1d4eL189 and the variable is subsequently referenced at https://github.com/scrooloose/nerdtree/pull/1035/files#diff-aacb944c971018c39683b783f57a1d4eR178.
I'm unsure if simply reintroducing the removed let would fit the goals of the PR, although it does resolve the error.

Having the same error.


add note about get_transfers/get_transfer_by_txid destinations being undefined, make it more consistent

squash?

@HardenedSteel squashed

would it not be better to just add a "Note: ..." next to the destimations param? the scary warning for unlock time was an exception, unless this is of the same severity if overlooked?

would it not be better to just add a "Note: ..." next to the destinations* param? the scary warning for unlock time was an exception, unless this is of the same severity if overlooked?

I think it's worthy of a warning, since you can permanently lose accounting information, which I remember caused at least one person financial damage since they couldn't provide a valid tx spend proof to their exchange.

with the new docs site we can play around with warnings.

would it not be better to just add a "Note: ..." next to the destinations* param? the scary warning for unlock time was an exception, unless this is of the same severity if overlooked?

I think it's worthy of a warning, since you can permanently lose accounting information, which I remember caused at least one person financial damage since they couldn't provide a valid tx spend proof to their exchange.

the possible repercussions of deleting the wallet cache / re-syncing a wallet would fill the entire doc with red warnings. so i would NACK this PR as is. This would seem better fitting as a Note about working with wallets / monero-wallet-rpc. The new docs site can facilitate this better i feel.

example of notes at the top https://2.test.monerodevs.org/interacting/monero-wallet-rpc-reference/
different style of a note e.g. warning example @ https://2.test.monerodevs.org/interacting/monero-wallet-rpc-reference/#describe_transfer
they can be collapsible also

docs are moving to https://github.com/monero-project/monero-docs
merged in https://github.com/monero-project/monero-docs/pull/67
closing. thank you


How to use validation results?

Hi!
Is there a way to access the validation results?
The intention is to enable the disabled submit button once all validation requirements are met.
I know that there's the onValidated method for every field, but I can't access anything other than the model, the errors and the field itself and nothing from the parent component.
Is there a way to do this without hacking on the model?
And on that note... How to trigger the form validation?

Yes, the vue-form-generator has an errors property. This contains the validation errors.
You can reach it with $refs.
Example: https://github.com/icebob/vue-form-generator/blob/master/dev/app.vue#L76
In template set a ref:
vue-form-generator(:schema='schema', :model='model', v-ref:form)

In script:
 let validationErrors = this.$refs.form.errors;

Again, Wonderful! And Thank You!

Well... almost... I get fragmented instance errors when using v-ref...
<template>

    <modal title="Modal title">
      <vue-form-generator :schema="schema" :model="model" :options="formOptions" v-ref="form"></vue-form-generator>

          <button class="btn btn-default" @click="toggleModal">Cancel</button>
          <button class="btn btn-success" @click="sendModel">Create</button>

    <modal>

</template>

Could you show the error message?

Standard vue fragmented instance error for the v-ref, with the link to the
documentation.
I can post the exact error tomorrow.
On Tue, 23 Aug 2016, 21:38 Icebob<EMAIL_ADDRESS>wrote:

Could you show the error message?
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
https://github.com/icebob/vue-form-generator/issues/45#issuecomment-241851680,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AB5i8j4mObjdtZyqNDiVw6GV8_xAKjTUks5qi0xNgaJpZM4Jq6XR
.

--
Galicz Miklós
http://blackfyre.ninja/

vue.common.js?4a36:1019 [Vue warn]: Attribute "v-ref" is ignored on component  because the component is a fragment instance: http://vuejs.org/guide/components.html#Fragment-Instance

I think because your are using in modal so when the modal is not visible, the ref not exists too.
I'm thinking, how we can solve it.

Your theory is certainly possible, but I cannot confirm it, as I had to find a solution fast, and moved to an SPA architecture in favour of throwing modal boxes.

I found a solution, here is my PR #52.
It seem like a fieldset don't count as a root element for Vue. I added a div and it fix everything.
I hope it can help @blackfyre too.


Keys don't follow the selected account

Overview
Switching accounts with one of the tabs open (e.g. keys, as shown in the image) doesn't update the tab content.

Steps
You're logged in with an account that is not tf.

Go to an account, such as tf
Select the keys tab
Click on the Wallet tab to go to your wallet
Scroll down
See the keys permissions associated with the tf account instead of with your own

Acceptance criteria

The keys showed should always be referring to the selected account

resolved


Add typings to package.json export

When importing the package in a project made with Vite, eslint was complaining it could not find type definitions.
Could not find a declaration file for module 'vue-stripe-js'. 'projectdir/node_modules/vue-stripe-js/dist/vue-stripe.es.js' implicitly has an 'any' type.
  There are types at 'projectdir/node_modules/vue-stripe-js/types/vue-stripe.d.ts', but this result could not be resolved when respecting package.json "exports". The 'vue-stripe-js' library may need to update its package.json or typings.

This seems to be a related issue to https://github.com/microsoft/TypeScript/issues/52363 which can be fixed by adding the types property under exports in package.json.

Hi @ectoflow, could you have a look into this PR when you get a chance?

Hi, thanks for your PR!
It would be nice to have a reproducible link, so we can test the issue before/after the fix. Do you have time to simulate the issue on stackblitz?
Then I can prepare minor release, probably some dev packages require updates along the way

Hi, thanks for your PR!
It would be nice to have a reproducible link, so we can test the issue before/after the fix. Do you have time to simulate the issue on stackblitz?
Then I can prepare minor release, probably some dev packages require updates along the way

@softbeehive here it is https://codesandbox.io/p/sandbox/lingering-currying-qhn9ly?file=%2Fsrc%2FApp.vue%3A3%2C9

+1: this issue also affects my private codebase


Getting "XMLHttpRequest" error while using Chrome Web on VS Code

When I launch my application on Chrome Web using VS Code and try to send a http request to the Backend side, it gives me XMLHttpRequest error and does not work.
When I launch the app on Android Emulator it works. Also I tried to add Allow-All-Origins and other CORS options in my Backend application but still I get the same error.
I also tried to deactivate CORS on Chrome Web but it also didn't work. I don't know if is it necessary to add what solutions I tried and didn't get the answer or not, but I also like to know if is it a Bug or a problem with Flutter or Chrome web?

I also want to know what address Flutter uses to launch it's application using Chrome web to set it as an Origin in backend side instead of using * wildcard?

I changed the following line of the code:
   final url = Uri.parse('http://<IP_ADDRESS>:8000/api/$urlSegment');
Like below:
   final url = Uri.parse('http://<IP_ADDRESS>:8000/api/$urlSegment');
And the problem seems to be solved, but I am not sure if it is the correct solution or not?

Hi @learner00000,

final url = Uri.parse('http://<IP_ADDRESS>:8000/api/$urlSegment');

This is indeed the right solution for the web.
The Android Emulator doesn't have a way to access localhost, which is why it was necessary for you to use
final url = Uri.parse('http://<IP_ADDRESS>:8000/api/$urlSegment');
But calling that same URL won't work on web because that URL wouldn't actually be accessible.
What you can do so that both URLs work for their respective platforms is to do something like
final host = Platform.isAndroid ? '<IP_ADDRESS>' : '<IP_ADDRESS>';

final url = 'http://$host:8080/api/$urlSegment';

this way you ensure the right host is used for the right platform.
You could also host your backend and then just use that url.

I also want to know what address Flutter uses to launch it's application using Chrome web to set it as an Origin in backend side instead of using * wildcard?

The app is always launched locally using localhost and a random port. You can set a port when you're launching it by running
flutter run -d chrome --web-port=5000

Of course, the port could be anything you want it to be, so far as that port is available.

Hi @learner00000,

final url = Uri.parse('http://<IP_ADDRESS>:8000/api/$urlSegment');

This is indeed the right solution for the web.
The Android Emulator doesn't have a way to access localhost, which is why it was necessary for you to use
final url = Uri.parse('http://<IP_ADDRESS>:8000/api/$urlSegment');
But calling that same URL won't work on web because that URL wouldn't actually be accessible.
What you can do so that both URLs work for their respective platforms is to do something like
final host = Platform.isAndroid ? '<IP_ADDRESS>' : '<IP_ADDRESS>';

final url = 'http://$host:8080/api/$urlSegment';

this way you ensure the right host is used for the right platform. Do note that the above is only for if you're testing with the android emulator.
You could also host your backend and then just use that url. This is what I would recommend.

I also want to know what address Flutter uses to launch it's application using Chrome web to set it as an Origin in backend side instead of using * wildcard?

The app is always launched locally using localhost and a random port. You can set a port when you're launching it by running
flutter run -d chrome --web-port=5000

Of course, the port could be anything you want it to be, so far as that port is available.

Thank you very much for your help! (Although it doesn't recognize Platform and gives me Undefined name 'Platform'. error).
It was also another question for me to know how can I launch some different widgets/features respect to what platform does the user use? For example I want to either add a camera feature only when user launches the app using the smartphone or add a specific feature only users who use the web version can see and use that widget. I don't know what is the right manner doing that?

Thank you very much for your help! (Although it doesn't recognize Platform and gives me Undefined name 'Platform'. error).

The Platform class is from the dart:io library, but that library isn't available on web yet, so instead you could use kIsWeb from flutter/foundation.

It was also another question for me to know how can I launch some different widgets/features respect to what platform does the user use? For example I want to either add a camera feature only when user launches the app using the smartphone or add a specific feature only users who use the web version can see and use that widget. I don't know what is the right manner doing that? Should I write separate widgets for mobile and web versions or I must add if statements like what you suggested above, before the widgets may vary respect to the platform.

I will say it depends on the complexity of your designs and what exactly you're trying to achieve. There's a route you could go that will make it easier for you (you wouldn't need to specify a lot of conditionals), but that will involve writing more code.
And with this method, you'd have to make sure that you manage your state more effectively. You could achieve this by using this community package https://pub.dev/packages/responsive_builder, so you don't have to do the work of writing your own widget to handle the various screen sizes.
The other method is to check which platform you're running on and then enable that feature whether or not it is supposed to be there. If your UI isn't all that complex, you could get away with a few conditionals, but it becomes harder to maintain the more conditions you have to specify in your code. One way you could get away with this is to create a "wrapper" widget around the conditions you want.
For example, you can create a MobileVisibilityWrapper widget and then in that widget, specify that the child should only be shown if it matches the conditions for a mobile device and you could do the same for the web, but I'm not sure how well that will scale.
Ultimately, I would say the concept of responsive design on the web can be applied in this context to achieve the desired effect.


Type args Attribute Error

Issue
Can't start OWAPI server as per instructions. Typeguard error? Running on python 3.6 venv with all required packages (OSX).
Links that cause the issue
(venv) DK@D OWAPI (master) $ PYTHONPATH=. asphalt run config.yml
Traceback (most recent call last):
  File "/Users/DK/workspace/overwatch/OWAPI/venv/bin/asphalt", line 7, in <module>
    from asphalt.core.command import main
  File "/Users/DK/workspace/overwatch/OWAPI/venv/lib/python3.6/site-packages/asphalt/core/__init__.py", line 1, in <module>
    from .component import *
  File "/Users/DK/workspace/overwatch/OWAPI/venv/lib/python3.6/site-packages/asphalt/core/component.py", line 8, in <module>
    from asphalt.core.context import Context
  File "/Users/DK/workspace/overwatch/OWAPI/venv/lib/python3.6/site-packages/asphalt/core/context.py", line 111, in <module>
    class Context:
  File "/Users/DK/workspace/overwatch/OWAPI/venv/lib/python3.6/site-packages/asphalt/core/context.py", line 134, in Context
    finished = Signal(ContextFinishEvent)
  File "/Users/DK/workspace/overwatch/OWAPI/venv/lib/python3.6/site-packages/asphalt/core/event.py", line 92, in __init__
    assert check_argument_types()
  File "/Users/DK/workspace/overwatch/OWAPI/venv/lib/python3.6/site-packages/typeguard.py", line 308, in check_argument_types
    check_type(argname, value, expected_type, typevars_memo)
  File "/Users/DK/workspace/overwatch/OWAPI/venv/lib/python3.6/site-packages/typeguard.py", line 237, in check_type
    checker_func(argname, value, expected_type, typevars_memo)
  File "/Users/DK/workspace/overwatch/OWAPI/venv/lib/python3.6/site-packages/typeguard.py", line 47, in check_callable
    if isinstance(expected_type.__args__, tuple):
AttributeError: type object 'type' has no attribute '__args__'

This seems like it should probably be raised upstream at agronholm/typeguard.

This issue was fixed by updating my typeguard package to the latest, 2.1.1.


cmdline_from_argv8: wrong handling of trailing backslash

Example 1:
> gcc -DDEMO -o demo.exe cmdline.c
> demo.exe "c:\program files\\"
cmd = demo.exe  "c:\program files\\"
argc = 2
argv[0] = demo.exe             (8) 64 65 6d 6f 2e 65 78 65
argv[1] = c:\program files\    (17) 63 3a 5c 70 72 6f 67 72 61 6d 20 66 69 6c 65 73 5c
recmd = demo.exe "c:\program files\"

Notice the recmd = line not having the last slash escaped, even though it appears before a closing quote.
If we execute that command as it appears above:
> demo.exe "c:\program files\"
cmd = demo.exe  "c:\program files\"
argc = 2
argv[0] = demo.exe             (8) 64 65 6d 6f 2e 65 78 65
argv[1] = c:\program files"    (17) 63 3a 5c 70 72 6f 67 72 61 6d 20 66 69 6c 65 73 22
recmd = demo.exe "c:\program files\""

We get a different result, because the arg is interpreted as having unclosed quotes with an escaped quote at the end.
Expected output for example 1 would have been:
> demo.exe "c:\program files\\"
...
recmd = demo.exe "c:\program files\\"

Thanks! Should be fixed now, along with your example as a new test. The
problem was finishing while in a backslash-sequence state but not
resolving that state before closing out a quoted argument.


Issue/10

We should be consistent with how we're annotating @JsonProperty. We can annotate everything at the field level rather than at that accessor level.

Any custom deserializers should be placed at the setter level. Doesn't make sense to annotate those at the field level.

Any custom deserializers should be placed at the setter level. Doesn't make sense to have those at the field level.

@pecjas I think we're good to go here. I'm still of the opinion we should merge yours first. I think it'll be less work overall since you won't need to re-work any of your changes, and since I'm going to have the most up-to-date version of the shared commits.


tutorial struct

"tutorial": {
    "indicators_suppressed": false,
    "indicators_confirmed": [
        "organize-by-topic",
        "instant-invite",
        "server-settings",
        "friends-list",
        "create-more-servers",
        "whos-online"
    ]

SpaceManiac - Today at 12:53 AM
Does anyone have any reference on the meanings or filled-out values of READY tutorial or server features, emojis, or splash?

Uniquoooo - Yesterday at 11:53 PM
http://unofficial.discordapi.com/en/latest/reference/guilds/general.html?highlight=emojis#guild-emojis-update
maybe this
splash is a hash
for the splash screen when u join a partners server
same format as icon afaik
features is an array of features the guild has
"features": ["INVITE_SPLASH"],

SpaceManiac - Today at 12:53 AM
Maybe someone can make use of this
confirmed got added to as I cleared quest markers, suppressed turned true when I said "got it" to hide them. at a guess it's a matter of time until it turns null but we shall see

Skip implementing this. Bots will not have access to the tutorial API routes when our official version comes out.


Updated Docker file

Removed SES region property to make it agnostic
@ianwestcott Once merged, let me know, I'll try to execute GH action.

@jurakp side-note: At the moment, the "Deploy" GitHub Actions are still pulling container images from the ECR repo in the shared SSO AWS account. So you didn't need me to merge this PR in order to deploy 1.0.7, you just needed to push the image to ECR. I noticed that you already did that on the 11th, so I ran the GitHub Action to deploy 1.0.7 to Keycloak Prod a little while ago in order to unblock @krisrjohnson21's testing. You're welcome to try deploying 1.0.7 to Keycloak Dev. 😄
With all that said: Now that the code is here, I plan on adding GitHub Actions to build container images from this GitHub repo and push them to the ECR repo in our main AWS account. So everything I just said above will change soon, hopefully later this week. I'll keep your team posted.

@ianwestcott It's done. Actually it worked, but the jar file was redundant. So now it is removed.

@ianwestcott Regarding ECR: the latest image (1.0.7) was deployed before to Dev (sandbox), so it's not blocking. The only problem was that we pushed unused jar file to GH.
Once the image build is done by GH action, it would be great! +1

@ianwestcott FYI: I ran GH action for Dev.


separate preferences file

It would be really cool to have an external configuration file with a list of all the checked options.
Purpose:

sync settings between machines (with dropbox, sugarsync, etc..)
backup and share configs (on github for example)

Any updates on this? I am also looking for a way to specify either the folder of the plist file or symlink it into my dropbox

There is no progress.
(And I'm working on Sierra support, so I cannot take a time for this issue for a while.)

For those who want to sync Karabiner preferences with git (it should also work with Dropbox), I wrote a tool that can help: https://github.com/asmeurer/prefsync. I personally use it to sync my Karabiner prefs. For many things that I've tried it with it's a bit annoying to track their preferences in git because they are constantly writing things like timestamps to the pref file, but for Karabiner it works quite nicely (the pref file generally updates only when a pref is changed, or sometimes when Karabiner is updated). To use it run
prefsync ~/Library/Preferences/org.pqrs.Karabiner.plist /path/to/synced/org.pqrs.Karabiner.plist

Just to confirm, has anyone been able to use Mackup to sync the selected checkboxes?

https://github.com/lra/mackup/issues/857

I'm using mackup to sync preferences via Dropbox. The problem is that Karabiner is updating ~/Library/Preferences/org.pqrs.Karabiner.plist as it is being used and causing dropbox to work all the time. Why is Karabiner saving the state to the preferences file instead of keeping it only in memory?


Add custom tailor pack

@GeekMasher This adds a query pack based on codeql/java-queries which showcases some of the things we could do in our customized packs. It:

adds a custom query suite java-security-experimental.qls which runs all experimental security queries,
bumps the @security-severity value of the XSS.ql query to 9.0,
treats all local sources of taint as remote sources of taint,
adds a manual taint step for java.lang.String.replace() (from the receiver to return value). This yields an additional deserialization result in WebGoat.
add a manual taint step for org.springframework.data.repository.CrudRepository.save() (from first parameter to return value). This yields an additional SQL injection result in WebGoat.
it introduces flow summaries for a selected set of WebGoat's dependencies, generated with @GeekMasher gh codeql summarize tool.
unit tests for all modifications
an integration test which creates a simple java db and runs the default query pack on it to make sure all the plumbing works
a cron-based workflow for automatic building, testing, versioning and publishing of the pack, so that it is always up-to-date with its base package and receives the newest improvements
pull request checks
it injects all those changes into all security queries
the build time is roughly 21 minutes on the cloud workers and about 6 minutes on my laptop.

For testing purposes, the pack is currently published under ghas-trials/java-queries. When this is merged, however, it will appear under advanced-security/poc-java-queries.
Whether or not we want to ship all these features or hide them behind feature flags, is a separate discussion, this just serves as an example.

For anyone who wants to check this out locally:

git clone "https://github.com/advanced-security/codeql-queries" checkoutdir
cd checkoutdir
git fetch origin pull/45/head && git checkout -b pullrequest FETCH_HEAD
cd checkoutdir/tailor-packs/java-poc
make compile    # downloads and compiles the pack
make unit-test   # runs the unit query tests
make integration-test
make publish     # autoversion and publish. This will hopefully fail, since you might not have the permission to publish to advanced-security/poc-java-queries

This looks great! gh tailor may be able to replace our codeql patcher. At the moment, I think that the only thing that the patcher do that may not be supported by gh tailor is to bump the fieldFlowBranchLimit limiter. Do you have plans on implementing something like that? We also considered adding other features such as patching the RemoteFlowSource to be able to exclude those in test files. For that purpose we though about using the ql-4-ql patcher instead, but that may be something that tailor may be able todo?

@pwntester Sounds like a good feature to include in the tool's api indeed. I guess the first version would be based on regular expressions, so this would be on the rough side of things, but as long as there are enough test cases I guess it's possible. I'll see whether I can somehow access parts of the QL parser from Python...
That being said, PRs are definitely welcome!
Would you mind giving me access to the codeql patcher repo? I am in a contractor role at the moment, which comes with all kinds of restrictions.

That being said, PRs are definitely welcome!

👍🏼

Would you mind giving me access to the codeql patcher repo? I am in a contractor role at the moment, which comes with all kinds of restrictions.

You should have access now


[$250] LHN - "Removed 0 user" displayed on #Admins preview when room member leaves room.

If you haven’t already, check out our contributing guidelines for onboarding and email<EMAIL_ADDRESS>to request to join our Slack channel!

Version Number: 9.0.72-0
Reproducible in staging?: Yes
Reproducible in production?: Yes
If this was caught on HybridApp, is this reproducible on New Expensify Standalone?: Yes, reproducible on both
If this was caught during regression testing, add the test name, ID and link from TestRail: N/A
Email or phone of affected tester (no customers<EMAIL_ADDRESS>Issue reported by: Applause Internal Team
Action Performed:
Precondition: User B has to be an off-workspace member of the room.

Create a workspace
Create a workspace room (e.g #social)
Invite someone to the room that is not a member of the workspace
Log-in as the invited room member account
Leave the workspace room
Switch back to the inviter account
Observe the LHN preview of the #social room reads: "left the chat"
Observe the LHN preview of the #admins room reads: "left #social"
Click into the #admins room
Observe the LHN preview of the #admins room changes to "Removed 0 user"

Expected Result:
The #admins room LHN preview should continue to display the "left #%roomName" system message.
Actual Result:
The #admins room LHN preview changes to "Removed 0 user".
Workaround:
Unknown
Platforms:

[x] Android: Standalone
[x] Android: HybridApp
[x] Android: mWeb Chrome
[ ] iOS: Standalone
[ ] iOS: HybridApp
[ ] iOS: mWeb Safari
[x] MacOS: Chrome / Safari
[x] MacOS: Desktop

Screenshots/Videos
https://github.com/user-attachments/assets/19ab997f-ca3f-4d43-bd2f-9496ad0cc399
View all open jobs on GitHub
Upwork Automation - Do Not Edit

Upwork Job URL: https://www.upwork.com/jobs/~021865059389537171212
Upwork Job ID:<PHONE_NUMBER>537171212
Last Price Increase: 2024-12-06

Issue OwnerCurrent Issue Owner: @eVoloshchak

Hm, I don't see anything at all:

Me too

Ah, invite an off-workspace member perhaps?

Yep, got it.

Updated the steps in the OP to hopefully make it clearer.

Proposal
Please re-state the problem that we are trying to solve in this issue.
LHN - "Removed 0 user" displayed on #Admins preview when room member leaves room.
What is the root cause of that problem?
We are not handling CONST.REPORT.ACTIONS.TYPE.POLICY_CHANGE_LOG.LEAVE_ROOM separately
https://github.com/Expensify/App/blob/48b80f65e80d304965cbeb3573d7d6678fb9bd3a/src/libs/SidebarUtils.ts#L437
so it is falling back to the report lastMessageText which is wrong
What changes do you think we should make in order to solve the problem?

We can add
else if (lastAction?.actionName === CONST.REPORT.ACTIONS.TYPE.POLICY_CHANGE_LOG.LEAVE_ROOM) {
            result.alternateText = ReportUtils.formatReportLastMessageText(Parser.htmlToText(`${lastActorDisplayName}: ${ReportActionsUtils.getReportActionMessageText(lastAction)}`));
        }

What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?
What alternative solutions did you explore? (Optional)
if we want we can leave out the lastActorDisplayName

Proposal
Please re-state the problem that we are trying to solve in this issue.
LHN - "Removed 0 user" displayed on #Admins preview when room member leaves room.
What is the root cause of that problem?
We are not handling CONST.REPORT.ACTIONS.TYPE.POLICY_CHANGE_LOG.LEAVE_ROOM separately
https://github.com/Expensify/App/blob/48b80f65e80d304965cbeb3573d7d6678fb9bd3a/src/libs/SidebarUtils.ts#L437
so it is falling back to the report lastMessageText which is wrong
What changes do you think we should make in order to solve the problem?

We can add
else if (lastAction?.actionName === CONST.REPORT.ACTIONS.TYPE.POLICY_CHANGE_LOG.LEAVE_ROOM) {
            const actionMessage = ReportActionsUtils.getReportActionMessageText(lastAction);
            result.alternateText = actionMessage ? `${lastActorDisplayName}: ${actionMessage}` : '';

What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?
What alternative solutions did you explore? (Optional)
if we want we can leave out the lastActorDisplayName

Proposal
Please re-state the problem that we are trying to solve in this issue.
The #admins room LHN preview changes to "Removed 0 user".
What is the root cause of that problem?
We don't have any special cases to handle CONST.REPORT.ACTIONS.TYPE.POLICY_CHANGE_LOG.LEAVE_ROOM action. Then it's displayed lastMessageText by default
And it's wrong because OpenReport API is returning the wrong lastMessageText
What changes do you think we should make in order to solve the problem?

We need to fix from the backend side to return the correct lastMessageText.

And it's wrong because OpenReport API is returning the wrong lastMessageText

If we want to handle translation in the same way we do for CONST.REPORT.ACTIONS.TYPE.POLICY_CHANGE_LOG.LEAVE_POLICY action. We can add a new case for this action in SidebarUtils, getReportName function, ReportActionItem, ContextMenuActions to handle translation for all places.

https://github.com/Expensify/App/blob/c013de6c218577279e6c8c90a98772d466c8f2d6/src/libs/SidebarUtils.ts#L465
What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?

What alternative solutions did you explore? (Optional)
NA
Reminder: Please use plain English, be brief and avoid jargon. Feel free to use images, charts or pseudo-code if necessary. Do not post large multi-line diffs or write walls of text. Do not create PRs unless you have been hired for this job.

@eVoloshchak what do you think of the proposal? Thanks!

@eVoloshchak can you review on hand off please? Thanks.

@FitseTLT's proposal looks good to me!
🎀👀🎀 C+ reviewed!

@eVoloshchak Can you please check again? If we don't want to translate this action, it's a backend bug because it returns the wrong lastMessageText. For another leave action like CONST.REPORT.ACTIONS.TYPE.POLICY_CHANGE_LOG.LEAVE_POLICY, we also display left the workspace

@eVoloshchak can you respond to this? https://github.com/Expensify/App/issues/53702#issuecomment-2547761060

PR ready for review


enhancement(CLI): Update the description of envd (#352)

Thanks! It works for me. Could you please reopen it?


adding a "make check" to the libsodium and secp256k1 install process

doing a "make check" after a "make" is always a good idea to see if all went well so far

@KtorZ please check, thx.

bors r+


Can this plugin use with obsidian-icon-shortcodes？

I found this plugin is also awesome obsidian-icon-shortcodes, if the supercharged link can use with it, it will be wonderful. That plugin has API maybe it's not difficult.

link favicon就有用这个api
Originally posted by @aidenlx in https://github.com/aidenlx/obsidian-icon-shortcodes/issues/50#issuecomment-1146564052

I'll close this as the new more general issue #187 encompasses it.


removing shutil support for creating zip

Issue #, if available:
#124
Description of changes:
Move the creation of the plugins.zip from app.py to deployspec b/c python 3.11.6 has an issue with shutil.  This is now done in deployspec via commandline
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

AWS CodeBuild CI Report

CodeBuild project: IDFModuleTestsInfrastructur-59JoFoVH64CI
Commit ID: da9095f0c0dd67eb441bde4794a0fe1ba6cc8ff0
Result: SUCCEEDED
Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository


Fix the BLC not actually running

It was starting up before python3 -m http.server started up, and so immediately exited with an error. So block until it's ready.
Also save the blc.txt log as an artifact so we can check for if weird things happen, like this.

Those are the 5 "broken" links I expected to see, w00t!


Removing the incorrectly placed + sign

Removing the incorrectly placed + sign from the sample code

@rishimittal2003 - I made this change in the corp repo. Thanks for noticing this!


Docker access

I followed the docker compose script, container is running but not accessible via local address ending in 10.10.x.x:7001

This does not appear to be an issue with this project, possibly with your use or environment.
I'll try to help, but you are not providing details that could help you in resolving the problem.
How about your compose yaml, log output, etc., anything that could help me help you?

Closing due to no response.


100% coverage for oauth2client.util

Towards #212.

LGTM pending Travis

Ha. The moment I posted we got b0rken Travis

Score one for non-deterministic dictionary order

lol for real. Pushed the fix.

Merging, @nathanielmanistaatgoogle if you have an qualms I'll be happy to send a follow-up PR.

:+1:

One stray wrongfully inserted newline. :-P We can hold off on cleaning that up until we decide to work toward a lint-clean-codebase objective.

@nathanielmanistaatgoogle fair enough. I think I'm more generous with newlines inside of methods than you are. :)

The spurious newlines are between class defs

Ah. Well, one more for the linter.


JMeter crash on Mac OS 11.2.3

gzhuang2014 (Bug 65298):
When I open jmeter on my macbook with Mac OS 11.2.3, it always crash immediately or can run for a short time but still crash in the end.
See my macOS and java version
$ sw_vers
ProductName:	macOS
ProductVersion:	11.2.3
BuildVersion:	20D91
$ java -version
java version "11.0.10" 2021-01-19 LTS
Java(TM) SE Runtime Environment 18.9 (build 11.0.10+8-LTS-162)
Java HotSpot(TM) 64-Bit Server VM 18.9 (build 11.0.10+8-LTS-162, mixed mode)
I am using JMeter 5.4.1 and I got logs as below.
WARNING: package sun.awt.X11 not in java.desktop
Don't use GUI mode for load testing !, only for Test creation and Test debugging.
For load testing, use CLI Mode (was NON GUI):
jmeter -n -t [jmx file] -l [results file] -e -o [Path to web report folder]
& increase Java Heap to meet your test requirements:
Modify current env variable HEAP="-Xms1g -Xmx1g -XX:MaxMetaspaceSize=256m" in the jmeter batch file
Check : https://jmeter.apache.org/usermanual/best-practices.html
2021-05-10 16:52:59.967 java[3821:190107] Warning: Expected min height of view: (<NSButton: 0x7f9a5b00c900>) to be less than or equal to 30 but got a height of 32.000000. This error will be logged once per view in violation.
2021-05-10 16:52:59.970 java[3821:190107] Warning: Expected min height of view: (<NSButton: 0x7f9a59b33730>) to be less than or equal to 30 but got a height of 32.000000. This error will be logged once per view in violation.
2021-05-10 16:53:00.317 java[3821:190107] _TIPropertyValueIsValid called with 4 on nil context!
2021-05-10 16:53:00.317 java[3821:190107] imkxpc_getApplicationProperty:reply: called with incorrect property value 4, bailing.
2021-05-10 16:53:00.317 java[3821:190107] Text input context does not respond to _valueForTIProperty:
2021-05-10 16:53:00.318 java[3821:190107] _TIPropertyValueIsValid called with 4 on nil context!
2021-05-10 16:53:00.318 java[3821:190107] imkxpc_getApplicationProperty:reply: called with incorrect property value 4, bailing.
2021-05-10 16:53:00.318 java[3821:190107] Text input context does not respond to _valueForTIProperty:
2021-05-10 16:53:00.322 java[3821:190107] _TIPropertyValueIsValid called with 4 on nil context!
2021-05-10 16:53:00.322 java[3821:190107] imkxpc_getApplicationProperty:reply: called with incorrect property value 4, bailing.
2021-05-10 16:53:00.322 java[3821:190107] Text input context does not respond to _valueForTIProperty:
2021-05-10 16:53:04.856 java[3821:190107] +[AWTView keyboardInputSourceChanged:]: unrecognized selector sent to class 0x127d263e0
2021-05-10 16:53:04.858 java[3821:190107] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '+[AWTView keyboardInputSourceChanged:]: unrecognized selector sent to class 0x127d263e0'
*** First throw call stack:
(
0   CoreFoundation                      0x00007fff2054a6af __exceptionPreprocess + 242
1   libobjc.A.dylib                     0x00007fff202823c9 objc_exception_throw + 48
2   CoreFoundation                      0x00007fff205ccbdd __CFExceptionProem + 0
3   CoreFoundation                      0x00007fff204b207d forwarding + 1467
4   CoreFoundation                      0x00007fff204b1a38 _CF_forwarding_prep_0 + 120
5   CoreFoundation                      0x00007fff204c5fec CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER + 12
6   CoreFoundation                      0x00007fff2056189b ___CFXRegistrationPost_block_invoke + 49
7   CoreFoundation                      0x00007fff2056180f _CFXRegistrationPost + 454
8   CoreFoundation                      0x00007fff20496bde _CFXNotificationPost + 723
9   Foundation                          0x00007fff21205abe -[NSNotificationCenter postNotificationName:object:userInfo:] + 59
10  AppKit                              0x00007fff23097812 __NSSelectedKeyboardInputSourcesChangedNotification + 58
11  CoreFoundation                      0x00007fff204c5fec CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER + 12
12  CoreFoundation                      0x00007fff2056189b ___CFXRegistrationPost_block_invoke + 49
13  libdispatch.dylib                   0x00007fff2022c5dd _dispatch_call_block_and_release + 12
14  libdispatch.dylib                   0x00007fff2022d7c7 _dispatch_client_callout + 8
15  libdispatch.dylib                   0x00007fff20239b86 _dispatch_main_queue_callback_4CF + 940
16  CoreFoundation                      0x00007fff2050d970 CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE + 9
17  CoreFoundation                      0x00007fff204cf852 __CFRunLoopRun + 2731
18  CoreFoundation                      0x00007fff204ce6ce CFRunLoopRunSpecific + 563
19  HIToolbox                           0x00007fff28756630 RunCurrentEventLoopInMode + 292
20  HIToolbox                           0x00007fff2875642c ReceiveNextEventCommon + 709
21  HIToolbox                           0x00007fff2875614f _BlockUntilNextEventMatchingListInModeWithFilter + 64
22  AppKit                              0x00007fff22cee9b1 _DPSNextEvent + 883
23  AppKit                              0x00007fff22ced177 -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 1366
24  libosxapp.dylib                     0x000000010579a91e -[NSApplicationAWT nextEventMatchingMask:untilDate:inMode:dequeue:] + 121
25  AppKit                              0x00007fff22cdf68a -[NSApplication run] + 586
26  libosxapp.dylib                     0x000000010579a763 +[NSApplicationAWT runAWTLoopWithApp:] + 222
27  libawt_lwawt.dylib                  0x0000000127cec141 +[AWTStarter starter:headless:] + 834
28  JavaNativeFoundation                0x00007fff6f7cc70f +[JNFRunLoop _performCopiedBlock:] + 15
29  Foundation                          0x00007fff2127c4d9 __NSThreadPerformPerform + 204
30  CoreFoundation                      0x00007fff204d0a0c CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION + 17
31  CoreFoundation                      0x00007fff204d0974 __CFRunLoopDoSource0 + 180
32  CoreFoundation                      0x00007fff204d06ef __CFRunLoopDoSources0 + 248
33  CoreFoundation                      0x00007fff204cf121 __CFRunLoopRun + 890
34  CoreFoundation                      0x00007fff204ce6ce CFRunLoopRunSpecific + 563
35  libjli.dylib                        0x00000001040a95f6 CreateExecutionEnvironment + 399
36  libjli.dylib                        0x00000001040a5787 JLI_Launch + 1315
37  java                                0x0000000104094b6f main + 367
38  libdyld.dylib                       0x00007fff203f3621 start + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
/Users/xxx/apache-jmeter-5.4.1/bin/jmeter: line 199:  3821 Abort trap: 6           "$JAVA_HOME/bin/java" $ARGS $JVM_ARGS $JMETER_OPTS -jar "$PRGDIR/ApacheJMeter.jar" "$@"
Saving session...
...copying shared history...
...saving history...truncating history files...
...completed.
[Process completed]
Severity: normal
OS: Mac OS X 10.1

Hello guys , I got same problem , I use MAC OS : 10.15.7 and JDK : 11.0.11 . Can you help me ?


Mouse Tracking throwing exceptions for widgets inside a ListView that are listening for hover events

I have some widgets inside a ListView that are listening for hover events.  When they are hovered they change color.  After they rebuild to change color, exceptions are thrown and the hover events no longer fire.
Here's a link to a Flutter Desktop repository that is having the reported issue: https://github.com/KevinTheGray/mouse-hover-exceptions
If you follow the instructions for Flutter Desktop Embedding and run example/macos_fde/ExampleEmbedder.xcodeproj, you can see the exception.
Here's a simple main.dart that reproduces the issue.  It builds a row with a ListView and a Column that implement similar behavior.  The column behaves as expected, but the ListView will exhibit the behavior described above.
import 'package:flutter/foundation.dart'
    show debugDefaultTargetPlatformOverride;
import 'package:flutter/material.dart';

void main() {
  debugDefaultTargetPlatformOverride = TargetPlatform.fuchsia;
  runApp(new TestApp());
}

class TestApp extends StatelessWidget {
  final ValueNotifier<int> _hoveredListViewIndex = ValueNotifier(-1);
  final ValueNotifier<int> _hoveredColumnIndex = ValueNotifier(-1);

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: AnimatedBuilder(
        animation:
            Listenable.merge([_hoveredListViewIndex, _hoveredColumnIndex]),
        builder: (_, __) {
          return Container(
            constraints: BoxConstraints.expand(),
            color: Colors.black,
            child: Row(
              mainAxisSize: MainAxisSize.max,
              children: <Widget>[
                Expanded(
                  child: Container(
                    color: Colors.white,
                    child: ListView(
                      children: List.generate(16, (index) {
                        return Listener(
                          onPointerEnter: (_) {
                            _hoveredListViewIndex.value = index;
                          },
                          onPointerExit: (_) {},
                          child: Container(
                            height: 20.0,
                            color: index == _hoveredListViewIndex.value
                                ? Colors.red
                                : Colors.green,
                          ),
                        );
                      }),
                    ),
                  ),
                ),
                Container(
                  width: 20.0,
                ),
                Expanded(
                  child: Container(
                    color: Colors.grey,
                    child: Column(
                      children: List.generate(16, (index) {
                        return Listener(
                          onPointerEnter: (_) {
                            _hoveredColumnIndex.value = index;
                          },
                          onPointerExit: (_) {},
                          child: Container(
                            height: 20.0,
                            color: index == _hoveredColumnIndex.value
                                ? Colors.red
                                : Colors.green,
                          ),
                        );
                      }),
                    ),
                  ),
                ),
              ],
            ),
          );
        },
      ),
    );
  }
}

The exception thrown is this:
══╡ EXCEPTION CAUGHT BY SCHEDULER LIBRARY ╞═════════════════════════════════════════════════════════
flutter: The following assertion was thrown during a scheduler callback:
flutter: Unable to find annotation [MouseTrackerAnnotation30885124 onEnter onExit] in tracked annotations.
flutter: Check that attachAnnotation has been called for all annotated layers.
flutter: 'package:flutter/src/gestures/mouse_tracking.dart': Failed assertion: line 168 pos 9:
flutter: 'trackedAnnotation != null'
flutter:
flutter: Either the assertion indicates an error in the framework itself, or we should provide substantially
flutter: more information in this error message to help you determine and fix the underlying cause.
flutter: In either case, please report this assertion by filing a bug on GitHub:
flutter:   https://github.com/flutter/flutter/issues/new?template=BUG.md
flutter:
flutter: When the exception was thrown, this was the stack:
flutter: #2      MouseTracker._findAnnotation (package:flutter/src/gestures/mouse_tracking.dart:168:9)
flutter: #3      MouseTracker.collectMousePositions (package:flutter/src/gestures/mouse_tracking.dart:233:48)
flutter: #4      MouseTracker._scheduleMousePositionCheck.<anonymous closure> (package:flutter/src/gestures/mouse_tracking.dart:131:68)
flutter: #5      _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:1012:15)
flutter: #6      _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:960:9)
flutter: #7      _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding._handleDrawFrame (package:flutter/src/scheduler/binding.dart:864:5)
flutter: #11     _invoke (dart:ui/hooks.dart:219:10)
flutter: #12     _drawFrame (dart:ui/hooks.dart:178:3)
flutter: (elided 5 frames from class _AssertionError and package dart:async)

Flutter Doctor
[✓] Flutter (Channel dev, v1.4.11, on Mac OS X 10.13.6 17G5019, locale en-US)
    • Flutter version 1.4.11 at /Users/KG/Developer/Flutter/flutter
    • Framework revision d15b3b1c8b (4 days ago), 2019-04-04 15:14:46 -0700
    • Engine revision 219bf59387
    • Dart version 2.2.1 (build 2.2.1-dev.3.0 None)

[✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
    • Android SDK at /Users/KG/Library/Android/sdk
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-28, build-tools 28.0.3
    • ANDROID_HOME = /Users/KG/Library/Android/sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1248-b01)
    • All Android licenses accepted.

[✓] iOS toolchain - develop for iOS devices (Xcode 10.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 10.1, Build version 10B61
    • ios-deploy 1.9.4
    • CocoaPods version 1.5.3

[✓] Android Studio (version 3.3)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin version 33.3.1
    • Dart plugin version 182.5215
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1248-b01)

[✓] IntelliJ IDEA Community Edition (version 2018.2.5)
    • IntelliJ at /Applications/IntelliJ IDEA CE.app
    • Flutter plugin version 29.1.3
    • Dart plugin version 182.4892.25

FDE Checkout
https://github.com/google/flutter-desktop-embedding/commit/dbd74824c7fea739291d0d5361b1e3c9dbc16872

cc @gspencergoog

This is also reproducible on mobile.  For example, I attached a mouse to my Android device, an Essential Phone, and the same behavior is seen with the above main.dart file.

@gspencergoog
I have similar issue
Assertion failed: org-dartlang-app:///packages/flutter/src/gestures/mouse_tracking.dart:467:14
trackedAnnotations.contains(annotation)
is not true
Either the assertion indicates an error in the framework itself, or we should provide substantially more information in this error message to help you determine and fix the underlying cause.
In either case, please report this assertion by filing a bug on GitHub:
https://github.com/flutter/flutter/issues/new?template=BUG.md
When the exception was thrown, this was the stack:
package:dart-sdk/lib/internal/js_dev_runtime/private/ddc_runtime/errors.dart 196:49  throw
package:dart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/errors.dart 26:3    assertFailed
package:flutter/src/gestures/mouse_tracking.dart 467:52                               _dispatchDeviceCallbacks
package:flutter/src/gestures/mouse_tracking.dart 297:9
package:flutter/src/gestures/mouse_tracking.dart 416:26                               [_updateDevices]
...
Event: PointerHoverEvent#f30ce(position: Offset(205.7, 453.1), delta: Offset(10.7, -3.0), timeStamp: 0:00:29.136330, pointer: 0, kind: mouse, device: -1, down: false, pressure: 0.0, pressureMin: 0.0)
position: Offset(205.7, 453.1)

Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel dev, v1.13.6, on Mac OS X 10.14.5 18F203, locale en-IL)
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
[✓] Xcode - develop for iOS and macOS (Xcode 11.2.1)
[✓] Chrome - develop for the web
[✓] Android Studio (version 3.5)
[✓] Connected device (2 available)
• No issues found!

@KevinTheGray  do you still face this issue?


Width and Height of the LivestreamView looks weird

So the LivestreamView component doesn't take the whole screen for some reason

And after I start the stream the height changes to

Hello,
I guess you do have black lines because the view respects the camera aspect ratio (16/9) (and not your screen).
What video framing do you expect?

Pan and scan
Fit to view size (anamorphic)
Letterbox (what we have today)

However the size change seems to be an issue. Does it happen on Android or on iOS? Did you reproduce it with our example?
Best regards,
Thibault

I was hoping to fit the whole screen, I think it is Fit to view size. It happens on Android and yeah I reproduced it with the example and it is the same issue.
Thank you!

The fit to view will stretch or compress the camera preview. Are you sure you want this?
Anyway, we will rewrite this library in a near future. We will keep that in mind.

The preview has been changed since January -> Closing it for now.
If you still face the same issue, please reopen it.


Tumor_Sample_Barcode problem after merge several maf objects

Describe the issue
I am trying to use maftools to analyze some data. I already have two maf files and I could load them into R and analyze both. For each of them, the Tumor_Sample_Barcoad = __UNKNOWN__, and I would like to merge them together. By using these codes, I set their barcode differently:
<EMAIL_ADDRESS>= "del"
<EMAIL_ADDRESS>= "wt"
maf = maftools::merge_mafs( maf = c(del,wt), verbose = TRUE)

What I expected is a maf object with two samples (i.e., the barcode with del and wt); however, I got:
><EMAIL_ADDRESS>[1] __UNKNOWN__
Levels: __UNKNOWN__

which makes me extremely confused. I tried to save the two maf objects into maf files and merge them using cat:
save(del, file = "del.maf")
save(wt, file = "wt.maf")

and in terminal:
cat "del.maf" "wt.maf" > try.maf
However, it seems that I cannot save a maf object like this (as the file I got is unreadable). Is there any solution to this problem? Thanks a lot!
> sessionInfo()
R version 4.1.3 (2022-03-10)
Platform: x86_64-apple-darwin17.0 (64-bit)
Running under: macOS Monterey 12.3

Matrix products: default
LAPACK: /Library/Frameworks/R.framework/Versions/4.1/Resources/lib/libRlapack.dylib

locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base

other attached packages:
[1] maftools_2.10.05

loaded via a namespace (and not attached):
[1] compiler_4.1.3     Matrix_1.4-0       tools_4.1.3        RColorBrewer_1.1-2 survival_3.3-1
[6] splines_4.1.3      grid_4.1.3         data.table_1.14.2  lattice_0.20-45

@ScottKe-wisc Hi
Were you able to resolve the sample identifier issue?


No exported member 'TreeComponent'

I've recently updated my treeview component to 1.3.2 and I'm running into the follow error:

Error:(5, 10) TS2305: Module '"node_modules/angular2-tree-component/dist/angular2-tree-component"' has no exported member 'TreeComponent'.

import { TreeComponent, TreeNode } from 'angular2-tree-component';`

I tried changing this to TreeModule but wasn't sure that was correct, should the view child be a treeModule? That doesn't seem right?
@ViewChild('tree')
tree: TreeModule;

It also complains about treeModel not being a property of tree, which is a treeModal, which makes sense.
let node: TreeNode = this.tree.treeModel.getNodeById(this.page.parentId);

How should I reference the tree now?

+1, workaround is to open angular2-tree-component.d.ts in `node_modules/angular2-tree-component' and add the following line:
import { TreeComponent } from './components/tree.component';
and add TreeComponent to the export like this:
export { TreeModel, TreeNode, ITreeOptions, TREE_ACTIONS, KEYS, IActionMapping, IActionHandler, TreeComponent };

@ciesielskico Thank you, that gets around it for now!

PR #62 should fix this issue along with adding support for AoT compiled apps.

Yup, just waiting for @isaacplmann to comment on PR #62, once it's closed we can close this issue as well

I am still seeing this error, even after upgrading to v1.3.4 (ce2986dcb4ff7b83b75a8455d4ec7315c127c9f4)
TypeScript Error

no exported member 'TreeComponent'

├─┬<EMAIL_ADDRESS>│ └──<EMAIL_ADDRESS>
Should this be the case, or must #62 still be merged first?

It should be solved in 1.3.4 - checking....

Confirmed fixed in v1.3.5. Thank you!!

Awesome


Syntax error in wiki-example in "feature-overview"

The first dart-example on https://github.com/dart-lang/polymer-dart/wiki/feature-overview (element_name.dart) has a syntax-error in the first line: @HtmlImport('element_name.html'); should be @HtmlImport('element_name.html'), at least according to the dartlang-extension in atom and the dart2js-compiler (version 1.12.2)

thanks


Add support for File System operations in Ballerina

Purpose
Resolves #15157
Approach
Add new APIs to support file system operations in the ballerina/system module.
Samples
Not yet added
Remarks

Ballerina example for new APIs
Update Module.md in the system module

Check List

[x] Read the Contributing Guide
[ ] Required Balo version update
[ ] Updated Change Log
[ ] Checked Tooling Support (#)
[x] Added necessary tests

[x] Unit Tests
[ ] Spec Conformance Tests
[ ] Integration Tests
[ ] Ballerina By Example Tests

[ ] Increased Test Coverage
[ ] Added necessary documentation

[x] API documentation
[ ] Module documentation in Module.md files
[ ] Ballerina By Examples

Codecov Report

Merging #15262 into master will increase coverage by 0.14%.
The diff coverage is 70.53%.

@@             Coverage Diff              @@
##             master   #15262      +/-   ##
============================================
+ Coverage     23.24%   23.38%   +0.14%
- Complexity     5065     5100      +35
============================================
  Files          1342     1352      +10
  Lines         67457    67664     +207
  Branches       9193     9207      +14
============================================
+ Hits          15680    15826     +146
- Misses        50039    50093      +54
- Partials       1738     1745       +7

Impacted Files
Coverage Δ
Complexity Δ

...erinalang/stdlib/system/utils/SystemConstants.java
0% <0%> (ø)
0 <0> (?)

...allerinalang/stdlib/system/nativeimpl/TempDir.java
100% <100%> (ø)
2 <2> (?)

...ballerinalang/stdlib/system/nativeimpl/Exists.java
100% <100%> (ø)
2 <2> (?)

...lerinalang/stdlib/system/nativeimpl/CreateDir.java
45.83% <45.83%> (ø)
3 <3> (?)

...erinalang/stdlib/system/nativeimpl/CreateFile.java
52.38% <52.38%> (ø)
3 <3> (?)

...ballerinalang/stdlib/system/nativeimpl/Rename.java
57.89% <57.89%> (ø)
2 <2> (?)

...allerinalang/stdlib/system/nativeimpl/ReadDir.java
73.91% <73.91%> (ø)
6 <6> (?)

...ballerinalang/stdlib/system/nativeimpl/Remove.java
76.47% <76.47%> (ø)
5 <5> (?)

...rinalang/stdlib/system/nativeimpl/GetFileInfo.java
76.92% <76.92%> (ø)
4 <4> (?)

...ballerinalang/stdlib/system/utils/SystemUtils.java
73.33% <80%> (+33.33%)
5 <4> (+4)
:arrow_up:

... and 11 more

Continue to review full report at Codecov.

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


Unexpected address format generation

Context
In the latest version of Daedalus Flight which is using the following cardano-wallet revision: 563c28f05c1f38c9741277f480a8983d37b05a68 we see unexpected address format when generating new addresses in "Selfnode" builds:
37btjrVyb4KEZmAVJoprtUcjjjomg81ZGwbxXsFsGZwrwUdKyV6pNSSt6qFWmGcp5qXYEfm76hrcTVA7xEsLaEmmEiC24V5cQnh2EiyTa9azGFH7i5

Daedalus Selfnode genesis and config files: selfnode-config-and-genesis-files.zip
Screenshot

Information
-

Version
563c28f05c1f38c9741277f480a8983d37b05a68

Platform
All

Installation
From Source

Steps to Reproduce

Install Daedalus Flight Selfnode build: Windows, Linux, macOS
Create or restore Daedalus 12-word wallet using the UI
Navigate to "Receive" screen and use the "Generate address" feature to create a new address
Check the newly created address format

Expected behavior
Expected address format:
9XQrTpiaBYn8jSfmP9N3WxuFnrCTAY4R4BGeQPToSB1M58fAb8wp56opkjn94gFt5WB1YBWwfuQxFnUW73mMPH4kMSSZ217GFjkU

Actual behavior
Actual address format:
37btjrVyb4KEZmAVJoprtUcjjjomg81ZGwbxXsFsGZwrwUdKyV6pNSSt6qFWmGcp5qXYEfm76hrcTVA7xEsLaEmmEiC24V5cQnh2EiyTa9azGFH7i5

Resolution
Generated address format should match the expected one.

So. I just checked and ... both addresses are actually TESTNET addresses. But they have a different magic!
9XQrTpia... has 459045235 for magic, which is the magic that is set in the genesis file.
However,
37btjrVyb... has<PHONE_NUMBER> for magic, which is "default" testnet magic.
What worries me a lot here is that, I generated the 9XQrTpia... by hand, and manually specified the magic from the genesis here. But the 37b... addresses are generated based on the protocol magic inferred from the genesis file we receive as argument.
Here, we actually use functions from the consensus and ledger to extract the protocol magic from the genesis file, and that values is hard-coded nowhere in the source code of cardano-wallet.. So I am going to investigate this...

Thanks @KtorZ <3

Sorry. That's my bad... It's actually the opposite of what I just said. The 9XQr are using the<PHONE_NUMBER> magic :man_facepalming:  ... So, addresses generated are the right ones. But not the one I gave you in the generated genesis file.

No harm done @KtorZ - please send me the updated genesis file. Closing this issue now...


[protobuf] Support omit-unreachable-types

The OpenAPI3 emitter has the option omit-unreachable-types which can be used to not emit models that aren't connected to any operation's type graph. This can sometimes be useful when using models purely for composition (and when aliases of model expressions won't do). The protobuf emitter should support the same option.

To clarify, I think the behavior change here would be that we'd skip the @message decorator and the heuristic test for message inclusion with this option enabled. Right now, we emit a model as a message if it is:

referenced directly or indirectly by an operation
explicitly decorated with @Protobuf.message
declared in an @Protobuf.service namespace and has @Protobuf.field on its fields

So my expectation is that with the option proposed here set, we'd only check the first condition. That sound right?

I think it's only the 3rd one that would change with this option - if you explicitly say something should be a message we would emit it, but we wouldn't assume that every model with field on it should be emitted (it might just be spread around).


Create an initial OWNERS file.

This will hopefully help us spread the review, approve workload around.
Related to
kubeflow/community#10

This change is

also the file can be hierarchy, having subdirectory file overriding upper level one

Coverage increased (+0.1%) to 31.978% when pulling 5586fe35d8846be913ede08712c762cad2cc9547 on jlewi:owners into 0094aaa7ef501c0bc8b332edbe4a13781fe65a88 on kubeflow:master.

@Jimexist doesn't look like '@' should be used in usernames.
https://github.com/kubernetes/test-infra/blob/master/OWNERS
@Jimexist I agree it might make sense to have overrides in subdirectories (e.g. for the UI). But I thought we'd start simple.

I agree it might make sense to have overrides in subdirectories (e.g. for the UI). But I thought we'd start simple.

I can file an issue for it


Xcode 6.3 version doesn't compile

Hi
I am trying to run the Xcode version 6.3 for the code but it doesn't compile. IT raises lot of issues related to init and type methods.
I could resolve the type methods error but not init one. Can you help ?
-Randeep

Same issue here, thanks.

Same issue here, thanks.

why not support swift1.2

https://github.com/codestergit/SweetAlert-iOS/pull/9

I solved the issue and push requests to author https://github.com/MakeHui/SweetAlert-iOS

@MakeHui Thank you so much! It helps a lot.

Updated for Swift 2.0


Implement Get program journal(s) endpoint (Admin)

Description:
This issue involves implementing an API to get program journal(s). The endpoint should allow Admin to make a GET request to /api/admin/mentees/{{menteeId}}/journal.
{
    "journal": "www.medium-blog-number-1.com"
}

Tasks:

Create a controller for the /controllers/mentee endpoint in the backend (create the route mentee if not created).
Parse and validate the request body to ensure it matches the expected format.
Implement appropriate error handling and response status codes for different scenarios (e.g., validation errors, database errors).
Write unit tests to validate the functionality and correctness of the endpoint.

API documentation: https://documenter.getpostman.com/view/27421496/2s93m1a4ac#8744a3ee-970f-489a-853d-8b23fdee8de3
ER diagram: https://drive.google.com/file/d/11KMgdNu2mSAm0Ner8UsSPQpZJS8QNqYc/view
Acceptance Criteria:

The profile API endpoint /controllers/mentee is implemented via a GET request.
The request body is properly parsed and validated for the required format.
Appropriate error handling is implemented, providing meaningful error messages and correct response status codes.
Unit tests are written to validate the functionality and correctness of the endpoint.

Additional Information:
No
Related Dependencies or References:
No

@janithlahirukariyawasam, can you please explain this journal use case? I went through the ER and the API doc but couldn't find the use case.

@janithlahirukariyawasam, can you please explain this journal use case? I went through the ER and the API doc but couldn't find the use case.

@anjula-sack fyi

This requirement has changed


logger.log(level) Log level is not reflected ...

logger.log(level)  Log level is not reflected ...

Lgtm.

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


fix: minLength should not validate empty values

minLength should only validate the value when there is a value, so an empty string or array should not be validated with minLength, which will allow optional controls to function as expected.
This also aligns with Angular's minLength function (https://github.com/angular/angular/blob/bbeac0727b8f267a47aba1ff1bcfc8cc5ca15b61/packages/forms/src/validators.ts#L287)

Thanks for this PR. I'll gladly merge it as it is very much in line with the behavior of other validation functions. However, unfortunately this is a breaking change since people may depend on an error being returned from the minLength validation. Therefore I'll have to release this as a new major version.


.maintain/monitoring: Add an initial set of Prometheus alerting rules

Create a place to collaborate on Prometheus alerting rules for
Substrate starting with a basic set of rules covering:

Resource usage
Block production
Block finalization
Transaction queue
Networking
... Others

Not my work, I am only the person aggregating these.

Future steps:

More rules
Include validation via promtool in CI
Include Prometheus rule unit testing in CI
...
(Templating for e.g. metric names)

should really wrap those lines...


Move the search input below the title bar.

Additionally, make the search options hidden in default. Then, all repositories should be selected.

implementing


Feature Request: command line option for batch mode (don't wait for key press)

Nice tool! Exactly what I was looking for. Thanks!
I like to disable defender in my backup batch script and enable it after backup is finished. Would be nice if the windows of defender-control is not waiting for a key press. With a command line option like -b for batch mode or a complete silent mode -s without a window?
Both (-disable/-enable) in one .exe via command line would be great too, so I only have to set exceptions for one file.

Glad to see you like it!
Cool to see you make use of this program in a bash script, I will definitely take that into consideration for the next update to support arguments for a silent mode

hey ive been using the tool too! was wondering if theres a way as the guy above stated to have a silent mode?

#9 Added here


Check if _edit_set_position and _edit_set_rect was used outside an editor

Fixes #46018.
I wish there is a better way to handle this.

This should error out if not in the editor IMO.

Thanks!

Cherry-picked for 3.2.4.


Is it possible to install kube-vip in an air gapped network

I don't have direct access to docker.io, but I do have a nexus repo server on my network.
The nexus repo has a pull through docker proxy to docker.io and I also have a private hosted registry where I have re tagged and pushed the kube-vip image. Both of these repos are on http endpoints (not https)
I can't find a way to configure ctr and everything I have read has said that ctr ignores the config in /etc/containerd/confg.toml
How can I get ctr to either use the nexus pull through proxy or the private repository?

What is the command you used with 'ctr` ? Your issue doesn't apply to me, I always can pull images from a nexus registry.

Surely just specifying the full image path repo/org/image:tag should work in the manifests?

This sounds more like a containerd/cluster issue than Kube-VIP. If the docker proxy is https then you should be able to specify that in the manifest as mentioned above provided your cluster can connect to it. Non-encrypted is a different problem as there are more nuances to whether containerd will support that or not.
For my airgap deployments of Kube-VIP I use Zarf to handle the mutation of images to point to internal registries.

This is an old issue, please re-open if this needs continuation.


Why can't bindgen find libclang.dll?

Why can't bindgen find libclang.dll?
D:\3rdparty\reaper_extension_sdk\jmde>bindgen reaper_plugin_functions.h -o reaper.rs
thread 'main' panicked at 'Unable to find libclang: "the `libclang` shared libra
ry at D:\\Program Files\\LLVM\\bin\\libclang.dll could not be opened: %1 is not
a valid Win32 application. (os error 193)"', libcore\result.rs:945:5
stack backtrace:
   0: <unknown>
   1: <unknown>
   2: <unknown>
   3: <unknown>
   4: <unknown>
   5: <unknown>
   6: <unknown>
   7: <unknown>
   8: <unknown>
   9: <unknown>
  10: <unknown>
  11: <unknown>
  12: <unknown>
  13: <unknown>
  14: BaseThreadInitThunk
  15: RtlInitializeExceptionChain
  16: RtlInitializeExceptionChain

Btw, the file "D:\Program Files\LLVM\bin\libclang.dll" exists and has version <IP_ADDRESS>.
An earlier version of bindgen cli was working without problems on this system.

If this is a regression, could you please try different versions to figure out which regressed?
This should probably be reported upstream to the clang-sys crate, though looks like your DLL is borked in some way.

This may even be a regression in libloading itself I guess.

Thanks for the quick reply. I tried version 0.30.0 (cargo install -f --vers 0.30.0 bindgen, it seems to load libclang.dll but fails on C++ constructs.. Do I have to pass a flag to enable C++ support?
D:\3rdparty\reaper_extension_sdk\jmde>bindgen reaper_plugin_functions.h -o reaper.rs
./reaper_plugin.h:149:1: error: unknown type name 'class'
./reaper_plugin.h:149:26: error: expected ';' after top level declarator
./reaper_plugin.h:174:1: error: unknown type name 'class'
./reaper_plugin.h:174:21: error: expected ';' after top level declarator
./reaper_plugin.h:204:3: error: unknown type name 'MIDI_eventlist'
./reaper_plugin.h:248:3: error: unknown type name 'MIDI_eventlist'
./reaper_plugin.h:258:1: error: unknown type name 'class'
./reaper_plugin.h:258:17: error: expected ';' after top level declarator
./reaper_plugin.h:302:3: error: unknown type name 'bool'
./reaper_plugin.h:309:3: error: unknown type name 'PCM_source'
./reaper_plugin.h:375:3: error: unknown type name 'PCM_source'
./reaper_plugin.h:376:3: error: unknown type name 'PCM_source'
./reaper_plugin.h:389:1: error: unknown type name 'class'
./reaper_plugin.h:389:26: error: expected ';' after top level declarator
./reaper_plugin.h:439:3: error: unknown type name 'bool'
./reaper_plugin.h:449:1: error: unknown type name 'class'
./reaper_plugin.h:449:15: error: expected ';' after top level declarator
./reaper_plugin.h:490:3: error: unknown type name 'PCM_sink'
./reaper_plugin.h:490:91: error: unknown type name 'bool'
fatal error: too many errors emitted, stopping now [-ferror-limit=]
./reaper_plugin.h:149:1: error: unknown type name 'class', err: true
./reaper_plugin.h:149:26: error: expected ';' after top level declarator, err: t
rue
./reaper_plugin.h:174:1: error: unknown type name 'class', err: true
./reaper_plugin.h:174:21: error: expected ';' after top level declarator, err: t
rue
./reaper_plugin.h:204:3: error: unknown type name 'MIDI_eventlist', err: true
./reaper_plugin.h:248:3: error: unknown type name 'MIDI_eventlist', err: true
./reaper_plugin.h:258:1: error: unknown type name 'class', err: true
./reaper_plugin.h:258:17: error: expected ';' after top level declarator, err: t
rue
./reaper_plugin.h:302:3: error: unknown type name 'bool', err: true
./reaper_plugin.h:309:3: error: unknown type name 'PCM_source', err: true
./reaper_plugin.h:375:3: error: unknown type name 'PCM_source', err: true
./reaper_plugin.h:376:3: error: unknown type name 'PCM_source', err: true
./reaper_plugin.h:389:1: error: unknown type name 'class', err: true
./reaper_plugin.h:389:26: error: expected ';' after top level declarator, err: t
rue
./reaper_plugin.h:439:3: error: unknown type name 'bool', err: true
./reaper_plugin.h:449:1: error: unknown type name 'class', err: true
./reaper_plugin.h:449:15: error: expected ';' after top level declarator, err: t
rue
./reaper_plugin.h:490:3: error: unknown type name 'PCM_sink', err: true
./reaper_plugin.h:490:91: error: unknown type name 'bool', err: true
fatal error: too many errors emitted, stopping now [-ferror-limit=], err: true
thread 'main' panicked at 'Unable to generate bindings: ()', libcore\result.rs:9
45:5
stack backtrace:
   0: <unknown>
   1: <unknown>
   2: <unknown>
   3: <unknown>
   4: <unknown>
   5: <unknown>
   6: <unknown>
   7: <unknown>
   8: <unknown>
   9: <unknown>
  10: <unknown>
  11: <unknown>
  12: <unknown>
  13: <unknown>
  14: <unknown>
  15: <unknown>
  16: <unknown>
  17: BaseThreadInitThunk
  18: RtlUserThreadStart

Just tried with v0.33.0, it shows this:

I just encountered this at work. I know clang itself is installed, but every time I try to run bindgen it fails saying %1 is not a valid Win32 application.
C:\Users\mbryan> bindgen --version
thread 'main' panicked at 'Unable to find libclang: "the `libclang` shared library at C:\\Program Files (x86)\\LLVM\\bin\\libclang.dll could not be opened: %1 is not a valid Win32 application. (os error 193)"', libcore\result.rs:945:5
note: Run with `RUST_BACKTRACE=1` for a backtrace.
C:\Users\mbryan> clang --version
clang version 5.0.1 (tags/RELEASE_501/final)
Target: i686-pc-windows-msvc
Thread model: posix
InstalledDir: C:\Program Files (x86)\LLVM\bin

I tried re-running with RUST_BACKTRACE="full" but it's a release build without debug symbols available, so the backtrace is essentially useless.

So, the error comes from here:
https://github.com/KyleMayes/clang-sys/blob/e6948cb8e7d6d67d6eb409aa788699b401ef9585/src/link.rs#L122
I don't have a machine that reproduces the issue but if it worked before chances are that this is a libloading regression (cc @nagisa). Probably an issue should be filed there.

I just noticed that under clang --version it says Target: i686-pc-windows-msvc. It may be the case that I installed clang as a 32-bit program (the application I'm interfacing with is 32-bit) and then I've told rustup to target 64-bit during development.
I'm not sure whether this is actually the case, but when I'm back at work on Monday I'll check whether that DLL is 32-bit or 64-bit. It could be that the "%1 is not a valid Win32 application" error is a red herring or not the root cause, and the actual issue is you can't load the DLL because it's got a different wrong word size to the build script/bindgen program.
@Boscop, does any of this sound familiar?

But I didn't change the libclang.dll since bindgen worked, and the old bindgen was installed the same way so it must also have been 64 bit..
Is there a way I can cargo install the 32 bit version to test?

v0.23.0 of clang-sys has been released to address this issue.
The issue was indeed the selection of 32-bit DLLs for a 64-bit build (or vice-versa) and the fix was to skip DLLs for the incorrect architecture while searching for clang.dll / libclang.dll.


Please open your bug tracker

Do not merge this!
There's a problem with static compilation on F24:
CMakeFiles/nheqminer.dir/libstratum/StratumClient.cpp.o: In function `boost::asio::detail::resolver_service<boost::asio::ip::tcp>::resolve(std::shared_ptr<void>&, boost::asio::ip::basic_resolver_query<boost::asio::ip::tcp> const&, boost::system::error_code&)':
StratumClient.cpp:(.text._ZN5boost4asio6detail16resolver_serviceINS0_2ip3tcpEE7resolveERSt10shared_ptrIvERKNS3_20basic_resolver_queryIS4_EERNS_6system10error_codeE[_ZN5boost4asio6detail16resolver_serviceINS0_2ip3tcpEE7resolveERSt10shared_ptrIvERKNS3_20basic_resolver_queryIS4_EERNS_6system10error_codeE]+0xb1): warning: Using 'getaddrinfo' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/bin/ld: /usr/lib/gcc/x86_64-redhat-linux/6.2.1/libstdc++.a(eh_globals.o): undefined reference to symbol '__tls_get_addr@@GLIBC_2.3'
/usr/lib64/ld-linux-x86-64.so.2: error adding symbols: DSO missing from command line

Hi @kost. Thank you for your pull request. We will be pushing our Windows working branch and a work in progress Linux branch soon

#NOOOOOOOOOOOOOOOOOOO!
I am not kost and I explicitly said not to merge this!!!!
READ THE COMMENT!!!!!!!!!!

@Rudd-O well write as @kost if you are @kost :)... no worries master is at Windows branch it works good. Linux is work in progress.

Hello guys!
static compilation will always fail with new glibc (Debian/Ubuntu/Fedora/etc come with glibc by default). If you plan to statically compile, you need to use musl/uclibc based distro like Alpine. Take a look at my kost branch with instructions on how to do it under Alpine. Hope it helps!

On 10/31/2016 02:38 AM, kost wrote:

Hello guys!
static compilation will always fail with new glibc
(Debian/Ubuntu/Fedora/etc come with glibc by default). If you plan to
statically compile, you need to use musl/uclibc based distro like
Alpine. Take a look at my kost branch with instructions on how to do
it under Alpine. Hope it helps!

That's false — statically compiled programs are totally possible in
Debian, Ubuntu and Fedora, all one needs to do is install the
corresponding -static package and that's it.
Pliease fix the bug I reported above.
--
Rudd-O
http://rudd-o.com/


RFE: Vertical Fractions

@lights0123 1st of all, very cool tool!  I think it'd be amazing if it could be extended to optionally make vertical fractions, à la Wikipedia's sfrac template.  Is it possible with just Unicode?

My impression is that it's not currently possible with Unicode, but I could be wrong.

Yes that is correct, because this isn't Unicode, but rather rendered by Wikipedia's rendering tool. If you inspect (ctrl + shift + i), you can clearly see they're just a bunch of spans and divs.

Well, there isn't really such a thing yet:
https://www.google.com/search?q=unicode+fraction
https://en.wikipedia.org/wiki/Number_Forms


[staging-next] gnome: fix compilation with gcc 11.3.0

A new warning (-Werror=overlength-strings) is causing issues due to
a recent gcc version upgrade
Targetting: #171497
(Unbreaking)
Description of changes

Things done

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[x] Tested basic functionality of all binary files (usually in ./result/bin/)
22.05 Release Notes (or backporting 21.11 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module
[ ] (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes

[x] Fits CONTRIBUTING.md.

Sounds OK.