Loading PyTorch pretrained visual extractors as Env Wrapper

Description
This PR introduces a new Env Wrapper PreTrainedVisionExtractorWrapper for pre-processing visual observations. The idea is similar to https://github.com/AGH-CEAI/rl-baselines3-zoo/pull/3, but differs in the definition of the input for a RL algorithm. Instead of images (which needs to be stored in the buffer and must be processed every time during a training), the algorithm receives only a vector of extracted features.
This should help with long wall-clock times needed for training algorithms.
Please take note, that every env step needs to send image to GPU, process it, take the results back and save it to the RAM.
A performance profiling should be performed before running on intense workloads.
In addition, a significant usage of GPU VRAM was noticed for greater values of  n_envs - this is probably due to multiple allocations of the same model.
Motivation and Context

[ ] I have raised an issue to propose this change (required for new features and bug fixes)

Types of changes

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

Checklist:

[ ] I've read the CONTRIBUTION guide (required)
[ ] I have updated the changelog accordingly (required).
[ ] My change requires a change to the documentation.
[ ] I have updated the tests accordingly (required for a bug fix or a new feature).
[ ] I have updated the documentation accordingly.
[ ] I have reformatted the code using make format (required)
[ ] I have checked the codestyle using make check-codestyle and make lint (required)
[ ] I have ensured make pytest and make type both pass. (required)

Note: we are using a maximum length of 127 characters per line

LGTM :+1:


tests fail on PHP 7.0.19

[Set-Cookie: hello=world; expires=Thu, 01-Jan-1970 00:00:01 GMT; Max-Age=0]
FAILED: [Set-Cookie: hello=world; expires=Thu, 01-Jan-1970 00:00:01 GMT; Max-Age=-1496223363] !== [Set-Cookie: hello=world; expires=Thu, 01-Jan-1970 00:00:01 GMT; Max-Age=0]
php-7.0.19-1.fc25.x86_64

Thank you very much!
The issue that caused this change in behavior in PHP was tracked here and fixed here.
For this library, it seems we must set the $maxAge to \max($maxAge, 0) if the platform is either of the following:

PHP 7.0.x where x >= 19
PHP 7.1.5+

Do you agree?

 max-age-av        = "Max-Age=" non-zero-digit *DIGIT
                       ; In practice, both expires-av and max-age-av
                       ; are limited to dates representable by the
                       ; user agent.

So, it is a bit confusing, but it seems MaxAge=0 would be an illegal value. See also https://tools.ietf.org/html/rfc6265#section-5.2.2 where it is not 100% clear what is actually valid. Seems contradictory.

Thanks!
RFC 2109 accepts zero but doesn't accept negative numbers.
RFC 2965 handles this just like its predecessor.
RFC 6265 disallows both negative numbers and zero in its "Server Requirements" but allows both in its "User Agent Requirements".
Anyway, to us, important is what the PHP core does. And since they introduced the change which replaces negative numbers with zero, we should probably do that as well.

Fair enough :)

Fixed in https://github.com/delight-im/PHP-Cookie/commit/e81e67a00c30e16888664896b5c864bbdb8245b2. Thanks again!


WordPress and Gravity Forms conflict [Mobile Only]

Hello,
I have used this script on a WordPress website, and everything seemed to work great on the development environment. We tested extensively, but when we launched, we ran into an odd error. Actually, its the lack of error that is odd. The menu will not open on mobile only on the pages listed below. All caching has been turned off on the website. When I use browserstack, I dont see an error. When I use the inspect tool, I also see no errors. I have reached out to Gravity Forms and they said to reach out to you (typical). I have run npm update recently, which would give me an updated version of the code. I am not sure what other steps to take.
Sporadically, I find this error or something similar.
https://share.gravityfor.ms/i/ReewAd
The website is: https://www.amo-union.org/
Example page where menu is not working:
https://www.amo-union.org/contact-dispatching/
https://www.amo-union.org/membership-application/

Hi,
can You provide some code?

Here is the snippet I use to activate the hc-offcanvas-menu:
`jQuery(document).ready(function($) {
$('#main-nav').hcOffcanvasNav({
    disableAt: 992,
    customToggle: $('.toggle'),
    levelSpacing: 40,
    navTitle: $('<img src="/wp-content/themes/AMO-union/images/amo-logo.svg" alt="American Maritime Officers" width="125" height="125">'),
    levelTitles: true,
    levelTitleAsBack: true,
    pushContent: '#page-container',
    position: 'right',
    insertClose: false,
    levelSpacing: 0,
});

});`
Other than that I use a custom WordPress menu walker to spit out the code as you see it on the front-end. Since submitting this ticket, it seems that there is some different behavior. The sporadic error I mentioned above has become persistent with every load. I am seeing the mobile nav toggle bars on all screen sizes on the pages linked above as well.

The code between pages with errors and without errors seem to be slightly different as well. Notice the mobile menu toggle has a bunch of classes and attributes on about us, but not on contact dispatching. I think the error is preventing the code from behaving as expected. Do you know where this error is originating?
/contact-dispatching

/about-us


docker: allow keyspace name override

Currently Blueflood allows overriding the name of the Cassandra keyspace with the 'ROLLUP_KEYSPACE' variable (which defaults to 'DATA'). While the Docker container currently also accepts this environment variable and it gets provided to Blueflood itself, it isn't taken into account when initially creating the Cassandra keyspace and tables, therefore Cassandra still gets initialized with a keyspace called 'DATA' even when providing a different keyspace name.
This PR solves this issue by modifying the CQL script at startup time when it detects a different keyspace name.

Coverage decreased (-0.01%) to 74.503% when pulling b9712e81e31681950a50fc5cfc2d3a12eafba519 on Klarrio:docker_allow_keyspace_name_override into d2a04d4e1a841255bce0ce1eee8d9b5826eed2d2 on rackerlabs:master.


Can we make kilosort 3 deterministic?

From our own testing, it appears kilosort is not deterministic!  As a anecdotal example, I re-ran sorting with the same code and input files, and got:

run 1: 2 units at depths 900 and 900
run 2: zero spikes or units
run 3: zero spikes or units
run 4: 2 units at depths 600 and 900

The most discussion of this I've found so far is here
It's unclear we can tackle this completely (!) but we could try add args to the runKilosort entrypoint that would allow us to set rng and gpurng at the outset.
Maybe Kilosort 4 with Pytorch will give us a different handle on rng stuff?

I'm also remembering this comment from the Kilosort code about making things slower but deterministic.
https://github.com/MouseLand/Kilosort/blob/main/CUDA/mexGPUall.m#L12
In our Docker build process, this is realized here:
https://github.com/benjamin-heasly/kilosort3-docker/blob/main/kilosort3/mex-build.sh#L62
Why would deterministic be slower?  I'm not sure what this is all about, but it seems to meet the metal here:
https://github.com/MouseLand/Kilosort/blob/main/CUDA/mexMPnu8.cu#L987
Something we could mess with if we want.

Here's what I'll try:

Modify our Docker image build to set both ENSURE_DETERM and ENABLE_STABLEMODE during the build of mex-gpu function mexMPnu8.
Modify our runKilosort entrypoint to accept a value for useStableMode, to use as Kilosort's ops.useStableMode, which Kilosort passes as an argument to its mexMPnu8 mex-gpu function.
Modify our runKilosort entrypoint to accept a value for LTseed, to use as Kilosort's ops.LTseed, which Kilosort then passes on to Matlab's rng.
Modify our runKilosort entrypoint to accept a value gpuSeed, and to apply this value after initializing the gpu, using Matlab's gpurng('default') and gpurng(gpuSeed)

After all that I'll come back and comment on whether things seem deterministic -- either way.

I sorted the same file three times, using the v0.0.32 version of this repo, which makes a best effort to be rng-consistent, as in the comment above.
It seems the sorting is still not deterministic.  Informally, I saw:

test-1: cluster count 46, good clusters 11, 39, 42
test-2: cluster count 34, good clusters 27, 30
test-3: cluster count 48, good clusters 11, 41, 44

FWIW, this was a 16-channel Plexon recording, about 3993s long, which we converted to Kilosort format using plx-to-kilosort v0.0.22.
From this little test I conclude that I don't know a straightforward way to make Kilosort 3 deterministic.  Perhaps we'll just move on as-is until we need otherwise, or until Kilosort 4, which may be quite different, anyway!


Merge main

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.


DAOs Table: Pagination UI

Overview
User Stories
Scenarios
Deliverables
Detail
Related Issues

#107
#106

Resources

React Table with Infinite Scroll Code Sandbox Example

Need some guidance from design

Need loading states

Sam can play with this in Member List

We have this working now. Going to archive.


CTHUB - admin panel - grey out save button if nothing has changed

Title:
admin panel - grey out save button if nothing has changed
Description:
the admin panel being right below the upload box can be confusing for the user, the permissions save button should be greyed out so if the user is just trying to upload data and hasnt changed user permissions, they dont accidentally click it.
Purpose and benefit to user:
Acceptance Criteria:

[ ] Given I am a user with admin and upload permission, When I am uploading a document and not changing any user permissiosn, then the save button on the admin panel is not enabled

Development Checklist:

[ ] A
[ ] B
[ ] C

Notes:

Please add your planning poker estimate with Zenhub @emi-hi

Please add your planning poker estimate with Zenhub @tim738745

Tested


[WIP] iOS deprecated API replacement -  Breaking -  Interactive / Actionable Notifications

After [WIP] iOS deprecated API replacement changes,  Interactive / Actionable Notifications featuring is not working;
First thing;
RNNotificationActionReceived is not included in the supportedEvents
- (NSArray<NSString *> *)supportedEvents
{

    return @[ RNNotificationsRegistered,
              RNNotificationsRegistrationFailed,
              RNNotificationReceivedForeground,
              RNNotificationReceivedBackground,
              RNNotificationOpened];

}

Second,

No known class method for selector 'handleActionWithIdentifier:forLocalNotification:withResponseInfo:completionHandler:'

After adding,
// Required for the notification actions.
- (void)application:(UIApplication *)application handleActionWithIdentifier:(NSString *)identifier forLocalNotification:(UILocalNotification *)notification withResponseInfo:(NSDictionary *)responseInfo completionHandler:(void (^)())completionHandler
{
  [RNNotifications handleActionWithIdentifier:identifier forLocalNotification:notification withResponseInfo:responseInfo completionHandler:completionHandler];
}

- (void)application:(UIApplication *)application handleActionWithIdentifier:(NSString *)identifier forRemoteNotification:(NSDictionary *)userInfo withResponseInfo:(NSDictionary *)responseInfo completionHandler:(void (^)())completionHandler
{
  [RNNotifications handleActionWithIdentifier:identifier forRemoteNotification:userInfo withResponseInfo:responseInfo completionHandler:completionHandler];
}

Does it require a different approach after the updates or the Interactive / Actionable Notifications is not supported by this library anymore?

@aboelbisher Can you please help me.

@RajanJS I ran into those issues to. Please see my PR (#318) - those changes seem to fix those issues and get NotificationActions functional again.

I can't add actionable notifications in IOS project, please take a look at my issue https://github.com/wix/react-native-notifications/issues/324

@RajanJS @RoderickJDunn What is updates regarding this issue? Did you make it work?

@Luckygirlllll

As my issue title states, In [WIP] iOS deprecated API replacement there are changes which are breaking the Interactive / Actionable Notifications feature. I tried adding the missing RNNotificationActionReceived  in the supportedEvents but it didn't work.

So, if you don't want those new updates, and in need of actionable notification to work please use the old version before [WIP] iOS deprecated API replacement updates.
In my case, I get it working with version 1.2.6.
"react-native-notifications": "1.2.6"

@RajanJS How does AppDelegate.m file should look like in version 1.2.6?

You need to implement didReceiveNotificationResponse in your AppDelegate.m in order for notification actions to work. Remove the old handleActionWithIdentifier:identifier methods and add the following.
- (void)userNotificationCenter:(UNUserNotificationCenter *)center didReceiveNotificationResponse:(UNNotificationResponse *)response withCompletionHandler:(void (^)(void))completionHandler
{
  [[RNNRouter sharedInstance] userNotificationCenter:center didReceiveNotificationResponse:response withCompletionHandler:completionHandler];
}

See this link for an example of how the full AppDelegate.m should look.
https://github.com/wix/react-native-notifications/blob/498dd34b70f4a4f4897d68a108ede51ccaaf9a5b/example/ios/NotificationsExampleApp/AppDelegate.m

Fixed in latest version. closing


Test Pact Term in request path

@markdalgleish - I have updated the pact gems to allow a Pact::Term to be used in the path. This will require using version 0.2.3 of the pact-mock_service gem, along with the term() function described here: https://github.com/DiUS/pact-consumer-js-dsl/wiki/Flexible-matching
If you are using a standalone version of the mock service (I can't remember which one you were using) then we'll need to release a new package - can you let me know.
Warning: I have not tested this end to end with the javascript part yet, only the ruby part. But I have complete confidence...

@bethesque There's a problem with the term function shown in the wiki:
function term(term) {
  return {
    "json_class": "Pact::Term",
    "contents" : value,
    "data": {
      "generate": term.generate,
      "matcher": {
        "json_class": "Regexp",
        "o": 0,
        "s": term.matcher
      }
    }
  };
}

It's missing the variable 'value'.  Also, I was wondering what would happen if you don't give the 'generate' property a value.

Hm, I don't know what that value is. Delete it. Sorry, I didn't have time to test this. If you don't give it a generate, it will blow up at some stage in the mock service saying that the generate doesn't match the matcher.

@bethesque What's the next step for this one?

This was just to get you to test it, which I believe you already have?

I have.  Good to go :)
On Wed Feb 25 2015 at 17:03:53 Beth Skurrie<EMAIL_ADDRESS>wrote:

This was just to get you to test it, which I believe you already have?
—
Reply to this email directly or view it on GitHub
https://github.com/DiUS/pact-consumer-js-dsl/issues/25#issuecomment-75910346
.


how disable  console log

like  in express
   //  this.use(express.logger());

in debug mode  output  request log to console
in production mode   comment log to disable log

The feature was added.
Install the latest version (2.3.7)
npm i zinky@latest --save

Then set logRequest property to app instance to false if you want to stop request logs. It is by default set to true.
Eg:
const Zinky = require("zinky");
const app = new Zinky({
    logRequest: false
})

@tablecell did that solve your problem, so I can close the issue ?

@tablecell did that solve your problem, so I can close the issue ?

yes  problem solved


Asynchronous call

Good evening!
I'm trying to figure out https://github.com/nascherman/opentype-bmfont/issues/2 and I believe the problem could lie in the asynchronous loading of images within this package (more specifically when using load-image).
What's the best way to 'wait' for several svg to image calls? Promise.all?
Thanks!
Edit: Yeah, it seems to work as intended now! I will create a PR to https://github.com/nascherman/opentype-bmfont and link it here when complete.
Let me know if you have any other approaches.
thanks again!

For reference, the PR: https://github.com/nascherman/opentype-bmfont/pull/3


add more options

add in options to get provider list, genre list and single movie / show
updated readme
Attached sample output:
test_output.txt
Let me know if anything needs tidied up

Looks good!


Ability to name or add tags to installation

Thanks for all the hard work on this tool! The ability to name the installed versions of R while using the rig add command would be great. This would allow multiple installs of the same version. I was previously able to do this with R Switch. Rig already sort of does this when installing the arm64 version of R side by side with the x86 version.
It might look something like this:
rig list
* name                version    aliases
------------------------------------------
  4.1-seurat          (R 4.1.2)
  4.1-spatial         (R 4.1.2)
  4.1-spotlight       (R 4.1.2)
  4.2                 (R 4.2.2)  release
* 4.2-arm64           (R 4.2.2)
  4.2-bc4.15-spatial  (R 4.2.0)

Hmmmm, this seems hard to do on macOS, actually, so I am curious how rswitch was supporting this.

So, this is difficult, because the CRAN R and package builds use a static link path, so even if you move R to a different directory, the shared libs in R and in the R packages will point to the default one:
❯ otool -L /Users/gaborcsardi/Library/R/arm64/4.2/library/cli/libs/cli.so
/Users/gaborcsardi/Library/R/arm64/4.2/library/cli/libs/cli.so:
	cli.so (compatibility version 0.0.0, current version 0.0.0)
	/Library/Frameworks/R.framework/Versions/4.2-arm64/Resources/lib/libR.dylib (compatibility version 4.2.0, current version 4.2.2)
	/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation (compatibility version 150.0.0, current version 1953.1.0)
	/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1319.0.0)

It is possible to update the link path, but you would have to do it for every package (with compiled code) after installation. Plus the tools that compile code, like Rcpp::cppFunction() would still not work.
This is why I am wondering how you did this with Rswitch.

With R Switch I opened the Frameworks folder and manually renamed the folder. I was able to switch between them afterwards no problem. Perhaps something in the internals wasn't fully switched over that I didn't notice? I am not the biggest R user. I didn't have any problems with package versions though. Everything seemed to be an isolated environment with different installed packages. This was with x86 R and Rosetta, haven't tried it with the arm64 versions of R yet.

Perhaps something in the internals wasn't fully switched over that I didn't notice? I am not the biggest R user. I didn't have any problems with package versions though. Everything seemed to be an isolated environment with different installed packages.

Yeah, those installations are not independent. See the link paths in my comment above. As long as you install the same package versions in the different libraries, they will probably work, but as soon as you install different versions, you'll get undefined behavior.
If you just want several independent libraries for an R version, rig can help you with that, see rig lib --help.

Good to know. Yeah I have been testing out rig lib. So far so good! Thanks for the working on rig!


Implement remaining member functions in Dictionary

Added methods from Godot docs here: https://github.com/libriscv/godot-sandbox/commit/057547c0885353725ebdcbe4b8147e085f5caeb5


Expose isRedirect method

Exposed isRedirect method

This was a legacy api not meant to be used and isn't a part of the spec, we will deprecate it in next release.
You can however write your own helper function as redirect status are defined here:
https://fetch.spec.whatwg.org/#redirect-status


Do I need AWS account?

Do I need AWS account?

How to set it up?

I was looking for something which I can run locally on windows.

@ugintl thanks for your interest in this project.
Yes you would an AWS account & have aws cli installed in local to use aws-infa setup.
This project is at a very initial stage, don't have any thing concrete running as of now.


Keyboard done action behaves differently on Android and on iOS

Describe the bug
Keyboard done action works differently on Android and iOS.
On Android it's doing what's it supposed to.
On iOS it adds \n at the end of TextField text.
Affected platforms
Select one of the platforms below:

Android
iOS

Versions

Kotlin version*: 1.9.0
Compose Multiplatform version*: 1.5.0-beta01
OS version(s)*: iOS 16.4, Android 13
OS architecture : arm64

To Reproduce
Steps and/or the code snippet to reproduce the behaviour:
Try done action.
Expected behaviour
iOS should behave same as Android.
Screenshots
wdwl-android-keyboard-done-action.webm
https://github.com/JetBrains/compose-multiplatform/assets/29804184/6063fef5-f5c9-4bb3-9b17-1253e2b5adcd

Thanks for reporting the issue.
@dima-avdeev-jb can you have a look at it?

facing the same issue, this is a bit of a blocker for me, I can't see any obvious workarounds 😕

I have the same issue and it's a major blocker since one of the main features of my app is chat. Any workaround is appreciated

I have the same issue and it's a major blocker since one of the main features of my app is chat. Any workaround is appreciated

You could try something like this if you consider it illegal to have \n in the chat:
val keyboardController: SoftwareKeyboardController? = LocalSoftwareKeyboardController.current
val textState = remember { mutableStateOf("") }
TextField(
    value = textState.value,
    onValueChange = { newText: String ->
        if (newText.endsWith('\n')) {
            keyboardController?.hide()
        } else {
            textState.value = newText
        }
    },
)

I haven't tested this, however it does't work in the case of a password field which could contain that character, making login screens very difficult atm 😕

Looks fixed in 1.5.1 🤷

@mazunin-v-jb Can you please check and close if it is alread done in 1.5.1 ?

Still not fixed, I am using 1.5.10-beta01 but I still have the same issue. There is no way to close the keyboard with a number pad.

my app doesn't work on iOS with compose version 1.5.1.
everything works fine on 1.5.10-beta01.
there is different issue now, text edit field label is cut off on the top. but that's another issue.

@dima-avdeev-jb, works as expected now.
https://github.com/JetBrains/compose-multiplatform/assets/124871594/a9f5adc4-4d51-48b9-b23b-ce3be9c5e3d8

@marenovakovic, please, feel free to create a new issue for a new problem.
And to reopen that one if that problem is still not fixed.

Please check the following ticket on YouTrack for follow-ups to this issue. GitHub issues will be closed in the coming weeks.


Magnify

Hey @rejas . This is just a rough cut of what we talked about in issue #162
So, don't interpret as final, but do give me your thoughts :D

Hey, if I may, here's my 2 cents:

you've accidentally commited yarn.lock
magnify doesn't describe the intended functionality that clearly for me - maybe something like fixedSize or sizeOverride?
the implementation looks fine, but I haven't tried it
Honestly, the biggest issue for me is that I don't see the use case for this. I've seen your comments in #162 but if you could elaborate, maybe I would...

@GenaBitu To answer the most important question (use-case), it's utility would, in my mind, pertain to prototyping.
Imagine being able to create galleries without nuisance of linking to external placeholder sites, or maintaining a set of placeholder images, or something like that. Just use a 1px data-uri and scale according to project needs.
Does that help?

Umm, you probably have different needs from me (I have probably never needed to prototype in that way)... But that's fine, go ahead!

After playing around for a while, I have some questions.
First, let me note that split up the concepts of "placeholders" and "magnification". -- this PR is about magnification.
I was originally thinking of magnification as a developer option, but what if it were a userland option?
This would boil down to three possibilities: no magnification, "static" magnification, and "interactive" magnification.

Hi @paxperscientiam, sorry to basically break this completely with #866 :( But I think it is worth it, it makes the code much more maintainable...
I want to refactor the ImageView some more still and I think this PR is unfortunately beyond saving... I am going to close it and we can look at fixing #162 in a new way. Let me know if you think this PR is worth rebasing. Thanks for understanding.


Update of mysql cluster lead to problem with replication.

What is the problem
Update of the mysql cluster lead to problem with replication.
How I got this problem
My mysql cluster had worked about 20 days without problem. Yesterday I deployed an update for mysql and after this I got problem. I've updated mysql configuration.
Operator started updates from slave mysql node. After some time, about 3 minutes, slave node become master, and old master went to termination. But old master didn't become a slave.
Log of new slave node:
# kubectl -n ch-wordpress logs -f cluster-com-mysql-0 mysql
2020-07-14T16:09:46.240702Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2020-07-14T16:09:46.241535Z 0 [Note] mysqld (mysqld 5.7.26-29-log) starting as process 1 ...
2020-07-14T16:09:46.400346Z 0 [Note] InnoDB: PUNCH HOLE support available
2020-07-14T16:09:46.400373Z 0 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2020-07-14T16:09:46.400376Z 0 [Note] InnoDB: Uses event mutexes
2020-07-14T16:09:46.400379Z 0 [Note] InnoDB: GCC builtin __atomic_thread_fence() is used for memory barrier
2020-07-14T16:09:46.400381Z 0 [Note] InnoDB: Compressed tables use zlib 1.2.7
2020-07-14T16:09:46.400383Z 0 [Note] InnoDB: Using Linux native AIO
2020-07-14T16:09:46.400563Z 0 [Note] InnoDB: Number of pools: 1
2020-07-14T16:09:46.400642Z 0 [Note] InnoDB: Using CPU crc32 instructions
2020-07-14T16:09:46.545165Z 0 [Note] InnoDB: Initializing buffer pool, total size = 128M, instances = 1, chunk size = 128M
2020-07-14T16:09:46.548452Z 0 [Note] InnoDB: Completed initialization of buffer pool
2020-07-14T16:09:46.550047Z 0 [Note] InnoDB: If the mysqld execution user is authorized, page cleaner thread priority can be changed. See the man page of setpriority().
2020-07-14T16:09:46.808392Z 0 [Note] InnoDB: Crash recovery did not find the parallel doublewrite buffer at /var/lib/mysql/xb_doublewrite
2020-07-14T16:09:46.886568Z 0 [Note] InnoDB: Highest supported file format is Barracuda.
2020-07-14T16:09:47.697355Z 0 [Note] InnoDB: Created parallel doublewrite buffer at /var/lib/mysql/xb_doublewrite, size 3932160 bytes
2020-07-14T16:09:55.466791Z 0 [Note] InnoDB: Creating shared tablespace for temporary tables
2020-07-14T16:09:55.466877Z 0 [Note] InnoDB: Setting file './ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
2020-07-14T16:09:56.921477Z 0 [Note] InnoDB: File './ibtmp1' size is now 12 MB.
2020-07-14T16:09:56.922189Z 0 [Note] InnoDB: 96 redo rollback segment(s) found. 96 redo rollback segment(s) are active.
2020-07-14T16:09:56.922197Z 0 [Note] InnoDB: 32 non-redo rollback segment(s) are active.
2020-07-14T16:09:56.939436Z 0 [Note] InnoDB: page_cleaner: 1000ms intended loop took 10390ms. The settings might not  be optimal. (flushed=0, during the time.)
2020-07-14T16:09:56.939702Z 0 [Note] InnoDB: Waiting for purge to start
2020-07-14T16:09:57.040971Z 0 [Note] InnoDB: Percona XtraDB (http://www.percona.com) 5.7.26-29 started; log sequence number<PHONE_NUMBER>2
2020-07-14T16:09:57.041143Z 0 [Note] InnoDB: Loading buffer pool(s) from /var/lib/mysql/ib_buffer_pool
2020-07-14T16:09:57.041469Z 0 [Note] Plugin 'FEDERATED' is disabled.
2020-07-14T16:09:58.603350Z 0 [Note] Found ca.pem, server-cert.pem and server-key.pem in data directory. Trying to enable SSL support using them.
2020-07-14T16:09:58.603368Z 0 [Note] Skipping generation of SSL certificates as certificate files are present in data directory.
2020-07-14T16:09:58.681490Z 0 [Warning] CA certificate ca.pem is self signed.
2020-07-14T16:09:58.681535Z 0 [Note] Skipping generation of RSA key pair as key files are present in data directory.
2020-07-14T16:09:58.732461Z 0 [Note] Server hostname (bind-address): '*'; port: 3306
2020-07-14T16:09:58.732489Z 0 [Note] IPv6 is available.
2020-07-14T16:09:58.732496Z 0 [Note]   - '::' resolves to '::';
2020-07-14T16:09:58.732509Z 0 [Note] Server socket created on IP: '::'.
2020-07-14T16:10:00.526879Z 0 [Warning] Neither --relay-log nor --relay-log-index were used; so replication may break when this MySQL server acts as a slave and has his hostname changed!! Please use '--relay-log=cluster-com-mysql-0-relay-bin' to avoid this problem.
2020-07-14T16:10:01.349463Z 0 [ERROR] Error during --relay-log-recovery: Could not locate rotate event from the master.
2020-07-14T16:10:01.427199Z 0 [ERROR] Slave: Failed to initialize the master info structure for channel ''; its record may still be present in 'mysql.slave_master_info' table, consider deleting it.
2020-07-14T16:10:01.427221Z 0 [ERROR] Failed to create or recover replication info repositories.
2020-07-14T16:10:01.427226Z 0 [Note] Some of the channels are not created/initialized properly. Check for additional messages above. You will not be able to start replication on those channels until the issue is resolved and the server restarted.
2020-07-14T16:10:03.869457Z 0 [Note] Event Scheduler: Loaded 0 events
2020-07-14T16:10:03.869601Z 0 [Note] Execution of init_file '/etc/mysql/conf.d/operator-init.sql' started.
2020-07-14T16:10:04.049402Z 0 [Note] Execution of init_file '/etc/mysql/conf.d/operator-init.sql' ended.
2020-07-14T16:10:04.049518Z 0 [Note] mysqld: ready for connections.
Version: '5.7.26-29-log'  socket: '/var/lib/mysql/mysql.sock'  port: 3306  Percona Server (GPL), Release 29, Revision 11ad961
2020-07-14T16:10:08.630735Z 26 [Note] Got packets out of order
2020-07-14T16:10:10.054908Z 0 [Note] InnoDB: Buffer pool(s) load completed at 200714 16:10:10
2020-07-14T16:10:18.630782Z 36 [Note] Got packets out of order
2020-07-14T16:10:28.630729Z 90 [Note] Got packets out of order
2020-07-14T16:10:38.631478Z 121 [Note] Got packets out of order
2020-07-14T16:10:48.630487Z 149 [Note] Got packets out of order
2020-07-14T16:10:58.631484Z 176 [Note] Got packets out of order
2020-07-14T16:11:08.631532Z 203 [Note] Got packets out of order

This message xxxxx [Note] Got packets out of order writing to the log without ending. I've waited about 10 minutes but cluster didn't become ready.
Slave status
mysql> show slave status\G;
*************************** 1. row ***************************
               Slave_IO_State:
                  Master_Host: //cluster-com-mysql-1.mysql.ch-wordpress
                  Master_User: sys_replication
                  Master_Port: 3306
                Connect_Retry: 10
              Master_Log_File:
          Read_Master_Log_Pos: 4
               Relay_Log_File: cluster-com-mysql-0-relay-bin.000001
                Relay_Log_Pos: 4
        Relay_Master_Log_File:
             Slave_IO_Running: No
            Slave_SQL_Running: No
              Replicate_Do_DB:
          Replicate_Ignore_DB:
           Replicate_Do_Table:
       Replicate_Ignore_Table:
      Replicate_Wild_Do_Table:
  Replicate_Wild_Ignore_Table:
                   Last_Errno: 0
                   Last_Error:
                 Skip_Counter: 0
          Exec_Master_Log_Pos: 0
              Relay_Log_Space: 0
              Until_Condition: None
               Until_Log_File:
                Until_Log_Pos: 0
           Master_SSL_Allowed: No
           Master_SSL_CA_File:
           Master_SSL_CA_Path:
              Master_SSL_Cert:
            Master_SSL_Cipher:
               Master_SSL_Key:
        Seconds_Behind_Master: NULL
Master_SSL_Verify_Server_Cert: No
                Last_IO_Errno: 0
                Last_IO_Error:
               Last_SQL_Errno: 0
               Last_SQL_Error:
  Replicate_Ignore_Server_Ids:
             Master_Server_Id: 0
                  Master_UUID:
             Master_Info_File: mysql.slave_master_info
                    SQL_Delay: 0
          SQL_Remaining_Delay: NULL
      Slave_SQL_Running_State:
           Master_Retry_Count: 86400
                  Master_Bind:
      Last_IO_Error_Timestamp:
     Last_SQL_Error_Timestamp:
               Master_SSL_Crl:
           Master_SSL_Crlpath:
           Retrieved_Gtid_Set:
            Executed_Gtid_Set: 6b45a7cc-b6a5-11ea-b8ea-32ad1a075609:1-1361877,
d816fc29-b6a5-11ea-a57d-7e8cfea4061a:1-377385
                Auto_Position: 1
         Replicate_Rewrite_DB:
                 Channel_Name:
           Master_TLS_Version:
1 row in set (0.00 sec)

mysql> show master status;\G;
+------------------+----------+--------------+------------------+-----------------------------------------------------------------------------------------------+
| File             | Position | Binlog_Do_DB | Binlog_Ignore_DB | Executed_Gtid_Set                                                                             |
+------------------+----------+--------------+------------------+-----------------------------------------------------------------------------------------------+
| mysql-bin.000156 |   780098 |              |                  | 6b45a7cc-b6a5-11ea-b8ea-32ad1a075609:1-1361912,
d816fc29-b6a5-11ea-a57d-7e8cfea4061a:1-377385 |
+------------------+----------+--------------+------------------+-----------------------------------------------------------------------------------------------+
1 row in set (0.00 sec)

Deleting slave mysql node didn't helped.
What I did to make cluster work

on slave mysql node

stop slave;
slave reset;
CHANGE MASTER TO MASTER_HOST='cluster-com-mysql-1.mysql.ch-wordpress', MASTER_USER='sys_replication', MASTER_PASSWORD='GYTB7hegSVZ234sdfz6oM';
mysql> show slave status\G;
*************************** 1. row ***************************
               Slave_IO_State: Waiting for master to send event
                  Master_Host: cluster-com-mysql-1.mysql.ch-wordpress
                  Master_User: sys_replication
                  Master_Port: 3306
                Connect_Retry: 10
              Master_Log_File: mysql-bin.000079
          Read_Master_Log_Pos: 132015898
               Relay_Log_File: cluster-com-mysql-0-relay-bin.000002
                Relay_Log_Pos: 833
        Relay_Master_Log_File: mysql-bin.000079
             Slave_IO_Running: Yes
            Slave_SQL_Running: No
              Replicate_Do_DB:
          Replicate_Ignore_DB:
           Replicate_Do_Table:
       Replicate_Ignore_Table:
      Replicate_Wild_Do_Table:
  Replicate_Wild_Ignore_Table:
                   Last_Errno: 1032
                   Last_Error: Could not execute Update_rows event on table userdb.2Igai1gaW1_options; Can't find record in '2Igai1gaW1_options', Error_code: 1032; handler error HA_ERR_KEY_NOT_FOUND; the event's master log mysql-bin.000079, end_log_pos 66005263
                 Skip_Counter: 0
          Exec_Master_Log_Pos: 52804871
              Relay_Log_Space: 79212081
              Until_Condition: None
               Until_Log_File:
                Until_Log_Pos: 0
           Master_SSL_Allowed: No
           Master_SSL_CA_File:
           Master_SSL_CA_Path:
              Master_SSL_Cert:
            Master_SSL_Cipher:
               Master_SSL_Key:
        Seconds_Behind_Master: NULL
Master_SSL_Verify_Server_Cert: No
                Last_IO_Errno: 0
                Last_IO_Error:
               Last_SQL_Errno: 1032
               Last_SQL_Error: Could not execute Update_rows event on table userdb.2Igai1gaW1_options; Can't find record in '2Igai1gaW1_options', Error_code: 1032; handler error HA_ERR_KEY_NOT_FOUND; the event's master log mysql-bin.000079, end_log_pos 66005263
  Replicate_Ignore_Server_Ids:
             Master_Server_Id: 101
                  Master_UUID: d816fc29-b6a5-11ea-a57d-7e8cfea4061a
             Master_Info_File: mysql.slave_master_info
                    SQL_Delay: 0
          SQL_Remaining_Delay: NULL
      Slave_SQL_Running_State:
           Master_Retry_Count: 86400
                  Master_Bind:
      Last_IO_Error_Timestamp:
     Last_SQL_Error_Timestamp: 200714 17:52:09
               Master_SSL_Crl:
           Master_SSL_Crlpath:
           Retrieved_Gtid_Set: d816fc29-b6a5-11ea-a57d-7e8cfea4061a:377386-377408
            Executed_Gtid_Set: 6b45a7cc-b6a5-11ea-b8ea-32ad1a075609:1-1373717,
d816fc29-b6a5-11ea-a57d-7e8cfea4061a:1-377386
                Auto_Position: 1
         Replicate_Rewrite_DB:
                 Channel_Name:
           Master_TLS_Version:
1 row in set (0.00 sec)

Because of this Slave_SQL_Running: No Relay_Log_Pos: 833 Relay_Master_Log_File: mysql-bin.000079 I have tried one more thing

slave stop;
slave reset;
CHANGE MASTER TO master_auto_position=0;
CHANGE MASTER TO MASTER_HOST='cluster-com-mysql-1.mysql.ch-wordpress', MASTER_USER='sys_replication', MASTER_PASSWORD='GYTB7hegSVZ234sdfz6oM', MASTER_LOG_FILE='mysql-bin.000081', MASTER_LOG_POS= 234;
               Slave_IO_State: Waiting for master to send event
                  Master_Host: cluster-com-mysql-1.mysql.ch-wordpress
                  Master_User: sys_replication
                  Master_Port: 3306
                Connect_Retry: 10
              Master_Log_File: mysql-bin.000081
          Read_Master_Log_Pos: 234
               Relay_Log_File: cluster-com-mysql-0-relay-bin.000002
                Relay_Log_Pos: 320
        Relay_Master_Log_File: mysql-bin.000081
             Slave_IO_Running: Yes
            Slave_SQL_Running: Yes
              Replicate_Do_DB:
          Replicate_Ignore_DB:
           Replicate_Do_Table:
       Replicate_Ignore_Table:
      Replicate_Wild_Do_Table:
  Replicate_Wild_Ignore_Table:
                   Last_Errno: 0
                   Last_Error:
                 Skip_Counter: 0
          Exec_Master_Log_Pos: 234
              Relay_Log_Space: 541
              Until_Condition: None
               Until_Log_File:
                Until_Log_Pos: 0
           Master_SSL_Allowed: No
           Master_SSL_CA_File:
           Master_SSL_CA_Path:
              Master_SSL_Cert:
            Master_SSL_Cipher:
               Master_SSL_Key:
        Seconds_Behind_Master: 0
Master_SSL_Verify_Server_Cert: No
                Last_IO_Errno: 0
                Last_IO_Error:
               Last_SQL_Errno: 0
               Last_SQL_Error:
  Replicate_Ignore_Server_Ids:
             Master_Server_Id: 101
                  Master_UUID: d816fc29-b6a5-11ea-a57d-7e8cfea4061a
             Master_Info_File: mysql.slave_master_info
                    SQL_Delay: 0
          SQL_Remaining_Delay: NULL
      Slave_SQL_Running_State: Slave has read all relay log; waiting for more updates
           Master_Retry_Count: 86400
                  Master_Bind:
      Last_IO_Error_Timestamp:
     Last_SQL_Error_Timestamp:
               Master_SSL_Crl:
           Master_SSL_Crlpath:
           Retrieved_Gtid_Set:
            Executed_Gtid_Set: 6b45a7cc-b6a5-11ea-b8ea-32ad1a075609:1-1373717,
d816fc29-b6a5-11ea-a57d-7e8cfea4061a:1-377386
                Auto_Position: 0
         Replicate_Rewrite_DB:
                 Channel_Name:
           Master_TLS_Version:
1 row in set (0.00 sec)

After this attempt replication status look better, but mysql cluster stop working at all. K8s endpoints cluster-com-mysql-master and cluster-com-mysql become empty. So I had to delete cluster and recreate it again.
What is my question
How to deal with such problems. It's seems that operator not able to restore cluster. Can you please explain the algorithm, I do not want to recreate mysql cluster every time.
What is ENV
kubernetes 1.14.6
rook ceph 0.9.3/13.2.6
mysql operator 0.3.9
mysql version 5.7
mysql_conf:
mysql_cluster_mysqlconf_innodb_buffer_pool_size: "128M"
mysql_cluster_mysqlconf_innodb_buffer_pool_chunk_size: "128M"
mysql_cluster_mysqlconf_innodb_log_file_size: "16M"
mysql_cluster_mysqlconf_max_connections: "40"
mysql_cluster_mysqlconf_thread_pool_size: "20"
mysql_cluster_mysqlconf_expire_logs_days: "5"

Hi @DeamonMV, thank you for filling this issue.
Here are some tips that may help in the future:

Deleting slave mysql node didn't helped.

When a pod is deleted the PVC is not removed. So in order to reinitialize a node, you can scale it down to 1 replica and then back. By doing this it will delete the PVC for replica and it will reinitialize from node 0.
Also, can you tell me which was the master before the update? Because it seems that node 0 was slave and node 1 was master and after update node 0 become new master and node 1 new slave, is that correct? If yes then you set node 0 slave to node 1 so you made them co-masters.

Hello @AMecea
Sorry, but I can't tell for sure, but I remember that cluster-com-mysql-0 was a master.

When a pod is deleted the PVC is not removed. So in order to reinitialize a node, you can scale it down to 1 replica and then back. By doing this it will delete the PVC for replica and it will reinitialize from node 0.

Yes, I just deleted a pod, and do not touched the amount of replicas of mysql cluster.
Is here exist a way to do such reinitialization of mysql node without deleting a PVC? just to be sure that here no any other way.

I just experienced a similar issue (well it happened 3 weeks ago but now I just realized that my slave is out of sync :hand_over_mouth:).
2021-04-25T18:39:04.408564Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2021-04-25T18:39:04.410166Z 0 [Note] mysqld (mysqld 5.7.26-29-log) starting as process 1 ...
2021-04-25T18:39:04.428066Z 0 [Note] InnoDB: PUNCH HOLE support available
2021-04-25T18:39:04.428117Z 0 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2021-04-25T18:39:04.428123Z 0 [Note] InnoDB: Uses event mutexes
2021-04-25T18:39:04.428129Z 0 [Note] InnoDB: GCC builtin __atomic_thread_fence() is used for memory barrier
2021-04-25T18:39:04.428133Z 0 [Note] InnoDB: Compressed tables use zlib 1.2.7
2021-04-25T18:39:04.428138Z 0 [Note] InnoDB: Using Linux native AIO
2021-04-25T18:39:04.428741Z 0 [Note] InnoDB: Number of pools: 1
2021-04-25T18:39:04.429387Z 0 [Note] InnoDB: Using CPU crc32 instructions
2021-04-25T18:39:04.434439Z 0 [Note] InnoDB: Initializing buffer pool, total size = 1.25G, instances = 1, chunk size = 128M
2021-04-25T18:39:04.483808Z 0 [Note] InnoDB: Completed initialization of buffer pool
2021-04-25T18:39:04.498492Z 0 [Note] InnoDB: If the mysqld execution user is authorized, page cleaner thread priority can be changed. See the man page of setpriority().
2021-04-25T18:39:04.522930Z 0 [Note] InnoDB: Crash recovery did not find the parallel doublewrite buffer at /var/lib/mysql/xb_doublewrite
2021-04-25T18:39:04.525201Z 0 [Note] InnoDB: Highest supported file format is Barracuda.
2021-04-25T18:39:05.806990Z 0 [Note] InnoDB: Created parallel doublewrite buffer at /var/lib/mysql/xb_doublewrite, size 3932160 bytes
2021-04-25T18:39:06.135764Z 0 [Note] InnoDB: Creating shared tablespace for temporary tables
2021-04-25T18:39:06.136194Z 0 [Note] InnoDB: Setting file './ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
2021-04-25T18:39:06.355848Z 0 [Note] InnoDB: File './ibtmp1' size is now 12 MB.
2021-04-25T18:39:06.356944Z 0 [Note] InnoDB: 96 redo rollback segment(s) found. 96 redo rollback segment(s) are active.
2021-04-25T18:39:06.356977Z 0 [Note] InnoDB: 32 non-redo rollback segment(s) are active.
2021-04-25T18:39:06.358679Z 0 [Note] InnoDB: Percona XtraDB (http://www.percona.com) 5.7.26-29 started; log sequence number<PHONE_NUMBER>11
2021-04-25T18:39:06.359449Z 0 [Note] InnoDB: Loading buffer pool(s) from /var/lib/mysql/ib_buffer_pool
2021-04-25T18:39:06.359758Z 0 [Note] Plugin 'FEDERATED' is disabled.
2021-04-25T18:39:15.885339Z 0 [Note] Found ca.pem, server-cert.pem and server-key.pem in data directory. Trying to enable SSL support using them.
2021-04-25T18:39:15.885378Z 0 [Note] Skipping generation of SSL certificates as certificate files are present in data directory.
2021-04-25T18:39:15.888148Z 0 [Warning] CA certificate ca.pem is self signed.
2021-04-25T18:39:15.888204Z 0 [Note] Skipping generation of RSA key pair as key files are present in data directory.
2021-04-25T18:39:15.889990Z 0 [Note] Server hostname (bind-address): '*'; port: 3306
2021-04-25T18:39:15.890088Z 0 [Note] IPv6 is available.
2021-04-25T18:39:15.890096Z 0 [Note] - '::' resolves to '::';
2021-04-25T18:39:15.890120Z 0 [Note] Server socket created on IP: '::'.


Error message for missing gcloud confuses users.

See https://stackoverflow.com/questions/46040439/adding-windows-credentials-on-google-cloud-platform-visual-studio
The user didn't know what to do.
The error message should provide clear instructions; something to the effect:
Please download and install gcloud by visiting cloud.google.com/sdk.  (Clickable link.)

Interestingly enough that's what we should do already, I'll take a look. The extension should be checking that gcloud (and any necessary component) is installed before trying to change the password. This could be an old build of the extension that still required the beta component installed.


RichTextLabel (RTL): add_text(), append_text(), add_image() (and probably others) do not work on orphan RTL

Tested versions
Reproducible in: v4.4.dev7.official [46c8f8c5c], v4.3.stable.official [77dcf97d8]
System information
Godot v4.4.dev7 - Windows 11 (build 22631) - Multi-window, 1 monitor - Vulkan (Forward+) - dedicated NVIDIA GeForce MX450 (NVIDIA; <IP_ADDRESS>13) - 11th Gen Intel(R) Core(TM) i7-1165G7 @ 2.80GHz (8 threads)
Issue description
add_text(), append_text(), add_image() and probably other similar functions do not work on orphan RichTextLabel. Setting the text property directly works.
In the Minimal reproduction project, I only used append_text(), but in my current project in v4.3.stable.official add_image() doesn't work either.
I think it's a bug because I didn't find anything that explains why it behaves like that.
It's pretty simple to bypass putting add_child() before add_(). Deferring the add_ functions works too. However, I think it's not the expected behavior.

Steps to reproduce

Create a RichTextLabel by code (instantiating a scene or creating a new RTL with enough size)
Add some text using add_text() or append_text()
Add the RTL to the tree with add_child()

Can be done on a brand new project. I added a Minimal reproduction project anyway.
Minimal reproduction project (MRP)
orphan_RTL_test.zip

Sounds like:

https://github.com/godotengine/godot/issues/94630

Sounds like:

RichTextLabel: Newly Instanced RichTextLabel's add_text() and append_text() don't add to text #94630

I looked at that issue too, but in my understanding it's a different topic. That issue revolves around how the text property is not updated with add_text (and I got it why), but the label is still showing correctly. I just tested it: I put the text += operation at the beginning (because it will clear the tag stack otherwise), and I gave the new label some size, and it works correctly, even if the text property is not the same as the text shown:

In my issue, if the RTL is orphan, it doesn't show the things added with add_*() at all (in this issue I'm not considering the text property at all).

After some experiments and looking at the code, I think I found the issue: it's the _notification() behavior of rich_text_label.cpp:
	case NOTIFICATION_ENTER_TREE: {
		_stop_thread();
--->		if (!text.is_empty()) {
--->			set_text(text);
		}

		main->first_invalid_line.store(0); // Invalidate all lines.
		queue_redraw();
	} break;

I did some testing. When the RLT is added to a tree, if the text isn't empty, it looks like it calls set_text, replacing the stack with the text property. Calling add_text() to an empty RTL before adding it to the tree works as expected (this confused me a lot, since it works some of the time, before I decided to dig deep into this. And it's probably why this behavior manages to stay hidden).
I don't know why it's necessary to call set_text() on tree enter, nor how to fix this. I really don't know how Godot works.


Fix typo in the X-Frame-Options directive.

It should be ALLOW-FROM instead of ALLOWFROM. See https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Frame-Options
This fixes https://github.com/IdentityServer/IdentityServer4/issues/931

This seems like a small (but important) contribution, so no Contribution License Agreement is required at this point. We will now review your pull request.
Thanks,
.NET Foundation Pull Request Bot

Yep, a typo. Thanks!


Online Demo please?

This is a cool tool - would like to add to react.rocks to get more exposure...

Thanks you for feedback.
Online demo with all features is not possible (at least we can't provide open file in editor feature). Since this tool is for developing environment, not a production.
But probably open file in editor feature is not so important for demo and we can build limited version or some sort of mocks.
Any suggestions for demo app? I used redux-chat for videos, but may be you know better app example?

Hi-
Perhaps TODOMVC? It's familiar and easy. You'd want to focus on your inspector bit, not writing a demo app :)
I looked at https://github.com/anorudes/redux-goals -- added your inspector to the HTML. But the file sourcing wasn't hooked up properly. That might be an example too, since it looks like he's already (sort of) using your inspector.
Regards,
Jeff

BTW, how I found that example usage :) - https://github.com/search?utf8=✓&q=component-inspector+filename:package+language:JSON&type=Code&ref=searchresults

component-inspector already contains react-todomvc as example (redux-based) https://github.com/lahmatiy/component-inspector/tree/master/examples/react-todomvc
agree with @winkler1  - no need to make example with complex app

Done!
http://lahmatiy.github.io/component-inspector/examples/react-todomvc/

Awesome=)

Whoah - great work! :+1:

@winkler1 I submitted link to react.rocks

@lahmatiy maybe there should be some mention in demo about open in editor feature?

What do you think?

@lapanoid I thought about it. Going to add it later.

Note added. And even animated hint with instructions :)


please tell me which python should i select for duka?

use 3.4.2 error log:
File "/root/.pyenv/versions/3.4.2/lib/python3.4/site-packages/duka/core/fetch.py", line 16
async def get(url):
^
SyntaxError: invalid syntax
use 3.5.2 error log:
File "/root/.pyenv/versions/3.5.2/lib/python3.5/lzma.py", line 26, in
from _lzma import *
ImportError: No module named '_lzma'

i got it, should use 3.5
maybe some system config error
i use pyenv install python, and switch to 3.5.0
report same error :
ImportError: No module named '_lzma'

i need install liblzma-dev, but after install, it's not ok.

and reinstall python 3.5.x, that all ok.

Sorry for the delay in answering, I was travelling yesterday.  Duka uses the ansync syntax and requires a python 3.5 interpreter. Glad you sorted out.


:seedling: Fix for protoc validate script

Fix for validate script failures

Signed-off-by: naveensrinivasan<EMAIL_ADDRESS>

The pre-submit is still failing.
If this is a rate limit problem, how about we keep the binary on a GCS bucket and download it (can verify the hash)?

The pre-submit is still failing. If this is a rate limit problem, how about we keep the binary on a GCS bucket and download it (can verify the hash)?
I agree that will probably be a better choice.

This isn't applicable any more thanks to @raghavkaul fix!


pyarrow wheel does not install or build on Python 3.8.2 on Windows 10 on Intel platform.

pyarrow wheel does not build on Python 3.8.2 on Windows 10 on Intel platform.
I am trying to install Apache Superset on Windows 10 in Python pip environment using virtualenv.
Errors shown below....
I am ready to give up on Apache and Superset totally.  Too many problems with too many moving parts.  Apache seems to only work for Unix hackers.   Will try downgrading to Python 3.7 on Windows 10 to see if pyarrow works in that runtime environment.
# pip install pyarrow
Collecting pyarrow
  Downloading pyarrow-0.16.0.tar.gz (5.7 MB)
     |████████████████████████████████| 5.7 MB 6.8 MB/s
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
    Preparing wheel metadata ... done
Collecting numpy>=1.14
  Using cached numpy-1.18.2-cp38-cp38-win32.whl (10.8 MB)
Collecting six>=1.0.0
  Using cached six-1.14.0-py2.py3-none-any.whl (10 kB)
Building wheels for collected packages: pyarrow
  Building wheel for pyarrow (PEP 517) ... error
  ERROR: Command errored out with exit status 1:
   command: 'c:\superset2020\devzone\scripts\python.exe' 'c:\superset2020\devzone\lib\site-packages\pip\_vendor\pep517\_in_process.py' build_wheel 'C:\Users\richadmin\AppData\Local\Temp\tmpdz5a3cyx'
       cwd: C:\Users\richadmin\AppData\Local\Temp\pip-install-ozpru4s0\pyarrow
  Complete output (474 lines):
  running bdist_wheel

.....

cut  many lines....
....
  running build_ext
  creating C:\Users\richadmin\AppData\Local\Temp\pip-install-ozpru4s0\pyarrow\build\temp.win32-3.8
  Traceback (most recent call last):
    File "c:\superset2020\devzone\lib\site-packages\pip\_vendor\pep517\_in_process.py", line 257, in <module>
      main()
    File "c:\superset2020\devzone\lib\site-packages\pip\_vendor\pep517\_in_process.py", line 240, in main
      json_out['return_val'] = hook(**hook_input['kwargs'])
    File "c:\superset2020\devzone\lib\site-packages\pip\_vendor\pep517\_in_process.py", line 181, in build_wheel
      return _build_backend().build_wheel(wheel_directory, config_settings,
    File "C:\Users\richadmin\AppData\Local\Temp\pip-build-env-pkpyvksi\overlay\Lib\site-packages\setuptools\build_meta.py", line 212, in build_wheel
      return self._build_with_temp_dir(['bdist_wheel'], '.whl',
    File "C:\Users\richadmin\AppData\Local\Temp\pip-build-env-pkpyvksi\overlay\Lib\site-packages\setuptools\build_meta.py", line 198, in _build_with_temp_dir
      self.run_setup()
    File "C:\Users\richadmin\AppData\Local\Temp\pip-build-env-pkpyvksi\overlay\Lib\site-packages\setuptools\build_meta.py", line 249, in run_setup
      super(_BuildMetaLegacyBackend,
    File "C:\Users\richadmin\AppData\Local\Temp\pip-build-env-pkpyvksi\overlay\Lib\site-packages\setuptools\build_meta.py", line 143, in run_setup
      exec(compile(code, __file__, 'exec'), locals())
    File "setup.py", line 574, in <module>
      setup(
    File "C:\Users\richadmin\AppData\Local\Temp\pip-build-env-pkpyvksi\overlay\Lib\site-packages\setuptools\__init__.py", line 144, in setup
      return distutils.core.setup(**attrs)
    File "C:\ProgramData\Python3.8\lib\distutils\core.py", line 148, in setup
      dist.run_commands()
    File "C:\ProgramData\Python3.8\lib\distutils\dist.py", line 966, in run_commands
      self.run_command(cmd)
    File "C:\ProgramData\Python3.8\lib\distutils\dist.py", line 985, in run_command
      cmd_obj.run()
    File "C:\Users\richadmin\AppData\Local\Temp\pip-build-env-pkpyvksi\overlay\Lib\site-packages\wheel\bdist_wheel.py", line 223, in run
      self.run_command('build')
    File "C:\ProgramData\Python3.8\lib\distutils\cmd.py", line 313, in run_command
      self.distribution.run_command(command)
    File "C:\ProgramData\Python3.8\lib\distutils\dist.py", line 985, in run_command
      cmd_obj.run()
    File "C:\ProgramData\Python3.8\lib\distutils\command\build.py", line 135, in run
      self.run_command(cmd_name)
    File "C:\ProgramData\Python3.8\lib\distutils\cmd.py", line 313, in run_command
      self.distribution.run_command(command)
    File "C:\ProgramData\Python3.8\lib\distutils\dist.py", line 985, in run_command
      cmd_obj.run()
    File "setup.py", line 94, in run
      self._run_cmake()
    File "setup.py", line 268, in _run_cmake
      raise RuntimeError('Not supported on 32-bit Windows')
  RuntimeError: Not supported on 32-bit Windows
  ----------------------------------------
  ERROR: Failed building wheel for pyarrow
Failed to build pyarrow
ERROR: Could not build wheels for pyarrow which use PEP 517 and cannot be installed directly

Either your Windows or your Python installation is 32bit but Arrow doesn't support 32bit platforms. Check that both Windows and Python are a 64bit installation to install pyarrow. Then you should also be able to obtain wheels instead of sdists and no compilaton should happen.

I am ready to give up on Apache and Superset totally. Too many problems with too many moving parts. Apache seems to only work for Unix hackers.

Keep in mind that these kinds of comments aren't very helpful. We know what it's like to be frustrated but trust that these communities are working hard in good faith to produce software that works, and we at least in Apache Arrow have spent a lot of time and energy (mostly on a volunteer basis, I will add) supporting Windows already.

Hi Wes,
I personally appreciate all the great work that you have done and do with
Pandas.  It is a truly amazing and powerful package that has advanced
society greatly.  I train people how to use pandas, and use it myself
routinely.
I appreciate all the effort that volunteers put into the open source
products and process.  It takes many high-level engineers and programmers
to accomplish so much. Your efforts advance society and business
immeasurably.  I think that sponsored efforts like Apache Arrow and
Superset are great.
I wish more effort would be put into the Windows platform versions of the
Apache open source products, directly by Microsoft since Microsoft supplies
this most widely used OS platform for consumers and business analytics.  I
know there are many more mobile than desktop devices, but I don't count
cell phones and tablets in the analytics game because they are not (yet?)
primary or distributed high-performance computing endpoints.
I just spent the better part of 2 weeks working to get Superset to work
natively on Windows 10, so the community has a version that "just works"
with a clean installation without futzing around or frustrating dead ends.
I know there are Superset Docker container versions available, but most of
them have problems on Windows because Docker on Windows is immature and
comes with its own frustrating version and incompatibility issues.  My goal
for a Windows-native version is to stop burdening Windows users with the
additional complexity (and knowledge requirements) of Docker.  My message
post was a sign of my frustration with Superset and Docker Windows
incompatibility.
I apologize for expressing my frustration publicly, and I will refrain from
such comments in the future.
Thank you.
Best Regards,
Rich Lysakowski, Ph.D.
Data Scientist and Analytics Engineer,
On Sun, Apr 12, 2020 at 1:59 PM Wes McKinney<EMAIL_ADDRESS>wrote:

I am ready to give up on Apache and Superset totally. Too many problems
with too many moving parts. Apache seems to only work for Unix hackers.
Keep in mind that these kinds of comments aren't very helpful. We know
what it's like to be frustrated but trust that these communities are
working hard in good faith to produce software that works, and we at least
in Apache Arrow have spent a lot of time and energy (mostly on a volunteer
basis, I will add) supporting Windows already.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/apache/arrow/issues/6902#issuecomment-612653598, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/ACHJVL2JRUSKJEFPI7UGK5LRMH6RPANCNFSM4MGI4XTA
.

Just to understand the status, what can be done for 32bit python on 64bit windows?

Locked the issue. Please follow up on JIRA or the mailing list


the team page is not pulling info from the TeamMember db table

Bug Report
What is the current behavior?
The team page is not pulling info from the TeamMember db table: https://operationcode.org/team
You can confirm what the contents of the db table are by running this cURL command:
curl -X GET https://api.operationcode.org/api/v1/team_members

What is the expected behavior?

[ ] Ensures the contents of the team page are being pulled from the TeamMember collection endpoint
[ ] In particular, David Molina and Mark Kerr's descriptions are corrected

What steps did you take to get this behavior?
Visiting https://operationcode.org/team

Thanks for reporting @hpjaj  - I'll take a look at using the API endpoint for team members instead of the static client-side files today.

Update: https://github.com/OperationCode/operationcode_backend/issues/305 is merged - removing blocker

Looks like I missed that we need an  email field  from the API for team members on the executive staff - reblocking for now.


Remove null=True from TextFields and CharFields.

Current coverage is 94.33% (diff: 100%)

Merging #101 into master will not change coverage

@@             master       #101   diff @@
==========================================
  Files            23         23
  Lines           494        494
  Methods           0          0
  Messages          0          0
  Branches          0          0
==========================================
  Hits            466        466
  Misses           28         28
  Partials          0          0

Powered by Codecov. Last update 538803a...add0fdb


Create company is taking to Delete Company page

in See Also section:
Create company is taking to Delete Company page

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

ID: 30cecf21-b127-861a-7f6e-3df3267c0834
Version Independent ID: cb9b74e2-5130-8df4-4e59-f26f23b1d53c
Content: automationCompany resource type - Business Central
Content Source: dev-itpro/administration/dynamics-microsoft-automation-automationcompany.md
Service: dynamics365-business-central
GitHub Login: @henrikwh
Microsoft Alias: solsen

Thanks for your feedback, this is fixed with the next doc refresh.


Fixed Docker Composer file to run on Windows & fixed race condition for UDS

I provided 2 fixes in this pull request:

Explicitly name volumes with prefix vol so Docker containers for each pair of TxMgr and Geth can share the same volume on Windows. This allows Geth to access the Unix domain socket (UDS) /qdata/tm/tm.ipc properly
Add dynamic & conditional sleep time to avoid race condition between the creator of the UDS /qdata/tm/tm.ipc (TxMgr) and the user of it (Geth node)

I have successfully tested on 3 environments:

Windows 10
macOS Mojave
Ubuntu 18.04

Note that before this fix, all environments did see the race codition for /qdata/tm/tm.ipc. You can start docker-compose up without the flag -d to see it for yourself or check logs for each Geth node.

@jpmsam @trung My first PR as a hobbyist. This PR also fixes https://github.com/jpmorganchase/quorum-examples/issues/132 and will redo the PR https://github.com/jpmorganchase/quorum-examples/pull/138

@trung thanks for your suggestion. Now PRIVATE_CONFIG is being used. I tested on Ubuntu, macOS & Windows and it works.

Hi @vietlq please submit a CLA before we an accept your pulls. Thank you!
Yes, we know of other CLA tools, no we cannot use them =)

@fixanoid I signed & sent to<EMAIL_ADDRESS>

Depends on https://github.com/jpmorganchase/quorum/pull/588 to get curl

+1 for the timeout addition in wget
LGTM

All good on my end, cla is in the inbox. I'll review the pull and accept
early next week as I'm currently away
On Thu, Dec 6, 2018, 2:27 PM Le Quoc Viet<EMAIL_ADDRESS>wrote:

@fixanoid https://github.com/fixanoid CLA signed and all requested
changes are made, do you still have any more requests?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/jpmorganchase/quorum-examples/pull/144#issuecomment-444977756,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAbPjGRuykQ15sEA2j1VJbJ-VmxPquwfks5u2WGUgaJpZM4Y9Ek0
.

Thanks @vietlq for the PR.


3_FlightDetails: DateTime_Start, DateTime_End

@regnans
Is this variable required to be in UTC? If not, should contributors include offset in this field or separately?

UTC or local time are both acceptable. UTC offset can be included in the field, as per ISO timedate format (or not, up to the user). Also UTC offset should be specified in the FLMD file.

@emilyarobles are the variable names used for various DateTime variables consistent with the "ESS-DIVE standard" (or at least not conflicting too much if there is no standard yet)? Once that is good I think it's ready to publish as v1, if you agree.

@regnans
We've decided that it would be best to change the variable names to match the convention that the reporting formats will be transitioning to before releasing v1, to avoid having to revise so soon after releasing. After review, the data types, field formats, etc. all look good to me and I have no other suggestions for changes on your end. Unless you have anything else you'd like to address or any concerns about delaying release, I will move forward with starting the variable name revisions.

OK, I'm happy for you to do that. Each variable name will have to be revised in the metadata guides, the templates (there are 4 different versions of the sensor details template) and the dd file.


[Docs]: Clarify useFakeTimers's now option is in milliseconds

Page(s)
https://jestjs.io/docs/jest-object#jestusefaketimersfaketimersconfig
Description
The documentation should make clear that now refers to milliseconds, not seconds.

PR welcome 😃


it doesn't work

the Id attribute is invalid ?

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

ID: e7687d0f-cb54-022d-2a2a-7670251e73a4
Version Independent ID: b1abeb4f-1f46-d759-6b01-0bb560c53778
Content: Configure work item form extensions in TFS
Content Source: docs/extend/develop/configure-workitemform-extensions.md
Product: devops
Technology: devops-ecosystem
GitHub Login: @elbatk
Microsoft Alias: elbatk

Hi @fthkucuk, Thanks for reaching out. Are you still experiencing an issue with the documentation? Do let us know and please clarify which part of the doc that may need review. Thanks

Hi @chcomley, Thank you for your interest. This is my fault, I figured it out.

That's great! Thanks for letting us know!


Generated from database table relations suddenly different

I usually generate propel code via the tool provider to create it from an existing database. Suddenly, code that used to work, doesn't work anymore, for example when joining tables in a query like:
$results = PlayerQuery::create()->join('Player.User')->find();
The relations are no longer the same even though the database hasn't change.
I compared the resulting files, and noticed the following difference in a TableMap file:
BEFORE:
public function buildRelations() {
$this->addRelation('User', '\\User', RelationMap::MANY_TO_ONE, array

...
NOW:
public function buildRelations() {
$this->addRelation('UserRelatedByUserId', '\\User', RelationMap::MANY_TO_ONE, array

...
Has this change been on purpose? If so, how do I change my queries seeing that the documentation doesn't reflect any of these updates?

I am not aware of recent changes to the way relations are named.
The "EntityRelatedByForeignKeyName" naming schema is used, when the same table is referenced by more than one foreign key, and the entity name itself is not enough to identify the relation. Is there another relation from you Player table to the User table?

The "EntityRelatedByForeignKeyName" naming schema is used, when the same table is referenced by more than one foreign key, and the entity name itself is not enough to identify the relation. Is there another relation from you Player table to the User table?

No there is only one reference from Player to User. Though, I do have a relation the other way around to, so a User can have a default Player. It seems that I may have added the foreign key for that after the last code generation. But I find it a bit strange that a relationship the other way around also affects the naming schema for the other direction.

Right, yes, I forgot this in my initial reply. Relation are registered on both sides, does not matter which sides holds the fk in a many to one relation. Makes perfect sense if you think about it.
So if you check, there should be a relation like UsersRelatedByDefaultPlayerIdon your Player relations. It's an awkward name, but the best Propel can guess. I think it is correct to not just call them User and Users, as that would be horribly confusing.
In schema.xml, you can names the relations yourself through the phpName and refPhpName attributes of the foreign key element. But it sounds like you introduce changes to your database directly in SQL, and then reverse engineer the schema.xml file, overriding any manual configuration.
The recommended (and superior) way to introduce changes to your database is through migrations, which solves this problem.

Thanks for the help. I'll look into the use of migrations.

Closing then for now.


Update BDI_npsp.recipe.yml

Changes
updated first name and last name and added comments
Issues Closed
Fixed #93

Changed email syntax per @samanthashain  above and also updated cci command syntax and added random batch number name format.


Chapter 13, Page 438. Missing the final activation function (SoftMax)

The note mentions that the softmax function is used at the end, but it's missing in the code you've provided.
all_layers.append(nn.Linear(hidden_units[-1], 10))
To be added:
all_layers.append(torch.softmax(dim=1))

Hi there, thanks for the note. The Softmax function should not be included of you use CrossEntropyLoss in PyTorch since the loss already performs Softmax implicitly.  Thanks for commenting, though. Let me know if you have any questions, happy to discuss.


Better document braintree.setup options

Brought up by @messageagency in https://github.com/braintree/braintree-encryption.js/issues/30

I only see hints and pieces documented on various pages strewn about several different domains (...) it would be nice to have some proper documentation for this and other functions.

+1! It took me a stupid long time to figure this out (esp that you could define a container for a paypal option with a custom form), and I eventually found the answer I was looking for on a stack overflow question that had barely had any traffic.

Hey @diafygi & @kt32291, thanks for echoing this - braintree.setup is only lightly documented which is frustrating to all parties involved.
I'm opening a PR here (#11) that begins to add comprehensive documentation for it. I'm not sure whether people will want the final version to live in this README or on our docs site, but it's a start and hopefully it helps answer some questions.

Yes! It should be better!

Hi all,
We updated our documentation a while back - take a look at these links and let us know if that helps clear things up!
https://developers.braintreepayments.com/javascript+dotnet/guides/hosted-fields/setup-and-integration#braintree.setup
https://developers.braintreepayments.com/javascript+dotnet/guides/client-sdk#global-setup

For what it's worth, the new documentation is great, but I had no idea how to find it. Nothing in that left side menu looked obviously related, and the search function did not help. I had to google and go through this Github ticket in order to find it. I would have never thought it would be in the "Additional Features -> Hosted Fields (beta)" menu. It seems like a pretty core piece of functionality; it should probably be much more obvious to find.

Closing this issue because the links @rturumella provided should answer the original issue.
@mackstann I've passed your feedback onto our documentation team. Thanks for letting us know you had difficulty getting to the page. We'll keep it in mind as we improve the docs site.

Hi everyone,
I'm pleased to announce that we have consolidated documentation for braintree.setup and posted it in the Client References section of our docs site.


Cannot save connections

Version 5.0.7
I am trying to save a connection.  I have re-installed and have the same issue.
I am on a fresh install from chocolatey
I go to File > Connect
I select "Enter a connection string" and paste in my connection string
I click Save, and then Ok with the Key unchanged
The connection is not saved, and I get the following Logs:
<14:58:03> The file C:\ProgramData\chocolatey\lib\ServiceBusExplorer\tools\ServiceBusExplorer.exe.Config is used for the configuration settings.
<14:58:22> Exception: An error occurred loading a configuration file: Access to the path 'C:\ProgramData\chocolatey\lib\ServiceBusExplorer\tools\nfnicp4j.tmp' is denied. (C:\ProgramData\chocolatey\lib\ServiceBusExplorer\tools\ServiceBusExplorer.exe.Config)
<14:58:22> InnerException: Access to the path 'C:\ProgramData\chocolatey\lib\ServiceBusExplorer\tools\nfnicp4j.tmp' is denied.

This looks like it is due to the path where it tries to save the configuration file requires elevated access. There are a couple of solutions for this but the best one is probably just to change where it stores connection strings. You do that in View | Options

Select User Configuration File, click Save and OK.

Alternately, you can run the program as administrator and it should allow you to save to the choco folder. This is how I get around this issue.


Improve vote generators: no valid SPO votes generated

I noticed that the RATIFY confomance tests don't have any cases with valid SPO votes:
      RATIFY [✔] (63584ms)
        +++ OK, passed 100 tests; 581 discarded:
         0% None

        88% CC yes votes ratio  	=0%
         6% CC yes votes ratio  	0%-20%
         1% CC yes votes ratio  	20%-40%

        86% DRep yes votes ratio	=0%
         5% DRep yes votes ratio	=100%
         2% DRep yes votes ratio	0%-20%
         2% DRep yes votes ratio	20%-40%

        95% SPO yes votes ratio 	=0%

         1% Accepted at least one NoConfidence

This should be investigated

Related:
https://github.com/IntersectMBO/formal-ledger-specifications/issues/578


FE refinements

[x] Add Back up modal
[x] use hooks for fetching powers & quests + code clean up
[x] Add placeholders when fetching for BE happens
[x] Small refactors in components and code
[x] Add search in jumbojis page

Fantastic! Just left a few comments about how to adjust this to get proving working correctly, in response to https://github.com/jubmoji/jubmoji.quest/pull/55/files

@AndrewCLu  moved your code inside the usePowerMutation


DBeaver: Update function/procedure or triggers generate NullPointerException

DBeaver - Version 21.3.4 CE
DBeaver driver: MS SQL Server  / Microsoft Driver
Operating System: Windows 8.1, Windows 10 Pro
Database Server: Microsoft SQL Express 2014, 2016, 2017, 2019
If you try to update an already stored Function/Procedure or Trigger, a java.lang.NullPointerException is generated.
o Open DBeaver.
o In the Database Navigator selecte a database function/procedure or trigger.
o View the object source code.
o Make a small change in the vied object source.
o Press CTRL+S to save the change.
o An java.lang.NullPointerException is generated.

Hello @pdanie,
I can't reproduce your issue against triggers.
Could you please send the log files? You can find instructions here: https://dbeaver.com/docs/wiki/Log-files/. Thank you.

After further testing, it seems to have to do that I had old DBeaver configuration files.
When I erase the ...\AppData\Roaming\DBeaverData directory and restarted DBeaver, everything worked as expected.
You can close this issue.


Allow Scheduled Events to take Arguments

in the zappa_settings.json, allow scheduled events to take arguments. This would possible include another key to the event dict possibly.
{
     "expression": "rate(10 minutes)",
     "function": "path.to.funk",
     "function_kwargs": {"key": "val"}
}

This seems like a handy feature, but is this even possible with scheduled event sources?

It looks like it would be passed as an input with the target:
https://github.com/Miserlou/Zappa/blob/master/zappa/handler.py#L291
http://boto3.readthedocs.io/en/latest/reference/services/events.html#CloudWatchEvents.Client.put_targets
But that then overwrites the event info created by cloudwatch and gets rid of things like 'detail-type' which makes the handler not able to deal with the event.
https://github.com/Miserlou/Zappa/blob/master/zappa/handler.py#L291
I'll keep digging, but so far this isn't promising.

This might be possible now that CW Put-Targets supports InputTransformation:
https://aws.amazon.com/about-aws/whats-new/2017/03/amazon-cloudwatch-events-now-supports-input-transformation-of-events/
I'll take another look into this if someone doesn't get to it first.


Update chatgpt to support chatgpt_custom_model env variable

A user can add a chatgpt_custom_model env variable and this will be passed to to the startstream function, so now both api and model can be customised for use with local and online alternatives to OpenAI

This is already in a local change. It can be made much simpler, only one line is needed:
  const model = envVar("chatgpt_model_override") ? envVar("chatgpt_model_override") : envVar("gpt_model")

Please don’t change variable and argument names.
Try this version.

OK, I'll close this pull request (I don't code in javascript, hence my clunky code ;-)

OK, I'll close this pull request (I don't code in javascript, hence my clunky code ;-)

@vitorgalvao -- this is an error in your current test version right (line 200 of chatgpt)?
const apiEndpoint = envVar("dalle_api_endpoint") || "https://api.openai.com"

Yes, that has been fixed and answered in the forum post.


Trying to render native html elements

html-sketchapp version:
4.0.1
minimal example:
https://gist.github.com/beatscode/ef086b57cc8cda9a81d8dc02f71c4777
screenshot from the browser:
https://user-images.githubusercontent.com/1777648/48267519-907c5380-e400-11e8-8fef-edf7fc69c3fb.png
screenshot from Sketch:
https://user-images.githubusercontent.com/1777648/48265279-1cd74800-e3fa-11e8-8ca8-59651a4563b4.png

I tried posting to https://github.com/seek-oss/html-sketchapp-cli but they referred me here.
I don't see checkboxes, radio boxes, or selects.

Hey Alex! Thank you for reporting. It looks like default browser styles are not working for some reason. I suspect this is related to #20, but we need to investigate further. Styling those elements should fix the issue for now (e.g. you can try using something like https://purecss.io/start/ which doesn't require you to add any css classes to those elements).

Thanks I'll try that.

Awesome 👍Let's leave that task open, I'd like us to figure out why this is happening in the first place.

Hey @beatscode @kdzwinel . I am closing it as nothing happened here for a while. Let me know if you want to discuss it further.


OpenCV CUDA - Jetpack 6 Support

Hello,
With the advent of Jetpack 6.0 and with it Ubuntu LTS 22.04, I was inquiring whether or not the scripts would be updated to support the newest edition.
Some of the packages have been superseded or are not available, though I think running the commands manually still works.

Noted. I will address the issue shortly.

Ahh, you would need to follow this thread, if you installed via SD Image or regular Nvidia SDK then the QSPI won't recognize it. Been an error for months:
https://forums.developer.nvidia.com/t/unable-to-flash-r36-on-orin-nano-8gb-dev-kit-using-external-storage/275185
No problem though!

Hey there @starlight-traveler and @Qengineering, I have the AGX Orin running Jetpack 6-dp and was able to update the 4.9 script to work. Jetpack 6 uses Cuda 12.2 and I believe that is why 4.8 wouldn't work for me when I tried. Below is the updated script for 4.9. I hope this is helpful!
#!/bin/bash
set -e
install_opencv () {
Check if the file /proc/device-tree/model exists
if [ -e "/proc/device-tree/model" ]; then
# Read the model information from /proc/device-tree/model and remove null bytes
model=$(tr -d '\0' < /proc/device-tree/model)
# Check if the model information contains "Orin"
echo ""
if [[ $model == "Orin" ]]; then
echo "Detecting an NVIDIA Orin Device."
# Use always "-j 4"
NO_JOB=4
ARCH=8.7
PTX="sm_87"
elif [[ $model == "Jetson Nano" ]]; then
echo "Detecting a regular Jetson Nano."
ARCH=5.3
PTX="sm_53"
# Use "-j 4" only swap space is larger than 5.5GB
FREE_MEM="$(free -m | awk '/^Swap/ {print $2}')"
if [[ "FREE_MEM" -gt "5500" ]]; then
NO_JOB=4
else
echo "Due to limited swap, make only uses 1 core"
NO_JOB=1
fi
else
echo "Unable to determine the Jetson model."
exit 1
fi
echo ""
else
echo "Error: /proc/device-tree/model not found. Are you sure this is a Jetson Product?"
exit 1
fi
echo "Installing OpenCV 4.9.0 on your AGX Orin"
echo "It will take 3.5 hours !"
reveal the CUDA location
cd ~
sudo sh -c "echo '/usr/local/cuda/lib64' >> /etc/ld.so.conf.d/nvidia-tegra.conf"
sudo ldconfig
install the Jetson Nano dependencies first
if [[ $model == "Jetson Nano" ]]; then
sudo apt-get install -y build-essential git unzip pkg-config zlib1g-dev
sudo apt-get install -y python3-dev python3-numpy
sudo apt-get install -y python-dev python-numpy
sudo apt-get install -y gstreamer1.0-tools libgstreamer-plugins-base1.0-dev
sudo apt-get install -y libgstreamer-plugins-good1.0-dev
sudo apt-get install -y libtbb2 libgtk-3-dev v4l2ucp libxine2-dev
fi
install the common dependencies
sudo apt-get install -y cmake
sudo apt-get install -y libjpeg-dev libjpeg8-dev libjpeg-turbo8-dev
sudo apt-get install -y libpng-dev libtiff-dev libglew-dev
sudo apt-get install -y libavcodec-dev libavformat-dev libswscale-dev
sudo apt-get install -y libgtk2.0-dev libgtk-3-dev libcanberra-gtk*
sudo apt-get install -y python3-pip
sudo apt-get install -y libxvidcore-dev libx264-dev
sudo apt-get install -y libtbb-dev libdc1394-dev libxine2-dev
sudo apt-get install -y libv4l-dev v4l-utils qv4l2
sudo apt-get install -y libtesseract-dev libpostproc-dev
sudo apt-get install -y libswresample-dev libvorbis-dev
sudo apt-get install -y libfaac-dev libmp3lame-dev libtheora-dev
sudo apt-get install -y libopencore-amrnb-dev libopencore-amrwb-dev
sudo apt-get install -y libopenblas-dev libatlas-base-dev libblas-dev
sudo apt-get install -y liblapack-dev liblapacke-dev libeigen3-dev gfortran
sudo apt-get install -y libhdf5-dev libprotobuf-dev protobuf-compiler
sudo apt-get install -y libgoogle-glog-dev libgflags-dev
remove old versions or previous builds
cd ~
sudo rm -rf opencv*
download the latest version
git clone --depth=1 https://github.com/opencv/opencv.git
git clone --depth=1 https://github.com/opencv/opencv_contrib.git
set install dir
cd ~/opencv
mkdir build
cd build
run cmake
cmake -D CMAKE_BUILD_TYPE=RELEASE
-D CMAKE_INSTALL_PREFIX=/usr
-D OPENCV_EXTRA_MODULES_PATH=~/opencv_contrib/modules
-D EIGEN_INCLUDE_PATH=/usr/include/eigen3
-D WITH_OPENCL=OFF
-D CUDA_ARCH_BIN=${ARCH}
-D CUDA_ARCH_PTX=${PTX}
-D WITH_CUDA=ON
-D WITH_CUDNN=ON
-D WITH_CUBLAS=ON
-D ENABLE_FAST_MATH=ON
-D CUDA_FAST_MATH=ON
-D OPENCV_DNN_CUDA=ON
-D ENABLE_NEON=ON
-D WITH_QT=OFF
-D WITH_OPENMP=ON
-D BUILD_TIFF=ON
-D WITH_FFMPEG=ON
-D WITH_GSTREAMER=ON
-D WITH_TBB=ON
-D BUILD_TBB=ON
-D BUILD_TESTS=OFF
-D WITH_EIGEN=ON
-D WITH_V4L=ON
-D WITH_LIBV4L=ON
-D WITH_PROTOBUF=ON
-D OPENCV_ENABLE_NONFREE=ON
-D INSTALL_C_EXAMPLES=OFF
-D INSTALL_PYTHON_EXAMPLES=OFF
-D PYTHON3_PACKAGES_PATH=/usr/lib/python3/dist-packages
-D OPENCV_GENERATE_PKGCONFIG=ON
-D BUILD_EXAMPLES=OFF
-D CMAKE_CXX_FLAGS="-march=native -mtune=native"
-D CMAKE_C_FLAGS="-march=native -mtune=native" ..
make -j ${NO_JOB}
directory="/usr/include/opencv4/opencv2"
if [ -d "$directory" ]; then
# Directory exists, so delete it
sudo rm -rf "$directory"
fi
sudo make install
sudo ldconfig
cleaning (frees 320 MB)
make clean
sudo apt-get update
echo "Congratulations!"
echo "You've successfully installed OpenCV 4.9.0 on your NVIDIA Embedded Device"
}
cd ~
if [ -d ~/opencv/build ]; then
echo " "
echo "You have a directory ~/opencv/build on your disk."
echo "Continuing the installation will replace this folder."
echo " "
printf "Do you wish to continue (Y/n)?"
read answer
if [ "$answer" != "${answer#[Nn]}" ] ;then
echo "Leaving without installing OpenCV"
else
install_opencv
fi
else
install_opencv
fi

@robbiesrobotics1 ,
Thanks for your contribution.
One question. Where is the difference? Both scripts look identical to me.

@Qengineering no problem at all! I just made a couple changes to the packages installed because there were two in the old script that aren't available for 22.04.

libdc1394-22-dev wasn't available so I used libdc1394-dev

libavresample-dev wasn't available so replaced with libswresample-dev

At first the script wouldn't run on my AGX because it wasn't a Nano so in the if statement when checking for device I just changed the device or "Orin" so that any orin series device would be detected. Post install I was able to verify opencv 4.9.0-dev with cuda in jtop. Additionally, after exposing the path to python3.10 I'm also able to see opencv with cuda in python.

@robbiesrobotics1 I've updated the script with your suggestions. Thanks!

@Qengineering  no problem at all! I'm glad it was helpful.

Question.
Are you using JetPack 6? And have you installed OpenCV with the script?
It seems quite an ordeal to get it running. See issue #24.
And https://forums.developer.nvidia.com/t/build-python-opencv2-with-cuda-support-for-jetpack-6-0/289016/3


GitHub: update vendored release script

Depends on https://github.com/lightninglabs/gh-actions/pull/2.
This fixes the problem where releases wouldn't be created anymore due to the GitHub Action for creating the draft release being out of date.
I've confirmed this works with the following run in my fork of the repository: https://github.com/guggero/lnd/actions/runs/10058716669/job/27802410976

@ProofOfKeags I also pushed a tag fn/v1.2.0 and added a commit to bump. I assume that version is safe to use, right?
This will fix the Goveralls run, for example: https://github.com/lightningnetwork/lnd/actions/runs/10062995488/job/27816765240?pr=8892 (a file was deleted in the fn directory but the Go module that's being pulled in still has it, which confuses Goveralls)

Merged the dep update here (see ref'd commit hash): https://github.com/lightninglabs/gh-actions/pull/2


Update to Adaptive Card 1.2

Teams now supports v1.2 of Adaptive Cards.
The generated messaging extension should be updated to use the 1.2 schema

Cards updated in 2.15.0-preview


net/http: backport http2 first byte loss CL to go 1.6.x maybe

If we do another Go 1.6.x release, consider adding the fix for #17071

Now that Go 1.7 is out, Go 1.6.x should be for security releases and only security releases. This may be a serious functionality bug, but if so, people should update to Go 1.7.


Need an aggregate coverage graph on top of the month/week bar (average planned) on All Staff view

Can you just elaborate a bit on this?  It's not immediately clear to me what you want where :-D

So just like in My Staffplan, there is a graph showing the planned (and a few actuals) for every week for 3 months.
I'm looking for the same type of graph on almost every screen in the app.
On the All Staff screen, we need another graph in the subheader (as in the My StaffPlan view) that acts similarly to the My SP graph... but shows the average coverage across all staff.
So if there were 3 people in a company and next week, all 3 had 40 hours planned, there would be a full green bar with '40' above it. If in the following week, one person had 50 hours and the other two had 20 hours, there would be a 3/4 tall green bar with a '30' above it = (50+20+20)/3.
Make sense? If not, fire away!

Got it — this makes sense to me.  Thanks!


Improvement suggestions

Hi team Mangopay,
Sorry to bring this to you, but I feel this is necessary upon the latest release (3.7.0). This is not purely complaint but a way to give you feedback about what went wrong as a user of this SDK and pointers on how to improve the usage experience:

Today, perfoming a check for updates with pipenv tells us there is a new version of mangopay-sdk. Great, let's see! Ok, we're upgrading from 3.5.1 to ... 3.7.0?! Where did 3.6.0 go?

A quick check on this repository, no CHANGELOG.md, but changelogs in GitHub Releases, stating there was at some point a version 3.6.0... 8 month ago!
A quick check on pypi.org: no version 3.6.0 has been published, ever!
How is that possible even though there is a Travis CI/CD config for this repo, supposedly uploading new releases to pypi.org?
Was there a reason not to upload this version?

Upgrade to version 3.7.0 and run QA pipelines:

Tests broke, everywhere where Mangopay is involved, even though we are using fixtures/mocks/etc.
Apparently there was a breaking change introduced by the previous version 3.6.0
This change is not explicitely stated as BREAKING in the GitHub Release statement!
Changing mangopay.passphrase to mangopay.apikey was a quick fix, but we should not have to check for the Git history and try to pin-point where the culprit is.

The changelog for version 3.7.0 states: This new 3.7 version of our Node.js SDK includes 2 essential features related to Compliance needs.... I know you are busy, but changing "Node.js" to "Python" would have been nice (and avoid mental confusion for those of us who are using lots of various programming languages and SDKs/frameworks everyday).

Some improvement suggestions:

Fix the Travis CI/CD job for automatic release deployment to PyPI.

Keep a proper changelog within the Git repository itself as CHANGELOG.md (and not just GitHub Releases statements). Common best practices are summarized on keepachangelog.com.

Hello @rclement and thanks for this very complete feedback.
I totally agree with you on most of the suggestions / complains.
Release notes, docs & infos
We will significantly improve the way we inform all the community ASAP, and be more precise on each feature or breaking changes going live. Breaking changes will be highlighted, and changelog will be better used and updated.
As MANGOPAY is growing fast, we're aware our old release process is not relevant anymore, and your expectations goes higher and higher.
Version bump issues
As we were facing some deployment issues between Travis CI ans PyPi for a (very) long time, decision was made to update manually our package. 3.8.0 version was already ready to be released (especially because of urgent UBOs feature), that's the reason why 3.7.0 never goes live. That's clearny not a situation we want to reproduce in the future, and we're very sorry about that too.
Next version of this Python SDK (3.9.0) will be released this summer with some new features: be sure I'll personally do my best to make this release as clear and as smooth as possible.
Thanks again for your constructive feedback 👍
Mickaël

@rclement CHANGELOG.md has been added and Travis CI has been fixed.
Our next steps in the following weeks:

check every opened issues and fix old bugs
add new features to versions to come
update CHANGELOG.md with previous updates since 2018 and highlight unreleased versions or unusable ones.


nerdtree error in neovim i am not quit sure how to fix this problem because i am new to the linux os

Error detected while processing /home/sameer/.config/nvim/pack/vendor/start/nerdtree/syntax/nerdtree.vim:
line   24:
E121: Undefined variable: g:NERDTreeNodeDelimiter
Press ENTER or type command to continue
Error detected while processing /home/sameer/.config/nvim/pack/vendor/start/nerdtree/syntax/nerdtree.vim:
line   24:
E116: Invalid arguments for function char2nr
Press ENTER or type command to continue
Error detected while processing /home/sameer/.config/nvim/pack/vendor/start/nerdtree/syntax/nerdtree.vim:
line   39:
E121: Undefined variable: g:NERDTreeNodeDelimiter
Press ENTER or type command to continue
Error detected while processing /home/sameer/.config/nvim/pack/vendor/start/nerdtree/syntax/nerdtree.vim:
line   48:
E121: Undefined variable: g:NERDTreeNodeDelimiter
Press ENTER or type command to continue
Error detected while processing /home/sameer/.config/nvim/pack/vendor/start/nerdtree/syntax/nerdtree.vim:
line   50:
E121: Undefined variable: g:NERDTreeNodeDelimiter

Since this issue has been stale for a long time, I'm going to close it.
Feel free to reopen if you still have this issue.


Drop project with '-' in name

Steps to reproduce:
c=mindsdb_sdk.connect()

p=c.create_project('mind-reader-project')

c.drop_project('mind-reader-project')

Raises:
SQL statement cannot be parsed by mindsdb_sql - DROP DATABASE mind-reader-project: Syntax error at token MINUS: "-"

@ea-rus hi 👋🏼
Just to clarify, the fix is allowing to drop project with '-' in name.
My understanding was creation of project with '-' in name shouldn't allowed in the first place (similar to @Mr-Destructive fix for #67). The same isn't allowed in mindsdb cloud using sql.

Yes, it is allowing to use '-' in name. The reasons:

if user already has project with '-' it should be possible to remove it
mindsdb web editor allows to use '-':
create project `asdf-adf`

I just checked in mindsdb cloud editor
create project mind-reader-project; gave
SQL statement cannot be parsed by mindsdb_sql - create project mind-reader-project: Syntax error at token MINUS: "-"

Oh ok, understood. Thank you for pointing that out.


support for external taxonomies

This issue summarizes the efforts towards support for domain specific scenarios in e-Entity. Bellow is the initial email conversion provided by @koidl on Sep 4th 2015:
Wripl connect is a tool for financial analysts to identify key trends and developments in large open web content spaces.
The tool offers topic related 'visual cards' (See attachment). Each card representing a topic has specific terms related to it. Example:
Investment Funds
-> Closed-End Funds
-> Exchange Trade Funds
-> Hedge Funds
-> Mutual Funds
[...]
Problem: A miss match between the vocabulary used by the domain expert (in this case financial analyst) and the vocabulary used in FREME NER or e-Terminology.
The two main challenges

Filtering (only allowing terms that match the domain experts vocabulary and the FREME (both NER and terminology) vocabulary.

Matching (match FREME NER and e-Terminology vocabulary to the domain experts vocabulary (for example assign all entities that relate to 'Investment Fund' to investment fund.)

Solution: Currently the main idea...

Filtering should be simple but might result in a very small result set limiting the interesting (edge case) content findings.

WRIPL provides a list of terms (that are based on feedback with the domain expert) and for each term a wikipedia page link.

This list is provided to NER and e-Terminology which then use the wikipedia pages to train the matching mechanism.
Timeline and road map: To be discussed! We need to develop this road map by mid September to ensure all resources (including wripl) can be moved into the same direction.
Keeping in mind this is a real scenario. We have a financial domain expert within wripl and we are actively reaching out to the industry.
Also once this works for the financial domain we can test the application of the same approach to other domains (e.g. Healthcare which IBM Watson is apparently focusing on).
Also part of this is multilinguality but lets get English working first.

This issue is outdated. We already have a feature for domain specifiy ner now.


Extra properties not being passed to subprojects anymore (5.4.1 vs 5.5)

Expected Behavior
Given the following declarations in build.gradle.kts:
subprojects {
  extra["vertxVersion"] = "3.8.0-SNAPSHOT"
  extra["junit5Version"] = "5.5.0"
  extra["restAssuredVersion"] = "4.0.0"
  extra["logbackClassicVersion"] = "1.2.3"
  extra["assertjVersion"] = "3.12.2"
  extra["testContainersVersion"] = "1.11.3"
  // ...
}

and the following usage in a subproject build.gradle.kts:
dependencies {
  val vertxVersion = extra["vertxVersion"]
  val junit5Version = extra["junit5Version"]
  val logbackClassicVersion = extra["logbackClassicVersion"]
  val restAssuredVersion = extra["restAssuredVersion"]
  val assertjVersion = extra["assertjVersion"]
  val testContainersVersion = extra["testContainersVersion"]
  // ...
}

Current Behavior
The project should build, with extra properties allowing to share expected dependencies versions. This worked until 5.4.1 without issues, but upon upgrading to 5.5 I get the following error:
FAILURE: Build failed with an exception.

* Where:
Build file '/Users/jponge/Dropbox/Documents/Writings/vertx-in-action/code/part2-steps-challenge/activity-service/build.gradle.kts' line: 2

* What went wrong:
Cannot get property 'vertxVersion' on extra properties extension as it does not exist

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

Context
It worked in earlier versions, and starting from 5.5 it breaks existing builds.
Steps to Reproduce
Take https://github.com/jponge/vertx-in-action/tree/part2-steps-challenge and try upgrading to 5.5.

Thanks for the report @jponge
This is a duplicate of https://github.com/gradle/gradle/issues/9579
See the upgrade guide for instructions.

Thanks @eskatos, problem solved, but even looking at the release notes / upgrade guide this was not obvious from the table of contents.

Yep the table of contents is just the list of Gradle versions in the upgrade guide. Searching the page for extra is how I found it back.


Download Humble Bundle Trove Games

Can this script download from the tribe? If not, it would be a very useful feature.

Not necessary anymore there is an alternative working for trove:
https://gitlab.com/silver_rust/trove_downloader/


Slot Recipe doesn't apply rules when variant name has the same as a slot

Description
When a Slot Recipe has a slot and a variant with the same name the rules for the slot are not applied.
Link to Reproduction
https://play.panda-css.com/PSgke8ZAkl
Steps to reproduce
When calling the Button component with the icon attribute (<Button icon></Button>), the rule recipe.variants.icon.true.icon does not apply.
JS Framework
No response
Panda CSS Version
0.14
Browser
No response
Operating System

[ ] macOS
[ ] Windows
[ ] Linux

Additional Information
No response

Good catch @navaru,
I just pushed a fix for this. We'll release an update shortly.
If the issue persists after upgrading, I'll re-open it.