Ability to request sub-object

I was wondering if it's possible to do something like GET /member/user or GET /member/user/emails or something so that the REST routes are "subroutes".

Hi Chuck,
You can nest resources up to one level.

You can also mount JSON Server on an Express app
var one = jsonServer.router('db1.json')
var two = jsonServer.router('db2.json')

var app = express()

app.use('/some/route', one)
app.use('/other/route', two)

Also if you want to provide some informations why you need this kind of routes (without :id params) that would help me understand better your use case.
I mean, personally, I would do GET /users/:userId/emails?

Yea unfortunately I'm trying to use this to mock and existing api which has endpoints like
/api/v1/email
/api/v2/users
I'm using connect-proxy to proxy requests from /api to the json-server and was hoping to be able to do "levels" like that.  Worst case I can just do multiple proxies to multiple json servers.  I tried something like:
{
  "v2/users": [
     {id: 1, username: 'test' }
  ]
}

Which when I looked at the log I saw
``
http://<IP_ADDRESS>:9002/v2/users

but a request to /v2/users never returned anything.  I may just try either use the express route or just multiple proxy unless you think it's something easy that could be added.

Well, can't say you'll be able to mimic all the behaviors since JSON Server is about some defaults.
But you can do this:
var v1 = jsonServer.router('v1.json')
var v2 = jsonServer.router('v2.json')

// It would be also possible I think to overwrite some routes

var server = jsonServer.create()
server.use('/v1', v1)
server.use('/v2', v2)
server.listen(3000)

And in v2.json, simply put:
{
  "users": [ ... ]
}

Then GET /v2/users should work.
If you need more flexibility, I would suggest Express + lowdb or projects like dyson or interfake.
Hope it will help :)

Great thanks for your help.  I think that will work.

I realise this is more of a workaround, but when I use the method described above the  Congrats! You're successfully running JSON Server page only lists the endpoints defined in the last router, e.g. v2.json
It looks like the low database is clobbered with each new router definition:
if (_.isObject(source)) {
    db = low()
    db.object = source     // <--- previous routes are overwritten here
} else {
    db = low(source)
}

https://github.com/typicode/json-server/blob/master/src/server/router/index.js#L26
Do you think it'd be possible, in theory, to change this so /api/db/ lists all routes?

Not sure if you get notified on closed issues, so ping... @typicode

Thank you for the ping, I'll reopen it just not to forget about it


Add support to render a footer beneath the tree

Is your feature request related to a problem? Please describe.
I'm currently using this library to implement a feature where to rootnodes in the tree are groups of entities and you can drag and drop each child node to those group. Thus being able to group the entities as desired. We ran into the problem of needing to render a footer for this component for totals of all the groups.
But because this library currently does not support the rendering of a footer element beneath al the rootnodes we implemented a workaround to use display flex on the tree and order on the footer element to put the footer element at the bottom.
Obviously this is a workaround since altering the order of elements on the screen without altering the order of those elements in the DOM is not accessibility friendly.
Describe the solution you'd like
Tree component could accept a renderFooter callback the is placed beneath the Container that is currently rendered in the Tree. As parameters it is given an array of the data contained in each Node in the Tree so the render function can use this as desired in the footer. (If this can result in performance issues due to the potential size of such an array maybe a more clever solution is needed)
Describe alternatives you've considered
As described above, currently we use css to put our footer element beneath al the nodes.
Additional context
Not feature request related but: English is not my native language (Dutch), please excuse any grammatical errors.

I'd also be able to work on this feature myself BTW.


How to use subscription ?

Hello,
I was try create mutation on localhost:3000/graphiql like this
 mutation {   Notification {     notificationCreate(input:{data:{       verb:"test"     }}) {       obj {         verb         userId       }     }   } }
and subscription on localhost:3000/graphiql like this
subscription {   notification(input: {create:true, update:true, remove:true}) {     notification {       id       verb     }   } }
but it won't show anything on subscription page. data is success and already created.

Hi @adamsaparudin,
Sorry for the late response. You need to install the latest release (0.9.0)  of the package. Recently we have fixed some issues with subscriptions, hope it will work.
Support of the subscriptions on graphiql is on the road map (currently not available).
First execute the query then use the subscribeToMore function of apollo-client.
In case of any issue or you need further support, please, let us know.


Training Duration

Hi, congrats on the great work.  I'm training this work in a 3090 GPU. However, as the number of training epochs is 1500, I need to train for nearly a month. Hence, I feel confused about the training duration。

Hi, sorry for the confusion. The training only takes 150~250 epochs, not 1500. You can check if it converges according to the validation loss.


[Feature]: Beautify resources page

Is your feature request related to a problem? Please describe.
change the current theme of the resources page you can take inspiration from programs page and teams page
Describe the solution you'd like
No response
Describe alternatives you've considered
No response
Additional context
No response

!assign it to me.
Solution approach

I will try to implement a different UI for the Resources section

additionally

before sending PR I'll send it here for review.

@GyanPrakashRaj just make sure everything to implement in ui is responsive

@GyanPrakashRaj just make sure everything to implement in ui is responsive

Sure 👾

@GyanPrakashRaj are you still working on this

Yes, I'm still working
Sorry for late ... some academic issues are in my room right now... will push the PR soon

I could do this too

@GyanPrakashRaj are you still working on this issue?

@GyanPrakashRaj are you still working on this issue?

Im stuck in my academics
Sorry for inconvenience
Kindly assign it to someone else

@tamago01 assigning you this issue


Enhancement: higher bpm cap if possible

since the original cap is like 339

bruh why need it that fast dawg???

funie fnf mod song have to be insanely hard and humanly impossible!!!!!

already done


Add Contact Form

In the contact us page, only the contact information is present. Contact form is missing here.
I would like to create the UI for the  "contact form" with fields like name, email and message box.
@maniyaom Kindly assign me this issue under the labels gssoc'24 and hacktoberfest.

i like to work with this issue. assign me.

the above issue can be solved by adding contact form

First Name
<input type="text" id="fname" name="firstname" placeholder="Your name..">

Last Name
<input type="text" id="lname" name="lastname" placeholder="Your last name..">

Country
<select id="country" name="country">
  <option value="australia">Australia</option>
  <option value="canada">Canada</option>
  <option value="usa">USA</option>
</select>

Subject
<textarea id="subject" name="subject" placeholder="Write something.." style="height:200px"></textarea>

<input type="submit" value="Submit">

 please assign me with this task
@maniyaom


Consider .hsc files to be Haskell modules

Other than my comments it LGTM.

Done!

Specifically, I follow the convention to have one describe per function.  If I need more structure, I use context, but I think we don't necessarily need it here.

Ah, I misunderstood. Moment...

Ok, done


Unable to use defineTheme to define a custom theme

Hi,
I've been trying to define a custom theme for this editor, but unfortunately the "default" defineTheme function is not there anymore. Is there a way to create a custom theme ?
Thanks

Are you trying to define a monaco/monarch theme, or a textmate/VSCode one? please add a bit of context

I guess it's more of a monaco theme.
Some background:
I was using the standard monaco (and I've built a theme with it) editor and I was unhappy with the syntax highlighting. Then I came across this package. The editor works fine, but now I'm trying to apply the colors from my previous monaco theme on this editor.
However, If it's only possible to use a textmate/VSCode theme, that's fine with me. I'm just looking for a way to change the default theme.
Many thanks

unfortunately the "default" defineTheme function is not there anymore

Not sure what you mean though, the function seems to be there

I see
Unfortunately, the VSCode syntax highlighting (textmate) is really tied to the VScode theme services, so you can't use textmate with monaco themes, nor monarch with VSCode themes

Ok,
Is there any documentation or example on how to customize themes with your editor ? I've been trying to find projects that uses your editor, and it seems that at some point there was a defineVSCodeTheme function. Is there still something similar ?
Thanks

defineVSCodeTheme was removed indeed
You can register your theme using a VSsode extension, either by

using VSCode defaut themes by importing @codingame/monaco-vscode-theme-defaults-default-extension
importing the vsix of a VSCode extension using the rollup vsix loader
creating the extension by hands, something like:

import { ExtensionHostKind, registerExtension } from 'vscode/extensions'

const { registerFileUrl, whenReady, setAsDefaultApi } = registerExtension(
  {
    name: 'world',
    publisher: 'hello',
    version: '1.0.0',
    engines: {
      vscode: '*'
    },
    contributes: {
      themes: [
        {
          id: 'My Theme',
          label: 'My Theme',
          uiTheme: 'vs-dark',
          path: './my-theme.json'
        }
      ]
    }
  },
  ExtensionHostKind.LocalProcess
)

registerFileUrl(
  './my-theme.json',
  new URL('./path/of/the/theme/on/the/disk.json', import.meta.url).toString()
)

Looks like this is exactly what I needed. Thank you very much!


There are marketplace entries for linking to copyright streaming media

Type: Bug
An example marketplace search of, "one piece red", will return multple entries specific to viewing this anime online. I recommend using quotes in the search.
Entries such as these are starting to pollute normal search results when there are matching terms.
VS Code version: Code 1.70.0 (da76f93349a72022ca4670c1b84860304616aaa2, 2022-08-04T04:38:16.462Z)
OS version: Windows_NT x64 10.0.19044
Modes:

Hi @michealespinola can you please share more details about this issue, if it is related to VS Code extensions
Please create your issue here https://github.com/microsoft/vscode/issues

There are multiple bogus extensions. Just search the marketplace for "one piece red" and you will see them. There are currently about ~13 of them that match that particular search. Here is an example marketplace URL:
https://marketplace.visualstudio.com/items?itemName=OnePieceRedDeutsch.One-Piece-Red-hd-stream-Deutsch

@michealespinola Thanks for taking time to report this. We took these extensions down from the Marketplace.


Unable to create new site with ARM template (bicep)

var customDomains = [
'test.com'
'www.test.com'
]

resource site 'Microsoft.Web/staticSites@2021-01-15' = {
  location: resourceGroup().location
  name: 'site'
  properties: {
    buildProperties:{
      skipGithubActionWorkflowGeneration: true
    }
    allowConfigFileUpdates: true
  }
  sku: {
    name: 'Free'
    tier: 'Free'
  }
  identity: {
    type: 'SystemAssigned'
  }
  resource domains 'customDomains' = [for domain in customDomains: {
    name: domain
    properties: {
      validationMethod: 'dns-txt-token'
    }
  }]
}

When executing this via az deployment group create I get an error.
{
  "code": "DeploymentFailed",
  "message": "At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/DeployOperations for usage details.",
  "details": [
    {
      "message": "SkuCode 'SKU' is invalid."
    }]
}

If I remove the identity however, it goes through correctly.
I would expect that given the free tier can have managed functions, I should be able to assign a system managed identity in the template. Or alternatively, add it to the SKU documentation in the template reference that I can't.

Currently, managed identity can only be created for standard apps. The identity can only be used to retrieve settings from Key Vault that are used for auth. The identity currently does not flow through to the function app. This is on the roadmap but is an longer term item and we don't have an ETA. If you need managed identity in your function app, the current guidance is to use the bring your own function app capability with a function app with its own managed identity.
@miwebst Is this something we can include in the schema docs?
@craigshoemaker There's a possible improvement here for the managed identity docs.

Thanks @anthonychu - this makes sense (after the fact)
In the ARM template reference, adding the identity property as not supporting 'SystemAssigned' for the 'Free' SKU would have saved me two hours.  The current message makes it look like it's the SKU code at fault, not using Managed Identity in the free tier.
Can you elaborate on the "can only be used to retrieve settings from Key Vault that are used for auth" - does this mean appsettings cannot use @Microsoft.KeyVault syntax on the free tier as defined here?
https://docs.microsoft.com/en-us/azure/app-service/app-service-key-vault-references

Can you elaborate on the "can only be used to retrieve settings from Key Vault that are used for auth" - does this mean appsettings cannot use @Microsoft.KeyVault syntax on the free tier as defined here?
https://docs.microsoft.com/en-us/azure/app-service/app-service-key-vault-references

That's correct. The core issue is there is some platform work that needs to be completed before we can flow the Static Web Apps managed identity to the Static Web Apps managed function app. So you cannot use KV references in managed function apps right now.

related #88


Logs don't work in webc:type="js"

Given that <script webc:type="js"> components are for "arbitrary server JavaScript" I expected logs from inside the JS code to show up in my terminal build logs. Unless I'm missing something these appear to get swallowed. E.g.
<script webc:type="js" webc:is="template">
  let message = 1 + 1;
  console.log({ message });
  "hello " + message;
</script>

This outputs "hello 2" but nothing is logged to my terminal.

This will ship with WebC v0.8.0! Thanks!


Disallow number type from being assignable to enums with known literal members

@jakebailey mentioned this type hole to me and this is an experiment to make assignability rules stricter here. I didn't find a compelling reason in the existing test suite that this rule is particularly important today and I'd be interested in learning what user tests think about that ;p

So the self-check isn't particularly happy with this one 😂 it's surprising to me that the test suite didn't have any tests like this with bitmasks


📄 Add mocking section to docs

What
This PR adds documentation for mocking the library. Works even for running on simulators or testing (with detox, for example).
It is the first step of dreaming to have an internal mocked library.
Changes

Create Mocking section on Docs

Tested on

iPhone 12, iOS 12.5 simulator and real device
Pixel 4, API 32 simulator and real device

Related issues

Addresses #594
Addresses #1035

Amazing, Thanks for your PR!


SHA 256 mismatch when installing dbeaver using Homebrew

System information:
Operating system (distribution) and version: macOS Big Sur 11.2.3
DBeaver version: 21.3.2
Describe the problem you're observing:
Could not install dbeaver using brew, because of sha256 mismatch.
Steps to reproduce, if exist:
brew install --cask dbeaver-community
Include any warning/errors/backtraces from the logs
Running brew update --preinstall...
==> Downloading https://dbeaver.io/files/21.3.2/dbeaver-ce-21.3.2-macos-x86_64.dmg
Already downloaded: /Users/ma/Library/Caches/Homebrew/downloads/0dd23c49ae5dcdd4661b576ce3ccd4d239957ebbbd85d419ed737cefb3136286--dbeaver-ce-21.3.2-macos-x86_64.dmg
Error: SHA256 mismatch
Expected: eb42fd96c8d013a9962464e481758868b03ad906d7a07d5d32c74f9f828804bb
Actual: 8278253d121e1c74645ed302263dd340f61fadd075c9d676732c248b47011f26
File: /Users/ma/Library/Caches/Homebrew/downloads/0dd23c49ae5dcdd4661b576ce3ccd4d239957ebbbd85d419ed737cefb3136286--dbeaver-ce-21.3.2-macos-x86_64.dmg
To retry an incomplete download, remove the file above.
Tried updating brew using the following commands:

brew upgrade
brew update-reset
brew cleanup && brew update
brew edit 8278253d121e1c74645ed302263dd340f61fadd075c9d676732c248b47011f26

Yes, this issue is resolved now. Thanks @ayharano
Closing the issue.


texts.trig – some missed segments

Segments for Textpassages Built from //quote[matches(@source, "^#[0-9]")]
Currently, these quote-elements occur in their INT3_InterltextualRelationships  and the statement of the referred-to INT1_TextPassage:
<https://sk.acdh.oeaw.ac.at/D_000001-002-000/relation/4> a ns1:INT3_IntertextualRelationship ;
        rdfs:label "Intertextual relation"@en ;
        ns1:R12_has_referred_to_entity <https://sk.acdh.oeaw.ac.at/pmb63244/passage/D_000001-002-000/4> ;
        ns1:R13_has_referring_entity <https://sk.acdh.oeaw.ac.at/D_000001-002-000/passage/4> .
[...]
<https://sk.acdh.oeaw.ac.at/pmb63244/passage/D_000001-002-000/4> a ns1:INT1_TextPassage ;
        rdfs:label "Text passage from: [Mitteilung über angebliche Zuschrift Kraus’ an den Berliner Börsen-Kurier], in: Neues Wiener Journal, 21.11.1922"@en ;
        ns1:R10_is_Text_Passage_of sk:pmb63244 .

That's perfect so far. But some of these text passages need a segment linking them to their resp. published-expression.
Create the missing segments
The segment should look like this:
<https://sk.acdh.oeaw.ac.at/pmb63244/segment/D_000001-002-000/4> a ns1:INT16_Segment ;
        rdfs:label "Text segment from: [Mitteilung über angebliche Zuschrift Kraus’ an den Berliner Börsen-Kurier], in: Neues Wiener Journal, 21.11.1922"@en ;
        ns1:R16_incorporates <https://sk.acdh.oeaw.ac.at/pmb63244/passage/D_000001-002-000/4> ;
        ns1:R25_is_segment_of <https://sk.acdh.oeaw.ac.at/pmb63242/published-expression> .

Here are some exceptions:

[ ] Quote refers to //bibl/bibl[@type="sk" and @subtype="standalone_text"] – DON'T create the segment.
[ ] Quote refers to //bibl/bibl[@type="sk" and @subtype="journal"] – DON'T create the segment.

Here are some infos for the other ones:

[x] For //bibl/bibl[@type="sk" and @subtype="standalone_publication"] - the ID in the URI in the last line is the same as in segment and textpassage, so in the example above it would be "pmb63244".
[x] For //bibl/bibl[@type="sk" and @subtype="issue"] – Dito.
[x] For //bibl/bibl[@type="sk" and @subtype="article"] – Watch out: Take the ID from the //bibl/bibl[@type="sk"]/date/@key. (That's the case in the example above.)

Thanks!

@linxOD Looks good, one thing, see above: "Quote refers to //bibl/bibl[@type="sk" and @subtype="standalone_text"] – DON'T create the segment."
These segments do currently exist, please create filter for @subtype="standalone_text" so they're not created, thanks!
(There is another issue with @subtype="journal", but I'm going to fix it on the data side.

@subtype="standalone_text" should be sorted out see:
https://github.com/semantic-kraus/lk-data/commit/362d63a5b188c029176cb974aacdaa523f47cb75#diff-da6978491c0fe8ae31f9fd1734de50b91b113a764594df5690e5da3af51a565aR413-R415

@linxOD Strange; maybe it's built elsewhere? This segment statement should not exist:
<https://sk.acdh.oeaw.ac.at/pmb57021/segment/D_000122-008-000/0> a ns1:INT16_Segment ;
        rdfs:label "Text segment from: Karl Kraus berichtigt. Zum letztenmal Kraus contra Hesse"@en ;
        ns1:R16_incorporates <https://sk.acdh.oeaw.ac.at/pmb57021/passage/D_000122-008-000/0> ;
        ns1:R25_is_segment_of <https://sk.acdh.oeaw.ac.at/pmb57021/published-expression> .


Fix build on Android armv7a

Hi, this patch fixes the build for Android on 32-bit ARM.
I'm using Android NDK 20.1.5948944.
Here is how I'm running the build:
mkdir build
cd build

cmake .. \
  -DLIBUV_BUILD_TESTS=OFF \
  -DCMAKE_SYSTEM_NAME=Android \
  -DCMAKE_TOOLCHAIN_FILE=/opt/android/ndk/20.1.5948944/build/cmake/android.toolchain.cmake \
  -DANDROID_ABI=armeabi-v7a \
  -DCMAKE_BUILD_TYPE=Release \
  -DCMAKE_C_FLAGS_RELEASE:STRING='-fPIC -fvisibility=hidden' \
  -DCMAKE_POSITION_INDEPENDENT_CODE=ON

make -j4

I tried to keep behavior on other platforms unchanged.
Changes:

accept4() is not available in libc and may be unavailable in
kernel too, so don't use it on this platform

dup3() is not available in libc; not sure about the kernel,
but don't use it too

inotify_init1() is not available in libc, use __NR_inotify_init1
syscall via uv__inotify_init1(); not sure if it may be unavailable in kernel, but if I understand correctly, missing inotify support (ENOSYS) wont break other things in libuv

SYS_close is not defined in libc, use __NR_close syscall
via via uv__sys_close()

Reference:

https://fedora.juszkiewicz.com.pl/syscalls.html
https://chromium.googlesource.com/android_tools/+/20ee6d20/ndk/platforms/android-21/arch-arm64/usr/include/asm-generic/unistd.h
https://elixir.bootlin.com/linux/v4.5.7/ident/__NR_dup3
https://elixir.bootlin.com/linux/v4.5.7/ident/__NR_inotify_init1
https://elixir.bootlin.com/linux/v4.5.7/ident/__NR_close

As far as I am concerned, use -DANDROID_PLATFORM=android-21 is probably enough.

As far as I am concerned, use -DANDROID_PLATFORM=android-21 is probably enough.

Thanks so much, this fixes the problem without patching libuv.
Thus, this PR is not needed, unless there is a need to support API levels below 21. I'll keep it open so that maintainers can make a decision.

support API levels below 21

This pr is really helpful if you want support below 21. But to be fair, that's 7 years since android 4.4 release. As for my experience with android, minimal sdk is >= 21 in 99.9% case. Not sure a link to this PR in doc is a good idea.

Agree.

Thanks for the PR but as this significantly increases the complexity of the code base (I was rather glad to remove all the workarounds for old kernels recently) I'm not going to merge it.


Duplication of P110 plugs in Home after they are renamed.

I've renamed the P110 plugs I have a couple of times depending where they were plugged in the house when taking meter readings.  I renamed them in the Tapo App and then in this app however some process seems to remember the old name and I end up with a duplicate devices in the Home app even though they aren't listed in the Homebridge config
I have 4 devices in total but the bridge lists 7 (i've renamed the erroneous ones Error1-3)

@jangomunkie you can remove the Error ones from Homebridge UI.


[Question] Is there a way to keep ip address of vms?

Hi..
The vm's IP will be changed after restarting.
Is there a way to keep the IP address in the vm's lifecycle?
Even the vm is stopped, the IP should be kept until it's destroyed.

You can use the vlan networks: https://docs.harvesterhci.io/v0.2/harvester-network/#vlan

Thanks gitlawr
Is there an example or doc?
I don't know how to keep the vm's IP within the whole lifecycle.
/sad

You can set a static IP by cloud-init config. For example,
network:
  version: 1
  config:
    - type: physical
      name: enp1s0
      subnets:
         - type: static
           address: <IP_ADDRESS>/24
           gateway: <IP_ADDRESS>

Thanks yaocw2020,
Is this static IP different from the Pod's IP?
Is this a "Floating IP"?
What should we do to make this IP connectable?
Thanks for advance.

Thanks yaocw2020, Is this static IP different from the Pod's IP? Is this a "Floating IP"? What should we do to make this IP connectable? Thanks for advance.

It's not a floating IP. You can add the secondary network with VLAN ID 1 when creating VMs and assign a static IP to it by cloud-init configuration. Refer to document.

Thanks yaocw2020
Now I know I can add a secondary network which is bound a static IP address.
What is the IP range should be for this static IP? The same with the Node IP?
Can you share more detail for explaining:
A packet is outside of the cluster, how does it go to the vm?
Or
To make this static IP address connectable from outside of the cluster , what should we do?
Sorry for my poor English,
Thanks for your help.

The static IP In the same subnetwork of Node IP would be connectable if you can access the node.

Thanks yaocw2020
One more question:
If the Node IP is <IP_ADDRESS>, and I set the vm's static IP to <IP_ADDRESS>.
Which component will response the ARP request (<IP_ADDRESS>)?
Or
How my compute knows which host has the IP <IP_ADDRESS>?

If users do not add some configuration such as arp_proxy, the VM will respond to the arp request(<IP_ADDRESS>). You can consider the VM as a normal network node. If you are interested in the Harvester network, you'd better comprehend how we implement the VLAN network which we have explained in the harvester document.

Thanks yaocw2020 and gitlawr.
I really appreciate all your help!


Allow user-specified unaltered attributes

Hey, thanks for this loader! It's really helpful.
I would like the ability to specify a whitelist of attributes that should not be camel-cased. Right now the loader will output all fill-rule attributes as fillRule, which React 0.14.x doesn't interpret properly.
By making use of React's #isCustomAttribute, it is possible to instruct React to create fill-rule attributes properly. However fill-rule must be specified with the hyphen, instead of the camel-cased fillRule as this loader currently produces.
I've tested this by adding a 'fill-rule' key and value to the RESERVED_KEYS hash in sanitize.js and it works as expected.
If you've already address a workaround for this, I apologize for not finding it!

@jfurrow -- I will see if I can address this... in some way... in the meantime can you provide me links to any appropriate documentation you have for the #isCustomAttribute usage for React?

@jhamlet Sorry for the delay. I did end up finding a workaround within React, so my request is probably not necessary. But here's how it was solved: https://github.com/dcos/dcos-ui/blob/master/src/js/utils/ReactSVG.js
Feel free to close this issue, unless you think it's worth implementing.

Now available in v0.4.0-beta.2


update R packages when building PACTA docker image

closes #44

I agree... I don't fully know/understand the consequences of this, so let's freeze this for now and get input from other people and/or do some research and/or experimentation.

@AlexAxthelm pinging you for thoughts

Also, if it's true that adding individual RUN  commands to the Dockerfile contributes to size inflation (relevant to #42), then we should consider merging some of the existing lines in the Dockerfile, especially those that are very similar like the chmod commands.

A few thoughts:
1: RUN chmod doesn't add size, since it's a 0 byte change to the system image. The extra space that it takes to hold the intermediary image is trivial, so I wouldn't bother changing those. I usually run all those tiny changes individually. The real space problems come from COPYs and RUN installs.
2: You shouldn't be using FROM 2dii/r-packages:latest. You should definitely pin the image you're building with:
FROM 2dii/r-packages:0.0.12 (or whatever version you're using). Then you'll know exactly which version of the packages you've got in the image (which is the whole point of docker in the first place).
3: You should be pinning package versions in the Dockerfile definition, so that you do know exactly which version of a package you're working with. you should not be getting different docker images from the same file based only on what date you are building it. the same Dockerfile should always build the exact same image. Otherwise, you get someone who builds locally getting a different image than someone who pulls from DockerHub, and that's different than someonw who pulls on a week later.
4: (and this is a big one) Why are we managing all of our Dockerfiles in a central repo? A Dockerfile is associated with a project, a specific scope. Therefore, the file should be managed alongside the project. I get that the PACTA ecosystem is fractured, but this doesn't feel like the right solution to me (especially if we are using 2dii/system and 2dii/r-packages as starting points in other projects)

A further thought about pinning R package and Dockerfile versions, and why it's important:
Remember how converting to use the dplyr 1.0.0 API sucked for everyone? If we had the dockerfiles pinned to 0.9 or whatever the last good version was, then we could create an updated docker image with the new API in it, and then our devs could convert the code to the new API, and as part of that PR, change the dockerfile version to something like FROM 2dii/r-packages:0.1.0 to FROM 2dii/r-packages:0.2.0. This is also why the dockerfile should be managed alongside the code that it's intended to execute, so that those changes can be part of the same PR.

Is it possible to achieve the same effect with renv? If so, which is best?

renv and packrat are useful for managing dependency versions on a local machine, where you may need to have multiple different versions for different projects, but since the point of the docker image is to have a single source of truth when it comes to the execution environment, it's not appropriate to use them in conjunction with docker. I'd suggest building the docker image with a single, well-specified, version of each package, and then have that be what you work from. if you find you need other packages, or need to upgrade them, then that is implemented through a change and rebuild to the Dockerfile.

Yeah, I agree that probably we don't want to update packages every time we build the pacta docker image. I think rather I want some confidence that 2dii/r-packages can and will be updated occasionally so that it doesn't fall too far behind (I don't think we've done that since its initial creation). I get the reasoning behind sticking to specific versions of packages, but when it's super common for developers to immediately respond to bug reports or issues with something like "have you updated to the latest version?", it can be a liability as well to stay on old versions eschewing recent bug fixes, etc.
I'm not sure I understand why it's necessarily critical to keep a dockerfile in the project where it's intended to be used, assuming it is only intended to be used in a single project. For instance, if you're creating a docker file and using a rocker image as the base, obviously that image's dockerfile will not be in your project, but afaik that's how it's intended to be used, no?

I'm going to close this because I now believe this was my bad idea from the beginning. There's still something conceptually here that I want to achieve, but I'll open a new issue once I figure out how to describe it accurately.

I think I see where you were headed, @cjyetman.
Broadly speaking, Docker images fall into one of two catgegories:

An image that does something. These are the images that live in a project's repo, and will include the project code as part of the image, so that it is locked to a specific version of the code.
Images that are meant to be intermediary to those of type 1, which is what I think you're going for with 2dii/system and 2dii/r-packages, it's supposed to be used as the base image (FROM foo/bar)

There's value in having those intermediary images, customized for our own purposes. That lets us use docker's powerful image caching system, so that multiple project images can start from the same base image, and reduce disk space on developers machines.
Two ways to avoid those being outdated:
1: Let people file issues & PRs against the intermediary image when a package needs to be updated or a new package should be added to the common set
2: Set up an automated build (probably via GH actions), so that it gets rebuilt once a week or so. Then instead of tagging with version numbers, we could use dates as tags (FROM 2dii/r-packages:20210225). That would maintain strict versioning, and known packages, but it would also keep things from getting outdated.
If we had either of those updating systems, once we got tests in place, we could pretty easily see if an older or newer docker image will still run the code as expected, by filing a PR changing the base image, and then letting the test suite run in the new environment. That would also let us start using other base images for the intermediary image (such as basing it on alpine rather than ubuntu, which is pretty strong preference of mine).

thanks @AlexAxthelm, that pretty much sums it up, and makes the point well that the pacta dockerfile should maybe be moved into the pacta repo, while the 2dii/r-packages and 2dii/system docker files can reasonably stay put here

And we could expand the offerings here to include alternative intermediary images (for different sets of needs). I could imagine a developer starting a project with something along the lines of r-packages-extended:latest, when they're doing intial development work, and then switching to something like 2dii/r-packages-core-alpine:20200301, as they get closer to production, and adding in any missing packages as part of the project Dockerfile.

This is an awesome conversation. Thanks @cjyetman and @AlexAxthelm. I realize the need of better understanding the benefits of developing and sharing a controlled computing environment, particularly when we have @AlexAxthelm as a mentor. Do we need a theme like "computing environment" in the practices repo? If you think so, I suggest we make a case in practices/Discussions and see what Monika thinks.

I do think we need to establish good practices and standards on environments. Mostly, I'm thinking along the lines of developing common definitions and names for PROD (production), DEV (development), STAGING/QA/RC (Quality Assurance or Release Candidate), and LOCAL. I think these all tie into our workflows (when do we push hotfixes, rather than moving through a normal, formalized release process, and who has the authority to do that), which has big implications for code visibility. That is, who can see code at each point.
I think this is a situation where the technical best practices are well-established in the public discourse, so developing our own practices document along these lines would make most sense as a guide on how to use our environments. Therefore, I think we should run some experiments and test among a limited set of our developers to polish the practices before we try to roll them out to the entire organization.
The definitions that I'm used to (and the specificity of environment that I expect for each) are:

LOCAL: Not shared with anyone, running directly on a developers machine, if they want (no specificity in compute environment)
DEV: Still under active development, shared with immediate work team that is developing interacting code (same package or project). In a docker image, but we don't really care which one (Environment is known, but not controlled, to keep friction at a minimum, :latest tag is permitted)
RC/QA: Project code is mostly complete, and is considered a candidate to be put into production. Shared widely internally, and with trusted external beta testers. Environment is well-specified (All elements of the environment are known, dependencies are version pinned, and all extraneous code in the environment has been removed, specific docker tag, for thee smallest image acceptable, the project Dockerfile has been carefully crafted)
PROD: Project is released to public, or delivered to client. (Same docker image as RC/QA, but the environment in which the image is being executed is also closely controlled)


Cow: Watch favazmubarak.com

Cow requests the watch of the watch_keyword favazmubarak\.com. See the MS search here and the Stack Exchange search in text, in URLs, and in code.

favazmubarak\.com has been seen in 1 true positive, 0 false positives, and 0 NAAs.

Approved by Jeff Schaller in Charcoal HQ


Problem with jssg configuration

Hi, could you please add more detailed direction on the read me for jssg configuration?

thanks, I've just added to README.md to config your path with the environment system


Fix issue generations detecting running cron jobs in the last 24 hrs.

Looks like the pull request does not trigger the job with the updated yml. Could this PR be merged and test with another PR?


Mixed file names

Awesome tuts! Keep it up!
I think you mixed up names for 06_1_loss_and_optimizer.py (contains model) and 06_2_model_loss_and_ optimizer.py (does not).

Thanks for reporting this! I fixed it.


Research using multiple proxy gateways with Apinf UI layer

Research whether it is possible to use Apinf as UI layer for several API Umbrella and/or Kong proxies. Sketches in comments by @kyyberi

closing this. We now have support for multiple proxy to which an API backend can be connected.


Add missing square brackets to drive order

Square brackets were missing from the drive order in the docs, this simply adds them. It's correct on the github page (https://github.com/driftyco/ionic-storage#configuring-storage-new-in-117), but not in the docs.

i would like upload my own pull request but i haven't access to do :( https://forum.ionicframework.com/t/documentation-demo-problem-storage/83690

Hi there! Thanks for this PR, but this is not the correct place to make the change. Storage's doc is generated from source, so we'll need to update it there.

Oh...strange...I couldn't find it in the source, only here.
On Tue, Mar 21, 2017 at 3:33 PM, Mike Hartington<EMAIL_ADDRESS>wrote:

Hi there! Thanks for this PR, but this is not the correct place to make
the change. Storage's doc is generated from source, so we'll need to update
it there.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/driftyco/ionic-site/pull/1022#issuecomment-288209594,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AFMhrqlAmYZRifKOMwr-JZz18Ywp6pRfks5roDQagaJpZM4MkPTC
.


Segmentation fault: 11?

Hi,
Im trying to use image clipper - i've installed package prerequisites using OSX and conda. Im getting the following error "Segmentation fault: 11" when i try running ./imageclipper from the file containing the images i need to clip. The executable file is in the folder containing the images.
As an error its a bit cryptic!

Hello,
Sorry for the later reply
Did you compile it yourself? Exactly how did you compile it if that is the case?
Also I'm not sure what conda has to do with anything? You mean you used that to install the prerequisites? I need more information of exactly what you mean, exactly what dependencies you have including the versions.
A segmentation fault is of course bad, possibly due to a bug. But is there no other output whatsoever? It is quite hard to know anything unless I understand the issue in more detail

I also encountered a segment fault issue. I'm on Ubuntu 16.04 and I just followed exactly how you described in the readme to install it. No error occurs. But when I run the built executable, it raise segment fault directly.

@ysyyork ok could you do the following:
# ... Normal instructions
# In the build/ directory according to the instructions
cmake -DCMAKE_BUILD_TYPE=Debug ..
make

Now instead of just running the program by normal, run it inside of gdb
gdb bin/imageclipper

Now when you crash you should get a traceback of the exact place in the code, please paste the full backlog.

The crash comes from boost::filesystem::is_directory. I don't know. Actually I managed to run it last week and I still have a successful build of that. However, this week I want to rebuild, it throws segmentation fault again. I tried deleting boost and reinstall again it's still fail. I don't know what's going on. I just use macports to install the boost.

Well, I kind of solved the issue. I found I have two boost versions and the compile time and runtime use different boost which makes it get chaotic.

ok good to know that might happen. I'll close this then


Use memex> as the default prompt

This is just an idea and implementation of using memex> as the default
CLI prompt instead of iex>.
To me this makes the app feel more tailored to the job of a Memex and
less about Elixir.

Love to hear your thoughts!

Love it! Thanks!!


Flutter Windows Bluetooth no devices found

Hello
I am trying to run the Flutter Windows Bluetooth code example from here
https://github.com/timsneath/win32/blob/main/example/bluetooth.dart
But every time I receive the following message in the console saying that "No devices found."
Building Windows application...
Debug service listening on ws://<IP_ADDRESS>:63106/vuEbeUnJ7W8=/ws
Syncing files to device Windows...
flutter: Found a radio with handle: 0x00000630
flutter: Radio name: DESKTOP-9I77HQ9
flutter: Radio address: 75:90:5D:EA:1D:18
flutter: Bluetooth radio is discoverable.
flutter: No devices found

.
It is similar with https://github.com/timsneath/win32/issues/57 but I am using the latest version and for me it's not working.
The Flutter Doctor is the following:
[√] Flutter (Channel dev, 2.6.0-11.0.pre, on Microsoft Windows [Version 10.0.19042.1348], locale en-US)
• Flutter version 2.6.0-11.0.pre at C:\Flutter\flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision 4b330ddbed (10 weeks ago), 2021-09-16 17:29:58 -0700
• Engine revision 5b81c6d615
• Dart version 2.15.0 (build 2.15.0-116.0.dev)
[√] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
• Android SDK at C:\Users\Alex\AppData\Local\Android\Sdk
• Platform android-30, build-tools 30.0.2
• ANDROID_SDK_ROOT = C:\Users\Alex\AppData\Local\Android\Sdk
• Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
• All Android licenses accepted.
[√] Chrome - develop for the web
• Chrome at C:\Program Files (x86)\Google\Chrome\Application\chrome.exe
[√] Visual Studio - develop for Windows (Visual Studio Community 2019 16.11.5)
• Visual Studio at C:\Program Files (x86)\Microsoft Visual Studio\2019\Community
• Visual Studio Community 2019 version 16.11.31729.503
• Windows 10 SDK version 10.0.19041.0
[√] Android Studio (version 4.0)
• Android Studio at C:\Program Files\Android\Android Studio
• Flutter plugin version 49.0.2
• Dart plugin version 193.7547
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
[√] IntelliJ IDEA Ultimate Edition (version 2020.3)
• IntelliJ at C:\Users\Alex\AppData\Local\JetBrains\Toolbox\apps\IDEA-U\ch-0\203.7148.57
• Flutter plugin version 62.0.1
• Dart plugin version 203.8452
[√] VS Code (version 1.61.2)
• VS Code at C:\Users\Alex\AppData\Local\Programs\Microsoft VS Code
• Flutter extension version 3.28.0
[√] Connected device (4 available)
• Windows (desktop)       • windows • windows-x64     • Microsoft Windows [Version 10.0.19042.1348]
• Windows (UWP) (desktop) • winuwp  • windows-uwp-x64 •
• Chrome (web)            • chrome  • web-javascript  • Google Chrome 96.0.4664.45
• Edge (web)              • edge    • web-javascript  • Microsoft Edge 95.0.1020.53
• No issues found!
It's my first time asking for help, I can give additional info if needed.

I found out that this method only search for classic bluetooth devices, not LE as I wanted :(

@AlexPopaUpcode did u found something to work with LE on windows in flutter ??

@rohitsangwan01 No :(  after a few days I stopped looking for one.

https://pub.dev/packages/win32/changelog
BluetoothLE support is here


Update HTML output to be consistent with CLI output

We should update the HTML output to be consistent with the new CLI table output

Support multiple projects. We should update it so it doesn't use the following deprecated output fields: resources, totalMonthlyCost, totalHourlyCost, and instead uses the projects field.
Remove the file grouping logic we have - this can now be done with the multiple project
Support the --fields flag (when it's merged).  This should work the same way the table output format works
Keep the existing tags functionality so we continue showing the tag list under each resource
Add the Cost depends on usage: XXX

Here's a wireframe for what the output would look like:

Future

How do we show both the breakdown and diff in the output? See: https://github.com/infracost/infracost/issues/509
Support dynamic columns (as per https://github.com/infracost/infracost/issues/524)

Initially let's just have the current HTML output format show a breakdown.

@aliscott, I want to work on it!

Released in v0.9.0


FINERACT-1060: Do not allow delete / update of system user

Checklist
Please make sure these boxes are checked before submitting your pull request - thanks!

[x] Commit message starts with the issue number from https://issues.apache.org/jira/projects/FINERACT/. Ex: FINERACT-646 Pockets API.

[x] Coding conventions at https://cwiki.apache.org/confluence/display/FINERACT/Coding+Conventions have been followed.

[x] API documentation at fineract-provider/src/main/resources/static/api-docs/apiLive.htm has been updated with details of any API changes.

[x] Integration tests have been created/updated for verifying the changes made.

[x] All Integrations tests are passing with the new commits.

[x] Submission is not a "code dump".  (Large changes can be made "in repository" via a branch.  Ask on the list.)

Our guidelines for code reviews is at https://cwiki.apache.org/confluence/display/FINERACT/Code+Review+Guide

Test Failure just due to FINERACT-1016.

/rebase

/rebase


Move source from ballerina-lang

Fixes: https://github.com/ballerina-platform/ballerina-lang/issues/24427
Purpose
Move standard library module RabbitMQ, preserving the git history.
Approach
https://docs.google.com/document/d/1Um4jUaSazZq0uX3_HJk58VDgY6KHo06VuaLebjmKDU0/edit?usp=sharing
https://gist.github.com/aashikam/720e5646af8c9b73cbe3078577597610

In terms of Gradle configurations LGTM.


update authkit urls

These feel useful to have access to so you don't have to go to @workos-inc/node:

Expose the returnPathname
Expose getAuthorizationUrl

Hi there, could you explain why you need getAuthorizationUrl to be exposed? Is there something missing from getSignUpUrl and getSignInUrl?

technically with the first change, I don't. But philosophically, I think the ideal state would be that I only reference authkit-remix, and can get access to the underlying workos/node client for more complex stuff, I find it a bit odd that I have to use both, in different situations:

have loader abstraction to make it easy
have callback abstraction to make it easy
expose a client which is the underlying workOS client, so I can call APIs on it subsequently

All that said, totally fine to just have the URL changes and not the latter if you'd prefer

On exposing the Node SDK here, we're planning on consolidating all our JS libraries into one monorepo, which will make that part easy. I'm a little hesitant to expose the underlying client right now since it would likely require a breaking change in the future.
For the moment would you mind removing the getAuthorizationUrl part? Will happily approve afterward.

sounds good, ✅

sounds good, ✅

yep, signed


Adding world news infrastructure

Added new areas with 'areas.json' to fetch global news.
Added _load_areas function to news.py.
This function loads areas from a specified file and returns them as a list.
Raises IOError if there is an error reading the file.
Fixed bug in _export structure.
The structure to handle the area parameter in the _export function has been added.
Added area parameter for scrape_news_content.
edited scrape_news_content method documentation.
Refactor in validate inputs structure.
Improved validate operations for area parameter.
Added controls that will change according to the url area parameter to send requests.

Hello @mnwato
https://www.tradingview.com/news/world/?area=WLD I have made a new improvement to the infrastructure to be able to bring the news here. My tests are successful, everything is fine, unless I've missed something. If you test it and everything is fine and doesn't need any revisions, all that's left is to edit the README.md file to reflect this improvement.

Hi @muminkoykiran,
Thanks a lot! Sorry for the late response; I had a busy week. I will test, merge, and update the PyPI package as soon as possible.
Furthermore, we need some test scripts to speed up the evaluation process. I will try to create some test scripts.

There was a mistake in building url.
Now we consider query params as filter which user can set. If he does not 'area', 'provider' or 'section' so we set them as empty string in url.
I also made some improvement in input validation (Removed unnecessary rules).


⚠ ClamAV has degraded performance

In 256c112, ClamAV (https://spamassassin.apache.org/) experienced degraded performance:

HTTP code: 200
Response time: 51 ms

Resolved: ClamAV performance has improved in 01c8c9a.


Fix author info problem

Resolves #1222

Can one of the admins verify this patch?

Closed in favor of #1805


Feature/circle ci GitHub dev make script new env

Draft pull-request just to keep track of file changes, work to do, and ensure that tests are passing.

circleCI changes:

node7.10 -> node8.9
use ENV_ENC_FILE variable to choose test environment
add frontend webpack to tests
make_test_org.py script to bootstrap classytest org
test fixes:

parameterize usernames used in tests
repo locations
handful of bugs


Use information from table to do a server_load

How do I do the following on the FastUI Demo page with the Cities: when a city, e.g. Tokyo, is clicked it loads the detailed information of Tokyo at the bottom of the page using a PageEvent with server_load (instead of jumping to a new page, as it is currently implemented)? If I click Delhi, it loads all information on Delhi at the bottom of the page, etc.

I believe there should be a pretty easy way to do this with PageEvent, but I'm getting some errors with the url behavior. Will look into that as a bug!


pre_add_labels_in_df: remove extra copy()

No need to copy label dicts when passing them to add_aliases or add_info_url - they
are being copied in these functions
Signed-off-by: Vadim Rutkovsky<EMAIL_ADDRESS>

This was moved to #692


Rectify bug in AddCommand

AddCommand: add "description" today, throws ArrayOutOfBoundException.
AddCommand: add "description" 12/12/2016, adds a task with tag [12]

AddCommand: add "description" today, throws ArrayOutOfBoundException.
problem: missing[by/on] failed to be captured by the algo, resulting in "today" being processed later
solution: capture the ArrayOutOfBoundException and return invalid command message
AddCommand: add "description" 12/12/2016, adds a task with tag [12]
problem: the previous delimiter of "/" was wrong and so due to the missing[by/to] it throws ArrayOutOfBoundException too
solution: change delimiter to "t/" and catch the ArrayOutOfBoundException to return invalid command message


Image size problem

When i edit any image, it's size will be huge. I put 195KB image, after TUI editor without any filter (just load and downlad) it's size goes 2.2MB.

@bilalmalkoc
Thank you for the bug report. I will resolve it after checking.

same error in size image

+1 - Same issue

+1 2mb > 20mb

Check this
https://github.com/fabricjs/fabric.js/issues/4906
Proposal to fix:

But I'll stick with my own solution https://github.com/nhn/tui.image-editor/pull/568
I will handle the download in custom function

+1

+1

Hello. Any news?

@bilalmalkoc
I haven't fixed that bug yet. Can you contribute it?

As a temporary fix we can use instance method toDataUrl link to the method
In this method we can reduce the size of the image


Discuss: API should be versioned

See details in: https://github.com/CCI-MOC/hil/issues/571
Basically, we should discuss whether we should get started for API versioning through an approach this patch purposes.
And to test:

pull this PR
install hil and configure hil and start hil server
use:

$ hil list_nodes free
or
$ curl -H "Content-Type: application/json" -X GET $HIL_ENDPOINT/nodes/free

And for testing request methods that are not GET:
for example,
$ hil project_create test-project
or
$ curl -X put http://<IP_ADDRESS>:5000/project/mockproject01 -u hil:hil

thanks Naved for sending this to me:
https://stackoverflow.com/questions/389169/best-practices-for-api-versioning
I believe it worths us all to take a look 👍
@naved001 @Izhmash @zenhack

So, I'm increasingly skeptical of the notion that REST is even a good idea for our use cases, and most of the arguments around "good REST design" seem 90% aesthetic, which for a tool that's supposed to be very low-level feels rather bikeshed. Early on I spent a lot of personal energy fussing about the way we do URIs and requests bodies etc. so that it felt "natural" in that pardigm, but the paradigm basically puts for thinking about URIs as resources, documents, and the use of the API as shunting data around, which is an awkward, clumsy way to model what HIL actually does. In retrospect, I think with something more RPC-ish we would have wasted a lot less time bikesheding the mapping of our design to HTTP.
There are important bits of thinking about an HTTP mapping; http verbs have specific semantics around things like caching, side effects, etc. But I've grown weary of arguments that basically amount to "it fits the metaphor better." Metaphors are there to help us understand something, not as a prescription.
From a very pragmatic perspective, I think putting the URL in the version is a good idea, becuase it forces the user to actually specify the version they're depending on. The arguments against it in that stack overflow thread are, frankly, coming more from a dogmatic view about "what REST should be" rather than any kind of serious thought about the problem. The REST metaphor makes sense in some cases, but I'm alergic to paradigms, especially as a way to guide pragmatic design decisions. Historically "good object oriented design" has been used to justify a lot of really crappy techincal decisions; see https://plus.google.com/+RobPikeTheHuman/posts/hoJdanihKwb for a good description. I worry REST has become the same thing to an extent.
We basically cargo-culted openstack when we started this project, which is universally a terribly idea that I've been pushing back on since very early on. Sometimes they do stuff that's sensible, but it's hit or miss, which is why I get a bit annoyed any time "openstack does this" comes up as an argument for something.
I guess what I'm getting at is I'd urge people to think about the concrete. This isn't a call to necessarily ignore aesthetics; a good developer experience is something that I care deeply about. From the closed tag on that post:

Many good questions generate some degree of opinion based on expert experience, but answers to this question will tend to be almost entirely based on opinions, rather than facts, references, or specific expertise.

Sorry for the rant. I guess I feel like the a lot of the details of how to do this are pretty bikeshed, and I'm a bit weary of the discussion.
I also feel like a detailed design is premature; we haven't even talked about when we're going to start stabalizing the API, or what sort of guarantees we want to have. All I really want to do right now is tack '/v0' on to the front of our URLs so that existing tools are very clearly marked as pulling from the unstable API.

We don't have a detailed plan of what to do with the API versioning so it is not bikeshed yet. Thanks so much for the input.
Maybe we should spend some time discussing and writing some specs first so we can actually implement this. And I agree it is still premature for having a detailed plan for now.
In other words, now I do think putting a /v0 on to the front is a good idea. I will update this PR accordingly.
And as a side note, I don't know whether we should even go back to the RPC world. REST solves the problems and it just works. GraghQL might be the future and I honestly don't know how it will go. Admittedly HIL is obviously not like Facebook that has tons of nodes/trees/graph. But GraphQL does allow you to query the exact data you are looking for in one request and I believe it is very powerful.
Again, putting /v0 should give us what we need for now.

Ok, so sounds like we're agreed on the immediate term: just add /v0 to the front of the URLs.
Re: rpc, I think our current API design is perfectly functional and it doesn't seem worth the effort to port everything over to something else. My only complaint is that there's a bit of a disconnect between how people tend to talk/think about it (basically procedure names) and the notion of "REST," and with each change to the API there's been some overhead in discussing how to map things to HTTP, which in retrospect I don't think really provided any value. An rpc design would have obviated those discussions.  But again, I don't think it's a big enough deal to change course.
Re: GraphQL/other speculation: none of these approaches are universally applicable. They each have their use cases, but none of them are "the future" in any general sense. A lot of the ideas behind (all of) these designs have waxed and waned in mindshare over the years, resurging in new forms. Best to avoid the fads and think about actual requirements.

This looks good to me; once the obmd tests are fixed assuming Travis passes I'm happy.
I'm working on debugging the Go stuff now.

Couple of things:

Could you document this somewhere? docs/USING.rst, docs/rest_api.md are the few places I think where we talk about the URI.
rebase this on top of master to get the CI fix

I rebased it. But these commits are still listed separately.

hmmm, there's a bunch of test failures.

Ah, yeah, looks like the /v0 needs to be added in a bunch of places in the tests as well.

I am thinking of how we can create a global /v0 in the tests so that we only need to update one place. Maybe we should even put the version in one settings file?


Revert splitting of Moonbeam receiver contract

Context
To work around issues introduced by the increase in gas cost on Moonbeam, the receiver contract was split into two parts for https://github.com/pendulum-chain/vortex/issues/137, resulting in additional overhead on the frontend application.
It seems like squidrouter managed to deploy a fix that works around this issue and the original logic would work again. To reduce the overhead, the splitting of the receiver contract should get reverted.
TODO

Add changes to allow the execution with either the automatic forwarding or the split receiver contract. When re-adding the logic for the automatic forwarding, point to the old receiver contract 0x066d12e8f155c87a87d9db96eac0594e872c16b2, more info here.
Add a simple boolean flag to a config (either hardcoded or supplied via env variable) that defines which approach should be used.
Test that the 'old' logic works

@pendulum-chain/product this change will also speed up the offramping process.

Hey team! Please add your planning poker estimate with Zenhub @b-yap @gianfra-t @Sharqiewicz @TorstenStueber

We should probably also test what Squidrouter did in the mean time. Do they really respect the estimatedGas parameters? Can we change this in the future if we need to (e.g., if Moonbeam changes their weight settings again?)

I would personally leave the code around. Not as an automatic fallback since that would be quite a lot of work for a very unlikely scenario, but such that it's easy to plug the "new" logic back.

@gianfra-t so the suggestion would be to have a config parameter that determines what option we want to use? Could make sense that way.

Good point, I changed the description to reflect that.

@ebma @TorstenStueber, Will the reduction of the overhead as a result of this change result in the off-ramp becoming quicker for the user? By how much would this change quicken flow?

Yes. About 10-20 seconds.

@vadaynujra moved this ticket to being prepared in the light of current priority


Promote driver to build for JDK11

Promotes driver to build/compile jre11 compatible Jars
Drops jre10 support with End of JDK10 support cycle.

Note: Awaiting Appveyor CI to support Java 11 (Issue 2652 tracked for the same)

Codecov Report

Merging #824 into dev will decrease coverage by 0.05%.
The diff coverage is n/a.

@@             Coverage Diff             @@
##               dev     #824      +/-   ##
===========================================
- Coverage     48.4%   48.34%   -0.06%
+ Complexity    2790     2784       -6
===========================================
  Files          116      116
  Lines        27878    27877       -1
  Branches      4651     4651
===========================================
- Hits         13493    13477      -16
- Misses       12173    12184      +11
- Partials      2212     2216       +4

Flag
Coverage Δ
Complexity Δ

#JDBC42
47.82% <ø> (-0.15%)
2739 <ø> (-9)

#JDBC43
48.28% <ø> (+0.01%)
2779 <ø> (-1)
:arrow_down:

Impacted Files
Coverage Δ
Complexity Δ

...om/microsoft/sqlserver/jdbc/SQLServerBulkCopy.java
52.34% <0%> (-0.37%)
262% <0%> (-2%)

...m/microsoft/sqlserver/jdbc/SQLServerResultSet.java
32.77% <0%> (-0.35%)
256% <0%> (-4%)

...in/java/com/microsoft/sqlserver/jdbc/IOBuffer.java
54.51% <0%> (-0.17%)
0% <0%> (ø)

...oft/sqlserver/jdbc/SQLServerParameterMetaData.java
24.62% <0%> (+0.05%)
31% <0%> (ø)
:arrow_down:

...rc/main/java/com/microsoft/sqlserver/jdbc/dtv.java
62.46% <0%> (+0.11%)
0% <0%> (ø)
:arrow_down:

...n/java/com/microsoft/sqlserver/jdbc/Parameter.java
64.12% <0%> (+0.4%)
64% <0%> (ø)
:arrow_down:

Continue to review full report at Codecov.

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


Atom media player only playing one file

I have a pair of Atom devices (one Atom Echo, one Atom Lite with the speaker kit attached), which I’m using as a basic media player for ambient sounds around the house while working (think rain sounds, etc).
I’ve noted that they will only play one media source/file, and to play something else requires a reboot of the device, e.g. (testing with Media function in HA)

Plug the device in
Start playing a media file, plays ok
Pause, play, pause, play, etc on that file, plays ok
Start playing a different media file, doesn’t play
Try playing the first media file again, doesn’t play
Reboot the device
Repeat from 2 above

I’m running on current versions of all components, and using the default “build” provided by the “ready made project” option on ESPHome, with a vanilla config, e.g.:
`
substitutions:
name: m5stack-atom-speaker-kit-315bd0
friendly_name: Study Atom Speaker 315bd0
packages:
m5stack.atom-speaker-kit: github://esphome/firmware/media-player/m5stack-atom-speaker-kit.yaml@main
esphome:
name: ${name}
name_add_mac_suffix: false
friendly_name: ${friendly_name}
api:
encryption:
key:
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
fast_connect: true
`
Log entries for versions...
[12:19:09][I][app:102]: ESPHome version 2024.2.2 compiled on Mar  6 2024, 11:26:22 [12:19:09][I][app:104]: Project m5stack.atom-speaker-kit version 1.0
Log entries for testing...
[12:19:27][D][media_player:059]: 'Study Atom Speaker 315bd0' - Setting [12:19:27][D][media_player:066]:   Media URL: http://a.b.c.d:8123/media/local/BlueyMedia/rain-and-thunder-16705.mp3?authSig=<snip> [12:19:28][W][component:214]: Component i2s_audio.media_player took a long time for an operation (0.54 s). [12:19:28][W][component:215]: Components should block for at most 20-30ms. [12:19:47][D][media_player:059]: 'Study Atom Speaker 315bd0' - Setting [12:19:47][D][media_player:063]:   Command: PAUSE [12:19:53][D][media_player:059]: 'Study Atom Speaker 315bd0' - Setting [12:19:53][D][media_player:063]:   Command: PLAY [12:20:01][D][media_player:059]: 'Study Atom Speaker 315bd0' - Setting [12:20:01][D][media_player:063]:   Command: PAUSE [12:20:05][D][media_player:059]: 'Study Atom Speaker 315bd0' - Setting [12:20:05][D][media_player:066]:   Media URL: http://a.b.c.d:8123/media/local/BlueyMedia/birds-in-the-morning-24147.mp3?authSig=<snip> [12:20:15][D][media_player:059]: 'Study Atom Speaker 315bd0' - Setting [12:20:15][D][media_player:063]:   Command: PLAY [12:20:25][D][media_player:059]: 'Study Atom Speaker 315bd0' - Setting [12:20:25][D][media_player:063]:   Command: PLAY
Tests timestamped 12:19:27 through 12:20:01 are successful (first file, 2&3 above).
Tests timestamped 12:20:05 through 12:20:25 fail (second file, 4 above).
Any idea here? I presume that it should be possible to switch back and forth between media files/streams without rebooting?

Update to the above issue. Testing with the now current version (ESPHome version 2024.3.0), it looks like the issue is when you open a non-MP3 stream (e.g. AAC) it causes the device to crash/hang/reset, and while you can reconnect to it for logging it then won't play any further streams until a hard power-off & power-on again.
[11:23:39][D][api:102]: Accepted <IP_ADDRESS> [11:23:39][D][api.connection:1159]: Home Assistant 2024.3.1 (<IP_ADDRESS>): Connected successfully [11:23:44][D][media_player:059]: 'Study Atom Speaker 315bd0' - Setting [11:23:44][D][media_player:066]:   Media URL: http://<IP_ADDRESS>:8123/media/local/BlueyMedia/rain-and-thunder-16705.mp3?authSig=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJiZjQ5ZGNmMjRmOTk0OTIxODE0MDNjNjY1YzQzMGIxOCIsInBhdGgiOiIvbWVkaWEvbG9jYWwvQmx1ZXlNZWRpYS9yYWluLWFuZC10aHVuZGVyLTE2NzA1Lm1wMyIsInBhcmFtcyI6W10sImlhdCI6MTcxMDkzMzgyNCwiZXhwIjoxNzExMDIwMjI0fQ.2YiLO39su6S1PoIm0E_UGVghnA88CVht0h4zpwhhtpQ [11:23:45][W][component:232]: Component i2s_audio.media_player took a long time for an operation (537 ms). [11:23:45][W][component:233]: Components should block for at most 30 ms. [11:23:54][D][media_player:059]: 'Study Atom Speaker 315bd0' - Setting [11:23:54][D][media_player:066]:   Media URL: http://<IP_ADDRESS>:8123/media/local/BlueyMedia/birds-in-the-morning-24147.mp3?authSig=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJiZjQ5ZGNmMjRmOTk0OTIxODE0MDNjNjY1YzQzMGIxOCIsInBhdGgiOiIvbWVkaWEvbG9jYWwvQmx1ZXlNZWRpYS9iaXJkcy1pbi10aGUtbW9ybmluZy0yNDE0Ny5tcDMiLCJwYXJhbXMiOltdLCJpYXQiOjE3MTA5MzM4MzQsImV4cCI6MTcxMTAyMDIzNH0.skC5Cdq0imOeb1gOkJvZ11hHyNxyTuq9GQwpKI4E8I8 [11:23:55][W][component:232]: Component api took a long time for an operation (359 ms). [11:23:55][W][component:233]: Components should block for at most 30 ms. [11:24:32][D][media_player:059]: 'Study Atom Speaker 315bd0' - Setting [11:24:32][D][media_player:066]:   Media URL: http://rainyday.radio.mynoise.net/ [11:24:32][W][component:232]: Component api took a long time for an operation (396 ms). [11:24:32][W][component:233]: Components should block for at most 30 ms. [11:24:32][W][component:232]: Component i2s_audio.media_player took a long time for an operation (332 ms). [11:24:32][W][component:233]: Components should block for at most 30 ms. [11:24:38][D][media_player:059]: 'Study Atom Speaker 315bd0' - Setting [11:24:38][D][media_player:066]:   Media URL: http://zengarden.radio.mynoise.net/ [11:24:38][W][component:232]: Component api took a long time for an operation (253 ms). [11:24:38][W][component:233]: Components should block for at most 30 ms. [11:24:39][W][component:232]: Component i2s_audio.media_player took a long time for an operation (163 ms). [11:24:39][W][component:233]: Components should block for at most 30 ms. [11:24:43][D][media_player:059]: 'Study Atom Speaker 315bd0' - Setting [11:24:43][D][media_player:066]:   Media URL: http://oceanwaves.radio.mynoise.net/ [11:24:43][W][component:232]: Component api took a long time for an operation (327 ms). [11:24:43][W][component:233]: Components should block for at most 30 ms. [11:24:43][W][component:232]: Component i2s_audio.media_player took a long time for an operation (147 ms). [11:24:43][W][component:233]: Components should block for at most 30 ms. [11:25:34][D][media_player:059]: 'Study Atom Speaker 315bd0' - Setting [11:25:34][D][media_player:066]:   Media URL: https://playerservices.streamtheworld.com/api/livestream-redirect/RFMAAC_SC [11:25:35][W][component:232]: Component api took a long time for an operation (891 ms). [11:25:35][W][component:233]: Components should block for at most 30 ms. [11:25:36][W][component:232]: Component i2s_audio.media_player took a long time for an operation (899 ms). [11:25:36][W][component:233]: Components should block for at most 30 ms. WARNING m5stack-atom-lite-315bd0 @ <IP_ADDRESS>: Connection error occurred: [Errno 104] Connection reset by peer INFO Processing unexpected disconnect from ESPHome API for m5stack-atom-lite-315bd0 @ <IP_ADDRESS> WARNING Disconnected from API INFO Successfully connected to m5stack-atom-lite-315bd0 @ <IP_ADDRESS> in 0.008s INFO Successful handshake with m5stack-atom-lite-315bd0 @ <IP_ADDRESS> in 0.100s [11:26:00][D][media_player:059]: 'Study Atom Speaker 315bd0' - Setting [11:26:00][D][media_player:066]:   Media URL: https://23603.live.streamtheworld.com/RFMAAC.aac [11:26:01][W][component:232]: Component i2s_audio.media_player took a long time for an operation (1331 ms). [11:26:01][W][component:233]: Components should block for at most 30 ms.
The last 2 streams above seem to be both AAC and cause the issue, the previous streams seem to be MP3, some local from HA and the others from the Internet.

Tested with AAC sample files downloaded from https://getsamplefiles.com/sample-audio-files/aac
On the shorter file (sample-3) the device attempts to decode, fails to play, but eventually seems to recover.
On a longer file (sample-1) the device attempts to decode, fails to play, and eventually exceptions and resets (log attached)
esp-web-tools-logs.txt.
.


"Big Query" -> "BigQuery" for consistency in README.md.

README.md was inconsistent regarding use of "Big Query" and "BigQuery". The official name is BigQuery (no space) as shown on https://cloud.google.com/bigquery, so all uses changed to BigQuery.

/gcbrun


refactor: update more text to string

Since Postgres treats text and varchar (with no limit) the same under the hood, we don't need to make a distinction unless there's a limit.
Note: There's still Text usage in warehouse.packaging.models which has yet to be fully converted. Once it is, expect to see a similar migration.
Refs: https://www.postgresql.org/docs/current/datatype-character.html

No idea what's going on with RTD builds.


Cert that I get looks weird

I used to try to use this tool on my home k3s.
I don't know the meaning of Group name (dint find it on Hetzner docs and not in the README), so I use my Zone name.
I do all steps in the README. I have seen the TXT Record was created in the Hetzner DNS Console, but after some seconds it was deleted.
Here is the log of the webhook-hetzner pod:

I am confused, the client IP is <IP_ADDRESS> this is an internal IP of the cluster. When I want to connect to my master, I use <IP_ADDRESS>. The remaining log looks pretty normal to me, no errors.
In the end, I have no Let's encrypt Cert on my Ingress. (Only the trafik default)
Am I doing something wrong with the Ingress controller or does the error occur earlier?

I get a Cert in the Ingress 🎉
I don't know what I did wrong.
But the Problem, the Cert look weird:

Good to hear! 👍

Ahh sorry, did you know what's wrong with the Cert?
I have no verified by on the cert.
My assumption was that Lets Encrypt  would be their.
This is my Issuer:
apiVersion: cert-manager.io/v1
kind: ClusterIssuer
metadata:
  name: letsencrypt-staging
spec:
  acme:
    # The ACME server URL
    server: https://acme-staging-v02.api.letsencrypt.org/directory

    # Email address used for ACME registration
    email<EMAIL_ADDRESS>
    # Name of a secret used to store the ACME account private key
    privateKeySecretRef:
      name: letsencrypt-staging

    solvers:
      - dns01:
          webhook:
            # This group needs to be configured when installing the helm package, otherwise the webhook won't have permission to create an ACME challenge for this API group.
            groupName: hackwiki.de
            solverName: hetzner
            config:
              secretName: hetzner-secret
              zoneName: hackwiki.de # (Optional): When not provided the Zone will searched in Hetzner API by recursion on full domain name
              apiUrl: https://dns.hetzner.com/api/v1

I didn't get what do you mean? Client verifies certificate. You/computer decides whether to trust CA or not based on local CA truststore.

Please make test with openssl and paste output here, because I still don't understand the problem.
openssl s_client -connect example.com:443

The problem was that I use the Let's Encrypt Staging URL and not the real one. Works great. Thanks for your work.


Jenkins: Increase timeouts for stages

Due the new test the build duration will be a bit bigger, increase the
timeout a little bit to no trigger timeouts.
Signed-off-by: Eloy Coto<EMAIL_ADDRESS>

This change is

test-me-please

test-missed-k8s


Add keyboard shortcut for "Select Language Mode"

The little thing in the bottom-right corner where you can select language mode would be a useful candidate for adding a keyboard shortcut. It doesn't even have to have a real shortcut by default, but in my case I would find it very useful to have the ability to assign a shortcut to it.
Here's an example workflow where it would come in handy. (I find myself doing this a lot and wish there were a way to add a shortcut.)

Graph some code from somewhere (a SQL query from Slack, or a GraphQL query from the Network tab, or some YAML printed from a debug log) and copy-paste it into a new tab in VSCode.
VSCode doesn't correctly figure out what language the code is in.
Go to the bottom right corner, click the (sometimes very small) button to Select Language Mode. (This is the part I want a keyboard shortcut for.)
Select the correct language.
Hit alt-shift-F to format the code.

And you're done. Basically these steps allow you to take code from some random source, where it's probably unformatted and may not be syntax-highlighted, and allow you to format & inspect it in VSCode. If Step 3 above were able to be automated via a keyboard shortcut, it would make this process quite a bit more ergonomic.
What do you think? If there's already a way to do this, I'm open to hearing it. As of right now, I open Keyboard Shortcuts and search for Select Language Mode but nothing pops up, so it appears that a new keyboard shortcut needs to be added.

Try without the "Select " prefix:

Try with workbench.action.editor.changeLanguageMode

We closed this issue because it is a question about using VS Code rather than an issue or feature request. Please search for help on StackOverflow, where the community has already answered thousands of similar questions. You may find their guide on asking a new question helpful if your question has not already been asked. See also our issue reporting guidelines.
Happy Coding!


Spyder's internal console steals focus when there is a traceback

From<EMAIL_ADDRESS>on 2012-08-07T18:22:30Z
Spyder Version:  2.1.9
Python Version:  2.7.2
Qt Version:      4.7.4, PyQt4 (API v1) 4.8.6 on Windows
What steps will reproduce the problem?

Have the internal console closed (to save screen real-estate or for whatever reason you want).
Place cursor focus in a (regular) console window.
Import some module, say os
Start typing a class name, add a period and stop to think.
When Spyder attempts to show the autocomplete list, it chokes and throws a TypeError. If the internal console is closed, it will open up and steal cursor focus. What is the expected output? What do you see instead? I expected my cursor to remain where it was: directly after the period I just typed. Instead, a new window has popped up and stolen focus. Now I have to grab the mouse and click my console to return to normal text entry.

Please provide any additional information below
.
Original issue: http://code.google.com/p/spyderlib/issues/detail?id=1130

From<EMAIL_ADDRESS>on 2012-10-02T11:06:21Z
I know I've seen spyder run into some error and switch to the internal console and my first thought has always been: what's going on, why did that just randomly open up (oh, there was some error. well whatever) now I have to close it and go back to what I was doing.  (I'll admit that I tend to not report errors that come up, unless they are actually blocking my work or causing me more trouble than just a pop-up message that can be dismissed).
I would suggest that a pop-up explaining that an error occurred is better than automatically switching to the internal console.  The advantage of the pop-up over switching to the internal console is that pop-ups are an expected mechanism for notifying the user of some unexpected condition, whereas switching to an internal console is entirely foreign and confusing.  The pop-up could give the option to switch to the internal console (if the console can be used for additional debugging/diagnosis/fixing of the problem encountered) or to report the error.

From pierre.raybaut on 2012-08-08T04:22:37Z
This is not a bug: this is the intended behavior. However, the TypeError is a bug and should be reported here with the full traceback (I suppose that you just did with issue #1131 ).
Let me explain why. If Spyder encounters a non handled error, the internal console is expected to intercept it and raise the exception with the full traceback. As this is not a normal behavior, the internal console takes focus to inform the user that the action just performed has failed (this avoids bugs to stay hidden for a long time or to be difficult to fix because the exact cause is unknown) and also to force him or her to report the bug with the associated traceback. We could even push the idea further and popup a window for the user to describe how the bug happened and submit automatically the report to GoogleCode's bug tracker.
Now, I understand that it's annoying if the focus is systematically set to the internal console but I'm afraid that if we change that, users will be tempted to simply ignore the bug. This would be a pity as our ability to react and fix bugs is generally very good. On the other hand, if we continue with this (sometimes) annoying behavior, we will probably displease some users but my guess is that we would displease more by ignoring bugs and letting them poison the Spyder experience silently.

From pierre.raybaut on 2012-10-02T11:13:22Z
This is no longer an issue following revision dd1ac6703caf .
Status: Fixed


Cannot Use Persistent Volumes with AcceptedResourceRole

https://jira.mesosphere.com/browse/MARATHON-1379
Error Message: A resident app must have acceptedResourceRoles = ["*"].
Here are two examples. One that works and one that is broken once try to add:
  "acceptedResourceRoles": [
    "*",
    "slave_public"
  ],

Working JSON:
{
  "id": "/mysql",
  "cpus": 1,
  "mem": 512,
  "disk": 0,
  "instances": 1,
  "container": {
    "type": "DOCKER",
    "volumes": [
      {
        "containerPath": "mysqldata",
        "mode": "RW",
        "persistent": {
          "type": "root",
          "size": 1000
        }
      },
      {
        "containerPath": "/var/lib/mysql",
        "hostPath": "mysqldata",
        "mode": "RW"
      }
    ],
    "docker": {
      "image": "mysql",
      "network": "BRIDGE",
      "portMappings": [
        {
          "containerPort": 3306,
          "hostPort": 0,
          "servicePort": 10000,
          "protocol": "tcp"
        }
      ],
      "forcePullImage": false
    }
  },
  "env": {
    "MYSQL_USER": "wordpress",
    "MYSQL_PASSWORD": "secret",
    "MYSQL_ROOT_PASSWORD": "supersecret",
    "MYSQL_DATABASE": "wordpress"
  },
  "upgradeStrategy": {
    "minimumHealthCapacity": 0,
    "maximumOverCapacity": 0
  }
}

Not Working JSON:
{
  "id": "/mysql-broken",
  "cpus": 1,
  "mem": 512,
  "disk": 0,
  "instances": 1,
  "container": {
    "type": "DOCKER",
    "volumes": [
      {
        "containerPath": "mysqldata",
        "mode": "RW",
        "persistent": {
          "type": "root",
          "size": 1000
        }
      },
      {
        "containerPath": "/var/lib/mysql",
        "hostPath": "mysqldata",
        "mode": "RW"
      }
    ],
    "docker": {
      "image": "mysql",
      "network": "BRIDGE",
      "portMappings": [
        {
          "containerPort": 3306,
          "hostPort": 0,
          "servicePort": 10000,
          "protocol": "tcp"
        }
      ],
      "forcePullImage": false
    }
  },
  "env": {
    "MYSQL_USER": "wordpress",
    "MYSQL_PASSWORD": "secret",
    "MYSQL_ROOT_PASSWORD": "supersecret",
    "MYSQL_DATABASE": "wordpress"
  },
  "upgradeStrategy": {
    "minimumHealthCapacity": 0,
    "maximumOverCapacity": 0
  },
  "acceptedResourceRoles": [
    "*",
    "slave_public"
  ]
}

Comment from @bernadinm:
https://github.com/mesosphere/marathon/blob/master/src/main/scala/mesosphere/marathon/state/ResourceRole.scala#L14-L21

To use another role than * we need to handle pre-reserved resources.
We need to scope this.
Can we unreserve/reserve resources to apply labels?
What is the intention if the app is deleted (what happens to the reservation).

Note: This issue has been migrated to https://jira.mesosphere.com/browse/MARATHON-4729. For more information see https://groups.google.com/forum/#!topic/marathon-framework/khtvf-ifnp8.


which layers does train_softmax.py train?

So I was wondering, if I use train_softmax.py on my own dataset (training set) of just two classes, along with --pretrained model of VGGFace2 (using Inception_resnet_v1), does the network train just the final fully connected layers, not updating the conv/pooling layer weights previously?
Also, I have removed all the center loss terms and values from the code, as center loss keeps on going higher and higher until it hits infinity. I think its because of just 2 classes. Now I don't have any problem like that
In a nutshell, I was wondering if right now, I'm just training a CNN's final FC layers, keeping the weights of all layers previously as constant? This is what I wish to do.
Thanks!

I am encountering the same issue you had/have with the center loss value increasing until infinity. What did you change in order to get around this issue, and does it still actually train correctly?
I noticed that after center loss hit infinity, the training would eventually make Loss : nan Cl: nan, and other variables nan which has to be incorrect. This is with train_softmax.py.

So in case you are also doing few classes ( I did just 2) then you need to remove the center loss components from the code. Just look at where center loss is being calculated, and then comment it out, and also remove all resulting center loss additions into the total loss.
I did this and had a good nw which performed as expected.

Can you possibly show me the command line you used when training with softmax? I believe I've done what you said, however when I train it now. I have seemingly very high accuracy (1.00 99% of the time), and whenever my validate epoch occurs (every 5 epochs). It states:
Time 0:00 Loss Nan Xent Nan Accuracy Nan
Then also, the "Saving statistics" part freezes eventually.
I have two classes, one with ~500 images, the other with ~1500 images.

I don't know what you mean by command. I used the normal command line of train_softmax.py as shown. (look at the parser arguments).
Also I didn't use validation function from code. I don't remember why but I think either the validate or the evalute function from code compares the image embeddings to some LFW dataset, and its complex.
I didn't have any problems with freezing so it has to do with your implementation.....(the dataset looks fine, but it might be very few images for a deep network like Resnet inception V1. Maybe try with a larger dataset and see if problem persists?)


Uncaught (in promise) Error: Box.constructor - expected box to be IBoundingBox | IRect, instead have {"left":0.15384615384615385,"top":null,"right":0.15384615384615385,"bottom":null}

Uncaught (in promise) Error: Box.constructor - expected box to be IBoundingBox | IRect, instead have {"left":0.15384615384615385,"top":null,"right":0.15384615384615385,"bottom":null}
at ff.lf (face-api.min.js:1:540088)
at new ff (face-api.min.js:1:540496)
at hg. (face-api.min.js:1:570989)
at face-api.min.js:1:1933
at Object.next (face-api.min.js:1:2038)
at n (face-api.min.js:1:809)
Am I doing this wrong or is this an actual issue?

I had the exact same problem and I solved it using node.js with express. You can get my repository from here RealTimeFaceDetectionApp. You will need a webcam in order to work or, if you have Windows 10, you can use Camo Studio from Microsoft Store which will use your smartphone camera as a webcam.


fix(user/login): remove case insensitive search on user email

closes #415

Is the title correct for this PR? "remove case insensitive search on user email" - not sure what removing get_by_natural_key actually achieves here? I feel like we should not allow<EMAIL_ADDRESS>and<EMAIL_ADDRESS>to both register, even if it breaks the RFC. I feel like if<EMAIL_ADDRESS>exists in our DB, we should not allow<EMAIL_ADDRESS>to register.


feat: support coverage

Coverage remained the same at 22.105% when pulling 3c54742762714f8f40c222176f9fb51e5a9e7083 on support-coverage into 537aa3ab277594fa0f87e25430d5ac2b6ea14525 on master.


FilterView should allow filtering on rating

Can't filter on rating (safe, questionable, etc) using filterView.
Rating doesn't apply to the tags, but can be applied to the images. [The count of images for the tag wouldn't necessarily match the count of images shown.]

I forgot [because it is completely un-intuitive!]: the rating control in postsFilterView will affect which images are shown!

Need to add rating controls
Need to pass rating to callback in addition to tag
In tagview.py, filterCall / producer extended to use rating from filterView instead of postsFilterView


Run tests in single class instance

With ruby minitest, each test within a test file is run on a new instance of the test class. This prevents instance variables set in one test leaking into another test.

closes #6

Excellent!


"application/json" content type is not handled in KeyVault references

Internally AzureKeyVaultKeyValueAdapter doesn't handle ContentType property of secret value and returns naked value.
So we have dual behavior when same JSON setting stored directly or using keyvault reference with application/json content type returned as object or string.
I think problem seats at this peace of AzureKeyVaultKeyValueAdapter  code
       if (client) {             // TODO: what if error occurs when reading a key vault value? Now it breaks the whole load.             const secret = await client.getSecret(secretName, { version });             return [setting.key, secret.value]; // here it returns raw value without considering secret.properties.contentType value         }
Thank you,

Good catch, it's a bug. Secret value is directly returned without being processed by JSON adapter. Will fix it soon.

@avanigupta
AFAIK dotnet provider doesn't honor content type of a key vault secret either, and it flattens JSON into configuration entries. This use case is valid for JavaScript, not sure if it also applies to dotnet and if we want to support this in dotnet provider.

Besides content type, there are also some other properties we might honor, activation date and expiration date. probably we should do some verification, not to return the value (or throw an exception) if current date is not within the range [activation, expiration].

@vputsenko
It's still under discussion with some concerns. So I closed the quickfix PR in favor of a general solution for similar use cases.
Currently you can use KeyVaultOptions.secretResolver to resolve the secret reference with customized logic as a workaround.
    /**
     * Specifies the callback used to resolve key vault references that have no applied SecretClient.
     * @param keyVaultReference The Key Vault reference to resolve.
     * @returns The secret value.
     */
    secretResolver?: (keyVaultReference: URL) => string | Promise<string>;

Note: Here I think secretResolver should return known type instead of string, as we allow values of the config map to be any type.
e.g.
const settings = await load(connectionString, {
    keyVaultOptions: {
        secretResolver: (kvrUrl) => {
            // create a secret client to fetch secret value from Azure Key Vault
            const secretClient = new SecretClient(kvrUrl, new DefaultAzureCredential());
            const secret = secretClient.getSecret(secretName);
            // an example to parse JSON for specific content type, can be more robust to deal with complicated MIME types
            if (secret.properties.contentType === "application/json") {
                return JSON.parse(secret.value) ;
            } else {
                return secret.value;
            }
        }
    }
});

Hi, i understand that .NET impl has different handling for JSON secrets, but also we need to answer question "How contentType  of keyvault secret should be used then ?)" I thought that its direct role to tell how data should be interpreted ... I understand that fix should be common for all platforms, may be we can add some flag for .NET client to have this behavior there too ? I would say more that flattening is not always desired behavior too.

@zhiyuanliang-ms it's on your radar now ;)


ArchLinux package for official repository

Hello, thanks for the tool for Azure!
Is your feature request related to a problem? Please describe.
There is AUR package for Azure CLI, https://aur.archlinux.org/packages/python-azure-cli/ and other. The AUR package is community driven. To install it I needed to manually do git clone, makepkg -si on each dependency. There are a lot of them (generally from pip). So I'm not sure I did all correctly, in fact I run it for every missing dependency at the end of the list. Now I'm getting this acs error for each command (see below). And az interactive breaks with the following erorr.
[I] ➜ az acr check-health
Error loading command module 'acs'
An error occurred: DOCKER_COMMAND_ERROR
Please verify if Docker client is installed and running.

Please refer to https://aka.ms/acr/errors#docker_command_error for more information.

[I] ➜ az interactive
Error loading command module 'acs'
This command is in preview. It may be changed/removed in a future release.
az>> Error loading command module 'acs'
Exception in thread Thread-1:
Traceback (most recent call last):
  File "/usr/lib/python3.8/threading.py", line 932, in _bootstrap_inner
    self.run()
  File "/home/art/.azure/cliextensions/interactive/azext_interactive/azclishell/threads.py", line 21, in run
    FreshTable(self.shell).dump_command_table(self.shell)
  File "/home/art/.azure/cliextensions/interactive/azext_interactive/azclishell/_dump_commands.py", line 88, in dump_command_table
    main_loader.load_arguments(None)----------------------------------------------------------------------------------------------------
  File "/home/art/.azure/cliextensions/interactive/azext_interactive/azclishell/_dump_commands.py", line 49, in load_arguments
    command.load_arguments()------------------------------------------------------------------------------------------------------------
  File "/usr/lib/python3.8/site-packages/azure/cli/core/commands/__init__.py", line 291, in load_arguments
    super(AzCliCommand, self).load_arguments()------------------------------------------------------------------------------------------
  File "/usr/lib/python3.8/site-packages/knack/commands.py", line 97, in load_arguments
    cmd_args = self.arguments_loader()mespath query from previous command
  File "/usr/lib/python3.8/site-packages/azure/cli/core/__init__.py", line 490, in default_arguments_loader
    op = handler or self.get_op_handler(operation, operation_group=kwargs.get('operation_group'))
  File "/usr/lib/python3.8/site-packages/azure/cli/core/__init__.py", line 530, in get_op_handler
    op = import_module(mod_to_import)cope, and scopes can be chained with spaces
  File "/usr/lib/python3.8/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 783, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/usr/lib/python3.8/site-packages/azure/cli/command_modules/acr/build.py", line 17, in <module>
    from ._stream_utils import stream_logs
  File "/usr/lib/python3.8/site-packages/azure/cli/command_modules/acr/_stream_utils.py", line 12, in <module>
    from azure.storage.blob import AppendBlobService
ImportError: cannot import name 'AppendBlobService' from 'azure.storage.blob' (/usr/lib/python3.8/site-packages/azure/storage/blob/__init__.py)

Describe the solution you'd like
Could we have a package in the official ArchLinux repository with Azure CLI with all dependancies installed?
Describe alternatives you've considered
There is manual install (https://docs.microsoft.com/en-us/cli/azure/install-azure-cli-linux?view=azure-cli-latest). But as the tool is frequently updated and has dependencies it would be great to have auto install.
Probably some virtualization (docker image?) would work.
Additional context

@fengzhou-msft Pleas take a look here. About ArchLinux request

Please see this discussion, https://bbs.archlinux.org/viewtopic.php?id=250991. The point is Azure CLI can be only promoted by the community by casting the votes for a package (https://aur.archlinux.org/packages/python-azure-cli/). So seems we can close this issue.


Kdrama Page to be added

Is your feature request related to a problem? Please describe.
Kdrama page not available

kdrama page addded, liked page removed.


no_dns_just_forward_to_parent is broken in 7.1.1

--request--
curl  -vv http://www.google.com -o /dev/null
(google.com resolves to the proxy IP)
--records.config--
CONFIG proxy.config.http.no_dns_just_forward_to_parent INT 1
--diags.log--
[Oct 21 08:43:35.530] Server {0x7f679d7c4700} DEBUG: <HttpSM.cc:4193 (do_hostdb_lookup)> (http_seq) [HttpSM::do_hostdb_lookup] Doing DNS Lookup
[Oct 21 08:43:35.530] Server {0x7f679d7c4700} DEBUG: <HttpTransact.cc:8415 (ink_cluster_time)> (http_trans) [ink_cluster_time] local:<PHONE_NUMBER>, highest_delta: 0, cluster:<PHONE_NUMBER>
[Oct 21 08:43:35.530] Server {0x7f679d7c4700} DEBUG: <HttpTransact.cc:1640 (OSDNSLookup)> (http_trans) [4] [HttpTransact::OSDNSLookup] This was attempt 0
[Oct 21 08:43:35.530] Server {0x7f679d7c4700} DEBUG: <HttpTransact.cc:1702 (OSDNSLookup)> (http_seq) [4] [HttpTransact::OSDNSLookup] DNS Lookup successful
[Oct 21 08:43:35.530] Server {0x7f679d7c4700} DEBUG: <HttpTransact.cc:1741 (OSDNSLookup)> (http_trans) [4] [OSDNSLookup] DNS lookup for O.S. successful IP: <IP_ADDRESS>
[Oct 21 08:43:35.530] Server {0x7f679d7c4700} DEBUG: <HttpTransact.cc:1848 (HandleRequestAuthorized)> (http_trans) Next action SM_ACTION_API_OS_DNS; HttpTransact::DecideCacheLookup

I don't understand why TrafficServer is doing DNS lookups when explicitly instructed not to do so. This behavior was not seen in 6.2.1. Has anything changed?

Any update on this?

more logs
[Nov 16 18:14:44.819] Server {0x7f6c63ffe700} DEBUG: <DNS.cc:1091 (getby)> (dns) received query www.google.com type = 1, timeout = 0 [Nov 16 18:14:44.819] Server {0x7f6c68a61700} DEBUG: <DNS.cc:1057 (mainEvent)> (dns) enqueing query www.google.com [Nov 16 18:14:44.819] Server {0x7f6c68a61700} DEBUG: <DNS.cc:1063 (mainEvent)> (dns) adding first to collapsing queue [Nov 16 18:14:44.819] Server {0x7f6c68a61700} DEBUG: <DNS.cc:978 (write_dns_event)> (dns) send query (qtype=1) for www.google.com to fd 42 [Nov 16 18:14:44.819] Server {0x7f6c68a61700} DEBUG: <DNS.cc:1010 (write_dns_event)> (dns) sent qname = www.google.com, id = 47148, nameserver = 1 [Nov 16 18:14:44.819] Server {0x7f6c68a61700} DEBUG: <P_DNSProcessor.h:239 (sent_one)> (dns) sent_one: failover_number for resolver 1 is 1 [Nov 16 18:14:44.874] Server {0x7f6c68a61700} DEBUG: <DNS.cc:759 (recv_dns)> (dns) received packet size = 184 [Nov 16 18:14:44.874] Server {0x7f6c68a61700} DEBUG: <DNS.cc:761 (recv_dns)> (dns) round-robin: nameserver 1 DNS response code = 12 [Nov 16 18:14:44.874] Server {0x7f6c68a61700} DEBUG: <DNS.cc:1560 (dns_process)> (dns) received A name = www.google.com [Nov 16 18:14:44.874] Server {0x7f6c68a61700} DEBUG: <DNS.cc:1180 (dns_result)> (dns) SUCCESS result for www.google.com = <IP_ADDRESS> retry 0 [Nov 16 18:14:44.874] Server {0x7f6c63ffe700} DEBUG: <DNS.cc:1268 (postEvent)> (dns) called back continuation for www.google.com

this should be working in 8.0.

Closing this issue. Please reopen if you see this issue again.


Webpack 3 stats.json won't upload.

I am currently getting this error message:
Uncaught TypeError: Cannot read property '0' of undefined
    at getTreeFromStats (App.js:50)
    at FileReader.App.handleFileLoad

I think it has to do with the formatting of the .json file being different for Webpack 3 which I am running?
There is a similar message on the official webpack visualizer's issue page:
https://github.com/webpack/analyse/issues/30

Make sure that you generate the stats.json file with modules property set to true, otherwise it will not contain it and will cause the issue with most tools. Be advised, that verbose preset IS NOT including the modules field, despite what the documentation says.
Here's some more details: https://github.com/webpack/webpack/issues/9392