How to set tabBarIcon from the state in navigationOptions (react-navigation)

I want to do something just like this. i have image in my state but its showing me undefined error.I am using tabNavigator from react-navigation.
static navigationOptions = {
   tabBarIcon:  <Image source={{uri: this.state.userImage}} style={{width:30, height: 30}}/>

}

+1 same problem

+1 same problem

+1

You can print this to see that it's not pointed to you component, so you can't access this.state, you can set the icon via setParams

    static navigationOptions = {
    tabBarLabel: 'Notifications',
    tabBarIcon: ({ focused,tintColor }) => (
      focused ? <Image
          source={require('./img/icon-account-selected.png')}
          style={[styles.icon, {tintColor: tintColor}]}
        />;
        :
        <Image
          source={require('./img/icon-account.png')}
          style={[styles.icon, {tintColor: tintColor}]}
        />
    ),
  };

+1 same problem

you will not do setState, you will do setParams
    this.props.navigation.setParams({inRide: true});

and in navigations options
 static navigationOptions = ({ navigation }) => {

    const { params } = navigation.state;
    return {
      header: null,
      tabBarIcon: ({focused}) => {
        if (params && params.inRide) {
          return (
            <Image
              source={Images.IN_RIDE}
            />
          );
        }
        return (
          <Image
            source={Images.START_TRIP_ACTIVE}
          />
        )

Hi! In an effort to get the hundreds of issues on this repo under control I'm closing issues tagged as questions. Please don't take this personally - it's simply something we need to do to get the issues to a manageable point. If you still have a question I encourage you to re-read the docs, ask on StackOverflow, or ask on the #react-navigation Reactiflux channel. Thank you!


vLLM can't find model from llama download

System Info
It's using the versions downloaded by pip install during the llama stack build.
I have an nvidia GPU
Information

[X] The official example scripts
[ ] My own modified scripts

🐛 Describe the bug
I do a llama download and obtain the Llama-3.2-3B model in ~/llama/checkpoints/Llama-3.2-3B
Next I do llama stack build and select vllm as the inference engine, I run the following:
podman run -it --rm -p 5000:5000 --cgroup-conf=memory.high=28g --device nvidia.com/gpu=all -v /home/user/.llama/builds/docker/my-local-stack-run.yaml:/app/llamastack-run.yaml distribution-my-local-stack
It ends with:
Cannot access gated repo for url https://huggingface.co/meta-llama/Llama-3.2-3B/resolve/main/config.json.
Access to model meta-llama/Llama-3.2-3B is restricted. You must have access to it and be authenticated to access it. Please log in.
I guess the build script does not find or include the path to the model as a volume to mount in the container. How do you provide the model in the place that vLLM was told it could be found?
Error logs
Traceback (most recent call last):
File "/usr/local/lib/python3.10/site-packages/huggingface_hub/utils/_http.py", line 406, in hf_raise_for_status
response.raise_for_status()
File "/usr/local/lib/python3.10/site-packages/requests/models.py", line 1024, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 401 Client Error: Unauthorized for url: https://huggingface.co/meta-llama/Llama-3.2-3B/resolve/main/config.json
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/local/lib/python3.10/runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/usr/local/lib/python3.10/runpy.py", line 86, in _run_code
exec(code, run_globals)
File "/usr/local/lib/python3.10/site-packages/llama_stack/distribution/server/server.py", line 347, in
fire.Fire(main)
File "/usr/local/lib/python3.10/site-packages/fire/core.py", line 135, in Fire
component_trace = _Fire(component, args, parsed_flag_args, context, name)
File "/usr/local/lib/python3.10/site-packages/fire/core.py", line 468, in _Fire
component, remaining_args = _CallAndUpdateTrace(
File "/usr/local/lib/python3.10/site-packages/fire/core.py", line 684, in _CallAndUpdateTrace
component = fn(*varargs, **kwargs)
File "/usr/local/lib/python3.10/site-packages/llama_stack/distribution/server/server.py", line 279, in main
impls = asyncio.run(resolve_impls(config))
File "/usr/local/lib/python3.10/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
File "/usr/local/lib/python3.10/asyncio/base_events.py", line 649, in run_until_complete
return future.result()
File "/usr/local/lib/python3.10/site-packages/llama_stack/distribution/resolver.py", line 191, in resolve_impls
impl = await instantiate_provider(
File "/usr/local/lib/python3.10/site-packages/llama_stack/distribution/resolver.py", line 278, in instantiate_provider
impl = await fn(*args)
File "/usr/local/lib/python3.10/site-packages/llama_stack/providers/impls/vllm/init.py", line 16, in get_provider_impl
await impl.initialize()
File "/usr/local/lib/python3.10/site-packages/llama_stack/providers/impls/vllm/vllm.py", line 78, in initialize
self.engine = AsyncLLMEngine.from_engine_args(engine_args)
File "/usr/local/lib/python3.10/site-packages/vllm/engine/async_llm_engine.py", line 664, in from_engine_args
engine_config = engine_args.create_engine_config()
File "/usr/local/lib/python3.10/site-packages/vllm/engine/arg_utils.py", line 903, in create_engine_config
model_config = self.create_model_config()
File "/usr/local/lib/python3.10/site-packages/vllm/engine/arg_utils.py", line 839, in create_model_config
return ModelConfig(
File "/usr/local/lib/python3.10/site-packages/vllm/config.py", line 162, in init
self.hf_config = get_config(self.model, trust_remote_code, revision,
File "/usr/local/lib/python3.10/site-packages/vllm/transformers_utils/config.py", line 148, in get_config
if is_gguf or file_or_path_exists(model,
File "/usr/local/lib/python3.10/site-packages/vllm/transformers_utils/config.py", line 86, in file_or_path_exists
return file_exists(model, config_name, revision=revision, token=token)
File "/usr/local/lib/python3.10/site-packages/huggingface_hub/utils/_validators.py", line 114, in _inner_fn
return fn(*args, **kwargs)
File "/usr/local/lib/python3.10/site-packages/huggingface_hub/hf_api.py", line 2907, in file_exists
get_hf_file_metadata(url, token=token)
File "/usr/local/lib/python3.10/site-packages/huggingface_hub/utils/_validators.py", line 114, in _inner_fn
return fn(*args, **kwargs)
File "/usr/local/lib/python3.10/site-packages/huggingface_hub/file_download.py", line 1296, in get_hf_file_metadata
r = _request_wrapper(
File "/usr/local/lib/python3.10/site-packages/huggingface_hub/file_download.py", line 277, in _request_wrapper
response = _request_wrapper(
File "/usr/local/lib/python3.10/site-packages/huggingface_hub/file_download.py", line 301, in _request_wrapper
hf_raise_for_status(response)
File "/usr/local/lib/python3.10/site-packages/huggingface_hub/utils/_http.py", line 423, in hf_raise_for_status
raise _format(GatedRepoError, message, response) from e
Expected behavior
Would like it to find the model from the host system's ~/.llama directory and run it. This page
https://github.com/meta-llama/llama-stack/blob/main/docs/cli_reference.md  doesn't describe what to do with a downloaded model.
The llama stack build command does not ask if the model is already downloaded when vllm is used (it could look in checkpoints and offer one of those as a default menu item). It might be an improvement to add that question and search for it in ~/.llama once the model name is known.
And lastly, vLLM needs some arguments. (--chat-template, --max-model-len, --enable-auto-tool-choice, etc) I don't see an entry in the yaml that might hold the values that should be passed to it.

OK, done more investigating. If I do this:
huggingface-cli download meta-llama/Llama-3.2-1B
Then I add:
-v ~/.cache/huggingface/hub:/root/.cache/huggingface/hub
to the basic podman command that brings this up. If I enter the container, I can see that it's there.
$ huggingface-cli scan-cache
REPO ID                 REPO TYPE SIZE ON DISK NB FILES LAST_ACCESSED LAST_MODIFIED REFS LOCAL PATH

meta-llama/Llama-3.2-1B model             5.0G       13 4 hours ago   5 hours ago   main /root/.cache/huggingface/hub/models--meta-llama--Llama-3.2-1B
Done in 0.0s. Scanned 1 repo(s) for a total of 5.0G.
However, starting the API server from there is a no go:
[rank0]: Access to model meta-llama/Llama-3.2-1B is restricted. You must have access to it and be authenticated to access it. Please log in.
https://huggingface.co/docs/huggingface_hub/en/guides/manage-cache  says that you have to check for a cache like this:
from huggingface_hub import try_to_load_from_cache, _CACHED_NO_EXIST
filepath = try_to_load_from_cache()
if isinstance(filepath, str):
# file exists and is cached
...
elif filepath is _CACHED_NO_EXIST:
# non-existence of file is cached
...
else:
# file is not cached
...
But
$ cd llama-stack
$ grep -rl try_to_load_from_cache *
$
So, it doesn't look like there is a way to use a cached model.

Why is there a "llama download" that puts models in the wrong place (from a transformers PoV)?
Why isn't there code to use a cache if supplied? Most people download once and can't wait 10's of minutes on a fresh download.
Why is there a difference in the model format that "llama download" creates and "huggingface-cli download" creates? Are they interchangeable?

So, it appears that the trick is that you have to inject your huggingface token into the environment of the container. Then it finds the cache and doesn't download. This is undocumented.
I also understand from reviewing the project that the model download and vllm support came at different times. I'd suggest updating the documentation to say that model download is purely to look at metadata and take it out of the getting started section. Reading the getting started doc it sounds like a required step - which it isn't. Or, pull a format that that transformers can use and where they expect it and mention how to reuse it for local vllm.
I suppose this can be closed out. I now understand how to get local vLLm running, it's just entirely undocumented. vLLM is so complex, I think the remote vLLM code should be uncommented out so that it can be used. I removed the # and it and it just works. It was easier to get running than the local vllm.

Thanks @stevegrubb -- all points correct! We will update the docs.
Do you think there's value in having local (inline) vLLM implementation at all?

Do you think there's value in having local (inline) vLLM implementation at all?
That's a tricky question. If you are doing something simple, there might be a good reason to pack vllm in the same container. But it is memory hungry: 22238MiB /  24564MiB and this is the 1B model. So, you'd really want to quantize the model (--quantization and --dtype) and tell vLLM not to do graphs (--enforce-eager=True). All of this would need to be documented. (Using huggingface-cli to download, where to mount it, injecting the HF token, in addition to passing in GPUs and a full docker/podman command line.) Also, while I'm thinking about this, the gpu_memory_utilization default is a bit low. I think it defaults to 0.3. It needs to be bigger unless you have a huge amount of vram.

I  definitely think the remote::vllm is useful. You have full control of how the model gets served. You can add speculative decoding or even run on a different GPU. If you already have a vllm setup, all you need to do is point the url to it. The configuration of the container is much simpler since you do not need to enable a GPU, extra memory, inject the token, and place the model in the right spot. But you do need to pass "--network host" so that the llama-stack can contact the outside world.
Also, all demos I can find seem to require the safety API. If you have llama_guard_shield, where does that model get served?

Closing this out as I understand the whole recipe now. If there was something to track from this, feel free to re-open.

Yeah I will re-open it just so we track it for updating our docs. Thanks!


New tutorial: a deep dive into the internals of the library

Overview: What does this pull request change?
New document explaining the code flow of rendering an animation from start to finish. Work in progress.
Motivation and Explanation: Why and how do your changes improve the library?
The complexity of the library and the fact that the render loop is not documented properly anywhere really makes it difficult for new contributors to get into the library. This is an attempt at documenting the render flow from start to finish.
Links to added or changed documentation pages
https://manimce--2550.org.readthedocs.build/en/2550/tutorials/deep_dive.html
Further Information and Comments
I am not sure whether this really is a "tutorial". We should maybe rethink the category name for stuff like that.

Reviewer Checklist

[ ] The PR title is descriptive enough for the changelog, and the PR is labeled correctly
[ ] If applicable: newly added non-private functions and classes have a docstring including a short summary and a PARAMETERS section
[ ] If applicable: newly added functions and classes are tested

Looks really good so far. Thank you for this, I really think this will be extremely useful for new animators and contributors. I only have one suggestion: Maybe it would be better to have the ToyExample variables' names be a word instead of a single letter? Like square instead of s, or circle instead of c.
I think these could be benefitial for a couple reasons:

Having the complete variable names makes the whole code very understandable, it would be just plain English, for example:

dot.add_updater(lambda mob: mob.next_to(circle, DOWN))
self.play(Create(dot))
self.play(circle.animate.shift(RIGHT))

It is very simple to understand, you can clearly see what's going on and you don't have to do any translation in your head from d to dot and s to square and so on. What I mean is that it's much more readable, and I think that's important for beginners.

If the library has one-letter variable names, we are encouraging people to use the same variable names, and their animations will surely be more complex than the examples, so the code might not be as readable. If they were to report issues or even create pull requests, they will probably use the same variable names as in the examples, since they consider that to be correct, and the library code cleanliness could deteriorate.

I can see how people could get confused by having square as a variable name and Square as a class, only differing by a single upper case letter. However, python is a case-sensitive language, so the new animators would have to live with that anyway. If that's too big of an issue, we could have another variable name which isn't just one letter and also can't be confused with the classes, like orange_square or something. Would be interesting to hear your thoughts🤔

Looks really good so far. Thank you for this, I really think this will be extremely useful for new animators and contributors.

Thank you! I'll try to finish this up over the next few days.

I only have one suggestion: Maybe it would be better to have the ToyExample variables' names be a word instead of a single letter? Like square instead of s, or circle instead of c.

I agree, good point.

I can see how people could get confused by having square as a variable name and Square as a class, only differing by a single upper case letter. However, python is a case-sensitive language, so the new animators would have to live with that anyway. If that's too big of an issue, we could have another variable name which isn't just one letter and also can't be confused with the classes, like orange_square or something. Aditionally, many of the existing examples have dot or square as variable names. Would be interesting to hear your thoughts🤔

IIRC I thought about that for a while for some of my video tutorials. My solution was to use variable names like orange_square etc to be more explicit and distinguish them cleaner from the classes. We could do something similar here, maybe my_square  etc or something like that will do.

There is now a very rough sketch of the rest of the content in this article. I toured through the render loop on stream in case anyone wants to see my thoughts and more details. I hope to find some time over the next few days to continue fleshing this out.

Another update: this now contains a digression on Mobjects and VMobjects, as well as everything up to the initialization of the orange square. We are getting somewhere!

With the latest commit, the subsection on mobject initialization is complete. Next up will be Scene.add, and then we might actually move into rendering territory. :-)

A thorough explanation of Scene.add has been added. There are two, at most three more subsections that are still missing: the initialization of animations, and the actual description of the render loop. We are probably, like, 75% or so done. (I hope.)

New update, more content ~ there is a readable overview now, and the third chapter (on animations and the render loop) contains everything up to (and not including, yet) rendering the first frame.

The tutorial is now feature-complete and ready for review. I propose to carry out larger changes in follow-up PRs to get this here merged as soon as possible. :-)

Thanks!


Implement a Queue TypeHandler

Adds a TypeHandler for a Queue so that it can be replicated correctly over the network.
Also, fixes Issue #18 in the MasterOfOreon module so this can be tested by:

Activate MasterOfOreon and start a new game.
Assign a number of random tasks in the village.
Exit to main menu and load the game again.
Spawn an Oreon using the Portal, it should perform the task in the correct order.

Hooray Jenkins reported success with all tests good!

Hooray Jenkins reported success with all tests good!


add rustdoc documentation for tl-types

add rustdoc documentation for tl-types so it will be easier to find out methods and constructors description

I will close the issue because I don't plan to do this (keeping the generated documentation in-sync with Telegram's is not something I'm particularly interested in).
Maybe the generated types could link to the official documentation (as that link wouldn't change often), but this would be another issue.


Minting on Node.js guide

Hi,
Playing with the Minting on Node.js guide I stumble upon the following error with the first instruction:
#> npm init .
npm ERR! code EUNSUPPORTED
npm ERR! Unrecognized initializer: .
npm ERR! For more package binary executing power check out `npx`:
npm ERR! https://docs.npmjs.com/cli/commands/npx

Execution environment:
#> node --version
v19.8.1
#> npm --version
9.5.1
#> uname -a
Darwin MacBook-Pro 22.4.0 Darwin Kernel Version 22.4.0: Mon Mar  6 20:59:58 PST 2023; root:xnu-8796.101.5~3/RELEASE_ARM64_T6020 arm64

This is a failure / typo and should be npm init (without the dot).


Removes the Bigdecimal gem requirement

Since this is built into ruby, no reason to fetch the Gem version.

Ignore this - meant this for our custom branch.


Add README for demo-rollup working with `mock-db

CI should test the README.

Fixed by https://github.com/Sovereign-Labs/sovereign-sdk/pull/1193.


Illuminate\Console\Command doesn't support variable number of arguments

Laravel Version: 5.x.x
PHP Version: 7
Database Driver & Version: MySQL 5

Description:
Not sure if this is an issue or feature request.
Currently there is no way to specify an arbitrary number of arguments for console commands.  The closest we can get is something like:
protected $signature = 'my:command {path?}';

But that limits us to N hardcoded commands.  It would be nice to have a syntax like one of the following:
protected $signature = 'my:command {}';
protected $signature = 'my:command {?}';
protected $signature = 'my:command {*}';
protected $signature = 'my:command {...}';

Then we could look in $this->argument() to see the additional arguments, perhaps represented as an array under the corresponding key ('', '*', '...' etc) or something.
Steps To Reproduce:
Try creating a command with the example $signature above.  Then feed it php artisan my:command * which causes the shell glob to pass all of the files in the current directory in as individual arguments.  You will see:
  [Symfony\Component\Console\Exception\RuntimeException]
  Too many arguments, expected arguments "command" "path".

You can use the array format my:command {files*}
Check the docs under "Input Arrays", https://laravel.com/docs/5.4/artisan

Yet it's not possible to pass any type of parameters, like --myparam or --param=yes, any idea?


How to deal with spaces on the DB for MSSQL?

HI
Currently was wondering how to deal with db which have spaces in their name?
example-mssql-db-backup    | 2023-12-08.12:00:29 [INFO] ** [16-<IP_ADDRESS>__'Reportes\ SAP'] Next Backup at 2023-12-08 21:00:00 -05
i tried the following
     - DB16_NAME=Reportes\ SAP
but not sure what's the correct way?
As
in the log i was seeing this
[tiredofit/db-backup:4.0.29 12:07:37 /] $ backup16-now
2023-12-08.12:08:00 [INFO] ** [db-backup16] Starting Manual Backup for db-backup16
2023-12-08.12:08:00 [NOTICE] ** [16-<IP_ADDRESS>__'Reportes\ SAP'] Dumping MSSQL database: ''Reportes\ SAP''
2023-12-08.12:08:01 [INFO] ** [16-<IP_ADDRESS>__'Reportes\ SAP'] DB Backup of 'mssql_'reportes\ sap'_<IP_ADDRESS>_20231208-120800.bak.gz' completed successfully
stat: cannot stat '/tmp/backups/mssql_'\''reportes\ sap'\''_<IP_ADDRESS>_20231208-120800.bak.gz': Invalid argument
date: '/tmp/backups/mssql_'\''reportes\ sap'\''_<IP_ADDRESS>_20231208-120800.bak.gz': Invalid argument
stat: cannot stat '/tmp/backups/mssql_'\''reportes\ sap'\''_<IP_ADDRESS>_20231208-120800.bak.gz': Invalid argument
2023-12-08.12:08:01 [NOTICE] ** [16-<IP_ADDRESS>__'Reportes\ SAP'] Backup of 'mssql_'reportes\ sap'_<IP_ADDRESS>_20231208-120800.bak.gz' created with the size of  bytes
chmod: cannot access '/tmp/backups/mssql_'\''reportes\ sap'\''_<IP_ADDRESS>_20231208-120800.bak.gz': Invalid argument
mv: cannot stat '/tmp/backups/mssql_'\''reportes\ sap'\''_<IP_ADDRESS>_20231208-120800.bak.gz': Invalid argument
2023-12-08.12:08:01 [ERROR] ** [16-<IP_ADDRESS>__'Reportes\ SAP'] Moving of backup 'mssql_'reportes\ sap'_<IP_ADDRESS>_20231208-120800.bak.gz' reported errors
2023-12-08.12:08:01 [NOTICE] ** [16-<IP_ADDRESS>__'Reportes\ SAP'] DB Backup for ''Reportes\ SAP'' time taken: Hours: 0 Minutes: 00 Seconds: 01
2023-12-08.12:08:01 [ERROR] ** [16-<IP_ADDRESS>__'Reportes\ SAP'] Skipping Cleaning up old backups because there were errors in backing up
2023-12-08.12:08:01 [INFO] ** [16-<IP_ADDRESS>__'Reportes\ SAP'] Backup 16 routines finish time: 2023-12-08 12:08:01 -05 with exit code 0
2023-12-08.12:08:01 [NOTICE] ** [16-<IP_ADDRESS>__'Reportes\ SAP'] Backup 16 routines time taken: Hours: 0 Minutes: 00 Seconds: 01

debug version
+ silent run_as_user /opt/mssql-tools18/bin/sqlcmd -C -S <IP_ADDRESS>,1433 -U sa -P 'thepassword' -Q 'BACKUP DATABASE ['\''Reportes\ SAP'\''] TO DISK = N'\''/tmp/backups/mssql_'\''reportes\ sap'\''_<IP_ADDRESS>_20231208-121442.bak'\'' WITH NOFORMAT, NOINIT, NAME = '\'''\''Reportes\ SAP'\''-full'\'', SKIP, NOREWIND, NOUNLOAD, STATS = 10'
+ '[' true = true ']'
+ run_as_user /opt/mssql-tools18/bin/sqlcmd -C -S <IP_ADDRESS>,1433 -U sa -P 'thepassword' -Q 'BACKUP DATABASE ['\''Reportes\ SAP'\''] TO DISK = N'\''/tmp/backups/mssql_'\''reportes\ sap'\''_<IP_ADDRESS>_20231208-121442.bak'\'' WITH NOFORMAT, NOINIT, NAME = '\'''\''Reportes\ SAP'\''-full'\'', SKIP, NOREWIND, NOUNLOAD, STATS = 10'
+ sudo -Eu root /opt/mssql-tools18/bin/sqlcmd -C -S <IP_ADDRESS>,1433 -U sa -P 'thepassword' -Q 'BACKUP DATABASE ['\''Reportes\ SAP'\''] TO DISK = N'\''/tmp/backups/mssql_'\''reportes\ sap'\''_<IP_ADDRESS>_20231208-121442.bak'\'' WITH NOFORMAT, NOINIT, NAME = '\'''\''Reportes\ SAP'\''-full'\'', SKIP, NOREWIND, NOUNLOAD, STATS = 10'
Msg 102, Level 15, State 1, Server HERCULES, Line 1
Incorrect syntax near '\ '.
Msg 319, Level 15, State 1, Server HERCULES, Line 1
Incorrect syntax near the keyword 'with'. If this statement is a common table expression, an xmlnamespaces clause or a change tracking context clause, the previous statement must be terminated with a semicolon.
+ exit_code=0
+ var_true ''
+ '[' '' = true ']'
+ '[' '' = yes ']'

also tried with putting it together without space says db not found
also tried with normal space this is the other debug
+ silent run_as_user /opt/mssql-tools18/bin/sqlcmd -C -S <IP_ADDRESS>,1433 -U sa -P 'thepassword' -Q 'BACKUP DATABASE ['\''Reportes SAP'\''] TO DISK = N'\''/tmp/backups/mssql_'\''reportes sap'\''_<IP_ADDRESS>_20231208-121816.bak'\'' WITH NOFORMAT, NOINIT, NAME = '\'''\''Reportes SAP'\''-full'\'', SKIP, NOREWIND, NOUNLOAD, STATS = 10'
+ '[' true = true ']'
+ run_as_user /opt/mssql-tools18/bin/sqlcmd -C -S <IP_ADDRESS>,1433 -U sa -P 'thepassword' -Q 'BACKUP DATABASE ['\''Reportes SAP'\''] TO DISK = N'\''/tmp/backups/mssql_'\''reportes sap'\''_<IP_ADDRESS>_20231208-121816.bak'\'' WITH NOFORMAT, NOINIT, NAME = '\'''\''Reportes SAP'\''-full'\'', SKIP, NOREWIND, NOUNLOAD, STATS = 10'
+ sudo -Eu root /opt/mssql-tools18/bin/sqlcmd -C -S <IP_ADDRESS>,1433 -U sa -P 'thepassword' -Q 'BACKUP DATABASE ['\''Reportes SAP'\''] TO DISK = N'\''/tmp/backups/mssql_'\''reportes sap'\''_<IP_ADDRESS>_20231208-121816.bak'\'' WITH NOFORMAT, NOINIT, NAME = '\'''\''Reportes SAP'\''-full'\'', SKIP, NOREWIND, NOUNLOAD, STATS = 10'
Msg 102, Level 15, State 1, Server HERCULES, Line 1
Incorrect syntax near 'sap'.
Msg 319, Level 15, State 1, Server HERCULES, Line 1
Incorrect syntax near the keyword 'with'. If this statement is a common table expression, an xmlnamespaces clause or a change tracking context clause, the previous statement must be terminated with a semicolon.
+ exit_code=0
+ var_true ''
+ '[' '' = true ']'
+ '[' '' = yes ']'

Thank you

Not really sure. I have a build at tiredofit/db-backup:develop that may solve what you are looking for perhaps? If it works I will include it in next release.

Hi @tiredofit Thank for the reply, i updated to the dev version, but still shows the same issue when there spaces in the db

OK. I'm not sure then. I tried to wrap it in 'quotes' but that doesn't seem to work. I would recommend trying to figure out the CLI commands and then I can work that into the automation..

gotcha will take a look at it and post back

it seems got it working

[tiredofit/db-backup 18:34:00 /] $ /opt/mssql-tools18/bin/sqlcmd -C -S <IP_ADDRESS>,1433 -U sa -P 'mypassword' -Q "BACKUP DATABASE [Reportes SAP] TO DISK='C:\Backup\backup_file.bak' WITH INIT"
Processed 464 pages for database 'Reportes SAP', file 'Reportes SAP' on file 1.
Processed 1 pages for database 'Reportes SAP', file 'Reportes SAP_log' on file 1.
BACKUP DATABASE successfully processed 465 pages in 0.947 seconds (3.829 MB/sec).

i had to put the brackets

Nice one. I'm wondering though if we're running into quoting issues. Can you show me your docker-compose DBXX_NAME entry (whole line please)

hi there sure thing
      - DB16_TYPE=mssql
      - DB16_HOST=<IP_ADDRESS>
      - DB16_PORT=1433
      - DB16_NAME=Reportes SAP

OK! I see where things have gone off here. This was happening with some other variables where quotes are being added inadvertently.
Can you try with the latest tiredofit/db-backup:develop and then try to execute backup16-now to see if your backup works?
BTW - its impressive to see 16 backup jobs on the same container ;)

Thanks for the reply,
Currently this is the debug log im getting after updating
+ silent run_as_user /opt/mssql-tools18/bin/sqlcmd -C -S <IP_ADDRESS>,1433 -U sa -P 'mypassword' -Q 'BACKUP DATABASE [[Reportes SAP]] TO DISK = N'\''/tmp/backups/16_dbbackup.rCuibe/mssql_[reportes sap]_<IP_ADDRESS>_20231212-193446.bak'\'' WITH NOFORMAT, NOINIT, NAME = '\''[Reportes SAP]-full'\'', SKIP, NOREWIND, NOUNLOAD, STATS = 10'
+ '[' true = true ']'
+ run_as_user /opt/mssql-tools18/bin/sqlcmd -C -S <IP_ADDRESS>,1433 -U sa -P 'mypassword' -Q 'BACKUP DATABASE [[Reportes SAP]] TO DISK = N'\''/tmp/backups/16_dbbackup.rCuibe/mssql_[reportes sap]_<IP_ADDRESS>_20231212-193446.bak'\'' WITH NOFORMAT, NOINIT, NAME = '\''[Reportes SAP]-full'\'', SKIP, NOREWIND, NOUNLOAD, STATS = 10'
+ sudo -Eu root /opt/mssql-tools18/bin/sqlcmd -C -S <IP_ADDRESS>,1433 -U sa -P 'mypassword' -Q 'BACKUP DATABASE [[Reportes SAP]] TO DISK = N'\''/tmp/backups/16_dbbackup.rCuibe/mssql_[reportes sap]_<IP_ADDRESS>_20231212-193446.bak'\'' WITH NOFORMAT, NOINIT, NAME = '\''[Reportes SAP]-full'\'', SKIP, NOREWIND, NOUNLOAD, STATS = 10'
Msg 102, Level 15, State 1, Server HERCULES, Line 1
Incorrect syntax near '.168'.
Msg 105, Level 15, State 1, Server HERCULES, Line 1
Unclosed quotation mark after the character string ', SKIP, NOREWIND, NOUNLOAD, STATS = 10

BTW currently using 43 jobs working amazing

OK, I'm seeing multiple [[ brackets which seems to be the cause here. Can yoi verify to make sure that your DB_NAME doesn't have any [ in there?

yep my bad forgot to remove it there now its working perfectly thank you so much

Great! 4.0.31 is the version with the fix, being built as I write this..
https://github.com/tiredofit/docker-db-backup/commit/c37de5778d5b1fa07b233dec918bc6ceb0c49a8d


Sorting Issue in Collection Laravel 5.1

It seems sorting is not working for collection in laravel5.1
In CollectionEngine.php Line No.231 and Line No. 235 if we add $this->collection = then sorting will work.
 if ( ! empty($column['name'])) {
                    $this->collection = $this->collection->sortBy(function ($row) use ($column) {
                        return $row[$column['name']];
                    });
                } elseif (isset($columns[$order_col])) {
                    $this->collection = $this->collection->sortBy(function ($row) use ($columns, $order_col) {
                        return $row[$columns[$order_col]];
                    });
                }

Thanks for reporting. Should be fixed on v5.3


Add integration with Jetpack Workflow

Link to service: https://jetpackworkflow.com/
Is there a free account option?: No (free for first 14 days)
Describe the solution you'd like
User would like to see the TogglButton integrated with this service.

Hi Jake, thanks for adding this request. As my conversation with Jake, our company use Jetpack Workflow tool for internal workflow management, but we use Toggl for timekeeping. It would be super helpful if we could add integration between the two. I'd like to see a solution similar to Toggl Button <> Trello, or Toggl Button <> Gmail/Google Calendar. Thanks!


Profiling

ISSUE TYPE

Feature Pull Request

SUMMARY
Profile map feature
More Info: https://github.com/hmharsh/botkube/blob/develop/design/BotKube POC for Namespace.md
Note: This feature is not supported for Microsoft Teams and ElasticSearch currently and will not perform any mapping.

@PrasadG193 about
https://github.com/infracloudio/botkube/pull/291#discussion_r450617445
we need this to support backward compatibility (by default admin access will be assigned to specified one single channel if access_conf.yaml file is not available)

About https://github.com/infracloudio/botkube/pull/291#discussion_r450624406
we Hit this in the case when we have to send the specific event to all the channels like a welcome message,
or the events which aren't related to any namespace (like related to PV) will be sent to all channels

About #291 (comment)
Placing this part somewhere is good idea
It can be associated with the value of Profile
but since we are using profile variable much frequently this map will also be copied
should we take it to the staring of executor where it will be assigned only once and can be used same as we are using now? @PrasadG193

I checked this again and you are right, each time we might have a different profile, associating this map with profile value seems better, I am applying the same way

Hey @hmharsh,
Will it be possible for you to rebase this PR with develop?

Hey @PrasadG193, the rebase is possible but according to the current state of the development branch, it requires a lot of re-work, which took some working days, I will surely doing it if I get a temporary release from my project for some time to perform this code changes.

@A-kanksh-a Will it be possible to add documentation around this? We keep docs at https://github.com/infracloudio/botkube-docs and use hugo to build it. Do you mind taking a jab at it?

@hmharsh @PrasadG193
If I run kubectl commands for any namespace (@Botkube get pod -n custom-namespace) which is not listed in namespaces for that profile in access_config.yaml.
Is it expected to get any response or the message Command not supported or you don't have access to run this command. Please run /botkubehelp to see supported commands. ?
Currently, we can perform the operation on any namespace even if it is not listed in the profile.

Pending items:

[ ] Rebase with latest develop
[ ] Update/Add e2e test
[ ] Update docs

Any update on this?
/cc @PrasadG193 @hmharsh

still no updates? :(

Thank you @hmharsh for the contribution. As this PR is outdated with many conflicts, we're closing it.
However, we're happy to inform you all that we still want to implement the multichannel feature with even more flexibility! 🚀 See the issue https://github.com/infracloudio/botkube/issues/628 for the full proposal prepared by @mszostok and all other details 🙂 We are waiting for your feedback!


New rule: No non numeric dimensions

The old sass/linter had a rule to ensure that string interpolated values didn't have units attached to them (because they'd be strings instead of numbers).
This rule replicates that. The tests are the same for the sass/linter rule + this rule, so I have good confidence it'll give the same user experience.

@nex3 fyi

It's probably also a good idea to test that this only applies to unquoted strings.

good call on the test! added a test case for that.

Coverage increased (+0.05%) to 92.128% when pulling aaa3da2e08a337c93e7390c470468229c49b5312 on rambleraptor:no-non-numeric-dimensions into 1b0bdd22c58621567e62fa22cb7638397ae1f845 on kristerkari:master.

@kristerkari - ptal when you can!

@kristerkari - ptal when you can!

Sorry, I have been really busy for the last 2 weeks.
I think that the new rules are okay, but only thing that remains is to think about the naming, are the rules names matching the stylelint naming conventions? Are the rules in the right "category", etc.
I will try to think about the names this weekend, and give suggestions for the names if I can come up with any.


Make lightning white in logo

Change lightning in logo to be white except white logo where it's looks weird
CC: @tomkerkhove
Checklist

[x] Commits are signed with Developer Certificate of Origin (DCO)
[ ] Tests have been added
[ ] A PR is opened to update the documentation on https://github.com/kedacore/keda-docs
[ ] Changelog has been updated

Fixes #

Can you fix the static checks please? Not sure if it's possible in the PNG file

@tomkerkhove should be good now

Hey, btw what is the sparkle feature? I've never seen it before anywhere  else 👀

Hey, btw what is the sparkle feature? I've never seen it before anywhere else 👀

I'll show you, if you earn it ;)

I'll show you, if you earn it ;)

@tomkerkhove I see that it adds an even to timeline, but my main question is - how to turn it on in other repo? Or is it only a beta feature?

You can't, it's in closed beta


Remove unused GetSetMixin

GetSetMixin was not being used anywhere, so this PR removes it

@MatApple I know you looked at the other PR I had up, so maybe you could take a look at this as well?

We have one internally in DCOS-UI too 😞 . Nice cleanup!

That has already been removed here: https://github.com/dcos/dcos-ui/pull/1073
:)

I was just surprised we had one in this repo too!


Calendars not retrieving data

Problem:
The integration stopped working for me.
I  can't pinpoint exactly when, but here is the scenario:

Client ID & secret are correct;

Application is authorized;

o365_calendars.yaml is being (re-)created;

Requested calendars are being registered in HA;

No data is retrieved from office 365 calendar (data attribute remains empty), even there is data present.

This last step is where it goes wrong.
I have 3 calendars listed, all filled with data the next 24hrs, but none is showing any events.
offset_reached: false
data:
friendly_name: myCalendar

- cal_id: !secret
  entities:
  - device_id: myCalendar
    end_offset: 24
    name: My Calendar
    start_offset: 0
    track: true

Versions
Home Assistant Version: 0.109.6
o365 version: v2.1.7
System | HassOS 3.13

It seems that this is related to #61


Allowing arrays to contain arrays and objects

Arrays of Arrays or Arrays of Objects are valid HCL syntax (or at least in the TF version we are using.
This PR adds support for objects and arrays inside arrays

@mfcastellani any concerns nwith this change?

@mfcastellani is this project still maintained?

Hi Martin, yes.
I was travelling and will take a look today.
Sorry for long delay.
Em qui, 14 de fev de 2019 10:00, Martin Etmajer<EMAIL_ADDRESS>escreveu:

@mfcastellani https://github.com/mfcastellani is this project still
maintained?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/mfcastellani/hcl-checker/pull/5#issuecomment-463601778,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AABV0RVhe3JWYwAst79XsxqPRI8YLr0Sks5vNU_CgaJpZM4ZLtvw
.

Thanks, @mfcastellani, this helps a ton!

@mfcastellani please don't forget to craft a release as well. Cheers!

Version 1.1.0 released right now. Thank you @bmalinconico and @metmajer
Closing this issue


Chore/client type

PR-Codex overview
Focus of this PR:
Fixing the types for the readContract function in the viem.ts file.
Detailed summary:

Added type parameter TChain with a default value of undefined to the readContract function.
Updated the function signature to include the new type parameter.

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

/snapshot

/snapshot


add wehe bigquery documentation

http://website.mlab-sandbox.measurementlab.net/tests/wehe/index.html

This change is

when I click the sandbox link I don't see the changes. Should they be visible there?

@phillipa Now that checks have passed yes!

Thanks!


convert json to Datatyp at runtime, datatyp to convert at compiler time is unknown ( help)

i neeed help please.
i become data json, i have no idea about datatype, not from compiler time
i must to convert to typedef struct or union , maybe nested structure
{ "Description": "only test",
"Id": "4242",
"Name":  "MyStruct",          // name of strudture
"Structure": {               // maybe her structure or union
"FieldsSize": 3,      //count member of structre
"StructureType": 0,
"StructuresDefinition":
[
{
"DataType": "x_integer",  // her is first variable datatype
"Description": "onlytest",
"IsOptional": false,     // is pointer!!
"MaxStringLength": 0,
"Name": "var1"           // her is name field name of struct var1
},
{
"DataType": "x_float",
"Description": "onlyfloat",
"IsOptional": true,     // pointer
"MaxStringLength": 0,
"Name": "var2"
}, z
{
"DataType": "x_double",
"Description": "onlydouble",
"IsOptional": false,
"MaxStringLength": 0,
"Name": "var3"
}]
} }
i wnat ot convert AT RUNTIME like this:
typedef struct { var1:int; var2:float; var3:double }MyStruct

or may like this
 {
"type":"struct"
"name:"MyStruct"
"struct":  {
        "var1":"int",
         "var2":float;
        "var3":"double"
}
}

convert AT RUNTIME to
`typedef struct {
 var1:int;
 var2:float;
 var3:double }MyStruct`


DRILL-5152: Enhance the mock data source: better data, SQL access

Provides an enhanced version of the mock data source. See the JIRA entry for motivation, package-info.java for details of operation.
Allows tests to write queries of the form:
select id_i, name_s50 from `mock`.`employee_1K` ...

Where id_i is a field of random, uniformly distributed integers and name_s50 is a VARCHAR column of width 50 of randomly generated strings. The _1K suffix says to generate 1000 rows. The names are just for convenience, the suffixes tell the mock data source what to generate.
Examples of use will appear in a later commit that includes a revised test framework. Existing tests that use the physical plan version of the mock data source work as before.

HI Paul,
Is the mock data source actually in Drill 1.9?  I tried executing this query and it threw errors.
Thx,
—C

On Dec 27, 2016, at 21:54, Paul Rogers<EMAIL_ADDRESS>wrote:
Provides an enhanced version of the mock data source. See the JIRA entry for motivation, package-info.java for details of operation.
Allows tests to write queries of the form:
select id_i, name_s50 from mock.employee_1K ...
Where id_i is a field of random, uniformly distributed integers and name_s50 is a VARCHAR column of width 50 of randomly generated strings. The _1K suffix says to generate 1000 rows. The names are just for convenience, the suffixes tell the mock data source what to generate.
Examples of use will appear in a later commit that includes a revised test framework. Existing tests that use the physical plan version of the mock data source work as before.
You can view, comment on, or merge this pull request online at:
https://github.com/apache/drill/pull/708 https://github.com/apache/drill/pull/708
Commit Summary
DRILL-5152: Enhance the mock data source: better data, SQL access
File Changes
M exec/java-exec/src/main/java/org/apache/drill/exec/store/AbstractRecordReader.java https://github.com/apache/drill/pull/708/files#diff-0 (2)
M exec/java-exec/src/main/java/org/apache/drill/exec/store/StoragePlugin.java https://github.com/apache/drill/pull/708/files#diff-1 (3)
M exec/java-exec/src/main/java/org/apache/drill/exec/store/StoragePluginRegistry.java https://github.com/apache/drill/pull/708/files#diff-2 (2)
M exec/java-exec/src/main/java/org/apache/drill/exec/store/StoragePluginRegistryImpl.java https://github.com/apache/drill/pull/708/files#diff-3 (24)
A exec/java-exec/src/main/java/org/apache/drill/exec/store/mock/ColumnDef.java https://github.com/apache/drill/pull/708/files#diff-4 (178)
A exec/java-exec/src/main/java/org/apache/drill/exec/store/mock/DateGen.java https://github.com/apache/drill/pull/708/files#diff-5 (53)
A exec/java-exec/src/main/java/org/apache/drill/exec/store/mock/DoubleGen.java https://github.com/apache/drill/pull/708/files#diff-6 (42)
A exec/java-exec/src/main/java/org/apache/drill/exec/store/mock/ExtendedMockRecordReader.java https://github.com/apache/drill/pull/708/files#diff-7 (149)
A exec/java-exec/src/main/java/org/apache/drill/exec/store/mock/FieldGen.java https://github.com/apache/drill/pull/708/files#diff-8 (37)
A exec/java-exec/src/main/java/org/apache/drill/exec/store/mock/IntGen.java https://github.com/apache/drill/pull/708/files#diff-9 (42)
M exec/java-exec/src/main/java/org/apache/drill/exec/store/mock/MockGroupScanPOP.java https://github.com/apache/drill/pull/708/files#diff-10 (127)
M exec/java-exec/src/main/java/org/apache/drill/exec/store/mock/MockRecordReader.java https://github.com/apache/drill/pull/708/files#diff-11 (8)
M exec/java-exec/src/main/java/org/apache/drill/exec/store/mock/MockScanBatchCreator.java https://github.com/apache/drill/pull/708/files#diff-12 (8)
M exec/java-exec/src/main/java/org/apache/drill/exec/store/mock/MockStorageEngine.java https://github.com/apache/drill/pull/708/files#diff-13 (79)
M exec/java-exec/src/main/java/org/apache/drill/exec/store/mock/MockStorageEngineConfig.java https://github.com/apache/drill/pull/708/files#diff-14 (9)
M exec/java-exec/src/main/java/org/apache/drill/exec/store/mock/MockStorePOP.java https://github.com/apache/drill/pull/708/files#diff-15 (3)
M exec/java-exec/src/main/java/org/apache/drill/exec/store/mock/MockSubScanPOP.java https://github.com/apache/drill/pull/708/files#diff-16 (20)
A exec/java-exec/src/main/java/org/apache/drill/exec/store/mock/MoneyGen.java https://github.com/apache/drill/pull/708/files#diff-17 (42)
A exec/java-exec/src/main/java/org/apache/drill/exec/store/mock/StringGen.java https://github.com/apache/drill/pull/708/files#diff-18 (49)
A exec/java-exec/src/main/java/org/apache/drill/exec/store/mock/package-info.java https://github.com/apache/drill/pull/708/files#diff-19 (130)
M exec/java-exec/src/test/java/org/apache/drill/exec/TestOpSerialization.java https://github.com/apache/drill/pull/708/files#diff-20 (2)
M exec/java-exec/src/test/java/org/apache/drill/exec/fn/interp/ExpressionInterpreterTest.java https://github.com/apache/drill/pull/708/files#diff-21 (4)
Patch Links:
https://github.com/apache/drill/pull/708.patch https://github.com/apache/drill/pull/708.patch
https://github.com/apache/drill/pull/708.diff https://github.com/apache/drill/pull/708.diff
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub https://github.com/apache/drill/pull/708, or mute the thread https://github.com/notifications/unsubscribe-auth/AFQfviitiJqMVi2vYWaYP7mAceYPFv7Gks5rMc91gaJpZM4LWo0d.

There is a older version, usable only via a physical plan. This PR is for a new version accessible from SQL. With luck, the new version will be available in 1.10 (and in 1.9 developer builds after the PR is accepted.)

+1


it would be a great idea if you pass a file as parameter...

Pipes are great but not always handy and in certain ways, shouldn't truly be necessary if instead a "file.open" was used.

Hi, my first go was to avoid making argument parsing complicated. I wanted to avoid all the hassle. I know that there are marvelous library existing to parse the command line, and maybe I should go to choose one of them now.
Thou, I'm curious of which case you couldn't use pipes. I can't realy see an example. And pipes are often much more agile to use. You don't have to work on files. And writing temporary files is cumbersome.
Anyway, I think your request is valid, and that shyaml probably need to have the ability to read directly its input from file. Any PR going into this direction is encouraged.
I may not work on it myself now, as I don't have many time, and I consider this as a new feature, and not something really impeding the use of shyaml. (unless you can find me good examples where you can't use stdin to feed shyaml).

Here's a use-case that pipes makes pretty hard: using find, xargs, and shyaml.  With a command-line file input, this is easy:
find . -iname \*.yaml | xargs -Ifile shyaml --file file get-value foo.bar

but with the pipe requirement, you have to do something like
find . -iname \*.yaml | xargs -file cat file | shyaml get-value foo.bar

which doesn't work, because the pipe syntax is ambiguous.

I would suggest using:
find . -iname \*.yaml | while read file; do cat "$file" | shyaml get-value foo.bar; done

Anyway, I'm still in favor to add a command line argument to shyaml.


Suggestion: Add cmake interface library

Makes the library easy to add to a cmake project.
Example usage:
add_subdirectory("${CMAKE_SOURCE_DIR}/vendor/metayeti/mINI")

add_executable(MyProject main.cpp)
target_link_libraries(MyProject PUBLIC
  mINI
)

Merged, thank you!


Prevent multiple add timestamp fields fixes Issue #114

This should fix the problem of issue #114
It disables the button when it is clicked once then re-enables it when the timestamp field is deleted.

This should properly also make it into the v0.10 branch.


gmtp: 1.3.10 -> 1.3.11

Semi-automatic update. These checks were done:

built on NixOS
Warning: no binary found that responded to help or version flags. (This warning appears even if the package isn't expected to have binaries.)
found 1.3.11 with grep in /nix/store/8lp6lwxfy7zq94jd2f26vgxc1zs0scfm-gmtp-1.3.11
found 1.3.11 in filename of file in /nix/store/8lp6lwxfy7zq94jd2f26vgxc1zs0scfm-gmtp-1.3.11

cc @pbogdan

Failure on x86_64-darwin (full log)
Partial log (click to expand)
Package ‘gmtp-1.3.11’ in /private/var/lib/ofborg/checkout/repo/38dca4e3aa6bca43ea96d2fcc04e8229/builder/lnl7-mac/pkgs/applications/misc/gmtp/default.nix:21 is not supported on ‘x86_64-darwin’, refusing to evaluate.

a) For `nixos-rebuild` you can set
  { nixpkgs.config.allowBroken = true; }
in configuration.nix to override this.

b) For `nix-env`, `nix-build`, `nix-shell` or any other Nix command you can add
  { allowBroken = true; }
to ~/.config/nixpkgs/config.nix.

Success on aarch64-linux (full log)
Partial log (click to expand)
glibPreFixupPhase
post-installation fixup
Wrapping program /nix/store/vp2b9ma8j6h3nyq2l9jbqfv2dvd8j1x4-gmtp-1.3.11/bin/gmtp
shrinking RPATHs of ELF executables and libraries in /nix/store/vp2b9ma8j6h3nyq2l9jbqfv2dvd8j1x4-gmtp-1.3.11
shrinking /nix/store/vp2b9ma8j6h3nyq2l9jbqfv2dvd8j1x4-gmtp-1.3.11/bin/.gmtp-wrapped
strip is /nix/store/lvx1acn1ig1j2km8jds5x3ggh3f2wa8v-binutils-2.28.1/bin/strip
stripping (with command strip and flags -S) in /nix/store/vp2b9ma8j6h3nyq2l9jbqfv2dvd8j1x4-gmtp-1.3.11/bin
patching script interpreter paths in /nix/store/vp2b9ma8j6h3nyq2l9jbqfv2dvd8j1x4-gmtp-1.3.11
checking for references to /build in /nix/store/vp2b9ma8j6h3nyq2l9jbqfv2dvd8j1x4-gmtp-1.3.11...
/nix/store/vp2b9ma8j6h3nyq2l9jbqfv2dvd8j1x4-gmtp-1.3.11

Success on x86_64-linux (full log)
Partial log (click to expand)
glibPreFixupPhase
post-installation fixup
Wrapping program /nix/store/8lp6lwxfy7zq94jd2f26vgxc1zs0scfm-gmtp-1.3.11/bin/gmtp
shrinking RPATHs of ELF executables and libraries in /nix/store/8lp6lwxfy7zq94jd2f26vgxc1zs0scfm-gmtp-1.3.11
shrinking /nix/store/8lp6lwxfy7zq94jd2f26vgxc1zs0scfm-gmtp-1.3.11/bin/.gmtp-wrapped
strip is /nix/store/b0zlxla7dmy1iwc3g459rjznx59797xy-binutils-2.28.1/bin/strip
stripping (with command strip and flags -S) in /nix/store/8lp6lwxfy7zq94jd2f26vgxc1zs0scfm-gmtp-1.3.11/bin
patching script interpreter paths in /nix/store/8lp6lwxfy7zq94jd2f26vgxc1zs0scfm-gmtp-1.3.11
checking for references to /tmp/nix-build-gmtp-1.3.11.drv-0 in /nix/store/8lp6lwxfy7zq94jd2f26vgxc1zs0scfm-gmtp-1.3.11...
/nix/store/8lp6lwxfy7zq94jd2f26vgxc1zs0scfm-gmtp-1.3.11


Remove duplicate "videos" item from table of contents.

I made some quick fixes to the README.

Thanks @jdori!


fix compilation error

fixes suhailshergill/extensible-effects#62
seems like the type-checker needs a little hand-holding. what is interesting is
the fact that the example is not all that different from that in
HasqlExample.hs, yet requires greater greater type annotation overhead.
as mentioned in 6adc673 the newer implementation of Eff might help with this
(suhailshergill/extensible-effects#56).

@AndrewRademacher 2e176f5 explains partially why HasqlExample.hs works (it uses the language extension). i say partially, because we still need to inline loop.

@suhailshergill, thank you for tearing into my code to diagnose the problem. I'm very glad to know that I'm not completely insane and that the example are actually the same. I'll subscribe to the #56, and try the new version of Eff against the original example.


FEAT: Added Twitter Screenshot section in Homepage

Closes
#90 Adding some Twitter Screenshot section in Homepage
Description

Created a shuffle util function for tweet array for dynamic content
Created twitter screenshot section under main section and above feature section

Commit the lockfile also please


a handy way to store userData for each rigid-body

The main change is pass the TS set to the rigidbody class instead of the rawSet, this way will be more flexible, and maybe for later enhancements on TS side.
Tested:
create body from desc
get body from world
remove from world
world.free
forEach
forEachActive
modify userData get/set on the fly

results:

CI check failed,
because the Map class is in ^ES2015 profile.
no error found on local compiling


NodeStageVolume: check for VolumeCapability in request

Lack of this check causes failure with newest csi-sanity
Fixes: #185

I re-checked this change does not affect csi-sanity test with currently fixed version, runs ok, let's merge...


Doesn't work with Bubblewrap Gem on OSX - duplicates APP constant

Tried to load motion-flow into a project but it seems to cause an issue where motion-flow is using the definition of App (which Bubble-wrap has been using for years)
> /Library/RubyMotion/lib/motion/project/template/ios.rb:29: warning: already initialized constant App
> /Library/RubyMotion/lib/motion/project/template/osx.rb:28: warning: previous definition of App was here
> rake aborted!
> NoMethodError: undefined method `start_with?' for #<Array:0x007f9e1c969210>
> /Users/user/.rvm/gems/ruby-2.2.1/gems/motion-flow-0.1.3/lib/cocoa.rb:27:in `block (3 levels) in <top (required)>'
> /Users/user/.rvm/gems/ruby-2.2.1/gems/motion-flow-0.1.3/lib/cocoa.rb:27:in `delete_if'
> /Users/user/.rvm/gems/ruby-2.2.1/gems/motion-flow-0.1.3/lib/cocoa.rb:27:in `block (2 levels) in <top (required)>'
> /Users/user/.rvm/gems/ruby-2.2.1/gems/motion-flow-0.1.3/lib/cocoa.rb:26:in `each'
> /Users/user/.rvm/gems/ruby-2.2.1/gems/motion-flow-0.1.3/lib/cocoa.rb:26:in `block in <top (required)>'
> /Users/user/.rvm/gems/ruby-2.2.1/gems/bubble-wrap-1.9.5/lib/bubble-wrap/ext/motion_project_app.rb:10:in `call'
> /Users/user/.rvm/gems/ruby-2.2.1/gems/bubble-wrap-1.9.5/lib/bubble-wrap/ext/motion_project_app.rb:10:in `block in setup_with_bubblewrap'
> /Library/RubyMotion/lib/motion/project/config.rb:121:in `call'
> /Library/RubyMotion/lib/motion/project/config.rb:121:in `block in setup'
> /Library/RubyMotion/lib/motion/project/config.rb:121:in `each'
> /Library/RubyMotion/lib/motion/project/config.rb:121:in `setup'
> /Library/RubyMotion/lib/motion/project/app.rb:66:in `config'
> /Users/user/.rvm/gems/ruby-2.2.1/gems/bubble-wrap-1.9.5/lib/bubble-wrap/ext/motion_project_app.rb:24:in `config_with_bubblewrap'
> /Library/RubyMotion/lib/motion/project/app.rb:74:in `setup'
> /Users/user/.rvm/gems/ruby-2.2.1/gems/bubble-wrap-1.9.5/lib/bubble-wrap/ext/motion_project_app.rb:13:in `setup_with_bubblewrap'
> /Users/user/Dropbox/Code_and_Programming/rubymotion/eos_exhibit_apps/control-application/Rakefile:11:in `<top (required)>'
> /Users/user/.rvm/gems/ruby-2.2.1/bin/ruby_executable_hooks:15:in `eval'
> /Users/user/.rvm/gems/ruby-2.2.1/bin/ruby_executable_hooks:15:in `<main>'
>

AFAIK we don't use any "App" constant in Flow.
Also  you are not crashing on this but on : > NoMethodError: undefined method `start_with?' for #Array:0x007f9e1c969210 as stated in your log.
So we are probably clashing with something bubble-wrap is doing with app.files. Flow is currently not supporting/testing third party gems as Flow is still early work, so this is expected.
Thanks for reporting and feel free to help us on supporting BW.


Small optimization in AC plus removal of two annoying repetitive messages in Viewer

Try #2

Closing again and resubmitting for Travis...


✨ [REQUEST] Transmission UI new version

Checked

[X] If a new addon, I have checked on  Google that such as addon doesn't already exists
[X] If a new feature, I have searched in the discussions & issues that it was not already covered

Which addon?
Transmission
Is your feature request related to a problem? Please describe
No.
Describe the solution you'd like
As I see the frontend used in this add-on is not developed anymore. The last version is from 2020.
(https://github.com/ronggang/transmission-web-control/releases)
As I see, there is a fork, which is continuously developed.
https://github.com/transmission-web-control/transmission-web-control
(I found that here: https://github.com/ronggang/transmission-web-control/issues/625 )
I do not know, how I can fork a new addon from your version and change the UI source to this, but if you have some time, maybe you can change the source of the UI in your addon. If you can create a beta test version, I may check that. Thanks!

Hi, it works only one issue : everything is in chinese by default :-)

I've set the code, but I'm sorry as everything is in chinese by default until selected otherwise I'm not sure we should implement it... Except if you find another way - thanks

Implemented in the main addon

Thanks!
It is still loading in Chinese, so maybe somehow it should be force to English. But I could change it to Hungarian, so for me, it is good. Thanks again.
(I opened a ticket there to handle better the language of the browser, or build an English version too.)
https://github.com/transmission-web-control/transmission-web-control/issues/170

On my system it is now working! I'll post on the other thread too


ENH: OpenMP Threading

The current VIC MPI approach does not utilize threading for shared-memory on-node calculations. This might be expected to cause performance slow downs coming from a large number of MPI calls. Planned profiling and scaling tests will shed light on this. Threading using OpenMP is one approach that could offer parallel performance improvements that reduce the number of MPI tasks.
I recently put together an example of how this could be used, it is in a (currently) closed PR: #521.

closed via #735


Launchpad fix sell_coin

Fix sell coin to get the correct amount with the bonding curve, the token already buy.
The sell function need to:

[ ] calculate the amount of sellable token get by the quote amount sent.
[ ] Verify if user have already buy the amount of token.
[ ] Update the states

Located here:
https://github.com/AFK-AlignedFamKernel/afk_monorepo/blob/de78feed22d2a1f43e0fe4d22afa0dbf48434c2e/onchain/cairo/src/launchpad/launchpad.cairo#L571

I am applying to this issue via OnlyDust platform.
My background and how it can be leveraged
hi

assing @MSghais

I am applying to this issue via OnlyDust platform.
My background and how it can be leveraged
Assign

I am applying to this issue via OnlyDust platform.
My background and how it can be leveraged
I am a Cairo smart contract developer with experience working on projects such as Just Art Peace, Dojo, Kart, TBA, and Shinigami. Before transitioning to Cairo development, I was a backend developer specializing in Rust.
My recent work with cairo starknet

https://github.com/horuslabsio/TBA/pull/45
https://github.com/horuslabsio/karst-core/pull/60
https://github.com/keep-starknet-strange/art-peace/pull/121
https://github.com/dojoengine/dojo/pull/1912
https://github.com/keep-starknet-strange/art-peace/pull/32
https://github.com/BlockheaderWeb3-Community/dauction-starknet/pull/4

I am applying to this issue via OnlyDust platform.
My background and how it can be leveraged
I have experience in Cairo and smart contract development, including implementing and refining functionality in complex systems. I would approach this problem by:

Reviewing the Current Code: Examine the existing sell function to understand its current implementation and identify gaps.
Implementing Calculations: Update the function to correctly calculate the sellable amount based on the quote and bonding curve logic.
Verifying User Balance: Ensure the function checks if the user holds the necessary amount of tokens before processing the sale.
Updating States: Adjust the state management to reflect changes after a successful sale.
Testing: Validate the updated function with various scenarios to ensure correctness and robustness.

How I plan on tackling this issue
To address the issue with the sell function:

Understand the Bonding Curve: Review the bonding curve logic and how it determines the amount of tokens based on the quote amount.
Update Calculation: Adjust the function to accurately compute the sellable tokens from the quote amount using the bonding curve formula.
Check User Holdings: Implement verification to ensure the user has purchased the required amount of tokens before allowing the sale.
Update State Management: Ensure the function updates relevant states to reflect the new token amounts and user balances correctly.

I am applying to this issue via OnlyDust platform.
My background and how it can be leveraged
I am a blockchain developer
With background on JavaScript
How I plan on tackling this issue
I would approach this issue with following steps
Calculating the Correct Sellable Token Amount:
The sell function should correctly calculate the amount of Launchpad tokens that can be sold for the given quote token amount.
This calculation should take into account the current price of the Launchpad token, as determined by the bonding curve.
Ensure that the calculation accurately reflects the token price at the current total supply, and that the result is rounded correctly to avoid any loss of precision.
Verifying Existing Token Balances:
Before allowing the sale to proceed, the sell function should verify that the user has a sufficient balance of the Launchpad tokens to sell.
This can be done by checking the user's balance against the calculated sellable token amount.
Ensure that the contract accurately tracks the user's Launchpad token balance and updates it correctly during the buy and sell operations.
Updating Contract States:
After a successful sell operation, the contract's states should be updated accordingly:
The total supply of Launchpad tokens should be decreased by the amount sold.
The user's Launchpad token balance should be decreased by the amount sold.
The quote token amount received from the sale should be transferred to the user's account.
Ensure that these state updates are performed atomically and that the contract's internal consistency is maintained.
Emitting Relevant Events:
The sell function should emit relevant events, such as TokenSold, to notify off-chain systems and users about the sale transaction.
The event data should include the details of the sale, such as the user's address, the amount of Launchpad tokens sold, and the quote token amount received.
Error Handling and Validation:
Implement proper error handling and validation checks within the sell function to ensure that it can only be called under the correct conditions.
This includes validating the input parameters, checking for sufficient Launchpad token balances, and handling any potential edge cases or exceptions.
Maintainability and Readability:
Ensure the code is well-structured, with clear function and variable naming, and appropriate comments explaining the purpose and behavior of the sell function.
Consider breaking down the sell function into smaller, reusable helper functions to improve code organization and readability.

I am applying to this issue via OnlyDust platform.
My background and how it can be leveraged
Hi, I am a cairo dev with experience contributing to lots of other cairo projects, you can check my profile to confirm this.
How I plan on tackling this issue

First off, I ll go through the repo to understand the project better.
I'll implement a logics to calculate amount of sellable token, verify if user has bought the amount of token and then update state
I'll be using asserts to check that necessary conditions are meet if need be.
Then i'll write a robust test ensuring all test case pass and the function behaves as expected.
Format the code with scarb fmt and if I have any other questions I'll reach out in the telegram group

I am applying to this issue via OnlyDust platform.
My background and how it can be leveraged
I'm Poulav Bhowmick, a software engineer at Invisible Studios with a robust background in TypeScript, Rust, Solidity Cairo, fullstack development and blockchain technology. My experience includes building robust applications, optimizing functionalities and blockchain integration. I have actively participated in events and open source contributions, enhancing my capability to tackle real-world tech challenges. My projects can be viewed on my GitHub Profile and OnlyDust Profile. Plus I´m active member of Starknet community🇷.
How I plan on tackling this issue
I'll address the issue with the sell_coin function by implementing the following steps:
Calculate Sellable Tokens:
I'll first calculate the amount of tokens that can be sold based on the quote_amount provided. This calculation will take into account the bonding curve formula, ensuring that the correct number of tokens is derived from the quoted amount. Verify Purchase History:
Before proceeding with the sale, I'll add a verification step to ensure that the user has already purchased the corresponding amount of tokens. This will involve checking the user's share in the contract state and confirming that the amount they wish to sell does not exceed their purchased balance. Update Contract State:
Once the sale is validated, I'll update the relevant contract states. This includes: Reducing the user's token balance by the sold amount. Adjusting the pool's total supply and liquidity based on the sale. Calculating and applying any protocol and creator fees associated with the transaction. Transferring the correct amount of tokens or quote tokens between the user's address and the contract. Emit Events:
After successfully updating the states, I'll ensure that appropriate events are emitted to reflect the transaction. This will include details like the amount sold, the price received, and the fees deducted. Testing:
I'll also write unit tests to verify the correctness of the sell_coin function with various edge cases, including scenarios where the user attempts to sell more tokens than they own or where the bonding curve might affect the pricing. This approach will ensure that the sell_coin function correctly calculates and processes token sales according to the bonding curve, maintaining the integrity of the marketplace.
ETA- 1-2 days

Gm! I appreciate the description and the ETA etc in your application! Just assigned one other person that's want to work on Cairo side before you (we discuss it)
Can you the AFK TG group please https://t.me/afk_aligned_fam_kernel? Also ping me in TG, my handle is MSG_Encrypted.
We can discuss other issues incoming in the Contract side for Cairo and Solidity

https://diwakar-portfolio.vercel.app/  i want to work on this issue

I am applying to this issue via OnlyDust platform.
My background and how it can be leveraged
I am a blockchain and DeFi developer . I am having experience of 8 months . I am currently working as a Blockchain Researcher and Developer. My Experience in programming language like Go , Rust , Java will help me to solve this issue.

I will like to work on this

hey, im willing to work on this issue.

Hi @MSghais !
Do you still need some helps on this task ?


Does setvars need to run before make?

https://github.com/oneapi-src/oneAPI-samples/blob/d9c80018a09b14f9a04ab06dab0472fab15f1c9d/DirectProgramming/C%2B%2B/CombinationalLogic/MandelbrotOMP/README.md?plain=1#L64
The instructions do not mention the need to source setvars before building the program. Should I add them, or does Mandelbrot OMP not need setvars?
@tomlenth @akertesz @ethanhirsch

I believe our sample readme's may not always be consistent around mention of setvars.  If the user has already run it, we obviously don't want them re-running it. So, in many samples it's implied that it's already run. the DPCPP flavor of Mandelbrot includes the optional setvars content that we probably should standardize around for the samples, including this OMP version.


Remove --parallel from run|upgrade command

Based on our conversation, we should remove the option to use the parallel sub-command for run|upgrade and always parallel when possible

Thanks @gabrielcocenza for opening the issue. I will add those changes to my CLI re-structuring PRs


Throws 'FormatException: Invalid Base32 characters' when padding is missing

When providing a Base32 string to base32.decode such as ADWADWADWADDWADWADDWADA an error is thrown. The error states Invalid Base32 characters which is incorrect as the issue is with padding, not invalid characters.
A solution could be to automatically add padding to strings, or throw another, more explanatory error message to prevent hours of debugging.
A solution found here.

Oof, ok, I'll fix this later today. That is a regression with all the changes I made recently. My apologies. I will also add a test to catch future regressions like this.

Ok, this should be fixed in 2.1.3, I auto pad to the appropriate length when needed for encodings that have padding. let me know if you have other issues.

This works perfectly! Thank you for such a quick fix! :)


[Bug] Minor: pending workspace background colour is incorrect

Describe the bug
The background colour used for pending workspaces is orange, the same as for Stopped workspaces:

For pending workspaces however, it should be yellow, to match the menu:

To Reproduce
Steps to reproduce the behavior:

Go to Workspaces
Click on Create Research Workspace
Observe that while the workspace is launching, 'PENDING' shows with an orange background

Expected behavior
'PENDING' to display with a yellow background (or at least, a different background to 'STOPPED').
Versions (please complete the following information):

5.0.0

Additional context
This is obviously quite minor! Just something I noticed, that I thought I'd record. I will submit a PR.

Hi @tdmalone ,
Thanks for your contribution! We're working on getting the PR merged.
Thanks,
Yanyu


Automated Package Upgrade

:tada: This PR is included in version 7.7.168 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Updated heading levels and spacing

Changed some paragraphs with class of a heading into headings and updated all headings to be the same level (making sure they have the correct hierarchy) matching the GDS guidelines and templates.
Also added the missing divs on the dashboard page and changed 'Transfer Complete' to 'Transfer complete' to be consistent with our wording.

It actually did break a couple of end-to-end tests. I have just fixed them and created a PR and will merge both PRs once that is approved. Thank you Suzanne for helping me.


Add task reference name to TaskSummary

Could the task reference name be added to TaskSummary returned by task search?
Our use case is that we are adding some metadata as static inputs to tasks to group them for reporting reasons and use that to get the task processing times by category at the end of the workflow. Some of the tasks and sub-workflows have large inputs/outputs though (stored externally) so we'd like to avoid retrieving those to get this metadata from there. Instead we'd like to get only the workflow definitions and the tasks' start/end times to achieve this. But currently it is not possible to uniquely identify the tasks returned by the search in the definitions as only the workflow name is returned under workflowType but not the task reference name.

Hi @hs-petko, how was this issue addressed ?
Was referenceTaskName attribute added?

Hi @charybr, I don't remember for sure but I think we just changed the implementation on our end, so that we don't need this.


Display more informative pull-request error when head repository is not a fork

$ hub pull-request
Error creating pull request: Unprocessable Entity (HTTP 422)
Invalid value for "head"

Just got the above error. Searching found: https://github.com/github/hub/issues/1258
Turns out that was NOT the issue. I figured it out, but this is still a bug.
Let's call the repo foo. It came from user userone. So userone/foo. I cloned it, and github displays a little: forked from userone/foo message.
Fast forward a year, and people abandoned that fork, and someone pushed a new version to newuser/foo. I now write a patch locally. And then I run:
git push purpleidea bug/somefix
and then:
hub pull-request
I get the above issue. It's not obvious how you can fix this in the webui to point to the new upstream. Also the CLI bails with the above error.
The only fix I could find was deleting my github copy of the repo, and doing a hub fork to push a new copy.
Hopefully this well explained reproducer fixes this.

Thank you for reporting.

Fast forward a year, and people abandoned that fork, and someone pushed a new version to newuser/foo. I now write a patch locally. And then I run:

Just to clarify: is newuser/foo also a fork of userone/foo, or is it a GitHub repo that is a “source” (i.e. not a fork of anything) that just had all the historical commits pushed to?

@mislav It all depends on how GitHub internally decides what a "fork is". TBH, if you could answer that question, I'd love to know.
All I can confirm is that the two git trees have the same root commit at least. Whether "newuser" happened because someone either:

"clicked the fork button"

or

cloned from userone/foo manually, and then pushed to newuser/foo with git

But I don't know which. Should be pretty easy to reproduce this bug following both of these two scenarios and letting us know if it was one or both that causes it. Also if you want to let me know how the "fork from" message heuristic works, I'd love to know!
Thanks

@purpleidea How GitHub decides that something is a fork is not internal. Forks are repositories that were either created by the “Fork” button or explicitly through the API (such as via the hub fork command). Repositories that are forks say “Fork of OWNER/REPO” and thus reference their parent repository in both the web interface and the API.
It's only possible to submit PRs to other repositories if they belong to the same “network”, i.e. that you're either submitting a PR from a fork to the parent repo, or to another fork of the same repo.

cloned from userone/foo manually, and then pushed to newuser/foo with git

If that is what happened, then it was expected that you get a 422 validation error, since it's not possible to open a PR from purpleidea/foo to newuser/foo since they aren't in the same network, even though they share most of the same git objects.

Closing because this is an edge case caused by the fact that newuser/foo is not a real GitHub fork of userone/foo and therefore opening pull requests between those repositories is not possible.

Disappointed to see this closed. If a "fork" can only be created by using a GitHub specific API (the fork button or API equivalent) then it's an unfortunate proprietary add-on that doesn't make much sense IMO. A real fork should also exist if you git clone a repo and then git push the same repo somewhere. Otherwise I could do this to avoid being labelled as a "fork" and thus convince folks I'm the "original".

If a "fork" can only be created by using a GitHub specific API (the fork button or API equivalent) then it's an unfortunate proprietary add-on that doesn't make much sense IMO. A real fork should also exist if you git clone a repo and then git push the same repo somewhere.

You are welcome to write to<EMAIL_ADDRESS>to suggest having this changed on GitHub. This repo is for a command-line tool called hub which interfaces with GitHub via its API. It can only do what is possible to do via GitHub API, and currently it's not possible to submit PRs to another repo that is not in the same “network” as your repo. Hub's issue tracker is not a feature request tracker for GitHub.

You are welcome to write to<EMAIL_ADDRESS>to suggest having this changed on GitHub. This repo is for a command-line tool called hub which interfaces with GitHub via its API. It can only do what is possible to do via GitHub API, and currently it's not possible to submit PRs to another repo that is not in the same “network” as your repo. Hub's issue tracker is not a feature request tracker for GitHub.

That's fair, however since this is under the github/ family and AFAICT you're github stuff and obviously very knowledgeable about the issue, perhaps you'd have a better chance communicating this point if you agree. If you don't agree, please let me know!
Thanks!

Is there any hope to making this actually work? Over at Bitcoin Core, we're trying to split GUI development into a new bitcoin-core/gui fork, and finding every developer needs to re-fork that to submit pull requests... (And GitHub also won't let us have multiple "forks" under the same organisation, so we can't even workaround it that way!)

@luke-jr I do not believe that this platform restriction will be lifted anytime in the foreseeable future. GitHub pull requests will have to be made from repositories that are explicitly a "fork" of a parent repository. I'm sorry for the inconvenience.

How about being able to have multiple "forks" in the same organisation with different names? (I think that used to be possible, but seems to no longer be?)

How about being able to have multiple "forks" in the same organisation with different names?

I don't think that's possible either; sorry! I think that GitHub assumes that a single entity should only ever need at most one fork of something.
Anyway, I hope you understand that this project is an API client for GitHub and not a space for feature requests. The github.community site might be a better bet: https://github.community/t/feature-request-team-fork-within-organization/1929


fatal error : Host must be a string

as #2458 mention  i face the error Exception Host must be a string
as #2458  mentioned i add the if ($asciiHost === false || $asciiHost === null) {  instead of  if ($asciiHost === false) { but another error comes up and it didnt solve my problem.
Fatal error: Uncaught GuzzleHttp\Exception\InvalidArgumentException: IDN conversion failed in .../translate/vendor/guzzlehttp/guzzle/src/Client.php:243 Stack trace: #0 .../translate/vendor/guzzlehttp/guzzle/src/Client.php(156): GuzzleHttp\Client->buildUri(Object(GuzzleHttp\Psr7\Uri), Array) #1 .../translate/vendor/guzzlehttp/guzzle/src/Client.php(184): GuzzleHttp\Client->requestAsync('get', 'https://transla...', Array) #2 .../translate/vendor/guzzlehttp/guzzle/src/Client.php(97): GuzzleHttp\Client->request('get', 'https://transla...', Array) #3 .../translate/vendor/stichoza/google-translate-php/src/GoogleTranslate.php(304): GuzzleHttp\Client->__call('get', Array) #4 .../translate/vendor/guzzlehttp/guzzle/src/Client.php on line 243
Can you help me how to fix it?

Have you upgraded guzzle? The problem in #2458 was fixed in v6.5.2 if I remember correctly. There's been more releases since but you don't mention what version you're using

@Mark-H I am using v 6.5.0, i will update it and announce you about the result.

@nadia-am Did it work?

@Nyholm yes it did thanks alot.


Support for a global AbortController

I have a weird use case where I want to abort any and all needle requests when a user chooses to do so.
How I have it setup right now using node-fetch is I'm creating a default instance that patches in an AbortController signal, this in turn is used in every fetch call I make using this instance.
this._aborter = new AbortController();
this._fetch = defaults(_fetch, {
   timeout: 120000, // can be overridden as necessary per request
   signal: this._aborter.signal
});

It would be nice if needle supported something similar (if it already does I apologize as I couldn't find any documentation on it).
this._aborter = new AbortController();
this._needle = needle.defaults({
   timeout: 120000, // can be overridden as necessary per request
   signal: this._aborter.signal // <-- this being passed to the default config would allow any needle request to be cancelled when the signal is triggered.
});

I'm also interested in this, one dirty solution i found for now is:
having an event emitter:
const event = new events.EventEmitter()

wrap all request in a promise:
new Promise(function (resolve, reject) {
			let b = needle.get('https://speed.hetzner.de/10GB.bin', options)
			event.on('stop', (reason) => {
				reject(reason + ' from #1')
			})
	}).catch(e => console.log(e))

new Promise(function (resolve, reject) {
		let b = needle.get('https://speed.hetzner.de/10GB.bin', options)
		event.on('stop', (reason) => {
			reject(reason + ' from #2')
		})
}).catch(e => console.log(e))

and stop them later in the code:
setTimeout(() => {
	event.emit('stop', 'timeout')
}, 3000);

Just like @walmat  i also would like the signal option which we have as default in fetch libraries (node-fetch/axios/etc) on which we can put the abortController signal: AbortSignal. I don't want to hack around it. Some libraries gave a timeout option but the signal is more to spec. And i was surprised not to see it in this library. Will this feature land here?

Definitely yes. If someone can submit a PR it would be great. Otherwise I can try to look at this during the weekend.


Inter-component data binding for Polymer elements does not work

Originally opened as dart-lang/sdk#19794
This issue was originally filed by<EMAIL_ADDRESS>
Steps will reproduce the problem:
The following code should take the value from the <input> and display it in the <span tag:

<!DOCTYPE html>

    <link rel="import" href="packages/polymer/polymer.html">
    <link rel="import" href="packages/core_elements/core_input.html">

DPIssueTest

    <polymer-element name="test-element">
        <template>
            <core-input placeholder="Type something..." value="{{ inputVal }}"></core-input>

Input value: {{ inputVal }}
        </template>

    </polymer-element>
    <test-element></test-element>

I would expect that {{inputVal}} contains the <input> value, but instead I get nothing. It works in the JS version.
Versions:
* Dart 1.5.1
* polymer 0.11.0+5
* polymer_expressions 0.11.2
* core_elements 0.0.6
* web_components 0.4.0

 Comment by zoechi

Do you have the same issue when you use a standard DOM input element instead of core_input?
There was a problem recently that binding doesn't work when field has an initial value (couldn't find the issue though). Can you please try
@observable var inputVal; // without  = ""

 Comment by floitschG

Added Area-Pkg, Pkg-Polymer, Triaged labels.

 Comment by larsbak

I tried the paper version on top of polymer and the broken two-way data binding makes the paper elements useless. Below is a snippet of the code that does not work.
I changed the priority to high and I'm certain this issue will frustrate many developers that try to use paper elements.
//Lars
      <paper-radio-group selected="{{selectedIndex}}">
         <paper-radio-button name="small" label="Small"></paper-radio-button>
         <paper-radio-button name="medium" label="Medium"></paper-radio-button>
         <paper-radio-button name="large" label="Large"></paper-radio-button>
      </paper-radio-group>
      <paper-slider min="10" max="200" value="110"></paper-slider>
      <button on-click="{{increment}}">Click me</button>

      (click count: {{selectedIndex}})

Removed Priority-Medium label.
Added Priority-High label.

 Comment by sigmundch

Removed this from the 1.6 milestone.
Added Polymer-P-1 label.

This comment was originally written by<EMAIL_ADDRESS>
Lars,
let me know if I can help.
Proud to be a Dane :)
/Anders

 Comment by sigmundch

The interoperability between elements written in JS and elements in Dart is a bit quirky right now when it comes to data-bindings. In particular, bindings that you expect to be two way, might only work 1-way, and they might only work for primitive values.
Two-way binding works on <input> because the template-binding system listens on the 'input' event in <input> elements. This is not generalized to listen on elements that simulate being input elements, unfortunately. But, you can use the same trick to get the same effect on your code. THe <core-input> element exposes an 'input' event that you can listen to to update your element. For example, you can write:
  <core-input value="{{ inputVal }}" on-input="{{doSomething}}"></core-input>
and use the on-input event to update your inputVal.
There are some things we are working on to make the interoperability better, though. Here is a CL underway that should make this better:
https://codereview.chromium.org/355133002/

Added this to the 1.6 milestone.
Removed Priority-Unassigned label.
Added Priority-Medium label.

This comment was originally written by<EMAIL_ADDRESS>
Without initializing (@observable var inputVal;) it still does not work.
However, using a standard input DOM element works. Eg:
 <input placeholder="Type something..." value="{{ inputVal }}"></input>

Input value: {{ inputVal }}
Thanks
Anders

 Comment by sigmundch

Removed Polymer-P-1 label.
Added Polymer-Milestone-Next label.

 Comment by kasperl

Added this to the 1.6 milestone.

 Comment by sigmundch

Added PolymerMilestone-Next label.

 Comment by sigmundch

Removed Polymer-Milestone-Next label.

 Comment by anders-sandholm

Issue dart-lang/sdk#19979 has been merged into this issue.

This comment was originally written by<EMAIL_ADDRESS>
for me on 0.12.0-dev
<paper-input label="Project Path" inputValue="{{path}}" floatinglabel="true"></paper-input>
<paper-button label="Enhance Project at '{{path}}'"></paper-button>
is still not working ?

 Comment by sigmundch

the fix is now submitted and released in polymer 0.11.1-dev.
Note 1: because it is a pre-release version, pub will not install it unless no stable version matches your version constraint. So you need to use a stricter constraint in your pubspec:
  polymer: ">= 0.11.1-dev < 0.12.0"
to try it out.
Note 2: After we pushed the prerelease, I noticed that this version has some breaking changes in underlying packages (polymer_expressions and observe), so we might not release it as 0.11.1, but as 0.12.0 in the future.
Note 3: Regarding the original example in comment #1. The binding now works, but note that 'value' only updates on a change event (when you hit enter or lose focus). If you bind to 'inputValue', you'll see the change on every key press, just like <input value>:
   <core-input placeholder="Type something..." inputValue="{{ inputVal }}"></core-input>
Cheers!

Added Fixed label.

 Comment by sigmundch

Sure - the fix was submitted in
https://code.google.com/p/dart/source/detail?r=38051
Polymer.dart had a port for Node.bind, but now we just the same code in JS for both and we we properly wrap forward calls into the Bindable API (Bindable in Dart is the equivalent of Observable in JS, we happen to have something else we call Observable :-/).

 Comment by abarth

Can you link to the CL that fixed the issue?  I'd like to understand whether it actually solves the bug I reported in Issue dart-lang/sdk#19979, which has been marked a duplicate of this issue.

 Comment by abarth

Perfect, thanks!

 Comment by zoechi

@Hannes.Rammer
I tried your code and it worked for me.
Do you have a field
@observable String path;
in the Polymer element enclosing the code you posted?

This comment was originally written by<EMAIL_ADDRESS>
It's so wired, now its working.
I had this a few times already with pub, that it tells me, it updated dependencies, but it didn't feel like it did.
Even after restarting dart editor it did not work for me until I delete my local packages and call pub get again.
any Idea what that can be? maybe a running process in the background that didnt get killed? well certainly no dart.exe process, since I made sure they are gone.
anyone else come across that problem.


Fix crash when opening the token troubleshooting panel.

Fixes #207
The problem was that:
CesiumIonSessionImpl ionSession = CesiumIonSessionImpl::ion();

makes a copy of the CesiumIonSessionImpl. That's fine for the generated C# wrappers, because for those an instance acts like a reference. But the Impl classes play by the normal C++ rules. So we're calling Resume on a stack-allocated CesiumIonSessionImpl instance which will be destroyed when it goes out of scope at the end of the lambda.
The Resume method, in turn, may return quickly and synchronously if the ion session is already connected or connecting, in which case there will be no problem. And that will likely be the case if the Cesium panel is already open.
But if that panel isn't open, and this is the first thing attempting to use Cesium ion, then Resume will start an async operation and expect that this will continue to be valid until that operation completes. But it won't be valid, because this points to a stack-allocated temporary. So we crash.
The simple fix is to avoid making a stack-allocated copy of CesiumIonSessionImpl.

@kring looks good, thanks for the catch!


Support config.dev.upstream/--upstream-protocol

This is awkward to implement in Wrangler 2 since it relies upon HTTP/2 to send data from the local proxy-server to the remote preview server and this protocol does not support non-SSL based connections (i.e. HTTP).
To implement this we would need to implement an additional significant code path that uses HTTP/1.x rather than HTTP/2 just for this feature.
We are not sure what the desire for such a feature is. So, for now, we do not intend to support --upstream-protocol but display a warning and point users who have this configured at this issue, where they can record their use case.

I would like to use wrangler dev in conjunction with the dev server for my frontend framework, so that I can work on frontend and backend code at the same time, all without any internet connection. I have no idea if the frontend dev server could even support TLS much less HTTP/2. At present, it seems the only option I have is to run the frontend dev server behind NGINX.


checksum files for datasets

we can check whether files have been updated on the ftp site and download updated file

we can check whether files have been updated on the ftp site and download updated file

@qianjiaqiang , The file naming conventions in the EMPIAR repository remain unchanged, so there should be no discrepancies between the file names in the EMPIAR repository and the CryoPPP data.


[API-8] Bump modlauncher and mixin

Bumped:

modlauncher from 4.1.x to 7.0.x
mixin from 0.8.1-SNAPSHOT to 0.8.2

Also bumped these because Modlauncher bumped them:

jopt-simple from 5.0.3 to 5.0.4
grossjava9hacks from 1.1.x to 1.3.x

It doesn't seem to matter that Modlauncher depends on ASM v7 while Mixin depends on v6, because mixins are still correctly applied. Also no other work needs to be done on our part for applaunch, everything still compiles with this update.
I've also gone ahead and checked that one of my plugins works without the ServiceLoader workaround, so ServiceLoaders work now as well (also plugin lang services shouldn't be blocked by that now either).

were the AP issues in https://github.com/SpongePowered/SpongeCommon/pull/3173 resolved?

This cannot be bumped unless production is confirmed to be working.

Proof of production jars working with modlauncher 7 and mixin 0.8.2: https://gist.github.com/ItsDoot/839fc05611a66b053b9d66fe3d53504e


Parallel jobs in Preprocessor

Implement a routine to search for an mpi configuration on the computer to run the job_list in the Preprocessor. The Python package mpi4py should be the place to start this work, there are other packages that work for parallel processing too.
Implement this in the run_jobs() method of the Preprocessor module.

the implementation for this will need to be with the Multiprocessing package. However, it may be possible to get some acceleration with the threading package too, by splitting the I/O to the NetCDF file to a separate thread (https://github.com/Unidata/netcdf4-python/blob/master/examples/threaded_read.py).


tmp.zip in root directory is not deleted

Hi,
When using this module, there is a tmp.zip file in the zip file that can not be opened. Maybe the zip file can be deleted after the upload to S3?

That sounds like two things that shouldn't happen. I'll fix it in a bit and see if I can add a way to test it better. Thanks for reporting it.

Hi, the zip itself is being properly created (the module is working fine). However, I think the tmp.zip file should be created in a different folder then the where the repository is being exported (maybe export it in /tmp/tmp.zip) so it would not be in the resulting .zip file

Might be that this PR fixes it: https://github.com/NotCoffee418/s3-zip-upload/pull/7
I didnt test it yet though so might need more work

Thanks for the PR but I won't merge it since i have a fancier implementation ready to go.
It will instead use the OS specific temp directory, create a zip there and remove it once done.
I'm being held back by trying to do something fancy my windows setup isn't happy with, auto-generate a release version of the script on commit using husky.

Thanks, my bad, I did not really use GitHub actions before and now see that you can run them on multiple OSes, so my PR wouldnt work on some of them.
I tested 1.2 and the tmp.zip file is gone now.
Thanks!


Supplement three review papers

A comparison of automatic cell identification methods for single-cell RNA sequencing data
Article Link: https://genomebiology.biomedcentral.com/articles/10.1186/s13059-019-1795-z

Challenges in unsupervised clustering of single-cell RNA-seq data
Article Link: https://www.nature.com/articles/s41576-018-0088-9

Tools for the analysis of high-dimensional single-cell RNA sequencing data
Article Link: https://www.nature.com/articles/s41581-020-0262-0

thanks for your email,I have some problem about cell identification method，do you have some  suggestanks for your email,I have some problem about cell identification method，do you have some  suggest？


Fix JAVACMD within "crate-node" program on Linux

Hi,
I believe I made a mistake with #11101. This patch should fix it.
With kind regards,
Andreas.

@amotl I think this is worth a changes entry.
4.4 has reached EOL so no backport is needed.


Use CI to enforce linting and typechecking

In GitLab by @Schumann on May 1, 2020, 13:01

In GitLab by @waxlamp on May 1, 2020, 17:40
assigned to @waxlamp

In GitLab by @waxlamp on Jul 10, 2020, 11:07
closed


Google Maps authentication fails in ExpoGo

Summary
MapView has never given me any issues until I got a new Android phone. No matter what I try the map fails to load on this particular device using Expo Go. The map loads on my other Android device, my iPad and emulated Android devices. It also loads on this device but only after it is built and converted to apk.
The issue seems to be from the API key not being read. However, on my other devices I do not require an api key.
Reproducible sample code
// app.js
import React from 'react';
import MapView, { Marker } from 'react-native-maps';

export default class App extends React.Component {

  render() {
      return (
        <MapView
          style={{
            position:'absolute',
            top: 0,
            left: 0,
            right: 0,
            bottom: 0,
          }}
          zoomEnabled={true}
          initialRegion={{
            latitude: 40,
            longitude: 100,
            latitudeDelta: 0.0922,
            longitudeDelta: 0.0421,
          }}
        >
          <Marker
            coordinate={{ latitude: 22.258, longitude: 71.19 }}
            title={"title"}
            description={"test"}
          />
        </MapView>
      )
    }
}

// app.json
{
  "expo": {
    .
    .
    .
    "android": {
      "adaptiveIcon": {
        "foregroundImage": "./assets/adaptive-icon.png",
        "backgroundColor": "#FFFFFF"
      },
      "permissions": [
        "android.permission.CAMERA"
      ],
      "package": "com.company",
      "softwareKeyboardLayoutMode": "pan",
      "config": {
        "googleMaps": {
          "apiKey": "REDACTED"
        }
      }
    },
    "web": {
      "favicon": "./assets/favicon.png"
    }
  }
}

Steps to reproduce

Set api key in app.json
Use new android device
Attempt to run on Expo Go

Expected result
Display a non-blank google map
Actual result
Displays a blank map with the google logo at the bottom left
React Native Maps Version
0.30.2
What platforms are you seeing the problem on?
Android
React Native Version
0.68.2
What version of Expo are you using?
SDK 45
Device(s)
Samsung Galaxy S22+
Additional information
Using adb logcat I found the google maps api key is not being read properly. I do not require an api key for any other device when running from Expo Go, only as standalone.
Here is the result of logcat, completely unedited. API Key was always blank in these logs.
08-16 12:42:49.484 15492 16031 E Google Maps Android API: Authorization failure.  Please see https://developers.google.com/maps/documentation/android-api/start for how to correctly set up the map.
08-16 12:42:49.485 15492 16031 E Google Maps Android API: In the Google Developer Console (https://console.developers.google.com)
08-16 12:42:49.485 15492 16031 E Google Maps Android API: Ensure that the "Google Maps Android API v2" is enabled.
08-16 12:42:49.485 15492 16031 E Google Maps Android API: Ensure that the following Android Key exists:
08-16 12:42:49.485 15492 16031 E Google Maps Android API: 	API Key:
08-16 12:42:49.485 15492 16031 E Google Maps Android API: 	Android Application (<cert_fingerprint>;<package_name>):

After looking through the Expo issues log it seems to be an issue on their side.


Setup

ACTIVITIES DONE

Creation of new Rails app only for API, with postgresql DB and skipping tests files
Config of CORS for API
Linters configuration and fix of first linters offenses
DB config and creation.
Verification that Puma server is running ok

@wandergithub Thanks !


Dev Build Windows 2023-06-16 Blocked by windows defender

The latest dev build is being blocked by windows defender, version 2023-06-16 18:05:02+00:00. Had to switch to v15. Letting you know so you can fix it before v16.

This is a duplicate of #217.


Real life examples

Hello team, this is Mauricio, GBB Customer Service Americas.
We have a few customers who have challenges to fully understand how to use slugs.
As an example, Arthrex, a very large customer based in Germany, asked my help to pop-up the Account tab everytime a new conversation comes in. Collectivity, we spent 2 days trying till we spoke to Maco Rodrigues, a PM that works with Customer Service. I believe we could make our customers' lives easier.
Can we add to this document simple examples of what our customers ask us most?
A very basic but helpful example:
Here you can see some examples to enhance your agent experience:
1. Display the account/contact tab everytime a new conversation comes through Omnichannel:
**entityId:** {customerRecordId}
**entityName:** {customerEntityName}

You can see a screenshot here (can we add screenshots to the document?): https://i.ibb.co/qCf97jN/Microsoft-Teams-image-24.png
[Enter feedback here]

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

ID: d43c1365-f2b5-1f5c-f514-af89ef1272b9
Version Independent ID: 5376baec-d2ad-c286-ab36-46f7e182dd24
Content: Use automation dictionary to pass parameter keys
Content Source: ce/app-profile-manager/automation-dictionary-keys.md
Service: dynamics-365-customerservice
GitHub Login: @neeranelli
Microsoft Alias: nenellim

Thanks for your comment, @moliveirapinto. This issue has been assigned to the doc author for review.

Thank you for raising this point, @moliveirapinto. As communicated internally, we will add examples for the slugs. I am closing this issue.
Best regards,
Neeraja