text:
Replicator status says busy when SGW is offline

Android CBL version : 2.5.0-157
SGW version : 2.5.0-205
Steps to reproduce:

Create 2 DBs and Create 1000 docs in CBL
2. Do push replication to two SGS(each DB
to each SG)  -> two replications repl1, repl2
3. Wait until replication is done.
3 stop both replicators
3. exchange DBs of SG and do pull replication -> two replicatoins again, repl1, repl2
4. Wait until replication is done
5. Stop both replicators repl1, repl2
4. stop one of the sync gateway (sg2)
5. Start pull replication again and verify it throws error with 2nd replicator as sg2 is down.
6. Verify one CBL DB should be successful
other CBL DB should fail as associated Sg is down
7. Stop both the replicators again

Actual :
Replicator, repl2 fails which complains that replicator is busy/offline.
Sometimes I see replicator is offline
Sometimes I see replicator is busy
and fails to stop 2nd replicator.
Expected :
Replicator should stop
CBL logs :
https://gist.github.com/sridevi-15/788bd94f42dda7c751a593d040f83c3f
Note : This happens with 1000 docs and sometimes 100 docs. With 10 docs it always works fine.
It is not consistent. One in 3 times fail.

There are 159 LiteCore replicators being created during that log, all of them to remote database sg_db1. All of them seem to stop with Connection Refused. Looks like the CBL Replicator keeps trying to reconnect.
I didn't see any replicator being created on sg_db2. There is one occurrence of that string, but logged by an already-open socket object, so whatever replicator was replicating to it must have been started before this piece of the log.

Look like there is at least a race condition when accessing c4ReplStatus in stop() and retry(). From the code, it's not obvious.

Yes, I'm able to reproduce the issue.

It turns out my test was wrong and I was not able to reproduce the issue. Stopping the replicator did stop the replicator. However I found that there is a logging issue that logging messages from CBL replicator code didn't shown up in console. I will fix that first and will need to ask QE to rerun the test so that I could get the complete log.

@sridevi-15 Can you rerun the test with 2.5.0-178? I have fixed missing logging issue so that we could get the complete logs?

Hi Pasin, I ran with 2.5.0-206 build.
This is the cbl logs which I still see repl is busy
https://gist.github.com/sridevi-15/f60080df0830d6a538b0ed7600f5bb5f

@sridevi-15 From the log, I don't see that the test has called to stop the replicator when the replicator is being offline. Does the test check for offline status and stop the replicator? Could you please check?

Another thing, it seems like after offline, the replicator kept retrying every two seconds instead of retrying in exponential delay. I will look into this issue.

From the log, the issue is that returned c4status is BUSY (instead of STOPPED) but error is Connection Refuse. I couldn't reproduce this stage though.
CouchbaseLite Replicator Info: CBLReplicator[<* URL[ws://192.168.33.12:4984/sg_db2]]: Transient error (Connection refused); will retry in 2 sec...
CouchbaseLite Replicator Info: Reachability<192.168.33.12>: flags=2; starting...
CouchbaseLite Replicator Info: CBLReplicator[<* URL[ws://192.168.33.12:4984/sg_db2]] is offline, progress 0/0, error: Error Domain=NSPOSIXErrorDomain Code=61 "Connection refused" UserInfo={NSLocalizedDescription=Connection refused}
CouchbaseLite Replicator Info: Reachability<192.168.33.12>: flags <-- 2
CouchbaseLite Replicator Info: CBLReplicator[<* URL[ws://192.168.33.12:4984/sg_db2]]: Retrying...
CouchbaseLite Database Info: {DB#187}==> litecore::SQLiteDataFile /Users/sridevi.saragadam/Library/Developer/CoreSimulator/Devices/7EC1CCC1-9C92-4C15-ADB9-81FA17AD02C3/data/Containers/Data/Application/F60956EF-21CF-411F-AD50-DB9CA6F33AD6/Library/Application Support/CouchbaseLite/cbl_db11551251350.77.cblite2/db.sqlite3 @0x600003cf6760
CouchbaseLite Database Info: {DB#187} Opening database
CouchbaseLite Network Info: {Connection#188}==> litecore::blip::Connection ->ws://192.168.33.12:4984/sg_db2/_blipsync @0x600002ba4210
CouchbaseLite Network Info: {Connection#188} Opening connection...
CouchbaseLite Replicator Info: {Repl#189}==> litecore::repl::Replicator /Users/sridevi.saragadam/Library/Developer/CoreSimulator/Devices/7EC1CCC1-9C92-4C15-ADB9-81FA17AD02C3/data/Containers/Data/Application/F60956EF-21CF-411F-AD50-DB9CA6F33AD6/Library/Application Support/CouchbaseLite/cbl_db11551251350.77.cblite2/ ->ws://192.168.33.12:4984/sg_db2/_blipsync @0x7f86b8901838
CouchbaseLite Replicator Info: {Repl#189} Pull=continuous, Options={{cookies:"SyncGatewaySession=8ef7d8ae213f1fb09b6b235ee828a21d0eac22e8", headers:{User-Agent:"CouchbaseLite/2.5.0 (Swift; iOS 12.0; iPhone) Build/206 Commit/519ae8ac+CHANGES LiteCore/2.5.0 (206)"}, progress:0}}
CouchbaseLite Replicator Info: CBLReplicator[<* URL[ws://192.168.33.12:4984/sg_db2]]: Starting backgrounding monitor...
CouchbaseLite Replicator Info: {Repl#189} activityLevel=connecting: connectionState=1
CouchbaseLite Replicator Verbose: {DBWorker#190}==> litecore::repl::DBWorker ->ws://192.168.33.12:4984/sg_db2/_blipsync @0x7f86b8902388
CouchbaseLite Replicator Verbose: {DBWorker#190} Checkpoint doc ID = cp-5yM0KDWsbwNOFbbZgGmVhTBeEIU=
CouchbaseLite Replicator Verbose: {DBWorker#190} Remote-DB ID 2 found for target <ws://192.168.33.12:4984/sg_db2/_blipsync>
CouchbaseLite Replicator Info: CBLReplicator[<* URL[ws://192.168.33.12:4984/sg_db2]] is connecting, progress 0/0, error: (null)
CouchbaseLite Network Info: <CBLWebSocket: 0x6000032b42c0> connecting to 192.168.33.12:4984...
CouchbaseLite Replicator Info: {DBWorker#190} activityLevel=idle: pendingResponseCount=0, eventCount=1, activeDocs=0
CouchbaseLite Replicator Info: CBLReplicator[<* URL[ws://192.168.33.12:4984/sg_db2]] is connecting, progress 0/0, error: (null)
CouchbaseLite Replicator Info: {Repl#189} Local checkpoint 'cp-5yM0KDWsbwNOFbbZgGmVhTBeEIU=' is [0, '321']; getting remote ...
CouchbaseLite Network Verbose: <CBLWebSocket: 0x6000032b42c0>: Checking for timeout in 16.000 sec
CouchbaseLite Replicator Verbose: {DBWorker#190} now idle
CouchbaseLite Replicator Info: {Repl#189} activityLevel=connecting: connectionState=1
CouchbaseLite Replicator Info: {Repl#189} pushStatus=stopped, pullStatus=busy, dbStatus=idle, progress=0/0
CouchbaseLite Replicator Info: {Repl#189} activityLevel=connecting: connectionState=1
[] nw_socket_handle_socket_event [C6:1] Socket SO_ERROR [61: Connection refused]
[] nw_connection_get_connected_socket [C6] Client called nw_connection_get_connected_socket on unconnected nw_connection
TCP Conn 0x600003008b40 Failed : error 0:61 [61]
CouchbaseLite Network Verbose: <CBLWebSocket: 0x6000032b42c0>: ErrorEncountered on <__NSCFInputStream: 0x6000037a0090>
CouchbaseLite Network Verbose: <CBLWebSocket: 0x6000032b42c0>: Disconnect
CouchbaseLite Network Info: CBLWebSocket CLOSED WITH ERROR: NSPOSIXError[61, "Connection refused"]
CouchbaseLite Network WARNING: {C4SocketImpl#191}==> litecore::repl::C4SocketImpl ws://192.168.33.12:4984/sg_db2/_blipsync @0x7f86b8901bf0
CouchbaseLite Network WARNING: {C4SocketImpl#191} Unexpected or unclean socket disconnect! (reason=errno, code=61)
CouchbaseLite Network Info: {C4SocketImpl#191} sent 0 bytes, rcvd 0, in 0.000 sec (nan/sec, nan/sec)
CouchbaseLite Network Verbose: C4Socket of <CBLWebSocket: 0x6000032b42c0> is being disposed
CouchbaseLite Network Verbose: DEALLOC <CBLWebSocket: 0x6000032b42c0>
CouchbaseLite Network Info: {Connection#188} Closed with errno 61: Connection refused
CouchbaseLite Replicator Info: {Repl#189} Connection closed with errno 61: "Connection refused" (state=1)
CouchbaseLite Replicator Info: {DBWorker#190} activityLevel=idle: pendingResponseCount=0, eventCount=1, activeDocs=0
CouchbaseLite Replicator Info: BLIP sent 0 msgs (0 bytes), rcvd 0 msgs (0 bytes) in 0.121 sec. Max outbox depth was 0, avg nan
CouchbaseLite Replicator ERROR: {Repl#189} Got LiteCore error: POSIX error 61 "Connection refused"
CouchbaseLite Replicator Verbose: {Repl#189} progress +0/+0, 0 docs -- now 0 / 0, 0 docs
CouchbaseLite Replicator Info: {Pull#192}==> litecore::repl::Puller ->ws://192.168.33.12:4984/sg_db2/_blipsync @0x7f86bb900708
CouchbaseLite Replicator Info: {Repl#189} activityLevel=stopped: connectionState=-1
CouchbaseLite Replicator Info: {Pull#192} activityLevel=busy: pendingResponseCount=0, _caughtUp=0, _waitingForChangesCallback=0, _pendingRevMessages=0, _activeIncomingRevs=0
CouchbaseLite Replicator Info: {Repl#189} now stopped
CouchbaseLite Replicator Verbose: {Pull#192} now busy
CouchbaseLite Replicator Info: {Repl#189} activityLevel=busy: connectionState=-1
CouchbaseLite Database Info: {DB#187} Closing database
CouchbaseLite Replicator Info: {Repl#189} now busy
CouchbaseLite Database Verbose: {DB#187} Pre-close housekeeping: 0 of 115 pages free (0%)
CouchbaseLite Replicator Info: Reachability<192.168.33.12>: stopped
CouchbaseLite Replicator Info: CBLReplicator[<* URL[ws://192.168.33.12:4984/sg_db2]] is busy, progress 0/0, error: Error Domain=NSPOSIXErrorDomain Code=61 "Connection refused" UserInfo={NSLocalizedDescription=Connection refused}
CouchbaseLite Database Verbose: {DB#187} Closed SQLite database
CouchbaseLite Replicator Info: {Repl#189} activityLevel=stopped: connectionState=-1
CouchbaseLite Replicator Info: CBLReplicator[<* URL[ws://192.168.33.12:4984/sg_db2]] is busy, progress 0/0, error: Error Domain=NSPOSIXErrorDomain Code=61 "Connection refused" UserInfo={NSLocalizedDescription=Connection refused}
CouchbaseLite Replicator Info: {Repl#189} now stopped
CouchbaseLite Replicator Info: CBLReplicator[<* URL[ws://192.168.33.12:4984/sg_db2]]: Transient error (Connection refused); will retry in 2 sec...

From the log above, it seems the activity level of the Repl#189 is busy instead of stopped.
CouchbaseLite Replicator ERROR: {Repl#189} Got LiteCore error: POSIX error 61 "Connection refused"
CouchbaseLite Replicator Verbose: {Repl#189} progress +0/+0, 0 docs -- now 0 / 0, 0 docs
CouchbaseLite Replicator Info: {Pull#192}==> litecore::repl::Puller ->ws://192.168.33.12:4984/sg_db2/_blipsync @0x7f86bb900708
CouchbaseLite Replicator Info: {Repl#189} activityLevel=stopped: connectionState=-1
CouchbaseLite Replicator Info: {Pull#192} activityLevel=busy: pendingResponseCount=0, _caughtUp=0, _waitingForChangesCallback=0, _pendingRevMessages=0, _activeIncomingRevs=0
CouchbaseLite Replicator Info: {Repl#189} now stopped
CouchbaseLite Replicator Verbose: {Pull#192} now busy
CouchbaseLite Replicator Info: {Repl#189} activityLevel=busy: connectionState=-1
CouchbaseLite Database Info: {DB#187} Closing database
CouchbaseLite Replicator Info: {Repl#189} now busy

This might not always happens as I could see from a part of the log that worked correctly:
CouchbaseLite Replicator ERROR: {Repl#177} Got LiteCore error: POSIX error 61 "Connection refused"
CouchbaseLite Replicator Info: BLIP sent 0 msgs (0 bytes), rcvd 0 msgs (0 bytes) in 0.204 sec. Max outbox depth was 0, avg nan
CouchbaseLite Replicator Verbose: {Repl#177} progress +0/+0, 0 docs -- now 0 / 0, 0 docs
CouchbaseLite Replicator Info: {Pull#180}==> litecore::repl::Puller ->ws://192.168.33.12:4984/sg_db2/_blipsync @0x7f86b8b02098
CouchbaseLite Replicator Info: {Repl#177} activityLevel=stopped: connectionState=-1
CouchbaseLite Replicator Info: {Pull#180} activityLevel=busy: pendingResponseCount=0, _caughtUp=0, _waitingForChangesCallback=0, _pendingRevMessages=0, _activeIncomingRevs=0
CouchbaseLite Replicator Info: {Repl#177} now stopped
CouchbaseLite Replicator Verbose: {Pull#180} now busy
CBLReplicator[<* URL[ws://192.168.33.12:4984/sg_db2]]: Transient error (Connection refused); will retry in 4 sec...

@snej What could cause the activity level of Repl#189 to be busy instead of stopped?

@sridevi-15 The recent log provided above is iOS log not Android log. Could you please rerun the test with the latest android build and provide the log again? I have added more log to CBL Android so that we can understand more about the issue. Thanks.

Hi Pasin, tested with 2.5.0-179 on android.
Here is the cbl logs:
https://gist.github.com/sridevi-15/afe5aec9d86e09484a484f26e921e94a

@sridevi-15 We have fixed BUSY with Error status issue. Please test with 2.5.0-183.
Another thing is that from the log, I don't see the test server called to stop the replicator even when getting offline status. Please also double check the test code. Thanks.

@sridevi-15 Did the latest build fix the issue?

I verified on ios - 2.5.0-224 and Android 2.5.0-184. Test has passed now.

authors: pasin snej sridevi-15


text:
Port iOS Pull Replication Performance Optimization

~~https://github.com/couchbase/couchbase-lite-ios/commit/16b64c4c15133081d06101cdf040d350a1e487a5~~
https://github.com/couchbase/couchbase-lite-ios/commit/988ee30a3d15a96b4ebc84b95975434db8cd0df4 (#855)
https://github.com/couchbase/couchbase-lite-ios/commit/7877dae19c2fd154711e284c2d1d94817517d6bb (#855)
https://github.com/couchbase/couchbase-lite-ios/commit/b913a51698938f4ce36f31a8f059e855fc01e0d1 (Not compacting the body may impact memory usage https://github.com/couchbase/couchbase-lite-java-core/pull/467)
https://github.com/couchbase/couchbase-lite-ios/commit/470dbc95d37d51895c541600f7b1c8fc0e9244b3
This could help https://github.com/couchbase/couchbase-lite-android/issues/686 and https://github.com/couchbase/couchbase-lite-java-core/issues/814.

Is there any way to do fast replication of document?

@hitesh-dhamshaniya,
I have seen the majority of slow replication is caused because many documents have many conflicts. It makes pull replication slow. Please check your data fast?

I have an adapter to set list of data in recycle view. I am passing LiveQuery as an argument of adapter constructor. and call below method in the constructor. it's working fine.
public void refeshData() {
        mQuery.addChangeListener(new LiveQuery.ChangeListener() {
            @Override
            public void changed(final LiveQuery.ChangeEvent event) {
                ((Activity) mActivity).runOnUiThread(new Runnable() {
                    @Override
                    public void run() {
                        enumerator = event.getRows();
                        notifyDataSetChanged();
                    }
                });
            }
        });
        mQuery.start();
        notifyDataSetChanged();
}

Now I have to implment search functionality, but I can't find the way to do same, as if we have ArrayList I can fillter data base on search text. any thought please.

Hi @hitesh-dhamshaniya
We intend to use github issues for bug tracking mainly.
Please post a CBL related questions on Couchbase Forum? So other users can get benefit from its Q/A thread.
Thanks!

source: gharchive/issue

authors: hideki hitesh-dhamshaniya pasin

repo: couchbase/couchbase-lite-java-core

license_type: permissive

license_source: github-api


text:
Update scalastyle linter to not supress output

Recent versions of scalastyle suppress warnings when quiet==true. This turns off quiet, and suppresses non warnings.
PTAL @josh-newman

LGTM.

source: gharchive/pull-request

authors: dguo-coursera josh-newman

repo: coursera/arcanist

license_source: bigquery


text:
refactor(analytics): allow search events to go through a new clean path

Review guide:

everything in packages/headless/src/features/search/
Where I sparkled a few comments

@alexprudhomme did some more thorough testing and spotted a few issues:

Redux issue number 8, no type with the action
No customData at all are passed
This is fixed with 23f5aef

Remaining:

All the other customData that are defined by the Atomic-defined analyticsMiddleware https://github.com/coveo/ui-kit/blob/master/packages/atomic/src/components/search/atomic-search-interface/analytics-config.ts

Out of scope:

Custom/External middlewares: https://github.com/coveo/ui-kit/blob/master/packages/atomic/src/components/search/atomic-search-interface/analytics-config.ts

repo: coveo/ui-kit


text:
Add import-variables to get-doc option

Since the import-variables has been added to replace most of the functions of extra_arguments, the import variable section was no longer printed in contextual help with get-doc.

Codecov Report

Merging #117 into master will decrease coverage by 0.02%.
The diff coverage is 0%.

@@            Coverage Diff             @@
##           master     #117      +/-   ##
==========================================
- Coverage   54.76%   54.73%   -0.03%
==========================================
  Files          54       54
  Lines        4682     4684       +2
==========================================
  Hits         2564     2564
- Misses       1828     1830       +2
  Partials      290      290

Impacted Files
Coverage Δ

cli/helping.go
0% <0%> (ø)
:arrow_up:

Continue to review full report at Codecov.

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

authors: codecov-io jocgir

repo: coveooss/terragrunt

license: MIT


text:
Support for Ubuntu 18.04 Bionic Beaver

Hello,
After a lot of testing on my own, is there any way to get this script working for Ubuntu 18.04 Bionic Beaver?
My goal is to create a custom pre-installed image for VMware ESXi and I'm really stuck here.
Thank you in advance.

Hi, thanks for asking a question. Ubuntu 18.04 does not use the autoinstall method, it uses the older preseed method. You can find more information here: https://help.ubuntu.com/lts/installation-guide/amd64/apb.html
This script does not support the older method and I do not plan to implement it. However, my other project  uses the preseed method for automating the installation of Ubuntu desktop systems. You should be able to use that as a starting point (or if you need desktop versions, it might work as-is).

authors: ArielLahiany covertsh

repo: covertsh/ubuntu-autoinstall-generator


text:
Tab titles should be forced onto two lines regardless of screen width

@ahurworth reports that the tab titles are no longer wrapping on two lines.

After chatting to @helloantoine, it doesn't sound like the wrapping was actually deliberate. They do have a fixed width in Sketch but that wasn't intended to be implemented in production. We could force them onto two lines regardless of screen width but it may be difficult to do in a way that works for all languages. Will need some investigation.

@mattobee do we know the settings or phone screen size that is doing this? I haven't seen this on any device.

@kevin-sheldon I'm not sure what device @ahurworth was using but I can see the same behaviour on a OnePlus 6 where "My Health Log" fits onto one line. There is nothing forcing them to wrap onto two lines so it will happen on any screen above a certain size/resolution.

authors: kevin-sheldon mattobee

repo: covid-alert-ny/covid-green-app


text:
Dark mode UI issues

Describe the bug
Texts are almost unreadable in dark mode.
To Reproduce
Steps to reproduce the behavior:

Go to demographics page
See error

Expected behavior
A clear and contrast view of text as some user may be color blind and even for normal user it is very hard to read that grey text and the blue text over blue background.
Screenshots
You can see the contrast ratio score in chrome itself.

Desktop (please complete the following information):

OS: windows 10
Browser chrome
Version 81

Additional context
Better to check this site for reference on setting color contrast for better readability: https://contrastchecker.com/

Closing in favor of #1417, let's track the issue there :)

authors: chatRG jeremyphilemon


text:
List of known data sources

Original issue https://github.com/covidatlas/coronadatascraper/issues/810, transferred here on Tuesday Apr 14, 2020 at 18:43 GMT

Below are the list of sources (outside of the US) that we are currently aware of. If you know a source that is not on this list, please file an issue, and we will update this document!
Status definition:
✅ Source is actively scraped by this project
🏗  Someone is working on a scraper for this source
🐛 Source is buggy, needs fixing
Aggregate sources
ArcGIS maintains a list of all dashboards by country: https://www.arcgis.com/apps/opsdashboard/index.html#/a9419e61cb6f4521a15baf78be309b35
Contains data for a number of Latin American countries:
https://github.com/DataScienceResearchPeru/covid-19_latinoamerica
Africa

Status
ISO Code
Name
URL
Notes

TN
Tunisia Ministry of Health
https://services6.arcgis.com/BiTAc9ApDDtL9okN/arcgis/rest/services/Statistiques_par_gouvernorat_(nouvelle_donnée)/FeatureServer/0/query

✅
ZA
COVID 19 Data for South Africa
https://github.com/dsfsi/covid19za

Asia/Pacific

Status
ISO Code
Name
URL
Notes

AF
Afghanistan COVID-19 Stats by Province
https://docs.google.com/spreadsheets/d/1F-AMEDtqK78EA6LYME2oOsWQsgJi4CT3V_G4Uo-47Rg/edit#gid=2026243039
Need to verify source

✅
AU-ACT
ACT Government Health
https://www.health.act.gov.au/about-our-health-system/novel-coronavirus-covid-19

✅
AU
WA Health
https://ww2.health.wa.gov.au/Articles/A_E/Coronavirus/COVID19-statistics

✅
AU-NSW
NSW Government Health
https://www.health.nsw.gov.au/_layouts/feed.aspx?xsl=1&web=/news&page=4ac47e14-04a9-4016-b501-65a23280e841&wp=baabf81e-a904-44f1-8d59-5f6d56519965&pageurl=/news/Pages/rss-nsw-health.aspx

✅
AU-NT
Northern Territory Government
https://coronavirus.nt.gov.au/

✅
AU-QLD
QLD Government Health
https://www.health.qld.gov.au/news-events/doh-media-releases

✅
AU-SA
SA Health
https://www.sahealth.sa.gov.au/wps/wcm/connect/public+content/sa+health+internet/health+topics/health+topics+a+-+z/covid+2019/latest+updates/confirmed+and+suspected+cases+of+covid-19+in+south+australia

✅
AU-VIC
Victoria State Government Health and Human Services
https://www.dhhs.vic.gov.au/media-hub-coronavirus-disease-covid-19

✅
AU
Australian Government Department of Health
https://www.health.gov.au/news/health-alerts/novel-coronavirus-2019-ncov-health-alert/coronavirus-covid-19-current-situation-and-case-numbers

✅
ID
Ministry of Health Republic of Indonesia
https://www.kemkes.go.id

✅
IN

https://www.mohfw.gov.in/

✅
KR
Ministry of Health and Welfare
http://ncov.mohw.go.kr/en/bdBoardList.do?brdId=16&brdGubun=162&dataGubun=&ncvContSeq=&contSeq=&board_id=

✅
NZ
New Zealand Government Ministry of Health
https://www.health.govt.nz/our-work/diseases-and-conditions/covid-19-novel-coronavirus/covid-19-current-situation/covid-19-current-cases

✅
RU
Rospotrebnadzor
https://yandex.ru/maps/api/covid?csrfToken=

✅
SA

https://datasource.kapsarc.org/explore/dataset/saudi-arabia-coronavirus-disease-covid-19-situation/download/?format=csv&disjunctive.daily_cumulative=true&disjunctive.region=true&refine.daily_cumulative=Daily&timezone=America/Los_Angeles&lang=en&csv_separator=%2C

✅
TH
Department of Disease Control Thailand
https://ddc.moph.go.th/viralpneumonia/eng/index.php

Europe

Status
ISO Code
Name
URL
Notes

✅
AT
Austrian Ministry of Health
https://info.gesundheitsministerium.at

✅
AT
COVID-19/SARS-COV-2 Cases in EU
https://github.com/covid19-eu-zh/covid19-eu-data

✅
BE
Sciensano
https://epistat.wiv-isp.be/covid/

✅
CH
covid19-cases-switzerland
https://github.com/daenuprobst/covid19-cases-switzerland/

🐛
CY
Official website for Cyprus Open Data
https://www.data.gov.cy/sites/default/files/CY Covid19 Daily Statistics_6.csv

✅
CZ
Ministry of Health of the Czech Republic
https://onemocneni-aktualne.mzcr.cz/

✅
DE
Dr. Jan-Philip Gehrcke
https://raw.githubusercontent.com/jgehrcke/covid-19-germany-gae/master/data.csv

✅
EE
Estonia Health and Welfare Information Systems Center
https://opendata.digilugu.ee/opendata_covid19_test_results.csv

✅
ES
Antonio Delgado
https://github.com/datadista/datasets/tree/master/COVID 19

FI
THL
https://media-koronatilanne.hub.arcgis.com/datasets/bae4e3d772534e58998a9e4ff5c0bf7e_0/data?geometry=-37.220%2C58.184%2C87.936%2C71.082&orderBy=sairaanhoitopiiri&showData=true
Reports health district data

✅
FR
Santé publique France
https://www.data.gouv.fr/fr/organizations/sante-publique-france/datasets-resources.csv

✅
GB
GOV.UK
https://coronavirus.data.gov.uk/

🐛
GB-SCT

https://www.gov.scot/coronavirus-covid-19/

HR
Koronavirus.hr
https://www.koronavirus.hr/
Reports each region in individual pages

🏗 #660
HU
Koronamonitor
https://docs.google.com/spreadsheets/d/1e4VEZL1xvsALoOIq9V2SQuICeQrT5MtWfBm32ad7i8Q/edit#gid=311133316

✅
IE
Ireland Open Data Portal
http://opendata-geohive.hub.arcgis.com/datasets/d9be85b30d7748b5b7c09450b8aede63_0.csv?outSR={"latestWkid":3857,"wkid":102100}

✅
IT
pcm-dpc/COVID-19
https://raw.githubusercontent.com/pcm-dpc/COVID-19/master/dati-regioni/dpc-covid19-ita-regioni.csv

IS
Ministry of Health of Iceland
https://www.covid.is/data
All the actual data is here: https://e.infogram.com/e3205e42-19b3-4e3a-a452-84192884450d?src=embed

✅
LT
Ministry of Health of the Republic of Lithuania
https://services.arcgis.com/XdDVrnFqA9CT3JgB/arcgis/rest/services/covid_locations/FeatureServer/0/query

✅
LV
Latvia Management of the Center for Disease Prevention and Control
https://services7.arcgis.com/g8j6ESLxQjUogx9p/arcgis/rest/services/Latvia_covid_novadi/FeatureServer/0/query

✅
NL
CoronaWatchNL
https://github.com/J535D165/CoronaWatchNL

NO
vg.no
https://www.vg.no/spesial/2020/corona/
Has a hidden API which could be scraped, news organization

✅
PL
covid19-eu-zh
https://github.com/covid19-eu-zh/covid19-eu-data

✅
PL
Ministry of Health of the Republic of Poland
https://www.gov.pl/web/koronawirus/wykaz-zarazen-koronawirusem-sars-cov-2

PR
dssg-pt/covid19pt-data
https://github.com/dssg-pt/covid19pt-data
Could be low quality

RO
geo-spatial.org
https://covid19.geo-spatial.org/despre
Provides an API

RS
Serbia Open Data
https://covid19.data.gov.rs/?locale=en

✅
SE
Public Health Agency of Sweden
https://services5.arcgis.com/fsYDFeRKu1hELJJs/arcgis/rest/services/FOHM_Covid_19_FME_1/FeatureServer/1/query

✅
SI
COVID-19 Sledilnik
https://raw.githubusercontent.com/slo-covid-19/data/master/csv/stats.csv

✅
UA
National Security and Defense Council of Ukraine
https://api-covid19.rnbo.gov.ua/data?to= // append YYYY-MM-DD

North/South America

Status
ISO Code
Name
URL
Notes

✅
BR
Secretaria de Vigilância em Saúde do Ministério da Saúde
https://covid.saude.gov.br/

✅
CA
Public Health Agency of Canada
https://health-infobase.canada.ca/src/data/covidLive/covid19.csv

CA

https://resources-covid19canada.hub.arcgis.com/app/82e586188b7049e1896b771cd4875815
Provides data at the health district level

🏗 #788
CA-NS
Government of Nova Scotia
https://novascotia.ca/coronavirus/data/COVID-19-data.csv

GT
Ministry of Health of Guatemala
https://www.mspas.gob.gt/index.php/noticias/coronavirus-2019-ncov

✅
PR
Gobierno de Puerto Rico Departamento de Salud
http://www.salud.gov.pr/Pages/coronavirus.aspx

SV
Ministry of Health of El Salvador
https://covid19.gob.sv/

✅
VI
United States Virgin Islands Department of Health
https://doh.vi.gov/covid19usvi

(Transferred comment)
See also #671. I'm going to see if I can implement something along those lines.

repo: covidatlas/li


text:
Greek Translation

{
"Getting a Fact ...": "Λήψη Γεγονότος ...",
"Random Fact": "Τυχαίο γεγονός"
}

Thank you

repo: cowboysdude/MMM-rfacts


text:
Add spacing around questions

The questions run into each other and are difficult to separate visually.
Also, the vote button is floating in the middle of the question.
Before

After

bump. I'm having a hard time determining when one question ends and the next one begins. Are there some changes you would like to see?

repo: cozmo/senatus

license: mit


text:
Fix bad file from stack

In getFileAndLine, remove the 4 first lines:
Error
  at Logger.getFileAndLine (.../node_modules/printit/main.js:51:18)
  at Logger.format (.../node_modules/printit/main.js:65:26)
  at Logger.debug (.../node_modules/printit/main.js:120:32)

Fix #11

Great, thank you @nono!

authors: frankrousseau nono

repo: cozy/printit


text:
Update python_client.md

Tested this and it works. The API supports "human" and not "person" as previously stated.
Please describe the purpose of this pull request.
Is it to add a new feature? Is it to fix a bug?
How to test
How can we test your PR during review? What commands should we run? What outcomes should we expect?
Have you tested this PR?
Have you tested the latest commit on the PR? If so please provide outputs from your tests.
Related issues or PRs
Please link any related GitHub issues or PRs.
Is your PR over 500 lines of code?
If so, please break up your PR into multiple smaller PRs so that we can review them quickly, or provide justification for its length.
Additional context
Add any other context or screenshots about the PR here.

Discussed this with @sanegaming and we agreed this is a valid change.
I also tested this locally and it works.

repo: cpacker/MemGPT


text:
Expand example / test

Showcase all features:

All styles
RGB
format_to

File issues for any bugs discovered.

I'm a newbie to open source, I really want to start contributing... it would be great if you could tell me what exactly are you looking for.  please guide me if you can :)

Hey @scopophobic, glad you'd like to contribute! As of now the library supports the following styles:
b (bold)
i (italic)
u (underline)
dim
blink
invert
strike
reset
clear

And foreground colour via rgb=RGB (where R, G, B => [0, 5]), though this syntax will probably change after exposing background colours too.
The library also exposes several functions apart from print, like format: which returns a string, and format_to, which writes to an existing char buffer (and returns the next iterator to write to).
The goal of this issue is to demonstrate all these features in the example.

Thanks, @karnkaul this helps but I'm finding problem with CMake. I have never used CMake, I'm only familiar with C++ so it would be great if you could point to me some resources.
Thanks :)

@scopophobic I'd recommend going through Mastering CMake. For this Issue all you need is to do is use CMake to generate a project that you can then build/run/debug/etc: eg on Windows use the Visual Studio generator, on MacOS the Xcode generator, etc. Open CMake GUI, set the "source files" path to the repo root, the "build files" path to a subdir like build, click Configure, pick the generator, click Generate, and then open the project and code as usual.

authors: karnkaul scopophobic

repo: cpp-gamedev/forest


text:
Msvc fixes

This branch fixes several problems, all of which I encountered getting the library up-and-running as a DLL using Visual Studio. One of those problems was Issue #48, so there's a fix for that in this pull request.
This pull request also includes a fix for a couple of mischievous #include statements that made it hard to run an automatic amalgamator on the URI library.
The other fixes should be clear. One change is converting the dllexport declaration from per-class to per-function. This eliminates compiler warnings when building or using the library. Apparently it's not a good idea to mix per-class dllexport declarations with classes that contain STL members, such as std::string.

Hi Craig,
Thanks for doing this. But I have a question: you say that it's not a good idea to mix per-class dllexport declarations with classes that contain STL members. Do you have a link to something that explains this? It's interesting you say it because I have usually have seen the dllexport declarations made per-class. I'm not normally a Windows programming guy, so I don't fully know all the subtleties.

I reverted the per-member dllexport declarations to be per-class again. This follows the Boost guidelines, where the key is disabling compiler warnings with #pragma.
The resulting pull request has gotten a tad messy, what with all the commits, some undoing others. You may want to squash the merge.

I am happy with the changes as they are. Many thanks for your contribution!

Thank you for making this library!

authors: cmbrandenburg glynos

repo: cpp-netlib/uri


text:
typo in code of pyglet window example?

Description
I haven't run it, but on inspection of the pyglet window example, at this line:
https://github.com/cprogrammer1994/ModernGL/blob/master/examples/window/pyglet/window.py#L37
I think the assignment of config.minor_version contain a bug:
config.major_version = self.gl_version[0]
config.minor_version = self.gl_version[0] # should be 1, not 0

Possibly undetected because the default glversion is (3, 3)

Wow. Thank you for pointing this out. Fixing right now.

Fixed. Merged. Close 😄

Thank you for the bug report, and Thank you for the fix :)

This inspired #285 causing a lot of other fixes as well.

authors: cprogrammer1994 einarf tartley


text:
incompatibility with pyhton 3.11.4

when Im trying to run festin Im getting this error
└─$ festin -h
[!] Python 3.8 or above is required
If you don't want to install Python 3.8. Try with Docker:
$ docker run --rm cr0hn/festin -h
any clue?

im using a vm with 6.3.0-kali1-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.3.7-1kali1 (2023-06-29) x86_64 GNU/Linux

You need to run Python 3.8 or higher. I don't know what version is included in Kali 6.3.0, sorry.


text:
Remove support of skip-git option

There is no reason or need to roll a new app without Git.
Doing so breaks Heroku setup as we need to setup Git remotes.
This commit removes the support of this option until we really need it.

:+1:

authors: kevcha mehlah

repo: craftsmen/roll


text:
refactor(randwords): remove

This was unused, and the word list needed better filtering to be viable.

Why is base 64 a problem?
On Wed, Apr 3, 2024 at 10:53 AM Miroslav Shubernetskiy <
@.***> wrote:

@.**** commented on this pull request.
cc @drraid https://github.com/drraid you had some ideas how to generate
better password for co-sign vs base64. Not sure if cleaning up random words
to use for password generator in chalk would make more sense
—
Reply to this email directly, view it on GitHub
https://github.com/crashappsec/nimutils/pull/64#pullrequestreview-1977083904,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABELGQNPU3WYC6EIVOT36Z3Y3QJVLAVCNFSM6AAAAABD7WH5RGVHI2DSMVQWIX3LMV43YUDVNRWFEZLROVSXG5CSMV3GSZLXHMYTSNZXGA4DGOJQGQ
.
You are receiving this because your review was requested.Message ID:
@.***>

I think @drraid comment came out of the chalk messaging:
https://github.com/crashappsec/chalk/blob/66a5bb4b979e9b94f881abf929363db164cba975/src/attestation/embed.nim#L24-L28
Write this down. In future chalk commands, you will need
to provide it via CHALK_PASSWORD environment variable.

writing down base64 is not ideal I think vs a collection of words so it was mostly a UX thing, not a security issue but he can comment better on his thoughts

It would take 5 minutes to migrate to a smaller wordlist with an RFC behind
it.  Might make sense to do; I’m stuck in meetings but maybe later
afternoon will hit you up on slack.
On Wed, Apr 3, 2024 at 10:58 AM Miroslav Shubernetskiy <
@.***> wrote:

I think @drraid https://github.com/drraid comment came out of the chalk
messaging:
https://github.com/crashappsec/chalk/blob/66a5bb4b979e9b94f881abf929363db164cba975/src/attestation/embed.nim#L24-L28
Write this down. In future chalk commands, you will need
to provide it via CHALK_PASSWORD environment variable.
writing down base64 is not ideal I think vs a collection of words so it
was mostly a UX thing, not a security issue but he can comment better on
his thoughts
—
Reply to this email directly, view it on GitHub
https://github.com/crashappsec/nimutils/pull/64#issuecomment-2034855938,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABELGQKVARG5XXH6VAMNIFLY3QKKFAVCNFSM6AAAAABD7WH5RGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMZUHA2TKOJTHA
.
You are receiving this because your review was requested.Message ID:
@.***>

repo: crashappsec/nimutils


text:
Get platform / iOS version from payload?

Hey, is it possible to get the platform and version distribution information from the payload so these can be included in service integrations? It looks like this isn't there now; can it be added?
Thanks!

I think this can be closed, because actually we get the platform from payload.
I've tested it via WebHooks and we get it with json like this:
{"payload" : { "app" : { "platform" : "iOS" }}}

Thanks @stefma for pointing this out.  Including OS version isn't available at this time because an issue can span multiple versions of the OS and this information isn't available in this rollup view that we provide at the issue level.  Closing this out for now.

authors: StefMa ablock jladieu

repo: crashlytics/crashlytics-services


text:
Update gradle wrapper scripts and jar

Summary of the changes / Why this improves CrateDB
Update old gradlew scripts along with the wrapper jar.
Checklist

[x] Added an entry in CHANGES.txt for user facing changes
[x] Updated documentation & sql_features table for user facing changes
[x] Touched code is covered by tests
[x] CLA is signed
[x] This does not contain breaking changes, or if it does:

It is released within a major release
It is recorded in CHANGES.txt
It was marked as deprecated in an earlier release if possible
You've thought about the consequences and other components are adapted
(E.g. AdminUI)

bit confused by the description - we are not updating a Gradle wrapper version, it's rather some cleanup of scripts? asking since we do version update like https://github.com/crate/crate/pull/12205/commits/f607e21c6698b24258b8b08f8f8ac32fe960e122

bit confused by the description - we are not updating a Gradle wrapper version, it's rather some cleanup of scripts? asking since we do version update like f607e21

gradle != gradlewrapper
you can have older gradle wrapper (jar and scripts) but still ask it to download and use more recent gradle version

authors: BaurzhanSakhariev matriv

repo: crate/crate


text:
remove GeoReferenceInfo.Builder

The only usage of the Builder is actually simpler if the builder is
removed.

ack

authors: mfussenegger seut


text:
Clarify geo point and geo shape

We were asked to clarify and clear up the docs around geo point and geo shape, hopefully this still makes sense.
You seem to be the last committer @kovrus so why don't you have a go at an 'ack'

ack

authors: ChrisChinchilla kovrus


text:
[BUG] crc config set regression after commit f9a0a4a83

Before commit f9a0a4a83:
$ crc config set preset openshift
$ crc config set cpus 5
Changes to configuration property 'cpus' are only applied when the CRC instance is started.
If you already have a running CRC instance, then for this configuration change to take effect, stop the CRC instance with 'crc stop' and restart it with 'crc start'.
$ crc config set cpus 4
Changes to configuration property 'cpus' are only applied when the CRC instance is started.
If you already have a running CRC instance, then for this configuration change to take effect, stop the CRC instance with 'crc stop' and restart it with 'crc start'.
$

After commit f9a0a4a83, when setting cpus to its default value we no longer get the warning:
$ crc config set cpus 5
Changes to configuration property 'cpus' are only applied when the CRC instance is started.
If you already have a running CRC instance, then for this configuration change to take effect, stop the CRC instance with 'crc stop' and restart it with 'crc start'.
$ crc config set cpus 4
$

has the value been set (removed from the config/reset to default)?

has the value been set (removed from the config/reset to default)?

Yes, it's only the message which is missing:
$ crc config get cpus
Configuration property 'cpus' is not set. Default value is '4'

Not sure if this can go under the same issue (new default values behavior).
$ crc config set preset openshift
$ echo $?
0
$ crc config get preset
Configuration property 'preset' is not set. Default value is 'openshift'
$ echo $?
1

I'm doing some checks in tests and exitcode 1 is not what I would expect given that I just successfully set a preset.

Not sure if this can go under the same issue (new default values behavior).
$ crc config set preset openshift
$ echo $?
0
$ crc config get preset
Configuration property 'preset' is not set. Default value is 'openshift'
$ echo $?
1

I'm doing some checks in tests and exitcode 1 is not what I would expect given that I just successfully set a preset.

This specific issue is caused by https://github.com/crc-org/crc/commit/f9a0a4a830a3fea39cffc2610efde4d21f6868bf , but the root cause is what is being discussed here.

(reopened to continue the conversation around exit codes for crc config command)

Exit code bug is also fixed, closing it now.

authors: anjannath cfergeau gbraad jsliacan praveenkumar

repo: crc-org/crc


text:
Parse and report JSON error messages when requests fail

On error, the v2 API reports a JSON text along with the status code. The exact format isn't clear, but it has the general shape:
{
  "errors": [ {"message": "you done broke it", "code": 45} ]
}

The response codes are defined here: https://developer.twitter.com/en/docs/response-codes. In the wild, though, the format varies quite a bit. Sometimes the top-level message has status and details as additional keys:
{
  "errors": [
    {
      "parameters": {
        "expansions": [
          "3"
        ]
      },
      "message": "The `expansions` query parameter value [3] is not one of [pinned_tweet_id]"
    }
  ],
  "title": "Invalid Request",
  "detail": "One or more parameters to your request was invalid.",
  "type": "https://api.twitter.com/2/problems/invalid-request"
}

Other times everything is inside the array:
{
  "errors": [
    {
      "detail": "Could not find user with username: [fal27f87fse].",
      "title": "Not Found Error",
      "resource_type": "user",
      "parameter": "username",
      "value": "fal27f87fse",
      "type": "https://api.twitter.com/2/problems/resource-not-found"
    }
  ]
}

The API docs don't appear to document the expected formats. Figure out some reasonable way to interpret these values, and attach them to error values.

This seems to have some useful details: https://developer.twitter.com/en/support/twitter-api/error-troubleshooting

From the OpenAPI schema:
curl https://api.twitter.com/2/openapi.json|jq '.components.schemas.Error'
{
  "required": [
    "code",
    "message"
  ],
  "properties": {
    "code": {
      "type": "integer",
      "format": "int32"
    },
    "message": {
      "type": "string"
    }
  }
}

This matches what's mentioned in the response codes doc. The schema also incorporates the RFC 7807 HTTP Problem Details object. That looks closer to what I'm getting.

Commit 3607a3d2 et seq. address part of this issue. The error wrapper now captures the error response and allows the caller to retrieve it, but I didn't add any data types for decoding the contents. The RFC 7807 schema looks more complicated than I really want to deal with right now.

Commit 30ee1684 addresses most of this, to the point where I'm going to consider this issue resolved. There are still some corner cases I think we don't handle, but the basic plumbing works and I can fix other errors as they arise.

repo: creachadair/twitter


text:
[API Integration] Rijksmuseum

Provider API Endpoint / Documentation

https://data.rijksmuseum.nl/object-metadata/api/
Provider description

The object-metadata API provides the images collected by the Rijksmuseum.
Licenses Provided

Majority items are under Public Domain; Very samll amount of data may fall under CC-BY
Provider API Technical info

Rate Limits: An exact number has not been mentioned in the documentation; however the documentation mention that there is a limit
Overall Volume: 450015
The current API (called the live API) allows to access only 10000 images. The same source provides another API called the OAI-API which has apparently no such restrictions but which gives results in the LIDO, Darwin Core or European Data Model formats i.e. XML formats. It is possible to parse XML responses but that would leave much manual work to be done in this script since the higher level get_response_json of DelayedRequestor cannot be used.
Checklist to complete before beginning development

No development should be done on a Provider API Script until the following info is gathered:

[x] Verify there is a way to retrieve the entire relevant portion of the provider's collection in a systematic way via their API.
[x] Verify the API provides license info (license type and version; license URL provides both, and is preferred)
[x] Verify the API provides stable direct links to individual works.
[x] Verify the API provides a stable landing page URL to individual works.
[x] Note other info the API provides, such as thumbnails, dimensions, attribution info (required if non-CC0 licenses will be kept), title, description, other meta data, tags, etc.
[ ] Attach example responses to API queries that have the relevant info.

General Recommendations for implementation

The script should be in the src/cc_catalog_airflow/dags/provider_api_scripts/ directory.
The script should have a test suite in the same directory.
The script must use the ImageStore class (Import this from
src/cc_catalog_airflow/dags/provider_api_scripts/common/storage/image.py).
The script should use the DelayedRequester class (Import this from
src/cc_catalog_airflow/dags/provider_api_scripts/common/requester.py).
The script must not use anything from
src/cc_catalog_airflow/dags/provider_api_scripts/modules/etlMods.py, since
that module is deprecated.
If the provider API has can be queried by 'upload date' or something similar,
the script should take a --date parameter when run as a script, giving the
date for which we should collect images. The form should be YYYY-MM-DD (so,
the script can be run via python my_favorite_provider.py --date 2018-01-01).
The script must provide a main function that takes the same parameters as from
the CLI. In our example from above, we'd then have a main function
my_favorite_provider.main(date). The main should do the same thing calling
from the CLI would do.
The script must conform to PEP8. Please use pycodestyle (available via
pip install pycodestyle) to check for compliance.
The script should use small, testable functions.
The test suite for the script may break PEP8 rules regarding long lines where
appropriate (e.g., long strings for testing).

Examples of other Provider API Scripts

For example Provider API Scripts and accompanying test suites, please see

src/cc_catalog_airflow/dags/provider_api_scripts/flickr.py and
src/cc_catalog_airflow/dags/provider_api_scripts/test_flickr.py, or
src/cc_catalog_airflow/dags/provider_api_scripts/wikimedia_commons.py and
src/cc_catalog_airflow/dags/provider_api_scripts/test_wikimedia_commons.py.

@mathemancer Please review this. I am interested in working on this.

@dravadhis I think we're pulling Rijksmuseum data through our Europeana integration.  @annatuma can you confirm?
If this is the case, we don't need a separate integration.

That's correct @mathemancer - previously we had their data through Common Crawl (I think) but with the Europeana integration we'll be able to get a fuller collection.
Thank you for the suggestion though @dravadhis

authors: annatuma dravadhis mathemancer

repo: creativecommons/cccatalog


text:
missing "of"

exactly what it says on the tin

So, you won't be able to apply this one directly, because we moved files around, but I think this is a legit typo.

d470016

d470016

Hi

Want to used thos

authors: LillianahPulido kengraWin mattl medo05 mindspillage

repo: creativecommons/policies


text:
[Achievements] make the notification use the description and not the title.

because lol: http://www.creesch.com/screenshots/2015-05-15_22-01-15.png

Fixed in 3.0 release.

repo: creesch/reddit-moderator-toolbox


text:
🛑 Aqsalaan Logistics Website is down

In 6af02d5, Aqsalaan Logistics Website (https://aqsalaanlogistics.co.tz/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Aqsalaan Logistics Website is back up in a1adfb0.

repo: crefati/monitoring


text:
Creating a Sandbox

Targeting week of March 22. @mQkatz has requested to be involved.

Sandbox created https://sandbox.cribl.io/course/appscope

authors: coccyx monikamarko

repo: criblio/appscope


text:
There is an ERROR for package-win

I got this error after run sudo npm run package-win
also I tried package-mac worked correct.

Hi!
You need to install wine to build package an electron app on macOS. You can read more here:
https://github.com/electron-userland/electron-packager#building-windows-apps-from-non-windows-platforms

Hi. I installed the wine. But still i got same error.

the error message now is "wine is not owned by you"
i'm not familiar with running wine unfortunately. when googling that error message it seems you need to set some kind of permission.

authors: crilleengvall ue

repo: crilleengvall/electron-tutorial-app


text:
Git graph log

probably it was more suitable as an alias for git, but why not?)

ACK, why not

authors: cristaloleg moeryomenko

repo: cristaloleg/awesome-oneliners


text:
Performance & reliability improvements

check_ospf.py was crashing in my environment, mostly due to failing to parse some of my neighbours correctly (1000+ stubs). This fixes it and improves performance at the same time.

Thx for fix.
This fixed my issue with incorrect display neighbors, like:

 // DEBUG ospf_neighbor_data
 Name             Data
 -----            -------------------------
 Neighbor01      ['Neighbor IP', '172.20.1.2', 'RID', '172.20.101.102', 'RID', '172.20.101.5', 'RID', '172.20.101.6', 'State', '8', 'State', '8', 'State', '8']
 Neighbor02      ['Neighbor IP', '172.20.1.6', 'RID', '172.20.101.3', 'RID', '172.20.101.11', 'State', '8', 'State', '8']
 Neighbor03      ['Neighbor IP', '172.20.1.14', 'RID', '172.20.101.4', 'State', '8']
 Neighbor04      ['Neighbor IP', '172.20.1.21', 'RID', '172.20.101.5', 'State', '8']


text:
Update AST to support cyclic data structures

This is so that we can handle things like:
expr.inferred_type = Some(t.clone());
t.provenance = Some(Box::from(expr.to_owned()));

without having to clone everything.
https://eli.thegreenplace.net/2021/rust-data-structures-with-circular-references/ describes a few possible approaches.  The first approach which makes use of Rc and RefCell looks like the most promising.

I tried using Rc<RefCell<T>>, but it moves the borrow checking to the runtime which makes it even more annoying.  Instead of doing this, I ended up updating types and AST nodes to be mutable.  It doesn't support cycle data structures, but it means that references between types and AST nodes will stay up-to-date as different parts of the data structures are updated.

repo: crochet-lang/crochet


text:
Try to fix FIPS alg search.

The link:
https://csrc.nist.gov/projects/Cryptographic-Algorithm-Validation-Program/validation-search?searchMode=implementation&page=1&ipp=250 does not work, gives 408. Their search on the site which queries this also does not work.
However, when one searches by "validation" it does work. There is no difference to us, as we do not have any queries and simply want all the data.

ffs, now I am getting:
KeyError: 'Validation Number'
  File "pandas/core/indexes/base.py", line 3802, in get_loc
    return self._engine.get_loc(casted_key)
  File "pandas/_libs/index.pyx", line 138, in pandas._libs.index.IndexEngine.get_loc
  File "pandas/_libs/index.pyx", line 165, in pandas._libs.index.IndexEngine.get_loc
  File "pandas/_libs/hashtable_class_helper.pxi", line 5745, in pandas._libs.hashtable.PyObjectHashTable.get_item
  File "pandas/_libs/hashtable_class_helper.pxi", line 5753, in pandas._libs.hashtable.PyObjectHashTable.get_item
KeyError: 'Validation Number'
  File "dramatiq/worker.py", line 485, in process_message
    res = actor(*message.args, **message.kwargs)
  File "dramatiq/actor.py", line 177, in __call__
    return self.fn(*args, **kwargs)
  File "sec_certs_page/common/tasks.py", line 503, in wrapper
    return f(*args, **kwargs)
  File "sec_certs_page/fips/tasks.py", line 171, in update_data
    updater.update()
  File "sec_certs_page/common/tasks.py", line 337, in update
    raise e
  File "sec_certs_page/common/tasks.py", line 253, in update
    to_reindex = self.process(dset, paths)
  File "sec_certs_page/fips/tasks.py", line 127, in process
    dset.process_auxiliary_datasets(update_json=False)
  File "sec_certs/serialization/json.py", line 108, in _serialize
    result = func(*args, **kwargs)
  File "sec_certs/dataset/fips.py", line 253, in process_auxiliary_datasets
    self.auxiliary_datasets.algorithm_dset = self._prepare_algorithm_dataset(download_fresh)
  File "sec_certs/utils/profiling.py", line 41, in wrapper
    return func(*args, **kwargs)
  File "sec_certs/dataset/fips.py", line 258, in _prepare_algorithm_dataset
    alg_dset = FIPSAlgorithmDataset.from_web(self.algorithm_dataset_path)
  File "sec_certs/dataset/fips_algorithm.py", line 58, in from_web
    algs = set(itertools.chain.from_iterable(FIPSAlgorithmDataset.parse_algorithms_from_html(x) for x in htmls))
  File "sec_certs/dataset/fips_algorithm.py", line 58, in <genexpr>
    algs = set(itertools.chain.from_iterable(FIPSAlgorithmDataset.parse_algorithms_from_html(x) for x in htmls))
  File "sec_certs/dataset/fips_algorithm.py", line 99, in parse_algorithms_from_html
    df["alg_type"] = df["Validation Number"].map(lambda x: re.sub(r"[0-9\s]", "", x))
  File "pandas/core/frame.py", line 3807, in __getitem__
    indexer = self.columns.get_loc(key)
  File "pandas/core/indexes/base.py", line 3804, in get_loc
    raise KeyError(key) from err

repo: crocs-muni/sec-certs


text:
Add registry and help commands to bootstrap script

Looks like these commands were never added to bootstrap.sh  when they were created.
Signed-off-by: hasheddan georgedanielmangum@gmail.com

@jbw976 I think this is ready to go now :)

repo: crossplane/crossplane-cli


text:
Don't set controller references for dynamically provisioned resources

Description of your changes

Resource claims are namespaced, but the managed resources they dynamically provision are cluster scoped. A namespaced resource cannot, by design, own a cluster scoped resource. This has been a known issue for a long time, but we recently learned that it can result in the managed resources being unintentionally garbage collected by Kubernetes per https://github.com/crossplaneio/stack-gcp/issues/99.
Resource claims and managed resources already reference each other via their resourceRef and claimRef; we had set the owner reference purely to delete dynamically provisioned managed resources along with their claim. Dynamically provisioned managed resources will now always stick around until explicitly cleaned up. We intend to address this by repurposing the existing reclaimPolicy field per https://github.com/crossplaneio/crossplane-runtime/issues/21
Checklist

I have:

[x] Run make reviewable to ensure this PR is ready for review.
[x] Ensured this PR contains a neat, self documenting set of commits.
[ ] Updated any relevant documentation, examples, or release notes.
[ ] Updated the RBAC permissions in clusterrole.yaml to include any new types.

I've tested this change by:

Dynamically provisioning a CloudSQLInstance via a PostgreSQLInstance claim
Deleting the PostgreSQLInstance claim.
Confirming the CloudSQLInstance remains, but returns to the Unbound binding phase, with a nil claim reference.

@negz Why not keep the current behavior by just deleting the managed resource when the claim is deleted via resourceRef instead of owner reference?

@muvaf This was the minimal change to fix the bug; I didn't want to do too much in one PR. I will have another PR open in a few minutes that reintroduces support for deleting managed resources when their claim is deleted.

I will have another PR open in a few minutes

https://github.com/crossplaneio/crossplane-runtime/pull/87

repo: crossplaneio/crossplane-runtime


text:
[usecase-wrt] Remove some tests due to change to auto tests

Impacted TCs num(approved): New 0, Update 0, Delete 7

The auto tests pr link: https://github.com/crosswalk-project/crosswalk-test-suite/pull/2045

Updated

repo: crosswalk-project/crosswalk-test-suite


text:
[doc] Import and revise web test suite packaging design document

https://crosswalk-project.org/jira/browse/XWALK-4192

@yugang @jennycao please take a look at this, thanks.


text:
Feature spring boot3 upgrade and native build

Basic information

nrich-demo-backend version:

Additional information

Description
Summary
Upgraded to Spring Boot 3 and added required configuration for native build.
Details
Upgraded to Spring Boot 3 and added required configuration for native build.
Related issue

Types of changes

Breaking change (fix, enhancement or feature that would cause existing functionality to change in backward-incompatible way)
Dependency upgrade

Checklist

[x] I have read the project's CONTRIBUTING document
[x] I have checked my code with the project's static analysis tooling
[x] I have formatted my code with the project's IDEA code-style configuration
[x] I have checked my code for misspellings
[x] I have organized my changes in easy-to-follow commits
[ ] My change requires a change to the documentation
[ ] I have updated the documentation accordingly
I have added tests to cover my changes
[ ] All new and existing tests pass

Codecov Report
Patch coverage: 100.00% and project coverage change: +0.01 :tada:

Comparison is base (219e0b3) 97.16% compared to head (fae850f) 97.17%.

Additional details and impacted files
@@             Coverage Diff              @@
##             master      #20      +/-   ##
============================================
+ Coverage     97.16%   97.17%   +0.01%
- Complexity       97       98       +1
============================================
  Files            39       40       +1
  Lines           247      248       +1
  Branches          4        4
============================================
+ Hits            240      241       +1
  Misses            7        7

Impacted Files
Coverage Δ

.../nrichdemobackend/excel/model/ExcelDemoEntity.java
100.00% <ø> (ø)

...guration/request/FormConfigurationDemoRequest.java
0.00% <ø> (ø)

...on/request/NestedFormConfigurationDemoRequest.java
0.00% <ø> (ø)

...d/infrastructure/persistence/model/BaseEntity.java
100.00% <ø> (ø)

...obackend/main/service/DefaultBootstrapService.java
100.00% <ø> (ø)

.../notification/request/NotificationDemoRequest.java
0.00% <ø> (ø)

.../croz/nrichdemobackend/registry/model/Address.java
100.00% <ø> (ø)

...t/croz/nrichdemobackend/registry/model/Author.java
100.00% <ø> (ø)

...oz/nrichdemobackend/registry/model/AuthorBook.java
100.00% <ø> (ø)

.../nrichdemobackend/registry/model/AuthorBookId.java
33.33% <ø> (ø)

... and 13 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.

authors: agrancaric codecov-commenter

repo: croz-ltd/nrich-demo-backend


text:
Enabling writing out pod5 files in parallel

I found this repo while searching for the missing pod5 split; I've updated the code for writing out pod5 files in parallel. Feel free to merge if you're happy with it.
Rg,
Thanh

Hello, and thanks for the additions. I've put a version of them into the code by hand to keep with both the existing code style and, I have to admit, make it slightly less "Pythonic" so I can actually read it properly. The list comprehension and expansion is very concise but it gives me a headache every time I try to read it, probably because I'm mostly a Java programmer than a Python one.


text:
Unicode identifiers that are not normalized

The following error might or might not be expected, but it is certainly confusing to look at:
à = 1  # U+00E0
puts à # U+0061 U+0300
# Error: undefined local variable or method 'à' for top-level

This is because the compiler compares the variable names by codepoints directly and does not perform any Unicode normalization. I tested the same in other languages:

Python and Rust work;
Ruby doesn't work, even if # encoding: UTF-8 is specified;
GCC doesn't work, Clang and MSVC work. C++ will no longer accept identifiers that aren't in NFC;
Java and Zig do not allow non-ASCII characters in identifiers. Ruby does not allow them if that encoding magic comment isn't included.

Just to make sure: "Python and Rust work" means they treat different non-normalized representations of the same normalized form as identical?

I think I'd probably prefer to merge identifiers on their normalized form. The formatter can run normalization.
That means, there would effectively be almost exclusively normalized forms in actual code (unless you don't use the formatter).
We could also consider disallowing non-normalized forms. It saves us to do normalization in the formatter. But it might be restrictive for some environments, not sure.

authors: HertzDevil straight-shoota

repo: crystal-lang/crystal


text:
Bug with hash function default value

Bug Report
I think I discovered some strange behaviour with the hash function.
hash = Hash(String, Hash(Int32, Int32)).new(Hash(Int32, Int32).new(0))
hash["hello"] = Hash(Int32, Int32).new(0)
hash["hello"][1] += 3

puts(hash.size) # => 1
puts(hash) # => {"hello" => {1 => 3}}
puts(hash["hello"]) # => {1 => 3}

Works as expected, but the following behaviour is a little bit unexpected:
hash = Hash(String, Hash(Int32, Int32)).new(Hash(Int32, Int32).new(0))
hash["hello"][1] += 3

puts(hash.size) # => 0
puts(hash) # => {}
puts(hash["hello"]) # => {1 => 3}

Pretty sure this isn't a bug, but is closely related to https://forum.crystal-lang.org/t/hash-help/2707/2.

This is expected and documented behaviour.
The default value is returned when a key is missing and it's passed by reference. hash["hello"] returns the default value and when you mutate that, you mutate the reference. hash is empty because no value was actually assigned to the hash. A second call to hash["hello"] returns again the default value, but since the previous operation mutated that, you see the mutated state.

Thanks a lot !

authors: Blacksmoke16 pjcoenen straight-shoota


text:
Equal floats and ints have different hashes

First, the immediate problem caused by this fact:
{0 => :a, 0.0 => :b, 1 => :c, 1.0 => :d}
# => {0 => :b, 1 => :c, 1.0 => :d}

Because:
0 == 0.0  &&  1 == 1.0
# => true
{0.hash, 0.0.hash}
# => {0, 0}
{1.hash, 1.0.hash}
# => {1, 4607182418800017408}

(there don't seem to be any other such "hash collisions" other than 0 but my search wasn't exhaustive, and this is still dangerous).
In case this wasn't clear, the problem is the definition of hashes is violated – equal values must have equal hashes.
I see a few general approaches to solving this:

Like Ruby: https://github.com/crystal-lang/crystal/pull/2809#issuecomment-225435084
Introduce a "hash equality" concept and explicitly mark Ints and Floats to be not equal in the hashing context.
(The example above would have 4 pairs in the end)
Variation on the above:
Make different types never be equal in the hashing context. How to determine whether types are "same" or "different"? Again, a few suggestions:

It's the exact same type
The types have the same hash method (same type or inherited).

Like Python: https://github.com/crystal-lang/crystal/pull/2809#issuecomment-225435854
Set up the hashing functions in a way that Ints and Floats have the same hash.
(The example above would have 2 pairs in the end)
Theoretically we could take their algorithm but not sure about licensing.
To elaborate what Python does:

>>> hash(234), hash(234.0), hash(Decimal('234.0'))
(234, 234, 234)
>>> hash(0.5), hash(Fraction(1, 2)), hash(Decimal('0.5'))
(1152921504606846976, 1152921504606846976, 1152921504606846976)
>>> {234: 1, 234.0: 2, Decimal('234.0'): 3}
{234: 3}

+1 for ruby-like solution. But it's fine now, C# and Java also make the hash of 0 and 0.0 the same.
IMO, Crystal gets everything to be objects, so the hash should be different when these two items having different type even their data is the same in the memory at least, so 0's hash will never equals to 0.0's, cause their types are not the same at all.

Without diving in to the problem, at a glance I'd say it's not a problem with hashing (duplicates are expected - it's not meant to be perfect hashing, just fast and distribute over buckets and similar uses).
The problem with the hash-map must be because 0 == 0.0 - so this instead puts some more fuel on https://github.com/crystal-lang/crystal/issues/567#issuecomment-223762748 (don't allow float <=> int promotions)

I think that it should be closed because #5276 has been merged.

authors: akzhan david50407 oprypin ozra


text:
Add Illumos/Solaris support

Would be nice to have illumos/Solaris support (you can use clang-3.8 from the OpenIndiana repository) or at least provide some instructions how to build crystal from sources there.

I picked this up again after a long break. Got a (very) simple program cross-compiled, linked, and run, but I can't get crystal itself to build properly. It links, and simple commands like crystal version work, but trying to do anything with build, run etc dumps core.
Here's the stack trace from the core file. I'm kind of out of my depth now.
$ pstack core
core 'core' of 16197:   ./crystal eval puts 123
------------  lwp# 1 / thread# 1  ---------------
 00007fffbfffd590 ???????? ()
 00007fffbda406b1 call_user_handler () + 2f1
------------  lwp# 2 / thread# 2  ---------------
 00007fffbda4eb07 __lwp_park () + 17
 00007fffbda47713 cond_wait_queue () + 63
 00007fffbda47cef __cond_wait () + 7f
 00007fffbda47d3d cond_wait () + 1d
 00007fffbda47d79 pthread_cond_wait () + 9
 00000000020cd993 GC_wait_marker () + 13 (pthread_support.c:2214)
 00000000020c5ed2 GC_help_marker () + 22 (mark.c:1229)
 00000000020cd96f GC_mark_thread () + 5f (pthread_support.c:363)
 00007fffbda4e7e4 _thrp_setup () + a4
 00007fffbda4eac0 _lwp_start ()
------------  lwp# 3 / thread# 3  ---------------
 00007fffbda4eb07 __lwp_park () + 17
 00007fffbda47713 cond_wait_queue () + 63
 00007fffbda47cef __cond_wait () + 7f
 00007fffbda47d3d cond_wait () + 1d
 00007fffbda47d79 pthread_cond_wait () + 9
 00000000020cd993 GC_wait_marker () + 13 (pthread_support.c:2214)
 00000000020c5ed2 GC_help_marker () + 22 (mark.c:1229)
 00000000020cd96f GC_mark_thread () + 5f (pthread_support.c:363)
 00007fffbda4e7e4 _thrp_setup () + a4
 00007fffbda4eac0 _lwp_start ()
------------  lwp# 4 / thread# 4  ---------------
 00007fffbda4eb07 __lwp_park () + 17
 00007fffbda47713 cond_wait_queue () + 63
 00007fffbda47cef __cond_wait () + 7f
 00007fffbda47d3d cond_wait () + 1d
 00007fffbda47d79 pthread_cond_wait () + 9
 00000000020cd993 GC_wait_marker () + 13 (pthread_support.c:2214)
 00000000020c5ed2 GC_help_marker () + 22 (mark.c:1229)
 00000000020cd96f GC_mark_thread () + 5f (pthread_support.c:363)
 00007fffbda4e7e4 _thrp_setup () + a4
 00007fffbda4eac0 _lwp_start ()

Looks like an issue in fiber context switch asm.

Any guesses where I might start looking? I think it's probably beyond the limits of my knowledge, but I don't give up easily.

From what I could recall, stack traces inside signal handlers are broken because frame pointers were omitted, and also catching SIGCHLD with LibC.signal isn't actually portable, hence the above core dump. There are no ABI changes since illumos is derived from the very same UNIX System V after which the SysV ABI is called

authors: HertzDevil alhazred snltd ysbaddaden


text:
Wrong version inside alpine images for 0.33.0

:warning: The 0.33.0 alpine images report version 0.32.1 :warning:

docker run --rm -it crystallang/crystal:0.33.0-alpine-build crystal --version

Crystal 0.32.1 [41bd18fbe] (2019-12-18)

LLVM: 8.0.0
Default target: x86_64-unknown-linux-musl

docker run --rm -it crystallang/crystal:0.33.0-alpine crystal --version

Crystal 0.32.1 [41bd18fbe] (2019-12-18)

LLVM: 8.0.0
Default target: x86_64-unknown-linux-musl

:heavy_check_mark: The non alpine one reports the right version. :heavy_check_mark:

docker run --rm -it crystallang/crystal:0.33.0 crystal --version

Crystal 0.33.0 [612825a53] (2020-02-14)

LLVM: 8.0.0
Default target: x86_64-unknown-linux-gnu

Thanks for reporting. I've just update the 0.33.0-alpine and latest-alpine docker images.

Any idea why it was wrongly tagged?

Because the target in the makefile to copy the tar.gz is not phony, or because I didn’t do a make clean. :-)
I already update the release checklist with that info.

Tried them out again and the versions are correct, thaks for the fix! 👍

Should we add some kind of validation for this? For example verify that crystal --version contains the version part of the docker tag before pushing it.

The ubuntu images have those validation. The alpine images are new and there are no steps in the crystal-dist repo yet, so, I manually do those steps for this first version.

authors: bcardiff sdwolfz straight-shoota


text:
[tests-only] Add blobstore metrics

Enhancement: Add s3ng metrics
We have added rx/tx metrics to the s3ng blobstore driver.

@labkode, ci seems to be pretty flaky today. Known on your side?

authors: dragonchaser fschade


text:
Access the parsed data in the arrays via UI

Story #53

Out of time in sprint 1. May recapture in future sprint or another similar task.


text:
Example Usage

Per the review criteria:

Do the authors include examples of how to use the software (ideally to solve real-world analysis problems).

As is right now, the documentation is really focused on the base layer and the ability to define a new measure, but the documentation is missing a more extensive (practical) use-case. In the "Why" of the package its necessity in "Bayesian modeling" is pointed out, such example could really enhance the documentation, and make the package much more accessible to new users.

Ok to close this @ludgerpaehler ?

Sure!

authors: cscherrer ludgerpaehler


text:
Security vulnerability with net_ldap < 0.60

The vulnerability scanner database has a vulnerability entry for net_ldap < 0.60, the salt value used for passwords seems to be too weak [1].
There's a patch available with net_ldap >= 0.60 but devise_ldap_authenticatable seems to currently support net_ldap < 0.60. Are there any plans to upgrade the net_ldap version?
[1] https://github.com/rubysec/ruby-advisory-db/blob/master/gems/net-ldap/OSVDB-106108.yml
Thanks,
Tobi

See #206

Dupe and resolved.

authors: cschiewek skaasten tobioboye


text:
Readme

What's this, two PRs?
Yep, I added a better README. It has the org name and some boilerplate legal nonsense.

@preetsmohan @Takudzwa-Rusike @AlexLevine

Agreed, should probably be modified to Code-M though.


text:
content-wrapper min-height and control-sidebar with child module

Hi, when I create a new child module and navigate to that, the content-wrapper min-height doesn't resize. The control-sidebar stops working too!

I've tried to call  jQuery.AdminLTE.layout.activate(); but with angular 4 doesn't works anymore and result with error EXCEPTION: Error in :0:0 caused by: Cannot read property 'activate' of undefined

I'll check it next week

have to checked.

This is fixed in the new version

Hi, I have a very similar problem.
When i navigate to a component with routerLink, the min-height of content-wrapper is too small. If I resize the browser then it starts to work like it should.


text:
postcss-modules v0.6.2 fails on node v6

I recently tried to upgrade postcss-modules to latest (v0.6.2) but encountered a problem building when running on node v6.9.4. Looks like the issue is that Object.values in behaviours.js wasn't added until node v7.0.0.
I rolled back to v0.5.2 and that works fine (for those that run into the same problem).
    ERROR in ./~/css-loader!./~/postcss-loader!./src/styles.css
    Module build failed: TypeError: Object.values is not a function
        at isValidBehaviour (/home/ubuntu/PROJECT/node_modules/postcss-modules/build/behaviours.js:34:17)
        at getDefaultScopeBehaviour (/home/ubuntu/PROJECT/node_modules/postcss-modules/build/index.js:36:63)

Published, thank you.

authors: andykant outpunk

repo: css-modules/postcss-modules


text:
New option: rule-delimiter

Moved from #209:
I guess we should add an option like rule-delimiter which will set spaces between rulesets and media queries (this has been already discussed in #92).
It seems to me that this option should be more important than space-after-declaration (see #197).
So we can have, for example: { 'space-after-declaration': 1, 'rule-delimiter': '\n\n' }
// Before
a {
    color: tomato;
    top: 0;
    panda {
        position: happy;
    }
    raccoon {
        a: b;
    }
    foo: bar;
}
div {
    border: none;
}

// After
a {
    color: tomato; top: 0;

    panda {
        position: happy;
    }

    raccoon {
        a: b;
    }

    foo: bar;
}

div {
    border: none;
}

Ah sorry I didn't see #310.

In the meantime, sublime-csscomb users can use the Sass Beautify package and set the "newlineBetweenSelectors" property to true. (Bonus: there's also an option to automatically run SassBeautify when you save the file.)

@mrpavlikov where did you get with this?  What is left in your branch to do?
It's a shame as it seems so close to being done

Huge +1 from me. It's really needed stuff.
But I think this version not comfortable
container {
.section {
.left {
  width: 50px;

  @media {
    width: 30px;
  }
}

}
}
Much better like this
container {
.section {
.left {
width: 50px;
  @media {
    width: 30px;
  }
}

}
}

CssComb is great. The only thing my colleagues miss is rule-delimiter. So +1 from me and bunch of css-guys.

(y)

Huge +1.

+1

+1 I'd like to have this one

+1

+1

+1

+1

+1 cant write sass without it

+1

+1

what i don't undestand is why with the same settings the sublime text 3 plugin leve the break after the  as is
}
.new-rule
where the grunt plugin strip it
}.new-rule

+1

+1

+1

+1

+1 would really love to see this

What is the current status on this?
How can I help make this a thing?

+1

@SpencerCarstens, the most recent pr is https://github.com/csscomb/csscomb.js/pull/405

+1

+1

+1

+1

+1

+1

+1

:+1:

+1

+1

+1

+1

+1

+1

I'm temporarily locking the conversation to avoid more +1's.
If anyone feels like helping, please refer to the open pr: https://github.com/csscomb/csscomb.js/pull/405
Thank you.

authors: AlisaYaaa Deminetix Gtvar NikolaMalich SpencerCarstens ZhukV Zoxon alexkwa andrade1379 banrikun czt08883 debbiechiang ericmatthys evgenTraytyak galengidman ganchan karlhorky kieranklaassen kikambus krik lanaphillips liam-swinney lrobeson lstanard mikheevdmitry mwyatt nicholas-slepchenko nvartolomei oranj paulca55 rastersysteme siriniok testerr123 tonyganch visormatt xDae zellwk zhe


text:
Fix a bug that was changing wrongly the percentages in linear-gradient background properties

This solves the issue #33
The regular expression bgHorizontalPercentageRegExp was matching strings like this one:
background: linear-gradient(to left, #00ff00 0%, #ff0000 100%);

match: background: linear-gradient(to left, #00ff00 0%
pre: linear-gradient(to left, #00ff00
value: 0%

This was causing that the previous string changed to:
background: linear-gradient(to right, #00ff00 100%, #ff0000 100%);

Adding only a comma to the regular expression avoids matching that kind of strings

Haven't tested it, but it looks like this change would only solve things where the direction is explicitly given. linear-gradient( red 10%, blue ) (which defaults to a simple vertical gradient) would still have issues.

@YaiRand, I have not tested that case but it should fail too. I'll push a fix.
Regards

Haven't tested it, but it looks like this change would only solve things where the direction is explicitly given. linear-gradient( red 10%, blue ) (which defaults to a simple vertical gradient) would still have issues.

I have not tested either, but you are right, it should fail. I'll push a fix soon.
Regards

@YairRand,
I excluded strings that start by linear-gradient, and this only solves the aforementioned bug, but I think that the entire method to replace background properties should be refactored. Because it doesn't work with multiple background layers, and it doesn't support for linear gradients. I'll try to work on it if I have some time ;)
Regards

@elchininet I mean, I already did all that in #36, which is still waiting to be merged...

@elchininet I mean, I already did all that in #36, which is still waiting to be merged...

Oh, I didn't know it, I'll close this one. I implemented in my local the multiple background layers feature, and flipping linear-gradients, I didn't know that you already worked on it.
I'm seeing that it is coming from 2015 and the last update was in February 2018, do you think that it will be merge?

authors: YairRand elchininet

repo: cssjanus/cssjanus


text:
Move this repo into the CSS Recipes org

@magsout We're freeing up the stylelint org to focus on stylelint as a tool rather than the configs. As such we are moving the SuitCSS, Wordpress, CSS Recipes and Standard configs out of the org. We've just finished transferring the SuitCSS config to the SuitCSS org. I thought the CSS Recipes would make a good home for this repo as you're using it to check the style of the components. What do you think?

Done :)

Thanks @MoOx! Much appreciated :)

repo: cssrecipes/stylelint-config-cssrecipes


text:
General User Relocation Box Form

Follow Figma design for this form
Use React Hook Forms (https://react-hook-form.com/advanced-usage#CustomHookwithResolver)
Connect to backend (add to Box History table)

/cib user relocation form

Branch 47-user-relocation-form created!

Will be working on 49-general-user-pickup-form

authors: ZubairSidhu ctc-devops meghakak

repo: ctc-uci/find-your-anchor-frontend


text:
使用强类型配置注入的问题

看多数demo都是直接注入IConfiguration使用的.我想使用强类型的Options,不知道这方面支持怎么样.
单例的IOptions<TOptions>是肯定可以的,IOptionsMonitor<TOptions>呢?

IConfiguration和IOptions是两个层面上的事情，使用Configure方法实现绑定.
services.Configure<TOptions>(configuration)

这个我知道,我上边给的参考链接也是这个...
我的意思是,当我注入IOptions<TOptions>的时候,这个是单例的,我在Apollo修改配置的值之后,获取到的配置值肯定是不会改变的.我想使用IOptionsMonitor<TOptions>注入解决这个问题,不知道这个SDK会实现相应改变事件的监听改变对应的配置项的值吗?

完全支持的，也可以使用IOptionsSnapshot<TOptions>

services.TryAdd(ServiceDescriptor.Singleton(typeof(IOptions<>), typeof(OptionsManager<>)));
services.TryAdd(ServiceDescriptor.Scoped(typeof(IOptionsSnapshot<>),typeof(OptionsManager<>)));
services.TryAdd(ServiceDescriptor.Singleton(typeof(IOptionsMonitor<>), typeof(OptionsMonitor<>)));

我想应该是单例的性能会比较好吧.我还停留在看文档写demo阶段╮(╯▽╰)╭Apollo环境还没搭起来,中秋争取搞台机器用起来...

authors: ZUOXIANGE pengweiqhca


text:
多环境yaml配置文件，解析错误

client版本：1.3.0
当我一个配置文件中，同时包含了两个环境的配置时，比如一个dev，一个test。
文件样式大致如下：
spring:
profiles: dev
swagger:
enable: true
....
....
spring:
profiles: test
swagger:
enable: false

spring:
profiles:
active: dev
正常来说，应该是激活dev,生效配置为swagger.enable=true，但是，实际生效配置为test,swagger.enable=false。
原因是YamlParser在解析融合配置时，后面test的配置覆盖了前面的配置

配置按环境分开吧

配置按环境分开吧

目前是这样解决的。我只是觉得这应该算是一个小bug，可以修复

恩，可以参照spring的做法来实现一下，如果能contribute一下就更好了~

repo: ctripcorp/apollo


text:
feat(doc): Nominate SIG Chairs and Technical Leads

According to pull request :https://github.com/cubefs/cubefs/pull/3430, sigs need chairs and tecnical leads to garantee the evething runs normally

+1

+1

+1

+1

repo: cubefs/cubefs-community


text:
Upgrade to berp 1.3, remove dependency to mono

Upgrading Berp to a version runs on .NET 5.0

Is this good to merge now? LGTM!

@aslakhellesoy no, this is now only fixes it for dotnet. But a review is welcome. If you are fine with the approach, i will replicate it to the other languages.

@aslakhellesoy what do you think about creating a shared.mk file that is a single file in the templates, but it is rsynced to all language folders. That way we could reduce the duplications in the language specific default.mk files...

We could, but it might come at the cost of additional complexity. Have a go at it if you want!

@aslakhellesoy @mattwynne how can it be that gherkin-java does not understand "dotnet" is that running on a different docker container?

@gasparnagy yes: https://github.com/cucumber/common/blob/fff7cc2c1a740563a8615b5e9042c1daa881fb64/.circleci/config.yml#L609-L610
Also see my comment here: https://github.com/cucumber/common/pull/1534#issuecomment-842598720

@aslakhellesoy I see. So probably this was working so far, because the parser was never outdated and therefore berp wasn't invoked. But since I introduced the .berp_restored target, that runs even in case the parser is up-to-date.
Is there an easy way in make to say that it should only invoke the target if the other targets are outdated?

Is there an easy way in make to say that it should only invoke the target if the other targets are outdated?

Yes, by using Make the way it was meant to be used :-)
Make targets should be files, not abstract names.
Here is an example:
foo:
    echo "hello"

Running make foo will execute the target body if and only if the foo file does not exist. Since the target never actually generates the foo file, it will always run. This is not how make should be used. Let's fix it:
foo:
    echo "hello" > $@

(The $@ variable is the name of the target). When you run make foo, it will run the next time, but not the second, because foo now exists.
Let's get more advanced. The foo target now depends on the bar target:
foo: bar
    echo "hello" > $@
    car bar > $@

Create the bar file manually with touch bar. Then run make foo. It will run the 1st time but not the 2nd time, as expected.
Now, if you touch bar again, the timestamp of bar will be more recent than that of foo, so running make foo again will run the target again.
I hope that helps. I can have a look at this tomorrow if you haven't figured it out.

@aslakhellesoy Thx. At that level I was OK, but here I need to make sure that berp is installed... that is not a classic target, because it is only needed for another target to be established. The "make" way would be (base on my understanding):
parser.java: gherkin.berp template.razor /usr/bin/berp
  berp ...

/usr/bin/berp:
  ...install berp

This is more or less what I have now, but this will attempt to install berp even if the parser is up-to-date (on eg. the java parallel build, where it is not possible). I tried now with some tricky $eval/$call magic, but I get a stupid error message *** recipe commences before first target.  Stop., so I kind of given up. If you have time tomorrow for a a quick pairing, I would be happy to fix it together (so that I can better learn from it).
Or I just give up using .NET restore for berp and upload it as a linux binary somewhere... But I thought it is easier to maintain the versions this way...

@aslakhellesoy I think I have found a solution using a canned recipe for berp. https://github.com/cucumber/common/pull/1542/files#diff-b20a2c0f8de33a0b6b48411e3a44c33a583536f315050f81229be990eb42657eR70-R73
And the usage is simple now:
https://github.com/cucumber/common/pull/1542/files#diff-fc82761c3f102c231bc696c79cacd60ef5e64fc6452ed707682cfc4b27206ceaR18-R19

@aslakhellesoy for some of the languages, the parser generation fails with the new berp version and so I need to fix those first:

ruby
python
perl
objective-c

(It only passes now because the parsers are not outdated.)

🥳

authors: aslakhellesoy gasparnagy

repo: cucumber/common


text:
Add in sqlite3 to permit rails installation

I'm not 100% this will fix everything. But I couldn't find a way of testing "in-container" as trying to run sudo commands is banned
Possibly as another option, could we permit people to manually edit stuff inside the container. That would allow us to be certain of fixes pushed here beforehand.

You can run run docker build locally and then use the image created that way to install rails.

With your changes, I've been able to bundle install inside the container.
But bin/install_geckodriver.sh and bin/install_webpacker.sh are failing because they rely on sudo.
Do you plan something next? What the definitive purpose of that PR regarding cucumber-rails? Being able to execute all the tests in the container?

I've got future PR's planned for those.
install_geckodriver will be deleted. And will be delegating to a gem that exists and does the work 10x better.
install_webpacker. Not sure yet. Can we come back to that later?

I thought just occurred to me. It would be prudent to limit the scope of the cucumber-build image to the monorepo. Otherwise it will be very hard to validate if changes we make would potentially break builds elsewhere -- and also which dependencies are used and which are unused.
So will be this be used in the mono-repo?

Probably will be yes. But this is why the work from aslak on versioning of this is also prudent. I think versioning or cutting this Dockerfile being registered is the better way to go.

authors: aurelien-reeves luke-hill mpkorstanje

repo: cucumber/cucumber-build


text:
Internal Tests Review / Update

Summary
2nd of 3 small tickets, update the dependencies, and review which ones are needed
Details
Update internal tests, with detailed reasons why in SHA's.
Motivation and Context
Need to take a look at these after a long time of being left in the cold
How Has This Been Tested?
CI
Screenshots (if appropriate):
Types of changes

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

Checklist:

[ ] I've added tests for my code.
[ ] My change requires a change to the documentation.
[x] I have updated the documentation accordingly.

As this is just testing code that is being altered I'm going to merge this in.

repo: cucumber/cucumber-rails


text:
Don't check temporary files by rubocop

Summary
Improves rubocop's config

Thanks @hotovson !

authors: hotovson nodo

repo: cucumber/cucumber-ruby


text:
Proposal: remove pending steps

I don't see any real difference between pending steps and undefined steps. For both, the step hasn't been implemented.

interesting challenge!
I guess undefined is specifically interesting when you're re-wording things and you end up disconnecting a gherkin step from its definition. I rarely use pending much, but undefined wouldn't make sense as the name for a matched-but-incomplete step (to me).

I'm suggesting removing support for defining an incomplete step.

A pending step is similar to a failing step. It throws an exception, it just so happens that it's a special exception that  doesn't cause red/exit 1 (unless you run with --strict)
Are you suggesting removing this special exception?

Yes. Pending steps just put incomplete code in the codebase when its not needed.
When you are ready to implement a step, copy the snippet and write the needed code.
If you're not ready to implement the step, don't copy the snippet.
If we don't want step snippets to pass by default, we can have them fail

authors: aslakhellesoy charlierudolph mattwynne

repo: cucumber/cucumber


text:
added remark about eventually missing double-quote

Tried out the tutorial an run into the mentioned error. Adding the double-quotation marks solved the issue.

Hi @mlvandijk, I have committed the double quoted example and removed the remark block again.
I feel uncertain about the string {{% version "cucumberarchetype" %}}. What happens to it, if you copy and paste the example?

Hi @frank-at-work,
Thanks for your making your first contribution to Cucumber, and welcome to the Cucumber committers team! You can now push directly to this repo and all other repos under the cucumber organization! 🍾
In return for this generous offer we hope you will:

✅ Continue to use branches and pull requests. When someone on the core team approves a pull request (yours or someone else's), you're welcome to merge it yourself.
💚 Commit to setting a good example by following and upholding our code of conduct in your interactions with other collaborators and users.
💬 Join the community Slack channel to meet the rest of the team and make yourself at home.
ℹ Don't feel obliged to help, just do what you can if you have the time and the energy.
🙋 Ask if you need anything. We're looking for feedback about how to make the project more welcoming, so please tell us!

On behalf of the Cucumber core team,
Aslak Hellesøy
Creator of Cucumber

authors: aslakhellesoy frank-at-work


text:
modules: move away from the term "main module"

Go, where we derive much of our packages and modules design from, has historically used the term "main module" to refer to the module where one is running a Go command or build from. It is helpful to then refer to that main module's properties or dependencies, and to separate it from any other modules such as dependencies.
However, "main module" is problematic as it is quite similar to "main package", which is a very different concept, and unrelated to the current directory. That's why https://github.com/golang/go/issues/58830 was raised. I agree with "main module" being confusing as well.
They are moving to "work module", and I asked a question in that thread about the reasoning why. I'd also find "current module" to be a valid choice.
This mainly affects documentation (cue help, Go API docs, code comments, cuelang.org content) and error messages.

Perhaps the confusion with "main package" is less of an issue for CUE, because CUE doesn't have the concept of a main package?

That's a good point. Intuitively I still find "main module" to be easier to grasp than "work module", so I'm fine with keeping our naming as is, deciding against following Go's change here.
Closing for now but feel free to say if you disagree. I never had a strong opinion about this switch in the first place.

authors: mvdan rogpeppe

repo: cue-lang/cue


text:
feat: fixes-time-sold-labels-and-counts

What
feat: fixes-time-sold-labels-and-counts

:tada: This PR is included in version 0.5.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:

:tada: This PR is included in version 0.6.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:

repo: cujarrett/destiny-insights-frontend


text:
🛑 Telegram Index is down

In 9bea4f2, Telegram Index (https://tgdex.culturecloud.gq) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Telegram Index is back up in 085057d.

repo: culturecloud/status


text:
🛑 DDL Service is down

In 6b57972, DDL Service (https://dl.culturecloud.gq) was down:

HTTP code: 0
Response time: 0 ms

Resolved: DDL Service is back up in 89d212b.


text:
MemoryAsyncPool test issues (tracker issue)

#5308
https://github.com/cupy/cupy/pull/5350

For the record I can't reproduce any of the failing tests (https://github.com/chainer/chainer-test/pull/658#issuecomment-853990757) locally.

@leofang Can we revert #5308 as well?

Unfortunately not yet, the reason stated in #5308 still holds (we need to support handle == "create"), I'd love to enable it but I can't get it done before the v11rc cutoff this week. Feel free to reassign this issue to me so I can keep track of my debt 😂

Thanks! I think this there's no rush 😃

authors: kmaehashi leofang

repo: cupy/cupy


text:
CuPy fails with setuptools 74.0.0

setuptools v74.0 (specifically https://github.com/pypa/setuptools/pull/4600) removed setuptools.msvc module, which has been there for 8 years. Currently, CuPy depends on the module for both build-time and runtime:

build-time: https://github.com/cupy/cupy/blob/69a2137ec7577adb03407ed3e8db373ee2118b4c/install/cupy_builder/_compiler.py#L265-L266
runtime (Windows only): https://github.com/cupy/cupy/blob/69a2137ec7577adb03407ed3e8db373ee2118b4c/cupy/cuda/compiler.py#L102

Until the problem is resolved, we will pin the setuptools version in the CI. (#8567)
Workarounds (for users)

Linux/Windows users experiencing ModuleNotFoundError: No module named 'setuptools.msvc' error when building CuPy from source: please downgrade setuptools to v73.x or earlier.
Windows users seeing Failed to auto-detect cl.exe path warning: please downgrade setuptools to v73.x or earlier, OR manually add cl.exe to PATH.

Additional Context
It seems scikit-build is also affected by this change: https://github.com/pypa/setuptools/issues/4608, https://github.com/scikit-build/scikit-build/issues/1114

Is this fixed with 0.18.1?

Hi @henryiii, actually our build doesn't use scikit-build and I'm just surveying how other projects will catch-up with this change. Sorry for the confusion!

authors: henryiii kmaehashi


text:
Generating CUDA-related library FFI from its headers

Close #4358.
This PR adds a script to generate CUDA-related library FFI and wrappers from its headers.
Where to have the script in CuPy repository is TBD.

This change has a problem that it needs all CUDA Toolkit versions that CuPy supports for generating the compatibility headers, which is especially painful for contributors who make some changes to this generator when they regenerate the outcomes.
https://gitub.com/cupy/cupy/pull/4606 tried to generate the files on build-time for the CUDA Toolkit version for that CuPy is to be built, but it also has a problem that it makes CuPy build depends on pycparser.
An idea is generating Cython files for each CUDA Toolkit version, document, and possibly ROCm, putting them in the repo statically, and selecting ones on build-time for environment for which CuPy is to be built.
cupy_backends/.../libs/11.2/cublas.pyx
                            cublas.pxd
                       11.3/cublas.pyx
                            cublas.pxd
                       stub/cublas.pyx
                       rocm/cublas.pyx
                            cublas.pxd


text:
Questions about cross-entropy loss

Dear authors, thanks for your great works! In your paper, you say that "the losses are computed only where y is
defined". I wonder if this means you do not add supervision on non-occupied voxels and only use multi-class classification loss on occupied voxels ? If this holds true, why the model can identify which voxels are occupied ?

Hi @weiyithu, "y is defined" means that we know the class of the voxels which could be either non-occupied or occupied. There is another type of voxels called "unknown voxels" that we don't know its class since they were not observed in any lidar frames used to accumulate the ground-truth.

Thanks, I get it ! If I only use cross-entroy loss without using other losses introduced your paper, can the model converge？ And how do you calculate the loss weight of each class, such as non-occupied class?

Yes, the model can converge but the performance is around 2 mIoU lower. The weight of each class is just 1/class_frequencies(number of voxels per class in the whole dataset)
https://github.com/cv-rits/MonoScene/blob/master/monoscene/data/semantic_kitti/params.py#L3

Thanks! Last question, have you tried only use occupied / non-occupied as the supervision instead of multi-class classification? I wonder if the semantic supervsion is necessary for the occupancy prediction?

Yes, I tried, the occupancy performance is roughly similar.

You mean that if you use occupied / non-occupied (two class) supervision signal, you can still a model which has the good performance on occupancy prediction?  In my experiment, I find that if I only use occupied / non-occupied  supervsion, the model can only predict good ground, since the most of points are ground points and there exists data imbalanced problem. So I wonder if the semantic  labels can solve this problem.

I never tried with only cross entropy loss. I tried only with full losses

My task is not SSC but is similar to SSC and my model does not converge, so I have not evaluate IoU. The full losses mean that you use both cross-entropy loss and the loss introduced in your paper? And the full losses have semantic information?

I use the full loss with only 2 classes: 0 for non-occupied and 1 for occupied. Actually, I haven't draw the results but I got IoU of around 30%.

OK. Thanks for your patience！Great Work！！

OK. Thanks for your patience！Great Work！！

OK. Thanks for your patience！Great Work！！

You're welcome!

authors: anhquancao weiyithu

repo: cv-rits/MonoScene


text:
Update index.js

not all objects have hasOwnProperty, but they should still be inspectable

Object.prototype.hasOwnProperty = undefined;
var o = {};
o.hasOwnProperty
=> undefined

It could be monkey patched as above, which really should never be done, but it is allowed

@cvadillo that is not correct. var obj = Object.create(null) is a way to create an unpolluted, fast and safe objects. Typically used for caches or dictionaries were pollution isn't acceptable. Additionally, objects that occur property lookup misses benefit from the lack of a prototype chain to walk on a miss.

authors: AddictArts stefanpenner

repo: cvadillo/js-object-pretty-print


text:
Fix support for gomodules

Remove dependency on GOPATH. Get file path from compiler config

make test
go test ./... -coverprofile=cp.out
cmd/check.go:28:2: cannot find package "github.com/sirupsen/logrus" in any of:
/usr/local/go/src/github.com/sirupsen/logrus (from $GOROOT)
/Users/marcelloh/go/src/github.com/sirupsen/logrus (from $GOPATH)
cmd/check.go:34:2: cannot find package "github.com/spf13/cobra" in any of:
/usr/local/go/src/github.com/spf13/cobra (from $GOROOT)
/Users/marcelloh/go/src/github.com/spf13/cobra (from $GOPATH)
make: *** [test] Error 1

you forgot to checkin the go.mod file I think....

@marcelloh gocheckcov uses dep for dependency management not go modules. You might need to install dep to be able to build the source.

authors: cvgw marcelloh

repo: cvgw/gocheckcov