Cannot convert interp.valueInterface to a function

The following program sample.go triggers an unexpected result
package main

import (
	"fmt"
	"github.com/traefik/yaegi/interp"
	"github.com/traefik/yaegi/stdlib"
	"go/build"
	"log"
	"os"
	"yaegi/pluginpkg"
)

func main() {
	i := interp.New(interp.Options{
		GoPath: build.Default.GOPATH,
	})
	i.Use(stdlib.Symbols)

	// Load plugin code from file
	pluginPath := "plugins/plugin1.go"
	pluginCode, err := os.ReadFile(pluginPath)
	if err != nil {
		log.Fatalf("Error reading plugin file: %v", err)
	}

	// Evaluate the plugin code
	_, err = i.Eval(string(pluginCode))
	if err != nil {
		log.Fatalf("Error evaluating plugin code: %v", err)
	}
	// Load the NewPlugin function from the plugin
	newPluginSymbol, err := i.Eval("plugins.NewPlugin")

	if err != nil {
		log.Fatalf("Error looking up NewPlugin symbol: %v", err)
	}
	fmt.Printf("NewPlugin type: %T\n", newPluginSymbol.Interface())
	// Assert the function type
	newPluginFunc, ok := newPluginSymbol.Interface().(func() pluginpkg.Plugin)
	if !ok {
		log.Fatalf("Error: NewPlugin symbol is not a func() pluginpkg.Plugin") // <- an exception occurred over here
	}
}

Expected result
expect there is no error

Got
don't use yaegi cli

Yaegi Version
0.15.0
Additional Notes
go.mod
module yaegi

go 1.20

require github.com/traefik/yaegi v0.15.0

plugins/plugin1.go
package plugins

import (
	"fmt"
	"yaegi/pluginpkg"
)

type Plugin1 struct{}

func (p *Plugin1) Initialize() error {
	// Initialization logic
	return nil
}

func (p *Plugin1) Execute(args interface{}) (interface{}, error) {
	// Plugin logic
	fmt.Println("Plugin1 executed")
	return nil, nil
}

func (p *Plugin1) GetName() string {
	return "Plugin1"
}

func NewPlugin() pluginpkg.Plugin {
	return &Plugin1{}
}

pluginpkg/plugin.go: a common interface for main.go and plugin1.go
package pluginpkg

type Plugin interface {
	Initialize() error
	Execute(args interface{}) (interface{}, error)
	GetName() string
}

Output:
NewPlugin type: func() interp.valueInterface
2023/03/21 21:52:31 Error: NewPlugin symbol is not a func() pluginpkg.Plugin

I'm not sure there is an issue here (a bug in yaegi). It seems to be a question about how integrate the interpreter with the runtime. If you need to share data structures between the runtime and the interpreter, the best starting point is to look at on how the runtime symbols are exported to the interpreter, for example using yaegi extract, and looking at the stdlib wrappers.
Regarding exporting interfaces, unfortunately more boilerplate is required due to the necessity of work around some Go reflect limitations.

I'm not sure there is an issue here (a bug in yaegi). It seems to be a question about how integrate the interpreter with the runtime. If you need to share data structures between the runtime and the interpreter, the best starting point is to look at on how the runtime symbols are exported to the interpreter, for example using yaegi extract, and looking at the stdlib wrappers.
Regarding exporting interfaces, unfortunately more boilerplate is required due to the necessity of work around some Go reflect limitations.

OK, I'm going to try yaegi extract


Update RuboCop & fix offenses by new lints

We update RuboCop and fix problems caused by the new lints that were introduced.

@fosterfarrell9 Could you maybe look into the Style/SafeNavigationChainLength? I've adjusted the maximum value to 3 (default was 2) and we still have two offenses. We might want to reset the max value to 2, however I'm not too sure yet how to tackle the respective offenses. If we don't think this lint is useful, we could also disable it entirely.
To tackle the offenses, we'd have to know exactly which attributes are guaranteed to be non-null.

I do not think this lint is useful. Rewriting this would make it unnecessarily bloated. Also, for the second one, we would have to dig into thredded. I suggest raising the maximum value to 4.


Cocoapod misconfigured with Localization strings file

Possibly related to https://github.com/urbanairship/ua-ios-pod/issues/13
I am creating a local cocoapod, and the validation step fails, pointing to a xcode build problem.
The following build commands failed:
CopyStringsFile /var/folders/03/stz43xxd499b61v85gvfc85c0000gs/T/CocoaPods/Lint/build/Release-iphonesimulator/Pods/UrbanAirship_iOS_SDK.framework/UAInteractiveNotifications.strings UrbanAirship-iOS-SDK/Airship/UI/Default/Common/Resources/en.lproj/UAInteractiveNotifications.strings
CopyStringsFile /var/folders/03/stz43xxd499b61v85gvfc85c0000gs/T/CocoaPods/Lint/build/Release-iphonesimulator/Pods/UrbanAirship_iOS_SDK.framework/UAInteractiveNotifications.strings UrbanAirship-iOS-SDK/Airship/UI/Default/Common/Resources/zh-Hant.lproj/UAInteractiveNotifications.strings
(2 failures)

I tried 5.1.1 and 6.0.2

Release 6.1.0 will should fix this issue. Thanks for your patience.


Rule proposal: Allow unused array elements in a destructured argument

The following code will trigger the no-unused-vars rule:
const m = new Map([['foo', 'bar'], ['baz', 'qux']]);
const onlyBars = new Map(
  Array.from(m.entries)
    .filter([k, v] => v === 'bar')
);

This is less than ideal. We already have a {args: 'after-used'} setting for the case of:
(k, v) => v === 'bar'; and it would be handy to have the same sort of option here.

I filed this against the wrong repo! Oops!

@brennie .filter(([, v]) => v === 'bar') will fix your problem, fwiw.

@ljharb I wasn't aware of that syntax. Thanks!


Mappable reducers

Hello,
coming out of the Haskell world I'm really used to working with reducers in the style of applicative folds
Essentially we use exactly redux reducers except they are functors, meaning that we can map over them
const nameReducer = personReducer.map(p => p.name)

This is useful for the same reasons reselect is useful, but this let's us stay within the reducer abstraction.
This is accomplished by storing a "presenter" function to postprocess the accumulated state. We end up getting a "backing state"  and a "view" which consumers see. (So a reducer in the style of redux is a special case of this with the presenter function being exactly x => x)
A typical example would be to have a set of translations exposed as the application state, while only storing the current locale.
  const translationsReducer = localeReducer.map(locale => getTranslationsFor(locale))

We're still able to serialize and rehydrate only the backing state. We're also able to cache the "view" in order not to produce new objects spuriously so we can avoid re-renders (again, see reselect, expect we need only a single library / abstraction).
I've previously used this in production, and I've now pushed my implementation to github here. It's often compatible with existing code bases, for instance it works out of the box with react-redux and any middlewares applied using applyMiddleware (though unfortunately not the redux devtools)
So my question is if there is any desire to ever take redux in this direction? I really feel like this model improves reducers e.g. in comparison to something like MobX, since we can produce essentially computed values while keeping all the advantages of Redux.
Cheers,
Philip

I have 0 background in Haskell (or any other "serious" FP language) myself.  What are the actual differences in fantasyland-redux in both implementation and usage?  What does it mean to "map over" reducers?  What are the benefits you're seeing out of your approach?
Or, to put it another way: I'm afraid I don't understand what it is you're actually proposing or describing :)

@markerikson I guess it's pretty hard to describe, so let's have the code do the talking :)
I've written down a small example here. http://fantasyland-redux.surge.sh/
Do you feel like it makes sense?

Apologies, haven't had time to go through and specifically look at what you've put together.
My guess is that it's something we'd be unlikely to do ourselves, for a variety of reasons.  I'll see if I can give more specific feedback once I've had a chance too look this over.


Can't discover modelfiles anymore

Bug Report - Can't discover modelfiles anymore
Description - Anytime i try to get a modelfile, it takes me to a blank create a modelfile page. This only happened after running latest docker pull
Bug Summary:
[Provide a brief but clear summary of the bug]
Anytime i try to get a modelfile, it takes me to a blank create a modelfile page.
Steps to Reproduce:

Discover new modelfiles
click get button
type http://localhost:3000 and import
shows blank modelfile page.

Expected Behavior:
I expect to download and use the new modelfile
Actual Behavior:
Environment
Manjaro linux latest version
When i click import after putting in localhost:3000 url, i get the following

Hi, could you verify that you're using open-webui container image and not the outdated ollama-webui one? Thanks!
Here's our migration guide: https://github.com/open-webui/open-webui#moving-from-ollama-webui-to-open-webui

I followed the migration guide, but I think i screwed up cause my login wouldn't work anymore, so created a new login, and all my stuff is gone, and still can't discover new model files


fix: local connection is http not https

Reason for change

When using UI locally, we do not have TLS enabled.
Testing

Using your local Manifold server, try to use the local connection.
Screens
Before

After

Since testing this is kind of involved, can you show some before & after screenshots?

Changed the description with some screenshots.

Closing in favor of #192


@next 2.5.0-next-2016-11-02-1341 Crashes on launch

Tell us about the problem
Running the latest 2.5.0-next-2016-11-02-1341 off @next branch causes app to crash during launch.
Please provide the following version numbers that your issue occurs with:
┌──────────────────┬────────────────────────────┬────────────────┬─────────────┐
│ Component        │ Current version            │ Latest version │ Information │
│ nativescript     │ 2.3.0                      │ 2.3.0          │ Up to date  │
│ tns-core-modules │ 2.5.0-2016-11-02-4652      │ 2.3.0          │ Up to date  │
│ tns-android      │ 2.5.0-next-2016-11-02-1341 │ 2.3.0          │ Up to date  │
│ tns-ios          │ 2.5.0-2016-11-1-1          │ 2.3.0          │ Up to date  │
└──────────────────┴────────────────────────────┴────────────────┴─────────────┘
Android 6.0.1
Java 8

Did the error happen while the app was being constructed? (buildtime error)
No.
Did the error happen while the app was executing? (runtime error)
adb logcat
http://pastebin.com/668Uz7iK
Please tell us how to recreate the issue in as much detail as possible.
tns create sandbox
cd sandbox
tns install android@next
tns livesync android --watch

@roblav96 hey, I've been unable to reproduce ANY startup, or runtime crash with the following packages:
latest Android Package (2.5.0-next-2016-11-02-1341),
latest tns-core-modules (2.5.0-2016-11-03-4657),
latest release CLI (2.3.0)
on a 4,4,2 and 6.0.1 devices
tns create sandbox
cd sandbox
tns platform add android@next
tns livesync android --watch

I'd suggest clearing npm cache (npm cache clear) and installing packages/platforms again. Please do share if that fixed this particular issue, or if the problems persist

@Pip3r4o Very strange, it stopped doing it this morning 👻 lol Thanks mate!


produce something similar to spreadsheet created by Shannon

In recent years, Shannon Mann has used assessment model output to develop a spreadsheet looking at estimated catch at age by country and various other quantities of interest. If we can automate the process of developing this spreadsheet, or at least speed up it's development by providing the necessary information in a format closer to the quantities the AP is interested in, that would save Shannon time and give opportunity for the JTC to make sure the calculations were being done in the way we feel is most logical. This is related to issue #174.

Agreed to wait until higher-priority tasks are complete then will revisit this issue.

Will ask at SRG what they explicitly want, if they want us to produce something.

I will try to get familiar with the Excel file prior to the SRG, but have assigned 2018 milestone just to clean up the issues list. I think now all issues are assigned 2018.

I don't understand Excel and so can't help :) Be good in the SRG to maybe start from scratch and ask what they really want (and if they do want it, not everyone might). It'd be easier for us to start with an explanation and then work out the calculations and then write the code. Chris spent a lot of time trying to reverse-engineer the spreadsheet, but starting from scratch may be more efficient. But if you can figure it out then by all means ...

SRG meeting. Shannon: useful to know if lots of age-2's had been caught in the past.
Trevor: Really want: 2010 cohort - age-1 %age weight that survive, natural mortality, caught.
See what SRG recommends....

Double-checked SRG report on 12/13/17.


what version of unity should i use

it says wrong version and when i press continue from that then im in the project but theres nothing there

just open it in the version u want and hope it works. or download the version it was built in

I have issues with the project, all the prefabs are missing, which makes it to where nothing is there and I just freefall, for the desert and forest world.


incorrect names

dunno how this worked on osx before but this causes windows to break
@keybase/react-hackers

Oh, this is why clicking a favorite wasn't working again?
LGTM :thumbsup:

@chrisnojima could we find out more about when it broke / how it worked?  need to know if there are broken builds out there

Should I wait for this to be merged before making another release?

i think this'll be fixed soon so we could defer a release. widget is pretty broken w/o this

@cjb this seems to work fine on osx even with this (not exactly sure how). this got broken by this pr: https://github.com/keybase/client/pull/3179/files#diff-f7dabd05c1cd1f40d7ffcc77c3e89a15L22

@chrisnojima :thumbsup: thanks.  let's push a release with this fix and my menubar fix today, that'll avoid yesterday's build getting promoted.

@cjb take one more peek please

Okay, :ship: :thumbsup:


use keys for faster tagging

currently the buttons have to be clicked. It is much faster to use keys instead.

implemented in fe288f1


Align propnames with Svelte

I assume your mainly focusing on Svelte, so why not try to reuse vanilla standards such as ondragstart instead of reactified camelcase onDragStart for example?

Thanks for the suggestion! Right now, the focus is to make it work well across all 5 frameworks supported, son camel-case makes the most sense.


Fix ChoiceSetInput.value throwing in unrendered ShowCardAction cards

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


Microsoft Teams mobile Viva cards logo SVG file getting zoomed showing only half logo

Microsoft Teams mobile Viva cards logo SVG file getting zoomed showing only half logo
Please check this gitHub issue.
https://github.com/OfficeDev/office-js/issues/3483

Document Details
⚠ Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

ID: ccca9392-e576-ef1f-79f5-f591810db155
Version Independent ID: ccca9392-e576-ef1f-79f5-f591810db155
Content: Overview: Viva Connections
Content Source: Viva/connections/viva-connections-overview.md
Service: viva
Sub-service: viva-connections
GitHub Login: @AtkinE
Microsoft Alias: evanatkin

Hello @harshkumardubey how are you?
Here we are limited to Documentation issues and fixes.
Thank you,

We appreciate any feedback that improves the content in the Microsoft docs but we haven't had any response from you so we are going to close this issue.
Please feel free to re-open this issue if there is a specific area of the docs that we can improve or make better. Thank you.

8


Compatible with translatable

I tried two packages:
https://github.com/spatie/nova-translatable
https://github.com/mrmonat/nova-translatable
and this package does not work with any of them.

Any update on this?
It would be very useful to support translatable

The problem is basically that the field names have spaces when using them as translatable fields. The events emitted don't get triggered due to the spaces inside (invalid event names). There are a few other things that would need to be changed, but basically "slugifying" the field names before using them would be a big step forward.

Unfortunately this has to be done by the maintainers of those packages, there's nothing I can do on my side as far as I can see. Maybe you wan't to ping @freekmurze or add the neccessary functionality by yourself to the translatable package and open an PR. :)

@trawen is there any progression? I am also looking forward to a solution.

I managed to get this package working with https://github.com/spatie/nova-translatable by changing the slug pointer on the text field from
                    ->slug('{my_slug_name}')```
to
```TextWithSlug::make('field')
                    ->slug('translations_{my_slug_name}_{locale}')```

@Casper-Bastiaan-Net  So did you get a slug in your respective language automated - e.g when you enter the title in Arabic letters then slug should become in Arabic letters too?
https://prnt.sc/puj69b

@asharma16891 have you tried changing app's locale? This might work.

@Casper-Bastiaan-Net Could you explain how you did this?
I have two locales: EN and NL. Currently my code looks like this:
Translatable::make([
TextWithSlug::make(__('Title'), 'title')->rules('required')->slug('translations_slug_nl'),
Slug::make(__('Slug'), 'slug'),
]),
The NL field works like a charm but how can I get the EN slug field linked to the EN title field? Is there a variable you can use to replace 'translations_slug_nl' with 'translations_slug_$locale' or something?

@sanneterpstra
For the non translated version you have to just use the regular notation.
For the translated version you have to add the translations locale at the end of the name manually.


3 files ASCII with CRLF, should maybe be converted to unix ending ?

🧰 Task
It seem we have 3 files that have CRLF in them, some tools don't like those, and it may be disturbing to some contributors that may see spurious ^M (CR) in diff tools.
It would be good to update those to redo the newline, but unfortunately that would modify all the lines in history
 fd '.py' | xargs file | grep CRLF
napari/_tests/test_interactive_transforms.py:                         Python script text executable, ASCII text, with CRLF line terminators
napari/components/_interaction_box_mouse_bindings.py:                 Python script text executable, ASCII text, with CRLF line terminators
napari/layers/image/_image_key_bindings.py:                           Python script text executable, ASCII text, with CRLF line terminators

and if you are curious:
$ fd '.py$' | xargs file | cut -f2 -d: | tr -s ' ' | sort | uniq -c | sort -nr
 662  Python script text executable, ASCII text
  31  empty
  25  Python script text executable, Unicode text, UTF-8 text
   6  ASCII text
   3  Python script text executable, ASCII text, with CRLF line terminators
   1  directory
   1  Unicode text, UTF-8 text, with very long lines (1116)
   1  Python script text executable, ASCII text, with very long lines (497)
   1  Python script text executable, ASCII text, with very long lines (471)
   1  Python script text executable, ASCII text, with very long lines (310)
   1  Pascal source text, ASCII text
   1  GNU gettext message catalogue text, Unicode text, UTF-8 text, with very long lines (2060)

Hmm, i know very little about this. I would be fine with any approach. What do others think here?

Unix ending works for me

On Dec 30, 2021, at 5:28 PM, Nicholas Sofroniew @.***> wrote:

Hmm, i know very little about this. I would be fine with any approach. What do others think here?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.

I'm also +1 on harmonising line endings. @Carreau do you think we should also add another pre-commit check so that we don't add any new such files by accident?

I'm also +1 on harmonising line endings. @Carreau do you think we should also add another pre-commit check so that we don't add any new such files by accident?

Nah, I don't think it's necessary. It's rare enough, I don't even know how it could have happen.
And if anything we might want to add a .gitattributes files asking git to aumatically do the CRLF to LF conversion I belive this is possible on a per-repository setting.


Adding a tutorial for getting started with wildfire mapping

Hi Ash,
Apologies for the long wait when it came to documenting my processes. My aim was to ease the use of getting started with good documentation so that future newcomers to the remote sensing space (such as myself) will be able to try out these technique right away without much barriers.
In this PR, I've added a tutorial on getting people started with Sentinel 2 and GOES-16/17 satellite data using images stored in in the Google Earth Engine Cloud bucket that users can access all from the notebook. There may be some complications with setting up a "Google Cloud" project or initializing the environment to run the notebook locally but I did my best to address these concerns either through the BC_Wildfire_Mapping.ipynb notebook itself or the README.md markdown file included in the tutorials folder.
As always, feel free to provide me with some feedback if there's an issue with one of my processes or you have suggestions to improve the code base.
Thanks,
-R

Making a last min change to the BC Wildfire Mapping notebook by including a tutorial on setting up a Google Earth Engine Cloud Project account a user run the notebook as intended.

Quick edit... Last one I promise.


New quest not firing starting message, reach location not recognizing/working. Other small errors.

Quests Version 3.4.0 (Nov. 5th build, have tried all others as well for 1.13+)
Made a new quest, everything was working fine, I noticed 'talk to npc' was broken on stage 3, so I then changed it to a destination objective, and still it does not recognize players in the destination and doesnt finish the objective. Small errors like this. I have deleted and re pasted the quest in the YML, which looks fine to me. here is a copy
No console errors, ive been testing to get one.
https://pastebin.com/yxLF8dec

So far in my testing, I've determined that the issue is delays. Removing the delays from the first two stages and restarting the quest resolves the issue. Will update when I discover exactly why that is.


Lokalise: Translations update

This pull request was initiated by Lokalise (user Agnieszka Galeza) at 2020-11-17 22:33:25

with a key: common::myOrgnisation
Switch account, get involved, change password


Leon B Lab Elevator Crash

Version
3.2.0 (c468b41)
Seed
R721-TZHN-XEVH30A6Z9R0002J0JW9C7U6XVZYFFBZYUBZYZZ41H1000TZZ
Scenario
RE 2 (Leon B)
Player Character
Leon (RE2)
What happened?
After the self destruct system is activated and you have to go and save Sherry in the security office, the game will crash in room 606 on the door loading screen for the elevator whilst carrying Sherry towards it.
NPC, music, item and enemy rando are active.
I've attached the log and a save before entering the security office.
Leon B_01_2024-01-04 15^27.56.zip
log_pl0.txt

So I disabled each randomised function one by one until I got past and oddly it was the randomised items function that was crashing it.

Duplicate of #769


SplashActivity and ReactActivity are the only Interactions being recorded

We're having an issue with a new RN app we published. Only two interactions are being logged:

<Stack.Navigator
    screenListeners={{
        focus: (e) => {
            nrInteraction(e.target?.split('-')[0] as string)
        }
    }}

If we put console.log() there, it logs just fine on each new React screen, so that call should be working. However, New Relic only shows those "SplashActivity" and "ReactActivity" which sounds like the agent is picking up Java calls only. What could be the problem?

I'm with the same problems


chore: update npm scripts and synth.py

Update npm scripts: add clean, prelint, prefix; make sure that lint and fix are set properly. Use post-process feature of synthtool.

release-please only uses synthtool for populating common templates, so I think we can get away with closing this.


Change package names

This pull request attempts to fix issue #105

Pull Request Test Coverage Report for Build 210

2 of 2 (100.0%)  changed or added relevant lines in 1 file are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 68.231%

Totals

Change from base Build 197:
0.0%

Covered Lines:
1585

Relevant Lines:
2323

💛  - Coveralls


Small internal tools cleanup

Description

Fix some paths in the package.json scripts for the build-tools package in its new location.
Fix comment in assert() call that got reverted to an interpolated string by mistake, and remove unnecessary eslint rule now that the comment is fixed.

@alexvy86 The 1.2 release doesn't have this change -- will there be issues with the assert unless we port this to the release branch and patch?

@alexvy86 The 1.2 release doesn't have this change -- will there be issues with the assert unless we port this to the release branch and patch?

@tylerbutler no, it'll be fine. The eslint rule you added will make sure that test-runtime-utils builds correctly, and policy-check won't complain if it runs because the interpolated string is already in a comment. No need to port this change.


ENH: filtering and apply_function for Raw

Adds low-pass, high-pass, and band-pass filtering to Raw. The filtering operations use the new Raw.apply_function interface, which enables efficient parallel application of functions to a subset of channels.
@agramfort: Since the analytic signal is complex, I haven't added an "apply_hilbert" function so far. At the moment, Raw._data remains float32 regardless of the data type the function returns. We could convert the data type of Raw._data if necessary, but it may then no longer be possible to save the Raw object to a fiff file (does fiff support complex raw files?). If saving to .fiff is no longer possible we could issue a waring.

This question has come up before (I asked Matti a month ago). Fiff
supports complex numbers; however, the mne compiled binaries do not, so
you would not be able to use it in mne_compute_raw_inverse (for
example). You would though be able to read an inverse solution into
MATLAB/OCTAVE/PYTHON and use the complex fiff file there. If you are
interested in adding this, you could add a warning at saving, and
possibly add (or have Matti add) a check with warning for the
appropriate compiled software.
D
Martin Luessi wrote:

Adds low-pass, high-pass, and band-pass filtering to Raw. The filtering operations use the new Raw.apply_function interface, which enables efficient parallel application of functions to a subset of channels.
@agramfort: Since the analytic signal is complex, I haven't added an "apply_hilbert" function so far. At the moment, Raw._data remains float32 regardless of the data type the function returns. We could convert the data type of Raw._data if necessary, but it may then no longer be possible to save the Raw object to a fiff file (does fiff support complex raw files?). If saving to .fiff is no longer possible we could issue a waring.
You can merge this Pull Request by running:
git pull https://github.com/mluessi/mne-python raw_apply
Or you can view, comment on it, or merge it online at:
https://github.com/mne-tools/mne-python/pull/27
-- Commit Summary --

ENH: filtering and apply_function for Raw

-- File Changes --
M doc/source/whats_new.rst (1)
M mne/fiff/raw.py (161)
M mne/fiff/tests/test_raw.py (32)
-- Patch Links --
https://github.com/mne-tools/mne-python/pull/27.patch
https://github.com/mne-tools/mne-python/pull/27.diff

Reply to this email directly or view it on GitHub:
https://github.com/mne-tools/mne-python/pull/27

Ok, I implemented reading/writing of complex raw files. It works but I still need to clean up the code a bit..

Apart from that that's great!

apart from this nitpicking I am super happy about this new feature !

Merged :)


GH-44513: [C++] Fix overflow issues for large build side in swiss join

Rationale for this change
#44513 triggers two distinct overflow issues within swiss join, both happening when the build side table contains large enough number of rows or distinct keys. (Cases at this extent of hash join build side are rather rare, so we haven't seen them reported until now):

The first issue is, our swiss table implementation takes the higher N bits of 32-bit hash value as the index to a buffer storing "block"s (a block contains 8 key - in some code also referred to as "group" - ids). This N-bit number is further multiplied by the size of a block, which is also related to N. The N in the case of #44513 is 26 and a block takes 40 bytes. So the multiply is possible to produce a number over 1 << 31 (negative when interpreted as signed 32bit). In our AVX2 specialization of accessing the block buffer https://github.com/apache/arrow/blob/0a00e25f2f6fb927fb555b69038d0be9b9d9f265/cpp/src/arrow/compute/key_map_internal_avx2.cc#L404 , the issue like https://github.com/apache/arrow/issues/41813#issuecomment-2168286330 shows up. This is the actual issue that directly produced the segfault in #44513.
The other issue is, we take 7 bits of the 32-bit hash value after N as a "stamp" (to quick fail the hash comparison). But when N is greater than 25, some arithmetic code like https://github.com/apache/arrow/blob/0a00e25f2f6fb927fb555b69038d0be9b9d9f265/cpp/src/arrow/compute/key_map_internal.cc#L397 (bits_hash_ is constexpr 32, log_blocks_ is N, bits_stamp_ is constexpr 7, this is to retrieve the stamp from a hash) produces hash >> -1 aka hash >> 0xFFFFFFFF aka hash >> 31 (the heading 1s are trimmed) then the stamp value is wrong and results in false-mismatched rows. This is the reason of my false positive run in https://github.com/apache/arrow/issues/44513#issuecomment-2556438531 .

What changes are included in this PR?
For issue 1, use 64-bit index gather intrinsic to avoid the offset overflow.
For issue 2, do not right-shift the hash if N + 7 >= 32. This is actually allowing the bits overlapping between block id (the N bits) and stamp (the 7 bits). Though this may introduce more false-positive hash comparisons (thus worsen the performance), I think this is still more reasonable than brutally failing for N > 25. I introduce two members bits_shift_for_block_and_stamp_ and bits_shift_for_block_, which are derived from log_blocks_ - esp. set to 0 and 32 - N when N + 7 >= 32, this is to avoid branching like if (log_blocks_ + bits_stamp_ > bits_hash_) in tight loops.

Are these changes tested?
The fix is manually tested with the original case in my local. (I do have a concrete C++ UT to verify the fix but it requires too much resource and runs for too long time so it impractical to run in any reasonable CI environment.)

Are there any user-facing changes?
None.

GitHub Issue: #44513

Hi @pitrou , would you help to take a look? Thanks.


Remove cmake build

Description
Other projects can now consume ebpf-for-windows in binary form, using either nuget or MSI install.  We no longer need to build ebpf-for-windows both ways, so removing the cmake build to free up build resources and reduce the development cost of maintaining both msbuild and cmake builds.
Fixes #2743
Testing
Covered by existing tests.
Documentation
Updated.
Installation
No impact.

I think we will need to update the required checks for the main branch before this can be merged. Currently cmake / build (Debug) and cmake / build (Release) are marked as required checks, hence CICD is not moving to success state.


Fixing issue #366

realPath property is not automatically populated as I believe it once was. So instead using the method getRealPathSync to get the same result.

This fix worked for me when I implemented it.


confusing comments in src\model\account\Address.d.ts

/**
 * Create from private key
 * @param publicKey - The account **private** key.
 * @param networkType - The NEM network type.
 * @returns {Address}
 */
static createFromPublicKey(publicKey: string, networkType: NetworkType): Address;

Create from private key
@param publicKey - The account private key.
so is it the public key or private key?

Thanks for reporting the bug. It should be:

@param publicKey - The account public key.

Could you please report it under nem2-sdk-typescript-javascript repository? nem2-sdk-typescript-javascript
Related file: https://github.com/nemtech/nem2-sdk-typescript-javascript/blob/master/src/model/account/Address.ts


I can see a team as a guest in web Teams, but desktop app doesn't show that team at all

I was invited to a team as a guest, as a result I can see that team in my teams, but only in the web, when Iam on the desktop app(or the mobile app) I can't see the team i was invited into.
Ask me if you need more information.

@GauntStrelok - Could you please confirm if  you have  switched to the tenant where you were added as a guest?

Yeah, I didn't, so i will close this.
Now I found the way to change the tenant and to change to the other teams tenant, but the strange thing was that i was able to join the other team in my own tenant on the web...
Doesn't matter.


Not compatible with PNPM

I'm encountering this issue when switching from yarn to pnpm:
https://nextjs.org/docs/messages/module-not-found
wait  - compiling...
error - ./node_modules/.pnpm/registry.npmmirror.com+next-export-i18n@2.0.3_c0abbb53577d424fe320649841fdc7d4/node_modules/next-export-i18n/index.js:5:0
Module not found: Can't resolve './../../i18n/index.js'

By reading the source code, the issue is that next-export-i18n assumed it would always be located as <project_folder>/node_modules/next-export-i18n. This is no longer true with pnpm, as it utilized the hard link feature so next-export-18n would be in another location.
I'm still investigating pnpm whether there is solution to make certain package as an exception. No clue yet...

Hey!
Thank you for your contribution. Unfortunately, I never used pnpm. I need to investigate this as well...
Cheers!

Thanks for your reply.
One possible solution you can consider is to pass the config object during the initialization, comparing to current implementation this could eliminate the assumption of the file naming and location.
Thanks for your great project.

Hey!
Planning to implement this in the next release.
If you like, you can also raise a pull request :)
Cheers!

Great. Looking forward to that.

Hey, looks like the expectation of locale folder location makes it incompatible with the monorepo setup as well, where you have the i18 folder not in ./../../i18n/index.js, but in ./../../apps/consumer-app/i18n/.
The compat fix for pnpm would probably make this problem go away. As @hughlv noted, hardcoding the config path is probably a bit dangerous. Any chance you found a workaround?

@hughlv hey, im also experiencing that with pnpm
the solutions is you can patch package with pnpm patch https://pnpm.io/cli/patch and set
var I18N = require('./../../i18n/index.js'); path as you want.
for me i've had to add few extra "parent paths" ../

I also met this issue, :(

Any updates?

@martinkr we are using pnpm as well. This makes it impossible for us to work with this package, sad.

Hi @SalahAdDin,
I appreciate your interest in this package. Unfortunately, I don't use ppm in my projects. Hence, I need to gain practical experience with this package manager's concepts.
If you would consider adding Pnpm support, I would happily merge your PR for the next release.
Looking forward to your PR,
Martin

@hughlv hey, im also experiencing that with pnpm the solutions is you can patch package with pnpm patch https://pnpm.io/cli/patch and set var I18N = require('./../../i18n/index.js'); path as you want. for me i've had to add few extra "parent paths" ../

it would be good then to update the package to use aliases...

Hi @SalahAdDin,
Would you consider providing a set of instruction of how to achieve pnpm compatibility? In the Code Snippet, we're referring specific version numbers, hence it would not be feasible to add this snippet directly to the codebase.
Thank you for your contribution!
Cheers!

Hi @SalahAdDin,
Would you consider providing a set of instruction of how to achieve pnpm compatibility? In the Code Snippet, we're referring specific version numbers, hence it would not be feasible to add this snippet directly to the codebase.
Thank you for your contribution!
Cheers!

It was @JimmyLv who made the patch.


Scrolling up with the mouse or trackpad is often unresponsive, and well takes the page back

Scrolling up with the mouse or trackpad is often unresponsive, and well takes the page back.
non-live cd
VirtualPC and physical machine.

https://hellosystem.github.io/docs/user/getting-started.html#virtualization-environments ;-)


web site on phone

I set this up to activate notification on my android phone.  Do I have to keep a web browser up and logged into pushstaw web site constantly on the phone in order for this to work or am I missing something?

You should have an account and be logged in your device browser.
The channel you wish to subscribe to notifications you should click the "Subscribe" button which is located in the channel top right of the channel page.

ok, thank you


fix(sec): upgrade org.apache.kafka:kafka-clients to 3.4.0

What happened？
There are 1 security vulnerabilities found in org.apache.kafka:kafka-clients 2.8.1

CVE-2023-25194

What did I do？
Upgrade org.apache.kafka:kafka-clients from 2.8.1 to 3.4.0 for vulnerability fix
What did you expect to happen？
Ideally, no insecure libs should be used.
The specification of the pull request
PR Specification from OSCS

You need to

Update changes.md by following the original PR template. I don't know why you removed all.
You need to pass the license dependencies check locally, ref https://github.com/apache/skywalking/blob/master/.github/workflows/skywalking.yaml#L79. License file should be updated according to the latest libs.

This PR is from a bot or at least hybrid human-bot. (This pull request is created by https://www.oscs1024.com/ 's auto creation tool)

We don't accept this kind of PR unless there are ccla and pmc approval.


Performance enhancement feature: Item groups

Introduces an "item group" feature that can potentially improve performance for certain use cases of this library.
Motivation
In some cases the collection you pass to a VirtualCollection might contain logically separate types of items that change at different rates. For example, in my case I use VirtualCollection to represent a 2D cartesian grid-space, with two types of objects used in the collection:

grid tiles
grid items

Grid items are arbitrary objects displayed on the grid. These are passed to the grid as props and so depend entirely on the application consuming my library. The collection of grid items may change frequently. On the other hand, grid tiles are controlled entirely by my grid library and only need to be changed ("regenerated") when the grid is resized.
As vue-virtual-collection currently treats all items in the collection equally, it will invoke cellSizeAndPositionGetter, register cells, etc. for every single item in the collection whenever a single item changes. Consider a case where a 100x100 grid is created and 10 grid items are placed on it. If a single grid item changes, VirtualCollection will perform this procedure for all 10,000 tiles and 10 grid items even though only a single grid item has changed.
However, with the concept of "item groups" I can pass grid tiles and grid items to VirtualCollection as separate groups, and when an item changes VirtualCollection will only process the group that contains that item. In this scenario, when a grid item changes it cuts the number of elements operated on from 10,010 to just 10, a reduction of ~99.9%. This can help significantly improve performance.
Implementation
Clients of this library can opt-in to using groups by passing an array of objects with the form { group: [...] }, where [...] represents the items of the collection belonging to a specific group. In the scenario given above, :collection="[...tiles, ...items]" would get replaced with :collection="[ { group: [] }, { group: [] } ]", where the first array would be updated to contain the tiles and the second to contain the grid items.
Internally, VirtualCollection creates separate watchers for each group in the collection, so that any changes that are limited to a specific group of items will only cause the watcher for that group to fire.
This feature does not present breaking changes - it is still possible to pass a flat array of items to :collection, in which case it gets wrapped as a single group. This means that all existing usages of the library should work as before, without significant changes in performance. I have confirmed this is the case with my library, and all existing unit tests continue to pass.
Benchmarks
Below is a comparison of the performance changes introduced for a demo project based on my grid library, which in turn depends on vue-virtual-collection. The profiles shown below were captured in Chrome devtools on a mid-2014 MacBook Pro running macOS High Sierra 10.13.5. For both profiles, I keep the grid stationary (so that tiles don't regenerate), so that only the grid items change.
Over the course of a second, I observe a reduction in scripting time from 191.4ms to 107.5 ms, a ~44% decrease.
Without Item Grouping

With Item Grouping

Not sure why but the tests are failing during the CI build. They pass on my machine using identical versions of nvm, npm and node.

Sorry for my delay😔. I will review this PR today and try to fix the tests.
Thanks a lot!

The broken test seems a little bit flaky and it can be reproduced on linux.
I will merge this PR after fixing the flaky test.

@starkwang Cheers, glad you could test it on your machine to help narrow down where the issue lies.

And sure, I'll create the documentation later on today or this weekend.

Before this gets merged, would you me to commit the stuff under dist/?
https://prnt.sc/kc4owd

@TAGC Thanks for contribution!
You don't need to commit the stuff under dist/. They will be build automatically before publishing the new version of npm package.


Seems like unity no longer allows personal license activations with manual process

https://docs.unity3d.com/Manual/ManualActivationGuide.html

At the moment, you can make use of it by removing the element with style="display:none;".
However, its availability is uncertain for the future.

 I was tried in finding how to crack it.  I follow you. thank you so much

At the moment, you can make use of it by removing the element with style="display:none;". However, its availability is uncertain for the future.

Doesnt seem to work anymore unfortunatley

I was able to get licensing working for both pro and personal through the licensing client directly.
https://github.com/RageAgainstThePixel/activate-unity-license

Wow, the time has finally come.
@StephenHodgson , Thank for your work!

Wow, the time has finally come.
@StephenHodgson , Thank for your work!

Thank you @mob-sakai ! Love your work too.

woa, thank you for the program!! it worked for the personal license for unity 4 :D


Disconnection Issue and Credentials Not Passed to GetReconnectUriAsync

Description:
I encountered an issue while subscribing to account updates using the WebSocket client. The stream was created successfully, and the connection was established, but after a disconnection, the connection was not restored automatically.
Here is the code I used:
var apiCredentials = GetApiCredentials();

var socketClient = new MexcSocketClient();
socketClient.SetApiCredentials(apiCredentials);

var rest = new MexcRestClient();
rest.SpotApi.SetApiCredentials(apiCredentials);

var request = await rest.SpotApi.Account.StartUserStreamAsync(cancellationToken);

var listenKey = request.Data;
await socketClient.SpotApi.SubscribeToAccountUpdatesAsync(
    listenKey,
    OnUpdateGet,
    cancellationToken);

Issue:
Upon debugging, I found that the issue lies in the function MexcSocketClientSpotApi.GetReconnectUriAsync. Inside this function, ApiCredentials is null, leading to failure in reconnection.
Workaround:
I managed to fix the issue by passing credentials directly via the constructor. This approach works, as shown below:
var apiCredentials = GetApiCredentials();

var socketClient = new MexcSocketClient(options =>
{
    options.ApiCredentials = apiCredentials;
});

var rest = new MexcRestClient(options =>
{
    options.ApiCredentials = apiCredentials;
});

var request = await rest.SpotApi.Account.StartUserStreamAsync(cancellationToken);

var listenKey = request.Data;
await socketClient.SpotApi.SubscribeToAccountUpdatesAsync(
    listenKey,
    OnUpdateGet,
    cancellationToken);

Additional question:
I have an additional question: how can I handle the listenKey after a reconnection? If the key becomes invalid after reconnecting, and a new listenKey is updated internally by the library, how can I obtain the new one to keep it alive?
Thanks for your help!

Hi, I have a fix for this pending, but it'll be included in a later release. For now the work around you found should work correctly.
As for the additional question that should be answered in your other issue #17

Thanks for your help!


[incubator/elasticsearch-curator] include annotations only when non e…

What this PR does / why we need it:
does not include annotations when not present in the overrides
Special notes for your reviewer:

[x ] DCO signed

@tmestdagh @gianrubio

/ok-to-test

@gianrubio
@tmestdagh
can we merge this?

/ok-to-test
/lgtm

/ok-to-test
/lgtm

/retest


Bug: enabling hooks does not persist the checkbox

If I check a new hook

and then press Apply, the checkbox disappears

I don't see anything in preferences.ini, either after Apply or OK is pressed in the dialog.

Confirmed this on the latest code in main on macOS.

It seems to be tightly coupled with https://github.com/markfinal/cruiz/issues/168

Also fixed


Using media response finished to play another mp3

Hello, I have a skill on Amazon Alexa that I'm now attempting to port over to actions on google. At the core of my skill, I'm using the audio player to continuously play mp3 files back-to-back. When one mp3 is about to finish, I enqueue the next one. Playback continues until the user pauses or stops the audio player or logs out from my skill.
I'm wondering if this is possible with actions on google. It looks like from #103 I currently need to interrupt the smooth flow from mp3-to-mp3 with some sort of simple response. That is not ideal, but it is not a deal breaker.
Two questions I have that I couldn't find here or in the documentation:

Is there a minimum length of audio I can play in a media response?
Can I respond to actions.intent.MEDIA_STATUS where the status is FINISHED with another media response? This will keep my playback going as I described above.

Do note tough that you need to keep the conversation open by using conv.ask(). Otherwise you will not receive the MEDIA_STATUS event when the audio has finished playing. By keeping the conversation open the user will not be able to use system commands like raising or lowering the volume, or set a timer, etc. I have reported this issue several times to Google via partner support but thus far this issue hasn't been fixed.

@BoneGoat if the conversation is open, the user cannot use system command, but can they invoke intents in my action while the audio is looping?

@CoreyCole Yes.

Due to more than 4 months of inactivity, this issue is being closed.
If you think the resolution is in error, please re-open the request with fresh information.


Training Multiple epoch

Hi team,
I wanted to know that is it possible to train the model using 2 parallel epoch process ?
For example in one bash process I might have epoch 2 going on for whole 64k iterations and I would like to start a new bash process with epoch 3.
Is it possible ? or each epoch depends on model from previous epoch ?

Hi,
I'm not sure I understand the use case. What would you do with the two trained models?

I wanted to speed up the process.
My server is AWS g2.2xLarge instance but takes a day to complete one epoch.
So I thought this might be the way to speed up the process.
Can you please share any other ideas if you have .?

Neural network optimization is a sequential process. You could instead:

use multiple GPUs
come up with a clever mix of data sampling and learning rate decay strategy
reduce your model size

Thanks @guillaumekln.
A bit new to ML and Neural Networks.
Thanks for your help though.
I will close this issue for now 😊

Hi @guillaumekln
One quick question,
For a training on a given epoch number 'x', which previous epochs does it use for sequential process ?

Hi @raju249
The model is continuously updated for each epoch. You can observe the perplexity of the model changing with each epoch; this is due to the weights and parameters being updated by the errors/information learnt from the iterations so far. So if yo observe that at some epoch n your model has the lowest/desirably low perplexity, you might choose to stop the training and use this as your baseline model on the test set.
tl;dr the model is made up from all the previous epochs, and not just the immediate previous epoch

Thanks @shahbazsyed

Can you explain me what exactly is perplexity ? @shahbazsyed

@raju249 Perplexity can be intuitively seen as the difference between two probability distributions. In the case of NMT you have two distributions for two languages (e.g English -> German). As the model learns, it tries to minimize the distance/ difference between these two distributions, which ultimately allow it to give out accurate/nearly accurate translations in the test phase.
You can see the perplexity between your source and targets being continuously logged in the training phase. The hope is it gradually decreases with every epoch.

Thanks a lot @shahbazsyed


Hyper convection lathe buff

About the PR

i don't fear god
30% cost reduction => 50% cost reduction
Why / Balance

It's a bit underpowered considering you have to build an atmos setup around it for it to not explode around you.
There's a possibility of production exploits with this, but the fact that it is quite dangerous makes them really not a huge issue. You'd be printing on small margins at the cost of superheating everything around you.
Media

[x] I have added screenshots/videos to this PR showcasing its changes ingame, or this PR does not require an ingame showcase

Changelog

:cl:

tweak: Increased material discount of hyper convection protolathes and hyper convection  autolathes to 50%

if you say so boss


Auth service documentation is incorrect in JS section

Currently in Sign-in sections in Auth, the creation of an instance of Auth is suggested to be done in the following way:
var auth = WeDeploy.auth();
Instead, it should be var auth = WeDeploy.auth('http://<serviceID>.<projectID>.wedeploy.io');, as properly written currently in Getting started page.
The problem is in this scenario:

Developer initializes data service, for example var auth = WeDeploy.data('http://<serviceID>.<projectID>.wedeploy.io');
Then he visits the documentation page and reads he has to do var auth = WeDeploy.auth();
He does it and when he tries to execute some operation, for example to create an user, a request to the data service will be made, instead to the auth service, for example: http://data.test.wedeploy.io/users. If users collection doesn't exist (and it doesn't by default), the developer receives 404 page.

You're right, thanks a lot for sending this PR @ipeychev!


Update README.md with useful links

This includes all useful links and unofficial game resources that are
listed in the sidebar of /r/d3planner.

Thanks :)


🎮 Game Request
Game logic and basic description
A "Doppelkopf" card game - in your browser ♣♠♥♦
Point down the features
Game points
Select program in which you are contributing
GSSoC23
Code of Conduct

[X] I follow CONTRIBUTING GUIDELINE of this project.

/assign

Hey @Killer2OP !
Thank you for raising an issue 💗
You can self assign the issue by commenting /assign in comment 😀
Make sure you follow CODE OF CONDUCT and CONTRIBUTING GUIDELINES 🚀
Don’t Forget to ⭐ our GameZone🎮
Make sure you join our Discord🕹

Hey @Killer2OP ! Thank you so much for your raising the issue💗
It’s all yours, you can come anytime again and make some contributions! 🚀
Alone, we can do little, but together we can do so much! 😇


(Feature Request) Host the GTDB r214.1 skani database

I'm following along on the tutorial here:
https://github.com/bluenote-1577/skani/wiki/Tutorial:-setting-up-the-GTDB-genome-database-to-search-against
I noticed that your other tool Sylph has a few databases built here:
https://github.com/bluenote-1577/sylph/wiki/Pre‐built-databases
Would it be possible to host the Skani versions of these datasets as well?  In particular, the GTDB r214.1.
Regarding your note here:

This workflow is magnitudes faster than GTDB-tk, a classification tool associated to the GTDB. However, GTDB-tk is much more sensitive if your assembled genome has no direct species representative in the database. Furthermore, skani does not put the genome on a tree.

Have  you looked into any ANI thresholds that could be used to suggest novel species, genus, family, etc? For example, < 95% might be new species within the genus? Or is this too speculative here.

Hi @jolespin,
I could consider it. The issue is that skani's sketched databases are quite big; I forget the size of skani's GTDB-R214 sketch but it's much larger than sylph's. I'll leave this up and if a lot of other people request it, I could consider it.

Have you looked into any ANI thresholds that could be used to suggest novel species, genus, family, etc? For example, < 95% might be new species within the genus? Or is this too speculative here.

Skani works above ~80%. I don't have a reference right now, but 80-95% should always be genus level similarity, I believe. So yeah, you could use it to do genus-level annotation too. However, two genomes can have < 80% ANI from the same genera, I think.

I was thinking about setting a low threshold like 50% and then running some tests to see if I could set some thresholds for different taxonomic levels but if Skani won't work w/ ANI < 80% then I might need to only focus on genus and species level.

Hi @bluenote-1577,
thank you for this excellent tool, great work!
I just setup the GTBD-R214 sketch database, so regarding your comment:

I could consider it. The issue is that skani's sketched databases are quite big; I forget the size of skani's GTDB-R214 sketch but it's much larger than sylph's. I'll leave this up and if a lot of other people request it, I'll put a copy up.

the GTBD-R214 sketch database directory is ~51GB (~23GB as tar.gz or ~19GB as tar.xz).
It would be great if the sketch database versions were made available for download

Hi all,
Thanks for the feedback. I didn't realize the compression would be this good. I have updated the R214 sketch as a tar.gz file at https://storage.googleapis.com/skani_files/skani-gtdb-r214-sketch-v0.2.tar.gz now. I'll update the tutorials accordingly.

https://github.com/bluenote-1577/skani/wiki/Pre‐sketched-databases see here for info. I'll think about adding more databases/settings as things come up...

Thanks @bluenote-1577 , that is great!
Just a small request, is it possible to also provide a checksums file for verification of a successful download? Much appreciated 👍


user.saveOAuthUserProfile method in passport strategies

Hi! I can't find saveOAuthUserProfile in user model or controller.

Hi, this is just a demo project. I didn't integrate Google, or Facebook authentication. I recommend you check passport docs. They have pretty good and recent examples, that show you how to do it.


Adapt airtight.js to be used in both front- and back-end

In order to make this useful for front-end tests, make assert library optional.

Currently, because it has to import the assert library from Node, it only works in Node projects. I'd like to make it portable and usable basically anywhere. This would probably be accomplished by writing my own assert, assert_eq, and assert_neq functions.


Merging Develop into Master 12.17.2018 - billing page updates

Description of the change:
Reason for the change:
Link to original source:

Closes #

Hello @ksigler7,Thanks again for the PR! We appreciate your contribution and look forward to                                              continued collaboration. Thanks!                                             Team SendGrid DX


Add license.

Forgot to include license.txt.  This project is MIT licensed.

Added in 6e1e27d45a127b040743f3b1506c6cce9b9e46ad.


[CBR-481] Implement OBFT block validation

Description
Implementation of block validation, both strict and lenient, for the OBFT era.
Since OBFT ObftLenient validation is able to validate blocks from the Original era, I've decided to raise this PR before the implementation of OBFT block generation as it could serve as a pretty good test for whether lenient validation operates as expected.
After this change, the node should actually create and verify blocks as per usual even while in the OBFT ObftLenient era. However, we should expect block validation to fail during the OBFT ObftStrict era since this form of validation expects slot leaders to follow the strict round-robin schedule.
Linked issues
https://iohk.myjetbrains.com/youtrack/issue/CBR-481
Type of change

[~] 🐞 Bug fix (non-breaking change which fixes an issue)
[~] 🛠 New feature (non-breaking change which adds functionality)
[x] ⚠ Breaking change (fix or feature that would cause existing functionality to change)
[~] 🏭 Refactoring that does not change existing functionality but does improve things like code readability, structure etc
[~] 🔨 New or improved tests for existing code
[~] ⛑ git-flow chore (backport, hotfix, etc)

Developer checklist

[x] I have read the style guide document, and my code follows the code style of this project.
[x] If my code deals with exceptions, it follows the guidelines.
[x] I have updated any documentation accordingly, if needed. Documentation changes can be reflected in opening a PR on cardanodocs.com, amending the inline Haddock comments, any relevant README file or one of the document listed in the docs directory.
[x] CHANGELOG entry has been added and is linked to the correct PR on GitHub.

Testing checklist

[x] I have added tests to cover my changes.
[x] All new and existing tests passed.

bors r+


Delivery: Overload instead of @Nullable

At the moment its (=Delivery) split function takes two Action2 parameters: One for onNext the other for onError.
If you are not interested in onError you can pass null to that. (do I understand correctly?)
I want to propose to add a simple overload:
public void split(Action2<View, T> onNext) {
    split(onNext, null);
}

This would make it clearer and more consistent to RxJava. I generally don't like to study the javadoc of each method to find out what happens when I pass null and find that approach quite error prone.

There is already a such method:
https://github.com/konmik/nucleus/blob/master/nucleus/src/main/java/nucleus/presenter/RxPresenter.java#L263

Damn, I have serious problems understanding on what is going on here.
I have a subject emitting longs. Normally I just subscribe to it and get a long in the subscription.
But when I use deliverLatestCache, I get a Delivery <MyView, Long>
Now I need that long. Therefore I need to call delivery.split( f2completed, f2error ).
The split you referred is not in the Delivery class.
prettyLongSubject
    .observeOn(AndroidSchedulers.mainThread())
    .compose(this.deliverLatestCache<Long>())
    .subscribe {delivery : Delivery<BookShelfFragment, Long> ->

    }

There are two splits - they are handy for different cases. First one is Delivery.split and another is RxPresenter.split.
You may probably need to use RxPresenter.split inside of subscribe, this is the common case. Just write something like
.subscribe(split(
(view, loong) -> view.onLongReceived(loong)
));

I can't help you with Kotlin here, but as far as I know, it should have even better generics support than Java.

Great, thanks!
It would be great to see all these "common cases" in the readme or wiki. Would help to get started!


Handle non-existent lib directory in cleanup step

The Remove Libs from build cleanup step in the CI workflow fails intermittently with find: lib: No such file or directory but succeeds after a few manual reruns, we should make the step more resilient to handle cases when the directory doesn't exist.
https://github.com/boostorg/website-v2-docs/blob/65ab98c42492b539ddb2fcefe4ff65953c21e710/.github/workflows/publish.yml#L143-L149

The step prior to Remove Libs is Build Libs , which runs ./libdoc.sh
In ./libdoc.sh near the top, right after the initial comments, add:
set -xe
The -x displays each step.
The -e exits on error.
Check that in with commit message such as  "libdoc.sh: set -e"


python3Packages.langchain: 0.0.201 -> 0.0.207; python3Packages.langchainplus-sdk: 0.0.10 -> 0.0.16

Description of changes
Diff: https://github.com/hwchase17/langchain/compare/refs/tags/v0.0.201...v0.0.207
Changelog: https://github.com/hwchase17/langchain/releases/tag/v0.0.207

Things done

Built on platform(s)

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

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

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

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

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

[x] Fits CONTRIBUTING.md.

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

6 packages built:

python310Packages.langchain
python310Packages.langchain.dist
python310Packages.langchainplus-sdk
python310Packages.langchainplus-sdk.dist
python311Packages.langchainplus-sdk
python311Packages.langchainplus-sdk.dist

@ofborg  build python310Packages.langchain


APC popping is mid

Pros:

Need to think on reconnecting cables (as much of a hassle as fixing power is RN).
Less signal spam.

Cons:

Shitters can easily connect LV cables together and suddenly pop the entire station (even stronger than cable cutting).

It seems to cause more trouble than it's worth for gameplay and IMO should be removed.

Relevant pr is https://github.com/space-wizards/space-station-14/pull/16903

Rage cages easily and consistently pop beakers which is annoying because people see that and still keep it powered anyways. Engi fixes it just for it to happen 5 seconds later again

So I agree it’s mid and can cause many issues long term and short term too easily for just getting a stack of Lvs

Inclined to agree, it's really mid and just... doesn't work well currently, not with what can and can't be done, or with some people within the playerbase (namely shitters).
I remember some shifts ago, I accidentally punched an LV wire at the maints in Omega station, and that alone made an APC pop, which felt... kinda dumb, unsure if it was intended or not, but it just made me stare at the screen for a few moments.

pro ideas:

making breaker pops automatically turn back on after a few seconds
making shocking ignore breaker somehow which would make rage cage and budget testing no longer troll apcs at all

pro ideas:
making breaker pops automatically turn back on after a few seconds
making shocking ignore breaker somehow which would make rage cage and budget testing no longer troll apcs at all

Won't that just keep cycling if it's over power

Real life breakers don't pop instantly, do that for the shocking thing.

shouldnt multiple APCs on one net split the load or something, so it doesnt giga overload everything

yeah im not sure how to do it but if it divided supply by number of apcs on the network it would fix that

in general i think apcs being unable to be turned back on by non engineers is just annoying and doesnt lead to any fun or interesting gameplay

in general i think apcs being unable to be turned back on by non engineers is just annoying and doesnt lead to any fun or interesting gameplay

I'm fine with the ss13 style:

Need ID to unlock it.
AI can adjust it.

No popping.

Maybe just need AI to make switches flipped easier (though that detracts from engi gameplay).


ci : add code coverage

Codecov Report

:exclamation: No coverage uploaded for pull request base (master@e7724fd). Click here to learn what that means.
The diff coverage is n/a.

@@            Coverage Diff            @@
##             master     #128   +/-   ##
=========================================
  Coverage          ?   30.87%
=========================================
  Files             ?        5
  Lines             ?      907
  Branches          ?        0
=========================================
  Hits              ?      280
  Misses            ?      614
  Partials          ?       13

Continue to review full report at Codecov.

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

commit MERGED in pull request #132


auto version, build docker image, push and release on dockerhub

This repo lack any CI/CD scripts to build Docker images on tag and create a new release.
Should we use Circle-Ci or Github actions ?
Which Docker Hub registry should we use ?
This is to be done:

[x] build images on repo tag
[x] push images to Docker Registry
[x] generate a release

Docker Images and Release build and publish when a tag is like v<.*> is created
Images are at microservicesdemomesh/<micro-service>:<tagname> .  (ex: microservicesdemomesh/shippingservice:v0.1.4)


[docs] Logo does not display pointer cursor on hover for better UX

Steps to reproduce
Link to live example: (required)
Steps:

Go to the MUI website. Mui

Hover your mouse over the logo at the top of the page.

Observe the cursor behavior.

Current behavior
When hovering over the logo, the cursor remains the default (arrow) instead of changing to a pointer, even though clicking on the logo navigates to the homepage. This can cause confusion for users, as there is no clear indication that the logo is clickable.
Expected behavior
When hovering over the logo, the cursor should change to a pointer (cursor: pointer) to indicate it's clickable and leads back to the homepage. This provides a clearer visual cue for users.
Context
I am aiming to improve the user experience by providing a clear, standard visual cue that the logo is clickable. This aligns with common web practices where clickable elements (especially logos leading to homepages) show a pointer cursor on hover. It would enhance clarity and consistency for users navigating the website.

  Output from `npx @mui/envinfo` goes here.

Search keywords: Logo hover cursor

Hi @mnajdova ,
I'd like to work on this fix if it's approved. Could you please assign it to me?
Thank you!

@Asin-Junior-Honore sure, feel free to open a PR :)

Hey @mnajdova 👋
I have just opened a  PR. Kindly review it at your earliest convenience. Thanks! 🙂


[Grid] Browser incompatibility in IE 11

[x] I have searched the issues of this repository and believe that this is not a duplicate.

Environment

Tech
Version

Material-UI
1.0.0-beta.18

React
15.6.2

browser
IE 11, Chrome, Firefox

I confirm, I have created a codesandbox: https://codesandbox.io/s/74v3yll34q.

IE11 has some know limitation with flexbox and flex-direction column. So, the best workaround is to use direction="row". It's working great with such change: https://csb-74v3yll34q-thyspaslmb.now.sh/.
We do our best to support IE11 but it's not a priority. If you find a better solution let us know :).

Thanks for confirming the bug!
While I understand that IE11 is not a priority, I strongly believe that we shouldn't close the bug without a fix as many corporates still rely on IE everyday.
I am not an expert at CSS and finding work-arounds but I found https://goo.gl/TbvUGE, https://goo.gl/7gZACg and https://goo.gl/5UXMD7.
May be they can help?

@NiyatiAardhy Our implementation of the Grid component is very close to the Bootstrap. Actually, it was used as a starting point. We are already using the Bootstrap fix you shared:
https://github.com/callemall/material-ui/blob/8e15b3a0bc0df02f24f61e2e12b8b2fe8ac63d40/src/Grid/Grid.js#L50


Error when downloading part two

Correct! Downloading part two...
no implicit conversion of nil into String

I think I had this before, and downgraded to a pretty old version. Today I reinstalled everything, deleted all DBs and caches, and the issue is back.

.meta remains unchanged:
dir=>DAY
user=>main
year=>2016
day=>10
part=>1

Confirmed same issue as #9, it wasn't fixed

I already ran -r after upgrading. I tried again just now, resulting in:
aoc -r
- Updating puzzle...
No such file or directory @ rb_sysopen - /Users/user/.cache/aoc-cli/main/2016/10/input

The directory for 2016/10 was created with this installation of aoc-cli though. So refreshing shouldn't be needed

I've noticed similar bugs recently - I have a feeling that something must have changed server side that has broken the parser. When I have time I will get round to this, but I am super tied up at the moment - I am happy to accept a PR :)

It's most definitely not server-side, since the issues popped up when updating the cli. I've never written or read ruby code but I'll give it a shot!

I believe this is just a case of updating your cookie in your config file. There are two new fields required under the heading _gid and _ga. If you find your cookie string again and copy and paste this value into your config it should work - if it does I will update the readme

Seems like that's it!


[Integration] Add a Twemproxy integration

Add the bare minimum for the build process to work properly.
Missing metadata, readme, and more

@tmichelet I'll be rebasing this to fit with the SDK testing/scaffolding structure - should just be plug and play.

moved to "integrations-extra"


Reversing of array

->REVERSING OF ARRAY
create a file reversing of array.cpp in  which I code 2 methods of reversing any array -->

reverse1--->reversing any array with the help of auxilliary array in this method first we will copy the elements of first array in auxilliary array in reverse order and then again copying the elements of auxilliary array to main array this will reverse our main array.
reverse2-->with the help of two pointers high and low, low will iterate from left to right while high will iterate form right to left until low<high and swapping the high index element with low index element this will reverse our main array.
I code above 2 methods with proper comments and mention  time complexity which is O(n) and space complexity which is O(n) in reverse1 and O(1) in reverse2.

Related Issue
close #498
Proposed Changes

Create a reversing of array.cpp file
update README.md  accordingly and mention about my file in README.md with some test cases and discuss about the algorithm of  both methods of reversing any array i.e. reverse1 and reverse2.

Checklist

[x] ✅ My code follows the code style of this project.
[x] 📝 My change requires a change to the README.
[x] 🎀 I have updated the README accordingly.
[x] 👀 I have read the CONTRIBUTING document.
[x] ✨ I have added tests to cover my changes.
[x] 🚩 All new and existing tests passed.
[x] 🌟 ed the repo

Output Screenshots
code image 1

code image 2

input:

output:

Make sure your Pull Request is descriptive and complete the checklist .
I would recommend you to go through this tutorial video of the project here ,thanks.
///------------------Description -----------------------///
For contribution and more guidelines i would recommend you to go through this
tutorial video of the project here, thanks.
///------------------Description -----------------------///
Let me show you how to check the check list , there should be no space inside brackets like [x]
[x]

[x] Checklist
[ ] Or you can just check them from outside without doing any of these
[x] ✨ I have added tests to cover my changes.
[x] 🚩 All new and existing tests passed.
[ ] 🌟 ed the repo

Starr the repo if you haven't !
Have you watched this video ?

///----------------------PR README --------------------///
You need to follow particular guidelines for your README , please follow
these guidelines click here
also you can see how your README should look like see here
for more please go through these here

conflict resolved👍

readme updated👍

updated👍

Updated👍

I updated everything you said but now  what should I do now like what I have to do to correct it?
can you help me please?

You can make a fresh new pr then ! And just add your content instead of deleting other's content

you mean separate pr  only for readme of reversing-of-array?

close this pr and make a new one with same commits ! Just dont delete the content of whole readme file !


wlan0 not detecting

Windows Build Number
Microsoft Windows [Version 10.0.19042.928]
WSL Version

[X] WSL 2
[ ] WSL 1

Kernel Version
4.19.128-microsoft-standard
Distro Version
Ubuntu 20.04
Other Software
ifconfig, iwconfig, nmcli, and other tools that should show wlan0 (or wlan1 or wifi0 or wifi1, etc.) do not show wlan0 even when my computer is connected to the internet using wifi.
Repro Steps
For example:
my_name@my_computer:~$ ifconfig wlan                                                                                wlan: error fetching interface information: Device not found
Expected Behavior
I was expecting to see a listing of wlan0, wlan1, wifi0 or wifi1. I found this image on Bing to show something similar to what I would have expected (Note: this snip was taken from a picture of the output of a ParrotOS system that is not WSL)

Actual Behavior
Instead I get the error message:
wlan: error fetching interface information: Device not found
Diagnostic Logs
No response

The network interface you see in WSL isn't the host machine's network interface directly; what WSL sees is a virtual network interface (for the light VM WSL2 runs within) connected to a Hyper-V virtual switch behind the host's network card, so all WSL's network tools see is that virtual interface, as eth0.

Thanks for the clarification. Is there any way around this?

It is unlikely that there will be; WSL2 works essentially the same way as a virtual machine where networking is concerned, and as such, it doesn't get direct hardware access.

Alright. Thanks for telling me.

Actually, it shouldn't be impossible. In VMware you can connect USB Wifi Adapter to the virtual machine. Even for WSL2 there exists a github project to attach USB devices to WSL usbipd-win. And in this issue #8240 is already a super complicated workaround, but not everyone can or have the time to compile a linux kernel for his own WSL2 version.
Would be super nice to support connecting USB devices out of the box and adding wifi drivers without re-compiling a linux kernel.
I'm using WSL for coding or using linux tools like tuya converter. I have an Raspberry, so I don't relay always on WSL, but I'm using it as smart home device and dont' want to overload it with temporarily stuff.


[LinalgExt] Reland: Add online_attention op

This patch adds a new online_attention op. This op represents a partially reduced attention op which can be tiled along it's k2 reduction dimension. This op also has indexing maps, supports tiling on all dimensions other than k1 dimension, and can decompose based on any given indexing maps.
This patch also makes the CPU backend use online attention to decompose and tile reduction dimension, allowing it to be tiled along N and batch dimensions, and tiling using LLVMCPUTile.
This is a reland of https://github.com/iree-org/iree/pull/17658 , with more conservative tile size selection to not unroll too much.

This is a reland of #17658 , with more conservative tile size selection to not unroll too much.

To make the review easier, can you set this PR up as one commit that has the original changes then a second commit with the new changes? Otherwise it's hard to see what code hasn't yet been reviewed here.

This is a reland of #17658 , with more conservative tile size selection to not unroll too much.

To make the review easier, can you set this PR up as one commit that has the original changes then a second commit with the new changes? Otherwise it's hard to see what code hasn't yet been reviewed here.

Squashed some commits to make it easier to review :)


Spelling mistake

add activity
https://github.com/hashirshoaeb/star_book/blob/4f84cc2f8cce131e1f77666edb5d2c6250ab55c6/lib/screens/activity_edit_sheet.dart#L119

can you assign me this ?

Sure

Thanks, would get back to you and create a new PR in 2 days.

hahaha! by the way it will take less than 5 minutes to fix this.

No problem you can take time ❤

Hi @hashirshoaeb, I tied searching for the spelling error but unable to find any typos here.

🤦🏻♂ I've mentioned in the issue.

add activity
https://github.com/hashirshoaeb/star_book/blob/4f84cc2f8cce131e1f77666edb5d2c6250ab55c6/lib/screens/activity_edit_sheet.dart#L119

here


⚠ Mobitopup has degraded performance

In 0ce7b88, Mobitopup (https://napcard.voz.tech) experienced degraded performance:

HTTP code: 200
Response time: 4627 ms

Resolved: Mobitopup performance has improved in 5e3577a.


Command Restart Servers is not working on latest release.

When I give the Restart Servers command this error appears in the console:
LSP: no clients found for window 2
LSP: golsp not available for view /Users/nrg/go/src/github.com/sourcegraph/go-langserver/main.go in window 2
Traceback (most recent call last):
  File "/Applications/Sublime Text.app/Contents/MacOS/sublime_plugin.py", line 818, in run_
    return self.run(edit)
  File "/Users/nrg/Library/Application Support/Sublime Text 3/Packages/LSP/main.py", line 2107, in run
    unload_window_clients(window.id())
  File "/Users/nrg/Library/Application Support/Sublime Text 3/Packages/LSP/main.py", line 647, in unload_window_clients
    window_clients = clients_by_window[window_id]
KeyError: 2

I added some safety checking in commit https://github.com/tomv564/LSP/commit/46ff4d6fab643fd654b8b82afec9fa78ec7870a8
But this error should only have occurred if there were no clients registered on that window (which the first log message also suggests?)
Could you test if the restart command works for you now?

Unfortunately not, is not working. But I am not getting the Python error anymore.
I am getting:
LSP: no clients found for window 2
LSP: golsp not available for view /Users/nrg/go/src/github.com/sourcegraph/go-langserver/main.go in window 2

Also the Doc pop up is not appearing any more when I hover on the code.

I can confirm one issue: didOpen is not sent for the currently active view after Restart Servers, this may cause the server to not respond to hovers (in the case of Pyls, it is).
But in your case, does the server start up successfully the first time you open a go file? Can you share more of your logs (from golsp startup up to the restart?)

It looks like for some the reason the plugin is not working well with the GoSublime package. I've disabled it and everything works well again.


Deploy commands overlap -m

The -m command overlaps 2 settings. --memorySize works, -m updates mode.
-m, --mode [event]                Lambda Mode
-o, --role [your_role]            Amazon Role ARN
-m, --memorySize [128]            Lambda Memory Size

Options.

Thanks for catching this :dancer:
Fixed here: https://github.com/RebelMail/node-lambda/pull/17
Use latest version 0.5.0.


Fixed #61, annualization of Sortino Ratio

LGTM, thanks!

@gabrieleiacono We still need to adjust the unit-tests.


fix(search): Update search + add latest icons

Updated to latest carbon-icons
Removed option for children of search component and pulled search buttons out separately.

One small change, could we add an exmaple for the new Search with buttons example? Something like:
<div style={{"display": "flex"}}>
        <Search
        {...searchProps}
        light
        className="some-class"
        id="search-1"
        labelText="Search"
        placeHolderText="Search"
        onChange={() => {
          console.log('onChange');
          action('onChange');
        }}
      />
        <SearchFilterButton onClick={action('onClick')} />
        <SearchLayoutButton onClick={action('onClick')} />
      </div>

done @tw15egan


When i wanna create many custom augends, it there a way to avoid writing table.insert... over and over again?

dial.augends["custom#boolean"] = dial.common.enum_cyclic{ strlist = {"true", "false"} }
dial.augends["custom#direction"] = dial.common.enum_cyclic{ strlist = {"North", "South", "West", "East"} }
dial.augends["custom#great"] = dial.common.enum_cyclic{ strlist = {">", "<"} }
dial.augends["custom#greatequal"] = dial.common.enum_cyclic{ strlist = {">=", "<="} }
dial.augends["custom#selfadd"] = dial.common.enum_cyclic{ strlist = {"++", "--"} }
table.insert(dial.config.searchlist.normal, "custom#boolean")
....
....
....

There are two steps you need to take to add a custom augend:

register the augends you want to add in dial.augends.
list the augends you want to enable in dial.config.searchlist.normal / dial.config.searchlist.visual.

For example, you can do the following
dial.config.searchlist.normal = { "custom#boolean", "custom#direction" }

(but the default augends will not work in this case).

It is a little trouble. But i think the plugin you devepled is very general and can be the best Ctrl-A/X plugin. Hope the more extensible way of custom augends.

BTW, suggest support none-word character custom augends like "++, --", ">=, <=", ....

@AstroShen you can use vim.list_extend to avoid repeated table.insert calls, as below:
local dial = require("dial")

local extra_augends = {
	"markup#markdown#header",
	"date#[%H:%M:%S]",
}

local custom_augends = {
	boolean = dial.common.enum_cyclic({ strlist = { "true", "false" } }),
	Boolean = dial.common.enum_cyclic({ strlist = { "True", "False" } }),
	-- on = dial.common.enum_cyclic({ strlist = { "on", "off" } }),
	-- ON = dial.common.enum_cyclic({ strlist = { "ON", "OFF" } }),
	-- On = dial.common.enum_cyclic({ strlist = { "On", "Off" } }),
	-- direction = dial.common.enum_cyclic({ strlist = { "north", "south", "west", "east" } }),
	-- Direction = dial.common.enum_cyclic({ strlist = { "North", "South", "West", "East" } }),
	greater = dial.common.enum_cyclic({ strlist = { ">", "<" } }),
	-- equal = dial.common.enum_cyclic({ strlist = { "==", "!=" } }),
	-- Equal = dial.common.enum_cyclic({ strlist = { "===", "!==" } }),
	-- greaterEqual = dial.common.enum_cyclic({ strlist = { ">=", "<=" } }),
	-- selfAdd = dial.common.enum_cyclic({ strlist = { "++", "--" } }),
}

-- register custom augends
for k, v in pairs(custom_augends) do
	local augend_name = "custom#" .. k
	dial.augends[augend_name] = v
	table.insert(extra_augends, augend_name)
end

-- extend capabilities
vim.list_extend(dial.config.searchlist.normal, extra_augends)
vim.list_extend(dial.config.searchlist.visual, extra_augends)

Unfortunately for me, my "greater", "equal", "Equal", "greaterEqual", "selfAdd" custom augments aren't working as expected, not sure why though..
For example:
1 < 2 with cursor on < will move the cursor to 2 and increment that number to 3, but a < b with cursor on < will do nothing.
I'm on nvim v0.6.1. Btw +1 for AstroShen's suggestion for supporting these extra augends as well :)

@AstroShen @axieax I am sorry for late response, and thank you for your suggestions!
Recently, I've been fascinated by denops.vim, which can create plugins using TypeScript, and dps-dial.vim is a product of that. dps-dial.vim supports dot-repeat and is very versatile, but it requires Deno runtime to be installed.
To be honest, I am undecided which one I should focus on, dial.nvim or dps-dial.vim, because both of them have their advantages.
By the way, you can add non-word augends like this:
local custom_augends = {
  greater = dial.common.enum_cyclic({ strlist = { ">", "<" }, ptn_format = "\\C\\M\\(%s\\)" }),
}

Interesting I see now! Is the functionality similar for both versions, other than dot-repeat and case switching (this sounds so cool!)? I'm curious as to what advantages each have over the other (definitely compatibility for Lua, speed and development should still be quite good as well tho?).
Thanks for the non-word augends guide btw! Most of them work now, except for the self increment ones (+=, ++) for some reason. This is what I'm currently using:
local non_word_pattern = "\\C\\M\\(%s\\)"
local custom_augends = {
  selfIncrementBy = dial.common.enum_cyclic({
    strlist = { "+=", "-=", "*=", "/=", "//=", "%=" },
    ptn_format = non_word_pattern,
  }),
  selfIncrementOne = dial.common.enum_cyclic({ strlist = { "++", "--" }, ptn_format = non_word_pattern }),
}

Thank you, there was a bug that some characters (such as +, .) was treated as special characters of Lua.
I fixed it and now (https://github.com/monaqa/dial.nvim/commit/3b70b2a6ce7d44826420f3653feef23501767577) the following config should work as expected.
local non_word_pattern = "\\C\\M\\(%s\\)"
local custom_augends = {
  selfIncrementBy = dial.common.enum_cyclic({
    strlist = { "+=", "-=", "*=", "/=", "//=", "%=" },
    ptn_format = non_word_pattern,
  }),
  selfIncrementOne = dial.common.enum_cyclic({ strlist = { "++", "--" }, ptn_format = non_word_pattern }),
}

And I decided to reimplement the functionality of dps-dial in Lua and release it as a new version of dial.nvim.
I will update dial.nvim soon to support new features such as dot-repeat.

Ahh this explains the bugged behaviour! Thanks for the fix :)
Looking forward to the new version!!

A new version has been released with a completely new configuration interface. So this issue is now closed.
If you have any problems with the new interface, please open a new issue.


[Bug] [TVMScript] Weird output of my script

Hi all,
I have a program like this:
import numpy as np
from tvm.script import tir as T
import tvm

@T.prim_func
def test_case(A: T.Buffer[(1, ), "uint8"], B: T.Buffer[(1, ), "float32"]):
  B[0] = A[0]

if __name__ == "__main__":
  compiled = tvm.build(test_case, target="llvm")
  in_data = np.empty((1,), dtype=np.uint8)
  in_data[0] = 100
  out_data = np.empty((1,), dtype=np.float32)
  A_tvm = tvm.nd.array(in_data, tvm.cpu(0))
  B_tvm = tvm.nd.array(out_data, tvm.cpu(0))
  compiled(A_tvm, B_tvm)
  print(B_tvm.numpy())

I just want to assign a value 100 typed uint8 to an address of type float. In python, we should get the result 100 in the B[0], but it give me a weird result [2.0000238] without any warning or error.
I change the target to c, and get the following c code:
// tvm target: c -keys=cpu
#define TVM_EXPORTS
#include "tvm/runtime/c_runtime_api.h"
#include "tvm/runtime/c_backend_api.h"
#include <math.h>
#ifdef __cplusplus
extern "C"
#endif
TVM_DLL int32_t default_function(void* args, int32_t* arg_type_ids, int32_t num_args, void* out_ret_value, int32_t* out_ret_tcode, void* resource_handle) {
  void* arg_A_handle = (((TVMValue*)args)[0].v_handle);
  int32_t arg_A_handle_code = arg_type_ids[0];
  void* arg_B_handle = (((TVMValue*)args)[1].v_handle);
  int32_t arg_B_handle_code = arg_type_ids[1];
  void* A = (((DLTensor*)arg_A_handle)[0].data);
  void* arg_A_handle_shape = (((DLTensor*)arg_A_handle)[0].shape);
  void* arg_A_handle_strides = (((DLTensor*)arg_A_handle)[0].strides);
  int32_t dev_id = (((DLTensor*)arg_A_handle)[0].device.device_id);
  void* B = (((DLTensor*)arg_B_handle)[0].data);
  void* arg_B_handle_shape = (((DLTensor*)arg_B_handle)[0].shape);
  void* arg_B_handle_strides = (((DLTensor*)arg_B_handle)[0].strides);
  if (!(arg_A_handle_strides == NULL)) {
  }
  if (!(arg_B_handle_strides == NULL)) {
  }
  *(uint8_t*)(((float*)B) + 0) = ((uint8_t*)A)[0];
  return 0;
}

// CodegenC: NOTE: Auto-generated entry function
#ifdef __cplusplus
extern "C"
#endif
TVM_DLL int32_t __tvm_main__(void* args, int* arg_type_ids, int num_args, void* out_ret_value, int* out_ret_tcode, void* resource_handle) {
  return default_function(args, arg_type_ids, num_args, out_ret_value, out_ret_tcode, resource_handle);
}

From the code *(uint8_t*)(((float*)B) + 0) = ((uint8_t*)A)[0];, you can see that tvm does not do any casting to the assignment operation, which causes this strange behavior.
So, how can we fix this? Any idea is welcome.
@junrushao @wrongtest-intellif @Hzfengsy

T.cast should be used to cast explicitly. In this case, without cast we should throw error in tvmscript parser instead

I am not very sure which way we should go for. But from the python view, if we can do auto casting from low precision datatype to the higher precision datatype and throw an error otherwise, it will be more pythonic.

In this case

For my curiosity, why we have divergent dtype value support in BufferStore? If this is the expected supporting behavior in backend, it seems that we may not just throw out,  because we want to keep roundtrip property for all valid ast.

We didn't add such check of data types between buffer and value to store yet in BufferStore. Previously we had some check in Store (now deprecated) that was disabled for some reasons. see https://github.com/apache/tvm/blob/main/src/tir/ir/stmt.cc#L274-L286

https://github.com/apache/tvm/pull/13960


SQLITE_ERROR when using locally available data

I've just imported a month worth of data via --import (into a fresh DB) and then tried to start Gekko in real-time mode. This is what I get:
2016-07-11 16:19:26 (INFO):	Setting up Gekko in realtime mode
2016-07-11 16:19:26 (INFO):
2016-07-11 16:19:26 (INFO):	Setting up:
2016-07-11 16:19:26 (INFO):		 Candle writer
2016-07-11 16:19:26 (INFO):		 Store candles in a database
2016-07-11 16:19:26 (INFO):
2016-07-11 16:19:26 (INFO):	Setting up:
2016-07-11 16:19:26 (INFO):		 Trading Advisor
2016-07-11 16:19:26 (INFO):		 Calculate trading advice
2016-07-11 16:19:26 (DEBUG):	The trading method requests 90000 seconds of historic data. Checking availablity..
2016-07-11 16:19:26 (INFO):

2016-07-11 16:19:26 (DEBUG):	Exchange has data spanning 650 seconds, we need at least 90000 seconds.
2016-07-11 16:19:26 (DEBUG):	Full history locally available. Seeding the trading method with all required historical candles.
{ Error: SQLITE_ERROR: unrecognized token: "{"
    at Error (native) errno: 1, code: 'SQLITE_ERROR' }

Gekko encountered an error and can't continue

Error:
DB error at `get`

Meta debug info:

Gekko version: v0.3.1
Nodejs version: v6.3.0

Any help would be greatly appreciated.
Thanks in advance and let me know if you need more information (exchange is Poloniex, pair is ETH/BTC).

This looks a lot like #375 which was fixed yesterday. Could you make sure that you are on the most recent version?

Judging by your logs, you do not have the most recent version running (which since 532e724 is 0.3.2). Update gekko and you should be fine :)

Ta, I've pulled it yesterday evening but looks like I missed this. Will update later on when I get home and report back... thanks!
On 11.07.2016, at 19:04, Mike van Rossum<EMAIL_ADDRESS>wrote:

Judging by your logs, you do not have the most recent version running (which since 532e724 is 0.3.2). Update gekko and you should be fine :)
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.

Ok, after pulling the latest rev everything is working as expected – good work & thanks!


why not a symmetrical layout?

maybe i did not paid attention or did not understood but why not set a symmetrical layout, passing Q or Z at the side of B?

ok! Q and Z were accounted arbitrary? different positions for them effects the layout?

Z is less common in English than Q, so it is placed in the most difficult location (lateral pinkie extension off the home row.).


Both Gradio server and local server is very slow on sd 1.5 google collab

@TheLastBen

please don't open issue for anything and everything


visual and nested custom grids

I came across a couple things that I believe can be better exhibited in the docs:

To use the visual grid in a custom grid, you need to specify both the color and the grid upon which to base measurements. This is in the docs but no explicit example is given and it took me a while to grok:

// within a media query that matches $my-custom-grid
.grid-container {
    @include grid-visual(yellow, $my-custom-grid);
  }

To nest grids, grid-collapse should be applied to a child of a column element, and also specify the custom grid if you're using one:

// within a media query that matches $my-custom-grid
.grid-column {
  .my-inner-grid-container {
    @include grid-collapse($my-custom-grid);
  }
}

It's not clear to me whether that child element must also be an actual grid-container (e.g. have the @include grid-container rule applied) or not. A visual example of nesting, with default and custom grids, would be super-helpful.
Thanks

related → https://github.com/thoughtbot/neat/issues/557

I see some new examples have been added, thanks!
Some more niggling suggestions that I think could help:

make each grid example a standalone page, rather then embedding them all in a page (which makes checking the source difficult)
make each example responsive
include standard html markup examples

I had a hell of a time using 2.0 with comps that were designed for 1.x conventions - I'd love to be able to show non-techincal designers the 2.0 examples pages and have them understand the way things work now.

The documentation has been updated as well as the examples. Also check out https://derekshirk.com/upgrading-working-new-neat-2-0-grid/ which is a nice writeup on the subject.
This is something we will continue to improve over time. I am going to close this issue for now as we continue to move forward on this.


Socratic 11: add more links, fix a few typos

One hilarious note about Peter Todd's article on multiple implementations is that the Parity source refers to a pull request and a gist to describe a consensus mechanism and that GitHub isn't exactly permanent. Lo and behold, one of the GitHub links 404s now 😂


Bug, bad behavior of the write_xyz operator

This operator doesn't write files if the file name contains subdirectories.
Example:
dump_data_xyz:
#  - timestep_file: "ExaDEMOutputDir/ExaDEMAnalyses/xyz_datas/dem_%09d.xyz"
  - timestep_file: "dem_%09d.xyz"
  - write_xyz_generic:
      fields: [ velocity, radius ]
      units: { velocity: "m/s", radius: "m" }

iteration_dump_writer:
  - dump_data_xyz

global:
  simulation_dump_frequency: 5000

This works with "dem_%09d.xyz", but nothing is done with "ExaDEMOutputDir/ExaDEMAnalyses/xyz_datas/dem_%09d.xyz".

Yes I am on it! I noticed it last week.

Using the following in exaNBody :
if (rank==0)                                                                                {                                                                                std::filesystem::path dir_path = std::filesystem::path(filename).parent_path();                                                                                std::filesystem::create_directories( dir_path );                                                                                }  MPI_Barrier(comm);
Allows proc 0 to create all folders found in the filename, i.e. before and in between "/".
Works smoothly with "ExaDEMOutputDir/ExaDEMAnalyses/xyz_datas/dem_%09d.xyz" and creates both ExaDEMOutputDir, ExaDEMAnalyses and xyz_datas folders :smile:

Closing, modification directly included in main branch of exaNBody

Opposite bug:
This operator works with test/dem_%09d.xyz
and file without directory: dem_%09d.xyz
 terminate called after throwing an instance of 'std::filesystem::__cxx11::filesystem_error'
  what():  filesystem error: cannot create directories: Invalid argument []

@lafourcadep I fix it into the main. I close this issue.


Handling of Videos in cineast

Dear devs,
How does an extractor handle videos in cineast? Can I access individual frames? Can I access a segment of the video given a start and end time?
Which video formats are supported?
Best,
Ribin

An extractor has to implement the corresponding interface (see https://github.com/vitrivr/cineast/blob/master/cineast-core/src/main/java/org/vitrivr/cineast/core/features/extractor/Extractor.java) which defines a method
void processSegment(SegmentContainer container). A SegmentContainer contains all relevant information about a media segment. In case of a video, it has information about the start and end times of the segment with respect to the videos, all video frames within the segment, the audio samples and subtitle elements if available as well as some aggregated representations, such as a pixel-wise average over all frames, which are computed on demand.

And how are the segmentations of a video determined? Can I set the time frames of the segments via code?

Segmenters are configurable, see https://github.com/vitrivr/cineast/tree/master/cineast-core/src/main/java/org/vitrivr/cineast/core/extraction/segmenter. Again, the segment knows its start and end time.

I want to process a video entirely, without segmenting it. How would I do that? I have seen that a PassthroughSegmenter exists, but it is not clear to me, how to use it for a video. Could you provide me with an example?

That one is not really designed to be used for videos. Since cineast assumes that it will always have access to all frames of a segment, having an entire video as one segment is not usually a use case. How long are the videos you want to process?

The length of video is not yet fixed, but it could from seconds to couple of minutes.

Cineast is designed as a retrieval engine and in so far, it makes sense to segment temporal media documents such as videos reasonably closely along the time dimension, in order to have high enough resolution for retrieved results to be useful. You can change this, but it might have unintended consequences in terms of memory usage. There is currently no segmenter which you could force to not segment a video in any case, so you'll have to implement one. It should be reasonably straight forward, you can have a look at the others in https://github.com/vitrivr/cineast/tree/master/cineast-core/src/main/java/org/vitrivr/cineast/core/extraction/segmenter/video to see how they work in general.