Make death message configurable

Problem
Death messages like "Player was slain by Silverfish" can't be modified in the config.
However, I would like to be able to append or prepend emojis or even just set a static message.
Example:

The suggestion
Seeing as pretty much all messages (playerJoined etc.) are already configurable, I wish there was support for setting a custom death message as well.
As for replacable things in the config, I suggest having:

%player: The name of the player who died, extracted from the death event
%deathmsg: Part of the death string after the player name (e.g. was slain by Silverfish).
Should be achievable by splitting the string, as it seems like vanilla death messages always adhere to the same format, being: playername was ....

Here's what the default config option should look like:
"minecraftToDiscord": {
      "messages": {
            ...
            "deathMessage": "%player %deathmsg",
            ...
      }
}

Due to the sheer number of death messages (about 30 or 40 I think) in the game this is going to be quite tedious to implement fully (as in make all possible messages completely customizable) since there are a lot of possible messages with one to three entities involved.
I added the feature to add a prefix as well as a postfix to the vanilla death messages since that was very easy to implement and probably already does what you wanted.
Implementing a static custom message is also easy but that is kinda lame no?

A static message could be used for example for "%player has been eliminated from the hunger games event" or something like that.
I saw you implemented death messages with deathMsgPrefix and deathMsgPostfix.
You could propably solve the static message by setting the prefix to %player been eliminated from the hunger games event ( and postfix to ), which would result in:
Player has been eliminated from the hunger games event (Player was slain by blablabla).
That seems good enough and doesn't require yet another option.
@v-tron However for that to work you need to be able to use a %player object in prefixes and postfixes. Is that possible currently?

For now I think that the prefix and postfix is enough. But yeah, that could be a way to implement it. I was thinking about a custom death messages part of the config where you could customize messages for each cause of death (fell out of the world, shot by, etc.).


Update MD file on new branch 2017-47-28_19-11-06

:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

split/updateTestRef.md
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


How to patch the transport file to the sender?

I tried to register a single node to the registry and was able to get the transport file using the connection API. Now i am not sure of how to patch this transport file to the receiver (assuming the same node can receive as i only have one node) node. Is it possible to do so? Does it require the same id as the sender id? or do i need a different node to receive the file?
This might be a very silly question. As i am totally new into this, it would be very helpful if i could get some hint or the links to documentation leading to the solution.
Thank you.

Let's assume your NMOS Node has a Sender and a Receiver, with compatible transports and formats.
 So far so good!
In order to have the Receiver activate a connection to that Sender immediately, you need to make an HTTP PATCH request to:
http://api.example.com/x-nmos/connection/v1.1/single/receivers/{receiverId}/staged
The body of the PATCH request is a JSON object, with a few properties:

The sender_id
The activation object, indicating the connection should be made immediately
The transport_file object, containing the SDP file encoded as a JSON string

So something like:
{
  "sender_id": "{senderId}",
  "activation": {
    "mode": "activate_immediate"
  },
  "transport_file": {
    "type": "application/sdp",
    "data": "v=0\r\n....."
  }
}

If you want to play with software to see how this works, the open-source AMWA NMOS Testing Tool, the free-to-download Riedel NMOS Explorer desktop app, or the open-source Sony nmos-js Client webapp, could be good places to start.

Thank you for your prompt reply.
I tried with curl: curl -X PATCH -H "Content-Type: application/json" -d '{"sender_id": "99123ce4-23a9-5c1a-b45e-0abcd3dc617a", "activation": {"mode": "activate_immediate"}, "transport_file": {"type": "application/sdp", "data": "v=0"}}' http://<IP_ADDRESS>:3215/x-nmos/connection/v1.1/single/receivers/a09919d1-f8b7-1234-bb08-z636eef4zz47/staged
I get this error: {"code":500,"error":"Internal Error","debug":"Transport file error - sdp parse error - expected a line for origin at line 2"}
I am not sure if my command is right or not.
Also is there any way to directly send the contents of SDP as a .txt or .json file?

You need to put the whole SDP file into the transport_file.data, remembering that e.g. new lines are escaped as \r\n in JSON strings. This is the only way to pass an SDP file to an IS-05 Receiver.

Ok, i get it now, it requires the full info from SDP file.
I was also successful in communicating with physical transmitters and receivers.
Thank you very much for your help.


gRPC error with Milvus retriever

Checked other resources

[X] I added a very descriptive title to this issue.
[X] I searched the LangChain documentation with the integrated search.
[X] I used the GitHub search to find a similar question and didn't find it.
[X] I am sure that this is a bug in LangChain rather than my code.

Example Code
from langchain_community.vectorstores import Milvus

vector_db = Milvus.from_texts(
    texts=str_list,
    embedding=embeddings,
    connection_args={
        "uri": "zilliz_cloud_uri",
        "token": "zilliz_cloud_token"
    },
)

Error Message and Stack Trace (if applicable)
E0210 23:13:44.149694000<PHONE_NUMBER> hpack_parser.cc:993]               Error parsing 'content-type' metadata: invalid value
[__internal_register] retry:4, cost: 0.27s, reason: <_InactiveRpcError: StatusCode.UNKNOWN, Stream removed>

Description
OS== macOS 14
pymilvus==2.3.4
langchain==0.1.3
langchain-community==0.0.15
pyarrow>=12.0.0
NOTE: pyarrow must be installed manually .otherwise code will throw error
I am using Milvus module from langchain_community as vector database. Code seem to have gRPC related errors in local environment. moreover , within colab environment I'am facing this error :
    584             end = min(i + batch_size, total_count)
    585             # Convert dict to list of lists batch for insertion
--> 586             insert_list = [insert_dict[x][i:end] for x in self.fields]
    587             # Insert into the collection.
    588             try:

KeyError: 'year'

Error is from :
File "/Users/moeinmn/anaconda3/lib/python3.11/site-packages/langchain_community/vectorstores/milvus.py", line 904, in from_texts
vector_db = cls(
^^^^
File "/Users/moeinmn/anaconda3/lib/python3.11/site-packages/langchain_community/vectorstores/milvus.py", line 179, in init
self.alias = self._create_connection_alias(connection_args)
System Info
langchain==0.1.3
langchain-community==0.0.15
pymilvus==2.3.4

@Moeinmn Use user and password instead of the token field should fix your issue:
vector_db = Milvus.from_texts(
    texts=str_list,
    embedding=embeddings,
    connection_args={
        "uri": "zilliz_cloud_uri",
        "user": "zilliz_cloud_user",
        "password": "zilliz_cloud_password",
    },
)


Update  XmlRpc4Win to a more recent version

Currently merged XmlRpc4Win version contains some bugs which were fixed in upstream repo. For example, compare
https://github.com/coronalabs/corona/blob/a77b30fd92b712aeb8f11bce6d6b35683aa51cfe/external/winxmlrpc/TimXmlRpc.cpp#L694-L699
and
https://github.com/drtimcooper/XmlRpc4Win/blob/72564d4c3e98dd1b01610e81974237944211d528/TimXmlRpc.cpp#L677-L682 (fixed in https://github.com/drtimcooper/XmlRpc4Win/commit/0d42da505c83bfacad0e9ab2619e2ce0a825c126).

Thanks. Does this cause some issue in runtime? We are planning removing XmlRpc completely, since we won't be needing communicating with developer.coronalabs.com anymore, because it is going away.


Float window doesn't close on buffer change

Open 2 buffers. One is visible in the current window and one is not visible. Call hover to see floating window. Type :bnext to switch to another buffer. You will be switched to another buffer but the floating window stays on top until you change buffer again or close it manually.
I think expected behavior is to close floating window on buffer or window switching.

I think it would be useful to be able to move the cursor to the hover_doc window, but it disappears when BufLeave occurs.
I thought it would be useful to have the following function available.
M.render_or_into_hover_doc = function()
  if hover.has_saga_hover() then
    a.nvim_command [[noautocmd wincmd p]]
  else
    hover.render_hover_doc()
  end
end


Feat mongoose standalone

Information

Type
Breaking change

Feature
No

Description
This PR allow usage of "mongoose standalone". It means all decorators of @tsed/schema and @tsed/mongoose can be used without @tsed/common.
Usage example
Example to use your feature and to improve the documentation after merging your PR:
import {Configuration} from "@tsed/di";
import {mongooseFactory, MongooseService, MongooseDocument} from "@tsed/mongoose"; // import mongoose ts.ed module

const rootDir = __dirname;

export async function bootstrap(settings: MongooseFactoryOptions) {
  // Resolve DI, boostrap module, services, etc.. and create connections with database.
  const injector = await mongooseFactory(settings)

  // Get services and models
  const mongooseService = injector.get<MongooseService>(MongooseService); // to get connections
  const myModel = injector.get<MongooseDocument<MyModel>>(MyModel); // get a mongoose model
  // do something

  // emit $onDestroy event and close connections.
  await injector.destroy()
}

boostrap({
  imports: [
    `${rootDir}/models/**/*.ts`,
    `${rootDir}/services/**/*.ts`
  ],
  databases: [ // alias of mongoose in Ts.ED framework
    {
       id: "default",
       url: "mongodb://<IP_ADDRESS>:27017/db1",
       connectionOptions: {}
     }
  ]
}).catch(er => console.error(er))

Todos

[ ] Tests
[ ] Coverage
[ ] Example
[ ] Documentation

Work in progress :)

/rebase


Can't drag to an empty connected list

With two or more connected lists, if all items are removed from a list, I can't add an item back to the original list. There is also no placeholder item shown if you try to move an element from one connected list to another empty connected list.
This is reproducible in the examples:
http://lukasoppermann.github.io/html5sortable/examples/index.html

Hey, you can solve this issue by adding a padding to the list.
It just does not work if the list is 0px heigh.


chore: fix module org

module organization needs to be changed from go-git to argoproj-labs
        module declares its path as: github.com/go-git/go-git/v5
                but was required as: github.com/argoproj-labs/go-git/v5

@alexec will need to tag once more

Im using the replace directive, am I doing it right?
replace github.com/go-git/go-git/v5 v5.4.2 => github.com/argoproj-labs/go-git/v5 v5.4.3

Im using the replace directive, am I doing it right?
replace github.com/go-git/go-git/v5 v5.4.2 => github.com/argoproj-labs/go-git/v5 v5.4.3

even after doing this on argoworkflows, I get the error in the PR description

figured it out


Education Page

Can you add the possibility to list courses in the Education Page?
Also, if possible the user can specify the field of GPA. This is because people from different countries can have different names for GPA.

Closing for the same reason in #4


[10.x] Use 'sendSync' as an equivalent to 'sendNow'

Since dispatchSync is used instead of dispatchNow, I think it's a good idea to use sendSync instead of sendNow in later Laravel versions.

Thanks. Please fix the tests and mark as ready.

Seems this PR isn't quite ready yet. Please read the comment by @axlon and if you still want, resend this with passing tests. Thanks


strategyOptions.areas is not iterable

Describe the bug
Error loading the dashboard strategy:
TypeError: strategyOptions.areas is not iterable
strategy:
  type: custom:mushroom-strategy
  options:
    areas:
      salon_id:
        name: Room
        icon: mdi:television
        icon_color: green
views: []

To Reproduce
Steps to reproduce the behavior:

Go to 'Edit configuration'
Add  an 'area'
See error

The readme which is currently visible is of the latest commit to the main branch which isn't compatible with the current release.
Please consult the readme of the previous commit.
@AalianKhan Any sight on the next release date?

I've created a pre-release which you could try.
@dabm-git Any feedback would be appreciated.
Otherwise this issue will be closed for being fixed or stale.

Updated to 1.0.0-alpha.1 and so far so good. I even put custom cards per room without problem and icons.
Thanks for making this, it saves a lot of time!

Hi all,
I'm using the Mushroom-strategy very happily for some time already and I think it's time to customize it a little, so I've starded with adding the icon to the areas and I've had this issue, so I've updated via HACS to pre-release and I've udpated my code to:
strategy:
  type: custom:mushroom-strategy
  options:
    areas:
      - name: Obyvacka
        icon: mdi:sofa
        icon_color: red
      - name: Radkova
        icon: mdi:teddy-bear
views: []

The "Obyvacka" area has name "Obyvacka" and ID "bd3433244dc9f41bc6c2d734b0364567", do I understand correctly the ID is not needed anymore? It doesn't apply the icon nor the color, I still get only the same automatic list of all areas (24).
The "Radkova" area has name "Radkova" and ID "Radkova". Also the icon is not updated.
I've done Ctrl+F5, I've done full reboot of Home Assistant. I'm not getting any warnings when saving the customization.
Am I doing something wrong, please?
Thanks a lot!

Please consult the readme file of the pre release. Your configuration has the "old" format/syntax.

Aaaaah, so above is old syntax... So it's vice-versa to what I thought. Now it's working, thanks a lot! I'm sorry for wasting your time.
Only for a reference, this is the new working config:
strategy:
  type: custom:mushroom-strategy
  options:
    areas:
      bd3433244dc9f41bc6c2d734b0364567:
        name: Obyvacka
        icon: mdi:sofa
        icon_color: red
      radkova:
        name: Radkova
        icon: mdi:teddy-bear
views: []


Default navigation not used in cgeopopup

Opening the popup from within the map the compass app is started from the action bar. This should be replaced by the default navigation application as in the other activities too.

A fix is provided by #1029.

Strange. I mentioned this in the pull request that introduced this feature and I think, that the author has implemented it.


Sparklint UI does not come up

Hi ,
Tried the instruction provided in https://github.com/groupon/sparklint . When I do a spark submit I do see the logs which says the below . But when I hit the driver IP with port I cannot see the UI. Could you please help me . Are there any additional configs to be applied ?
Logs
17/08/17 14:30:16 INFO nio1.NIO1SocketServerGroup: Service bound to address /0:0:0:0:0:0:0:0:23763
17/08/17 14:30:16 INFO sparklint.Sparklint: Server started on 23763
17/08/17 14:30:16 INFO spark.SparkContext: Registered listener com.groupon.sparklint.SparklintListener

I assume you are running the Live mode (run inside spark driver node). The UI is available only when the Spark program is running. If your program finishes execution by the time you access the URL in browser you would not be able to see anything.
You can refer to an example in my repo https://github.com/NileshGule/learning-spark
I was able to see the SparkLint UI by executing the following command

spark-submit --packages com.databricks:spark-csv_2.10:1.5.0,com.groupon.sparklint:sparklint-spark163_2.10:1.0.8 \
--conf spark.logConf=true \
--conf spark.extraListeners=com.groupon.sparklint.SparklintListener \
--class com.nileshgule.movielens.RatingsCsvReader \
--master local \
--deploy-mode client \
--executor-memory 4g \
--name RatingsCsvReader \
--conf "spark.app.id=RatingsCsvReader" \
target/learning-spark-1.0.jar ml-latest/ratings.csv

Here is a screenshot of the results shown in UI

Hope this helps.

I have a spark streaming job with 10 sec micro batch. My sparkling UI does not show up. Logs show that connection is accepted still no response. Do I have to put additional config for streaming job?

Hi,
I am also facing the same issue as sparkuser3. The SparkLint UI does not comes up even when the job is running, but I can see the below message in the logs. Am I missing any configuration here?
INFO nio1.NIO1SocketServerGroup: Service bound to address /0:0:0:0:0:0:0:0:23763
INFO sparklint.Sparklint: Server started on 23763
INFO spark.SparkContext: Registered listener com.groupon.sparklint.SparklintListener
Thanks
Amit

What platform are you running the application on?

Hi! We used it on a hortonworks hadoop platform and to view the UI we had to port forward the required port. This could be a similar issue you are facing


Refactor query resource count

In the current implementation, the counting management control of reading resources in FileNodeProcessor is implemented by lock, which will have a negative impact on the distributed reading process, so I change to use AtomicInteger for counting management of reading resources instead of using lock.

seems ok. But could you review PR 163 first and merge this PR until PR #163 is merged :)

That's ok.

Kun Liu's comment reminds me something:

addMultiPassLock() may block if the writeLock works, but addMultiPassCount does not.
In switchWaitingToWorking(),  why you still use a lock? Don't you want to make it lock-free?

The first question I have answered before, please see that in the previous conversation.
For the second question, indeed, I find that lock() of oldMultiPassLock is unnecessary because the whole process is locked in the next step (writeLock()) and unlock() of oldMultiPassLock is just after unlock of the whole processor. So I remove it.

Old files can't be deleted until no queries need these files.

That's indeed a bug, it has been fixed already.

Kun Liu's comment reminds me something:

addMultiPassLock() may block if the writeLock works, but addMultiPassCount does not.
In switchWaitingToWorking(),  why you still use a lock? Don't you want to make it lock-free?

The first question I have answered before, please see that in the previous conversation.
For the second question, indeed, I find that lock() of oldMultiPassLock is unnecessary because the whole process is locked in the next step (writeLock()) and unlock() of oldMultiPassLock is just after unlock of the whole processor. So I remove it.

if newMultiPassLock.writeLock.tryLock() success, and then someone calls addMultiPassLock(), the behavior is "block", but addMultiPassCount does not...

Kun Liu's comment reminds me something:

addMultiPassLock() may block if the writeLock works, but addMultiPassCount does not.
In switchWaitingToWorking(),  why you still use a lock? Don't you want to make it lock-free?

The first question I have answered before, please see that in the previous conversation.
For the second question, indeed, I find that lock() of oldMultiPassLock is unnecessary because the whole process is locked in the next step (writeLock()) and unlock() of oldMultiPassLock is just after unlock of the whole processor. So I remove it.

if newMultiPassLock.writeLock.tryLock() success, and then someone calls addMultiPassLock(), the behavior is "block", but addMultiPassCount does not...

These methods are executed on the premise of acquiring the current write lock of the processor, so there will be no such situation as you said.

Please fix the ci.
@fanhualta


remove test

Description

Type

[ ] Bug Fix
[ ] New Feature
[ ] Code Refactor
[ ] Documentation
[ ] Other

Related Issue

Screenshots

Testing

Pull request checklist
Please check if your PR fulfills the following requirements:

[ ] I checked and followed the contributor guide
[ ] I have tested my changes locally.
[ ] I have added a screenshot from the website after I tested it locally

Could you please add some description to the PR why did you remove the test?


MLP Project Landing Page

Update the Project Landing page to display the summary of ML project components.

LGTm


Create a past film archive?

Not sure how important this is.
I've listed the old films on a page.
It's a shame to lose them, but we maybe just need a good way to be clear that they are "past" films when people discover them.

See also #15

We have the old files in personal archives. The new site - version2 branch has a way of getting the data


Text size is too small on mobile

We need an entirely different layout for mobile
On Sun., 6 Nov. 2016, 14:57 Thomas David Baker<EMAIL_ADDRESS>wrote:

—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/PennyDreadfulMTG/Penny-Dreadful-Tools/issues/552, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AAL2zmcdVU__zp12mX75tokUb0Dn8Dbuks5q7VAvgaJpZM4Kqdae
.

We have an alternate layout for mobile but mobile resolutions are getting so high that it doesn't actually kick in for things like latest iPhones :P – needs some work.

I fixed this. Our mobile layout is not perfect but there are open tasks for that. A lot of things are better including font size.


Issues with jstree 3.3.0

See http://jsfiddle.net/3Lzr26bg/
The tree's "main column" is not visible. When the grid plugin is removed, the tree renders fine. The only difference I could spot is that the root node gets the jstree-closed CSS class.

Well, isn't that cute. How interesting. But I had no issues with another example with which I was working.

Yeah, it looks like it is the jstree-closed class, but not sure what it is.

Ok, now I see it. Definitely a jstree 3.3.0 thing.

@vakata help? From 3.2.1 to 3.3.0 it stopped working. It suddenly puts class="jstree-closed" on the tree <div>

Just added a fix for this - thank you.
On 7 April 2016 at 20:53, Avi Deitcher<EMAIL_ADDRESS>wrote:

@vakata https://github.com/vakata help? From 3.2.1 to 3.3.0 it stopped
working. It suddenly puts class="jstree-closed" on the tree
—
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub
https://github.com/deitch/jstree-grid/issues/147#issuecomment-207027214

Thank you, @vakata . Will this be 3.3.1 when released?
@jochenberger I am closing this out.

Thanks for your help guys.

@deitch yes, it will be v.3.3.1, I just need to close a RTL theme related issue and I will publish it.

Hi @vakata sorry to bug. Do you have a 3.3.1 ETA?


Weird Encoding Issues

For some reason i have to use this workaround with fillUsing:
            Multiselect::make('Robots', 'robots')->options([
                'index' => 'index',
                'follow' => 'follow',
                'noindex' => 'noindex',
                'nofollow' => 'nofollow',
            ])->nullable()->fillUsing(
                fn (NovaRequest $request, \App\Models\Eloquent\Seo $seo) => $seo->robots = $request->input('robots', [])
            )->default(['index', 'follow']),

Model:
    public $casts = [
        'robots' => 'array',
    ];

is this supposed to work out of  the box?

Yes, it's definitely suppose to work out of the box. Let me test the exact same code.

Seems to work perfectly for me. Are you sure you don't have a getRobotsAttribute() which overrides some of the values?

letme do a quick re-check

using:
                    Multiselect::make('Locales')->options(
                        array_combine(array_keys(config('app.locales')), array_keys(config('app.locales')))
                    )->help('These locales are user maintained and will never be auto-translated.'),

gives me some encoding issues in the json column:
"[\"en\",\"de\"]"

but: using asJson works now, had another issue some time ago.

Yeah, unless you explicity define "saveAsJson()", it will just save a stringified version of the array.


[FEATURE] DB Context Factory / EFCore 6 Change Tracking challenges

Is your feature request related to a problem? Please describe.
As context, I've always been a fan of accessing and creating dbcontexts when I've needed to do multiple db related actions. I feel with this project I should give in and simply adopt the context factory method but no idea how I'd go about doing that.
Problem I'm running into is I've added an ICollection<Hero> Heroes to the user class but when trying to create it, I continuously getting change tracking problems.
Describe the solution you'd like
Add ICollection<Hero> Heroes to the User class and adopt (if it's the right solution) a db context factory
Describe alternatives you've considered
I did wonder about scoped vs transient but I feel the context factory might fit better
Additional context
None

Forgot to say, also love the boilerplate!

Hello, Rhys, can you please post the error you are getting?
That would be very helpful.

Forgot to say, also love the boilerplate!
thank you!

Apologies, I got round the issue, took me a while to reproduce it. I've also pivot'd from the heroes example but the classes are basically the same.
Error is
InvalidOperationException: The instance of entity type 'Tenant' cannot be tracked because another instance with the key value '{Id: d9aabb38-b372-444d-dfbf-08da008e2903}' is already being tracked. When attaching existing entities, ensure that only one entity instance with a given key value is attached

In a controller I have:
string domain = "mydomain.com";
GetTenantDto tenant = await _tenantService.GetTenantByDomain(domain);
          if(xx == null){
            CreateTenantDto t = new CreateTenantDto(){
              Name = tokenS.Claims.First(claim => claim.Type == "tid").Value,
              Domain = domain
            };
            tenant = await _tenantService.CreateTenant(t);
          }

          GetUserDto userx = await _userService.GetUserByEmail(tokenS.Claims.First(claim => claim.Type == "preferred_username").Value);
          if (userx == null) {
            userx = await _userService.CreateUser(new CreateUserDto(){
              Email = tokenS.Claims.First(claim => claim.Type == "preferred_username").Value,
              IsAdmin = false,
              Tenant = tenant,
            });
          }

Any thoughts would be greatly appreciated,

I've just got round the problem by adding
Db.Entry(entity).State = EntityState.Detached; to Update and Create in the Repository.cs not sure if this is the right thing to do though,

~I've just got round the problem by adding Db.Entry(entity).State = EntityState.Detached; to Update and Create in the Repository.cs not sure if this is the right thing to do though,~
Update: This didn't actually get round the problem it consequently stopped the tenant entity from being created in the first place.

Yeah, unattaching the entity will not fix it.
Can you create a simple repo or something so that I can take a look at the request and help you on this?

That would be awesome, will add you on now

I've added you as a collaborator and branched onto 'first'

https://github.com/rhysjtevans/pigeonhole

@yanpitangui Did some more testing and I replaced the Dto objects and the tenantService I had in what is effectively the HeroController with the repository and that works,
I noticed where I had Tenant property on the user class and a GetTenantDto on the CreateUserDto it wasn't mapping correctly and It looks like it was trying to create both the user and a new Tenant (that already exists)
Do note the "Tenant" is completely interchangeable with "Hero".
GetTenantDto tenant = await _tenantRepository.GetByDomain(domain);
if(tenant == null){
            CreateTenantDto ds = new CreateTenantDto(){
              Name = tokenS.Claims.First(claim => claim.Type == "tid").Value,
              Domain = domain
            };
            tenant = await _tenantService.CreateTenant(ds); // (TenantService is a duplicate of HeroService)
}
....
GetUserDto userx = await _userService.GetUserByEmail(tokenS.Claims.First(claim => claim.Type == "preferred_username").Value);
          if (userx == null) {
            userx = await _userService.CreateUser(new CreateUserDto(){
              Email = tokenS.Claims.First(claim => claim.Type == "preferred_username").Value,
              IsAdmin = false,
              Tenant = tenant,   // Tenant here is GetTenantDto from above.
              AccessToken = azuretoken.access_token,
              RefreshToken = azuretoken.refresh_token
            });
          }

Oh, that's great! So did you solve your problem?
I had no time to take a look on your code yet.

So it's probably my lack of dotnet aspnet knowledge but I think what I'm going to do moving forward is use the repository if I'm interacting with the database entities in any way and then the service to map the entity to a Dto to transfer to the client,

So it's probably my lack of dotnet aspnet knowledge but I think what I'm going to do moving forward is use the repository if I'm interacting with the database entities in any way and then the service to map the entity to a Dto to transfer to the client,

Yeah, that sounds ok. In the future, I will revisit the use of repositories, maybe remove them completely. But that is another talk. For now, I will close the issue, feel free to open others if you have any other questions


Simple Abstraction of the 1-HelloWindow already... Application class of some sort ran by Main

Instead of one big ass Main.cpp,
break it into a simple Application class, same should be applied to future chapters

Implemented in !8


feat: add standard traceId log attribute

Makes cross-project trace investigations easier in joined log buckets.

@alethenorio I'm just moving this existing feature from one of our internal libraries, which is getting split up. I'm also happy to drop this functionality entirely. WDYT?

Not against have the field per se but just wondering whether enabling it might be counter productive in the end.
Giving it some more thought maybe being able to do filtering on the click of a button might be good for easy access to cross project logs and then if needed the user can drill down further.

@alethenorio I agree that it would be good to avoid depending on custom attributes! Let's discuss dropping it altogether at a guild meeting? In the meantime I added Experimental to the documentation to try and point out that we may remove this in the future.

Sounds like a good plan


Add Apache ActiveMQ ingestion support

Description
Similar to what we provide for Kafka, I would like to add a new ActiveMQ ingestion path.
Motivation
ActiveMQ is very popular in messaging, IoT, ... use cases. It would be great to leverage existing systems to ingest data in Druid.

I already started to work on this one.

I already started to work on this one.


feat: EON-1840 update forger docs and organization

https://horizenlabs.atlassian.net/browse/EON-1840

@yurikoinaba I addressed your comments


Converting Appium.Windows.Windows Element to Native UIA element

Is there way to convert : Microsoft.VisualStudio.TestTools.UITesting.UITestControl to OpenQA.Selenium.Appium.Windows.WindowsElement
Reason we are asking is, we have existing suite of automation developed in coded ui and wanted to migrate to WinAppdriver.
In Case we get stuck as as discussed in issue id 753, if there is option to convert Appium Windows element to UITestControl or Native object of UIAutomation Library, we can proceed further with custom code like below:
Where UIWindow.UICheckBoxListWindow.UIItemList is of type UITestControl
var native = UIWindow.UICheckBoxListWindow.UIItemList.NativeElement as object[];
if ((native != null) && (native[0] is IAccessible))
{
var dataList = native[0] as IAccessible;
for (var index = 1; index < dataList.accChildCount; index++)
{
actions.Add(dataList.accName[index]);
}
In other words getting access to Native Element from OpenQA.Selenium.Appium.Windows.WindowsElement

I am afraid not, you need to rewrite all the test cases.

We also have same issue and we are rewriting test cases as we did not find any solution.

Please refer to this article from the Coded UI team:

Migration
There are no automated migration tools available to move from Coded UI test to Selenium or Appium at this time. We recommend that any new test collateral being built should use the alternatives and plan your replacement of older Coded UI tests so that it is completed before the end of the Visual Studio support lifecycle. As part of this process we recommend that customer re-evaluate their test portfolio to remove tests that are no-longer useful.

Premier support for Enterprise can be engaged for help with migrating tests to alternatives – they can be reached via email on<EMAIL_ADDRESS>

I hope that this post is helpful in answering any questions you may have. If you have any further queries, please reach out to the team at<EMAIL_ADDRESS>
For any migration inquiries, I recommend reaching out to the provided address above ^. Thanks.

what is the way to get native elements for appium web elemets in winappdriver

We also have same issue and we are rewriting test cases as we did not find any solution.

can you please suggest how  you acheived the same


SPOSiteAuditSettings

Pull Request (PR) description
New resource SPOSiteAuditSettings
This Pull Request (PR) fixes the following issues
N/A

This change is

Codecov Report

Merging #200 into Dev will decrease coverage by 0.27%.
The diff coverage is 64%.

@@            Coverage Diff             @@
##              Dev     #200      +/-   ##
==========================================
- Coverage   88.56%   88.29%   -0.28%
==========================================
  Files          49       50       +1
  Lines        4408     4458      +50
  Branches        8        8
==========================================
+ Hits         3904     3936      +32
- Misses        496      514      +18
  Partials        8        8

Impacted Files
Coverage Δ

...POSiteAuditSettings/MSFT_SPOSiteAuditSettings.psm1
64% <64%> (ø)

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 c285749...59c4036. Read the comment docs.

@ykuijs for review.

Agreed to remove the Ensure parameter from the resource since it isn't used.


Allow Multi Window Support

Can you add multi window support. the new samsung devices feature multi window support where the application can be opened in two windows, this is useful when working on multiple servers.
Thanks.

+1

Actually android 5.0 now supports multiple open activities in the task switcher. This should be supported, if any.


DefaultHttp2ConnectionDecoder triggers stream channel closes more eagerly than it should

Expected behavior
When a Http2FrameCodec receives a GOAWAY the stream channels with ID's greater than the last seen will get notified of the GOAWAY so they can bubble up a retryable signal.
Actual behavior
The connection is notified first which eagerly closes the streams. This happens here.
A work around is to add a listener to the Http2Connection that eagerly sends another copy of the Http2GoAwayFrame down the pipeline. This works because connection listeners get called before the extra streams are culled, but that is also painful because the DefaultHttp2GoAwayFrame constructor that allows your to set the lastStreamId is package private.
Netty version
4.1.43.Final but also appears to affect 4.1

@bryce-anderson will you look into a proper fix ?

@normanmaurer, yes. I suspect it will be either really easy or really hard.

@bryce-anderson ok cool... let me know once you have something to review.

@normanmaurer https://github.com/netty/netty/pull/10002


 padding cuts off '.' for lists longer than 9 items.

Messing around with it, the padding value seems to be set here:
https://github.com/getzola/after-dark/blob/9f1cc6cacec266f8a10fd53d0509d9d6250597e1/sass/_vendor.scss#L257
I'm not sure if that's the best place to fix this, but I figure it's more important to make the bug report right now.
Here's an example image of list items that have more than 10 items:

Ah that's annoying. If you manage to fix it, I'll take a PR

I'm a little rusty on my web dev skills, but is imply increasing the padding-left value to something like 30px the right answer here? Or is there some other magical trick that actually creates an even amount of spacing no matter how many digits are in the list?

hmm I'll try locally in a bit (unless your site is live somewhere and I can just do it in the console)

I do have a live site up that demonstrates this issue - note that I manually changed the padding-left value locally as a rough attempt at fixing the issue. The distance between the 1-9 and 10+ numbers is noticeable though, and I'm not sure how to solve that.
Here you go: https://austindw.com/openwrt-router-setup/#setting-up-sqm


refactor: refactor create partition table procedure

Which issue does this PR close?
Closes #
Rationale for this change
At present, the CreatePartitionProcedure  have some unreasonable logic and encapsulation, and need to be reconstructed as a whole.
What changes are included in this PR?

Add OpenTable & MigrateTable implementation in Cluster.
Change tableShardMapping to map[storage.TableID][]storage.ShardID.
Add missing param PartitionTableRatioOfNodes  in factory.
Fix Procedure finish state persist.

Are there any user-facing changes?
None.
How does this change test
Pass existing unit tests.

Codecov Report

Merging #127 (da01e68) into main (423ca15) will decrease coverage by 1.37%.
The diff coverage is 33.71%.

:exclamation: Current head da01e68 differs from pull request most recent head 46f2265. Consider uploading reports for the commit 46f2265 to get more accurate results

@@            Coverage Diff             @@
##             main     #127      +/-   ##
==========================================
- Coverage   39.80%   38.42%   -1.38%
==========================================
  Files          29       32       +3
  Lines        3432     3841     +409
==========================================
+ Hits         1366     1476     +110
- Misses       1882     2153     +271
- Partials      184      212      +28

Impacted Files
Coverage Δ

server/cluster/cluster.go
0.00% <0.00%> (ø)

server/cluster/manager.go
0.00% <0.00%> (ø)

server/cluster/table_manager.go
0.00% <0.00%> (ø)

server/cluster/topology_manager.go
0.00% <0.00%> (ø)

server/cluster/types.go
0.00% <ø> (ø)

server/coordinator/procedure/factory.go
0.00% <0.00%> (ø)

server/coordinator/procedure/scatter.go
65.00% <20.00%> (-1.92%)
:arrow_down:

...erver/coordinator/procedure/create_normal_table.go
39.02% <30.43%> (ø)

server/coordinator/procedure/drop_table.go
47.24% <33.33%> (-3.18%)
:arrow_down:

server/coordinator/procedure/util.go
38.88% <40.00%> (+0.17%)
:arrow_up:

... and 9 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

Please make CI happy.


Page link broken

The link to Get started with the Web API (client-side JavaScript) is broken
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 848b09d0-ac43-bedd-da8d-177e84dcde2f
Version Independent ID: f66644b1-8b63-faca-8157-1bee1e611df5
Content: Work with Dynamics 365 Customer Engagement (on-premises) data using web resources (Developer Guide for Dynamics 365 Customer Engagement (on-premises))
Content Source: ce/customerengagement/on-premises/developer/work-data-using-web-resources.md
Service: crm-online
GitHub Login: @JimDaly
Microsoft Alias: jdaly

@KumarVivek
Can you get this topic author changed to someone else/and have it point to the newer model-driven apps content?


Codepod as a VSCode plugin?

The amazing react based whiteboard https://www.tldraw.com/ recently published an extension for VS Code:
https://marketplace.visualstudio.com/items?itemName=tldraw-org.tldraw-vscode
Would something like this also be possible for Codepod?
This would allow using VS Code IDE features like
version control, keyboard shortcuts, GitHub copilot, easy installation via extension marketplace, easy switching to other files and simple selection of the juypter kernel.

Thanks for the suggestion, Hendrik. We have been thinking about the CodePod-as-a-VSCode-plugin idea for a long time.
The main issue is that we're using a database as the backend and lack a file-based backend. It doesn't sound fun and easy to maintain multiple backends, nor do we have the bandwidth.
We choose to use a database because it is more scalable and performant to save changes to individual pods than saving big .ipynb files. Also, it is more straightforward to implement team collaboration features (such as collaborative editing, commenting, and fine-grained access control) with a database.
As for the features provided by VSCode, we actually need to work out a tailored version that suits our hierarchy of pods (and we are working on it). For example,

VCS: .ipynb files are never easy to be version-controlled. We're working on a VCS that is fine-grained to handle individual, nested scopes/pods.
keyboard shortcuts: VSCode mainly provides in-file shortcuts. We are using the same Monaco editor, so the shortcuts in a pod should be consistent with those in VSCode. More importantly, we need to have some special shortcuts that are never in VSCode and unique in CodePod, such as jumping between pods on a Canvas.
copilot: First of all, you can use some chatGPT-based plugin, e.g., with a Chrome plugin called Codeium. A fine-tuned copilot/chatGPT is needed to understand the hierarchy of the pods. Side note: our team (esp. Professor Bao and I) are in the AI/NLP field of research, and we are seriously working on a tailored LLM.


Android GLRsSurfaceView single frame

Required Info

Camera Model
D400

Firmware Version
<IP_ADDRESS>

Operating System & Version
Android 9

Platform
Phone

SDK Version
implementation 'com.intel.realsense:librealsense:2.+@aar

Language
Java (Android)

Issue Description
I've been using one of the examples and the following code is used to display the different streams:
 try
            {
                try(FrameSet frames = mPipeline.waitForFrames(1000))
                {
                    try(FrameSet processed = frames.applyFilter(mColorizer))
                    {
                        mGLSurfaceView.upload(processed);
                        mHandler.post(mStreaming);
                    }
                }
            }
            catch (Exception e) {
                Log.e(TAG, "streaming, error: " + e.getMessage());
            }

Which works fine, the depth and colour streams are both displayed, however I wanted to only display the colour stream so I changed the method so this instead (Just passing the colour frame instead of the frameset)
 try
            {
                try(FrameSet frames = mPipeline.waitForFrames(1000))
                {
                    try(FrameSet processed = frames.applyFilter(mColorizer))
                    {
                        mGLSurfaceView.upload(frames.first(StreamType.COLOR));
                        mHandler.post(mStreaming);
                    }
                }
            }
            catch (Exception e) {
                Log.e(TAG, "streaming, error: " + e.getMessage());
            }

However after only a few frames the stream freezes
Any suggestions? I'm asssuming that perhaps the frames aren't being released or something? I've tried manually calling .close on the processed frameset at the bottom but that makes no difference and android actually says it redundant because the processed frameset is inside the try block anyway

After looking at the Debug logs I can see this is displayed over and over:
2019-08-29 12:25:04.510 29169-29249/com.gpcsl.AndroidRealsense I/librs: Dropped frame. alloc_frame(...) returned nullptr
2019-08-29 12:25:04.569 29169-29249/com.gpcsl.AndroidRealsense I/chatty: uid=10166(com.gpcsl.AndroidRealsense) identical 1 line

Anyone else seen this issue?

@matkatz Could you verify this is an issue please and I'm not just doing something wrong?

Hi @Murded,
Several questions:

Did you refer to below capture example to build your own app?
https://github.com/IntelRealSense/librealsense/tree/master/wrappers/android/examples/capture
which librealsense version do you use?
Per your info, android 9 SDK is used, right?

Hi @Murded,
Several questions:

Did you refer to below capture example to build your own app?
https://github.com/IntelRealSense/librealsense/tree/master/wrappers/android/examples/capture
which librealsense version do you use?
Per your info, android 9 SDK is used, right?

Hi,
I actually didn't refer to that example but a different one (I can't remember which) however since I needed extended functionality I've found a different way to acheive what i wanted.
In regards to the issue, the example you posted is what I was trying to acheive so It is likely that I was doing something (Most likely not disposing of something).
I don't recall the realsense veresion, I just added it as a dependency to my build.gradle at the time this ticket was created.
That's correct, Operating System version Android 9 (API level 28).
I no longer require anything related to this issue so please feel free to close.


On Pinch does not work on Windows 10 (Microsoft Surface)

Describe the bug
Multitouch / onPinch example does not work on Microsoft Surface Win 10.  Attempted in Edge and Chrome.
Sandbox or Video
Official use-gesture CodeSandbox
https://user-images.githubusercontent.com/4006263/120945888-b11bff80-c708-11eb-9662-3581629544b7.mp4
Description of Video: Attempt in Chrome, Attempt to use multitouch in touch list demo on Chrome.
Information:

React Use Gesture version:  v10.0.0-beta.11
Device: Surface Pro 7
OS: Windows 10 21387.1
Browser: Chrome 91.0.4472.77 (Official Build) (64-bit)

That's going to be a pain to debug... by default v10 now uses PointerEvents for pinch, can you try the pointer.touch config option see if that changes anything?
https://v10-beta--use-gesture.netlify.app/docs/options/#pointertouch-drag-and-pinch

@Rafael09ED any news on this?

Thanks for reminding me. I found this which is what I assume is the value I am trying to overwrite but I am not sure how to set that configuration you linked. I tried adding { pointer: { touch: true } } to api.start, useGesture and createUseGesture objects of the example Codepen. I assume I am not adding it to the right place. Where should I add it?

@Rafael09ED its used like this:
usePinch(handler, {
  pointer: { touch: true }
})

Thank you. I added that parameter but I still get the same behavior and am not able to pinch. Codepen. I tried running the sandbox just as the page and it did not work. It did continue to work on my phone.

@Rafael09ED hm... Can you try to describe what happens when you run that code and press the two fingers on the screen:
// this first

 console.log(e)} />
// then this

 console.log(e)} />

I'd like to understand the sequence of events in both cases, and I'm interested in event.pointerType, event.pointerId for the first example, and event.touches, event.changedTouches, event.targetTouches for the second example.
If you can run that, it would be a good place to start, otherwise I'll set up a remote debugging session with you if you're up for it^^

Here are the logs of the four events. Followed this to get the logs to something I could copy
onPointerDown&onTouchStart-twoFingers.txt
Because of our time zone difference a remote session may be difficult to schedule but I am willing.

Hm that's weird, everything seems to be in order. It's ok I can stay up late, shouldn't last too long to identify the problem. You'll probably have to clone the project repo, install pnpm and run pnpm install. After that, run pnpm demo:dev to spawn the demos. If you can join pmndrs Discord, we can take it from there and arrange a call when it works out for you.

Fixed in 10.0.0-beta.17. For the record, Surface doesn't support touch events (at least on Chrome), and supporting touch events was how @use-gesture detected the presence of a touch screen. Now touchscreen is detected with either touch event support or navigator.maxTouchPoints > 1. Thanks again for your help on debugging this @Rafael09ED.

Unfortunately, I'm still experiencing an issue with this on 10.0.2 in Chrome. It might be a quirk with Flatpak sandboxing somehow, or maybe it's some kind of deliberate anti-fingerprinting measure.
navigator.maxTouchPoints reports 0 (and 'ontouchstart' in window is also false), but touchstart etc listeners that are actually attached work fine (eg. these sites work properly where the use-gesture demo pinch example doesn't). If doesn't seem to make a difference whether i add pointer: { touch: true } to the pinch gesture config.
Some other React gesture libraries that support both mouse and touch don't seem to have this issue (eg. react-zoom-pan-pinch works fine for me).
Is there maybe a way touch events could be forcibly enabled as soon as a touch is detected on the window, even if the browser itself lies about touch support up until that point?

Hi @lostfictions, thanks for the detailed explanation. Just to clarify 100%, could you please link to the dysfunctional sandbox and provide your hardware / software details?

Oops, forgot to link the non-working sandbox! It's this one from the official examples.
This is happening in Ubuntu 20.04 x64,  with Chrome 94.0.4606.71. The device is a Lenovo laptop with a touchscreen, similar to this model.
Your snippet returns undefined for me (DocumentTouch isn't defined).
I did find a helpful comment here:

onTouchStartInWindow is the old-old-legacy way to determine a touch device and many websites interpreted it to mean that the device is a touch only phone, so today browsers on a desktop/laptop computer with a touch screen (primary input mouse) have onTouchStartInWindow as false (to prevent from being confused with a touchOnly phone) even though they support the TouchEvents API, so need to check both onTouchStartInWindow and touchEventInWindow for TouchEvent support, however, some browsers (chromium) support the TouchEvents API even when running on a mouse only device (touchEventInWindow true, but onTouchStartInWindow false) so the touchEventInWindow check needs to include an coarse pointer media query

'TouchEvent' in window does return true for me in Chrome, though matchMedia('(any-pointer: coarse)')... doesn't match. So I'm really not sure what's going on. Effectively my browser seems to be hiding its touch capabilities right up until it fires a touch event (at which point event.touches happily includes full multitouch info, so it's not like it's just somehow emulating a touch device).

The problem is that 'TouchEvent' in window does return true on I believe all browsers regardless of the hardware actually supporting touch (it does on my Macbook at least). I'm not sure what to do there... Would you mind moving this conversation on Discord so we can have 1 on 1 chat and run some tests? I'm on pmndrs Discord.


Navigation failed because browser has disconnected! on certain site

Hi,
I have problems with GoToAsync method on certain site after connecting to already running chrome.
Here is a code example:
var endpoint = "ws://localhost:9222/devtools/browser/01f2b3b5-6981-4b51-a6fa-554f31fb5370";

var options = new ConnectOptions();
options.BrowserWSEndpoint = endpoint;
options.DefaultViewport = null;
var browser = Puppeteer.ConnectAsync(options).Result;

var page = (browser.PagesAsync().Result).First();
page.GoToAsync("https://www.bet365.com/").Wait();

browser.Disconnect();

Here not on first call, but on 2nd or 3rd I'm encountering this error:
TargetClosedException: Navigation failed because browser has disconnected!
Best way to reproduce error on 2nd call is to run script once then show up browser on foregroud and then run script again. For some reason showing browser from background to foreground causes to this problem.
Next strange thing that with other site (like www.google.com) there are no problems at all with GoToAsync method.
So as i said - only my target bet365 site causes this error.
I found similar problem here (but without solution): https://githubhot.com/repo/alixaxel/chrome-aws-lambda/issues/104?page=1

Use await/async patterns. First, Result and Wait are blockers.


Atomic Linear stream creation (aka Vesting stream)

Again - just dumb "create Linear Lockup stream" - without any bounds to roles yet

The smart account addresses are being predicted already, they’re in the
state tree Hats objects
On Tue, Jul 16, 2024 at 10:20 AM David Colon @.***>
wrote:

@.**** commented on this pull request.
My execution failed. (But could be an amount on input and token (ETH) I
used). Otherwise looks good to me.
Currently its just a direct to address steam yeah? Are we predicting the
Smart Account Address yet? or is that upcoming?
In src/hooks/streams/useCreateSablierStream.ts
https://github.com/decentdao/decent-interface/pull/2148#discussion_r1679501155
:

 if (

   streamRelativeSchedule.years ||

   streamRelativeSchedule.days ||

   streamRelativeSchedule.hours

 ) {

   streamDuration += streamRelativeSchedule.years * SECONDS_IN_DAY * 365;

   streamDuration += streamRelativeSchedule.days * SECONDS_IN_DAY;

   streamDuration += streamRelativeSchedule.hours * SECONDS_IN_HOUR;

 } else if (streamAbsoluteSchedule.startDate) {

   streamDuration = (Date.now() - streamAbsoluteSchedule.startDate) / 1000;

 }

 let cliffDuration = 0;

 const cliffRelativeSchedule = cliff as StreamRelativeSchedule;

 const cliffAbsoluteSchedule = cliff as StreamAbsoluteSchedule;

 if (

   cliffRelativeSchedule.years ||

   cliffRelativeSchedule.days ||

   cliffRelativeSchedule.hours

 ) {

   cliffDuration += cliffRelativeSchedule.years * SECONDS_IN_DAY * 365;

   cliffDuration += cliffRelativeSchedule.days * SECONDS_IN_DAY;

   cliffDuration += cliffRelativeSchedule.hours * SECONDS_IN_HOUR;

 } else if (cliffAbsoluteSchedule.startDate) {

   cliffDuration = (Date.now() - cliffAbsoluteSchedule.startDate) / 1000;

 }

This might need to be refine some once we implement the form with any
'undefined' values that may come through the form and making sure we
account for 0
—
Reply to this email directly, view it on GitHub
https://github.com/decentdao/decent-interface/pull/2148#pullrequestreview-2180405451,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAFMS4MAB3HHT5TCIX7HPM3ZMUT2JAVCNFSM6AAAAABK5RRQGCVHI2DSMVQWIX3LMV43YUDVNRWFEZLROVSXG5CSMV3GSZLXHMZDCOBQGQYDKNBVGE
.
You are receiving this because your review was requested.Message ID:
@.***>


angular4 local use moudle not working

hello ,I use anguar4 ,for example,
//时间、时分秒、时间区间 import { FlatpickrModule, FLATPICKR } from 'angularx-flatpickr'; import * as flatpickr from 'flatpickr'; import "flatpickr/dist/l10n/zh.js";
but not working

Hello,

but not working

Please elaborate.


Package completeness

Id
Models
Code
Test
Documentation

1
Linear Regression.
100%.
50%
100%

2
Linear Regression with Ridge Prior
100%.
50%
100% (PR is done)

3
Linear Regression with Laplace Prior
100%.
50%
100% (PR is done)

4
Linear Regression with Cauchy Prior
100%.
50%
100% (PR is done)

5
Linear Regression with T-distributed Prior
100%.
50%
100% (PR is done)

6
Linear Regression with Horse Shoe Prior
100%.
50%
100% (PR is done)

7
Linear Regression with g-Prior
0%
0%
0%

8
Logistic Regression.
100%.
50%
100%

9
Logistic Regression with Ridge Prior
100%.
50%
100% (PR is done)

10
Logistic Regression with Laplace Prior
100%.
50%
100% (PR is done)

11
Logistic Regression with Cauchy Prior
100%.
50%
100% (PR is done)

12
Logistic Regression with T-distributed Prior
100%.
50%
100% (PR is done)

13
Logistic Regression with Horse Shoe Prior
100%.
50%
100% (PR is done)

14
Logistic Regression with g-Prior
0%
0%
0%

15
Poisson Regression.
100%.
50%
100%

16
Poisson Regression with Ridge Prior
100%.
50%
100% (PR is done)

17
Poisson Regression with Laplace Prior
100%.
50%
100% (PR is done)

18
Poisson Regression with Cauchy Prior
100%.
50%
100% (PR is done)

19
Poisson Regression with T-distributed Prior
100%.
50%
100% (PR is done)

20
Poisson Regression with Horse Shoe Prior
100%.
50%
100% (PR is done)

21
Poisson Regression with g-Prior
0%
0%
0%

22
Negative Binomial Regression.
100%.
50%
100%

23
Negative Binomial Regression with Ridge Prior
100%.
50%
100% (PR is done)

24
Negative Binomial Regression with Laplace Prior
100%.
50%
100% (PR is done)

25
Negative Binomial Regression with Cauchy Prior
100%.
50%
100% (PR is done)

26
Negative Binomial Regression with T-distributed Prior
100%.
50%
100% (PR is done)

27
Negative Binomial Regression with Horse Shoe Prior
100%.
50%
100% (PR is done)

28
Negative Binomial Regression with g-Prior
0%
0%
0%

29
Hierarchical Bayesian Models
0%
0%
0%

30
Gaussian Process Regression
0%
0%
0%

31
Gaussian Process Classification
0%
0%
0%

32
Gaussian Process Time Series
0%
0%
0%

33
Linear Discriminant Analysis (from MultivariateStat.jl)
0%
0%
0%

34
Ridge Regression (from MultivariateStat.jl)
0%
0%
0%

35
Stepwise variable selection
0%
0%
0%

36
LASSO selection
0%
0%
0%

37
GLMnet
0%
0%
0%

38
Multinomial Logistic Regression
0%
0%
0%

39
Bayesian Multinomial Logistic Regression
0%
0%
0%

Reopening as test cases were not completed. Also it will help us to keep track of the opened issues.


Monitoring Message Flows doc

Description:

Monitoring Message Flows is no longer valid for 3.1.0  as the carbon console does not have monitor tab in 3.1.0.
[1] https://apim.docs.wso2.com/en/latest/administer/product-administration/monitoring/monitoring-message-flows/#!
Suggested Labels:

Suggested Assignees:

Affected Product Version:
3.1.0
OS, DB, other environment details and versions:
Steps to reproduce:
Related Issues:

@pubudu538 , shouldn't this be listed as a removed feature after this page is removed?

+1 to include this feature under removed features.

@amilam , can you please provide a description that we can use to list this removed feature in [1]
[1] https://apim.docs.wso2.com/en/latest/getting-started/about-this-release/#what-has-changed-in-this-release

Fixed in -

https://github.com/wso2/docs-apim/pull/1109
3.1.0

https://github.com/wso2/docs-apim/pull/1110
3.2.0


Failing to fetch query_id

Hi Ruchir, thanks for the great application.
Recently, the application has been unable to fetch the query_id so it has been failing on the 'assert query_id' line of the download_video function (query_id is still None when it gets there).
That is line 161 of twitter_video_dl.py.
Hope you get a chance to look into it at some point!
Thanks so much,
pleblira

PS: I would submit a PR to fix this but it's still a little above my paygrade 😄


function add_loader_to_footer() should only load in customizer/in admin

Also there should not be a closing slash in the div element
public function add_loader_to_footer() { ?>

Thank you for reporting this!
Fixed in the develop branch this will be included in the next release. :+1:


[SPARK-29814][MLLIB] Missing persist on sources in mllib.feature.PCA

What changes were proposed in this pull request?
Use persist on RDD which is used for more than one action.

Why are the changes needed?
The rdd sources is used in more than one actions: first() and actions in computePrincipalComponentsAndExplainedVariance(), so it needs to be persisted.

Does this PR introduce any user-facing change?
No

How was this patch tested?
Manually

Can one of the admins verify this patch?

Can one of the admins verify this patch?

https://github.com/apache/spark/pull/26454


Fixes #942 etcdadm cannot find ca.pem

This change allows etcdadm services to function in the latest master branch.  Is this the correct solution here?

Thanks for debugging and prompt fix!


Proposal: on...return for error handling

This is a response to the 2018 request for error handling proposals. My inspiration derives in part from the concluding statement in Liam Breck's response.
I have what I hope is a simple addition that may address some of the discomfort that people have with error handling. I'm new to Go as of this past week, and I absolutely love everything about this language (so far) but how the error handling obscures the primary code path. I like to be able to see the structure and logic of the primary code path at a glance in order to help me clearly understand and evaluate its behavior.
I propose a new statement having one of the following three forms (we'd pick one):

on <boolean-expression> return <optional-value>
on <reference> return <optional-value>
on <error> return <optional-value>

The proposal only addresses error handling that results in exiting the function, because I think code can generally be structured to fit this paradigm. I progressively modify the proposal as I go so you can see my thinking and the various alternatives.
Let's look at how we can clear up the following code, which I took from the above RFP:
func CopyFile_Original(src, dst string) error {
	r, err := os.Open(src)
	if err != nil {
		return fmt.Errorf("copy %s %s: %v", src, dst, err)
	}
	defer r.Close()

	w, err := os.Create(dst)
	if err != nil {
		return fmt.Errorf("copy %s %s: %v", src, dst, err)
	}

	if _, err := io.Copy(w, r); err != nil {
		w.Close()
		os.Remove(dst)
		return fmt.Errorf("copy %s %s: %v", src, dst, err)
	}

	if err := w.Close(); err != nil {
		os.Remove(dst)
		return fmt.Errorf("copy %s %s: %v", src, dst, err)
	}

	return nil
}

We start with an equivalence of the following two statements:

on <boolean-expression> return <optional-value>
if <boolean-expression> { return <optional-value> }

Here is how this looks, but mind you, I have more suggestions to come:
func CopyFile_OnBoolReturn(src, dst string) (err error) {
	var localErr = func() error {
		return fmt.Errorf("copy %s %s: %v", src, dst, err)
	}

	r, err := os.Open(src)
	on err != nil return localErr()
	defer r.Close()

	w, err := os.Create(dst)
	on err != nil return localErr()

	if _, err := io.Copy(w, r); err != nil {
		w.Close()
		os.Remove(dst)
		return localErr()
	}

	if err := w.Close(); err != nil {
		os.Remove(dst)
		return localErr()
	}

	return nil
}

I moved the fmt.Errorf() out to a closure and used it as the return value for the two on...return statements. We could easily have done this by using the equivalent if statement code, but the code formatter would expand the if statements and clutter up the primary code path. The code formatter needs to know when not to expand the statement, and the on...return statement tells it just that.
Moreover, we always want the code formatter to expand if statements across multiple lines, because when we see an if statement heading a line all by itself with no indented lines following, warning lights signal in our mind that there is something wrong and needing correcting. Having these signals in our mind while trying to read the primary code path defeats the purpose of trying to make the primary code path more cognitively available. Hence, we would need a different keyword (on) that does not expect subsequent indentation.
But the err != nil is also repetitive and distracting, so we might instead follow on with a reference such that the return statement only executes when that reference is not nil. Now we have this:
func CopyFile_OnNotNil(src, dst string) (err error) {
	var localErr = func() error {
		return fmt.Errorf("copy %s %s: %v", src, dst, err)
	}

	r, err := os.Open(src)
	on err return localErr()
	defer r.Close()

	w, err := os.Create(dst)
	on err return localErr()

	if _, err := io.Copy(w, r); err != nil {
		w.Close()
		os.Remove(dst)
		return localErr()
	}

	if err := w.Close(); err != nil {
		os.Remove(dst)
		return localErr()
	}

	return nil
}

However, we still have the multi-statement handlers distracting us from the primary code path. We can address that with another vanilla Go closure:
func CopyFile_OnNotNilAndHandler(src, dst string) (err error) {
	localError := func() error {
		return fmt.Errorf("copy %s %s: %v", src, dst, err)
	}

	r, err := os.Open(src)
	on err return localError()
	defer r.Close()

	w, err := os.Create(dst)
	on err return localError()

	handler := func() error {
		w.Close()
		os.Remove(dst)
		return localErr()
	}
	_, err := io.Copy(w, r)
	on err return handler()

	if err := w.Close()
	on err return handler()

	return nil
}

Now things are looking pretty clean, but we still have error handling statements mixed in with the primary code path, distracting us from the primary code path. One way of dealing with that is to parenthesize them, though I'm not sure how fond I am of this approach:
func CopyFile_OnNotNilAndParentheses(src, dst string) (err error) {
	localError := func() error {
		return fmt.Errorf("copy %s %s: %v", src, dst, err)
	}

	r, err := os.Open(src)
	(on err return localError())
	defer r.Close()

	w, err := os.Create(dst)
	(on err return localError())

	handler := func() error {
		w.Close()
		os.Remove(dst)
		return localErr()
	}
	_, err := io.Copy(w, r)
	(on err return handler())
	if err := w.Close()
	(on err return handler())

	return nil
}

Another way to deal with this is to allow on...return to extend an existing statement. Perhaps we would require that the on reference be assigned in the preceding portion of the statement. Now we have this:
func CopyFile_OnReturnExtension(src, dst string) (err error) {
	localError := func() error {
		return fmt.Errorf("copy %s %s: %v", src, dst, err)
	}

	r, err := os.Open(src) on err return localError()
	defer r.Close()

	w, err := os.Create(dst) on err return localError()

	handler := func() error {
		w.Close()
		os.Remove(dst)
		return localErr()
	}
	_, err := io.Copy(w, r) on err return handler()
	err := w.Close() on err return handler()

	return nil
}

This approach assumes that the initial portions of the statements are short, which will often not be the case. We can deal with this by having the formatter indent on...return on the next line:
func CopyFile_OnReturnContinuation(src, dst string) (err error) {
	localError := func() error {
		return fmt.Errorf("copy %s %s: %v", src, dst, err)
	}

	r, err := os.Open(src)
		on err return localError()
	defer r.Close()

	w, err := os.Create(dst)
		on err return localError()

	handler := func() error {
		w.Close()
		os.Remove(dst)
		return localErr()
	}
	_, err := io.Copy(w, r)
		on err return handler()
	err := w.Close()
		on err return handler()

	return nil
}

I think the primary code path is pretty clear in the prior two examples, and the error handling code is right where it belongs as well.
To prevent abuse of on...return, we might restrict its reference to just the error type, assuming the reference approach is preferred over the boolean approach.
FYI, I briefly considered allowing the following construct, where the on statement need not always return from the function, but decided it might invite abuse:
	if _, err := io.Copy(w, r); on err {
		w.Close()
		os.Remove(dst)
		return localErr()
	}

(Apologies in advance if I'm misunderstanding something about Go, as I'm still a newbie.)

@DeedleFake, thanks for the response. I would agree that there is no functional benefit. But I'm not after functional benefit. I'm after cognitive benefit, and I believe the way this approach visually de-emphasizes error handling and visually emphasizes the primary code path addresses my biggest concern: I want to know at a glance what code is intended to do, without having to cognitively filter out the error handling. (Also, I actually argue against the approach of #33113, but thanks for the relevant reference.)

I've discovered a functional benefit of this approach. We can rewrite the following:
	var req *http.Request
	var res *http.Response

	if req, err := http.NewRequest("GET", loginURL, nil); err != nil {
		return fmt.Error("failed to create login page request: %v", err)
	}
	if res, err := http.DefaultClient.Do(req); err != nil {
		return fmt.Error"failed to receive login path respons: %v", err)
	}
	cookies := res.Cookies()
	...

Without initial declarations, as follows:
	if req, err := http.NewRequest("GET", loginURL, nil)
		on err return fmt.Error("failed to create login page request: %v", err)
	if res, err := http.DefaultClient.Do(req)
		on err return fmt.Error"failed to receive login path respons: %v", err)
	cookies := res.Cookies()
	...

Has some similarities to #32611, #32848, #32946.
As a technical matter
	req, err := http.NewRequest("GET", loginURL, nil)
		on err return fmt.Error("failed to create login page request: %v", err)

is going to have some trouble with semicolon automatically inserted at the end of the first line (see https://golang.org/ref/spec#Semicolons), but there may be some way around that.

See #40432 for some general discussion.

@ianlancetaylor, thanks for the note and the status update. I was looking for an update!
I'm not sure the semicolon need be an issue, because these could logically be separate statements, with the formatter indenting on statements only for clarity.
This note about simplifications of err != nil seems relevant: "they don't reduce the boilerplate enough to make it worth changing the language..."

Here's a variation of the proposal that reduces boilerplate a bit more and doesn't introduce any new keywords, but which may have a semicolon problem:
	req, err := http.NewRequest("GET", loginURL, nil) else
		return fmt.Error("failed to create login page request: %v", err)
	res, err := http.DefaultClient.Do(req) else
		return fmt.Error"failed to receive login page response: %v", err)
	cookies := res.Cookies()
	...


Preferences Screen UI Changes

@wbrunette  Pref Screen UI Changes, Issue: #400

Color, will be updated when I'll confirm with @Cveman1

Awesome work @Redeem-Grimm-Satoshi
Please, the blue across the header is not a part of the design.
Let's fix a time tomorrow to discuss the colours?

@Cveman1 Yeah It's not part of the design that's why I said I'll confirm with you first so we decide on the colors after this PR is merged

@Cveman1 Yeah we can fix time and discuss about the colors

It's not part, you can remove it.
How about 6pm tomorrow?

Check my second comment

Alright 6pm,

@Cveman1 when you talk of tomorrow, you mean today Monday right?

Yes, today. I've sent an invite

@wbrunette thanks for spotting out the changes, working on them..

@wbrunette I've added some commits to resolve the issues you spotted out

@wbrunette Just added some new commits to resolve the current issues you listed

@wbrunette thanks. From the docs https://developer.android.com/reference/com/google/android/material/dialog/MaterialAlertDialogBuilder, The type of dialog returned is still an AlertDialog; there is no specific Material implementation of AlertDialog

@wbrunette I did the minor fixes in this new commit


Use 308 redirect for defaultLocale when localePrefix: 'as-necessary'.

Is your feature request related to a problem? Please describe.
I am currently migrating an existing multi-language site to next-intl.  The existing site has been indexed with some urls prefixed with /en (the defaultLocale) and others not using the /en prefix.  For the new site, we have oped to use localePrefix: 'as-necessary'.  We would like a 308 redirect for pages that had been indexed previously with the /en prefix for SEO.
Additionally, we are using the /language prefix when specifying alternate languages in the slug, as they may otherwise be redirected to another version depending on the clients language preference.
ie:
<link rel="alternate" href="https://www.site.com/en/slug" hreflang="en">
For these reasons, I think a 308 redirect would be more appropriate than a 307 redirect for the defaultLocale when localePrefix: 'as-necessary'
Previous discussion here:  https://github.com/amannn/next-intl/issues/591
Describe the solution you'd like
I would like for the redirect to be a 308 vs a 307 when redirecting to the defaultLocale, when localePrefix is set to 'as-necessary'
Describe alternatives you've considered
Patching next-intl to reflect my preference.

You can certainly add additional 308 redirects by composing the middleware either by:

Redirecting certain requests before they reach the next-intl middleware …
… or by overwriting the response status code in certain cases if the next-intl middleware returns a redirect

Alternatively, you can set up redirects in next.config.js.
next-intl will not add permanent redirects for the as-necessary strategy for now, to allow users to change routing strategies without running into cache issues.
Hope this helps!


Error transcribing audio: This CTranslate2 package was not compiled with CUDA support

im using pycharm on MacBook Pro, is this supported with device = "cuda"? or I can only use "cpu"? thanks

The Linux and Windows Python wheels support GPU execution. Also, device = "cuda" is only supported on NVIDIA GPUs.

thanks for the quick reply, any support for Intel HD Graphics 630?

There does not appear to be any support for GPUs other than NVIDIA GPUs at this time.

Ok thanks for the info 🙏

Ok thanks for the info 🙏


Atom crashes when opening a modified file in a git repository

Atom is currently unusable when modifying files in a repository.
OSX 10.10

Process:               Atom Helper [51423]
Path:                  /Applications/Atom.app/Contents/Frameworks/Atom Helper.app/Contents/MacOS/Atom Helper
Identifier:            com.github.atom.helper
Version:               0.176.0 (0.176.0)
Code Type:             X86-64 (Native)
Parent Process:        Atom [51420]
Responsible:           Atom [51420]
User ID:               501

Crashed Thread:        0  CrRendererMain  Dispatch queue: com.apple.main-thread

Exception Type:        EXC_CRASH (SIGABRT)
Exception Codes:       0x0000000000000000, 0x0000000000000000

Application Specific Information:
[51423] stack overflow

Thread 0 Crashed:: CrRendererMain  Dispatch queue: com.apple.main-thread
0   libsystem_kernel.dylib        	0x00007fff89e9e282 __pthread_kill + 10
1   libsystem_c.dylib             	0x00007fff8cfd8c13 __abort + 145
2   libsystem_c.dylib             	0x00007fff8cfd94f1 __stack_chk_fail + 197
3   git.node                      	0x000000011b16a871 diff_context_line__pattern_match + 251
4   git.node                      	0x000000011b16a743 diff_context_find + 91
5   git.node                      	0x000000011b1b882d get_func_line + 152
6   git.node                      	0x000000011b1b84f8 xdl_emit_diff + 666
7   git.node                      	0x000000011b1b81e2 xdl_diff + 168
8   git.node                      	0x000000011b170ac7 git_xdiff + 299
9   git.node                      	0x000000011b16bea2 diff_patch_generate + 543
10  git.node                      	0x000000011b16c6c0 git_patch_from_diff + 469
11  git.node                      	0x000000011b14fa56 Repository::GetDiffStats(v8::FunctionCallbackInfo<v8::Value> const&) + 550
12  libchromiumcontent.dylib      	0x000000010b531f6f 0x109faf000 + 22556527
13  libchromiumcontent.dylib      	0x000000010b55443f 0x109faf000 + 22697023
14  ???                           	0x00003043f15072ae 0 +<PHONE_NUMBER>3374
15  ???                           	0x00003043f245366b 0 +<PHONE_NUMBER>4267
16  ???                           	0x00003043f1bb7374 0 +<PHONE_NUMBER>5924
17  ???                           	0x00003043f1bb53fd 0 +<PHONE_NUMBER>7869
18  ???                           	0x00003043f1bb5132 0 +<PHONE_NUMBER>7154
19  ???                           	0x00003043f2099759 0 +<PHONE_NUMBER>6921
20  ???                           	0x00003043f15076d5 0 +<PHONE_NUMBER>4437
21  ???                           	0x00003043f1e6a50e 0 +<PHONE_NUMBER>6670
22  ???                           	0x00003043f1aadd9c 0 +<PHONE_NUMBER>8988
23  ???                           	0x00003043f1e6a50e 0 +<PHONE_NUMBER>6670
24  ???                           	0x00003043f1aab9de 0 +<PHONE_NUMBER>9838
25  ???                           	0x00003043f1f14ea3 0 +<PHONE_NUMBER>5443
26  ???                           	0x00003043f15076d5 0 +<PHONE_NUMBER>4437
27  ???                           	0x00003043f1f147dc 0 +<PHONE_NUMBER>3708
28  ???                           	0x00003043f1f13c98 0 +<PHONE_NUMBER>0824
29  ???                           	0x00003043f1c45d46 0 +<PHONE_NUMBER>0070
30  ???                           	0x00003043f1c45b8c 0 +<PHONE_NUMBER>9628
31  ???                           	0x00003043f19a5df3 0 +<PHONE_NUMBER>7731
32  ???                           	0x00003043f155ed06 0 +<PHONE_NUMBER>2374
33  ???                           	0x00003043f1c4b2c3 0 +<PHONE_NUMBER>1955
34  ???                           	0x00003043f1c457b9 0 +<PHONE_NUMBER>8649
35  ???                           	0x00003043f15eb457 0 +<PHONE_NUMBER>7687
36  ???                           	0x00003043f155c020 0 +<PHONE_NUMBER>0880
37  ???                           	0x00003043f151a751 0 +<PHONE_NUMBER>2385
38  libchromiumcontent.dylib      	0x000000010b602d5f 0x109faf000 + 23412063
39  libchromiumcontent.dylib      	0x000000010b51da6a v8::Function::Call(v8::Handle<v8::Value>, int, v8::Handle<v8::Value>*) + 202
40  com.github.AtomFramework      	0x000000010976b75b node::AsyncWrap::MakeCallback(v8::Handle<v8::Function>, int, v8::Handle<v8::Value>*) + 451
41  com.github.AtomFramework      	0x000000010978409d node::After(uv_fs_s*) + 650
42  com.github.AtomFramework      	0x00000001098a7def uv__work_done + 188
43  com.github.AtomFramework      	0x00000001098a9409 uv__async_event + 62
44  com.github.AtomFramework      	0x00000001098a957c uv__async_io + 136
45  com.github.AtomFramework      	0x00000001098b5f4e uv__io_poll + 1334
46  com.github.AtomFramework      	0x00000001098a994d uv_run + 257
47  com.github.AtomFramework      	0x000000010973c39b atom::NodeBindings::UvRunOnce() + 87
48  libchromiumcontent.dylib      	0x0000000109fe331f base::debug::TaskAnnotator::RunTask(char const*, char const*, base::PendingTask const&) + 239
49  libchromiumcontent.dylib      	0x000000010a01e7f8 base::MessageLoop::RunTask(base::PendingTask const&) + 536
50  libchromiumcontent.dylib      	0x000000010a01e9cf base::MessageLoop::DeferOrRunPendingTask(base::PendingTask const&) + 47
51  libchromiumcontent.dylib      	0x000000010a01ed89 base::MessageLoop::DoWork() + 377
52  libchromiumcontent.dylib      	0x0000000109fcb5b1 0x109faf000 + 116145
53  com.apple.CoreFoundation      	0x00007fff831e5661 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
54  com.apple.CoreFoundation      	0x00007fff831d77ed __CFRunLoopDoSources0 + 269
55  com.apple.CoreFoundation      	0x00007fff831d6e1f __CFRunLoopRun + 927
56  com.apple.CoreFoundation      	0x00007fff831d6838 CFRunLoopRunSpecific + 296
57  com.apple.Foundation          	0x00007fff8ecfdab9 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 278
58  libchromiumcontent.dylib      	0x0000000109fcbba4 base::MessagePumpNSRunLoop::DoRun(base::MessagePump::Delegate*) + 100
59  libchromiumcontent.dylib      	0x0000000109fcb41c 0x109faf000 + 115740
60  libchromiumcontent.dylib      	0x000000010a034917 base::RunLoop::Run() + 87
61  libchromiumcontent.dylib      	0x000000010a01dfcd base::MessageLoop::Run() + 29
62  libchromiumcontent.dylib      	0x000000010c8b6e9a 0x109faf000 + 43024026
63  libchromiumcontent.dylib      	0x0000000109fc0889 0x109faf000 + 71817
64  libchromiumcontent.dylib      	0x0000000109fbfe76 content::ContentMain(content::ContentMainParams const&) + 54
65  com.github.AtomFramework      	0x00000001096f0e88 AtomMain + 72
66  libdyld.dylib                 	0x00007fff8ab1e5c9 start + 1

Can you share a link to the file being edited when it crashed?

Actually, this looks like the same as https://github.com/atom/atom/issues/3627 which there is a libgit2 tracking issue for https://github.com/libgit2/libgit2/issues/2586

Unfortunately, I can't provide the file.
After looking at some of the other related issues, I tried checking my config. It's not crashing after removing the following xfuncname config.
[diff ...]
     xfuncname =<EMAIL_ADDRESS>

@ChrisBrough great, thanks for the snippet, I will post it over on the libgit2 issue.

@kevinsawicki No problem! That sounds good. Thanks for linking me to the other issues.

I'm not sure if this is the same bug, though the crash report looks similar:

(non-crashing threads removed for brevity).
I get the "editor has crashed" message when I load a ruby file that has been modified. I tried removing my .gitattributes file (which only has *.rb diff=ruby). I don't get the crash when opening a Gemfile (still ruby, but not .rb). I then tried restoring my .gitattributes and added Gemfile diff=ruby to see if that cause the Gemfile to crash, it did not.
The really perplexing part is that none of the crashes happen if I run atom from the command line (don't need to use the --safe option). I feel like that implies that something in my GUI environment, but not my shell (zsh) environment is causing the crash, or, conversely something in my shell environment is preventing the crash.

@lordjavac your issue is probably #9339

It is possible. My repository has a few files in it and nearly 8 years of history, some migrated from SVN. I cannot reproduce the issue with a new repo, even with a rails app in it. The repo that crashes is 3.2MB. I tried building atom (with the version of git-utils that has that patch) and it did not solve my issue.I still get the same crash with diff_context_line__pattern_match. Still works fine if invoked from the command line (open ~/Applications/Atom.app for the locally built version).
I am left with a few questions though. Why would it work for some files and not others? Gem file works, but not controllers or models in rails app. Why would it work when I launch atom from the command-line, but not when I launch it from the Dock?
How can I tell what's different in the environment for Atom when run directly vs run from a shell? Is there a way to run atom --safe from the GUI (like holding option or something)?


UF-180: Configurable Workbench

Fixing plugins missing (sometimes) in plugins editor nav list.

This happens randomly because in that lists is a screen and plugin with same name (L:215)

@ederign Thanks for your explanation yesterday.
PR merged: http://github.com/uberfire/uberfire-extensions/commit/e462e87c9


[tool_crash] FileSystemException: Cannot open file, OS Error: The system cannot find the file specified., errno = 2

Command
flutter create --template app --overwrite .

Steps to Reproduce

...
...
...

Logs
FileSystemException: Cannot open file, OS Error: The system cannot find the file specified.
, errno = 2
#0      _File.throwIfError (dart:io/file_impl.dart:675:7)
#1      _File.openSync (dart:io/file_impl.dart:490:5)
#2      _File.readAsBytesSync (dart:io/file_impl.dart:574:18)
#3      _File.readAsStringSync (dart:io/file_impl.dart:624:18)
#4      ForwardingFile.readAsStringSync (package:file/src/forwarding/forwarding_file.dart:99:16)
#5      ErrorHandlingFile.readAsStringSync.<anonymous closure> (package:flutter_tools/src/base/error_handling_io.dart:218:22)
#6      _runSync (package:flutter_tools/src/base/error_handling_io.dart:590:14)
#7      ErrorHandlingFile.readAsStringSync (package:flutter_tools/src/base/error_handling_io.dart:217:12)
#8      CreateBase._computeTemplateManifest (package:flutter_tools/src/commands/create_base.dart:665:37)
#9      CreateBase._templateManifest (package:flutter_tools/src/commands/create_base.dart:652:43)
#10     CreateBase._templateManifest (package:flutter_tools/src/commands/create_base.dart)
#11     CreateBase.renderMerged (package:flutter_tools/src/commands/create_base.dart:478:25)
#12     CreateBase.generateApp (package:flutter_tools/src/commands/create_base.dart:503:29)
#13     CreateCommand.runCommand (package:flutter_tools/src/commands/create.dart:350:37)
<asynchronous suspension>
#14     FlutterCommand.run.<anonymous closure> (package:flutter_tools/src/runner/flutter_command.dart:1336:27)
<asynchronous suspension>
#15     AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
<asynchronous suspension>
#16     CommandRunner.runCommand (package:args/command_runner.dart:212:13)
<asynchronous suspension>
#17     FlutterCommandRunner.runCommand.<anonymous closure> (package:flutter_tools/src/runner/flutter_command_runner.dart:296:9)
<asynchronous suspension>
#18     AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
<asynchronous suspension>

[✓] Flutter (Channel stable, 3.10.5, on Microsoft Windows [Version 10.0.19045.3208], locale en-IN)
    • Flutter version 3.10.5 on channel stable at C:\Users\Shubham\flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 796c8ef792 (7 weeks ago), 2023-06-13 15:51:02 -0700
    • Engine revision 45f6e00911
    • Dart version 3.0.5
    • DevTools version 2.23.1

[✓] Windows Version (Installed version of Windows is version 10 or higher)

[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.0)
    • Android SDK at C:\Users\Shubham\AppData\Local\Android\sdk
    • Platform android-33, build-tools 33.0.0
    • Java binary at: C:\Program Files\Android\Android Studio\jbr\bin\java
    • Java version OpenJDK Runtime Environment (build 17.0.6+0-b2043.56-9586694)
    • All Android licenses accepted.

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

[✓] Android Studio (version 2022.2)
    • Android Studio at C:\Program Files\Android\Android Studio
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 17.0.6+0-b2043.56-9586694)

[✓] VS Code (version 1.80.2)
    • VS Code at C:\Users\Shubham\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 3.69.20230703

[✓] Connected device (2 available)
    • Chrome (web) • chrome • web-javascript • Google Chrome 115.0.5790.110
    • Edge (web)   • edge   • web-javascript • Microsoft Edge 115.0.1901.188

[✓] Network resources
    • All expected network resources are available.

• No issues found!

Flutter Application Metadata
No pubspec in working directory.

Closing this as a duplicate of https://github.com/flutter/flutter/issues/91559

OK Thanks!


Add a new site map view to site section

Not really necessary, but a nice wow function for any DCIM tool that tracks sites.
You could pass an array of addresses to google maps which include an address and pin name to be mapped on a view of the globe.
Possible ways to implement:

gmapi
geodjango

adding some other implementation:

https://github.com/bashu/django-easy-maps / https://pypi.python.org/pypi/django-easy-maps
https://github.com/googlemaps/google-maps-services-python / https://pypi.python.org/pypi/googlemaps/

+1 for this request :)
Maps could be represented at different levels:

On the site page (/dcim/sites/Site_Slug/)
On a Region page (/dcim/sites/?region=Region_Slug)
On the main page (/)

Site placement could be done automagically either via the physical address field or a Lat/Long custom property of some sort.
Basing the placement of sites only on addresses could be problematic for some users, especially Telcos that have shelters/towers in the middle of nowhere or on mountain tops.
In an ideal world, we should have the option to host internally the tile server as some users don't have internet access from their network, but I understand this would require a lot of work. As a starting point, showing a map from OpenStreetMap or similar provider should be a great start.
I understand that a possible workaround would be to use the graph feature, but it's not available first hand on the page, nor feasible on a bigger scale (multi site placement for regions or main page).
This feature would provide a great visual overview. Navigation could be enhanced if sites waypoints were clickable. This is something that gives my organization loves in some tools (Like SolarWinds NPM or internal apps).

Hey there. Just wanted to ask quickly if this is already in development, because I think it's a really nice feature. :smile: I would do it myself, but neither have I currently the time, nor do I understand enough of netbox to make it happen.

With the introduction of plugins, I feel like this could be a third party plugin instead of a core feature.

@ryanmerolle agreed. Going to close this out.


The object cannot be deleted because it was not found in the ObjectStateManager.

If a disaster name or 1 character or 50 characters and that disaster is edited. By editing remove/uncheck all of the clusters except one and the following error is displayed.
Server Error in '/' Application.
The object cannot be deleted because it was not found in the ObjectStateManager.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.InvalidOperationException: The object cannot be deleted because it was not found in the ObjectStateManager.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[InvalidOperationException: The object cannot be deleted because it was not found in the ObjectStateManager.]
System.Data.Entity.Core.Objects.ObjectContext.DeleteObject(Object entity, EntitySet expectedEntitySet) +133
System.Data.Entity.Core.Objects.ObjectContext.DeleteObject(Object entity) +7
System.Data.Entity.Internal.Linq.InternalSet1.Remove(Object entity) +97    System.Data.Entity.DbSet1.Remove(TEntity entity) +72
Services.DataService.RemoveDisasterCluster(DisasterCluster newDisasterCluster) +19
Services.DisasterClusterService.Remove(DisasterCluster disasterCluster) +11
crisicheckinweb.Controllers.DisasterController.Create(DisasterViewModel model) +2255
lambda_method(Closure , ControllerBase , Object[] ) +104
System.Web.Mvc.ActionMethodDispatcher.Execute(ControllerBase controller, Object[] parameters) +14
System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext controllerContext, IDictionary2 parameters) +169    System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary2 parameters) +27
System.Web.Mvc.Async.AsyncControllerActionInvoker.b__39(IAsyncResult asyncResult, ActionInvocation innerInvokeState) +22
System.Web.Mvc.Async.WrappedAsyncResult2.CallEndDelegate(IAsyncResult asyncResult) +29    System.Web.Mvc.Async.WrappedAsyncResultBase1.End() +49
System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeActionMethod(IAsyncResult asyncResult) +32
System.Web.Mvc.Async.AsyncInvocationWithFilters.b__3d() +50
System.Web.Mvc.Async.<>c__DisplayClass46.b__3f() +225
System.Web.Mvc.Async.<>c__DisplayClass46.b__3f() +225
System.Web.Mvc.Async.<>c__DisplayClass33.b__32(IAsyncResult asyncResult) +10
System.Web.Mvc.Async.WrappedAsyncResult1.CallEndDelegate(IAsyncResult asyncResult) +10    System.Web.Mvc.Async.WrappedAsyncResultBase1.End() +49
System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeActionMethodWithFilters(IAsyncResult asyncResult) +34
System.Web.Mvc.Async.<>c__DisplayClass2b.b__1c() +26
System.Web.Mvc.Async.<>c__DisplayClass21.b__1e(IAsyncResult asyncResult) +100
System.Web.Mvc.Async.WrappedAsyncResult1.CallEndDelegate(IAsyncResult asyncResult) +10    System.Web.Mvc.Async.WrappedAsyncResultBase1.End() +49
System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeAction(IAsyncResult asyncResult) +27
System.Web.Mvc.Controller.b__1d(IAsyncResult asyncResult, ExecuteCoreState innerState) +13
System.Web.Mvc.Async.WrappedAsyncVoid1.CallEndDelegate(IAsyncResult asyncResult) +29    System.Web.Mvc.Async.WrappedAsyncResultBase1.End() +49
System.Web.Mvc.Controller.EndExecuteCore(IAsyncResult asyncResult) +36
System.Web.Mvc.Controller.b__15(IAsyncResult asyncResult, Controller controller) +12
System.Web.Mvc.Async.WrappedAsyncVoid1.CallEndDelegate(IAsyncResult asyncResult) +22    System.Web.Mvc.Async.WrappedAsyncResultBase1.End() +49
System.Web.Mvc.Controller.EndExecute(IAsyncResult asyncResult) +26
System.Web.Mvc.Controller.System.Web.Mvc.Async.IAsyncController.EndExecute(IAsyncResult asyncResult) +10
System.Web.Mvc.MvcHandler.b__5(IAsyncResult asyncResult, ProcessRequestState innerState) +21
System.Web.Mvc.Async.WrappedAsyncVoid1.CallEndDelegate(IAsyncResult asyncResult) +29    System.Web.Mvc.Async.WrappedAsyncResultBase1.End() +49
System.Web.Mvc.MvcHandler.EndProcessRequest(IAsyncResult asyncResult) +28
System.Web.Mvc.MvcHandler.System.Web.IHttpAsyncHandler.EndProcessRequest(IAsyncResult result) +9
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +545
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +155
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:<IP_ADDRESS>

I've had some issues similar to this in the past and the issue is dual to the dbcontext been kept alive for a long time.
Here is a good summary why it may not be a good idea to keep a global context: http://stackoverflow.com/questions/3653009/entity-framework-and-connection-pooling/3653392#3653392


ares-rs: init at 0.9.0

Description of changes
Automated decoding of encrypted text without knowing the key or ciphers used
https://github.com/bee-san/ares
Related to https://github.com/NixOS/nixpkgs/issues/81418

Things done

Built on platform(s)

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

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

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

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

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[ ] Fits CONTRIBUTING.md.

Result of nixpkgs-review pr 219764 run on x86_64-linux 1

1 package built:

ares-rs


AJAX powered callback data incorrect ordering

Within my switch, I've cased a few values together and used the searchTerm variable to narrow down my search.
The code  use to do my AJAX request is the following:
var cCountry = category.toLowerCase().replace(" ", "");

$.get('api/hotels.php', {
	c: cCountry,
	h: searchTerm
}, function(hSuggest) {
	// console.log(hSuggest);
	callback(hSuggest);
}, "json");

Which works fine, all data is passed into the suggestions. The hotels.php page specifies an ORDER BY name ASC which when viewing the output normally works fine, yet the suggestions always seem to have one item which is not alphabetically ordered at the top.
You can see a picture here.

The top result is the currently selected value.

Check to make sure the facet's value is empty.
Also, check search_facet.JS -- VS.ui.SearchFacet.autocompleteValues(): http://documentcloud.github.com/visualsearch/docs/search_facet.html#section-11. Note these line:
resp(_.sortBy(matches, function(match) {
  if (match == value || match.value == value) return '';
  else return match;
}));

That's ensuring that the current value is moved to the top.

How can it be already selected if there has never been a chosen value so far?


Ensure to catch and propagate errors when calling GDALClose

See https://github.com/Toblerity/Fiona/issues/1169 (and fix in fiona: https://github.com/Toblerity/Fiona/commit/04ad6c8960c84ee6a2d29acd9e35e79bde193750) for context.
I think we have the same issue as fiona that we are not checking for errors when "closing" the dataset when writing, while the writing can still go wrong at that point, and so this wouldn't bubble up to users.

Although if I run the equivalent pyogrio code from the fiona test case, we already get an error:
In [63]: pyogrio.write_dataframe(df, "s3://non-existing-bucket/test.geojson", driver="GeoJSON")
ERROR 4: Failed to create GeoJSON datasource: s3://non-existing-bucket/test.geojson: s3://non-existing-bucket/test.geojson: No such file or directory
...
~/scipy/repos/pyogrio/pyogrio/_io.pyx in pyogrio._io.ogr_write()

~/scipy/repos/pyogrio/pyogrio/_io.pyx in pyogrio._io.ogr_create()

DataSourceError: Failed to create GeoJSON datasource: s3://non-existing-bucket/test.geojson: s3://non-existing-bucket/test.geojson: No such file or directory

We're getting an error because we aren't properly handling s3://... protocol for writing.  We use get_vsi_path elsewhere for reading, which converts that to /vsis3/....
If you instead attempt to write pyogrio.write_dataframe(df, "/vsis3/non-existing-bucket/test.geojson", driver="GeoJSON")
it fails silently.
(working on a fix now for both issues)


Add initial LineCompare component with line numbers.

I'd like to add to this library something that is similar to a line diff you might find in a diffing tool for code reviews. This is related to issue https://github.com/elliotforbes/ng-diff-match-patch/issues/3 and https://github.com/elliotforbes/ng-diff-match-patch/issues/2.
This PR is an initial concept. It adds CSS classes so that it is easier for clients to customise the appearance of the diff. I'd like to improve it further by adding an option for only showing the context around actual diffs, e.g. showing +/- 5 lines above and below an Insert/Delete but hiding the rest of the Equal portions. This makes it easier to review diffs of large files that only have a few changes.
I thought I'd raise this PR to see if anyone had any thoughts on this before spending too much time on it.
It can be used like the following:
<dmp-line-compare [left]="left" [right]="right"></dmp-line-compare>

Here is an example of the result in Chrome:

Hi,
I tried testing this with an xml compare, instead of having them compare line by line, it sort of compared the entire file.


enterText() not working, when interacting with the same textfield twice

Eg. we have a textfield and we enter in it 'text1', then we go back to previous page, and then again to the screen with the textfield. When trying to enter text again, the text stays the same. Though the textfield gets focused, keyboard is shown, but text stays the same.
When using patrol develop the effect is the same - you can input a text only once in each textfield during the whole run of this command.
Spotted on Android, didn't check iOS

Related to https://github.com/flutter/flutter/issues/134604