Fix parameter naming: Separate l0_lambda from l1_coefficient

Resolves #360
Description
Currently, when using the JumpReLU architecture which involves l0 regularization, the code uses l1_coefficient parameter name for the l0 loss calculation. This naming is confusing and makes the configuration less intuitive. This PR introduces a dedicated l0_lambda parameter to clearly separate these two regularization terms.
Changes

Added new parameter l0_lambda in config for l0 loss calculation (default: 0.0)
Added validation to enforce l0_lambda specification when architecture="jumprelu" is selected
Maintained existing behavior: using JumpReLU without specifying l0_lambda will raise an error to prevent silent failures

Testing

Verified numerical equivalence: models trained with the original code and modified code produce identical metrics
Added error handling test for missing l0_lambda with JumpReLU architecture

Notes
This change improves code clarity while ensuring backward compatibility is maintained through proper error handling rather than silent parameter reuse.

I'm a bit worried about adding lots of architecture-specific parameters to the config as this seems like it will get out of hand pretty quickly. I agree that using l1_coefficient for JumpReLU doesn't feel great, but I worry about the confusion burden of having lots of different parameters that apply only to 1 architecture in the config. Longer-term, we should probably move to a config structure with something like a architecture_params dictionary in the config where each architecture can have separate settings or something.
If we do decide to add this parameter, I'm not a fan of the name l0_lambda since we have l1_coefficient, and these feel like they should be consistent.
The benefit of an approach like in #360 where we just have a sparsity_coefficient is we don't need to have multiple params and multiple schedulers even though only 1 is actually relevant.
What do other thing? cc @curt-tigges @hijohnnylin @anthonyduong9

I'm a bit worried about adding lots of architecture-specific parameters to the config as this seems like it will get out of hand pretty quickly. I agree that using l1_coefficient for JumpReLU doesn't feel great, but I worry about the confusion burden of having lots of different parameters that apply only to 1 architecture in the config. Longer-term, we should probably move to a config structure with something like a architecture_params dictionary in the config where each architecture can have separate settings or something.
If we do decide to add this parameter, I'm not a fan of the name l0_lambda since we have l1_coefficient, and these feel like they should be consistent.
The benefit of an approach like in #360 where we just have a sparsity_coefficient is we don't need to have multiple params and multiple schedulers even though only 1 is actually relevant.

thanks for the comments & totally agree with add sparsity_coefficient instead of individual configs.
I should have time to work on it this weekend

@chanind I've made the adjustment, it should work fine now

Thank you for doing this! There's a few more complications though:

@curt-tigges might be refactoring the configs / SAE classes soon to have separate architecture-specific config sections, which would make this unnecessary. @curt-tigges can talk to the timeline for that
We should make the old options still work for backwards compatibility with a deprecation message instructing the user to use sparsity_coefficient if their config has l1_coefficient still. Otherwise this would be a breaking change.
Docs/notebooks also need to be updated to talk about sparsity_coefficient instead of l1_coefficient. This is probably just a find/replace.

I'm not sure if it's worth it though if Curt is going to be refactoring this soon anyway. Up to you if you think it's worth doing!

Good to hear there will be a refactoring of the configs, in this case I think I'll just wait for the new version! closing the PR


Fix link rewrite in website

Problem introduced in https://github.com/uber/deck.gl/pull/1364

For #1468

Tested, it is working well.


Eureka client does not use eureka.instance.hostname.

Hello,
I have the following config in my Eureka client. The server has a public hostname and a private one (a0bs1.hh.kk.local). But it always gets registered with public hostname. I know some other people experienced a similar problem and I have seen the related issues. I tried almost all suggestions but none helped. I am using 1.4.0.BUILD-SNAPSHOT version.
eureka.client.service-url.defaultZone=http://a0dslb.hh.kk.local:8761/eureka/
eureka.instance.preferIpAddress=false
eureka.instance.hostname=a0bs1.hh.kk.local
eureka.client.healthcheck.enabled=true

I am unable to reproduce. When setting
eureka.instance.hostname=spencer-dell

I see the following from `/eureka/apps
<applications>
  <versions__delta>1</versions__delta>
  <apps__hashcode>UP_1_</apps__hashcode>
  <application>
    <name>DEMOEUREKACLIENTEDGWARE</name>
    <instance>
      <instanceId><IP_ADDRESS>:demoeurekaclientedgware</instanceId>
      <hostName>spencer-dell</hostName>
      <app>DEMOEUREKACLIENTEDGWARE</app>
      <ipAddr><IP_ADDRESS></ipAddr>
      <status>UP</status>
      <overriddenstatus>UNKNOWN</overriddenstatus>
      <port enabled="true">8080</port>
      <securePort enabled="false">443</securePort>
      <countryId>1</countryId>
      <dataCenterInfo class="com.netflix.appinfo.InstanceInfo$DefaultDataCenterInfo">
        <name>MyOwn</name>
      </dataCenterInfo>
      <leaseInfo>
        <renewalIntervalInSecs>30</renewalIntervalInSecs>
        <durationInSecs>90</durationInSecs>
        <registrationTimestamp>1508520205520</registrationTimestamp>
        <lastRenewalTimestamp>1508520205520</lastRenewalTimestamp>
        <evictionTimestamp>0</evictionTimestamp>
        <serviceUpTimestamp>1508520204881</serviceUpTimestamp>
      </leaseInfo>
      <metadata class="java.util.Collections$EmptyMap"/>
      <homePageUrl>http://spencer-dell:8080/</homePageUrl>
      <statusPageUrl>http://spencer-dell:8080/info</statusPageUrl>
      <healthCheckUrl>http://spencer-dell:8080/health</healthCheckUrl>
      <vipAddress>demoeurekaclientedgware</vipAddress>
      <secureVipAddress>demoeurekaclientedgware</secureVipAddress>
      <isCoordinatingDiscoveryServer>false</isCoordinatingDiscoveryServer>
      <lastUpdatedTimestamp>1508520205520</lastUpdatedTimestamp>
      <lastDirtyTimestamp>1508520204829</lastDirtyTimestamp>
      <actionType>ADDED</actionType>
    </instance>
  </application>
</applications>

The hostname field is correct. The instanceId still uses the ipaddress, but that can be set to whatever you want as well.

Ok, thanks. Perhaps I misinterpret these properties. I do not want to specify a new hostname or instanceId for my service for registration. I want to refer to the local Ip address of the server and want my service (Eureka client) register to discovery using that local IP. I thought I can use eureka.instance.hostname property for that purpose.

I solved my problem using spring.cloud.inetutils.preferredNetworks. I think we can close this.

Hey guys,
I am facing the same issue when running eureka server and eureka client on two different domains, in this case eureka server always use its own domain name for the registered instance and not using the client hostname. I also try to set the client domain name by setting inside  bootstrap.properties i.e
eureka.instance.hostname=my.domain.com but it is not reflecting inside "/eureka/apps"
My eureka version is 0.0.1.
Any help is much appreciated.

@msalmanST please open a separate issue, include the domain names of the client and server as well as the output of /eureka/apps.


Downloading attachment using java ews api from Weblogic Server

Hi All,
I am trying to use the Java EWS API to download attachment from Outlook. My requirement is as follows

To connect to the mailbox
Search for a folder named "Test"
Inside the test folder search for a Mail with a pattern matching subject and Body
If found , check the mail to have attachments
If any attachment download them to a local path.

The program is working as expected when I am running from a UNIX Box. The program is able to download the attachment to the UNIX path name mentioned.
try {
// Load the file attachment into memory and print out its file name.
// Load attachment contents into a file.
fileAttachment.load("/pathinunixbox" +fileAttachment.getName());
System.out.println("After loading with path");
} catch (Exception e)  {
System.out.println(e.getMessage());
}
But I am getting the below exception when running the above code from WebLogic server.
Exception:
The request failed. Precondition for readText is nextEvent().getTypeEventType() == START_ELEMENT
Please correct me if am doing anything wrong there. I have also compared the loading of jars between WebLogic and java program running from UNIX box. There are loading in the same manner.

I am also getting same error


⚠ Bofrost.nl has degraded performance

In 78c8a01, Bofrost.nl (https://www.bofrost.nl) experienced degraded performance:

HTTP code: 200
Response time: 1178 ms

Resolved: Bofrost.nl performance has improved in 4118ef2.


Restructure infrastructure docs

fixes #1757

Adds a Site Reliability Engineering guide
Adds a Hub Deployment Guide

Current status: Draft
Desired feedback at this stage:

[ ] How does the structure look?

You can view this PR on readthedocs here: https://2i2c-pilot-hubs--1814.org.readthedocs.build/en/1814/

How does the structure look?
You can view this PR on readthedocs here: https://2i2c-pilot-hubs--1814.org.readthedocs.build/en/1814/

NICE! I really like it.

I love this structure, @sgibson91. It makes it easier to write documentation as well!

How does the structure look?
You can view this PR on readthedocs here: https://2i2c-pilot-hubs--1814.org.readthedocs.build/en/1814/

I love the new structure too ❤ and believe we should adopt it asap.

Can I propose something to push this PR forward? 🚀
I just noticed it changes 61 files, which is lot (it probably touches all of the docs files 2i2c has :D). Can I suggest splitting this PR into smaller ones so that we can merge it more quickly and get to take advantage of the new docs structure? (ref https://github.com/2i2c-org/infrastructure/pull/1817). Right now, it's pretty hard to follow which is new info and what has just been restructured. Some files appear as deleted or as new files, when in reality they've just been moved and then restructured.
I believe what it would be specifically useful is one PR that changes only or mostly the structure. And since there's agreement around that already, I believe that would get merged pretty quickly.
And then other PR or PRs for content.
What do you think?

I'm very nearly at the end of my checklist for this PR and expect to mark it ready for review very soon. I also think extracting already-pushed commits from this branch will get me in a git mess that will likely slow the process down instead of speeding it up. So I'm not confident.

Indeed, wonderful work @sgibson91!!!


[Request] add ruby fixer: Rufo

Please add the ruby fixer rufo: https://github.com/ruby-formatter/rufo

If anyone wants to give this a go, feel free to write a pull request.


Unable to add items to destroyables

Latest (as of Oct 21) version.
Hitting the set keybind to add item to destroyables does nothing.
Dragging the item to the destroyables frame also fails.

I'm unable to reproduce this in both Classic and retail.

As of 9.0.3, addon is working.  However, seeing a lot of LUA errors, enough that the UI pops up a warning about excessive errors.
9.0.3
Message: Interface\AddOns\Dejunk\src\lists\list_mixins.lua:17: attempt to index field '_sv' (a nil value)
Time: Thu Oct 22 07:18:53 2020
Count: 948
Stack: Interface\AddOns\Dejunk\src\lists\list_mixins.lua:17: attempt to index field '_sv' (a nil value)
[string "@Interface\AddOns\Dejunk\src\lists\list_mixins.lua"]:17: in function Has' [string "@Interface\AddOns\Dejunk\src\filters\destroyer\lists.lua"]:18: in function Run'
[string "@Interface\AddOns\Dejunk\src\filters\filters.lua"]:86: in function Run' [string "@Interface\AddOns\Dejunk\src\filters\filters.lua"]:119: in function GetItems'
[string "@Interface\AddOns\Dejunk\src\services\destroyer.lua"]:103: in function `Start'
[string "@Interface\AddOns\Dejunk\src\services\destroyer.lua"]:44: in function <Interface\AddOns\Dejunk\src\services\destroyer.lua:38>
[string "@Interface\AddOns\Dejunk\src\services\destroyer.lua"]:61: in function <Interface\AddOns\Dejunk\src\services\destroyer.lua:54>
Locals: self =  {
localeShort = "Exclusions"
FinalizeAdd =  defined @Interface\AddOns\Dejunk\src\lists\list_mixins.lua:40
GetIndex =  defined @Interface\AddOns\Dejunk\src\lists\list_mixins.lua:103
locale = "Destroy Exclusions"
Remove =  defined @Interface\AddOns\Dejunk\src\lists\list_mixins.lua:67
helpText = "Items on this list will never be destroyed."
RemoveAll =  defined @Interface\AddOns\Dejunk\src\lists\list_mixins.lua:91
uiGroup =  {
}
toAdd =  {
}
getSvar =  defined @Interface\AddOns\Dejunk\src\lists\lists.lua:135
ItemCanBeAdded =  defined @Interface\AddOns\Dejunk\src\lists\lists.lua:117
items =  {
}
color = "4FE34FFF"
sibling =  {
}
GetItemIDs =  defined @Interface\AddOns\Dejunk\src\lists\list_mixins.lua:113
Has =  defined @Interface\AddOns\Dejunk\src\lists\list_mixins.lua:15
Add =  defined @Interface\AddOns\Dejunk\src\lists\list_mixins.lua:22
}
itemID = "33226"
(*temporary) = nil
(*temporary) = "33226"
(*temporary) = "attempt to index field '_sv' (a nil value)"

It seems like there would be more errors occurring before that one. Could you try disabling all other addons and see if you still get errors? And if you do, please post the error from the first page of the error frame.

Errors, with all addons disabled except for DeJunk
--- Page 1 ---
Message: Interface\AddOns\Dejunk\src\db\reformat-db.lua:43: attempt to index local 'to' (a nil value)
Time: Fri Oct 23 22:30:45 2020
Count: 1
Stack: Interface\AddOns\Dejunk\src\db\reformat-db.lua:43: attempt to index local 'to' (a nil value)
[string "@Interface\AddOns\Dejunk\src\db\reformat-db.lua"]:43: in function <Interface\AddOns\Dejunk\src\db\reformat-db.lua:40>
[string "@Interface\AddOns\Dejunk\src\db\reformat-db.lua"]:250: in function <Interface\AddOns\Dejunk\src\db\reformat-db.lua:236>
[string "@Interface\AddOns\Dejunk\src\db\reformat-db.lua"]:280: in function profile' [string "@Interface\AddOns\Dejunk\src\db\reformat-db.lua"]:21: in function ReformatDB'
[string "@Interface\AddOns\Dejunk\src\db\db.lua"]:134: in function func' [string "@Interface\AddOns\Dejunk\src\events\event-manager.lua"]:46: in function Fire'
[string "@Interface\AddOns\Dejunk\src\events\event-manager.lua"]:61: in function <Interface\AddOns\Dejunk\src\events\event-manager.lua:60>
Locals: from =  {
Enabled = true
Value = 4
}
to = nil
keyMap =  {
Enabled = "enabled"
Value = "value"
}
(for generator) =  defined =[C]:-1
(for state) =  {
Enabled = "enabled"
Value = "value"
}
(for control) = "Enabled"
fromKey = "Enabled"
toKey = "enabled"
(*temporary) = true
(*temporary) = "attempt to index local 'to' (a nil value)"
--- Page 2 ---
Message: Interface\AddOns\Dejunk\src\lists\list_mixins.lua:17: attempt to index field '_sv' (a nil value)
Time: Fri Oct 23 22:32:27 2020
Count: 96
Stack: Interface\AddOns\Dejunk\src\lists\list_mixins.lua:17: attempt to index field '_sv' (a nil value)
[string "@Interface\AddOns\Dejunk\src\lists\list_mixins.lua"]:17: in function Has' [string "@Interface\AddOns\Dejunk\src\filters\destroyer\lists.lua"]:18: in function Run'
[string "@Interface\AddOns\Dejunk\src\filters\filters.lua"]:86: in function Run' [string "@Interface\AddOns\Dejunk\src\filters\filters.lua"]:119: in function GetItems'
[string "@Interface\AddOns\Dejunk\src\services\destroyer.lua"]:103: in function `Start'
[string "@Interface\AddOns\Dejunk\src\services\destroyer.lua"]:44: in function <Interface\AddOns\Dejunk\src\services\destroyer.lua:38>
[string "@Interface\AddOns\Dejunk\src\services\destroyer.lua"]:61: in function <Interface\AddOns\Dejunk\src\services\destroyer.lua:54>
Locals: self =  {
localeShort = "Exclusions"
FinalizeAdd =  defined @Interface\AddOns\Dejunk\src\lists\list_mixins.lua:40
GetIndex =  defined @Interface\AddOns\Dejunk\src\lists\list_mixins.lua:103
locale = "Destroy Exclusions"
Remove =  defined @Interface\AddOns\Dejunk\src\lists\list_mixins.lua:67
helpText = "Items on this list will never be destroyed."
RemoveAll =  defined @Interface\AddOns\Dejunk\src\lists\list_mixins.lua:91
uiGroup =  {
}
toAdd =  {
}
getSvar =  defined @Interface\AddOns\Dejunk\src\lists\lists.lua:135
ItemCanBeAdded =  defined @Interface\AddOns\Dejunk\src\lists\lists.lua:117
items =  {
}
color = "4FE34FFF"
sibling =  {
}
GetItemIDs =  defined @Interface\AddOns\Dejunk\src\lists\list_mixins.lua:113
Has =  defined @Interface\AddOns\Dejunk\src\lists\list_mixins.lua:15
Add =  defined @Interface\AddOns\Dejunk\src\lists\list_mixins.lua:22
}
itemID = "37585"
(*temporary) = nil
(*temporary) = "37585"
(*temporary) = "attempt to index field '_sv' (a nil value)"

Thank you so much for posting this! I see the problem, and I will have it fixed soon.


Rerun hack/vendor.sh to fix build on 32-bit systems

i.e. to pick up https://github.com/proglottis/gpgme/pull/10
Fixes #80.

awesome! :tada:

I'll merge once green


Every file in pages is still a route, how to disable them and only allow routes defined through next-routes to exist?

I have defined the routes, all of them with parameters. But still, I can access them without parameters. Next-routes is not overriding the routes defined by next. How do I fix this?
Thanks a lot!

If you define the routes without parameters, they will override the original file based routes.
It should soon be possible to disable file based routes completely: https://github.com/zeit/next.js/pull/914

Cool, thanks a lot. :)

following the merge closely. and will help when it is in a stable release of next.js


Simulation section rejig

I have stolen material mostly from @gtsambos's workshop text and a little from @petrelharp's comments in this discussion. See #175 for the rationale.
Should I put all of us as authors of this tutorial? Do you want to check it over Georgia and Peter? A couple of improvements might be to add Georgia's nice visual illustrations of forward and backward simulation, and to add graphs in the todo box at the bottom. This fixes #175. It also also fixes #104, which I thought was possibly too short to make a tutorial on its own (and moreover, was applicable to any simulators, not just msprime).

Should I put all of us as authors of this tutorial? Do you want to check it over Georgia and Peter? A couple of improvements might be to add Georgia's nice visual illustrations of forward and backward simulation, and to add graphs in the todo box at the bottom.

And yeah I'd be happy to do this! I can make a new version of those plots that removes the node populations and admixture scenario as I think that distracts from the main point we want to make with them. (Will do in a separate PR though)

OK, great, let's merge this. Note that it also includes the commit in #186 (was entailed a bit with this), but that seems fine to go too.


Goto with file path and symbol

Is there any way can quickly open file and goto symbol(function, class or something) ? Just like foo/a/b/c.ts#sayHello.

And copy symbol name and file path like foo/a/b/c.ts#sayHello

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!


Memory Useage

Whether should use a single or serial queue
Should replace GCDAsyncSocket Library with BlueSocket

No longer use GCDAsyncSocket


All Chroma Geo in "newer Maps" will appear compleatly Black

Describe the bug
All Chroma Geo in "newer Maps" will appear compleatly Black (exept for specular highlights).
For some Reason this does not happen on some maps (like swifters acloudyskye pack as far as I can tell) but it does happen in 2023 Cube-Community-Rewind or other Elecast Maps like Paradigm or even a small remapper-Test i made once with just 2 simple Cubes.
(This issue porably isnt that important, its just that I am still stuck in 1.34.2, because other Mods i currently need, arent out yet for newer versions)
To Reproduce
Steps to reproduce the behavior:

Open Beatsaber 1.34.2 (_Heck 1.5.1, Chroma 2.8.1, Mapping Ext. 1.7.4)
Load into 2023 Cube-Community-Rewind, or any map with Chroma Geo (afaik its irrelevant wether its colored or not)

Here is an example of my dumb remapper-Test

Cubes have theese Properties
scene.addPrimaryGroups(
"Cube", // Material Name
new rm.Geometry("Cube", {
shader: "Standard",
color: [100, 100, 100], //extreme Value for test purposes
}),
);
Expected behavior
Chroma geo should be displayed in its actual color, not just specular highlights
Additional context
_latest.log

This has already been addressed and fixed: https://github.com/Aeroluna/Heck/pull/105
Not sure if it's been pushed out to GitHub or BeatMods yet, but Aero should have the fix out soon!


Translation/i18n

I see that there are i18n properties on different objects. How are they accessed and translated?

There is now a src/i18n.json file that will inject the appropriate strings in at build time. Let me know if you have any questions.

Thanks for the quick response! Unfortunately this doesn't really solve my problem. I need to have the strings be run through my own js function instead of being "hardcoded" in a generated script.
My thinking is that I define a function name that all the strings are run through at runtime.


Unable to retrieve data from surepetcare.io

The problem

Unable to get Surepetcare integration to work.
Environment

Home Assistant release with the issue: 0.105.2
Last working Home Assistant release (if known):
Operating environment (Hass.io/Docker/Windows/etc.): vEnv
Integration causing this issue: surepetcare
Link to integration documentation on our website: https://www.home-assistant.io/integrations/surepetcare/

Problem-relevant configuration.yaml

surepetcare:
  username: myemail
  password: mypass
  household_id: 1234
  flaps: [{id: 5678, name: Katzenklappe}]
  pets: [{id: 90AB, name: Rocco}, {id: CDEF, name: Lilly}, {id: GHIJ, name: Paula}]

IDs were taken successfully by sp_cli.py as mentioned in docs. sp_cli.py was executed not in vEnv by:
./sp_cli.py --update -e myemail -p mypass
./sp_cli.py ls_flaps
./sp_cli.py ls_pets
./sp_cli.py ls_house

Traceback/Error logs

2020-02-09 15:10:45 ERROR (MainThread) [homeassistant.components.surepetcare] Unable to retrieve data from surepetcare.io:
...
2020-02-09 15:11:50 ERROR (MainThread) [homeassistant.components.binary_sensor] surepetcare: Error on device update!
Traceback (most recent call last):
  File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/helpers/entity_platform.py", line 304, in _async_add_entity
    await entity.async_device_update(warning=False)
  File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/helpers/entity.py", line 459, in async_device_update
    await self.async_update()
  File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/components/surepetcare/binary_sensor.py", line 91, in async_update
    self._state = self._spc.states[self._sure_type][self._id].get("data")
KeyError: 5678
...
2020-02-09 15:11:53 ERROR (MainThread) [homeassistant.components.sensor] Error while setting up surepetcare platform for sensor
Traceback (most recent call last):
  File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/helpers/entity_platform.py", line 159, in _async_setup_platform
    await asyncio.wait_for(asyncio.shield(task), SLOW_SETUP_MAX_WAIT)
  File "/usr/local/lib/python3.7/asyncio/tasks.py", line 442, in wait_for
    return fut.result()
  File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/components/surepetcare/sensor.py", line 37, in async_setup_platform
    for entity in spc.ids
  File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/components/surepetcare/sensor.py", line 38, in <listcomp>
    if entity[CONF_TYPE] == SureThingID.FLAP.name
  File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/components/surepetcare/sensor.py", line 52, in __init__
    self._state = self._spc.states[SureThingID.FLAP.name][self._id].get("data")
KeyError: 5678

Additional information

@benleb, do you have any advice how to debug this

Yes, first thing would be to increase the log level to get more information :)
in configuration.yaml set
logger:
  logs:
    surepy: debug
    custom_components.surepetcare: debug

and restart :)
Btw, did you anonymize the IDs just in your config but not the log? If so, i suggest to do it in both the same way. It makes it unnecessary hard to debug if the log has other IDs than the configuration :)

I noticed that the 3x binary_sensor of the pets seems to work but I have unknown state for the flap sensor and binary_sensor. Any other entity than above to expect here?
Debug log:
...
2020-02-09 16:37:30 INFO (MainThread) [homeassistant.setup] Setting up surepetcare
2020-02-09 16:37:30 DEBUG (MainThread) [surepy] initialization completed | vars(): {'self': <surepy.SurePetcare object at 0x72ff9eb0>, 'email': 'myemail', 'password': 'mypass', 'household_id': 1234, 'loop': <_UnixSelectorEventLoop running=True closed=False debug=False>, 'session': <aiohttp.client.ClientSession object at 0x72f010d0>, 'auth_token': None}
...
2020-02-09 16:37:38 DEBUG (MainThread) [surepy] Failed to fetch https://app.api.surehub.io/api/auth/login:
2020-02-09 16:37:38 DEBUG (MainThread) [surepy] self._auth_token: None
...
2020-02-09 16:37:45 WARNING (MainThread) [homeassistant.setup] Setup of surepetcare is taking over 10 seconds.
...
2020-02-09 16:37:47 DEBUG (MainThread) [surepy] Failed to fetch https://app.api.surehub.io/api/auth/login:
2020-02-09 16:37:47 DEBUG (MainThread) [surepy] headers: {'Connection': 'keep-alive', 'Accept': 'application/json, text/plain, */*', 'Origin': 'https://surepetcare.io', 'User-Agent': 'Mozilla/5.0 (Linux; Android 7.0; SM-G930F Build/NRD90M; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/64.0.3282.137 Mobile Safari/537.36', 'Referer': 'https://surepetcare.io/', 'Accept-Encoding': 'gzip, deflate', 'Accept-Language': 'en-US,en-GB;q=0.9', 'X-Requested-With': 'com.sureflap.surepetcare', 'Authorization': 'Bearer None'}
...
2020-02-09 16:37:50 DEBUG (MainThread) [surepy]

 response.status: 401

2020-02-09 16:37:50 DEBUG (MainThread) [surepy] AuthenticationError!
Traceback (most recent call last):
  File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/helpers/entity_platform.py", line 304, in _async_add_entity
    await entity.async_device_update(warning=False)
  File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/helpers/entity.py", line 459, in async_device_update
    await self.async_update()
  File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/components/surepetcare/binary_sensor.py", line 91, in async_update
    self._state = self._spc.states[self._sure_type][self._id].get("data")
KeyError: 5678
2020-02-09 16:39:02 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=binary_sensor.pet_lilly, old_state=None, new_state=<state binary_sensor.pet_lilly=on; pet_id=CDEF, tag_id=10228, device_id=5678, where=1, since=2020-02-08T18:39:37+00:00, friendly_name=Pet Lilly, device_class=presence @ 2020-02-09T16:39:02.485881+01:00>>
...
2020-02-09 16:39:08 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event platform_discovered[L]: service=load_platform.sensor, platform=surepetcare, discovered=>
...
2020-02-09 16:39:08 INFO (MainThread) [homeassistant.components.sensor] Setting up sensor.surepetcare
...
2020-02-09 16:39:08 ERROR (MainThread) [homeassistant.components.sensor] Error while setting up surepetcare platform for sensor
Traceback (most recent call last):
  File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/helpers/entity_platform.py", line 159, in _async_setup_platform
    await asyncio.wait_for(asyncio.shield(task), SLOW_SETUP_MAX_WAIT)
  File "/usr/local/lib/python3.7/asyncio/tasks.py", line 442, in wait_for
    return fut.result()
  File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/components/surepetcare/sensor.py", line 37, in async_setup_platform
    for entity in spc.ids
  File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/components/surepetcare/sensor.py", line 38, in <listcomp>
    if entity[CONF_TYPE] == SureThingID.FLAP.name
  File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/components/surepetcare/sensor.py", line 52, in __init__
    self._state = self._spc.states[SureThingID.FLAP.name][self._id].get("data")
KeyError: 5678

Hm okay, I am not sure right now what causes this. Maybe some kind of race condition (fetching data (or try to) before authentication is done)...
I did a PR the last days which basically improves the whole integration and also the underlying lib got a huge update. Due to this, I would suggest you to try the "new" integration, which is already approved by @MartinHjelmare (so you know that it contains no malicious code or anything) and should be merged very soon. You can find it here, if you do not want to wait for the next Home assistant release which includes it: https://github.com/home-assistant/home-assistant/pull/31437

@benleb can we close this one as well since it is hopefully fixed in #31437?

from my side, no problem :) I hope it’s fixed yes 😅
@to-scho if you also have issues with the news version, open a new issue please 👍

Hoping with you 🤞
@to-scho if this is not fixed with the new version just comment and we can reopen this issue again :)

Sure, I will wait for next release. Thx, Tobias
Sent from my iPad

Am 10.02.2020 um 22:06 schrieb springstan<EMAIL_ADDRESS>
Hoping with you 🤞
@to-scho if this is not fixed with the new version just comment and we can reopen this issue again :)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.


perf(css/minifier): improve

Description:
Reduce visitors + fix small bug
BREAKING CHANGE:
No
Related issue (if exists):
No

@kdy1 Fixed :+1:


Publish 0.7.1

Would it be possible to publish 0.7.1 to npm?

The next release to be published will be 0.8.  You can use a commit hash for now.
"dependencies": {
  "package": "git://github.com/automategreen/dynamoose.git#commit"
}


Add onPress handler to more labels on MONTH mode.

On click of more label, a modal should open to make additional/all events visible.

Hi @TechSaq
I was Facing same issue on my calendar but i resolve this issue by this.
There is one props onPressCell , by this props ypu will get cell date and after you can filter all events by this date and then you can show all those events by modal.
const handleOnPressCell = (date) => {
   let selectedDate = getConvertedDate(date);

   let filterEvent = events.filter((item) => {
     return selectedDate === item?.date;
   });

   setTodaysEvents(filterEvent);
   if (filterEvent.length > 1) {
     setShowEventModal(true);
   }
 };

Hi @Subhash-Dhandhukiya
I am using onPressCell to open Modal to add some events.
It will be better to have an onPress event for more event to display additional events in modal with some default implementation within the package and support to override the modal.

Sorry for the delay.
This should be implemented. It would be glad if you create a pull request for this. Thanks

Hi @acro5piano,
I will create a PR for this. I will show a default Modal to list additional events. I will also add support to override this default modal to make it more flexible.
Thanks

Thanks!

Hi, @acro5piano
I am working on this PR and implementation is done almost. I have added a callback function named onPressMoreLabel with onPress of moreLabel.
I need suggestions from you, onPress of moreLabel,  the library itself should show a popover with additional events or leave the implementation to the end user however they want to use it.
If the library itself should show a popover itself I might have to use some popover library.
Please suggest how you want me to proceed.
Thanks

@acro5piano, I also want to test the changes in my real device. Can you please help how can I test on a real device?
Thanks

@TechSaq
Thank you very much!

I need suggestions from you, onPress of moreLabel, the library itself should show a popover with additional events or leave the implementation to the end user however they want to use it.

Can you proceed with the library itself should show a popover with additional events for now?

If the library itself should show a popover itself I might have to use some popover library.

I prefer not to add dependency, especially for UI library. However, if it provides better quality and save implementation cost, go for it. Thanks!

I also want to test the changes in my real device. Can you please help how can I test on a real device?

I'll create a document for it.

@TechSaq Thank you very much!

I need suggestions from you, onPress of moreLabel, the library itself should show a popover with additional events or leave the implementation to the end user however they want to use it.

Can you proceed with the library itself should show a popover with additional events for now?

If the library itself should show a popover itself I might have to use some popover library.

I prefer not to add dependency, especially for UI library. However, if it provides better quality and save implementation cost, go for it. Thanks!

I implemented a solution without adding any dependency but in storybook looks it is not rendering properly due to deviceWidth so I wanted to tested it on a real device.

I also want to test the changes in my real device. Can you please help how can I test on a real device?

I'll create a document for it.

I found a solution for this by using the install-local library. This adds local package as localDependencies in package.json and add the package to node_modules but while importing I am getting error.
While writing a document for this please consider the Window system.

getConvertedDate

is it a predefined method to get the date list?

Hi @Subhash-Dhandhukiya
I am using onPressCell to open Modal to add some events.
It will be better to have an onPress event for more text to display additional events in modal with some default implementation within the package and support to override the modal.

Hi, I need some help in this

Hi there,
I've been busy now for my own business. If you create a pull request for this, I'm happy to merge it. Thanks

Hi,
Thanks for your reply.
Please send your full source code. I am unable to open modal on onPress
Event, onPressCell, onPressDateHeadee and all.
Thanks
Ashish
On Thu, 13 Apr, 2023, 4:09 pm Kay Gosho, @.***> wrote:

Hi there,
I've been busy now for my own business. If you create a pull request for
this, I'm happy to merge it. Thanks
—
Reply to this email directly, view it on GitHub
https://github.com/acro5piano/react-native-big-calendar/issues/649#issuecomment-1506739964,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/A4QMBFFD45RLE5C3RSA7Y63XA7JUVANCNFSM5PNBPAHA
.
You are receiving this because you commented.Message ID:
@.***>

Please send your full source code. I am unable to open modal on onPress

It's open source, so you can find them on your own.

any updates on this?


Unable to use speaker diarization

Are You on the Latest version?
You did a git pull and are running the latest version/build?
Y
Please describe the bug
Use local video/youtube video in standard mode and check Speaker Diarization to true
Is the bug reproducable reliably?
Yes
Steps to reproduce the issue
Steps to reproduce the behavior:

Go to http://<IP_ADDRESS>:7860
Click on Speaker Diarization
Upload video
Click on Process Videos
See an error

Screenshots

Desktop (please complete the following information):

OS: [Windows]
Browser [Firefox]
Date you performed the last git pull: 26/12/2024

It looks like it's trying to access the wrong path for the config file.
Is there any way to resolve this problem?
Thanks.

@Gid733 Hey, I'm not sure why that's happening, but you can find the model files and config files under /App_Function_Libraries/models/ ; could try copying the files located there to the Audio/ folder, and creating a new models folder under it, so, App_Function_Libraries/Audio/models/config file + the two other bin files.
Will look into this in the next few days, as one of the next things on my todo list is reviewing the current audio processing pipeline, diarization included.


[Feature Request]:Leetcode Problem 916 - ( Word Subsets - Medium)

Is there an existing issue for this?

[X] I have searched the existing issues

Feature Description
Provide Solution To Leetcode Problem  916 - ( Word Subsets )
Use Case
I would add proper solutions for the problem in three different programing languages i.e C++,Java,and Python with proper documentation
Benefits
Users can access solution to problem 916
Add ScreenShots
N/A
Priority
High
Record

[X] I have read the Contributing Guidelines
[X] I'm a GSSOC'24 contributor
[X] I have starred the repository

@Ajay-Dhangar Please assign me this issue.


Pytree inputs for rtol and atol or custom termination condition?

So I would love to be able to pass in a pytree for both the rtol and atol values, in a similar vein to how you can set individual learning rates for each leaf in optax. This would make a lot of sense for most of my work which has pytree leaves with vastly different parameter scales.
Looking at the termination condition code, it looks like this hasn't been made an option because the values are applied to both the pytree leaf values ('y space') and the loss value ('f space').
From what I can tell there would two ways to get this behavior:

Allow custom termination condition.
I don't think this is the best solution as the cauchy termination is already wrapped up with input norm function/pytree.

Allow pytree inputs for rtol and atol.
I think this could be done relatively easily by allowing the f-space and y-space conditions to be individually specified via a tuple like this: (f-space rtol (float), y-space rtol (float or pytree)). This would preserve the present syntax, while also allowing users full freedom over the termination condition.

Anyway maybe there is a better way that I'm missing, but having this functionality is actually somewhat essential for using optimistix in my work in the long run, so let me know your thoughts!

Hmm, so my first question is what kind of behaviour you're seeking, specifically?
Basically, what goes wrong with fixing an rtol, which already handles multiple scales?

Haha yeah sorry probably should have just provided an example of the desired functionality.
import jax
import jax.numpy as np
import equinox as eqx
import optimistix as optx
import optax

# Set up Model
class Linear(eqx.Module):
    m: jax.Array
    b: jax.Array

    def __init__(self, m, b):
        self.m = m
        self.b = b

    def __call__(self, x):
        return self.m * x + self.b

# Simple loss
def loss_fn(model, args):
    x, y = args
    return np.mean((model(x) - y) ** 2)

# Normal optax optimiser
linear = Linear(np.array(1.0), np.array(0.0))
param_spec = eqx.tree_at(lambda x: (x.m, x.b), linear, ("m", "b"))
optim = optax.multi_transform({"m": optax.adam(1e-3), "b": optax.adam(1e3)}, param_spec)

# Per-leaf atol and rtol
rtol = eqx.tree_at(lambda x: (x.m, x.b), linear, (0.1, 10))
atol = eqx.tree_at(lambda x: (x.m, x.b), linear, (0.1, 10))

# Optimistix minimiser
solver = optx.OptaxMinimiser(
    optim,
    rtol=(1e-3, rtol), # f-space rtol, y-space rtol
    atol=(1e-3, atol), # f-space atol, y-space atol
)

So in this example my termination condition would have a different rtol and atol for the loss (f-space) and for each leaf (y-space), as opposed to having the same termination value applied to everything. Does that clarify my question?
Its also possible I have miss-understood something about the how the termination condtion works, so please let me know if thats the case!

Sure! Sorry, to be clear, I understand the ask, and the fact that Optimistix doesn't support this right now. What I'm trying to better understand (before thinking about a possible solution) is why this kind of mixed-tolerance is a desirable thing to want in the first place.
Typically the reason for having rtol is so that you can be sure of getting solutions whose accuracy scales linearly with the scale of the problem (rtol). (And likewise atol exists to get scale-invariant accuracies.)
So if that isn't sufficient, is it because you want some nonlinear function scale->accuracy? What kind of nonlinear function / why?

Ah okay, yeah let me explain my reasoning as I'm not well versed on the theory behind all this stuff so I might just not understand the use of the rtol and atol values  correctly.
We are optimising forwards models with great diversity in parameter scales, on problem with large diversity in likelihoods. Taking a two parameter example we might be trying to find both the position and brightness of a star imaged through a telescope. On-sky position is typically measured using arcseconds of order 1e-3, and brightness is typically measured in photons which can range in values from 1e4 - 1e12.  Having a single termination value for both of these parameters is difficult.
The on-sky position measurement is relative to the optics, so if our true values can be arbitrarily close to zero the desired rtol would need to be somewhat large (or possibly even ignored), and the atol would want to be ~1e-3.
The brightness of the star however could cover a many orders of magnitude, so there isn't really a concrete atol value that makes sense (ie If we take 1e-3 to match the position that would be far too small). In this case we would need an rtol of ~1e-3.
That is essentially the core of my issue, and maybe this should be framed as more of a question - How you you go about devising convergence criteria for a problem like this? Am I thinking about the convergence incorrectly in the first place?

Yeah that was just a small example - In practice we are optimizing over a dozen unique sets of parameters, so trying to find a balance of between every leaf type becomes unwieldy.
I think I'm starting to get my head around the way this works under the hood. Building a robust norm function seems like it could solve this problem, and possibly also be used as a way to normalize parameter values through a custom solver.
I'll have to look into this more when I have some more time.
Thanks for the info!

 Let us know how it goes -- we can definitely add something to the API if it ends up being tricky to implement as-is.


Auto-generate index to navigate all p5js projects

A simpler version of https://github.com/makeabilitylab/p5js/issues/2 (which suggests making a thumbnail gallery of all projects).
Discussion on stackoverflow making a simple Python-based site generator:
https://stackoverflow.com/questions/39048654/how-to-enable-directory-indexing-on-github-pages

There is a Github way to do this using Jekyll but then files need to be .md: https://cl.mt/blog/github-pages-indexing-directory
Hmm.


User sees "plugin failed to load" alerts when browsing to portable server page

Customer is complaining about the user experience of this.
Since we know the plugin is going to fail every time, we really should avoid trying to load it in the first place.
Instead of attempting to load the plugin, show a message:
“3D previews not available, please use the GEEC to view your globe"

https://github.com/google/earthenterprise/pull/1665

@tst-ccamp or @tst-rwildes -- does this need to be added to release notes?


Jupyter Notebooks don't work

Juoyter extension doesn't install properly / doesn't work.
Run cdr/code-server, create test.ipynb file, install Jupyter Extension.
Jupyter doesn't initialize, Notebooks don't work.
THe last time it was ok was with v3.9.3 and
https://github.com/microsoft/vscode-python/releases/download/2020.10.332292344/ms-python-release.vsix installed manually.

@gogobd can you please open a bug report issue using the issue template? That will help us help you faster! Thank you!

I think now that's https://github.com/cdr/code-server/issues/3782


Open existing MLFlow UI when https:// scheme is provided as mlflow_tracking_uri

Description
kedro-mlflow allows to specify tracking server in config using mlflow_tracking_uri property. Also, the same property is passed to --backend-store-uri when running kedro mlflow ui. It would be nice to have similar experience (as with supported by MLFlow schemes) with https:// URIs.
Context
I was thinking about general user experience and that UI-related command caught my attention.
Potential use case: a company can generate Kedro projects based on a template which has defined MLFlow external tracking server. Users want to access MLFlow UI (hopefully) just by using kedro mlflow ui because it's easier for them.
Possible Implementation
(If you consider this feature good future direction for the plugin) a potential implementation could look like this:

check whether URI starts with https:// and redirect user to that address
(optional) 2 distinct properties for tracking server and backend store - you can use sensible defaults and/or fallbacks if not specified

Possible Alternatives
Maybe user-friendly info would be enough?
Thanks!

Hi @mariusz89016, thank you for the feedback. I am not sure sure to understand what you want so do not hesitate to tell me if I misunderstood.

check whether URI starts with https:// and redirect user to that address

You already have a remote tracking server properly set up, and you do not want to launch a ui server, but rather just to open the uri in your browser right? Something like webbrowser.open instead of running mlflow ui command?

(optional) 2 distinct properties for tracking server and backend store - you can use sensible defaults and/or fallbacks if not specified

I am not sure I understand. If the tracking server is set up (e.g. you launch this command), your ui only redirect to the tracking uri of this server, you do not need to specify artifact storage. The only artifact root you can specify is eventually a local path if you want to store artifacts in another folder than the default ./mlruns, but you cannot specify a remote artifact storage to the ui command as described in the documentation.

Closed by #284


How to set vehicle speed in Carla

I found it on Carla's website Actor.set_ target_ The command velocity (self, velocity) is useless. Python reports an error and displays attributeerror: 'vehicle' object has no attribute 'set_ target_ .Can I ask how to set the vehicle speed.

@xty199636 Hi. Do you mean Actor.set_target_speed()? Like you mentioned, there is no function called set_target_. However, set_target_speed() is present, and you can use that to set the desired speed of the vehicle.

@xty199636 Hi. Do you mean Actor.set_target_speed()? Like you mentioned, there is no function called set_target_. However, set_target_speed() is present, and you can use that to set the desired speed of the vehicle.


fix(deps): bump

Applied mkpr on undefined
/tmp/mkpr.sh

Coverage remained the same at 87.543% when pulling 7e4e58ff3f99be5e09c0f92bf466bbfd2a3226d1 on mkpr/1 into 200ccb5e1bb538c805da64da44b624095d802d0c on master.

:tada: This PR is included in version 10.0.32 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Unable to trace in mingw

I have mingw-w64 and libbfd installed in msys2. When I try to do a simple stacktrace with -DBACKWARD_HAS_BFD=1 I get this
Stack trace (most recent call last):
The specified module could not be found.

#1    Object "", at 0x9200000000, in  ??
Attempt to access invalid address.

#0    Object "", at 0x7ff682df8eb5, in  ??

Is there a way to get traces working in mingw?

I also get this issue too.
My c++ compiler details:
Using built-in specs.
COLLECT_GCC=C:\Apps\mingw64\bin\g++.exe
COLLECT_LTO_WRAPPER=C:/Apps/mingw64/bin/../libexec/gcc/x86_64-w64-mingw32/13.2.0/lto-wrapper.exe
OFFLOAD_TARGET_NAMES=nvptx-none
Target: x86_64-w64-mingw32
Configured with: ../configure --prefix=/R/winlibs64_stage/inst_gcc-13.2.0/share/gcc --build=x86_64-w64-mingw32 --host=x86_64-w64-mingw32 --enable-offload-targets=nvptx-none --with-pkgversion='MinGW-W64 x86_64-msvcrt-posix-seh, built by Brecht Sanders' --with-tune=generic --enable-checking=release --enable-threads=posix --disable-sjlj-exceptions --disable-libunwind-exceptions --disable-serial-configure --disable-bootstrap --enable-host-shared --enable-plugin --disable-default-ssp --disable-rpath --disable-libstdcxx-debug --disable-version-specific-runtime-libs --with-stabs --disable-symvers --enable-languages=c,c++,fortran,lto,objc,obj-c++ --disable-gold --disable-nls --disable-stage1-checking --disable-win32-registry --disable-multilib --enable-ld --enable-libquadmath --enable-libada --enable-libssp --enable-libstdcxx --enable-lto --enable-fully-dynamic-string --enable-libgomp --enable-graphite --enable-mingw-wildcard --enable-libstdcxx-time --enable-libstdcxx-pch --with-mpc=/d/Prog/winlibs64_stage/custombuilt --with-mpfr=/d/Prog/winlibs64_stage/custombuilt --with-gmp=/d/Prog/winlibs64_stage/custombuilt --with-isl=/d/Prog/winlibs64_stage/custombuilt --disable-libstdcxx-backtrace --enable-install-libiberty --enable-__cxa_atexit --without-included-gettext --with-diagnostics-color=auto --enable-clocale=generic --with-libiconv --with-system-zlib --with-build-sysroot=/R/winlibs64_stage/gcc-13.2.0/build_mingw/mingw-w64 CFLAGS='-I/d/Prog/winlibs64_stage/custombuilt/include/libdl-win32 -Wno-int-conversion  -march=nocona -msahf -mtune=generic -O2' CXXFLAGS='-Wno-int-conversion  -march=nocona -msahf -mtune=generic -O2' LDFLAGS='-pthread -Wl,--no-insert-timestamp -Wl,--dynamicbase -Wl,--high-entropy-va -Wl,--nxcompat -Wl,--tsaware'
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 13.2.0 (MinGW-W64 x86_64-msvcrt-posix-seh, built by Brecht Sanders)

Here is a test file: main.cpp
#include <iostream>
#include "backward.hpp"

int main(int argc, char const *argv[]) {
  using namespace backward;
  StackTrace st; st.load_here(32);
  Printer p; p.print(st);
  return 0;
}

Compile commands:
g++ -g main.cpp -o main.exe -lDbghelp

Executable Output (After running ./main.exe):
Stack trace (most recent call last):
The specified module could not be found.

#1    Object "", at 0xc400000000, in  ??
Attempt to access invalid address.

#0    Object "", at 0x7ff683d3a735, in  ??


Groq component not showing models

Bug Description
When I pull in the component, it has the following issues:

Shows error.. Invalid literal for int() with base 10: "" when I pull in the component.
Doesn't show the models to select from. Says "No parameters are available for display."

Reproduction

Select the Groq component and drag it onto the flow configuration

Expected behavior
It should show a dropdown with the LLM models to select from.
Who can help?
No response
Operating System
MacOS Ventura 13.5.1
Langflow Version
1.0.16
Python Version
3.10
Screenshot
https://prnt.sc/fxFxV9h1V3QP, https://prnt.sc/fMMdgnXBS_J4
Flow File
No response

Hey @SavvySupport
I noticed you used version 1.0.16. Please try it with the current version, 1.0.18.

Hey @SavvySupport
I noticed you used version 1.0.16. Please try it with the current version, 1.0.18.

Thanks Carlos - will give it a shot.

@SavvySupport
Please let me know it it is working.

yes its working now


add support for pg uuid, bytea

Related issue: https://github.com/sgrif/diesel/issues/201

This needs an entry in types_roundtrip.rs

Hmmm. How do I types_roundtrip.rs?

Look at some of the other examples in that file. It's pretty straightforward
On Thu, Feb 11, 2016, 1:30 AM Andrew Ryan Lazarus<EMAIL_ADDRESS>wrote:

Hmmm. How do I types_roundtrip.rs?
—
Reply to this email directly or view it on GitHub
https://github.com/sgrif/diesel/pull/202#issuecomment-182761608.

Lol. Straightforward took me a while :)
I can squash the commits if desired, but kept them separate for review.

Shouldn't need to newtype it, look at how we handle NaiveDate and NaiveTime. The last argument to that macro can be a function to create the type.

Ok, removed the new type.

Thoughts?

I'm taking a few days off, I'll review when I'm back
On Wed, Feb 24, 2016, 12:10 AM Andrew Ryan Lazarus<EMAIL_ADDRESS>wrote:

Thoughts?
—
Reply to this email directly or view it on GitHub
https://github.com/sgrif/diesel/pull/202#issuecomment-188111514.

@nerdrew Are you still interested in working on this? There's a few more comments that need to be addressed before this can be merged.

Ya, still want to land this. Was traveling for work last week and couldn't get to this. Sorry for the delay.

Hmmm. I'm getting compile errors when trying to use this now.
src/db/models.rs:184:1: 184:25 error: the trait `diesel::Expression` is not implemented for the type `uuid::Uuid` [E0277]
src/db/models.rs:184 #[insertable_into(logs)]
                     ^~~~~~~~~~~~~~~~~~~~~~~~
src/db/models.rs:184:1: 184:25 note: in this expansion of #[insertable_into] (defined in src/db/models.rs)
src/db/models.rs:184:1: 184:25 help: run `rustc --explain E0277` to see a detailed explanation
src/db/models.rs:184:1: 184:25 note: required by `diesel::expression::AsExpression::as_expression`
src/db/models.rs:184:1: 184:25 error: mismatched types:
 expected `diesel::expression::bound::Bound<diesel::types::Uuid, &uuid::Uuid>`,
    found `&uuid::Uuid`
(expected struct `diesel::expression::bound::Bound`,
    found &-ptr) [E0308]
src/db/models.rs:184 #[insertable_into(logs)]
                     ^~~~~~~~~~~~~~~~~~~~~~~~
src/db/models.rs:184:1: 184:25 note: in this expansion of #[insertable_into] (defined in src/db/models.rs)
src/db/models.rs:184:1: 184:25 help: run `rustc --explain E0308` to see a detailed explanation
src/db/models.rs:185:23: 185:23 error: the trait `diesel::Expression` is not implemented for the type `uuid::Uuid` [E0277]
src/db/models.rs:185 #[changeset_for(logs)]
                                           ^
src/db/models.rs:185:1: 185:23 note: in this expansion of #[changeset_for] (defined in src/db/models.rs)
src/db/models.rs:185:23: 185:23 help: run `rustc --explain E0277` to see a detailed explanation

Ideas?

Diesel is probably using a different version of the UUID crate than your code.

Yup, that was it. Thanks! Also, rebased again. The test failures don't look related to this PR.

Build should be green if you rebase, as well

Sorry. Was busy last couple nights and didn't get a chance to make the fixes. THANKS FOR FIXING / MERGING!

No problem.


Add DelegationOutput - Python

https://github.com/iotaledger/tips-draft/pull/15

Closed by https://github.com/iotaledger/iota-sdk/pull/1408


Refactor dnszone controller into the actuator pattern

[x] Create an actuator interface
[x] Refactor zonereconciler into an AWS actuator that implements the
actuator interface.
[x] Refactor unit tests to be split between the dnszone controller and
the AWS actuator
[x] Ensure unit test coverage has not decreased.
[x] Manually test dnszone controller with AWS actuator

This PR is ready to be reviewed. Holding it until manual testing is completed.
/hold

/test e2e

Matt covered what I had in my review and then some. Only additional comment I had was to consider adding a compile time check that the objects meet the Actuator interface. https://stackoverflow.com/questions/10498547/ensure-a-type-implements-an-interface-at-compile-time-in-go

@staebler I believe I've addressed your feedback. I gave up on the DeepCopy() idea, so this should be coded how you suggested.
I also manually tested the corner case that we updated the logic on and it worked as expected.
/hold cancel

@twiest Would you mind separating the vendor changes into its own commit. Could it be a revert of 10329f22fa1d56dcfb910c17bb7f5df195401bfb?

@twiest Would you mind separating the vendor changes into their own commit. Could it be a revert of 10329f2?

Sure :)

Holding until we can talk about the Refresh thing with @dgoodwin.
/hold

/test e2e

Yeah lets just merge it, the Refresh concern is valid but it is an internal interface and I'm pretty sure we've made that mistake elsewhere. Lets keep things moving and we can worry about it next time someone is in there.

/hold cancel


Too many index.svelte files in SvelteKit demo app

Describe the problem

"index" does not describe the component
Showing the filename in the editor tab is no longer enough
Automatic importing gets unnecessary complicated (does't work)
command+p to open a component doesn't works as good
git: Reading the Changes is slightly harder

Describe the proposed solution
Rename the src/lib/Counter/index.svelte to src/lib/Counter/Counter.svelte
Keep the src/routes/todos/index.svelte as-is, that filename is used for routing.
(I'd personally would split the rendering of the form of into a Todos component, but for example-code it's easier to digest if it remains in this single file )
Alternatives considered
I've worked with vue and react codebases that worked with lots of index.ts files. When I've renamed these files to have meaningful and predictable filenames the reaction has been universally positive.
An alternative is to do nothing, the filename convention in the example does not affect how I setup a svelte-kit project.
Importance
nice to have

Wait, the vite-plugin-svelte/packages/playground/kit-demo-app  is generated by svelte/kit
(I searched for "Counter/index.svelte" and found this repo)
I'll report the issue there


Update docs

Codecov Report

Merging #6 (71b46ee) into master (3646b9e) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master       #6   +/-   ##
=======================================
  Coverage   95.00%   95.00%
=======================================
  Files           3        3
  Lines          80       80
=======================================
  Hits           76       76
  Misses          4        4

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 3646b9e...71b46ee. Read the comment docs.


Non Standard Links such as Deep Linking

I'm using an app, which in turn is using your library and unfortunately :( your library rejects urls, which are used for deep-linking (universal link) in an iOS app.
So my internal linking mechanism is using myapp://xyz/1 - this enables me to deep link into the app.
However this is rejected as being a non-standard url by your library. Would you have a way of passing into the library an option, which validates it as a deep link.

https://github.com/markdown-it/linkify-it#addkey-value you should extend existing schemas with new ones.

Many thanks @puzrin

@serialbandicoot Can you write an example of how you ended up using this capability?

`const linkify = require('linkify-it')()
linkify.add('appname://', {
validate: function (text, pos, self) {
var tail = text.slice(pos);
if (!self.re.appname) {
  self.re.appname = new RegExp(
    '^([a-zA-Z0-9_/]){1,15}(?!_)(?=$|' + self.re.src_ZPCc + ')'
  );
}
if (self.re.appname.test(tail)) {
  return tail.match(self.re.appname)[0].length;
}
return 0;

},
});`

@serialbandicoot Can you write an example of how you ended up using this capability?

Hey @tegozen, I don’t have access the code anymore. However the issue I had was due to an inter library dependency. I think, from memory in the end I used patch-package to add in the linkify.add(‘app name:’, true) which allowed the schema. So my code worked. Good luck.


Magnifier in Draw options

Make it so we can quickly turn magnifier on/off from here instead of going to settings. I like to have it on for drawn lines but not for shapes

Okay

added

Damn! That was quick. 🚀


fix typos in mutation types

Fixes typos in graphqlErrors and controlledVariantResult. This is probably a breaking change since people rely on the naming of these two types.

Thanks a lot for catching that!
We'll have indeed to release as a major version

@all-contributors add @believer for bug


Dev/server

currently no API doc, will follow

@EricFelix The API documentation was outdated and will be rewritten.


Suggestion: 'const' paradigm

Have you thought about 'const' method/reference paradigm in Ceylon?
Usually Ceylon has pairs of interfaces in Collection: e.g. Map and MutableMap.
But I think this approach is not very protective:
shared class SomeService() {
Map<Integer, String> clients = HashMap();
shared Map<Integer, String> getClients()
        => clients;

}
shared void someServicesUser(SomeService service) {
value clients = service.getClients();
//clients[125] = "Hi Guys!";
// This doesn't work but I can do:
if (is HashMap<Integer, String> clients) {

    //Yeh!! I have got hack them!!!
    clients[125] = "Hi Guys!";
}

}
But if we have 'const' mechanism complier could protect us from shooting yourself in the foot:
shared interface Map
satisfies CollectionItem> &
Correspondence<Object,Item>
given Key satisfies Object {
shared const actual formal Item? get(Object key);

All methods which doesn't change object should be marked by 'const' annotation - code in those methods might be validated by compiler on compilation stage.
"The clients is 'const' reference"
shared void someMapUser(const HashMap<Integer, String> clients) {
clients[125] = "Hi Guys!"; // Doesn't work because 'put' is not marked as 'const'
}
In my opinion the 'const' approach it more usable and protective than pairs of interfaces.

Just to note, I think its fair to say that code like if (is HashMap<Integer, String> clients) { /* let's mutate! */ } is pretty evil! It generally shouldn't occur in trusted code.

I agree. And would be great that compiler could detect such 'evil' code on compilation stage. The 'const' paradigm allow this.
Main idea is: some class has the private object (map in my exmaple) which on the one hand should be shared with class's users in read-only mode and on the other hand might be modified within class.
I see possible solutions:

To do cast the object to immutable version of interface before share with user. Overhead is zero in this case, but object could be corrupted by intruder.
To make a copy of the object. Huge overhead for big objects.
To use some wrapper class like 'unmodifiableMap'. Overhead is less then case (2) but extra object-wrapper.
To use 'const' method/reference paradigm. There is zero overhead and read/write access policy could be fully performed on compilation stage.

I prefer (4) case. Because user of shared object by 'const' refrence can access only methdos marked as 'const' by author of class.

And would be great that compiler could detect such 'evil' code on compilation stage

but does such code actually exist in practice?

Because user of shared object by 'const' refrence can access only methdos marked as 'const' by author of class

My understanding of (4) is that const would be enforced solely by the type checker. If so, this would not protect against malicious code (you could always assign to Object to "shake" the const-ness of the value and then narrow, or use reflection to access the mutating member.) So it seems the value of this feature rests on the question above.

You right it possible, but I think safety aspeсt could be solved on compiler level something like this:
void Method(const Map<String, Integer> clients) {
// clients - is 'const' reference in this block
Object hack = clients; // Compiltation error: casting is disabled for 'const' references.
// Reflection hack
value classDecl = Map<String, Integer>
// found some member of class and try
member.apply(clients); // Compilation error: appling 'const' references is disabled
}

So is the goal to prevent mistakes or to protect against malicious code?

I think prevent error is more valuable goal. When I pass object by constant reference I might be sure what my object will save it immutability. And anybody couldn't have changed it by mistake or malicious.
In C++ it works, but safety is low, because you can do reinterpret_cast to reference or const_cast. But in JVM languages where compiler can dictate rules it's good idea i think.

Second thing is 'const' annotations can help to understand intentions of author when you read unfamiliar code.

I think prevent mistakes is more valuable goal

Ok, but my question remains, do these mistakes actually occur? Do people really narrow so that they can mutate?

Second thing is 'const' annotations can help to understand intentions of author when you read unfamiliar code

In Ceylon, I think the type of collection usually provides this documentation. For example, List<String> vs MutableList<String>.
Perhaps the value with const in Ceylon would be for non-collection types that don't have additional read-only interfaces (but the issue description only mentions Maps).

If we are talking about malicious code it is possible, why not?
If we are talking about mistakes it's more likely that user of class can to corrupt shared object by mistake without any malice.
The Map and MutableMap is just example of current approach. The 'const' approach is more flexible. You don't need do pairs of interfaces, just mark all methods which don't change object state and compiler guaranteed that object passed by the 'const' refernce willn't be changed in any case.
I can ask also:
Do memory leaks happen?
Do null pointer issue happen?
My answer is no if you always free all allocated resources and check any pointer for null.But "errare humanum est" and mistakes has been, is and will be.
Java save us from memory leaks by GC.

Give us more and save us from unwanted object access on compilation stage :)
I don't call on change existing codebase, but this powerful feature of the languge can very helpfun in future code.

Looking back, yeah, it's a bit of a weird idea.
I'd prefer const to be used as a compile time constant.
Such as some inlined static final fields in java.
This would also introduce some viable strategy for a basic constant propagation within Ceylon.
It might be a good idea to hold off on that idea until the dynamic constants are finished in the JVM.

I also like the idea of a const declaration within a method.
void method() {
    const Integer value = 0;
    otherMethod(value)
}

value gets inlined, and the local variable stops existing.
That's a definition of const I can get behind.

I think the JIT compilers already do a good job of inlining const values. And unless you declare a value variable it is final in the Java sense. So:
    Integer value = 0;
    otherMethod(value);

will make it unchangeable in the method, and while on the jVM side it will generate a local variable in the bytecode, the JIT compiler is sure to inline that value in no time. Probably JavaScript engines have similar optimization strategies.


Add login page option to provide secure ui option #maggie

I moved this to next priority list as it is the last of the semi-significant refactors (famous last words, hopefully the last or one of the last at least). Requires some backend and frontend work.
Will likely look at it next week, but converting to an issue for any ideas or thoughts. At the moment I was thinking a simple password option, no usernames, with the smallest interface possible (just an input box that pops up) and controlled by a little padlock icon in the top right. Backend wise, was just going to store a hashed password in a .env file. Creating a database for this would seem excessive for only one user. Unless @nucleardreamer you can see any need for potential database use for features in the future, then it may be worth adding it in now?
Add option for hashed env var and if not then normal password env var, and if not then no password.

Hey @maggie0002 tracking here.  I agree with your comments in the forums that the password should be a fleet variable.  If thats the case then yes, no need for username.

On second thoughts, it may be better to use a SQLite database. It’s excessive for storing one hash but it may prove useful to have in the future and as a starter project a simple database ready to go may be useful too. Will keep thinking it over, but leaning more the database route right now.

I think adding SQlite is a good tool to have going forward. Adding the ability for anyone to use a store to keep something permanent (perhaps while configuring their own components) will be a very useful thing to have.


Warn about truncation when listing collections

Related to slack thread (internal).
GET /api/collections do not return complete objects. Collections are truncated to keep only 4 items for performance reasons. This PR adds a warning in the api.md documentation.

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

Thanks for the quick review :)


Syncing with invalid paths throws obscure error

Trying to sync my irods home to a random directory fails. This may be expected as the paths don't match (irods home is <bla>/research-test-dawa, target is /tmp). But for some reason this throws a network-related error, which seems unhelpful to the user:
 $ ibridges sync irods:~/ /tmp/

Traceback (most recent call last):
  File "/opt/homebrew/bin/ibridges", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "/opt/homebrew/lib/python3.11/site-packages/ibridges/__main__.py", line 76, in main
    ibridges_sync()
  File "/opt/homebrew/lib/python3.11/site-packages/ibridges/__main__.py", line 315, in ibridges_sync
    sync_data(session,
  File "/opt/homebrew/lib/python3.11/site-packages/ibridges/sync.py", line 159, in sync_data
    tgt_files, tgt_folders=_get_local_tree(
                           ^^^^^^^^^^^^^^^^
  File "/opt/homebrew/lib/python3.11/site-packages/ibridges/sync.py", line 234, in _get_local_tree
    checksum=_calc_checksum(full_path)))
             ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/homebrew/lib/python3.11/site-packages/ibridges/sync.py", line 210, in _calc_checksum
    with open(filepath, 'rb', buffering=0) as file:
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
OSError: [Errno 102] Operation not supported on socket: '/tmp/com.apple.launchd.V2EF9B0wEo/Listeners'

@dometto Thanks for the report. I feel like this is something specific to the /tmp directory. if you create /tmp/ibridges and sync to that location, do you get the same error?

I tried it on my mac and I get a Permission error:
staig001@busoni iBridges % ibridges sync irods:~/ /tmp
Traceback (most recent call last):
  File "/opt/homebrew/bin/ibridges", line 8, in <module>
    sys.exit(main())
  File "/opt/homebrew/lib/python3.10/site-packages/ibridges/__main__.py", line 77, in main
    ibridges_sync()
  File "/opt/homebrew/lib/python3.10/site-packages/ibridges/__main__.py", line 316, in ibridges_sync
    sync_data(session,
  File "/opt/homebrew/lib/python3.10/site-packages/ibridges/sync.py", line 158, in sync_data
    tgt_files, tgt_folders=_get_local_tree(
  File "/opt/homebrew/lib/python3.10/site-packages/ibridges/sync.py", line 233, in _get_local_tree
    checksum=_calc_checksum(full_path)))
  File "/opt/homebrew/lib/python3.10/site-packages/ibridges/sync.py", line 209, in _calc_checksum
    with open(filepath, 'rb', buffering=0) as file:
PermissionError: [Errno 13] Permission denied: '/tmp/ticket-FgMoX8'

One needs to have sufficient rights to all items in the local folder to calculate the differences and do the update.
This will work and will take a looooooong time:
staig001@busoni iBridges % mkdir /tmp/backup_irods
staig001@busoni iBridges % ibridges sync irods:~/ /tmp/backup_irods

Ah yes, I see now that the networking error in my case was specific to the socket files in /tmp. 👍 Thanks for #158 @qubixes!


double-beep: Watch creditspecialist(?:@protonmail.ch)?

double-beep requests the watch of the watch_keyword creditspecialist(?:@protonmail\.ch)?. See the MS search here and the Stack Exchange search here.

creditspecialist(?:@protonmail\.ch)? has been seen in 3 true positives, 0 false positives, and 0 NAAs.

Hmm... Looks like the search that MS uses assumes the regex isn't bookended by \b. A more accurate search for this regex shown only 1 TP.
That isn't a problem for this PR, but a general issue for the search MS uses to post its comment. Ideally, it would use a regex that duplicates what is used for the watch/blacklist into which the regex is to be placed (i.e. bookending and s flag set for watches and blacklisted keywords, and no bookending for others).

Approved by Makyen in Charcoal HQ


When will it be stable?

Hi thanks for the GUI! It looks great, thus I wonder when will it become stable?

Since I am the only user of this 0 fork 0 star project, I have to say the pace could be very slow. If you encountered any difficulties or problems while using the app just say it here. More participants, more stabilities.

I see, thank you!


Can not create a Table in a given namespace using Apache HBase 1.2.0

Hi, recently I have switched an HBase version from
<hbase.version>1.1.2</hbase.version>
to
<hbase.version>1.2.0</hbase.version>
as this is the official version in the recent Cloudera 5.10.0 distribution.
After the switch, shc is not able to create an HBase table in a given namespace (not "default" one). I went briefly throught the code and found the solution. To have it working some small fixes needs to be made:
File: HBaseRelation.scala
line 152, replace
val r = connection.getRegionLocator(TableName.valueOf(catalog.name)).getAllRegionLocations
with
val r = connection.getRegionLocator(tName).getAllRegionLocations
line 171, replace
hbaseConf.set(TableOutputFormat.OUTPUT_TABLE, catalog.name)
with
hbaseConf.set(TableOutputFormat.OUTPUT_TABLE, s"${catalog.namespace}:${catalog.name}")
File: RegionResource.scala
line 94, replace
rl = connection.getRegionLocator(TableName.valueOf(relation.catalog.name))
with
rl = connection.getRegionLocator(TableName.valueOf(s"${relation.catalog.namespace}:${relation.catalog.name}")
File: TableResource.scala
line 126, replace
table = connection.getTable(TableName.valueOf(relation.catalog.name))
with
table = connection.getTable(TableName.valueOf(s"${relation.catalog.namespace}:${relation.catalog.name}"))
I can create a PR for it.

Thanks, @adamdec . From your solution here, I can see the problem in the current code. Have you tested the solution with hbase.version 1.1.2? If all the testing passed, yes, please make a PR.

Hi, @adamdec Is it any update for this issue? Thanks.

It is on my TODO list :)

I ran into this issue as well, so created PR#114

PR#114 has been merged. Thanks.

This has been resolved. Let's close this. Thanks.


Add theme: MinMaxCloseButtonStyled

Add theme: MinMaxCloseButtonStyled
This PR adds a new theme to the theme library.
Theme Details

Name: MinMaxCloseButtonStyled
Description: styles the min, max and close button of the title bar.
Homepage: https://github.com/amatya-aditya/Zen-Mods/tree/main/MinMaxCloseButtonStyled
Author: @amatya-aditya

@amatya-aditya please provide a better image that'll fit on the themes store, checkout other themes for insipration

@mauro-balades Will this image work? I didn't find a proper size.
Bigger Image

Please crop from the left. It should be like 400x300

Can you please review this one?
https://raw.githubusercontent.com/amatya-aditya/Zen-Mods/main/MinMaxCloseButtonStyled/400x300.png


Windows Cmake project cannot find MPI when using static triplet

Describe the bug
I'm having an issue in my windows build environment where a Cmake based project, using the vcpkg cmake toolchain file, can't find MPI (MSMPI) when using the x64-windows-static triplet. It works fine with the standard x64-windows triplet.
I was able to build a simple, reproducible test case on my local machine.
Environment
-- Selecting Windows SDK version 10.0.18362.0 to target Windows 10.0.19043.
-- The C compiler identification is MSVC 19.27.29111.0
-- The CXX compiler identification is MSVC 19.27.29111.0

To Reproduce
First, I cleared the MSMPI installation from my path, as well as clearing the MSMPI env vars to match my build enviroment. When present, cmake defaults to using the mpiexec location, which is in Program Files.
I setup a simple cmake project with this CMakeLists.txt:
cmake_minimum_required(VERSION 3.19)
project(mpi_demo)

find_package(MPI REQUIRED)
add_executable(main main.cpp)

target_include_directories(main SYSTEM PRIVATE ${MPI_INCLUDE_PATH})
target_link_libraries(main PUBLIC ${MPI_LIBRARIES})
if(MPI_COMPILE_FLAGS)
  set_target_properties(main PROPERTIES COMPILE_FLAGS "${MPI_COMPILE_FLAGS}")
endif()

if(MPI_LINK_FLAGS)
  set_target_properties(main PROPERTIES LINK_FLAGS "${MPI_LINK_FLAGS}")
endif()

and this main.cpp file:
#include <mpi.h>

int main(int argc, char* argv[])
{
  MPI_Init(&argc, &argv);
  MPI_Finalize();
  return 0;
}

I also setup two vcpkg installations, top of tree as of this morning 63aa65e65b9d2c08772ea15d25fb8fdb0d32e557.
PS C:\Users\russe\work\mpi_bug\vcpkg_static> ./vcpkg install --triplet x64-windows-static mpi
# ...
PS C:\Users\russe\work\mpi_bug\vcpkg_dynamic> ./vcpkg install --triplet x64-windows mpi
# ...
PS C:\Users\russe\work\mpi_bug\mpi_demo> cmake --version
cmake version 3.20.5

Then when I run cmake against the dynamic triplet, everything works as expected.
PS C:\Users\russe\work\mpi_bug\mpi_demo\build_dynamic> cmake .. `
>> -A x64 `
>> -DCMAKE_TOOLCHAIN_FILE=C:\Users\russe\work\mpi_bug\vcpkg_dynamic\scripts\buildsystems\vcpkg.cmake
-- Building for: Visual Studio 16 2019
-- Selecting Windows SDK version 10.0.18362.0 to target Windows 10.0.19043.
-- The C compiler identification is MSVC 19.27.29111.0
-- The CXX compiler identification is MSVC 19.27.29111.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.27.29110/bin/Hostx64/x64/cl.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.27.29110/bin/Hostx64/x64/cl.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found MPI_C: C:/Users/russe/work/mpi_bug/vcpkg_dynamic/installed/x64-windows/debug/lib/msmpi.lib (found version "2.0")
-- Found MPI_CXX: C:/Users/russe/work/mpi_bug/vcpkg_dynamic/installed/x64-windows/debug/lib/msmpi.lib (found version "2.0")
-- Found MPI: TRUE (found version "2.0")
-- Configuring done
-- Generating done
-- Build files have been written to: C:/Users/russe/work/mpi_bug/mpi_demo/build_dynamic

However, when running against the static toolchain, MPI can't be found.
PS C:\Users\russe\work\mpi_bug\mpi_demo\build_static> cmake .. `
>> -A x64 `
>> -DCMAKE_TOOLCHAIN_FILE=C:\Users\russe\work\mpi_bug\vcpkg_static\scripts\buildsystems\vcpkg.cmake
-- Building for: Visual Studio 16 2019
-- Selecting Windows SDK version 10.0.18362.0 to target Windows 10.0.19043.
-- The C compiler identification is MSVC 19.27.29111.0
-- The CXX compiler identification is MSVC 19.27.29111.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.27.29110/bin/Hostx64/x64/cl.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.27.29110/bin/Hostx64/x64/cl.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Could NOT find MPI_C (missing: MPI_C_LIB_NAMES MPI_C_HEADER_DIR MPI_C_WORKS)
-- Could NOT find MPI_CXX (missing: MPI_CXX_LIB_NAMES MPI_CXX_HEADER_DIR MPI_CXX_WORKS)
CMake Error at C:/Program Files/CMake/share/cmake-3.20/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
  Could NOT find MPI (missing: MPI_C_FOUND MPI_CXX_FOUND)
Call Stack (most recent call first):
  C:/Program Files/CMake/share/cmake-3.20/Modules/FindPackageHandleStandardArgs.cmake:594 (_FPHSA_FAILURE_MESSAGE)
  C:/Program Files/CMake/share/cmake-3.20/Modules/FindMPI.cmake:1742 (find_package_handle_standard_args)
  C:/Users/russe/work/mpi_bug/vcpkg_static/scripts/buildsystems/vcpkg.cmake:784 (_find_package)
  CMakeLists.txt:4 (find_package)

-- Configuring incomplete, errors occurred!

The error log is here, mpi.h can't be found:
PS C:\Users\russe\work\mpi_bug\mpi_demo\build_static> Get-Content C:/Users/russe/work/mpi_bug/mpi_demo/build_static/CMakeFiles/CMakeError.log
The MPI test test_mpi for C in mode normal failed to compile with the following output:
Change Dir: C:/Users/russe/work/mpi_bug/mpi_demo/build_static/CMakeFiles/CMakeTmp

Run Build Command(s):C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/MSBuild/Current/Bin/MSBuild.exe cmTC_85148.vcxproj /p:Configuration=Debug /p:Platform=x64 /p:VisualStudioVersion=16.0 /v:m && Microsoft (R) Build Engine version 16.7.0+b89cb5fde for .NET Framework

Copyright (C) Microsoft Corporation. All rights reserved.

  Microsoft (R) C/C++ Optimizing Compiler Version 19.27.29111 for x64

  test_mpi.c

  Copyright (C) Microsoft Corporation.  All rights reserved.

  cl /c /Zi /W1 /WX- /diagnostics:column /Od /Ob0 /D WIN32 /D _WINDOWS /D "CMAKE_INTDIR=\"Debug\"" /D _MBCS /Gm- /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"cmTC_85148.dir\Debug\\" /Fd"cmTC_85148.dir\Debug\vc142.pdb" /Gd /TC /errorReport:queue "C:\Program Files\CMake\share\cmake-3.20\Modules\FindMPI\test_mpi.c"

C:\Program Files\CMake\share\cmake-3.20\Modules\FindMPI\test_mpi.c(1,10): fatal error C1083: Cannot open include file: 'mpi.h': No such file or directory [C:\Users\russe\work\mpi_bug\mpi_demo\build_static\CMakeFiles\CMakeTmp\cmTC_85148.vcxproj]

The MPI test test_mpi for CXX in mode normal failed to compile with the following output:
Change Dir: C:/Users/russe/work/mpi_bug/mpi_demo/build_static/CMakeFiles/CMakeTmp

Run Build Command(s):C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/MSBuild/Current/Bin/MSBuild.exe cmTC_73e43.vcxproj /p:Configuration=Debug /p:Platform=x64 /p:VisualStudioVersion=16.0 /v:m && Microsoft (R) Build Engine version 16.7.0+b89cb5fde for .NET Framework

Copyright (C) Microsoft Corporation. All rights reserved.

  Microsoft (R) C/C++ Optimizing Compiler Version 19.27.29111 for x64

  test_mpi.cpp

  Copyright (C) Microsoft Corporation.  All rights reserved.

  cl /c /Zi /W1 /WX- /diagnostics:column /Od /Ob0 /D WIN32 /D _WINDOWS /D "CMAKE_INTDIR=\"Debug\"" /D _MBCS /Gm- /EHsc /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /GR /Fo"cmTC_73e43.dir\Debug\\" /Fd"cmTC_73e43.dir\Debug\vc142.pdb" /Gd /TP /errorReport:queue C:\Users\russe\work\mpi_bug\mpi_demo\build_static\CMakeFiles\FindMPI\test_mpi.cpp

C:\Users\russe\work\mpi_bug\mpi_demo\build_static\CMakeFiles\FindMPI\test_mpi.cpp(1,10): fatal error C1083: Cannot open include file: 'mpi.h': No such file or directory [C:\Users\russe\work\mpi_bug\mpi_demo\build_static\CMakeFiles\CMakeTmp\cmTC_73e43.vcxproj]

After looking at the docs for FindMPI, I can work around this issue by explicitly specifying everything needed.
cmake .. `
-A x64 `
-DMPI_CXX_LIBRARIES=C:\Users\russe\work\mpi_bug\vcpkg_static\installed\x64-windows-static\lib\msmpi.lib `
-DMPI_C_LIBRARIES=C:\Users\russe\work\mpi_bug\vcpkg_static\installed\x64-windows-static\lib\msmpi.lib `
-DMPI_CXX_ADDITIONAL_INCLUDE_DIRS=C:\Users\russe\work\mpi_bug\vcpkg_static\installed\x64-windows-static\include `
-DMPI_C_ADDITIONAL_INCLUDE_DIRS=C:\Users\russe\work\mpi_bug\vcpkg_static\installed\x64-windows-static\include

Expected behavior
I would expect both toolchain files to be sufficient for finding MPI.

I am not familiar enough with vcpkg internals to debug further. I was not able to find any clear differences in the msmpi portfile that would account for this. Perhaps it's user error? If there's more info I can provide, please let me know.

you cannot reconfigure cmake for different triplets
you probably did not pass -DVCPKG_TARGET_TRIPLET=x64-windows-static in the second case?

Hi @SallySoul
Thanks for posting this issue. Could you please try to pass -DVCPKG_TARGET_TRIPLET=x64-windows-static to cmake command to rebuild static project?
Note: Please remove configure logs before you build this.
I use cmake .. -A x64 -DCMAKE_TOOLCHAIN_FILE=F:\latest\vcpkg\scripts\buildsystems\vcpkg.cmake -DVCPKG_TARGET_TRIPLET=x64-windows-static to build without any errors.

VCPKG_TARGET_TRIPLET was the missing ingredient, thanks!


Add pr-coauthor bot

Copied config from withastro/docs

Thanks for this @Adammatthiesen! Chatted a bit with the team, and I think we’re happy using https://coauthor.kevinzunigacuellar.com/ directly for now, but appreciate the thought of throwing this PR together 🙌


$tm returns a list of functions

Reporting a bug?
I'm developping a website using the release candidate version of Nuxt3 (and prior to that the beta version). To this end, I of course use @intlify/nuxt3 to integrate vue-i18n within the website. Everything is working fine, thank you for the good work you put into it, except when it comes to lists in the locales json files. I have a contact form for which I need the users to enter information, and I wanted to use i18n for the translation. When calling $tm("someKeys"), I got the following function displayed :
(ctx) => {const { normalize: _normalize } = ctx;return _normalize(["neededTranslation"])}
I tried to call it, but it resulted in an error :
TypeError: Cannot destructure property 'normalize' of 'ctx' as it is undefined.
Expected behavior
We should get the resulted key, not a function.
Reproduction
A reproducible example in codesandbox is accessible here :
https://codesandbox.io/s/white-worker-oxsn11
Nuxt project info

Operating System: Darwin
Node Version:     v16.13.2
Nuxt Version:     3.0.0-rc.1
Package Manager<EMAIL_ADDRESS>Builder:          vite
User Config:      buildModules, intlify, modules, build
Runtime Modules:  -
Build Modules<EMAIL_ADDRESS><EMAIL_ADDRESS>

devDependencies
 "devDependencies": {     "@intlify/nuxt3": "^0.1.10",     "@nuxtjs/tailwindcss": "^5.0.0-4",     "@tailwindcss/forms": "^0.5.0",     "nuxt": "^3.0.0-rc.1"   },
System Info
System:
OS : macOS Monterey 12.3.1 (21E258) CPU : Apple M1 Memory : 8 Go
Binaries:
Node : v16.13.2 Yarn : v1.22.17 NPM : v8.6.0
Browsers:
Safari: Version 15.4 (176<IP_ADDRESS>.13) Chrome : Version 100.0.4896.127 (official Build) (arm64)
Screenshot

Additional infos
As shown in #55, the new 0.2.0 version of @intlify/nuxt3 does not work yet, so I still use 0.1.10.
Validations

[x] Read the Contributing Guidelines
[x] Read the Documentation
[x] Checked that there isn't already an issue that reports the same bug to avoid creating a duplicate.
[x] Checked that this is a concrete bug.
[x] The provided reproduction is a minimal reproducible example of the bug

I think you need to use the $rt function to parse the result returned by $tm as explained here: https://vue-i18n.intlify.dev/api/composition.html#tm-key


⚠ DesiTorrents has degraded performance

In 106a907, DesiTorrents ($DST) experienced degraded performance:

HTTP code: 200
Response time: 2917 ms

Resolved: DesiTorrents performance has improved in e499cb7.


Making the settings more sexy 😍

Codecov Report

Merging #5 (c044c31) into master (ca2497e) will decrease coverage by 0.01%.
The diff coverage is 97.14%.

@@            Coverage Diff             @@
##           master       #5      +/-   ##
==========================================
- Coverage   99.27%   99.25%   -0.02%
==========================================
  Files          15       15
  Lines         550      540      -10
  Branches       56       55       -1
==========================================
- Hits          546      536      -10
  Misses          3        3
  Partials        1        1

Impacted Files
Coverage Δ

src/aioauth/base/database.py
100.00% <ø> (ø)

src/aioauth/utils.py
95.50% <85.71%> (ø)

src/aioauth/base/endpoint.py
100.00% <100.00%> (ø)

src/aioauth/base/request_validator.py
100.00% <100.00%> (ø)

src/aioauth/config.py
100.00% <100.00%> (ø)

src/aioauth/endpoints.py
100.00% <100.00%> (ø)

src/aioauth/errors.py
100.00% <100.00%> (ø)

src/aioauth/grant_type.py
100.00% <100.00%> (ø)

src/aioauth/models.py
100.00% <100.00%> (ø)

src/aioauth/requests.py
100.00% <100.00%> (ø)

... and 1 more

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 ca2497e...c044c31. Read the comment docs.

good!!! sexy!!!


setMaxListeners

My flight is working, but near the end, it runs into an error.
Looks to be related to ssh2, but not sure exactly what is the emitter that is getting maxed out.
(node) warning: possible EventEmitter memory leak detected. 11 close listeners added. Use emitter.setMaxListeners() to increase limit.
Trace
  at new ChannelStream (/Users/theo/Breather/breather.com/node_modules/flightplan/node_modules/ssh2/lib/Channel.js:578:17)
  at /Users/theo/Breather/breather.com/node_modules/flightplan/node_modules/ssh2/lib/Channel.js:360:20
  at Parser.<anonymous> (/Users/theo/Breather/breather.com/node_modules/flightplan/node_modules/ssh2/lib/Channel.js:142:30)
  at Parser.parsePacket (/Users/theo/Breather/breather.com/node_modules/flightplan/node_modules/ssh2/lib/Parser.js:632:12)
  at Parser.execute (/Users/theo/Breather/breather.com/node_modules/flightplan/node_modules/ssh2/lib/Parser.js:249:14)
  at Socket.<anonymous> (/Users/theo/Breather/breather.com/node_modules/flightplan/node_modules/ssh2/lib/Connection.js:536:18)
  at Connection.connect (/Users/theo/Breather/breather.com/node_modules/flightplan/node_modules/ssh2/lib/Connection.js:578:16)
  at new SSH (/Users/theo/Breather/breather.com/node_modules/flightplan/lib/transport/ssh.js:54:20)
  at /Users/theo/Breather/breather.com/node_modules/flightplan/lib/flight/remote.js:15:25
  at EventEmitter.prompt.start (/Users/theo/Breather/breather.com/node_modules/flightplan/node_modules/prompt/lib/prompt.js:74:38)
  at /Users/theo/Breather/breather.com/node_modules/flightplan/lib/transport/index.js:312:16
  at Object.Transport.prompt.self.next (/Users/theo/Breather/breather.com/node_modules/flightplan/lib/transport/index.js:277:7)
  at /Users/theo/Breather/breather.com/node_modules/flightplan/lib/transport/index.js:325:13
  at task (/Users/theo/Breather/breather.com/node_modules/flightplan/lib/transport/index.js:354:5)
  at Shell.Transport.waitFor (/Users/theo/Breather/breather.com/node_modules/flightplan/lib/transport/index.js:359:10)
  at Shell.prompt (/Users/theo/Breather/breather.com/node_modules/flightplan/lib/transport/index.js:307:17)
  at /Users/theo/Breather/breather.com/flightplan.coffee:35:19
  at /Users/theo/Breather/breather.com/node_modules/flightplan/lib/flight/local.js:16:7

Hi Theo
I've never seen this before. Can you post the context of line 35 in flightplan.coffee? It seems to be local connection, right?

so line 35 is just a local prompt. It errors out way later down in the deployment.
...
plan.local 'deploy', (local) ->
  # confirm deployment to production
  if plan.runtime.target == 'production'
    input = local.prompt('Are you sure you want to deploy to production? [yes/no]')
    if input.indexOf('yes') == -1
      plan.abort('user canceled deploy')
...

the full plan is below. Also notable, I'm using this exact same plan on 2 other repos and it doesnt seem to be a problem there :\
plan = require 'flightplan'
moment = require 'moment-timezone'
_ = require 'lodash'
nconf = require 'nconf'

# TODO: move to /lib like the others
require './src/run-init'

USER = 'breather'
NUM_DEPLOYS = 5
SUBDOMAIN = nconf.get('BREATHER_SUBDOMAIN')
REPO = nconf.get('REPO_NAME')
NO_FRONTEND = !!nconf.get('NO_FRONTEND')

ssh_key = nconf.get('BREATHER_SSH_KEY') || "#{process.env.HOME}/.ssh/id_rsa"
deploy_branch = 'master'

# SERVERS
plan.target 'staging', _.map nconf.get('IP:staging').split(' '), (ip) ->
  host: ip
  username: USER
  privateKey: ssh_key

plan.target 'production', _.map nconf.get('IP:production').split(' '), (ip) ->
  host: ip
  username: USER
  privateKey: ssh_key

# TASKS
plan.local 'deploy', (local) ->

  # confirm deployment to production
  if plan.runtime.target == 'production'
    input = local.prompt('Are you sure you want to deploy to production? [yes/no]')
    if input.indexOf('yes') == -1
      plan.abort('user canceled deploy')

    local.log("Pushing master to #{SUBDOMAIN}.breather.com")

  # on staging, deploy the current branch
  else
    git_dirty = local.exec('git diff --shortstat')
    if git_dirty.stdout
      plan.abort('Please commit your local changes and push them to github to deploy')

    git_local_commit = local.exec('git rev-parse HEAD').stdout
    git_remote_commit = local.exec('git rev-parse @{u}').stdout

    if git_local_commit != git_remote_commit
      plan.abort('push local commits to github to deploy')

    current_branch = local.exec("git rev-parse --abbrev-ref HEAD").stdout
    deploy_branch = current_branch.replace("\n", '')

    local.log("Pushing #{deploy_branch} to #{SUBDOMAIN}.breatherdev.com")

# DEPLOY - deploys current branch for staging or master for production
plan.remote 'deploy', (remote) ->

  # set nocache to not use the old node_modules and bower libs
  no_dependency_cache = !!plan.runtime.options.nocache

  deploy_name = moment.tz('America/New_York').format('YYYY-MM-DD-HHmmss')+'-'+deploy_branch.replace(/\//g, '-')

  remote.log 'Deploying -- '+deploy_name

  remote.log 'Checking out latest from github'

  remote.exec "mkdir -p #{REPO}"

  remote.exec "cd #{REPO} && git clone git@github.com:breather/#{REPO}.git -b #{deploy_branch} #{deploy_name}"

  cd = "cd #{REPO}/#{deploy_name} &&"

  if !no_dependency_cache
    remote.log 'Using cached dependencies from last deploy (npm)'
    remote.exec "cp -R #{REPO}/current/node_modules #{REPO}/#{deploy_name}/node_modules"
    if !NO_FRONTEND
      remote.exec "mkdir #{REPO}/#{deploy_name}/assets/lib-bower"
      remote.exec "cp -R #{REPO}/current/assets/lib-bower #{REPO}/#{deploy_name}/assets/lib-bower"

  remote.log 'Installing dependencies'
  remote.exec "#{cd} npm install --production"

  if !NO_FRONTEND
    remote.log 'Building assets'
    remote.exec "#{cd} ./node_modules/.bin/grunt build"

    remote.log 'Deploying assets'
    remote.exec "#{cd} ./node_modules/.bin/grunt deploy-assets"

  remote.log 'Relinking new deployment'
  remote.exec "ln -snf ~/#{REPO}/#{deploy_name} ~/#{REPO}/current"

  remote.log 'Reloading application (zero-downtime)'
  remote.exec "pm2 reload all"

  remote.log "Deleting old deploys (last #{NUM_DEPLOYS} are saved)"
  remote.exec "cd #{REPO} && rm -rf `ls -td 201* | awk 'NR>#{NUM_DEPLOYS}'`"

# ROLLBACK - rolls back and restarts
plan.remote 'rollback', (remote) ->

  deploys = remote.exec("cd #{REPO} && ls -td 201*").stdout.replace(/\n$/, '')
  deploys = deploys.split("\n")

  current_deploy = remote.exec("readlink -f #{REPO}/current").stdout
  current_deploy = current_deploy.substr(current_deploy.lastIndexOf('/')+1).replace("\n", '')

  current_index = _.indexOf(deploys, current_deploy)
  num_available = deploys.length - current_index - 1
  if num_available == 0
    plan.abort('No old deploys available to roll back to')

  rollback_num = remote.prompt("How many deploys do you want to rollback? [default: 1, max: #{num_available}]")
  if rollback_num == '' then rollback_num = 1
  rollback_num = parseInt(rollback_num)

  if rollback_num < 1 || rollback_num > num_available
    plan.abort('Invalid # of deploys to roll back')

  rollback_name = deploys[current_index + rollback_num]

  remote.log "Relinking deployment #{rollback_num} back"
  remote.exec "ln -snf ~/#{REPO}/#{rollback_name} ~/#{REPO}/current"

  remote.log 'Reloading application (zero-downtime)'
  remote.exec "pm2 reload all"

# RESTART - restarts pm2
plan.remote 'restart', (remote) ->
  remote.log 'Restarting application'
  if plan.runtime.options.force
    remote.exec 'pm2 kill'
    # spawn as many instances as we have cores on the machine
    remote.exec "cd #{REPO} && pm2 start current/app.coffee -i 0 --name \"#{REPO}\""
  else
    remote.exec "pm2 reload all"

# STATUS - shows pm2 status
plan.remote 'status', (remote) ->
  remote.exec "pm2 list"

# STATUS - shows pm2 status
plan.remote 'logs', (remote) ->
  remote.exec "pm2 logs"

Are you using the exact same node.js version for all the projects where you are using this flight?

@seybsen Thanks for catching up here, this issue went off my radar somehow.
@theoephraim is this still a problem or could you resolve it?

Please reopen this issue it's still a problem.


Errors while trying to run the app

After running this command below:
npm start
I got these issues
`ERROR in ./app/styles/plugins/plugins.scss
Module build failed (from ./node_modules/extract-css-chunks-webpack-plugin/dist/loader.js):
ModuleBuildError: Module build failed (from ./node_modules/sass-loader/dist/cjs.js):
$half-drag-handle-height: math.div($drag-handle-height, 2);
^
Invalid CSS after "...le-height: math": expected expression (e.g. 1px, bold), was ".div($drag-handle-h"
in /home/ubuntu/weferral/node_modules/react-image-crop/lib/ReactCrop.scss (line 21, column 31)
at /home/ubuntu/weferral/node_modules/webpack/lib/NormalModule.js:316:20
at /home/ubuntu/weferral/node_modules/loader-runner/lib/LoaderRunner.js:367:11
at /home/ubuntu/weferral/node_modules/loader-runner/lib/LoaderRunner.js:233:18
at context.callback (/home/ubuntu/weferral/node_modules/loader-runner/lib/LoaderRunner.js:111:13)
at Object.callback (/home/ubuntu/weferral/node_modules/sass-loader/dist/index.js:89:7)
at Object.done [as callback] (/home/ubuntu/weferral/node_modules/neo-async/async.js:8069:18)
at options.error (/home/ubuntu/weferral/node_modules/node-sass/lib/index.js:294:32)
@ ./app/layout/default.js 39:0-42
@ ./app/components/App/AppClient.js
@ ./app/components/App/index.js
@ ./app/index.js
@ multi ./app/index.js
ERROR in ./app/routes/index.js
Module not found: Error: Can't resolve './Pages/Email' in '/home/ubuntu/weferral/app/routes'
@ ./app/routes/index.js 28:0-34 173:15-20
@ ./app/components/App/AppClient.js
@ ./app/components/App/index.js
@ ./app/index.js
@ multi ./app/index.js
`
Could you advice?

@mlubbad-2p , Did you get a solution for this error?
Thanks