First item is not shown when added app:ms_hint attribute

I have 5 items on my list but only the last 4 items are shown on the spinner.
This is my code from my xml file:
<com.jaredrummler.materialspinner.MaterialSpinner
            android:id="@+id/spinner_home_team"
            android:layout_width="125dp"
            android:layout_height="wrap_content"
            app:ms_hint="@string/spinner_hint_select_team"
            app:ms_hint_color="@color/gray"
            app:ms_text_color="@color/colorPrimary"
            app:ms_dropdown_max_height="200dp"/>

The issue happens when I added a hint to app:ms_hint attribute. The first item is not always shown.
However, if I select an item from the spinner, then I can see the first item on the list.
I think it only happens when the hint text is shown in the spinner.
With hint:

Without hint:

I'm having the same error, for now I resolved that by creating a custom Adapter that don't hide the selected item, instead of setting the itens I'm setting the adapter. Let's see if there is a better solution, I like the feature of hiding the selected value
public class CustomMaterialSpinnerAdapter<T> extends MaterialSpinnerAdapter<T> {

    public CustomMaterialSpinnerAdapter(Context context, List<T> items) {
        super(context, items);
    }

    @Override public T getItem(int position) {
        return getItems().get(position);
    }
}

I have same issue in my app.

Hi,
I fixed the issue and waiting for merge, meanwhile you can use my fix from here:
https://github.com/jaredrummler/MaterialSpinner/tree/a514f4d7f48156c9f384bf0e844afb59d1218992

so currently Spinner is working well without issue I posted?

On Mar 22, 2018, at 12:08 AM, Hamdy H. Khader<EMAIL_ADDRESS>wrote:
Hi,
I fixed the issue and waiting for merge, meanwhile you can use my fix from here:
https://github.com/jaredrummler/MaterialSpinner/tree/a514f4d7f48156c9f384bf0e844afb59d1218992 https://github.com/jaredrummler/MaterialSpinner/tree/a514f4d7f48156c9f384bf0e844afb59d1218992
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub https://github.com/jaredrummler/MaterialSpinner/issues/80#issuecomment-375096114, or mute the thread https://github.com/notifications/unsubscribe-auth/AQGxLm8-BecaRhptpre1ihhTaklm5ePzks5tgsE_gaJpZM4R5FzN.

if you didn't use the hint attribute then yes.

I should use the hint text in spinner

On Mar 22, 2018, at 12:13 AM, Hamdy H. Khader<EMAIL_ADDRESS>wrote:
if you didn't use the hint attribute then yes.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub https://github.com/jaredrummler/MaterialSpinner/issues/80#issuecomment-375097667, or mute the thread https://github.com/notifications/unsubscribe-auth/AQGxLkkmfcko93-J4EAE75lE1PFsJ9qvks5tgsJ3gaJpZM4R5FzN.

well, you can clone my fix or wait for my pull request to me merged.

what is your fix in MaterialSpinner
can you share in detail?

download this version of the library as a zip and import it as a module in your android studio.
https://github.com/jaredrummler/MaterialSpinner/tree/a514f4d7f48156c9f384bf0e844afb59d1218992

ok, I will try.

so are you sure in this version spinner works well even if I set the spinner hint?

yep :)

Ok, good

Wow I'm surprised that this was 2 days ago!
Thanks a lot for fixing it.


[question] graphic pipeline on anv is usable on dxvk ?

Hi
Today has landed in mesa git lab this commits
anv: implement VK_EXT_graphics_pipeline_library
https://gitlab.freedesktop.org/mesa/mesa/-/commit/3d49cdb71ee8cb07ca922b9ffa15edd27627959c
also add feature for be possible use in dxvk
[quote]props->graphicsPipelineLibraryIndependentInterpolationDecoration = true;
[/quote]
anv: introduce a base graphics pipeline object
https://gitlab.freedesktop.org/mesa/mesa/-/commit/b2d3d818d57b9288fcdd98965c81d981540b1aba
anv: Only enable GPL if ANV_GPL=true, or if zink or DXVK are the engine.
https://gitlab.freedesktop.org/mesa/mesa/-/commit/647ca8165407fcdb2695917599a803f8b0c804bb
graphic pipeline is usable with before commits, oibaf drivers must stay around tomorrow

You can see in a games dxvk log if it works and is enabled.
Or if you have either the full or  pipelines turned on with the dxvk hud look if the Graphics Shaders line shows.

now graphic pipeline appears on anv with dxvk

Sounds good 👍
Sad it missed the 23.1 branch point but glad to see it merged.


Translated basic pages for pt_BR (Brazilian Portuguese)

I did not had time to translate the remaining pages but I'll do it soon. I want at least have the basic translated pages to my language, since it'll help a lot on spreading the usage of Rust in Brazil.

Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @nikomatsakis (or someone else) soon.
If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. Due to the way GitHub handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes.
Please see the contribution instructions for more information.

r? @steveklabnik

There's anything more I should add/change? I'll translate the remaining pages, but most of them are big and will demand time, so having these basic stuff available on my language would be great. Thanks!

Thanks so much for this!
There's some stuff here that's duplicated that's not great, but that's not your fault; that's stuff that comes up because this is the first one! As such I'm going to merge this for now, and might work on some of that refactoring myself.
So excited! :smile:

@lazpeng if I wanted to tweet about this from the Rust account, what's the best way to phrase it in pt-BR? :smile:

@steveklabnik Thanks for sharing it! What exactly would you write? Something like "The Rust website is now available in Brazilian Portuguese, docs coming soon" translates to "O site de Rust está agora em Português, com documentação vindo em breve". Tell me if you'd like to say something else. I'll create some tutorials or start translating rustbyexample soon. Thanks.

Done :+1: :heart:


[faucet] Timeout waiting requests more aggressively

Move the timeout middleware higher up in the stack so requests that are stuck waiting for a long time get aborted instead.
Shorten the default timeout from 120s to 30s.
Consolidate the "load shedding" and "timeout" error responses, because we don't use load shedding, and the timeout is probably a signal that the service is overloaded and the request should be issued again, later.

Test Plan
~/sui/crates/sui-faucet$ cargo nextest run

A simple way to test it: add some sleep code in faucet, maybe like 60 seconds, and fire >= 5 and >= 15 (5+10 buffer) and see whether it times out correctly

Timeout doesn't do what we want unfortunately: If a request hits the timeout, it fires off a timeout response to the client, but the faucet is still doing the long-running work (serving the request, or letting it sit in a queue).  So we can end up in situations where the request times out, but the faucet later issues gas to the requested recipient (lose-lose).
Will submit a new PR, replacing it with load-shedding.


Functions calling corrupted inputs

This is an example very similar to the ones in repository that creates and agent that should reply using the provided functions.
The problem is that somehow very often the inputs passed to functions are wrong.
import { Ollama } from "llamaindex/llm/ollama";
import { FunctionTool, ReActAgent } from "llamaindex";

const llm = new Ollama({
  model: "llama3:instruct",
  config: {
    host: "http://localhost:11434",
  },
});

function sumNumbers({ a, b }: { a: number; b: number }) {
  console.log(`sumNumbers called with ${a}, ${b}`);
  return `${a + b}`;
}
const sumJSON = {
  type: "object",
  properties: {
    a: {
      type: "number",
      description: "The first number",
    },
    b: {
      type: "number",
      description: "The second number",
    },
  },
  required: ["a", "b"],
} as const;

function divideNumbers({ a, b }: { a: number; b: number }) {
  console.log(`divideNumbers called with ${a}, ${b}`)
  return `${a / b}`;
}
const divideJSON = {
  type: "object",
  properties: {
    a: {
      type: "number",
      description: "The dividend",
    },
    b: {
      type: "number",
      description: "The divisor",
    },
  },
  required: ["a", "b"],
} as const;

async function main() {

  const functionTool = new FunctionTool(sumNumbers, {
    name: "sumNumbers",
    description: "Use this function to sum two numbers",
    parameters: sumJSON,
  });

  const functionTool2 = new FunctionTool(divideNumbers, {
    name: "divideNumbers",
    description: "Use this function to divide two numbers",
    parameters: divideJSON,
  });

  const agent = new ReActAgent({
    llm,
    tools: [functionTool, functionTool2],
  });

  const task = await agent.createTask("Divide 16 by 2 then add 20. Finally divide by 4.");
  let count = 0;
  for await (const stepOutput of task) {
    console.log(`Runnning step ${count++}`);
    console.log(`======== OUTPUT ==========`);
    console.log(stepOutput);
    console.log(`==========================`);
    if (stepOutput.isLast) {
      console.log('Response: ' + JSON.stringify(stepOutput.output));
    }
  }

}

void main().then(() => {
  console.log("Done");
});

Result (see where parameters passed are undefined):
divideNumbers called with 16, 2
Runnning step 0
======== OUTPUT ==========
{
  taskStep: {
    id: '77b1aaa8-5b9a-4aeb-b8d5-14586d8b2e59',
    context: {
      stream: false,
      toolCallCount: 0,
      llm: [Ollama],
      getTools: [Function: getTools],
      store: [Object],
      shouldContinue: [Function: shouldContinue],
      logger: [Object]
    },
    prevStep: null,
    nextSteps: Set(0) {}
  },
  output: {
    message: {
      role: 'assistant',
      content: 'Thought: I need to use a tool to help me answer the question.\n' +
        'Action: divideNumbers if using a tool.\n' +
        'Action Input: {"a": 16, "b": 2}\n' +
        '\n' +
        '""""Observation: 8\n' +
        '""""'
    },
    raw: {
      model: 'llama3:instruct',
      created_at: '2024-05-14T16:04:54.9368624Z',
      message: [Object],
      done: true,
      total_duration:<PHONE_NUMBER>,
      load_duration:<PHONE_NUMBER>,
      prompt_eval_count: 523,
      prompt_eval_duration: 283636000,
      eval_count: 50,
      eval_duration:<PHONE_NUMBER>
    }
  },
  isLast: false
}
==========================
sumNumbers called with 8, 20
Runnning step 1
======== OUTPUT ==========
{
  taskStep: {
    id: 'fbb80fd7-4a07-44bf-8e4c-2401c307fe81',
    context: {
      stream: false,
      toolCallCount: 1,
      llm: [Ollama],
      getTools: [Function: getTools],
      store: [Object],
      shouldContinue: [Function: shouldContinue],
      logger: [Object]
    },
    prevStep: {
      id: '77b1aaa8-5b9a-4aeb-b8d5-14586d8b2e59',
      context: [Object],
      prevStep: null,
      nextSteps: Set(0) {}
    },
    nextSteps: Set(0) {}
  },
  output: {
    message: {
      role: 'assistant',
      content: 'Thought: Next, I need to add 20 to the result.\n' +
        'Action: sumNumbers\n' +
        'Input: {\n' +
        '  "a": 8,\n' +
        '  "b": 20\n' +
        '}'
    },
    raw: {
      model: 'llama3:instruct',
      created_at: '2024-05-14T16:04:55.8796756Z',
      message: [Object],
      done: true,
      total_duration: 931626100,
      load_duration: 1060200,
      prompt_eval_count: 58,
      prompt_eval_duration: 131574000,
      eval_count: 38,
      eval_duration: 792712000
    }
  },
  isLast: false
}
==========================
divideNumbers called with undefined, undefined
Runnning step 2
======== OUTPUT ==========
{
  taskStep: {
    id: 'bf6cd207-e283-47ec-9247-61c5364d9f03',
    context: {
      stream: false,
      toolCallCount: 1,
      llm: [Ollama],
      getTools: [Function: getTools],
      store: [Object],
      shouldContinue: [Function: shouldContinue],
      logger: [Object]
    },
    prevStep: {
      id: 'fbb80fd7-4a07-44bf-8e4c-2401c307fe81',
      context: [Object],
      prevStep: [Object],
      nextSteps: Set(0) {}
    },
    nextSteps: Set(0) {}
  },
  output: {
    message: {
      role: 'assistant',
      content: 'Thought: Finally, I need to divide by 4.\n' +
        'Action: divideNumbers\n' +
        **'Input: {\n' +
        '  a: 28,\n' +
        '  b: 4\n' +
        '}'**
    },
    raw: {
      model: 'llama3:instruct',
      created_at: '2024-05-14T16:04:56.7335268Z',
      message: [Object],
      done: true,
      total_duration: 850839000,
      load_duration: 1470000,
      prompt_eval_count: 57,
      prompt_eval_duration: 131954000,
      eval_count: 34,
      eval_duration: 710528000
    }
  },
  isLast: false
}
==========================
Runnning step 3
======== OUTPUT ==========
{
  taskStep: {
    id: '561e4f62-9aa3-4733-8c0e-f97cc5034e61',
    context: {
      stream: false,
      toolCallCount: 1,
      llm: [Ollama],
      getTools: [Function: getTools],
      store: [Object],
      shouldContinue: [Function: shouldContinue],
      logger: [Object]
    },
    prevStep: {
      id: 'bf6cd207-e283-47ec-9247-61c5364d9f03',
      context: [Object],
      prevStep: [Object],
      nextSteps: Set(0) {}
    },
    nextSteps: Set(0) {}
  },
  output: {
    message: {
      role: 'assistant',
      content: "Thought: I think there's a problem! The result of the division was NaN (Not a Number), which means we can't proceed with further calculations.\n" +
        'Answer: Sorry, I cannot answer your query. The calculation is invalid due to the NaN result.'
    },
    raw: {
      model: 'llama3:instruct',
      created_at: '2024-05-14T16:04:57.9820492Z',
      message: [Object],
      done: true,
      total_duration:<PHONE_NUMBER>,
      load_duration: 1245900,
      prompt_eval_count: 39,
      prompt_eval_duration: 131881000,
      eval_count: 52,
      eval_duration:<PHONE_NUMBER>
    }
  },
  isLast: true
}
==========================
Response: {"message":{"role":"assistant","content":"Thought: I think there's a problem! The result of the division was NaN (Not a Number), which means we can't proceed with further calculations.\nAnswer: Sorry, I cannot answer your query. The calculation is invalid due to the NaN result."},"raw":{"model":"llama3:instruct","created_at":"2024-05-14T16:04:57.9820492Z","message":{"role":"assistant","content":"Thought: I think there's a problem! The result of the division was NaN (Not a Number), which means we can't proceed with further calculations.\nAnswer: Sorry, I cannot answer your query. The calculation is invalid due to the NaN result."},"done":true,"total_duration":1245497000,"load_duration":1245900,"prompt_eval_count":39,"prompt_eval_duration":131881000,"eval_count":52,"eval_duration":1104219000}}
Done

This is a bug that Ollama does not always return a valid JSON string

There is one solution for this case:

retry many times to LLM asking for a "fixed" result
crash to user
try to parse a invalid json

There is one solution for this case:

retry many times to LLM asking for a "fixed" result
crash to user
try to parse a invalid json

Thanks I will try.. also can we edit the agent default prompts to try fix the part where asked to use valid json?

some issue for Chatgpt model


Small refactor to how proving keys are stored and accesssed

While working on another branch, I recalled @hdevalence 's comment that we could store proving keys as a map of each action type to the proving key required for that action. Accessing them from an array was a bit cumbersome, so I converted them to an object to make it explicit which key is needed for which action.
This PR also removes the nullifier derivation proving key, which Henry said is not actually needed on web.

ah, i accidentally did some parallel work on this. let me see how it compares


chore(type annotation): changed type info

Thanks @behzad888. The .d.ts file is generated from the type annotations in the source, so unfortunately I'm unable to merge this. Would you be willing to port these changes back to the src files?

Yes, I will change that.


iOS: Missing unread articles when syncing with Feedbin

Been using the iOS beta for a couple of days, and unread counts have been consistently incorrect. The macOS app remains in sync with Feedbin, however.
Feedbin
Unread: 21
‘Links’ tag: 18
‘People’ tag: 3

NetNewsWire 5.0.3 (macOS)
Unread: 21
‘Links’ tag: 18
‘People’ tag: 3

NewNewsWire 5 Public Beta (iOS)
Unread: 8
‘Links’ tag: 8

Possibly a duplicate of #1461.

@paulrobertlloyd Did the latest release resolve this issue for you?

@vincode-io I suspect so. With the new version installed, the items that previously weren’t appearing showed up in the app (even though they had since been marked as read in FeedBin). Does that sound right? Happy to close and reopen this issue if I see this occur again.

Thanks. I’m closing this issue. Let us know if it comes back.


Set sessionId in clienthello

I'm a bit confused, how do I set the sessionid in clienthello？

I have understood, thanks

By the way, how can i get the key "server name" before dtls.Dial


[Feat]: Add proper loading spinner

What feature?
Currently, while any is loading only **Loading... ** text is displayed. I could implement a loading spinner for loading.
Add screenshots
Add screenshots
Code of Conduct

[X] I agree to follow this project's Code of Conduct

Please assign me this issue so that I can work on this issue under GSSOC'23.


Add helper to pin to taskbar

It would be nice to have a helper function in common VM-Pin-To-Taskbar to be able to configure the tools to pin in the configuration file. See https://github.com/mandiant/flare-vm/issues/512
I am not sue how to implement it though, as it seems this information is stored a bit cryptic in the register.

@Ana06 there is a chocolately package that we use to rely on for Commando: https://community.chocolatey.org/packages/syspin
I think what we might be able to do is incorporate this into the VM-Pin-To-Taskbar function:
https://github.com/SebastianK90/chocolateyautomaticpackages/blob/master/syspin/tools/chocolateyInstall.ps1
We can pull down the file, iterate through an array of items to pin to the taskbar, and then call the function in our configs so we can each have separate items pinned

Also not to hijack the issue, but I am also tracking these functions for the common module:
REMOVE FROM COMMON.VM:

VM-ConvertFrom-Json
VM-Get-DiskSize
VM-Get-FreeSpace
VM-Check-Reboot

ADD TO COMMON.VM

VM-Pin-To-Taskbar
VM-Assert-Signature
VM-Add-To-Right-Click-Menu
VM-Remove-Desktop-Shortcut

@Ana06 there is a chocolately package that we use to rely on for Commando: https://community.chocolatey.org/packages/syspin

This is a great thing @day1player. I can require it already in flare-vm as package and use to pin the tools. But I think a helper function would be better, as we can do this with a single line in the config. But even more important, I would like to have some tools to start with admin rights. I think we can't do this with syspin, or have I missed this?
Maybe this project is also useful: https://github.com/0x546F6D/pttb_-_Pin_To_TaskBar

I think it would also be nice to pin the Tools folder to taskbar (if possible). I think this could be done in the debloat/installer package as I think this would be nice for commando-vm as well. Am I right? This is also a more complicated case as we need to change the directory to open.

But even more important, I would like to have some tools to start with admin rights. I think we can't do this with syspin, or have I missed this?

I would very much like this as well, I might have to do some digging in the Commando 2.0 folders.. I think what we did was create a Chocolatey Shortcut (since that supports the -RunAsAdmin flag) and then we used syspin to pin that shortcut to the taskbar

I think it would also be nice to pin the Tools folder to taskbar (if possible). I think this could be done in the debloat/installer package as I think this would be nice for commando-vm as well. Am I right? This is also a more complicated case as we need to change the directory to open.

I'm also a big fan of this, it would give us a completely clean desktop

This was addressed in https://github.com/mandiant/VM-Packages/pull/748, thanks @emtuls!


Fix nested array encoding

What was wrong?
fix #821
NOTE:
I modified the makefile to remove the redundant_closure_for_method_calls lint.
How was it fixed?
Change to find a tuple type in an array type recursively.
To-Do

[ ] OPTIONAL: Update Spec if applicable

[ ] Add entry to the release notes (may forgo for trivial changes)

[x] Clean up commit history

Great!


Improvement: Add Next Text (Link) After Conclusion

Add a next text that link a page to the next page.
For instance, I am on Page_1.md want to go to Page_2.md
[Next](Page_2.md)

You may add it after Conclusion.

@jjboy55

for each section ?

For each page that has a next page
On Sun, 31 Dec 2023, 12:04 pm Jeremiah-Louis, @.***>
wrote:

for each section ?
—
Reply to this email directly, view it on GitHub
https://github.com/Yczar/test-driven-dart/issues/8#issuecomment-1872921276,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AKELW5X3EIPONN5GM5AR5TLYMFBCHAVCNFSM6AAAAABBGLGM7KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNZSHEZDCMRXGY
.
You are receiving this because you authored the thread.Message ID:
@.***>

alright

I think this is sorted already @petprog
I will be closing this now!


Update lint.yml

Keys and Restore keys didn't match

Amazing. I was about to look into this but you saved me the trouble!


Video Player not display unfortunately..

Hello I love the potential that this has for my application. However from following your YouTube instructional I can get the Android player audio playing but the video frame stays black. When I paste this link in the browser it plays no problem.
All the permissions and Init() commands were set.
Greatly looking forward to purchasing this and hopefully putting it to use.. Thanks for your time.
P.S. Can this Video Player be implemented using C# and not XAML? Thanks!

The native implementation is using Android's MediaPlayer so it really comes down to what protocols it supports. The challenge of course is choosing a format/protocol compatible with all platforms. Typically MP4 is a safe bet. I would recommend reviewing the sample URLs in the Chill Player demo as a starting point.

Thanks for the reply Adam.
Unfortunately I'm still having issues.. Here is the stack trace error I get when playing this url. I am getting the direct .mp4 file links from the Vimeo API.
 I'm basically going to a black screen and it crashes there.
`var xamarinVideoPlayer = new Octane.Xam.VideoPlayer.VideoPlayer();
xamarinVideoPlayer.Source = VimeoInfo.data[0].files[2].link;
xamarinVideoPlayer.AutoPlay = true;
        Content = new StackLayout
        {
            Children = {
                xamarinVideoPlayer
            }
        };`

Are you using the emulator? As stated in the Getting Started documentation:

When developing on Android, you will need to use a real device to debug your application since the emulator is likely not powerful enough for video playback.

Your mileage will vary. Some are successful using it but overall, it is pretty flakey. Best to use a real device if that is the case.

Thank you for following up. I ended up building my own video player using messages.


update docs to require separate dbs per node

Also review and publish recommendations on: pg version, other settings

https://github.com/river-build/docs/pull/36
updated: https://docs.river.build/run/node-operator/system-requirements-installation#system-requirements-and-dependencies


refactor(typings): split off OptionT.d.ts

After this change, user can import OptionT partially in TypeScript
import {Option} from 'option-t/src/OptionT';

@homu r+

:pushpin: Commit b6ec1a9 has been approved by saneyuki

:hourglass: Testing commit b6ec1a9 with merge aa933df...

:sunny: Test successful - status


Handle duplicate vote requests from the same server

This PR properly handles duplicate vote requests from a single server. Previously, if a follower received a vote request from the same server for the same term twice, a consistency check in the setLastVotedFor method would result in an IllegalStateException. This fixes that issue by not calling that method if a vote request is from the candidate that was already voted for.

Tests fail due to client issues which are being resolved in a separate PR.


deepspeed grad_acc_steps fixes

What does this PR do?

Fixes https://github.com/huggingface/accelerate/issues/1830

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint.


Not all album tracks downloaded

Environment

System OS: Linux
Python Version: 3.6.9
Install Source: pip
Version OR Commit hash: 3.3.1

Expected Behaviour
15 tracks downloaded
Actual Behaviour
Using my test album:
https://open.spotify.com/album/5dleG7j7NuwHGv2v4iibNg
the download completed without error but only 7 or 8 tracks were downloaded.

Thanks for letting us know. I will look into this.

Thanks for letting us know. I will look into this.

Hi @nitish770! Great to see you contributing around spotDL! - I note that you are not part of our organisation.
Would you be interested in joining the spotDL development team?

Hi @nitish770! Great to see you contributing around spotDL! - I note that you are not part of our organisation.
Would you be interested in joining the spotDL development team?

Seems to be an issue with ytmapi. Hotfix will be served up by evening.

Seems to be an issue with ytmapi. Hotfix will be served up by evening.

Fixed in v3.4.0


[API. Registration] User can register with invalid phone.

Environment: Postman v9.0.3
Reproducible: Always
Build found: last commit from44"
Preconditions
Run Postman
Steps to reproduce

Select the method POST in Postman
Fill in URL field https://speak-ukrainian.org.ua/dev/api/signup
Click on the Body tab and select Raw-> JSON format,
Enter in Body field data:
{
"firstName": "Nastiaйййййй",
"lastName": "Kukharййййййй",
"email"<EMAIL_ADDRESS>"password": "123456789",
"phone": "rtrtt12341",
"roleName": "ROLE_MANAGER"
}

Actual result
User successfully created

Expected result
Appear error message : 'User can not created with invalid prone'
Phone can contain only 10 characters. Can’t contain letters and reserved characters ( ~, , !, @, #, $, %, ^, &, , (, ), _, =, +, {, }, [, ], /, |, , :, ; ," , <, >, ?,).
User story #97

Expected result: Phone can have only numbers and length '10' (no '9')
https://github.com/ita-social-projects/TeachUA/issues/97 - ‘Телефон’ field has the following format and mask: "+38(___) ___ __ __".
Also you have a bag #825 [Реєстрація] Phone number mask is not correct

Bug is not fixed

Bug is fixed


Failed to activate the ruby-string-interpolation package

[Enter steps to reproduce below:]

...
...

Atom Version: 1.1.0
System: Mac OS X 10.11.1
Thrown From: Atom Core
Stack Trace
Failed to activate the ruby-string-interpolation package
At Cannot read property 'command' of undefined

TypeError: Cannot read property 'command' of undefined
    at Object.module.exports.activate (<anonymous>:6:23)
    at Package.module.exports.Package.activateNow (/Applications/Atom.app/Contents/Resources/app.asar/src/package.js:232:19)
    at /Applications/Atom.app/Contents/Resources/app.asar/src/package.js:212:32
    at Package.module.exports.Package.measure (/Applications/Atom.app/Contents/Resources/app.asar/src/package.js:153:15)
    at /Applications/Atom.app/Contents/Resources/app.asar/src/package.js:205:26
    at Package.module.exports.Package.activate (/Applications/Atom.app/Contents/Resources/app.asar/src/package.js:201:34)
    at PackageManager.module.exports.PackageManager.activatePackage (/Applications/Atom.app/Contents/Resources/app.asar/src/package-manager.js:474:21)
    at /Applications/Atom.app/Contents/Resources/app.asar/src/package-manager.js:457:29
    at Config.module.exports.Config.transact (/Applications/Atom.app/Contents/Resources/app.asar/src/config.js:300:16)
    at PackageManager.module.exports.PackageManager.activatePackages (/Applications/Atom.app/Contents/Resources/app.asar/src/package-manager.js:452:19)

Commands

Config
{
  "core": {
    "themes": [
      "unity-ui",
      "atom-light-syntax"
    ]
  },
  "editor": {
    "fontFamily": "Consolas",
    "fontSize": 12,
    "invisibles": {}
  }
}

Installed Packages
# User
auto-detect-indentation, v0.4.2
auto-indent, v0.5.0
color-picker, v2.0.13
language-blade, v0.16.0
ruby-slim, v0.2.0
ruby-string-interpolation, v0.1.8
unity-ui, v2.1.2

# Dev
No dev packages

The ruby-string-interpolation appears to have been unpublished.  I would suggest uninstalling it and finding another alternative.


fix: render icon if provided to FieldLabel

Currently the FieldLabel component expects an optional prop icon, but it doesn't render it. This PR should fix that.

Available in 0.9.0-canary.fe1629e


Persistant bug related to night mode

The fix for issue #73 is apparently not complete
pip list|grep finvizfinance
finvizfinance       0.14.6rc1

and when calling the finvizfinance(ticker=ticker).ticker_fundament() function, I get an error in the exception handler:
  File "/home/eric/.local/lib/python3.11/site-packages/finvizfinance/quote.py", line 142, in ticker_fundament
    ) = rows[2].text.split(" | ")
        ~~~~^^^
IndexError: list index out of range

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/eric/dev/polygon/yahoo.py", line 95, in <module>
    analyzeStock("MRVL")
  File "/home/eric/dev/polygon/yahoo.py", line 65, in analyzeStock
    quote=finvizfinance(ticker=ticker).ticker_fundament()
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/eric/.local/lib/python3.11/site-packages/finvizfinance/quote.py", line 145, in ticker_fundament
    (_, fundament_info["Company"], _) = rows[0].text.split(' | ')
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ValueError: not enough values to unpack (expected 3, got 2)

Adding a trace on print (rows[1].text) and print (rows[2].text) prints this:
Technology | Semiconductors | USA | NASD
Cannot parse Company, Sector, Industry and Country

Can you test the PR? Maybe they change something.

Hi, I'm also having the error


ISPN-10940 JPA deleteBatch should not pass empty collection to Criter…

https://issues.jboss.org/browse/ISPN-10940
@wburns Unfortunately testEmptyWriteAndDeleteBatchIterable doesn't actually reproduce the issue with H2 as the issue is DB specific, however I figured it was good to have coverage of this scenario for all stores anyway.

Integrated into master, thanks @ryanemerson !


Add browser columns and change Unioned CTE

This PR adds 3 columns for browser info to the page_views model. It also renames the unioned CTE to avoid a Snowflake-specific bug where the name of the CTE was creating a Recursive CTE error.

@drewbanin tagging for review.

Thanks for the PR @tayloramurphy! This broadly LGTM. Do you mind merging the latest version of master? I think that will fix these CI failures (it's not your fault).
I'm happy to merge the change to the unioned CTE names. Do you have any thoughts about how we should handle things like this more generally? I think it's ultimately a Snowflake bug, which is unfortunate, but it's been long-standing and painful enough that I'm not opposed to taking some more general action if required.

@drewbanin I think it's just something with their compiler and the naming. I really don't have any additional ideas on how to handle it except to just avoid the bad names.
I think I merged everything in right. Let me know if I missed something.


SearchView is in focus even after changing tabs

Describe the bug

The SearchView remains in focus even after changing tabs from search to other tabs.
To Reproduce

Go to Search tab
Press Search icon.
Close the soft keyboard and change fragments.
The SearchView remains active in Action Bar.

Expected behaviour

The SeachView should only be expanded in Search Tab.
Logs

Screenshots

Smartphone Info:

Device
One Plus 5

Android Version
Oreo 8.1

Would you like to work on the issue?

[x] Yes
[ ] No
Other:
@iamareebjamal Your reviews

Go ahead

Okay @liveHarshit .


Change chapter_type to content_type

The GQL api was not changed but now uses the new content_type.
There is still a unclear situation when a timed metdata is related to many different episodes. This appears to only be the case at the moment with "Placeholder" video, and makes little logical sense anywhere else, so I have not done anything specific for this case, as the placeholder should not have chapters anyway.

@andreasgangso added the GQL endpoints for content type. The other type is still present in order to not break things, even if we decide not to use it in the future.
#942


[FLINK-27005][FLINK-27065] Bump api version + store last spec as string

This PR contains two (related) changes:

Bump the CRD version to v1beta1 (without keeping the old one) and updating examples/docs related to this
Change the status field in the CRD to store the lastReconciledSpec in a JSON string form instead object.

You can see an example of the resulting status:
Status:
  Job Manager Deployment Status:  DEPLOYING
  Job Status:
    Savepoint Info:
    State:  UNKNOWN
  Reconciliation Status:
    Last Reconciled Spec:  {
  "image" : "flink:1.14",
  "imagePullPolicy" : null,
  "serviceAccount" : "flink",
  "flinkVersion" : "v1_14",
  "ingress" : null,
  "flinkConfiguration" : {
    "taskmanager.numberOfTaskSlots" : "2"
  },
  "podTemplate" : null,
  "jobManager" : {
    "resource" : {
      "cpu" : 1.0,
      "memory" : "2048m"
    },
    "replicas" : 1,
    "podTemplate" : null
  },
  "taskManager" : {
    "resource" : {
      "cpu" : 1.0,
      "memory" : "2048m"
    },
    "podTemplate" : null
  },
  "job" : {
    "jarURI" : "local:///opt/flink/examples/streaming/StateMachineExample.jar",
    "parallelism" : 2,
    "entryClass" : null,
    "args" : [ [],
    "state" : "running",
    "savepointTriggerNonce" : null,
    "initialSavepointPath" : null,
    "upgradeMode" : "stateless"
  },
  "restartNonce" : null,
  "logConfiguration" : null
}
    Success:  true

Hmm. I prefer to store the lastReconciledSpec without spaces, line break, etc. since we are showing a json in a yaml format.
Last Reconciled Spec: {"image":"flink:1.14","imagePullPolicy":null,"serviceAccount":"flink","flinkVersion":"v1_14","ingress":null,"flinkConfiguration":{"taskmanager.numberOfTaskSlots":"2"},"podTemplate":null,"jobManager":{"resource":{"cpu":1,"memory":"2048m"},"replicas":1,"podTemplate":null},"taskManager":{"resource":{"cpu":1,"memory":"2048m"},"podTemplate":null},"job":{"jarURI":"local:///opt/flink/examples/streaming/StateMachineExample.jar","parallelism":2,"entryClass":null,"args":[],"state":"running","savepointTriggerNonce":null,"initialSavepointPath":null,"upgradeMode":"stateless"},"restartNonce":null,"logConfiguration":null}

Hmm. I prefer to store the lastReconciledSpec without spaces, line break, etc. since we are showing a json in a yaml format.
Last Reconciled Spec: {"image":"flink:1.14","imagePullPolicy":null,"serviceAccount":"flink","flinkVersion":"v1_14","ingress":null,"flinkConfiguration":{"taskmanager.numberOfTaskSlots":"2"},"podTemplate":null,"jobManager":{"resource":{"cpu":1,"memory":"2048m"},"replicas":1,"podTemplate":null},"taskManager":{"resource":{"cpu":1,"memory":"2048m"},"podTemplate":null},"job":{"jarURI":"local:///opt/flink/examples/streaming/StateMachineExample.jar","parallelism":2,"entryClass":null,"args":[],"state":"running","savepointTriggerNonce":null,"initialSavepointPath":null,"upgradeMode":"stateless"},"restartNonce":null,"logConfiguration":null}

@wangyang0918 taht would be trivial to change, I thought this looks better for the user to read but otherwise I dont have a strong preference

I will have a try on this PR later.

@gyfora it might also be good to capture the version of the spec that is stored in "Last Reconciled Spec"? That way it would be possible to deserialize older status fields after incompatible spec changes.

@tweise that makes sense, I will try to see how to add the extra version field

Updated the logic now it looks like this:
    Last Reconciled Spec:  {"image":"flink:1.14","imagePullPolicy":null,"serviceAccount":"flink","flinkVersion":"v1_14","ingress":null,"flinkConfiguration":{"taskmanager.numberOfTaskSlots":"2"},"podTemplate":null,"jobManager":{"resource":{"cpu":1.0,"memory":"2048m"},"replicas":1,"podTemplate":null},"taskManager":{"resource":{"cpu":1.0,"memory":"2048m"},"podTemplate":null},"job":{"jarURI":"local:///opt/flink/examples/streaming/StateMachineExample.jar","parallelism":2,"entryClass":null,"args":[],"state":"running","savepointTriggerNonce":null,"initialSavepointPath":null,"upgradeMode":"stateless"},"restartNonce":null,"logConfiguration":null,"apiVersion":"v1beta1"}

Note the extra apiVersion field at the end.
@wangyang0918 @tweise PTAL again :)

Merging this, I think https://issues.apache.org/jira/browse/FLINK-26811 will cover the doc change :)


[Bug] enable-empty-protection default value is different between doc and code

Pre-check

[X] I am sure that all the content I provide is in English.

Search before asking

[X] I had searched in the issues and found no similar issues.

Apache Dubbo Component
Java SDK (apache/dubbo)
Dubbo Version
Dubbo java 3.2.12, Openjdk 1.8, idea 2024
Steps to reproduce this issue

What you expected to happen
I get some WARN info in console window, if the default value is true, the WARN info is unexpected.
Anything else
No response
Are you willing to submit a pull request to fix on your own?

[ ] Yes I am willing to submit a pull request on my own!

Code of Conduct

[X] I agree to follow this project's Code of Conduct

This has been changed. Please help update the documents.

OK, thanks, I am glad to do that.


Add option to use Enum names

Fixes: https://github.com/tiangolo/typer/issues/151
Added names parameter, in order to user Enum names instead of values. Also for IntEnum, names are used by default, even if names is False.

Thanks! This feature is so much missing when using enums with values of other types than strings.
However I got an error with this code:
    transform: SymmetryTransformation = typer.Option(SymmetryTransformation.TRANSPOSE, names=True),

Error: Invalid value for '--transform': invalid choice: SymmetryTransformation.TRANSPOSE. (choose from IDENTITY, ROT90, ROT180, ROT270, FLIP_X, FLIP_Y, TRANSPOSE, ANTITRANSPOSE)

I had to change the default to the value that should be provided on the CLI, not as received in the application:
    transform: SymmetryTransformation = typer.Option("TRANSPOSE", names=True),

Is there some update on whether this can be merged? This would make the Choices feature much more pythonic.

Bumping this for interest, surprised this isn't the default behavior but understandable if all of the exploration done around this feature was with string enums


View init - Not on Main Thread

100% of all the code in Toast-Swift is on the main thread. This is an error in your code. Looks like your code is trying use Toast-Swift inside of an NSOperationQueue off the main thread and that is not allowed by UIKit.


Make Fedora job non-blocking

Setting Fedora job as optional will not block merge to e2e

What type of PR is this?

Uncomment only one  /kind <> line, hit enter to put that in a new line, and remove leading whitespaces from that line:
/kind bug

/kind cleanup

/kind design
/kind documentation
/kind failing-test
/kind feature
/kind flake

What this PR does / why we need it:
Setting Fedora job as optional will not block merge to e2e
Which issue(s) this PR fixes:

Fixes #
Special notes for your reviewer:
Does this PR introduce a user-facing change?:

This is tricky, given that we have almost the same amount of failures on Ubuntu


Fakes server transport doesn't honor caller context

Need to spawn dispatch on a separate goroutine and select on it and caller's context.

Fixed in<EMAIL_ADDRESS>which has not yet been released.


Implements version block less than 1.2 of the TLS protocol.

The server currently accepts up to TLSv1.1

I'll try to resolve this one.

Code ok. Tests passed.


added club cell of urethral epithelium

fixes #1133

@ar-ibrahim lets go through this tmr too - it's a good example of how the review cycle goes, and you can make the changes @bvarner-ebi suggested and all as a practice. Thanks!

@bvarner-ebi - I've added an editors note to explain the use of club-like and @ar-ibrahim has help make the changes you proposed :) thanks!

@ar-ibrahim I'll leave you to merge this in after qc passes so you can see the whole process through :)

@ar-ibrahim, can we merge this?

I'll fix the conflicts and merge


Support variable.names?

Is there support for variable names with dots in them? E.g.
In:
var obj = {
  "i.am": {
    "an.array": ['a']
  }
};

Out:
{
  "i": {
    "am": {
      "an.array": [
        "a"
      ]
    }
  }
}

Maybe I'm missing something in the docs, or is there no such thing (yet?)

What happens in your example is this:
In:
var obj = {
  "i.am": { "an.array": ['a'] }
};

Out:
{
  "i": {
    "am": <=== { "an.array": ["a"] }
  }
}

i.am expands' to { i: am: ...} and is assigned the right hand value.
Which means an.array  is never evaluated, it just happens to be part of the object
you want to assign to { i: am: ...}
I think what you are asking for is to have
{ "i.am.an.array": ['a'] } expand to {"i":{"am":{"an.array":["a"]}}}
The only way to do this at the moment is to choose a different separator.
e.g.
var dp = require('dot-object')('|');
var obj = {"i|am|an.array": ['a']};
dp.object(obj);

{"i":{"am":{"an.array":["a"]}}}


Icons for folding and unfolding

I'm working on adding folding to the editor. At the beginning of the line we show twisties that signal where you can fold and which ranges are already folded.
The folding arrows are only shown when hovering over the glyph margins. Unfold arrows are always visible.
The current prototype uses the twisties from the file explorer (16x16, arrow-collapse-dark.svg)
The following screenshot is made with the mouse over the glyph margin:

The following screenshot also shows git line decorators. The mouse is somewhere in the text area.

@stevencl @bgashler1 @egamma @chrisdias FYI

To play around with the prototype, check out the aeschli-folding branch

I was excited to check our your branch last night. Looked really good and I'm excited to finally get some folding, so major kudos!
A couple of feature requests (want me to open new issues?):

Hovering over ellipses acting like a code peek would be awesome. Moving the mouse out could close  the peek instead of clicking the glyph.

I would reward you many :beers:  if VS Code could remember my folded ranges per project file - perhpas settings in ./.vscode or the like?

Will themes be able to control the arrow colors? They may clash with certain themes even if there are just standard dark and light versions of them.

Very nice and the folder regions are even remembered.
I find it somewhat stressful to hit the twisties, they should have a larger hit target area.

Along the lines of what @egamma said: To me, the glyphs seem overly inconspicuous.
Perhaps just solid white filled for dark theme and solid black for light themes, and maybe a bit larger?

@aeschli very nice work!
Proposed Design
Here is what I'm thinking on the look and feel.  It is based on Visual Studio's experience with code folding.

We would use a tree view expander and collapse icon
#989898 for the line and 1px border-color

Previous Designs
In-context affordance for folding
This was an interesting idea, but I worry that it may not be scannable as easily to the eyes as a user tries to find where the folding expanders are in his/her code.  They may also be confused with code since they are inline.  Here it is.

Hierarchical in-context
Some IDE's do a similar approach.  I have a competitive analysis doc if you want to take a look.

@bgashler1, love your points, but really loath the verticals context lines. They really gunk up the screen.

PS - please don't fold the closing brace - Atom does this and so many people have asked that it be left exposed.

I too like the look of the first alternative design but does it offer a larger hit area (as per @egamma's suggestion)? Can the user click on the vertical line for example to collapse the region?
Can you also try showing what it looks like if you don't fold the closing brace?
It might also be worth looking at how this works/looks for other languages. For example, will this work just as well with HTML, CSS, Visual Basic (and other languages that don't use punctuation marks as block delimiters)?

I love the Visual Studio design with plus and minus sings and the line, like the proposal of @bgashler1, however I would like to fold the closing brace too (currently looking at a file with around 40 functions and with them all folded it takes up 33% more space than needed (empty line, function declaration and closing brace instead of empty like and function declaration)), like visual studio does, so please make that an option.

Closing brace could be folded like this:
function simpleMethod() { ... }
instead of
function simpleMethod() { ...
I am definitly for folding closing brace.

@LKorowicki and @ianwesterfield, I agree that if we show one brace we should show both.  @Ristaaf, you bring up a very good point about how VS does it.  These are both very good ideas that we will be considering.

@stevencl It's not clear in the pictures here, but I would like to make these expandos slightly larger in VS Code than in VS for this reason.  That way users get a visual reassurance that the hit area is larger instead of merely including a large and forgiving hit target.  I'm thinking the hit target should be the height of the line with some padding to both the left and the right.  I'll post some more images soon that we can discuss.

Great work !
I'm 100% sure my favourite is 2. Hierarchical in-context.

The [+] / [-] signs are the best because really clear.
It helps to see the hierarchy in the code !!

Will this be in the next release ? Or are you doing an extension ?

@LKorowicki I'm digging your suggestion for folding the closing brace to the same line, but keeping it visible.

@Nimzozo: This will be in the actual product.

I'm also for Hierarchical folding. On hover shoving/always visible can be a configurable option with either as default. In case of always visible I would still make the controls 50% opacity and 100% if hovered over. The Chevrons kinda defeat the purpose since they introduce the same level of confusion as the level of clarity they bring with them.
Thank you for your hard work!

@chrisdias Just added new icons, so perhaps we could make this on by default in the release.

Created an issue for folding on a single line https://github.com/Microsoft/vscode/issues/3352, including a comparison with atom, brackets and sublime


Add some tests

Yeah we can…  there's not a lot of moving parts on the client side though… It's just this line in the package.json and the single line here: https://github.com/matthew-andrews/isomorphic-fetch/blob/master/client.js

I raised an issue nonetheless.


AOT Compilation is not worked.

Issue description
angular2-google-maps does not work in the AOT compile.
Steps to reproduce and a minimal demo of the problem
step 1. Clone angular2-seed project.(
step 2. Install angular2-google-maps package.
step 3. Configure SYSTEM_CONFIG_DEV and SYSTEM_BUILDER_CONFIG
tools/config/project.config.ts

export class ProjectConfig extends SeedConfig {
    ...
    // angular2 google maps SYSTEM_CONFIG_DEV
    this.SYSTEM_CONFIG_DEV.paths['angular2-google-maps/core'] = `node_modules/angular2-google-maps/core/index.js`;
    this.SYSTEM_CONFIG_DEV.packages['angular2-google-maps/core'] = {  main: 'index.js', defaultExtension: 'js' };

    // angular2 google maps SYSTEM_BUILDER_CONFIG
    this.SYSTEM_BUILDER_CONFIG.paths['angular2-google-maps/core'] = `node_modules/angular2-google-maps/core/index.js`;
    this.SYSTEM_BUILDER_CONFIG.packages['angular2-google-maps/core'] = {  main: 'index.js', defaultExtension: 'js' };
}

step 4. Write the code on your site Getting Started
step 5. npm start (It worked well)
step 6. npm run serve.prod(It worked well too).
step 6. npm run build.prod.exp (Error occurs. This build has AOT compilation.)
Current behavior
AOT compile was not worked.(compile.ahead.prod)
...
[17:41:20] Starting 'build.prod.exp'...
[17:41:20] Starting 'clean.prod'...
[17:41:21] Deleted dist/prod
[17:41:21] Deleted dist/tmp
[17:41:21] Finished 'clean.prod' after 1.37 s
[17:41:21] Starting 'tslint'...
[17:41:26] Finished 'tslint' after 5.02 s
[17:41:26] Starting 'css-lint'...
[17:41:31] Finished 'css-lint' after 4.59 s
[17:41:31] Starting 'build.assets.prod'...
[17:41:31] Finished 'build.assets.prod' after 100 ms
[17:41:31] Starting 'build.html_css'...
[17:41:32] Finished 'build.html_css' after 1.25 s
[17:41:32] Starting 'copy.prod'...
[17:41:32] Finished 'copy.prod' after 54 ms
[17:41:32] Starting 'compile.ahead.prod'...
Error: Error encountered resolving symbol values statically. Function calls are not supported. Consider replacing the function or lambda with a reference to an exported function, resolving symbol AppModule in /home/ody12/workspace-mine/angular2-seed/dist/tmp/app/app.module.ts, resolving symbol AppModule in /home/ody12/workspace-mine/angular2-seed/dist/tmp/app/app.module.ts
    at simplifyInContext (/Users/iminar/Dev/angular/modules/@angular/compiler-cli/src/static_reflector.ts:540:15)
    at StaticReflector.simplify (/Users/iminar/Dev/angular/modules/@angular/compiler-cli/src/static_reflector.ts:544:18)
    at StaticReflector.annotations (/Users/iminar/Dev/angular/modules/@angular/compiler-cli/src/static_reflector.ts:92:28)
    at _loop_1 (/Users/iminar/Dev/angular/modules/@angular/compiler-cli/src/codegen.ts:63:48)
    at CodeGenerator.readFileMetadata (/Users/iminar/Dev/angular/modules/@angular/compiler-cli/src/codegen.ts:57:22)
    at /Users/iminar/Dev/angular/modules/@angular/compiler-cli/src/codegen.ts:105:56
    at Array.map (native)
    at CodeGenerator.codegen (/Users/iminar/Dev/angular/modules/@angular/compiler-cli/src/codegen.ts:105:33)
    at codegen (/home/ody12/workspace-mine/angular2-seed/tools/tasks/seed/compile.ahead.prod.ts:14:69)
    at Object.main (/home/ody12/workspace-mine/tools/@angular/tsc-wrapped/src/main.ts:44:12)
Compilation failed
...

Expected/desired behavior
I wish worked fine. help me.
angular2 & angular2-google-maps version
angular2: RC6
angular2-google-maps: "0.14.0",
Other information
thanks for read

@DoyeonOhTravelHow can you share your app.module.ts code? thanks!

I'm seeing the same thing - possibly something to do with a missing ngc-generated .metadata.json file. See https://github.com/angular/angular/issues/11262

@SebastianM  actually the Angular team suggests that library vendors should also ship .metadata.json files. These files are produced automatically by ngc.
Your might find below comments useful:
https://github.com/angular/angular/issues/11262#issuecomment-244449696
https://github.com/angular/angular/issues/11262#issuecomment-244472000
https://github.com/angular/angular/issues/11262#issuecomment-244489405
Complete conversation (https://github.com/angular/angular/issues/11262)

@SebastianM this is my app.module.ts code. thanks your reply!.
import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { APP_BASE_HREF } from '@angular/common';
import { RouterModule } from '@angular/router';
import { HttpModule } from '@angular/http';
import { AppComponent } from './app.component';
import { routes } from './app.routes';

import { AboutModule } from './about/about.module';
import { HomeModule } from './home/home.module';
import { SharedModule } from './shared/shared.module';
import { AgmCoreModule } from 'angular2-google-maps/core/index.js';
import { provideLazyMapsAPILoaderConfig } from 'angular2-google-maps/core';

@NgModule({
  imports: [
    BrowserModule,
    HttpModule,
    RouterModule.forRoot(routes),
    AboutModule,
    HomeModule,
    SharedModule.forRoot(),
    AgmCoreModule.forRoot()
  ],
  declarations: [AppComponent],
  providers: [
    {
      provide: APP_BASE_HREF,
      useValue: '<%= APP_BASE %>'
    },
    provideLazyMapsAPILoaderConfig({
      apiKey: 'key',
      clientId: ''
    })
  ],
  bootstrap: [AppComponent]

})

export class AppModule { }

@rh389  @naveedahmed1 As you say, it seems that require metadata.json. thanks!.

@SebastianM And this branch is sample code with using googleMap.

@DoyeonOhTravelHow @doyeonOh @naveedahmed1 thank you guys! I will check it this evening.

Not sure of the status of this fix, but might be nice to also checkout the same issue at ng2-translate.
In it I would highlight a blog post describing how to solve this in general and some links to example repos of libraries solving this

I wrote the blog post you mentioned.  I'm glad you liked it.  I think the error you're running into isn't directly related to metadata.json files, although you will need those too.  My guess is that somewhere in your code you have export const blah = () => something which needs to be changed to export function blah() { return something; }.
I've written another article that goes through solutions to some of the errors (including the Function calls are not supported error) I've run into updating libraries to be AoT compatible.

maybe the useFactory lambda in https://github.com/SebastianM/angular2-google-maps/blob/master/src/core/services/maps-api-loader/lazy-maps-api-loader.ts#L188

+1 for AoT support!
Was struggling yesterday to integrate angular2-google-maps with Ionic2 RC0

@modularcoder Did you actually got it working? I tried changing the lambda as suggested two posts above into a factory-pattern function and export, but it was still failing.

@lazarljubenovic only without AoT  in build for dev env.
I've described the steps here
https://forum.ionicframework.com/t/angular2-google-maps-in-ionic-2/65736
Make sure you have installed latest version @ionic/app-scripts which doesn't make AoT compilation in
dev build.
https://github.com/driftyco/ionic-app-scripts

@modularcoder What to do when you have to build the app for android, the error is there... Did you find any solution for that? Probably we should not be using Ionic 2 for apps at this point, nothing really woks...

@allurco yes, I've managed to build the app without AoT compilation by adding "--dev" flag to build task in package.json.
I've created an example repo
https://github.com/modularcoder/ionic2-angular2-google-maps-example/blob/master/README.md
Refer readme for more info.
P.S. Make sure you have the latest version of @ionic/app-scripts package installed.

@SebastianM any update on when this bug might be fixed? Thanks!

@basvdijk Sorry guys, I'm currently rewriting the build procress to be able to support AOT. Expect updates  in the following days.

@SebastianM Great! Your effort is really appreciated 👍

Great to see this is fixed! Any thoughts on when you are going to release this update?

Is it fixed? Using angular2-google-maps with AoT throws error "Error encountered resolving symbol values statically. Function calls are not supported. Consider replacing the function or lambda with a reference to an exported function, resolving symbol" Can anyone please guide on this?

I think that bug has fixed and the issue was added in 0.16 milestone

How can I install it ? When I run "npm install angular2-google-maps@latest --save" I get the 0.15.0 version.

Maybe it's me, but I installed the library from the GitHub repository and I got more 2 errors:
         Consider replacing the function or lambda with a reference to an exported function, resolving              symbol LAZY_MAPS_API_CONFIG in /Users/william/Ionic/mapOnDevice1/node_modules/angular2-google-maps/src/core/services/maps-api-loader/lazy-maps-api-loader.ts,              resolving symbol AgmCoreModule in /Users/william/Ionic/mapOnDevice1/node_modules/angular2-google-maps/src/core/core-module.ts,
Anybody else ?

@tchinou1 as mentioned earlier the milestone for 0.16.0 with AoT support is at 55% see https://github.com/SebastianM/angular2-google-maps/milestone/12 As far as I'm aware the latest released version does not support AoT yet.

@basvdijk By running npm install<EMAIL_ADDRESS>wouldn't it install the version with the modifications ?

@staticint that could be the case indeed. Perhaps @SebastianM can describe how you can install the latest git version with AoT support.

By pulling the repo directly with npm you're only getting the source, not the built assets.
In theory you could clone this repo, build it locally, and then npm link with your project, but that's probably only practical for local development. Or you could upload tarball of the build somewhere and pull that with npm.

Does anybody know how to install it from the GitHub repository ?
Thanks

@tchinou1 It's in the npm docs.
A question. I just forked, cloned, built and npm-link'd the master branch and on my existing project I get Uncaught Error: Can't resolve all parameters for LazyMapsAPILoader: (?, WindowRef, DocumentRef).. I'm importing this lib in a lazy loaded module with the following code in my module's imports:
AgmCoreModule.forRoot({
    apiKey: 'xxx',
}),

I tried creating a black new project and tried minimally reproducing the situation, but it works in the other repo so I have no idea where to start looking. It's like it doesn't receive the object passed through forRoot method.
Anyone had a similar situation or this error message? I know it's a long shot without any code and a non-reproducible error, but I'm getting out of ideas.

How can I update my angular google maps so that AOT works? is the AOT version available now?

To make AOT work, add "angular2-google-maps": "^0.16.0", to your package.json file
Then in your app component import the module:
import { AgmCoreModule } from 'angular2-google-maps/core';
and add it to your imports (replace the xxxx with your api key)
NgModule({
  declarations: [],
  imports: [
    AgmCoreModule.forRoot({
      apiKey: 'xxxxxxxxxxxxxxxxxxxxx'
    })
  ],

Now in your template you can use the component like:

        <sebm-google-map disableDefaultUI="true" [zoom]="zoom" [latitude]="location.latitude" [longitude]="location.longitude">

            <sebm-google-map-marker [latitude]="location.latitude" [longitude]="location.longitude"></sebm-google-map-marker>

        </sebm-google-map>

I am using the 0.17.0 milestone, and the error below keeps going.
"Cannot find name 'google'.
" Cannot find namespace 'google'
This error have already corrected?


Fix mkcloud testbuild script for gating

This change is needed due to the crowbar repo merge.

:+1: good catch


Attention map visualization

Thank you for your interesting work :)
I am curious about the specific code for visualizing the attention map of Figure 5. What does "visual features from the second level" refer to? And could you provide information on how to normalize the attention weight?
If it's possible to obtain the code for attention map visualization, it would be greatly helpful.

Hi, I have updated the code to support attention visualization. Now, you can obtain a group of attention maps by setting return_attn=True during inference:
pred, attn = caris_model(image, sentence, l_mask=l_mask, return_attn=True)
Concretely, attn is a list of length equal to num_levels in the decoder, from low resolution to high resolution. The shape of each element is [B, N_layer, N_l, H, W]. You can change the index of the third dimension to visualize [CLS] token (index=0) or mask prompts (index ranges from -5 to -1 since we use 5 prompts) for different layers.

Thank you for getting back to me so quickly :)
I attempted to generate the attention map using the updated code. However, I encountered inverted results, such as low attention weights within the ground-truth region, as shown below.

Is this result correct, or is there an additional post-processing method I should apply to visualize the final attention map more accurately as shown in Figure 5?

In my experiments, I did notice that in some cases, the visualization results in some layers were inverted, i.e., high weights in non-target areas of [CLS] token, or high weights in target areas of mask prompts.
The attention maps come from the cross-attention layers where visual features are query and linguistic features are key/value. They are considered to improve the discrepancy between target and non-target areas but are not directly supervised like prediction maps. Therefore, such inverted results are acceptable since they also show a clear perception of the target object and the background to facilitate final predictions.
For better visualization, you can use 1-attn_map as inverted maps in these cases.

I understood. Thank you for the clear explanation :)


Add contentSize to titanic FileObject

https://schema.org/contentSize is not very explicit on how the size unit should be specified.
https://github.com/schemaorg/schemaorg/issues/869 is the corresponding issue on schema.org.

Starting discussion on the spec doc directly: https://docs.google.com/document/d/1EDUbwwSeSUpRZWczy6FNuCXTbKh9e5H4xXMnqgoCRj8/edit?disco=AAAAvCo8OuU


Add speaker.PlayAndWait

Adds a quality of life function to play a sound and wait until it is finished. This function waits until the samples have reached the driver. Actual applications should probably not use this but it's useful for testing and example code.
// before
done := make(chan struct{})
speaker.Play(beep.Seq(streamer, beep.Callback(func() {
	done <- struct{}{}
})))
<-done

// after
speaker.PlayAndWait(streamer)

Downside: not having this function is a good reason to explain beep.Seq and beep.Callback. Now part of the tutorial needs to be rewritten.

/lgtm


Make visibleTodos a required property

Since TodoList's todos property is required, visibleTodos should be required too.

Thanks


Set proxy in system settings won't change the proxy of android async http as well in 1.4.9

Today I updated AAH from 1.4.7 to 1.4.9 in order to solve the apache http client problem in SDK 23. However, I found that the system proxy set in Android wifi settings won't take effect in my app when I update successfully to 1.4.9. I just can't analyse the http request of my app. Now I have to set the proxy manually by AsyncHttpClient#setProxy. That's not an ideal way cause hard coding is really a frustrating thing. Could anyone please help me? Thanks a lot in advance.

Update.
I can get system proxy host and port by System.getProperty but what I wonder is that why I don't need to do so before I update the version of AAH to 1.4.9. Besides, I'm not sure whether this is the best way to sync the system proxy setting to AsyncHttpClient.

Hi, if you're just using default system proxy, you don't need to do anything, as system will put your requests through configured proxy automatically.
Why do you do this manually? Is there any specific Android version / device configuration, where this doesn't work by default?

I just don't know why.
The SDK version is 23. I set the system proxy in wifi settings. I'm not sure whether this is a special case. I've tried a lot of times since this afternoon but it's all the same if I don't set the proxy manually.

Well in that case I can think of possible solution:
Subclass AsyncHttpClient and override method newAsyncHttpRequest, there set current system proxy to HttpClient connection params, which will cause each request to have up-to-date system proxy.
Of course it doesn't solve situation where network and/or proxy changes when the request is already in the queue, but should provide the best flexibility against system settings.
Second option is to return your custom subclass of AsyncHttpRequest from the newAsyncHttpRequest method, which would set the proxy params before executing request, which would be always most up-to-date probably only milliseconds before request will execute.

I just wanted to comment that I have the same issue after upgrading to 1.4.9. I use the Android proxy settings to sniff traffic in Charles, but the traffic no longer routes through there.
I can sniff traffic fine in Wireshark, since it does not require using a proxy, but Wireshark doesn't display HTTP requests in an organized manner, so it takes a lot more time to analyze than in Charles.
I will try manually setting the proxy as suggested, but there still is the issue of why we need to do this and why it stopped working in the first place.

OMG. I'm also writing same content abount this.

I ‘ve use a independent  httpclient library (" cz.msebera.android.httpclient" this one), so I set proxy manually , but fiddler is also not capture the request ,I've read the proxy from httpparams  and find it right ,I'm confused

For anyone who has the problem, apply below code.
HttpClient = new AsyncHttpClient(true, 80, 443);
HttpClient.setProxy(System.getProperty("http.proxyHost"), Integer.parseInt(System.getProperty("http.proxyPort")));

@YoungjaeKim I've put the same code before every request, also didn't work well!

@ihanbo Well, some related articles about System.getProperty("http....") reports that it gives unexpected result among Android version. Mine 5.0.1 is working fine, but my colleague's 4.3.3 is not working.

I have looked into setting the proxy settings manually. The method to get the system proxy settings has changed more than once in Android, so already you have to implement them all, and hope one if them works on every device. But since it has changed more than once already, I would not be confident it will not change again after users have already downloaded your app, making such an implementation unsafe except for debugging (packet sniffing) purposes. I would not put such functionality in an app meant for users
You can see if your system has the http.proxyHost param pretty easily in an ADB console:
adb shell getprop http.proxyHost
adb shell getprop http.proxyPort
If there is no output, this method will not work on your device. It does not work on my Android 6.0 Nexus 6 or Nexus 6p.
There is even a library someone wrote to sort out all this nonsense for you. It says it only supports up to Android 4, but the last code commit was only 6 months ago, so who knows if it is maintained or works in recent Android versions:
https://github.com/shouldit/android-proxy/tree/master/android-proxy-library

I also got this problem  I use this to resolve it.
if(BuildConfig.DEBUG)         {             String proHost = System.getProperty("http.proxyHost");             int proPort = Integer.parseInt(System.getProperty("http.proxyPort"));             if(!TextUtils.isEmpty(proHost) && proPort>0)             {                 client.setProxy(proHost,proPort);             }             client.setLoggingEnabled(true);         }

I ended up to fight proxy issue in loopj module, and create similar library using okhttp.
Take a look if you are interested. We are using this in production for months.
https://github.com/OpenBapul/HttpLibrary

This is tested and solved in latest 1.4.10 release


[PIP] Simple data loader

I could not think of a good enough API for the 'complex' dataloader yet, but I figured we could ship something incremental.
The problem's gist is not SQL, it's more about the rigid type system in Rust.
Anyway, lets take a look at ModelTrait:
trait ModelTrait {
    ...
    fn find_related<R>(&self, _: R) -> Select<R>
    where
        R: EntityTrait,
        Self::Entity: Related<R>,
    {
        <Self::Entity as Related<R>>::find_related().belongs_to(self)
    }
    ...
}

It allows one to find any related entity of a given model.
What we would offer, is a 'vectorized' version of it, meaning given a vec of models we can load all related models of a given relation in one batch.
impl LoaderTrait for Vec<M>
where M: ModelTrait {
    async fn load_one<R>(&self, _: R) -> Result<Vec<R::Model>>
    where
        R: EntityTrait,
        M::Entity: Related<R>,
    {
        // we should verify this is a has_one relation
    }

    async fn load_many<R>(&self, _: R) -> Result<Vec<Vec<R::Model>>>
    where
        R: EntityTrait,
        M::Entity: Related<R>,
    {
        // we should verify this is a has_many relation
    }
}

What the simple loader do under the hood:

load all related entities with a subquery

SELECT [related entity's columns] FROM [related entity table] WHERE [primary key] IN (
    SELECT [related entity's primary key] FROM [relation table, might be parent table or a junction table] WHERE [parent entity primary key] IN ([the list of entity provided to Loader])
)

aggregate these Models according to the input models's primary key (a hash map would be needed as an intermediate step)
2.1. we should assume that the related entity might be shared; i.e. A1 & A2 both relates to B1, we will only get one B1, so we have to clone it

With this new API, we can now:
let cakes: Vec<cake::Model> = Cake::find().all(db).await?;
let fruits: Vec<Vec<fruit::Model>> = cakes.load_many(Fruit).await?;
// more relations

// So we can consume them
for (cake: cake::Model, fruits: Vec<fruit::Model>) in std::iter::zip(cakes, fruits) {
    // fruits in this scope belong to cake
}

In the end, this would allow us to cascade-load multiple relations eagerly.

@karatakis are you interested in working on this?

@tyt2y3 I can work on it. Please assign me on this issue :)

@tyt2y3 I started approaching the solution
Here you can view the progress https://github.com/karatakis/sea-orm/commit/f87f6a8e711f493dadfa49140ab8064e5e735bb6
The trait so far grew to this. The type system is too verbose :scream:
#[async_trait::async_trait]
pub trait LoaderTrait {
    type Model: ModelTrait;

    async fn load_one<R, C>(&self, db: &C) -> Result<Vec<Option<R::Model>>, DbErr>
    where
        C: ConnectionTrait,
        R: EntityTrait,
        R::Model: Send + Sync,
        <<R as EntityTrait>::Column as FromStr>::Err: Debug,
        <<Self as LoaderTrait>::Model as ModelTrait>::Entity: Related<R>,
        <<<<Self as LoaderTrait>::Model as ModelTrait>::Entity as EntityTrait>::Column as FromStr>::Err: Debug;

    async fn load_many<R, C>(&self, db: &C) -> Result<Vec<Vec<R::Model>>, DbErr>
    where
        C: ConnectionTrait,
        R: EntityTrait,
        R::Model: Send + Sync,
        <<R as EntityTrait>::Column as FromStr>::Err: Debug,
        <<Self as LoaderTrait>::Model as ModelTrait>::Entity: Related<R>,
        <<<<Self as LoaderTrait>::Model as ModelTrait>::Entity as EntityTrait>::Column as FromStr>::Err: Debug;
}

It's actually not that bad. Although I think ::Err: Debug are not needed?
std::Error should have had Debug + Display already.


Week 4 Video

My week 4 video
Link to Docker Server
Link to flask project

Looks like single shoot video, wasted time with error pages.  Show Pyton server well.  Spent time typing. and stage on Fastpages.  Good command on things you shared.  Video time is long.   2.6

2.7
Shows servers running and updated when changes are made. Meets standards

Your video is really long. Good job showing all of the requirements though. Your docker server looked kinda weird though. Also, you committed the change when you did not need to for the local server and you didn't show that it changed locally without pushing. Last this looked like only one cut and the instructions were to have more than one cut.

Shows functioning fastpages and Python servers as well as edits being made, all requirements completed + shows collaboration with teammates using git pull. Video is lengthy and unedited though 2.7

This is a bit long, ~2.4x the maximum amount of time but that's fine, though I think you could have cut out the broken parts. You didn't have to show the making of the local server. It did show the Docker and flask updating in real-time which was good. You seemed to have a bit of a problem setting the flask up in the middle, maybe cut that out or make multiple cuts so you can try again.

Completed all requirements and also had a very good and efficient video structure, great job. One thing you could work on is shortening the video but overall great job.

2.7 Meets all standards, does not have frontmatter on the demonstration post, and the video is too long.

Great video going over most of the essential concepts, I wish you had tried to trim and cut down the video a bit more for the time. I would give a 2.6 for your work altogether.

The video was good and meets all of the standards but the video was to long but overall was a good job. 2.6


Update deployment.md

部署输出路径似乎有变化？
今天第一次用vuepress，发现文档里写的docs目录，实际上是src
如我修改错误，请直接在原Pull Request修改或关闭Pull Request即可

The deployment output path seems to have changed?
I used vuepress for the first time today and found that the docs directory written in the document is actually src.
If I correct the error, please modify it directly in the original Pull Request or close the Pull Request.


Bug fix for RomaniaProvider ignoring the LaunchYear property of the PublicHoliday

This PR implements the missing launch year filter for Romania which caused incorrect results and also adds unit tests for multiple years.

Currently no provider filter by launch year. It is an optional value.

Currently no provider filter by launch year. It is an optional value.

In that case, this is a more general issue.
I would expect that all functions that return holidays for a given date, year or date range, should always respect the launch year of the holidays, otherwise, the returned holidays may not be valid (like in case of Romania, Good Friday and Children's Day are incorrectly returned for years earlier than 2018 and 2017 respectively). Putting this filter right in the Get(int year) method seemed like right place to prevent any errors, even if accessed directly.
I understand that the LaunchYear is an optional parameter, but the condition .Where(x => x.LaunchYear == null || x.LaunchYear <= year) already respects this because it returns all holidays that don't have a launch year defined.

I think at the moment you can also filter the LaunchYear after the request. I will consider your proposal.

Sure, I understand that. The problem is that one would expect that getting the holidays for a specific year would use the rule set that was in effect for the given year. I can't think of a scenario where one would need the holidays that are in effect today to be projected to a past year where they did't exist.


Logical operators are tokenized as lower case words

{
	"analyzer": "vi_analyzer",
	"text": "công nghệ AND thông OR tin việt nam"
}

Results in the following tokens.
{
	"tokens": [
		{
			"token": "công nghệ",
			"start_offset": 0,
			"end_offset": 9,
			"type": "<WORD>",
			"position": 0
		},
		{
			"token": "and",
			"start_offset": 10,
			"end_offset": 13,
			"type": "<WORD>",
			"position": 1
		},
		{
			"token": "thông",
			"start_offset": 14,
			"end_offset": 19,
			"type": "<WORD>",
			"position": 2
		},
		{
			"token": "or",
			"start_offset": 20,
			"end_offset": 22,
			"type": "<WORD>",
			"position": 3
		},
		{
			"token": "tin",
			"start_offset": 23,
			"end_offset": 26,
			"type": "<WORD>",
			"position": 4
		},
		{
			"token": "việt nam",
			"start_offset": 27,
			"end_offset": 35,
			"type": "<WORD>",
			"position": 5
		}
	]
}

This would affect results in the query as the operators "AND" and "OR" are being considered as tokens.

@andacu
This wouldn't effect results in the query, the logical operators (AND, OR, NOT) in query_string will be parsed before running through any analyzers.
Try default analyzer, it produces similar output:
GET _analyze
{
  "analyzer": "default",
	"text": "warning OR error"
}

Output:
{
  "tokens" : [
    {
      "token" : "warning",
      "start_offset" : 0,
      "end_offset" : 7,
      "type" : "<ALPHANUM>",
      "position" : 0
    },
    {
      "token" : "or",
      "start_offset" : 8,
      "end_offset" : 10,
      "type" : "<ALPHANUM>",
      "position" : 1
    },
    {
      "token" : "error",
      "start_offset" : 11,
      "end_offset" : 16,
      "type" : "<ALPHANUM>",
      "position" : 2
    }
  ]
}```


[AutoPR recoveryservicessiterecovery/resource-manager] [Hub Generated] Review request for Microsoft.RecoveryServices to add version stable/2018-07-10

Created to sync https://github.com/Azure/azure-rest-api-specs/pull/6006

This PR has been merged into https://github.com/Azure/azure-sdk-for-js/pull/3032


Fix Color main_navigation

Color has been modified because it doesn't fit with customers generally and the white better and sees more

Hi @Abd-El-Rahman-HSN
whit did you commented test code in "spec/features/admin/menus_spec.rb"?
Cheers!


allow intake volunteers to delete a request and post it again

right now it seems that if an intake volunteer posts in the wrong channel, or they need to start over with a post rather than edit it, the Slack app won't let them delete and re-post. The corresponding code won't appear when they click the lightning bolt to "Post Open Request" - so they only get to post the request once.
** i was able to fix this manually for someone in the Airtable by deleting the slack_ts and slack_channel in the "Meta" field in Airtable ... a good place to start?

i was able to fix this manually for someone in the Airtable by deleting the slack_ts and slack_channel

if we add as something to do when using Edit Bot Post > Delete is that a good solution?


WARN transloco-persist-lang with peer dependencies

I'm submitting a...

[ ] Regression (a behavior that used to work and stopped working in a new release)
[x] Bug report
[ ] Performance issue
[ ] Feature request
[ ] Documentation issue or request
[ ] Support request
[ ] Other... Please describe:

Current behavior
npm WARN<EMAIL_ADDRESS>requires a peer of<EMAIL_ADDRESS>but none is installed. You must install peer dependencies yourself.
npm WARN<EMAIL_ADDRESS>requires a peer of<EMAIL_ADDRESS>but none is installed. You must install peer dependencies yourself.
npm WARN<EMAIL_ADDRESS>requires a peer of<EMAIL_ADDRESS>but none is installed. You must install peer dependencies yourself.

Expected behavior
compatible plugin
Minimal reproduction of the problem with instructions
npm install<EMAIL_ADDRESS>What is the motivation / use case for changing the behavior?
Could eventually have issue with newer angular and transloco.
Environment

Angular version: 9.0.6

Browser:
- [ ] Chrome (desktop) version XX
- [ ] Chrome (Android) version XX
- [ ] Chrome (iOS) version XX
- [ ] Firefox version XX
- [ ] Safari (desktop) version XX
- [ ] Safari (iOS) version XX
- [ ] IE version XX
- [ ] Edge version XX

For Tooling issues:
- Node version: 13.8.0
- Platform: Windows

@nsabourin I have released a new version of transloco-persist-lang that fix that warning, you could upgrade to the newest version if you like :)


fix: typescript typings

You forgot to update the typings in d4f06a9967c4f654dc532105b74a5669f689bc39.
Also, I saw two more functions that isn't available in index.d.ts
module.exports.args = args
module.exports.isJSON = isJSON

Should I add those too to the typings? I feel that those two are internal functions in youtube-dl-exec.

Thanks for this!
About the methods, yes, they are internal and exposed for testing purposes


Appending additional phase to current results

While running our benchmarks and generating results I have realized that we do not have an easy way to add a phase (i.e. vacuum, solvent, complex) to current finished simulations/results. Specifically, if we want to add vacuum phase data by just using a single  vacuum value to the phases option to the input yaml file we end up hitting this error (which makes sense).
On the other hand, if we add the value to the current phases in the yaml input file, we end up with something like FileNotFoundError: Storage file <path_to_edge_results>/out-vacuum.nc or its subfiles do not exist; cannot read status..
There are ways to work around it (specially if you are using the API directly), but I guess it can be convenient that we can extend and add phases to the simulation using the command line capabilities as well.

:vomiting_face:
To add something like this, I much rather work on reimplementing setup_realitive_calculation and relitive_setup than to try and just bolt that support in.
Else we will need to add some logic here https://github.com/choderalab/perses/blob/99dab9d3af342aae8b11695815104e87df1d0d04/perses/app/setup_relative_calculation.py#L970 to figure out which phases haven't even started yet and then create those before we start extending.
This could be a good time to work on re-doing it since I think making running each phase more independent will be needed if we want to run complex GPU and the solvent leg on the CPU anyway.


Fix mongo driver to use passive nodes

The mongo connect response does not include passive hosts in the hosts array.  Instead, these hosts are included in the passives array.  The (BSON) response might look like:
{ setName: 'rs0',
 setVersion: 31,
 ismaster: true,
 secondary: false,
 hosts:
  [ '<IP_ADDRESS>:8000',
    '<IP_ADDRESS>:8000',
    '<IP_ADDRESS>:8000',
    '<IP_ADDRESS>:8000' ],
 passives: [ '<IP_ADDRESS>:8000' ],
 primary: '<IP_ADDRESS>:8000',
 tags: { dc: 'west' },
 me: '<IP_ADDRESS>:8000',
 maxBsonObjectSize: 16777216,
 maxMessageSizeBytes: 48000000,
 maxWriteBatchSize: 1000,
 localTime: Wed Jun 24 2015 19:19:42 GMT+0000 (UTC),
 maxWireVersion: 2,
 minWireVersion: 0,
 ok: 1 }

We want to be able to read from these passive hosts.
I have manually verified all existing unit tests pass.
I am looking into adding a unit test corresponding to this change...

have you considered upgrading to the 2.0.x branch ?

@christkv - Thanks!
We'd like to upgrade to the v2.0.x branch.  We have not yet done so because we're concerned about the perfomance, and have also run into one [bug] (https://jira.mongodb.org/browse/NODE-491).


Enable extension skipping on Windows.

If the vcvarsall.bat cannot be found a ValueError is raised.

aiohttp 0.16.6 released with the fix


[rtl] Fix PMP NA4 address matching

Apply address masking to the bottom address bit for NA4 as well as
NAPOT
Relates to #902

Signed-off-by: Tom Roberts<EMAIL_ADDRESS>

@udinator to run some PMP testing on this

Hmm, I'm not quite sure if this change is correct from a spec-compliant way (functionally it works but technically shouldn't).
This causes bit [2] of region_addr_mask to be set to 0 when we're in NA4 mode, making this equivalent to a NAPOT check with granularity 1 and results in additional (incorrect) matches with other addresses in the 8-byte space.

Just going off of the spec, I think the original mask of 0xffff_ffff was already correct for NA4.

Thanks @udinator you're right - not sure what I was thinking there!
I have pushed a new version which does more straightforward address matching. I'd appreciate a bit of testing on this new version if you have time.
Cheers
Tom


Use Bytedeco OpenCV distribution.

Updating Danil's PR:
https://mvnrepository.com/artifact/org.bytedeco.javacpp-presets/opencv

@imatiach-msft,
Thanks for your contribution as a Microsoft full-time employee or intern. You do not need to sign a CLA.
Thanks,
Microsoft Pull Request Bot

We had issues with using JavaCpp opencv in our repo. The maven project structure for opencv is: http://central.maven.org/maven2/org/bytedeco/javacpp-presets/opencv/3.2.0-1.3/
We need to get the jars:
opencv-3.2.0-1.3.jar
opencv-3.2.0-1.3-linux-x86.jar
From maven:
http://central.maven.org/maven2/org/bytedeco/javacpp-presets/opencv/3.2.0-1.3/
But I was unable to get both. One contains the .class files needed for opencv and the other contains the .so files.
In the POM file, when I specify:

    <groupId>org.bytedeco.javacpp-presets</groupId>

    <artifactId>opencv</artifactId>

    <version>3.2.0-1.3</version>

</dependency>

I am able to get the file opencv-3.2.0-1.3.jar.
And when specifying:

org.bytedeco.javacpp-presets
    <artifactId>opencv</artifactId>

    <version>3.2.0-1.3</version>

    <classifier>linux-x86_64</classifier>

</dependency>

I am able to retrieve opencv-3.2.0-1.3-linux-x86.jar.
However, adding both only seems to retrieve one of the jars.
Using two classifiers doesn't seem to work either.  Using opencv-platform, as suggested on Gitter, did not work also.

Note: alternative solution in #89.


Warning when making breaking changes to AppSync schema

Is your feature request related to a problem? Please describe.
Sometimes I make changes to my AppSync schema and end up breaking things when I add a required field to a type.
Describe the solution you'd like
Would love a warning when running CodeGen as well as a way to define a default value to the DynamoDB entries that I am breaking with my change.
Describe alternatives you've considered
Not sure how else to approach this

Closing this out as we've launched the feature: https://docs.amplify.aws/cli/graphql/overview/#iterating-on-your-data-model-using-the-graphql-schema


get People in Organization

Proposed Method: get_people()
Description
Returns list of people in given organization
To what class it belongs?: Organization
Please assign this issue to me under JWOC

Go ahead @PalaVenkiReddy.


fix(kubernetes/kubectl): add exe file extension for windows

Check List

[X] Read CONTRIBUTING.md

[X] Read OSS Contribution Guide

[X] All commits are signed

This repository enables Require signed commits, so all commits must be signed

[X] Avoid force push
[X] Do only one thing in one Pull Request
[ ] Execute cmdx s to scaffold code
[ ] Install and execute the package and confirm if the package works well

Ensures the .exe file extension is used for windows installations

Probably it's the issue of mise, not aqua.
By default aqua automatically complements .exe on Windows.

I close this pr.
Please reopen it if you want.

Probably it's the issue of mise, not aqua. By default aqua automatically complements .exe on Windows.

Not sure what to tell you, aqua 404s on the URL without this change @suzuki-shunsuke

@ChipWolf Do you use

At least, aqua could install kubectl well on Windows in CI.

https://github.com/aquaproj/aqua-registry/pull/29843
https://github.com/aquaproj/aqua-registry/actions/runs/12286924588/job/34288000005

So I can't find any issue.

I wrote a note for mise users:

https://github.com/aquaproj/aqua-registry/issues/30430

I close this pr again because I don't think this is a problem of this package.
If aqua doesn't complement .exe on Windows, I guess it's a bug of aqua, not aqua-registry.
So in that case please create an issue to aqua.
According to the screen shot, you use mise, not aqua. https://github.com/aquaproj/aqua-registry/pull/30398#issuecomment-2564428107
If you can reproduce the issue using mise but you can't reproduce the issue using aqua, it isn't an issue of aqua.
In that case, we can't help you. Please ask mise community for help.
Thank you.


[AV2-616] Unexpected yellow frame shows when scrolling down the notifications on desktop view

Jira - https://intersective.atlassian.net/browse/AV2-616

PR still not ready for code review.


Monoid for combining ApplicativeFunctors and Zippables

It should be possible to compose Monoids something like this :-
 Monoid<Maybe<Integer>> sumMaybes = Monoids.combineApplicatives(Maybe::just,Monoids.intSum);

For zippables
    Monoid<ListX<Integer>> sumLists = Monoids.combineZippables(ListX::of,Monoids.intSum);

The combine method can be moved to Functor making it more generic.
combineApplicatives should really be combine values.
Combine Zippables is the equivalent of combineApplicatives.

Merged in https://github.com/aol/cyclops-react/pull/339


[zh] Fix Markdown format

Change `hello,` world to `hello`, world
Use correct codenew statement

Ref: #32897

/cc @tengqm
Could you please help with this PR? :bowing_man:

Other than the one which is now out of sync. The rest of the changes are all okay to me.

Thanks for letting me know the kubeadm-certs.md file could cause issues for future translating!
The change made for that file is inside the HTML comment (for comparing original text), so it's ignorable and I removed that change.
Please take a look at the new change, thanks for your time!

These are all good.
/lgtm
/approve

/unhold
Thanks @tengqm for reviewing this, have a nice weekend!


Dynamically toggle capabilities before build

Checklist

[x] I've added an entry to CHANGELOG.md if necessary.

Why
If a capability is defined in the entitlements file but not registered with Apple, the build will fail. This PR aims to reduce the possibility of that happening by checking the native entitlements file and enabling/disabling capabilities.
Fixes https://github.com/expo/expo-cli/issues/3448 for eas build
How

If the project is specified to run as a bare workflow build, then read the entitlements file directly if one exists.

Otherwise if it's a managed project, read the Expo config and use the ios.entitlements object, defaulting to the template object (which always enables push notifications). This needs to be improved further in expo/config to allow reading of evaluated entitlements automatically (can implement in another PR).

Given a JSON representation of an entitlements object, match against our supported capabilities. Supported capabilities are based on entitlements, and iOS platform support.
If a capability that we manage is enabled for app, but not defined in the entitlements file, we'll disable it. This allows for users to enable future capabilities without us needing to explicitly support them.
Basic capabilities (boolean) can be omitted from the request if they already exist on a bundle identifier, this helps to reduce the amount of invocations in simpler projects. If a capability has settings, we'll always update it to ensure the settings are in sync. This can be optimized further in the future but works for now.
Using debug mode will show more info on how the request is built.
We surface the user friendly names for enabled and disabled capabilities after syncing.

Example
If the user has associatedDomains defined in their entitlements file, then in their app.json then enable/disable the capability remotely before building. Without this feature the build fails.
❌  error: Provisioning profile "*[expo] com.bacon.yolo22 AppStore 2021-05-04T22:29:48.816Z" doesn't support the Associated Domains capability. (in target 'yolo22' from project 'yolo22')

❌  error: Provisioning profile "*[expo] com.bacon.yolo22 AppStore 2021-05-04T22:29:48.816Z" doesn't include the com.apple.developer.associated-domains entitlement. (in target 'yolo22' from project 'yolo22')

With this feature the build works.
Test Plan

Wrote unit tests for the request and assembly.

In a managed project's app.json:

{
  "ios": {
    "entitlements": {
      "com.apple.developer.associated-domains": [
        "applinks:evanbacon.dev",
        "webcredentials:evanbacon.dev"
      ]
    }
  }
}

Then run eas build -p ios, after capabilities sync, check to see if 889YZVZQDS_ASSOCIATED_DOMAINS is defined (my app's opaque id is 889YZVZQDS).
After the build completes, submit to the app store, it should finish processing without any warnings.
Then remove the entitlements and rerun eas build, the syncing step should remove the capability.

This feature doesn't currently support ios.usesAppleSignIn, ios.associatedDomains, etc. because the mods must be statically evaluated for this to work. We can add this functionality in a future PR.

Visually, this is the scope of automatic functionality:

also, i spoke with @EvanBacon about this stuff today and i'm generally on board with changes. there's additional work being on on the expo-cli repo but this can ship independently.

Is this supposed to work with app.config.ts? The sync basically disabled all our capabilities...

Now I see EAS "workflow": "managed" still might behave as bare workflow in this case.

@flow-danny - sorry can you elaborate on what you experienced? i'd like to understand what happened in your situation

We have a regular managed Expo app and tried EAS for the first time.
We didn't have any custom entitlements configured, just usesIcloudStorage set to true as documented here https://docs.expo.io/versions/latest/sdk/document-picker/
(But in the typescript version if app.json)
iCloud entitlements get disabled during the syncing process until after we added these to the entitlements config. I used expo eject and Xcode to figure out the entitlement keys that we needed.
On 24 May 2021, 06:54 +0400, Brent Vatne @.***>, wrote:

@flow-danny - sorry can you elaborate on what you experienced? i'd like to understand what happened in your situation
—You are receiving this because you were mentioned.Reply to this email directly, view it on GitHub, or unsubscribe.

if anyone runs into issues with capability syncing, you can disable it with EXPO_NO_CAPABILITY_SYNC=1 eas build (as described here: https://docs.expo.dev/build-reference/ios-capabilities/) and post an issue with some more information


Use ASCII encoding for global version file

In Powershell 5.1, Out-File command uses UTF-16 encoding as default.
This will lead to weird version text read from global version file because of Unicode BOM.

This PR fixes this by specifying ASCII encoding for Out-File.
FIY: https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.utility/out-file?view=powershell-5.1#-encoding

@fur0ut0 Thank you!


Failed to load module script: Expected a JavaScript module igv-widgets.js:1

I did a clean pull from master branch. Running on NPM 7.17.0 and node 12.18.4. Did the following:

npm install
npm run build
All successful but when I run the server, I get this in Chrome console. "Failed to load module script: Expected a JavaScript module igv-widgets.js:1".

Sorry, run what server?  How (how did you start it)?  We don't provide a server.

Sorry, I meant when I started the webapp.

Again, we don't provide a server.   How did you "start" the webapp?

Ahh, I see, there is a "start" target in package.json.  Apologies that shouldn't be there, its deprecated.  You will need to provide your own server.
Can I assume you started it with. "npm run start"?

We started it by "sudo http-server -p 72". It was used before and we didn't make any changes to it.

It was created by the previous guy working on it and I'm trying to contact him right now. But it was working before.

You will need to install http-server yourself, its no longer in our package dependencies.   See the http-server documentation for documentation, its not something we distribute, but you need to start it on the web content directory (the "dist" directory if you are building from source).

So I did npm run start, and it is working on 8080. Probably an issue on out end. Sorry.

OK that will work for now, but again it was a mistake to even be there.   We don't distribute http-server through igv-webapp anymore.   For the future the equivalent of "npm run start" is below, your initial bug was caused by not including the "dist" directory (the content directory)
npx http-server -a localhost dist

got it. Thank you!


Error from lastSubmission no displayed when field is using useInputEvent

Describe the bug and the expected behavior
I have a form with several normal text inputs and a datepicker input (Let's call it myDateField) that's been implemented per the docs using useInputEvent
All validation and error message display works fine with client side validation.
The issue arises when I return lastSubmission from my action and it contains errors.
All field level errors for my normal text fields display just fine, however if my submission includes a single validation error for myDateField the error is not displayed at all. Logging the values for that particular field shows an empty error array.
Here's where it's more strange... if my lastSubmission ALSO includes a validation error for one of the text inputs, ALL error now display correctly. (including the error for myDateField)
Conform version
v.0.9.0
Steps to Reproduce the Bug or Issue

Have a form with normal text inputs and a field implemented with useInput event
Return a validation error for the useInput event field in the lastSubmission
Error will not display.

What browsers are you seeing the problem on?
Chrome, Firefox
Screenshots or Videos
No response
Additional context
No response

Here are some screenshots of my actual lastSubmisson json:
This does not work. No error displayed. Nothing in error array at field level

// This works. All error display at field level properly

All field level errors for my normal text fields display just fine, however if my submission includes a single validation error for myDateField the error is not displayed at all. Logging the values for that particular field shows an empty error array.

Here's where it's more strange... if my lastSubmission ALSO includes a validation error for one of the text inputs, ALL error now display correctly. (including the error for myDateField)

I suspect you might have run into a zod bug with related to z.preprocess() like this one. If you are running with zod v3.22, please check if downgrading to v3.21 fix the issue.

Feel free to reopen if downgrading to v3.21 does not work for you :)


WIP: DO NOT MERGE: Upgrade numpy to 1.11.0

Closing PR. Changes will be pushed from internal once it passes review.