Create function for email text formating

Create function for email text formatting. Currently we use just format on python text which raises exception if in email body is variable unknown for the format. Therefore email is not send I think it is better to send untranslated variable in email as not send email at all.

so we want a tool to admin the email templates or just handle invalid format?

I was thinking to build a function in utils that will handle the whole email notification. In general we always have to check if setting is enabled, than collect the variables, format them and send the email, and check and log the exceptions. It seems that in this pattern for all emails several things are repeating.
My idea was to build a function that will do the email sending and handle all exceptions, and we will use this function for sending. eg. if mail is configured inappropriately if will fail here, if the format will wrong it will fail here, etc...
We should also update the admin area so admin is not allowed to store wrong email, but I would suggest that as a phase two ;) so it is not huge issue.

It seems interesting, I would like to take care about it

PR merged.


Apple.iPod13Update version 1.3

Here we go, reopening all stale pulls and fixing them.
Microsoft Reviewers: Open in CodeFlow

Automatic Validation ended with:

Installation failed with exit code -1978335226 2023-05-08
19:24:10.711 [CLI ] ShellExecute installer failed:<PHONE_NUMBER>

This package is failing to install correctly, and I'm having difficulty determining why.

Manifest Error: Duplicate field found in the manifest. [Publisher]

Merge?

Running interactive, it asks to reboot. It's the only guess I have.

Running interactive, it asks to reboot. It's the only guess I have.

Interactive only?

???

This is unexpected - WinGet fails due to an installer error, but the installer logged success to the Application Log:

Windows Installer installed the product. Product Name: iPod Software 1.3 Updater. Product Version: 1.3. Product Language: 1033. Manufacturer: Apple Computer, Inc.. Installation success or error status: 0.

This is unexpected - WinGet fails due to an installer error, but the installer logged success to the Application Log:

Windows Installer installed the product. Product Name: iPod Software 1.3 Updater. Product Version: 1.3. Product Language: 1033. Manufacturer: Apple Computer, Inc.. Installation success or error status: 0.

Re-running this, the installer appears to return 0 regardless of install outcome. The installer's silent installer switches don't result in a successful install.


I do not see update in time

Hi,
I use ClearCache in case of render props.
      <ClearCache>
        {({ isLatestVersion, emptyCacheStorage }) => (

            {!isLatestVersion && (

                UI update is available
                 {
                    e.preventDefault();
                    emptyCacheStorage();
                  }}
                >
                  Apply update

            )}

        )}
      </ClearCache>

And I see that meta.json does not request every 1 minute (or other duration period). So I can see update notice only if reload the app.
Can I  get notice without reloading the app?

I'm having similar problems; how does the value of isLatestVersion change? The duration was added as shown below.
<ClearCacheProvider duration={1000}>


Add tree sort icon

I already had an icon but Valentin beat me to it 😄. I leave it here just in case. It was the least I can do.

The state of the toggle is now saved to settings.


undefined symbol when importing module compiled with weave

I've been using scipy's weave to speed up some numerically-intensive routines. I have a problem importing an extension created through weave.
Specifically, while weave successfully imports (and runs) the module it has compiled I cannot import the module outside of weave. Importing from a python prompt results in "undefined symbol" error. The exact error message is pasted below.
I can fix the error by passing an extra library to the linker at compile time (in this case  gslcblas as the libraries arguments to weave.inline() ). However I wonder how weave is able to import the module without problems? I think this is related to a bigger performance issue I care about.
The python version I use in both cases is the same (the environment, as far as I can tell, is also exactly the same).
Thanks!
Importing the module from a Python prompt fails:
$ python2.7

import sc_e6d71e9b4074eed34d1cb1112482ee6212
Traceback (most recent call last):
File "", line 1, in
ImportError: /usr/lib64/libgsl.so.0: undefined symbol: cblas_ctrmv

Compilation log:
<weave: compiling>
running build_ext
running build_src
build_src
building extension "sc_e6d71e9b4074eed34d1cb1112482ee6213" sources
build_src: building npy-pkg config files
customize UnixCCompiler
customize UnixCCompiler using build_ext
customize UnixCCompiler
customize UnixCCompiler using build_ext
building 'sc_e6d71e9b4074eed34d1cb1112482ee6213' extension
compiling C++ sources
C compiler: g++ -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC
compile options: '-I/usr/local/python/2.7/scipy-mkl/0.14.0/lib64/python2.7/site-packages/scipy/weave -I/usr/local/python/2.7/scipy-mkl/0.14.0/lib64/python2.7/site-packages/scipy/weave/scxx -I/usr/local/python/2.7/numpy-mkl/1.8.1/lib64/python2.7/site-packages/numpy/core/include -I/usr/include/python2.7 -c'
extra options: '-march=native -fopenmp -O3 -lpthread'
g++: .cache/scipy/python27_compiled/sc_e6d71e9b4074eed34d1cb1112482ee6213.cpp
In file included from /usr/local/python/2.7/numpy-mkl/1.8.1/lib64/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1761:0,
from /usr/local/python/2.7/numpy-mkl/1.8.1/lib64/python2.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:17,
from /usr/local/python/2.7/numpy-mkl/1.8.1/lib64/python2.7/site-packages/numpy/core/include/numpy/arrayobject.h:4,
from .cache/scipy/python27_compiled/sc_e6d71e9b4074eed34d1cb1112482ee6213.cpp:22:
/usr/local/python/2.7/numpy-mkl/1.8.1/lib64/python2.7/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:15:2: warning: #warning "Using deprecated NumPy API, disable it by " "#defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]
g++: /usr/local/python/2.7/scipy-mkl/0.14.0/lib64/python2.7/site-packages/scipy/weave/scxx/weave_imp.cpp
g++ -pthread -shared /tmp/scipy-lcharlin-TBGEf5/python27_intermediate/compiler_fd2a2fbe93416fc0ff84072f09de2daf/.cache/scipy/python27_compiled/sc_e6d71e9b4074eed34d1cb1112482ee6213.o /tmp/scipy-lcharlin-TBGEf5/python27_intermediate/compiler_fd2a2fbe93416fc0ff84072f09de2daf/usr/local/python/2.7/scipy-mkl/0.14.0/lib64/python2.7/site-packages/scipy/weave/scxx/weave_imp.o -L/usr/lib64 -lgomp -lgsl -lpython2.7 -o .cache/scipy/python27_compiled/sc_e6d71e9b4074eed34d1cb1112482ee6213.so

Not sure. The compile part of inline is quite complex, but the import at the end is simple:
    sys.path.insert(0,storage_dir)
    exec('import ' + module_name)
    func = eval(module_name+'.compiled_func')

Closing since weave is no longer a part of SciPy. This issue is now tracked at https://github.com/scipy/weave/issues/7.


searsh for movies/tv-shows dont work

hello,
The search function in movie/tv-shows menu doesn't work after updated to 0.0.63.

Log file? Information?

kodi.log
Hello I´ve uploaded you the log file & searched for Arrow in Elementum

Yes  , I dont get any results in the search directory (tv shows & movies)
I just tried to downgrade to 0.0.62 and there it works good, without any problem...

same problem

@Mohze  bug will be fixed in the next version of plugin.

@Mohze + @salashnik
Are you on kodi 18 (beta/rc) by any chance? Because most addons that have a search function "broke" on kodi 18.
And that is the only reason I have not upgraded to kodi 18 rc1 yet, although my hand is "itching" me to do it :P

Please, try v0.0.64.

Any feedback? @Mohze , @salashnik ?

Does my feedback count? No problems with search here, plain and simple.
Kodi 18rc1, debian testing x64 and elementum 0.0.65. Only one provider though...

I was experiencing this problem just like Mohze described and it now works for me using 0.0.65.
Thanks @elgatito

Hello @elgatito really Good work by you, It works good ! :D

You can close the case !!!!!

thanks a lot!!


[Bug] Hidden nodes generating templating

In our design system, we have lots of different configurations of items, and designers sometimes often hide layers in certain variants where that configuration is not applicable. Should the templating system take into effect whether nodes are not visible before generating markup for those hidden nodes?

just to clarify, this would only happen when rendering children, so the bug is to not render figma.children if they are invisible? that feels like a good default to me. and ill mark this as a bug. should be a one liner

@jake-figma yep that’s exactly what I meant and what I was thinking!
It’s Eric from Expedia by the way 👋

@jake-figma I forked and started working on a PR and found something interesting that leads me to believe that there might be a Dev Mode bug.

In Design Mode, nodes can be hidden, and show in the Developer API as node.visible="false".
In Dev Mode, visually the design looks the same, but the node always shows in the left panel of nodes.
In Dev Mode, if I get node.visible for a node that's hidden in the design, it's always true.

I would expect that a hidden node doesn't even make it into Dev Mode, because the designer's intent is basically that it doesn't exist at all for dev.
Did I find a legit bug? I brought this up on the Friends of Figma Discord and also asked on our Slack channel that TJ, James, and Connor are a part of.

@ericandrewscott unsure what youre running into but im not able to reproduce what youre saying. and the fix i pushed for this bug works. invisible nodes are invisible in the plugin api in dev mode, though they are shown in the sidebar. If you try and click them in the sidebar they select the parent. Its a good thought that we should indicate they are hidden similarly to how they are in design mode. if youre still getting this, you should follow up in the slack with the team.

Yeah I made a screen recording, and then I noticed that it's selecting the parent. I also was going to add them to the Node Params frame, but it totally makes sense that it bubbles to the parent, and that's not necessarily helpful information since clicking them in the sidebar actually selects the parent. Thanks for updating the plugin!


[App] Users stays marked

After buying a product, in the list of users, the last users stays marked.
Tested on Android.

Fixed in 861e8b3


onEnter problem of use

Hi,
I don't know if I am against any repo rule, I hope not so I try anyway.
I am trying to use the onEnter property in the Scene. What I am trying to do is to check if an user is authenticated per Scene, if not redirect to Login page.
I am doing something like this, in the App.js component:
class App ..... {
    isLogged(isAuth) {
        if (isAuth) {
            Actions.Login();
        }
     };

     render() {
         .......
         return (
             <Provider store={store}>
             <PersistGate loading={null} persistor={persistor}>
             <Router>
                 <Scene key="root">
                     <Scene
                         key="Login"
                         component={Login}
                         gesturesEnabled={false}
                         hideNavBar
                      />
                     <Scene
                         key="Home"
                         component={Home}
                         gesturesEnabled={false}
                         hideNavBar
                         onEnter={this.isLogged(isAuth)}
                      />
                </Scene>
         </Router>
         </PersistGate>
         </Provider>
      );
    }
}

Unfortunately when I execute this code, I get back this error:
TypeError: _reactNativeRouterFlux.Actions.Login is not a function
Any help on this would be more than welcome.
Version

react-native-router-flux v4.0.0-beta.28
react-native v0.55.2

I don't know if this will solve your problem. onEnter needs a function reference, while you gave it this.isLogged(isAuth) which resolves to undefined (which is not a function).
Try this: onEnter={() => this.isLogged(isAuth)}. Note, it is unclear what isAuth is or if it's even in scope.


Audio is out of sync.

Bug report
Your Environment

Netflix add-on version: 0.15.7 (issue since 0.15.6)
Operating system version/name: LibreElec 9.1.501 (9.2 beta)
Device model:  Raspberry Pi 3b+
Used Operating system:

[ ] Raspberry-Pi / LibreElec

Describe the bug
The audio is heavily out of sync. 2-3 Seconds. Setting the resolution to lower (576p) or disabling DD+ or other fancy audio codecs didn't help.

Expected behavior
Audio should be in sync.
Actual behavior
Audio is not in sync.
Steps to reproduce the behavior

Play any video
Wait 30 seconds before audio is out of sync
Pause video, it continues playing without sound
Start again, will be out of sync after that duration.

Possible fix
I don't know what could cause the issue.

Debug log
The debug log can be found on my own server. I enabled Enhanced debugging due to the video related issues.
Check out the following 25k lines:
Edit: Nope, crashed my Etherpad.
Edit 2: a base64 paste of my .tar.xzipped log? Can it be more complicated? Nevermind here it is.
https://server.giessmann.net/pad/p/YsxCBFdBpUwxt0HYUpUR
I uploaded the log to Firefox Send, zipped.
https://send.firefox.com/download/004c4e191c5ee365/#1oOY5D2TQQsdmZbXixyCYQ
Additional context or screenshots (if appropriate)
Installation
Using the CastagnaIT repository.
Other information

Screenshots

The problem not depend from netflix addon,
netflix addon provide only the link to be played to kodi...
you have to ask for help in the kodi forum

The issue does not persist in other streaming applications like Sky Go
which also use WideVine / InputStreamer, for your information. Nevertheless
I will inform the Kodi devs.
Thank you :)
Stefano Gottardo<EMAIL_ADDRESS>schrieb am Sa. 26. Okt. 2019 um
23:16:

The problem not depend from netflix addon,
netflix addon provide only the link to be played to kodi...
you have to ask for help in the kodi forum
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/CastagnaIT/plugin.video.netflix/issues/273?email_source=notifications&email_token=ACULT5GKV4NKCUJLKA7NYDDQQSXUHA5CNFSM4JFOVOJKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOECKRCLQ#issuecomment-546640174,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ACULT5FQ5PMSAUIF7Y7PZ5DQQSXUHANCNFSM4JFOVOJA
.

--
With best regards,
Felix Gießmann
+49<PHONE_NUMBER>3
<EMAIL_ADDRESS>

Did you have Sync playback to display active? If you have, disable it.
gesendet mobil
felixg3<EMAIL_ADDRESS>schrieb am So., 27. Okt. 2019, 00:00:

The issue does not persist in other streaming applications like Sky Go
which also use WideVine / InputStreamer, for your information. Nevertheless
I will inform the Kodi devs.
Thank you :)
Stefano Gottardo<EMAIL_ADDRESS>schrieb am Sa. 26. Okt. 2019
um
23:16:

The problem not depend from netflix addon,
netflix addon provide only the link to be played to kodi...
you have to ask for help in the kodi forum
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<
https://github.com/CastagnaIT/plugin.video.netflix/issues/273?email_source=notifications&email_token=ACULT5GKV4NKCUJLKA7NYDDQQSXUHA5CNFSM4JFOVOJKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOECKRCLQ#issuecomment-546640174
,
or unsubscribe
<
https://github.com/notifications/unsubscribe-auth/ACULT5FQ5PMSAUIF7Y7PZ5DQQSXUHANCNFSM4JFOVOJA
.

--
With best regards,
Felix Gießmann
+49<PHONE_NUMBER>3
<EMAIL_ADDRESS>—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/CastagnaIT/plugin.video.netflix/issues/273?email_source=notifications&email_token=AIYSCG7EMCNFXLNNUV6GQIDQQS4XNA5CNFSM4JFOVOJKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOECKRYKQ#issuecomment-546642986,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AIYSCG7YL27OKCELP4F5T7TQQS4XNANCNFSM4JFOVOJA
.

Oh I notice you are running a pi. Then it should be active.
gesendet mobil
Joerg<EMAIL_ADDRESS>schrieb am So., 27. Okt. 2019, 00:10:

Did you have Sync playback to display active? If you have, disable it.
gesendet mobil
felixg3<EMAIL_ADDRESS>schrieb am So., 27. Okt. 2019, 00:00:

The issue does not persist in other streaming applications like Sky Go
which also use WideVine / InputStreamer, for your information.
Nevertheless
I will inform the Kodi devs.
Thank you :)
Stefano Gottardo<EMAIL_ADDRESS>schrieb am Sa. 26. Okt. 2019
um
23:16:

The problem not depend from netflix addon,
netflix addon provide only the link to be played to kodi...
you have to ask for help in the kodi forum
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<
https://github.com/CastagnaIT/plugin.video.netflix/issues/273?email_source=notifications&email_token=ACULT5GKV4NKCUJLKA7NYDDQQSXUHA5CNFSM4JFOVOJKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOECKRCLQ#issuecomment-546640174
,
or unsubscribe
<
https://github.com/notifications/unsubscribe-auth/ACULT5FQ5PMSAUIF7Y7PZ5DQQSXUHANCNFSM4JFOVOJA
.

--
With best regards,
Felix Gießmann
+49<PHONE_NUMBER>3
<EMAIL_ADDRESS>—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/CastagnaIT/plugin.video.netflix/issues/273?email_source=notifications&email_token=AIYSCG7EMCNFXLNNUV6GQIDQQS4XNA5CNFSM4JFOVOJKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOECKRYKQ#issuecomment-546642986,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AIYSCG7YL27OKCELP4F5T7TQQS4XNANCNFSM4JFOVOJA
.


Multi-GPU error, ggml-cuda.cu:7036: invalid argument

I used llama-cpp-python with Langchain. I got an error when I tried to run the example code from Langchain doc.
I installed:
CMAKE_ARGS="-DLLAMA_CUBLAS=on -DCMAKE_CUDA_FLAGS='-DGGML_CUDA_FORCE_CUSTOM_MEMORY_POOL'" FORCE_CMAKE=1 pip install --upgrade --force-reinstall llama-cpp-python --no-cache-dir
and I also upgraded Langchain to 0.0.330
Then, I runned the following example code from Langchain doc:
from langchain.llms import LlamaCpp
from langchain.prompts import PromptTemplate
from langchain.chains import LLMChain
from langchain.callbacks.manager import CallbackManager
from langchain.callbacks.streaming_stdout import StreamingStdOutCallbackHandler

template = """Question: {question}

Answer: Let's work this out in a step by step way to be sure we have the right answer."""

prompt = PromptTemplate(template=template, input_variables=["question"])

# Callbacks support token-wise streaming
callback_manager = CallbackManager([StreamingStdOutCallbackHandler()])

n_gpu_layers = 32  # Change this value based on your model and your GPU VRAM pool.
n_batch = 4  # Should be between 1 and n_ctx, consider the amount of VRAM in your GPU.

# Make sure the model path is correct for your system!
llm = LlamaCpp(
    model_path="/home/xxxx/llama-2-7b-chat.Q4_K_M.gguf",
    n_gpu_layers=n_gpu_layers,
    n_batch=n_batch,
    callback_manager=callback_manager,
    verbose=True,  # Verbose is required to pass to the callback manager
)

llm_chain = LLMChain(prompt=prompt, llm=llm)
question = "What NFL team won the Super Bowl in the year Justin Bieber was born?"
llm_chain.run(question)

here are the output:

ggml_init_cublas: GGML_CUDA_FORCE_MMQ: no
ggml_init_cublas: CUDA_USE_TENSOR_CORES: yes
ggml_init_cublas: found 2 CUDA devices:
Device 0: NVIDIA GeForce RTX 3060, compute capability 8.6
Device 1: NVIDIA GeForce GTX 1080 Ti, compute capability 6.1
...
llm_load_tensors: ggml ctx size = 0.11 MB
llm_load_tensors: using CUDA for GPU acceleration
ggml_cuda_set_main_device: using device 0 (NVIDIA GeForce RTX 3060) as main device
llm_load_tensors: mem required = 172.97 MB
llm_load_tensors: offloading 32 repeating layers to GPU
llm_load_tensors: offloaded 32/35 layers to GPU
llm_load_tensors: VRAM used: 3718.38 MB
..................................................................................................
llama_new_context_with_model: n_ctx = 512
llama_new_context_with_model: freq_base = 10000.0
llama_new_context_with_model: freq_scale = 1
llama_new_context_with_model: kv self size = 256.00 MB
llama_build_graph: non-view tensors processed: 740/740
llama_new_context_with_model: compute buffer total size = 7.18 MB
llama_new_context_with_model: VRAM scratch buffer: 0.55 MB
llama_new_context_with_model: total VRAM used: 3718.93 MB (model: 3718.38 MB, context: 0.55 MB)
CUDA error 1 at /tmp/pip-install-2o911nrr/llama-cpp-python_7b2f2508c89b451280d9116461f3c9cf/vendor/llama.cpp/ggml-cuda.cu:7036: invalid argument
current device: 1

I have two different cards that work well with the compiled llama.cpp. But I encountered an error while using llama-cpp-python. :(
The same issue has been resolved in llama.cpp, but don't know if llama.cpp propagates to llama-cpp-python in time.

Physical (or virtual) hardware you are using, e.g. for Linux:

Intel(R) Core(TM) i7-8700K CPU @ 3.70GHz
Device 0: NVIDIA GeForce RTX 3060
Device 1: NVIDIA GeForce GTX 1080 Ti

Operating System, e.g. for Linux:

Linux localhost.localdomain 3.10.0-1160.90.1.el7.x86_64

SDK version, e.g. for Linux:

Python 3.9.16
GNU Make 4.2.1
g++ (GCC) 11.2.0

Facing the same issue, need to export CUDA_VISIBLE_DEVICE=0 to use only single gpu.

Still same issue


type 'List<Widget?>' is not a subtype of type 'List' in type cast

Hi, i'm testing with the example in the documentation but I'm getting error.

hello @jordanjanaq did you get any solutiion?

Hi, i used a pull request. In the pubspec.yaml, i change for this:
  flutter_inner_drawer:     git:       url: https://github.com/kenjishiromajp/flutter_inner_drawer       ref: kenjishiromajp-update-for-2.12-null-safety-casting

Hi, i used a pull request. In the pubspec.yaml, i change for this:
 flutter_inner_drawer: git: url: https://github.com/kenjishiromajp/flutter_inner_drawer ref: kenjishiromajp-update-for-2.12-null-safety-casting

This worked for me.

thx, solution worked like a charm.

I've encountered this issue.
And, this solution is worked for me.
I wish this change are applied to this repo as soon as possible.

The issue is coming from
https://github.com/Dn-a/flutter_inner_drawer/blob/9dbe02e648dd9db8ec018a0ce4b1ca3839cbc0b3/lib/inner_drawer.dart#L435-L437
children doesn't accept any nullable widget.
Also _trigger(..) method returning nullable widget
https://github.com/Dn-a/flutter_inner_drawer/blob/9dbe02e648dd9db8ec018a0ce4b1ca3839cbc0b3/lib/inner_drawer.dart#L544-L563
And It is being used on
https://github.com/Dn-a/flutter_inner_drawer/blob/9dbe02e648dd9db8ec018a0ce4b1ca3839cbc0b3/lib/inner_drawer.dart#L600-L620
While the  children can't be null anymore, we can remove or replace _trigger() widget when it returns null.


Add scipy to requirements (e.g. used by CEMNet)

Will not merge directly, instead created an optional requirements file https://github.com/victorca25/BasicSR/blob/master/optional_requirements.txt and moved the imports that do not impede regular training there. Also now optional requirements are mentioned in the main readme: https://github.com/victorca25/BasicSR#optional-dependencies


If the method name is 'getValue'  and the return type is a '@FreeBuilder' interface type,the Autogenerated code has error.

environment
eclipse Mars.1 Release (4.5.1)
freebuilder-1.2-rc1.jar
jdk1.8
example
@FreeBuilder
public interface Value {
	class Builder extends Value_Builder{}
}

@FreeBuilder
public interface Person {

	Value getValue();

	class Builder extends Person_Builder{
		public static Builder of(){
			return new Builder();
		}

		public static Builder of(Person metadata){
			return new Builder().mergeFrom(metadata);
		}

		public static Builder of(Builder builder){
			return new Builder().mergeFrom(builder);
		}

	}
}

Person_Builder  can't be compiled.
Reason
The reason is the variable value is ambiguous. as show below.
the Autogenerated method mergeFrom

  /**
   * Sets all property values using the given {@code Person} as a template.
   */
  public Person.Builder mergeFrom(Person value) {
    value.mergeFrom(value.getValue());
    return (Person.Builder) this;
  }

Ooooh, evil! Thanks :)

The sad thing is that it's now almost 30 years that the concept of hygienic macros has been known (according to the Wikipedia page).
Maybe your next project?

We're stymied a bit here because method parameter names are part of the JavaDoc, so we can't just obfuscate them.

And don't forget, we also want readable generated code, so all names must be as clear as possible.

You can pick this fix up in v1.0.2. Thanks for the report!


Use custom buildpack to build Stratos UI

I tested the DB migration, it appears to have failed to attach the Postgres Instance I created on SAP.
I did the following:

Created a Postgres service instance and bound it to the app.
I added the following to my manifest.yaml

services:
- postgresInstance

Re-pushed the app
When it came up, I see the following environment variables:

{
	"VCAP_SERVICES": {
		"postgresql": [
			{
				"credentials": {
					"hostname": "<IP_ADDRESS>",
					"ports": {
						"5432/tcp": "53933"
					},
					"port": "53933",
					"username": "Gf5HyIU3Le95Eyly",
					"password": "B7vbRK-qK2az8mUA",
					"dbname": "CXzHsOE38o98Zan4",
					"uri": "postgres://Gf5HyIU3Le95Eyly:B7vbRK-qK2az8mUA@<IP_ADDRESS>:53933/CXzHsOE38o98Zan4"
				},
				"syslog_drain_url": null,
				"volume_mounts": [],
				"label": "postgresql",
				"provider": null,
				"plan": "v9.4-dev",
				"name": "postgresInstance",
				"tags": [
					"postgresql",
					"relational"
				]
			}
		]
	}
}
{
	"VCAP_APPLICATION": {
		"cf_api": "https://api.cf.eu10.hana.ondemand.com",
		"limits": {
			"fds": 16384,
			"mem": 256,
			"disk": 256
		},
		"application_name": "console",
		"application_uris": [
			"myconsole.cfapps.eu10.hana.ondemand.com"
		],
		"name": "console",
		"space_name": "dev",
		"space_id": "aa0be4b2-aa0f-41f3-8085-1c937c6e0fda",
		"uris": [
			"myconsole.cfapps.eu10.hana.ondemand.com"
		],
		"users": null,
		"application_id": "de5135c4-76e4-415d-8b1b-9dcd9c283cac",
		"version": "0764e2b7-e93f-4455-bf0d-92ed03dad438",
		"application_version": "0764e2b7-e93f-4455-bf0d-92ed03dad438"
	}
}

However in the logs, it appears that the  backend started with SQLlite.
 2017-10-09T09:10:47.43+0100 [APP/PROC/WEB/0] OUT INFO[Mon Oct  9 08:10:47 UTC 2017] Initialization started.
   2017-10-09T09:10:47.43+0100 [APP/PROC/WEB/0] OUT INFO[Mon Oct  9 08:10:47 UTC 2017] HTTP client initialized.
   2017-10-09T09:10:47.43+0100 [APP/PROC/WEB/0] OUT INFO[Mon Oct  9 08:10:47 UTC 2017] Loaded configuration from file: ./config.properties
   2017-10-09T09:10:47.43+0100 [APP/PROC/WEB/0] OUT INFO[Mon Oct  9 08:10:47 UTC 2017] NewDatabaseConnectionParametersFromConfig
   2017-10-09T09:10:47.92+0100 [APP/PROC/WEB/0] OUT INFO[Mon Oct  9 08:10:47 UTC 2017] Loaded plugin: {LibraryPath:cf-app-ssh.so PluginPath:cf-app-ssh PluginName:cf-app-ssh}
   2017-10-09T09:10:47.97+0100 [APP/PROC/WEB/0] OUT INFO[Mon Oct  9 08:10:47 UTC 2017] Using Cloud Foundry API URL: https://api.cf.eu10.hana.ondemand.com
   2017-10-09T09:10:48.03+0100 [APP/PROC/WEB/0] OUT INFO[Mon Oct  9 08:10:48 UTC 2017] Cloud Foundry UAA is: https://login.cf.eu10.hana.ondemand.com
   2017-10-09T09:10:48.05+0100 [APP/PROC/WEB/0] OUT INFO[Mon Oct  9 08:10:48 UTC 2017] Find
   2017-10-09T09:10:48.05+0100 [APP/PROC/WEB/0] OUT INFO[Mon Oct  9 08:10:48 UTC 2017] Auto-registering endpoint for Cloud Foundry API
   2017-10-09T09:10:47.97+0100 [APP/PROC/WEB/0] OUT INFO[Mon Oct  9 08:10:47 UTC 2017] Loaded plugin: {LibraryPath:user-info.so PluginPath:user-info PluginName:user-info}
   2017-10-09T09:10:47.97+0100 [APP/PROC/WEB/0] OUT INFO[Mon Oct  9 08:10:47 UTC 2017] Detected that Console is deployed as a Cloud Foundry Application
   2017-10-09T09:10:48.06+0100 [APP/PROC/WEB/0] OUT INFO[Mon Oct  9 08:10:48 UTC 2017] All done for Cloud Foundry deployment
   2017-10-09T09:10:47.86+0100 [APP/PROC/WEB/0] OUT INFO[Mon Oct  9 08:10:47 UTC 2017] Proxy database connection pool created.
   2017-10-09T09:10:47.86+0100 [APP/PROC/WEB/0] OUT INFO[Mon Oct  9 08:10:47 UTC 2017] Created database schema for SQLite database
   2017-10-09T09:10:47.86+0100 [APP/PROC/WEB/0] OUT INFO[Mon Oct  9 08:10:47 UTC 2017] Database appears to now be available.
   2017-10-09T09:10:47.86+0100 [APP/PROC/WEB/0] OUT INFO[Mon Oct  9 08:10:47 UTC 2017] Creating SQLite session store

After following instructions, I'm seeing the following exception:

LGTM
I've not tested this against a mysql service


release: v0.19.0

Coming here from https://github.com/census-ecosystem/opencensus-go-exporter-ocagent/issues/38
we recently imported the new resource package into ocagent-go-exporter but unfortunately a v0.19.0 release hasn't yet been made here hence we can't update our Go modules.
/cc @bogdandrutu @rakyll

Also cc @rghetia for Go releases.

hence we can't update our Go modules.

Note that you can request pre-release versions explicitly: go get go.opencensus.io@master currently resolves to a pseudo-version starting with v0.18.1-0..


[BUG] svclb: can't create /proc/sys/net/ipv4/ip_forward: Read-only file system

Hi!
What did you do?
I'm testing a new Linkerd feature (multi-cluster) in k3d v3.0.0-beta.1. I'm not 100% sure that this is even feasible, but I've noticed something odd in the svclb logs:
#; velouria ~/b/multi
:; kubectl --context=k3d-multi1 logs -n linkerd-gateway svclb-linkerd-gateway-nwvgj lb-port-4180
+ trap exit TERM INT
/usr/bin/entry: line 6: can't create /proc/sys/net/ipv4/ip_forward: Read-only file system
+ echo 1
+ true
+ cat /proc/sys/net/ipv4/ip_forward
+ '[' 1 '!=' 1 ]
+ iptables -t nat -I PREROUTING '!' -s <IP_ADDRESS>/32 -p TCP --dport 4180 -j DNAT --to <IP_ADDRESS>:4180
+ iptables -t nat -I POSTROUTING -d <IP_ADDRESS>/32 -p TCP -j MASQUERADE
+ '[' '!' -e /pause ]
+ mkfifo /pause

The line
/usr/bin/entry: line 6: can't create /proc/sys/net/ipv4/ip_forward: Read-only file system

makes me concerned that perhaps the svclb isn't working properly?
This gist provides a script that can create an environment to reproduce this... Let me briefly summarize how this works:

We create two k3d clusters (multi{0,1}), each with a Linkerd control plane (and a common CA).
We install a linkerd-gateway component into the multi1 cluster. This component is supposed to terminate TLS from the multi0 cluster and forward requests within the multi1 cluster.
We then grab a service account from multi1 and install into the multi0 linkerd-service-mirror namespace so that the service mirror component can discover services in multi1. It also probes the gateway to ensure that the services are live.
These probes fail with a 403. At a glance it looks like TLS may be stripped? Or we may not end up hitting the right endpoint? I'm not really sure yet... kinda grasping at straws.

So, I'm mostly trying to rule out whether this error message could potentially be a problem or misconfiguration before I spend more time debugging our setup.
Which OS & Architecture?
:; uname -a
Linux velouria 5.4.0-7626-generic #30~1588169883~20.04~bbe668a-Ubuntu SMP Wed Apr 29 21:00:02 UTC  x86_64 x86_64 x86_64 GNU/Linux

Which version of k3d?
:; k3d version
k3d version v3.0.0-beta.1

Which version of docker?
:; docker version
Client: Docker Engine - Community
 Version:           19.03.8
 API version:       1.40
 Go version:        go1.12.17
 Git commit:        afacb8b7f0
 Built:             Wed Mar 11 01:25:55 2020
 OS/Arch:           linux/amd64
 Experimental:      true

Server: Docker Engine - Community
 Engine:
  Version:          19.03.8
  API version:      1.40 (minimum version 1.12)
  Go version:       go1.12.17
  Git commit:       afacb8b7f0
  Built:            Wed Mar 11 01:24:26 2020
  OS/Arch:          linux/amd64
  Experimental:     true
 containerd:
  Version:          1.2.13
  GitCommit:        7ad184331fa3e55e52b890ea95e65ba581ae3429
 runc:
  Version:          1.0.0-rc10
  GitCommit:        dc9208a3303feef5b3839f4323d9beb36df0a9dd
 docker-init:
  Version:          0.18.0
  GitCommit:        fec3683

I just found the source for klipper-lb and I see that this error message is, indeed, innocuous. Perhaps consider silencing stderr?

Hi @olix0r, thanks for opening this issue and doing the research :+1:
I'm not sure, if silencing stderr here would be a good idea, but that'd also be in rancher/k3s' scope.

@olix0r were you able to make it work at some point ?

@cscetbon I forget the exact problem we were hitting but I believe it was a misconfiguration on my side. This repo includes a set of scripts/manifests we use to test communication between k3d clusters.

Thank you @olix0r definitely what I was looking for. I was looking at Linkerd 2 and Istio. I'll give it a try, thanks !


Rename PostCSS to PostCSSPlugin

So that it's consistent with other plugins. Docs also use the name PostCSSPlugin.

I am not sure we can merge it. There might be people using it already. We need to move it a major release.

Should have broken the build as index.ts wasn't changed https://github.com/fuse-box/fuse-box/blob/0c4b1c322ca3aa2ad7019b2e77f813e8f9afb81e/src/index.ts#L8

if there will be a major version update should probably rename all the other plugins as well https://github.com/fuse-box/fuse-box/blob/0c4b1c322ca3aa2ad7019b2e77f813e8f9afb81e/src/index.ts#L1-L22 :rose:

Cool! Thanks!
Closing this for now.


Update README.md

Hey @isharadilshan, thank you for creating this pull request! Have a wonderful day...


How can I track currentRoute in DrawerNavigator using contentComponent

Right now I'm using redux to update the currentRoute in my global reducer and then checking it against the route name when I loop through this.props.navigation.state.routes. Am I missing an easy way to determine the current route so I can use activeBackgroundColor? Also, how can I access activeBackgroundColor when I use contentComponent?

https://github.com/react-community/react-navigation/blob/master/src/views/Drawer/DrawerNavigatorItems.js


[CONTROLLER/RECORDER] fix event put panic

This PR is for:

Server

Fixes event put panic
Steps to reproduce the bug
Changes to fix the bug

record put event log before put action

Affected branches

main

Checklist

[ ] Added unit test to verify the fix.

 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.zhengya seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.You have signed the CLA already but the status is still pending? Let us recheck it.


third PR adewale

- Table format not showing correctly. Can you correct it?

I have just edited it again. Kindly check if I have done the right thing.

@johnjacobkenny are those hyphens not mandatory in table format, because those are removed?

@johnjacobkenny are those hyphens not mandatory in table format, because those are removed?

Ohh I'm not sure, but I missed that! Thanks for catching it!

The issue is to display table we need the middle part like:
| Name       | Description |
| ---------- | ----------- |
| A | B |

This looks like:

Name
Description

A
B

But in your commit you have deleted the middle part | ---------- | ----------- | like:
| Name       | Description |
| A | B |

Due to which it looks now like:
| Name       | Description |
| A | B |

So, just add that middle part back again and the Table format will work fine. Thanks!


Use only 2 queries for attributes

With this change is possible to read attributes data with only 2 queries.

Closing as it needs to be reworked


Allow switching instance?

Our prerelease/beta apps give users the ability to switch between a staging and production environment while the app is running. We have a separate Branch project set up for each one of these. The problem I'm having is that repeated calls to initSessionWithLaunchOptions... (with getInstance and getTestInstance swapped in depending on which one is correct) seem to not do anything. No matter what, only the initial handler seems to ever get called (which when opening a link meant for the wrong environment just gives blank params). Is there a correct way to change environments and register a new handler in order to switch from one environment to the other?

@DimaVartanian are you wanting to switch between live and test keys mid-session? That's not something we support, and we're unlikely to support it unfortunately.
You could build in a toggle that allows users to change the key for next app launch. You could store "shouldUseTestKey": YES or NO in NSUserDefaults. Then users could kill the app. The next time they opened the app, if "shouldUseTestKey" is true, then you could invoke getTestInstance instead of getInstance.
Does this make sense?

Hi Derrick. That is indeed what I want since the users are able to change environments on the fly in our beta builds. I'll just force an app restart after doing that. Thanks!


Always showing "no CMake"， when running setup.bat

Some guys help me out。 I have installed all the necessary software and added it to the Windows 10 "Path"

not a git repository
Do you have permissions to download from GitHub?


implement Qyburn (SAT)

French spoiler image:
https://i.redditmedia.com/VrrAa5wBUeNL4RToajSnC99CgAJmLX8kE_IgfUyY8fw.jpg?w=515&s=9deb8e43aa158f83f36c8571f7bb7e50
It should be safe to merge this PR when ready, as we are reasonably sure that
the official english card name will be the same.

On Fri, Feb 23, 2018 at 02:53:39PM -0800, DukeTax wrote:

           this.game.addMessage('{0} uses {1} to draw 2 cards', this.controller, this);

uses --> kneels

Gah, i always fall for this one. Fixed.


ImportError: DLL load failed: The specified module could not be found.

Please go to Stack Overflow for help and support:
https://stackoverflow.com/questions/tagged/tensorflow
If you open a GitHub issue, here is our policy:

It must be a bug, a feature request, or a significant problem with documentation (for small docs fixes please send a PR instead).
The form below must be filled out.
It shouldn't be a TensorBoard issue. Those go here.

Here's why we have that policy: TensorFlow developers respond to issues. We want to focus on work that benefits the whole community, e.g., fixing bugs and adding features. Support only helps individuals. GitHub also notifies thousands of people when issues are filed. We want them to see you communicating an interesting problem, rather than being redirected to Stack Overflow.

System information

Have I written custom code (as opposed to using a stock example script provided in TensorFlow): No this is just a simple installation and import of tensorflow
OS Platform and Distribution (e.g., Linux Ubuntu 16.04):
Windows 10
Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on mobile device:
Desktop PC
TensorFlow installed from (source or binary):
pip install tensorflow-gpu
TensorFlow version (use command below):
tensorflow-gpu 1.11.0
Python version:
python 3.5.5
Bazel version (if compiling from source): N/A
GCC/Compiler version (if compiling from source): N/A
CUDA/cuDNN version: CUDA v10.0 / cudnn-10.0-windows10-x64-v<IP_ADDRESS>
GPU model and memory:
Geforce 770 2GB
Exact command to reproduce:
import tensorflow as tf

You can collect some of this information using our environment capture script:
https://github.com/tensorflow/tensorflow/tree/master/tools/tf_env_collect.sh
You can obtain the TensorFlow version with
python -c "import tensorflow as tf; print(tf.GIT_VERSION, tf.VERSION)"
Describe the problem
Describe the problem clearly here. Be sure to convey here why it's a bug in TensorFlow or a feature request.
When I import tensorflow I immediately get an error (see below). I have looked at discussions on stack overflow and seem to have the following path variables to get at the necessary DLLs including msvcp140.dll
The problem began after I upgraded my tensorflow, CUDA, and cuDNN
Source code / logs
Include any logs or source code that would be helpful to diagnose the problem. If including tracebacks, please include the full traceback. Large logs and files should be attached. Try to provide a reproducible test case that is the bare minimum necessary to generate the problem.
Python 3.5.5 | packaged by conda-forge | (default, Feb 13 2018, 06:15:35) [MSC v.1900 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.

import tensorflow as tf
Traceback (most recent call last):
File "C:\Users\Ulric\Anaconda3\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 58, in
from tensorflow.python.pywrap_tensorflow_internal import *
File "C:\Users\Ulric\Anaconda3\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 28, in
_pywrap_tensorflow_internal = swig_import_helper()
File "C:\Users\Ulric\Anaconda3\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 24, in swig_import_helper
_mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description)
File "C:\Users\Ulric\Anaconda3\lib\imp.py", line 243, in load_module
return load_dynamic(name, filename, file)
File "C:\Users\Ulric\Anaconda3\lib\imp.py", line 343, in load_dynamic
return _load(spec)
ImportError: DLL load failed: The specified module could not be found.

During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "", line 1, in
File "C:\Users\Ulric\Anaconda3\lib\site-packages\tensorflow_init_.py", line 22, in
from tensorflow.python import pywrap_tensorflow  # pylint: disable=unused-import
File "C:\Users\Ulric\Anaconda3\lib\site-packages\tensorflow\python_init_.py", line 49, in
from tensorflow.python import pywrap_tensorflow
File "C:\Users\Ulric\Anaconda3\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 74, in
raise ImportError(msg)
ImportError: Traceback (most recent call last):
File "C:\Users\Ulric\Anaconda3\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 58, in
from tensorflow.python.pywrap_tensorflow_internal import *
File "C:\Users\Ulric\Anaconda3\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 28, in
_pywrap_tensorflow_internal = swig_import_helper()
File "C:\Users\Ulric\Anaconda3\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 24, in swig_import_helper
_mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description)
File "C:\Users\Ulric\Anaconda3\lib\imp.py", line 243, in load_module
return load_dynamic(name, filename, file)
File "C:\Users\Ulric\Anaconda3\lib\imp.py", line 343, in load_dynamic
return _load(spec)
ImportError: DLL load failed: The specified module could not be found.
Failed to load the native TensorFlow runtime.
See https://www.tensorflow.org/install/install_sources#common_installation_problems
for some common reasons and solutions.  Include the entire stack trace
above this error message when asking for help.

I was able to resolve this by rolling back my tf, keras, cuda, cuDNN versions to the following:

tensorflow-gpu == 1.4.0
keras == 2.0.8
CUDA == 8.0
cuDNN == 6.0

I'm just wondering if this is expected?  Is it that my geforce 770 GPU is not supported in more recent versions of tensorflow with more recent versions of CUDA?

@uwong CUDA 10.0 needs to be installed from source for Windows as documented here. You can still use the more recent versions of TensorFlow with the latest CUDA.

Closing this issue, feel free to reopen if problem persists.


Is there any example of pallet detection?

Hello,
Is there any example of pallet detection? Thank you.
https://www.ifm.com/us/en/us/robotics/software-solutions/pds/integrating-pds/integrating-pds
https://www.ifm.com/us/en/us/robotics/software-solutions/pds/pds

Hey @GoodTekken -- our Pallet Detection System (PDS) solution itself proprietary. We have a few client interfaces (ROS, Python, C++) which we provide source to, but they're not on GitHub at the moment. Could you send me an email at<EMAIL_ADDRESS>

Could you send me the Python or C++ source of Pallet Detection System (PDS<EMAIL_ADDRESS>, thanks

@DUANlaoda please get in touch with @GarrettPlace

@DUANlaoda - you can reach me at<EMAIL_ADDRESS>

I would like to get source of Pallet Detection System<EMAIL_ADDRESS>, thanks

I would like to get source of Pallet Detection System<EMAIL_ADDRESS>, thanks

As stated by Sean the Solution itself is closed source, the interface is available please reach out to Garrett his contact is available in
the comment https://github.com/ifm/ifm3d/issues/228#issuecomment-895175296


Does the software support the following image functions

Hello,
no not competly.
You may can add the settings on the right by setting "IsIpEnabled" in Hardware.
The Tunnel Interfaces on the left are not supported yet.

This software is very good and has helped me a lot. Thank you very much!

Hello,
no not competly. You may can add the settings on the right by setting "IsIpEnabled" in Hardware. The Tunnel Interfaces on the left are not supported yet.

This software is very good and has helped me a lot. Thank you very much!


Implement random photo selector

Describe the solution you'd like
Set a random wallpaper on the current OS

Migrated to GITLAB


Alerts launched by Thanos Rule don't generate metrics (ALERTS / ALERTS_FOR_STATE)

Hi!
I don't know if is a bug or a Issue, but alerts launched by Rule don't  generate metrics ALERTS and ALERTS_FOR_STATE!

Hi @limberger What's your setup and how did you query the ALERTS and ALERTS_FOR_STATE metrics?
These two metrics are created in Thanos Rule, so if you want to query them, you just need to add one more --store=<grpc address for your ruler> flag to your Thanos querier, then I guess you can query the metrics.

Thanks! You Alright!!! It's working!


ReplaceState is not a function

Hello,
Since upgrade to v2.0.0, the replaceState function is not accessible, provoking an error in file lib/toolbar-android.js.
It seems to be linked with the separation of imports as of React-Native 0.25.
From React documentation, replaceState  is not available on ES6 class components that extend React.Component.
Is there a workaround ?
Thanks

@oblador idk if this broke custom icons support also. had to downgrade to 1.3

@mbernardeau: Try out this commit and see if it solves your problem: https://github.com/oblador/react-native-vector-icons/commit/31b498f0a2aac570212fe9c231d009e58e004055
@chirag04: Really? What's your error and how are you using custom icons?

@oblador
It works that way, I guess this is a better way to fix this than my PR. Closing it.
Thanks for your great work !

@mbernardeau: Yeah, false is very different from undefined in the React world. Thanks for your PR though.
@chirag04: I'm about to do a fix release, but would be nice to cover your bug in there too, what's your issue exactly?

custom icons with fontello broke with 2.0
import { createIconSetFromFontello } from 'react-native-vector-icons';
import fontelloConfig from './config';

export default createIconSetFromFontello(fontelloConfig);

@chirag04: Does this commit fix it? https://github.com/oblador/react-native-vector-icons/commit/6c12f995c470370cf3942282ea875a4dff28481e

Fixed in 2.0.1.


Create geolocation.md

For some reason the geolocation.md file was no longer in repo, but was up on the website mentioning the now outdated navigator global.
#1151

I agree with @radko93 -- we need to point them to the community module which has been extracted.

I authored the #1151 issue.
What warning are you talking about? @radko93 Do you mean a warning while developing when requesting the old module? I'd say that sounds good too, but this is the react-native-website repo and I was asking for a way to include it in the docs and there are a couple of things I'm not getting.

How can that page be up if it's missing in this repo? Isn't the whole website built with netlify from this repo?
Where can I edit it then?

@giacomocerquone look at the warning here https://facebook.github.io/react-native/docs/webview

oh yes ok, thank you, I was just a little bit confused! I've also seen that this pr brings that warning! So nothing to do here 🙂

Geolocation was removed intentionally as part of Lean Core. We should add it to the list of community modules, which should be done in a separate PR.


[Release-1.12] Redis recover subscription if group or stream deleted

Description
Fixes #3219
We attempt to recreate the group/stream if we detect that the group has disappeared via the NOGROUP error.
Merge after #3220 (contains same commits).

/ok-to-test


Make sure Force lncludes are handled at a cpp-level in order to preserve file-level customizations

Fix submitted via external PR #1220

I just updated my PowerShell scripts using the Update button in Clang Power Tools > Settings > Compiler (tab), and I now get the following errors when trying to run Tidy-Fix via Clang Power Tools within Visual Studio 2022 build 17.4.2:
Get-FileForceIncludes : The term 'Get-FileForceIncludes' is not recognized as the name of a cmdlet, function, script
file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct
and try again.
At C:\users\mlitwak01\appdata\local\microsoft\visualstudio\17.0_5a19817e\extensions\te1ar3t1.yf2\Tooling\v1\clang-build
.ps1:1524 char:36
+     [string[]] $cppForceIncludes = Get-FileForceIncludes -fileFullNam ...
+                                    ~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (Get-FileForceIncludes:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

Thanks for reporting the issue. We have identified the cause and will release a fix soon.


Implement and test getlandcount and getlandby owner functions

Ensure the logic works and is well tested
fn get_land_count(self: @TContractState) -> u256;
fn get_lands_by_owner(self: @TContractState, owner: ContractAddress) -> Array<u256>;

Definition of Done:
•  Tests are written to verify the new functionality.
Note: Only applications through the OnlyDust platform will be considered.

I am applying to this issue via OnlyDust platform.
My background and how it can be leveraged
I am a web3 developer
How I plan on tackling this issue
I will Implement get_land_count and get_lands_by_owner functions, and ensure they work correctly. Write tests to verify the functionality of both methods.

I am applying to this issue via OnlyDust platform.
My background and how it can be leveraged
Am a frontend developer with some experience in writing smart contract and testing smart contract in cairo and solidity.
How I plan on tackling this issue

I would create suitable test case for each function and test the contract state before and after the function call. previous test from ODhack 8.0 scaffold testing

I am applying to this issue via OnlyDust platform.
My background and how it can be leveraged
Hello I'm a front-end and a blockchain developer. I will love to solve this issue. Please assign

I am applying to this issue via OnlyDust platform.
My background and how it can be leveraged
I am a Blockchain developer with expertise in Cairo, Solidity, and Rust. I have experience in developing and testing smart contracts, contributing to projects like Worldcoin-Bridge-Linea and ArkProjectNFTs Bridge.
How I plan on tackling this issue
[1]=>Implement get_land_count to return the total number of lands.
[2]=>Implement get_lands_by_owner to retrieve land IDs for a specific address.[3]=>Write unit tests for both functions to ensure correctness.
[4]=>Integrate tests into the existing suite for seamless execution.
[5]=>Please assign me, Sir/Madam.

I am applying to this issue via OnlyDust platform.
My background and how it can be leveraged
I am a full-stack developer with experience in QA testing and languages like Python, Cairo, Solidity, React, and JavaScript.
How I plan on tackling this issue
i wll Define the getLandCount function to return the total number of lands.
Define the getLandByOwner function to return a list of land IDs owned by a specific address.
i wiil Test getLandCount with existing lands.
Test getLandByOwner with existing lands and a valid owner address.
Test getLandByOwner with a non-existent owner address.
Test getLandCount with no lands added.

I am applying to this issue via OnlyDust platform.
My background and how it can be leveraged
GM @fishonamos, I am Sagar Rana, a smart contract developer and full stack engineer. I have 3 years of experience building robust full stack applications and over a year of writing smart contracts. You can see my projects and contributions to some major repos on my GitHub profile. The tech stack I use mainly includes Solidity, Rust, Cairo and Typescript. I am also contributing to the Starknet and Rust ecosystems and building on Cairo and Rust languages. I am interested in contributing to projects like this to learn more about these technologies and help make these projects better. Please assign me as I would be really glad to be a contributor in this project! :)
How I plan on tackling this issue
I would approach the problem like this:

Check out the  land_registry/src folder and check all available structs for the available fields
Create the function interfaces in land_registry/src/interface.cairo. The updated snippet will be like this:

#[starknet::interface]
pub trait ILandRegistry<TContractState> {
    fn register_land(
        ref self: TContractState, location: felt252, area: u256, land_use: LandUse,
    ) -> u256;
    fn transfer_land(ref self: TContractState, land_id: u256, new_owner: ContractAddress);
    fn get_land(self: @TContractState, land_id: u256) -> Land;
    fn update_land(ref self: TContractState, land_id: u256, area: u256, land_use: LandUse);
    fn approve_land(ref self: TContractState, land_id: u256);
    fn reject_land(ref self: TContractState, land_id: u256);
    fn is_inspector(self: @TContractState, address: ContractAddress) -> bool;
    fn add_inspector(ref self: TContractState, inspector: ContractAddress);
    fn remove_inspector(ref self: TContractState, inspector: ContractAddress);
     fn get_land_count(self: @TContractState) -> u256;
     fn get_lands_by_owner(self: @TContractState, owner: ContractAddress) -> Array<u256>;
}

Define the functions in land_registry/src/land_register.cairo
Update the tests and add testcases to include the new components in land_registry/tests/test_land_register.cairo
Ensure that all tests are passing and code is neat and clean and then create the PR

ETA: 2 Days

I am applying to this issue via OnlyDust platform.
My background and how it can be leveraged
I'm a Full Stack Developer with two years of experience. I'm also a member of Dojo Coding, where I'm expanding my expertise in Cairo and Web3 technologies. I'm enthusiastic about learning, and becoming a part of this project.
How I plan on tackling this issue
To solve this, I will:

Understand the requirements of each function.
Plan the contract structure.
Implement the functions.
Write tests.
Document the code.

I am applying to this issue via OnlyDust platform.
My background and how it can be leveraged
Hello! My name is Lukman, and I am a passionate Smart Contract Developer with two years of experience in writing smart contracts. My hands-on experience spans various blockchain platforms, including Ethereum and Starknet.
How I plan on tackling this issue
To ensure the logic for get_land_count and get_lands_by_owner functions works effectively, I will start by implementing unit tests for both functions. For get_land_count, I will verify that it accurately returns the total number of lands associated with the contract. For get_lands_by_owner, I will test that it correctly returns an array of land IDs owned by a specified ContractAddress. Additionally, I will include edge cases, such as testing with an owner address that has no lands, to confirm that the function handles such scenarios gracefully. Finally, I will ensure that all tests pass successfully before considering the implementation complete.

I am applying to this issue via OnlyDust platform.
My background and how it can be leveraged
Hi, please can I be assigned this please? This would be my first time contributing to this project and I would love to be the given the opportunity to contribute. I have experience in html, css, JavaScript,TypeScript and solidity, and Cairo. I am good at tests.
How I plan on tackling this issue
To solve this issue in just 3 steps:
1. I’ll ensure get_land_count and get_lands_by_owner are implemented correctly.
2. Next, I’ll create test cases covering various scenarios for counting lands and retrieving lands by owner.
3. Lastly, I’ll execute the tests to verify that the logic works as expected
Please assign me, I’m ready to work.

I am applying to this issue via OnlyDust platform.
My background and how it can be leveraged
I have contributed to several Cairo projects on OnlyDust and I've worked on very similar issues in the past.
How I plan on tackling this issue
I will carefully implement the feature requested and write tests to make sure the functionality is working properly with 100% coverage.
ETA 1 day.

I am applying to this issue via OnlyDust platform.
My background and how it can be leveraged
hello, i'm a frontend and a blockchain developer,  i would love to work on this task
How I plan on tackling this issue
I would  take a look at the requirement and follow it exactly to make sure that i complete everything and leave no stone unturned. i would first go through the codebase to understand the project and coding style


ZenML Hub CLI Improvements

Describe changes
Misc zenml hub ... CLI command improvements:

Added zenml hub submit-batch that can be used to batch submit/update multiple plugins at once
Adjusted zenml hub list to sort plugins by author > name > version
Fixed zenml hub logs (calling error before would cause the execution to end and not show the stacktrace)
Moved _clone_repo() util function to zenml.utils.git_utils.clone_git_repository()

Pre-requisites
Please ensure you have done the following:

[x] I have read the CONTRIBUTING.md document.
[ ] If my change requires a change to docs, I have updated the documentation accordingly.
[ ] If I have added an integration, I have updated the integrations table and the corresponding website section.
[ ] I have added tests to cover my changes.

Types of changes

[x] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)
[ ] Other (add details above)

@schustmi I also added tests for everything that does not involve cloning git repos.
Testing the repo structure validation seems difficult without, how would you go about that? IMO it's also not that important since the main check will be made server-side anyways.
Any other suggestions for things I should/could test?


Inputs doesn't support translatable

Package
filament/spatie-laravel-translatable-plugin
Package Version
v3.0.34
Laravel Version
v10.20.0
Livewire Version
v3.0.0
PHP Version
8.2.8
Problem description
Currently nether searchable Select supports translatable models, nether multiple Select with multiple() option. Basically it displays the string from the database, but not the translated value accordingly to selected language.
Im attaching screenshot as a example:

More to add, TextInput in Repeater also doesn't respond to the language in the model that I edit right now.
Expected behavior
I expect, that all the fields that are translatable displays titles in select, search accordingly and when I change language fields in repeater changes in language as well.
Steps to reproduce
Inside the Product resource I have added relation to ProductVariant which has translatable field "title".
Also I have changed Category and Band to use translatable name. So everything could be reproduced by using Product edit page by changing band/category and adding ProductVariant.
More to add I'm attaching JAM to show it as a video format.
https://jam.dev/c/e3f87c3f-2363-4125-9bee-208dfc83595a
There is a branch on repository called translatable-issues where you could see the code changes.
Reproduction repository
https://github.com/sanis/filament-demo/tree/translatable-issues
Relevant log output
No response

I have the same problem

If you comment this row in vendor translations works as expected. FYI. So there is some problem with casts it seems.
Filament\Forms\Components\Select.php

This might somehow magically help in select fields, however repeater isn't really working in that way. However the lines above looks like call for attributes that are language specific and it could be easy fix.

There isn't a nice way to detect this on the database level, you should try ->getOptionLabelFromRecordUsing(fn ($record) => $record->translatable_column_name)

@danharrin When using the relationship select filter it also shows a json object instead of only the name. https://filamentphp.com/docs/3.x/tables/filters#relationship-select-filters. Above fix doesn't work on a SelectFilter.


[cloud related] migration/beanie to sqlalchemy

Description
This PR migrates beanie related code for cloud/ee to sqlalchemy-orm.

@aakrem, did you create a PR from this PR and merge it into postgres-migration branch PR? I can find this PR commits in postgres-migration branch.
The following commits in the screenshot are from this PR (I am commenting from):

The following commits in the screenshot are from postgres-migration branch PR:


Unexpected Reasoning result

Hey there,
I have a problem regarding the reasoning using version 0.5.0 per maven and Java 13. Consider the following code:
final KnowledgeBase KB = RuleParser.parse(
	  "B(?x2) :- A(?x2) .\n" // statement 1
	+ "B(star) .\n" // statement 2
	+ "Rel(r0) :- C2(cy), B(?x0) .\n" // statement 3
	+ "C2(cy) ."); // statement 4

try (final Reasoner reasoner = new VLogReasoner(KB)) {
	if (!reasoner.reason()) {
		throw new RuntimeException();
	}
	try (var result = reasoner.answerQuery(Expressions.makePositiveLiteral("Rel", Expressions.makeUniversalVariable("a")), false)) {
		while (result.hasNext()) {
			System.out.println(result.next());
		}
	}
}

This does not print anything, although I would expect Rel(r0) because of the statements 2 - 4. Interestingly, without statement 1 Rel(r0) does get printed. Do I miss something about the reasoning or is this behaviour a bug?
Cheers,
Robin Nolte

This seems to be a bug in VLog, c.f. karmaresearch/vlog#43.

Fixed in current upstream VLog.


minor: update namespace for bounded queue example

as titled cc @oathdruid

coverage: 84.647% (-0.1%) from 84.773%
when pulling 4015c5f4d96ef35d51a2933d956676ef6ef7171d on zhyncs:patch-1
into a7c4dcc1da0fb981b4f1f77d536bf8042ab73187 on baidu:main.


Fix/303 use select2 in tags field

Q
A

Branch
master

Bug fix?
yes

New feature?
no

BC breaks?
no

Deprecations?
yes

Tests pass?
yes

Fixed issues
chameleon-system/chameleon-system#303

License
MIT

The old tagsInput jquery plugin didn't work anymore and is now replaced with the select2 component.

Thanks @pixeljunkie


show next bus times on bookmarks tab

Would be great to see next bus times from the bookmarks tab for user selected routes that stop at the bookmarked stop. Alternatively it might be worth thinking about if it is really stops or rather routes at specific stops that users care about.

extremely nice to have, but not a ship-blocker for 2.5.


Create an indexer for Pollen

So with the deployment of pollinations-backend to supabase, we can think of merging ipfs-indexer we have(https://github.com/pollinations/ipfs-indexer) into our backend(https://github.com/pollinations/ipfs-indexer) and use it for both purposes.
IPFS Indexer works with 2 main strategies,

Get a batch of CID's
Listen to a pubsub channel (namely "done_pollen" for us).

After receiving a CID from either channel,

Indexer will download the CID
Check the contents of the CID
Index the CID whether it errored out or "done"


Fixed Typos

Describe your changes

Fixed Typos die 2te
Checklist

[x] I have read the Contributing Guidelines.
[x] I have performed a self-review of my code
[x] If this solves a Open GitHub-issue: I have added the issue number and link

#40


Add test for game over and game status update packet

Coverage increased (+1.9%) to 73.453% when pulling 947d2c3a30f6e6e2835aaaae492577d9743f9666 on feature/test-game-over into 4f652e95a445ff589bcc332db9de87e4523c1de9 on master.


Instance: 3D analysis of livebearing fish (Xiphophorus)

Cloud Computing Instance Flavor
g3.xl - GPU instance (32 CPUs, 125 GB RAM and A100 GPU)
Description
I am a PhD student at Stanford University working on phenotype discovery in incompatible hybrid fish (Xiphophorus spp.), particularly cardiovascular and developmental defects. I have microCT and MRI scans of many specimens, and would like to use SlicerMorph to segment and extract models.
ORCID
0000-0002-8619-7187
Email
<EMAIL_ADDRESS>

/create

/shelve

/delete


Announce Timeout Expired - Becoming Master

i use 2 ubuntu22.04  PCs with I210 network card
PC1 and PC2 is  similar :
I don't know why it's not working
LOG：
lspci | grep net
00:1f.6 Ethernet controller: Intel Corporation Ethernet Connection (2) I219-LM
02:00.0 Ethernet controller: Intel Corporation I210 Gigabit Network Connection (rev 03)
ethtool -i enp2s0
driver: igb_avb
version: 5.3.2_AVB
firmware-version: 3.16, 0x800004ff, 1.304.0
expansion-rom-version:
bus-info: 0000:02:00.0
supports-statistics: yes
supports-test: yes
supports-eeprom-access: yes
supports-register-dump: yes
supports-priv-flags: no
sudo ./obj/daemon_cl enp2s0 -L
INFO     : GPTP [11:52:32:363] gPTP starting
ERROR    : GPTP [11:52:32:363] Using clock device: /dev/ptp0
STATUS   : GPTP [11:52:32:363] Switching to Slave
STATUS   : GPTP [11:52:32:364] Link Speed: 1000000 kb/sec
STATUS   : GPTP [11:52:35:364] *** Announce Timeout Expired - Becoming Master
STATUS   : GPTP [11:52:35:364] New Grandmaster "6C:B3:11:FF:FE:52:C4:FD" (previous "00:00:00:00:00:00:00:00")
EXCEPTION: GPTP [11:52:38:414] PDelay Response Receipt Timeout
EXCEPTION: GPTP [11:52:39:416] PDelay Response Receipt Timeout
EXCEPTION: GPTP [11:52:40:416] PDelay Response Receipt Timeout
EXCEPTION: GPTP [11:52:41:417] PDelay Response Receipt Timeout
EXCEPTION: GPTP [11:52:42:434] PDelay Response Receipt Timeout

Hello wangqiang Bro,
I have also encountered the same problem. How did you solve it? Thank you very much


Feature seller 1

Codecov Report

Merging #36 (74d2758) into main (2608567) will increase coverage by 9.02%.
The diff coverage is 92.25%.

:exclamation: Current head 74d2758 differs from pull request most recent head 544dfeb. Consider uploading reports for the commit 544dfeb to get more accurate results

@@            Coverage Diff             @@
##             main      #36      +/-   ##
==========================================
+ Coverage   64.03%   73.06%   +9.02%
==========================================
  Files          15       17       +2
  Lines        1129     1318     +189
==========================================
+ Hits          723      963     +240
+ Misses        378      325      -53
- Partials       28       30       +2

Impacted Files
Coverage Δ

internal/seller/repository.go
83.49% <83.87%> (ø)

cmd/server/handlers/seller.go
95.87% <97.43%> (+5.98%)
:arrow_up:

internal/section/repository.go
100.00% <100.00%> (+100.00%)
:arrow_up:

internal/seller/service.go
100.00% <100.00%> (ø)

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 4105291...544dfeb. Read the comment docs.


Create equaldex dataset

Create the Equaldex dataset, combining historical and current data. We will be using current data for now, waiting for them to fix duplicates from previous years.
The buildkite errors show up because of the extraction code. Is there any way to avoid this?

Hi @paarriagadap I think you could define a new environment variable in your .env file. For example:
EQUALDEX_KEY=123...
Then from your snapshot script, you do:
import os

ACCESS_KEY = os.getenv("EQUALDEX_KEY")

If that doesn't work (I haven't checked) maybe you also have to include the following:
from dotenv import load_dotenv

load_dotenv()

The latter function will automatically search for any .env file in your current directory. If you named your .env file something different (e.g. .access_keys) you can simply give the path to the file as an argument of the function, e.g. load_dotenv("./.access_keys").
Please let me know if that works.

Thank you, @pabloarosado! The first option worked. I solved a couple of errors, but for two of them I just ignored the pyright error, because the commands are doing what is expected.


Best way to implement a 'sub-sequence'

Say I have an array with dimensions:
[time, channel, fine_time, pol]

and I want to copy it over to the GPU one channel at a time, and act on a 'subsequence'. Is there a way to do this? Assuming I can do the book-keeping myself, is there a way to merge the frame axis (time) with the first axis in the frame (channel)? views.merge_axis doesn't seem to like this.

That is: can I merge [time, channel] into [timechan]?

I think merge_axes should support this. What error are you seeing?

Huh, interestingly the error arises when adding in the print_header block:
    b_guppi   = blocks.read_guppi_raw(filelist, core=1, buffer_nframe=4)
    b_gup2   = views.merge_axes(b_guppi, 'time', 'freq', label='timechan')
    blocks.print_header(b_gup2)
    blocks.print_header(b_gup2)
    pipeline.run()

And error is:
dancpr@bldcpr:/bldata/pulsar_dev$ python bf_mergetest.py
Exception in thread Pipeline_0/PrintHeaderBlock_0:
Traceback (most recent call last):
  File "/usr/lib/python2.7/threading.py", line 801, in __bootstrap_inner
    self.run()
  File "/usr/lib/python2.7/threading.py", line 754, in run
    self.__target(*self.__args, **self.__kwargs)
  File "build/bdist.linux-x86_64/egg/bifrost/pipeline.py", line 293, in run
    self.main(active_orings)
  File "build/bdist.linux-x86_64/egg/bifrost/pipeline.py", line 426, in main
    self.sequence_proclogs[i].update(iseq.header)
  File "build/bdist.linux-x86_64/egg/bifrost/ring2.py", line 288, in header
    hdr = self.header_transform(deepcopy(hdr))
  File "build/bdist.linux-x86_64/egg/bifrost/views/basic_views.py", line 150, in header_transform
    tensor['gulp_nframe'] *= n
KeyError: 'gulp_nframe'

This also fails, presumably due to the same underlying reason:
with bfp.Pipeline() as pipeline:

    n_chunks = 2

    filelist = sorted(glob.glob('*.raw'))[:2]

    # Read from guppi raw file
    b_guppi   = blocks.read_guppi_raw(filelist, core=1, buffer_nframe=4)
    b_gup2    = views.rename_axis(b_guppi, 'freq', 'channel')

    # Buffer up two blocks & reshape to allow longer FFT
    b_gup2    = views.split_axis(b_gup2, axis='time', n=n_chunks, label='time_chunk')
    b_gup2    = blocks.transpose(b_gup2, axes=['time', 'channel', 'time_chunk', 'fine_time', 'pol'], buffer_nframe=1)
    b_gup2    = views.merge_axes(b_gup2, 'time_chunk', 'fine_time', label='fine_time')

    # Merge time-channel axis for smaller memcopies
    b_gup2    = views.merge_axes(b_gup2, 'time', 'channel', label='time')

    b_copy    = blocks.copy(b_gup2,  space='cuda', buffer_nframe=1, core=1)
    pipeline.run()

output
Exception in thread Pipeline_0/CopyBlock_0:
Traceback (most recent call last):
  File "/usr/lib/python2.7/threading.py", line 801, in __bootstrap_inner
    self.run()
  File "/usr/lib/python2.7/threading.py", line 754, in run
    self.__target(*self.__args, **self.__kwargs)
  File "build/bdist.linux-x86_64/egg/bifrost/pipeline.py", line 293, in run
    self.main(active_orings)
  File "build/bdist.linux-x86_64/egg/bifrost/pipeline.py", line 426, in main
    self.sequence_proclogs[i].update(iseq.header)
  File "build/bdist.linux-x86_64/egg/bifrost/ring2.py", line 288, in header
    hdr = self.header_transform(deepcopy(hdr))
  File "build/bdist.linux-x86_64/egg/bifrost/ring2.py", line 60, in <lambda>
    return lambda x: f(g(x))
  File "build/bdist.linux-x86_64/egg/bifrost/views/basic_views.py", line 150, in header_transform
    tensor['gulp_nframe'] *= n
KeyError: 'gulp_nframe'

Ok, I modified the guppi reader to have a gulp_nframe in its tensor, and then modified the  def merge_axes(block, axis1, axis2, label=None, ignore_units=False) to have ignore_units, otherwise it complains. So I can get past this, but then get back to the issue #82 .

Ignoring units may be dangerous; what problem do you get?

It's trying to combine 's' with 'MHz' and complaining. It is after all nonsensical...

Oh I didn't notice the comment explaining what you were trying to achieve. Yeah you shouldn't really do that :)
You can reduce memory usage by putting some blocks inside a with bf.block_scope(fuse=True):

Thanks, that gets me closer! I do remember you talking about block fusion but didn't realize it was implemented.

Contrary to appearances, it's not doing proper fusion. It just sets the buffer_factor to 1 (which you can also do manually) and enables workspace sharing for any blocks that use workspace. The result is that the "fused" blocks run sequentially, but memory use is significantly reduced.
Putting all of the GPU compute blocks inside a fused scope is often a good approach, because having them run in parallel with each other doesn't usually gain you much anyway.


Update vendored package golang-1-linux

This is an automatically generated Pull Request from the Cryogenics CI Bot.
I have detected a new version of golang-release and automatically bumped
this package to benefit from the latest changes.
If this does not look right, please reach out to the #mapbu-cryogenics team.

Hello @dlresende
I was reviewing the list of Github PRs in our tracker and saw this one.
I believe the branch from this PR got automatically recreated and no longer presents the issue you mention.
I'll mark it as "Ready for review"


do not buffer entry contents in memory while doing MergeStrategy.deduplicate

Context
Currently the MergeStrategy.deduplicate works in the following way:

for all conflicting files with the same path compute sha1 hashes
if all conflicting files have same sha1 hash, then use the first one

I'm maintaining a metarank project and with the current approach it requires ~6Gb heap to make the assembly with sbt -mem 6000 assembly. With lower heap sizes the thing OOMs:
java.lang.OutOfMemoryError: Java heap space
        at scala.collection.mutable.ResizableArray.ensureSize(ResizableArray.scala:106)
        at scala.collection.mutable.ResizableArray.ensureSize$(ResizableArray.scala:96)
        at scala.collection.mutable.ArrayBuffer.ensureSize(ArrayBuffer.scala:49)
        at scala.collection.mutable.ArrayBuffer.$plus$eq(ArrayBuffer.scala:85)
        at scala.collection.mutable.ArrayBuffer.$plus$eq(ArrayBuffer.scala:49)
        at scala.collection.generic.Growable.$anonfun$$plus$plus$eq$1(Growable.scala:62)
        at scala.collection.generic.Growable$$Lambda$118/0x000000010021e840.apply(Unknown Source)
        at scala.collection.Iterator.foreach(Iterator.scala:943)
        at scala.collection.Iterator.foreach$(Iterator.scala:943)
        at scala.collection.AbstractIterator.foreach(Iterator.scala:1431)
        at scala.collection.generic.Growable.$plus$plus$eq(Growable.scala:62)
        at scala.collection.generic.Growable.$plus$plus$eq$(Growable.scala:53)
        at scala.collection.mutable.ArrayBuffer.$plus$plus$eq(ArrayBuffer.scala:105)
        at scala.reflect.io.Streamable$Bytes.toByteArray(Streamable.scala:59)
        at scala.reflect.io.Streamable$Bytes.toByteArray$(Streamable.scala:56)
        at scala.reflect.io.Streamable$$anon$1.toByteArray(Streamable.scala:137)
        at scala.reflect.io.Streamable$.bytes(Streamable.scala:137)
        at sbtassembly.MergeStrategy$.$anonfun$deduplicate$3(MergeStrategy.scala:125)
        at sbtassembly.MergeStrategy$$$Lambda$6520/0x0000000101922040.apply(Unknown Source)
        at scala.collection.TraversableLike.$anonfun$map$1(TraversableLike.scala:286)
        at scala.collection.TraversableLike$$Lambda$140/0x000000010025d040.apply(Unknown Source)
        at scala.collection.Iterator.foreach(Iterator.scala:943)
        at scala.collection.Iterator.foreach$(Iterator.scala:943)
        at scala.collection.AbstractIterator.foreach(Iterator.scala:1431)
        at scala.collection.IterableLike.foreach(IterableLike.scala:74)
        at scala.collection.IterableLike.foreach$(IterableLike.scala:73)
        at scala.collection.AbstractIterable.foreach(Iterable.scala:56)
        at scala.collection.TraversableLike.map(TraversableLike.scala:286)
        at scala.collection.TraversableLike.map$(TraversableLike.scala:279)
        at scala.collection.AbstractTraversable.map(Traversable.scala:108)
        at sbtassembly.MergeStrategy$.$anonfun$deduplicate$1(MergeStrategy.scala:125)
        at sbtassembly.MergeStrategy$$$Lambda$5917/0x0000000100db0840.apply(Unknown Source)

But there are some problems with the current implementation:

conflictContents = conflicts.map(_.stream()).map(Streamable.bytes(_)) buffers all duplicate contents in a heap buffer. There are some examples like ONNXRuntime which bundle a huge 500Mb binary inside the jar, and buffering it in RAM might not be perfect approach.
JarEntry(conflicts.head.target, () => new ByteArrayInputStream(conflictContents.head) takes a byte buffer with contents and wraps it as an InputStream. Given that Dependency already technically is a stream (usually a file-based), there is no need to re-wrap it into a ByteArrayInputStream and just reuse the .stream from the dependency as is.

Even worse, the ByteArrayInputStream re-wrapping happens for all JarEntry items, effectively transforming FileInputStream into ByteArrayInputStream, so you need enough heap to buffer the whole unzipped assembly with all the dependencies.
Proposed solution
In this PR we suggest to make deduplication work without caching all entry content in heap:

make sbtassembly.Assembly.sha1Content operate on InputStream and not on byte[]
do not re-wrap FileInputStream as a heap-buffered ByteArrayInputStream

Risks
The main risk of such approach is that we need to read all assembly content twice: first time while deduplicating, and then later while writing the final assembly jar.
But considering the fact that reading the same file twice puts it into an OS file cache, we assume that such drawback won't affect the overall sbt-assembly performance.
Benchmarks
Before:
$ sbt -mem 6000
[info] started sbt server
sbt:metarank> assembly
...
[info] 156 file(s) merged using strategy 'Rename' (Run the task at debug level to see the details)
[info] 632 file(s) merged using strategy 'Discard' (Run the task at debug level to see the details)
[info] 15 file(s) merged using strategy 'First' (Run the task at debug level to see the details)
[info] 2 file(s) merged using strategy 'Concat' (Run the task at debug level to see the details)
[info] 21 file(s) merged using strategy 'FilterDistinctLines' (Run the task at debug level to see the details)
[info] 10486 file(s) merged using strategy 'Deduplicate' (Run the task at debug level to see the details)
[info] Built: /home/shutty/private/code/metarank/target/scala-2.13/metarank.jar
[info] Jar hash: c64a43ce76f78e0734eda88de7daffe53cc51dc8
[success] Total time: 94 s (01:34), completed Mar 11, 2024, 2:58:46 PM

$ sha256sum /home/shutty/private/code/metarank/target/scala-2.13/metarank.jar
2fd43f4fcbecf3ef1c8dbe78392ad0c1cd3c6c505d65e70ff33f2277f6a64ee9  /home/shutty/private/code/metarank/target/scala-2.13/metarank.jar

After:
$ sbt -mem 1000
[info] started sbt server
sbt:metarank> assembly
...
[info] 156 file(s) merged using strategy 'Rename' (Run the task at debug level to see the details)
[info] 632 file(s) merged using strategy 'Discard' (Run the task at debug level to see the details)
[info] 15 file(s) merged using strategy 'First' (Run the task at debug level to see the details)
[info] 2 file(s) merged using strategy 'Concat' (Run the task at debug level to see the details)
[info] 21 file(s) merged using strategy 'FilterDistinctLines' (Run the task at debug level to see the details)
[info] 10486 file(s) merged using strategy 'Deduplicate' (Run the task at debug level to see the details)
[info] Built: /home/shutty/private/code/metarank/target/scala-2.13/metarank.jar
[info] Jar hash: c64a43ce76f78e0734eda88de7daffe53cc51dc8
[success] Total time: 70 s (01:10), completed Mar 11, 2024, 3:23:37 PM

$ sha256sum /home/shutty/private/code/metarank/target/scala-2.13/metarank.jar
2fd43f4fcbecf3ef1c8dbe78392ad0c1cd3c6c505d65e70ff33f2277f6a64ee9  /home/shutty/private/code/metarank/target/scala-2.13/metarank.jar

@eed3si9n what's your opinion on this PR? It changes the default behavior a bit (as in some cases it reads source streams twice), but memory saving for large assemblies is quite big

Worth trying out? If it causes issues for some ppl we can always back out.


Allow 0/1 for boolean cell values

Fixes #887

@tomjebo Can you verify that a 0 or 1 are valid boolean values for cells?

From MS-OI29500 2.1.659: ...If the cell contains a Boolean, the value shall be 1 to specify true and 0 to specify false.

So can it be true or false as well, or only 1/0?

Yes, but they MUST be lower case. Excel reads this as lower case "true" or "false" but will only write as "0" or "1". Excel will throw a message dialog and ask to "correct" the underlying XML if the type is "b" and the value is anything but "0", "1", "true", or "false".

Thanks @mkorsukov for the comments!

@tomjebo can you take another look and approve if it looks good? I'd like to get this out as a 2.12.3 release

Yes, but they MUST be lower case. Excel reads this as lower case "true" or "false" but will only write as "0" or "1". Excel will throw a message dialog and ask to "correct" the underlying XML if the type is "b" and the value is anything but "0", "1", "true", or "false".

Thanks, this actually highlighted some issues in ClosedXML. We were writing out Boolean values using propercasing. Nobody every complained, though.


Automatically pause autoscaling based on defined metrics

Proposal
Dynamically pause autoscaling based on condition.  E.g pause when the metric requests pers seconds is less then X
Use-Case
I want to automatically pause autoscaling when there is an outage in the upstream service (service that call my service).
Is this a feature you are interested in implementing yourself?
No
Anything else?
No response

Could you provide a more detailed use case? In my opinion, if the metric requests per second are less than X, the pods should be scaled down, right? Alternatively, if the metric has some extreme value, you can use maxReplicaCount.

So the use case is the following. I have a service A that calls service B. When A has an outage it stop sending requests to B and therefore B starts to downscaling all the way to min. When A comes back online it starts storming B that doesn't have enough replicas to handle the load which can take it down or significantly increase the time to recover.
So I want to be able to pause downscaling of  B when service A has an outage. I can define this by using custom metrics query like rps of B dropped bellow X.
I don't see how maxReplicasCount can help in my use case

@SpiritZhou I added more context ^, thanks

This is a very common use case that happens almost every month at my company


Lookup table

@aappling-usgs see p_code lookup table. Let me know if you would like something different

@aappling-usgs getting issues w/ unitted on windows: https://ci.appveyor.com/project/jread-usgs/mda-streams/build/0.1.101#L205

am going to kick off a build on streamMetabolizer to see if this is happening there too. Could be an issue w/ windows unitted and Rdevel


Fix possible race condition in handleUpgrade

This sets the onConnection listener only when the socket has been closed to prevent possible race conditions.
Closes #86.

Thanks


Unable to load FFProbe

I know this isn't exactly an issue with this package, but I have this error: "Unable to load FFProbe", and there does not seem to be any FFProbe binaries in the entire internet for PHP (5.4). FFMpeg is installed and working, but can't find anything on Probe. Running windows WAMP server for development and Linux server for production, if anyone has any ideas where to get these.

https://trac.ffmpeg.org/wiki/CompilationGuide/Ubuntu#ffmpeg appears to be the linux/ubuntu guide, for anyone searching for that.

How I did it
I'm using the following directory for the FFMpeg binaries: C:\FFmpeg\bin

Download the binaries and place them into a *C:* directory in my case.

Set your Windows PATH variable be sure to set both the user and system variable.

Open up your CLI (command line interface) by running cmd.exe and check if FFMpeg could be executed.

If the command could be executed run the following lines of PHP code to configure the FFMpeg wrapper and use it to create awesome video features for you application.

        $FFMpeg = FFMpeg\FFMpeg::create([
            'ffmpeg.binaries'  => 'C:/FFmpeg/bin/ffmpeg.exe', // the path to the FFMpeg binary
            'ffprobe.binaries' => 'C:/FFmpeg/bin/ffprobe.exe', // the path to the FFProbe binary
            'timeout'          => 3600, // the timeout for the underlying process
            'ffmpeg.threads'   => 12,   // the number of threads that FFMpeg should use
        ]);

I'm using the PHP 5.4 short array syntax

I also thought just put ffmpeg and ffprobe at PATH would solve this problem. Maybe, I do wrong somewhere?

@bentinata just use the path's to the binaries in you unix machine mostly something like /usr/binaries/mmpeg or something.

Hello
my code is :
$ffmpeg = FFMpeg::create(array(             'ffmpeg.binaries'  => '/root/bin/ffmpeg',             'ffprobe.binaries' => '/root/bin/ffprobe',             'timeout'          => 3600,             'ffmpeg.threads'   => 12,         ));
but not work ! :(
please help me

@wonderco you should install ffmpeg first.

Hello
my code is :
$ffmpeg = FFMpeg::create(array( 'ffmpeg.binaries' => '/root/bin/ffmpeg', 'ffprobe.binaries' => '/root/bin/ffprobe', 'timeout' => 3600, 'ffmpeg.threads' => 12, ));
but not work ! :(
please help me

try to move the ffmpeg to the /usr/local/ffmpeg,a binary in the root folder will not allow a non-root user to execute that command. so use this command "sudo mv /root/bin/ffmpeg /usr/local/ffmpeg"  "sudo nv /root/bin/ffprobe /usr/local/ffmpeg"

How to fix this in Ubuntu?
I already run sudo apt install ffmpeg and confirmed that the ffmpeg and ffprobe existed in path usr\bin\;
FFMpeg::create([
      'ffmpeg.binaries'  =>'\usr\bin\ffmpeg',
      'ffprobe.binaries' => '\usr\bin\ffprobe',
      'timeout'          => 3600,
      'ffmpeg.threads'   => 12,
    ])->open($file)
      ->getStreams()
      ->videos()
      ->first();

.env:
FFMPEG_BINARIES=/usr/bin/ffmpeg
FFPROBE_BINARIES=/usr/bin/ffprobe

For Windows users,
Do not forget the extension in the path, It was .exe, that I was missing in the path and thus leading to NotFoundException.
FFMPEG_PATH=C:\ffmpeg\bin\ffmpeg.exe
FFPROBE_PATH=C:\ffmpeg\bin\ffprobe.exe

Hi there,
I installed ffmpeg and ffprobe:

My error:

The location of ffprobe:

My composer.json:

PHP 7.4
My Ubuntu:

What's wrong?
Just installed today.

Here, how i solved it.
For me it was rather un-related.
I was using SpatieMedia with ffmpeg to clip a video, store it in a temp folder then save .webm in the same directory created by spatiemedia.
The Ffprobe was loading right, it was the hard-coded paths in spatie-media which were wrong.
Fix
vendor\spatie\laravel-medialibrary\config\media-library.php
Changed those line to this, on my server Ubuntu 20

'ffmpeg_path' => '/usr/bin/ffmpeg',
    'ffprobe_path' =>  '/usr/bin/ffprobe',

vendor\spatie\laravel-medialibrary\src\Conversions\ImageGenerators\Video.php
Same change in convert() function

  $ffmpeg = FFMpeg::create([
            'ffmpeg.binaries' => '/usr/bin/ffmpeg',
            'ffprobe.binaries' => '/usr/bin/ffprobe',
    ]);


Support draft-10 (chrome 14-dev+)

This will either be done via node-websocket-protocol (preferable), or via some kind of hack to the core of node-websocket-server, which is the route I really don't want to take.

I've forked Nico Kaisers last commit and added support for draft 16 to it. If anyone uses chrome dev, this may be helpful to you ;)


[now dev] Add --bind / -b flag

This changes the default network interface that now dev binds to, in order to prevent operating system firewalls from showing a confirmation prompt in order to run.
Fixes #2704.

@styfle It was reverted in 8638d17d87b425c845c451c03f61dee1db6077a7 because we are going to change it to --listen instead.

Codecov Report

Merging #2720 into canary will decrease coverage by 0.02%.
The diff coverage is 14.28%.

@@            Coverage Diff             @@
##           canary    #2720      +/-   ##
==========================================
- Coverage   13.57%   13.54%   -0.03%
==========================================
  Files         261      262       +1
  Lines       10536    10562      +26
  Branches     1356     1363       +7
==========================================
+ Hits         1430     1431       +1
- Misses       8961     8986      +25
  Partials      145      145

Impacted Files
Coverage Δ

src/util/dev/types.ts
0% <ø> (ø)
:arrow_up:

src/util/dev/parse-listen.ts
0% <0%> (ø)

src/commands/dev/index.ts
0% <0%> (ø)
:arrow_up:

src/commands/dev/dev.ts
0% <0%> (ø)
:arrow_up:

src/util/dev/server.ts
61.16% <50%> (-0.13%)
:arrow_down:

Continue to review full report at Codecov.

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


Help configuring HTTPS in docker on a VM

I recently installed vured-bot onto a VM I own by using docker, and I was able to get the bot working on my server. However, while I can access the web server via http by using {ip address}:8080 (which gives me a successful redirect to the Github wiki page), attempting to access the web server with https://{ip address}:8080 gives me the following error: Secure Connection Failed - An error occurred during a connection to {ip address}:8080. SSL received a record that exceeded the maximum permissible length. Error code: SSL_ERROR_RX_RECORD_TOO_LONG.
I'm trying to access the web server via HTTPS so I can connect it to the web ui, but I've only had success accessing it via HTTP. I believe the error I am getting means that I need to setup SSL certificates to allow HTTPS connections to the web server, but I am not sure how to do this since I can't find an apache or nginx web server to attach SSL certificates to. However, maybe I am totally off base, so I am welcome to any suggestions!

Hey 👋
the easiest way is to add your domain to cloudflare and enable the cloud. Then you'll have a SSL connection without the need of an own certificate.

Thank you! That worked perfectly, just had to add a -p 80:8080 flag to the docker command to route it through normal http and that portion works flawlessly now.


ADLS Gen2, many bug fixes, support for VS2019, and many other improvements

Fix an issue that upload failed errno is overwritten, raised here https://github.com/Azure/azure-storage-cpplite/issues/47
Support for VS2019
ADLS Gen2
[Breaking Change] Change API name: get_container_property->get_container_properties, get_blob_property->get_blob_properties. These two APIs now return std::future as other APIs
Fix a few bugs in shared key signing
Fix link issue of logger
Fix dllimport/dllexport compiler warnings
REST API version: 2018-11-09
Fix a bug that get_container_properties never gets metadata
Add two APIs: set_container_metadata, set_blob_metadata

/AzurePipelines run Azure.azure-storage-cpplite

/AzurePipelines run Azure.azure-storage-cpplite

/AzurePipelines run Azure.azure-storage-cpplite

/AzurePipelines run Azure.azure-storage-cpplite

/AzurePipelines run Azure.azure-storage-cpplite

@katmsft Can you take time to review the last commit https://github.com/Azure/azure-storage-cpplite/pull/50/commits/798991d70cbb74f98f0b1600fdbbedc08ca8aac2 in this pr, which adds get_request_header function due to the request from this issue https://github.com/Azure/azure-storage-cpplite/issues/51?


Add Tunisian mobile phone and postal code validation

For reference:
Telephone numbers
Postal codes in Tunisia

Thanks for the PR :smile:

I will try to add more countries when i have time  :smile:


Certification tests for Azure Blob Storage Statestore

Description
Implement certification test for Statestore - Azure Blob Storage

Ping @berndverst

Test Plan Draft
Basic Test for existing container for CRUD operations:

Able to create and test connection.
Able to do set, fetch, delete.

Basic Test for non-existing container for CRUD operations:

Able to create and test connection.
Able to do set, fetch, delete data.
Delete the table

Test for authentication using AAD

Save Data using Go SDK
Retrieve data by using AAD credentials

We also need to validate reconnection. The component should not require a restart to recover from a connection outage from the service.


Query generator for unknown values

Describe what is missing
I'm not sure if this is a missing feature or just not documented, but I have been trying to generate a value for "unknown" scalars and types that are not listed in queryGenerationFactories
This page here mentions that we can use glob syntax, and only the most specific factory will be used.
https://magidoc.js.org/plugins/graphql-query-generator
Seems like using '*': 'UNKNOWN' makes it super specific, and it's used even for default scalars and input types.
Is there any official way to do this in the library?
The goal?
If something is not listed in queryGenerationFactories, we want to not throw errors, but just generate the documentation gracefully with some default value for the unknown type. For example UNKNOWN.
The current behaviour is that the generation fails completely and throws errors.

Hi @amanb014.
What you describe here is the expected behaviour at the moment. Magidoc aims to create meaningful documentation for people to understand your API. If we decided to put UNKNOWN in the documentation, it wouldn't help the user understand what they have to input there. In the end, every scalar will resolve in either a string (sometimes with a specific format), a boolean or a number. Magidoc is not able to know by itself what is expected there.
For the other part of your question, the generation factories can in fact be used to represent any type in your API, not just scalars. So when you put a star like that, it will override every type of your API, not just scalars.
The ideal is that you provide a factory for each of your scalars. Generally, APIs have at most a few dozens of these, but it's possible you have more. Just by curiosity, how many scalars to you have approximately, and is there no way you could provide an example for each of these in the config ?

Yep that totally makes sense, and I generally agree with it. I wasn't so concerned about the scalars we have today, but if a new one is added I was generally accepting that we will keep generating docs until the person that added the new scalar adds a more specific example for the data that it generates.
I currently have a setup that's a bit different, and multiple schemas use a single configuration file, and there is a possibility that something gets added and unexpectedly fails the generation.

Hey! Sorry for the late reply. Yes, I understand your concern. So this library has two objectives in the end. We aim to provide the most meaningful documentation possible to help people understand the API, while also staying as little maintenance as possible.
I think whether this feature is necessary depends on what you think. Would you sacrifice a little of the documentation's usefulness for a slightly smaller development effort?
From my point of view, it's part of the developer's role to document it's work. Magidoc already do most of the heavy lifting, all you have left to do is add some scalars in the documentation when you add new ones. If we go with your proposition, they might just as well be forgotten and never documented.
If you still find it meaningful, I have no trouble implementing that, but I definitely would make it the default. It would be added as an option to silently ignore missing types.

I agree with the concept that the developers should be documenting how to generate the documentation properly, whenever new changes come through. If we ignore this, it'll just end up in bugs that we have to resolve later because customers/other developers will complain about UNKNOWNs in the docs.
A better way might be to alert on docs generation being broken so we can fix it. I think it's safe to close this!


chore: prep for release 2.2.0

Details
This PR preps for release 2.2.0:

updating usage.md and package.json

Motivation
After this gets merged we will generate a NOTICE file and update NOTICE.txt. Then we will release.
Pull request checklist

[ ] Addresses an existing issue: Fixes #0000
[ ] Added relevant unit test for your changes. (yarn test)
[ ] Verified code coverage for the changes made. Check coverage report at: <rootDir>/test-results/unit/coverage
[ ] Ran precheckin (yarn precheckin)
[ ] (after PR created) The Accessibility Checks (pull_request) check should fail. All other checks should pass.

Codecov Report

Merging #734 (0fe344b) into main (738c189) will not change coverage.
The diff coverage is n/a.

:exclamation: Current head 0fe344b differs from pull request most recent head 73b22d5. Consider uploading reports for the commit 73b22d5 to get more accurate results

@@           Coverage Diff           @@
##             main     #734   +/-   ##
=======================================
  Coverage   94.84%   94.84%
=======================================
  Files          25       25
  Lines         563      563
  Branches       49       49
=======================================
  Hits          534      534
  Misses         29       29

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 738c189...73b22d5. Read the comment docs.