Many exports not found

I'm trying to use wouter in place of react-router. I'm having problems soon as I import anything from the wouter package. I get 18 errors that look like the below. I've reproduced a minimum working example in [this repository] (https://github.com/johnrichardrinehart/wouter). To reproduce locally it should be sufficient to git clone that repository and then yarn run. Please note that I'm using yarn berry. So, a hopefully comprehensive set of instructions to reproduce would be:

git clone https://github.com/johnrichardrinehart/wouter
yarn set version berry (assuming yarn is installed already)
yarn install (dependencies are cached in my repo, but it's good to make sure)
yarn run build (look at all the errors... should look like below)

Please let me know what I can do to help us debug this issue.
ERROR in ./.yarn/$$virtual/wouter-virtual-21dacc859c/0/cache/wouter-npm-2.6.0-237130b851-d80392b074.zip/node_modules/wouter/index.js 23:18-31
export 'createContext' (imported as 'createContext') was not found in './react-deps.js' (possible exports: )
 @ ./src/index.js 4:0-31 7:42-47

ERROR in ./.yarn/$$virtual/wouter-virtual-21dacc859c/0/cache/wouter-npm-2.6.0-237130b851-d80392b074.zip/node_modules/wouter/index.js 32:20-30
export 'useContext' (imported as 'useContext') was not found in './react-deps.js' (possible exports: )
 @ ./src/index.js 4:0-31 7:42-47

ERROR in ./.yarn/$$virtual/wouter-virtual-21dacc859c/0/cache/wouter-npm-2.6.0-237130b851-d80392b074.zip/node_modules/wouter/index.js 51:17-23
export 'useRef' (imported as 'useRef') was not found in './react-deps.js' (possible exports: )
 @ ./src/index.js 4:0-31 7:42-47

ERROR in ./.yarn/$$virtual/wouter-virtual-21dacc859c/0/cache/wouter-npm-2.6.0-237130b851-d80392b074.zip/node_modules/wouter/index.js 63:14-20
export 'useRef' (imported as 'useRef') was not found in './react-deps.js' (possible exports: )
 @ ./src/index.js 4:0-31 7:42-47

ERROR in ./.yarn/$$virtual/wouter-virtual-21dacc859c/0/cache/wouter-npm-2.6.0-237130b851-d80392b074.zip/node_modules/wouter/index.js 70:9-10
export 'createElement' (imported as 'h') was not found in './react-deps.js' (possible exports: )
 @ ./src/index.js 4:0-31 7:42-47

ERROR in ./.yarn/$$virtual/wouter-virtual-21dacc859c/0/cache/wouter-npm-2.6.0-237130b851-d80392b074.zip/node_modules/wouter/index.js 85:24-25
export 'createElement' (imported as 'h') was not found in './react-deps.js' (possible exports: )
 @ ./src/index.js 4:0-31 7:42-47

ERROR in ./.yarn/$$virtual/wouter-virtual-21dacc859c/0/cache/wouter-npm-2.6.0-237130b851-d80392b074.zip/node_modules/wouter/index.js 97:22-33
export 'useCallback' (imported as 'useCallback') was not found in './react-deps.js' (possible exports: )
 @ ./src/index.js 4:0-31 7:42-47

ERROR in ./.yarn/$$virtual/wouter-virtual-21dacc859c/0/cache/wouter-npm-2.6.0-237130b851-d80392b074.zip/node_modules/wouter/index.js 121:14-28
export 'isValidElement' (imported as 'isValidElement') was not found in './react-deps.js' (possible exports: )
 @ ./src/index.js 4:0-31 7:42-47

ERROR in ./.yarn/$$virtual/wouter-virtual-21dacc859c/0/cache/wouter-npm-2.6.0-237130b851-d80392b074.zip/node_modules/wouter/index.js 121:52-53
export 'createElement' (imported as 'h') was not found in './react-deps.js' (possible exports: )
 @ ./src/index.js 4:0-31 7:42-47

ERROR in ./.yarn/$$virtual/wouter-virtual-21dacc859c/0/cache/wouter-npm-2.6.0-237130b851-d80392b074.zip/node_modules/wouter/index.js 123:9-21
export 'cloneElement' (imported as 'cloneElement') was not found in './react-deps.js' (possible exports: )
 @ ./src/index.js 4:0-31 7:42-47

ERROR in ./.yarn/$$virtual/wouter-virtual-21dacc859c/0/cache/wouter-npm-2.6.0-237130b851-d80392b074.zip/node_modules/wouter/index.js 136:6-20
export 'isValidElement' (imported as 'isValidElement') was not found in './react-deps.js' (possible exports: )
 @ ./src/index.js 4:0-31 7:42-47

ERROR in ./.yarn/$$virtual/wouter-virtual-21dacc859c/0/cache/wouter-npm-2.6.0-237130b851-d80392b074.zip/node_modules/wouter/index.js 145:13-25
export 'cloneElement' (imported as 'cloneElement') was not found in './react-deps.js' (possible exports: )
 @ ./src/index.js 4:0-31 7:42-47

ERROR in ./.yarn/$$virtual/wouter-virtual-21dacc859c/0/cache/wouter-npm-2.6.0-237130b851-d80392b074.zip/node_modules/wouter/index.js 155:2-17
export 'useLayoutEffect' (imported as 'useLayoutEffect') was not found in './react-deps.js' (possible exports: )
 @ ./src/index.js 4:0-31 7:42-47

ERROR in ./.yarn/$$virtual/wouter-virtual-21dacc859c/0/cache/wouter-npm-2.6.0-237130b851-d80392b074.zip/node_modules/wouter/react-deps.js 1:0-12:15
Module not found: Error: Can't resolve 'react' in '/home/john/Downloads/repos/temp/.yarn/$$virtual/wouter-virtual-21dacc859c/0/cache/wouter-npm-2.6.0-237130b851-d80392b074.zip/node_modules/wouter'
Did you mean 'index.js'?
BREAKING CHANGE: The request 'react' failed to resolve only because it was resolved as fully specified
(probably because the origin is a '*.mjs' file or a '*.js' file where the package.json contains '"type": "module"').
The extension in the request is mandatory for it to be fully specified.
Add the extension to the request.
 @ ./.yarn/$$virtual/wouter-virtual-21dacc859c/0/cache/wouter-npm-2.6.0-237130b851-d80392b074.zip/node_modules/wouter/index.js 4:0-13:25 23:18-31 32:20-30 51:17-23 63:14-20 70:9-10 85:24-25 97:22-33 121:14-28 121:52-53 123:9-21 136:6-20 145:13-25 155:2-17
 @ ./src/index.js 4:0-31 7:42-47

ERROR in ./.yarn/$$virtual/wouter-virtual-21dacc859c/0/cache/wouter-npm-2.6.0-237130b851-d80392b074.zip/node_modules/wouter/use-location.js 12:25-33
export 'useState' (imported as 'useState') was not found in './react-deps.js' (possible exports: )
 @ ./.yarn/$$virtual/wouter-virtual-21dacc859c/0/cache/wouter-npm-2.6.0-237130b851-d80392b074.zip/node_modules/wouter/index.js 1:0-45 26:9-21
 @ ./src/index.js 4:0-31 7:42-47

ERROR in ./.yarn/$$virtual/wouter-virtual-21dacc859c/0/cache/wouter-npm-2.6.0-237130b851-d80392b074.zip/node_modules/wouter/use-location.js 13:19-25
export 'useRef' (imported as 'useRef') was not found in './react-deps.js' (possible exports: )
 @ ./.yarn/$$virtual/wouter-virtual-21dacc859c/0/cache/wouter-npm-2.6.0-237130b851-d80392b074.zip/node_modules/wouter/index.js 1:0-45 26:9-21
 @ ./src/index.js 4:0-31 7:42-47

ERROR in ./.yarn/$$virtual/wouter-virtual-21dacc859c/0/cache/wouter-npm-2.6.0-237130b851-d80392b074.zip/node_modules/wouter/use-location.js 15:2-11
export 'useEffect' (imported as 'useEffect') was not found in './react-deps.js' (possible exports: )
 @ ./.yarn/$$virtual/wouter-virtual-21dacc859c/0/cache/wouter-npm-2.6.0-237130b851-d80392b074.zip/node_modules/wouter/index.js 1:0-45 26:9-21
 @ ./src/index.js 4:0-31 7:42-47

ERROR in ./.yarn/$$virtual/wouter-virtual-21dacc859c/0/cache/wouter-npm-2.6.0-237130b851-d80392b074.zip/node_modules/wouter/use-location.js 40:19-30
export 'useCallback' (imported as 'useCallback') was not found in './react-deps.js' (possible exports: )
 @ ./.yarn/$$virtual/wouter-virtual-21dacc859c/0/cache/wouter-npm-2.6.0-237130b851-d80392b074.zip/node_modules/wouter/index.js 1:0-45 26:9-21
 @ ./src/index.js 4:0-31 7:42-47

webpack 5.9.0 compiled with 18 errors in 888 ms

Could be related to https://github.com/webpack/webpack/issues/11467#issuecomment-691702706

After some digging, I found that the issue is most probably in yarn/berry and the way it packages dependencies. If I install it with regular Yarn, everything works fine.
The source of the problem: wouter declares itself as "type": "module" in package.json, which means that all the relative import must have an extension:
import foo from "./foo" // will not work!
import foo from "./foo.js" // this will

And if you look at the source code of the library, we follow that rule. However, when it comes to the third-party dependencies like "react" there is no way to use a full path to the file. Node.js figures that and processes third-party imports differently.
It seems like for some reason Webpack thinks that "react" is local file rather than a package.
I would recommend looking at this thread:
https://github.com/webpack/webpack/issues/11467#issuecomment-735347195

I tried all of the suggestions in webpack/webpack#11467 but I had no luck.
I've filed yarnpkg/berry#2194 because I have no idea what the problem is.

@johnrichardrinehart There is one approach you can use in order to make sure it isn't wouter's issue: find another package that comes with ES-modules exports (basically, its package.json should contain "type": "module") and import it in your playground.
https://github.com/Polymer/lit-element ?

I'm importing another package that's doing something similar. It has something like
, "module": <path>,
in its package.json. So, no root.type === "module" but root.module == <path>. Does root.module being set to a string automatically configure the type as a module?

That isn't the same. module: "path" is a non-standard way of telling where Webpack (or any other bundler that follows the same convention) could find a source with ES-module style imports.
type: "module" at the other hand, is a Node.js standard of declaring that the package uses ES-module import/exports:
https://nodejs.org/api/packages.html#packages_node_js_package_json_field_definitions

is a non-standard way of telling Webpack ...

Okay, I looked at the reference you sent me. I'm still not clear on whether CommonJS or ES Modules are the preferred way of developing JavaScript libraries moving forward (or if they each have their place), but I understand the role of "type" and "module" root-level keys.
I just tried berry with Poylmer/lit-element against the latest version (2.4.0, which includes  type: module in its package.json). No issues.

Okay, this was a webpack configuration problem. I had two issues, so that link didn't provide my entire solution. I had to remove <root>.module.rules.exclude = /node_modules/ which was inhibiting some module resolution base on path. I also needed to add <root>.module.rules.resolve = {fullySpecified: false}. So the relevant portion of webpack.config.js now looks like
module.exports = {
  mode: "development",
  // The below key:object format is used to force the css faile to be named "index.css" instead
  // of the default "main.css"
  // C.f.: https://github.com/webpack/webpack/blob/d870365/lib/EntryOptionPlugin.js#L44
  // and https://stackoverflow.com/questions/60139960/why-is-name-always-main-in-minicssextractplugin-for-webpack
....................
  module: {
    rules: [
      {
        test: /\.(js|jsx)$/,
        resolve: {fullySpecified: false},
        use: {
          loader: "babel-loader"
        }
      },
    ]
  },
....................
};

I've reviewed your repository. You conform to the latest standard in using extensions on your local imports. I'm not sure why webpack thinks it's a local import. I'll flag an issue over there if I can't figure out what's going on.
Thanks for your help @molefrog . Sorry to bother you with an issue that wasn't your fault.

Not at all @johnrichardrinehart! Thanks for bringing this up and glad you found the root of the problem 😄
Happy wouting!

In case you're awake and want to do this before I can: https://github.com/webpack/webpack/issues/12093#issuecomment-736587220 .

Yarn devs have managed to resolve this by modifying your package.json. https://github.com/yarnpkg/berry/issues/2199#issuecomment-736681587
What's the purpose of defining the module exports in package.json ?


Don't recommend jsobject, recommend addict

Addict does the same thing - way more popular, and probably actually works.
https://github.com/mewwts/addict

Addict is at the top of the Data Structure section ... I moved jsobject to the same section, below addict. Hope this helps.


Improve Curator

There are several improvements that should be done to the Curator.
More automation:

[ ] automatically bump purescript-metadata version whenever there's a new release of the compiler
[ ] automatically bump purescript-docs-search version here whenever there's a new release

Changes to the existing behaviour:

[ ] rehaul the logging: we want to log less by default, probably also log everything to file, have contextual logs (we have a bunch of threads and it would be useful to know who logs what), etc. Probably worth checking out rio logging for this

Things happening in #458:

[x] clone the relevant repos only when making changes to them instead of doing it at start. This is because then we can just trash the repo if there are issues instead of trying to cleanup (which still fails sometimes, and then we get into broken state)
[x] do only one PR a day to package-sets instead of one for every package. This is to reduce annoyance
[x] open PRs even for broken verifications, so we can inspect what's up. This means also keeping a list of "packages that are skipped", because then we can get green CI again
[x] stop opening PRs if the state is broken, so it doesn't get annoying

Improvements should go in later after the rehaul of the logging, some of which is happening in #475

This is done now that #486 is done. There are the "new features" listed in the beginning, but we can add them easily as we go, so no need to track this anymore


Use Case 7 : Onboard New Team Members

User Story
As a new team member, I want to understand the project’s goals, architecture, and my responsibilities so that I can contribute effectively to the project.
Description
This use case describes how new team members are onboarded and trained to understand the project, its architecture, and their role within the team.
New team members must be brought up to speed on the project, including technical aspects, workflows, and team processes, to ensure smooth collaboration and efficient progress.
Acceptance Criteria

[x] New team members receive a project overview (goals, architecture, milestones).
[x]  New members are introduced to the project’s tools (GitHub, CI/CD, communication tools).
[x]  Each new team member is assigned a mentor for support.
[x]  New members review documentation and attend standup meetings to get familiar with ongoing tasks.
[x]  New team members are able to start contributing to the project within a reasonable timeframe (e.g., after the first week).

Testing
Normal Flow of Events
Team lead or project manager provides an overview of the project to new members (e.g., goals, architecture, key milestones).
New team members are introduced to the tools used in the project (e.g., GitHub, CI/CD, task management, communication channels).
Team lead assigns a mentor or buddy from the team to help the new member.
The new team member reviews project documentation (e.g., SRS, architecture diagrams, workflows).
New members attend a team standup meeting to get familiar with the current tasks.
New team members start working on a small task or review existing work to understand the project workflow.
Alternate/Exceptional Flows:
S-1:   New team member has trouble understanding the project
The new team member struggles to grasp the project's complexity.
The mentor/buddy provides additional support, including walkthroughs or technical sessions.
S-2:  Lack of documentation or resources
The new team member finds that some key project documentation is outdated or missing.
The team lead ensures documentation is updated or assigns a team member to fill the gaps.

Issue Closed
New team members have been onboarded. They are familiarized with the project and are able to contribute to it.


GraphQL: Total currency does not increase

This query returns this result https://gist.github.com/garethtdavies/48f7a5c2b1a09c2ed5c4e4781e8702fd where the totalCurrency is the same for all blocks and should be increasing?
query {
  version
  bestChain(maxLength: 290) {
    protocolState {
      consensusState {
        totalCurrency
        blockHeight
      }
    }
  }
}

This also explains the graphql visualization misunderstanding :)


How to monitor a messed up view due to a exception like Object.noSuchMethod.

Problem
Unable to catch exception in the outmost try/catch block, as a result, when the view is messed up in the end user(release mode), I will fail to monitor and fix it.

Steps to Reproduce
Launch App, click the Increment Button in the bottom right. The view will be messed up due to a Object.noSuchMethod error.
Source code (Example) for reproducing the problem.
Example code @github
Flutter Doctor
[✓] Flutter (on Mac OS X 10.13.1 17B48, locale en-CN, channel master)
• Flutter at /Users/kylewong/Codes/Flutter/flutter
• Framework revision 580281e520 (3 days ago), 2017-11-16 19:33:32 -0800
• Engine revision 25912b8482
• Tools Dart version 1.25.0-dev.11.0
[✓] Android toolchain - develop for Android devices (Android SDK 27.0.1)
• Android SDK at /Users/kylewong/Library/Android/sdk
• Platform android-27, build-tools 27.0.1
• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_112-release-b06)
[✓] iOS toolchain - develop for iOS devices (Xcode 9.1)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 9.1, Build version 9B55
• ios-deploy 1.9.2
• CocoaPods version 1.3.1
[✓] Android Studio (version 2.3)
• Android Studio at /Applications/Android Studio.app/Contents
• Java version OpenJDK Runtime Environment (build 1.8.0_112-release-b06)
[✓] IntelliJ IDEA Ultimate Edition (version 2017.2.6)
• Flutter plugin version 19.1
• Dart plugin version 172.4343.25
[✓] Connected devices
• Android SDK built for x86 • emulator-5554                            • android-x86 • Android 6.0 (API 23) (emulator)
• KyleWong's iPhone         •***** • ios         • iOS 11.1.2

For more information about diagnosing and reporting Flutter bugs, please see https://flutter.io/bug-reports/.

https://github.com/yjbanov/crashy/blob/master/lib/main.dart should provide the info you need

@zoechi  Thx. Previously, I only used runApp:zoned, It seems not enough. With FlutterError&Isolate.addErrorListener used in this example, I successfully capture the Flutter error. As to the backend-service provided by sentry.io, we have our own infrastructure. Thank you again, I will close this issue.

A combination of FlutterError.onError/Isolate.current.addErrorListener/runZoned:onError: helps me capture errors successfully.


Reply file specification

Hello, i find many w3g reply analysis repos, but only this can support nwg and w3g both.
Now i want to using other languages to analysis reply file, maybe there is some specifications of formation of reply file?

If you take a look at nwg files in a hex editor you will find that mostly there is added metadata at the start. Thats why the parser tries to find the correct start offset here: https://github.com/PBug90/w3gjs/blob/master/src/parsers/RawParser.ts#L93
The initial implementation of this repo used http://w3g.deepnode.de/ as spec.
Reforged added some new properties and changed some parser behaviours, but that can be found when looking at the parsers here: https://github.com/PBug90/w3gjs/tree/master/src/parsers
In particular, order of parser application can be found here https://github.com/PBug90/w3gjs/blob/master/src/parsers/ReplayParser.ts#L34
You can also take a look at closed / open issues since a lot of people thankfully contributed with analysing the new reforged metadata added, allowing me or them to add them to this parser.

Thanks very much! This is i want, closed this issue now, thanks again!


Add types to composables/use-i18n-sync.js

Description

Add type checking to use-i18n-sync.js. This module has one untyped dependency that will by typed in #954. Make sure to add it to tsconfig.json's include list.
Blocked by #954
Additional context

Part of an ongoing effort to add type checking to parts of the project that can be type checked.
Implementation

[ ] 🙋 I would be interested in implementing this feature.

Fixed in #1182


Touch V3.10d is sending different JSON response

Describe the bug
Under V3.10d the JSON which is generated sends only Strings instead of Numbers and Strings according to their actual type. According to the actual Adapter's logic this leads to wrong created objects / datapoints in ioBroker.
Screenshots & Logfiles
Example of V3.10d generated JSON
v3-jsonfile.json.txt
Versions:

Adapter version: v0.1.0-beta.0

Maybe it's possible to work around this and interpret the generated JSON correctly though

added some idea with fd7e153ab99af7542b7179af8634d145516ffcb9, need to setup a temp webserver to serve the provided json-file for dev-server

with 1fa5349162eaa66e8803fa0f26a48b7ae1785097 it ingests new json layout and at least initial parses the v3.10d json correctly. regular updates of old json style not tested yet


[MXNET-139] Tutorial for mixed precision training with float16

Description
Adds a FAQ page on mixed precision training with float16. Explains usage for both Gluon and Symbolic, and discusses tips to improve performance and accuracy when using mixed precision.
https://issues.apache.org/jira/browse/MXNET-139
Checklist
Essentials
Please feel free to remove inapplicable items for your PR.

[x] The PR title starts with [MXNET-$JIRA_ID], where $JIRA_ID refers to the relevant JIRA issue created (except PRs with tiny changes)
[ ] Changes are complete (i.e. I finished coding on this PR)
[x] All changes have test coverage:
Unit tests are added for small changes to verify correctness (e.g. adding a new operator)
Nightly tests are added for complicated/long-running ones (e.g. changing distributed kvstore)
Build tests will be added for build configuration changes (e.g. adding a new build option with NCCL)
[x] Code is well-documented:
For user-facing API changes, API doc string has been updated.
For new C++ functions in header files, their functionalities and arguments are documented.
For new examples, README.md is added to explain the what the example does, the source of the dataset, expected performance on test set and reference to the original paper if applicable
Check the API doc at http://mxnet-ci-doc.s3-accelerate.dualstack.amazonaws.com/PR-$PR_ID/$BUILD_ID/index.html
[x] To the my best knowledge, examples are either not affected by this change, or have been fixed to be compatible with this change

Changes

[x] Adds tutorial
[x] Updates symbolic examples for training and fine-tuning
[x] Updates Gluon example

I feel this tutorial is a little bit too complex to reader to follow.

show how to write a simple dense and conv layer to use fp16, show performance numbers
show an end-to-end example based on another tutorial. such as http://gluon-crash-course.mxnet.io/ (it's not a good exmaple because too simplified), mentioned to users that read it first. and this tutorial will only highlight the difference for using fp16.
show performance numbers and training curves

ping @rahul003

Thanks guys for your comments. I'll address them soon and update the PR

@rahul003 ping

@rahul003 ping, do you plan to finish this tutorial? It is dearly needed.

On second thoughts as per feedback above I changed this from a runnable tutorial style to a document focusing on the changes needed to switch to Mixed precision. I updated an example in the source to add the example I had in this tutorial, and put a command to run that in this document.
I've setup two runs whose plots I will add tomorrow.
I'm hesitant to share raw performance numbers as those would soon become outdated as we improve. I could mention a rough speedup factor instead. What do you guys think?

@reviewers, please check the tutorial now. I think we can merge it and keep updating it if you have suggestions for other things to add. Even as is, it would be very useful.

can we merge this?


Add a version check on apps - Done

Hi, i have resolve the conflicts and now it is ready for merging, please do give it a final review and let me know if there is any further changes necessary, thanks!


ARROW-12980: [C++] Kernels to extract datetime components should be timezone aware

https://issues.apache.org/jira/browse/ARROW-12980

Errors appear to be due to windows builds not finding tz database. See.

I think it would be good to write some tests in python as well, as currently the C++ tests are very hard to verify since we don't yet have the ability to parse strings localized in the timezone (I mean: the strings in the tests are interpreted as UTC and not the "Australia/Broken_Hill" timezone. And thus as a result, the expected values can't be read/verified from the strings).
Given that, it might also make sense to first add a "localize" kernel for converting timestamps from naive to a certain timezone.

I think it would be good to write some tests in python as well, as currently the C++ tests are very hard to verify since we don't yet have the ability to parse strings localized in the timezone (I mean: the strings in the tests are interpreted as UTC and not the "Australia/Broken_Hill" timezone. And thus as a result, the expected values can't be read/verified from the strings).
(while in python we could create the localized input timestamps with pandas)

Indeed! I've used that approach to generate data in ARROW-11759 by pandas already and I'll just adopt that code here.
It did lead me to an odd issue? in pandas that I cant quite explain. We'll either need to address it or avoid it in tests ..

Given that, it might also make sense to first add a "localize" kernel for converting timestamps from naive to a certain timezone.

Localize kernel would be great. I suppose we'd need a scalar and a vector one depending if timezone is shared between rows or not? Vector version would apply here.
Also strptime kernel ignores timezones at the moment.

Localize kernel would be great. I suppose we'd need a scalar and a vector one depending if timezone is shared between rows or not?

I think a scalar kernel is the most important (with signature like localize(array[timestamp], string tz) -> array[timestamp, tz], where array can also be chunked array or scalar of course). Mixed timezones is a rather corner case (and in principle also could be done as a scalar kernel if the second tz argument is also an array). I think ARROW-5912 is more a bug in the python->arrow conversion code, and not necessarily related / fixable by a localize kernel.
I opened https://issues.apache.org/jira/browse/ARROW-13033 for this.

Another question: is the locate_zone configurable in some way to give some hints where to find the tz database?
The database is not always available on the system (as you noticed for windows). But depending on the application / binding language, it might already be available elsewhere. For example, in recent Python versions, there is now support for this in the standard library, automatically using the tzdata package if there is no system database. I am wondering if pyarrow should be able to instruct the kernel where to look for the database (https://www.python.org/dev/peps/pep-0615/#search-path-configuration in python).
Or does the vendored date.h also include functionalities to automatically download the data if not available on the system?

I opened https://issues.apache.org/jira/browse/ARROW-13033 for this.

Nice, I was also writing it just now :)
The strptime timzone ignoring issue is here.

Or does the vendored date.h also include functionalities to automatically download the data if not available on the system?

As per HowardHinnant's answer:

The library can be configured to not go to the internet for tzdata. tzdata can either be downloaded manually, and this lib can find it, or (on non-Windows systems), the OS-supplied tzdata can be used.

I suppose we could have the kernel try getting data online. If that fails try OS and as a final fallback use arrow bundled tz db (which we would have to add in this PR).

@jorisvandenbossche added the python tests. Will add some more for timezone naive and if needed make another PR :).

I think there was no opposition for this one (i.e. that the field extraction should yield local hour/minute/etc), so I don't think there is a need to close the PR.

Huh, I forget exactly what I was thinking there and you appear to be right.
I think the main remaining task is the tz db issue. I'll take a look at it tomorrow.

We're using tz.h library which needs an updated timezone database to correctly handle timezoned timestamps. See installation instructions.
We have the following options (if I understand correctly) for getting a timezone database:

local (non-windows) OS timezone database  - no work required.
arrow bundled folder - we could bundle the database at build time for windows. Database would slowly go stale.
download it from IANA Time Zone Database at runtime - tz.h gets the database at runtime, but curl (and 7-zip on windows) are required.
local user-provided folder - user could provide a location at buildtime. Nice to have.

Would a 5th option to allow runtime configuration be possible as well? (which I assume would need some modification to tz.h?)
For reference

For now it would probably be best to create a Jira for this and keep these test disabled on windows.

For me that's fine. But to be explicit, it is currently using the default configuration of tz.h (which is to download the latest version)? I would maybe use the USE_OS_TZDB compile flag for now, if we postpone the discussion of how to install the tzdata sources for a follow-up JIRA.

download it from IANA Time Zone Database at runtime - tz.h gets the database at runtime, but curl (and 7-zip on windows) are required.

Would a 5th option to allow runtime configuration be possible as well? (which I assume would need some modification to tz.h?)

I think we mean the same with 3. and 5.? I don't think modification to tz.hz is required. There are get_tzdb and reload_tzdb available for runtime. These could be interesting in cases where timezone database changes while the process is running.

For me that's fine. But to be explicit, it is currently using the default configuration of tz.h (which is to download the latest version)? I would maybe use the USE_OS_TZDB compile flag for now, if we postpone the discussion of how to install the tzdata sources for a follow-up JIRA.

By default we have USE_OS_TZDB=1 on non-windows and USE_OS_TZDB=1 on windows. I believe that means on non-windows we download if possible and fall back to OS network is not available. On windows we currently fail. Please check as I might have misunderstood.

I think we mean the same with 3. and 5.?

No, option 3 will download the database at runtime (first time, or if there is a more recent version, AFAIU) to a default location. For option 5 I mean that I want to say at runtime: "the tzdata can be found at this location" (in case you already downloaded it, or want to test against a custom version).

By default we have USE_OS_TZDB=1 on non-windows and USE_OS_TZDB=1 on windows

Ah, OK, I didn't see that since that wasn't in the diff. That sounds good then.
(BTW, I think it will then always use the OS supplied version, and never try to download, based on https://howardhinnant.github.io/date/tz.html#Installation)

By default we have USE_OS_TZDB=1 on non-windows and USE_OS_TZDB=1 on windows

Sorry this should be:
By default we have USE_OS_TZDB=1 on non-windows and USE_OS_TZDB=0 on windows.

(BTW, I think it will then always use the OS supplied version, and never try to download, based on https://howardhinnant.github.io/date/tz.html#Installation)

Indeed we set USE_OS_TZDB=1 which sets HAS_REMOTE_API=0 which means we don't attempt to download.

I Jira-ed the timezone database issue ARROW-13168.
CI errors don't seem related. I'll add comments referencing ARROW-13168 and ask for a review.

@jorisvandenbossche @pitrou I'm going to look into the R issues but other than that this is ready for review.

This is ready for review.

@jorisvandenbossche @pitrou ping :)

Didn't take a thorough look at the PR yet, so asking rather: @rok are these changes backward compatible?

Didn't take a thorough look at the PR yet, so asking rather: @rok are these changes backward compatible?

I believe so. This is new functionality (timezone component extraction was not present in 4.0.0) so I don't expect anything to break. There is a new compile flag introduced for windows but CI appears ok.

@pitrou thanks for the review and the changes - those look much better!

Rebased again to pick up AppVeyor fix :-/

Thanks @pitrou @jorisvandenbossche and @kszucs !


[main] Upgrade to latest dependencies

GKE fixes in hack -dprotaso
/cc knative/serving-writers
/assign knative/serving-writers
Produced by: knative-extensions/knobots/actions/update-deps

/lgtm
/approve


WARNING: The MPC time-horizon is smaller than the MPC starting time

Hello the team,
robot wants to stand up, but cant !!
Any help :
Ther terminal :
currentTime: 2.47148	 Controller finalTime: 1.002
WARNING: The MPC time-horizon is smaller than the MPC starting time

return of terminal :
WARNING: The MPC time-horizon is smaller than the MPC starting time.
currentTime: 18.9098	 Controller finalTime: 1.002
WARNING: The MPC time-horizon is smaller than the MPC starting time.
currentTime: 18.9098	 Controller finalTime: 1.002
WARNING: The MPC time-horizon is smaller than the MPC starting time.
currentTime: 18.9098	 Controller finalTime: 1.002
WARNING: The MPC time-horizon is smaller than the MPC starting time.
currentTime: 18.9098	 Controller finalTime: 1.002
[ INFO] [1681325171.157292356]:  Write ---> joint ID: [6] ; pos: [0.053199] ; vel: [0.072389] ; fftorque: [2.494649] ; kp: [0.000000] ; kd: [3.000000]
[ INFO] [1681325171.157653967]:  Write ---> joint ID: [4] ; pos: [-0.067456] ; vel: [-0.011383] ; fftorque: [-1.726983] ; kp: [0.000000] ; kd: [3.000000]
[ INFO] [1681325171.157974827]:  Write ---> joint ID: [5] ; pos: [-0.439647] ; vel: [0.052897] ; fftorque: [5.203169] ; kp: [0.000000] ; kd: [3.000000]
[ INFO] [1681325171.158285956]:  Write ---> joint ID: [3] ; pos: [-0.044735] ; vel: [-0.063882] ; fftorque: [-2.650366] ; kp: [0.000000] ; kd: [3.000000]
[ INFO] [1681325171.158593372]:  Write ---> joint ID: [1] ; pos: [0.061044] ; vel: [0.006691] ; fftorque: [-1.416724] ; kp: [0.000000] ; kd: [3.000000]
[ INFO] [1681325171.158897142]:  Write ---> joint ID: [2] ; pos: [0.407973] ; vel: [0.068385] ; fftorque: [5.334076] ; kp: [0.000000] ; kd: [3.000000]
[ INFO] [1681325171.159198226]:  Write ---> joint ID: [12] ; pos: [-0.057478] ; vel: [-0.010046] ; fftorque: [2.832379] ; kp: [0.000000] ; kd: [3.000000]
[ INFO] [1681325171.159496428]:  Write ---> joint ID: [10] ; pos: [-0.068710] ; vel: [-0.002338] ; fftorque: [-1.331165] ; kp: [0.000000] ; kd: [3.000000]
[ INFO] [1681325171.159801292]:  Write ---> joint ID: [11] ; pos: [-0.438601] ; vel: [-0.005741] ; fftorque: [5.563870] ; kp: [0.000000] ; kd: [3.000000]
[ INFO] [1681325171.160105497]:  Write ---> joint ID: [9] ; pos: [0.047299] ; vel: [-0.001570] ; fftorque: [-2.692181] ; kp: [0.000000] ; kd: [3.000000]
[ INFO] [1681325171.160412716]:  Write ---> joint ID: [7] ; pos: [0.065409] ; vel: [0.008342] ; fftorque: [-1.348919] ; kp: [0.000000] ; kd: [3.000000]
[ INFO] [1681325171.160716182]:  Write ---> joint ID: [8] ; pos: [0.441709] ; vel: [0.002359] ; fftorque: [5.895403] ; kp: [0.000000] ; kd: [3.000000]
[ WARN] [1681325171.161053005]: Cycle time exceeded error threshold by: 0.178164s, cycle time: 0.182163620s, threshold: 0.002s

I seems that the robot can't standup, but i see legs movments, at low torque.
In rviz, i can see the 5 odom points move on one side, but not going down (anything like a standup try)

small UP, friends ?

doesnt encounter this error anymore, after reinstalled !

Hello, I encountered the same issue as you (MPC runtime error). Could you please let me know how you eventually resolved it? Specifically, which software packages did you reinstall? I would greatly appreciate your help in clarifying this! I'm deploying on a Jetson Orin Nano, and I have already applied the necessary kernel patches and enabled runtime permissions, but the error persists.

Sorry Friend.
I an on another project for now. Waiting for a fully commented sdk version : for a generic robot, and not only specific one.
Imu add, fully explained motor commands...
See you perhaps on ros2 version


[SR-6852] Support #if swift(<4.1)

Previous ID
SR-6852

Radar
None

Original Reporter
@belkadan

Type
Improvement

Status
Resolved

Resolution
Done

Additional Detail from JIRA

Votes
2

Component/s
Compiler

Labels
Improvement, StarterBug, StarterProposal

Assignee
hashemi (JIRA)

Priority
Medium

md5: d6504962ca1a564793f5327cd6c0afb5

Issue Description:
swift(>=x.y) is a special compilation condition that controls whether part of a file is even parsed, because the language may change between versions. Because of this, there's a restriction that it can't be combined with other compilation conditions, which still check that the inactive block of the #if parses correctly. However, there's nothing wrong with `#if !swift(>=4.1)`, and therefore it would be reasonable to support spelling that directly, `#if swift(<4.1)`.
(Note that it would not make sense to check for swift(>x.y) or swift(<=x.y), since that makes a statement about future releases rather than present releases. For example, even when 4.1.0 is officially released, that wouldn't preclude another release from the 4.0 branch, 4.0.4.)

Proposal: SE-0224


JS serving: cannot locate environment variable

Hey esteemed bazel watcher authors,
Wanted to resurface the issues I'm facing in #358 (@achew22)
I understand the mechanism, but I'm unable to find the environment variable in my Java application environment. Perhaps that's how this should be characterized.

If you don't mind I'm going to reopen the other issue and consolidate into there.


Content is not anymore up-to-date

The current Power BI service as of today 2024-01-05 does not offer this functionality any more as documented here. The current functionality is asking to specify a space where to save the notification.

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

ID: 64b2fae9-3356-f90c-8b3c-647aa2ad5f75
Version Independent ID: 5ee251f0-8e8b-47eb-937c-356e15c341ba
Content: Set data alerts in the Power BI service - Power BI
Content Source: powerbi-docs/create-reports/service-set-data-alerts.md
Service: powerbi
Sub-service: pbi-reports-dashboards
GitHub Login: @maggiesMSFT
Microsoft Alias: maggies

Thanks for your comment, @zsomborzsuffa. This issue has been assigned to the doc author for review.

Thanks, @zsomborzsuffa for your comment! I'm closing this and moving it to a different tracking system so I can work on it.


BitMap class definition conflicts with macOS Quickdraw.h's BitMap struct

Godot version:
Master (4b6e7b5)
OS/device including version:
macOS, Xcode 9.4.1 (Travis)
Issue description:
The following warning is raised when building with scons p=osx dev=yes:
./scene/resources/texture.h:91:1: warning: class 'BitMap' was previously declared as a struct [-Wmismatched-tags]
class BitMap;
^
/Applications/Xcode-9.4.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/QD.framework/Headers/Quickdraw.h:61:8: note: previous use is here
struct BitMap {
       ^
./scene/resources/texture.h:91:1: note: did you mean struct here?
class BitMap;
^~~~~
struct

Not sure how to fix it, are we forced to use a namespace to work it around?

Short version, after a chunk of time trying more "proper" solutions (although not namespaces) I ended up with this working for me on Mac OS X 10.9:
diff --git a/platform/osx/os_osx.h b/platform/osx/os_osx.h
index 212966af1..fe16a7b9b 100644
--- a/platform/osx/os_osx.h
+++ b/platform/osx/os_osx.h
@@ -44,11 +44,13 @@
 #include "servers/visual/visual_server_wrap_mt.h"
 #include "servers/visual_server.h"

+#define BitMap QD_BitMap
 #include <AppKit/AppKit.h>
 #include <AppKit/NSCursor.h>
 #include <ApplicationServices/ApplicationServices.h>
 #include <CoreVideo/CoreVideo.h>

+#undef BitMap
 #undef CursorShape
 /**
 	@author Juan Linietsky<EMAIL_ADDRESS>diff --git a/platform/osx/os_osx.mm b/platform/osx/os_osx.mm
index 113c6636f..480dab7c0 100644
--- a/platform/osx/os_osx.mm
+++ b/platform/osx/os_osx.mm
@@ -1426,7 +1426,7 @@ Error OS_OSX::initialize(const VideoMode &p_desired, int p_video_driver, int p_a
 	// setup our display link, this will inform us when a refresh is needed
 	CVDisplayLinkCreateWithActiveCGDisplays(&displayLink);
 	CVDisplayLinkSetOutputCallback(displayLink, &DisplayLinkCallback, this);
-	CVDisplayLinkSetCurrentCGDisplayFromOpenGLContext(displayLink, context.CGLContextObj, pixelFormat.CGLPixelFormatObj);
+	CVDisplayLinkSetCurrentCGDisplayFromOpenGLContext(displayLink, (CGLContextObj) context.CGLContextObj, (CGLPixelFormatObj) pixelFormat.CGLPixelFormatObj);
 	CVDisplayLinkStart(displayLink);

 	// initialise a conditional lock object

Clearly it's not ideal, but at least Works For Me. :) (And seems to have precedent given the line following. :D )
(The second file patch was not specifically related but was required.)
AFAICT the issue is a result of including this patch on pre-10.14 builds: https://github.com/godotengine/godot/commit/b53f2d1d598193ab1d1c02345fc321be254364ca#diff-fd0e7bd0fd01d2521078755bf719ef24
The additional includes added by the VSync patch cause QuickDraw-related files to be included which includes the BitMap struct (none of which is specifically used AFAICT). Given that QuickDraw has been deprecated/obsolete for something like over a decade and a half I feel like the #define/#undef combo is the "cleanest" quick approach--the other alternative is to only have the VSync patch on 10.14 but that would leave two code paths to maintain.
I've got some more observations/references but wanted to at least post this much now.

Couple of follow-ups related to my comment above:

Explanation of why this conflict occurred: https://github.com/godotengine/godot/pull/33035#issuecomment-546701261
The "second file patch" mentioned turned into: https://github.com/godotengine/godot/pull/33116
Possible alternative approach: https://github.com/godotengine/godot/issues/33125


webview bug

onPageFinished  can't callback when open other webview

Did you find a solution moz1q1? I'm facing this problem too.


Cheap BT adapter

You can buy BTD-401 on aliexpress it costs 2$ and it works for me
https://www.aliexpress.com/wholesale?catId=0&initiative_id=SB_20161222232305&SearchText=BTD-401
(github should add comments so request wouldn't be put in issues)

@kswiorek That's why we have the forums: https://groups.google.com/forum/#!forum/psmoveservice


Create "My Events" Page For Volunteers

Create a listing of events for which the logged-in user has volunteered for.
From #373.

There already exists a MyActivities view but it doesn't do much. This view should replace/augment that one.

I'd like to augment this existing view.

Meetup.com has a convenient webpage for their member activities. As you can see, it lists the activities in a calendar possibly addressing #377 and #378 when members are logged in.

Calendar is not working yet, but here is a demo.

@bluechrometouch you still working on this?

@tonysurma
I have to say no. Got a new job recently and just don't have the energy to take on any outside coding.

Congrats on the new job and thanks

@tonysurma You can assign this to me if you like. In the interests of time I would concentrate on a more simple listing our the tasks / events that a user has volunteered for grouped/organised by date. This I imagine would look similar to what @bluechrometouch was proposing on the left hand side of his mockup. Does that sound okay as a starting point? I think that perhaps the calendar / date filtering could be a follow up issue, perhaps combined with UI / UX work.

Sounds good to me, thx

I've finally got something going for this issue. It's pretty basic (lots that could be done with the functionality, UX and UI) and not very pretty at the moment. I have some work left to test it, refactor some code and generally clean it up but I wanted to share a screenshot of the current page to open it up for comments. Clicking on the event take the user to the event page where they can then update tasks. For ease I didn't bring in the full JS functionality to manage the tasks within this view.
@tonysurma Let me know if you see any immediate changes to data being shown for a v1 of this page?

@stevejgordon looks good to me thanks!  FYI @joelhulen here is a UX item we can discuss

@tonysurma Thanks! I'll try to find the time soon to clean up the code and tests to get a PR in for what I have so far.


Add functionality for DDL statements to add, drop and update cubes.

After adding support for Quark's DDL statement to Calcite in issue#34, we need to add corresponding functionality for cube, measure and dimensions to Quark.

I want to see a design for this before getting into code.

One way to do it, is to follow the same approach used in case of View:

New pojo for Dimension, Measure (Already have pojo for Cube).
Changes in dao's, mapper's, db.schemaFactory.
Changes in DDLPlanExecutor. (Here alterQuark/createQuark methods can be merged)


/team: Left align BDFL name and role in non-mobile UI.

@timabbott

Looks good, merged, thanks @tommyip!


Momentum / Inertia Scrolling

As mentioned in #1, momentum / inertia scrolling means one scroll using a trackpad or the Apple Magic Mouse can actually move through several sections.
Ideally, one scroll action, no matter how big it is, should move through one section only.
This is a similar issue with to this on jquery/jquery-mousewheel. And this demo demonstrates the problem.
Comments, solutions and pull requests welcomed!

Going to create a separate repository for this, so other scroll plugins can take advantage of it also.

You can keep up with progress on the dev branch

Fixed (as much as possible) in 1c71515


How to Handle CSV with PHP: Read Write, Import Export with Database

Proposed title of the article
How to Handle CSV with PHP: Read Write, Import Export with Database
Introduction paragraph (2-3 paragraphs):
CSV is one of the familiar file formats and is used widely by programmers for handling data. The simplicity of the format and human-readable form made it so popular. CSV stands for Comma-Separated Values. In earlier days, the delimiter was only a comma (,) and so the name CSV. Nowadays, CSV files use tab-demitted row data too.
To handle CSV with PHP, we must be aware there is excellent support in-built with core PHP. Knowledge about those built-in libraries and functions will be handy in handling CSV files.
This article will gracefully handle CSV with PHP
Key takeaways:

CSV file format and MIME type
How to convert PHP Array to CSV?
CSV file data validation
How to import large CSV files?
How to split large CSV files and process using PHP?
How to read encoded CSV files with special characters?
Convert CSV file to HTML table using PHP
Process CSV file with comma data values using PHP
Export database records to CSV in a generic way
How to export CSV using fputcsv?
Download as CSV File via browser using Content-Type
Read CSV using PHP built-in functions

References:
N/A

Good afternoon and thank you for submitting your topic suggestion. @Kama-144
Your topic form has been entered into our queue and should be reviewed (for approval) as soon as a content moderator is finished reviewing the ones in the queue before it.

@Kama-144
How will this article differ from what is published our other blog sites

Before suggesting this issue I went through some of the published content in the Internet and I found out that most of them are not begginers friendly in that for those who are only familiar with procedural php are disadvantaged since most them employ PDO.My article will be able to address not only PDO and Procedural PHP but also oop php for the benefit of everyone😊

🤔
Sounds like a helpful topic - lets please be sure it adds value beyond what is in any official docs and/or what is covered in other blog sites. (the articles should go beyond a basic explanation - and it is always best to reference any EngEd article and build upon it).
Please be attentive to grammar/readability and make sure that you put your article through a thorough editing review prior to submitting for final approval. (There are some great free tools that we reference in EngEd resources.)
ANY ARTICLE SUBMITTED WITH GLARING ERRORS WILL BE IMMEDIATELY CLOSED.
Please be sure to double check that it does not overlap with any existing EngEd articles, articles on other blog sites, or any incoming EngEd topic suggestions (if you haven't already) to avoid any potential article closure, please reference any relevant EngEd articles in yours. - Approved

Hello @kama-144,
Another student suggested the same topic here, have you checked to confirm that there is no overlap?


Fixed #25466 -- Added backwards compatibility aliases for LoaderOrigin and StringOrigin.

https://code.djangoproject.com/ticket/25466

This makes sense. Too bad there isn't a way to raise a proper deprecation warning.
One small fix is needed. StringOrigin was previously importable from django.template:
https://docs.djangoproject.com/en/1.7/ref/templates/api/#template-origin
It was removed from django/template/__init__.py in fc2147152637.

What about hooking into __instancecheck__ to raise the warning?
We did something similar with EmptyQuerySet.
Since the type would be used in two modules we could add another helper to django.utils.deprecation. e.g.
class DeprecationInstanceCheck(type):
    def __instancecheck__(self, instance):
        warnings.warn(
            "%s is deprecated, use %s instead." % (self.__name__, self.alternative),
            self.deprecation_warning, 2
        )
        return super(DeprecationInstanceCheck, self).__instancecheck__(instance)

class StringOrigin(six.with_metaclass(DeprecationInstanceCheck, Origin))
    alternative = 'django.template.Origin'
    deprecation_warning = RemovedInDjango20Warning

Updated for comments.

LGTM


To be able to use databricks cluster as fastapi rest server

Hi @stikkireddy I tried to create a fastapi app that can the call the openai endpoint and return the response. I am not sure whether this is possible with dbtunnel fastapi app. Can you please tell me if this functionality can be achieved using this?

hey @DixitAdh dbtunnel is only meant for rendering Web UIs and not rest apis. You cannot access the endpoint outside of the browser since it relies on session cookies. You can use it to test the openapi docs but even that may not work properly out of the box since the url is very different. I would recommend you to wait for lakehouse apps or use another serving solution for rest apis. If you are rendering an application in UI dbtunnel will fit well because it will be accessed via browser.
hope this helps.


Optimise email sending

          Question for all of these kind of emails. Do we really need the emails stating the name of the admin? Couldn't it just say 'Dear Admin, ...'? If that was okay we could use `Mail::to(User::admins())->...` instead.

Originally posted by @machiato32 in https://github.com/EotvosCollegium/mars/pull/386#discussion_r1436901163
Maybe we can get the name from the email recipient...?

Even better: send it to the common admin email. That should simplify and avoid strange edge cases in our tests.


[pubsub] 'module' object has no attribute 'Client'

I have been using pubsub for a while but after updating it, I am getting
AttributeError: 'module' object has no attribute 'Client'
I am following this example from the official docs:
macOS 10.12.5 (16F73)
Name: google-cloud-pubsub
Version: 0.25.0
Summary: Python Client for Google Cloud Pub/Sub
Home-page: https://github.com/GoogleCloudPlatform/google-cloud-python
Author: Google Cloud Platform
Author-email<EMAIL_ADDRESS>License: Apache 2.0
Requires: grpcio, gapic-google-cloud-pubsub-v1, google-cloud-core
Python 2.7.13 (default, Dec 18 2016, 07:03:39)
[GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-8<IP_ADDRESS>)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from google.cloud import pubsub
>>> pubsub.Client()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: 'module' object has no attribute 'Client'

ubuntu 16.04.2 (4.4.0-1013-aws)
Name: google-cloud-pubsub
Version: 0.25.0
Summary: Python Client for Google Cloud Pub/Sub
Home-page: https://github.com/GoogleCloudPlatform/google-cloud-python
Author: Google Cloud Platform
Author-email<EMAIL_ADDRESS>License: Apache 2.0
Location: /usr/local/lib/python2.7/dist-packages
Requires: google-cloud-core, gapic-google-cloud-pubsub-v1, grpcio
Python 2.7.12 (default, Nov 19 2016, 06:48:10)
[GCC 5.4.0 20160609] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from google.cloud import pubsub
>>> pubsub.Client()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: 'module' object has no attribute 'Client'

I have already uninstalled and reinstalled it (and the entire dependency tree) many times.

@mwilliammyers We've seen similar issues before due to broken install states combined with namespace packages. It's often due to the presence of a .egg file or something similar.
Can you install into a virtualenv to make sure the issue is your environment (then we can try to dig into your /usr/local/lib/python2.7/dist-packages or the other Location on Mac OS X and find the bad file).
$ pip install --upgrade virtualenv
$ export VENV=venv  # or any other name you choose other than "venv"
$ virtualenv ${VENV}
$ source ${VENV}/bin/activate
$ ${VENV}/bin/pip install --upgrade google-cloud-pubsub
$ ${VENV}/bin/python -c "from google.cloud import pubsub; print(pubsub.Client)"

I could have sworn I had tried it within a virtualenv, Ill do it again to be sure.

@mwilliammyers Do you mind sharing the code you used to create the virtualenv? Would you mind trying the code I provided with a fresh virtualenv?

I got it working in my venv in ubuntu but still not in venv on macOS:
ubuntu@ip-172-31-5-242:/tmp$ virtualenv env
Running virtualenv with interpreter /usr/bin/python2
New python executable in /tmp/env/bin/python2
Also creating executable in /tmp/env/bin/python
Installing setuptools, pkg_resources, pip, wheel...done.
ubuntu@ip-172-31-5-242:/tmp$ source env/bin/activate
(env) ubuntu@ip-172-31-5-242:/tmp$ which pip
/tmp/env/bin/pip
(env) ubuntu@ip-172-31-5-242:/tmp$ pip install --upgrade google-cloud-pubsub
(env) ubuntu@ip-172-31-5-242:/tmp$ python -c "from google.cloud import pubsub; pubsub.Client()"

works
I did a similar thing in a new env on macOS and it works.
I think I tracked down the offending package (which I hadnt installed yet into the new envs): pyrebase

@mwilliammyers So can I close this issue out or are we still fishing for a cause? (Also, I highly recommend using a "direct path" to things in ${VENV}/bin rather than relying on PATH to "just work".)

Yes, thank you!

@mwilliammyers In addition to what @dhermes  says, I would particularly avoid using activate (start from a fresh terminal / shell).  activate leaves droppings in the environment which can cause oddities like the ones you have reported.

The ubuntu one was from a fresh ssh, so it was a new shell. A lot of times I do an exec as well.

Glad to hear we could help @mwilliammyers

@dhermes  I'm getting the same error, and am unsure how to debug this. I'm working in a virtual env, and have been digging in vev/lib/python2.7/site-packages, with no luck.

@apengwin Can you create a fresh virtualenv and post here all the commands you used to create/activate the virtualenv, then to import. For example, on my machine I just did:
$ virtualenv issue-3461
New python executable in .../issue-3461/bin/python2.7
Also creating executable in .../issue-3461/bin/python
Installing setuptools, pip, wheel...done.
$ source issue-3461/bin/activate
(issue-3461) $ issue-3461/bin/pip install --upgrade google-cloud-pubsub
Collecting google-cloud-pubsub
  Downloading google_cloud_pubsub-0.25.0-py2.py3-none-any.whl
...
Successfully installed ...
(issue-3461) $ issue-3461/bin/python
Python 2.7.13 (default, Jan  5 2017, 18:58:25)
[GCC 5.4.0 20160609] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from google.cloud import pubsub
>>> pubsub.Client
<class 'google.cloud.pubsub.client.Client'>
>>>
(issue-3461) $

@dhermes thanks for the prompt response! When I open everything in a fresh virtualenv it works fine.

airbears2-10-142-35-42:test allanpeng$ virtualenv issue-3461
New python executable in /Users/allanpeng/test/issue-3461/bin/python
Installing setuptools, pip, wheel...done.

airbears2-10-142-35-42:test allanpeng$ source issue-3461/bin/activate

(issue-3461) airbears2-10-142-35-42:test allanpeng$ issue-3461/bin/pip install --upgrade google-cloud-pubsub
Collecting google-cloud-pubsub
  Using cached google_cloud_pubsub-0.25.0-py2.py3-none-any.whl
...
Successfully installed ....

(issue-3461) airbears2-10-142-35-42:test allanpeng$ issue-3461/bin/python

Python 2.7.10 (default, Jul 30 2016, 19:40:32)
[GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.34)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from google.cloud import pubsub
>>> pubsub.Client
<class 'google.cloud.pubsub.client.Client'>
>>> ^D

(issue-3461) airbears2-10-142-35-42:test allanpeng$ deactivate

airbears2-10-142-35-42:test allanpeng$

Good to hear. It seems like your other environment may be broken. Case closed?

Yeah. That seems to be the case. I'm not sure how I'd go about fixing the other environment though.

@apengwin Just delete the other environment :grinning:. If that's not an option, you can look around for bad pth files and also inspect __path__ and/or __file__ on modules that are behaving badly, e.g.
>>> import google
>>> google.__path__

If you have python aliased to ipython, try:
unalias python
python -c "from google.cloud import pubsub; pubsub.Client()"

Hi,
So I am facing exactly the same problem, except I don't think virtualenv would be an option in my case and I would rather not delete my current environment (too many CRON jobs depending on it).
I am trying to fix my current environment so it works.
from google.cloud import pubsub
print pubsub.__path__
c = pubsub.Client()
['/usr/local/lib/python2.7/dist-packages/google/cloud/pubsub']
Traceback (most recent call last):
File "test_pubsub.py", line 3, in <module>
c = pubsub.Client()
AttributeError: 'module' object has no attribute 'Client'
I also noticed that if I run the same script with ipython it finds pubsub.Client and the path is slightly different:
['/home/fcaldas/google-cloud-sdk/platform/google_appengine/google/cloud/pubsub',
'/usr/local/lib/python2.7/dist-packages/google/cloud/pubsub']
Any ideas on how to fix it from here?

I would double check that you are not being hosed by a pip  / setuptools whack-a-mole bug due to namespace packages, recently fixed (again):
$ pip install -U setuptools pip

Thanks @tseaver, reinstalling the packages (and downgrading google-cloud-pubsub to 0.27) did the trick. Apparently pubsub.Client was removed in 0.28

I had the same problem with language.Client and figured out some methods are deprecated.
look here:
https://cloud.google.com/natural-language/docs/python-client-migration


Revisions to all GitHub content

In our push to get the Intro to GitHub content created, we may have left some inconsistencies or differences in style among the sections. Once all sections are merged in, the final step should be to read through everything in order and see what needs ironing out.

We've set a meeting for Friday 2/25/2022 at 4:30 EST / 2:30 MST for a small group discussion (with me, @clyne, @jukent and @ktyle) to plan out the necessary revisions.

I am going to work on the branches/PR overlap today.

I'm reading through the forking, branching, and PR content more thoroughly to try and synthesize it better, and I think that "GitHub workflows" (currently covered in the PR chapter) should have its own chapter.

I think that #270 took care of the capitalization issue, but I'll keep an eye out for any other inconsistencies.

I went through all of the material, and here are some comments and suggestions; I'll open a PR soon with the simpler edits.
The first 3 sections look good.
Cloning and Forking a Repository:

A nitpick, but you don't need to highlight the link if clicking the copy-to-clipboard icon.
Trying to clone the forked <user>/github-sandbox.git after ProjectPythia/github-sandbox.git raises an error because they have the same name. We could solve this by having the user delete or rename the first clone or by cloning in another directory.

Configuring your GitHub account:

In the linked GitHub PAT creation page, step 8 says to select which permissions to grant the token. I think we should tell the user which to choose, but I'm not really sure myself.

Basic version control with git:

"...rest of the history!" --> "...rest of the history or just hit Q to exit git log!"

Git Branches:

Remove last sentence of intro paragraph, since we already made a git branch in the previous lesson.
We should note that here the repo has been cloned using SSH, since using HTTPS asks for a username and password, unlike the screenshot.
Where did newbranch come from?
The user can follow along until the "Merging Branches" section, where a hypothetical branchB is introduced. Do we want the user to be able to follow along until the end?

Opening a Pull Request on GitHub:

"Open a Pull Request" --> "Open pull request" (this is what the button says in the screenshot)
Typo: contributoris --> contributors
To be clear, do we want users to actually open PRs on ProjectPythia/github-sandbox? I did here, but if a lot of people use this tutorial, it could get messy.

GitHub Workflows:

Similar issue with the 2 cloned repos with the same name
It seems to me like the material here has already been explained in previous sections, but maybe the repetition is actually fine.

Contribute to Project Pythia via GitHub:

Maybe we could walk the user through forking and cloning pythia-foundations, but letting them figure it out would probably be a good exercise.

Thanks. @r-ford Let me know if you want me to tackle any of these points.

To be clear, do we want users to actually open PRs on ProjectPythia/github-sandbox? I did https://github.com/ProjectPythia/github-sandbox/pull/3, but if a lot of people use this tutorial, it could get messy.

Yes I believe that is the plan. Every now and then we can go in and close PRs.

To be clear, do we want users to actually open PRs on ProjectPythia/github-sandbox? I did ProjectPythia/github-sandbox#3, but if a lot of people use this tutorial, it could get messy.

Yes I believe that is the plan. Every now and then we can go in and close PRs.

We can explore some automation for this. I think it's pretty simple to set up a bot to auto-close PRs that have gone stale after a certain amount of time.

https://github.com/marketplace/stale

With #273 merged, I think the content looks good. I don't think the remaining items in my previous comment need to be addressed unless a user brings up a similar issue.

I promised to do one last read-through, which I have not done. I'll keep this issue open until I follow through...

I think with Lily's recent read through and edits we can close this.


[SPARK-17884][SQL] To resolve Null pointer exception when casting from empty string to interval type.

What changes were proposed in this pull request?
This change adds a check in castToInterval method of Cast expression , such that if converted value is null , then isNull variable should be set to true.
Earlier, the expression Cast(Literal(), CalendarIntervalType) was throwing NullPointerException because of the above mentioned reason.
How was this patch tested?
Added test case in CastSuite.scala
jira entry for detail: https://issues.apache.org/jira/browse/SPARK-17884

Can one of the admins verify this patch?

Test build #3332 has started for PR 15449 at commit 9dc99ad.

Test build #3332 has finished for PR 15449 at commit 9dc99ad.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Thanks - merging in master/branch-2.0.

Thanks rxin

Hi rxin, Can we merge the same change in branch 1.6 as well... As we are still using spark 1.6 and need this change?

can you submit a pull request against that branch?

Done. PR #15479


Add support for NKEY authentication to NATS

Use case
We are utilizing NATS as our central messaging system for microservices communication and event streaming. Our project relies heavily on NATS for secure, scalable, and resilient data flow between services. To leverage our existing infrastructure and maintain security standards, we need comprehensive NATS NKEY authentication support in Proton, the streaming database analytics component of Timeplus, for seamless integration and enhanced security.
Describe the solution you'd like
I would like Timeplus to introduce full support for NATS NKEY authentication in Proton. This feature should include the ability to authenticate and authorize clients using NATS NKEYs, ensuring secure connections to NATS servers. The solution should be easy to configure within Proton, allowing for straightforward setup of NKEY authentication parameters, including the specification of NKEY credentials for client verification.
Describe alternatives you've considered
As alternatives, we've explored:

Using JWT-based authentication for NATS, but this requires additional setup and does not align with our preference for NKEYs due to their simplicity and direct support in NATS.
Implementing a proxy layer to handle NKEY authentication outside of Proton, but this introduces complexity and potential performance bottlenecks.
Looking into other streaming database analytics solutions that support NATS NKEY authentication natively, but we'd prefer to continue using Proton due to its specific features and integration capabilities with Timeplus.

Additional context
NATS NKEY authentication is critical for our security model, providing decentralized identity management and secure client validation without central servers. Incorporating this feature directly into Proton would significantly simplify our architecture, reduce overhead in securing communications, and leverage the full capabilities of NATS within our data analytics workflows. We believe adding NKEY support will not only benefit our project but also enhance Proton's appeal to a broader audience leveraging NATS for their messaging needs.

Thanks @mfreeman451 for your information, we are planning to add it into our Timeplus cloud.
Proton support will be added later when the NATs external stream is ready


Error when using o1 architect with sonnet editor model

Issue
Not sure what I'm doing wrong here.  Is there a way to do this?
Tried aider --o1-mini --architect --editor-model sonnet
The architect part works but when I press y to edit the suggest files, I get:

Version and model info

Thank you for filing this issue.
sonnet is a shorthand that works only as a command line argument (--sonnet), you need to specify the full model name for the editor model, e.g. anthropic/claude-3-5-sonnet-20240620
Correct command line is:
aider --o1-mini --architect --editor-model anthropic/claude-3-5-sonnet-20240620

haha i feel dumb :) thanks

As this issue appears to be resolved, I'm closing it.
If any new related concerns arise, please feel free to comment, and I'll reopen the issue.


Define the default state of a layer AacFlLayer WithDefaultState(AacFlState newDefaultState)

Use case that justifies creating the default state as not being the first created state:

I try to make a toggle script with a bool to reverse the default logic between shown and hidden. It looks a bit messy with the duplicated code in the if block just to have the order correct for the default state.

Was added


Enhancement - Add missing CloudBeaver and errored Envvars to dotEnv script

Merged in branch #12 with PR #16


Fix outstanding futures clear bottleneck

When maxWaitingFutures is high, AsyncBase can end up spending a lot of compute just clearing finished futures. The cost of clearing the finished futures is proportional to total number of outstanding futures.  If the number of finished futures is very low compared to total outstanding then we can end up paying this price for nothing much. And the same pattern can repeat on every execute. I found this happening in one of the jobs. In this change we keep track of number of pending futures and use that info to make sure that we clear the finished futures only when they are a good proportion of total number of outstanding futures so that we get good return on investment.

couple of small comments.

@johnynek I incorporated comments, could you take a look again? Thanks


Bug: Clicking on the ends of hold notes with hold note or hold mid option selected doesn't change ease type.

Version: MMW v3.0.0
Platform: Windows 11
How to re-create:

Place a hold note in any chart.
Select the Hold or Hold Mid option in the toolbar.
Click on the ends of the previously placed hold note or on another hold mid.

In previous versions, clicking on a hold note end or hold mid changed easing, but it doesn't seem to work on v3.0.0.  I understand one can change easing from the Options panel or by right-clicking a hold note/hold mid and using its context menu, but simply clicking said note to change easing is very convenient.

Yes I'm aware. I just hadn't enough time to fully test it with the new notes. I'll bring it back very soon™

Functionality restored with 484cb5b


Automate cleanup of backup pods that complete successfully.

Right now, we leave around all the backup pods after they complete. If they complete successfully, we should clean them up like we do the jobs. This should reduce the amount of things to look at when trying to diagnose an issue. If a pod fails to backup, we should ignore it so a user can troubleshoot.

Fixed in #22.


Error modifying user function

Example Using:
    [[PFUser currentUser] setObject:[NSNumber numberWithBool:NO] forKey:@"inOffice"];     [[PFUser currentUser] saveInBackground];
Log output:
[Error]: cannot modify user function () {   return this.data.objectId || this.query.objectId; } (Code: 206, Version: 1.12.0)
Hosting the current parse-server-example on mongolab/heroku

This has been fixed in a later version, please update.  Thanks.


Have you tried Swin transformer?

In current EVA version, the backbone structure is the vanilla ViT. I have noticed that the author is the inventor of Swin transformer .
I have a doubt that have you tried to replace the ViT with Swin T, and how is the performance of ETA in the circumstance.
Thank you!

We haven't try that, and we won't try that.
Vanilla ViT has many good properties, we will focus on the study of vanilla ViT in the future.

I believe the issue at hand was addressed, as such I'm closing this. Feel free to ask if you have further questions.


CPI removing all VMs from pools that share an IP with a bosh managed VM

Describe the bug
Any VM that shares the same private IP as a bosh managed VM and is also a member of a server pool will removed from the pool by the CPI. The CPI is iterating over all pools and not limited to just pools provided in the configuration when recreating or deleting an instance.
 def remove_vm_from_server_pools(vm_ip)
        services_svc.list_load_balancer_pools.results.each do |server_pool|
        members_found = server_pool.members&.select {|member| member.ip_address == vm_ip}
        next unless members_found&.any?
        members_found.each do |member_found|
          logger.info("Removing vm with ip: '#{vm_ip}', port_no: #{member_found.port} from ServerPool: #{server_pool.id} ")
          pool_member = NSXT::PoolMemberSetting.new(ip_address: vm_ip, port: member_found.port)
          pool_member_setting_list = NSXT::PoolMemberSettingList.new(members: [pool_member])
          services_svc.perform_pool_member_action(server_pool.id, pool_member_setting_list, 'REMOVE_MEMBERS')
        end
      end
    end

To Reproduce
Steps to reproduce the behavior:

T1s using the same subnets behind different T0 routers
A pool configured within each T0 and VMs added to the pools with the same private IP, one is BOSH managed.
BOSH will remove both VMs from its pool when only the BOSH managed VM should be removed.

CPI Error Log
No errors but non-deterministic behavior affecting other systems shaing the nsx-t deployment.
Expected behavior
The CPI should limit its operations with pools to only pools listed in the configuration.
Release Version & Related Info (please complete the following information):

CPI Version 69*
BOSH Director Version 271.9.0
Stemcell Name & Version N/A
vCenter Version 7
NSX(T/V) Version (If using) 3

Additional context
Add any other context about the problem here.

closing and reopening to create a story

@miclip thanks for reporting this issue, the story has been put in our backlog under low priority, which means it could take a while until we get to it. A faster way to get this fix would be to create a Pull Request to fix it (PR reviews have a higher priority).

Note that this issue could also impact TKGs or any other product on vsphere using NSX-T load balancing, it's not isolated just to 2 tas deployments sharing the nsx infra.

Yes, one customer just encountered this issue. There are 2 TAS deployments sharing same NSX-T env. One TAS (e.g. TAS1) configured several static IPs for router instances and put them as backend of one server pool. And one temp instance was deployed by BOSH in the other TAS env (e.g. TAS2) to run some errand and the temp instance was assigned same IP (for example, <IP_ADDRESS>) as one of router static IPs in TAS1. When the temp instance was deleted, router backend with IP <IP_ADDRESS> was also mistakenly removed from server pool.
I, [2021-12-16T12:30:24.969942 #4423] INFO -- [req_id cpi-703441]: Removing vm with ip: '<IP_ADDRESS>', port_no: 443 from ServerPool: xxxx

This issue is still being worked on. It is just difficult to keep track of this information. The current direction being explored is using the server pool member display_name property to store the parent pool names.

thanks for the update @rkoster


Install incus via jailmaker

Because TrueNAS SCALE removes any changes to the root partition on upgrade, use jailmaker, and install incus inside such a jail instead. Then we don't have to re-install and possibly re-configure incus every time there is an update to TrueNAS SCALE.
See the WIP template for running incus via jailmaker.
TODO

[x] Restructure repo for installation/download to a writable directory, instead of into /usr/local/bin/. See for example hugojosefson/syncthing-truenas#installation.
[x] Refactor code to separate different commands in their own directories.
[x] Install jailmaker.
[ ] Install incus in a jail.
[ ] Configure incus jail to autostart after unlocking the jailmaker dataset.

I give up! :smile: :shrug:


[Doc] Add Chinese version of 1_exist_data_model doc

Add Chinese version of 1_exist_data_model doc

LGTM and can be merged after resolving comments, @hhaAndroid may check again before approval


Add cohort details with a script

The script has reformated a bit the YAML file

@emmyft I have sent you an invitation to join the repo as a collaborator. Tagging you here for a review whenever you have the time.


Scans and timeouts

We have enabled our client to use the timeout feature. We have set a timeout of 15 seconds for both long and short rpc values since that works well for our standard Get and Put calls and our overall application level timeouts. We have noticed some unexpected behavior for our long running scans. We can demonstrate with this code
            Scan scan = new Scan();
            try (HTableInterface table = connection.getTable(table);
                 ResultScanner scanner = table.getScanner(scan)) {

                for (Result r : scanner) {
                    Thread.sleep(100);
                }
            }

After 15 seconds we see a Could not complete RPC. Failure #0, got: Status{code=DEADLINE_EXCEEDED, exception log message. After reading more entries and exhausting the current entries in the underly ResponseQueueReader, we see an exception is thrown.
Exception in thread "main" java.lang.RuntimeException: com.google.bigtable.repackaged.com.google.cloud.bigtable.grpc.io.IOExceptionWithStatus: Error in response stream
Caused by: com.google.bigtable.repackaged.com.google.cloud.bigtable.grpc.io.IOExceptionWithStatus: Error in response stream
	at com.google.bigtable.repackaged.com.google.cloud.bigtable.grpc.scanner.ResultQueueEntry$ExceptionResultQueueEntry.getResponseOrThrow(ResultQueueEntry.java:100)
	at com.google.bigtable.repackaged.com.google.cloud.bigtable.grpc.scanner.ResponseQueueReader.getNextMergedRow(ResponseQueueReader.java:105)
	at com.google.bigtable.repackaged.com.google.cloud.bigtable.grpc.scanner.ResponseQueueReader.getNextMergedRow(ResponseQueueReader.java:111)
	at com.google.bigtable.repackaged.com.google.cloud.bigtable.grpc.scanner.ResumingStreamingResultScanner.next(ResumingStreamingResultScanner.java:78)
	at com.google.bigtable.repackaged.com.google.cloud.bigtable.grpc.scanner.ResumingStreamingResultScanner.next(ResumingStreamingResultScanner.java:35)
	at com.google.cloud.bigtable.hbase.adapters.read.BigtableResultScannerAdapter$1.next(BigtableResultScannerAdapter.java:66)
	at com.sift.db.bigtable.BigtableScanner$1.hasNext(BigtableScanner.java:66)
	... 1 more
Caused by: com.google.bigtable.repackaged.io.grpc.StatusRuntimeException: DEADLINE_EXCEEDED: deadline exceeded after<PHONE_NUMBER>4ns
	at com.google.bigtable.repackaged.io.grpc.Status.asRuntimeException(Status.java:517)
	at com.google.bigtable.repackaged.com.google.cloud.bigtable.grpc.async.AbstractRetryingOperation.onError(AbstractRetryingOperation.java:206)
	at com.google.bigtable.repackaged.com.google.cloud.bigtable.grpc.async.AbstractRetryingOperation.onClose(AbstractRetryingOperation.java:171)
	at com.google.bigtable.repackaged.com.google.cloud.bigtable.grpc.scanner.RetryingReadRowsOperation.onClose(RetryingReadRowsOperation.java:176)
	at com.google.bigtable.repackaged.com.google.cloud.bigtable.grpc.io.ChannelPool$InstrumentedChannel$2.onClose(ChannelPool.java:210)
	at com.google.bigtable.repackaged.io.grpc.PartialForwardingClientCallListener.onClose(PartialForwardingClientCallListener.java:39)
	at com.google.bigtable.repackaged.io.grpc.ForwardingClientCallListener.onClose(ForwardingClientCallListener.java:23)
	at com.google.bigtable.repackaged.io.grpc.ForwardingClientCallListener$SimpleForwardingClientCallListener.onClose(ForwardingClientCallListener.java:40)
	at com.google.bigtable.repackaged.com.google.cloud.bigtable.grpc.io.Watchdog$WatchedCall$1.onClose(Watchdog.java:176)
...

It appears a user cannot iterate through the ResultScanner object for longer than the long rpc timeout value.
The behavior I would except is have the timeout on the individual ReadRows calls to get the next batch of rows. If one of those is over the timeout, then throw an exception. But reading the results of a scan can continue over the 15 second threshold. Is there a fix that can be made to implement this behavior?
It appears the scan operation will use long rpc timeout value. We don't want to raise this value because it's also used for put(Put[]) requests which we would like to keep within 15 seconds.
cc @dmwaura

After digging a bit more into the HBase implementation of timeouts, I think this behavior probably makes sense. The one ask would be to be able to specify different timeout values for MutateRows and Scans. Currently they both seem to use the "Long RPC Timeout" value.


Fix issues with top, bottom, left, right keys in generated React Native code

This fixes two issues in the generation of React Native code.

The top: 10px property is being generated as positionTop: 10px (as are bottom, left and right)
positionTop: 10px and positionBottom: 10px is being combined into positionVertical: 10px (as is left and right into horizontal).

We are abandoning the old playground in favor of a new one, so closing this out


Make JobState use local job launcher by default

The recent change to JobState is breaking Kafka adapter since Kafka adapter uses a subclass of MRJobLauncher that is not in github. (com.linkedin.gobblinjobmetrics.KafkaMRJobLauncher)
This PR fixes it by having getLauncherType() return LOCAL if the job launcher name is not found in JobLauncherType.

@liyinan926 @sahilTakiar can one of you review?

LGTM.


Add solidity parameter types, encoder, decoder

What was wrong?
The entire web3/solidity folder was not implemented.
How was it fixed?
I translated it. To be done:

comments
flaking
tests

Cute Animal Picture

Reminder: fix web3.eth.defaultAddress

Should the IPCProvider automatically connect to the testnet IPC socket when the mainnet socket was not found or only do so explicitly, when testnet=True and no ipcpath is given?


does not work with complementary shaders reimagined

Is it a mod compatibility issue?
Yes
If it's a mod compatibility issue, please provide the link(s) to the incompatible mod(s)
ComplementaryReimagined_r5.1.1.zip
Minecraft version
1.20.2
Describe the issue
does not work with my favored shaders pack, i have noticed that it does not work with other shaders either, from other issue reporters.

maybe cause they need a newer version of iris??


Does this support iOS7 ?

Should work fine. Are you seeing any specific issues?

Hi,khanlou. I haven't seen any issues for now. :)
just wanna make sure whether this lib used any feature that iOS7 doesn't support.
BTW,nice library,saved my day with beautiful animations.


Adding ex5 solution - Irham A. Putra

Name = Irham Arfakhsadz Putra
Score  = 3
Parameters = 16
Energy = -1.0863259255043025
Also I'm attaching the energy graph

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.

Sorry for the delay. Thank you very much for your submission!


refactor Kakarot interface

Pull Request type
Please check the type of change your PR introduces:

[ ] Bugfix
[ ] Feature
[ ] Code style update (formatting, renaming)
[x] Refactoring (no functional changes, no API changes)
[ ] Build-related changes
[ ] Documentation content changes
[ ] Other (please describe):

What is the current behavior?

Closes #772
Does this introduce a breaking change?

[ ] Yes
[x] No

This change is

@enitrat  ready for review


fix: avoid infinite recursion

Remove the DEVENV_PROFILE entry from the processes envList set to avoid infinite recursions.
This happens when a devenv module uses the config parameter inside a scripts entry and there are custom processes definitions. This is very common on projects that use devenv via the nix flakes porcelain.
Reproducing infinite recursion
# devenv.nix
{ config, ... }: {
  processes.boom.exec = "echo boom";
  scripts.devenv-up.exec = ''
    ${config.procfileScript}
  '';
}

We should introduce and conditionalize this on something like devenv.flakesIntegration since depending on the profile is useful within processes otherwise.

@domenkozar, that's a great idea, I added a new commit that adds a config.devenv.flakesIntegration option, not sure if this is the way to do it, so I'll wait for your guidance.
In another note, I'm wondering if including the devenv binary when using devenv.lib.mkShell makes sense, this binary always assumes that devenv is being used without devenv.lib.mkShell.
Would it make sense to create a package similar to src/devenv.nix that assumes that we are running the devenv infra from a flake.nix file? I'm primarily interested in the devenv up command.

I went ahead and added this new binary (src/devenv-devShell.nix) that replicates some of the devenv sub-commands.
Mind you. This last commit is just a proposal; if you don't like it, I can remove it, or if you want me to create a new PR for it, we can do that as well.


Use hugo.IsServer instead.

I can see in your git that you appear to have changed this to avoid the error, but when I try to use this theme, I still get the error:
.Site.IsServer was deprecated in Hugo v0.120.0 and will be removed in Hugo 0.135.0. Use hugo.IsServer instead.
I have tried cloning and using this as  a submodule. I get the same error. I am not sure if I am doing something wrong, or if there is some other error. I cannot locate any place where .Site.IsServer is still being used in your repo, but I still get this error nonetheless.

rel:
#180
bowman2001/hugo-mod-image/pull/13
bowman2001/hugo-mod-image/pull/14 (same as 13 there)


[ownership-verifier] SubObject Borrowing + Better output for FileCheck + More tests

This PR contains 3 different commits:

f462d20. This commit renames PrintMessageInsteadOfAssert => IsSILOwnershipTestingEnabled and disables the partial ownership verification that occurs via SILInstruction::verifyOperandOwnership(). This is invoked by SILBuilder to catch invalid ownership early when an instruction is created, rather than later during full verification. This is bad from the perspective of FileCheck testing since use errors will come up twice. Since PrintMessageInsteadOfAssert has a bigger purpose now, it makes sense to rename it.

60449d5. This commit just adds 2 tests that shows that the verifier allows through multiple levels of consumed aggregates being constructed.

f857f2c. This commit implements and adds tests for subobject borrowing.

rdar://29791263

@swift-ci Please smoke test and merge

Linux test failure isn't me. It is a frontend compiler crasher. Lets try this again...

@swift-ci Please smoke test linux platform

@swift-ci Please smoke test linux platform


The module doesn't work

It doesn't install dependencies required by kafka-helper which it's not working
For e.g.
File "/app/.heroku/python/lib/python3.6/site-packages/kafka_helper.py", line 9, in <module>
from urlparse import urlparse
ModuleNotFoundError: No module named 'urlparse'

It looks like the latest version 70aa539540e7d6517f0c3c1900617767ab198b6c in which @lambacck included a fix for this issue is not the version installed as 0.1 by pip.  I'm not super familiar with what needs to be done to update the package on pypi but I think that's what needs to happen.
in the meantime you can do
$ pip install git+git://github.com/heroku/kafka-helper .git@70aa539540e7d6517f0c3c1900617767ab198b6c

Thanks -- this should be fixed with the release of kafka-helper 0.2: https://pypi.org/project/kafka-helper/0.2/

Hi,
I have faced the exact same problem. In this case the culprit is 'flask_oauth' which is not compatible with python 3.7.1.
I found the fix: pip install git+https://github.com/mitsuhiko/flask-oauth
This works in local absolutely fine but while pushing into heroku-git, again facing the same problem.
Please help.
Thanks in advance!


Lsnbldr 499

this commit is probably OK to go, but I''d like to test a bit more first. I'll commit it when ready.

Looks good - the changes to includePageBody.vm seem safe.  It looks like you are taking advantage of the namespacing of Morpheus to simplify things - that is good.


Translation 'and' seporator

What steps will reproduce the problem?
Try to submit any two values that must be unique
What is the expected result?
Normal transtation
What do you get instead?
there's no way to translate 'and' separator in
https://github.com/yiisoft/yii2/blob/master/framework/validators/UniqueValidator.php#L251
second param must be translatable separator
Additional info

Q
A

Yii version
2.0.10

PHP version
any

Operating system
any

Confirmed. Would you like to submit a pull request with fix?

#13372 a pull request with fix


Implementating interfaces to collect and send app metrics.

Recomposing Event Handler interface by writing some default methods to let subclasses easily implement this interface. Checked backward compatibitliy, and it should a safe change. Constucting a Listener Set class to wrap up different singleton listener by exploiting multiton design pattern. The underlying benefits of this use is to create one factory-like class to generate different singletons.
Adding quite a few event types as a kind of metrics.
Having WebMetricsListener, ExecMetricsListener and CommonListener to handle received metrics event. Since the previous implementation (WEBMetricsRegister etc.) is quite redundant. So Reconstructing.
This commit will kick off having the following appcalition metrics:

The rate of uploading file chunks to DB
The rate of user Downloading a file
The rate of DB AZ Downloading Files in executor
The rate of DB connection in both web and executor
the rate of Rest Get Call in Webserver
the rate of Rest Post Call in Webserver

this PR was evaluated in local laptop, and worked.

Closing this PR, as new one is created in #913


Initialize Taints and Tolerations in Bahasa Indonesia.

This PR addresses #13929
/assign @girikuncoro

nice work, thank you for your contribution!
/lgtm
/approve


error : Can't resolve 'react-native'

Describe the bug
Getting a build error when trying to build my changes:
Module not found : error : Can't resolve 'react-native' in 'C:\repos\SupportExtension\src\SupportExtension\Client\React\node_modules@microsoft\omnichannel-chat-sdk\lib\telemetry' [C:\repos\SupportExtension\src\SupportExtension\SupportExtension.csproj]
There's no dependency on react-native when I run npm list react-native:

It also looks like any references to react-native are optional in the package-lock.json, so not sure why I'm getting this error.
I see here that react-native should be optional, but the error above is an error, not a warning: #178
I'm using versions the following package versions:
"@microsoft/omnichannel-chat-sdk": "1.3.0",
"@microsoft/omnichannel-chat-widget": "1.0.5-main.b771061",
I can share links to our source code privately if needed.

Adding a fallback by setting the react-native to false did the trick.
reactViewBuild.addFallbacks({     "react-native": false });


Error: Cannot find module 'react/lib/ReactInstanceHandles' @ React v16

My dependencies:
  "dependencies": {
    "blessed": "^0.1.81",
    "react": "^16.2.0",
    "react-blessed": "^0.2.0",
    "reason-react": "^0.3.0"
  },

My test code:
import React, {Component} from 'react';
import blessed from 'blessed';
import {render} from 'react-blessed';

// Rendering a simple centered box
class App extends Component {
  render() {
    return (
      <box top="center"
           left="center"
           width="50%"
           height="50%"
           border={{type: 'line'}}
           style={{border: {fg: 'blue'}}}>
        Hello World!
      </box>
    );
  }
}

// Creating our screen
const screen = blessed.screen({
  autoPadding: true,
  smartCSR: true,
  title: 'react-blessed hello world'
});

// Adding a way to quit the program
screen.key(['escape', 'q', 'C-c'], function(ch, key) {
  return process.exit(0);
});

// Rendering the React app using our screen
const component = render(<App />, screen);

Output:
> node test.js
module.js:529
    throw err;
    ^

Error: Cannot find module 'react/lib/ReactInstanceHandles'
    at Function.Module._resolveFilename (module.js:527:15)
    at Function.Module._load (module.js:476:23)
    at Module.require (module.js:568:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (/Users/r627543/Code/repohunter/node_modules/react-blessed/dist/render.js:8:29)
    at Module._compile (module.js:624:30)
    at Object.Module._extensions..js (module.js:635:10)
    at Module.load (module.js:545:32)
    at tryModuleLoad (module.js:508:12)
    at Function.Module._load (module.js:500:3)```

OK, I've been able to get past this error. dist/ on NPM and package.json are stale. Steps to fix:

Clone the repo
Do a full clean build
Change package.json to:

{
...
  "main": "./dist/index.js",
...
}```

However, I now have a new error: when I try and run the test file above, I get the error:
The above error occurred in one of your React components:
    in box
    in InnerBox
    in box
    in App

Consider adding an error boundary to your tree to customize error handling behavior.
Visit https://fb.me/react-error-boundaries to learn more about error boundaries.
Error: No active screen.
    at Text.Node (/Users/r627543/Code/react-blessed/node_modules/blessed/lib/widgets/node.js:57:13)
    at Text.Element (/Users/r627543/Code/react-blessed/node_modules/blessed/lib/widgets/element.js:49:8)
    at new Text (/Users/r627543/Code/react-blessed/node_modules/blessed/lib/widgets/text.js:24:11)
    at Function.Text (/Users/r627543/Code/react-blessed/node_modules/blessed/lib/widgets/text.js:20:12)
    at createTextInstance (/Users/r627543/Code/react-blessed/dist/fiber/fiber.js:77:20)
    at completeWork (/Users/r627543/Code/react-blessed/node_modules/react-reconciler/cjs/react-reconciler.development.js:4469:42)
    at completeUnitOfWork (/Users/r627543/Code/react-blessed/node_modules/react-reconciler/cjs/react-reconciler.development.js:5918:18)
    at performUnitOfWork (/Users/r627543/Code/react-blessed/node_modules/react-reconciler/cjs/react-reconciler.development.js:6020:14)
    at workLoop (/Users/r627543/Code/react-blessed/node_modules/react-reconciler/cjs/react-reconciler.development.js:6074:26)
    at Object.invokeGuardedCallback$1 (/Users/r627543/Code/react-blessed/node_modules/react-reconciler/cjs/react-reconciler.development.js:1562:10)

Using blessed directly works fine. When I run the examples in this repo, they work. I'm not sure what's going on. Should I create a new issue?

I deleted my last comment - it seems that it wasn't working properly when using npm link. By doing the above steps inside of node_modules, it works correctly

@Lokeh is this matter resolved then? Should I close?

@Yomguithereal not at all. Installing from NPM is still broken unless the user does the above three steps inside of node_modules.
You need to:

Fix package.json to correctly point "main" to "./dist/index.js"
Fully delete dist/ and rebuild before publishing to NPM

Fair enough. I've published a fix on npm. Can you tell me if it's good now?

👍


Beam search (best of) for completion API

Beam search is a sampling mechanism by which we maximize probability of not just the next token, but the entire completion.
While it can be ignored for simpler uses, any form of reasoning, especially with a tiny model, requires beam search to backtrack from incorrect steps.
llama.cpp already supports beam search, so it should be trivial to implement.

Is this still active? If this won't ever be natively supported please say so, then I'll find a workaround for my projects


onTapUp not triggered after app is suspended and re-opened

Steps to Reproduce
I am seeing the following behaviour when the app is suspended (for instance, when receiving a phone call) during a gesture (long tapping or dragging) and then is re-opened:

Tap down on the following widget -> prints "onTapDown"
Press home button (could be receive phone call)
Re-open app -> "onTapUp" is never printed

class DemoScreen extends StatelessWidget {
  @override
  Widget build(BuildContext context) => Center(
        child: Container(
          width: 300.0,
          height: 300.0,
          color: Colors.blue,
          child: Center(
            child: GestureDetector(
              onTapDown: (_) => print('onTapDown'),
              onTapUp: (_) => print('onTapUp'),
              child: Container(
                width: 100.0,
                height: 100.0,
                color: Colors.orange,
              ),
            ),
          ),
        ),
      );
}

This is a problem when you have some behaviour associated with the gesture, like an animation. The consequence here is that once the app is re-opened, the animation will be in the end state, which can be quite strange for the user.
I would expect that on such case, any on-going gesture gets completed. Is this the right expectation?
Flutter doctor
flutter doctor -v
[✓] Flutter (Channel unknown, v0.10.2, on Mac OS X 10.13.6 17G65, locale en-NL)
    • Flutter version 0.10.2 at /Users/user/IdeaProjects/hue_blue/flutter
    • Framework revision d8cbb80206 (4 weeks ago), 2018-10-26 01:30:21 -0400
    • Engine revision 6c2ade9fa2
    • Dart version 2.1.0-dev.8.0.flutter-bf26f760b1

[✗] Android toolchain - develop for Android devices
    ✗ Unable to locate Android SDK.
      Install Android Studio from: https://developer.android.com/studio/index.html
      On first launch it will assist you in installing the Android SDK components.
      (or visit https://flutter.io/setup/#android-setup for detailed instructions).
      If Android SDK has been installed to a custom location, set $ANDROID_HOME to that location.
      You may also want to add it to your PATH environment variable.

[✓] iOS toolchain - develop for iOS devices (Xcode 10.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 10.1, Build version 10B61
    • ios-deploy 2.0.0
    • CocoaPods version 1.5.3

[!] Android Studio (not installed)
    • Android Studio not found; download from https://developer.android.com/studio/index.html
      (or visit https://flutter.io/setup/#android-setup for detailed instructions).

[✓] IntelliJ IDEA Community Edition (version 2018.1.6)
    • IntelliJ at /Applications/IntelliJ IDEA CE.app
    • Flutter plugin version 30.0.1
    • Dart plugin version 181.4892.1

[✓] Connected device (1 available)
    • iPhone XS • B74C2265-233F-4EAB-89B5-6850589648EF • ios • iOS 12.1 (simulator)

! Doctor found issues in 2 categories.

I'm closing this ticket since I found that the onTapCancel event is triggered in this situation. So, not a problem of the framework, but from the developer :)


run regression tests in parallel

the problem here might be that this chek is required by CI?

so I'm gonna force merge and then change the requirement


Add To/from in a private message

Right now the log looks like this:
23:04:53 SomeUser: Hey man! You good? :)
23:05:43 SomeUser: I'm great, you?
Would love to see it like this:
23:04:53 From SomeUser: Hey man! You good? :)
23:05:43 To SomeUser: I'm great, you?
Great work on the plugin. It's very useful.
-Joacim

Seems like a reasonable request, i'll take a whilethough as i want to sit down and do a bigger-ish update including clan and guest chats.

Very understandable :) Thanks!

Added in d80badcbe2e6b5d7e187a2524a3ea94c475a23ae


kube-cluster-osx/src/bin/fleetctl  SEEMS TO BE AN OLD VERSION

Hi
Are you going to update fleetctl to the new version?
kube-cluster-osx/src/bin/fleetctl is 0.11.5.
the latest version is fleet v0.11.7.
Thanks.

@zhangwei I'm going to update it in a few days

fixed in v0.2.4


Automated cherry pick of #8014: support search ip

Cherry pick of #8014 on release/3.4.
#8014: support search ip

/lgtm
/approve


Add SpringerNature to Community Section in README

Here at @springernature we started using this fantastic tool last week!
Thanks a lot for your amazing work!

Many thanks @nicmart!