Licensing issue

Hi and thank you for this project!
I'm looking to make a Nix package for Exo. One of the fields in there is the licence... and the "Deref Community License Agreement" is not on the list of recognised licences.
It's not on https://opensource.org/licenses/alphabetical or https://spdx.org/licenses/ either so can I get an official statement whether it's FSF free/libre or not?
Otherwise I can still package it as "unfree" which means the binary won't be cached anywhere so it would have to be compiled on every install...
Many thanks

Hi Mausch, Thanks for your interest!
The Deref Community License is based on the Confluent Community License, which is in turn based on the Apache 2 license. You can read a bit of background on this license history here: https://www.confluent.io/confluent-community-license-faq/
The only distinction between this license and Apache 2 is the "excluded purpose" clause, which reads:

Licensee is not granted the right to, and Licensee shall not, exercise the License for an Excluded Purpose.  For purposes of this Agreement, “Excluded Purpose” means making available any software-as-a-service, platform-as-a-service, infrastructure-as-a-service or other similar online service that competes with Deref products or services that provide the Software.

Presently, there is no software-as-a-service component in Exo, but a few are planned. It is possible/likely that those components will not be part of the core of exo, in which case we will have two separate repositories and will relicense the core as an unmodified free/open/libre license, probably Apache 2.0. Until then, we're being a little bit conservative with our licensing plans, preferring to include this "excluded purpose" clause to protect our investment in this project.
I understand that some folks feel strongly about unmodified, pre-approved free & open licensing, so this is something we'll continue to re-evaluate as time goes on.

I'm looking to make a Nix package for Exo.

We haven't yet packaged exo ourselves except for our simple shell-based installer script. If you are packaging exo, you'll probably want to build with the managed tag to disable support for self-upgrades. Grep for // +build managed and // +build !managed to see what code this toggles on and off. The other build tag that you'll probably want to enable is bundle, see ./.github/workflows/perform-release.yaml.
cc @kendru who may have additional details (or maybe can put together a quick doc).

I've opened #301 to track packaging concerns & am going to move this issue to be a discussion, in case others want to chime in on the licensing topic.


Minor fixes

Summary
Multiple minor fixes
Impact
Fix possible memory overflow
Testing
Pass CI

@xiaoxiang781216 here is the correct PR. In previously I accidentally removed MIN and MAX from libhttpd.h instead of libhttpd.c. Let's wait CI to pass

The build error is fixed here: https://github.com/apache/incubator-nuttx/pull/7398


[popup][enhancement] ontouch displays popup (Windows10 touchscreen)

http://jsfiddle.net/efp8z6Ln/562/
{
	delay:200,
	on:'hover',
	variation: 'inverted'
}

I have a on hover popup - however on my laptop if I tap the element is becomes visible.
I only want the popup to display if I hover over with a mouse.
Is it possible to add this check if tap don't allow the hover?
Thanks

Hi @JohnRSim, sorry for the delay; it’s not currently possible. The popup component has got addTouchEvents property that’s job is to do exactly what you’re asking, but there’s a bug somewhere, and the property can’t be turned off. We’re tracking it here: #3382.
If you have more questions, I’ll be happy to answer them in this thread.

Fixed. See http://jsfiddle.net/2hm3nmLx/7/show


Tag expressions

It would be nice if the library is able to support Cucumber tag expression as explained in Cucumber documentation e.g. (@smoke or @ui) and (not @slow) as a value of tagFilter. Any plans to add this or maybe there is a way to do this that I've overlooked? Thanks.

Agreed, would be a great feature!

This is now available in version 2.0.2 on NPM, which is currently a beta version (tagged @next). Closing this issue, since #29 is related and we can use that one to track the progress of the beta.

Thanks @bencompton for the update. I've upgraded up to 2.0.2 and trying to use this tag filter not @e2e so I want to execute all scenarios except the ones tagged with @e2e. However e2e scenarios are still executed. Any ideas?


Fixed make test linting

Description
Fix linter issues
Motivation and Context
make test was failing
How to test this PR?
run make test
Types of changes

[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

[ ] Fixes a regression (If yes, please add commit-id or PR # here)
[ ] Documentation needed
[ ] Unit tests needed

Please reopen this PR against the main branch. @wthorp


Add "move" cursor to selected element when it's moveable

Available on develop
https://user-images.githubusercontent.com/15266737/206909441-2dc3d28d-6c8c-4545-87c3-ff8c34aaa24d.mov


[server/kit] adding automatic error reporting for any panics encountered

If we're in the App Engine environment, this change will initiate a Google error reporting client on startup and, if panic is caught at the highest level, a new error report will be sent to Google Cloud.

Coverage decreased (-0.6%) to 44.848% when pulling 4534a2015a0c754b82a3a45762941208d12ca8fa on kit-error-reporting into 5fcceaec4ae161579c0b9f4ae2a02c0682ab4412 on master.


Sessions with hidden types are still shown in the unscheduled session tray

What happened?
On the meeting schedule editor, sessions whose timeslot type is not selected to be visible are still shown in the unscheduled session tray. These should be hidden.
Likely a CSS selector involved in toggling session visibility needs to be updated to reflect the refactored HTML.
What browser(s) are you seeing the problem on?
No response
Code of Conduct

[X] I agree to follow the IETF's Code of Conduct

Is this still an issue?

Yes, it's still there.
To see the problem, create a new schedule for 114 or 115 (right now 114 is easier because there are no timeslots or rooms for 115 yet). Note the many unscheduled sessions. Open the "Timeslot Types" modal and disable all the types. The unscheduled sessions all remain visible.


Connection Refused

I am trying to edit files on an AWS EC2 instance.
I run the "Remote: Start Server" command.
I then connect to my AWS instance.
Afterwards, I run "rmate index.js".
However, I get the following error:
/usr/local/bin/rmate: connect: Connection refused
/usr/local/bin/rmate: line 390: /dev/tcp/localhost/52698: Connection refused
Unable to connect to TextMate on localhost:52698

What can I do to fix these errors?

any solution?

In my case the port forwarding was not well defined. I could not see the opened port via netstat. A redefinition of tunnel solved the issue

In my case the port forwarding was not well defined. I could not see the opened port via netstat. A redefinition of tunnel solved the issue


Refactor CI tests

The "fast" tests we run for CI became quite slow: pytest -m "not slow and not gpu"
To speed them up I removed a couple of duplicate tests and used better MCMC parameters.
The biggest speed up comes from using slice_np_vectorized with many chains and few warm up steps (when posterior accuracy is not tested).
The speed up is about 30%.
@michaeldeistler can you confirm by testing on main and on this branch locally?
I separated commits per test file to be able to correct potential misses. We can squash the commits when merging.
TODO:

[ ] check test coverage

Thanks! Running the tests now.


createDashboard handles errors diferently

createDashboard was throwing an error, which was preventing the UI from being rendered.
Changes:

createDashboard doesn't throw error and forwards error to the callback instead.
Usage of vis.instantiateMap now gets an object with success and error callbacks instead of using vis.done and vis.error (which were not working). See: https://github.com/CartoDB/cartodb.js/pull/1334

@xavijam sounds good?

Music to my ears.


refactor conditional

removed if/else conditional

CC/ @pranjaldatta

let me know if this works.

@BrooksPatola the code doesn't work. I tried using the new line of code and the results were incorrect
var err = null  //case when err is null
if (err == null)
 console.log("connected successfully!") || console.log(err);

This above piece of code gives the output:
connected successfully!
null

In a situation when the error is not null i.e. some error is returned,  no error message is displayed.
var err = "some error"  //case when err is not null
if (err == null)
 console.log("connected successfully!") || console.log(err);

The code doesnt print any output.
I'll be closing this PR . Please open a new PR for any further commits.


Ch 5 - Adversarial Search visualisation links broken

The Javascript links on http://aimacode.github.io/aima-javascript/5-Adversarial-Search/ is broken

It has been broken for quite a while. Nothing new. It will be fixed when someone works on this chapter.

The links are to {,c_}alphabeta.js but the files are {,c_}alphaBeta.js, so they work for local testing if you're on a case insensitive file system but they don't work on the production site. Chapter 5 hasn't been implemented yet so I think whoever implements them will fix this (maybe @ishapotnis1).

Looks like this issue is now fixed and can be closed.

It works fine on a case insensitive file system but is still broken on case insensitive systems. I think it'll be fixed when someone replaces this chapter.

You mean 'still broken on case *sensitive systems'

Er, yes, that's what I mean :)

I would like to work on this issue.

@newbazz go for it

Can someone help me out how to solve the issue.

@newbazz If you don't know how to solve this issue then leave it for whoever is working on chapter 5. Thanks.

Yeah m ready to leave. Can you help me to figure it out which issues are for beginners?

@newbazz Let's take this discussion to gitter


Proposal and suggested improvements for institutions and ounits APIs

REF: https://github.com/erasmus-without-paper/ewp-specs-api-institutions/blob/8132201b5f5ce3dbe99aecef53ec6c6e2f744885/response-example.xml#L89
We have the following proposal and improvements regarding institutions and ounits APIs:

institutions api should only have information about the HEI. And should not anymore list ounits.

organizational units list (currently contained in institutions API) should be a separate API. with a name like "ounits-index"

current ounits API should be renamed to something like ounits-get or ounits-details or ounits-info or similar to reflect its functionality. The content and functionality will remain same.

new ounits-index API should have a key=>label pair type format. The current implementation has only ids listed. And to fetch a HEIs ounits labels, you need to get first the ids from institutions API and then loop this list of ounits and fetch each (or group of) ounit details (!max allowed ids).

Sample response for onits-index API:
<ounit>      <id>5050444</id>      fsat.no</id>      fsat.no </ounit-id>
or
<ounit>      <id>5050444</id>      fsat.no </ounit-id>
Drawbacks and disadvantages of the current APIs in use:

IDs on their own are not useful and has no direct use.
In order to display and let a user select an academic unit from a list, we need first to fetch all ids.  And then call units API to get the name of the academic unit.
This should be like the basic HTML combo/select box format: key->value pairs as a basic standard and minimum requirement for usability.
Very much unnecessary HTTP traffic.
In most of the use cases, the id/label pairs will be enough to use in IIAs or other EWP modules.

PS: The same problems and suggestions are valid for courses APIs, too. We will open the same issue under courses API, too.

Do you mean that after fetching the data via, for example, the IIAs API, you have to use the Institutions API afterwards to find out the names of the organizational units?
In our system, we keep the codes and names of partner organizational units in the HEIs dictionary. If any units are missing on our side, the user can download them.

we also faced similar issues when using these APIs (there are a few HEIs with several hundred ounits), my thought about it was to add the human-readable "values" directly to the ounit list in the institutions API, but a separate index/mapping endpoint would also be feasible I think. The big problem currently is, that you need to fetch the whole ounit data to know which ounit it is or what to show the user.

@sascoms
We do the same way as @kamil-olszewski-uw mentioned. Only advantage with the new API you are proposing is that you can the ounit list almost real time vs periodic refresh.
But this periodic refresh can also be solved if we have CNR as proposed in https://github.com/erasmus-without-paper/ewp-specs-api-factsheet/issues/2

As a general reply:
The main problem is that the API does not have a direct functionality.
What we all mostly need is a key=>pair list to show to the user or to store it somewhere.
If the API was featuring a ID=>LABEL pair list, one HTTP request would be enough to fetch all the list.
And you would need the details API only if you require more details about a unit.
And also the unnecessary traffic and requests number is another problem.
A HEI has 250 units. To create a simple html combo/select box,

first fetch IDs from inst. API.
loop those IDs (!max allowed ids) and fetch details of each unit.
get the label from the fetched details
compose the pairs and display the select box

Let's say max allowed ids = 10
1 request for inst. API + 25 requests for ounits details; total 26 HTTP requests.
Why?
This needs a more efficient way.
Caching is already necessary. Yes. But other than for performance, it has to be used as a "workaround" for this problem.
And yes, every problem in those API designs has a workaround.
And we as developers can definitely find a way to turn around such design problems.
But why? Why not correcting the root design problem?
We need to correct first the problematic design.
And a common note:
The new, modern and popular products' APIs should really be examined in details before new versions of EWP APIs are published.

@sascoms
I agree that there is need to look at the root designs of APIs for better efficiency. But at the moment, there is a lot of stuff on the plate and we should only focus on changes that are must. Or at least find a less taxing solution. May be adding ounit label in institution API will serve the purpose.

Right and I agree.
But, at least there can be made a planning and roadmap.
ie: "x, y, z, .. issues will be discussed in the meeting on x.y.z"


install a rock in developer mode

Hi Folks,
Is it possible to install a rock in "dev mode", ie., only linking to the source files so that changes are immediately reflected in the installed library?
Cheers,

Yes, look at luarocks make command.

That's in fact what I'm doing but it's apparently putting the .rockspec in the lib/ folder without linking anything.

Ah, now I see what you really want. No, sorry, you can't do that.
When I'm developing and need to test changes in the code, I just prepend my code location to either package.path or package.cpath, so when I call require, the version of the rock I'm working on takes precedence.

OK, thanks!


Update gtm-sesion-fetcher submodule to use latest commit from master …

…as of May 02, 2018: 179e8a60533ee28ca5f4e9a088e79fd424b8a689

I am contributing this via my employer (VMware). I've been informed that I have been added as a contributor to the VMware company CLA.


SSG not possible in app directory

What version of this package are you using?
v2.5.3
What operating system, Node.js, and npm version?
MacOS, v18.7.0, 8.15.0
What happened?
Building NextJS with app directory, [lang] paths, and generateStaticParams fails, with errors such as these (one per language):
Error occurred prerendering page "/en". Read more: https://nextjs.org/docs/messages/prerender-error
Error: The provided export path '/' doesn't match the '/[lang]/page' page.
Read more: https://nextjs.org/docs/messages/export-path-mismatch
    at /Users/nderobertis/repos/with-next-translate-app/node_modules/next/dist/export/worker.js:156:27
    at Span.traceAsyncFn (/Users/nderobertis/repos/with-next-translate-app/node_modules/next/dist/trace/trace.js:103:26)
    at Object.exportPage (/Users/nderobertis/repos/with-next-translate-app/node_modules/next/dist/export/worker.js:96:27)
    at execFunction (/Users/nderobertis/repos/with-next-translate-app/node_modules/next/dist/compiled/jest-worker/processChild.js:1:2828)
    at execHelper (/Users/nderobertis/repos/with-next-translate-app/node_modules/next/dist/compiled/jest-worker/processChild.js:1:2486)
    at execMethod (/Users/nderobertis/repos/with-next-translate-app/node_modules/next/dist/compiled/jest-worker/processChild.js:1:2574)
    at process.messageListener (/Users/nderobertis/repos/with-next-translate-app/node_modules/next/dist/compiled/jest-worker/processChild.js:1:1284)
    at process.emit (node:events:513:28)
    at emit (node:internal/child_process:937:14)
    at process.processTicksAndRejections (node:internal/process/task_queues:83:21)

I have a full reproduction here on the ssg-bug branch, simply run yarn build. I simply used the NextJS official example for next-translate, upgraded to the latest working versions (see #1142), then added generateStaticParams.
What did you expect to happen?
Build completes successfully with statically generated language pages.
Are you willing to submit a pull request to fix this bug?
I am motivated to get this fixed quickly, so I would be willing to help but I am not familiar with the internals of next-translate or next. With some guidance I would be happy to do the heavy lifting.

Similarly to #1142, this hack allows the build to complete so it seems at least partially related to the next config i18n that is used for the pages directory. However when I apply this "fix," it allows the build to complete but the pages fail at runtime with different errors. It flashes the page content but then it becomes a blank screen and throws Hydration failed because the initial UI does not match what was rendered on the server.

@nickderobertis-ch have you tried properly typing the lang variables?
export default async function SiteLayout({ children, params }: { children: React.ReactNode, params: { lang: Locale } }) {
I can build just fine, just run into some other issues where I get
"Warning: Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."

Yeah JS for this reproduction but I originally hit this issue in our TS codebase properly typed.
I think this is actually due to an issue in NextJS itself: https://github.com/vercel/next.js/issues/55331

Ah. Honestly it's starting to feel like a mistake that we went for next js at all. The documentation doesn't seem to cover many advanced / complex implementations of the stuff they themselves offer which leads to running in to dumb errors. Especially if you're migrating from pages to app router.


Support FVM 3.0

Hello, I wanted to bring this to your attention that FVM is making updates to how it manages Flutter. https://github.com/leoafarias/fvm/blob/main/CHANGELOG.md#300-beta5

@itsJoKr Are there plans to support the new FVM?

Until https://github.com/bitrise-io/bitrise-steplib/pull/4119 is merged, you can use the updated step by replacing this in your bitrise.yaml
- install-flutter-version-manager@1: {}
with this
-<EMAIL_ADDRESS>{}
Note:
You will also need to use $FVM_FLUTTER_VERSION as your version in the Flutter Install step.

@royd Thanks that sounds good. It turns out that the current step is working without issue, likely due to FVM's legacy support.

Closing, the new version of this step has been published (Extract FVM Flutter version v2.0.0).
This step now parses the Flutter version from the .fvmrc file. The parsed version can then be passed to the Flutter Install step ($FVM_FLUTTER_VERSION).


Update repository_migrator.py to fix Repository capture and migration feature

Fixes Issue #147: "Service 'PackageRepository' cannot be migrated because the specified service is not installed locally."
The service definition json for the package repository is %PROGRAMDATA%/Skyline/Config/Repository.json", which fails to match the RepositoryMigrator.name = "PackageRepository" property -> hence the service fails to be found by the module.

[x] This contribution adheres to CONTRIBUTING.md.
TODO: Check the above box with an 'x' indicating you've read and followed CONTRIBUTING.md.

What does this Pull Request accomplish?
TODO: Fixes capture and migrate features for the Repository service.
Why should this Pull Request be merged?
TODO: Fix issue #147
What testing has been done?
TODO: Tested successfully with SystemLink Server 21.0. Should hold true for any newer SystemLink Server instance with installed Repository service.

Good to know. In that case we could just add an OR function to match all versions.

Good to know. In that case we could just add an OR function to match all versions.

We only document support for 21.0+. There are likely other compatibility issues with migrating 20.x verions of SystemLink with this tool.

The upgrade was from 21.0 to 22Q3. According to the README.md, 21.0 as a source version should be supported.


Any plan to support IE

It works well on Chrome and Firefox, any plan to support Internet Explorer?

Figured it out myself. We can use selenium-server-standalone-3.141.59.jar. So:
Go code --> selenium-server-standalone-3.141.59.jar --> IEDriverServer --> IE


IMPORT DOCKERFILE RUB DUB DEFY ERROR SHARD

please fix this.

please provide a description to your problem or it will be closed

hey there, guy, i am trying to run makefile EmeraldOS with docker file. Please guide me

hey there, guy, i am trying to run makefile EmeraldOS with docker file. Please guide me

what do you mean run makefile?

hey there, guy, i am trying to run makefile EmeraldOS with docker file. Please guide me

what do you mean run makefile?

please, try to understand me


Implement the lockers via reflection

If a value type correctly implements sync.Locker but isn't addressable (stored in a map or interface), we currently skip that lock because calling Interface() to get the sync.Locker will copy the value itself.
We should be able to get around this by carefully checking for and calling the appropriate locking methods directly via reflection.

Actually, now that I think about it, this isn't an issue since an unaddressable value can't really be accessed in any meaningful way without a copy.
Should copystructure detect these and panic since it's likely a programming error?

I think since detecting this would require creating an instance of any unaddressable value we encounter (i.e. all map values), and checking to see if a pointer to that new value contains Lock/Unlock methods, we should just pass on this altogether. This is more of a code vetting issue, and cases where this could apply should be exceedingly rare.


restoreAllMocks functionality changed in 0.31

Describe the bug
It appears that in a test vi.restoreAllMocks() is not restoring mocks back to what I've declared at the head of the file anymore.
Reproduction
This is my test file:
https://github.com/components-web-app/cwa-nuxt-module/blob/nuxt3/src/runtime/storage/stores/fetcher/getters.spec.ts
I get
TypeError: utils.getFetchStatusByToken is not a function
 ❯ ReactiveEffect.fn ../src/runtime/storage/stores/fetcher/getters.ts:31:33
     29|       }
     30|
     31|       const fetchStatus = utils.getFetchStatusByToken(fetcherState.primaryFetch.successToken)
       |                                 ^
     32|       if (!fetchStatus || utils.isFetchResolving(fetcherState.primaryFetch.successToken)) {
     33|         return
 ❯ ReactiveEffect.run ../node_modules/.pnpm/@vue+reactivity@3.3.2/node_modules/@vue/reactivity/dist/reactivity.cjs.js:182:19
 ❯ ComputedRefImpl.get value [as value] ../node_modules/.pnpm/@vue+reactivity@3.3.2/node_modules/@vue/reactivity/dist/reactivity.cjs.js:1143:33
 ❯ ../src/runtime/storage/stores/fetcher/getters.spec.ts:78:49

and
Error: spyOn could not find an object to spy upon
 ❯ ../src/runtime/storage/stores/fetcher/getters.spec.ts:88:8
     86|     const utils = FetcherGetterUtils.mock.results[0].value
     87|     const expected = returnFetchStatus ? result : undefined
     88|     vi.spyOn(utils, 'getFetchStatusByToken').mockImplementationOnce(() => {
       |        ^
     89|       return expected
     90|     })

On subsequent tests, running each test individually still works fine.
I'm not sure how to make this repro more minimal, but I wanted to raise this first as a package maintainer may immediately know an update that was made that could cause something like this to happen.
System Info
System:
    OS: macOS 12.6
    CPU: (10) arm64 Apple M1 Max
    Memory: 72.34 MB / 64.00 GB
    Shell: 5.8.1 - /bin/zsh
  Binaries:
    Node: 16.16.0 - /usr/local/bin/node
    Yarn: 1.22.19 - ~/.npm-packages/bin/yarn
    npm: 8.11.0 - /usr/local/bin/npm
  Browsers:
    Chrome: 113.0.5672.126
    Safari: 16.0
  npmPackages:
    @vitest/coverage-c8: ^0.30.0 => 0.30.0
    vitest: 0.31 => 0.31.0

Used Package Manager
pnpm
Validations

[X] Follow our Code of Conduct
[X] Read the Contributing Guidelines.
[X] Read the docs.
[X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
[X] Check that this is a concrete bug. For Q&A open a GitHub Discussion or join our Discord Chat Server.
[X] The provided reproduction is a minimal reproducible example of the bug.

This was fixed by #3341

Thank you, sorry I didn't spot this :)


Wait for Release 2.1.3

Hello @nertzy
When can we get a new release of the gem? The current version has been released ~1 year ago:
https://rubygems.org/gems/pg_search

2.1.2 - December 25, 2017 (51 KB)

I’ve released v2.1.3.


pihole -w

make it so domains that are to be parsed get whitelisted
this works, but is done one at a time and is super slow

closing, as I have a solution,,, just not a good one


clean up BlockdevInsertedEvent

name, source type and scsiId are all set and passed by callers. It does
not make sense to simply pass them back.

LGTM


Added the feature to check mac os environment and make it work on mac…

…OS or Mac OS X

Retested on Ubuntu 16.10 and working.
Fantastic job. Many thanks for the contribution!


RTT logs not found with default west debug invocation on jlink runner

Describe the bug
When the large structures are statically defined, the  RTT logs are not found with a standard west debug invocation while using the jlink runner.
They are found if I manually run additional west commands monitor exec SetRTTAddr 0x00000000200ABCDE (or automate the jlink runner to run the command).
To Reproduce
Steps to reproduce the behavior:

Build an application with a very large statically allocated buffer

CONFIG_USE_SEGGER_RTT=y
CONFIG_RTT_CONSOLE=y
nrf52840dk_nrf52840

Run west debug in one terminal
Run JlinkRTTClient in another terminal
mon reset 0 and continue in the GDB session
Observe no logs in RTT client
monitor exec SetRTTAddr 0x00000000200ABCDE, mon reset 0, and continue in the GDB session
Observe logs in RTT client

Confirmed against blinky with settings and large heap as follows
CONFIG_GPIO=y
CONFIG_USE_SEGGER_RTT=y
CONFIG_RTT_CONSOLE=y
CONFIG_UART_CONSOLE=n
CONFIG_SERIAL=n

..

K_HEAP_DEFINE(payload_heap, 220000);

void main(void)
{

...

	while (1) {
		void*  buf = k_heap_alloc(&payload_heap, 1024, K_NO_WAIT);
		gpio_pin_set(dev, PIN, (int)led_is_on);
		led_is_on = !led_is_on;
		k_msleep(SLEEP_TIME_MS);
		k_heap_free(&payload_heap, buf);
	}
}

Built with
west build -b nrf52840dk_nrf52840 zephyr/samples/basic/blinky
Expected behavior
Logs always show for default RTT settings without manual intervention or with an additional flag on runner.
Impact
An annoyance for an experienced developer, a show stopper for an inexperienced developer.
Logs and console output
Logs after applying patch to apply SetRTTAddr
trueb2@jbmm firmware % west --verbose debug
ZEPHYR_BASE=/workspace/firmware/zephyr (origin: configfile)
-- west debug: rebuilding
cmake version 3.19.7 is OK; minimum version is 3.13.1
Running CMake: /opt/homebrew/bin/cmake --build /workspace/firmware/build
ninja: no work to do.
-- west debug: using runner jlink
runners.jlink: JLINKARM_GetDLLVersion()=75001
-- runners.jlink: JLink version: 7.50a
-- runners.jlink: J-Link GDB server running on port 2331; no thread info available
runners.jlink: JLinkGDBServer -select usb -port 2331 -if swd -speed 4000 -device nrf52 -silent -singlerun -nogui
runners.jlink: /opt/gcc-arm-none-eabi-10-2020-q4-major/bin/arm-none-eabi-gdb /workspace/firmware/build/zephyr/zephyr.elf -ex 'target remote :2331' -ex 'monitor halt' -ex 'monitor reset' -ex load -ex 'monitor exec SetRTTAddr 0x0000000020039474'
SEGGER J-Link GDB Server V7.50a Command Line Version

JLinkARM.dll V7.50a (DLL compiled Jul  8 2021 18:18:02)

-----GDB Server start settings-----
GDBInit file:                  none
GDB Server Listening port:     2331
SWO raw output listening port: 2332
Terminal I/O port:             2333
Accept remote connection:      yes
Generate logfile:              off
Verify download:               off
Init regs on start:            off
Silent mode:                   on
Single run mode:               on
Target connection timeout:     0 ms
------J-Link related settings------
J-Link Host interface:         USB
J-Link script:                 none
J-Link settings file:          none
------Target related settings------
Target device:                 nrf52
Target interface:              SWD
Target interface speed:        4000kHz
Target endian:                 little

GNU gdb (GNU Arm Embedded Toolchain 10-2020-q4-major) <IP_ADDRESS>01028-git
Copyright (C) 2020 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "--host=x86_64-apple-darwin10 --target=arm-none-eabi".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /workspace/firmware/build/zephyr/zephyr.elf...

Executed SetRTTAddr 0x0000000020039474

Logs from minimal blinky
SEGGER J-Link V7.50a - Real time terminal output
J-Link EDU Mini V1 compiled Jun 24 2021 14:29:39 V1.0, SN=801029165
Process: JLinkGDBServerCLExe

###RTT Client: Connection lost. Going to reconnect.
###RTT Client: Connecting to J-Link RTT Server via localhost:19021 ................................................................................................................................................................................................................................................................................................................
###RTT Client: Connected.

SEGGER J-Link V7.50a - Real time terminal output
J-Link EDU Mini V1 compiled Jun 24 2021 14:29:39 V1.0, SN=801029165
Process: JLinkGDBServerCLExe
*** Booting Zephyr OS build zephyr-v2.6.0  ***

Logs from the JLinkRTTClient before setting the address and after with application that ran LOG_INF()
SEGGER J-Link V7.50a - Real time terminal output
J-Link EDU Mini V1 compiled Jun 24 2021 14:29:39 V1.0, SN=801029165
Process: JLinkGDBServerCLExe

###RTT Client: Connection lost. Going to reconnect.
###RTT Client: Connecting to J-Link RTT Server via localhost:19021 .....
###RTT Client: Connected.

SEGGER J-Link V7.50a - Real time terminal output
J-Link EDU Mini V1 compiled Jun 24 2021 14:29:39 V1.0, SN=801029165
Process: JLinkGDBServerCLExe
*** Booting Zephyr OS build zephyr-v2.6.0  ***
[00:00:01.588,104] <inf> app: Where are the logs? 0

A big object makes the bss section pretty big (220000B)
 .bss.kheap_payload_heap
                0x0000000020001248    0x35b60 app/libapp.a(payloads.cpp.obj)
                0x0000000020001248                kheap_payload_heap

Zephyr has the _SEGGER_RTT symbol in zephyr.map near the end of BSS
 .bss._SEGGER_RTT
                0x0000000020039474       0xa8 modules/segger/libmodules__segger.a(SEGGER_RTT.c.obj)
                0x0000000020039474                _SEGGER_RTT
 ...
 ...
 .bss._acDownBuffer
                0x00000000200398c4       0x10 modules/segger/libmodules__segger.a(SEGGER_RTT.c.obj)
 .bss._acUpBuffer
                0x00000000200398d4      0x400 modules/segger/libmodules__segger.a(SEGGER_RTT.c.obj)

Ram report shows allocated space for RTT
│       ├── debug                                                                                1040  0.40%
│       │   └── segger                                                                           1040  0.40%
│       │       └── SEGGER                                                                       1040  0.40%
│       │           └── SEGGER_RTT.c                                                             1040  0.40%
│       │               ├── _acDownBuffer                                                          16  0.01%
│       │               └── _acUpBuffer                                                          1024  0.40%

Environment (please complete the following information):

OS: macOS m1
Toolchain: GNU ARM EMB GCC 10.2.1
v2.6.0

Additional context
This change fixes the problem by locating the _SEGGER_RTT symbol address in the default build directory's zephyr.map.
It is a change to the jlink runner under the debug case.
trueb2@jbmm zephyr % git diff scripts                                                                                (git)-[tags/zephyr-v2.6.0]
diff --git a/scripts/west_commands/runners/jlink.py b/scripts/west_commands/runners/jlink.py
index 0a473b9f73..570f795231 100644
--- a/scripts/west_commands/runners/jlink.py
+++ b/scripts/west_commands/runners/jlink.py
@@ -229,6 +229,11 @@ class JLinkBinaryRunner(ZephyrBinaryRunner):
                                '-ex', 'load']
                 if self.reset_after_load:
                     client_cmd += ['-ex', 'monitor reset']
+                os.system("rg _SEGGER_RTT build/zephyr/zephyr.map | rg 0x00000000 | awk '{ print $1 }' > build/SetRTTAddr.txt")
+                f = os.open('build/SetRTTAddr.txt', os.O_RDONLY)
+                addr = os.read(f, len('0x0000000020000000')).decode('utf-8')
+                client_cmd += ['-ex', f'monitor exec SetRTTAddr {addr}']
+                os.close(f)
             if not self.gdb_host:
                 self.require(self.gdbserver)
                 self.print_gdbserver_message()
trueb2@jbmm zephyr %                                                                                (git)-[tags/zephyr-v2.6.0]

edit 0: Fix typos on redacted workspace directory path

@trueb2 thanks for the extensive report, but I cannot reproduce this locally on an nRF2840 DK and J-Link 7.543:
diff --git a/samples/basic/blinky/prj.conf b/samples/basic/blinky/prj.conf
index 91c3c15b37..e7aa2a09d4 100644
--- a/samples/basic/blinky/prj.conf
+++ b/samples/basic/blinky/prj.conf
@@ -1 +1,5 @@
 CONFIG_GPIO=y
+CONFIG_USE_SEGGER_RTT=y
+CONFIG_RTT_CONSOLE=y
+CONFIG_UART_CONSOLE=n
+CONFIG_SERIAL=n
diff --git a/samples/basic/blinky/src/main.c b/samples/basic/blinky/src/main.c
index e2fbfd3dc5..1874c2aeed 100644
--- a/samples/basic/blinky/src/main.c
+++ b/samples/basic/blinky/src/main.c
@@ -27,6 +27,8 @@
 #define FLAGS  0
 #endif

+K_HEAP_DEFINE(payload_heap, 220000);
+
 void main(void)
 {
        const struct device *dev;
@@ -44,8 +46,10 @@ void main(void)
        }

        while (1) {
+               void*  buf = k_heap_alloc(&payload_heap, 1024, K_NO_WAIT);
                gpio_pin_set(dev, PIN, (int)led_is_on);
                led_is_on = !led_is_on;
                k_msleep(SLEEP_TIME_MS);
+               k_heap_free(&payload_heap, buf);
        }
 }
diff --git a/samples/hello_world/prj.conf b/samples/hello_world/prj.conf
index b2a4ba5910..3453f62ca3 100644
--- a/samples/hello_world/prj.conf
+++ b/samples/hello_world/prj.conf
@@ -1 +1,3 @@
-# nothing here
+CONFIG_USE_SEGGER_RTT=y
+CONFIG_RTT_CONSOLE=y
+CONFIG_UART_CONSOLE=n
diff --git a/samples/hello_world/src/main.c b/samples/hello_world/src/main.c
index 6c5c8a27dc..f3df1cfd94 100644
--- a/samples/hello_world/src/main.c
+++ b/samples/hello_world/src/main.c
@@ -4,10 +4,15 @@
  * SPDX-License-Identifier: Apache-2.0
  */

+
 #include <zephyr.h>
 #include <sys/printk.h>

+K_HEAP_DEFINE(payload_heap, 220000);
+
 void main(void)
 {
+       void*  buf = k_heap_alloc(&payload_heap, 1024, K_NO_WAIT);
        printk("Hello World! %s\n", CONFIG_BOARD);
+       k_heap_free(&payload_heap, buf);
 }

And then:
SEGGER J-Link RTT Logger
Compiled Jul  8 2021 18:23:17
(c) 2016-2017 SEGGER Microcontroller GmbH, www.segger.com
         Solutions for real time microcontroller applications

Default logfile path: /home/carles/.config/SEGGER

------------------------------------------------------------

Device name. Default: NRF52 > Target interface. > Interface speed [kHz]. Default: 4000 kHz > RTT Control Block address. Default: auto-detection > RTT Channel name or index. Default: channel 1 > Output file. Default: RTT_<ChannelName>_<Time>.log >
------------------------------------------------------------
Connected to:
  J-Link OB-SAM3U128-V2-NordicSemi compiled Feb  2 2021 16:47:20
  S/N: 683258040

Searching for RTT Control Block...OK. 3 up-channels found.
RTT Channel description:
  Index: 0
  Name:  Terminal
  Size:  1024 bytes.

Output file: /dev/stdout

Getting RTT data from target. Press any key to quit.
------------------------------------------------------------

*** Booting Zephyr OS build v2.7.0-rc2-72-g7cf0a5c4a188  ***
Transfer rate: 0 KiByte/s Bytes written: 61 Byte   ^C
Shutting down...

@trueb2 your example hints a the boot banner always being displayed (the line starting with *** Booting Zephyr OS) but LOG() statements sometimes not showing. This might be then due to some configuration of the logging subsystem, and not a problem with the RTT transport, but I cannot reproduce this based on the info you have posted either.

@trueb2 can you confirm if this is an issue only with LOG() statements but printk() works fine?

Closing since there is no activity and cannot be reproduced. Please reopen if this is still an issue.

I think this should be re-opened. I have encountered this issue too.
Like @carlescufi I failed to reproduce it using the above steps because the _SEGGER_RTT symbol was not located at  high enough address. I managed to reproduce it by allocating a large buffer with a large alignment, causing it to sort before _SEGGER_RTT  within the .bss section. I believe this method should be reliable across different environments.
Patch to reproduce:
diff --git a/samples/hello_world/prj.conf b/samples/hello_world/prj.conf
index b2a4ba5910..5541d6f21b 100644
--- a/samples/hello_world/prj.conf
+++ b/samples/hello_world/prj.conf
@@ -1 +1,5 @@
 # nothing here
+CONFIG_USE_SEGGER_RTT=y
+CONFIG_RTT_CONSOLE=y
+CONFIG_UART_CONSOLE=n
+CONFIG_SERIAL=n
diff --git a/samples/hello_world/src/main.c b/samples/hello_world/src/main.c
index 987728bbf2..08e9adae1c 100644
--- a/samples/hello_world/src/main.c
+++ b/samples/hello_world/src/main.c
@@ -4,9 +4,16 @@
  * SPDX-License-Identifier: Apache-2.0
  */

-#include <zephyr.h>
+ #include <zephyr.h>
+ #include <sys/printk.h>
+
+__aligned(64) char very_large_buffer[220000];

 void main(void)
 {
-       printk("Hello World! %s\n", CONFIG_BOARD);
+       very_large_buffer[0] = 1;
+       while (1) {
+               printk("Hello World! %s\n", CONFIG_BOARD);
+               k_sleep(K_SECONDS(1));
+       }
 }

Build and launch debugger:
west build -b nrf52840dk_nrf52840
west debug

In a different shell, view RTT log using e.g. telnet.
telnet localhost 19021

In the GDB shell print the address of _SEGGER_RTT, it should be rather high, closer to 0x20035e20  than to  0x20000000 as seen below. Then resume execution and notice that nothing is printed to the RTT log.
(gdb) print &_SEGGER_RTT
$1 = (SEGGER_RTT_CB *) 0x20035e20 <_SEGGER_RTT>
(gdb) continue
Continuing.

Halt execution in GDB again and set the RTT address. The buffered log should print in the telnet window and new new lines should print every second.
(gdb) monitor exec SetRTTAddr 0x20035e20
Executed SetRTTAddr 0x20035e20
(gdb) c
Continuing.

This issue https://github.com/zephyrproject-rtos/zephyr/issues/40433 gave me an idea for what I think would be a good solution.
If I update the runner args in board.cmake to use nRF52840_xxAA instead of nrf52 west debug for my sample "just works".
board_runner_args(jlink "--device=nRF52840_xxAA" "--speed=4000")

This issue #40433 gave me an idea for what I think would be a good solution.
If I update the runner args in board.cmake to use nRF52840_xxAA instead of nrf52 west debug for my sample "just works".
board_runner_args(jlink "--device=nRF52840_xxAA" "--speed=4000")

That is curious, do you know why this is the case @abxy? @anangl and @simtind does this ring a bell?
Because that is exactly what fixed the issue here

As with a lot of older software that supported nrf52832 early on, nrf52 is likely a shorthand for nrf52832_xxaa in the jlink device selection. Rtt buffer probably ends up in upper ram regions not present in 52832, and so jlink never finds it, and cannot start communication.
West should provide the full device identifier to jlink whenever possible.

West should provide the full device identifier to jlink whenever possible.

@simtind from this list, right?
https://github.com/zephyrproject-rtos/zephyr/pull/44181#issuecomment-1077725249


DCOS-12974: Use smaller container icon

⚠ There's no green light to 24x24 icon, due to the time lag. Yet I like how it looks and think that this will be the decision. Anyways please check the discussion before hitting that merge button https://mesosphere.atlassian.net/browse/DCOS-12974

This PR

adds margin between the network type dropbox and the header
reduces size of the container icon

Before:

After:

//cc @ashenden

retest this please

retest this please 😩

Discussion sounds reasonable. Looks good 👍  💯

run integration tests

Nice! 🚢


v1.7.2

v1.7.2

Date
2024-02-08

Kind
MINOR release

Author
<EMAIL_ADDRESS>

Minor improvements

Introduced Secure Internet Access (formerly ETP) as INPUT specification (as an alias to ETP)
added "ETP NETCON" to the autoresume feature
prevented "EAA DIRHEALTH" to be mistakenly autoresumed
Imrpoved log overview readability
Added --debugloglines to allow control of input loglines being sent to the debug log
Added Microsoft Sentinel SIA / ETP integration documentation
Added a FAQ entry regarding time synchronization
[docker] bumped python version to "3.12.2"
[docker] bumped gc_logs version to "0.0.3(beta)"
Fixed a doc error (PR by @pizza0rodeo ) - thanks for your contribution

BUGFIX

Fixed a bug in the autoresume function that created a problem with timezones in certain circumstances

Housekeeping

improved local container testing


Implement Top Navigation With Search

Top Navigation With Search

Completed -

@trivenikulkarni
"Closed by Rameshwar in version 1.1.6, which is available in version 1.1.7."


Chunk storage separation

Voxelwind should provide flexible support for custom chunk storage. This means a lot of interesting possibilities:

Copy on write levels: great for hosting many minigame levels on one server.
Remote chunk loading: load chunks from S3 or similar for a player world (ala LEET or Minecraftly) or for zero-restart map updates for minigames.
Custom map formats: Voxelwind provides a few but you can make your own.

Partially implemented.
LevelChunkManager is a caching chunk provider that asks a ChunkProvider for the chunk if required.

Tux, I'm really glad you're making this project.
I've always doubted pocket edition, but with you making this server, I think it's the future.

Already done, but needs API exposure.


Oracle Cloud HTTP API Gateway Function guide

CI will fail until https://github.com/micronaut-projects/micronaut-guides/pull/317 is merged because the tests need v2.5.7+

2.5.7 has been released

The guides currently use 2.5.5 but the CI tests for the 2.5.7 upgrade have been failing - Ivan mentioned that in today's meeting. Once that's stable and merged I'll update this PR.

Gotcha

CI passed yesterday for 2.5.7 upgrade and this morning I've restarted it and it worked, so I've merged the PR. I've also merged master branch into this one and CI is running now.

JDK 11 build failed again because of some test failing randomly in the zipkin guide. I've pushed a draft PR to run the test with 2.5.6 (https://github.com/micronaut-projects/micronaut-guides/pull/333) so we can see in which version we've broken this.


Misaligned fetch bit must be excluded for RVC

https://github.com/riscv/riscv-compliance/blob/8dac5e5d3d498eaf576611ce69c2307968cf96e3/riscv-test-env/p/riscv_test.h#L159
This is the same as https://github.com/riscv/riscv-test-env/issues/12

I don't see why it "must" be excluded; if misaligned fetch isn't possible, then either the mdeleg bit is rdonly-0, or the exception never occurs so the fact that you've delegated it is harmless. Do you disagree with this?

I somehow didn't see this so I filed a duplicate of this the other day:
https://github.com/riscv/riscv-test-env/issues/17

I don't see why it "must" be excluded; if misaligned fetch isn't possible, then either the mdeleg bit is rdonly-0, or the exception never occurs so the fact that you've delegated it is harmless. Do you disagree with this?

I think that the original issue description here was unnecessarily terse.  The problem is that the reset code is self-checking and fails if mdeleg[0] is read-only (which you say should be allowable).  Much more discussion is in my duplicate issue.

the new tests from imperas now use a different header file: riscv_tests_macros.h which doesnt impose such reset vectors. Also privilege tests checking traps would probably have specific handlers described within the tests.

closing this for now. Feel free to open if you disagree. Also this is fixed in RISCOF as well.


Accept tzinfo not only 2.x but also 1.x

Which issue(s) this PR fixes:
Fixes #2634
What this PR does / why we need it:
The pull request #2479 enforces using tzinfo ~> 2.0 but it conflicts
with plugins which depend on activesupport such as fluent-plugin-sql
since it requires tzinfo ~> 1.1.
Until activesupport upgrades it, it would be better to accept also
tzinfo 1.x to keep availability of such plugins. Fluentd can accept
both versions of tzinfo since #2479 absorb the difference of their
API.
Docs Changes:
None
Release Note:
None

Does fluentd with tzinfo v1.x passes all tests?
Current CI uses fluentd and tzinfo v2.

Yes, all tests passed with tzinfo 1.x.

Ok, Thanks!


problem in pruning and calculating flops of darts model

Describe the bug:
i used fixed_arch(exported_arch) to get the final darts model, and used ptflops to calculate the model complexity, and got warnings like: Warning: module Conv2d is treated as a zero-op.  and the ptfops couldn't get the flops of the darts model. also, i tried to prun the darts model after retraining, but it failed.
Environment:

NNI version: 2.10
Training service (local|remote|pai|aml|etc): local
Python version: 3.8
PyTorch version:  1.12
Cpu or cuda version: cuda 11.6

Reproduce the problem

Code|Example:

How to reproduce:

Seems to be a dup of #5433

by changing the nni to 2.8, using examples/nas/oneshot/darts/model.py, flops calculation goes well with the DARTS model type "CNN", however, the model speedup in pruning DARTS model failed in the sppedup of the "input_switch",     typeError: call() takes 2 positional arguments but 3 were given

[2023-05-10 14:41:41] start to speedup the model
[2023-05-10 14:41:41] infer module masks...
[2023-05-10 14:41:41] Update mask for stem.0
[2023-05-10 14:41:41] Update mask for stem.1
[2023-05-10 14:41:41] Update mask for cells.0.preproc0.net.0
[2023-05-10 14:41:41] Update mask for cells.0.preproc1.net.0
[2023-05-10 14:41:41] Update mask for cells.0.preproc0.net.1
[2023-05-10 14:41:41] Update mask for cells.0.preproc1.net.1
[2023-05-10 14:41:41] Update mask for cells.0.preproc0.net.2.bn
[2023-05-10 14:41:41] Update mask for cells.0.preproc1.net.2.bn
[2023-05-10 14:41:41] Update mask for cells.0.mutable_ops.0.ops.0.pool
[2023-05-10 14:41:41] Update mask for cells.0.mutable_ops.0.ops.0.bn.bn
[2023-05-10 14:41:41] Update mask for cells.0.mutable_ops.0.input_switch
forward() takes 2 positional arguments but 3 were given
Traceback (most recent call last):
File "/home/Liang.jk/hpo/for_wdcnn/run_trial.py", line 629, in
main(params)
File "/home/Liang.jk/hpo/for_wdcnn/run_trial.py", line 447, in main
ModelSpeedup(net, torch.rand(1, 1, 2048,1).to(device), masks).speedup_model()
File "/home/amax/DATA_HHD/21-Liang.jk/anaconda3/envs/nni_new/lib/python3.8/site-packages/nni/compression/pytorch/speedup/compressor.py", line 536, in speedup_model
self.infer_modules_masks()
File "/home/amax/DATA_HHD/21-Liang.jk/anaconda3/envs/nni_new/lib/python3.8/site-packages/nni/compression/pytorch/speedup/compressor.py", line 371, in infer_modules_masks
self.update_direct_sparsity(curnode)
File "/home/amax/DATA_HHD/21-Liang.jk/anaconda3/envs/nni_new/lib/python3.8/site-packages/nni/compression/pytorch/speedup/compressor.py", line 238, in update_direct_sparsity
_auto_infer = AutoMaskInference(
File "/home/amax/DATA_HHD/21-Liang.jk/anaconda3/envs/nni_new/lib/python3.8/site-packages/nni/compression/pytorch/speedup/infer_mask.py", line 80, in init
self.output = self.module(*dummy_input)
File "/home/amax/DATA_HHD/21-Liang.jk/anaconda3/envs/nni_new/lib/python3.8/site-packages/nni/nas/pytorch/mutables.py", line 55, in call
return super().call(*args, **kwargs)
File "/home/amax/DATA_HHD/21-Liang.jk/anaconda3/envs/nni_new/lib/python3.8/site-packages/torch/nn/modules/module.py", line 1501, in _call_impl
return forward_call(*args, **kwargs)
TypeError: forward() takes 2 positional arguments but 3 were given
Traceback (most recent call last):
File "/home/Liang.jk/hpo/for_wdcnn/run_trial.py", line 629, in
main(params)
File "/home/Liang.jk/hpo/for_wdcnn/run_trial.py", line 447, in main
ModelSpeedup(net, torch.rand(1, 1, 2048,1).to(device), masks).speedup_model()
File "/home/amax/DATA_HHD/21-Liang.jk/anaconda3/envs/nni_new/lib/python3.8/site-packages/nni/compression/pytorch/speedup/compressor.py", line 536, in speedup_model
self.infer_modules_masks()
File "/home/amax/DATA_HHD/21-Liang.jk/anaconda3/envs/nni_new/lib/python3.8/site-packages/nni/compression/pytorch/speedup/compressor.py", line 371, in infer_modules_masks
self.update_direct_sparsity(curnode)
File "/home/amax/DATA_HHD/21-Liang.jk/anaconda3/envs/nni_new/lib/python3.8/site-packages/nni/compression/pytorch/speedup/compressor.py", line 238, in update_direct_sparsity
_auto_infer = AutoMaskInference(
File "/home/amax/DATA_HHD/21-Liang.jk/anaconda3/envs/nni_new/lib/python3.8/site-packages/nni/compression/pytorch/speedup/infer_mask.py", line 80, in init
self.output = self.module(*dummy_input)
File "/home/amax/DATA_HHD/21-Liang.jk/anaconda3/envs/nni_new/lib/python3.8/site-packages/nni/nas/pytorch/mutables.py", line 55, in call
return super().call(*args, **kwargs)
File "/home/amax/DATA_HHD/21-Liang.jk/anaconda3/envs/nni_new/lib/python3.8/site-packages/torch/nn/modules/module.py", line 1501, in _call_impl
return forward_call(*args, **kwargs)
TypeError: forward() takes 2 positional arguments but 3 were given

[2023-05-10 14:41:41] start to speedup the model [2023-05-10 14:41:41] infer module masks... [2023-05-10 14:41:41] Update mask for stem.0 [2023-05-10 14:41:41] Update mask for stem.1 [2023-05-10 14:41:41] Update mask for cells.0.preproc0.net.0 [2023-05-10 14:41:41] Update mask for cells.0.preproc1.net.0 [2023-05-10 14:41:41] Update mask for cells.0.preproc0.net.1 [2023-05-10 14:41:41] Update mask for cells.0.preproc1.net.1 [2023-05-10 14:41:41] Update mask for cells.0.preproc0.net.2.bn [2023-05-10 14:41:41] Update mask for cells.0.preproc1.net.2.bn [2023-05-10 14:41:41] Update mask for cells.0.mutable_ops.0.ops.0.pool [2023-05-10 14:41:41] Update mask for cells.0.mutable_ops.0.ops.0.bn.bn [2023-05-10 14:41:41] Update mask for cells.0.mutable_ops.0.input_switch forward() takes 2 positional arguments but 3 were given Traceback (most recent call last):   File "/home/Liang.jk/hpo/for_wdcnn/run_trial.py", line 629, in <module>     main(params)   File "/home/Liang.jk/hpo/for_wdcnn/run_trial.py", line 447, in main     ModelSpeedup(net, torch.rand(1, 1, 2048,1).to(device), masks).speedup_model()   File "/home/amax/DATA_HHD/21-Liang.jk/anaconda3/envs/nni_new/lib/python3.8/site-packages/nni/compression/pytorch/speedup/compressor.py", line 536, in speedup_model     self.infer_modules_masks()   File "/home/amax/DATA_HHD/21-Liang.jk/anaconda3/envs/nni_new/lib/python3.8/site-packages/nni/compression/pytorch/speedup/compressor.py", line 371, in infer_modules_masks     self.update_direct_sparsity(curnode)   File "/home/amax/DATA_HHD/21-Liang.jk/anaconda3/envs/nni_new/lib/python3.8/site-packages/nni/compression/pytorch/speedup/compressor.py", line 238, in update_direct_sparsity     _auto_infer = AutoMaskInference(   File "/home/amax/DATA_HHD/21-Liang.jk/anaconda3/envs/nni_new/lib/python3.8/site-packages/nni/compression/pytorch/speedup/infer_mask.py", line 80, in __init__     self.output = self.module(*dummy_input)   File "/home/amax/DATA_HHD/21-Liang.jk/anaconda3/envs/nni_new/lib/python3.8/site-packages/nni/nas/pytorch/mutables.py", line 55, in __call__     return super().__call__(*args, **kwargs)   File "/home/amax/DATA_HHD/21-Liang.jk/anaconda3/envs/nni_new/lib/python3.8/site-packages/torch/nn/modules/module.py", line 1501, in _call_impl     return forward_call(*args, **kwargs) TypeError: forward() takes 2 positional arguments but 3 were given Traceback (most recent call last):   File "/home/Liang.jk/hpo/for_wdcnn/run_trial.py", line 629, in <module>     main(params)   File "/home/Liang.jk/hpo/for_wdcnn/run_trial.py", line 447, in main     ModelSpeedup(net, torch.rand(1, 1, 2048,1).to(device), masks).speedup_model()   File "/home/amax/DATA_HHD/21-Liang.jk/anaconda3/envs/nni_new/lib/python3.8/site-packages/nni/compression/pytorch/speedup/compressor.py", line 536, in speedup_model     self.infer_modules_masks()   File "/home/amax/DATA_HHD/21-Liang.jk/anaconda3/envs/nni_new/lib/python3.8/site-packages/nni/compression/pytorch/speedup/compressor.py", line 371, in infer_modules_masks     self.update_direct_sparsity(curnode)   File "/home/amax/DATA_HHD/21-Liang.jk/anaconda3/envs/nni_new/lib/python3.8/site-packages/nni/compression/pytorch/speedup/compressor.py", line 238, in update_direct_sparsity     _auto_infer = AutoMaskInference(   File "/home/amax/DATA_HHD/21-Liang.jk/anaconda3/envs/nni_new/lib/python3.8/site-packages/nni/compression/pytorch/speedup/infer_mask.py", line 80, in __init__     self.output = self.module(*dummy_input)   File "/home/amax/DATA_HHD/21-Liang.jk/anaconda3/envs/nni_new/lib/python3.8/site-packages/nni/nas/pytorch/mutables.py", line 55, in __call__     return super().__call__(*args, **kwargs)   File "/home/amax/DATA_HHD/21-Liang.jk/anaconda3/envs/nni_new/lib/python3.8/site-packages/torch/nn/modules/module.py", line 1501, in _call_impl     return forward_call(*args, **kwargs) TypeError: forward() takes 2 positional arguments but 3 were given

[2023-05-10 14:41:41] start to speedup the model
[2023-05-10 14:41:41] infer module masks...
[2023-05-10 14:41:41] Update mask for stem.0
[2023-05-10 14:41:41] Update mask for stem.1
[2023-05-10 14:41:41] Update mask for cells.0.preproc0.net.0
[2023-05-10 14:41:41] Update mask for cells.0.preproc1.net.0
[2023-05-10 14:41:41] Update mask for cells.0.preproc0.net.1
[2023-05-10 14:41:41] Update mask for cells.0.preproc1.net.1
[2023-05-10 14:41:41] Update mask for cells.0.preproc0.net.2.bn
[2023-05-10 14:41:41] Update mask for cells.0.preproc1.net.2.bn
[2023-05-10 14:41:41] Update mask for cells.0.mutable_ops.0.ops.0.pool
[2023-05-10 14:41:41] Update mask for cells.0.mutable_ops.0.ops.0.bn.bn
[2023-05-10 14:41:41] Update mask for cells.0.mutable_ops.0.input_switch
forward() takes 2 positional arguments but 3 were given
Traceback (most recent call last):
File "/home/Liang.jk/hpo/for_wdcnn/run_trial.py", line 629, in
main(params)
File "/home/Liang.jk/hpo/for_wdcnn/run_trial.py", line 447, in main
ModelSpeedup(net, torch.rand(1, 1, 2048,1).to(device), masks).speedup_model()
File "/home/amax/DATA_HHD/21-Liang.jk/anaconda3/envs/nni_new/lib/python3.8/site-packages/nni/compression/pytorch/speedup/compressor.py", line 536, in speedup_model
self.infer_modules_masks()
File "/home/amax/DATA_HHD/21-Liang.jk/anaconda3/envs/nni_new/lib/python3.8/site-packages/nni/compression/pytorch/speedup/compressor.py", line 371, in infer_modules_masks
self.update_direct_sparsity(curnode)
File "/home/amax/DATA_HHD/21-Liang.jk/anaconda3/envs/nni_new/lib/python3.8/site-packages/nni/compression/pytorch/speedup/compressor.py", line 238, in update_direct_sparsity
_auto_infer = AutoMaskInference(
File "/home/amax/DATA_HHD/21-Liang.jk/anaconda3/envs/nni_new/lib/python3.8/site-packages/nni/compression/pytorch/speedup/infer_mask.py", line 80, in init
self.output = self.module(*dummy_input)
File "/home/amax/DATA_HHD/21-Liang.jk/anaconda3/envs/nni_new/lib/python3.8/site-packages/nni/nas/pytorch/mutables.py", line 55, in call
return super().call(*args, **kwargs)
File "/home/amax/DATA_HHD/21-Liang.jk/anaconda3/envs/nni_new/lib/python3.8/site-packages/torch/nn/modules/module.py", line 1501, in _call_impl
return forward_call(*args, **kwargs)
TypeError: forward() takes 2 positional arguments but 3 were given
Traceback (most recent call last):
File "/home/Liang.jk/hpo/for_wdcnn/run_trial.py", line 629, in
main(params)
File "/home/Liang.jk/hpo/for_wdcnn/run_trial.py", line 447, in main
ModelSpeedup(net, torch.rand(1, 1, 2048,1).to(device), masks).speedup_model()
File "/home/amax/DATA_HHD/21-Liang.jk/anaconda3/envs/nni_new/lib/python3.8/site-packages/nni/compression/pytorch/speedup/compressor.py", line 536, in speedup_model
self.infer_modules_masks()
File "/home/amax/DATA_HHD/21-Liang.jk/anaconda3/envs/nni_new/lib/python3.8/site-packages/nni/compression/pytorch/speedup/compressor.py", line 371, in infer_modules_masks
self.update_direct_sparsity(curnode)
File "/home/amax/DATA_HHD/21-Liang.jk/anaconda3/envs/nni_new/lib/python3.8/site-packages/nni/compression/pytorch/speedup/compressor.py", line 238, in update_direct_sparsity
_auto_infer = AutoMaskInference(
File "/home/amax/DATA_HHD/21-Liang.jk/anaconda3/envs/nni_new/lib/python3.8/site-packages/nni/compression/pytorch/speedup/infer_mask.py", line 80, in init
self.output = self.module(*dummy_input)
File "/home/amax/DATA_HHD/21-Liang.jk/anaconda3/envs/nni_new/lib/python3.8/site-packages/nni/nas/pytorch/mutables.py", line 55, in call
return super().call(*args, **kwargs)
File "/home/amax/DATA_HHD/21-Liang.jk/anaconda3/envs/nni_new/lib/python3.8/site-packages/torch/nn/modules/module.py", line 1501, in _call_impl
return forward_call(*args, **kwargs)
TypeError: forward() takes 2 positional arguments but 3 were given

when the speedup goes to the "input_switch", error occurs

It's not recommended to use v2.8.
Would you try v3.0rc1 and use nni.nas.profiler.pytorch.FlopsProfiler to profile the FLOPs?

It's not recommended to use v2.8.
Would you try v3.0rc1 and use nni.nas.profiler.pytorch.FlopsProfiler to profile the FLOPs?

flops calculation is solved because i use the older version darts implementation, from examples/nas/oneshot/darts/model.py , however, i got another problem, that is in the pruning speedup process, the error will occur when speeding up the "input_ switch" layer of each node.

We can help supporting input_switch layers for the new version. But if you insist on using the older implementation, I think it's unlikely that we will deliver a patch for the old version, which means that you need to implement the support on your own.

Have you tried v3.0rc1?

any updates? @aaskk

Closing it for now.


Fix path for key.pem and cert.pem

Changes:

Corrected home dir for the news user
Cleaned up unnecessary RUN commands
Execute the entrypoint as root so that cert creation can write to /etc/news/ then drop privileges
Tweak the innd start process, more closely matching how launch would occur if innd was started using service inn start.
Added rc.news.local to launch the additional nnrpd process required to handle implicit TLS connections. Given the launch process now uses rc.news this was the best/easiest way to do this. NOTE: I used the same bash scripting style used in rc.local when creating this file.

I see you spotted the sll path bug... I had that in this PR too, but you beat me to it.

There are some more stray tabs in docker-entrypoint.sh, but they are consistent with the existing tabs in the key generation block. So I'm just going to leave them for now.

/docker-entrypoint.sh: 3: .: cannot open lib/news/innshellvars: No such file

% docker build --no-cache --progress plain -t inn . && docker run --rm -it -p119:119 -p563:563 inn
/docker-entrypoint.sh: 3: .: cannot open lib/news/innshellvars: No such file

Resolved... I tried bringing in some changes from your repo on merge conflict and things got a little wacky.

Works on my machine.  Please give me a thumbs up when you are ready.


Adding project BlockAI/ BAI

Adding BAI / BlockAI to ecosystem.json

🟡 Heimdall Review Status

Requirement
Status
More Info

Reviews

🟡
0/1

Denominator calculation

Show calculation

1 if user is bot
0

1 if user is external
0

From .codeflow.yml

1

Additional review requirements

Show calculation

Max
0

0

From CODEOWNERS

0

Global minimum
0

Max

1

1

1 if commit is unverified
0

Sum
1

Review Error for wbnns @ 2024-12-28 12:29:00 UTC
User failed mfa authentication, see go/mfa-help

Updated, let me know if it's ok.

@christopheSeeka Hi, this still needs to be rebased. 🙏

Ok will do, just to be sure is itmy rebase that arewrong or it isbecause thereisnew commitsin between approval time? 😇


JSON RPC Error on net_version

Hi there,
Got the following error during transactions.
Error: Wrong response id "3477728465" (expected: "1") in {"jsonrpc":"2.0","id":1,"method":"net_version","params":[]}
Wonder if there is a particular network id mapping to avoid this.
Environment information
SOLO MODE
Thorify version: thorify version 1.2.0
Web3 version: web3 version 1.0.0-beta.37
Expected behaviour
Detects local thor node, or a default value related to Ethereum.
Actual behaviour
Network ID always different on each transaction compared to 1

I think this is not an error from thorify, method net_version is not supported in thorify. Regarding the network ID, vechain distinguishes networks by chainTag, this is different from ethereum.

Ok maybe it's an error related to web3-gear proxy.

vechain distinguishes networks by chainTag, this is different from ethereum.
Good to know! How i can get this information through web3?

Thanks.

chianTag is the last byte of genesis block id

duplicate of vechain/web3-gear#30


Property Overrides - Version References

Description
Add the ability to use a version ref from the source BOM's TOML as a property override

Codecov Report
Attention: Patch coverage is 58.33333% with 10 lines in your changes are missing coverage. Please review.

Project coverage is 86.43%. Comparing base (7eade49) to head (b448478).

Files
Patch %
Lines

...kotlin/dev/aga/gradle/versioncatalogs/Generator.kt
42.85%
6 Missing and 2 partials :warning:

.../dev/aga/gradle/versioncatalogs/GeneratorConfig.kt
80.00%
0 Missing and 1 partial :warning:

...radle/versioncatalogs/service/FileCatalogParser.kt
66.66%
0 Missing and 1 partial :warning:

Additional details and impacted files
@@             Coverage Diff              @@
##               main      #97      +/-   ##
============================================
- Coverage     88.42%   86.43%   -1.99%
- Complexity       96      104       +8
============================================
  Files            12       13       +1
  Lines           380      398      +18
  Branches         61       65       +4
============================================
+ Hits            336      344       +8
- Misses           15       21       +6
- Partials         29       33       +4

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


Add an ARCHITECTURE.md

I think an ARCHITECTURE.md would also go a long way for getting new contributors up to speed. Even something simple that describes what each crate is for, etc. This looks like an awesome (and very promising) project, and I would love to contribute, but the number of crates and subcrates in this workspace can be a bit overwhelming at first glance. Thanks a lot for your work on the library :)

Oh absolutely! Docs - both on how to contribute and how to use the library - are my personal #1 priority right now.
In the meantime:

the aya crate includes the user space library, that is what is used to load and attach eBPF programs
the xtask crate is an internal crate used to automate some tasks, see https://github.com/matklad/cargo-xtask
aya-gen is a crate (and a binary) used to generate rust bindings from BTF debug info. It's used to generate some internal bindings used by the aya crate, and for some bindings exported by aya-bpf.
aya-bpf is a crate you can use from eBPF programs (so kernel side). It provides a high level API for maps and programs similar to the API aya exports in userspace. It also exports proc_macros you can use to simplify defining programs, eg:

#[classifier(name = "ingress_filter")]
fn tc_cls_ingress_proxy(skb: SkSkbContext) -> i32 {
    match try_tc_cls_ingress_filter(skb) {
        Ok(ret) => ret,
        Err(_) => TC_ACT_OK as i32,
    }
}

aya-bpf-bindings includes generated bindings for bpf-helpers and some common eBPF kernel structs, it's re-exported  by aya-bpf.
aya-bpf-macros includes the proc_macros used to define eBPF programs. Also re-exported by aya-bpf.

Thanks for the high-level explanation, that helps quite a lot. :)


Liquid creates ErrorBlock on specific setup

Liquid can cause the simulation to crash under a very specific setup

place 5 liquid blocks up in the air all on top of each other, like so:

~
~
~
~
~

tick 2-3 times. One of the liquid blocks will become an ErrorBlock, the total liquid will stay the same however.

I'm pretty sure I've found how it breaks. it's this code snippet right here (in classes/block.py)
if len(NoneBlocks) > 0 and average_liquid < self.surface_tension:
  # we can't flow into the None blocks
  blocks_to_move_to = [block for block in blocks_to_move_to if world.world_array[block[1]][block[0]] is not None]
  # recalculate the average liquid (total liquid is the same)
  average_liquid = total_liquid / (len(blocks_to_move_to) + (1 if self.liquid_level > self.threshold else 0))

if the liquid block can only flow to None spaces AND it's liquid level is below the threshold and surface tension, it's possible to have no blocks_to_move_to and not add itself, causing it to divide by 0.

fixed with #2


Library does not install properly on Raspberry Pi

I have tried installing this library on a Raspberry Pi4 via pip3 and it says it installs but when I try to use it it reports
that there is not adafruit_bno8x module
When I look where my python3 modules are stored by pip3, I do not see a folder fo adafruit_bno8x.
there is a folder
adafruit_circuitpython_bno08x-1.0.0.dist-info
but not the actual module.
i have tried installing  it both via
pip3 install adafruit_circuitpython_bno0x8
and
sudo pip3 install adafruit_circuitpython_bno0x8
the results are the same
pip3 install to  ~/.local/lib/python3.7/dist-packages/
sudo pip3 install to /usr/local/lib/python3.7/dist-packages/

The bno08x_simpletest.py script runs normally if I run it from a folder with the adafruit_bno08x library in it.
the bno0x8_more_reports.py script fails with this error
pi@gjnpi4ram4g:~/projects/blinka/bno08x $ python3 bno08x_more_reports.py

		********** Packet *************
DBG::		 HEADER:
DBG::		 Data Len: 19
DBG::		 Channel: INPUT_SENSOR_REPORTS (3)
DBG::		 	Report Type: BASE_TIMESTAMP (0xfb)
DBG::		 Sequence number: 170

DBG::		 Data:
DBG::		[0x04] 0xFB 0x47 0x00 0x00
DBG::		[0x08] 0x00 0xFF 0xFF 0xFF
DBG::		[0x0C] 0xFF 0xFF 0xFF 0xFF
DBG::		[0x10] 0xFF 0xFF 0xFF 0xFF
DBG::		[0x14] 0xFF 0xFF 0xFF
		*******************************

Traceback (most recent call last):
  File "bno08x_more_reports.py", line 22, in <module>
    bno.enable_feature(adafruit_bno08x.BNO_REPORT_ACTIVITY_CLASSIFIER)
  File "/home/pi/projects/blinka/bno08x/adafruit_bno08x/__init__.py", line 975, in enable_feature
    self._process_available_packets(max_packets=10)
  File "/home/pi/projects/blinka/bno08x/adafruit_bno08x/__init__.py", line 783, in _process_available_packets
    self._handle_packet(new_packet)
  File "/home/pi/projects/blinka/bno08x/adafruit_bno08x/__init__.py", line 841, in _handle_packet
    raise error
  File "/home/pi/projects/blinka/bno08x/adafruit_bno08x/__init__.py", line 836, in _handle_packet
    _separate_batch(packet, self._packet_slices)
  File "/home/pi/projects/blinka/bno08x/adafruit_bno08x/__init__.py", line 351, in _separate_batch
    required_bytes = _report_length(report_id)
  File "/home/pi/projects/blinka/bno08x/adafruit_bno08x/__init__.py", line 342, in _report_length
    return _REPORT_LENGTHS[report_id]
KeyError: 255

on a raspi you may have to use clockstretching hacks

Ah- will look into clock stretching.
But there is still something wrong with the pip install...

I think the pip install issue is inside the setup.py file here: https://github.com/adafruit/Adafruit_CircuitPython_BNO08x/blob/cac28f28159fa0a5bcee29227179ad5a45156ddf/setup.py#L58
I think it needs to be changed to packages instead of py_modules and it should fix installing via pip.

@FoamyGuy Is right; I'll take care of this later today

fixed with #6


dask worker is not saving in correct path

Versions
dask==2.2.0
distributed==2.2.0
code
import dask
import dask.dataframe as dd

import pandas as pd
import numpy as np

from dask.distributed import Client
client = Client('localhost:32000')
client

import os
import datetime

df = dask.datasets.timeseries(freq='1s')
df

if not os.path.exists('data2'):
    os.mkdir('data2')

def name(i):
    """ Provide date for filename given index

    Examples
    --------
    >>> name(0)
    '2000-01-01'
    >>> name(10)
    '2000-01-11'
    """
    return str(datetime.date(2000, 1, 1) + i * datetime.timedelta(days=1))

df.to_csv('data2/*.csv', name_function=name)
df = dd.read_csv('data2/2000-*-*.csv')

This code does not work in dask==2.2.0 but works in dask==2.1.0 (both with distributed 2.2.0, and that's why I'm opening the issue here). I should emphasize that I'm running this in a distributed cluster (kubernetes) but the same thing would happen would probably happen if I would run a LocalCluster where the workers would be initialized in a different path where the scheduler is running.
Basically what's happening is that each worker is creating a data2/*.csv on his "home" path and not in the path referenced by the scheduler (as it was done in dask==2.1.0)

You would be better off using absolute paths every time to avoid the ambiguity. What path is set as the process CWD depends on the method to launch the process.

I don't think that we can expect users to know this ahead of time.
Historically we've converted things to absolute paths for them.  Is this no
longer the case?
On Fri, Aug 2, 2019 at 11:55 AM Martin Durant<EMAIL_ADDRESS>wrote:

You would be better off using absolute paths every time to avoid the
ambiguity. What path is set as the process CWD depends on the method to
launch the process.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/dask/dask/issues/5210?email_source=notifications&email_token=AACKZTDWTSLB33KWL6DFBB3QCR7L3A5CNFSM4II4LV72YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD3OSIOY#issuecomment-517809211,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AACKZTE2QKAFK4US2UXVOPTQCR7L3ANCNFSM4II4LV7Q
.

The FS implementation does convert to absolute path for all operations (code), so actually I can't see how the path remains relative. Could it be
if not os.path.exists('data2'):
    os.mkdir('data2')

the directory is being made in different places and then not found? This is circumventing anything that Dask or fsspec does.

The directory is being made only once, here in this process.
Then we call to_csv with that same relative path.  We should turn it into an absolute path at this point and make sure that the paths in the task graph are absolute.  Same with read_csv.

Also true for a kubernetes cluster?
Trying:
In [11]: df = dd.read_csv("2006*.csv", blocksize=None)
In [13]: df.dask['read-block-0-52bb4da1715feca8b6eb7e995d19ed9f']
Out[13]:
(<function dask.bytes.core.read_block_from_file(lazy_file, off, bs, delimiter)>,
 <OpenFile '/Users/mdurant/data/airlines-csv/2006.csv'>,
 0,
 None,
 b'\n')

In [14]: com = df.to_csv('out*.csv', compute=False)
In [18]: com[0].dask['_write_csv-49902057-c47d-4b86-a5cc-8b4bf2bdd1f2']
Out[18]:
(<function dask.dataframe.io.csv._write_csv(df, fil, **kwargs)>,
 ('from-delayed-513aaa950376a34ebd5df7171ae76f0f', 0),
 <OpenFile '/Users/mdurant/data/airlines-csv/out0.csv'>)

the paths are all absolute.

Well then I don't know.  @RodrigoNeves95 are your machines on the same filesystem?

Yes, I'm currently using CephFS. What for me is most difficult to understand is why this is currently working for me in dask==2.1.0 but not in dask==2.2.0. I have been using relative paths for a long time and everything should work. And I agree with @mrocklin that user should not know that in advance.
Something that I did not check was FS versions. I will do it and give more info here!

I'm leaving here dask graph output
dask 2.2.0 + fsspec 0.4.0
save_df = df.to_csv('data2/*.csv', name_function=name, compute=False)

save_df[0].dask['_write_csv-ee04281c-41c1-4824-a2c6-de531ef0de94']

(<function dask.dataframe.io.csv._write_csv(df, fil, **kwargs)>,
 ('make-timeseries-808a2fd41a385a1db4e0cc435b7ba44e', 0),
 <OpenFile 'data2/2000-01-01.csv'>)

dask 2.1.0
save_df = df.to_csv('data2/*.csv', name_function=name, compute=False)

save_df[0].dask['_write_csv-0bb3d92a-ff23-425d-aeca-bcc4a44f0d97']
(<function dask.dataframe.io.csv._write_csv(df, fil, **kwargs)>,
 ('make-timeseries-f9b7bf1ff69a38252e07099d4337b840', 0),
 <dask.bytes.core.OpenFile at 0x7fd4202c5110>)

It's possible to see that dask 2.2.0 is using a relative path (different behaviour from @martindurant).  Which other libs can have an impact on this?

OK, I have a reproducer and I'm looking at it now.


Feature/basic tests

Adding some tests, there are some that are red :scream_cat: , i.e the code needs to be changed to make them green (if you agree with their premises).

Oh, and I shuffled file around a bit, so test to make sure stuff still works!

Agree with the premise :-)
I see you've mentioned a file settingspec.example.yaml but it's not in the PR - missing git add?

Fixed that "missing file" - it was a search/replace error..

So it's been tested, then?

I wouldn't go that far... but I need to merge it before I can properly test it.

OK have made some fixes including app changes to handle various invalid config files better and have committed along with this merge into master.

Cool :)

Oh, in regards to 'need to merge before testing can be done', should this project start using the 'git flow' branching more officially?
I.e. master is always the clean, production ready code, develop is where you merge in new stuff and feature/<foo> (usually in a forked repo) is how you do new features.
If you think this is a good plan, just make a develop branch and I'll target future PRs to it, rather than master.


Assert output size of max_pooling_2d in GPU cases

In the CPU code of max_pooling_2d, the size of the expected output is checked before calculation (in chainer/utils/conv.py) so that the output never becomes a 0-dimentional tensor.
However, this check is missing in the GPU code (with and without cudnn) and thus passing an invalid input to max_pooling_2d.py yields a very un-friendly error as exampled below.
This PR adds assertions that check the output size of max_pooling_2d for GPU cases, and also improves the tests to check the added behavior.
Sample output before this PR is applied:
>>> import chainer
>>> x_data = chainer.cuda.cupy.random.rand(4, 4, 1, 4)
>>> x = chainer.Variable(x_data)
>>> chainer.functions.max_pooling_2d(x, 3, stride=2)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/soramichi/src/anaconda3/lib/python3.6/site-packages/chainer/functions/pooling/max_pooling_2d.py", line 175, in max_pooling_2d
    return MaxPooling2D(ksize, stride, pad, cover_all, use_cudnn)(x)
  File "/home/soramichi/src/anaconda3/lib/python3.6/site-packages/chainer/function.py", line 199, in __call__
    outputs = self.forward(in_data)
  File "/home/soramichi/src/anaconda3/lib/python3.6/site-packages/chainer/function.py", line 310, in forward
    return self.forward_gpu(inputs)
  File "/home/soramichi/src/anaconda3/lib/python3.6/site-packages/chainer/functions/pooling/max_pooling_2d.py", line 32, in forward_gpu
    return super(MaxPooling2D, self).forward_gpu(x)
  File "/home/soramichi/src/anaconda3/lib/python3.6/site-packages/chainer/functions/pooling/pooling_2d.py", line 65, in forward_gpu
    y_desc = cudnn.create_tensor_descriptor(y)
  File "/home/soramichi/src/anaconda3/lib/python3.6/site-packages/cupy/cudnn.py", line 78, in create_tensor_descriptor
    cudnn.setTensor4dDescriptor(desc.value, format, data_type, *arr.shape)
  File "cupy/cuda/cudnn.pyx", line 444, in cupy.cuda.cudnn.setTensor4dDescriptor (cupy/cuda/cudnn.cpp:2967)
  File "cupy/cuda/cudnn.pyx", line 449, in cupy.cuda.cudnn.setTensor4dDescriptor (cupy/cuda/cudnn.cpp:2833)
  File "cupy/cuda/cudnn.pyx", line 392, in cupy.cuda.cudnn.check_status (cupy/cuda/cudnn.cpp:2017)
cupy.cuda.cudnn.CuDNNError: CUDNN_STATUS_BAD_PARAM: b'CUDNN_STATUS_BAD_PARAM'

Thank you for the review.
I removed the decorators as suggested, but I don't really know why they are not required. Is it because the test cases do not use to_gpu??

Oh sorry, I guess you meant @condition.retry(3) is redundant because the added tests are deterministic, but your comment was not about @gpu and @cudnn.
I re-introduced @gpu and @cudnn, and now only @condition.retry(3) is removed.

LGTM!


Add new Lint/PreferAllowlistDenylist cop

What
Introduce new Cop, Lint/PreferAllowlistDenylist, which fails on instances of "whitelist" and "blacklist" in a codebase and suggests using "allowlist" and "denylist" instead.
Why
"whitelist" and "blacklist" are considered to be harmful language, and many organizations have begun to replace their usage. My organization needed to do the same thing, but found that socialization alone was insufficient to prevent new instances from being introduced. We wrote this cop for our own organization and thought others might find it useful as well. We can open-source our own cop, but would like to leverage the larger community around the official Rubocop repo in order to more quickly accelerate inclusive language in the Ruby community.

[x] Wrote good commit messages.
[x] Commit message starts with [Fix #issue-number] (if the related issue exists).
[x] Feature branch is up-to-date with master (if not - rebase it).
[x] Squashed related commits together.
[x] Added tests.
[x] Added an entry to the Changelog if the new code introduces user-observable changes. See changelog entry format.
[x] The PR relates to only one subject with a clear title and description in grammatically correct, complete sentences.
[x] Run bundle exec rake default. It executes all tests and RuboCop for itself, and generates the documentation.

This topic was discussed a few times in the past (I have to dig up some old conversations) and I strongly feel it's better to have a more generic cop that targets multiple problematic names (via configuration), instead of having a cop for each of them.

@bbatsov fine by me, but I don't know how to write that. Do you have suggestions for resources explaining how to get started?

I guess you can check the code of Naming/MethodParameterName to see an example of using configuration to provide a forbidden list of names.

I'm closing this PR due to no recent activity. Feel free to re-open it if you ever come back to it.


Exception information is stripped from license Id

LicenseIDs with exceptions are deprecated and to be replaced using the WITH operator (https://spdx.org/licenses/exceptions-index.html).
This script however simply strips the exception information (./blob/master/export_spdx/spdx.py)
Example:
'GPL-2.0-with-classpath-exception' will turn to 'GPL-2.0-only'

This script has been deprecated as stated in the Readme.
It is OSS provided without warranty or liability, so if you encounter a problem you are welcome to investigate and propose a fix/change as a pull request.
Thanks


I'll try that one again

Either way works for me. Do you want me to make the modification?

Yes.  That way we'll get tests for streamz.dataframe as well and future
modules won't need to update this list.
On Thu, May 10, 2018 at 1:27 PM, Christopher J. Wright <
<EMAIL_ADDRESS>wrote:

Either way works for me. Do you want me to make the modification?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/mrocklin/streamz/pull/175#issuecomment-388124237, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AASszHzggVUohXCb-LO-IOrGa1ASlm6Aks5txHhpgaJpZM4T6POB
.

@mrocklin I think this may be ready to go?

Grand.  Thanks @CJ-Wright !  Sorry again for my snafu!

Thank you!


Vip 556 clean feed url

In current datafeed.txt, the only character that matches the regex shown below is the comma in the D.C. feed name

@danny-pease added logging; local dataprocessor is not uploading to s3 but saving file locally using the zip-filename method is working as expected.


test

          Can we get an update on this or get it scheduled for an upcoming release?

While it doesn't seem to cause any issues. it does cause the red squiggles and also adds the following item to the problems window:

it is worth noting that the project build from ADS is clean with no warnings or errors
for reference here is my code:
CREATE TABLE [dbo].[table1] (
[column1]           BIGINT        IDENTITY (1, 1) NOT NULL,
)
WITH (CLUSTERED INDEX([colum1]), DISTRIBUTION = REPLICATE);
Originally posted by @jasonhorner in https://github.com/microsoft/SqlParser/issues/9#issuecomment-1890177726

test


feat(STONEINTG-577): remove v1alpha1 ITS from e2e

Signed-off-by: Jiri Sztuka<EMAIL_ADDRESS>*Reverting webhook changes, since we will have only one version of CR
Description
Please include a summary of the changes and the related issue. Please also include relevant motivation and context. List any dependencies that are required for this change.
Issue ticket number and link
Type of change

[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] This change requires a documentation update

How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration
Checklist:

[ ] I have performed a self-review of my code
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[ ] I have added meaningful description with JIRA/GitHub issue key(if applicable), for example HASSuiteDescribe("STONE-123456789 devfile source")
[ ] I have updated labels (if needed)

/retest


Preview not working

Describe the bug
When I click on the preview it is blank. I have tried different browsers.

Link to the Bolt URL that caused the error
https://bolt.new/~/bolt-shadcn-gtnnvm
Steps to reproduce
Clicking on preview
Expected behavior
I should see the preview
Screenshots
No response
Platform
Browser name = Safari
Full version = 18.0
Major version = 18
navigator.appName = Netscape
navigator.userAgent = Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.0 Safari/605.1.15
performance.memory = undefined
Username = LeonlogicStudio
Chat ID = 0f934a3c990d

Additional context
Message:
I've successfully imported your project. I'm ready to assist you with analyzing and improving your code.

Check all the generated files by the AI, they might be empty. I had such an issue that clears the content of generated files other than the last one opened, and you may need open them and undo by Ctrl+Z (or Cmd+Z).
If this does not work, it means this is not the same as my issue, then check the developer console and try to give an error log.

This issue was caused by a Remix React SSR Hydration mismatch, because a browser extension (or this browser itself) modified the dom. We've just shipped a fix, feel free to test and report back

Works now!

@samdenty https://bolt.new/~/sb1-jlbws2 the preview is not working. Is it a browser issue I am using Safari

@LeonlogicStudio  that project loaded on my browser, but after a little waiting. I guess files had never been fetched to your browser before, and your network might be slow at the moment. give it some time. open developer tools and watch network if browser is active for the page.


RHBIND : error RHB0002: Failed to write PDB - Xamarin Forms UWP

Hi team,
Requesting assistance to fix the above mentioned error in Xamarin forms UWP build.
I am developing an Xamarin forms application, which uses multiple nuget packages referred to the UWP project. When I try to release the application, I am getting the following error in azure pipeline
_

2020-06-05T14:13:25.2731045Z   C:\Program Files (x86)\Microsoft SDKs\UWPNuGetPackages\microsoft.net.native.compiler\2.2.7-rel-27913-00\tools\Microsoft.NetNative.targets(801,5): error : RHBIND : error RHB0002: Failed to write PDB. [E:\BuildAgents\WD-DailyAgent-Pool\WD-DailyAgent-1_work\1\s\MyProject.UWP\MyProject.UWP.csproj]
2020-06-05T14:13:25.2734238Z   C:\Program Files (x86)\Microsoft SDKs\UWPNuGetPackages\microsoft.net.native.compiler\2.2.7-rel-27913-00\tools\Microsoft.NetNative.targets(801,5): error : ILT0005: 'C:\Program Files (x86)\Microsoft SDKs\UWPNuGetPackages\runtime.win10-arm.microsoft.net.native.compiler\2.2.7-rel-27913-00\tools\ARM\ilc\Tools\rhbind.exe @"E:\BuildAgents\WD-DailyAgent-Pool\WD-DailyAgent-1_work\1\s\MyProject.UWP\obj\arm\Release\ilc\intermediate\rhbindargs.MyProject.UWP.rsp"' returned exit code 2 [E:\BuildAgents\WD-DailyAgent-Pool\WD-DailyAgent-1_work\1\s\MyProject.UWP\MyProject.UWP.csproj]

_
I have followed all the scenarios from this URL below, but still we are not able fix the issue.
https://developercommunity.visualstudio.com/content/problem/664053/rhbind-error-rhb0002-in-generating-xamarin-forms-u.html
Please find some finding in our investigation

If I change nuget packages to project references, build succeeds
When I refer all assemblies as nuget packages, then the build fails
When I exclude one or two nuget packages, then the build succeeds
When I comment out the “Dynamic required all” or set “Dynamic Auto” behavior, application builds, but it struck in the splash screen.
I tried to include all assemblies directly instead of , but the application fails with msbuild error.
Included ShortcutGenericAnalysis  as true and
UseDotNetNativeSharedAssemblyFrameworkPackage  as false. But still the build fails

Thanks, looking for some solution to get through this issue, as we are blocked completely and not able to release the application for UWP.

Could you please report this through the mechanism described here (the ".NET Native for UWP Support" section)? People in charge of .NET Native don't monitor this repo.


Clarify that node definitions only work in bolt apply

Node definitions in apply() blocks depends on a change in Puppet which is
not yet released and so is not yet functional.
Also moved that changelog entry into Bolt NEXT since it hasn't actually been
released yet. It was added to Bolt 1.44.0 as part of an automatic merge
resolution gone awry.

Sorry, this (appropriately) needs a CHANGELOG rebase since I merged Tom's PR.

Rebased!

CLA signed by all contributors.


Fix EXE path when generating Krew plugin.

What type of PR is this?
/kind cleanup
What this PR does / why we need it:
This fixes the Krew plugin path for Windows EXEs.
Does this PR introduce a user-facing change?:

NONE

[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: jbarrick-mesosphere
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

OWNERS [jbarrick-mesosphere]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

/cc @alenkacz @kensipe

[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: jbarrick-mesosphere, kensipe
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

OWNERS [jbarrick-mesosphere,kensipe]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

/lgtm


Selection display now properly resets when a deselection event is raised

Coverage increased (+0.003%) to 90.759% when pulling 509fa55d6947aa975fbf5446f0fbc9dd1ce9ba70 on khooroko:Fix_selection_display_deselection into c49d8e983a6d9076e6e5ab8c8ed43298dc70c841 on CS2103AUG2017-T17-B1:master.