Set package of intent prior to broadcasting

This should prevent an intent from being broadcast to registered receivers that do not match the specified package.
This PR might prevent issues if one installed app causes receiverPermission to be null while another app does not use an IntentFilter.
From the documentation on registerReceiver:

As of Build.VERSION_CODES.ICE_CREAM_SANDWICH, receivers registered with this method will correctly respect the Intent.setPackage(String) specified for an Intent being broadcast. Prior to that, it would be ignored and delivered to all matching registered receivers. Be careful if using this for security.

This PR seems like a good addition after #572 (https://github.com/microg/android_packages_apps_GmsCore/commit/f94d140dea71ee5418aa94861931445f67b3968f).  With my minimal testing I have not seen this patch cause any regressions, but I have not seen it fix any problems either.  Further testing should be done before merging.

Oops, looks like this was already being done and I somehow just missed it.
The package of the intent was set here and a copy constructor was used here.  Seems like my code is redundant and would explain why I didn't see any change, so I'm closing this PR.  Sorry about the confusion.


 This is bound to cause issues when Supermatter engine becomes a thing.
Reproduction
Do the picture thing.
Screenshots

Additional context
Found it when I wanted to improvise gun on gunship shuttle made out of directional plasmarglass. Had to stick emitter into vacuum to get beams out.

(also pictured: machines z-fighting with directional windows, but unable to reproduce on current game version)

Noticed this yesterday and nearly turned a chunk of engineering into a fridge as a result.

This is because emitters are just a different type of gun, and bullets can't go through glass. I'll keep looking into how to make this work.


Standard Library (built-in modules)

What it is
These are just *.rickroll files that the interpreter can conditionally embed into userland *.rickroll files. They are assigned to a special namespace, which the interpreter/compiler knows exactly where to locate unambiguously.
What it ISN'T
This isn't a generalized module system, as there's no support for userland scripts. This shall be implemented in a separate proposal (#75), for simplicity's sake.
Why

Portability

RR programs would no longer need 3rd-party lang-specific libraries, so they can work exactly the same on any implementation.

Abstraction

Everything is self-contained.

Fun!

We'll have freedom to name modules however we want! Example: core.math.pie is the π constant from the math module.

How
The implementation details are yet to be stabilized. I have a rough idea of how we could do it: RR modules would be inlined in a C-like manner, which is quite simple, but not perfect.
The reason behind a "special namespace" for built-in modules, is to simplify the module-resolution algorithm  for when we add support for userland RR libs:

Userland libs would be imported using file-system path-string-literals, such as we know the "./FILE_NAME" and we're gonna play it (notice how the extension is optional)
Built-ins would be imported using similar (maybe exactly the same?) syntax as we know the std.MOD_NAME and we're gonna play it (notice the prefix to disambiguate between C/Py and built-in)

We could take inspiration from Rust by having different  namespace-prefixes:

core

for self-contained stuff, such as

math processing
string formatting
list iteration and sorting
etc...

std

for abstractions over platform-specific and impl-specific code, such as

file handling
network communication
threads (and possibly async (#32)?)
etc...

std would CONSIDERABLY reduce the need for importing Py libs/mods such as sys and os
Outro
I'm willing to contribute modules. We could even use stuff from the examples folder as a starting point. Even better, core/std could become examples themselves!

I have read all your issues, and I think your proposal is amazing. I haven’t worked on this for a long time, and I am ready to accept the challenge to rewrite in Rust 👍
I will start building a standard library, and thank you for all these issues!


Save models as functions

Ok I've modified a little this solution compared to the previous one, now FunctionGraph are auto-closeable and own the session/graph only if the function has been created before them. See examples provided in the FunctionGraph documentation for more details.
There are still a few things I need to look at before making this PR more official but I would like to get some feedbacks before continuing in that direction.
In summary:

FunctionGraph is the new (disposable) name for TfFunction as submitted previously by @Shajan
Users can create their graph in a "function style" (while we still don't support real function graphs but this API should be ready to accommodate it when we will come to it).
Users can still define a graph and then convert it to a function (i.e. adding a signature to it). In this case, the function does not own the graph and releasing it will have no effect.
Saving a model requires that one or more functions to be provided. The graph to be saved and the session to use to save the variables will be extracted from these functions (right now, since we can only export session-centric models, all functions saved should share the same session)

I'll provide more and better examples later, thanks!

The change looks good.

Thanks @Shajan , I'll clean this up and merge it to our shared branch. It would be great if you can then validate that this merged solution still successfully cover your initial use case. If so, we will then make an official PR to the master branch out of it.

@googlebot I consent.


CLI menu item goes to Error page

Version - master 4/5
Steps to Reproduce:

Create a Swarm environment
Click on CLI before swarm sets up

Results:  Error page
Expected:  The menu items should not be available until after Swarm environment is setup.  This should work the same as Kubernetes.

Header redesign..

The Swarm (and K8s) menu should now have no sub-items if the service is not ready and the loading page would fail.

Version - master 5/5
Verified fixed


Issue 213

Should close issue 213 - provide a way to override/extend surveyor helper methods

Other than the implementation comments, I think this is a good solution to #213.


Good documentation is important

Clear instructions for how to install and run the code and start developing it.

document dependencies

The fastest way to lose potential users is to not have good documentation


when i use socket then how can i save the stream to audio file like .wav

hello ,i am try to use nodejs socket to  save sream to file then i saved the file but  cant play.waht your help thanks

👋 @Messilimeng could you give us some example code of what you've tried?

let recognizeStream = this.recognizer.streamingRecognize(request).on("data", (data) => {
if (this.ready) {
parseHypothesis(data.results);
checkForFinal(data.results);
} else {
LogUtil.logDebug("v1 recognizer not ready");
}
}).on('error', (err) => {
this.onError(err);
this.stop();
}).on('unpipe', () => {
LogUtil.logDebug("successfully removed pipe stream");
this.stop();
});
   bufferStream.pipe(recognizeStream);
    //console.log(sp)
    fs.writeFileSync('../audio/123.wav', bufferStream)

@callmehiphop  it is difficult to me ,i just  save the recoginzeStream,lol ,it mast be need other code. i am not good at it, so can you give me some example  code to save the stream to .mav file? thanks

@Messilimeng this looks a little odd, I would do something like what is described here:
https://nodejs.org/en/knowledge/advanced/streams/how-to-use-fs-create-write-stream/
const writeStream = fs.createWriteStream('./output.wav')
writeStream.pipe(bufferStream)

If I'm reading your example properly, however, are you trying to both save the file to disk and pass it to the analyzer? To pull this off, I believe you will need to fork the stream. You can find an example of doing this using a PassThrough stream here:
https://gist.github.com/jtbonhomme/842be13d57ad6e852657d88c681755ec

thanks lot ,i did it .@boce

@Messilimeng did that example work for you? sounds like we might be able to close this?

@bcoe yes the Android should the me the sound is over and save the streambuffer then decode then  stop the socket
like this
Buffer.concat([socketBuffer, buffer]);
let command = 'ffmpeg -i ' + pathname + ' -y -ar 16000 -ac 1 ' + path + Name;

@Messilimeng if you would like to share some of the code as a gist, we can perhaps work some of the methodologies into future code samples.

@bcoe my pleasure，when i not busy ，i will send a example code on it.


add docs how to manage and share docker volume management

the workflow should be like http://clusterhq.com/flockerhub/introduction/
we must provide a way that dev team can work and share data volumes easily with the similar workflow.
Should provide best practices and how to achieve that.

closed, we've moving focus on k8s support instead.


make internal pkg public，so others can use this to make some other go pkg

and，add error callback ，not is.exit，to handle error better

if you think this is good，i well make a pr to do change

Yes, this is a very nice idea. It's something that I also wanted to do but kept prioritizing other features. This will also help with requests like https://github.com/alexballas/go2tv/issues/26
As for the go2tv CLI mode where various errors will trigger a os.Exit, I think it's OK for the specific mode. What we could do is wrap the main function to a "Run() error" like cobra does it and call that from main.

remove internal package work in https://github.com/alexballas/go2tv/pull/35

Thank you. Just a few notes.

I don't believe that we should remove everything from the "internal" folder. Things like the GUI or the Interactive CLI terminal should remain in the internal folder as these are specific to the go2tv application and it's not something that others could easily re-use
Making things public will need some better documentation for the exported items. (we might need a separate ticket for that)

Pushed a commit here https://github.com/alexballas/go2tv/commit/4ae40961604a7c7fdd191ca669bf5479da6edd59

Nothing else to do here


Update sharing menu from cards

From build:

Update style
Design:
https://www.figma.com/file/bZh7tOiLm6Ls9Hl4RL6qMC5X/Augur-Redesign?node-id=12661%3A182

Update Copy marker iD to 'Copy Market Link'
Update copy icon to match copy icon on market page
Remove Copy Market Creator ID

closing. creating a separate ticket to remove copy market creator ID


unclear license

In the CF page it says that this mod is ARR, but source here is "MIT but applies only to code"
What's the not code part here?

The not-code part are assets, of which AI Improvements has none. They may fall under a different license, which is the case for ICBM Classic, for example. I'm unsure about why the CF page says "ARR". It could either be meaning the binaries are ARR, or it was simply overlooked to set the proper license for the project.

Downloads on CF are ARR to prevent repost sites from stealing them.


Bing Ads Integration

Closes INTS-164
Description Of Changes
We're adding a new Integration with Microsoft's Bing Ads Network. This allows us to remove the emails of users from the Audience's Customer List of our clients. At the time of development, this is the only PII avaliable on the microsoft Advertising Network
Since the API is SOAP based, we had to do some changes to the saas connector and schemas, in order to accept files
Code Changes

[ ] Creating a new suite of configurations for Microsoft Advertisment
[ ] Set up request Overrides for the suite
[ ] Updating src/fides/api/schemas/saas/shared_schemas.py and src/fides/api/service/connectors/saas/authenticated_client.py to accept a optional files parameters

Steps to Confirm

[ ] Microsoft Advertisment should appear as an option in the  integrations
[ ] Said integration testing connection should work properly
[ ] local tests with valid .toml file should work properly

Pre-Merge Checklist

[ ] All CI Pipelines Succeeded
Documentation:
[x] Base documentation in Confluence
[ ] documentation complete, PR opened in fidesdocs
[ ] documentation issue created in fidesdocs
[ ] if there are any new client scopes created as part of the pull request, remember to update public-facing documentation that references our scope registry
[ ] Issue Requirements are Met
[ ] Relevant Follow-Up Issues Created
[ ] Update CHANGELOG.md
[ ] For API changes, the Postman collection has been updated
If there are any database migrations:

[ ] Ensure that your downrev is up to date with the latest revision on main
[ ] Ensure that your downgrade() migration is correct and works

[ ] If a downgrade migration is not possible for this change, please call this out in the PR description!

I opened this branch to give @Vagoasdf a starting point, it was just all the started test files for a new integration. I reviewed @Vagoasdf's implementation and I approve ✅


simple effects and rx-IPC

What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)
Adds a simple implementation of rx-ipc-electron wtih the NGRX Effects module.

What is the new behavior (if this is a feature change)?
very simple implementation of things discussed in #20

travis has issue with rx-ipc-electron

added note in readme for #21

Thank you very much @Kaffiend... I will be merging shortly.

Actually I'm thinking it would be best to use a more practical example. One tricky task that many developers will face is opening files. What I suggest is that we open an image and replace the Angular/Electron logo at the bottom.
It took me a while to get it working right. Here is the rough code extracted from a commercial project of mine:
Main Process:
import { BrowserWindow, dialog } from 'electron';
import { Observable } from 'rxjs';
import rxIpc from 'rx-ipc-electron/lib/main';

const mediaFilters = [
  {name: 'Media', extensions: ['mp4', 'avi', 'mov', 'wav', 'mp3']}
];

function getWindow() {
  return BrowserWindow.getFocusedWindow() || BrowserWindow.getAllWindows()[0];
}

function openDialog(title, filters) {
  const window = getWindow();
  const showOpenDialog: any = Observable.bindCallback(dialog.showOpenDialog);
  return showOpenDialog(window, {
    title,
    filters
  });
}

function openVideo() {
  return openDialog('Import Media', mediaFilters);
}

rxIpc.registerListener('open-media-file', openVideo);

Angular Effect:
import { Observable } from 'rxjs';
import rxIpc from 'rx-ipc-electron/lib/renderer';
import '@ngrx/core/add/operator/enterZone';
import * as editor from './editor.actions';

@Injectable()
export class EditorEffects {
  @Effect()
  public loadMediaFile$: Observable<any> = this.actions$
    .ofType(editor.LOAD_MEDIA_DIALOG)
    .switchMap(() => rxIpc.runCommand('open-media-file', null))
      .switchMap(files => {
        if (!files) {
          return Observable.empty();
        }
        return Observable.of(new editor.SetSourceAction(files[0]));
      })
      .map(x => x)
      .enterZone(this.zone);
}

The enterZone operator is necessary in order to perform change detection upon events that happen outside of Angular. For some reason it won't work directly below switchMap so I had to put a map in between.

@colinskow switchmap returns a new observable of files, in place of your current stream, so you will have to map it like you have, switchmap and map both employ catch methods as well, so you could dispatch failure actions from those.

and you wont need zone if your are using OnPush change detection and mapping the file path from state with the async pipe from a slice of state with a selector.

I'm waiting on a DNS record to update, i think i see what you're wanting, ill take a stab at it.

switchMap flattens the returned Observable and returns just the Array of selected files or null if the dialog was cancelled. If you can get it working without enterZone great, but I'm using onPush with async pipe to video player component and it has been necessary.

Yes, it flattens the returned observable but the key part is that it uses the switch operator returning the inner observable of your array :smile:

Ahh, the source of the image does update behind the scenes with OnPush but the image actually re-rendering in the dom does not update with zone's help. I see now. Thanks for that!


Make *Notifier.Notify return first argument (error message)

It would be nice if *Notifier.Notify also returns what get passed in as the first argument.
This would allow for a bit of streamlining something like the following
log.Error(airBrake.Notify(errors.New(`something went wrong`), nil))

Thanks for the suggestion @vendion. The Notify func is intentionally not returning anything since it is intended to be used as an async function.
The Notifier struct ultimately wraps the provided error as a Notice. If Notifier.Notify was refactored to return something, it would make more sense for us to return a Notice rather than the first arg provided to the Notify func. However, that could be achieved using the following:
notice := airbrake.Notice(errors.New(`something went wrong`), nil, 1)
log.Error(notice)
airbrake.SendNoticeAsync(notice)

It's not a one-liner, but it's possible.


PyAudio is not for python3.8

PyAudio is not for python3.8,  I hope you to update it ,thank you very much.

Use this one for Python 3.8: https://github.com/Geo-Joy/pyaudio_portaudio_loopback/releases/tag/full-release


Mutable fields with generics

After solving #154, the next step is to make the same work for generic ADTs.
#[var(field)]
struct S {
  field: i32,
}
struct Gen<T>(T);

fn set_gen_field(mut g: Gen<S>) -> Gen<S> {
  g.0.field = 131415;
  g = Gen(S { field: 161718 });
  g
}

Ideas, roadmap

All fields should be @var without annotation
(try this first without generics)
Then also, all type parameters should be @mutable by default
However, as we only have consuming, mutable paramters, all methods can be @pure
and arguments with mutable type parameters as type, that are not mut in Rust, can swap the @mutable flag with @pure.
Otherwise, one might try to freshCopy all the type parameter-typed args.

The above might work, as is suggested by these examples:
case class Ref[@mutable T](var x:T)
def add(a: @pure Ref[Int], b: Ref[Int]) = { b.x = a.x }

import stainless.lang._
import stainless.annotation._

object Test {
  case class Foo(var i: Int)

  @extern
  def mystery(x: Foo, @pure y: Foo) = {
    ()
  }

  def test = {
    val a = Foo(0)
    val b = Foo(1)

    mystery(a, b)

    assert(a.i == 0) // fails
    assert(b.i == 1) // passes
  }
}


Photo not Uploading[BUG]

Describe the bug
I am trying to collect instagram pictures and find which one has the most amount of likes and post it.
Traceback
Photo Upload failed with the following response: <Response [403]>
Traceback (most recent call last):
File "/Users/nicolasrulli/Desktop/MiscCode/python_projects/InstagramAutomated/file.py", line 137, in
client.photo_upload(uploadPath, caption)
File "/Users/nicolasrulli/Desktop/MiscCode/python_projects/env/lib/python3.7/site-packages/instagrapi/mixins/photo.py", line 230, in photo_upload
upload_id, width, height = self.photo_rupload(path, upload_id)
File "/Users/nicolasrulli/Desktop/MiscCode/python_projects/env/lib/python3.7/site-packages/instagrapi/mixins/photo.py", line 192, in photo_rupload
raise PhotoNotUpload(response.text, response=response, **last_json)
Expected behavior
It worked a day or two before today. Not sure what's going on. I saw another person say to check the file type and this image is a JPG
EDIT:
I am now getting this as my traceback:
Status 429: Too many requests
Ignore 429: Continue login
Traceback (most recent call last):
File "/Users/nicolasrulli/Desktop/MiscCode/python_projects/env/lib/python3.7/site-packages/instagrapi/mixins/private.py", line 298, in _send_private_request
response.raise_for_status()
File "/Users/nicolasrulli/Desktop/MiscCode/python_projects/env/lib/python3.7/site-packages/requests/models.py", line 1021, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 400 Client Error: Bad Request for url: https://i.instagram.com/api/v1/accounts/login/
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/nicolasrulli/Desktop/MiscCode/python_projects/InstagramAutomated/file.py", line 17, in
client.login(username, password)
File "/Users/nicolasrulli/Desktop/MiscCode/python_projects/env/lib/python3.7/site-packages/instagrapi/mixins/auth.py", line 391, in login
logged = self.private_request("accounts/login/", data, login=True)
File "/Users/nicolasrulli/Desktop/MiscCode/python_projects/env/lib/python3.7/site-packages/instagrapi/mixins/private.py", line 447, in private_request
raise e
File "/Users/nicolasrulli/Desktop/MiscCode/python_projects/env/lib/python3.7/site-packages/instagrapi/mixins/private.py", line 434, in private_request
self._send_private_request(endpoint, **kwargs)
File "/Users/nicolasrulli/Desktop/MiscCode/python_projects/env/lib/python3.7/site-packages/instagrapi/mixins/private.py", line 354, in _send_private_request
raise UnknownError(**last_json)
instagrapi.exceptions.UnknownError: The username you entered doesn't appear to belong to an account. Please check your username and try again.
What should I do?

The username you entered doesn't appear to belong to an account. Please check your username and try again.

My credentials are correct. I haven't changed my username, password or edited my credentials file.
If I type my creds into insta i get this:
"There was a problem logging you into Instagram. Please try again soon."
Does this mean I have a temp ban from logging in?

https://github.com/adw0rd/instagrapi/issues?q=The+username+you+entered
https://github.com/adw0rd/instagrapi/discussions?discussions_q=The+username+you+entered

https://github.com/adw0rd/instagrapi/issues?q=The+username+you+entered
https://github.com/adw0rd/instagrapi/discussions?discussions_q=The+username+you+entered

Neither of these seem to be helpful. I am new to github and using instagrapi so can you give me a bit more detail/help?
Let me know,
Thanks!

@zephyr582 https://adw0rd.github.io/instagrapi/usage-guide/best-practices.html


[Question]Time-varying exploration rate.

How to add time-varying exploration rate, say linearly decaying from exploration_max to exploration_min, in stable-baselines?

The answers are in docs. This varies algorithm to algorithm. DQN has linearly decaying exploration by default, for example.

Can we do this with DDPG or TD3?

As per documentation, this is not supported with those algorithms.
This would be a good enhancement for future versions (v3), where all parameters like this would go through the "constant or schedule" treatment, being a function of fraction-of-training-done.

Can we do this with DDPG or TD3?

You can create a noise object that derives from the base ActionNoise class and implements that (there is an example in the zoo).

Alright, thanks @Miffyli @araffin !
One question about customising policy network. Can the policy network in DDPG or TD3 be customised differently, for example actor network uses 1d cnn, and critic network uses mlp. I saw one example about 1d cnn, but I guess the use of cnn_extractor= sets the cnn network to be the same for both actor and critic. Is there an example to setup different networks?

If you use cnn_extractor, then yes, it will use same extractor for both heads.
To have two completely different networks, you need to make a custom policy.

As the original question was answered, I will close this issue.


how to configure application.yml file for mysql in tomcat?

hello everyone, I'm a beginner on java and server, I'm using streama v.1.5.2 on tomcat 8.5 on a hosting, I think that on file application.yml is configured on h2 because every few hours streama reboots, it starts again to reconfigure the video folder etc ... I think that since it is not connected to any database, it loses the configuration ... so I need to connect to mysql, I do not have h2 in the services offered in hosting.
so please tell me how to make a correct configuration ... I tried to change something but I get a blank page.
I ask for your help ...

I configured this way, why not work? Did I flap something? on application.yml
---
hibernate:
    cache:
        queries: false
        use_second_level_cache: true
        use_query_cache: false
        region.factory_class: 'org.hibernate.cache.ehcache.EhCacheRegionFactory'

dataSource:
       driverClassName: com.mysql.jdbc.Driver
       dialect: org.hibernate.dialect.MySQL5InnoDBDialect
       url: jdbc:mysql://localhost/mytestve_Streama?useUnicode=true&characterEncoding=UTF-8
       dbCreate: update

environments:
    development:
        dataSource:
            username:mytestve_admin
            password:test
    test:
        dataSource:
            username:mytestve_admin
            password:test

    production:
        dataSource:
            username:mytestve_admin
            password:test
---
---
grails:
    profile: angular
    codegen:
        defaultPackage: streama
    spring:
        transactionManagement:
            proxies: false

info:
    app:
        name: 'streama'
        version: '1.5.2'
        grailsVersion: '3.2.6'
spring:

    groovy:
        template:
            check-template-location: false

---
grails:
    mime:
        disable:
            accept:
                header:
                    userAgents:
                        - Gecko
                        - WebKit
                        - Presto
                        - Trident
        types:
            all: '*/*'
            atom: application/atom+xml
            css: text/css
            csv: text/csv
            form: application/x-www-form-urlencoded
            html:
              - text/html
              - application/xhtml+xml
            js: text/javascript
            json:
              - application/json
              - text/json
            multipartForm: multipart/form-data
            rss: application/rss+xml
            text: text/plain
            hal:
              - application/hal+json
              - application/hal+xml
            xml:
              - text/xml
              - application/xml
    urlmapping:
        cache:
            maxsize: 1000
    controllers:
        defaultScope: singleton
    converters:
        encoding: UTF-8
    cors:
        enabled: true
        mappings:
            /api/**: {}
            /login/**: {}
            /dash/**: {}
            /player/**: {}

streama:
  regex:
    movies: ^(?<Name>.*)[._ ]\(\d{4}\).*
    shows: ^(?<Name>.+)[._ ]S(?<Season>\d{2})E(?<Episode>\d{2,3}).*
  uploadtypes: ['video/h264', 'video/mp4', 'video/mpeg', 'video/quicktime', 'video/webm', 'video/x-ms-wm', 'video/x-ms-wmv',
              'video/x-msvideo', 'image/bmp', 'image/gif', 'image/jpeg', 'image/pjpeg', 'image/png', 'image/svg+xml',
              'image/x-icon', 'image/x-png', 'application/x-subrip', 'text/plain', 'text/vtt', 'text/plain',
              'application/octet-stream', 'video/x-matroska', 'image/vnd.microsoft.icon', 'video/mp2t']

grails.controllers.upload.maxFileSize:<PHONE_NUMBER>0000 # 10TB
grails.controllers.upload.maxRequestSize:<PHONE_NUMBER>0000 # 10TB

Try having just this in the application.yml
environments:
    production:
        dataSource:
            driverClassName:  'com.mysql.jdbc.Driver'
            url: jdbc:mysql://localhost/mytestve_Streama
            username: ## your mysql username
            password: ## you mysql password

If it still uses a H2 database then it mustn't be picking up the yml file, in that case id be looking at the tomcat server to see if it needs config files in another directory or something. I'm not really sure since I'm not really that experienced in tomcat deployments.

not working

Closing no response.


Distributed DDL ALTERs not working on ReplicatedMergeTree?

(version 1.1.54358)
Are ALTER queries on ReplicatedMergeTree not supported via distributed DDL?
When I try to do something like this on a ReplicatedMergeTree
alter table x on cluster y drop partition z;

(or if I try to add a column)
I end up with the error (on all nodes)

trying: Table logs_shard is replicated, but shard #9 isn't replicated according to its cluster definition

However, everything appears to be setup correctly - all the data are correctly replicated and queries are working fine, so I don't know what is wrong in this case.
<shard>
    <replica>
        <host>NODE1</host>
        <port>9000</port>
        <user>user</user>
        <password>password</password>
    </replica>
    <replica>
        <host>NODE2</host>
        <port>9000</port>
        <user>user</user>
        <password>password</password>
    </replica>
</shard>

    <yandex>
        <macros>
            <shard>04</shard>
            <replica>NODE1</replica>
        </macros>
    </yandex>
...
    <yandex>
        <macros>
            <shard>04</shard>
            <replica>NODE2</replica>
        </macros>
    </yandex>

And the DDL looks something like
CREATE TABLE db1.table_shard on cluster cluster (
date Date,
site String,
value Float64)
ENGINE = ReplicatedMergeTree('/clickhouse/tables/db1/table_shard/{shard}/', '{replica}')
PARTITION BY toString(date)
ORDER BY (date, site) SETTINGS index_granularity = 8192

You should add <internal_replication>true</internal_replication> to the cluster definition. Like that:
https://github.com/yandex/ClickHouse/blob/bf1c4d156a72f915a78428dbc8c5493eaba67db2/dbms/tests/integration/test_distributed_ddl/configs/config.d/clusters.xml#L7

@ludv1x Thanks for the reply! So now I get a different error, but only on some nodes...

Code: 164, e.displayText() = DB::Exception: Received from XXXXXXXX:9000, <IP_ADDRESS>. DB::Exception: Cannot execute query in readonly mode., e.what() = DB::Exception

Which is odd as I am logged in as a user with admin permissions

Didn't you see also the following message?
https://github.com/yandex/ClickHouse/blob/08170d0d779b12eff05777e12f3d6b086e54ae02/dbms/src/Interpreters/DDLWorker.cpp#L239
Check that part of your config.xml and your profile:
    <distributed_ddl>
        <!-- Path in ZooKeeper to queue with DDL queries -->
        <path>/clickhouse/task_queue/ddl</path>

        <!-- Settings from this profile will be used to execute DDL queries -->
        <!-- <profile>default</profile> -->
    </distributed_ddl>

My config.xml looks like that already.
I did not see that message - some nodes gave the "Cannot execute query in readonly mode" - others did not (it looked successful).
My default user is read-only and I set the admin username and password in <remote_servers> I am logged in via the admin user when I run the command. Could this be fixed in #2202?


Core ssmr policypattern and cleanup

Contributing to the Azure SDK
Please see our CONTRIBUTING.md if you are not familiar with contributing to this repository or have questions.
For specific information about pull request etiquette and best practices, see this section.

API change check
API changes are not detected in this pull request.


Implement #104

sort models received from ollama

Thanks for the contribution!
There's currently another PR that's almost ready to be merged and that moved the getModelList() logic elsewhere, so this sorting function will also have to be moved.
Let's put this on hold until #99 is merged. I'll let you know when it is.
Also, I'd like to add some test assertions for the sorting function.
I think the simplest implementation would be to add a new entry in MOCK_API_TAGS_RESPONSE, for example:
models: [
    { ... },
    {
	name: "TheBloke/CodeLlama-70B-Python-AWQ",
	model: "TheBloke/CodeLlama-70B-Python-AWQ",
	modified_at: "2023-12-01T10:06:18.679361519-05:00",
	size:<PHONE_NUMBER>,
	digest: "ca4cd4e8a562465d7cf0512fc4d4dff3407f07800b01c9a6ee9dd107001704b9",
	details: {
		parent_model: "",
		format: "gguf",
		family: "llama",
		families: null,
		parameter_size: "70B",
		quantization_level: "Q4_0"
	}
    }
]

And then in test("displays model list and updates settings store") we should expect the order of the models to be sorted correctly:
// Check if the model list contains the expected models
await expect(modelSelect).toContainText(MOCK_API_TAGS_RESPONSE.models[0].name);
await expect(modelSelect).toContainText(MOCK_API_TAGS_RESPONSE.models[1].name);
await expect(modelSelect).toContainText(MOCK_API_TAGS_RESPONSE.models[2].name);

await modelSelect.selectOption(MOCK_API_TAGS_RESPONSE.models[1].name);

// Check if the settings store is updated with the selected model
const localStorageValue = await page.evaluate(() => window.localStorage.getItem('hollama-settings'));
if (!localStorageValue) throw new Error('No local storage value');
const parsedLocalStorageValue = JSON.parse(localStorageValue);
expect(parsedLocalStorageValue.ollamaModel).toBe(MOCK_API_TAGS_RESPONSE.models[1].name);
// Check that the models are sorted alphabetically (excluding 3rd party repositories)
expect(parsedLocalStorageValue.ollamaModels[0].name).toBe(MOCK_API_TAGS_RESPONSE.models[2].name);
expect(parsedLocalStorageValue.ollamaModels[1].name).toBe(MOCK_API_TAGS_RESPONSE.models[0].name);
expect(parsedLocalStorageValue.ollamaModels[2].name).toBe(MOCK_API_TAGS_RESPONSE.models[1].name);

:+1: I'll take another look when the other PR is merged. I would defer the testing until then too. Luckily ts isn't too crazy, so writing tests will probably work for me.
For me, having the path locally already is a great help (I currently have about 40 models lying around waiting to be decided on whether they work for me or don't).

@binarynoise alright, I think you can proceed 👍
The best place to sort the models now would be in ollamaTags().
Also, any chance we can avoid using the non-null !'s?
As a reference, we have a similar sorting function that has some guard clauses to avoid !'s.

I reimplemented the sort.
I decided not to split the repo off, because in a private project I don't do that either.
That way, we don't have that ! problem any more.

@binarynoise thank you, this looks great!
Any chance you can update the test? I think you can mostly copy/paste my suggestion here:
https://github.com/fmaclen/hollama/pull/120#issuecomment-2254157126

Here you go, I added the tests.

:tada: This PR is included in version 0.9.4 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:

@binarynoise thank you for the PR!
Hoping to get #124 out soon.


Update README.md

docs(@angular/cli): add --location=global flag for Nodejs v16 and later.
When installing @angular/cli with the global flag -g for Nodejs v16 and later it throws a warning. Added verbiage to show both flags. Nodejs v14 and older users can continue to use the -g flag. Nodejs v16 and later users need to use the --location=global flag.
UPDATE: update to README.md.

Thanks for this however NPM 14 is still supported. Let's update this when Node.js 14 support is dropped.

Thanks for this however NPM 14 is still supported. Let's update this when Node.js 14 support is dropped.

I still maintained the original command and just listed both ways.
So v16 could use the new, v14 would still see the old.

Oops didn't see that.
Can you update the commit message as per guidelines https://github.com/angular/angular-cli/blob/main/CONTRIBUTING.md#commit

Sure thing.
I’ll update it shortly and resubmit it.
On Mon, Aug 22, 2022 at 4:13 AM Alan Agius @.***> wrote:

Oops didn't see that.
Can you update the commit message as per guidelines
https://github.com/angular/angular-cli/blob/main/CONTRIBUTING.md#commit
—
Reply to this email directly, view it on GitHub
https://github.com/angular/angular-cli/pull/23772#issuecomment-1222144952,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABY344RJV4L7Y5QLQDNZ37LV2NHF7ANCNFSM57FNPSZA
.
You are receiving this because you authored the thread.Message ID:
@.***>

--
Kind regards,
Jose Estrella
c:<PHONE_NUMBER>
e: @.***

@alan-agius4 updated the commit message.

@estrellajm, I looks like only the PR description was updated.

Oops! one sec

Ok, I think I got everything. Updated commit message and PR.

Can you squash so that there is a single commit please? Thanks.

Ok, I think I got it. Thanks for the help on this. I'll remember these items for my next PR

The --global flag was mistakenly deprecated in version 8.11. The deprecation was reverted in version 8.12.1 (https://github.com/npm/cli/pull/4982).

@clydin thank you! I just upgraded my npm to v8.15 and can confirm!
I must say, this is good news. Closing this PR without merge or further action.


[Impeller] Crash: fatal error: "Invalid MTLPixelFormat"

Branch: master
flutter framework ref: 7aa01f53f84103063c9cb5e120d3b0803bdd03cf
Log
../../third_party/skia/src/gpu/ganesh/mtl/GrMtlCaps.mm:630: fatal error: "Invalid MTLPixelFormat"
* thread #10, name = 'io.flutter.1.raster', stop reason = EXC_BREAKPOINT (code=1, subcode=0x10345d514)
    frame #0: 0x000000010345d514 Flutter`GrMtlCaps::GetFormatIndex(MTLPixelFormat) + 80
Flutter`GrMtlCaps::GetFormatIndex:
->  0x10345d514 <+80>: brk    #0x1
    0x10345d518 <+84>: ldp    x29, x30, [sp, #0x10]
    0x10345d51c <+88>: add    sp, sp, #0x20
    0x10345d520 <+92>: ret
Target 0: (Runner) stopped.
Lost connection to device.

Device
iPhone13Pro iOS 16.3.1
Video
https://user-images.githubusercontent.com/49340347/233530886-9e2997b5-3cc2-4086-9f10-1d339fae324e.MP4
Code to reproduce:
just tap the TextField.

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({Key? key}) : super(key: key);

  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
        useMaterial3: true,
      ),
      home: const BugScreen(),
    );
  }
}

class BugScreen extends StatefulWidget {
  const BugScreen({Key? key}) : super(key: key);

  @override
  State<BugScreen> createState() => _BugScreenState();
}

class _BugScreenState extends State<BugScreen> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(),
      body: Center(child: TextField(),),
    );
  }
}

cc @chinmaygarde

Emm When I change to impeller.... When longPress the textField. It will also crash with:

-[MTLDebugBlitCommandEncoder internalValidateCopyFromTexture:sourceSlice:sourceLevel:sourceOrigin:sourceSize:toTexture:destinationSlice:destinationLevel:destinationOrigin:options:]:388: failed assertion `Copy From Texture Validation
[sourceTexture pixelFormat](MTLPixelFormatBGRA10_XR) must be compatible with [destinationTexture pixelFormat](MTLPixelFormatBGR10_XR).
'
-[MTLDebugBlitCommandEncoder internalValidateCopyFromTexture:sourceSlice:sourceLevel:sourceOrigin:sourceSize:toTexture:destinationSlice:destinationLevel:destinationOrigin:options:]:388: failed assertion `Copy From Texture Validation
[sourceTexture pixelFormat](MTLPixelFormatBGRA10_XR) must be compatible with [destinationTexture pixelFormat](MTLPixelFormatBGR10_XR).

Wide-gamut rendering being enabled by default was backed out in https://github.com/flutter/engine/pull/41382. Can you try on ToT?

This should have been fixed by https://github.com/flutter/engine/pull/41385/

I'm going to close it because of https://github.com/flutter/engine/pull/41385/ reopen if you are still experiencing problems.


tidy up readme

Changes of this nature are more time consuming to merge than the value they provide. Please refrain from submitting PR that only modify whitespace or make minor grammatical changes.
Thanks!

well, there are some PR that I want to provide, but currently stopped as no "develop" branch, ( for ex : remove deprecated classes/methods as previously closed by @Maks3w  as we don't decide a major change right now). What I can do is something like this for now. btw, thanks for merging

Your merge takes longer to merge than the value it provides, I don't mean to seem ungreatful but I'll be just closing these kind of PR in future.

I apologise @samsonasik - this made a valid change that makes the README render better, ignore me, I've had a bad day.


Namespace collision between :core and :models when uniquePackageNames is enabled

[x] I have updated Purchases SDK to the latest version
[x] I have read
the Contribution Guidelines
[x] I have searched the Community
[x] I have read docs.revenuecat.com
[x] I have searched
for existing Github issues

Describe the bug
With the release of 1.0.0 the :models module was added, however, the namespace in it is the same as in :core module. With the android.uniquePackageNames=true property this leads to an exception during the compilation of the Android app.
https://github.com/RevenueCat/purchases-kmp/blob/7c60a7131a5b7aa0476078ea7a86f7e6dd59de84/models/build.gradle.kts#L25
> Task :app-android:processDevDebugMainManifest FAILED
[com.revenuecat.purchases:purchases-kmp-core-android:1.0.0+13.2.0] /Users/alexey/.gradle/caches/8.8/transforms/61696659ac84c82bf00d9657d836fdb4/transformed/core-release/AndroidManifest.xml Error:
	Namespace 'com.revenuecat.purchases.kmp' is used in multiple modules and/or libraries: com.revenuecat.purchases:purchases-kmp-core-android:1.0.0+13.2.0, com.revenuecat.purchases:purchases-kmp-models-android:1.0.0+13.2.0. Please ensure that all modules and libraries have a unique namespace. For more information, See https://developer.android.com/studio/build/configure-app-module#set-namespace
/Users/alex/StudioProjects/own/xxx/app-android/src/main/AndroidManifest.xml Error:
	Validation failed, exiting

See https://developer.android.com/r/studio-ui/build/manifest-merger for more information about the manifest merger.

The solution is to change the namespace accordingly to have a module name at the end like in other modules:
https://github.com/RevenueCat/purchases-kmp/blob/7c60a7131a5b7aa0476078ea7a86f7e6dd59de84/mappings/build.gradle.kts#L35
Our temporary fix is to disable android.uniquePackageNames property in out project.

Environment

Platform: Android
SDK version: 1.0.0
OS version: macOS
IDE (e.g. Android Studio, Xcode, Fleet):
IDE version:
Device and/or emulator/simulator:

[x] Device
[x] Emulator/simulator

Environment:

[x] Closed testing / Sandbox
[x] TestFlight
[x] Production

How widespread is the issue. Percentage of devices affected.

Debug logs that reproduce the issue
Not needed
Steps to reproduce, with a description of expected vs. actual behavior
You need to enable android.uniquePackageNames inside gradle.properties and build the android app.

TIL about android.uniquePackageNames, thanks for reporting this! We'll have a look at what the best course of action would be.

All the above PRs have been merged. This should be in the next release.

@alaegin Latest release just went out. I'd be curious to know if it fixes the issue for you, whenever you have some time!

Fixed the issue for me. I was having issues for the past few days on a new build. This was the last piece of the puzzle.

Hello, @JayShortway!
Problem solved, thank you!

@alaegin @adrianegraphene Great to hear, thanks both for confirming!


Dzelge xxx get all collections

Codecov Report

Merging #12 (bca2725) into master (5b6cf7a) will decrease coverage by 0.15%.
The diff coverage is 55.55%.

:exclamation: Current head bca2725 differs from pull request most recent head 13c2d86. Consider uploading reports for the commit 13c2d86 to get more accurate results

@@            Coverage Diff             @@
##           master      #12      +/-   ##
==========================================
- Coverage   89.21%   89.05%   -0.16%
==========================================
  Files          72       72
  Lines        4210     4223      +13
==========================================
+ Hits         3756     3761       +5
- Misses        454      462       +8

Impacted Files
Coverage Δ

xcube_hub/controllers/geoservice.py
85.52% <11.11%> (-10.00%)
:arrow_down:

xcube_hub/core/cate.py
97.36% <100.00%> (+0.14%)
:arrow_up:

xcube_hub/core/k8s.py
100.00% <100.00%> (ø)

xcube_hub/geoservice.py
91.17% <100.00%> (ø)

Continue to review full report at Codecov.

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


Allow audio players in article body content

Type
✨  Feature
UI Requirements
Prismic content creators should be able to upload audio files and have them display within an article.

@davidpmccormick Can this one be closed?

I'd say so, yep!


Player hooks with data arguments

Is your feature request related to a problem? Please describe.
Recently, I have stopped using spotify-player simply because libreapot does not has support for external connections such as last.fm, and can not do notifications without Dbus.
Describe the solution you'd like
A hook system that launches a program with arguments set in the configuration for events such as pre, post, during (second interval) for sub-events for playing, pausing, skipping, etc..
I can use these to pass to notification or lastfm scrobller clients.
Describe alternatives you've considered
Using librespot or spotifyd directly, I believe librespot has direct support for this feature, so I don't think it would be trivial to implement it here.

@aome510 i would like to hear from this.
i am tired of the propietary spotify client.

I've been quite busy lately, so I won't be able to implement this soon. However, will put this up in my TODO list and see look into ways to integrate the last.fm APIs, if any.

well, this feature request is for hooks, which is alot simpler than implementing the last.fm API, since that can be handled by another program making the stack simpler.

Plan to implement this next week or so. Does emitting player event in a cache file work? You can write a script to watch for changes in that file every second or so, and port that to last.fm client. Lmk if I need to include any fields other than the event data (I plan to include the timestamp).

honestly been using the propietary spotify client for a long while now, i'd much rather have librespot itself actually supporting this shit rather than me having to send last.fm api requests constantly

Just saw this issue: https://github.com/jpochyla/psst/issues/424. Look like lastfm scrobbling is supported via Spotify connect, so it should work by default with spotify_player. I just double check on last.fm website and it shows all the scrobbles when I use spotify_player. Can you confirm? If that's the case, I'll close this issue.

Wow, okay!!!! I'll check tommorow!!
I will be very happy if this is true.

SEEMS TO WORK!!
although, spotify cant quite see what i'm playing, so that spotify yearly thing wont quite work

thank u

although, spotify cant quite see what i'm playing, so that spotify yearly thing wont quite work

Related https://github.com/librespot-org/librespot/issues/913. That's one thing I miss from the official app and wish that librespot figure out ways to reverse-engineer the feature.

It is a bit infuriating to be honest, considering its been a problem for 4 years and no one had stepped up and reversed engineered it :(

Wait, this issue still remains.

I do want to have some form of player hooks to be honest; my use case being to avoid constant D-Bus requests.

I do want to have some form of player hooks to be honest; my use case being to avoid constant D-Bus requests.

Does writing player events into a file work? I'm not too familiar with the player hook concept and how to implement one.

Player hooks is to launch a program with certain metadata (such as song, album, title) as arguments, on certain events (such as play, new song, pause, etc)

Implemented in #244. Refer to https://github.com/aome510/spotify-player/blob/add-player-hook/docs/config.md#player-event-hook-command for how to use the command.

why json? :(

why json? :(

for consistency with CLI commands' output and because the app already supports exporting Spotify data in JSON format.

Why not ususe JSON for big Spotify data? For example for simple data it should simply be it in plain text, and the arguments to be passed as the arguments themselves:
script "Playing" "Artist" "Album" "Song", this ensures that scripting is very easy. I'd appreciate it if you did this as this is what I had expected..

I can't use this feature; setting player_event_hook_command to a valid binary path gives: player_event_hook_command: None.
player_event_hook_command = "spotify_player-hook"

2023-09-07T16:28:20.475855Z  INFO spotify_player: General configurations: AppConfig { theme: "sewn", client_id: "XXXXXXXXXXXXXXXXXXXXX", client_port: 8080, copy_command: Command { command: "xclip", args: ["-sel", "c"] }, player_event_hook_command: None, playback_format: "{track}\n{artists} - {album}\n{metadata}"...

Please refer to the linked document to use a correct format. It should be player_event_hook_command = { command = "spotify_player-hook", args = [] }
Regarding why JSON but not plain text with arguments,

different events have different fields, passing the fields as command's arguments simply does not scale.
script can be arbitrarily complexed as user wants, the passing data to the script logic from spotify_player side is not. As a result, the passing data logic should be simple (e.g passing the event as a single input).

different events have different fields, passing the fields as command's arguments simply does not scale.

#!/bin/sh

echo "command: $1"

case "$1" in
        Changed) echo "old_track_id: $3, new_track_id: $3" ;;
        Playing) echo "track_id: $2, position_ms: $3, duration_ms: $4" ;;
        Paused) echo "track_id: $2, position_ms: $3, duration_ms: $4" ;;
        EndOfTrack) echo "track_id" ;;
esac

I hightly suggest to you to please use a arguement system, as it makes my life and others much easier when scripting for spotify-player.

Ok, I'll think about it.

Well? They need to read the docs to understand what the hooks do to begin with.

Should be updated with https://github.com/aome510/spotify-player/pull/251.


Add Mantainer

Dear @wikiselev, original funding member. You are the only mantainer in https://app.readthedocs.org/projects/cellgeni/
Could you user prete as mantainer too? 🙏

Thank you, G!


Add support for POST /service_info endpoint.

Implement a POST /service-info endpoint that allows updating the service info on a running server.
To be done once normal support for service_info endpoints added as per service info API specs.

Fixed by #40


MudAutocomplete: Remove SearchFuncWithCancel, Add CancellationToken to SearchFunc

This breaking change removes the SearchFuncWithCancel method and moves the CancellationToken functionality to the SearchFunc method.
Description
Recent changes to the MudTable ServerData method (PR 8407) led to a desire to use the same single-method pattern for other cancelable methods.  This update:

Removes the SearchFuncWithCancel method
Moves the CancellationToken parameter to the SearchFunc method
Updates all tests and examples to include the new CancellationToken parameter.

How Has This Been Tested?
Existing tests for MudAutocomplete were modified to include the CancellationToken parameter.
Types of changes

[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[X] Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist:

[X] The PR is submitted to the correct branch (dev).
[X] My code follows the code style of this project.
[X] I've added relevant tests.

Notes for Reviewers
This should probably get a v7 tag and be released with similar breaking changes to MudTable in the works for #8447

There are conflicts. Please merge dev to resolve them.
Added to v7.0.0 Migration Guide #8447

LGTM, just need to rebase and fix conflicts like henon said.

Alright, thanks again for all the reviews and feedback!  I've rebased onto dev and added 1 commit to re-implement the new token parameter in MudBlazor.Docs\Shared\AppBar.razor.

Next time please just merge dev, somehow rebasing with Visual Studio messes up the PR. You are done, however, so it doesn't really matter. Just so you know.

And thanks for the contribution @jperson2000 !


Update sub-dependencies that have security alerts

I ran through all of the "yarn" commands ("build", "test", "lint") and didn't run into any issues. Is there anything else I need to do to ensure this change doesn't have unintended consequences?

 Update dependencies in react-native-mock-render

@TAGraves I will verify these changes against our mobile code. Thanks!

Confirmed a green build with this branch 🚀


Add Keyboard Shortcuts for International Characters

Warning
Only Add 1 Keyboard Shortcut Per Pull Request.

Note
Follow Me: https://www.linkedin.com/in/anshsinghsonkhia

Note #2
It is not compulsory for you to be an Assignee in order to participate. You just have to fork, make the changes & Pull the Request.

Some of the International Character Examples:
ê,     é,     ë,     ô,     ñ,     Ñ,     Ø,     ß,     ÿ

I would like to add international character keyboard shortcut


feat/chatgpt_for_auditors.md

Greetings WeFuzz team. Wrote an article about how chatgpt can help auditors and bounty hunters.
Hope you enjoy and include it in your multiversity, would love to see it there!
Happy upcoming New Year Fam!!

Hey 👋
This is an interesting article 🤩. Thank you for the contribution 🙏
Happy Holidays 🎉
Cheers 🍻


fix dbt test not_null on courserun_is_current in combined enrollment mart

What are the relevant tickets?

NA
Description (What does it do?)

This is to address the is_null test on courserun_is_current in marts__combined_course_enrollment_detail https://pipelines.odl.mit.edu/runs/d97dcabe-ada3-499b-887c-87cca6cecdf8. There are some edx.org course runs that don't have courserun_is_current populated in the mart due to missing data from BigQuery. We can assume these runs are not current.
MITx/Launch.x_3/1T201
MITx/20.305x/1T2019
MITx/CTL.CFx/1T18U1
MITx/CTL.CFx/1T18U5
MITx/CTL.CFx/1T18U8
MITx/14.100PEx/3T2020
How can this be tested?

Tests should all pass now
dbt build --select marts__combined_course_enrollment_detail
Additional Context

@quazi-h Can you take a look at this because this is related to https://github.com/mitodl/ol-data-platform/pull/1075?


Multi-Group/Multi-Channel Support

Since Telegram doesn't have support for multiple 'channels' in a 'server' as Discord does, some group owners split their group chats into several to try and simulate such organization you get from discord by having several channels in a single server
For Example:
A Telegram Community may have: Main Group, Admin Group, Media Group, etc
The same Community has a Discord with the Channels: Main, Admin, Media, etc
This feature request proposes that, using the same two bots, add support for mapping multiple telegram groups to multiple discord channels in the same server
Rather than having to run a new tedicross mapped to two new bots, we could have a single instance of tedicross using only the two bridge bots being aware of which group and channel are related and mapping them accordingly for bridging

The architecture of TediCross doesn't really allow this. It will require a lot of rewriting.
I will take a look at what can be done, but I promise nothing

Thanks to the awesome work of @molteber this is now possible!


Fixed options passing, since<EMAIL_ADDRESS>options.output is required

I haven't received any deprecation messages or anything. Is this really needed now? And is that whole weird rigmarole in the code necessary, or can users just change the way they use rollup-stream (disregarding semver, since with #19 there's no more hope of maintaining backwards compatibility anyway)?
Also, please don't mess with my whitespace. I'd appreciate it if you could remove your whitespace-only changes and squash it back into one commit, because I don't want all of that in the history. If you don't, I'll have to do it, which may mean steamrolling your authorship of the commit.

I see you have found the gist about the rollup's API changes :)

can users just change the way they use rollup-stream?

It sure is, but it would differ from rollup's and we couldnt use rollup's config files directly and I assume we want to support this.

Also, please don't mess with my whitespace.

Removed.

@Permutatrix any news on this?

I see. Rollup's config format has diverged from the JavaScript API. The changes don't seem to have anything to offer to rollup-stream, but you're right that rollup-stream is supposed to support the config format. It's also supposed to support the JavaScript API format, however, so we can't make output a required option. I may have to separate it into two functions.
I don't believe I want to implement this support in this way, so I'm going to close the PR. Thanks for submitting it anyway and for changing the whitespace as I asked. I'm going to look into making https://github.com/rollup/rollup/issues/761 a reality.

What is next step? Could I help anyhow? Im using my fork at the moment, but would prefer using official release ;)

https://github.com/rollup/rollup/issues/761 is what is needed to make support for the config format in tools like rollup-stream feasible, especially if I'm going to take the tack I intend to with v2.0.0. Rollup has been resistant to the idea in the past, so I think the most helpful thing you can do is show your support for it. I'm going to see about making a pull request. I'll make a comment here if and when I open one.

It would be helpful in bringing attention to the matter if you open new issue on their boards I think.
Do u plan to support old rollup versions? (Even if requested feature is added it obviously wont be available in older rollups)

It would be helpful in bringing attention to the matter if you open new issue on their boards I think.

I generally prefer to have one issue per issue. A PR ought to be visible enough.

Do u plan to support old rollup versions? (Even if requested feature is added it obviously wont be available in older rollups)

I've thought about this... I think people using old Rollups with old config files will just have to use old versions of rollup-stream. It's better than introducing some sort of glue for them right from the start that will have to stay in forever.

Just trolling around - there is no 'working' rollup-stream at the moment for 0.48, 0.49 and 0.50 :troll:

As long as the config format doesn't change too much by the time 761 gets resolved, the consumer can just jury-rig something. Like this:
var rollup = require('rollup-stream')(Object.assign({}, require('rollup-next'), require('rollup')));

All they have to do is have two versions of Rollup installed.
ᕕ( ᐛ )ᕗ


Application can not report to jaeger

Describe the bug
My java code:
Class.forName("com.mysql.jdbc.Driver");
HikariConfig config = new HikariConfig();
config.setJdbcUrl("jdbc:tracing:mysql://my-db:3306/my-db");
config.setUsername("user");
config.setPassword("pwd");
config.setDriverClassName("io.opentracing.contrib.jdbc.TracingDriver");
HikariDataSource ds = new HikariDataSource(config);

// some db operation

My gradle dependencies:
compile('io.opentracing.contrib:opentracing-jdbc:0.0.7')
compile('org.springframework.boot:spring-boot-starter-web')
compile('org.springframework:spring-jdbc:5.0.8.RELEASE')
compile group: 'io.opentracing.contrib', name: 'opentracing-jdbc', version: '0.0.7'
compile('io.jaegertracing:jaeger-client:0.30.4')
compile group: 'org.springframework.boot', name: 'spring-boot-starter-logging', version: '2.0.4.RELEASE'
compile('com.zaxxer:HikariCP:3.1.0')
runtime('mysql:mysql-connector-java')
providedRuntime('org.springframework.boot:spring-boot-starter-tomcat')
testCompile('org.springframework.boot:spring-boot-starter-test')

This code works in localhost.
I have already passed the JAEGER_AGENT_HOST and JAEGER_AGENT_PORT env to the container.
And I can see the Jaeger Initialized log in remote:

Using the UDP Sender to send spans to the agent.
Using sender UdpSender(udpTransport=ThriftUdpTransport(socket=java.net.DatagramSocket@27e16046, receiveBuf=null, receiveOffSet=-1, receiveLength=0))
Using sender UdpSender(udpTransport=ThriftUdpTransport(socket=java.net.DatagramSocket@27e16046, receiveBuf=null, receiveOffSet=-1, receiveLength=0))
2018-08-16 13:24:32.809  INFO 1 --- [http-nio-8080-exec-1] io.jaegertracing.Configuration           : Initialized tracer=JaegerTracer(version=Java-0.30.4, serviceName= .......

But I can see it in Jaeger UI.
And I tried to use tcpdump, I cannot find the udp package.
Version
istio: 1.0

@objectiser
    env:
    - name: JAEGER_AGENT_HOST
      value: "jaeger-agent.istio-system"
    - name: JAEGER_AGENT_PORT
      value: "6831"
    - name: JAEGER_REPORTER_LOG_SPANS
      value: "true"

I can get the value from Application.

And here is a wierd thing, the CLUSTER-IP of jaeger-agent from kubectl get service  -n istio-system was None.
But I can ping it from application container.

@objectiser
It works with go jaeger client.
So I think it should not be an istio issue.
I will check my code by myself.


PINTAIL-119: Adding Map<String, Object> properties in the base Message class

@Amareshwari can you review this?

Thanks @manigoswami


Set Image from URL

How could I set image from url to this library?

Just solved same issue; I'll create a pull request later.
by the way, setting properties and delegates in draw is wrong  @ezefranca

@ciumvacTweets could you please tell me how do you fixed that?

@Pradiptamldt

I have moved UIImageView initialization from draw ( _ rect:) to awakeFromNib.
redeclared  fileprivate var imageView: UIImageView!  ->  fileprivate (set) var imageView: UIImageView! ( in my case, loadImage method is an UIImageView category).

... and  my UIViewController subclass code:
 zoomView._delegate = self
 zoomView.minimumZoomScale = 1.0
 zoomView.maximumZoomScale = 7.0
 zoomView.imageView.loadImage(from: item.image.imageURL, contentMode: .scaleAspectFill, clipToBounds: true)```

`loadImage` is my wrapper over Alamofire's `af_setImage`

hope this will help you; and sorry for my English )


cleanup for sprint

Coverage increased (+0.006%) to 81.512% when pulling 56c7c08ffc6641fc6d9d91a9a7a739aa8654af02 on sprint-prep into b0d688a454d623ce1fd1149d679b9cd4c8db308b on master.

hmm, so the dev experience here is that you should just mount your zipline root over /zipline so that you can edit the code outside of the container. Does this seem okay? I think it makes sense to just run by default but if you want to develop you need to pass the directory to the new source.

I think that sounds ok, as long as it's clear how to do it.


Wait for dns entry to be present

As suggested in the comment we should wait for the newly created dns entry to be present by polling with the dig command

Sorry for the delay in response (I was quite busy the last days)...
I think, that there are some problems with your approach:

It would loop indefinitely. It case something went wrong, the script would not terminate
The google DNS server may not be reachable (firewalls) or the user might not want to use google's DNS server (privacy)
The DNS server might cache the response for quite a while -> Don't ask a recursive server/resolver

So, there would need to be a counter for a maximum number of retries, and you need to ask the hetzner nameservers directly (and find the correct server beforehand) .

I agree with these points and updated the script

The PR is now mostly reverted. It caused problems when creating certs for subdomains.


“Sălciua de Jos", "Dealu Caselor", " Dumești", "Sălciua de Sus", "Sub Piatră", "Valea Largă" are villages in "Sălciua" common, "ALBA"

Description : When user is typing the villages in the search bar, the locations should appear in the dropdown menu correctly spelled and with localities information (as in Law nr. 2 din 16 februarie 1968)
Preconditions : the website is up and runing. After every step delete the text you typed from the search bar.

Steps 1:  Click on the search bar and write "Sălciua de Jos"

Expected result: In the drop down menu you find "Sălciua de Jos, ALBA( Sălciua)"

Steps 3:  Click on the search bar and write "Dumești"

Expected result: In the drop down menu you find "Dumești, ALBA( Sălciua)"

Steps 5:  Click on the search bar and write "Sub Piatră"

Expected result: In the drop down menu you find "Sub Piatră, ALBA( Sălciua)"

Steps 6:  Click on the search bar and write "Valea Largă"

Expected result: In the drop down menu you find "Valea Largă, ALBA( Sălciua)"


[feature request] Add option to set a per-user value of "maximum number of repositories"

Gogs version (or commit ref):  dev
Git version:  dev
Operating system:  Fedora
Database (use [x]):

[ ] PostgreSQL
[x] MySQL
[ ] SQLite

Can you reproduce the bug at https://try.gogs.io:

[x] Yes
[ ] No
[ ] Not relevant

Log gist:

Description
There is a global limit of the number of repositories that a user can create.
Would it be possible to add a per-user value to override the default global limit? Say, if this option is set, than users have a limit specified by this value, otherwise they use the default global value.

I think that is possible to set this on user options, if exists limits, override defaults, if not, use system configs

Yep, I'm also seeing the option in /admin/users/###
Maximum Repository Creation Limit ... (Set -1 to use global default limit)
Does it not work for you @not-the-smartest-pikachu-in-the-world ?
If so, please close the issue.


how to make the bot not jump into the abyss

when using my code, when the bot follows me and there is an abyss in front of it, it jumps into it mindlessly
code:
bot.loadPlugin(pathfinder);
function followPlayer() {
const laskgay = bot.players["laskgay"];
if (!laskgay || !laskgay.entity) {
return;
}
const mcData = require("minecraft-data")(bot.version);
const movements = new Movements(bot, mcData);
bot.pathfinder.setMovements(movements);
const goal = new GoalFollow(laskgay.entity, 1);
bot.pathfinder.setGoal(goal, true);
}
bot.once("spawn", followPlayer);

I cannot reproduce this issue. The bot will not cause off a cliff by default.
Does your server have any lag on it? The bot might be falling off accidently.

Я не могу воспроизвести этот вопрос. Бот не будет вызывать падение с обрыва по умолчанию.
Есть ли на вашем сервере какие-либо задержки? Бот может упасть случайно.

I'll send you a video later

I cannot reproduce this issue. The bot will not cause off a cliff by default.
Does your server have any lag on it? The bot might be falling off accidently.

how do I remove construction in this code?

movements.scafoldingBlocks = []

on the server 1.12.2 the spigot bot tries to follow me but can't

I cannot reproduce this issue. This might be caused by lag or perhaps a server plugin? A video would be helpful.
If you are still experiencing this bug, I will transfer this issue over to the pathfinder plugin so it can be reported there.

I cannot reproduce this issue. This might be caused by lag or perhaps a server plugin? A video would be helpful.
If you are still experiencing this bug, I recommend transferring this issue over to the pathfinder plugin so it can be reported there. https://github.com/Karang/mineflayer-pathfinder

okay, can you tell me that this is an error when opening the game selection menu on the 1.12.2 spigot server

There are still chat color symbols in that string. You can not parse a JSON string with chat color symbols in it.

В этой строке все еще есть цветные символы чата. Вы не можете разобрать строку JSON с цветовыми символами чата в ней.

how can I fix this?

const cleanName = nbt.value.display.value.Name.value.replace('§', '')
JSON.parse(cleanName)

const cleanName = nbt.value.display.value.Name.value.replace(' § ', ")
JSON.parse(cleanName)

I don't seem to understand where to insert this

Don't do: JSON.parse(nbt.value.display.value.Name.value)
Use the code I wrote about instead.

Don't do: JSON.parse(nbt.value.display.value.Name.value)
Use the code I wrote about instead.

error

Put it in the slots map.

Положите его в слоты карты.

Положите его в слоты карты.

I just connected nbt = require("prismarine-nbt") from above, but a new error appeared

Try and experiment with it a bit.

When I change the nickname in the config for whom the bot can follow, it does not want to go for a new player, but lookAt is immediately updated. What event should I use so that bot goes when updating the config?

Попробуйте немного поэкспериментировать с ним.

I didn't manage to fix it, maybe there is a way to solve it easier?

That solution is the easiest possible solution.

Then what is my mistake above? I can provide you with the full code of this function?

This issue is not related to the Youtube Tutorials, here. For general questions, it might be better to find support in the official Discord server instead.
https://discord.gg/VuU7x8AS
To answer your question, use
if (nbt.value && nbt.value.display &&  nbt.value value ...) {
    const cleanName = nbt.value.display.value.Name.value.replace(' § ', ")
    JSON.parse(cleanName)
}


misc: refactor file system cache to improve performance

Some functionalities were not used and would decrease overall performance, those have been removed.

Well actually, we were using the compiled PHP cache :)


Upgrade gradle and dependencies. Migrate to version catalog.

Upgrade Gradle to 8.8
Upgrade kotlin to 2.0.0
Migrate all dependencies to use version catalogs
Declare repositories inside settings.gradle.kts dependencyResolutionManagement block instead of allprojects on in the root project.

@a-sit-plus

@ JesusMcCloud

@JesusMcCloud


[BUG] Closing Tags/labesl not working/displaying

Is there an existing issue for this?

[X] I have searched the existing issues

Current Behavior
I can't get the commented closing labels/tags to work with my current setup. I have the very basic default setup using Lazy plugin manager
Expected Behavior
when I write a widget and a unit of code ends, I expect to see in a comment the name of that unit of code, e.g.
Container(
decoration: BoxDecoration(
color: Theme.of(context).colorScheme.primary,
borderRadius: BorderRadius.circular(24),
), // BoxDecoration
padding: const EdgeInsets.all(25),
child: const Icon(Icons.person, size: 64),
), // Container
Steps To Reproduce
Neovim - 0.9.5

Build type: "Release"
Plugin:
return {
'akinsho/flutter-tools.nvim',
lazy = false,
dependencies = {
'nvim-lua/plenary.nvim',
'stevearc/dressing.nvim', -- optional for vim.ui.select
},
config = true,
}

Environment
- OS:Arch linux
- Flutter version:3.22.1
- Is flutter in $PATH:yes
- neovim version:0.9.5

Anything else?
I'm not sure if it is relevant, I've installed Flutter sdk with snap. I'm questioning whether that was a good choice.
All the other flutter tools seem to work really well.

Have you tried installing flutter via the official documentation? What is the result of that?
Do the other features work?

I haven't reinstalled via the official documentation. Everything else works, except closing tags. But I'm guessing it is some weird quirk thanks to snap. I'll try that and re-open if it doesn't resolve it. For now, I'll close the ticket.


Edit Redirects to 404 path

Editing guides at all the pages are redirecting to 404
When I click the edit icon at the top right corner https://cli.emberjs.com/release/appendix/dev-tools/, It takes me to
https://github.com/ember-learn/cli-guides/edit/master/guides/appendix/dev-tools.md (404)
Actually, it should take me to
https://github.com/ember-learn/cli-guides/edit/main/guides/appendix/dev-tools.md

@rinoldsimon Thank you for letting us know of this issue. We recently updated the default branch name for cli-guides to main, and didn't realize the scenario with the edit link.
The edit link is hardcoded in guidemaker-ember-template. Possible solutions are:

Release a fix in guidemaker-ember-template
Wait for GitHub to support redirecting edit links
Something else

I think we can add this to Guidemaker as an addon config pretty easily. I’ll try to look at it today or ask Chris for help when we pair on Thursday.
A third option is to recreate the “master” branch so that the links go somewhere. I think I will do that as well, while we work on the other task. How does that sound, @ijlee2 ?

@jenweber Yep, a temporary revert of the branch name is okay with me. Thanks for your help!

We don’t have to revert anything, thankfully. I will branch from main, call the new branch master, and leave main as the default. I’ll do that now. I’ll also make sure that removing it is tracked in an issue.

Step one is done and the links work again.

This commit seems to add the needed configuration: https://github.com/ember-learn/cli-guides/commit/2b376bcd9e3d9d1eae4eb3a669221faed9a16017
So I think this issue can be closed?


chore(ticdc): remove useless comment

What problem does this PR solve?

Issue Number: ref #5039
What is changed and how it works?
Remove useless comments.
Check List
Tests

No code

Questions
Will it cause performance regression or break compatibility?
Do you need to update user documentation, design documentation or monitoring documentation?
Release note
None

/merge

/run-integration-test


Figure out why db backup isn't automatically running in production

It's trying to connect to localhost instead of the right mongoose connection in the cron job, but works fine from the command line.

I restarted the container, maybe it was just using an old environment variable for some reason?

Nope

All script steps log now, and echo out the environment variable. Will check again tomorrow.

It's because the environment variables from Docker aren't available to cron. Added an entrypoint script that will export them to the right file. Should work tonight, we'll see. If it does I'll need to modify the access code map one too.

Fixed!


[Trivial] Prerequisites need on Introduction page.

Hello developers.
I think It is good idea to add Prerequisites page link on this page.
https://github.com/celluloid/dcell
Because I didn't know It's need redis-server until execute itchy.rb sample
And I couldn't find Redis keyword on that page.
Could you add the following block on that page.?
Prerequisites
Read Prerequisites page.
Execution result
% ruby itchy.rb
D, [2014-07-08T18:07:03.363530 #3568] DEBUG -- : Terminating 1 actor...
/path/to/ruby/ruby/gems/2.0.0/gems/redis-3.0.4/lib/redis/client.rb:276:in `rescue in establish_connection': Error connecting to Redis on <IP_ADDRESS>:6379 (ECONNREFUSED) (Redis::CannotConnectError)
	from /path/to/ruby/ruby/gems/2.0.0/gems/redis-3.0.4/lib/redis/client.rb:271:in `establish_connection'
	from /path/to/ruby/ruby/gems/2.0.0/gems/redis-3.0.4/lib/redis/client.rb:69:in `connect'
	from /path/to/ruby/ruby/gems/2.0.0/gems/redis-3.0.4/lib/redis/client.rb:290:in `ensure_connected'
	from /path/to/ruby/ruby/gems/2.0.0/gems/redis-3.0.4/lib/redis/client.rb:177:in `block in process'
	from /path/to/ruby/ruby/gems/2.0.0/gems/redis-3.0.4/lib/redis/client.rb:256:in `logging'
	from /path/to/ruby/ruby/gems/2.0.0/gems/redis-3.0.4/lib/redis/client.rb:176:in `process'
	from /path/to/ruby/ruby/gems/2.0.0/gems/redis-3.0.4/lib/redis/client.rb:84:in `call'
	from /path/to/ruby/ruby/gems/2.0.0/gems/redis-3.0.4/lib/redis.rb:1747:in `block in hset'
	from /path/to/ruby/ruby/gems/2.0.0/gems/redis-3.0.4/lib/redis.rb:36:in `block in synchronize'
	from /path/to/ruby/ruby/2.0.0/monitor.rb:211:in `mon_synchronize'
	from /path/to/ruby/ruby/gems/2.0.0/gems/redis-3.0.4/lib/redis.rb:36:in `synchronize'
	from /path/to/ruby/ruby/gems/2.0.0/gems/redis-3.0.4/lib/redis.rb:1746:in `hset'
	from /path/to/ruby/ruby/gems/2.0.0/gems/redis-namespace-1.3.1/lib/redis/namespace.rb:317:in `method_missing'
	from /path/to/ruby/ruby/gems/2.0.0/gems/dcell-0.15.0/lib/dcell/registries/redis_adapter.rb:40:in `set'
	from /path/to/ruby/ruby/gems/2.0.0/gems/dcell-0.15.0/lib/dcell/registries/redis_adapter.rb:53:in `set_node'
	from /path/to/ruby/ruby/gems/2.0.0/gems/dcell-0.15.0/lib/dcell/directory.rb:14:in `set'
	from /path/to/ruby/ruby/gems/2.0.0/gems/dcell-0.15.0/lib/dcell.rb:68:in `block in setup'
	from /path/to/ruby/ruby/gems/2.0.0/gems/dcell-0.15.0/lib/dcell.rb:45:in `synchronize'
	from /path/to/ruby/ruby/gems/2.0.0/gems/dcell-0.15.0/lib/dcell.rb:45:in `setup'
	from /path/to/ruby/ruby/gems/2.0.0/gems/dcell-0.15.0/lib/dcell.rb:101:in `start'
	from t.rb:3:in `<main>'

It worked properly I launch redis-server.

Seems like prerequisites page describes now the initial process.


[metadata] OTel: adding otel inventory metadata payload

What does this PR do?

Adds a new metadata payload to be submitted as an inventory sub-payload leveraging present components, integrating it into the current flare and inventories facilities.
Motivation

Improved support for OTel in Fleet Automation
Additional Notes

Further work required on backend prior to enabling this feature.
Disabled by default.
Possible Drawbacks / Trade-offs

Describe how to test/QA your changes

TODO

Great to see this PR! Do you think it makes sense to arrange it according to the new multi-impl component layout? https://datadoghq.atlassian.net/wiki/spaces/ASC/pages/3737976969/Quick+Guide+to+Convert+to+multi-impl+Component I'm not sure if it would be beneficial, as there likely won't be an alternative implementation, and it's unclear if there's a need to decouple the implementation from fx.

@dustmop I think we should change the layout, because we never know if there might be future implementations (even though it may be unlikely). That said, I currently implemented it this way so that we're consistent across metadata payloads which have not yet been migrated to the new layout. I think I would like to do it for all of them in a follow-up PR (which can be detached from this effort).

/merge


Create itBit Exchange Adapter

https://www.itbit.com/h/api

Under development...

Code complete. Undergoing live testing with exchange.

Done.


blackbox_initialize suggests addition of nonexistent directory

$ blackbox_initialize
Enable blackbox for this git repo? (yes/no) yes
VCS_TYPE: git

NEXT STEP: You need to manually check these in:
      git commit -m'INITIALIZE BLACKBOX' keyrings /home/thomas/code/github.com/uhthomas/automata/.gitignore

keyrings does not exist and so the command fails.

Thanks for reporting that.  the keyrings directory is replaced by the .blackbox directory but I guess we forgot to update that message.  If you see the .blackbox directory in git status then it's all ok.  Just adjust the command.