'unregistered registration token' in FCM after utilizing window.FirebasePlugin.getToken() on iOS 12

Hello!
Currently I am testing our application on iOS 12, and utilizing phone number verification. Signing in on an iOS 11 device using phone number and gathering a token there from the getToken() function seems to work fine, but deploying the app on iOS 12 and signing in to the same account using phone auth (on a different device) is resulting in an 'unregistered registration token' error on FCM when I am attempting to send a push notification to the device.
Mind you, I have not signed out of the other device, but I would assume that when I call the getToken() function, it would provide me with a registered Token for this device that I can push notifications to without needing to sign out of the previous device.
Please let me know if I am going about this in the wrong way here or if anyone else is seeing this issue besides me!
My setup is:
XCode 10.0 Beta 6
iOS 12 Beta 11
Cordova 8.0.0
cordova-ios 4.5.5
cordova-plugin-firebase 1.0.5
Edit: After upgrading to cordova-plugin-firebase 1.1.3, it looks like the Firebase plugin isn't initializing at all, with the following console output:
2018-09-04 12:31:51.311681-0400 CabTreks[4353:1050632] Apache Cordova native platform version 4.5.5 is starting.
2018-09-04 12:31:51.311747-0400 CabTreks[4353:1050632] Multi-tasking -> Device: YES, App: YES
2018-09-04 12:31:51.316034-0400 CabTreks[4353:1050632]
2018-09-04 12:31:51.331700-0400 CabTreks[4353:1050632] Using UIWebView
2018-09-04 12:31:51.333396-0400 CabTreks[4353:1050632] [CDVTimer][console] 0.046968ms
2018-09-04 12:31:51.333489-0400 CabTreks[4353:1050632] [CDVTimer][handleopenurl] 0.059962ms
2018-09-04 12:31:51.334485-0400 CabTreks[4353:1050632] [CDVTimer][intentandnavigationfilter] 0.975966ms
2018-09-04 12:31:51.334539-0400 CabTreks[4353:1050632] [CDVTimer][gesturehandler] 0.033021ms
2018-09-04 12:31:51.334678-0400 CabTreks[4353:1050632] [CDVTimer][camerapreview] 0.119925ms
2018-09-04 12:31:51.334831-0400 CabTreks[4353:1050632] [CDVTimer][keyboard] 0.123978ms
2018-09-04 12:31:51.338787-0400 CabTreks[4353:1050632] [CDVTimer][backgroundgeolocation] 3.934979ms
2018-09-04 12:31:51:337 CabTreks[4353:1050632] LocationManager iOS9 detected
2018-09-04 12:31:51.343765-0400 CabTreks[4353:1050632] [CDVTimer][splashscreen] 4.943967ms
2018-09-04 12:31:51.343897-0400 CabTreks[4353:1050632] Starting Firebase plugin
2018-09-04 12:31:51.343989-0400 CabTreks[4353:1050632] [CDVTimer][firebaseplugin] 0.180006ms
2018-09-04 12:31:51.344008-0400 CabTreks[4353:1050632] [CDVTimer][TotalPluginStartup] 10.707021ms
2018-09-04 12:31:51.347579-0400 CabTreks[4353:1050701] 4.13.0 - [Firebase/Core][I-COR000003] The default Firebase app has not yet been configured. Add `[FIRApp configure];` (`FirebaseApp.configure()` in Swift) to your application initialization. Read more: https://goo.gl/ctyzm8.
2018-09-04 12:31:51.353747-0400 CabTreks[4353:1050713] 4.13.0 - [Firebase/Analytics][I-ACS023007] Firebase Analytics v.40200000 started
2018-09-04 12:31:51.354140-0400 CabTreks[4353:1050713] 4.13.0 - [Firebase/Analytics][I-ACS023008] To enable debug logging set the following application argument: -FIRAnalyticsDebugEnabled (see http://goo.gl/RfcP7r)
2018-09-04 12:31:51.434865-0400 CabTreks[4353:1050727] 4.13.0 - [Firebase/Messaging][I-FCM001000] FIRMessaging Remote Notifications proxy enabled, will swizzle remote notification receiver handlers. If you'd prefer to manually integrate Firebase Messaging, add "FirebaseAppDelegateProxyEnabled" to your Info.plist, and set it to NO. Follow the instructions at:
https://firebase.google.com/docs/cloud-messaging/ios/client#method_swizzling_in_firebase_messaging
to ensure proper integration.
2018-09-04 12:31:51.440548-0400 CabTreks[4353:1050721] 4.13.0 - [Firebase/Messaging][I-FCM002023] The object <AppDelegate: 0x280178d00> does not respond to -messaging:didReceiveRegistrationToken:, nor -messaging:didRefreshRegistrationToken:. Please implement -messaging:didReceiveRegistrationToken: to be provided with an FCM token.
2018-09-04 12:31:51.473003-0400 CabTreks[4353:1050721] Metal GPU Frame Capture Enabled
2018-09-04 12:31:51.476979-0400 CabTreks[4353:1050721] Metal API Validation Enabled
2018-09-04 12:31:51.575377-0400 CabTreks[4353:1050715] LocationManager didChangeAuthorizationStatus 0
2018-09-04 12:31:51:575 CabTreks[4353:1050632] LocationManager didChangeAuthorizationStatus 0
2018-09-04 12:31:51.658248-0400 CabTreks[4353:1050632] Resetting plugins due to page load.
2018-09-04 12:31:51.959415-0400 CabTreks[4353:1050632] Connected to FCM.
2018-09-04 12:31:51.964113-0400 CabTreks[4353:1050632] InstanceID token: [omitted for GitHub]
2018-09-04 12:31:52.066527-0400 CabTreks[4353:1050632] Finished load of: file:///var/containers/Bundle/Application/5133C091-5951-430A-A055-584B43158E16/CabTreks.app/www/index.html

Cheers

After upgrading to 1.1.3, I was able to use the window.FirebasePlugin.initFirebase() to get things working and call the getToken() function, but one key indicator that might be a red flag here, is that when authing my user initially, and asking for permission to send push notifications, I am seeing the following:
2018-09-05 19:44:33.061417-0400 CabTreks[6021:1518593] 4.13.0 - [Firebase/InstanceID][I-IID003014] Error while reading embedded mobileprovision Error Domain=NSCocoaErrorDomain Code=260 "The file “embedded.mobileprovision” couldn’t be opened because there is no such file." UserInfo={NSFilePath=/var/containers/Bundle/Application/C70FA4FD-88C4-4B7C-B64D-888E95A7DFDE/CabTreks.app/embedded.mobileprovision, NSUnderlyingError=0x283a39710 {Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"}}```

Super interesting...


Example on the front page doesn't work

import gpu

MAX    = 1000  # maximum Mandelbrot iterations
N      = 4096  # width and height of image
pixels = [0 for _ in range(N * N)]

def scale(x, a, b):
    return a + (x/N)*(b - a)

@gpu.kernel
def mandelbrot(pixels):
    idx = (gpu.block.x * gpu.block.dim.x) + gpu.thread.x
    i, j = divmod(idx, N)
    c = complex(scale(j, -2.00, 0.47), scale(i, -1.12, 1.12))
    z = 0j
    iteration = 0

    while abs(z) <= 2 and iteration < MAX:
        z = z**2 + c
        iteration += 1

    pixels[idx] = int(255 * iteration/MAX)

mandelbrot(pixels, grid=(N*N)//1024, block=1024)

I'm running:
codon build example.py
The result is:
/usr/bin/ld: example.o: in function `std.gpu.Memory._alloc:0[int,int].268':
/home/user/.codon/lib/codon/stdlib/gpu.codon:40: undefined reference to `seq_nvptx_device_alloc'
/usr/bin/ld: example.o: in function `std.gpu.Memory[int]:std.gpu.Memory._write:0[std.gpu.Memory[int],Ptr[int],int].301':
/home/user/.codon/lib/codon/stdlib/gpu.codon:48: undefined reference to `seq_nvptx_memcpy_h2d'
/usr/bin/ld: example.o: in function `std.gpu.Memory._alloc:0[int,Tuple.N2[int,Array[int]]].316':
/home/user/.codon/lib/codon/stdlib/gpu.codon:40: undefined reference to `seq_nvptx_device_alloc'
/usr/bin/ld: example.o: in function `std.gpu.Memory[Tuple.N2[int,Array[int]]]:std.gpu.Memory._write:0[std.gpu.Memory[Tuple.N2[int,Array[int]]],Ptr[Tuple.N2[int,Array[int]]],int].320':
/home/user/.codon/lib/codon/stdlib/gpu.codon:48: undefined reference to `seq_nvptx_memcpy_h2d'
/usr/bin/ld: example.o: in function `std.gpu.Memory[Tuple.N2[int,Array[int]]]:std.gpu.Memory._read:0[std.gpu.Memory[Tuple.N2[int,Array[int]]],Ptr[Tuple.N2[int,Array[int]]],int].554':
/home/user/.codon/lib/codon/stdlib/gpu.codon:44: undefined reference to `seq_nvptx_memcpy_d2h'
/usr/bin/ld: example.o: in function `std.gpu.Memory[int]:std.gpu.Memory._read:0[std.gpu.Memory[int],Ptr[int],int].563':
/home/user/.codon/lib/codon/stdlib/gpu.codon:44: undefined reference to `seq_nvptx_memcpy_d2h'
/usr/bin/ld: example.o: in function `std.gpu.Memory[byte]:std.gpu.Memory._free:0[std.gpu.Memory[byte]].594':
/home/user/.codon/lib/codon/stdlib/gpu.codon:52: undefined reference to `seq_nvptx_device_free'
/usr/bin/ld: example.o: in function `std.gpu.kernel:0.wrapper:0[Tuple.N1[std.internal.types.ptr.List[int]],int,int,Partial.N0.mandelbrot:0[T1][mandelbrot:0,Tuple.N0,KwTuple.N0]].598':
/home/user/.codon/lib/codon/stdlib/gpu.codon:282: undefined reference to `seq_nvptx_function'
/usr/bin/ld: /home/user/.codon/lib/codon/stdlib/gpu.codon:286: undefined reference to `seq_nvptx_invoke'
/usr/bin/ld: example.o: in function `main':
example.py:(.text+0x7cc1): undefined reference to `seq_nvptx_load_module'
collect2: error: ld returned 1 exit status

I found that .codon/lib/codon/stdlib/gpu.codon contains these symbols, but it's not clear how to link it. Help doesn't have an obvious option.
So it might be just a usability/discoverability bug. OTOH import gpu might add some instruction to link the right thing.

Hi @olegklimov -- the pre-built binaries currently don't have the GPU backend enabled (mainly due to dependency issues with CUDA -- we plan to update this soon), so you would have to build Codon from source to enable the GPU backend. Please see https://docs.exaloop.io/codon/advanced/build for instructions (the relevant CMake option is -DCODON_GPU=ON), and let me know if you run into any problems.

Aha thank you, clear now. I think a fix for this is to mention "you need to rebuild with cuda support" on the front page.

Duplicate of #193, continuing there.


Media Queries Ranges example

Example doesn't correspond to range media query, what about something like:
@media (width > 30em) and (width <= 48em) {}

Thank you so much for reporting this, @florianbouvot. I’ve updated the example make it right:
https://jonathantneal.github.io/css-db/#mediaqueries-mq-ranges


Enable Powertools logging for imported libraries

Is your feature request related to a problem? Please describe.
It would be nice to easily modify the logger of imported libraries to use JSON logging from Powertools as well.
Describe the solution you'd like
Something like discussed in this discussion: https://github.com/awslabs/aws-lambda-powertools-python/discussions/799
Maybe something like this?
logger = Logger(...., level="INFO", deny_list=["dont-log-this-library", "and-not-this"])

Describe alternatives you've considered
See the linked discussion.
Thank you!

hey @FredrikMeyer thanks for creating the feature request! I'm copying the high level items shared in the discussion on how to make this happen - We can tackle it after the upcoming release this week.

For this feature, it'd need to be slightly more involved. From the top of my head, it would need:

Add a new method in Logger to propagate its configuration to any loggers available, except the ones in the deny list
Add functional tests
Add docs explaining how to use it (we can do that)

Unsure on the UX yet, needs some iteration, but something like this:
from aws_lambda_powertools import Logger

logger = Logger()

logger.clone_config_to_all_loggers(level=…, deny_list=[“logger_named_X”, “botocore”])

This would copy the existing logger logging level & handler/formatter to all registered loggers except root logger (log duplication), and for those in the deny list.
Another area I'm unsure is when using log sampling feature - dynamically set log level to DEBUG on a % of function invocation - do we want to also propagate a DEBUG level to other loggers? I think the answer is no as it could bring too much noise vs actual application per se, as it's intrusive (implicit vs explicit).

looks good, but I would suggest a standalone function:
def configure_standard_loggers(source_logger: Logger, level=None, includes=None, excludes=None)
from aws_lambda_powertools import Logger

logger = Logger()
configure_standard_loggers(logger) # clone for all loggers with same level as logger
configure_standard_loggers(logger, level=…, includes=[“logger_named_X”]) # only logger_named_X
configure_standard_loggers(level=…, excludes=[“botocore”]) # all except botocore

Thanks @houbie that's what I'm leaning towards the most. One minor modification to make it less confusing is to support exclude only instead of both include and exclude. Naming is still the hardest :D

Updating here to let you know that @mploski is taking this opportunity to get his first contribution - we'll let you know which release this will be part once he's ready... but you can also take a peek at the PR code for your own use

Thanks for the update @heitorlessa  👍

@FredrikMeyer PR has been merged into develop branch and this will be available with next release. Here is PR link if you would like to look at this: https://github.com/awslabs/aws-lambda-powertools-python/pull/927

Thank you very much for the update. Appreciated!

This is now released as part of 1.24.1 ;) https://github.com/awslabs/aws-lambda-powertools-python/releases/tag/v1.24.1
Lambda Layers will be published later today


Fix notebook table rendering with multiple code cells (#12363)

This PR fixes https://github.com/microsoft/azuredatastudio/issues/12275
PR in main: https://github.com/microsoft/azuredatastudio/pull/12363

Pull Request Test Coverage Report for Build 259729037

0 of 20 (0.0%)  changed or added relevant lines in 1 file are covered.
2 unchanged lines in 1 file lost coverage.
Overall coverage increased (+0.02%) to 38.957%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

src/sql/workbench/services/notebook/browser/sql/sqlSessionManager.ts
0
20
0.0%

Files with Coverage Reduction
New Missed Lines
%

src/sql/workbench/services/notebook/browser/sql/sqlSessionManager.ts
2
3.98%

Totals

Change from base Build 258214192:
0.02%

Covered Lines:
19148

Relevant Lines:
44851

💛  - Coveralls


Adds signer:GetSigningProfile to MemberInfrastructureAccess

A reference to the issue / Description of it
Additional permissions required as per issue that's impacting Nick Buckingham and his lambda deployment.
How does this PR fix the problem?
{Please write here}
How has this been tested?
Please describe the tests that you ran and provide instructions to reproduce.
{Please write here}
Deployment Plan / Instructions
Will this deployment impact the platform and / or services on it?
{Please write here}
Checklist (check x in [ ] of list items)

[x] I have performed a self-review of my own code
[x] All checks have passed
[ ] I have made corresponding changes to the documentation
[ ] Plan and discussed how it should be deployed to PROD (If needed)

Additional comments (if any)
{Please write here}

Applied to Sprinkler.


Consider merging the sidebar configuration location to be alongside the main menu navigation

Proposal: Configure all sidebars in the hyde configuration file to keep related options together
 'menus' => [
     NavigationMenu::configure('main')
         ->doStuff()

     NavigationMenu::configure('docs')
         ->doStuff()

     NavigationMenu::create('footer')
          ->defineCustomStuff()
 ],

See https://github.com/hydephp/develop/pull/1827
See https://github.com/hydephp/develop/pull/1818

From: https://github.com/hydephp/develop/pull/1538#issuecomment-1936359331

Wondering if this API could be used in the config to initialize menus. It's kinda Filamenty. Since we don't cache configs (except for in the standalone which uses a caching hack) it should not be a problem. Worst case, that can be serialized in our configuration loader.
  'menus' => [
       NavigationMenu::create('main')
           ->withPageTypes('all', except: [DocumentationPage::class])
           ->withoutPages('404')
           ->withLabels([
               'home' => 'Start',
               'about' => 'About Us',
           ])
           ->withPriorities([
               'home' => 100,
               'about' => 200,
           ]),

       NavigationMenu::create('docs')
           ->withPageTypes(DocumentationPage::class)
           ->withLabels([
               'readme' => 'Readme',
               'installation' => 'Installation',
               'getting-started' => 'Getting Started',
           ])
           ->withPriorities([
               'readme' => 100,
               'installation' => 200,
               'getting-started' => 300,
           ])
           ->withoutPages([
               '404',
               'changelog'
           ]),
   ],

They can be accessed like this:
$main = NavigationMenu::get('main'); // Main menu
$docs = NavigationMenu::get('docs'); // Sidebar
$foo = NavigationMenu::get('foo'); // Throws with message stating menu must be specified in config

We could of course add the defaults to the base classes, so only overwrites would be needed.
NavigationMenu::main()
NavigationMenu::docs()
NavigationMenu::create() // For custom ones

And users could easily add their own navigation menus.
    NavigationMenu::create('footer')
        ->withRoutes(routeKeys: [
            'privacy-policy',
            'terms-of-service',
        ])
        ->withNavItems([
            NavItem::create(...['some data']),
            NavItem::create(...['some data']),
        ])
        ->withLinks([
            'External Link' => 'https://example.com',
        ])

        // Or shorthand
        ->with(routeKeys: [
            'privacy-policy',
            'terms-of-service',
        ], links: [
            'External Link' => 'https://example.com',
        ]),

We could also have subdirectory configuration on a per menu basis
    NavigationMenu::create('docs')
        ->useSubdirectoriesAs('dropdown')

The creator is interesting, but I'm not sure if it works having the sidebar here as many of it's features are so different, so we'd almost want a dedicated builder, leading to a ton of complexity.
Not applicable to main menus:
// The title in the sidebar header
'header' => env('SITE_NAME', 'HydePHP').' Docs',

// When using a grouped sidebar, should the groups be collapsible?
'collapsible' => true,

// A string of Markdown to show in the footer. Set to `false` to disable.
'footer' => '[Back to home page](../)',

'table_of_contents' => ...


Future data provided for California in timeseries.csv

Dear friends in Corona Data Scraper groups, thank you so much for providing such a source. I am using your data (almost the timeseries.zip) for covid-19 related research. I find there is future data provided for California in the file which confuse me. For example, today is 07-30, but there are case numbers for California 07-31. Is there any mismatches between the cases/deaths/tested and the dates?

Hi there @jingjtang , thanks for the issue!  We have recently converted to a new report and this is a new bug.  I'm not sure yet where it comes from, but I'm going to try to solve it now as a few people have noted it.  Thank you! jz

Hm, I just downloaded timeseries-byLocation.json from https://covidatlas.com/data (which links to a file on s3, https://liproduction-reportsbucket-bhk8fnhv1s76.s3-us-west-1.amazonaws.com/v1/latest/timeseries-byLocation.json), and its last date appears to be
      "2020-07-13": {
        "cases": 317167,
        "deaths": 7017,
        "tested": 3920501,
        "hospitalized": 3591,
        "recovered": 66625,
        "icu": 532,
        "growthFactor": 1
      }

timeseries.csv linked on that same page does have the date you mentioned though:
 MacBook-Air:Downloads jeff$ grep iso1:us#iso2:us-ca, timeseries.csv | tail -n 2
iso1:us#iso2:us-ca,california-us,"California, US",state,,,California,United States,37.25,-119.61,39512223,,America/Los_Angeles,485300,8901,117835,,5257026,4048,,,632,,2020-07-30
iso1:us#iso2:us-ca,california-us,"California, US",state,,,California,United States,37.25,-119.61,39512223,,America/Los_Angeles,485300,8901,117835,,5257026,4048,,,632,,2020-07-31

There's a few things to diagnose here, checking.

baseData.json, which is the base data source for all reports, has future data:
      "2020-07-31": {
        "cases": 485300,
        "deaths": 8901,
        "tested": 5257026,
        "hospitalized": 4048,
        "recovered": 117835,
        "icu": 632,
        "growthFactor": 1
      }

The dateSources in that report shows
      "2020-07-30..2020-07-31": "us-ca-mercury-news"

Checking that source to see what's up.

merc news has the following source: https://docs.google.com/spreadsheets/d/1CwZA4RPNf_hUrwzNLyGGNHRlh1cwl8vDHwIoae51Hac/gviz/tq?tqx=out:csv&sheet=timeseries
But that source currently has the latest date 07-29:
"County","Date","URL","Created","Last updated","Submitted By","Cases Total","Cases New Reported","Cases New Calculated","Cases Percent","Deaths Total","Deaths New","Tests Total","Tests New","Testing Turnaround","Pending Tests Current","Negative Tests Total","Negative Tests New","Positive Tests Total","Positive Tests New","Inconclusive Tests Total","Inconclusive Tests New","Recovered Total","Recovered New","Hospital Confirmed Total","Hospital Confirmed New","Hospital Confirmed Current","ICU Total","ICU New","ICU Current","Ventilator Total","Ventilator New","Ventilator Current","Symptomatic No Hospital Total","Symptomatic No Hospital New","Asymptomatic Total","Asymptomatic New","Hospital Suspected Total","Hospital Suspected New","Hospital Suspected Current","7-day new case average","7-day new death average","county population","14-day new cases","14-day new deaths","new daily testing (total or pos+neg)","total tests (total or calculated pos+neg)","7-day positivity rate","test rate 7-day average"
"Alameda","2020-07-29","http://www.acphd.org/2019-ncov.aspx","7/29/2020 12:44:12","7/29/2020 16:13:12","HR","10,773","","140","","181","0","","","","","","","","","","","","","","","","","","","","","","","","","","","","","161","1.428571429","1,685,886","13.6130201","27","0","0","","0.0000000"
"Alpine","2020-07-29","http://alpinecountyca.gov/Index.aspx?NID=516","7/29/2020 12:44:12","7/22/2020 18:15:35","","2","","0","","0","0","","","","","","","","","","","2","0","","","","","","","","","","","","","","","","","0","0","1,117","8.952551477","0","0","0","","0.0000000"
"Amador","2020-07-29","https://www.amadorgov.org/services/covid-19/-fsiteid-1","7/29/2020 12:44:12","7/28/2020 18:12:22","","89","","0","2.26%","0","0","3932","0","","","","","","","","","60","0","13","","4","","","","","","","","","","","","","","3","0","38,531","10.64078275","0","0","0","8.63%","1.0307100"
"Butte","2020-07-29","https://infogram.com/1pe66wmyjnmvkrhm66x9362kp3al60r57ex","7/29/2020 12:44:12","7/29/2020 16:46:04","EW","883","","17","4.97%","7","0","17755","0","","","16889","0","883","17","","","709","17","","","5","","","","","","","","","","","","","","29","0.2857142857","217,769","20.48041732","3","0","0","13.05%","0.9938447"
"Calaveras","2020-07-29","https://covid19.calaverasgov.us/","7/29/2020 12:44:12","7/28/2020 18:33:55","","108","","0","","1","0","","","","","","","","","","","80","0","","","1","","","","","","","","","","","","","","2","0","44,289","7.451060083","1","0","0","-0.34%","1.6740693"
"Colusa","2020-07-29","http://www.countyofcolusa.org/771/COVID19","7/29/2020 12:44:12","7/29/2020 16:51:13","EW","304","","12","","3","1","","","","","1768","4","304","12","","","214","5","","","4","","","","","","","","","","","","","","9","0.1428571429","22,593","72.58885496","3","0.7081839508","304","24.60%","1.5934139"
"Contra Costa","2020-07-29","https://cchealth.org/coronavirus/","7/29/2020 12:44:12","7/29/2020 12:45:36","HR","7,714","","410","5.74%","109","1","134,411","4,031","","","","","","","","","","","","","105","","","","","","","","","","","","","","216","1","1,160,099","22.18776156","17","3.474703452","4031","9.10%","2.0471159"
"Del Norte","2020-07-29","https://dnco.maps.arcgis.com/apps/opsdashboard/index.html#/3dd5de4df5194963853f7f40e38a3a01","7/29/2020 12:44:12","7/29/2020 18:09:50","EW","88","","0","2.54%","0","0","3466","-525","","","","","","","","","","","2","","0","","","","","","","","","","","","","","1","0","27,558","9.797517962","0","-19.05072937","-525","11.25%","0.4147098"
"El Dorado","2020-07-29","https://www.edcgov.us/Government/hhsa/Pages/EDCCOVID-19-Cases.aspx","7/29/2020 12:44:12","7/29/2020 18:09:31","EW","589","24","10","3.34%","1","0","17644","131","","","17055","121","589","10","","","386","16","","","1","","","1","","","","","","","","","","","15","0","193,098","11.70390165","1","0.6784119981","131","8.85%","0.8611467"

These return no records: grep 2020-07-30 data.csv , grep 2020-07-31 data.csv .
I recently updated merc news, so will check the old implementation to see if it messes up the dates.

Old code did a bad move with the data.  e.g. running with the current data from the site, running scrape gives the following: 2020-07-30 is newer than last sample 2020-07-29.   Using last sample anyway.  So, merc news is getting set as 2020-07-30 date in the data, even though there's only 2020-07-29.  Still doesn't explain 2020-07-30, but is better.

Running npm run gen-reports only contains dates up to 07-30, nothing is being forward-dated.
It currently is Friday July 31 in a few areas of the world -- Tokyo, for example -- but honestly I'd be surprised if our main running timezone was ahead of us that much!  Will check prod log.

Checking prod data first.  eg below is check for 2020-07-29:

Have 07-29 data in table, 2020-07-30, and 2020-07-31 as well.  Not good.  Re-checking logs, couldn't see anything obvious though.

the 2020-07-31 data was updated 2020-07-30T12:38:47.347Z. in dynamodb.  That is still 07-30 though, can't see why there would be another date recorded.

I'm not sure what is happening in the code that is causing this, which doesn't fill me with confidence!  The only thought I have here is that the lambda doing the scraping is running in a different timezone, and so assigning a different date.  I can't see how it's in such an advanced timezone.  Unfortunately our logging is inadequate at the moment, so I can't see how this was set to the future date.
Regardless, a fix that I implemented recently should result in the data having the actual date specified in the data files.  I'll keep this issue open until we see the change in effect.
@jingjtang - I'll assign this to you as well to do the check in a couple of days.  I'll check too if I can, though I'm spread thin these days.  I'll try clearing out the 07-31 data points for mercury-news, though that's a slow operation. :-)
Thanks again @jingjtang for the issue.

I've also pushed #365 to staging and prod, which had the same forward-dating bug.  I believe that this will fix the issue.  It may take a couple of days for us to know.


Update dependencies to allow JSON  >= 1.8.3 and < 2.1

JSON gem 2.x is not supported in activesupport <IP_ADDRESS>, which restricts this
gem to being just used in >= Rails 5 apps, and JSON 1.8.3 still works as
intended with this gem.
Specs pass fine with 1.8.3, so unless there's a reason to not allow < 2.0 then
this PR allows the latest version of this gem to be used by more people.

That's funny... I just put this on my todo list.  Thanks for beating me to it.


package not compatible with Node 5

All put requests to HBase timeout. The zookeeper is communicative though.

Can you give us more information along with some example code? I just tried it with hbase 1.0.0, node v5.0.0 and I didn't have a single problem with any Put that I've tried.

right, sorry. we're on HBase 0.98

Sorry.. I'm still not able to reproduce this with given information. Trying hbase v0.98.15:
test script:
  client = hbase({
    zookeeperHosts: ['localhost'],
    zookeeperRoot: '/hbase',
    callTimeout: 30000
  });

  client.on('error', function(err) {
    return console.log(err);
  });

  put = new hbase.Put('4');
  put.add('cf1', 'col', 'val');

  client.put('node-hbase-test-table', put, function(err, res) {
    console.log(arguments);
  });

scan before:
hbase(main):005:0> scan 'node-hbase-test-table'
ROW                       COLUMN+CELL
0 row(s) in 0.0120 seconds

shell:
13:50:15 ~/sbks/hbase-rpc-client [master]$ node -v
v5.0.0
13:50:21 ~/sbks/hbase-rpc-client [master]$ DEBUG=* node test.js
  hbase-client put on table: node-hbase-test-table put: {"row":"4","familyMap":{"cf1":[{"qualifier":"col","value":"val","timestamp":{"low":-1,"high":2147483647,"unsigned":false}}]}} +0ms
  hbase-region locateRegion table: node-hbase-test-table row: 4 +3ms
  hbase-region getRegionConnection +24ms wision:33108
  hbase-region getRegionConnection connecting to wision:33108 +1ms
  hbase-connection connecting to connection(wision:33108) id: 0 +0ms
  hbase-connection connected to connection(wision:33108) id: 0 +2ms
  hbase-region wision:33108 connected, total 1 connections +4ms
  zk zookeeper start done, got new root wision:33108, old undefined:undefined +1ms
  hbase-region locateRegionInMeta table: node-hbase-test-table row: 4 +0ms
  hbase-client prefetchRegionCache for table: node-hbase-test-table +1ms
  hbase-region locateRegion table: hbase:meta row: node-hbase-test-table,,00000000000000 +2ms
  hbase-region locateRegionInMeta table: hbase:meta row: node-hbase-test-table,,00000000000000 +0ms
  hbase-region getRegionConnection +0ms wision:33108
  hbase-region getRegionConnection from cache (servers: 1), wision:33108 +0ms
  hbase-client scan on: hbase:meta row: 1 region: hbase:meta,,1 startRow: node-hbase-test-table,,00000000000000 stopRow: node-hbase-test-tablf,,00000000000000 +1ms
  hbase-call operation 1 (Scan) completed. Took: 6ms +9ms
  hbase-client scan on: hbase:meta row: 2 region: hbase:meta,,1 startRow: node-hbase-test-table,,00000000000000 stopRow: node-hbase-test-tablf,,00000000000000 +3ms
  hbase-call operation 2 (Scan) completed. Took: 37ms +39ms
  hbase-region Trying to find cached regionLocation for table node-hbase-test-table +2ms
  hbase-region Found cached regionLocation node-hbase-test-table,,1447591787472.30d5cf8cbd6ecf551b231557090f3652. +0ms
  hbase-region getRegionConnection +0ms wision:33108
  hbase-region getRegionConnection from cache (servers: 1), wision:33108 +1ms
  hbase-call operation 3 (Scan) completed. Took: 38ms +37ms
  hbase-call operation 4 (Mutate) completed. Took: 37ms +1ms
{ '0': null, '1': { result: null, processed: true } }

scan after:
hbase(main):006:0> scan 'node-hbase-test-table'
ROW                       COLUMN+CELL
 4                        column=cf1:col, timestamp=1447591830108, value=val
1 row(s) in 0.0140 seconds

Can you please try getting from a distant host?
On Sunday, 15 November 2015, Martin Cizek<EMAIL_ADDRESS>wrote:

Sorry.. I'm still not able to reproduce this with given information.
Trying hbase v0.98.15:
test script:
client = hbase({
zookeeperHosts: ['localhost'],
zookeeperRoot: '/hbase',
callTimeout: 30000
});
client.on('error', function(err) {
return console.log(err);
});
put = new hbase.Put('4');
put.add('cf1', 'col', 'val');
client.put('node-hbase-test-table', put, function(err, res) {
console.log(arguments);
});
scan before:
hbase(main):005:0> scan 'node-hbase-test-table'
ROW                       COLUMN+CELL
0 row(s) in 0.0120 seconds
shell:
13:50:15 ~/sbks/hbase-rpc-client [master]$ node -v
v5.0.0
13:50:21 ~/sbks/hbase-rpc-client [master]$ DEBUG=* node test.js
hbase-client put on table: node-hbase-test-table put: {"row":"4","familyMap":{"cf1":[{"qualifier":"col","value":"val","timestamp":{"low":-1,"high":2147483647,"unsigned":false}}]}} +0ms
hbase-region locateRegion table: node-hbase-test-table row: 4 +3ms
hbase-region getRegionConnection +24ms wision:33108
hbase-region getRegionConnection connecting to wision:33108 +1ms
hbase-connection connecting to connection(wision:33108) id: 0 +0ms
hbase-connection connected to connection(wision:33108) id: 0 +2ms
hbase-region wision:33108 connected, total 1 connections +4ms
zk zookeeper start done, got new root wision:33108, old undefined:undefined +1ms
hbase-region locateRegionInMeta table: node-hbase-test-table row: 4 +0ms
hbase-client prefetchRegionCache for table: node-hbase-test-table +1ms
hbase-region locateRegion table: hbase:meta row: node-hbase-test-table,,00000000000000 +2ms
hbase-region locateRegionInMeta table: hbase:meta row: node-hbase-test-table,,00000000000000 +0ms
hbase-region getRegionConnection +0ms wision:33108
hbase-region getRegionConnection from cache (servers: 1), wision:33108 +0ms
hbase-client scan on: hbase:meta row: 1 region: hbase:meta,,1 startRow: node-hbase-test-table,,00000000000000 stopRow: node-hbase-test-tablf,,00000000000000 +1ms
hbase-call operation 1 (Scan) completed. Took: 6ms +9ms
hbase-client scan on: hbase:meta row: 2 region: hbase:meta,,1 startRow: node-hbase-test-table,,00000000000000 stopRow: node-hbase-test-tablf,,00000000000000 +3ms
hbase-call operation 2 (Scan) completed. Took: 37ms +39ms
hbase-region Trying to find cached regionLocation for table node-hbase-test-table +2ms
hbase-region Found cached regionLocation node-hbase-test-table,,1447591787472.30d5cf8cbd6ecf551b231557090f3652. +0ms
hbase-region getRegionConnection +0ms wision:33108
hbase-region getRegionConnection from cache (servers: 1), wision:33108 +1ms
hbase-call operation 3 (Scan) completed. Took: 38ms +37ms
hbase-call operation 4 (Mutate) completed. Took: 37ms +1ms
{ '0': null, '1': { result: null, processed: true } }
scan after:
hbase(main):006:0> scan 'node-hbase-test-table'
ROW                       COLUMN+CELL
4                        column=cf1:col, timestamp=1447591830108, value=val
1 row(s) in 0.0140 seconds
—
Reply to this email directly or view it on GitHub
https://github.com/falsecz/hbase-rpc-client/issues/23#issuecomment-156809678
.

Tried the same script on our 0.98.12 cluster and it worked as well:
14:10:21 ~/sbks/hbase-rpc-client [master]$ DEBUG=* node test.js
  hbase-client put on table: node-hbase-test-table put: {"row":"4","familyMap":{"cf1":[{"qualifier":"col","value":"val","timestamp":{"low":-1,"high":2147483647,"unsigned":false}}]}} +0ms
  hbase-region locateRegion table: node-hbase-test-table row: 4 +3ms
  hbase-region getRegionConnection +5s c-hbase-c05.amazon.ccl:60020
  hbase-region getRegionConnection connecting to c-hbase-c05.amazon.ccl:60020 +5ms
  hbase-connection connecting to connection(c-hbase-c05.amazon.ccl:60020) id: 0 +2ms
  hbase-connection connected to connection(c-hbase-c05.amazon.ccl:60020) id: 0 +1s
  hbase-region c-hbase-c05.amazon.ccl:60020 connected, total 1 connections +4ms
  zk zookeeper start done, got new root c-hbase-c05.amazon.ccl:60020, old undefined:undefined +0ms
  hbase-region locateRegionInMeta table: node-hbase-test-table row: 4 +1ms
  hbase-client prefetchRegionCache for table: node-hbase-test-table +1ms
  hbase-region locateRegion table: hbase:meta row: node-hbase-test-table,,00000000000000 +1ms
  hbase-region locateRegionInMeta table: hbase:meta row: node-hbase-test-table,,00000000000000 +0ms
  hbase-region getRegionConnection +1ms c-hbase-c05.amazon.ccl:60020
  hbase-region getRegionConnection from cache (servers: 1), c-hbase-c05.amazon.ccl:60020 +0ms
  hbase-client scan on: hbase:meta row: 1 region: hbase:meta,,1 startRow: node-hbase-test-table,,00000000000000 stopRow: node-hbase-test-tablf,,00000000000000 +0ms
  hbase-call operation 1 (Scan) completed. Took: 3996ms +4s
  hbase-client scan on: hbase:meta row: 2 region: hbase:meta,,1 startRow: node-hbase-test-table,,00000000000000 stopRow: node-hbase-test-tablf,,00000000000000 +4ms
  hbase-call operation 2 (Scan) completed. Took: 9483ms +9s
  hbase-region Trying to find cached regionLocation for table node-hbase-test-table +2ms
  hbase-region Found cached regionLocation node-hbase-test-table,,1447592942512.a7ba6a1d999af8ed12a1ad77455a9704. +1ms
  hbase-region getRegionConnection +0ms c-hbase-c03.amazon.ccl:60020
  hbase-region getRegionConnection connecting to c-hbase-c03.amazon.ccl:60020 +0ms
  hbase-connection connecting to connection(c-hbase-c03.amazon.ccl:60020) id: 1 +0ms
  hbase-connection connected to connection(c-hbase-c03.amazon.ccl:60020) id: 1 +416ms
  hbase-region c-hbase-c03.amazon.ccl:60020 connected, total 2 connections +1ms
  hbase-call operation 3 (Scan) completed. Took: 633ms +215ms
  hbase-call operation 1 (Mutate) completed. Took: 4608ms +4s
{ '0': null, '1': { result: null, processed: true } }

@moshewe there could have been a problem with bytebuffer not being hbase-rpc-client dependency.. please try version 0.1.3 (or above) and if that doesn't help, please provide reproducible example.

OK, thanks!
On Wed, Nov 18, 2015 at 11:12 AM, Martin Cizek<EMAIL_ADDRESS>wrote:

@moshewe https://github.com/moshewe there could have been a problem
with bytebuffer not being hbase-rpc-client dependency.. please try version
0.1.3 (or above) and if that doesn't help, please provide reproducible
example.
—
Reply to this email directly or view it on GitHub
https://github.com/falsecz/hbase-rpc-client/issues/23#issuecomment-157651302
.


add reference to config.xml Ionic 2

Improvement:
Hello!
When I use another cordova plugin, their reference is set it automatically in the file config.xml. This no happen adding the instagram plugin:
cordova plugin add cordova-instagram-plugin
so, when i run the project in another machine for example, the instagram plugin never will be install because there is not any reference from config.xml file.
the line in config.xml file must be:
<plugin name="cordova-instagram-plugin" spec="~0.5.5" />
is this way correct?
am I doing something wrong?

If you run add this plugin in a project and want to share it on another machine (e.g. via git) you need to do the following:
cordova plugin add cordova-instagram-plugin --save

Thank u so much @vstirbu worked perfect!!


feat: optionally embed font into svg files

Fixes #2496, but creates quite large SVG files, because it doesn't make any attempt to skip embedding fonts/glyphs that are unused. This is fine for diagrams in remark slide decks (my current use-case), but I recommend using https://vecta.io/nano to minify for web use.
~This is based on top of #3646, purely because I want to have a public branch of excalidraw that I can use to draw diagrams for my presentations, without needing hacks like https://github.com/BTBurke/svg-embed-font/pull/10 and hating my life choices. I'm happy to rebase this when there are review comments/conflicts on the other PRs.~
This PR adds a couple of translation strings. I'm not sure what the process is for this.

Hi. Getting fonts embedded into Excalidraw would really be useful.  What's required for this oen to make it into the main branch?

Oh I don't have write access so my approval is not enough to merge 😅 I just hoped that another set of eyes verifying it might help speed it along

Just closing some old PRs. Nothing to see here.
I tend to use 3x scaled pngs with embedded scenes these days because they also work for github PRs.
Feel free to resurrect if this is a thing that is interesting to you.


drivers: opt3001: adding threshold interrupt.

This commit adds interrupt management on the opt300x sensors. The
only available interrupt is a lower/upper threshold, as defined in
the component datasheet.
Signed-off-by: GiulianoFranchetto<EMAIL_ADDRESS>

@GiulianoFranchetto - would have been nice to see this be merged. Do you have any bandwidth to address Maureen's concerns?

@cfriedt Hi. For now, I don't have any time to work on that PR.
For the second comment, the thresholds are defined in the datasheet to disable interrupts. No need to use device-tree for that


Add logging to new protocol code

Signed-off-by: Alexander Murmann<EMAIL_ADDRESS>Thank you for submitting a contribution to Apache Geode.
In order to streamline the review of the contribution we ask you
to ensure the following steps have been taken:
For all changes:

[x] Is there a JIRA ticket associated with this PR? Is it referenced in the commit message?
GEODE-3548

[x] Has your PR been rebased against the latest commit within the target branch (typically develop)?

[x] Is your initial contribution a single, squashed commit?

[x] Does gradlew build run cleanly?

[ ] Have you written or updated unit tests to verify your changes?
N/A

[ ] If adding new dependencies to the code, are these dependencies licensed in a way that is compatible for inclusion under ASF 2.0?
N/A

Note:
Please ensure that once the PR is submitted, you check travis-ci for build issues and
submit an update to your PR as soon as possible. If you need help, please send an
email to<EMAIL_ADDRESS>

I know that this is a VERY broad request.. but I think we should try and fulfill the following (from 12 Factor App development) https://12factor.net/logs
If our logging cannot fulfill this requirement then we need to address them.

@kohlmu-pivotal If my interpretation of the 12-factor app is correct (big IF right here) then this would mean that we should stop writing to a log file and instead write to stdout or stderr and something like fluentd would be concerned with writing those to a file. After some initial resistance I've come to very much like that approach and it works really well in cloud environments and is the way we should be doing it to best play with PCF. However, this comes down to using the correct log4j appender. That seems a little bit outside this story's scope though. I'll create a chore to investigate if customers can configure GF to properly log to stdout and run Gf as a proper 12-factor app.

@galen-pivotal @bschuchardt All your concerns that are addressable should now be addressed. Please take another look.
I am also making another PR after this to attempt to DRY up some of the exception handling in the operation handlers.


KAFKA-8304: Fix registration of Connect REST extensions

Jira
Currently, a REST extension can cause deadlock if it requests the list of connectors from its ConnectRestExtensionContext.clusterState() in its ConnectRestExtension.register(...) method. This is because the ConnectClusterState implementation is backed by a HerderProvider that, at that time, has no associated Herder instance, and since that Herder is given to the HerderProvider later by the same thread, deadlock occurs until the call to HerderProvider.get() made by the ConnectClusterStateImpl times out. At this point, startup fails and the Connect worker dies.
The changes here separate RestServer.start(...) into two separate methods. The first, RestServer.initializeServer(), starts the Jetty server and binds to a port, which ensure the accuracy of the RestServer.advertisedUrl() method that is used later on by both the ConnectStandalone and ConnectDistributed classes to determine the worker ID. The second, RestServer.initializeResources(Herder herder) actually creates the Connect REST resources (RootResource, ConnectorsResource, etc.) and registers all REST extensions.
Since these changes make HerderProvider obsolete and it is not part of any public API, that interface is also removed.
This approach ensures that the Connect REST interface is started only when all of its REST extensions have been successfully registered, which is important for security use cases where request filters are installed and parts of the Connect REST API are subject to authentication/authorization.
Between the call to RestServer.intializeServer() and RestServer.initializeResources(...), any requests made to the worker will result in a 404 response. This is slightly less desirable than the current behavior, which is to block on requests until the herder is up and running, but shouldn't be too much of an issue.
A new integration test is added that verifies that a call to ConnectRestExtensionContext.clusterState().connectors() succeeds. This test fails on the current trunk branch, and succeeds with the changes involved in this PR.
These changes should be backported through to 2.0.
Committer Checklist (excluded from commit message)

[ ] Verify design and implementation
[ ] Verify test coverage and CI build status
[ ] Verify documentation (including upgrade notes)

@wicknicks @mageshn this touches on code that you've both done non-trivial work on (integration test harness changes and REST extensions), I'd be grateful if you could take a look and let me know what you think :)

@C0urante: I'm guessing you want to backport this fix, what version do you think is most appropriate? I think we can go back all the way to 2.0. If so, let's add that to the description for the committer. Thanks!

@wicknicks thanks for the review. I've implemented many of your suggestions and left a comment on any that I'd like to discuss further before including here. Ready for the next round when you have time!

Thanks @wicknicks, I agree with your suggestions and have implemented them accordingly. Ready for the next round

Thanks @wicknicks, I've made the alteration you suggested and this is ready for the next round

Thanks @wicknicks!
@rhauch could you please take a look when you have a chance?


certificate

WKTools
Failed to load the diver. ErrorCode 0x800b010c Certificado explicitamente revogado por seu emissor.

OK

Me too!I  also meet this issue.

Me too!

I have update, Fix this error, tks

Thank you very much!
Your app is the best in its category.


Pull master into adbkeyboard

This updates the adbkeyboard branch (which works great for me BTW, thank you!!!) with the latest commits in the master branch, resolving conflicts as necessary. These include the options refactoring on the C side, passing parameters by name from C to Java, and using the Options object on the Java side.
Hope this helps :)

How to use this? I have compiled your branch and launched scrcpy with --use-adb-keyboard , but still cannot type Chinese  characters using IME (fcitx) on my ubuntu 20.04 , and there is no adbkeyboard option in Android's IME menu.

I've been waiting for this feature for a long long time! Thank you for your effort. Love you guys!

How to use this? I have compiled your branch and launched scrcpy with --use-adb-keyboard , but still cannot type Chinese characters using IME (fcitx) on my ubuntu 20.04 , and there is no adbkeyboard option in Android's IME menu.

This PR is a continuation of the work described here. adbkeyboard is a third-party app you have to install and enable as an input method on your Android device. See the linked thread for more information.

@CyberShadow Thanks! Now I can use this fork to type Chinese , but there is a  problem in this feature: I cannot type English using my IME. I'm using fcitx on ubuntu 20.04 .
For example, I cannot select 1 to type "Linux" in this scene:

But I can select 3 to type “荔奴”.

Do you know if it works in other SDL applications?

@CyberShadow I have solved this problem by using  --prefer-text . But there is still 2 problems :

adbkeyboard won't stop working when scrcpy window loses focus, so when I type in another application , sometimes the characters also appear  in scrcpy .
It seems there is a limitation in string's  length. If I type a long sentence , only the first several characters can be injected. There is no such a limitation in adbkeyboard's ADB_INPUT_CHARS feature because I can inject such a long sentence using am broadcast -a ADB_INPUT_CHARS --eia chars 'xxx' , so maybe the limitation is in another place.

adbkeyboard won't stop working when scrcpy window loses focus, so when I type in another application , sometimes the characters also appear in scrcpy .

This sounds like a fcitx bug.

It seems there is a limitation in string's  length. If I type a long sentence , only the first several characters can be injected.

Sounds like an SDL or fcitx issue.
Also, to clarify - I did not create the adbkeyboard feature, I just updated the code to work with the latest scrcpy.

 Could you share the built files? Thank you.

When you installed the Sougou input method on your phone, you can input Chinese through Scrcpy. The download link for Sougou input is https://apkdl.sogouimecdn.com/wapdl/android/apk/SogouInput_v10.38.2_Build_d6a2d9f2f1e_20211231_android_sweb.apk?frm=new_pcjs_index


Question:  How do I train large online data with Orion?

Description
I have large Kafka clusters, that produce greater than 10 TB of messages (logging) per-day, in this case, I want to use Orion to detect some metrics.
Could you give me some advice? THX

Hi @nntp4 -- thank you for using Orion!
Can you provide more detail on the problem such that I can help you. In total, how many rows are recorded per day? Would it be sufficient if a pipeline is trained on a single day, then we can reuse the pipeline and detect anomalies in the upcoming days? How often are you expecting to find anomalies in your data?
The more details you can provide, we can better craft the problem.

@sarahmish  Thank your replay
actually, that is HTTP traffic stored as a logging record in Kafka, My company's HTTP Gateway generates around 6~ billion requests per day, and I am responsible for monitoring network traffic for all HTTP domains. The traffic follows some certain pattern, for example, with particularly high volume during the daytime, especially in the morning work period.  I aim to detect any anomalies in the traffic within 15 minutes, preferably no more than 30 minutes, and to keep control of delays during the detection process.

Thank you for the details! @nntp4!
For training, ideally you would diverse set containing multiple days. Seeing that your data is massive, I would consider approaches to reduce the number of requests, such as aggregating over 1 minute interval=60. Depending on your domain knowledge, and how anomalies typically behave, you can choose whether you would like to apply such preprocessing or not.
We only need to train once, therefore, this step will be the most time consuming. Before training on the entire dataset, I recommend training on the first hour and see if it is performing as you'd like.
For inference, you'll require to run the detect method every ~15 minutes or so. Moreover, you will need to retrain your pipeline every once in a while (e.g, 4 weeks).
I also want to note that it might be beneficiary to breakdown the problem a bit more. For example, each HTTP domain can be trained separately to capture their patterns more clearly.


Cannot import name 'PROTOCOL_TLS' from 'urllib3.util.ssl_'

Describe the bug
This issue is a direct follow-up from https://github.com/boto/botocore/issues/2562
When using older versions of urllib3 (often vendored), importing botocore.utils (or using botocore in any consideration) will fail.
Steps to reproduce
$ pip install --upgrade botocore==1.23.26
$ pip install --upgrade urllib3==1.22.0
$ python
>>> import botocore.utils
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Users/matthieu/.virtualenvs/reproavm/lib/python3.8/site-packages/botocore/utils.py", line 32, in <module>
    import botocore.httpsession
  File "/Users/matthieu/.virtualenvs/reproavm/lib/python3.8/site-packages/botocore/httpsession.py", line 10, in <module>
    from urllib3.util.ssl_ import (
ImportError: cannot import name 'PROTOCOL_TLS' from 'urllib3.util.ssl_' (/Users/matthieu/.virtualenvs/reproavm/lib/python3.8/site-packages/urllib3/util/ssl_.py)

Expected behavior
botocore should fallback to importing PROTOCOL_TLS from ssl.

Hi @thehunt33r,
Thanks for raising this!  I don't see anything wrong with your change at surface-level, but I'll review with the team to get their thoughts.

Hi @thehunt33r,
I saw you mentioned using vendored older versions of urllib3, but is there a particular reason you need to use such an old version?  You may already be aware, but our minimum version required at this time is 1.25.4.

Hey!
Sorry yeah I was using an old version of an AWS solution (LandingZone) I'm stuck with for the foreseeable future.
I did see the minimum requirement for the version of urllib3 but since an earlier similar PR was merged I thought it could be worth it to do this change? If you don't think that's worth it feel free to close the PR :-)
Thank you for taking the time to look through it.
Matthieu

Hi @thehunt33r,
That makes sense.  I discussed this with a few team members yesterday and they were not inclined to merge the PR due to the problem occurring well below our urllib3 floor, but we were missing a few other team members due to the holidays— I'll bring this up again once we have the full group and see if we can get a better consensus.

Hi @stobrien89,
I see this issue too.
awscli==1.22.26
botocore==1.23.26
urllib3==1.26.7
Statement on lines 10-12 in httpsession.py wants to import PROTOCOL_TLS from urllib3.util.ssl_, which does not exist there.
I can workaround by removing it from that statement and adding a separate statement, pulling from ssl. Though, I suspect the strategic direction is to level up on TLS version which would require more planning.

Hi @drigoli,
PROTOCOL_TLS has been present in each release of urllib3 for the last ~3 years since 1.25.0. You can find the import workflow here. I'd double check the version of urllib3 you're using with botocore is actually 1.26.7. You can use urllib3.__version__ in your script to verify.
As @stobrien89 said earlier, I think we're disinclined to add support for these older versions. The primary reason is they contain multiple medium to high scoring CVEs which may compromise your security. We'd prefer to not make it easy for users to unknowingly use these versions on their systems.
For the time being, I think our recommendation is going to be investing in upgrading urllib3 to a secure version. As Sean, said we may revisit this after the New Year, but I believe it's unlikely to change.

Good catch @nateprewitt,
Looks like pip isn't reporting the same version numbers as observed in the shell or in the site-packages directory.
pip reported version:
`
Package         Version

awscli          1.22.26
botocore        1.23.26
...
pip             21.2.4
urllib3         1.26.7
`
interactive query versions:
`
In [2]: urllib3.version
Out[2]: '1.24.3'
...
In [5]: botocore.version
Out[5]: '1.23.19'
In [6]: boto3.version
Out[6]: '1.20.19'
`
hmm...

Hi @thehunt33r and @drigoli,
After further discussion, we've decided not to move forward with merging the PR related to this issue due to the security risks associated with the CVEs mentioned by @nateprewitt.  Sorry for the inconvenience!

Thanks @stobrien89!

Still reproducible on python 3.8.13:
botocore 1.27.70
urllib3 1.26.12

I'm getting this error --> cannot import name 'PROTOCOL_TLS' from 'urllib3.util.ssl_' (/usr/local/lib/python3.7/dist-packages/urllib3/util/ssl_.py)


Fix type of retry option: retry can be boolean or a number

According to the sidekiq docs, sidekiq_options retry param can be either boolean or a number.
Change the param of the retry argument to be a JsonValue for now, as it's a convenient wrapper over different basic types

Thanks for the PR. Good find!
I think JsonValue is convenient but a little too broad. Let me see if I can push a change up that captures this intent though.

@Antti would you mind allowing maintainer push to your fork?
I refactored from JsonValue (which was a very helpful refresher so thank you for the PR) to a new RetryOpts type with  a backwards compatible retry() method that now supports:
opts()
  // old way
  .retry(true).retry(false)
  // now usize is supported
  .retry(42)
  // and the new enum is available too
  .retry(RetryOpts::Yes).retry(RetryOpts::Never).retry(RetryOpts::Max(42)

I have a branch up here that I can open a new PR with but would love your thoughts: https://github.com/film42/sidekiq-rs/compare/gt/retry_opts?expand=1
I would like to add a few tests but I'm on a flight at the moment and I'll be out of internet range soon so wanted to get this up for the moment.

@film42 I think it looks good, certainly better than a plain JsonValue!

Sweet. I need to do a few more small things before cutting a new release.

Thanks for getting this one started, @Antti ! ❤ ❤ ❤


the sublime text editor package with .tag

I can't find the syntax and highlight package with .tag file .
could someone help me ?
tks :P

You can use a JSX highlighter which seems to work pretty nicely.
Closing this issue in favor to #157 <-- more information

@tipiirai  It's work ! thanks : P

Good to hear! Enjoy.

hehe, whata think of my way of highlighting compiled (think thats what they are) versions?....

I dont really know what Im doing, but....
RHTML is just a modified version of multi line ( https://github.com/sindresorhus/multiline ).
The /*html is used to tell sublime where the html block is (that was the bit that interested me, wanna use if for shaders aswell).  I modified javascript next theme for that.
It uses a handlebars theme that I just changed all the {{ to {, seemed close.
Anyway, it was just a curiosity, kinda cool tho aye.

Nice. Seems to work well with pure JavaScript tags.
But I'm mostly looking for "multilanguage" support for .tag files. Using the JSX highlighter myself but a lot could be done to improve it and make it more Riot specific.

This must be interesting concept not to use compiler, and write just compiled tags. What I see as a big advantage of this is the fast, that tag function can have an access to full scope of parent function, so you to not have to inject your API with mixin for instance.


[FEATURE REQ] Support for Spring Boot 3.4.x

Is your feature request related to a problem? Please describe.
Yes, SDK compatibility
Describe the solution you'd like
Support added for Spring boot 3.4.x -
We would like to know when to expect the Azure library updates to support Spring Boot version 3.4.0
Describe alternatives you've considered
none at this time
Additional context
We continuously update java and spring dependencies to be aligned with quality and security rules,
We currently deploy custom containers on Azure App Services. (not Azure Spring Apps or ACA)
Spring Boot recently released version 3.4.0 and we note that some of the Azure libraries (Azure Cosmos, Azure Key Vault, Azure Storage, ...) are not compatible with new version
We would like to know when to expect the Azure library updates in order to plan our upgrades to Spring Boot version 3.4.0
Information Checklist
Kindly make sure that you have added all the following information above and checkoff the required fields otherwise we will treat the issuer as an incomplete report

[ ] Description Added
[ ] Expected solution specified

Duplicate of #43085

https://github.com/Azure/azure-sdk-for-java/pull/43420

Spring Cloud Azure 5.19.0 has been released.


Demo not working on iPhone 5s

Tried to view the demo on my iPhone 5s, both in Chrome and Safari - but no markers are drawn.
The counter works, so the script is running - but nothing is drawn on the map - only the base map layer.

Hi @dagjomar! Sorry if I reopen this but are you visiting the page in http or https? I noticed that the demo does not support https:// and some devices may be unhappy about it.
https://makinacorpus.github.io/Leaflet.LayerIndex/

@valerio-bozzolan The demo now supports https, unsure if it was related to the initial issue though.
Thanks !


Comment clipped

When using the respot function the comment that was posted to ParksnPeaks only contained the first word of the sentence entered in the comment box.
Also, when attempting to enter a comment, a droplist of earlier comments appears. If one attempts to select an earlier comment by moving the mouse over them the whole respot operation is aborted.

Thanks for raising these issues Gerard.  I have moved the hiding panel issue to track it separately in https://github.com/RhinoLance/ParksNPeaks_Heimdall/issues/4

Hmmm, it worked fine in testing, and posted a re-spot today and all was well.  I wonder if it was an artifact of the resetting input as noted, which has been resolved.
Gerard, I would appreciate you trying again and letting me know if the problem persists.  Whilst it should make no difference, please provide the spot text it clips it again.

Thanks Lance.
On v1.01 I tried respotting and it works fine now.
The whole comment was sent thru to ParksnPeaks.
73, Gerard

Excellent!  Thanks for the test.


userid Vs roomid in getAllParticipants()

Hello,
I understand that the creator (moderator) of the room has userid = roomid.
However, it is a user and therefore why does not appear in: getAllParticipants ()
Is this a bug?
If not, how to SEE the moderator in getAllParticipants (), knowing that the session is open with a userid = roomid.
Thanks

getAllParticipants returns list of all connected users excluding yourselves. Means that it do not return your own userid.
Here are a few examples:
getAllParticipants() for userA => userB, userC
getAllParticipants() for userB => userA, userC
getAllParticipants() for userC => userA, userB

You can easily make this hack:
var listOfAllUsers = connection.getAllParticipants().pus(connection.userid);

Now table looks like this:
getAllParticipants() for userA => userB, userC, userA
getAllParticipants() for userB => userA, userC, userB
getAllParticipants() for userC => userA, userB, userC

First of all I want to thank you for the speed of your answer.
And for the answer. Perfect !


Test that randombid parameters are coordinate objects (first-timers-only)

first-timers-only
This issue is tagged :octocat: first-timers-only. It is only for people who have never contributed to open source before and are looking for an easy way take their first steps.
Consider this as your chance to dip your toe into the world of open-source and get some bragging rights for writing code that makes drones fly, cars find charging stations, helps people and goods move from place to place and more...
Find more first-timers-only issues from DAV Foundation here.
Thank you for your help :heart:
What is this project?
DAV (Decentralized Autonomous Vehicles) is a new non-profit foundation working to build an open-source infrastructure for autonomous vehicles (cars, drones, trucks, robots, and all the service providers around them) to communicate and transact with each other over blockchain.
As an organization that believes in building a large community of open-source contributors, we often create issues like this one to help people take their first few steps into the world of open source.
Mission Control
The DAV project you are looking at is Mission Control. Mission Control is a service running on the DAV network, and serving as a marketplace connecting DAV users looking to ship packages, with drone owners.
How you can help
As a project that relies on a large community of contributors, it is very important for us to have good tests to make sure changes don't break anything.
One of the functions that need testing is randomBid() inside /server/simulation/vehicles.js. This function receives three coordinates and returns an object describing a bid (composed of price, time to arrive to pickup point, and time to get from pickup to dropoff)
Coordinate objects should follow the below structure.
{
  lat : 1.0,
  long : 2.0,
}

In the file test/specs/simulation.vehicles.spec.js  in describe('randomBid()') block test the following conditions:

Test that randomBid() throws an error when called with first parameter that isn't a coordinate object
Test that randomBid() throws an error when called with second parameter that isn't a coordinate object
Test that randomBid() throws an error when called with third parameter that isn't a coordinate object

To run your tests, run npm test from the project's root directory. All tests should pass.

Contributing to Mission Control

[ ] Make sure this issue is labeled up-for-grabs and not labeled claimed, to verify no one else is working on it.
[ ] Comment in this issue that you would like to do it.
[ ] Open the Mission Control GitHub page and click the ★ Star and then ⑂ Fork buttons.
[ ] Clone a copy to your local machine with $ git clone git@github.com:YOUR-GITHUB-USER-NAME/missioncontrol.git
[ ] Make changes in the LICENSE file
[ ] Once you've made sure all your changes work correctly and committed all your changes, push your local changes back to github with $ git push -u origin master
[ ] Visit your fork on GitHub.com (https://github.com/YOUR-USER-NAME/missioncontrol) and create a pull request for your changes.
[ ] Make sure your pull request describes exactly what you changed and references this issue (include the issue number in the title like this: #5)
[ ] Please do not fix more than one issue at a time. Your pull request should only fix what is described in this issue.

Asking for help
We appreciate your effort in taking the time to work on this issue and help out the open source community and the foundation. If you need any help, feel free to ask below or in our gitter channel. We are always happy to help 😄

I would like to do it

Hey @cg-cnu, i would like to do it ;)

Just a question, on topic "Make changes in the LICENSE file", would not be "DO NOT Make changes in the LICENSE file"?
I think i don't understand that one.

Hey @raphaeltelatim Thanks for your interest. You can go ahead with the issue. 👍
Regarding the license file, I forgot to update it after creating the issue from the blueprint. Sorry for the confusion, its just a checklist for the first-timers to follow. Thanks for pointing out, I will be careful next time 🙂

Hey @cg-cnu, i think its done.
https://github.com/DAVFoundation/missioncontrol/pull/177

Hello, @cg-cnu I am looking for my first open source project and I find this to be my opportunity; so, I'd like to do it :)

Hello, @cg-cnu I am looking for my first open source project and I find this to be my opportunity; so, I'd like to do it :)

Hi @ashis0013  - i think this issue has been claimed already.
If you'd like to help maybe you can pick another from here.
Many tnanks!

Hey @raphaeltelatim Thanks for your contribution to DAV 🙂 Feel free to join our gitter channel to find out about more opportunities to contribute to opensource.


problem on execute the news searcah example

I execute the news search example as following
(1)pip install jina[all]
(2)download the example data
(3)extract the data to the /tmp dir
(4)execute: python prepare.py
(5)execute: python app.py -t index
and got error as following:
encoder driver throws an exception, the sequel pipeline may not work properly
🐳 encoder@ 8[I]:received "index" from gateway▸extractor-head▸extractor-1▸extractor-tail▸encoder-head▸⚐
🐳 encoder@ 8[I]:batching enabled for BaseTransformerEncoder.encode(). batch_size=32     num_batch=None  axis=0
encoder@21899[I]:received "control" from gateway▸extractor-head▸extractor-1▸extractor-tail▸encoder-head▸encoder-0▸⚐
encoder@21902[I]:received "index" from gateway▸extractor-head▸extractor-1▸extractor-tail▸encoder-head▸encoder-0▸⚐
chunk_indexer@22043[E]:unknown exception: vectors shape 790 is not valid, expecting "vectors" to have rank of 2
Traceback (most recent call last):
File "/usr/anaconda3/lib/python3.7/site-packages/jina/peapods/pea.py", line 352, in run
self.loop_body()
File "/usr/anaconda3/lib/python3.7/site-packages/jina/peapods/pea.py", line 317, in loop_body
msg = self.zmqlet.recv_message(callback=self.msg_callback)
File "/usr/anaconda3/lib/python3.7/site-packages/jina/peapods/zmq.py", line 222, in recv_message
return callback(msg)
File "/usr/anaconda3/lib/python3.7/site-packages/jina/peapods/pea.py", line 301, in msg_callback
return self._callback(msg)
File "/usr/anaconda3/lib/python3.7/site-packages/jina/peapods/pea.py", line 291, in _callback
self.pre_hook(msg).handle(msg).post_hook(msg)
File "/usr/anaconda3/lib/python3.7/site-packages/jina/peapods/pea.py", line 179, in handle
self.executor(self.request_type)
File "/usr/anaconda3/lib/python3.7/site-packages/jina/executors/init.py", line 534, in call
d()
File "/usr/anaconda3/lib/python3.7/site-packages/jina/drivers/index.py", line 32, in call
self.exec_fn(np.array([c.chunk_id for c in chunk_pts]), np.stack(embed_vecs))
File "/usr/anaconda3/lib/python3.7/site-packages/jina/executors/decorators.py", line 22, in arg_wrapper
f = func(self, *args, **kwargs)
File "/usr/anaconda3/lib/python3.7/site-packages/jina/executors/indexers/vector/numpy.py", line 87, in add
raise ValueError('vectors shape %s is not valid, expecting "vectors" to have rank of 2' % vectors.shape)
ValueError: vectors shape 790 is not valid, expecting "vectors" to have rank of 2
chunk_indexer@22046[E]:unknown exception: vectors shape 1162 is not valid, expecting "vectors" to have rank of 2
Traceback (most recent call last):
File "/usr/anaconda3/lib/python3.7/site-packages/jina/peapods/pea.py", line 352, in run
self.loop_body()
File "/usr/anaconda3/lib/python3.7/site-packages/jina/peapods/pea.py", line 317, in loop_body
msg = self.zmqlet.recv_message(callback=self.msg_callback)
File "/usr/anaconda3/lib/python3.7/site-packages/jina/peapods/zmq.py", line 222, in recv_message
return callback(msg)
File "/usr/anaconda3/lib/python3.7/site-packages/jina/peapods/pea.py", line 301, in msg_callback
return self._callback(msg)
File "/usr/anaconda3/lib/python3.7/site-packages/jina/peapods/pea.py", line 291, in _callback
self.pre_hook(msg).handle(msg).post_hook(msg)
File "/usr/anaconda3/lib/python3.7/site-packages/jina/peapods/pea.py", line 179, in handle
self.executor(self.request_type)
File "/usr/anaconda3/lib/python3.7/site-packages/jina/executors/init.py", line 534, in call
d()
File "/usr/anaconda3/lib/python3.7/site-packages/jina/drivers/index.py", line 32, in call
self.exec_fn(np.array([c.chunk_id for c in chunk_pts]), np.stack(embed_vecs))
File "/usr/anaconda3/lib/python3.7/site-packages/jina/executors/decorators.py", line 22, in arg_wrapper
f = func(self, *args, **kwargs)
File "/usr/anaconda3/lib/python3.7/site-packages/jina/executors/indexers/vector/numpy.py", line 87, in add
raise ValueError('vectors shape %s is not valid, expecting "vectors" to have rank of 2' % vectors.shape)
ValueError: vectors shape 1162 is not valid, expecting "vectors" to have rank of 2
chunk_indexer@22043[I]:no update since 2020-05-19 07:55:48, will not save. If you really want to save it, call "touch()" before "save()" to force saving
chunk_indexer@22043[I]:no update since 2020-05-19 07:55:48, will not save. If you really want to save it, call "touch()" before "save()" to force saving
chunk_indexer@22043[I]:no update since 2020-05-19 07:55:48, will not save. If you really want to save it, call "touch()" before "save()" to force saving
chunk_indexer@22043[I]:dumped changes to the executor,   4s since last the save
chunk_indexer@22043[I]:#sent: 1 #recv: 1 sent_size: 295 Bytes recv_size: 287.5 KB
chunk_indexer@22046[I]:no update since 2020-05-19 07:55:48, will not save. If you really want to save it, call "touch()" before "save()" to force saving
chunk_indexer@22046[I]:no update since 2020-05-19 07:55:48, will not save. If you really want to save it, call "touch()" before "save()" to force saving
chunk_indexer@22046[I]:no update since 2020-05-19 07:55:48, will not save. If you really want to save it, call "touch()" before "save()" to force saving
chunk_indexer@22046[I]:dumped changes to the executor,   4s since last the save
chunk_indexer@22046[I]:#sent: 1 #recv: 1 sent_size: 295 Bytes recv_size: 288.6 KB
chunk_indexer@22046[I]:#sent: 1 #recv: 1 sent_size: 295 Bytes recv_size: 288.6 KB
chunk_indexer@22046[S]:terminated
chunk_indexer@22043[I]:#sent: 1 #recv: 1 sent_size: 295 Bytes recv_size: 287.5 KB
chunk_indexer@22043[S]:terminated
🐳 encoder@ 8[E]:
🐳 Found no NVIDIA driver on your system. Please check that you
🐳 have an NVIDIA GPU and installed a driver from
🐳 http://www.nvidia.com/Download/index.aspx
🐳 Traceback (most recent call last):
🐳 File "/opt/conda/lib/python3.7/site-packages/jina/drivers/encode.py", line 30, in call
🐳 embeds = self.exec_fn(contents)
🐳 File "/opt/conda/lib/python3.7/site-packages/jina/executors/decorators.py", line 177, in arg_wrapper
🐳 r = func(self, b, *args, **kwargs)
🐳 File "/opt/conda/lib/python3.7/site-packages/jina/executors/decorators.py", line 53, in arg_wrapper
🐳 r = func(self, *args, **kwargs)
🐳 File "/opt/conda/lib/python3.7/site-packages/jina/executors/encoders/nlp/transformer.py", line 61, in encode
🐳 token_ids_batch = self.array2tensor(token_ids_batch)
🐳 File "/opt/conda/lib/python3.7/site-packages/jina/executors/encoders/nlp/transformer.py", line 250, in array2tensor
🐳 return tensor.cuda() if self.on_gpu else tensor
🐳 File "/opt/conda/lib/python3.7/site-packages/torch/cuda/init.py", line 149, in _lazy_init
🐳 _check_driver()
🐳 File "/opt/conda/lib/python3.7/site-packages/torch/cuda/init.py", line 54, in _check_driver
🐳 http://www.nvidia.com/Download/index.aspx""")
🐳 AssertionError:
🐳 Found no NVIDIA driver on your system. Please check that you
🐳 have an NVIDIA GPU and installed a driver from
🐳 http://www.nvidia.com/Download/index.aspx
🐳 encoder@ 8[W]:encoder driver throws an exception, the sequel pipeline may not work properly
encoder@21899[I]:received "control" from gateway▸extractor-head▸extractor-1▸extractor-tail▸encoder-head▸encoder-0▸⚐
encoder@21902[I]:received "index" from gateway▸extractor-head▸extractor-1▸extractor-tail▸encoder-head▸encoder-0▸⚐
could you pleased to tell me what happen or how to overcome it, thank you.

please format the log with markdown, I can't see it clearly

i upload err msg as followed

thank

i ran this demo on a centos CPU server(8C16G)

this is because the model used gpu, wait a minute, I am rebuilding the image.

OK

finish rebuild, pull again

ok，in addition, is the gpu and cpu are supproted by the new images at the same time？

the error is exist as before

the image i pull is not the newest(through : python app.py -t index)

i tried just now, but it can't work, i posted the error msg, which shows the image pulled  from docker is not the newest you rebuild yesterday, is there any other configuration should i do?

sorry about that, we are detecting the problem, it will be soon

OK

@policme, any progress on this?

i tried other examples like webqa search, which can work properly, i compared its flow-index.yml with that of the news search example, and find the encoder part are different.
(1)news-search
encoder:
image: jinaai/hub.executors.encoders.nlp.transformers-hitscir
timeout_ready: 6000000
replicas: 2
(2)web-qa
encoder:
yaml_path: pods/encoder/encoder.yml
timeout_ready: 60000
replicas: 3
read_only: True
is there any difference between the two encoders, i foud the encoder of the webqa example is with transformer_roberta, and the encoder of the news-search is a docker images which can't work properly on my system up to now.

next time, if u want to put the code, please format the code with markdown, so we can see the meaning you want to give to me clearly.
because of some reason, the roberta docker image has some flaws, wait a while, we are fixing it

ok，i mean the two jina examples, news-search and webqa, are with differnt encoders, the encoder of webqa was installed with jina through pip jina, and the encoder of new-search is from a docker of jina-huh, is that right?

the encoder of webqa didin't install through jina, please refer this part
the encoder of news is same as webqa encoder, two of them use roberta as model, between them, the difference is that webqa's encoder is a py file or yaml file, the new's encoder is a docker image.
no matter webqa encoder or news encoder is not in jina built-in, both of them are customized。

thank


fix some problems of pilot/serviceregistry

when convertToConfigMap failed, we should return, or may result in panic due to nil pointer.
fix some comments

[ ] Configuration Infrastructure
[ ] Docs
[ ] Installation
[ ] Networking
[ ] Performance and Scalability
[ ] Policies and Telemetry
[ ] Security
[ ] Test and Release
[ ] User Experience
[ ] Developer Infrastructure
Pull Request Attributes
Please check any characteristics that apply to this pull request.
[ ] Does not have any user-facing changes. This may include CLI changes, API changes, behavior changes, performance improvements, etc.

@gy95: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name
Commit
Details
Rerun command

release-notes_istio
95315b86fa4219119ce8b0b0cb8d2fec6321cd55
link
/test release-notes_istio

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@gy95: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name
Commit
Details
Rerun command

release-notes_istio
f17b27442953a8765bd69040af244a7ab8e6d993
link
/test release-notes_istio

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

/test release-notes_istio


Updating gridap

Codecov Report

Merging #3 (e1eac64) into master (e0e9bb6) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master       #3   +/-   ##
=======================================
  Coverage   21.72%   21.72%
=======================================
  Files           7        7
  Lines         313      313
=======================================
  Hits           68       68
  Misses        245      245

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 e0e9bb6...e1eac64. Read the comment docs.


[Feature Request] Add support for conditionally changing the android app icon name

This would be a cool addition and could slot in nicely as an optional parameter to the app bundle id task
There are workarounds out there involving maintaining two separate manifest files and switching them in based on build config, but maintaining multiple build configurations plus an additional file is not ideal.

In the meantime, I am just running a custom powershell script in azure, based heavily on the one that changes the app name in the library
Param(
  [string]$sourcePath,
  [string]$iconName
)

# requies parameters
if(!$sourcePath)
{
    write-host " [!] Missing required input: sourcePath"
    exit 1
}

write-host "Source path is: $sourcePath"

if(!(Test-Path $sourcePath))
{
    Write-Host " [!] File doesn't exist at specified Android Manifest path: $sourcePath"
    exit 1
}

if(!$iconName)
{
    Write-Host " [!] No iconName specified!"
    exit 1
}

# ---------------------
# --- Configs:
Write-Host " (i) Provided Android Manifest path: $sourcePath"

Write-Host " (i) New Icon Name: $iconName"

 # Load the manifest file
 [xml] $xam = Get-Content -Path $sourcePath

 # Get the version from Android Manifest
 $NAME = Select-Xml -xml $xam  -Xpath "/manifest/application/@android:icon" -namespace @{android="http://schemas.android.com/apk/res/android"}

 $old_name = $NAME.Node.Value;

 Write-Host " (i) Original Icon Name: $old_name"

# ---------------------
# --- Main:

Write-Host "Original Manifest:"
Get-Content $sourcePath | Write-Host

$NAME.Node.Value = "@mipmap/$iconName"

$xam.Save($sourcePath)

Write-Host "Final Manifest:"
Get-Content $sourcePath | Write-Host


Running Locally - Permission Denied error

Summary
Trying to setup Argo Worflow for local development. Cannot run any workflow. Attempts to set securityContext was not successful.
What happened/what you expected to happen?
standard_init_linux.go:228: exec user process caused: permission denied

What version of Argo Workflows are you running?
adil@adil-ubuntu:~/go/src/github.com/argoproj/argo-workflows$ git log -n 1 --oneline
3efe2b856 (HEAD -> master, origin/master, origin/HEAD) docs: updated CHANGELOG.md (#7421)

Diagnostics
Either a workflow that reproduces the bug, or paste you whole workflow YAML, including status, something like:
apiVersion: argoproj.io/v1alpha1
kind: Workflow
metadata:
  generateName: hello-world-
  labels:
    workflows.argoproj.io/archive-strategy: "false"
  annotations:
    workflows.argoproj.io/description: |
      This is a simple hello world example.
      You can also run it in Python: https://couler-proj.github.io/couler/examples/#hello-world
spec:
  entrypoint: whalesay
  templates:
  - name: whalesay
    container:
      image: docker/whalesay:latest
      command: [cowsay]
      args: ["hello world"]

What Kubernetes provider are you using?
Kind
What executor are you running? Docker/K8SAPI/Kubelet/PNS/Emissary
Dont know. But i followed this
# Setup argo locally to run

# setup kind cluster
kind cluster create
docker pull docker/whalesay:latest
kind load docker-image docker/whalesay:latest

# run argo
make clean start API=true UI=true

# submit hello-workd as per quickstart docs
argo submit -n argo --watch https://raw.githubusercontent.com/argoproj/argo-workflows/master/examples/hello-world.yaml

# Logs from the workflow pod
adil@adil-ubuntu:~$ k logs hello-world-wrdtc
standard_init_linux.go:228: exec user process caused: permission denied

Adding a security context as follows
apiVersion: argoproj.io/v1alpha1
kind: Workflow
metadata:
  generateName: hello-world-
  labels:
    workflows.argoproj.io/archive-strategy: "false"
  annotations:
    workflows.argoproj.io/description: |
      This is a simple hello world example.
      You can also run it in Python: https://couler-proj.github.io/couler/examples/#hello-world
spec:
  securityContext:
    runAsNonRoot: true
    runAsUser: 8737
  entrypoint: whalesay
  templates:
  - name: whalesay
    container:
      image: docker/whalesay:latest
      command: [cowsay]
      args: ["hello world"]

yields the same result.
adil@adil-ubuntu:~$ argo submit -n argo hello-world.yaml
standard_init_linux.go:228: exec user process caused: permission denied

Tried to build the dockerexec-image in case the latest tag is the one needed but that does not build on ubuntu 21.04
adil@adil-ubuntu:~/go/src/github.com/argoproj/argo-workflows$ make argoexec-image
GIT_COMMIT=3efe2b8568842a4f9f45ea2df228dc8f310bc947 GIT_BRANCH=master GIT_TAG=untagged GIT_TREE_STATE=dirty RELEASE_TAG=false DEV_BRANCH=false VERSION=latest
KUBECTX=k3d-k3s-default DOCKER_DESKTOP=false K3D=true DOCKER_PUSH=false
RUN_MODE=local PROFILE=minimal AUTH_MODE=hybrid SECURE=false STATIC_FILES=true ALWAYS_OFFLOAD_NODE_STATUS=false UPPERIO_DB_DEBUG=0 LOG_LEVEL=debug NAMESPACED=true
[ ! -e dist/argoexec ] || mv dist/argoexec .
docker buildx install
docker build \
        -t quay.io/argoproj/argoexec:latest \
        --target argoexec \
        --cache-from "type=local,src=/tmp/.buildx-cache" \
        --cache-to "type=local,dest=/tmp/.buildx-cache" \
        --output=type=docker .
[+] Building 0.0s (0/0)
error: cache export feature is currently not supported for docker driver. Please switch to a different driver (eg. "docker buildx create --use")
make: *** [Makefile:222: argoexec-image] Error 1

OS Information
adil@adil-ubuntu:~/go/src/github.com/argoproj/argo-workflows$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=21.04
DISTRIB_CODENAME=hirsute
DISTRIB_DESCRIPTION="Ubuntu 21.04"

Message from the maintainers:
Impacted by this bug? Give it a 👍. We prioritise the issues with the most 👍.

@adilfulara looks like some permission issue on your environment or executables. Please check the executable permission for argo and kubectl

@sarabala1979 i switched to my a different computer and the instructions worked for the most part. However the
make argoexec-image

didnt work for minikube.
Luckily i found this that helped me resolve the issue.


What format are the language keys?

I can't seem to find anything on the documentation, which is insufficient.
Are the language keys i18n?
Also, does this have typescript support? Might help with knowing what format values are.

Hi @ollydixon, here is some documentation on language keys.
We release libraries as TS libraries. So, you can always check the types in the generated code (for example). I think, since we've released v3, we don't have v2 protos out, which makes it so we don't have TS service if you just use v2. If you use v3, you'll see TS support (for reference, that method - detectLanguage in v3 - its return type is documented here, and should also be available if you install the v3 library: https://github.com/googleapis/google-cloud-node/blob/fa12e5db80735e93b0434b1eb3ab4b814058db96/packages/google-cloud-translate/protos/protos.d.ts#L951).
If you wouldn't mind reopening another issue with the bug (and code to reproduce), that would be greatly appreciated. Thank you!

@sofisl I’ve been using typescript since alpha :-)
When I hover over the language keys type it needs to tell me the standard it’s using. I shouldn’t need to hunt documentation that’s impossible to find. Google does docs really badly.

Hi @ollydixon,
Thanks for your feedback. To clarify your question, are you saying that these docs are not sufficient, or that the information in these docs should be present in the TS definitions?
If the former, I'd encourage you to open a bug directly with the docs directly, as it's a slightly different team that deals directly with these products (I would open it for you, but I'm not quite sure in which ways the documentation isn't specific enough).

If the latter, I'd request that you kindly specify what you feel is missing in the documentation, and I can open a bug internally so that our autogenerated libraries can receive your wording. If this is the case, feel free to reopen this same bug.
Lastly, when I said the following:
If you wouldn't mind reopening another issue with the bug (and code to reproduce), that would be greatly appreciated. Thank you!

I was referring to your comment here:
There also seems to be a bug. This is clearly two languages, but only shows as one.

I don't know what code you used to get this behavior, so it would be great if you could open it up with a new bug.
Thanks again for your feedback.

@sofisl over the +7 years I've been using Google Cloud no one has ever replied, fixed or taken my feedback seriously using the feedback feature, you might as well ask me to talk to a wall.
When I hover over the language keys it needs to tell the developer the standard it's using, that simple, very basic TypeScript functionality.
For example, these keys we get, which standard does this library use here?

--
Regarding the code used to for the bug, I linked a screenshot into the app, I even have the debugger hovering over the code.. I showed you the code there.. you can copy paste from the screenshot (on Mac)
The fact that you closed this without even reading it is terrible.

Here is the code copied from the screenshot, sorry Linux and Windows users.
// Imports the Google Cloud client library
const { Translate } = require( '@google-cloud/translate').v2;
const translate = new Translate();

export async function detectLanguage (text: string): Promise<any> {
    let [detections] = await translate.detect text);
    detections = Array.isArray (detections) ? detections : [detections];

    detections = detections.filter((d) => d.confidence > 0.5);
    const keys = detections.map((d) => .language);
    return keys;
}

The sentence is
'This is test content. Jeg snakker litt Norsk'
Two languages, Norsk and English.
@sofisl
Now I had to guess the language key cause I don't know the format, it could have been 1 of 11 results. No way to match it up accurately on the client.
Now you see how this 1 bug.

Hi @ollyde, thank you for clarifying your questions. If I can summarize, it seems like you'd like the following:

For TS definitions to include the standard of the response (ISO-639).

To look into the bug as you've described above, i.e., only one language being returned (thank you for clarifying that the code you showed was the same one that produced the unexpected result).

Does that summarize your concerns? If so, I think the two bugs you've opened seem appropriate.

@sofisl the definition needs to be on the function call so that the IDE can tell us.
As I said before the TypeScript supplied by Google is of weird quality, missing definitions and is way over engineered which is two things that shouldn't exist together
:-)


Add templating engine

Closed by https://github.com/aminya/AML.jl/commit/77911735605085c3bb88685821f369d629dfca69


how to add local media?

I've moved all my music and playlists from my phone to computer, how do i make it read them?

Checklist:

[x] I have checked that there are no issues with similar or the same content
YOU SHOULD CHECK CLOSED ISSUES AS WELL

[x] I have checked the FAQ (https://github.com/MarshallOfSound/Google-Play-Music-Desktop-Player-UNOFFICIAL-/wiki/FAQ) and the answer I am looking for is not there

[x] I have double checked and can reproduce the issue

OS:
GPMDP Version:
Issue Descriptions:
Steps to Reproduce:

You need to use Chrome. Open Google Play Music and drag your music into the Chrome window. You also need to install a Chrome extension, but the website will guide on how to do that.

Yes, music can only be added from Chrome. This app can't implement that feature unfortunately.


Background only showing sporadically

Hi there -- thank you for this little nugget! I added it to HA via HACS and then added the resource manually ("/hacsfiles/lovelace-media-art-background/media-art-background.js") via the HA lovelace resource config page. I added the extra few lines to the top of my dashboard config and cleared all browser cache as well. But the media art background only shows when I'm on the lovelace page and then refresh the page. When I switch to a different page and then come back to the dashboard, it shows the default background again, until I hit the browser refresh again.

Interesting. What browser are you using? Anything in your browser console?

Interesting. What browser are you using? Anything in your browser console?

I can confirm seeing the same.
When you have a dashboard set with the media art background settings set, the only time you can see it is if you're on the dashboard for the first time. So if you open up from the loading screen or just refresh the page, you get the background image. However, when you at any point navigated from one dashboard and then to the other with the background set up, it never pops up.
I get this on both Firefox 88 and Chrome WebView. I have looked in the console but I can't find any errors or warnings about that. It seems to silently fail.


In Xcode 9, Could not load module 'GZIP' error is caused.

I suspected High Sierra or Xcode 9 at first.
I checked other environments as cocoapods, Xcode settings, and so on.
Finally I found different filename and header import as NSData+GZip.h in GZIP.h and NSData+GZIP.h file.

Hello?


Light Build and Webpack 2 still load all highlight.js languages

Hi folks.
Thank you for this awesome package.
Today I was to raise an issue related wit bundle size.
I am trying to use the light build as you can see in the following code
import SyntaxHighlighter, { registerLanguage } from "react-syntax-highlighter/dist/light"

import foundation from 'react-syntax-highlighter/dist/styles/foundation';

['javascript', 'php', 'xml', 'bash', 'markdown', 'json', 'yaml'].forEach((langName) => {
    const langModule = require(`react-syntax-highlighter/dist/languages/${langName}`);
    registerLanguage(langName, langModule);
});

But when you use Webpack 2 to create a package, the tree shaking logic doesn't work as you can see in the following image.

I asked in webpack forums, and people mentioned that maybe internally maybe all languages are included.
I tried also trying to exclude with the same result
new webpack.IgnorePlugin(/^\.\/lib\/languages$/, /highlight\.js/),

I would really appreacite any recommendation.

I believe when you do a dynamic require like that, webpack can't determine what to include so it just includes the whole folder of the static string part of your require. Try switching to just 7 static imports and see if that solves the problem.

@bmathews yup believe that's correct

Hi @bmathews and @conorhastings
I just update my code as you suggested.
import SyntaxHighlighter, { registerLanguage } from "react-syntax-highlighter/dist/light"

import foundation from 'react-syntax-highlighter/dist/styles/foundation';

const javascript = require('react-syntax-highlighter/dist/languages/javascript');
const php = require('react-syntax-highlighter/dist/languages/php');
const xml = require('react-syntax-highlighter/dist/languages/xml');
const bash = require('react-syntax-highlighter/dist/languages/bash');
const markdown = require('react-syntax-highlighter/dist/languages/markdown');
const json = require('react-syntax-highlighter/dist/languages/json');
const yaml = require('react-syntax-highlighter/dist/languages/yaml');

registerLanguage('javascript', javascript);
registerLanguage('php', php);
registerLanguage('xml', xml);
registerLanguage('bash', bash);
registerLanguage('markdown', markdown);
registerLanguage('json', json);
registerLanguage('yaml', yaml);

Also I did an update in my webpack with the following entries
    var entries = {
        "syntax-highlighter": ['react-syntax-highlighter/dist/light', 'highlight.js'],
        "syntax-highlighter-languages": ['react-syntax-highlighter/dist/languages/javascript',
            'react-syntax-highlighter/dist/languages/php', 'react-syntax-highlighter/dist/languages/xml',
            'react-syntax-highlighter/dist/languages/bash', 'react-syntax-highlighter/dist/languages/markdown',
            'react-syntax-highlighter/dist/languages/json', 'react-syntax-highlighter/dist/languages/yaml'
        ],
        "syntax-highlighter-foundation": ['react-syntax-highlighter/dist/styles/foundation']
    };

Also, I am using  CommonsChunkPlugin to create a separate file to be loaded in browsers
        new webpack.optimize.CommonsChunkPlugin({
            names: ["syntax-highlighter", "syntax-highlighter-languages", "syntax-highlighter-foundation"],
            minChunks: Infinity
        })

However, the output is the same with all languages inside.

Thanks in advance

Why are you loading in all of highlight.js?
"syntax-highlighter": ['react-syntax-highlighter/dist/light', 'highlight.js'], ?

That'll give you everything required in<EMAIL_ADDRESS>

@enzolutions got this too, if you're trying to use a language in the new version of highlight.js that isn't in react-syntax-highlighter/dist/languages you'll see this error. Really there should be a simple way to keep the two packages up to date.

@enzosolutions @zsherman are you still seeing this on the latest version?

looks good, thanks @conorhastings

I am not able to test in next two days, but I am wondering if @zsherman could share how he tested the latest version.
Kind regards,

@enzolutions There is update of the package on npm the version is v5.6.3.
You can use npm update react-syntax-highlighter.

@stereokai webpack-bundle-analyzer

Cheers!


Support K-dimensional row-sparse tensor

overhauled existing sparse operators with rowsparse tensor. Added checks for the ones doesn't support kdim rowsparse tensor. Modified elemwise_add, sparse_retain and cast_storage to support dim rowsparse tensor.
removed set_storage_shape interface from NDArray. It is now set automatically every time aux_shape(kIdx) is set.
@stefanhenneking @reminisce @cjolivier01 @piiswrong

Done.

LGTM.

Done


add db2 to docker compose and install linux odbc driver

CI setup for https://github.com/pacman82/odbc-api/issues/398

Closing this, because it seems neither of us is investing work anymore to make this work.


Using div as a default tag

Great plugin. Can we please allow selectors like .panel which would simply use div as a default tag?

@BroiSatse sounds cool! Let me see what can be done!

@BroiSatse thanks for the feature suggestion. It's released in new version. Please try!


Whitespace interpreter

Hey there, it seems there is a bug with the test suite for the Whitespace interpreter Kata (https://www.codewars.com/kata/52dc4688eca89d0f820004c6/train/javascript)  :
I was implementing the "control flow" functions, trying to solve the first test inside the "Testing conditional and unconditional jump functionality" unit.
Adding console.log() in my control flow code block, I "successfully" passed the kata, though I had not even implemented the jump if negative function.
I was quite surprised to see that I had passed all tests, though only 77 tests were displayed green as passed.
In console I could see a huge list of logs, switching between "Flow" and "call" (the flags I was logging for debugging purposes)
When I commented these two console.log(), I hit "RangeError: Maximum call stack size exceeded", this time obviously no longer passing the full tests set. Uncommenting them makes the Kata passing successfully back.

Two screenshots of the succeeding and failing cases, only lines changes being the commented/uncommented lines at l.74, l.82

Please use the kata discourse to report issues about kata instead of this issue board.

Steffan it's not a problem about the kata, it's some problem with the runner and how it reacts to the filled/overflown buffer.

This is an old issue, but idk how to find it. As @hobovsky said overflowing the buffer in an infinite loop/recursion may lead to test execution being aborted. The runner's output then will be checked for successes/failures as if everything was normal, and you can complete the kata as long as you have passed at least 1 test, and haven't failed any.

See https://github.com/codewars/codewars-runner-cli/issues/637
The solution is to fix the kata by updating to a newer version of Node that doesn't use the old broken test framework.


Optimize Valgrind event generation

The Valgrind frontend (sigrind) uses a heavily modded Callgrind implementation, which was chosen for its built-in function tracking functionality. For very heavyweight analysis/characterization, like generating SynchroTraces, this is okay because the workload analysis covers up the slow event generation. For simpler prism tools, the sigrind event generation is excessively slow.
A lighter-weight Valgrind frontend (gengrind) has been in progress, with its function-tracking logic also based on Callgrind's. Right now gengrind is not implemented because a dead-end was hit inserting conditional VEX IR for turning instrumentation "on" and "off" without having to flush the instrumented basic blocks.
This is easily done in DynamoRIO by adding branches to labels.  However, the support in mainline Valgrind for this is poor.

Conditional dirty calls would require saving each BB's events in separate buffers, increasing overall memory usage and hurting cache performance
VEX Exit statements can only target addresses in the original binary, and they appear to generate extra basic blocks, obfuscating the workload.

The 'jit-hacks-2' branch of Valgrind has some dedicated support of IfThenElse VEX IR statements, and should be investigated further.

This is being addressed in VANDAL/valgrind


1050-after-renaming-a-token-remember-the-previous-choice-in-the-remap-pop-up

Would be nice if after renaming a token this popup remembers the previous choice. As usual, I almost always need to check “Document” but it always stays on “Page”.

Right now: The plugin saves the previous choice as long as doesn't restart the plugin.

@six7 do we also need to remember this on the file or client ?

@six7 do we also need to remember this on the file or client ?

Probably later on the client but let's see if the current solution satisfies that already.