Ignore sublime configuration files

Noticed that latest NPM package release (0.3.0) contains Sublime configuration files, which seems like got there accidentally. To prevent it further, it's better to ignore those files from adding to NPM package.

 I thought I made sure this didn't happen again...
Thanks!


[docs]: translate hertz tutorials/tutorials/service-governance/monitoring/ #79

translate hertz tutorials/tutorials/service-governance/monitoring/ #79

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

This PR seems duplicated, please try to rebase the main branch and re-submit it.

Rebased onto HEAD of main branch

This PR seems duplicated, please try to rebase the main branch and re-submit it.

OK, my mistake, no duplication

The code indent problem may also exist in other docs.
Golang use tabs as indent, but in the docs tabs and spaces are mixedly used.

You may try to optimize all the code in docs if you'd like to. Thanks for contributing.


Can't recieve incoming calls in the VoiceQuickstart tutorial

Description
Hello Friends
I found a lot of issues describing my issue but none of them solved it.
I'm trying to implement the quickstart app. I'm reaching the 10th step 10. Receive an incoming call but I can't receive an incoming call. I made sure my VoIP certificates are correct, and also implemented push certificates. I made sure everything from the server side is implemented correctly, anyway makeCall.php is working perfect.
I'm trying to call "https://mymdline.tedmob.com/placeCall.php" from my browser to test if I receive an incoming call on my implemented app.
Thank you a lot
I'm receiving the below :
[Twilio.Api.V2010.CallInstance accountSid=XXXXXXXXXXXXXXXXXXXXXXXXXXX sid=XXXXXXXXXXXXXXXXXXXXXXXXXXX]sid
which I think means that everything is implemented correctly from the server-side.
yet I'm not receiving an incoming call
Code
$ACCOUNT_SID = 'Account-SID-from-my-main-account';
$API_KEY = 'from-the-voice-api-key-i-created';
$API_KEY_SECRET = 'from-the-voice-api-key-secret-i-created';
$PUSH_CREDENTIAL_SID = 'from-Push-Credentials-page';
$APP_SID = 'from-TwiMlApp-I-Created';
Expected Behavior
receiving an incoming call after calling "https://mymdline.tedmob.com/placeCall.php"
Actual Behavior
not receiving anything after "https://mymdline.tedmob.com/placeCall.php"
yet no errors are shown
Reproduces How Often
all the time
Twilio Call SID(s)
I think this is the call sid you need
[Twilio.Api.V2010.CallInstance accountSid=XXXXXXXXXXXXXXXXX sid=CAe02e2ddc8509f915d4fb2dccc0d8a17e]sid
Logs
// Log output when the issue occurs
2020-05-29 16:47:45.689426+0300 SwiftVoiceQuickstart[978:152432] Twilio Voice Version: 5.3.1
2020-05-29 16:47:45.692883+0300 SwiftVoiceQuickstart[978:152710] pushRegistry:didUpdatePushCredentials:forType:
2020-05-29 16:47:46.081846+0300 SwiftVoiceQuickstart[978:152432] providerDidBegin
2020-05-29 16:48:30.305014+0300 SwiftVoiceQuickstart[978:152985] StartCallAction transaction request successful
2020-05-29 16:48:30.312277+0300 SwiftVoiceQuickstart[978:152432] provider:performStartCallAction:
2020-05-29 16:48:30.874630+0300 SwiftVoiceQuickstart[978:152432] provider:didActivateAudioSession:
2020-05-29 16:48:31.478783+0300 SwiftVoiceQuickstart[978:152432] callDidStartRinging:
2020-05-29 16:48:32.924048+0300 SwiftVoiceQuickstart[978:152432] callDidConnect:
2020-05-29 16:48:33.001902+0300 SwiftVoiceQuickstart[978:152432] AVAudioSession setAggregatedIOPreference:error: Error Domain=NSOSStatusErrorDomain Code=560030580 "(null)"
2020-05-29 16:48:38.085050+0300 SwiftVoiceQuickstart[978:152432] Call disconnected
2020-05-29 16:48:38.254382+0300 SwiftVoiceQuickstart[978:152432] provider:didDeactivateAudioSession:

#### Voice iOS SDK
TwilioVoice (5.3.1)
COCOAPODS: 1.9.1
#### Xcode
11.3.1 (11C504)

#### iOS Version
iOS 13.5

#### iOS Device
iPhone XS

Hello @bchen-twilio
You're right I was using a wrong identity, I changed it to $identity = 'alice'; , and everything worked perfect.
anyway since this worked, I have another major inquiry, how can I make a call from an Android app to an iOS App, I'm checking the config file and it's indicating that I can only use one $PUSH_CREDENTIAL_SID, so how can I work with both apps
Thank you a lot.

Hi @MhmdRizk
Our server example uses request-based APIs which can process requests from your mobile clients and, in this case, return different access tokens based on the platform parameters from your mobile apps. For example, use https://your.serverurl/accessToken?platform=android on your Android devices and in server endpoint that returns access token use the Push Credential SID created from your FCM/GCM credentials. Similar way for iOS.

Thank you @bchen-twilio
I did exactly as you recommended and everything works perfectly now.


Make it configurable how smarti widget handles posts

There are three different ways how a post could be handled:

suggestText: Inserts text in chat input field (configured by cssSelector), the send button must be pressed from user
postText: The api is used to send text message
postRichText: The api is used to send text + attachments

The widget should allow configuration for this behaviour, like:
{ ...
   postings: {
       type: 'suggestText', // possible values: suggestText, postText, postRichText
       inputFieldSelector: '.message-form-text.input-message' //has to be set in case of suggestText
  }
}


Segmentation fault in CModule.method_is with Object parameter

I believe there may be a double-free issue in method_is operating on a borrowed Object: https://github.com/LaurentMazare/tch-rs/blob/main/src/wrappers/jit.rs#L518
Example use:
@torch.jit.script
class InputObject:
    def __init__(self, foo, bar):
        self.foo = foo
        self.bar = bar

class TorchscriptExample(torch.nn.Module):
    @torch.jit.export
    def add_them(self, data: InputObject) -> torch.Tensor:
        return data.foo + data.bar

    @torch.jit.export
    def make_input_object(self, foo, bar):
        return InputObject(foo, bar)

let input = model.method_is("make_input_object", &[
    &tch::Tensor::of_slice(&[1_f32, 2_f32, 3_f32]).into(),
    &tch::Tensor::of_slice(&[4_f32, 5_f32, 6_f32]).into(),
]);
let output = model.method_is("add_them", &[&input.unwrap()]);

I just pushed a fix that should hopefully get rid of this and be more principled than #476 . This handling of jit Object is certainly a very tricky bit though so let me know if you see further issues.


Logging

enable logging
View() now accepts a size tuple or Vector2 instead of width and height

if merged closes #23


FirestoreAdapter Error while processing route: index the adapter could not find the resource

Version info

e.g.
DEBUG: -------------------------------
DEBUG: Ember      : 3.19
DEBUG: Ember Data : 3.19
DEBUG: Firebase   : 7.16.0
DEBUG: EmberFire  : 3.0.0-rc.6
DEBUG: jQuery     : 3.5.1
DEBUG: -------------------------------

Description
I am building an application that uses subcollections, and I received the error given in the title when trying to use store.findRecord(). A generic form of my application is someone having a catalog of albums and the songs on each album with the following structure:
users/{userId}/albums/{albumId}
              /songs/{songId}

The document userId has no fields, only the two subcollections. The album document has fields with related information, including a field for the uid generated by Firebase. The song document is very similar, with the addition of a albumId field to indicate which album the song is on, creating a one-to-many relationship between an album and various songs. I use the following models for the user, album, and song:
User Model
import Model, { hasMany } from '@ember-data/model';

export default class UsersModel extends Model {
  @hasMany('albums', { subcollection: true }) albums;
  @hasMany('songs', { subcollection: true }) songs;
}

Album Model
import Model, { attr, belongsTo } from '@ember-data/model';

export default class AlbumsModel extends Model {
  @belongsTo('users') user;

  @attr('string') id;
  @attr('string') name;
  @attr('string') yearOfRelease;
  @attr('string') artist;
  @attr('string') label;
}

Song Model
import Model, { attr, belongsTo } from '@ember-data/model';

export default class SongsModel extends Model {
  @belongsTo('users') user;

  @attr('string') albumId;
  @attr('string') id;
  @attr('string') title;
  @attr('string') length;
}

I am attempting to create a page at index that will show the albums the user has in their library after authenticating. I use this route to try and make that query:
app/routes/index.js
import Route from '@ember/routing/route';
import { inject as service } from '@ember/service';

import firebase from 'firebase/app';

export default class IndexRoute extends Route {
  @service session;
  @service firebaseApp;

  //async model() {}
  model() {
    return this.store.findRecord('users', this.session.data.authenticated.user.uid);
  }
}

and use this template to see if data is coming through:
app/templates/index.hbs

Albums

{{#each @model.albums as |album|}}

{{album.name}}

{{/each}}

When I run ember serve to try and view the data, I get the error "Error while processing route: index the adapter could not find the resource". I based this structure off of the example app given in the repository, which has a relatively similar structure. Since I cannot see the underlying Firestore structure, however, it very well could be an issue in my setup.
Steps to reproduce

Create a Firestore database with a content-owner structure as specified in my description above
Create create the above models, route, etc.
Serve the program

Expected behavior
To see a list of the album names
Actual behavior
An error with the adapter not being able to find the resources.

hey @BladeFrisch , have you checked out: #614 ?
just try what @charlesfries's patch if you're using the Firestore serializer,
( or @zoltan-nz's code for the older RealtimeDatabaseSerializer )
it got me going again!

Thank you for the info, but we ended up re-writing the app in Angular. We needed something quickly. I will check this out for future projects though!


字体设置中posts字号设置不生效

Expected behavior (预期行为)
设置posts标签下size后字体变大
Actual behavior (实际行为)
字体不变
Steps to reproduce the behavior (重现步骤)
posts:
external: true
family:
size: 29
NexT Informations
Add the  ✔  sign before an item which is affected by this behavior.
NexT Version:
✔  Master
NexT Scheme:
✔  Pisces
Other Informations (Like Browser, System, Screenshots)
logo:
external: true
family:
size: 27
只有logo下的修改是生效的

尽快修复啊

@ly11tea dont understand u, write in English if not solved. If solved, close it please. Thank's!


Native HomeKit Support

Hi all!
Thanks for all the hard work that has been put into Tuya-Convert!
I have been successful in flashing curtains and wall sockets with Tasmota and espurna (wil add to the wiki) but my end goal is to have native HomeKit support.
This project makes native HomeKit on esp8266 chips possible but it doesn’t support OTA flashing.
OTA flashing is a prerequisite for my situation as I have a lot of built in wall sockets.
Is there anyone smarter than me that could point me in the right direction to getting Tuya-Convert to flash the necessary bin files to enable native HomeKit support?
Thanks!

tuya-convert only works with Tuya firmware. Once the devices are converted to thirdparty firmware (Tasmota, Espurna, etc), tuya-convert can't do anything. To flash from Tasmota/Espurna to another firmware, you'll need to use their update mechanism.
If you are still running Tuya firmware, you may be able to use tuya-convert to flash any thirdparty firmware such as the one you linked, presuming it has met the requirements (must be under 512KB and include the full bootloader).

That’s the thing, the esp HomeKit firmware is designed to be flashed on a completely empty chip so I guess it makes it impossible to be flashed OTA. Hopefully someone smarter than me can come up with a solution. I think the ability to be able to convert Tuya devices to be natively HomeKit compatible would be pretty neat!

I'm not sure why it shouldn't be possible to flash OTA, unless it uses more than 512KB of flash. The Arduino ESP OTA mechanism will download the file, and use the bootloader to move it to the correct place on next boot, overwriting whatever is already there. tuya-convert takes care of cleaning up the system param area of flash so it will be more or less a clean slate.

Thanks so much for the reply and all the information. Would you do me a favor and have a look at the esp-HomeKit-device project and let me know if what I want is even at all possible? And perhaps point me in the right direction? Thanks again!
https://github.com/RavenSystem/esp-homekit-devices

If you can link me to a binary, I can test it on a dev board

That would be great! There are 3 binaries:
https://github.com/HomeACcessoryKid/life-cycle-manager/releases/download/1.0.0/otaboot.bin
https://github.com/SuperHouse/esp-open-rtos/raw/master/bootloader/firmware_prebuilt/rboot.bin
https://github.com/SuperHouse/esp-open-rtos/raw/master/bootloader/firmware_prebuilt/blank_config.bin
As I understand it it OTAboot.bin allows the device to come online with an SSD so it can be connected to your network, I’m guessing rboot.bin is the bootloader and blank_config.bin is there for the “template” to map the buttons and relays etc.
Thank you so much for looking into this!

Worked fine for me. You'll need to bundle these into one binary to upload in one shot.
# first ensure the bootloader is exactly one sector (4kb)
truncate -s 4k rboot.bin
# same for config
truncate -s 4k blank_config.bin
# bundle it up
cat rboot.bin blank_config.bin otaboot.bin > thirdparty.bin

Then you can replace the thirdparty.bin in your tuya-convert/files and proceed as normal.

I noticed on the wiki page you can install main.bin instead of otaboot.bin, so you could skip a step by installing it directly, just replace otaboot with main in the steps above. I didn't read into this too much, maybe there's another reason you might want otaboot.bin.

Thanks so much for looking into this and pointing me in the right direction.
So just tried this but the LCM-XXXXX network never came online, I think the plug is bricked now. Would you mind sharing your bundled binary? Maybe I did something wrong there.
Logs:
smarthack-wifi.log
smarthack-web.log
smarthack-psk.log
smarthack-mqtt.log

Hmm, sorry to hear that. Here's what I flashed: thirdparty.zip. You can diff this one from yours to see if there's any difference.
One thing I did notice is that the AP this firmware creates is pretty unstable, whether flashed OTA or by wire. Even with a freshly erased flash, I could not stay connected. I was able to connect long enough to see the settings page, but afterwards it did not respond to a page refresh.
Since this happens even when flashed over wire I suspect there's some issue with the current build, or perhaps some I'm missing something, init data etc.

There is no difference. I just remembered that while flashing I didn't check if it was in user2 and after I flashed it it said it flashed to userspace1, could that be the problem? All my other plugs were already in user2 when I did check.

No, it should be flashed to userspace1. The intermediate firmware won't let you flash the thirdparty.bin unless you are already running in userspace2 and will let you know otherwise.

I wonder if maybe the flash mode/size/speed settings did not match your device. As specified in the README and during the start_flash procedure, they need to match otherwise your device may be unable to boot. To avoid issues like this in the future, this will be handled automatically in the next release (see #395).
Can you pull up your device-info.txt for this device?

This wasn't an issue before converting to Tasmota or Espurna.
device-info.txt

Indeed the flash settings do not match. Your device was set to DOUT @ 1MB while the rboot.bin is set to QIO @ 2MB. You can run DOUT on hardware that supports QIO, but not the other way around. Tasmota and Espurna on the other hand have the same settings as your device.

OK well that explains allot then. Thanks so much for checking this out. Is there anything I can do to avoid this if I want to flash another plug?

One way, you can manually overwrite the flash settings in rboot.bin.
If you open rboot and your firmware backup in a hex editor side by side, you'll see that rboot starts with E9 02 00 30 and your firmware starts will E9 03 03 20.
The third and fourth bytes define the flash settings, so change rboot to E9 02 03 20 and save. Make sure you overwrite these bytes instead of inserting, you don't want to change anything else but those two bytes.
Alternatively, you could try #395, which as I mentioned earlier will perform this automatically. It should be merged with the next release, assuming no issues.

It worked! thank you so so much!

Awesome, so happy to hear it! Did you try #395 or do it manually?
We could always use more beta testers. Feel free to try out any of the open PRs now or in the future and leave your feedback. I really appreciate it!
You could also consider making a donation to support the project so I can continue buying equipment to test, and spread the word about tuya-convert!

I did it manually. I'll try #355 on the next one and let you know how it goes!

try to get some logs and open a new issue on the HAA repo.

try to get some logs and open a new issue on the HAA repo.

https://github.com/RavenSystem/esp-homekit-devices/issues/778#issue-558514858

One way, you can manually overwrite the flash settings in rboot.bin.
If you open rboot and your firmware backup in a hex editor side by side, you'll see that rboot starts with E9 02 00 30 and your firmware starts will E9 03 03 20.
The third and fourth bytes define the flash settings, so change rboot to E9 02 03 20 and save. Make sure you overwrite these bytes instead of inserting, you don't want to change anything else but those two bytes.
Alternatively, you could try #395, which as I mentioned earlier will perform this automatically. It should be merged with the next release, assuming no issues.

I believe this could also be my issue. I can't test it right now, but I have the .bin files with me. I also bricked my device, although I have soldered and I am able now to unbrick it.
So the original Backup file starts in E9 03 03 20
Tasmota begins: E9 01 03 20
rboot: E9 02 00 30
I understand, that If I want to make it work, I should change the rboot to E9 03 to match the original FW... shouldn't I?
On the other hand, my device works great in Tasmota but not in HAA. I have eventually managed to have the LCM network on-line , but this has just happened twice in 100 tests.
I have tested in this in other identical device, so I discard the option of being broken.
Thanx!!

I have tried it all. Replace just that header. Replace the hole rboot sector. Transfer it in 20 MHz, 26 Mhz...
I have just no idea what else can I do. Its not even accepting the thirdparty bin from tuya.
... @kueblc Is there anything else possible to do? It only accepts the original FW and eventually the tasmota.
Thnx much


Specifics of LayoutComponents.

Open questions for design / product:

A canvas can now use multiple layouts (e.g. Modal). How to show presence of multiple layouts to the user?
Dotted borders were used in the POC. See image Private Zenhub Image

Layout components can control the widgetTypes that are allowed to be dropped within their boundaries. How to convey this information to the user? In the poc, the layout didn't show any highlights if the dragged widgetType wasn't welcomed.

interim decision:
2. Highlight the layout in red and don't show any highlights for unwelcomed widgets.


Unable to find 'gem' binary in path

While executing recipe[sql_server::client] which depends on windows cookbook, chef fails (only) at the first execution with Unable to find 'gem' binary in path.
The sql_server cookbook needs to use chef_gem to install the gem into the version of Ruby that Chef is using instead of using gem_package which would install to a version of Rubygems on the system. In this case, there is no rubygems on the system, which is causing the error.
@schisamo https://github.com/opscode-cookbooks/sql_server/blame/master/recipes/client.rb#L45
This may have worked previously on Chef 11 before the embedded\bin directory was removed from the path in Chef 12 in chef/omnibus-chef#238.

https://github.com/opscode-cookbooks/sql_server/pull/29

:scream: :+1:


Starting memos with docker and failed with error

Describe the bug
When I try to use docker image to start memos, cannot start with this error:

This is my docker-compose file:

Steps to reproduce
Follow the document to run memos
Screenshots or additional context
No response

I am running the latest memos with docker and have no issue. This is likely due to the problem on your setup.
note the error: disk I/O error.

I am running the latest memos with docker and have no issue. This is likely due to the problem on your setup.

Agree with @kakarukeys. Feel free to provide more detail context about this issue.


Custom Prometheus metrics not showing

It seems only the Prometheus metrics that come out of the box are displaying on the /metrics page, and none of the custom ones wired up here: https://github.com/hirosystems/signer-metrics-api/blob/main/src/api/routes/prom-metrics.ts

@CharlieC3 I separated the signer related metrics so they could be public (compared to the default ones on the private prometheus port). They are exposed at https://api.hiro.so/signer-metrics/metrics
Does that work? I could also include these in the private endpoint if that's easier.

Hmm I'm not sure we should be exposing Prometheus metrics on a public endpoint, it's a paradigm we haven't followed in other apps because it invites more scrapers (in addition to the ones we have now), and it doesn't use the standard prom port.
The reason why Hank exposed it for us was to get Hiros dashboards up and running sooner for helping in Nakamoto.
Do you have any preferences here?

We can move it to the private endpoint 👍


Is dilation of the spinal cord mask required for metrics extraction?

I noticed the mask is dilated by 3 voxels:
https://github.com/spinal-cord-7t/coil-qc-code/blob/a6a8017de62ad80457bc7dbb7bd02033a05160ad/data_processing-human.ipynb#L495-L511
Given that tissue outside the spinal cord can exhibit very different B1+ or B1- values, and that some parts in the vicinity of the cord (eg bony structure from the spine, intervertebral discs) are associated with noisy voxels, I am wondering if dilating doesn't cause more harm than good. @evaalonsoortiz have you evaluated this?

I have not, in the sense that I have not compared the signal curves along the cord with/without dilation. But, looking at the B1+/- maps, you are totally correct that at the vicinity of the cord the signal is either noisy (B1+ maps) or drops to zero (B1- in bone). Dropping this would make sense.

Comparison before/after dilation:
TFL:

SNR:

*: will create the GIF once https://github.com/spinal-cord-7t/coil-qc-code/actions/runs/11636660762 finished running


POLARSSL_CIPHER_ID_3DES never used

In include/polarssl/cipher.h a cipher_id_t value is defined for POLARSSL_CIPHER_ID_3DES but it is actually never used.
I would have expected it to be used in library/cipher_wrap.c by des_ede3_info but that uses POLARSSL_CIPHER_ID_DES instead.
I'm not entirely sure if it can safely be omitted (from the header file) or changed. If not, it might be convenient to mark it as /* Unused! */.

Good catch. I'll mark it as unused in the 1.3 branch, and change des_ede3_info to use it in the 2.0 branch. Thanks for your report.


Migrate to cats, migrate schema validator to networknt one, remove java.net.URL

I've split the work because there are a lot of lines changed  - this is the PR number 2, after the bumps.
ValidatableJsonMethods (Jackson) and ValidatableJValue (json4s) will be gone next PR, as will be TemporaryJson4sCatsUtils.
The networknt commit is WIP because the ProcessingMessage format is not there yet.

Closing in favor of https://github.com/snowplow/iglu-scala-client/pull/111


signin-oidc is pending when authorize is finished [ubuntu16.04]

Everything work fine on my local(windows platform). When I deploy them onto linux(ubuntu16.04), the issue raised.

I can't get any response after I sign in successfully, it always loading until receive  a blank page.

What's the status code and headers for that 'blank page'? If it's a 500 then you should check your server logs for an error.

Snapshot1: It takes too long time that is about 15mins.

Snapshot2:

It's my configuration for OpenId middle ware:
` app.UseOpenIdConnectAuthentication(new OpenIdConnectOptions
{
AuthenticationScheme = "oidc",
SignInScheme = CookieAuthenticationDefaults.AuthenticationScheme,
AutomaticAuthenticate = false,
            Authority = Settings["AuthorityUrl"],
            RequireHttpsMetadata = false,

            ClientId = "*****.dashboard",
            ClientSecret = "secret",
            ResponseType = OpenIdConnectResponseType.CodeIdToken,
            Scope = { "basicinfo **** ***" },
            GetClaimsFromUserInfoEndpoint = true,
            SaveTokens = true,

            Events = new OpenIdConnectEvents()
            {
                OnMessageReceived = context =>
                {
                    if (context.ProtocolMessage.Error != null)
                    {
                        context.SkipToNextMiddleware();
                        context.Response.Redirect("/Home/Error");
                    }

                    return Task.FromResult(0);
                },

                OnRemoteFailure = context =>
                {
                    if (context.Failure is OpenIdConnectProtocolException)
                    {
                        context.Response.Redirect("/Home/AccessDenied");
                        context.HandleResponse();
                        return Task.FromResult(0);
                    }
                    else
                    {
                        context.SkipToNextMiddleware();
                        context.Response.Redirect("/Home/Error");
                    }

                    throw context.Failure;
                }
            }
        });`

Likely unrelated, but
context.SkipToNextMiddleware();
context.Response.Redirect("/Home/Error");

is a nonsensical combination. You should use HandleResponse() with Redirect.

Also, don't re-throw the exception in OnRemoteFailure.

I forget to remove "OnMessageReceived" section, thanks for your mention.

The error still have.

@atpyk we recommend enabling logging so that it'll be easier to see at what point the server is taking too long. If you could do that and share your logs we can investigate further.

I report this issue to IdentityServer4 too: https://github.com/IdentityServer/IdentityServer4/issues/730
No error log in Idsvr side, the client portal side's log is:
fail: Microsoft.AspNetCore.Authentication.OpenIdConnect.OpenIdConnectMiddleware[17]
Exception occurred while processing message.
Microsoft.IdentityModel.Tokens.SecurityTokenExpiredException: IDX10223: Lifetime validation failed. The token is expired.
ValidTo: '01/22/2017 01:00:59'
Current time: '01/22/2017 01:05:59'.
at Microsoft.IdentityModel.Tokens.Validators.ValidateLifetime(Nullable1 notBefore, Nullable1 expires, SecurityToken securityToken, TokenValidationParameters validationParameters)
at System.IdentityModel.Tokens.Jwt.JwtSecurityTokenHandler.ValidateLifetime(Nullable1 notBefore, Nullable1 expires, JwtSecurityToken securityToken, TokenValidationParameters validationParameters)
at System.IdentityModel.Tokens.Jwt.JwtSecurityTokenHandler.ValidateTokenPayload(JwtSecurityToken jwt, TokenValidationParameters validationParameters)
at System.IdentityModel.Tokens.Jwt.JwtSecurityTokenHandler.ValidateToken(String token, TokenValidationParameters validationParameters, SecurityToken& validatedToken)
at Microsoft.AspNetCore.Authentication.OpenIdConnect.OpenIdConnectHandler.ValidateToken(String idToken, AuthenticationProperties properties, TokenValidationParameters validationParameters, JwtSecurityToken& jwt)
at Microsoft.AspNetCore.Authentication.OpenIdConnect.OpenIdConnectHandler.d__20.MoveNext()
info: Microsoft.AspNetCore.Authentication.OpenIdConnect.OpenIdConnectMiddleware[4]
Error from RemoteAuthentication: IDX10223: Lifetime validation failed. The token is expired.
ValidTo: '01/22/2017 01:00:59'
Current time: '01/22/2017 01:05:59'..

ValidTo: '01/22/2017 01:00:59'
Current time: '01/22/2017 01:05:59'

I'm really tempted to say that @leastprivilege already gave you the right answer: https://github.com/IdentityServer/IdentityServer4/issues/730#issuecomment-274463452.
That said, you likely have another issue (with your proxy?), as the request is not supposed to hang when it's rejected by the OIDC middleware.

We use the nginx to deploy the Idsvr4 and webportal on the same sever, and just to do the easy setting for mapping to the corresponding ports, Idsvr4 is 5000; webportal is 5005.
Did you guys reproduce this issue by nginx. That's a very tough issue.

@atpyk can you try changing the OnRemoteFailure handler to check for an additional exception type?
Currently it checks context.Failure is OpenIdConnectProtocolException, but in this case you might want to also handle a Microsoft.IdentityModel.Tokens.SecurityTokenExpiredException.
Also, please check the else class of the OnRemoteFailure where it currently has these two lines:
context.SkipToNextMiddleware();
context.Response.Redirect("/Home/Error");

And you probably want to remove the call to context.SkipToNextMiddleware();.

Guys, I found the root cause, so far it took our lots of time. So tough.
We use the .net core 1.1 to develop and deploy the Idsvr4 and Webportal, all the version of packages are >= 1.1.0.
Eventually we had to downgrade these 2 packages to 1.0.1, it has been fixed:
"Microsoft.AspNetCore.Authentication.OpenIdConnect": "1.1.0",
"Microsoft.AspNetCore.Authentication.Cookies": "1.1.0",
"Microsoft.AspNetCore.Diagnostics": "1.1.0",
"Microsoft.AspNetCore.Mvc": "1.0.1",
"Microsoft.AspNetCore.Mvc.Formatters.Json": "1.1.0",
"Microsoft.AspNetCore.Routing": "1.1.0",
"Microsoft.AspNetCore.Server.IISIntegration": "1.1.0",
"Microsoft.AspNetCore.Server.Kestrel": "1.0.1",
"Microsoft.AspNetCore.StaticFiles": "1.1.0",

Many thanks for @Eilon and @PinpointTownes  and @Tratcher 's help. :)

@atpyk ah, yes, mixing versions like that is not supported, so that could definitely be the cause of weird behavior.
Given that this issue appears to be resolved, I'm closing it. Thanks!

Let me clarify it. Not mixed versions lead to this issue; this issue will happen when use the same version for all packages. The above solution that is the way to work around.

@Eilon it looks like @atpyk means that mixing version does resolve this issue. This can't be the correct solution, can it?

Certainly not, but it does hint that the actual problem is in one of the packages you downgraded.

@cesarbs

@Eilon it looks like @atpyk means that mixing version does resolve this issue. This can't be the correct solution, can it?

Oops, I missed that. This is definitely bizarre.

@atpyk Did you downgrade both packages at once? Do you still have the issue when downgrading only one of them?
Can you share the relevant bits of your nginx config?

Yes, both. If I only downgrade either, it cannot work.
Below is our config of nginx:
server {
listen 443;
ssl on;
ssl_certificate /etc/ssl/xxx_chain.crt;
ssl_certificate_key /etc/ssl/xxx.key;
server_name account-test.xxx.com;
location / {
proxy_pass http://localhost:5000;   //IdentityServer4
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
proxy_buffer_size 64k;
proxy_buffers   32 32k;
proxy_busy_buffers_size 128k;
fastcgi_buffers 8 16k;
fastcgi_buffer_size 32k;
sendfile on;
}
}
server {
listen 443;
ssl on;
ssl_certificate /etc/ssl/xxx_chain.crt;
ssl_certificate_key /etc/ssl/xxx.key;
server_name mvcclient-test.xxx.com;
location / {
proxy_pass http://localhost:5005;   //MVC Client
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
proxy_buffer_size 64k;
proxy_buffers   32 32k;
proxy_busy_buffers_size 128k;
fastcgi_buffers 8 16k;
fastcgi_buffer_size 32k;
sendfile on;
}
}
server {
listen 80;
server_name*.xxx.com;
return 301  https://$host$request_uri;
}
server {
listen 80 default_server;
return 444;
}

@cesarbs I'm parking this on your plate to investigate in case there's some Kestrel issue here.

@atpyk I am currently investigating this issue, but so far I haven't been able to reproduce it.
I noticed from your screenshots that you seem to be running behind Squid. Do you have access to its configuration? Authentication takes a while in my environment, and I could see a proxy timing that out.
But most important, can you try changing this line in your nginx.conf:
    proxy_set_header Connection 'upgrade';

To:
    proxy_set_header Connection $http_Connection;

And check if that fixes your problem (with Kestrel 1.1.1 and MVC 1.1.2, given your setup works on 1.0.x versions).

@atpyk I am now able to reproduce your issue. The change to the Connection header on nginx works for me - let me know if it works for you.
And indeed, downgrading to Kestrel 1.0.1 makes things work, even with nginx always sending Connection: upgrade. I'm currently trying to get to the bottom of it.

The reason this only repros on Kestrel 1.1.x and not in Kestrel 1.0.x is due to a subtle difference in how it handles requests with a Connection: upgrade header.
In Kestrel 1.0.x, a request with a Connection: upgrade AND a Content-Length header is handled as if its body's content length is known (internally uses MessageBody.ForContentLength to read the request body).
In Kestrel 1.1.x though, Connection: upgrade takes precedence in deciding how to handle the request body and it ends up being handled as a "read until client closes the connection" request body (internally uses MessageBody.ForRemainingData to read the request body).
What's causing the hang in this issue is that at some point in the authentication process the OIDC middleware attempts to read the request body from a POST request that is sent with a content length. However, because nginx is always sending a Connection: upgrade header, the middleware hangs waiting for data past what's in the request body, and that read never completes because the remote peer has no reason to close the connection.
Fortunately this issue can be mitigated by telling nginx to forward the client's Connection header (proxy_set_header Connection $http_Connection), instead of always sending Connection: upgrade (which doesn't seem reasonable anyways since not every request will be upgraded).
We should consider patching Kestrel 1.1.x to match the behavior in 1.0.x (i.e. Content-Length should take precedence over Connection: upgrade in determining how to handle the request body). The same change should be done in dev. cc @muratg @Eilon @davidfowl

I will close this issue and open a new one on Kestrel to consider the change in behavior on how to handle the request body.

@atpyk Please re-open if you still have issues with OIDC after changing your nginx configuration.

@cesarbs It's really problem.  We see this behaviour at OWIN OpenIdConnect provider.
If server long time not serving requests and IIS stop it - all requests, that need redirect to OpenIdConnect never ends.
We get 504 timeout error for all our requests! iisreset helps

OWIN problem caused by deadlock in method System.Owin.Security
private static void OnSendingHeaderCallback(object state)
{
     AuthenticationHandler handler = (AuthenticationHandler)state;
     handler.ApplyResponseAsync().Wait();
}

Comments on closed issues are not tracked, please open a new issue with the details for your scenario.
OWIN components are over here: https://github.com/aspnet/aspnetkatana


Added support for jumping to the node that a phyloref is expected to/actually resolves to

Added a button to the expected/actually resolved node display that can be clicked to jump to that node in the phylogeny. These elements are identified in the SVG display as #expected_phyloref_node_${phylogenyIndex} and #pinning_node_${phylogenyIndex} in line with existing class/variable names. Closes #13.

Did you want me to review this?


"flutter screenshot --type=device --observatory-uri=..." should warn that it's ignoring the Observatory URI

I tried to take a screenshot from an app running on flutter-tester using flutter screenshot --type=device --observatory-uri=... (--type=device is the default, fwiw), and it worked. Except it didn't actually work, what happened is it ignored the Observatory URL provided and just grabbed the image from the connected Android device.
It would have been nice if it said that the Observatory URL was being ignored, or maybe just flat out failed saying those two options can't be used together like that.

Ok


defaultView missing from api docs

I think this is a small oversite from the docs/demo page.  defaultView is not listed as a prop and the only mention is associated with the view property.
http://intljusticemission.github.io/react-big-calendar/examples/index.html

yeah, the default props aren't listed seperately as they are directly tied to their related controlled/uncontrolled prop. I'm open to a PR adding them tho if anyone wants to tackle it


Update hugo, node, docsy versions

This makes the website work utilizing the latest version of hugo and node via the netlify configuration file.
Removes all node.js vulnerabilities (there are medium and high ones on main today).
Updates the docsy theme to most recent version without causing breakage (0.6.0).

/lgtm cancel
based on https://github.com/kubernetes/website/pull/43811#pullrequestreview-1713747448

Updated the title to reflect

/hold cancel
I still recommend we don't merge this combined PR. It's easier to review - and, if needed, revert - the individual smaller changes.

Broke out the first PR for hugo/netlify: https://github.com/kubernetes/website/pull/44640
Will create a second PR for docsy after that's merged.

@dtzar did you open that follow-up PR?

No I didn't.  The docsy update I gave still doesn't get to the latest version of docsy due to the significant breaking changes when the project switches to bootstrap v5.  Furthermore, the ideal/recommended pattern with docsy moving forward is using their git submodules of which is a much more significant effort/change to the k/k website repo.  I've done this migration for the karpenter website.
I really believe we need to have someone get an updated hugo/docsy template with the latest docsy version which works with various features, especially the drop down menu versions for languages.
Related sig meeting discussions in case others care to know more.  Also open to file an issue in this regards if you'd like @sftim versus just notes here.
Sig Docs meeting
CNCF Tech Docs office hours

If you're willing to file that issue @dtzar, please do.

https://github.com/kubernetes/website/issues/45410


python3Packages.meson-python: honor mesonFlagsArray

lift some custom logic out of numpy into a more appropriate home. incidentally, this fixes numpy cross-compilation, hopefully in a less fragile way than before.
Things done

Built on platform(s)

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

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

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

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

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

[x] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

for reference here's how our meson setup-hook itself works with these flags: https://github.com/NixOS/nixpkgs/blob/master/pkgs/by-name/me/meson/setup-hook.sh#L29


Add Velocity in Online Mode.

Bungee was added, why not velocity too

PaperConfig.isProxyOnlineMode() already checks for velocity, too. The bug i think you are trying to fix is in the Timings Viewer code, not the server software.

Yes its my idea of this patch, i am not verry check sorry

https://github.com/aikar/timings/commit/63fcbeb2772022da8dca5def7ac400cc1e1d49f1
How is this related then? It seems like support has already been added

aikar/timings@63fcbeb
How is this related then? It seems like support has already been added

My fork of the Timings Viewer is way older than that commit.

So you should update :P

That's the plan. Eventually ;)


⚠ Bofrost.lu has degraded performance

In 0334d25, Bofrost.lu (https://www.bofrost.lu) experienced degraded performance:

HTTP code: 200
Response time: 1886 ms

Resolved: Bofrost.lu performance has improved in 2d60de7 after 6 minutes.


improving tags

turns out that: $('#shares-select').attr('data-current-id', id); is actually required inmodify_sharing, if not the share doesn't work AKA is broken. While doing this decided to also fix https://github.com/biocore/qiita/issues/2112 and https://github.com/biocore/qiita/issues/2114, see below.

👍 code looks good to me!

Codecov Report

Merging #2183 into master will increase coverage by 0.01%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master    #2183      +/-   ##
==========================================
+ Coverage   92.04%   92.06%   +0.01%
==========================================
  Files         191      191
  Lines       19581    19581
==========================================
+ Hits        18024    18027       +3
+ Misses       1557     1554       -3

Impacted Files
Coverage Δ

qiita_db/test/test_analysis.py
98.34% <0%> (+0.33%)
:arrow_up:

...t/handlers/api_proxy/tests/test_sample_template.py
98.66% <0%> (+0.88%)
:arrow_up:

Continue to review full report at Codecov.

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


Fix code scanning alert - Inefficient regular expression

The tracking issue for:

[ ] https://github.com/takinekotfs/jupyter-cpp-kernel/security/code-scanning/3

Code reviewers

@takinekotfs

Code details:
https://github.com/takinekotfs/jupyter-cpp-kernel/blob/386cf14f5474c29996045114b8978c26f804a61e/jupyter_cpp_kernel/kernel.py#L240-L244

Solved as tedious and too complicated to solve :)

Solved as tedious and too complicated to solve :)


Replace non-working homepage link in gemspec

This link is used by rubygems.org and thus it's important to keep it up to date, otherwise we are confusing users.
Fixes #119

Thanks


Add managed field, part 2

A follow up to @liftedkilt's PR #5 - adds a managed field for each record, and won't add, update, or remove an existing record if the field is set to false.
One situation where this is useful is with ArgoTunnel, which will create a CNAME record that you wouldn't want your Salt configs to overwrite or remove.

Two minor comments, LGTM otherwise.
@dqminh, can you take a look if you have time?

Thanks @liftedkilt and @larcher!


concurrent map delete and read not panic, read got key of default value

Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (go version)?
go version go1.7.3 linux/amd64
What operating system and processor architecture are you using (go env)?
GOARCH="amd64"
GOBIN=""
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/opt/go_3rdparty"
GORACE=""
GOROOT="/opt/go"
GOTOOLDIR="/opt/go/pkg/tool/linux_amd64"
CC="gcc"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build972690274=/tmp/go-build -gno-record-gcc-switches"
CXX="g++"
CGO_ENABLED="1"
What did you do?
If possible, provide a recipe for reproducing the error.
A complete runnable program is good.
A link on play.golang.org is best.
concurrent map delete and read should panic, but it didn't panic and then read success with key of default value !
This is the test code:
package main

import (
        "fmt"
        "math"
        "time"
)

func main() {
        var m = make(map[int32]bool)

        go func() {
                for {
                        for k, v := range m {
                                if k == 0 {
                                        fmt.Println(k, v)
                                        panic(fmt.Errorf("No! got 0! key should >= 1 !"))
                                }
                                time.Sleep(1 * time.Millisecond)
                        }
                }
        }()
        i := int32(1) // make sure key>=1
        for i < math.MaxInt32 {
                m[i] = true
                delete(m, i)
                i++
                time.Sleep(1 * time.Millisecond)
        }
}

What did you expect to see?
panic info like this:
fatal error: concurrent map read and map write
What did you see instead?
0 false
panic: No! got 0! key should >= 1 !

goroutine 5 [running]:
panic(0x490fe0, 0xc42000a3b0)
        /opt/go/src/runtime/panic.go:500 +0x1a1
main.main.func1(0xc420014210)
        /home/caspian/goprojects/src/testmap.go:17 +0x1c8
created by main.main
        /home/caspian/goprojects/src/testmap.go:22 +0x73
exit status 2

This is fixed in tip, https://go-review.googlesource.com/c/24749/ (treating iteration as read)
Note that this panic is best effort, you should not rely on it.

@randall77, Thanks for your reply!
I get it, this is fixed in the main branch, but 1.7.x release doesn't contain it.

Don't forget this part

Note that this panic is best effort, you should not rely on it.

If in doubt, run your code under the race detector.
On Tue, Nov 15, 2016 at 5:53 PM, Caspian<EMAIL_ADDRESS>wrote:

@randall77 https://github.com/randall77, Thanks for your reply!
I get it, this is fixed in the main branch, but 1.7.x release doesn't
contain it.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/golang/go/issues/17922#issuecomment-260562106, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AAAcA6VdnYNj-CG6TCEriWfsyQBjA9Kbks5q-VbsgaJpZM4KyGwo
.

@davecheney，OK，thanks very much!

I get it, this is fixed in the main branch, but 1.7.x release doesn't contain it.

And it never will. It will be in Go 1.8 and later.


Plotting of continuous values when norm=None

Add a case to set norm when norm=None in utils._prepare_cmap_norm

Codecov Report

Merging #201 (cab5639) into main (9bb23e6) will increase coverage by 0.26%.
The diff coverage is 100.00%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #201      +/-   ##
==========================================
+ Coverage   78.58%   78.84%   +0.26%
==========================================
  Files          11       11
  Lines        1312     1314       +2
==========================================
+ Hits         1031     1036       +5
+ Misses        281      278       -3

Files
Coverage Δ

src/spatialdata_plot/pl/utils.py
63.27% <100.00%> (+0.13%)
:arrow_up:

... and 1 file with indirect coverage changes

@timtreis could you please have a look at the bugfix? It works now, but there was still an open TODO in the code and I'm not sure what the intention for the original first case was...

Amazing @Sonja-Stockhaus! Thanks for the fix 😊 Since the todo was there also before the fix I would merge now and eventually circle back later.

@LucaMarconato okay, thanks for the feedback!


500 error caused  by faceting if a column called n exists

I recently discovered datasette thanks to your great talk at FOSDEM and would like to use it for some projects. However, when trying to use it on databases created from some csv ot tsv files, I am sometimes getting this issue when going to http://<IP_ADDRESS>:8001/databasetest/databasetest and I don't exactly understand what it refers to.
So far, I couldn't find anything relevant when reviewing the raw text files that could explain this issue, nor could I find something obvious between the files that generate this issue and those that don't. Does the error ring a bell and, if so, could you please point me to the right direction?
$ datasette databasetest.db
INFO:     Started server process [1408482]
INFO:     Waiting for application startup.
INFO:     Application startup complete.
INFO:     Uvicorn running on http://<IP_ADDRESS>:8001 (Press CTRL+C to quit)
INFO:     <IP_ADDRESS>:56394 - "GET / HTTP/1.1" 200 OK
INFO:     <IP_ADDRESS>:56394 - "GET /-/static/app.css?4e362c HTTP/1.1" 200 OK
INFO:     <IP_ADDRESS>:56396 - "GET /-/static-plugins/datasette_vega/main.2acbb312.css HTTP/1.1" 200 OK
INFO:     <IP_ADDRESS>:56398 - "GET /-/static-plugins/datasette_vega/main.08f5d3d8.js HTTP/1.1" 200 OK
Traceback (most recent call last):
  File "/home/kabouik/.local/lib/python3.7/site-packages/datasette/app.py", line 1099, in route_path
    response = await view(request, send)
  File "/home/kabouik/.local/lib/python3.7/site-packages/datasette/views/base.py", line 147, in view
    request, **request.scope["url_route"]["kwargs"]
  File "/home/kabouik/.local/lib/python3.7/site-packages/datasette/views/base.py", line 121, in dispatch_request
    return await handler(request, *args, **kwargs)
  File "/home/kabouik/.local/lib/python3.7/site-packages/datasette/views/base.py", line 260, in get
    request, database, hash, correct_hash_provided, **kwargs
  File "/home/kabouik/.local/lib/python3.7/site-packages/datasette/views/base.py", line 434, in view_get
    request, database, hash, **kwargs
  File "/home/kabouik/.local/lib/python3.7/site-packages/datasette/views/table.py", line 782, in data
    suggested_facets.extend(await facet.suggest())
  File "/home/kabouik/.local/lib/python3.7/site-packages/datasette/facets.py", line 168, in suggest
    and any(r["n"] > 1 for r in distinct_values)
  File "/home/kabouik/.local/lib/python3.7/site-packages/datasette/facets.py", line 168, in <genexpr>
    and any(r["n"] > 1 for r in distinct_values)
TypeError: '>' not supported between instances of 'str' and 'int'
INFO:     <IP_ADDRESS>:56402 - "GET /databasetest/databasetest HTTP/1.1" 500 Internal Server Error
INFO:     <IP_ADDRESS>:56402 - "GET /-/static/app.css?4e362c HTTP/1.1" 200 OK
INFO:     <IP_ADDRESS>:56404 - "GET / HTTP/1.1" 200 OK
INFO:     <IP_ADDRESS>:56404 - "GET /-/static/app.css?4e362c HTTP/1.1" 200 OK
INFO:     <IP_ADDRESS>:56406 - "GET /-/static-plugins/datasette_vega/main.2acbb312.css HTTP/1.1" 200 OK
INFO:     <IP_ADDRESS>:56408 - "GET /-/static-plugins/datasette_vega/main.08f5d3d8.js HTTP/1.1" 200 OK
INFO:     <IP_ADDRESS>:56408 - "GET /databasetest HTTP/1.1" 200 OK
INFO:     <IP_ADDRESS>:56408 - "GET /-/static/app.css?4e362c HTTP/1.1" 200 OK
INFO:     <IP_ADDRESS>:56404 - "GET /-/static-plugins/datasette_vega/main.2acbb312.css HTTP/1.1" 200 OK
INFO:     <IP_ADDRESS>:56406 - "GET /-/static/codemirror-5.57.0.min.css HTTP/1.1" 200 OK
INFO:     <IP_ADDRESS>:56410 - "GET /-/static-plugins/datasette_vega/main.08f5d3d8.js HTTP/1.1" 200 OK
INFO:     <IP_ADDRESS>:56414 - "GET /-/static/codemirror-5.57.0-sql.min.js HTTP/1.1" 200 OK
INFO:     <IP_ADDRESS>:56412 - "GET /-/static/codemirror-5.57.0.min.js HTTP/1.1" 200 OK
INFO:     <IP_ADDRESS>:56408 - "GET /-/static/sql-formatter-2.3.3.min.js HTTP/1.1" 200 OK
INFO:     <IP_ADDRESS>:56408 - "GET /databasetest?sql=select+*+from+databasetest HTTP/1.1" 200 OK
INFO:     <IP_ADDRESS>:56410 - "GET /-/static/app.css?4e362c HTTP/1.1" 200 OK
INFO:     <IP_ADDRESS>:56408 - "GET /-/static-plugins/datasette_vega/main.2acbb312.css HTTP/1.1" 200 OK
INFO:     <IP_ADDRESS>:56412 - "GET /-/static/codemirror-5.57.0.min.css HTTP/1.1" 200 OK
INFO:     <IP_ADDRESS>:56404 - "GET /-/static/sql-formatter-2.3.3.min.js HTTP/1.1" 200 OK
INFO:     <IP_ADDRESS>:56406 - "GET /-/static/codemirror-5.57.0.min.js HTTP/1.1" 200 OK
INFO:     <IP_ADDRESS>:56414 - "GET /-/static-plugins/datasette_vega/main.08f5d3d8.js HTTP/1.1" 200 OK
INFO:     <IP_ADDRESS>:56408 - "GET /-/static/codemirror-5.57.0-sql.min.js HTTP/1.1" 200 OK
INFO:     <IP_ADDRESS>:56410 - "GET /databasetest.json?sql=select+*+from+databasetest&_shape=array&_shape=array HTTP/1.1" 200 OK
^CINFO:     Shutting down
INFO:     Waiting for application shutdown.
INFO:     Application shutdown complete.
INFO:     Finished server process [1408482]

Note that there is no error if I go to http://<IP_ADDRESS>:8001/databasetest and then click on Run SQL.

It looks to me like something is causing the faceting query here to return a string when it was expected to return a number:
https://github.com/simonw/datasette/blob/32963018e7edfab1233de7c7076c428d0e5c7813/datasette/facets.py#L153-L170
I can't think of any way that  a count(*) as n would turn into a string though!

... unless your data had a column called n?

Yes! That's the problem. I was able to replicate it like so:
echo '[{
    "n": "one",
    "abc": 1
}, {
    "n": "one",
    "abc": 2
}, {
    "n": "two",
    "abc": 3
}]' | sqlite-utils insert column-called-n.db t -

Demo: https://latest.datasette.io/fixtures/facetable - which now has a column called n.

... unless your data had a column called n?

Exactly, that's highly likely even though I can't double check from this computer just now. Thanks!


chore: improve axum example

Summary
This PR updates the Axum example.

Checklist

[x] ran cargo make fmt
[x] using conventional commits to hightlight user-facing fixes and features

Running CI now :)

All done, thanks for taking the time to do this :)


Compactor: Add Revisional compactor

Hello,
For #8098, adding a new compactor named Revisional, which runs compaction every 5 minutes.
To switch the compactor from the default Periodic, I added a new option --auto-compaction-mode as well.
Some Notes:

Should Periodic run compaction every 5 minutes as well for consistency? (currently it runs hourly)
The new option might be little confusing. Instead of numbers, we might want to use human readable labels such as periodic and revisional.

To keep backward compatibility, I didn't change the type of retention hours from int to int64.
If the signature of Periodic is not so important (maybe it's used internal only), changing the type can make the code a little bit simpler without casting.

Done adding comments.
Also added some comments to Compactor interface as well.

lgtm after renaming the mode from period to periodic and squashing

Renamed and squashed!

please change the commit message's first line to *: add Revisional compactor so CI is happy about commit formatting. Thanks!

@yudai still failing CI on json:"auto-compaction-mode...

@heyitsanthony Oops, sorry about that. Now it should be fixed

CI failures are unrelated. merging. thanks! @yudai


[AIRFLOW-1061] Remove BASE_URL from log_url and mark_success_url

Dear Airflow maintainers,
Please accept this PR. I understand that it will not be reviewed until I have checked off all the steps below!
JIRA

[x] My PR addresses the following Airflow JIRA issues and references them in the PR title. For example, "[AIRFLOW-1601] My Airflow PR"

https://issues.apache.org/jira/browse/AIRFLOW-1061

Description

[x] Here are some details about my PR, including screenshots of any UI changes:
When the server is started with a port which is not 8080 the log visualizer lik still refers to that and the link doesn't work.
With this change the link in the DAG list uses relative paths and have the browser bring to the actual page.

Tests

[x] My PR passes the already existing tests and works in the browser

Commits

[x] My commits all reference JIRA issues in their subject lines, and I have squashed multiple commits if they address the same issue. In addition, my commits follow the guidelines from "How to write a good git commit message":

Subject is separated from body by a blank line
Subject is limited to 50 characters
Subject does not end with a period
Subject uses the imperative mood ("add", not "adding")
Body wraps at 72 characters
Body explains "what" and "why", not "how"

Codecov Report

Merging #2798 into master will decrease coverage by <.01%.
The diff coverage is 100%.

@@            Coverage Diff            @@
##           master   #2798      +/-   ##
=========================================
- Coverage   73.41%   73.4%   -0.01%
=========================================
  Files         158     158
  Lines       11957   11955       -2
=========================================
- Hits         8778    8776       -2
  Misses       3179    3179

Impacted Files
Coverage Δ

airflow/models.py
87.29% <100%> (-0.02%)
:arrow_down:

Continue to review full report at Codecov.

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

Hi @jacopofar,
How do you handle the log URL in case where you are running some workers and a mail is sent from a worker that doesn't host the webserver ?

@Walkoss I didn't know such a function existed and used this helper. In this case I think the solution is to continue using the absolute URL and instead fix configuration.get('webserver', 'BASE_URL') to return the correct port. Currently if I run it with airflow webserver -p 8090 the URL still refers to port 8080. If I have time I'll try to look at it and hopefully come with an updated/new PR.
The other links in the interface use Flask's url_for and work. From the issue on Jira I think a similar problem happens with the hostname.

@jacopofar It seems airflow doesn't use this method to fecth remote log. See here So you're right :)

Does that mean it can be merged as is?

@jacopofar can you rebase?


[FEATURE REQUEST] A cppn example

Hi. I'd like to use this library with CPPNs that take as their input xyz and output a 3d tensor of reals.
Wondering if you have a bare bones implementation (e.g. fixed architecture) on hand that you are willing to share, and a paper you'd like to be cited if that example were to be adapted for academic research.
Thanks,
Sam

Hi Sam! Unfortunately, we don't have any CPPN examples right now, but here are some pointers:

pyribs would only work with a fixed architecture, as we assume solutions are a fixed length
To make a neural net work with pyribs, you would need to be able to serialize it to a 1D array, and then deserialize it back to a neural net.
In PyTorch, this can be done by adding methods to an nn.Module like the following:

    def serialize(self):
        """Returns 1D array with all parameters in the network."""
        return np.concatenate(
            [p.data.cpu().detach().numpy().ravel() for p in self.parameters()])

    def deserialize(self, array):
        """Loads parameters from 1D array."""
        arr_idx = 0
        for param in self.model.parameters():
            shape = tuple(param.data.shape)
            length = np.product(shape)
            block = array[arr_idx:arr_idx + length]
            if len(block) != length:
                raise ValueError("Array not long enough!")
            block = np.reshape(block, shape)
            arr_idx += length
            param.data = torch.from_numpy(block).float()
        return self

Finally, we do have this tutorial where we try to train an MNIST network with CMA-ME, but we never finished it (and it uses an outdated pyribs version)

As for citation, you can cite the pyribs library and (if you use it) CMA-ME: https://pyribs.org/citation/


Add VpcId label to ExternalEntity CRs

Describe the problem/challenge you have
Currently, there is no label added to EE identifying the Cloud VPC they are part of. This will be needed to support VPC scoped Groups/ANP
Describe the solution you'd like
Add a VpcId label to EE referring to the Cloud VPC ID so that we can use this for labelSelector  during Group/ANPcreation.
Anything else you would like to add?

It is already support. Please check vpc.nephe label @chidambaramgvmware

@reachjainrahul I believe vpc.nephe label has the Nephe generated VPC name and not the cloud provided ID or name. From consumption perspective, we would need the following labels in the EE CR,
vpc.cloud.name - Name of VPC on public cloud
vpc.cloud.id - VPC/VNET ID generated by public cloud provider
vm.cloud.name - Name of VM on public cloud
vm.cloud.id - VM ID generated by public cloud provider
These will be the labels we will be configuring in the labelSelector of Group CR to select cloud VMs as part of a Group.
I believe in the case of Azure, cloud generated ID is of the URL format with "/" which k8s labels don't support, so adding the resourceGuid which is of the UUID format would be good.


No Warning icon next to "No certificate or asymmetric key is available"

Azure Data Studio Version: Insiders
OS Version: Windows 10 Enterprise 10.0

Steps to Reproduce:

Open Object Explorer in Azure Data Studio
Right click on any DB object and select "Backup"

Does this issue occur when all extensions are disabled?: Yes/No Yes

Expected Result: Warning icon visible (this screenshot below was pulled from the tutorial docs)

Actual Result: Warning Icon missing (screenshot from ADS Insiders Build)

@alanrenmsft

@alanrenmsft just curious, do you need anything from me?

Just asking if we can add that warning icon so that the warning  can be brought to users attention.

@tdoshin sure, I can take a look at this one.


Redefine the set as reach center displying rules in context menu

keep it in initial mode (first app load) and remove to/from options from context menu when in isochrones mode

Done


New pig game

2player Game created using using html,css,javascript.
i an gssoc23 contributor please assign this issue to me @Shreyaar12 @artimanputra @Dharmesh177

Write proper description of this and make PR in 1 week follow contributing.md guide for successful PR merge

Yes sure thanks


[BXMSPROD-2011] Move zip/unzip to host machine for rhpam/kogito

Thank you for submitting this pull request
In case zip/unzip command cannot be allowed in time for the release, here a temporary workaround.
JIRA: (please edit the JIRA link if it exists)
link
referenced Pull Requests: (please edit the URLs of referenced pullrequests if they exist)

referenced pull request 1
referenced pull request 2
referenced pull request 2
etc.

How to retest a PR or trigger a specific build:

* a pull request please add comment: Jenkins retest this

FYI @rgdoliveira

Closed in favor of https://github.com/kiegroup/kie-ci/pull/1482


*&!(XNX-VIRAL~VIDEO)™Video balthazar baltasar ebang engonga video x Tlegram #2027 +Baltasar Ebang Engonga Full Video |

Equatorial Guinea’s ANIF boss enmeshed in s3x scandal with multiple women
+Baltasar Ebang Engonga Full Video |
by Israel Arogbonlo November 4, 2024 in NEWSNOW Reading Time: 1 min read
Equatorial Guinea’s ANIF boss enmeshed in s3x scandal with multiple women
Baltasar Ebang Engonga, the Director General of Equatorial Guinea’s National Financial Investigation Agency (ANIF), is currently embroiled in a massive sex scandal.
He was caught on tape engaging in sexual activities with multiple women, including his brother’s wife, cousin, and the sister of Equatorial Guinea’s President.
Popular social critic Martins Ortse, also known as VeryDarkMan, disclosed videos of this via his Instagram page.
Meet Baltasar Ebang Engonga, Equatorial Guinea’s financial crime chief embroiled in sex scandal
Meet Baltasar Ebang Engonga, Equatorial Guinea’s financial crime chief embroiled in sex scandal
Baltasar Ebang Engonga, Director General of Equatorial Guinea’s National Financial Investigation Agency (ANIF), is currently at the center of a major scandal after authorities discovered hundreds of explicit videos allegedly featuring him in compromising situations.
Read Also:
*President Tinubu swears in seven new ministers
*Appeal Court acquits ex-CJN, Onnoghen, orders FG to unfreeze his account
The videos reportedly include encounters with high-profile individuals, such as his brother’s wife, his cousin, and the sister of the President of Equatorial Guinea.
The scandal emerged in the course of a fraud investigation, during which investigators found over 300 videos on Ebang Engonga’s computer, showing encounters with multiple women, including some who are married.
The footage, discovered in his personal office, was said to have been recorded with consent and has since been leaked online, causing a media uproar.
Equatorial Guinea’s Vice President, Teodoro Nguema, addressed the scandal in a public statement posted on X (formerly Twitter), where he condemned inappropriate conduct within government offices.
He stressed that sexual relations are strictly prohibited in administrative workplaces and warned of repercussions for violations.
“Given the abuse that has been shown on social media in Equatorial Guinea in recent days, and remembering that ministries are solely and exclusively for carrying out administrative work in support of the country’s development, sexual relations in offices are prohibited,” Nguema stated. “Control mechanisms are already in place, and anyone who violates this rule again will be subject to disciplinary proceedings for indecent conduct and will be dismissed from their job.”

hjhjh


jenkins: add options

set timeout to 1 hour
throw away old build logs, keep 10
remove unnecessary pipeline agent, blocking the node
formatting changes for readability

@julianoes I threw this on top of #558


[Documentation]: Width property on Modal

Describe the problem
Currently there is a width property on the Modal component, for both Angular and React. This property is not documented yet. Please document this property and give an example of usage.
Additional context
No response

:tada: This issue has been resolved in version 4.15.0-alpha.2 :tada:
The release is available on:

npm package (@alpha dist-tag)
GitHub release

Your semantic-release bot :package::rocket:

:tada: This issue has been resolved in version 1.15.0-alpha.2 :tada:
The release is available on:

npm package (@alpha dist-tag)
GitHub release

Your semantic-release bot :package::rocket:

:tada: This issue has been resolved in version 1.15.0 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:

:tada: This issue has been resolved in version 2.6.0-alpha.1 :tada:
The release is available on:

npm package (@alpha dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Content audit for qiskit.org/documentation

The Qiskit documentation page gets its content from different sources. We need a content audit to know from where we are getting the documentation. It will be also useful to unify content to make the user experience more clear

To help with this audit, two diagrams has been created on mural:

Folder structure to see where documentation is located.
Content on the page

Looking at them, we reached the following conclusions:

There is no alignment between top menus and between left sidebar menus. Each repo has his own menus
There are no alignment between docs content
There are docs using deprecated versions. Example


Performance Question On Camel-K

This question is directed at the camel-k architects/experts.
We are looking at a system where we will need to run hundreds, perhaps even thousands, of camel-k integrations. I am trying to understand the overhead associated with a single camel-k integration.
I'm assuming that 100 integrations would result in 100 instances of a camel-k based pod. This means each pod would require a single JVM, hence 100 JVM instances.
I could envision an alternative architectural approach that would perform the same 100 functions in a single pod, as long as that pod is running all 100 routes.
Is it possible to create an integration that implements N routes, rather than a single route per integration?
Can you please help us to understand the way to most efficiently architect a camel-k based solution that must perform the equivalent of 100's or 1000's of routes?
What architectural guidance can you offer relative to helping us come up with an appropriate performance focused camel-k based architecture?
I'm interested in understanding how to architect the system to find the right architectural balance with a focus on vCPU and RAM resources.

I can try to give some ideas to reason on, but there's no general rule valid for all scenarios.
You can run multiple routes in the same JVM, just with kamel run Routes1.java Routes2.java RoutesN.java --name routes-pack.
The question is when you want to do that and why. I think you should apply the same reasoning that people use when dealing with microservices architectures, where the big integration containing 1000 routes is the monolith.
E.g. do you want independent scalability of some integration flows? So deploy them separately in order to set the number of replicas independently. If you use Knative they will scale automatically depending on the load, but if you have a single fat integration containing all routes, you need to scale the whole stuff which is heavyweight (takes more time to startup and uses much more resources than needed).
E.g. do you have multiple teams? If so you probably want each team to be responsible for their own deployments and not having to synchronize with other teams. You also may want that each update on one single integration not to interfere with other integrations already running (but they will do if they are on the same JVM).
I think many other principles that apply to microservices apply also here. You'll end up somewhere in the middle between a single fat integration and an integration per route.
The long-term goal of Camel K is to allow you to split based on domain logic rather than resource utilization, by drastically reducing the amount of resource needed. We've already done some work on reducing the amount of resources used in the cluster and we'll do a lot more.
What you've now:

Knative services available for HTTP based endpoints: they shut down the JVM when not used
CronJob (fresh #1197): they activate a JVM only when they need to run

What we're working on:

Quarkus native compilation: so you don't run a full JVM but a tiny binary for each integration which uses resources comparable to that of a golang application
Keda autoscalers: to run integration only when they need to process data and stop them when idle

In particular, Quarkus is a game changer. The Camel-quarkus repository already contains a lot of Camel components that can compile to native (Camel K will be able to compile to native transparently in one of next releases, we're working on it).
If I had to run 1000 integration flows, the first thing I would consider would be to check if camel components I need to use are in the list of Quarkus extensions and contribute what's missing.. That would allow me to care less about non-functional requirements and focus on business logic and maintainability.


Update azure-pipelines-release.yml

added batch processing

Was targetting to wrong branch. Fixed in another PR
https://github.com/City-of-Helsinki/parking-permits-ui/pull/104


BUG: automcomplete of tab for "cd .." is not 100% working

When you are on the command line and want to go folder(s) above and type " cd .." and want to autocomplete with tab, it doesn't give you the "/"

It works differently in other shell implementations so for the time being, we'll resort to using the logic that we have and won't implement this.


Increment version for batch releases

Increment package version after release of Microsoft.Azure.Batch.Conventions.Files

/check-enforcer override

Failure in CI was unrelated to changes.  (Ubuntu DNS issue)   Merging.


[BUG] Inconsistency between routes and chain

Bug Description:
Questionable as a bug, but I noticed that the "chain" value in the API for a position does not match the name of the chains as used in the Routes. for example:
https://api.cryptonotifi.xyz/**avalanche**/snowball?address=0x1.........90c
versus a response like:
{
"type": "token",
"chain": "avax",
"location": "snowball",
"status": "staked",
"owner": "0x1dddd5e5cD54175a8d63082217C6e7B6eFbee90c",
"symbol": "SNOB",
"address": "0xC38f41A296A4493Ff429F1238e030924A1542e50",
"balance": 2461.749,
"price": 0.286626,
"logo": "https://avascan.info/cdn/images/addresses/snowball.png"
},
{
Expected Behavior:
If these matched, then it becomes possible to derive the Route for a given position based on the data included in that position.  trivial to code around by mapping these of course.

These naming conventions were put in place in order to remain consistent with the front-end, but you're right in saying they should likely be changed.
Until then, a mapping is already setup on the types repo here.

Thanks that mapping works find to address this short or longer term for me.


Many Issues with Jasper Installation

So recently I've been trying to install Jasper on my Raspberry Pi 2 B+, and I've encountered a series of errors. I'm using wit.ai as my stt, and using Svox as my tts. This is what I get when i run jasper.py or ./start.sh.
`*******************************************************

        JASPER - THE TALKING COMPUTER           *

(c) 2015 Shubhro Saha, Charlie Marsh & Jan Holthuis *

WARNING:client.brain:Skipped module 'Birthday' due to an error.
Traceback (most recent call last):
File "/home/pi/jasper/client/brain.py", line 43, in get_modules
mod = loader.load_module(name)
File "/usr/lib/python2.7/pkgutil.py", line 246, in load_module
mod = imp.load_module(fullname, self.file, self.filename, self.etc)
File "/home/pi/jasper/client/modules/Birthday.py", line 4, in
import facebook
ImportError: No module named facebook
WARNING:client.brain:Skipped module 'HN' due to an error.
Traceback (most recent call last):
File "/home/pi/jasper/client/brain.py", line 43, in get_modules
mod = loader.load_module(name)
File "/usr/lib/python2.7/pkgutil.py", line 246, in load_module
mod = imp.load_module(fullname, self.file, self.filename, self.etc)
File "/home/pi/jasper/client/modules/HN.py", line 5, in
from bs4 import BeautifulSoup
ImportError: No module named bs4
WARNING:client.brain:Skipped module 'MPDControl' due to an error.
Traceback (most recent call last):
File "/home/pi/jasper/client/brain.py", line 43, in get_modules
mod = loader.load_module(name)
File "/usr/lib/python2.7/pkgutil.py", line 246, in load_module
mod = imp.load_module(fullname, self.file, self.filename, self.etc)
File "/home/pi/jasper/client/modules/MPDControl.py", line 5, in
import mpd
ImportError: No module named mpd
WARNING:client.brain:Skipped module 'News' due to an error.
Traceback (most recent call last):
File "/home/pi/jasper/client/brain.py", line 43, in get_modules
mod = loader.load_module(name)
File "/usr/lib/python2.7/pkgutil.py", line 246, in load_module
mod = imp.load_module(fullname, self.file, self.filename, self.etc)
File "/home/pi/jasper/client/modules/News.py", line 5, in
from semantic.numbers import NumberService
ImportError: No module named semantic.numbers
WARNING:client.brain:Skipped module 'Notifications' due to an error.
Traceback (most recent call last):
File "/home/pi/jasper/client/brain.py", line 43, in get_modules
mod = loader.load_module(name)
File "/usr/lib/python2.7/pkgutil.py", line 246, in load_module
mod = imp.load_module(fullname, self.file, self.filename, self.etc)
File "/home/pi/jasper/client/modules/Notifications.py", line 3, in
import facebook
ImportError: No module named facebook
WARNING:client.brain:Skipped module 'Time' due to an error.
Traceback (most recent call last):
File "/home/pi/jasper/client/brain.py", line 43, in get_modules
mod = loader.load_module(name)
File "/usr/lib/python2.7/pkgutil.py", line 246, in load_module
mod = imp.load_module(fullname, self.file, self.filename, self.etc)
File "/home/pi/jasper/client/modules/Time.py", line 5, in
from semantic.dates import DateService
ImportError: No module named semantic.dates
WARNING:client.brain:Skipped module 'Weather' due to an error.
Traceback (most recent call last):
File "/home/pi/jasper/client/brain.py", line 43, in get_modules
mod = loader.load_module(name)
File "/usr/lib/python2.7/pkgutil.py", line 246, in load_module
mod = imp.load_module(fullname, self.file, self.filename, self.etc)
File "/home/pi/jasper/client/modules/Weather.py", line 8, in
import bs4
ImportError: No module named bs4
ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.bcm2835.pcm.front.0:CARD=0'
ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5007:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM front
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.bcm2835.pcm.surround51.0:CARD=0'
ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5007:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM surround21
ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.bcm2835.pcm.surround51.0:CARD=0'
ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5007:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM surround21
ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.bcm2835.pcm.surround40.0:CARD=0'
ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5007:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM surround40
ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.bcm2835.pcm.surround51.0:CARD=0'
ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5007:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM surround41
ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.bcm2835.pcm.surround51.0:CARD=0'
ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5007:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM surround50
ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.bcm2835.pcm.surround51.0:CARD=0'
ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5007:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM surround51
ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.bcm2835.pcm.surround71.0:CARD=0'
ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5007:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM surround71
ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.bcm2835.pcm.iec958.0:CARD=0,AES0=4,AES1=130,AES2=0,AES3=2'
ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5007:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM iec958
ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.bcm2835.pcm.iec958.0:CARD=0,AES0=4,AES1=130,AES2=0,AES3=2'
ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5007:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM spdif
ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.bcm2835.pcm.iec958.0:CARD=0,AES0=4,AES1=130,AES2=0,AES3=2'
ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5007:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM spdif
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline
ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'defaults.bluealsa.device'
ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4996:(snd_config_expand) Args evaluate error: No such file or directory
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM bluealsa
ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'defaults.bluealsa.device'
ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4996:(snd_config_expand) Args evaluate error: No such file or directory
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM bluealsa
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
jack server is not running or cannot be started
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
WARNING:client.brain:Skipped module 'Birthday' due to an error.
Traceback (most recent call last):
File "/home/pi/jasper/client/brain.py", line 43, in get_modules
mod = loader.load_module(name)
File "/usr/lib/python2.7/pkgutil.py", line 246, in load_module
mod = imp.load_module(fullname, self.file, self.filename, self.etc)
File "/home/pi/jasper/client/modules/Birthday.py", line 4, in
import facebook
ImportError: No module named facebook
WARNING:client.brain:Skipped module 'HN' due to an error.
Traceback (most recent call last):
File "/home/pi/jasper/client/brain.py", line 43, in get_modules
mod = loader.load_module(name)
File "/usr/lib/python2.7/pkgutil.py", line 246, in load_module
mod = imp.load_module(fullname, self.file, self.filename, self.etc)
File "/home/pi/jasper/client/modules/HN.py", line 5, in
from bs4 import BeautifulSoup
ImportError: No module named bs4
WARNING:client.brain:Skipped module 'MPDControl' due to an error.
Traceback (most recent call last):
File "/home/pi/jasper/client/brain.py", line 43, in get_modules
mod = loader.load_module(name)
File "/usr/lib/python2.7/pkgutil.py", line 246, in load_module
mod = imp.load_module(fullname, self.file, self.filename, self.etc)
File "/home/pi/jasper/client/modules/MPDControl.py", line 5, in
import mpd
ImportError: No module named mpd
WARNING:client.brain:Skipped module 'News' due to an error.
Traceback (most recent call last):
File "/home/pi/jasper/client/brain.py", line 43, in get_modules
mod = loader.load_module(name)
File "/usr/lib/python2.7/pkgutil.py", line 246, in load_module
mod = imp.load_module(fullname, self.file, self.filename, self.etc)
File "/home/pi/jasper/client/modules/News.py", line 5, in
from semantic.numbers import NumberService
ImportError: No module named semantic.numbers
WARNING:client.brain:Skipped module 'Notifications' due to an error.
Traceback (most recent call last):
File "/home/pi/jasper/client/brain.py", line 43, in get_modules
mod = loader.load_module(name)
File "/usr/lib/python2.7/pkgutil.py", line 246, in load_module
mod = imp.load_module(fullname, self.file, self.filename, self.etc)
File "/home/pi/jasper/client/modules/Notifications.py", line 3, in
import facebook
ImportError: No module named facebook
WARNING:client.brain:Skipped module 'Time' due to an error.
Traceback (most recent call last):
File "/home/pi/jasper/client/brain.py", line 43, in get_modules
mod = loader.load_module(name)
File "/usr/lib/python2.7/pkgutil.py", line 246, in load_module
mod = imp.load_module(fullname, self.file, self.filename, self.etc)
File "/home/pi/jasper/client/modules/Time.py", line 5, in
from semantic.dates import DateService
ImportError: No module named semantic.dates
WARNING:client.brain:Skipped module 'Weather' due to an error.
Traceback (most recent call last):
File "/home/pi/jasper/client/brain.py", line 43, in get_modules
mod = loader.load_module(name)
File "/usr/lib/python2.7/pkgutil.py", line 246, in load_module
mod = imp.load_module(fullname, self.file, self.filename, self.etc)
File "/home/pi/jasper/client/modules/Weather.py", line 8, in
import bs4
ImportError: No module named bs4
Traceback (most recent call last):
File "jasper.py", line 151, in
app.run()
File "jasper.py", line 121, in run
conversation.handleForever()
File "/home/pi/jasper/client/conversation.py", line 31, in handleForever
threshold, transcribed = self.mic.passiveListen(self.persona)
File "/home/pi/jasper/client/mic.py", line 179, in passiveListen
transcribed = self.passive_stt_engine.transcribe(f)
File "/home/pi/jasper/client/stt.py", line 594, in transcribe
r.raise_for_status()
File "/usr/lib/python2.7/dist-packages/requests/models.py", line 893, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 400 Client Error: Bad Request for url: https://api.wit.ai/speech?v=20150101
`
If anyone know how to fix or get rid of these errors, I would greatly appreciate knowing how. Also, when I say Jasper, it recognises what im saying but it doesn't make any noises or sounds. Also the last part looks important.

By the way, I installed this from scratch on Raspbian Stretch, the newest version of Raspbian, and I used this tutorial for the install:
http://www.knight-of-pi.org/raspberry-pi-3-installing-jasper-with-wit-ai-for-voice-recognition/

Just installed JASPER from scratch like you from the official documentation facing with the same or similar issues. Will keep you up to date if I can find a solution.

Im in the same situation. I think the bad request has to do with the connection between Jasper and witai. I also get a authentication problem when i try to connect, but my access-token is 100% correct. Not sure if you need to write it down as 'YOURKEY' with the apostrophe. Will update if i find a solution.

Okey guys these are the steps that fixed my problem:

run ~/jasper-client/jasper.py --debug  (you get a better view what the problem is)
use lsusb to see what devices are connected.
use aplay --list-devices to see what your output card is. Mine hdmi audio card is 0
in sudo nano /usr/share/alsa/alsa.conf
old
defaults.ctl.card 0
defaults.pcm.card 0
new
defaults.ctl.card 0
defaults.pcm.card 1
last steps are from: https://groups.google.com/forum/#!msg/jasper-support-forum/vL15KtTC32Q/R8_g32k7BgAJ;context-place=msg/jasper-support-forum/p__QGD3isMQ/PHxwc6hbAQAJ

"1. Enter "cd /home/pi/jasper-client/client"
2. Then enter "sudo nano tts.py"
3. Go down to where it says "cmd = ['aplay', ' -D', 'plughw:1,0', str(filename)]"
4. Change the part that says 'plughw:1,0' to 'plughw:0,0'
5. Enter "sudo reboot"
6. Start Jasper by typing "/home/pi/jasper-client/jasper.py""
This fixed all my issues. Been searching for days now but got it finally working. If you have questions, i will try to help.

Didn't try it. I formatted the disk and bought Echo :-P


chore: Update indirect dependency to knative.dev/serving v0.37.5

Motivation
Address https://github.com/kserve/modelmesh-serving/security/dependabot/11
Modifications
Override/replace indirect dependency to knative.dev/serving v0.37.5

Which has fix https://github.com/knative/serving/pull/14523:
See https://github.com/knative/serving/tree/v0.37.5/pkg/autoscaler/metrics

Problems with using `knative.dev/serving v0.39.0`
The Mitigation steps for the Security Vulnerability report suggest updating to knative.dev/serving v0.39.0.
However this forces an upgrade of several other direct/indirect dependencies causing incompatibilities:

with this upgrade, also k8s.io/api and k8s.io/client-go are upgraded to v0.27.+, but this causes compilation errors:# sigs.k8s.io/controller-runtime/pkg/cache
/root/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.14.6/pkg/cache/multi_namespace_cache.go:308:9:
cannot use handles (variable of type map[string]"k8s.io/client-go/tools/cache".ResourceEventHandlerRegistration)
as "k8s.io/client-go/tools/cache".ResourceEventHandlerRegistration value in return statement:
map[string]"k8s.io/client-go/tools/cache".ResourceEventHandlerRegistration
does not implement "k8s.io/client-go/tools/cache".ResourceEventHandlerRegistration (missing method HasSynced)

now controller-runtime v0.15.0 onward supports HasSynced:

https://github.com/kubernetes-sigs/controller-runtime/pull/2223

but we can't upgrade to controller-runtime v0.15.0 without breaking the KServe (0.11.2) API integrationcould not import github.com/kserve/kserve/pkg/apis/serving/v1alpha1 (-: # github.com/kserve/kserve/pkg/apis/serving/v1alpha1
/root/go/pkg/mod/github.com/kserve/kserve@v0.11.2/pkg/apis/serving/v1alpha1/inference_graph_validation.go:61:27: cannot use &InferenceGraph{} (value of type *InferenceGraph) as admission.Validator value in variable declaration: *InferenceGraph does not implement admission.Validator (wrong type for method ValidateCreate)
                have ValidateCreate() error
                want ValidateCreate() (admission.Warnings, error)
/root/go/pkg/mod/github.com/kserve/kserve@v0.11.2/pkg/apis/serving/v1alpha1/trainedmodel_webhook.go:51:27: cannot use &TrainedModel{} (value of type *TrainedModel) as admission.Validator value in variable declaration: *TrainedModel does not implement admission.Validator (wrong type for method ValidateCreate)
                have ValidateCreate() error
                want ValidateCreate() (admission.Warnings, error)) (typecheck)
        "github.com/kserve/kserve/pkg/apis/serving/v1alpha1"

so we need to pin "down" k8s.io/api and k8s.io/client-go below v0.27.0 until https://github.com/kubernetes-sigs/controller-runtime/issues/2302 is addressed.  k8s.io/api => k8s.io/api v0.26.4
  k8s.io/client-go => k8s.io/client-go v0.26.4
  k8s.io/code-generator => k8s.io/code-generator v0.26.4

that downgrade however would re-introduce another vulnerability we previously mitigated  // Fixes github.com/elazarl/goproxy Denial of Service (DoS)
  // This dependency was removed from apimachinery 0.27.0
  // remove after upgrade to controller-runtime 0.15.x or apimachinery to 0.27.x
  k8s.io/apimachinery => k8s.io/apimachinery v0.27.0

once we upgrade to KServe v0.12.0 along with Go 1.21 we should be able to upgrade to controller-runtime
to v0.15.0 and things should get a bit less messy

@spolti

Thanks @spolti -- took quite a bit of finagling to get this update to work. Should get easier once we moved to Go 1.21

Thanks @spolti for several rounds of reviews! 🙏🏻