optimizer = torch.optim.Adam(algorithm.parameters(),lr=args.lr)

I think there is an error in code unsupervised_adapt.py line 198
optimizer = torch.optim.Adam(algorithm.parameters(),lr=args.lr)
Due to line above line, no matter which "update_param" is chosen, the model will always update all parameters.
I think line 198 should be commented out.
I can be wrong, but I just want you to check if this is right.
Thank you for sharing your work.

I think what you said is right. Thanks for pointint this. I will fix it as soon as possible


whitespaces in Python code files

Hi thank you for contributing this dataset, I have a question about the Python code files in the synthesis task, I was curious why you have additional whitespaces in the code for example here around parentheses and brackets:
def maxPresum ( a , b ) : NEW_LINE INDENT X = max ( a [ 0 ] , 0 )

Do you train the models directly on this data or do you use some preprocessing to remove the spaces and that you can point me to?
Thanks in advance!

Can you elaborate more about the tokenization part, which module you used and do you know if the operation can be reversed? I also want to remove the NEWLINE, INDENT, DEDENT.. keywords to have standard python code

BTW the text-to-code portion of the dataset is already available on Hugging Face hub in this link https://huggingface.co/datasets/codeparrot/xlcost-text-to-code if you want to mention it in the README. I can add the other subsets when I find some time otherwise  I'd be happy to assist you if you want to add it, it should be fairly similar to what we did for this portion.

I also have the same question of @loubnabnl , how can I reverse the process of tokenization and get the clean code?


Informer logging lacks type detail

KubeFed's sync controller uses informers to watch federated resources in the host cluster and target resources in member clusters. The sync controller is configured with type information via the API to support the federation of types (e.g. CRDs) for which golang structs may not be available at compilation time.  Accordingly, the sync controller configures its informers with an ObjectType (indicating the type of resource that will be watched) of nil. ObjectType is passed by an informer to an internal Reflector instance, where it is used to:
1 -  check that the type of an event's object is as expected (i.e. 1)
2 -  indicate the type of resource that a log pertains to (e.g. 1, 2)
Passing nil for ObjectType avoids the type check to support watching resources for which a golang struct is not available, but also results in most Reflector log messages displaying <nil> instead of a type name:
0806 13:49:50.180103    3856 reflector.go:131] Starting reflector <nil> (0s) from sigs.k8s.io/kubefed/pkg/controller/sync/accessor.go:161
I0806 13:49:50.180207    3856 reflector.go:169] Listing and watching <nil> from sigs.k8s.io/kubefed/pkg/controller/sync/accessor.go:161
I0806 13:49:50.180106    3856 reflector.go:169] Listing and watching <nil> from sigs.k8s.io/kubefed/pkg/controller/sync/accessor.go:156

Ideally Reflector could be configured with a typeName to be used in log messages. If typeName were not provided, it would be continue to be computed as expectedType.String(). A new constructor for Reflector and Informer could be added to support provision of typeName.

Fixing this is likely to require changes to client-go (i.e. kubernetes/kubernetes) since that's where the informer and reflector code is sourced from.
@sttts @deads2k Your feedback on the feasibility of resolving this issue would be much appreciated.

@marun With a small change to reflector.go logging, an Unstructured object can be used for the expected type and GroupVersionKind could be used for logging.  If this is acceptable, I can raise PRs.
kubefed:
https://github.com/snaproute-mino/kubefed/commit/45947e974b3b8915b471473ea92af12379ccc5a6
client-go:
https://github.com/snaproute-mino/kubernetes/commit/f5e9b912be613db010b91e8a83cb48c3a1ffb054

@pjferrell I'm already working on this after discussing with @sttts earlier this week. He indicated that Unstructured support was desirable for the reflector but only to the degree that the kind be checked for and logged (vs gvk).

Ok, just thought I'd share the diffs since we had to address this internally.  IMO... as a general purpose change itd be more helpful to provide group and kind in log.
We have some controllers handing config and state as separate kinds in same controller (would be nice for log to differentiate).  For kubefed, I could imagine multiple federatedtypes with same kind, but different groups.


Add JobVersion To Both Pipelines

we also need to set the jobversion for orchestrator input data and current trigger entity in dicom scheduler service

The orchestrator input data also have JobVersion. DICOM and FHIR scheduler service both use raw CurrentTriggerEntity.


Entity hider for nechryaels "Death spawn"

Always frustrated when I attack them 5 times before I manage to loot something or mouse doubeclicks on loot and attacks them instead
Able to hide them in entity hider. Alternative solution would be making their right click option.
Alternative solution would be making their right click option.
Good QOL cause nobody wants to attack them.
Kind regards,
Nech killer

Bloody hate them

Cant even see the Nechryael

any update on this

At some point the Menu Entry Swapper plugin got the ability to switch the left-click option to walk-here instead of attack, so the wanted functionality of this issue, which is being unable to misclick death spawns, is possible.


chore: release rust agent 0.10.3

Updated candid and ic-types, along with minor updates to other dependencies.

This is a breaking change for the ic_types version bump, as anyone on 0.2.2 won't be able to use the same Principal type and updating to 3 breaks any code that was relying on the AsRef<[u8]> behavior.


Implementing ro.py & refactoring

I have implemented ro.py to correctly verify .ROBLOSECURITY token and place id. I removed some libraries as they were contained in ro.py. I moved the place id definition inside main.py and removed start.bat. I made everything asynchronous. I refactored the code improving the handling of exceptions. These changes do not resolve #7.

@emppu-dev I tried to fix the problem #7 but couldn't, can you take a look at it by moving to this branch?

Will review soon

If you can, try to understand why the POST https://auth.roblox.com/v1/authentication-ticket fails and does not return the desired headers. The problem was already present.

It would be better to put some methods in series rather than in parallel. I take care of it.


Skip file handle cache when max cache size is 0

Fixes: #7512

@Yuhta , @mbasmanova , could you please help to check?


Fixed broken/deprecated GLM/julia calls

This PR also adds support for penalty factors to GammaLassoPath with tests for this feature for both LassoPath and GammaLassoPath (hence the many csv files).

Coverage increased (+0.5%) to 93.319% when pulling e79d9fead6dbc0ac1765008cf07bbba867ad108a on AsafManela:master into 75d43104d7a37fed7a456658dbe71859b081f708 on simonster:master.

@simonster, the currently released Lasso.jl does not work with stable GLM.jl due to their interface change.
This PR addresses that plus adds some features.
Just wondering if you are not merging because too busy, which is understandable, or because you disagree with the changes, which I can change ;)

Thanks!


Add Greenkeeper for DoneJS dependency updates ~2

http://greenkeeper.io is exactly what we need to keep the DoneJS dependencies up to date. Whenever a dependency gets updated and does not match the SemVer range it will issue a pull request with the updated package.json which will kick off CI.

turns out I'm not an owner on the donejs repos, @matthewp do you want to take this one?

Sure.

This won't cause the donejs dependencies to be updated though, since those dependencies are stored in donejs-cli's package.json "donejs" field.

It's set up now.


Fix the charter link

The charter link points to a dead link on the website. The website currently points to the TOB repo, so this change mirrors that.

They should really remove my merge access here 👀


Enabled interlacing for jpegs

It's the difference between this:

And this (stopped recording early, but you get the point :wink:):

@rogierslag @joostverdoorn @wouter-willems @alexnederlof - RFR

:+1:

No not yet unfortunately
:+1:


WIP: add dispatch, signals and signing, improve http attributes

I made some new stubs for django dispatch and some core features. I also added the __setattr__ and __getattr__ so that people can tack on attributes dynamically (which is apparently a common pattern).
WIP: I also want to update MultiValueDict, as the get methods are not correctly typed.

Sorry I have other priorities, so I won't be getting back to this.


The data_format in Conv2D need some fix

Issue Type
Documentation Bug
Source
source
Keras Version
not a keras bug
Custom Code
No
OS Platform and Distribution
No response
Python version
No response
GPU model and memory
No response
Current Behavior?
at Arguments -> data_format
it is now "channels_last" corresponds to inputs with shape (batch_size, channels, height, width)
Something is wrong here.
Standalone code to reproduce the issue or tutorial link
https://keras.io/api/layers/convolution_layers/convolution2d/

Relevant log output
No response

Hi @dugujiujian1999 ,
This has been fixed at master already. Please refer the source code of master branch.
https://github.com/keras-team/keras/blob/d550552a0fff734b7b3ccdf3c12c02b5cd81605b/keras/layers/convolutional/conv2d.py#L27

@SuryanarayanaY Thank you, but the errors on the website have not been fixed yet.

Hi @dugujiujian1999 ,
The documentation will get updated in next release. The changes has been fixed at Master only.Current stable release won't have these changes yet.


Debugger freezes on start without error

When I try to run "Debug Rails with rdbg" the server doesn't start. It just seems to freeze. Same with "Attach with rdbg". Nothing seems to happen.

I'm not sure how to debug it as I don't have any errors popping.
laungh.json:
{
  "version": "0.2.0",
  "configurations": [
    {
      "type": "rdbg",
      "name": "Debug Rails with rdbg",
      "rdbgPath": "bundle exec rdbg",
      "request": "launch",
      "cwd": "${workspaceFolder}",
      "command": "${workspaceFolder}/bin/rails",
      "script": "server"
    },
    {
      "type": "rdbg",
      "name": "Attach with rdbg",
      "request": "attach"
    }
  ]
}

macOS 13.4
VSCode 1.79.2
rdbg 1.8.0
Ruby 3.2.2
Rails 7.0.5

I have this problem as well. Absolutely no idea what could be wrong, I can't find any feedback anywhere.

I don't use the debugger that often, but this might be a dealbreaker for a lot of people. Hopefully somebody addresses it shortly.

When you say that it freezes, do you mean you see a spinner beside the debug button or you mean VSCode freezes altogether?
Have you set a Version manager in RDBG settings for VSCode?

If you have, maybe the issue you are encountering is related to what is reported here.

I'm not very familiar with how it should work, but when I start debugging nothing happens and I can't stop it by clicking on the debug menu here:

These are my settings:

@vassyz those settings are for a different extension, https://github.com/Shopify/vscode-ruby-lsp

What I was asking is if you configured the Ruby Version Manager you use in the Rdbg settings.
In VSCode:

Go to Settings
in the search bar type: Rdbg: Ruby Version Manager
What is the value of this parameter?

I don't recognize the extension you use to display your Ruby environment informations in the status bar. It looks nice, what is it?

@plfoley Sorry, as @andyw8 mentioned above I screenshotted the settings from ruby-lsp.
The one you asked about is set to asdf.

I'm using rvm, if that information helps. The little blue progress bar below Run and debug starts moving and nothing else happens afterwards.

@vassyz @Sorc96
The only thing that works for me is to set the Ruby Version Manager to "None"
In the launch.json file you may need to specify the path to rdbg as such:
"rdbgPath": "~/.rbenv/shims/rdbg", (Replace rbenv with the path your version manager uses)
Although I don't need to do this since I configured loading my version manager ~/.zprofile instead of ~/.zshrc

I used the same workaround, but after a second reattach I see the error: connect ENOENT.
For the program I use Socket approach.

FWIW, I am using asdf with zsh, and got around the freeze by:

As suggested above, unsetting rubyVersionManager, in order to skip the code which should setup the ruby environment but ends up freezing (supposedly because of the iterm2 integration):➜ ps aux | grep RUBY_ENV_ACTIVATE
brice.jaglin     60254   0.0  0.0 408272416   3840   ??  S     9:40PM   0:00.05 /bin/zsh -lic asdf exec ruby -rjson -e printf(%{RUBY_ENV_ACTIVATE%sRUBY_ENV_ACTIVATE}, JSON.dump(ENV.to_h))

Setting useTerminal to true, to use the asdf-backed shims just as an interactive user would

I assume this workaround should cover all version managers.

I tried with "None" as Ruby Version Manager and "rdbgPath": "~/.asdf/shims/rdbg" and it still freezes.

I tried downgrading the extension to 0.1.0 and it worked for me. I hope this workaround works well for you.

Switching to 0.1.0 solved this issue for me as well.

Switching to 0.1.0 solved the issue for me as well! There must be some regression :(
(ruby 2.7)
A couple of things.

I noticed that when I open rdbg, if you have output on your zshrc, it tries to run that output as a command.
Breakpoints are not working for me in 0.2.x
In rails. I can't get it to work by just running it, in either version, it executes, you see DEBUGGER: Connected. and then it disconnects. When running rails rdbg outputs the DEBUGGER: Debugger can attach via UNIX domain socket TWICE
Therefore, I still can only attach to it, running rdbg --open  --command bundle exec rails server and then using the request: attach in launch.json
the socket that it opens when you run it with launch can't  be found when you later try attach, so you can't re-attach when it gets disconnected, (It also doesn't show you as disconnected, just in the UI you loose the debugger)

If I run a "debug current file" two things

If the file has a space it doesn't work, you need to add the double quotes
When I just run on a file like  test.rb the attached at the bottom it says Couldn't start debug session. The debuggee process exited with code 7

# test.rb
puts "hi"

puts :jey

Just to add, I had the same thing as @bjaglin-swile and unsetting rubyVersionManager worked for me too. Thanks @bjaglin-swile !!

I can confirm that now setting rubyVersionManager to none instead of asdf works for me as well.

Confirming also that manually setting rdbgPath to ~/.asdf/shims/rdbg, instead of setting rubyVersionManager to asdf, "fixed" this for me. So it seems something related to rubyVersionManager (+ maybe asdf specifically?) is broken.

Can someone provide step-by-step repro scenario I cant try?

@ko1 I haven't used the extension since, but I've just selected asdf as the Ruby version manager and it worked fine. I'll continue testing it for a while.

Experiencing the very same behaviour as the original issue reporter.  Ruby version manager is "none" in the extension settings and the launch.json contains the following configuration (which causes the debugging to freeze):
{
"name": "Debug Local File with rdbg",
"type": "rdbg",
"rdbgPath": "/opt/homebrew/opt/ruby/bin/rdbg",
"request": "launch",
"script": "${file}"
},
Downgrading to 0.1 didn't solve the issue but caused the following error: "/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in require': incompatible library version - /opt/homebrew/Cellar/ruby/3.3.0/lib/ruby/gems/3.3.0/extensions/arm64-darwin-23/3.3.0/debug-1.9.1/debug/debug.bundle (LoadError) 	from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in require'
from /opt/homebrew/Cellar/ruby/3.3.0/lib/ruby/gems/3.3.0/gems/debug-1.9.1/lib/debug/frame_info.rb:16:in rescue in <module:DEBUGGER__>' 	from /opt/homebrew/Cellar/ruby/3.3.0/lib/ruby/gems/3.3.0/gems/debug-1.9.1/lib/debug/frame_info.rb:13:in module:DEBUGGER__'
from /opt/homebrew/Cellar/ruby/3.3.0/lib/ruby/gems/3.3.0/gems/debug-1.9.1/lib/debug/frame_info.rb:3:in <top (required)>' 	from /opt/homebrew/Cellar/ruby/3.3.0/lib/ruby/gems/3.3.0/gems/debug-1.9.1/lib/debug/session.rb:31:in require_relative'
from /opt/homebrew/Cellar/ruby/3.3.0/lib/ruby/gems/3.3.0/gems/debug-1.9.1/lib/debug/session.rb:31:in <top (required)>' 	from /opt/homebrew/Cellar/ruby/3.3.0/lib/ruby/gems/3.3.0/gems/debug-1.9.1/lib/debug/open.rb:10:in require_relative'
from /opt/homebrew/Cellar/ruby/3.3.0/lib/ruby/gems/3.3.0/gems/debug-1.9.1/lib/debug/open.rb:10:in <top (required)>' 	from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in require'
from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in require' /opt/homebrew/Cellar/ruby/3.3.0/lib/ruby/gems/3.3.0/gems/debug-1.9.1/lib/debug/frame_info.rb:14:in require_relative': cannot load such file -- /opt/homebrew/Cellar/ruby/3.3.0/lib/ruby/gems/3.3.0/gems/debug-1.9.1/lib/debug/debug.so (LoadError)
from /opt/homebrew/Cellar/ruby/3.3.0/lib/ruby/gems/3.3.0/gems/debug-1.9.1/lib/debug/frame_info.rb:14:in <module:DEBUGGER__>' 	from /opt/homebrew/Cellar/ruby/3.3.0/lib/ruby/gems/3.3.0/gems/debug-1.9.1/lib/debug/frame_info.rb:3:in <top (required)>'
from /opt/homebrew/Cellar/ruby/3.3.0/lib/ruby/gems/3.3.0/gems/debug-1.9.1/lib/debug/session.rb:31:in require_relative' 	from /opt/homebrew/Cellar/ruby/3.3.0/lib/ruby/gems/3.3.0/gems/debug-1.9.1/lib/debug/session.rb:31:in <top (required)>'
from /opt/homebrew/Cellar/ruby/3.3.0/lib/ruby/gems/3.3.0/gems/debug-1.9.1/lib/debug/open.rb:10:in require_relative' 	from /opt/homebrew/Cellar/ruby/3.3.0/lib/ruby/gems/3.3.0/gems/debug-1.9.1/lib/debug/open.rb:10:in <top (required)>'
from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in require' 	from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in require'"
Platform is Ruby 3.3.0 (installed via Homebrew) running on OSX 14.3.1 with debug gem version 1.9.1 installed using VSCode Version: 1.86.2
Commit: 903b1e9d8990623e3d7da1df3d33db3e42d80eda
Date: 2024-02-13T19:42:12.210Z
Electron: 27.2.3
ElectronBuildId: 26908389
Chromium: 118.0.5993.159
Node.js: 18.17.1
V8: <IP_ADDRESS>-electron.0
Please let me know if more info is required - more than happy to help.

I was getting:
[Error on session]
Error: connection closed
e: {}

errors debugging rails minitest tests.
Rails 6.0+ runs tests in parallel
Setting PARALLEL_WORKERS to 1 solved it for me:
{
  "type": "rdbg",
  "name": "Debug current test",
  "request": "launch",
  "script": "${file}",
  "command": "bin/rails test",
  "env": { "PARALLEL_WORKERS": 1 },
  "askParameters": true
}

I notice that successful debug sessions also end with:
[Error on session]
Error: connection closed
e: {}

So I suspect that multiple processes in "launch" mode are the problem since a debug session can (I assume) only be attached to a single process.
I am using fish, asdf, Ruby 3.0, and Rails 6.1. I tried the version manger setting, useTerminal, and rdbgPath suggestions above. None of those worked in my case.


This has been remade from scratch; the file location and license has …

…been changed

Passes local tests and Jenkins. Merging with my thanks @DMagic1.


06/17/2018 18:58 : Create Pull Request for branch master -> prTesting1_2018061718

:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

split/updateTestRef1.md
:white_check_mark:Succeeded

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


how do i get the number ?

I'm using this code
    numbers = GetNumbers('token')
    print(numbers)
    input('Press enter if you sms was sent')

    tzid = numbers.get('blizzard')
    print(tzid)
    code = numbers.wait_code(tzid)
    print(code)

but when I print number I get <onlinesimru.GetNumbers.GetNumbers object at 0x00000000017FA070>

all good


Basemap refactor

The dict should be a valid mapbox style spec object.
We might also want to have helpers for a single-layer raster-tile basemap. E.g. lonboard.basemap.RasterBasemap which takes in an xyz url. We should have an example with standard OSM tiles.
 Also see https://github.com/geopandas/xyzservices, which may be a better integration point. We should be able to integrate directly with the TileProvider class.

It may also be useful to refer to these basemaps as MaplibreBasemap objects, where we could also have DeckglBasemap objects in the future, for applications that don't want to render Maplibre beneath deck.gl


bug: Progress bar slowly advances even if the robot update download fails

Overview
Under certain circumstances, when an update download errors out, the app UI gets into an inconsistent state where it recognizes the error but slowly advances the progress bar anyway.

Logs and such
App logs are available in the Opentrons internal Slack thread.
Expected behavior
If an error makes the download fail, the progress bar should stop advancing, and the error should be clearly communicated.

Update: this was actually a way simpler bug than we realized. The download progress modal had a flipped conditional bug, so the title "Download Error" is displayed only when there's no error. Fix will be included in 4.0.0


cargo registry - respect renamed dependencies

rust allows renaming dependencies such as when depending on multiple versions of the same package. This is not supported by gitea as discovered in #31500 . This PR tries to address that.
Not yet tested

This is my first PR to gitea and first ever two lines of go code so please keep that in mind :)
From what I can tell there is some sort of testing machinery in tests/integration/api_packages_cargo_test.go . Should I update that to test this?

The links i used:
API :
publish
{
    [...]
    "deps": [
        {
            // Name of the dependency.
            // If the dependency is renamed from the original package name,
            // this is the original name. The new package name is stored in
            // the `explicit_name_in_toml` field.
            "name": "rand",
            [...]
            // If the dependency is renamed, this is a string of the new
            // package name. If not specified or null, this dependency is not
            // renamed.
            "explicit_name_in_toml": null,
        }
    ],
    [...]
}

Registry index
JSON schema
[...]
"deps": [
        {
            // Name of the dependency.
            // If the dependency is renamed from the original package name,
            // this is the new name. The original package name is stored in
            // the `package` field.
            "name": "rand",
            [...]
            // If the dependency is renamed, this is a string of the actual
            // package name. If not specified or null, this dependency is not
            // renamed.
            "package": null,
    }
    [...]
}

It's better to have a test for that.

From what I can tell there is some sort of testing machinery in tests/integration/api_packages_cargo_test.go . Should I update that to test this?

I think it needs some tests, if there is any difficulty, I could also help to write one if you don't mind.

From what I can tell there is some sort of testing machinery in tests/integration/api_packages_cargo_test.go . Should I update that to test this?

I think it needs some tests, if there is any difficulty, I could also help to write one if you don't mind.

Yes please, that would be much appreciated :)

done in 461249d47241a2ac30ab711b77c6cc1c5cd7d020

done in 461249d

Thank you! :)


Example not working properly

In order to get the right ref in a similar function I wrote, I had to replace $hookId by {hookId} here:
https://github.com/firebase/functions-samples/blob/master/minimal-webhook/functions/index.js#L28
Is this something that needs to be updated in the example?

Yes definitely, thanks for pointing this out :) @arielcamus


Unable to access variables inside callback of SpeakerIdentification & SpeakerVerification

I have implemented  Speaker Independent-Identification feature in node js, below is the code snippet of it. but we get identification response as a callback function, in that callback function i am unable to access variable outside of that call-back(result) function.
What is solution?
await client.createProfileAsync(
sdk.VoiceProfileType.TextIndependentIdentification,
locale,
async (result) => {
var profile = result;
if (profile) {
//use global variable
}
else {
//use global variable
}
}

@manju605 In the code you've listed, "var profile" is declared in the scope of the callback. What happens with the example below?
Also, is this for westus region? Currently Speaker Identification and Verificaition features are in preview, and only available for westus, as documented here
let profile = undefined;
await client.createProfileAsync(
 sdk.VoiceProfileType.TextIndependentIdentification,
 locale,
 async (result) => {
 profile = result;
 if (!!profile) {
  console.log("profile created with id:" + profile.profileId);
  //use global variable
 }
 else {
  console.error("no result returned!");
  //use global variable
 }
}


ipmi get individual dimm temperature

could it get the temperature like:
dimm a: 21
dimm b: 23
...
dimm e: 32
dimm f: 33
...
because now get sensor list include dimm temperature are:
dimmABCD: 25
dimmEFGH: 32
any suggestion would be appreciated

How the sensors are configured is entirely up to the company who did the motherboard design.
It appears, in this case, that the motherboard has a physical temperature sensor for each group of DIMM slots, rather than for each slot, which makes sense.  In any case, ipmiutil and similar tools merely read the sensors that the manufacturer has supplied.  There is no way for ipmiutil to change that.

So it sounds like SuperMicro has a custom/non-standard way to combine 4 sensor readings into one sensor.  Weird.  Why in the world would they do that, when including them as discreet sensors would be easier and better?
If Supermicro's tool can pull 4 separate sensor readings from the same sensor, then so can we, but the hard part is to figure out how, and this would have to be a one-off special case for this vendor/board combo.   With some evidence, I may be able to figure out how they combined the readings.   What I need is:  1) the output of 'ipmiutil sensor -x' which will show the vendor/motherboard id, and the raw sensor data.  2) the output of the Supermicro tool for the same system for comparison.

the supermicro smc-ipmi-tool display

and the ipmi-util got these dimm temperature value

further question, these 2 sensor values might be on the motherboard, instead of on the ram itself?
and if there are 8 temperatures for 8 rams, it might be read from ram's sensor not dimm slot?

dimm == ram.   Yes, the sensors are from the motherboard.  This is a custom firmware implementation by SuperMicro, which could easily have been implemented by them to IPMI standards instead.


Finish the \a escape sequence

For reference, this is a follow up of #5864

Okay changed it.

You should also add \a and \b to Char#dump_or_inspect.

That Travis CI failed is just a runtime error I think


Windows 11 Insider Preview Canary Winget will not install/work

Brief description of your issue
Running the install command from the releases page:
install-Module -Name Microsoft.WinGet.Client -Verbose -force -Scope AllUsers
Steps to reproduce
install-Module -Name Microsoft.WinGet.Client -Verbose -force -Scope AllUsers
Expected behavior
Install winget and winget command works
Actual behavior
Module gets downloaded to:
C:\Users\USER\Documents\PowerShell\Modules\Microsoft.WinGet.Client
VERBOSE: InstallPackageLocal' - name='Microsoft.WinGet.Client', version='0.2.1',destination='C:\Users\USER\AppData\Local\Temp\1483780394' VERBOSE: Validating the 'Microsoft.WinGet.Client' module contents under 'C:\Users\USER\AppData\Local\Temp\1483780394\Microsoft.WinGet.Client.0.2.1' path. VERBOSE: Test-ModuleManifest successfully validated the module manifest file 'C:\Users\USER\AppData\Local\Temp\1483780394\Microsoft.WinGet.Client.0.2.1'. VERBOSE: Validating the authenticode signature and publisher of the catalog file or module manifest file of the module 'Microsoft.WinGet.Client'. VERBOSE: Catalog file 'Microsoft.WinGet.Client.cat' is not found in the contents of the module 'Microsoft.WinGet.Client' being installed. VERBOSE: Valid authenticode signature found in the file 'Microsoft.WinGet.Client.psd1' for the module 'Microsoft.WinGet.Client'. VERBOSE: For publisher validation, current module 'Microsoft.WinGet.Client' with version '0.2.1' with publisher name 'CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US' from root certificate authority 'CN=Microsoft Root Certificate Authority 2011, O=Microsoft Corporation, L=Redmond, S=Washington, C=US'. Is this module signed by Microsoft: 'True'. VERBOSE: For publisher validation, using the previously-installed module 'Microsoft.WinGet.Client' with version '0.2.1' under 'C:\Users\USER\Documents\PowerShell\Modules\Microsoft.WinGet.Client\0.2.1' with publisher name 'CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US' from root certificate authority 'CN=Microsoft Root Certificate Authority 2011, O=Microsoft Corporation, L=Redmond, S=Washington, C=US'. Is this module signed by Microsoft: 'True'. VERBOSE: Authenticode issuer 'CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US' of the new module 'Microsoft.WinGet.Client' with version '0.2.1' matches with the authenticode issuer 'CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US' of the previously-installed module 'Microsoft.WinGet.Client' with version '0.2.1'. VERBOSE: Checking for possible command collisions for the module 'Microsoft.WinGet.Client' commands. VERBOSE: Module 'Microsoft.WinGet.Client' was installed successfully to path 'C:\Program Files\PowerShell\Modules\Microsoft.WinGet.Client\0.2.1'.
winget command does not do anything in powershell or cmd
Environment
Windows Insider Preview 23H2 25921
Windows Terminal Preview
Windows Powershell 7.4

Did you already have the App Installer (The WinGet CLI and COM API used by PowerShell comes from that package) installed?
If you didn't already have it installed, you should be able to run the "Repair-WinGetPackageManager" cmdlet and it should be able to get the rest of the components you need.

Got this from running that:
PS C:\Users\USER> Repair-WinGetPackageManager
0

Repair-WinGetPackageManager


minor bug with variadic annotation parameters

This code breaks the Java backend:
final annotation class Foo(String* names)
        satisfies OptionalAnnotation<Foo> {}

annotation Foo foo(String* names) => Foo("thing", *names);

foo("hello", "world")
shared void run() {}

OTOH, this code is OK:
final annotation class Foo(String* names)
        satisfies OptionalAnnotation<Foo> {}

annotation Foo foo(String* names) => Foo("hello", *names);

foo("world")
shared void run() {}

@FroMage any chance you would have time to fix this one for 1.3.3. I believe it should be reasonably simple...

Fixed.

Thankyou!


Scopes that use subqueries generate invalid SQL

GORM Playground Link
https://github.com/go-gorm/playground/pull/431
Description
When using a scope that defines a subquery, Gorm generates invalid SQL that fails to execute. For example, in the provided playground, the generated SQL misses a table name and has unbalanced parentheses:
SELECT * FROM (SELECT * FROM () AS sub WHERE sub.deleted_at IS NULL
This does no happen when the scope avoids using its provided *gorm.DB to define the model to work with, and instead uses a global *gorm.DB.
Investigation
While digging into the issue, I found that the *gorm.DB that the scope returns has a Statement.TableExpr *clause.Expr which Vars []interface{} contains another *gorm.DB. That *gorm.DB itself has a Statement.TableExpr that points to the same clause.Expr.
This looks like an abnormal circular reference, which Gorm seems to handle by generating incomplete SQL rather than an infinite loop.

please refer to this document https://gorm.cn/docs/method_chaining.html @ortolot


Use the matrixSet projection by default

Fix #7460 .
Without the fix
With the fix
Also fix #6835 and #5038
With the fix

Ouch totally unwanted. good catch.

MVT format tests readded

Any chance to have antoher review of this please ?

Thx @bartvde


Minor initialize addition

Small addition to allow initialization of floats according to a jagged set of bounds.

Coverage remained the same at 100.0% when pulling 40113c8db63079a9092eb3503d00e0c366749c56 on ug88jdm:master into 53181f406aa8ca0ce8f3e76a5804cac61d35da1a on MaxHalford:master.

Nice addition! I'm not too sure about the "jagged" term but the implementation is self-explanatory.
👍

True, not keen on the 'jagged' term, was struggling to better describe it succinctly.


Add VC-LTL to reduce more dependencies

https://github.com/Chuyu-Team/VC-LTL5

Спасибо за ссылку. Хорошо, что эта библиотека также поддерживает XP/2003.
Но я не вижу, чтобы текущая сборка Supermuim имела много зависимостей от MS CRT. (По крайней мере, на моей машине с WinXP)

supermium has "progwrp.dll" - supermium close source lib

So (https://github.com/Chuyu-Team/VC-LTL5) covers also Kernel32/Advapi32/user32 missing functions ?

Yes. Thats cool. I found that this (https://github.com/Chuyu-Team/YY-Thunks) near placed project has emulation of SRWLock-related and other missing in XP Kernel32/Advapi32/user32 functions., which progwrp.dll emulates now. We will have open-source alternative if so.

https://github.com/win32ss/supermium/issues/19#issue-1779799848

#19 (comment)

Ok, I read this. So @win32ss say that his wrapper (closed) has more cover of old NT systems, then that project. He say his wrapper can run on NT3.5 and NT4. For Supermium we starting from WinXP, same as (https://github.com/Chuyu-Team/YY-Thunks). No need more older systems for now (or just for sport). So such alternate wrappers, which is opensourced is fine choise for future, if he will not open his sources.


Change Cassandra hosts parameter from List to String

This allows to be compatible with SparkConf.set("spark.filodb.cassandra.hosts","someIP,anotherIP")

@elppc thx for the pull request.   This however would break compatibility with existing people who use a list, and there are good benefits to using a list (much better error checking, namely).   So, how about we make it parse both a list and a string?   You can do something like Try(config.as[Seq[String]]("hosts")).getOrElse(config.getString("hosts").split(',').toSeq)
This way no need to modify existing configs.

I am not familiar with this synthax, could you explain me ?
config.asSeq[String] :_*

Sure.  So config.as[Seq[String]]("hosts") simply returns a Sequence of strings.  The entire line of code that I sent you above is saying, first try to get the config param "hosts" as a sequence of strings. If that fails / throws an exception, then do the getOrELse ...  basically try to get "hosts" as a string, then split it.
Finally, strings :_* the last few characters is for passing in variable length arguments....  I don't remember the equivalent in Java but it's like arg... or arg *

My question is more on as[Seq[String]] which is not part of typesafe config and :_*

Sorry I don't understand why you need :_* if I look in C* driver API, it only requires a collection of String

@elppc thanks, would you mind rebasing and collapsing the commits into one?  Thx.
You are right the driver accepts collection as well.  I'm fine with that, just forgot about it.
The .as[Seq[String]] is a implicit provided by not the Typesafe Config library itself but a Scala wrapper on top called Ficus.

Do you mean rebasing on tuplejump:master ? Can you explain me the steps ?

@elppc yeah basically you want to squish all your commits into one.   In your branch do a git rebase -i <sha>, where the  is the SHA of the commit just before the first one in this branch.   Then in vim or whatever editor you have configured, change all the second to last commits to "s" to squish them all into one.

I think it's OK but let me know if I missed something

@elppc many thanks again, merging now.


Add A Login Page

🎮 feature Request
Hi i want to add a login page that helps to make this website more versatile
Point down the features
Login Page will take Email and Password as input and if no input is provided then it will not move to next page also an toast notification will be shown when no input is entered.
Please assign this issue to me under GSSoC'24.
Select program in which you are contributing
GSSoC'24
Code of Conduct

[x] I follow CONTRIBUTING GUIDELINE of this project.

If you have any doubt you can directly send message on our discord (https://discord.gg/rZb46cCMmK), we have created seprate chennals for all projects...
Thank you :)


Rename the operator name in README.md

Fix for the rename in README.md to reflect the new name.

/ok-to-test
/lgtm
/approve


use zig package manager (requires master)

The zig package manager now allows you to use the package manager for non-zig projects, which is perfect in this case.

Wow! Thanks for the contribution.

Fixed

Awesome contribution!
However, I'll wait for this issue in DOtherSide to be fixed.
You can see in the CI that clang gives an error.

https://github.com/filcuc/dotherside/issues/119

Wait: https://github.com/ziglang/zig/milestone/23 (v0.12.0)


Different Events cookie name for multiple windows/tabs

Fix #16

Hey @rddm2bb, thanks for the PR 👍  Any reason Ahoy couldn't use just session storage for the events queue instead of cookies?

@ankane no, you can use sessionStorage instead of cookies, that way you don't need to set a different name for each tab/window. The only problem I see is if you close the window/tab before empty the queue beacause you will not receive the data (cookies with different name, have the same problem).
It's analytics, for me isn't a problem.

@ankane SessionStorage is not scoped by domain, so if you move, in the same session, to another site that use ahoy and you don't have your eventQueue empty, you will submit events that don't belong to that site.

SessionStorage is not scoped by domain

@rddm2bb I don't think that's true. Where are you seeing that?


dxf parsing

when reading a dxf file, we can get a string from which we get entities, but how to find out which entity (AcDbArc, AcDbCircle, AcDbLine, ... ) ?
i need to get entity parameters

You can use  if(entity is AcDbLine)


Update sql-database-business-continuity-application-upgrade.md

reviewed and updated last modified date

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

It looks like you're working at Microsoft (elfish). If you're full-time, we DON'T require a contribution license agreement.

If you are a vendor, DO please sign the electronic contribution license agreement. It will take 2 minutes and there's no faxing! https://cla.azure.com.

TTYL, AZPRBOT;


Update gdscan

This has to be merged first before this one
https://github.com/GDATASoftwareAG/gdscan/pull/44


Remove dependency on the cryptography library

Remove the dependency on the cryptography library, to make installation
easier.  Most users can either specify Bracket tags during encryption
time or use make-token to get a launch token from the Bracket service.
Users who need to generate tokens from private keys will need to run
"pip install cryptography".
Add brkt_cli.crypto.cryptography_library_available, to allow, callsites
to know whether to attempt operations that require cryptography.  Update
callsites and unit tests to check this variable.
Update the cert validation code to shell out to openssl when the
cryptography library isn't available.
Don't initialize the make-key and get-public-key commands when the
cryptography library isn't available.
Update the Travis configuration to run the test suite with and without
the cryptography library.

FTP.  Looks good.  Just a couple questions.

FTP?  I didn't realize you're an NWA fan.


simple groupby_bins 10x slower than numpy

I am finding that groupby_bins is 10x slower than numpy in what I consider to be a simple implementation.
In the screenshot below, you can see me opening a netCDF file containing two variables with the same single dimension. One variable is the latitude. I want to aggregate (sum) the other variable in bins of latitude. The xarray approach using groupby_bins takes ~314ms per loop, the numpy approach less than 30ms per loop.
I need to do this kind of computation on many more variables, on data spanning several years, and following the xarray approach leads to many more hours of processing :-/
Am I doing something wrong here?

On xarray main with flox installed:
import numpy as np
import xarray as xr
display(xr.__version__)

N = 3728
ds = xr.Dataset()
ds["latitude"] = ("x", 0 + 20 * np.random.standard_normal(N))
ds["data"] = ("x", 0 + 100 * np.random.standard_normal(N))

%timeit ds.groupby_bins("latitude", np.arange(-40, 40, 0.1)).sum()

50.3 ms ± 203 µs per loop (mean ± std. dev. of 7 runs, 10 loops each)
You could try it on our pre-release (https://docs.xarray.dev/en/latest/whats-new.html#v2022-06-0rc0-9-june-2022) or use xhistogram which should be faster even.

Yes that's right.
For this simple problem you could combine np.digitize and np.bincount to do it much quicker.
group_idx = np.digitize(latitude, bins)
sums = np.bincount(group_idx, weights=array)

And then wrap this using apply_ufunc. See https://github.com/ml31415/numpy-groupies/blob/412be938dcdfd74c6d673dd29012d18dc25dc94f/numpy_groupies/aggregate_numpy.py#L8-L28 for inspiration.

thanks a lot for the suggestions!

@dcherian I just tested your numpy suggestions, and I'm getting 100x speedups compared to my naive numpy approach (~200µs vs ~20ms). Thankyouthankyouthankyou!
I've been doing this for years, I can't believe I've never run into that particular solution. It's like the IDL histogram function but in numpy. I'm going to use this like crazy
Thanks again

the IDL histogram function but in numpy.

Apparently  not as awesome!

I'm getting a bit off topic now, but ...

Apparently not as awesome!

@dcherian Thanks for bringing back fond memories of the past. I still have @davidwfanning's IDL books on the shelf. And for sure it was a great pleasure reading @jdtsmith's IDL tricks and trying to understand those helped a lot. Great stuff.

the IDL histogram function but in numpy.

Apparently not as awesome!

Yeah, the present solution is less general, but most of the time I'm just counting stuff, and this is much faster than what I was doing, so I'm happy ;-)

@dcherian Just to be complete, I thought the following one-liner would work as well:
sums, x = np.histogram(latitude, bins, weights=array)
but apparently it produces slightly different results for reasons I don't understand


Adds :itoday: and :inow: abbreviations

Adds two additional abbreviations that allow users to easily insert the
current date or time as an inactive timestamp.

I've updated DOCS.md with what I had placed in orgmode.txt

Sorry for the oversight on my part there. I've made all requested changes

Thanks!


rake test:features seems to be broken

If I use Ruby 2.4.1 and install using rvm, I get this error message when trying to run tests with rake:
rvm use 2.4.1
gem install bundler
bundle install

rake test:features
rake aborted!
NoMethodError: undefined method `last_comment' for #<Rake::Application:0x007fe8f6843ac8>
/Volumes/Users/beard/.rvm/gems/ruby-2.4.1/gems/yard-<IP_ADDRESS>/lib/yard/rake/yardoc_task.rb:69:in `define'
/Volumes/Users/beard/.rvm/gems/ruby-2.4.1/gems/yard-<IP_ADDRESS>/lib/yard/rake/yardoc_task.rb:61:in `initialize'
rake_tasks/yard.rake:4:in `new'
rake_tasks/yard.rake:4:in `<top (required)>'
/Volumes/Users/beard/Trees/ftpd/Rakefile:14:in `load'
/Volumes/Users/beard/Trees/ftpd/Rakefile:14:in `block in <top (required)>'
/Volumes/Users/beard/Trees/ftpd/Rakefile:14:in `each'
/Volumes/Users/beard/Trees/ftpd/Rakefile:14:in `<top (required)>'
/Volumes/Users/beard/.rvm/gems/ruby-2.4.1@global/gems/rake-12.0.0/exe/rake:27:in `<top (required)>'
/Volumes/Users/beard/.rvm/gems/ruby-2.4.1/bin/ruby_executable_hooks:15:in `eval'
/Volumes/Users/beard/.rvm/gems/ruby-2.4.1/bin/ruby_executable_hooks:15:in `<main>'
(See full trace by running task with --trace)

I suspect it was the change that bumped rake to 12.0.0. Backing it out like this:
diff --git a/Gemfile b/Gemfile
index 42ffe63..d2a15b6 100644
--- a/Gemfile
+++ b/Gemfile
@@ -3,7 +3,7 @@ source 'http://rubygems.org'
 gem 'memoizer', '~> 1.0'

 group :test, :development do
-  gem 'rake', '~> 12.0'
+  gem 'rake', '~> 11.1'
 end

 group :test do
diff --git a/Gemfile.lock b/Gemfile.lock
index 75d8174..3a17115 100644
--- a/Gemfile.lock
+++ b/Gemfile.lock
@@ -62,7 +62,7 @@ GEM
     psych (2.2.4)
     public_suffix (2.0.5)
     rack (2.0.2)
-    rake (12.0.0)
+    rake (11.1.0)
     rdoc (5.1.0)
     redcarpet (3.4.0)
     rspec (3.6.0)
@@ -94,7 +94,7 @@ DEPENDENCIES
   double-bag-ftps (~> 0.1, >= 0.1.3)
   jeweler (~> 2.0)
   memoizer (~> 1.0)
-  rake (~> 12.0)
+  rake (~> 11.1)
   redcarpet (~> 3.1)
   rspec (~> 3.1)
   rspec-its (~> 1.0)

Then reinstalling rake like this:
gem uninstall rake
bundle install

Seems to restore testing functionality.

Thanks.  I backed that change out.  The tests run in Ruby 2.3 now (but they're busted in 2.4, FYI.  FTPD should be fine with Ruby 2.4, but the tests require double-bag-ftps, which does not work with Ruby 2.4).

The latest version of the gem uses rake 11.1 again.  The tests all pass on my box, and on travisci.  If they fail for you, will you please let me know?


SwiftUI support?

Hi,
I am wondering if there are plans to migrate the returned resources into SwiftUI defaults: Color instead of UIColor, Image instead of UIImage and so on...
Thanks.

Hi,
Some news about SwiftUI support ?
Thanks

I built my own extensions for some SwiftUI compatibility of R.swift:
extension FontResource {
    func font(size: CGFloat) -> Font {
        Font.custom(fontName, size: size)
    }
}

extension ColorResource {
    var color: Color {
        Color(name)
    }
}

extension StringResource {
    var localizedStringKey: LocalizedStringKey {
        LocalizedStringKey(self.key)
    }

    var text: Text {
        Text(self.localizedStringKey)
    }
}

extension ImageResource {
    var image: Image {
        Image(name)
    }
}

Strings - of course can also be used without the extension, but I noticed that XCode preview will only show properly localized strings when using the SwiftUI APIs so I try to also use the extension for that.
Usage:
let font = R.font.myFunnyFontBold.font(size: 35)
let color = R.color.listItemTitle.color
let text = R.string.localizable.hello_world.text
let image = R.image.random_image.image

@apascual @addel I posted a PR to support this in November. Until it is merged you can set your dependency to https://github.com/apptekstudios/R.swift.Library 👍

Any update on this?

I built my own extensions for some SwiftUI compatibility of R.swift:
import Rswift
import SwiftUI

extension FontResource {
    func font(size: CGFloat) -> Font {
        Font.custom(fontName, size: size)
    }
}

extension ColorResource {
    var color: Color {
        Color(name)
    }
}

extension StringResource {
    var localizedStringKey: LocalizedStringKey {
        LocalizedStringKey(key)
    }

    var text: Text {
        Text(localizedStringKey)
    }
}

extension ImageResource {
    var image: Image {
        Image(name)
    }
}

Strings - of course - can also be used without the extension, but I noticed that XCode preview will only show properly localized strings when using the SwiftUI APIs so I also use the extension for that.
Usage:
let font = R.font.myFunnyFontBold.font(size: 35)
let color = R.color.listItemTitle.color
let text = R.string.localizable.hello_world.text
let image = R.image.random_image.image

can you provide an example

@tomlokhorst + @mac-cain13 Any updates on merging https://github.com/mac-cain13/R.swift.Library/pull/37 ? Seeems like a pretty worthy and straight forward addition.

Hello @mac-cain13 ! Could we please have an update on this?

@schroepf @apptekstudios
extension StringResource {
    var localizedStringKey: LocalizedStringKey {
        LocalizedStringKey(key)
    }

    var text: Text {
        Text(localizedStringKey)
    }
}

This extension doesn't work with localised strings with parameters..
eg -
"test1" = "%@-test1";

The above changes don't work as it is with some assets in libraries/pods if you use R.Swift in those...
Minor changes are needed for that (add bundle)..
public extension ColorResource {
    var color: Color {
        Color(name, bundle: bundle)
    }
}

public extension ImageResource {
    var image: Image {
        Image(name, bundle: bundle)
    }
}

Any Update on SwiftUI Support

For strings no need to extend StringResource
This works out of the box
Text(R.string.localizable.some_string_key())


cannot find flake 'flake:brew' in the flake registries

Hi,
Coming from https://github.com/LnL7/nix-darwin/issues/680 and couldn't get it work. Wanted to mention that I'm not super good with nix and didn't spend a lot of time with this.
Here's what I added:
{
  description = "Fatih's darwin system";

  inputs = {
    nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-22.11-darwin";
    darwin.url = "github:lnl7/nix-darwin/master";
    darwin.inputs.nixpkgs.follows = "nixpkgs";
    nix-homebrew.url = "github:zhaofengli-wip/nix-homebrew"; # <- this
  };

  outputs = { self, darwin, nixpkgs, nix-darwin, nix-homebrew, brew }: {
    darwinConfigurations."Fatihs-MBA" = darwin.lib.darwinSystem {
      system = "aarch64-darwin";
      modules = [
        ./configuration.nix
        { # <- this block
          nix-homebrew = {
            enable = true;
            user = "fatih";
          };
        }
      ];
    };
  };
}

I run this command:
nix build .#darwinConfigurations.Fatihs-MBA.system

And get this error:
       … while updating the lock file of flake 'path:/Users/fatih/.config?lastModified=1688402360&narHash=sha256-OUUFKkcsfFlx4N7O4m7GCZSOKEAS%2BjodyhRTE61VSqg%3D'

       … while updating the flake input 'brew'

       error: cannot find flake 'flake:brew' in the flake registries

You should remove brew from the arguments of outputs because it's not in the inputs:
-  outputs = { self, darwin, nixpkgs, nix-darwin, nix-homebrew, brew }: {
+  outputs = { self, darwin, nixpkgs, nix-darwin, nix-homebrew }: {

Thanks for the tip, now I get a different error. If I have nix-homebrew in the arguments:
error: function 'outputs' called with unexpected argument 'nix-homebrew'

If I remove it:
       error: The option `nix-homebrew' does not exist. Definition values:
       - In `<unknown-file>':
           {
             enable = true;
             user = "fatih";
           }

Do you still have nix-homebrew in the inputs?
nix-homebrew.url = "github:zhaofengli-wip/nix-homebrew";

Yes, here's the full config again for clarity:
{
  description = "Fatih's darwin system";

  inputs = {
    nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-22.11-darwin";
    darwin.url = "github:lnl7/nix-darwin/master";
    darwin.inputs.nixpkgs.follows = "nixpkgs";
    nix-homebrew.url = "github:zhaofengli-wip/nix-homebrew";
  };

  outputs = { self, darwin, nixpkgs, nix-darwin }: { # <- nix-homebrew removed
    darwinConfigurations."Fatihs-MBA" = darwin.lib.darwinSystem {
      system = "aarch64-darwin";
      modules = [
        ./configuration.nix
        {
          nix-homebrew = {
            enable = true;
            user = "fatih";
          };
        }
      ];
    };
  };
}

Try changing the config to the following:
 {
   description = "Fatih's darwin system";

   inputs = {
     nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-22.11-darwin";
     darwin.url = "github:lnl7/nix-darwin/master";
     darwin.inputs.nixpkgs.follows = "nixpkgs";
     nix-homebrew.url = "github:zhaofengli-wip/nix-homebrew";
   };

-  outputs = { self, darwin, nixpkgs, nix-darwin }: { # <- nix-homebrew removed
+  outputs = { self, darwin, nixpkgs, darwin, nix-homebrew }: {
     darwinConfigurations."Fatihs-MBA" = darwin.lib.darwinSystem {
       system = "aarch64-darwin";
       modules = [
         ./configuration.nix
         {
           nix-homebrew = {
             enable = true;
             user = "fatih";
           };
         }
       ];
     };
   };
 }

The arguments the outputs function takes must match what's included in inputs.

In your diff there are two darwins in the arguments, is that intentional? I changed it to match the inputs:
    outputs = { self, nixpkgs, darwin, nix-homebrew }: {

and got this error again:
       error: The option `nix-homebrew' does not exist. Definition values:
       - In `<unknown-file>':
           {
             enable = true;
             user = "fatih";
           }

Oops, my bad, looks like I missed the import of nix-homebrew.darwinModules.nix-homebrew in the README examples :facepalm: Add it to modules and it should work.

I hope it's not asking too much, but I didn't understand what to add where. I can wait for you to update the readme example, that also works for me.

Sorry for the delay. I fixed the examples in 50f56c37eb892ec2d08fbecd44da7807ccb01ebc.

It's fixed on my side as well, thanks! I also added my own ./configuration.nix to the modules, where my casks are defined.
I have a minor issue though, I didn't install xcode cli tools on my macbook since I already use git and everything else from nixpkgs. The generated brew seems to depend on system level git and doesn't see my nix managed git. I can easily install cli tools and make the issue go away, but can we make brew depend on git via nix instead?

For git, I added the nixpkgs-provided git to the PATH in #4.

It works like a charm! Since I got it working, I can tweak it to make it purer and more reproducible. Thanks for the immense help.


Bluetooth turn on?

Hi I have lilygo T-CAN 485 connected to my inverter Deye. It works very well.
Now I made seccond battery with jk BMS and I want to integrate it with Home Assistant.
JK BMS can connect with my phone via Bluetooth.
Is there any chance (to turn on?) communicate BMS with inverter via Bluetooth?
ThAnks

Check this repository: https://github.com/syssi/esphome-jk-bms

Thanks. Is chance tu use the lilygo with deye inverter via modbus and jk BMS via Bluetooth in the same time?


[TASK] Swith to jQuery 2.2.4

Also use the HTTPS CDN version.

Thanks for helping to buy down some of the technical debt!


Add more claim types

Adds missing semicolons.
Adds three types:
ClaimSnakQuantity
ClaimSnakString
ClaimSnakWikibaseItem

depending on the style (which should be discussed in #87 first) your added semicolons are superfluous.


ipc: Enable no-copy features in icmsg backend

The icmsg_me (me stands for multi-endpoint) backend has no-copy features that in fact are implemented in icmsg.c. The icmsg backend should be configurable to have these no-copy features, too.
This fixes #62558 .

I remember discussing with @emob-nordic that icmsg is well-designed for control messages, but it does not work well for the data plane and should be supplemented with a data buffer allocation mechanism like a heap, slabs, pool, network buffers, etc. The no-copy feature is useful almost exclusively for the data plane and because of this, it was considered to remove this feature from the icmsg library.
I don't remember the conclusion of this discussion.

The plan is to remove no copy rx/tx feature from icmsg library. My intention here is to make icmsg as simplest as possible and to be used in restricted use cases (mostly with high memory constraints).
Icmsg is meant to be used to send relatively small data packets where no-copy feature does not give significant benefits thus will be removed to reduce code complexity.
That does not mean we will no longer support no-copy feature in icmsg based backend. We plan to implement this in new backend https://github.com/zephyrproject-rtos/zephyr/pull/58741 that will distinguish control and data plane. Control plane is for sending control messages (sending, receiving, claiming buffers, etc.) - icmsg will be base for it, data plane is exclusively for plain data - no-copy will be supported there.
Note that initial plan assumes icmsg_me removal.
Please let me know what your use case is and if we could adapt the development plan to it so we could satisfy both.

I remember discussing with @emob-nordic that icmsg is well-designed for control messages, but it does not work well for the data plane and should be supplemented with a data buffer allocation mechanism like a heap, slabs, pool, network buffers, etc. The no-copy feature is useful almost exclusively for the data plane and because of this, it was considered to remove this feature from the icmsg library.
I don't remember the conclusion of this discussion.

The plan is to remove no copy rx/tx feature from icmsg library. My intention here is to make icmsg as simplest as possible and to be used in restricted use cases (mostly with high memory constraints).
Icmsg is meant to be used to send relatively small data packets where no-copy feature does not give significant benefits thus will be removed to reduce code complexity.
That does not mean we will no longer support no-copy feature in icmsg based backend. We plan to implement this in new backend #58741 that will distinguish control and data plane. Control plane is for sending control messages (sending, receiving, claiming buffers, etc.) - icmsg will be base for it, data plane is exclusively for plain data - no-copy will be supported there.
Note that initial plan assumes icmsg_me removal.
Please let me know what your use case is and if we could adapt the development plan to it so we could satisfy both.

@yclistanford ping

I remember discussing with @emob-nordic that icmsg is well-designed for control messages, but it does not work well for the data plane and should be supplemented with a data buffer allocation mechanism like a heap, slabs, pool, network buffers, etc. The no-copy feature is useful almost exclusively for the data plane and because of this, it was considered to remove this feature from the icmsg library.
I don't remember the conclusion of this discussion.

The plan is to remove no copy rx/tx feature from icmsg library. My intention here is to make icmsg as simplest as possible and to be used in restricted use cases (mostly with high memory constraints).
Icmsg is meant to be used to send relatively small data packets where no-copy feature does not give significant benefits thus will be removed to reduce code complexity.
That does not mean we will no longer support no-copy feature in icmsg based backend. We plan to implement this in new backend #58741 that will distinguish control and data plane. Control plane is for sending control messages (sending, receiving, claiming buffers, etc.) - icmsg will be base for it, data plane is exclusively for plain data - no-copy will be supported there.
Note that initial plan assumes icmsg_me removal.
Please let me know what your use case is and if we could adapt the development plan to it so we could satisfy both.

@yclistanford ping

Hi Sorry for the delay. My use case is I have an NXP board with a Cortex-M33 core and a DSP, and I want to use icmsg to send audio data back and forth. The audio data is 1KiB~4KiB in size so I would really like to do that without copying. The M33 core and the DSP already have shared memory. I just want to have icmsg manage the buffer allocation and freeing for me. Without icmsg I would have to manually manage my buffers allocated from shared memory.
Thanks.

Hi Sorry for the delay. My use case is I have an NXP board with a Cortex-M33 core and a DSP, and I want to use icmsg to send audio data back and forth. The audio data is 1KiB~4KiB in size so I would really like to do that without copying. The M33 core and the DSP already have shared memory. I just want to have icmsg manage the buffer allocation and freeing for me. Without icmsg I would have to manually manage my buffers allocated from shared memory.
Thanks.

icmsg is not designed to send big data chunks. In the near future no-copy will be removed. For your case i would suggest you to either:

check out #58741 where allocation and buffer management will be done for you (no-copy supported)
implement your own allocator with no-copy support and send pointer to allocated memory with icmsg. You could even use existing heap/memslab/net_buf or other allocators if they fit your solution.

My recomendation for you would be to try out #58741 and submit your concerns there. I'm currently reviewing it and will push to finalize that part asap.
Please let me know in case of any doubts or questions.

Hi Sorry for the delay. My use case is I have an NXP board with a Cortex-M33 core and a DSP, and I want to use icmsg to send audio data back and forth. The audio data is 1KiB~4KiB in size so I would really like to do that without copying. The M33 core and the DSP already have shared memory. I just want to have icmsg manage the buffer allocation and freeing for me. Without icmsg I would have to manually manage my buffers allocated from shared memory.
Thanks.

icmsg is not designed to send big data chunks. In the near future no-copy will be removed. For your case i would suggest you to either:

check out ipc: add dynamically allocated buffers to icmsg #58741 where allocation and buffer management will be done for you (no-copy supported)
implement your own allocator with no-copy support and send pointer to allocated memory with icmsg. You could even use existing heap/memslab/net_buf or other allocators if they fit your solution.

My recomendation for you would be to try out #58741 and submit your concerns there. I'm currently reviewing it and will push to finalize that part asap.
Please let me know in case of any doubts or questions.

Thank you. https://github.com/zephyrproject-rtos/zephyr/pull/58741 looks promising. I will close this PR then.


Move cli to thor

Bit of refactoring of the CLI for the project templates. Much cleaner code and sets the stage for making some new generators to generate sublayer components from the command line.

Fixes #77


Fix encoding % sign breaking SVG background

This is a quick fix for the backgrounds breaking - guess I'll have to spend more time with this whole encoding issue than initially anticipated. Really hoping to find some time to put together those tests but it's been sunny here :sweat_smile:
Escaping the % sign was breaking some of the styles, specifically percentage units. But only for SVG :cry:
Closes #1095

@qw-in merged this to get the fix out the door, but feel free to come back to simplify it. I would prefer to avoid boolean options like escapePercent if possible. But if it is not, no worries.
Really appreciate your continued help here! It is a huge help to Carbon 🙂


Offset for thread items request

I found that I could limit thread items that I can get, but by the code it seems like get() method returns some fixed amount of latest thread items and then if length of this items array is greater than limit, no new get() methods will be executed.
Is there method to fetch thread items with offset? I undarstand how to do by increasing limit and getting portion of response that I need, but may be there is a standard way to do that?

Oh, sorry, there is feeds cursors described in docs in section Feed API is the same almost every time, nevermind.

Actually did not found in API where cursor is set after I fetch threads with all. It the inbox thread object i can see newest and oldest cursors but it's same number in both. It there way to fetch inbox threads from some cursot and where can I get it? And is there way to get thread by cursor, also did not found in API.


CreateSanitizedId should change to reflect HTML5 latest spec

Is this a Bug or Feature request?:
Bug
Steps to reproduce (preferrably a link to a GitHub repo with a repro project):
Repo: https://github.com/doggy8088/ASPNETCORE_HTML5_Id
Steps:

git clone https://github.com/doggy8088/ASPNETCORE_HTML5_Id.git
cd ASPNETCORE_HTML5_Id/ASPNETCORE_HTML5_Id
dotnet run
Navigate to https://localhost:5001/Home/Test
Check the following id attribute:

Description of the problem:
Here is my model:

The HTML output become:

There is a CreateSanitizedId method in the Microsoft.AspNetCore.Mvc.Rendering.TagBuilder class.  In this method, it sanitized all the id attribute for all HTML tags to apply HTML4.01 spec for a long time which is no problem at all.
The HTML 4.01 spec states that ID tokens must begin with a letter ([A-Za-z]) and may be followed by any number of letters, digits ([0-9]), hyphens (-), underscores (_), colons (:), and periods (.).  HTML5 gets rid of that restrictions on the id attribute now.
For a modern web framework, I think it should align with the HTML5 specification and deprecated the old behavior.
Version of Microsoft.AspNetCore.Mvc or Microsoft.AspNetCore.App or Microsoft.AspNetCore.All:
All of them.  All versions.

Thanks for contacting us, @doggy8088.
@dougbu can you please look into this? Thanks!

Changes here are possible but not straightforward due to the need for a compatibility switch and the fact the methods involved are static.
@doggy8088 what are the practical downside(s) i.e. bug(s) that result from MVC not being as relaxed about id sanitization as HTML 5?

@dougbu If some Models defined non-ASCII characters as a property name, the @Html.Id() or @Html.IdFor() can't produce correct id in the HTML.  If I'm using Entity Framework DB First, all the models are generated from the database.  If there are any column name appear some non-ASCII characters , the ASP.NET MVC still can't produce the right id in the HTML.  That's the main problem of this issue.

If we're producing name values that are invalid today then this seems like something we could address without a compat switch.. How to produce them is another story, they would certainly not be semantically meaningful or easy to predict.

@rynowak this is about id attribute values, not name values.
@doggy8088 what do you mean by "correct" or "right" id values -- something more like the corresponding name? The existing code meets HTML 4.01 requirements. The generated values are also valid according to HTML 5.
Again, what are the practical downside(s) i.e. bug(s) that result from MVC not being as relaxed about id sanitization as HTML 5?

@dougbu The right id value should be the same as name attribute.  It shouldn't have any outdated restriction on it's characters.  The current id is also valid for HTML5 for sure, but this will produce some errors I experienced before.
The main downside(s) of this issue is mainly for interacting with ASP.NET MVC Views and JavaScript.  When we generate a list of input fields on the HTML and have to deal with it using JavaScript.  That will be a big problem just because all the ids are been sanitized.   Especially for dynamic columns/fields.

will produce some errors I experienced before.

Please describe the errors you've experienced. Are you for example seeing multiple names sanitized to identical ids, which would violate id uniqueness requirements?

have to deal with it using JavaScript

Not quite sure what you mean here. Following associations between elements (e.g. an <input/> and its <label>) should not require regenerating the ids.

@dougbu Yes, sometimes we need id for uniqueness.
I'm not telling about the <input/> and <label> issue.  It's sometimes we need calling getElementByID() method to selecting the right field so the id is important in this circumstances.

:ok: we either need to ensure distinct name values result in distinct id values e.g. add a unique suffix when collisions occur or relax the restrictions to allow many more characters in ids. Either way, the change must be done behind a compatibility switch.


How to build a request without running it?

There are 2 things I'd like to do with this library and not sure how to do it.
First, I'd like to print out the request to see if everything looks correct. I'm thinking something like HTTP.headers(some_hash).get(some_url).to_s which will create a string something like GET some_url headers: some_headers. With this I don't need to waste time with MiTM apps and can see the conversion is correct.
Second, I'd like to build a request without executing it. How can I do this? I couldn't find it in your docs/code. The reason is I need to create a signature token based on the request headers + body (it's for AWS). Having this ability would greatly simplify coding.
#  (pseudo code for idea - ignore syntax correctness)
# current
headers = { some: values }
payload = something
content_size = payload.size
uri = some_url_with_params
signature = calculate_signature(headers.merge(content-length: content_size), payload, host_uri, params)
res = HTTP.headers(headers.merge(Authorization: signature).get(uri)

# my wish
request = HTTP.headers( some: values).build_request(:get, uri, { body: payload })
response = request.headers(Authorization: calculate_signature(request)).run

Hope this makes sense.

Logging interactions will be possible soon - I'm gonna find time next week to merge down outstanding PRs including logging one.
I like the proposal of build_request in fact I was thinking about that lately, as I needed the same for myself. Thus I'm totally open for PRs or will do that myself once will have some spare moments.

The example of the issue should work? I'm trying:
HTTP.headers({ accept: 'text/html' }).build_request('get', URI('https://www.google.ccom'))

NoMethodError: undefined method `build_request' for #<HTTP::Client:0x007f0904858338>

Are you sure that you are using the version from master? It's not released on rubygems I guess.

You're right, I didn't noticed that It wasn't in rubygems (: Tks!

This has been implemented in https://github.com/httprb/http/pull/458.


RoundCorners after the latest update

After the latest update my popups appears without roundCorners.
To Reproduce
Steps to reproduce the behavior:
Attribute:
  var attributes: EKAttributes
     attributes = .centerFloat
     attributes.windowLevel = .normal
     attributes.hapticFeedbackType = .success
     attributes.screenInteraction =  canBeClosed ? .dismiss : .absorbTouches
     attributes.entryInteraction = .absorbTouches
     attributes.roundCorners = .all(radius: 20)
     attributes.scroll = .enabled(swipeable: canBeClosed ? true : false, pullbackAnimation: .jolt)
     attributes.screenBackground = .color(color: UIColor(white: 0, alpha: 0.7))
     attributes.entryBackground = .color(color: UIColor(white: 0, alpha: 0.7))
     attributes.entranceAnimation = .init(scale: .init(from: 0.9, to: 1, duration: 0.4, spring: .init(damping: 1, initialVelocity: 0)), fade: .init(from: 0, to: 1, duration: 0.3))
     attributes.exitAnimation = .init(scale: .init(from: 1, to: 0.9, duration: 0.4, spring: .init(damping: 1, initialVelocity: 0)), fade: .init(from: 1, to: 0, duration: 0.3))
     attributes.displayDuration = .infinity
     attributes.border = .value(color: .black, width: 0.5)
     attributes.shadow = .active(with: .init(color: .black, opacity: 0.3, radius: 5, offset: .zero))
     attributes.positionConstraints.maxSize = .init(width: .offset(value: CGFloat(40.0.dp)), height: .intrinsic)
     attributes.positionConstraints.keyboardRelation = .bind(offset: .init(bottom: 10, screenEdgeResistance: 10))
     return attributes

Device: [all]
iOS Version: [9.0, 10.3.1, 11.4]
Xcode Version [9.4.1]
Dependency Manager Version [CocoaPods 1.5.2]
SwiftEntryKit Release # 0.5.0

Hi @Banck,
Can you fill the whole template (iOS version, Xcode, etc...)?
I tried to reproduce without a success.

In any case, please update to 0.5.1. There is a bug in the rollback window logic in 0.5.0.

The same issue with 0.5.1.
I haven't changed anything. The previous version was 0.4.2

Here is a xib example
TwoButtonsAlertView.xib.zip

In order to resolve this, you need to set the background-color via attributes.entryBackground.
Clear the view's backgroundColor in your xib and do instead:
attributes.entryBackground = .color(color: .white)
Let me know if that helps.

When I really think about it, It was supposed to be like this from the beginning.
Developers shouldn't be able to customize entries halfway - You can stick to the example project presets which haven't changed by version 0.5.x and work just fine. :-)

@huri000 Hello!
Yes, if I do
attributes.entryBackground = .color(color: .white)
and set clear color of my background view in the xib it works fine! Thanks.

but it was cool and useful when we could set color of background into the xib, and not in the attribute.

I'm glad it works!

but it was cool and useful when we could set color of background into the xib, and not in the attribute.

In that case, one has to handle the round-corners himself by clipping to bounds and mnipulating the layer and not count on SwiftEntryKit to do so.
I consider it resolved.


remove istanbul coverage reporter

What kind of change does this PR introduce?
Remove deprecated istanbul coverage reporter and use jest build in coverage reporters.

Did you add tests for your changes?
No

Does this PR introduce a breaking change?
No

What needs to be documented once your changes are merged?
None

Thanks for your contribution. I am closing PR because it is too stale..


Possible to bind tag creation to spacebar?

Hi there,
I'm wondering if it's possible to create a tag when the spacebar is pressed rather than the enter key. Does this option exist, or would it need to be a modification? Thanks!

Hi Brad. Taggle splits on comma, tab, and enter by default, and this behavior can be overridden with the submitKeys option:
var taggle = new Taggle('tags', {
    submitKeys: [
        188, // comma
        9,   // tab
        13,  // enter
        32   // space
    ]
});

Hey @jimf, thanks so much for the quick response! This works perfectly, thanks!

@jimf :+1:


python38Packages.pyodbc: 4.0.31 -> 4.0.32

Automatic update generated by nixpkgs-update tools. This update was made based on information from passthru.updateScript.
meta.description for python38Packages.pyodbc is: "Python ODBC module to connect to almost any database"
meta.homepage for python38Packages.pyodbc is: "https://github.com/mkleehammer/pyodbc"
meta.changelog for python38Packages.pyodbc is: ""
Updates performed

Ran passthru.UpdateScript

To inspect upstream changes
Impact

Checks done (click to expand)

built on NixOS

Warning: a test defined in passthru.tests did not pass

0 of 0 passed binary check by having a zero exit code.

0 of 0 passed binary check by having the new version present in output.

found 4.0.32 with grep in /nix/store/acdwiswlkjd5whqsf65fhaxzww68r4wc-python3.8-pyodbc-4.0.32

found 4.0.32 in filename of file in /nix/store/acdwiswlkjd5whqsf65fhaxzww68r4wc-python3.8-pyodbc-4.0.32

directory tree listing: https://gist.github.com/2247afc7e668f471cc49237a397bd6f5

du listing: https://gist.github.com/5e5951ac94ae70a709c7e31a56df4b7a

Rebuild report (if merged into master) (click to expand)

8 total rebuild path(s)

2 package rebuild(s)

2 x86_64-linux rebuild(s)
2 i686-linux rebuild(s)
2 x86_64-darwin rebuild(s)
2 aarch64-linux rebuild(s)

First fifty rebuilds by attrpath
python38Packages.pyodbc
python39Packages.pyodbc

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/acdwiswlkjd5whqsf65fhaxzww68r4wc-python3.8-pyodbc-4.0.32 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A python38Packages.pyodbc https://github.com/r-ryantm/nixpkgs/archive/763f92278b75bec84f7374db0ed2b1c95da838bc.tar.gz

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/acdwiswlkjd5whqsf65fhaxzww68r4wc-python3.8-pyodbc-4.0.32
ls -la /nix/store/acdwiswlkjd5whqsf65fhaxzww68r4wc-python3.8-pyodbc-4.0.32/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
Result of nixpkgs-review run on x86_64-linux 1

2 packages built:

python38Packages.pyodbc
python39Packages.pyodbc

Maintainer pings
cc @bjornfor for testing.

Result of nixpkgs-review pr 135174 at 763f9227 run on x86_64-linux 1

2 packages built successfully:

python38Packages.pyodbc
python39Packages.pyodbc

1 suggestion:

warning: python-include-tests
Consider adding a checkPhase for tests, or if not feasible, pythonImportsCheck.
Near pkgs/development/python-modules/pyodbc/default.nix:18:0:
   |
18 |     description = "Python ODBC module to connect to almost any database";
   | ^


new installation ends up with "index was not found.  Are you sure the view exists and is a .blade.php file?"

This is  a bug.

Prerequisites

[*] Are you running the latest version?
[*] Are you reporting to the correct repository?
(enso is made of many specialized packages: https://github.com/laravel-enso)
[*] Did you check the documentation?
[*] Did you perform a cursory search?

Description
I worked like in the https://docs.laravel-enso.com/guide/getting-started.html#installation-steps described. Special is, that i use docker with postgres. But that works fine. At least the artisan migrate --seed ...
After installation, i start my chrome/firefox on localhost:8000 and get
"index was not found.  Are you sure the view exists and is a .blade.php file?"
Maybe someone else can commit that?
Thx a lot in advance

was my own mistake ... sry
forgot the yarn build command
after that, all sites/objects were there


Error compiling Transform with Vue3/Vite4

Trying to build with Vue3 / Vite v4.0.4 and it won't compile. Stacktrace is:

#0 3.198 vite v4.0.4 building for production...
#0 3.365 transforming...
#0 12.35 ✓ 745 modules transformed.
#0 12.35 "Transform" is not exported by "__vite-browser-external", imported by<EMAIL_ADDRESS>#0 12.35 file: /app/node_modules/@json2csv/node/src/Transform.js:2:9
#0 12.35 1: import os from 'os';
#0 12.35 2: import { Transform } from 'stream';
#0 12.35             ^
#0 12.35 3: import { StreamParser } from '@json2csv/plainjs';
#0 12.35 4: import { fakeInherit } from './utils.js';
#0 12.35 error during build:
#0 12.35 RollupError: "Transform" is not exported by "__vite-browser-external", imported by<EMAIL_ADDRESS>#0 12.35     at error (file:///app/node_modules/rollup/dist/es/shared/rollup.js:2001:30)
#0 12.35     at Module.error (file:///app/node_modules/rollup/dist/es/shared/rollup.js:12930:16)
#0 12.35     at Module.traceVariable (file:///app/node_modules/rollup/dist/es/shared/rollup.js:13296:29)
#0 12.35     at ModuleScope.findVariable (file:///app/node_modules/rollup/dist/es/shared/rollup.js:11828:39)
#0 12.35     at ChildScope.findVariable (file:///app/node_modules/rollup/dist/es/shared/rollup.js:6707:38)
#0 12.35     at Identifier.bind (file:///app/node_modules/rollup/dist/es/shared/rollup.js:7802:40)
#0 12.35     at ClassDeclaration.bind (file:///app/node_modules/rollup/dist/es/shared/rollup.js:5597:23)
#0 12.35     at ExportDefaultDeclaration.bind (file:///app/node_modules/rollup/dist/es/shared/rollup.js:5597:23)
#0 12.35     at Program.bind (file:///app/node_modules/rollup/dist/es/shared/rollup.js:5593:28)
#0 12.35     at Module.bindReferences (file:///app/node_modules/rollup/dist/es/shared/rollup.js:12926:18)
#0 12.47 ERROR: "build-only" exited with 1.

Dunno if it will help or not, but importing it shows the following error in VsCode.
import { AsyncParser } from '@json2csv/node'; // <-- Error shows up here
const parseAsync = (data: string[], opts: { fields: string[] }, transformOpts: string[]) => new AsyncParser(opts, transformOpts).parse(data).promise();

Error:
Could not find a declaration file for module '@json2csv/node'. <EMAIL_ADDRESS>implicitly has an 'any' type.
  Try `npm i --save-dev @types/json2csv__node` if it exists or add a new declaration (.d.ts) file containing `declare module '@json2csv/node';`ts(7016)

Hi @UglyHobbitFeet ,
This is cause by the lack of Typescript typings in the project as already raised in #1
I'm in the middle of porting the library to Typescript to provide the best possible support.
In the meantime, check that other issue for the workaround which is to create you own type definition.
Sorry for the inconvenience!

Ok thanks!
On Sat, Jan 21, 2023, 6:27 AM Juanjo Diaz @.***> wrote:

Hi @UglyHobbitFeet https://github.com/UglyHobbitFeet ,
This is cause by the lack of Typescript typings in the project as already
raised in #1 https://github.com/juanjoDiaz/json2csv/issues/1
I'm in the middle of porting the library to Typescript to provide the best
possible support.
In the meantime, check that other issue for the workaround which is to
create you own type definition.
Sorry for the inconvenience!
—
Reply to this email directly, view it on GitHub
https://github.com/juanjoDiaz/json2csv/issues/12#issuecomment-1399232862,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ALBDS7QQJEPLVDYTWYDPBCTWTPBYNANCNFSM6AAAAAATYIL3P4
.
You are receiving this because you were mentioned.Message ID:
@.***>

I just released v7.0.0 which entirely rewrites @json2csv to typescript.
Let me know if you find any issues with it. This was a massive change.


Remove usages of unsafe lifecycle methods

React team recently published a blogpost: https://reactjs.org/blog/2018/03/27/update-on-async-rendering.html
TL;DR: cWM, cWRP, and cWU methods are considered unsafe for future async rendering and will be deprecated soon. The recommended way for open source maintainers to deal with it is to use react-lifecycles-compat package and migrate to new static getDerivedStateToProps method

@Hypnosphi @diasbruno can I take this up? I am guessing this involves polyfilling the components so that they can be used with the current react version?

Sure, @kaushik94. Follow the react-lifecycles-compat guide and everything should be fine.

https://github.com/reactjs/react-modal/pull/639#discussion_r179925995

Plus ModalPortal still uses cWRP: https://github.com/reactjs/react-modal/blob/master/src/components/ModalPortal.js#L79


PR (Puerto Rico) is not behaving as expected

Describe the bug
FE
There are extra and missing burdens for PR.
Need to add the climate change category and the projected flood risk category
Need to add the transportation category and both related burdens diesel and traffic (but not the transportation barriers)
Need to add wastewater category and both leaking underground storage tanks and wastewater discharge
Housing is missing lack of indoor plumbing
Need to remove abandoned mine lands and FUDS
BE
Need to remove the linguistic isolation percent column fields
To Reproduce
Steps to reproduce the behavior:

Go to 'PR'
Click on 'a census tract'
Open side panel 'x'
See errors

Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

OS: [e.g. iOS]
Browser [e.g. chrome, safari]
Version [e.g. 22]

Smartphone (please complete the following information):

Device: [e.g. iPhone6]
OS: [e.g. iOS8.1]
Browser [e.g. stock browser, safari]
Version [e.g. 22]

Additional context
Add any other context about the problem here.

@mattbowen-usds - are you able to join the stand up tomorrow at 10:30 PST? I have some questions on this and AWS stuff too

@KameronKerger - we can work on this one together, should take about 10 mins to get the correct categories and burdens in

Seems like the BE signal that is used for highlighting of the housing category (blue) doesn't always show up as true even tho the burdens are met (unemploy and poverty):
http://localhost:8000/en/#11.31/18.2503/-66.5833

@KameronKerger re "Need to remove the linguistic isolation percent column fields" --- like do we need to remove that field in general everywhere? Or just null it for PR tracts?

Just for PR please @Matt @.***>. Emma already removed the percentiles and having the percentages there is confusing?
note: this is not the most important thing.
From: Matt Bowen @.>
Reply-To: usds/justice40-tool @.>
Date: Wednesday, November 16, 2022 at 6:29 AM
To: usds/justice40-tool @.>
Cc: "Kerger, Kameron N. EOP/OMB" @.>, Mention @.***>
Subject: Re: [usds/justice40-tool] PR (Puerto Rico) is not behaving as expected (Issue #2083)
@KameronKergerhttps://github.com/KameronKerger re "Need to remove the linguistic isolation percent column fields" --- like do we need to remove that field in general everywhere? Or just null it for PR tracts?
—
Reply to this email directly, view it on GitHubhttps://github.com/usds/justice40-tool/issues/2083#issuecomment-1317111670, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ASQ2OVATQUYOEWVCMG6YVETWITVWDANCNFSM6AAAAAASBOGFSE.
You are receiving this because you were mentioned.Message ID: @.***>

For any dev's future reference, the previous removal for PR is in https://github.com/usds/justice40-tool/pull/1750


How to integrate shipyard with inline docker swarm?

We're working on it on the 1.12 branch.  There's a PR up to simplify the implementation of the new frontend (https://github.com/shipyard/shipyard/pull/910).

Great work, thanks!


Other media urls don't work

We get the HTTP 404 'The requested page was not found on the server'.

I thought this could be solved by extending the Apache config, but now I discovered regular videos and images are not mentioned in the Apache config either. This is related to the fact that these are behind authentication done by Django; I'm going to try to mirror this architecture for the other media.

It turned out that the other media were accessible in the setup behind authentication, we just didn't use it yet. I've now changed the url to the protected version. This gave some problems with browsers not displaying the images well in separate tabs (because of the authentication), so I added the download attribute.


Dataset allow 0d np arrays to be inserted with context manager

@WilliamHPNielsen @jana-d

The idea is to allow numpy arrays with zero dimensions such as np.array(1) to be added by casting them to 1D

Appveyor bug fixed by #1062


MegaCom basic framework

Work in progress. We can build a lot of things upon this:
enum comserver_id_t {
  COMSERVER_EXTUI, // button input, ext screen etc.
  COMSERVER_FILESERVER, // simple FTP-ish protocol
  COMSERVER_EXTMIDI, // note in, CV out etc.
  COMSERVER_MAX,
  COMSERVER_DRAIN_INVALID = 0xFF
};

To eval the idea I'll implement file server and usb midi.

it would be good if the pc side application ran as a vst.

it would be good if the pc side application ran as a vst.

Windows only?

it would be good if the pc side application ran as a vst.

Windows only?

I hope not :grin:

Then this: https://juce.com/ ?

Yep. that's what I was thinking.
Been a while since i've looked into vst multi platform tech.

Yep. that's what I was thinking.
Been a while since i've looked into vst multi platform tech.

Yep. that's what I was thinking.
Been a while since i've looked into vst multi platform tech.

Yep. that's what I was thinking.
Been a while since i've looked into vst multi platform tech.

Yep. that's what I was thinking.
Been a while since i've looked into vst multi platform tech.

Yep. that's what I was thinking.
Been a while since i've looked into vst multi platform tech.

Did your ISP just accidentally turn the "retrig" knob? :D

... or make it a VST host?
MD -> Kit Edit -> scroll down to the VST menu

finished the ack/resend/timeout transportation layer.
will test with a hello world server tomorrow.

couldn't get UART0 RX interrupt to work... thoughts?

The UART0 ISRs are being managed by the Arduino serial libraries.
It's how Serial.begin works.
See:
./HardwareSerial0.cpp

The UART0 ISRs are being managed by the Arduino serial libraries.
It's how Serial.begin works.
See:
./HardwareSerial0.cpp

couldn't get UART0 RX interrupt to work... thoughts?

please disregard. it doesn't work because non of the tools I tried work at 250kbps sending hex (
The arduino serial monitor does allow me to reach the ISR, but no hex input.

Even works when the sequencer is running.
Fully asynchronous.

Fact: running the sequencer at the grid page, file download speed = sorta 20KB/s
It gets more bandwidth when opening the setting page and navigate to SYSTEM with only 2 entries displayed

Funny.

Sounds the like the serial ISR is hogging the cpu not allowing the MIDI or TIMER ISRS to execute.
Lowering the baud will probably solve this.

It also raises tempo without file transferring.

If you don't disable ISR before the sequencer ISR runs, same thing happens. The tempo increases.
This is likely because the TIMER counters are not increasing.
So perhaps something similar is happening here?

oh ok.  so it's like, something in the menu system blocked the ISR for a bit of time?

Shouldn't be.
The only thing blocking the timer IRSs should be other ISRs or if you explicitly disable interrupts in your code.

Is data hitting UART0 when idle?

no. ISR standing by.

you sure?

yeah pretty sure. host is doing nothing if I don't click the UI.

My suspicion is that one of your conditional statements is passing unexpectedly and is triggering a call to the ring buffer code that is using USE_LOCK() / SET_LOCK()

Let me try this on the dev branch.

That's a repro. dev branch. :p

That's a repro. dev branch. :p

You seeing tempo drift in dev branch?

Yeah.

Yeah. Just do a few rounds of the menu thing.

do what now?

Just flashed dev branch. I'm not seeing any tempo drift. (from grid page tempo display)

On GridPage, SAVE+WRITE enter menu
Enter a submenu (the deeper the better)
Get out with SAVE button, back to GridPage
Rinse and repeat

When MENU -> MD settings are changed. Global settings are sent back to the MD. This includes tempo.
I think there is an edge case where the global settings tempo, is not up to date, so the MD tempo gets shifted to an older value... instead of current.

Not likely. Why does it keep increasing?

I'm not seeing the increase you're reporting then.

A simpler repro without involving the GridPage init/cleanup:

Enter a submenu with WRITE
Get back with SAVE
Repeat

Not showing up for me.
Justins-MacBook-Pro-4:megacommand jmammarella$ md5 main.hex
MD5 (main.hex) = bc67731518f844109024bbdf1be6a3c0
Justins-MacBook-Pro-4:megacommand jmammarella$ git status . | head -n 20
On branch dev
Untracked files:

Alright. Same as the last time I opened the case.
We can discard the issue here I guess.

What happened last time ?
Bad compile ?

The timeline:

https://github.com/jmamma/MIDICtrl20_MegaCommand/issues/4
https://github.com/jmamma/MIDICtrl20_MegaCommand/pull/47#issuecomment-546681967
https://github.com/jmamma/MIDICtrl20_MegaCommand/pull/47#issuecomment-546684139
https://github.com/jmamma/MIDICtrl20_MegaCommand/issues/65

So, just some weird states going on in my MD. Maybe related to other issues (last time it was https://github.com/jmamma/MIDICtrl20_MegaCommand/issues/98)

Porting https://github.com/v-yadli/paw-01 over to test realtime messages.

What is/was paw-01?

Oh that.

A synth that browses the internet(

Is that a DAW or a 💣?

which red wire again?

Took me quite a while to make it stable and not dropping frames, but here it is, a 1x2 midi bridge.
Host: https://github.com/yatli/Camelotia/tree/main/src/MegaCom.MidiHost
Requires two virtual midi devices, "MegaCommandPort1" and "MegaCommandPort2"

Also, debug messages are framed into one kind of message. So the debugging capabilities can be retained (or even improved)

With megacom framed debug (and custom formatter):
Sketch uses 221460 bytes (87%) of program storage space. Maximum is 253952 bytes.
With standard Serial.print, upstream dev branch:
Sketch uses 218962 bytes (86%) of program storage space. Maximum is 253952 bytes.
(Cannot compile megacom-enabled debug version with Serial because of uart0 conflicts)

Hook up the midi host and debug:

Cool. I had always wanted to replace Serial.print with something more robust.
DisplayMirror mode will need to be implemented using this new protocol.

I've never used that mode.
With the new GUI (cross platform, rest assured) in place I guess it's the time.

Thinking of putting a MC into this:

int MCDisplayServer::run() {
  // TODO external key, knobs etc. events handling
  return -1;
}

void MCUIServer::update() {
  megacom_task.tx_begin(COMCHANNEL_UART_USB, COMSERVER_EXTUI, 513);
  megacom_task.tx_data(COMCHANNEL_UART_USB, USC_DRAW);
  megacom_task.tx_vec(COMCHANNEL_UART_USB, (char*)oled_display.getBuffer(), 512);
  megacom_task.tx_end(COMCHANNEL_UART_USB);
}

Some progress on the UI. Decoupled the Camelotia stuff and add multiple tabs:

Debug view ready:

Display mirror ready:

Too easy.

😮
Great work.
Any chance for easy .png screenshot export, and support for inverse colour mode. That's how I generate screenshots for the manual.

Done.

The OLED emulation is actually an aliasing artifact. Don't know exactly how to repro that when rendering to a PNG 😅

beautiful work. thankyou

The framework is ready now. @jmamma
What about the UI? Do we want to add it to this repo?

Which UI?

https://github.com/yatli/MegaCom.UI

gotcha. keep repo separate is probably better.

Understood.
Currently it has the following functionalities:

File Browser (wip, only CWD, GET, LS implemented)
Debug, with improved macros. Things like DEBUG_PRINTLN now takes arbitrarily many arguments, and printed atomically.
Midi proxy: Midi bridge into 2 virtual midi devices.

You're on macOS? Let me build a package for you.

either mac or pc.

https://yadli.net/index.php/s/d7x3f7sBDtJNc2N
https://yadli.net/index.php/s/w7AFLEfrqQCPq9G

A nice little speed meter:

Thinking of putting a MC into this:

int MCDisplayServer::run() {
  // TODO external key, knobs etc. events handling
  return -1;
}

i got one PT80 at home, would be so fun to have an MC inside! :)


Date Picker, day out of range error

There is a small bug with the calendary date picker. Following example illustrates the behavior:

Select March 31

Toggle one month to the left

ValueError: day is out of range for month as there are less than 31 days in Feb

Simple to fix with a try except in date_pick.py that reverts to the first day of the month if ValueError occurs

I see that  import dateutil is already called. dateutil.relativedelta.relativedelta(months = month_shift, years = year_shit) would be much easier than what is currently implemented


the click event on the header view is not working.

I was trying to add some buttons on the header view.
And I realized that it doesn't allow to be clicked because the view was drew by onDrawOver.
It is not the normal item view on the RecyclerView but just the same shape of the item view.
Could you recommend how I can add the click event on the header buttons?
Someone asked the question on the StackOverFlow page.
But still I don't have any solution from it.
http://stackoverflow.com/questions/31102738/how-to-handle-click-event-in-recyclerview-itemdecoration

I got some workaround code.
On StickyHeaderDecoration.java
I added the function "findViewById" under findHeaderViewUnder.
public View findHeaderViewUnder(float x, float y) {
    .....
}

/**
 *
 * @param x : getX
 * @param y : getY
 * @param viewId : resource id of view you clicked.
 * @return
 */
public boolean isViewClicked(float x, float y, int viewId) {
    for (RecyclerView.ViewHolder holder : mHeaderCache.values()) {
        final View itemView = findHeaderViewUnder(x, y);
        if (itemView == null) {
            return false;
        }
        final float translationX = ViewCompat.getTranslationX(itemView);
        final float translationY = ViewCompat.getTranslationY(itemView);

        final View child = itemView.findViewById(viewId);
        if (child == null) {
            return false;
        }

        if (x >= child.getLeft() + translationX &&
                x <= child.getRight() + translationX &&
                y >= child.getTop() + translationY &&
                y <= child.getBottom() + translationY) {
            return true;
        }
    }
    return false;
}

On Fragment file,
I added item touch listner by insparation of original code,
final StickyHeaderDecoration decor = new StickyHeaderDecoration(adapter);
    recyclerView.setAdapter(adapter);
    recyclerView.addItemDecoration(decor, 1);

    recyclerView.addOnItemTouchListener(new RecyclerView.OnItemTouchListener() {
        @Override
        public boolean onInterceptTouchEvent(RecyclerView rv, MotionEvent e) {
            // only use the "UP" motion event, discard all others
            if (e.getAction() == MotionEvent.ACTION_UP) {

                // find the view on the header that was clicked
                if (decor.isViewClicked(e.getX(), e.getY(), R.id.btn)) {  <--- here can check if you clicked the button.

						// do what you want. It works very well.
						// Toast.... etc...

                    return true;
                }
            }
            return false;
        }

        @Override
        public void onTouchEvent(RecyclerView rv, MotionEvent e) {
            // ignore
        }

        @Override
        public void onRequestDisallowInterceptTouchEvent(boolean disallowIntercept) {
            // ignore
        }

    });

Duplicate of #38


[8.x] Add attemptOnce to RateLimiter

I often set the $maxAttempts to 1 so i think it would be in nice if we had attemptOnce

Thanks for your pull request to Laravel!
Unfortunately, I'm going to delay merging this code for now. To preserve our ability to adequately maintain the framework, we need to be very careful regarding the amount of code we include.
If possible, please consider releasing your code as a package so that the community can still take advantage of your contributions!
If you feel absolutely certain that this code corrects a bug in the framework, please "@" mention me in a follow-up comment with further explanation so that GitHub will send me a notification of your response.


Hide Item IDs

Please add a config option to not display the Item IDs.

That's a good idea. I will add config options for all the different modules in the 1.0.0 release.
Thanks for reminding me to do that!

1.0.0 has been released and you can finally configure major parts of Block Helper including hiding item IDs.