[toolbar android] optimizing number of re-renders

hello oblador,
Thanks for the lib! Consider using the Icon.Toolbar with custom icons for overflow and navigation and these actions:
       let toolbarButtons = [
            {title: 'AAAA', iconName: 'search', show: 'always'},
            {title: 'BBBB', iconName: 'people', show: 'ifRoom'},
            {title: 'Settings', show: 'never'},
            {title: 'Log out', show: 'never'}
        ]

the current behavior is this: display the toolbar with the passed options. First render is like this:

Then, (if present) the navicon promise returns and triggers a re-render, then (if present) the overflow icon promise returns and re-renders and then the action icon promises return and trigger a re-render (the order might be different). In the end you get the toolbar with icons. The problem is the noticeable delay, where for a short moment you'd see the 'AAAA' and 'BBBB', even with dev mode is off and especially for the first render.
So what this PR does is that it renders this first:

And when all of the promises (navicon, overflow icon and action icons) return, it renders the toolbar with all the icons.
Now, I thought this would solve it, but actually, even after the icons are all loaded and the toolbar re-renders, there is still a noticeable transition from AAAA and BBBB to their icons (so the problem is probably somewhere even deeper), but (1) the transition is shorter than before and (2) this code does less re-renders than the current one, so I still think it is an improvement :D
Now, as for the code in componentWillReceiveProps I don't understand what it was doing, so let me know if I should keep the previous code in there (and uncomment it) or if I should remove the commented part altogether. It seems to work fine like this.

The componentWillReceiveProps is needed if you remove a prop such as iconName otherwise it will not update.

here's what I don't understand about the current componentWillReceiveProps: (comments)
componentWillReceiveProps(nextProps) {
  const keys = Object.keys(IconToolbarAndroid.propTypes);
  if (!isEqual(pick(nextProps, keys), pick(this.props, keys))) {
    // ok, something changed
    let stateToEvict = {};
    // stateToEvict.navIcon === undefined         -> true
    if (!nextProps.navIconName) {
      // no need to set explicitly
      stateToEvict.navIcon = undefined;
    }
    ...
    if (this.state && Object.keys(stateToEvict).length) {
       // if navIcon or overflowIcon changed, remove navIcon, overflowIcon and action icons, and add them when new images are ready
      this.setState(stateToEvict, () => this.updateIconSources(nextProps));
    } else {
     // why are navIcon and overflowIcon getting special treatment?
      this.updateIconSources(nextProps);
    }
  }
}

@oblador I reworked the code slightly. There's also a branch here which uses promises, but I think I like this one better. Any thoughts?

Hi @vonovak ,
I've experienced the same flicker problem and when looking for an issue about it, I've found your PR. To be honest, I understand the approach you've followed, but in my case it doesn't improve things, although it should.
Although getImageSource does actually use an imageSourceCache, it looks like when you setState the image is loaded for the first time and takes a glimpse of a second.
My problem is that if I have actions set to ifRoom and the title of the icon is long, they suddenly are moved into the overflow icon area, which is weird because for the user they've disappeared.
Cheers,
Miguel

it doesn't improve things, although it should.
nicely said @maraujop :D

the title of the icon is long, they suddenly are moved into the overflow icon area
have you solved that issue? Does the title stay in the overflow are even after the icon is ready, or does the icon "jump back" into the visible area once it is ready?

I think think what I have done improves the number of re-renders but there is still the problem that even when the images are ready, setting them takes a very short while during which the titles are shown instead. Maybe a workaround would be to set the title to be an empty string, render the icons, and then render the icons together with the titles, but it's a bit of a hack...

This PR has gone stale and I'm unsure if it solves the problem, so going to close it for now. LMK if you still find this useful and should be worked on/merged @vonovak


DATABASE BROWSER: Sort alphabetically

I don't consider this urgent.
This is my first experiment with the DATABASE BROWSER.
My list of files/tables doesn't have a discernible sort sequence.  It would be nice if it could be sorted alphabetically.

Added order by and will be available in 0.2.10


Remove leading space in YAML delimiter

The leading space was causing --- to be interpreted as a horizontal rule instead of the opening delimiter of a YAML front matter.

Thanks.


Allow using custom glfw binary

Related to #70. The GLFW version included in raylib repo is buggy. How do I use a custom version of glfw?

You can compile your own version of raylib.dll and use this library with a shared library, see available compilation flags.


resnet example

Thank you for providing such a powerful but user-friendly wrapper. Is there any example for resnet in which the network cannot be constructed by simply stacking layer by layer, by using tl.layer?

@xjtuljy You can connect TF-Slim into TensorLayer, as TF-Slim have pre-trained resnet, inception , vgg models .. see tutorial_inceptionV3_tfslim.py in example folder.
Besides, here is a resnet example implemented by @ritchieng

Thanks! @ritchieng 's code is quite helpful!


[3.0] Select all properties from table when joining

In one query we are selecting a row in the model table based on some where conditions form a foreign table, thus we join the foreign key table. The primary key column name on that foreign table is the same as on the model table, so sometimes the wrong primary key was returned (the one of the foreign table row)
We worked around the issue by creating a similar property as Property.ALL_PROPERTY:
private Property<Pass> ALL_MODEL_PROPERTY = new Property(Model.class, "*") {

    @Override public String toString() {
      return FlowManager.getTableName(Model.class) + "." + getNameAlias().getAliasNameRaw();
    }
  };

This feels very hackish, so it would be nice to have a cleaner way to get such a property to only select all properties from a single table when joining multiple ones.

Are you using the Property.withTable() method?

Yes, I'm using Property.withTable for the join & where conditions

+1 for this.
I was using getAllColumnProperties() for the select, but this fails if there are ambiguous column names. Need a way for getAllColumnProperties() the respect table aliases as set by as()

this should be fixed in develop/3.0.0

Is this really fixed?
I am trying to get all property of one table still getting ambiguous error.
Using 3.1.1 version.

@agrosner  How do I find out which commit corresponds to fix of this issue?

Did anyone was able to sort this out? I'm also having the ambigous error

Here is a method that takes care of the ambiguous issue when it is a result of a join query.
@NonNull
static IProperty allFromTable(@NonNull Class<? extends Model> tableClass)
{
    require(tableClass).isNotNull();
    return new Property(tableClass, NameAlias.rawBuilder("*").build()).withTable();
}

Results in a query something like this:
SELECT `TABLENAME`.* FROM ...

@trevjonez this is project specific code or there is in the in DBFlow lib?

What I posted was custom. I believe something was added to the library to support it though

@trevjonez  i don't see anything like that
ps why not put table name always ?

https://github.com/Raizlabs/DBFlow/pull/1273 was where we had talked about doing something similar. @agrosner do you have a link to the alluded static method?

Property.allProperty(MyTable.class) or in kotlin MyTable::class.allProperty()

@trevjonez @agrosner I love you :)


powerline-fonts work in gvim perfectly but not in vim

The terminal is rxvt-unicode-256color (and so is $TERM).
I cloned the vim-powerline-fonts repository into my ~/.fonts directory and updated the fonts cache.

Please configure rxvt-unicode to use the patched font.


Automatically select translation-from language to the page's lang parameter

Currently the translation dialog will have the first language selected when the dialog is displayed, or the last selected one.
I'd like to have it to automatically select the language the response has attached to it in the lang parameter, if there is one and if it's a translatable language.

v1.15.5 added "Auto-detect" as the default source language. This is LibreTranslate's autodetection and does not check the MIME lang.
There is still some value in checking lang because LibreTranslate may not always choose the right language. However, in the wild, lang seems relatively rare so given the new autodetection working in most cases, implementing this is pretty low on the priority list.


Expose a public method to escape characters within an attribute

Hello
I need to escape the characters within an attribute in a program that converts an HTML file into a single Java class with a single public static method that converts the Java source code into HTML:
https://github.com/gouessej/HtmlFlow/blob/patch-1/src/main/java/htmlflow/flowifier/AbstractHtmlToJavaHtmlFlowNodeVisitor.java#L319
The package protected static method named "escape" does the correct job by passing inAttribute at true but I can't call it in the source code above because it's not public. Please can you provide a public method that allows to pass inAttribute at true? It would be cleaner than my dirty kludge that doesn't take into account some other cases.
I suggest the addition of the following method:
/**
  * HTML escape an input string within an attribute.
  *
  * @param string the un-escaped string within an attribute to escape
  * @param out the output settings to use
  * @return the escaped string
  */
 public static String escapeInAttribute(String string, Document.OutputSettings out) {
     if (string == null)
         return "";
     StringBuilder accum = StringUtil.borrowBuilder();
     try {
         escape(accum, string, out, true, false, false);
     } catch (IOException e) {
         throw new SerializationException(e); // doesn't happen
     }
     return StringUtil.releaseBuilder(accum);
 }

Best regards and keep up the good work.

In jsoup, using Parser.xmlParser() to generate the DOM is not the same as using Parser.htmlParser().
E.g.
tagName in Parser.xmlParser() - case sensitive
tagName in Parser.htmlParser() - lower case.
And when we use the selector - *|MyXmlTag - the string is converted to lowercase.
Therefore, in the case Parser.xmlParser(), the selector will find nothing.

Thanks for the suggestion - I have updated Entities.escape(string) so that it's output is suitable for both text data and attributes. It's more conservative or maximal. The output from Element.html() etc is still more conservative and uses the context of if in an attribute or in text to decide what to escape.


Generated plumbling code

All the code inside template.gen.go is fully generated.
The tool that generates the code is not yet ready for Code review +
it will be nice to first review what it generates and see if we like it.
Then we can review how it generates (Next PRs).
The generated code inside template.gen.go is referencing 3 templates https://github.com/istio/mixer/tree/master/template/sample/check, https://github.com/istio/mixer/tree/master/template/sample/report,
https://github.com/istio/mixer/tree/master/template/sample/quota
FYI: The BUILD file and the template.gen_test.go is hand edited.

This change is

Thanks @geeknoid  for the review. I wanted to use this as a feedback to do the implementation. Closing this PR in favor of https://github.com/istio/mixer/pull/964 (contains the code generation + generated code template.gen.go)


[BUG] Newsletter page does not have correct button labels

Describe the bug.
The labels for the buttons and input fields simply have the i18n placeholders instead of the actual labels

Expected behavior
These are the expected labels

How to Reproduce

Go to https://www.asyncapi.com/newsletter
You will notice the improper labels

🥦 Browser
Google Chrome
👀 Have you checked for similar open issues?

[X] I checked and didn't find similar issue

🏢 Have you read the Contributing Guidelines?

[X] I have read the Contributing Guidelines

Are you willing to work on this issue ?
No, someone else can work on it

I can work on it!

How do we access newsletter page?

How do we access newsletter page?

I am not sure either, I was just going through the codebase and found that we have pages/newsletter.tsx file. Which means the page exists at  https://www.asyncapi.com/newsletter

@akshatnema do we need this url as we only have newsletter at the home page which is working fine

@sambhavgupta0705 look at 'components/NewsletterSubscribe.tsx'

Hey,@JeelRajodiya can you assign this to me.

Found it. Here is how you can access the /newsletter page
1. Go to the footer of the website.
2. Click on About

3. Now on the about page. you will find a link to the newsletter

That's not it. The newsletter page is also linked from multiple blogs

Hey,@JeelRajodiya can you assign this to me.

Issues are not assigned on the website repo. If the issue is valid, you can start working on it and create PR.

@JeelRajodiya I can still see this issue present on the website.Can i work on this ?

Reopening this one

@sambhavgupta0705 I think the issue was resolved in #3308. We can close this issue.


Failed to set up

Hello ive had this plugin working for a while and just this morning i woke up and saw that it says:

ive tried everything to fix it (Reinstall, redownload from hacs, log out and log in, and rebooting my host machine, and restoring a backup from a time that it did work) nothing has fixed it.
If someone could help me that would be greatly appreciated.

We need first error logs, if they are not helpful than debug logs.

These are the logs let me know if you need anything else :)

What is region and brand?

Canada and a Hyundai Santa Fe 2019

Could you enable debug logging and post the logs from prior to this error?  This typically means something went wrong grabbing the car details.

How do i enable debug logging? Im a bit of a noob lol

Very bottom of the page here: https://github.com/fuatakgun/kia_uvo

i've just discovered that my bluelink app isn't working either so i think it has to do with bluelink or it's an issue with my car. I'm going to call bluelink tomorrow and see what the issue is.

Thanks for update, good luck with that


Correct instructions to help readers find template

The current instructions are out of date. Bouncy Blast is nowhere to be found on the linked page; it's actually under 'Engage Your Audiences'.

Thanks so much @ilovepullrequests ! Sorry I didn't see this PR sooner to finish the review. The content changes are excellent; thanks for finding this outdate info! Just minor updates to the styling to match the rest of our site. You should be able to just accept the suggestion and then I can merge your update to the live site!

Done!

@ilovepullrequests your changes are live!
https://developer.withkoji.com/tutorials/getting-started/your-first-remix#_creating_a_remix_from_a_template

@ilovepullrequests your changes are live!
https://developer.withkoji.com/tutorials/getting-started/your-first-remix#_creating_a_remix_from_a_template

Amazing!


CLI crash on loading of website

Describe the bug
When loading the site after using the netlify dev command I get a crash.
Task Terminated with exit code 1
URIError: URI malformed
    at decodeURIComponent (<anonymous>)
    at rewriter (file:///usr/local/lib/node_modules/netlify-cli/dist/utils/rules-proxy.js:87:19)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at onRequest (file:///usr/local/lib/node_modules/netlify-cli/dist/utils/proxy.js:559:19)

  System:
    OS: macOS 14.4.1
    CPU: (8) arm64 Apple M1
  Binaries:
    Node: 20.11.1 - /usr/local/bin/node
    npm: 10.5.0 - /usr/local/bin/npm
  Browsers:
    Safari: 17.4.1
  npmGlobalPackages:
    netlify-cli: 17.23.5

Steps to reproduce

Run netlify dev
Load website in browser

Configuration
# TOML lint: https://www.toml-lint.com/
[build]
  base = ""
  publish = "dist"
  command = "npm i --prefix functions && npm run build && cp ./headers/_stagingHeaders ./dist/_headers && cp -r ./public ./dist"
  functions = "functions"

[context.production]
  command = "npm i --prefix functions && npm run build && cp ./headers/_prodHeaders ./dist/_headers && cp -r ./public ./dist"

[build.environment]
  GO_VERSION = "1.22.0"

[functions]
  node_bundler = "esbuild"

[[redirects]]
  from = "/*"
  to = "/"
  status = 200

Environment
System:
OS: macOS 14.4.1
CPU: (8) arm64 Apple M1
Memory: 90.88 MB / 16.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
Node: 20.11.1 - /usr/local/bin/node
npm: 10.5.0 - /usr/local/bin/npm
npmGlobalPackages:
netlify-cli: 17.23.5

Removing the redirect fixes the issues, but of course breaks my deploy.
[[redirects]]
  from = "/*"
  to = "/"
  status = 200

I am experiencing this same issue. I also tried commenting out my redirects, and the app runs again just like @jonathan-wondereur found.
Adding this to netlify.toml also seems to work around the problem:
[dev]
  autoLaunch = false

so maybe there's some kind of race condition here.
Here's my cli error output:
URIError: URI malformed
    at decodeURIComponent (<anonymous>)
    at rewriter (file:///Users/xxxxx/.node/lib/node_modules/netlify-cli/dist/utils/rules-proxy.js:87:19)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async onRequest (file:///Users/xxxxx/.node/lib/node_modules/netlify-cli/dist/utils/proxy.js:594:19)

  System:
    OS: macOS 14.4
    CPU: (8) x64 Apple M1
  Binaries:
    Node: 20.17.0 - /usr/local/bin/node
    Yarn: 1.22.17 - /opt/homebrew/bin/yarn
    npm: 10.8.2 - /usr/local/bin/npm
  Browsers:
    Chrome: 127.0.6533.120
    Safari: 17.4
  npmGlobalPackages:
    netlify-cli: 17.34.2


auro-dropdown: Full-screen display on mobile devices/breakpoints

Is your feature request related to a problem? Please describe.
When flight search's designers were creating the super menu for filtering results, they originally envisioned a dropdown that would open a full-screen display on mobile devices. Because auro-dropdown did not support this and mobile users were not our priority at the time, we opted to fit everything in the current dropdown popover like so:

Because of E-Commerce's new initiative to be a mobile-first organization, being able to have a full-screen display for auro-dropdown would greatly improve the mobile user experience. Flight search is also looking to revamp the passenger selection dropdown for the mobile experience, as well, which calls for a full-screen dropdown on mobile devices:

Describe the solution you'd like

Dropdown content on mobile breakpoints (screen widths of 575px and below) would cover the entire screen
A close button is added to the dropdown container to allow users to close the dropdown when full-screen

Describe alternatives you've considered

Creating an in-house full-screen modal

Easy to create a full-screen modal component, but very ugly when trying to integrate it with auro-dropdown

Additional context
No response

Closing as a duplicate.  This will be addressed by the work in https://github.com/AlaskaAirlines/auro-form/issues/55


Cannot find /lib/libc.so.6

build is failing during the linking stage and unable to find system libraries when using cross-compiler..

fixed in db33429
more details can be learned by analyzing the full make build attempt in detail using make -n (details here) ...
what ultimately fixed this was adding --sysroot=/home/develop/rootfs to the linker call in order for the cross-compiler to be able to link to the native runtime libraries.


add JsonOutput to all storage modules

Used for logging, currently only logs to elasticsearch, must support mongoDB and file logging.

Already supported, use any storage and generate a random value for the key.


Update ibmcloud provider to let users can run peer pod demo base on s390x based VSI

Update ibmcloud provider to let users can run peer pod demo base on s390x based VSI

update the document
update related codes

Pick up @mattarnoatibm 's commit about use terraform template to build, upload and verify peer pod VM image

Terraform template to build, upload and verify podvm image
Create IAM console admin policy if it doesn't exist
update document about podvm image

The related PR is merged, and with the latest codes in staging @stevenhorsman and I can run the peer pod demo both on x86 and s390x vsi, this issue are good to close.


Not run on Android 4

NoClassDefFoundError: PermissionUtils

Are you saying that this happens only Android 4?
Can you give us stack trace?
Which version of the library are you using?
Can you give us a sample code and steps that reproduce the problem?

@gmavenis any update?


There is no 0.7 version in the tag

Hi,
I tried to install 0.7 version but I can't do that in npm or yarn. It seems like there is no 0.7 version tag!

There is not.
There is a branch though (it's in the readme)
https://github.com/Leaflet/Leaflet.markercluster/tree/leaflet-0.7


Remove ability to use Azure OpenAI API keys

Expected Behavior
As part of a product review with executive leadership, an ask was made to remove the ability to use Azure OpenAI API keys. Instead, we should support only managed identity authentication with Azure OpenAI and our Azure-hosted search providers. This ensures that customers are always using the most secure configurations.
Additional Information
Naturally, we'll want to support both system and user-assigned identities. New APIs may be required specifically for configuring user-assigned identities.

applies to Azure OpenAI, Kusto and Azure AI Search


FUSE growing RAM footprint

Describe the bug
Ever growing RAM footprint of FUSE mount. Here are the files pprof.zip
System Setup

version 8000GB 2.34 9672f9e linux amd64

Expected behavior
A smaller, non-growing RAM footprint. Or at least something that does not explode.

I added some code change.
Would be great if there is some scripts that can reproduce this, in order to confirm the fix.

Also, roughly how many files and folders are there?

If I remember correctly, the first unnamed volume contains all the folder entries, then the numbers are as follows:
Folders: ~88.223
Files: ~97.904.837

The FUSE mount is not used for writing, it is only used as layer for the applications to merge different folders together (mergerfs) and then have one layer be writable (disk) and the other read only (weed).
There is another application that continuously writes to seaweed via S3 at a rate of ~1.5 files/s.
Out of ~4-5M files that are mainly accessed via the FUSE mount, I can say that ~300-400k files were accessd over the last 3-4 days. For read purposes. But dunno how readdir and scandir calls influence this.

when accessing files, does the code close the file handles?

Will check with the people that wrote the software.

The tools accessing the data via fuse do close the handles from the talks. Either way, will close this and open a new one should something popup.


Update the validate_published_dns job

The govuk-dns-config repo has had its code move to the govuk-dns repo in
order to consolidate it. This reflects those changes.

Is there a reason we use the build shell to clone the repo rather than doing in the native Jenkins way?


Fixing msservice tags

Docs Build status updates of commit 6d6db0f:
:clock10: Full build: the average full build time is 7 min(s) 3 sec(s), this is based on the last 256 build(s) for this repository.

Docs Build status updates of commit 6d6db0f:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

docfx.json
:white_check_mark:Succeeded

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

Docs Build status updates of commit aa0cd6c:
:clock10: Full build: the average full build time is 7 min(s) 4 sec(s), this is based on the last 257 build(s) for this repository.

Docs Build status updates of commit aa0cd6c:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

docfx.json
:white_check_mark:Succeeded

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

#sign-off

@sdwheeler do you have the authority to merge in this repo? Thanks, Jason


I realised that bowtie2 is picking up the bowtie directory. I have ch…

…anged the PARAMS so this now selects the correct directory

That's great, @Acribbs


Destroy method

There should be a way to cleanup the playerjs instance for use cases that need them: for instance after the user pauses a video, I don't want to programmatically control the video anymore so I'd like to GC the instance.

Hi, Anyway we could get a pull request for this?


demo.py

Hello teacher, in the process of reproducing your code, there is an error in the picture, I made changes in the code, added a line
：correspondences = correspondences.numpy()
to make a conversion, but still will report an error, may I ask the teacher specifically how to solve it? Thank you!

I'm trying to reproduce your other post  ：differentiable_ransac， I'm getting the same error, and although there is an answer from you on github, I still don't know how to change this code,

I was looking for another article of yours: differentiable_ransac, and saw a question on github with the same problem, although you replied on GitHub, I still don't know how to change the code, I hope you can guide me.Thank you！
Link to your answer in differentiable_ransac：https://github.com/weitong8591/differentiable_ransac/issues/9

hi, there are different args in the newest magsac++ repo and mine, pls change the input as magsac++ (you installed) requires. For example, you should have the first input in a shape of n4 (x1, y1, x2, y2) instead of n2.

Thank you for your answer, but I have other questions I would like to ask you about:
1:What is the connection between model fitting and E 、 F matrix estimation?Is E and F estimation an application of model fitting? How to understand it?
2 Can I understand it like this: suppose a curve is fitted given some points in a 2D plane, treat it as a whole as A, then rotate this plane angle (R), translate (T) and get B. Estimate the E and F matrices by making a match between the two wholes A and B?
3 If the input is a matching correspondence on the image (NG-RANSAC), is this correspondence one-to-many? Or many-to-many? The final weights obtained through the neural network output are the weights of the data points? Or is it the weight of the line that the data points are connected to?
I didn't understand it during the reading of the paper, can you help me to answer it?


CollectionView with swipemenu error in ios

I have updated the version of collectionView from 5.3.3 to 5.3.7, and now on iOS I have this strange behavior when using swipeMenu. It seems that drag is applied to another item
https://github.com/nativescript-community/ui-collectionview/assets/15719383/6907733e-9518-4e9a-86e2-aec725d30aeb

@vallemar i tried with the demo app and i cant reproduce. Can you share a simple example (possibly vue2 ) reproducing the issue?
Thanks

@farfromrefug  ok, I'll try to reproduce it with a sample in vue2

@farfromrefug  fixed with 5.3.15

@vallemar oh yes now i understand this one ! :D


Inaccurate Documentation

Hi there,
Only a POST request appears to work for the following endpoint; It's documented as requiring the GET method.
https://api.schoolbox.com.au/#operation/commsNewsSaveForLater.postAdd

Thank you for your report @Brahmah: this definitely looks like an issue with our documentation.
I'll raise a ticket to get it changed.

Hi @Brahmah : the documentation should now be updated.
We have switched to a new API documentation system: the new link is http://api.schoolbox.com.au/#post-/news/saved/-id-/add

Thank you for your swift response!
The new docs are pretty nice, great work!


Prevent the x-ticks from overlapping.

Description
https://www.notion.so/joinzoe/Active-cases-chart-bugs-2666190a7bba460e9e16bf86dce5fcab
On what platform have you tested the change?

[ ] Android - Emulator
[ ] Android - Physical device
[x] iOS - Emulator
[ ] iOS - Physical device

Out of scope and potential follow-up
Screenshots
Before:

After:

Checklist (for submission)

[ ] Analytics/tracking events have been added (if relevant)
[ ] Added new screen(s) to src/features/screens.ts and new Redux slice(s) to mocks/mockedInitialState.ts (if relevant)

Checklist (for reviewers)

[ ] Checked against Figma designs (if relevant)
[ ] Checked that data has been successfully saved to the backend (if relevant)

Checklist (for merger)

[ ] Make sure the right merge strategy is chosen, commit merge into master and squash merge into develop.

Nice :)


Styles are not bundled on --prod mode

Bug Report or Feature Request (mark with an x)
- [X ] bug report -> please search issues before submitting
- [ ] feature request

Versions.
@angular/cli: 1.0.1
node: 6.10.3
os: win32 x64
@angular/animations: 4.1.0
@angular/common: 4.1.0
@angular/compiler: 4.1.0
@angular/core: 4.1.0
@angular/forms: 4.1.0
@angular/http: 4.1.0
@angular/platform-browser: 4.1.0
@angular/platform-browser-dynamic: 4.1.0
@angular/platform-server: 4.1.0
@angular/router: 4.1.0
@angular/cli: 1.0.1
@angular/compiler-cli: 4.1.0
Repro steps.

Withing any ng component refer to .scss file using styles:
@Component({styles: [require('./filter.component.scss')]...
Run ng build --prod

Output: the styles are not bundled at all. In --dev mode it works fine. Also tried --extract-css=true & false with no success
The log given by the failure.

Desired functionality.
The referred CSS are bundled as part of the component JS code. It indeed work that way in --dev mode but not in --prod mode
Mention any other details that might be useful.
No CLI build errors. Tried to change build aot, extract-css with no luck. When I change my component style decorator to styleUrls (instead of style) it works fine also in production mode.
This works: @Component({styleUrls: ['./filter.component.scss'],
This does NOT work: @Component({ styles: [require('./filter.component.scss')],

The --extract-css option applies to only global styles.  Component styles are combined and built with the component templates and code itself.
Angular metadata is meant to be statically analyzed.  The first form (i.e., styleUrls) is the method that should be used.  The second form works with the development target because the components are compiled and executed at runtime.  Production adds an Ahead-of-Time build step which compiles the components at build time.

Thanks for your help.
Are you sure that this holds true - "The second form works with the development target because the components are compiled and executed at runtime"?
Based on my understanding, the second form (styles: [require('./filter.component.scss')],Styles), is based on WebPack during build time which feeds the component with all the styles from the referred file. Consequently, if aot happens after webpack concatenation the second form should also work.
Do I miss anything?

Webpack will essentially turn the require call into function call that will return a string containing the stylesheet which is then executed at runtime.
Also, the AoT step is one of the first steps as it generates additional code that is then compiled and bundled into the output.

Closing as above.


[Feature request] Papers API

I can do the following to search for papers: curl 'https://huggingface.co/api/papers/search?q=attention'
And I get this:

[{"id":"2409.07146","title":"Gated Slot Attention for Efficient Linear-Time Sequence Modeling","thumbnailUrl":"https://cdn-thumbnails.huggingface.co/social-thumbnails/papers/2409.07146.png","source":"hf"},{"id":"2409.03752","title":"Attention Heads of Large Language Models: A Survey","thumbnailUrl":"https://cdn-thumbnails.huggingface.co/social-thumbnails/papers/2409.03752.png","source":"hf"},{"id":"2409.00391","title":"Density Adaptive Attention-based Speech Network: Enhancing Feature Understanding for Mental Health Disorders","thumbnailUrl":"https://cdn-thumbnails.huggingface.co/social-thumbnails/papers/2409.00391.png","source":"hf"},{"id":"2408.10945","title":"HiRED: Attention-Guided Token Dropping for Efficient Inference of High-Resolution Vision-Language Models in Resource-Constrained Environments","thumbnailUrl":"https://cdn-thumbnails.huggingface.co/social-thumbnails/papers/2408.10945.png","source":"hf"},{"id":"2408.12588","title":"Real-Time Video Generation with Pyramid Attention Broadcast","thumbnailUrl":"https://cdn-thumbnails.huggingface.co/social-thumbnails/papers/2408.12588.png","source":"hf"},{"id":"2408.11237","title":"Out-of-Distribution Detection with Attention Head Masking for Multimodal Document Classification","thumbnailUrl":"https://cdn-thumbnails.huggingface.co/social-thumbnails/papers/2408.11237.png","source":"hf"},{"id":"2408.00760","title":"Smoothed Energy Guidance: Guiding Diffusion Models with Reduced Energy Curvature of Attention","thumbnailUrl":"https://cdn-thumbnails.huggingface.co/social-thumbnails/papers/2408.00760.png","source":"hf"},{"id":"2407.16291","title":"TAPTRv2: Attention-based Position Update Improves Tracking Any Point","thumbnailUrl":"https://cdn-thumbnails.huggingface.co/social-thumbnails/papers/2407.16291.png","source":"hf"}]

I can do this to get papers for a certain date:
curl https://huggingface.co/api/papers/search?date=2024-09-17
I don't know what other query terms I can look use.  It would be nice to have this as part of the hub client.
@Wauplin

So basically a list_papers method similar to list_models/list_datasets/list_spaces but with different query parameters, correct? What would be your use case for?
We could start with a simple list_papers method with a single query parameter (date?) returning a PaperInfo dataclass and then expand to other parameters. We haven't got much requests for the Paper API yet but maybe it's time to look into it :)

Hey @Wauplin :), I'm interested to work on this!

Thank you everyone for proposing your help and even creating a PR @hlky. I was not expecting such enthusiasm on this feature! :hugs: I'll need some time to check which direction we want to take and review the PR. I'll keep you posted :)

Just to note for the search path e.g. https://huggingface.co/api/papers/search?q=attention we can access the full metadata of the paper like https://huggingface.co/api/papers/{paper_id} e.g. https://huggingface.co/api/papers/2408.12588.
This almost matches the Paper dataclass/"paper" from daily_papers endpoint, except it includes submittedOnDailyAt and submittedOnDailyBy which not part of Paper/"paper" in daily_papers endpoint, they are publishedAt and submittedBy in DailyPaper respectively. numComments is also missing from papers/{paper_id}.
Example:
daily_paper:
{
    "paper": {
        "id": "2409.11074",
        "authors": [
            {
                "_id": "66ead57361228b02f8144cdf",
                "name": "Adrian Cosma",
                "hidden": false
            },
            {
                "_id": "66ead57361228b02f8144ce0",
                "name": "Ana-Maria Bucur",
                "hidden": false
            },
            {
                "_id": "66ead57361228b02f8144ce1",
                "name": "Emilian Radoi",
                "hidden": false
            }
        ],
        "publishedAt": "2024-09-17T11:03:46.000Z",
        "title": "RoMath: A Mathematical Reasoning Benchmark in Romanian",
        "summary": "Mathematics has long been conveyed through natural language, primarily for\nhuman understanding. With the rise of mechanized mathematics and proof\nassistants, there is a growing need to understand informal mathematical text,\nyet most existing benchmarks focus solely on English, overlooking other\nlanguages. This paper introduces RoMath, a Romanian mathematical reasoning\nbenchmark suite comprising three datasets: RoMath-Baccalaureate,\nRoMath-Competitions and RoMath-Synthetic, which cover a range of mathematical\ndomains and difficulty levels, aiming to improve non-English language models\nand promote multilingual AI development. By focusing on Romanian, a\nlow-resource language with unique linguistic features, RoMath addresses the\nlimitations of Anglo-centric models and emphasizes the need for dedicated\nresources beyond simple automatic translation. We benchmark several open-weight\nlanguage models, highlighting the importance of creating resources for\nunderrepresented languages. We make the code and dataset available.",
        "upvotes": 1,
        "discussionId": "66ead57461228b02f8144d31"
    },
    "publishedAt": "2024-09-19T17:17:31.279Z",
    "title": "RoMath: A Mathematical Reasoning Benchmark in Romanian",
    "thumbnail": "https://cdn-thumbnails.huggingface.co/social-thumbnails/papers/2409.11074.png",
    "numComments": 1,
    "submittedBy": {
        "avatarUrl": "/avatars/1208629f14f010dbc2cd94f3c30f9baf.svg",
        "fullname": "JB D.",
        "name": "IAMJB",
        "type": "user",
        "isPro": false,
        "isHf": true,
        "isMod": false
    }
}

papers/{paper_id}:
{
    "id": "2409.11074",
    "authors": [
        {
            "_id": "66ead57361228b02f8144cdf",
            "name": "Adrian Cosma",
            "hidden": false
        },
        {
            "_id": "66ead57361228b02f8144ce0",
            "name": "Ana-Maria Bucur",
            "hidden": false
        },
        {
            "_id": "66ead57361228b02f8144ce1",
            "name": "Emilian Radoi",
            "hidden": false
        }
    ],
    "publishedAt": "2024-09-17T11:03:46.000Z",
    "submittedOnDailyAt": "2024-09-19T17:17:31.279Z",
    "title": "RoMath: A Mathematical Reasoning Benchmark in Romanian",
    "submittedOnDailyBy": {
        "_id": "62716952bcef985363db8485",
        "avatarUrl": "/avatars/1208629f14f010dbc2cd94f3c30f9baf.svg",
        "isPro": false,
        "fullname": "JB D.",
        "user": "IAMJB",
        "type": "user"
    },
    "summary": "Mathematics has long been conveyed through natural language, primarily for\nhuman understanding. With the rise of mechanized mathematics and proof\nassistants, there is a growing need to understand informal mathematical text,\nyet most existing benchmarks focus solely on English, overlooking other\nlanguages. This paper introduces RoMath, a Romanian mathematical reasoning\nbenchmark suite comprising three datasets: RoMath-Baccalaureate,\nRoMath-Competitions and RoMath-Synthetic, which cover a range of mathematical\ndomains and difficulty levels, aiming to improve non-English language models\nand promote multilingual AI development. By focusing on Romanian, a\nlow-resource language with unique linguistic features, RoMath addresses the\nlimitations of Anglo-centric models and emphasizes the need for dedicated\nresources beyond simple automatic translation. We benchmark several open-weight\nlanguage models, highlighting the importance of creating resources for\nunderrepresented languages. We make the code and dataset available.",
    "upvotes": 1,
    "discussionId": "66ead57461228b02f8144d31"
}


Deprecation of tags list from /api and /api/v2 endpoints on April 1, 2021

Hi all
Do you believe the deprecation of the tags list from the api/v2 endpoints will result in any breaking changes when using prismic-javascript in a project?

Hey @LennartVandoorne, I'm sorry for the lack of attention your question received back then, usually we provide much quicker support for that kind of questions through our community forum: https://community.prismic.io
To answer your question this should have no impact for your if you weren't using the list of tags that comes from the /api/v2 endpoint. If you were you'll now have to use the new dedicated endpoint through the new helper: api.getTags() (shipped as part of v5.1)
Feel free to reopen if anything!


Remove leftover debugging statement and outdated FIXME from shell function

$FM_LNCLI getinfo was leftover debugging code from #1852.
The FIXME was because some variables internal to this function were exported and didn't need to be. Removed the exports but forgot to remove the FIXME.

Codecov Report
Patch coverage has no change and project coverage change: +0.05 :tada:

Comparison is base (8384c87) 63.54% compared to head (f88088c) 63.60%.

:mega: This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1856      +/-   ##
==========================================
+ Coverage   63.54%   63.60%   +0.05%
==========================================
  Files         136      136
  Lines       25901    25891      -10
==========================================
+ Hits        16460    16469       +9
+ Misses       9441     9422      -19

see 6 files with indirect coverage changes
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.


Convert to KITTI Format for Evaluation

Hello @skhadem, thank you so much for this implementation. I would like to ask how to convert the result back into KITTI format? I have a plan to reproduce the paper result. Could you give me a hint which values should be put for KIITI format?
Also I have problem to understand the label. as we can see from the development kit as follows.
#Values    Name      Description
----------------------------------------------------------------------------
   1    type         Describes the type of object: 'Car', 'Van', 'Truck',
                     'Pedestrian', 'Person_sitting', 'Cyclist', 'Tram',
                     'Misc' or 'DontCare'
   1    truncated    Float from 0 (non-truncated) to 1 (truncated), where
                     truncated refers to the object leaving image boundaries
   1    occluded     Integer (0,1,2,3) indicating occlusion state:
                     0 = fully visible, 1 = partly occluded
                     2 = largely occluded, 3 = unknown
   1    alpha        Observation angle of object, ranging [-pi..pi]
   4    bbox         2D bounding box of object in the image (0-based index):
                     contains left, top, right, bottom pixel coordinates
   3    dimensions   3D object dimensions: height, width, length (in meters)
   3    location     3D object location x,y,z in camera coordinates (in meters)
   1    rotation_y   Rotation ry around Y-axis in camera coordinates [-pi..pi]
   1    score        Only for results: Float, indicating confidence in
                     detection, needed for p/r curves, higher is better.

However when I see the sample of label, let say 000000.txt, the content is follows.
Pedestrian 0.00 0 -0.20 712.40 143.00 810.73 307.92 1.89 0.48 1.20 1.84 1.47 8.41 0.01
As we can see in here we only have 15 values instead of 16 values as in description. For evaluation is that necessary to provide the score in the last?
Thank you so much

I meet the same question ,Dou you slove it? @ftlong6666

I don not know how to get the score ，without the score ,I don not verity the result,can you tell me?thank you very much @skhadem


Cannot fetching update on rhel-based os

Hello!
I try run clair on fedora and centos 6(binary builded on fedora 21).
After start it have errors like -
2015-11-16 07:44:08.473519 I | updater/fetchers: fetching Ubuntu vulneratibilities
2015-11-16 07:44:08.473851 I | updater/fetchers: fetching Debian vulneratibilities
2015-11-16 07:44:08.474215 I | updater/fetchers: fetching Red Hat vulneratibilities
2015-11-16 07:46:11.600821 E | updater/fetchers: could not parse bzr branch output to get the revision number
2015-11-16 07:46:11.600855 E | updater: an error occured when fetching update 'Ubuntu': could not download requested ressource.

bzr versions 2.6.0 and 2.1.1.
Can you help fix it?

Debian and Centos vulneratibilities fetched correctly in result.
How I see problem only with get Ubuntu CVE list.

Hello,
Yeah, I think the output from bzr is different on your platform. You're having that error on both Fedora and CentOS, with bzr 2.6.0 and 2.1.1, right ?
I will try to reproduce it asap in order to fix it. Thanks.

Yes - on both.
Thanks!

Happens on Ubuntu 15.04 too

On Ubuntu 12.04 with bzr 2.5.1 too.

Unfortunately, I have not been able to reproduce the error yet. I just tried on Ubuntu 12.04 with bzr 2.5.1 and go1.4.2 and Clair has successfully pulled the Ubuntu vulnerabilities (it takes a long time tho as their repo is very, very slow).
What is the output of, let's say: bzr branch lp:ubuntu-cve-tracker /tmp/ubuntu-cve-tracker on these machines ?

I tracked it down, it's a locale issue. I'm working on a PR.

Great !

Output looks like -
bzr branch lp:ubuntu-cve-tracker /tmp/ubuntu-cve-tracker
You have not informed bzr of your Launchpad ID, and you must do this to
write to Launchpad or access private data.  See "bzr help launchpad-login".
Branched 10225 revision(s).

and on another
bzr branch lp:ubuntu-cve-tracker /tmp/ubuntu-cve-tracker
You have not informed bzr of your Launchpad ID, and you must do this to
write to Launchpad or access private data.  See "bzr help launchpad-login".
Ответвлены 10225 ревизий.

Thanks - I totally understand now.
Waiting for @lorenz, otherwise I'll fix it.

I have a patch ready, but I need to verify that it works as expected.

Patch is in #9, could the others try it? It works just fine for me.

That would be part of the fix.
However, I think that the regular expressions (https://github.com/coreos/clair/blob/f229083e1e52d2fea46cb7c69be05b5e5f32c680/updater/fetchers/ubuntu.go#L68) are still too specific. mrqwer88's bzr answers with Branched 10225 revision(s). with the s between parenthesis.
Should probably as well make them more flexible?

My fix should probably be enough as it pretty much guarantees how the strings will look as long as upstream doesn't change them. @mrqwer88 Can you try #9 and tell us if it works?

Yeah, my point is that I am afraid that revisions and revision(s) is not only a locale change. Let's see what @mrqwer88 has.

Unfortunatly with national locale on Fedora -
write to Launchpad or access private data.  See "bzr help launchpad-login".
Ответвлены 10225 ревизий.

problem reproduces with
git branch --list

patch-1

If set LC_ALL to POSIX output -
Branched 10227 revisions.

and work.
On centos 6 problem reproduced ( "Branched 10225 revision(s).")

It is most certainly enough:
$ locale
LANG=de_DE.UTF-8
LANGUAGE=de_DE:en
LC_CTYPE="de_DE.UTF-8"
LC_NUMERIC="de_DE.UTF-8"
LC_TIME="de_DE.UTF-8"
LC_COLLATE="de_DE.UTF-8"
LC_MONETARY="de_DE.UTF-8"
LC_MESSAGES="de_DE.UTF-8"
LC_PAPER="de_DE.UTF-8"
LC_NAME="de_DE.UTF-8"
LC_ADDRESS="de_DE.UTF-8"
LC_TELEPHONE="de_DE.UTF-8"
LC_MEASUREMENT="de_DE.UTF-8"
LC_IDENTIFICATION="de_DE.UTF-8"
LC_ALL=

With my environment patch:
$ LANG=C LANGUAGE=C locale
LANG=C
LANGUAGE=C
LC_CTYPE="C"
LC_NUMERIC="C"
LC_TIME="C"
LC_COLLATE="C"
LC_MONETARY="C"
LC_MESSAGES="C"
LC_PAPER="C"
LC_NAME="C"
LC_ADDRESS="C"
LC_TELEPHONE="C"
LC_MEASUREMENT="C"
LC_IDENTIFICATION="C"
LC_ALL=

This is essentially equivalent to LC_ALL=C, so if that problem is locale-related then that's enough. I tried to test on CentOS 6 (via Docker) but couldn't get bzr to run.

Looks like with path it run like for me
LANG=C bzr branch lp:ubuntu-cve-tracker /tmp/ubuntu-cve-tracker2
You have not informed bzr of your Launchpad ID, and you must do this to
write to Launchpad or access private data.  See "bzr help launchpad-login".
Ответвлены 10227 ревизий.

With LANGUAGE must work -
LANGUAGE=C bzr branch lp:ubuntu-cve-tracker /tmp/ubuntu-cve-tracker1
You have not informed bzr of your Launchpad ID, and you must do this to
write to Launchpad or access private data.  See "bzr help launchpad-login".
Branched 10227 revisions.

On centos 6 problem with "revisions." vs " revision**(s)**."

@mrqwer88 How did you get bzr running on CentOS 6? For me it crashes with
TypeError: readline() takes exactly 1 argument (2 given)

From epel -
LANGUAGE=C yum info bzr
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: ftp.hosteurope.de
 * epel: mirror.nsc.liu.se
 * epel-debuginfo: mirror.nsc.liu.se
 * epel-source: mirror.nsc.liu.se
 * extras: ftp.hosteurope.de
 * updates: ftp.hosteurope.de
Installed Packages
Name        : bzr
Arch        : x86_64
Version     : 2.1.1
Release     : 2.el6
Size        : 23 M
Repo        : installed
From repo   : base
Summary     : Friendly distributed version control system
URL         : http://www.bazaar-vcs.org/
License     : GPLv2+
Description : Bazaar is a distributed revision control system that is powerful, friendly,
            : and scalable.  It is the successor of Baz-1.x which, in turn, was
            : a user-friendly reimplementation of GNU Arch.

Up to bzr 2.5 the old string 'revision(s)' is used, from 2.5 on 'revisions' is used. So we need to change the regex.

May be more simple use -
bzr revno /tmp/ubuntu-cve-tracker2
10227

for get revision number?

I am not against that, it is actually used here, we could use that everywhere.

It should fix for everyone, please re-open if it is not the case.

Thanks a lot!
Now it work good for me.
2015-11-17 08:32:58.357867 I | updater: updating vulnerabilities
2015-11-17 08:32:58.357916 I | updater/fetchers: fetching Ubuntu vulneratibilities
2015-11-17 08:32:58.358028 I | updater/fetchers: fetching Debian vulneratibilities
2015-11-17 08:32:58.359670 I | updater/fetchers: fetching Red Hat vulneratibilities
2015-11-17 08:35:59.727436 I | updater: update finished


[BUG]: AzureStaticWebApp@0 throws "Unable to locate executable file: 'bash' " on self-hosted agent on windows

New issue checklist

[X] I searched for existing GitHub issues
[X] I read pipeline troubleshooting guide
[X] I checked how to collect logs

Task name
AzureStaticWebApp@0
Task version
0.228.0
Issue Description
When running this task it throws:
Unable to locate executable file: 'bash'. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also verify the file has a valid extension for an executable file.
This running inside a release-pipeline and not inside a build-pipeline
Environment type (Please select at least one enviroment where you face this issue)

[X] Self-Hosted
[ ] Microsoft Hosted
[ ] VMSS Pool
[ ] Container

Azure DevOps Server type
dev.azure.com (formerly visualstudio.com)
Azure DevOps Server Version (if applicable)
No response
Operation system
Windows 10
Relevant log output
2024-01-16T07:24:33.3949780Z ##[section]Starting: Deploy to Static Web App:
2024-01-16T07:24:33.4125550Z ==============================================================================
2024-01-16T07:24:33.4126107Z Task         : Deploy Azure Static Web App
2024-01-16T07:24:33.4126484Z Description  : [PREVIEW] Build and deploy an Azure Static Web App
2024-01-16T07:24:33.4126822Z Version      : 0.228.0
2024-01-16T07:24:33.4127132Z Author       : Microsoft Corporation
2024-01-16T07:24:33.4127476Z Help         : https://aka.ms/swadocs
2024-01-16T07:24:33.4127874Z ==============================================================================
2024-01-16T07:24:36.2903179Z ##[error]Error: Unable to locate executable file: 'bash'. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also verify the file has a valid extension for an executable file.
2024-01-16T07:24:36.2920285Z ##[warning]Unable to delete env file
2024-01-16T07:24:36.3007707Z ##[section]Finishing: Deploy to Static Web App:

Full task logs with system.debug enabled

 [REPLACE THIS WITH YOUR INFORMATION]

Repro steps
steps:
- task: AzureStaticWebApp@0
  displayName: 'Deploy to Static Web App:'
  inputs:
    app_location: '$(System.DefaultWorkingDirectory)/web'
    output_location: wwwroot
    skip_app_build: true
    skip_api_build: true
    is_static_export: true
    verbose: true
    azure_static_web_apps_api_token: '...'

Im still getting this error on 0.243.1
Starting: AzureStaticWebApp
Task         : Deploy Azure Static Web App
Description  : [PREVIEW] Build and deploy an Azure Static Web App
Version      : 0.243.1
Author       : Microsoft Corporation
Help         : https://aka.ms/swadocs
##[error]Error: Unable to locate executable file: 'bash'. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also verify the file has a valid extension for an executable file.
##[warning]Unable to delete env file
Finishing: AzureStaticWebApp

I'm experiencing the same issue.
For future readers: I have worked around this issue by creating a new build agent running in Windows Subsystem for Linux (WSL) and then running the task there.
First install WSL by running PowerShell as administrator:
wsl --install

Now reboot your system and continue:
wsl --install -d Ubuntu
wsl --set-default Ubuntu
wsl
mkdir agent ; cd agent
./config.sh
./run.sh

Then, add in your azure-pipelines.yml under the relevant job where you call AzureStaticWebApp@0:
  pool:
    name: Default
    demands:
    - Agent.Name -equals AGENT_NAME

where AGENT_NAME is the name you provided when running ./config.sh

Well, thats one way i guess, but this really needs to be fixed properly sonit just works with a basic install of the agent in windows.
Its not a lot to ask

How is this still an issue?
Starting: AzureStaticWebApp
==============================================================================
Task         : Deploy Azure Static Web App
Description  : [PREVIEW] Build and deploy an Azure Static Web App
Version      : 0.247.1
Author       : Microsoft Corporation
Help         : https://aka.ms/swadocs
==============================================================================
##[error]Error: Unable to locate executable file: 'bash'. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also verify the file has a valid extension for an executable file.
##[warning]Unable to delete env file
Finishing: AzureStaticWebApp


bugfix time formatting

ref: https://github.com/KjellKod/g3log/issues/113

Thanks @cstamatopoulos for the testing


testing/mm: repair the memory leak question when realloc failed.

Summary
Repair the memory leak question when realloc failed.
realloc return NULL if failed, so we have to use a local variable to store the return value to avoid the missing of old memory pointer.
Testing
mm test pass, no memory leak.

@xiaoxiang781216


Always recreate popper instance when popperNode changes

In our codebase there's a subset of tooltips that do not work properly. Their tooltips work correctly on the first hover but on subsequent hovers only appear after you move your mouse over the element and then away from it.
After some debugging I traced the problem to the !this.popperNode condition inside getPopperStyle(); replacing it with false made the tooltip appear properly on all hovers. That does not seem like a proper fix, however, so I figured updating popper instance every time after popperNode updates would work, and that it does.
As far as I understand this change results in correct behavior, since Popper instance stores a reference to the popperNode and if the node updates, so should the instance?

@FezVrasta it would be awesome if you could publish a bugfix version containing this fix!


TLS 1.3 support

I've started looking at implementing this.
Looks like the first thing to do is to replace SSL_CTX_add_server_custom_ext with SSL_CTX_add_custom_ext on OpenSSL >= 1.1.1. This will allow us to drop the SSL_EXT_TLS1_2_AND_BELOW_ONLY flag.

Done in 8b533971f7450639879f382e5fc9ea61eba009db


Add some user-changeable settings

Include some settings such as maximum recent file paths to store, line wrapping, closing all tabs, line highlighting, line numbering, language, and theme.

This should be changeable in the preferences (#15) window. Doesn't have to be in the preferences window for this to be completed. It should just be available.


Fix #822

:umbrella: The latest upstream changes (presumably 1dd8308) made this pull request unmergeable. Please resolve the merge conflicts.

:umbrella: The latest upstream changes (presumably #892) made this pull request unmergeable. Please resolve the merge conflicts.

:umbrella: The latest upstream changes (presumably 97020cb) made this pull request unmergeable. Please resolve the merge conflicts.


V1.1.0

Great package for yarn workspaces, but I had some issues with ES6 import. I ended up cleaning up & updating the codebase a bit.
Let me know if I should make any other changes.

Coverage remained the same at 100.0% when pulling e2c1b64551151cb5ca6ec36d7233e5e757cf4832 on webberwang:v1.1.0 into c0eaf720c0bce9172e6e0bcf8b8f431b9942026a on shannonmoeller:master.

@shannonmoeller can you check it?


HashidAutoField and REST post requests

Hi,
in Django Rest Framework, I normally don't have to declare id fields explicitly. When I post data, a new instance is created. Sadly, this does not work if I make my model id a HashidAutoField:
id = HashidAutoField(primary_key=True)

In the ModelSerializer, I have to declare id explicitly as well:
id = HashidSerializerCharField(source_field='api.project.id')

When I now send a post, the server responds with an ApiError:
id: This field is required.

Naturally I would not send an id, for it is a post message, intended to create a new object.
And I need the id to automatically created by the database, as usual. How is this supposed to work?

My fault, sorry. It was quite late last night, shouldn't work that hours ;-)
Forgot to set read_only=True on the serializer field:
id = HashidSerializerCharField(source_field='api.project.id', read_only=True)


"TypeError: 'WindowsPath' object is not subscriptable" HTML build does not working.

I tried to build project as html.
pygbag --html main.py

but it didn't work with this error:
Traceback (most recent call last):
  File "C:\Users\petty\AppData\Local\Programs\Python\Python39\lib\runpy.py", line 197, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "C:\Users\petty\AppData\Local\Programs\Python\Python39\lib\runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "C:\Users\petty\AppData\Local\Programs\Python\Python39\Scripts\pygbag.exe\__main__.py", line 7, in <module>
  File "C:\Users\petty\AppData\Local\Programs\Python\Python39\lib\site-packages\pygbag\app.py", line 483, in main
    asyncio.run(main_run(app_folder, mainscript))
  File "C:\Users\petty\AppData\Local\Programs\Python\Python39\lib\asyncio\runners.py", line 44, in run
    return loop.run_until_complete(main)
  File "C:\Users\petty\AppData\Local\Programs\Python\Python39\lib\asyncio\base_events.py", line 647, in run_until_complete
    return future.result()
  File "C:\Users\petty\AppData\Local\Programs\Python\Python39\lib\site-packages\pygbag\app.py", line 340, in main_run
    await pack.archive(f"{app_name}.apk", app_folder, build_dir)
  File "C:\Users\petty\AppData\Local\Programs\Python\Python39\lib\site-packages\pygbag\pack.py", line 102, in archive
    html_embed(target_folder, packlist, apkname[:-4] + ".html")
  File "C:\Users\petty\AppData\Local\Programs\Python\Python39\lib\site-packages\pygbag\html_embed.py", line 127, in html_embed
    dump_fs(html, target_folder, packlist)
  File "C:\Users\petty\AppData\Local\Programs\Python\Python39\lib\site-packages\pygbag\html_embed.py", line 37, in dump_fs
    vfs_name = topack[1:].replace("-pygbag.", ".")
TypeError: 'WindowsPath' object is not subscriptable

My Env:

Windows11 22H2
Python==3.9.13
pygbag==0.7.2

--html is for pygame-script - not well tested - and does not support packing a game that is not 100% web certified it:

need posix filepath
need no MP3/WAV
need no BMP
no non utf-8 encoding on source filesystem ( may be a problem on non posix system )

if you could zip and upload the whole folder somewhere ( eg https://drop.infini.fr/  ), it could help to debug and add usefull error messages, thank you in advance.
if you want to publish a complex game, use --archive instead you will get a web.zip suitable for itch.io or to unpack in your webserver (prefer using an iframe).

--html is for pygame-script - not well tested - and does not support packing a game that is not 100% web certified it:

need posix filepath
need no MP3/WAV ( and no presence  of them) only ogg (use audacity to convert)
need no BMP ( and no presence of them)
no non utf-8 encoding on source filesystem ( may be a problem on non posix system )

if you could zip and upload the whole folder somewhere ( eg https://drop.infini.fr/ ), it could help to debug and add usefull error messages, thank you in advance.
if you want to publish a complex game, use --archive instead you will get a web.zip suitable for itch.io or to unpack in your webserver (prefer using an iframe).

I have the same issue when using <Python -m pygbag --html main.py>.  I have upload all files to https://drop.infini.fr/ . here is the link : https://drop.infini.fr/r/sWv5jqntaf#VrNNs5NUnlwC//IIbdneMgChT24ElK1H1hCZDKmV6BQ=
It is worth mentioning that: <Python -m pygbag main.py> can run perfectly

@songyuyx thanks but i had no problem packing your game to .html
note that "100% web certified" means no venv and no extra file lying around ie a folde with only :
.
├── background_music.ogg
├── background.png
├── bullet.png
├── enemy_hit_sound.ogg
├── enemy_ship.png
├── explosion.png
├── gameover.jpg
├── main.py
└── player_ship.png


python312Packages.pyblu: 0.4.0 -> 0.5.2

Description of changes
Diff: https://github.com/LouisChrist/pyblu/compare/refs/tags/v0.4.0...v0.5.2
Changelog:
https://github.com/LouisChrist/pyblu/releases/tag/v0.5.0
https://github.com/LouisChrist/pyblu/releases/tag/v0.5.1
https://github.com/LouisChrist/pyblu/releases/tag/v0.5.2

Things done

Built on platform(s)

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

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

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

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

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

[x] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

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

5 packages built:

home-assistant-component-tests.bluesound
python311Packages.pyblu
python311Packages.pyblu.dist
python312Packages.pyblu
python312Packages.pyblu.dist


'<EMAIL_ADDRESS>is not in the npm registry

Cannot install v0.8.0-beta.0 via
npm install -g @saltcorn/cli@latest --unsafe

Hi @glutamate , so far, the package is still not in the npm registry 🤔

this is now definitely fixed @globalcow

My upgrade to 0.8.0-beta.2 fails with an error of a missing relation
[12944]: Tenant public running migration *** [12944]:     error: relation "public.Professional Creators" does not exist [12944]:     Code: 42P01 Nov 25 13:50:48 ** systemd[1]: saltcorn.service: Main process exited, code=exited, status=1/FAILURE
I have a table with the name Professional Creators

I think there are problem with space in table name. Quick workaround is to rename table and check names related other database objects like constrains, etc.

I tried to create table "Professional creators".

In database this table looks like

Currently Saltcorn stores only displayed name of table and uses internal logic to transform it to sql name of table that removes spaces from displayed name when Saltcorn accesses to table.

i think i just fixed this with https://github.com/saltcorn/saltcorn/commit/81da5996ef0748a7d053571f6863c32806647c2f @anzacloud @AleksandrSokolov - hopefully next release will fix your migration

As the original issue is solved, I will close this issue. @anzacloud please open a new issue if your problem persists.

@anzacloud please try 0.8.0-beta.3, just released


Replace vm tests with native tests

Unlike NixOS services, process-compose programs created by services-flake do not mutate outside of dataDir, so we gain very little from the isolation provided by VMs.
Let's switch to running these tests natively, which gets us macOS support (resolving #14), in addition allowing us to use Github Actions for CI (#11).

Note: this is mostly upstream work https://github.com/Platonic-Systems/process-compose-flake

Another approach
testScript can itself be a service that depends on the service that it testing. The testScript service should only start in CI.

testScript can itself be a service that depends on the service that it testing. The testScript service should only start in CI.

Good idea! Once this PR is merged it will be super easy to run tests within process compose: once test process completes, other processes will be stopped and PC will exit with the code returned by the test process.

I have been thinking of different ways to implement this.
I have an idea and that involves having a testScript option for every service (resolves #33).
{
  testScript = lib.mkOption {
    type = types.nullOr (types.functionTo types.package);
    default = null;
    description = ''
      A package that contains a script to test the database.
      The script will be run after the database has been initialized.
    '';
    example = lib.literalExpression
    ''
      package: pkgs.writeShellApplication {
        name = "test-postgres";
        text = "echo 'SELECT version();' | ${package} -h <IP_ADDRESS>";
      };
    '';
  };
}

The option will be used to create a process that will execute the testScript and end with whatever exit code the script returns (courtesy exit_on_end).
{
  "${name}-test" = lib.mkIf (config.testScript != null) {
    command = config.testScript config.package;
    depends_on."${name}".condition = "process_healthy";
    availability.exit_on_end = true;
  };
}

All looks good until we have more than one process that has a testScript, in that case whichever script executes first will be ran and all the other processes are immediately shutdown because exit_on_end waits for no one. I was thinking of a possible way to go around this by having a parent process that will use exit_on_end and this process will depend on all the testScripts. The parent process will have to somehow return the exit code 0 if all the testScripts ran successfully or the non-zero exit code of the first process that fails. I can't think of any way this can be done, any suggestions?


NewType variants seems superfluous

In VariantFormat and ContainerFormat, there is a separation between NewTypeStruct(Box<Format>) and TupleStruct(Vec<Format>). As far as I can see, in most cases the distinction is not really important, and it serves to increase the complexity of code dealing with these format structs.
For example I'm creating a proc macro right now to derive a trait that returns the Format of a type (because serde-reflection is not yet able to always find the right format by just relying on serde - my effort is meant as complementary, and relies on the data structures of serde-reflection), ... and syn's model does not make the same distinction: https://docs.rs/syn/1.0.23/syn/enum.Fields.html.
I would suggest removing NewTypeStruct and let any users of the library instead just check the length of the Vec in TupleStruct to see whether it's a newtype.

Good question. I actually thought about this quite a bit.

The documentation of Serde is very clear about distinguishing the different flavors of structs and variants. So there's that.
This distinction has no consequence for bincode but other encodings may rely on it. For instance, JSON does. In theory, this means that Serde users may decide to implement Serialize for a NewTypeStruct by hand and serialize it as a Struct with one field in order to achieve a different serialization.
For binary formats like bincode (arguably a more compelling use case for Serde-reflection than self-describing formats), I found that the distinction between a NewTypeStruct and a Struct with one field could also prove useful in the future to control code generation. Concretely, a NewTypeStruct could translate more naturally as a type alias in many languages (e.g. a using statement in C++11). If someone does not want this, then they can change the Serde format to be a struct with one field.

Good points. I didn't realize that it's also like that in the Serde model.


migrations: Enforce evaluation order in 0306 WHERE clause

Depending on PostgreSQL’s query plan, it was possible for the value condition to be evaluated before the field_type condition was checked, leading to errors like
psycopg2.errors.InvalidDatetimeFormat: invalid value "stri" for "YYYY"
DETAIL:  Value must be an integer.

Testing plan: Tested the new statement locally and verified with the original reporter.

Merged, thanks @andersk!

Merged, thanks @andersk!


Change org.apache.cxf log level to ERROR

The previous change to “SEVERE” doesn’t work, because that is not a
logbook logging level.
In the stdout of Brooklyn, we were still getting:
10:55:48,833 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting level of logger [org.apache.cxf] to DEBUG

With this change, we get:
10:58:19,047 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting level of logger [org.apache.cxf] to ERROR

Looks good, merging.


Add support for reading SUMCON simulation models

Shoda-san's files:
TypeA_wHL
MakeSSModels

For now, importing SUMCON models isn't really that useful considering the current workflow of Kontrol. Let's put this aside for now.


Corrected Spelling of Jupyter

Hi @bradleyfay, I'm your friendly neighborhood Azure Pull Request Bot (You can call me AZPRBOT). Thanks for your contribution!

This seems like a small (but important) contribution, so no contribution license agreement is required at this point. Real humans will now evaluate your PR.

TTYL, AZPRBOT;

@bradleyfay : Thanks for your contribution to the Azure documentation! The author, @bradsev, has been notified to review your proposed change.

#sign-off


Unable to fetch user Roles

I am trying to get an array of the Roles a user belongs to, and failing miserably.
I have tried the following call, both on the client and the server:
var Roles = Roles.getRolesForUser(userId);

But i always get the following error:
Exception from sub socialPosts id sPK5J8DMx5Ss9kNbt { stack: 'TypeError: Cannot call method \'getRolesForUser\' of undefined\n    at [object Object].Meteor.methods.fetchRoles

I have tried passing in both a user object and users ID and neither seem to work, i have checked with Node Inspector and both the user object and the userID are valid and not null when the Role.getRolesForUser is called.
Any help greatly appreciated.
  If you use Roles as your own variable then you are overwriting the Roles variable which gives access to the roles package.  :-)


[enhancement]: Google Colab integration for SD2

Is there an existing issue for this?

[X] I have searched the existing issues

Contact Details
<EMAIL_ADDRESS>What should this feature add?
Can't install on Google Colab because of pypatchmatch error, seems like pypatchmatch needs python 3.9 and colab runs on 3.8, is there away to go around this?? I'd love to test InvokeAI on colab since i don't have a NVIDIA GPU on local machine
Alternatives
No response
Aditional Content
No response

probably inside codelab you can create conda env with python 3.9, i think

oh actually check this one, its in russian/slavic language but someone manage to get it working 1 week ago- https://colab.research.google.com/github/peaashmeter/invoke-ai-gui-colab/blob/main/invoke_ai_gui_colab.ipynb

I was wondering if this was ever going to be integrated into Invoke-AI repo itself? It would be great if there was a "colab" button right on the Readme.md to start Invoke-AI.

I was wondering if this was ever going to be integrated into Invoke-AI repo itself? It would be great if there was a "colab" button right on the Readme.md to start Invoke-AI.

I absolutely agree with this smart person :)

I was wondering if this was ever going to be integrated into Invoke-AI repo itself? It would be great if there was a "colab" button right on the Readme.md to start Invoke-AI.

the colab version in this repo was never updated 😥

@CptanPanic take a look at this notebook. Should be working with all features to date for InvokeAI


Reference copy of the moderation indexer.

This is a reference copy of the moderation indexer. The running code at https://near.org/dataplatform.near/widget/QueryApi.App?selectedIndexerPath=dataplatform.near/moderation&view=editor-window is the source of truth.

I intentionally didn't modularize it into many functions yet but will when I add the next features.

can we put this indexer inside of a moderation folder?

can we put this indexer inside of a moderation folder, so later we can add the feed folder for the feed-indexer

Yes, I actually meant to do that. I'm adding the social_feed and verifications indexers in more PRs.


Detection of the UI5 is not working correctly

The extension icon is active even the page didn't contain any ui5 framework.
The problem may be related to the Chrome update or the way we detect the framework.

This issue should now be fixed.


Use Path in raw.filenames and epochs.filename

Closes #12840
Attempting to use paths inside of raw.filenames and epochs.filename attributes.
Seems to work except for IO 'file-likes' with FIFF. It was a surprise to me that this was even possible, so I'm having a bit of an hard time getting this to work. Ideally, a file-like should not be listed in the filenames attribute which should then be set to None. It isn't informative to display "File-Like" or the repr(...). At the same time, I don't understand how preload works with a file-like object, since it needs the file-like object in raw.filenames to load the segments when preload=False.

I'll pick this up tomorrow, let's see how much stuff breaks. I actually went further that my initial approach where now if _fiff_get_fid receives a str instead of Path, it will issue a warning. It should let me track down and remove a good portion of the existing conversion Path -> str which are left from #11473 and others. Then we can remove the warning and just cast anyway for safety.

Just out of curiosity, what happens with old code that may be assigning values to raw._filenames directly?

I think the only cases where we should worry about this are in MNE itself. End users should not mess with private attributes like this. And if they do, they should expect things to break silently in unpredictable ways at any time. If we start trying to protect against this, we end up in an unsustainable rabbit hole and break a policy/contract we've always tried to follow.

I think the only cases where we should worry about this are in MNE itself. End users should not mess with private attributes like this. And if they do, they should expect things to break silently in unpredictable ways at any time. If we start trying to protect against this, we end up in an unsustainable rabbit hole and break a policy/contract we've always tried to follow.

I agree, and I'm OK with my code breaking. However, just to let you know why I directly set this attribute, it's because I find setting up a new reader by adding a new class a bit cumbersome. I mostly do the file-specific stuff and then create a RawArray, so maybe adding a public setter in that class might be an option?

I could use some help with the 3 remaining fixes to add before removing the explicit warnings in the FIFF I/O. I am not familiar with the code and functionalities of those 3 parts, and it will take me a lot of time to fix those with confidence:

[ ] FIFF I/O from BytesIO and other IO objects. I had no idea this was even a feature, it seems like the IO object(s) lived in the filenames attribute(s) which is incompatible with the idea of keeping only Path object in this attribute.
[ ] MNE Report was discovering files recursively using some custom os.walk code and global patterns. I replaced this function with a simpler Path.rglob, which should have fix this part. However, I am not familiar with the report code, I would appreciate a thorough review of this part.
[ ] Coregistration GUI, it uses traitlets to enforce types, including the _info_file = Unicode() here https://github.com/mne-tools/mne-python/blob/670330a1ead288f11cc3ffd5ca9d65136ca55ccd/mne/gui/_coreg.py#L158
I have never used traitlets to enforce types, and the Unicode() traits yields a str, which by default if info_file=None is an empty string. I could by-pass the problem by casting to str, but I thought this PR might be the opportunity to also improve the handling of paths in the coreg GUI.

FIFF I/O from BytesIO and other IO objects. I had no idea this was even a feature, it seems like the IO object(s) lived in the filenames attribute(s) which is incompatible with the idea of keeping only Path object in this attribute.

For this I made this suggestion a bit above:

[larsoner:] naively I would expect/hope this file-like to live in _raw_extras rather than filenames, which should instead try just to be <file_like>.name if it exists (like it does for built-in open()-ed files) or None if it doesn't.

Have you tried this and/or do you want me to try?

I would appreciate a thorough review of this part.

Sure I'll pay close attention to it once things are green!

I could by-pass the problem by casting to str, but I thought this PR might be the opportunity to also improve the handling of paths in the coreg GUI.

Having worked with the traits stuff I would suggest doing it in a different PR unless you're prepared for some potential pain. The change sounds easy but sometimes changing stuff in there is challenging. Happy to review in the same PR if you're up for it though

I think I got both the report and coreg GUI working, traitlets wasn't that bad.. :crossed_fingers:

For this I made this suggestion a bit above:

naively I would expect/hope this file-like to live in _raw_extras rather than filenames, which should instead try just to be <file_like>.name if it exists (like it does for built-in open()-ed files) or None if it doesn't.

Have you tried this and/or do you want me to try?

Could you try it @larsoner? I think that's the last blocker for the PR and it isn't straightforward to me.

Okay pushed a fix

Argh I broke mne/io/fiff/tests/test_raw_fiff.py::test_split_numbers. Feel free to look or I'll fix it tomorrow

Failures on this and other PRs are just https://github.com/scipy/scipy/issues/21623 and can be safely ignored (I think we can trust Windows pip-pre to continue being picky while the Linux pip-pre job fails in the dependencies step)

We are getting an error in mne-bids that may be related to this: https://github.com/mne-tools/mne-bids/actions/runs/11081048651/job/30792323679#step:16:416
It seems to be related to the list of raws that is being created here:
https://github.com/mne-tools/mne-python/blob/5492174fc0e64762056b5b99a330129ca6eefca4/mne/io/fiff/raw.py#L96-L116
with the eventual error being:

copy.deepcopy(raws[0].info),
E   IndexError: list index out of range

@mscheltienne is this expected behavior that I get an error here (on mne main)?
# %%
from pathlib import Path
import numpy as np
import mne

# create a dummy raw
times = np.linspace(0, 1, sampling_freq, endpoint=False)
sine = np.sin(20 * np.pi * times)
cosine = np.cos(10 * np.pi * times)
data = np.array([sine, cosine])
info = mne.create_info(
    ch_names=["10 Hz sine", "5 Hz cosine"], ch_types=["misc"] * 2, sfreq=sampling_freq
)
raw = mne.io.RawArray(data, info)

# I want to set raw.filenames
a = Path.cwd() / "IDoNotExist.jpg"
b=(a,)

# error: TypeError: 'tuple' object does not support item assignment
raw.filenames = b

# this works, but IDoNotExist.jpg does not exist, so should it not error?
raw._filenames = b


Possible bug in TimeDistributedDense

I think using the step function that uses the Theano rnn function may cause a crash sometimes.
I experienced many crashes when used a relu activation and when increasing the number of hidden units in the TimeDistributedDense layer (e.g. 128 -> 512)
I solved it simply by replacing the 'rnn' function with my implementation.
Did anyone encounter such a problem?

Are you on windows?

Yes
On 1/6/16, Fariz Rahman<EMAIL_ADDRESS>wrote:

Are you on windows?

Reply to this email directly or view it on GitHub:
https://github.com/fchollet/keras/issues/1413#issuecomment-169433829

I guessed so. You  won't find any help here..Keras is pure python  so it can not crash anything. Theano for windows is buggy. I too use windows and it crashes when using convolution layers. Now I use Keras inside a linux VM and everything works fine. See #1274

Does linux VM support Theano with GPU?

Forgot to mention that.. No it doesn't.

OK, update:
The problem was when using
TimeDistributedMerge(mode = 'mul')
I have got the output:
<<!! BUG IN FGRAPH.REPLACE OR A LISTENER !!>> <type 'exceptions.TypeError'> ('The type of the replacement must be compatible with the type of the original Variable.', Prod{axis=[1], acc_dtype=float64}.0, Elemwise{mul,no_inplace}.0, TensorType(float32, matrix), TensorType(float64, matrix), 'local_sum_prod_mul_by_scalar') local_sum_prod_mul_by_scalar
ERROR (theano.gof.opt): Optimization failure due to: local_sum_prod_mul_by_scalar
ERROR:theano.gof.opt:Optimization failure due to: local_sum_prod_mul_by_scalar
ERROR (theano.gof.opt): node: Prod{axis=[1], acc_dtype=float64}(Elemwise{mul,no_inplace}.0)
ERROR:theano.gof.opt:node: Prod{axis=[1], acc_dtype=float64}(Elemwise{mul,no_inplace}.0)
ERROR (theano.gof.opt): TRACEBACK:
ERROR:theano.gof.opt:TRACEBACK:
ERROR (theano.gof.opt): Traceback (most recent call last):
File "C:\Oren\WinPython-64bit-<IP_ADDRESS>\python-2.7.10.amd64\lib\site-packages\theano-0.7.0-py2.7.egg\theano\gof\opt.py", line 1814, in process_node
fgraph.replace_all_validate(repl_pairs, reason=lopt)
File "C:\Oren\WinPython-64bit-<IP_ADDRESS>\python-2.7.10.amd64\lib\site-packages\theano-0.7.0-py2.7.egg\theano\gof\toolbox.py", line 306, in replace_all_validate
fgraph.replace(r, new_r, reason=reason, verbose=False)
File "C:\Oren\WinPython-64bit-<IP_ADDRESS>\python-2.7.10.amd64\lib\site-packages\theano-0.7.0-py2.7.egg\theano\gof\fg.py", line 564, in replace
str(reason))
TypeError: ('The type of the replacement must be compatible with the type of the original Variable.', Prod{axis=[1], acc_dtype=float64}.0, Elemwise{mul,no_inplace}.0, TensorType(float32, matrix), TensorType(float64, matrix), 'local_sum_prod_mul_by_scalar')

NVIDIA released Windows VM that support GPU. I don't know the constraint.
Maybe it need a dedicated GPU not shared. I never tried this or heard
anyone tring it. Just in case it help.
On Thu, Jan 7, 2016 at 7:46 AM, Fariz Rahman<EMAIL_ADDRESS>wrote:

Forgot to mention that.. No it doesn't.
—
Reply to this email directly or view it on GitHub
https://github.com/fchollet/keras/issues/1413#issuecomment-169654510.

Specifically, using theano.tensor.prod cause the error.
Replacing it with my implementation solved the problem, i did not try to figure out what exactly the type of this problem but it seems that Theano failed to optimized something.

To sum up, there are two issues.
1.
If i used TimeDistributedDense with a large number of hidden units (say 512) i have got nan in the loss (binary crossentropy). This is solved by replacing the call to rnn with my implementation.
2.
When using TimeDistributedMerge(mode = 'mul') after TimeDistributedDense i have the above error. This is solved by replacing the 'mul' case with my implementation.

Can you post your implementation?

This is an adhoc one. Since i want to train on pairs, it reduces to a specific case, e.g. i replaced
elif self.mode == 'mul':
s = K.prod(X, axis=1)
return s
with:
elif self.mode == 'mul':
s = X[:, 0, :] * X[:, 1, :]
return s
Is that clear?

Yep.


Stacker News onion service not working

When opening https://stacker.news in Tor Browser, it redirects to http://snsnsnya6h3ot563f3p566wuhfoklkg5f62hokdlaqzcaub3gf4xlxyd.onion/, which is not working currently.

Is this still happening for you? I just tried it and it seemed to work successfully for me.

It does appear to be back up (yay!) but it goes down enough that we should probably find a fix

Yes, it works now.

Doesn't work again.

Ideally we should run Tor as a microservice with copilot rather than colocating Tor with the web server.


chore(deps): update module golang.org/x/mod to v0.22.0

This PR contains the following updates:

Package
Type
Update
Change

golang.org/x/mod
require
minor
v0.21.0 -> v0.22.0

Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.

[ ] If you want to rebase/retry this PR, check this box

This PR has been generated by Renovate Bot.

Pull Request Test Coverage Report for Build<PHONE_NUMBER>5
Details

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+0.2%) to 63.26%

Totals

Change from base Build<PHONE_NUMBER>3:
0.2%

Covered Lines:
1238

Relevant Lines:
1957

💛  - Coveralls


[BEAM-4303] Enforce ErrorProne analysis in examples project

Enforces the ErrorProne analysis on examples project
Fixes the issues in order to enable failOnWarning

R: @swegner @iemejia

@swegner is there a way to mark ignores at the module level ?
I think we should use that only in this case StringSplitter
We should not expose guava's Splitter in the most basic examples, e.g. Wordcount/WindowedWordcount (because those are commonly copy pasted) and using the @SuppressWarnings("StringSplitter") also does not seem natural for a baginner example too so better do it at the module level.

Great point. I can update the string splits to have a limit of -1 instead and that will pass ErrorProne then.

@iemejia currently we have a global set of excludes in the build_rules.gradle applyJavaNature() block. We could add a parameter to the JavaNatureConfiguration such that modules can add their own, but my preference is to avoid that until we really need it.
I agree with making examples simple and avoiding a Guava dependency, but also note that examples tend to get copy-pasted many times, so we should try to avoid known anti-patterns if possible. As @cademarkegard points out, the StringSplitter ErrorProne page also suggests using String.split(String, int) with a limit of -1.

Just one comment above, then everything else LGTM (looks good to me).

@iemejia @swegner I've addressed all feedback and tests pass

@iemejia @swegner I've addressed the feedback and the tests pass. Please take a look when you have a chance.

LGTM.
I'll leave it to @iemejia to merge in case he has any other feedback.

LGTM. Thanks @cademarkegard !


Does  async() expire work?

Bug Report

I can successfully create a key but after also setting expiration I get after TTLing a return of -1 which I think indicates that the key has no expiration time.

Stack trace
// your stack trace here;

Input Code

try {
getRedisConnection().async().expire(getRedisKey(cluster), getCacheExpiry());
} catch (Exception e) {
logger.error("Redis expire error: "+e.getMessage());
}
//(Note that getRedisKey uses a string argument to derive the key and getCacheExpiry() returns a long. //There is no error from the call.)
I get after TTLing a return of -1 which I think indicates that the key has no expiration time.

Input Code
// your code here;

Expected behavior/code

Environment

Lettuce version(s): [e.g. 5.0.0.RELEASE, 4.2.2.Final]
Redis version: [e.g. 4.0.9]

Possible Solution

Additional context

If you would like us to spend some time helping you to diagnose the problem, please spend some time describing it and, ideally, providing a minimal sample that reproduces the problem.

I am simply asking if the API works for setting expiration for a key. I suspect I might be trying to set a timeout in a slave node -- if that does not work, is there a status returned indicating that?

Any reason it should not work?
Expire is considered a write command so with Redis Cluster, it's routed to the master node serving the particular key.

should i connect to the master specifically? i am given a choice of 3 nodes
(I read this from a JSON array) and am trying to choose one at random. I
was thinking that when i write to a slave, it fails and that I should only
be reading from slaves (or the master) but writing exclusively to the
master, including setting expiration.
this is legacy code and i am not sure how things are configured; i only
realized there were slave and master nodes when i tried using redis-api and
it did not allow me to set expiration on a read-only node.
i sure appreciate the help of the author of the code and apologize for not
providing more detail at first but i am extremely new to Redis.
On Fri, Jul 12, 2019 at 7:40 AM Mark Paluch<EMAIL_ADDRESS>wrote:

Any reason it should not work?
Expire is considered a write command so with Redis Cluster, it's routed to
the master node serving the particular key.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_lettuce-2Dio_lettuce-2Dcore_issues_1079-3Femail-5Fsource-3Dnotifications-26email-5Ftoken-3DAMS4A77RHDIJY6GGJNBW6S3P7CJVXA5CNFSM4IB4MOQ2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODZZ6KNI-23issuecomment-2D510911797&d=DwMCaQ&c=V9IgWpI5PvzTw83UyHGVSoW3Uc1MFWe5J8PTfkrzVSo&r=wZg1Ypwec7LgqmJMFFBigtOE4MN6TZrxNxn96jWcNHQ&m=e6KmyjxiUk6whlcdWaEEd00z_PyaxZzCwcb4-d-xyJc&s=J11wDPe_XbWOn0nUHPxOAs-04qCXXUSc6LMmn6-j5RQ&e=,
or mute the thread
https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_notifications_unsubscribe-2Dauth_AMS4A7667UNZKN2OL6PJFELP7CJVXANCNFSM4IB4MOQQ&d=DwMCaQ&c=V9IgWpI5PvzTw83UyHGVSoW3Uc1MFWe5J8PTfkrzVSo&r=wZg1Ypwec7LgqmJMFFBigtOE4MN6TZrxNxn96jWcNHQ&m=e6KmyjxiUk6whlcdWaEEd00z_PyaxZzCwcb4-d-xyJc&s=KNDEa7P-L3IpN8lo1BgHNWFjPMW-WR4rqHggjOnnd50&e=
.

When using Redis Cluster, then use any of the nodes. RedisClusterClient obtains its topology and routing information from the cluster itself.
When using just replication, then please rather use the MasterSlave API.
No need to worry. It's just questions that "Does X work?" are kind of silly because we're usually shipping only features that are known to work. So any more detail that helps diagnose the issue is appreciated.

Thanks for your help. I think the problem simply was setting the expiration
before setting key value.
On Fri, Jul 12, 2019 at 7:56 AM Mark Paluch<EMAIL_ADDRESS>wrote:

When using Redis Cluster, then use any of the nodes. RedisClusterClient
obtains its topology and routing information from the cluster itself.
When using just replication, then please rather use the MasterSlave API
https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_lettuce-2Dio_lettuce-2Dcore_wiki_Master-2DReplica&d=DwMCaQ&c=V9IgWpI5PvzTw83UyHGVSoW3Uc1MFWe5J8PTfkrzVSo&r=wZg1Ypwec7LgqmJMFFBigtOE4MN6TZrxNxn96jWcNHQ&m=mrKAG_Q28nF5tbxuEIlZkP7kGor5xlQYpyCXp2WitGw&s=GvNnNLYHsTPKeOVG7zB2mpdPRNbtzqHR8-LqOV3ysQk&e=
.
No need to worry. It's just questions that "Does X work?" are kind of
silly because we're usually shipping only features that are known to work.
So any more detail that helps diagnose the issue is appreciated.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_lettuce-2Dio_lettuce-2Dcore_issues_1079-3Femail-5Fsource-3Dnotifications-26email-5Ftoken-3DAMS4A75EZ2DGKABOTEBTZX3P7CLTFA5CNFSM4IB4MOQ2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODZZ72JA-23issuecomment-2D510917924&d=DwMCaQ&c=V9IgWpI5PvzTw83UyHGVSoW3Uc1MFWe5J8PTfkrzVSo&r=wZg1Ypwec7LgqmJMFFBigtOE4MN6TZrxNxn96jWcNHQ&m=mrKAG_Q28nF5tbxuEIlZkP7kGor5xlQYpyCXp2WitGw&s=42HoWv-D5hxvRxT_T5-fZ9YhXICxDvFuKYnhh0x7ymI&e=,
or mute the thread
https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_notifications_unsubscribe-2Dauth_AMS4A772Q6XU573Y4VW6UWTP7CLTFANCNFSM4IB4MOQQ&d=DwMCaQ&c=V9IgWpI5PvzTw83UyHGVSoW3Uc1MFWe5J8PTfkrzVSo&r=wZg1Ypwec7LgqmJMFFBigtOE4MN6TZrxNxn96jWcNHQ&m=mrKAG_Q28nF5tbxuEIlZkP7kGor5xlQYpyCXp2WitGw&s=up306JA4tpvp0LTIKz_z9GPyrPPKspTtNZ676oxfxZc&e=
.

Thanks for coming back. Closing this one.


Blog post navigation issue

Describe the bug
The blog posts have an issue: The “Newer Entries” and “Older Entries” links on any post doesn't work, they connect back to the blog page you’re on.
To Reproduce
Steps to reproduce the behavior:

Create blogs list
Create blog posts at least 3
In blog post set the "Location of blog navigation" as "Beneath blog post"
Try to navigate between blog post using “Newer Entries” and “Older Entries” links
It doesn't work.

Expected behavior
“Newer Entries” and “Older Entries” links should work.

@ramdev1980  You have to publish the blog posts and have a running DTS for this as well right?  Also didn't you have to edit the perc-security.properties files to stop the CORS error?


[QnAMaker] hostname changes for url ending with /v5.0-preview.1

Fixes #
Proposed Changes
Adding support for V5 hostname
LInked with PR
https://github.com/microsoft/botbuilder-dotnet/pull/3690
https://github.com/microsoft/botbuilder-js/pull/2001

Testing

hi


How to know which JDBC driver Mendix is using

Refer to the bundles folder as a way to find out which JDBC driver is used Internally by Mendix.

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.


feat: mouseover highlight textures for GBB.FramesEntries

Headers will now use a highlighted text on mouseover
Request entries will show a highlight texture on mouseover

images:

#4  👈
working-trunk

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @juemrami and the rest of your teammates on  Graphite

Merge activity

May 22, 4:45 AM EDT: @juemrami started a stack merge that includes this pull request via Graphite.


java.lang.NoSuchMethodError when calling Navigation.PushPopupAsync()

Simplified example:
public partial class MyPage : ContentPage
{
        public MyPage()
        {
            InitializeComponent();
        }

        public async void PushPopup()
        {
            await Navigation.PushPopupAsync(new MyPopupPage());
        }
}

Upon calling Navigation.PushPopupAsync() the app crashes and we get this stack trace:
Fatal Exception: java.lang.NoSuchMethodError
    no non-static method "Landroid/view/WindowInsets;.getSystemGestureInsets()Landroid/graphics/Insets;"
    crc649782702a6ced2686.PopupPageRenderer.n_onLayout (PopupPageRenderer.java)
    crc649782702a6ced2686.PopupPageRenderer.onLayout (PopupPageRenderer.java:62)
    android.view.View.layout (View.java:20857)
    com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1374)

This is after an upgrade from Xamarin to MAUI.
The nuget package for RGPopup has been changed from the Xamarin one to this one.
We are calling .UseMauiRGPopup() on the builder in MauiProgram.cs
Popup pages throughout the app have been changed to inherit from RGPopup.Maui.Pages
All popups in the app throw this error.
Please advise.

This problem happens when accessing SystemGestureInsets here when running anndroid with API version < 29.

Same problem here. The RGPopup sample also has this error.

Fixed by version 1.0.4 https://www.nuget.org/packages/RGPopup.Maui/1.0.4
Thanks very much for this issue reporting!


BoldX error

Hello!
I've copy-pasted your BoldX scripts to my table and got this error:
TypeError: Cannot read property 'indexOf' of null
    at [unknown function](Code:37:51)
    at checkWords(Code:37:25)
    at main(Code:28:11)

And I've found what's going on.
If some cells in range are empty, it returns this error. How to work around this?

The index.html is broken as the function runBoldX() cannot retrieve values of elements range and words. I am a beginner, so I don't know how to fix it. I just used Code.gs and hardcoded my needed values into the main() :)
function runBoldX() { 			var range = document.getElementById("range").value; 			var words = document.getElementById("words").value; 		google.script.run.main(range, words);


Add googlemap fragment

i want to add googlemap fragment in your projet but it didn't work for me
:
SupportMapFragment mapfrag = (SupportMapFragment)getChildFragmentManager().findFragmentById(R.id.map);
.
it give me error null exception in this line.
i need help

@BinoJozef this is an issue tracker, not the stackoverflow. You should ask such questions there.

Thanks :)


Type (s) give type function not type and functions don't give function types.

Expected
System.RuntimeType
System.Action

Actual
Function
Function

Steps To Reproduce
Bridge Live
Dot Net Fiddle
public class App
{
    [Ready]
    public static void Main()
    {

        object value = typeof(string);
        Console.WriteLine(value.GetType().FullName);
		Action value2 = () => Console.WriteLine("Hello World");
		Console.WriteLine(value2.GetType().FullName);
    }
}

Related to #1301, #1248, #1292, #1294 and #1184.
The comments at the following location apply to this issue as well:
https://github.com/bridgedotnet/Bridge/issues/1292#issuecomment-217086640
Thanks for reporting.