text:
Removed all references to DLL

Closes https://github.com/corona-school/project-user/issues/427

@realmayus Can you check for this building issue? This is the corresponding log from Heroku:
-----> Building on the Heroku-18 stack
-----> Using buildpack: mars/create-react-app
-----> React.js (create-react-app) multi app detected
=====> Downloading Buildpack: https://github.com/heroku/heroku-buildpack-multi.git
=====> Detected Framework: Multipack
=====> Downloading Buildpack: https://github.com/heroku/heroku-buildpack-nodejs.git
=====> Detected Framework: Node.js

-----> Creating runtime environment

       NPM_CONFIG_LOGLEVEL=error
       USE_YARN_CACHE=true
       NODE_ENV=production
       NODE_MODULES_CACHE=true
       NODE_VERBOSE=false

-----> Installing binaries
       engines.node (package.json):  unspecified
       engines.npm (package.json):   unspecified (use default)
       engines.yarn (package.json):  unspecified (use default)

       Resolving node version 16.x...
       Downloading and installing node 16.13.2...
       Using default npm version: 8.1.2
       Resolving yarn version 1.22.x...
       Downloading and installing yarn (1.22.17)
       Installed yarn 1.22.17

-----> Installing dependencies
       Installing node modules (yarn.lock)
       yarn install v1.22.17
       [1/4] Resolving packages...
       error Your lockfile needs to be updated, but yarn was run with `--frozen-lockfile`.
       info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
-----> Build failed
 !     Outdated Yarn lockfile
       Your application contains a Yarn lockfile (yarn.lock) which does not
       match the dependencies in package.json. This can happen if you use npm
       to install or update a dependency instead of Yarn.
       Please run the following command in your application directory and check
       in the new yarn.lock file:
       $ yarn install
       $ git add yarn.lock
       $ git commit -m "Updated Yarn lockfile"
       $ git push heroku main

       https://help.heroku.com/TXYS53YJ
 !     Push rejected, failed to compile React.js (create-react-app) multi app.
 !     Push failed

It's probably simply merging master into the branch and then executing yarn install.

repo: corona-school/web-user-app


text:
ENError 1

Avoid duplicates

[ ] Question is not already answered in the FAQ
[ ] Question is specific for iOS only, for general issues / questions that apply to iOS and Android please raise them in the documentation repository
[ ] Question has not already been asked in another issue

Your Question

Source File:
Line(s):
Question:

Today I returned home from the test center and opened cwa because I wanted to scan my QR code. The dialog was not very responsive, I had to press all the buttons several time. Note: in parallel it performed the risk check, but I noticed that only later.
And then I got the error message, see screenshot.
After that I could finish the dialog to register my QR code and request test result and certificate.
Note: both timestamps in cwa and ENF log show this risk check at 11:03 - so was it then successfull? What does ENError 1 mean?
iPhone 13 Pro / iOS 15.1 / cwa 2.19.0 (4) / CCL 1.1.0

EN Error 1 is from the Apple documentation UNKNOWN
https://developer.apple.com/documentation/exposurenotification/enerror/code/unknown

Twitter Reports reg. this:

https://twitter.com/dermoritz14/status/1501930962942234626?s=21
https://twitter.com/bembeltogo/status/1493198254355492867?s=21

I also encountered this bug more than one time. It seems like this happens in combination with the unresponsive behaviour.

EN Error 1 is from the Apple documentation UNKNOWN
@thomasaugsten thanks - so we may assume not even Apple knows what was happening here? 😅

@ndegendogo @Ein-Tim
The dev team looked into this issue, and apparently this is something not solvable from development side. Either this  needs a fix from Apple or it could be that it is already fixed.
Unless there are no more reports on this topic this issue considered obsolete for now. Thanks for reporting!
Best wishes, DS

Corona-Warn-App Open Source Team

I have not seen this error code again.
And I agree that the app development team cannot further analyse or solve this.
Closing.

source: gharchive/issue

authors: Ein-Tim dsarkar ndegendogo thomasaugsten

repo: corona-warn-app/cwa-app-ios

license_type: permissive

license_source: github-api


text:
Android: Save Photos to Library on Android 10+

https://forums.solar2d.com/t/saving-images-to-the-gallery-hasn-t-been-working-since-android-10-display-capturebounds/356924
Android seems to lock out writing directly to Camera Roll on 10+

Thank you @scottrules44 , but I need to correct you on something: the issue doesn’t occur starting from Android 13 onwards, but rather from Android 10.

This has been corrected

source: gharchive/pull-request

repo: coronalabs/corona

license: MIT


text:
Open calendar event in a modal

Have an option to have the record underpinning a calendar event open as a modal. It's frustrating to have to browse away from the calendar block.

Tested and confirming that this looks good.

Add CL:
Added
{
      "what": [
        "support for opening a calendar event source in a modal, new tab or in the same tab according to the user preference."
      ],
      "why": [
        "to allow the user to open the event source records without going away from the calendar block."
      ],
      "refs": [
        "https://github.com/cortezaproject/corteza/pull/1104/commits/4e49034f5e52aae797295c25582e13716dbc8b8e"
      ]
    }

repo: cortezaproject/corteza


text:
Stage 3 ux 3

This adds the "Our Data" viewer into the Hubble slideshow.
@johnarban, we still need the additional viewer for the 3 runners, so students can see them next to each other. Can you add a commit for that here, please? (Even though it's a very simple viewer, it will be faster if you make it.. 😬  If you can create that viewer in stage_three.py, I know how to bring it over to the slideshow. Thank you!)

@patudom I am looking at #27, should we not merge that, and just merge here once I put in the viewer?

@johnarban, thanks for getting the runner viewer in! I'm going to merge this and then split off a new branch for myself to continue working on guideline updates. In the meantime, could you please apply the dark/light theme to the runner viewer on another branch? Thank you!

authors: johnarban patudom

repo: cosmicds/hubbleds


text:
npm install webmidi contains no JS files

Perhaps I'm installing it wrong, but npm install webmidi seems to give me a folder without any JS files in it:

I can confirm this issue. This is very odd as it was working before. It's probably related my publishing workflow. I'll check it out. Meanwhile, you can install manually or via Bower.

I republished the lib two more times and the problem went away. I'm guessing the problem is related to the recent switch from an alpha version label to a beta version label. I've read some people had issues with that but I'm not 100% sure this is the root cause. Tell me if it works out for you.

Thank you for solving that so quickly! I'll report back if there are any problems.

No problem. I'm going to close this issue for now. Please open a new issue if it surfaces again.

authors: cotejp jasonpang

repo: cotejp/webmidi

license: mit

license_source: bigquery


text:
🛑 Mainnet [Marigold] (mainnet.tezos.marigold.dev) is down

In 735b9eb, Mainnet [Marigold] (mainnet.tezos.marigold.dev) (https://mainnet.tezos.marigold.dev/chains/main/blocks/head/header) was down:

HTTP code: 503
Response time: 620 ms

Resolved: Mainnet [Marigold] (mainnet.tezos.marigold.dev) is back up in 54e0de3 after 8 minutes.

repo: cotezos/teznodes


text:
Exception in ChangeTracker

Here's the exception that was thrown in logcat:
W/ChangeTracker: com.couchbase.lite.replicator.ChangeTracker@37452d: Exception in change tracker
   java.net.SocketTimeoutException
       at java.net.PlainSocketImpl.read(PlainSocketImpl.java:488)
       at java.net.PlainSocketImpl.access$000(PlainSocketImpl.java:37)
       at java.net.PlainSocketImpl$PlainSocketInputStream.read(PlainSocketImpl.java:237)
       at org.apache.http.impl.io.AbstractSessionInputBuffer.fillBuffer(AbstractSessionInputBuffer.java:108)
       at org.apache.http.impl.io.AbstractSessionInputBuffer.readLine(AbstractSessionInputBuffer.java:196)
       at org.apache.http.impl.conn.DefaultResponseParser.parseHead(DefaultResponseParser.java:88)
       at org.apache.http.impl.io.AbstractMessageParser.parse(AbstractMessageParser.java:179)
       at org.apache.http.impl.AbstractHttpClientConnection.receiveResponseHeader(AbstractHttpClientConnection.java:185)
       at org.apache.http.impl.conn.DefaultClientConnection.receiveResponseHeader(DefaultClientConnection.java:240)
       at org.apache.http.impl.conn.AbstractClientConnAdapter.receiveResponseHeader(AbstractClientConnAdapter.java:264)
       at org.apache.http.protocol.HttpRequestExecutor.doReceiveResponse(HttpRequestExecutor.java:284)
       at org.apache.http.protocol.HttpRequestExecutor.execute(HttpRequestExecutor.java:126)
       at org.apache.http.impl.client.DefaultRequestDirector.executeOriginal(DefaultRequestDirector.java:1398)
       at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:707)
       at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:699)
       at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:520)
       at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:498)
       at com.couchbase.lite.replicator.ChangeTracker.runLoop(ChangeTracker.java:327)
       at com.couchbase.lite.replicator.ChangeTracker.run(ChangeTracker.java:228)
       at java.lang.Thread.run(Thread.java:818)

To reproduce:

Start this app (https://github.com/jamiltz/P2PSync-Android) and check out on the issue/change_tracker_exception branch.
Use two phones connected to same wifi
On device 1, click expose service button
On device 2, click discover services
Add documents on each side, the document count should be the same
The change tracker exception appears in logs of device 2

Looks similar to https://github.com/couchbase/couchbase-lite-android/issues/777.

SocketTimeoutException could happen if there is connectivity issue.
Does app recover from this exception? If yes, this could be logging issue. If not, we need to investigate deeper.

This is duplicate with #1026.

authors: hideki jamiltz

repo: couchbase/couchbase-lite-java-core


text:
Fixed #1074 - Enhance logging information for replicator and set thre…

…ad name to replicator related threads.

Set thread name to all replicator related thread.
Add toString() for replicator related classes to track log information easily.

@pasin sorry for my mistake.


text:
Scaladoc autoAPIMappings no longer works with Coursier active

In this project: https://github.com/effects4s/effects4s
If I activate Coursier for it, when generating the documentation with unidoc, it can no longer link to types in Scala's standard library. So I am getting errors such as these:
[error] effects4s/std/shared/src/main/scala/effects4s/util/TrampolinedContext.scala:22: Could not find any member to link for "scala.concurrent.ExecutionContext".
[error] /** An [[scala.concurrent.ExecutionContext ExecutionContext]]
[error] ^
[error] effects4s/std/shared/src/main/scala/effects4s/instances/FutureInstances.scala:24: Could not find any member to link for "scala.concurrent.Future".
[error] /** Default instances for Scala's [[scala.concurrent.Future Future]]. */
[error] ^
[error] effects4s/std/shared/src/main/scala/effects4s/instances/AllInstances.scala:23: Could not find any member to link for "scala.concurrent.Future".
[error]   /** Default instances for Scala's [[scala.concurrent.Future Future]]. */
[error]   ^
[error] three errors found
[error] (effects4s/scalaunidoc:doc) Scaladoc generation failed
[error] Total time: 7 s, completed Apr 10, 2017 9:09:44 PM

Tested with Coursier 1.0.0-RC1 and Scala 2.12.1.

1.0.0-RC2 about to be released shoud fix that (scripted test for it added in https://github.com/coursier/coursier/issues/497).

authors: alexandru alexarchambault

repo: coursier/coursier


text:
style(sidenavigaation): implemented new focus styles

Proposed Changes
https://coveord.atlassian.net/browse/ADUI-7505
Slack thread
This was originally done in AdminUI but better to have the changes here. Also took the liberty to clarify the demo for SideNavigation, though this will eventually all be replaced by Plasma
https://user-images.githubusercontent.com/22773767/135301202-6d650ad9-6561-4a5b-8ac7-1785255fc7ae.mov
EDIT: After discussion with UX the focus will not have rounded corners for now, since it looks terrible with the left bar of the nav when its active. The future restyle will fix this issue by removing the left bar and making all the navs more rounded, and the new mixin has the option to provide a border-radius in the future
Potential Breaking Changes
None
Acceptance Criteria

[ ] The proposed changes are covered by unit tests
[ ] The potential breaking changes are clearly identified
[ ] README.md is adjusted to reflect the proposed changes (if relevant)

Have you tried to use the reusable focus mixin?
:focus {
    @include focus-border(2px);
}

I didn't know we had one

I guess it would make sense to update the mixin, otherwise we will still have bugs about the focus state not being uniform 🙂

Playing with the mixin affected the focus style of the links:
Before:

After:

I still think the focus style should be the same both for links and nav items, but the new style looks bad for links

The focused style looks a bit weird to me with the corner on the left having a different colour. Is UX aware of that issue?

The focused style looks a bit weird to me with the corner on the left having a different colour. Is UX aware of that issue?

I'm discussing it with them now

Playing with the mixin affected the focus style of the links. I think the offset parameter is no longer applied, making the border too close.
Before:
After:
I still think the focus style should be the same both for links and nav items, but the new style looks bad for links

I made a new mixin and updated the color and default params on the old one, since links look rubbish with the new focus-border instead of the old focus-outline

authors: GermainBergeron gdostie j-mcgregor

repo: coveo/react-vapor


text:
Error occurred while processing the filter "ID @variants1.extract" (2:2)

Hi
I am getting this error while extracting variants in chr1 vcf file.
Indra

@mkanai
Hi
I am getting this error while extracting variants in chr1 .vcf file.


text:
aktualizaceNavoduXiaomi

Úprava textu stávajícího návodu Xiaomi na základě rozhraní testovacích telefonů, konzultace s Martinem a s ohledem na porozumění staršími lidmi.

Naintegroval jsem všechny návody zvlášť v jednom commitu, díky.

authors: Kobzol vonStichen


text:
Issue # #524 - Combine locations.json and timeseries json

Hi all,
I saw this issue posted earlier today and thought that I'd take a crack at it. I re-assigned the destructured values locations, timeseriesByDate in src/shared/timeseries.js and re-assigned them to a single output variable so as to output one JSON file timeseries-locations.json. I'm not sure if the data is being output in the order that is needed, but all key/values have been output to a single file.
Hope this helps!
Cheers:-)

Ok awesome, I say we keep locations.json still, and we just call the output file timeseries.json (same filename as before, but now with different fields).
Think that'll upset the masses?

I'm not sure I understand the original problem here. Why isn't timeseries-byLocation.json good as it is? I agree we should remove timeseries.json in current form and replace it with timeseries-byLocation.json.
To do this, we'd need to:

use ids everywhere. So New South Wales, AUS becomes iso2:AU-NSW.
always use JSON objects, not lists
no almost-random integer numbers

timeseries-byLocation.json is totally hard to work with for my use case, i like timeseries.json + locations.json. This PR combines them so it's more obvious how they're used together.

If we index locations.json by the iso2:AU-NSW instead of 234 or whatever it is, that's fine, but these files would still need to be combined to be easier to understand.

timeseries-byLocation.json is totally hard to work with for my use case, i like timeseries.json + locations.json.

Can you explain why? I find timeseries-byLocation.json by far the best to work with.

@hyperknot it's a pain in the ass for what I did at http://blog.lazd.net/coronaglobe -- I want to iterate over dates only and rip out locations from there.
Regardless, that's beside the point. timeseries.json could be made more consumable, and this PR does that.

Hi @firebuggirl , thanks very much for the PR!  Things in the code have changed since you opened this.  If you are still available, can you fix the conflicts, and make sure that lint and the tests pass? (yarn lint and yarn test)  As @lazd mentioned, this change makes the data more consumable, which is great.  Cheers! jz

Yeah I'm keen to merge this one. I think the file should be:
{
  locations: {},
  timeseries: {}
}

Hi @jzohrab & @lazd ,
I am just seeing this now. I have just pulled from the upstream. Let me get acquainted with what's changed and see what I can do. I'll get back soon.
Cheers:-)

OK..
This is what I can say is happening so far (after having pulled from the upstream on the master branch + switching to this branch and running git pull origin master + running yarn timeseries again..):
I am getting no errors when running yarn test + yarn lint (actually, there were a couple of issues with prettier not liking my syntax/layout..fixed that..).
I did change the constant variable name fro combineLocationsTimeseriesByDate to LocationsAndDates (let me know if that works...).
As for any further iterations, I'm not quite sure what to do at this point. I am willing to study the code more if need be (& I'm open to directions & instructions if need be). This is a big project with lots of moving parts and I don't want to make any silly mistakes:-)
Let me know if I should re-push the existing code &/or add something new.
Cheers!

I'll check back in the morning..(California time). Be well everyone:-)

Hi all,
...just checking in... I have just run into some issues with testing...strange because I did not encounter any errors last night after running yarn lint and yarn test.  I did run yarn timeseries & yarn start again and as a result there are tests failing for some of the scrapers.. I'm not sure what's going on with that...be back in a bit:-)

@jzohrab can you help @firebuggirl with tests? I think it might be false positive.

Hi @firebuggirl - thanks for keep us updated!  Are you on our Slack?  It might be easier to chat on there.  My Slack name is the same as my github.  "Tests failing for some scrapers" could be false negatives -- i.e., nothing to do with your changes -- we're fixing tests and methods.

Hi @lazd,
I just realized that I had the wrong version of Node running after restarting my computer this morning. All is good now. All tests are passing. I should just set my default version to 13:-)

Hi again all,
I deleted a couple of my previous comments that are no longer relevant so as not to clutter this space up too much. I noticed that there have been some changes since last night, so I have updated everything (today => 3/8/20) with the current master branch (along with the changes that were proposed earlier).
Hope this helps:-)

@lazd , I was chatting with @firebuggirl today on Slack and we talked about testing and stability.  If this works, we can add it, and then backlog adding some testing for it (e.g., just a smoke test for this, to ensure it actually runs at all points in the future).  Thoughts?  What else might be needed for this PR to be complete?
Thanks again @firebuggirl !  z

Per discussion today, @lazd will rebase this against master and will merge it shortly.

Thanks for the update @jzohrab !

Updating @firebuggirl - we're dealing with some architecture redesign at the moment, so I'm not merging this for now.  Will keep it open so we can merge later.  Don't worry about fixing conflicts etc.  Cheers! z

Hi @jzohrab ,
Sounds good. Thanks for letting me know! I was wondering...Cheers:-)

Hi @firebuggirl -- after a long time sitting on this branch I'm going to close this PR.  Apologies for the time sink, this isn't ideal, but that's how things worked out.  When you submitted this, we were just starting moving to a new project (Li, https://github.com/covidatlas/li), and I didn't want to merge this b/c we were focused on that.  Now we're getting close to the end of the migration, and this idea has, for the moment, become obsolete.  We're generating reports in Li (https://github.com/covidatlas/li/blob/master/docs/reports.md) and the reports are now complete and standalone.
Thanks again for this contribution, and I hope to one day see another PR from you in Li.  Cheers and regards, jz

Hi @jzohrab,
Ah, no worries. Thank you for keeping me in the loop and thank you for letting me know about the new project over @ https://github.com/covidatlas/li . I look forward to checking it out!

Cheers, hope you are doing well.  New project is interesting and there are
some useful things that would hopefully be fun to hack on.  Have a good
one! Z
El El sáb, jul. 11, 2020 a la(s) 1:43 p. m., Juliette <
notifications@github.com> escribió:

Hi @jzohrab https://github.com/jzohrab,
Ah, no worries. Thank you for keeping me in the loop and thank you for
letting me know about the new project over @
https://github.com/covidatlas/li . I look forward to checking it out!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/covidatlas/coronadatascraper/pull/543#issuecomment-657101813,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAMPWDJ6JNC7LNEPJO24J6DR3CQFHANCNFSM4LXCFQMQ
.

authors: firebuggirl hyperknot jzohrab lazd

repo: covidatlas/coronadatascraper


text:
Beef up integration test

case RE-948: I did the best here to be terse but understandable, which was difficult without the QA tools. Regardless, I think this will work.
By submitting pull requests to this repo, I agree to the Contributor License Agreement which can be found at: https://github.com/cpanel/elevate/blob/main/docs/cPanel-CLA.pdf

Presumably if the pipeline passes (or fails legitimately) I'll have done my job

You'll need to add Test::FailWarnings to t/cpanfile so that it gets installed in the setup step.  Can't believe we don't already use that :\

You'll need to add Test::FailWarnings to t/cpanfile so that it gets installed in the setup step. Can't believe we don't already use that :\

Or make this Test2
use cPstrict;
use FindBin;

use Test2::V0;
use Test2::Tools::Explain;
use Test2::Plugin::NoWarnings;
use Test2::Tools::Exception;

use Test::MockModule qw/strict/;

use lib $FindBin::Bin . "/lib";

authors: cPholloway toddr troglodyne

repo: cpanel/elevate


text:
No rows gets selected

Hi,
i followed your instructions but no rows will be returned.
The following line results in SQLITE_DONE and no rows are fetched.
while (sqlite3_step(statement) == SQLITE_ROW) {
My setup looks like:
// Model:
@interface Genre : MojoModel
@property (nonatomic, retain) NSString* name;
@end
@implementation Genre
@synthesize name=_name;
@end
// App delegate:
self.myDatabase = [[AppDatabase alloc] initWithMigrations];
#ifdef TARGET_IPHONE_SIMULATOR
[self.myDatabase setLogging:YES];
#endif
// App database:
[self createGenreTable];
-(void)createGenreTable
{
[self executeSql:@"CREATE  TABLE main.Genre (primaryKey INTEGER PRIMARY KEY  AUTOINCREMENT  NOT NULL  UNIQUE , name VARCHAR);"];
}
There are already two rows within this table.
I tried fetching them with custom sql and with [Genre findAll];
best regards
René

It was my mistake - have used the wrong table to insert test data ;)
Now it's working fine!

repo: cpjolicoeur/mojo-database


text:
Failure when CPM_SOURCE_CACHE is specified with CLion

I'm using the latest version of CPM, freshly downloaded. Using CLion, CMake 3.24/3.22 and Windows 10.
If CPM_SOURCE_CACHE is set, it "fails" and the script configuration crashes, complaining that the folders already exist. (They do not. This is from a completely clean folder with no cache directories.)
This is the CMake script I have:
set(CPM_SOURCE_CACHE .cache/CPM)
CPMAddPackage(
    GIT_TAG release-2.0.22
    GITHUB_REPOSITORY libsdl-org/SDL
)

And this is the output:
CPM_SOURCE_CACHE: .cache/CPM
-- CPM: adding package SDL@ (release-2.0.22 to E:/Git/Antimony-III/.cache/CPM/sdl/22376c56c7faadb422628d46bf5157d6eb41d577)
[1/9] Creating directories for 'sdl-populate'
[1/9] Performing download step (git clone) for 'sdl-populate'
fatal: destination path '22376c56c7faadb422628d46bf5157d6eb41d577' already exists and is not an empty directory.
fatal: destination path '22376c56c7faadb422628d46bf5157d6eb41d577' already exists and is not an empty directory.
fatal: destination path '22376c56c7faadb422628d46bf5157d6eb41d577' already exists and is not an empty directory.
-- Had to git clone more than once:
          3 times.
CMake Error at E:/Git/Antimony-III/cmake-build-release/_deps/sdl-subbuild/sdl-populate-prefix/tmp/sdl-populate-gitclone.cmake:31 (message):
  Failed to clone repository: 'https://github.com/libsdl-org/SDL.git'

Upon reloading the CMake config, it also either "fails" to remove the previous cache folders -
Error removing directory "E:/Git/Antimony-III/.cache/CPM/sdl2/22376c56c7faadb422628d46bf5157d6eb41d577".
CMake Error at E:/Git/Antimony-III/cmake-build-release/_deps/sdl2-subbuild/sdl2-populate-prefix/tmp/sdl2-populate-gitclone.cmake:12 (message):
  Failed to remove directory:
  'E:/Git/Antimony-III/.cache/CPM/sdl2/22376c56c7faadb422628d46bf5157d6eb41d577'

or complains that the cache is dirty:

CMake Warning at cmake/CPM.cmake:679 (message):
  Cache for SDL2
  (E:/Git/Antimony-III/.cache/CPM/sdl2/22376c56c7faadb422628d46bf5157d6eb41d577)
  is dirty

What is bizarre is that the git command actually does run in the background silently and CLion reports the project's CMake config as "loading" until the repo is downloaded - but because of the error, the CMake parser actually stops midway and corrupts the build cache. If I wait until it finished downloading and try to build the project, it will complain that the project cache is incomplete.
C:\Users\Banderi\AppData\Local\JetBrains\Toolbox\apps\CLion\ch-0\221.5591.52\bin\cmake\win\bin\cmake.exe --build E:\Git\Antimony-III\cmake-build-debug --target Antimony3 -j 9
Error: could not find CMAKE_PROJECT_NAME in Cache

If I run CMake manually with CLI with my project, it creates all the files and compiles just fine.
Running from CLion without CPM_SOURCE_CACHE set also runs and compiles fine.

Found the culprit.
When multiple target configurations are present in CLion (e.g. Debug, Release, etc.) the IDE runs CMake configurations in parallel for each build type -- this effectively causes the process to succeed the first time and fail for the others.
A temporary workaround is to set CPM_SOURCE_CACHE to something like .cache/CPM-${CMAKE_BUILD_TYPE} but this seems very wasteful and will effectively clone the repository twice.

Happy to hear you could solve the issue!

I too have encountered this problem. Would it be possible to integrate this code into CPM to eliminate this issue in the future? Perhaps there are downsides to this that I am not seeing?
I was able to set up a block of code that looks like
# Add all packages
file(LOCK ${CPM_SOURCE_CACHE} DIRECTORY GUARD FILE)
CPMAddPackage(NAME Ccache.cmake GITHUB_REPOSITORY TheLartians/Ccache.cmake VERSION 1.2)

CPMAddPackage(NAME AssImp GITHUB_REPOSITORY assimp/assimp VERSION 5.2.5)
CPMAddPackage("gh:g-truc/glm#master")
CPMAddPackage("gh:nigels-com/glew#glew-2.2.0")
CPMAddPackage("gh:glfw/glfw#3.3.8")
CPMAddPackage("gh:gabime/spdlog@1.11.0")
CPMAddPackage("gh:charles-lunarg/vk-bootstrap@0.6")
CPMAddPackage("gh:GPUOpen-LibrariesAndSDKs/VulkanMemoryAllocator@3.0.1")
file(LOCK ${CPM_SOURCE_CACHE} DIRECTORY GUARD FILE RELEASE)

This code worked well for me, but if the file locking was integrated into CPM, then the parallelization of the CMake scripts would not be as hindered as they are with the configuration above.

Is this fixed with #427?

Update: seems this is fixed according to https://github.com/cpm-cmake/CPM.cmake/issues/293#issuecomment-1407416655.

authors: Banderi PercentBoat4164 TheLartians


text:
How to access multiple HTTP GET parameters with the same identifier

http://www.example.com/path?id=123&version=3&name=XYZ&arg=asdf
in request::destination contains only: path?id=123
with access version=3&name=XYZ&arg=asdf in server http?

Not pertinent
Sorry!

repo: cpp-netlib/cpp-netlib


text:
turbolinks support

Closes cprodhomme/arctic_admin#66

Closes #66

Hello !
sorry for the late !
How can i test your pull-request ?
How can i use turbolinks on ActiveAdmin ?

Hello @vieditcom @frullah  !
sorry for the late !
How can i test your pull-request ?
How can i use turbolinks on ActiveAdmin ?

Thanks for your work !
I resolve the conflict in the PR : https://github.com/cprodhomme/arctic_admin/pull/109

authors: cprodhomme vieditcom


text:
Namespaces/prefixes for components' private member

When a game becomes bigger and components more numerous, I often run into the problem that components override each others properties. This should be a clear example:
Crafty.c('Lamp', {
    flash: function() {
        console.log('Flashing light intensity ' + this._strength);
    },
    _strength: 10
});

Crafty.c('Bomb', {
    explode: function() {
        console.log('Explode with intensity ' + this._strength);
    },
    _strength: 20
});

var ent = Crafty.e('Lamp, Bomb');
ent.flash(); // logs "Flashing light intensity 20"
ent.explode(); // logs "Explode with intensity 20"

I think the problem is that many components have mostly private properties, which get overridden nonetheless, when another component uses the same name. For the public properties the developer has to take care that no naming clashes occur. Sure, one could just keep track of the private names oneself as well, but this becomes very difficult as the code base grows and I think this is something that should be handled by Crafty.
The best solution for how it could be fixed in the future I could come up with so far, is prefixing private members, internally with the component name(this would have to be done by the extend method) and then accessing them via a getter method(i.e. getPrivate()). So when a component Bomb is added with a _strength member, the extend method could add '_Bomb_strength' instead.
That way private members would not get overridden.
Crafty.c('Bomb', {
    explode: function() {
        // accessing the private member
        console.log('Explode with intensity ' + this.getPrivate('_strength');
    },
    _strength: 20
});

How do you guys usually solve this kind of problem? I would like to hear your thoughts.

I definitley aggree this can be annoying -- in practice I've simply avoided declaring the same variables in different components.  There's an open issue to at least warn when two components have declared the same property, which at least would prevent you from being surprised by unexpected conflicts.

this.getPrivate('_strength')

This technique wouldn't quite work -- when you call entity.explode(), then this will refer to the entity, with no knowledge about which component setup the explode function.  So getPrivate wouldn't know what prefix to add.
I believe the standard approach with component frameworks is to always prefix each property with the component name: entity.component("2D").x, entity.component("Bomb").explode(), and so forth.  Crafty gives you the convenience of methods/properties living directly on the entity, with the inconvenience of having to manually prevent conflicts.  In practice I've found this to be ok, but there are two ways we could improve it:

Warn about conflicts as mentioned above
Make it less likely for internal names in built-in components to conflict, probably by prefixing (i.e. the "Color" component could use _colorStrength instead of _strength)

Yeah, I see now how this.getPrivate('_strength') would not work because it would not know, what prefix to add.
It is Crafty's gift and curse that members live directly on the entity. It's convenient to code but completely removes the availability of private members.
Another very simple way of introducing private members would be by modifyig the definition of the Crafty.c() function:
c: function (compName, component) {
        if(typeof component === 'function') {
            components[compName] = component;
        } else {
            components[compName] = component.call(this);
        }
    },

It would then also accept a function as a second argument and could be called like this:
Crafty.c('Bomb', function () {
    var strength = 3;
    return {
        explode: function() {
            console.log('Explode with intensity ' + strength);
        }
    }
});

I think this would be a nice solution, because it still compatible with the current style of creating entites, but additionally offers the possibility of using private members via closures. What do you of that?
Sure, one could also manully prefix membernames(i.e. with the component name) but then it becomes a hassle when you decide to change the component name. Also for larger games or when using third party components its just hard to keep track of the all the names that have been used.

I realized why my suggestion above would also be problematic. When putting private members inside a closure the members would be shared across the entities. We need them to be separate for each entity though.

Probably not the best solution, but you could define the member functions during the init-call. Might cause some performance issues.
Crafty.c('Lamp', {
    init: function() {
      var _strength = 10;
      this.flash = function() {
          console.log('Flashing light intensity ' + _strength);
      };
    }
});

Crafty.c('Bomb', {
    init: function() {
      var _strength = 20;
      this.explode = function() {
          console.log('Explode with intensity ' + _strength);
      };
    }
});

var ent = Crafty.e('Lamp, Bomb');
ent.flash(); // logs "Flashing light intensity 10"
ent.explode(); // logs "Explode with intensity 20"

Hey @theodorton, sorry for the late respnse, I haven't been on github in a while. Your solution would definitely work. But I do think that this would result is messy definition of the components. Just imagine if you define a large one and everything is crammed into the init function.

I just came up with something else:
It is kind of like my suggestion above(comment from June 1) but with a slight modification. For this to work we would need the Crafty.c() function  to also accept function as described in  said suggestion above.
Then you could define private variable inside the closure but not initialize it until it .init() is called, like this:
Crafty.c('Bomb', function () {
    var private;
    return {
        init: function() {
            private = {
                strength: 3,
            }
        },
        explode: function() {
            console.log('Explode with intensity ' + private.strength);
        }
    }
});

This way each component has its own namespace for private stuff. What do you think?

You could also have a warning mechanic on the addComponent method. when the entity is made and several components are 'merged' into a new entity, a exception could be thrown that certain keys are already taken, forcing you to change the naming.

@matthijsgroen I tried that in https://github.com/craftyjs/Crafty/pull/713 but there were soo many exceptions to that rule that it was not worth it sadly!

@kevinsimper nice that you tried it already, and too bad that its not a feasible solution for this
so far I do like the solution proposed by @theodorton. But to be honest, its not a problem I have run in too so far.

authors: ChristophP kevinsimper matthijsgroen starwed theodorton

repo: craftyjs/Crafty


text:
Row is too big to fit in the cursor window required pos 2 in Android

Hi , i am storing a JSON file as a text field of sqlite.
In Android, i am getting the error "row is too big to fit in the cursor window required pos 2" while getting it from the sqlite.but in ios same thing is working fine.

This is an Android SQLite3 problem and nothing to do with this plugin.

See https://github.com/craftzdog/react-native-sqlite-2/issues/57#issuecomment-491156124

authors: craftzdog qdevelopergithub


text:
Implement date_bin scalar function

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)

retest this please

repo: crate/crate


text:
tests: Fix printed gradle reproduction line

Summary of the changes / Why this improves CrateDB
-Dtests.class/-Dtests.method don't work to test a specific
class/method with gradle. Instead, --tests="<class>.<method>"
must be used.
Checklist

[ ] Added an entry in CHANGES.txt for user facing changes
[ ] Updated documentation & sql_features table for user facing changes
[ ] 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)

Why doesn't it work? It works for me 🤔

Why doesn't it work? It works for me thinking

./gradlew :server:test -Dtests.class="io.crate.integrationtests.PostgresJobsLogsITest" for me executes 248 tests

@seut you can add -Dtests.verbose=true to see exactly which tests/methods are run.

authors: matriv seut


text:
Remove return value from prepareSourceOperations

It always just returned an empty list.
The contexts are actually registered in the innerPreparer while the phases are
being processed.

@matriv please review

Current coverage is 80.68% (diff: 100%)

Merging #4322 into master will decrease coverage by 0.62%

@@             master      #4322   diff @@
==========================================
  Files          1312       1312
  Lines         44712      40874   -3838
  Methods           0          0
  Messages          0          0
  Branches       7121       6847    -274
==========================================
- Hits          36357      32981   -3376
+ Misses         5669       5318    -351
+ Partials       2686       2575    -111

Powered by Codecov. Last update b006e41...fd9156a

authors: codecov-io mfussenegger


text:
Doesn't work with copyq

On Windows 10 this doesn't work
choco install copyq
ps copyq | kill
iconrefresh

@majkinetor You can try this app instead

authors: crazy-max majkinetor

repo: crazy-max/IconsRefresh


text:
Day83: LeetCode-451. Sort Characters By Frequency - HashTable

Sort Characters By Frequency
https://leetcode.com/problems/sort-characters-by-frequency/
Given a string s, sort it in decreasing order based on the frequency of the characters. The frequency of a character is the number of times it appears in the string.
Return the sorted string. If there are multiple answers, return any of them.

Example 1:
Input: s = "tree"
Output: "eert"
Explanation: 'e' appears twice while 'r' and 't' both appear once.
So 'e' must appear before both 'r' and 't'. Therefore "eetr" is also a valid answer.
Example 2:
Input: s = "cccaaa"
Output: "aaaccc"
Explanation: Both 'c' and 'a' appear three times, so both "cccaaa" and "aaaccc" are valid answers.
Note that "cacaca" is incorrect, as the same characters must be together.
Example 3:
Input: s = "Aabb"
Output: "bbAa"
Explanation: "bbaA" is also a valid answer, but "Aabb" is incorrect.
Note that 'A' and 'a' are treated as two different characters.

repo: crazymanish/dsa


text:
Issue #4279 Fix case sensitive WSL2 validation check

The WSL validation check assumes that the name "Microsoft" is capitalized but this is not true in all cases.
Fixes: Issue #4279
Relates to: Issue #2131 , PR #2323
Solution/Idea
Enhancing WSL validation check to be case-insensitive to prevent users from attempting to run on an unsupported platform.
Proposed changes
Updated validation check to force toLower(...) on the output of /proc/version prior to searching for the target substring of microsoft.
Testing
Validation check now prevents running on systems running WSL regardless of the capitalization of the word Microsoft.
alegacy@localhost:~/src/go/github.com/crc$ ./out/crc setup
INFO Using bundle path /home/alegacy/.crc/cache/crc_libvirt_0.0.0-unset_amd64.crcbundle
INFO Checking if running as non-root
INFO Checking if running inside WSL2
CRC is unsupported using WSL2

alegacy@localhost:~/src/go/github.com/crc$ cat /proc/version
Linux version 5.15.153.1-microsoft-standard-WSL2 (root@941d701f84f1) (gcc (GCC) 11.2.0, GNU ld (GNU Binutils) 2.37) #1 SMP Fri Mar 29 23:14:13 UTC 2024
```shell

/ok-to-test

Thanks. The test can be stricter, as it contains WSL2 too when MS provided the kernel.
Note: however, any custom kernel will not contain this, so the current test is not restrictive enough (but works for most cases).

@cfergeau @gbraad @praveenkumar  ... some tests appear to be failing.  I don't think any of them are affected by my changes.   Do these tests have a history of intermittent failures?   Should I re-trigger and hope for the best or is there some automation that will come around to do that?

/retest-required

@cfergeau @gbraad @praveenkumar ... some tests appear to be failing. I don't think any of them are affected by my changes. Do these tests have a history of intermittent failures? Should I re-trigger and hope for the best or is there some automation that will come around to do that?

Don't worry about the tests, they are unfortunately very unreliable :(

authors: alegacy cfergeau gbraad

repo: crc-org/crc


text:
Gemを更新する

Gemを2020-04-15時点での最新版に更新します。actionviewの脆弱性（CVE-2020-5267）の修正を含みます。

ローカル環境でテストが通ったので、マージします。

repo: cre-ne-jp/log-archiver


text:
Add a README file

Please create a README file for this repository as specified in our GitHub Repo Guidelines

@kgodey please check the readme file.

looks good, thanks!

authors: kgodey soccerdroid

repo: creativecommons/cccatalog-dataviz


text:
Add "delete account" feature to destructively delete all local data

There should be a mechanism to delete all user information and user-generated-content from the Open Ledger, which persists some information that it replicates from CAS (maybe more than necessary).
This delete should be destructive.

@robmyers I implemented this to delete everything user-created in the Open Ledger, but I can't see a way to delete my account from CAS as well. I bet the feature exists but maybe it's just not exposed on https://login.creativecommons.org/login?

I think that:
Deleting the CAS account shouldn't be 1:1 with deleting the user's account in Open Ledger as people may also be using their CAS account to log on to (e.g.) the Wiki.
The user should be offered the ability to delete their CAS acount when they delete their Open Ledger account, with suitable warnings.
That said:
RubyCAS doesn't seem to have a method to delete a user(!). I can't find anything in the spec file or the model, and searching for remove/delete/unregister doesn't show anything.
So I think we'd have to implement that ourselves(!).
I'm hoping I'm wrong about this, but I really can't find anything (I didn't write CCID, Matt did):
https://github.com/creativecommons/CCID-cas
https://github.com/rubycas/rubycas-server

Oh, I completely agree they should be separate functions; I was just planning on directing the user (with messaging) on where to do the next step if they chose.

Deployed OL version, but can come back to add messaging or direct URLs to full deletion if we get there.

authors: lizadaly robmyers

repo: creativecommons/open-ledger


text:
Set Storybook as the landing page for Vocabulary

Description
This PR removes the landing website, sets Storybook as the landing website and makes the npm scripts similar to Vocabulary.
Type of PR
This PR is a feature.
Checklist:

[x] My pull request has a descriptive title (not a vague title like "Update index.md").
[x] My pull request targets the master branch of the repository.
[x] My commit messages follow best practices.
[x] My code follows the established code style of the repository.
[ ] I added tests for the changes I made (if applicable).
[x] I added or updated documentation (if applicable).
[x] I tried running the project locally and verified that there are no visible errors.

Legal
By submitting this PR, I agree to abide by the terms of the Developer
Certificate of Origin.

Developer Certificate of Origin
Developer Certificate of Origin
Version 1.1
Copyright (C) 2004, 2006 The Linux Foundation and its contributors.
1 Letterman Drive
Suite D4700
San Francisco, CA, 94129
Everyone is permitted to copy and distribute verbatim copies of this
license document, but changing it is not allowed.
Developer's Certificate of Origin 1.1
By making a contribution to this project, I certify that:
(a) The contribution was created in whole or in part by me and I
have the right to submit it under the open source license
indicated in the file; or
(b) The contribution is based upon previous work that, to the best
of my knowledge, is covered under an appropriate open source
license and I have the right under that license to submit that
work with modifications, whether created in whole or in part
by me, under the same open source license (unless I am
permitted to submit under a different license), as indicated
in the file; or
(c) The contribution was provided directly to me by some other
person who certified (a), (b) or (c) and I have not modified
it.
(d) I understand and agree that this project and the contribution
are public and that a record of the contribution (including all
personal information I submit with it, including my sign-off) is
maintained indefinitely and may be redistributed consistent with
this project or the open source license(s) involved.

@kgodey should I go ahead with this? This PR is the Vue Vocabulary correspondent of creativecommons/vocabulary#132.

Added a couple of comments but they don't need to block the PR.

authors: dhruvkb kgodey

repo: creativecommons/vue-vocabulary


text:
Page container is wider than the viewport

Great work on this project, there are a few places where it is not completely responsive. The footer flows out of it's container and breaks the page flow.

Hello @lacymorrow ,
Thank you for your interest in our product.
To fix this, you only have to make the container of the footer fluid.
Best,
Manu

authors: EINazare lacymorrow


text:
feat: JSON-LD issuance implementation

[ ] Create a v2 credential offer with JSON-LD

Need to create new task

repo: credebl/platform


text:
Fix java doc issues

Reviewer checklist

[ ] Ensure relevant issues are linked (description should include text like "Fixes #")
[ ] Ensure any appropriate documentation has been added or amended

Coverage remained the same at 97.79% when pulling fbd03c0de8ae7adaa5386d0fc17a44767f821201 on javadocs into 92d0efc74d4b3362be8783438c431c352bec2a46 on main.

authors: big-andy-coates coveralls

repo: creek-service/creek-platform


text:
decouple fabric from vagrant

Say I decide to self host crestify, I should be able to reuse the existing fab files.
I current fabfile has a direct dependency on vagrant.
We need a way to specify the deployment target dynamically, be it a Vagrant box or a real server.

What is the canonical way to deploy crestify to a remote host right now?

The dependency on Vagrant is not hard. We can rewrite the fabfile to work with other hosts fairly easily, and the same process should work for setting up Crestify on a remote host. I wouldn't want to touch the Postgres part of things when deploying on a remote host though, as there's potential for things going wrong.

Rather than Fabric, why not use Ansible instead?

Closing this issue as Vagrant will not be used going forward, and even Fabric might be replaced.

authors: dfundingsland dhamaniasad satyanash

repo: crestify/crestify


text:
Docs messaging & cleanup

Rephrase "programming language" as "runtime-agnostic," at Dritan's & Ledion's request.
Minor copy edits – mostly splitting or punctuating long sentences.
Fix 1 malformed link, & 1 obsolete/mismatched link label.

Looks good to me.

@coccyx OK to merge this?

authors: dritanbitincka mQkatz

repo: criblio/appscope


text:
Custom Array Document API

Objectives
This pull request re-implements the WritableArray type using a new result builder tailor-made
to BSON array document composition, and closes #35. This exposes a more natural API when
composing array documents, while preserving the existing string-keyed document composition API.
Detailed Design
Note there is a significant additional performance cost to the proposed design. Since it relies
on joined() arrays of existential values, it suffers from numerous intermiediary allocations
and dynamic dispatch calls. This was favored due to the simplicity of the implementation for now,
and may change in the future. See the alternatives considered section for details.
No More Indices
Array documents are now intialized by providing a list of WritableValues to the result builder
closure without explicitly declaring indices. The indices are calculated when the encode(to:)
method is called and the document hierarchy has already been flattened by the result builder.
The following example declares an array document with three different types, and a conditional
statement.
let doc = WritableArray {
    "zero"
    Int32(1)
    if skipTwo {
        3.0
    } else {
        Int64(2)
    }
}

Natural Heterogenous Loops
Previously, integer-keyed documents had to be manually composed using the ForEach type. Not only
did this require explicit index declaration, but it required all components in the loop to be of
the same type conforming to WritableValue, and did not accept existentials for performance
reasons. The new loop API depends on existentials entirely, and therefore type-erases each value
for the caller. It also features a more natural loop expression using a swift for statement.
let collection: [WritableValue] = [Int64(0), "one", 2.0]
let doc = WritableArray {
    for value in collection {
        value
    }
}

Alternatives Considered
These alternatives require technology currently in development.
Partial Block Building
The new buildPartialBlock method in Swift 5.7 removes the need for the TupleX types used
by the current DocBuilder implementation and instead reduces each new component into the
previous one. This makes building more linear, and should allow for simple increment-based
index assignment. The following should be a working implementation, but I haven't tinkered with
the actual toolchain yet.
public protocol IndexedDocComponent: DocComponent {
    var lastIndex: Int { get }
}

struct First<T: WritableValue>: IndexedDocComponent {
    let value: T
    var lastIndex: Int { 0 }

    func append<Doc>(to document: inout Doc)
    where Doc : RangeReplaceableCollection, Doc.Element == UInt8 {
        document.append(value.bsonType)
        document.append(contentsOf: String(lastIndex).utf8)
        document.append(0)
        value.append(to: &document)
    }
}

struct Tuple<T: IndexedDocComponent, V: WritableValue>: IndexedDocComponent {
    let previousTuple: T
    let nextValue: V
    var lastIndex: Int

    func append<Doc>(to document: inout Doc)
    where Doc : RangeReplaceableCollection, Doc.Element == UInt8 {
        previousTuple.append(to: &document)
        document.append(nextValue.bsonType)
        document.append(contentsOf: String(lastIndex).utf8)
        document.append(0)
        value.append(to: &document)
    }
}

@resultBuilder public struct ArrayDocBuilder {
    public static func buildPartialBlock<T: WritableValue>(
        first content: T
    ) -> some IndexedDocComponent {
        First(content)
    }

    public static func buildPartialBlock<T, Next>(
        accumulated: T,
        next: Next
    ) -> some IndexedDocComponent where T : IndexedDocComponent, Next : WritableValue {
        Tuple(previousTuple: accumulated, nextValue: next, lastIndex: accumulated.lastIndex + 1)
    }
}

Variadic Generics
Now that variadic generics have been accepted into the language, we are awaiting its implementation
to help out with this existential type problem. We should be able to make the buildBlock(_:)
method generic over a pack of types conforming to WritableValue. We can then iterate over the
pack and append each key-value pair using an internally tracked index. This should be faster than
the buildPartialBlock(accumulated:next:) solution above, but I don't have a good concept of what
that would look like yet.

Next steps include a test for document nesting, the do-catch syntax, and a documentation review.

repo: crichez/swift-bison


text:
fixed build error;  multiple instances of RCTBridge

the compiler in xcode was failing because of an update to react-native;
I fixed it by changing the import statement.
Please merge soon, so that the change will be available on npm.  This is a big pain.  I've had to update the file manually every time I build.
Thanks for your work on this project.  It's a big help.

@srt0422 thanks, merged, not sure if I followed the right steps to get the version tag in the correct place (did a commit for the tag and then accepted your merge and then did a npm publish)
glad some one is using this

thanks.  I'll do an npm update.
On Wed, Mar 29, 2017 at 11:12 AM, Cristian Szwarc notifications@github.com
wrote:

@srt0422 https://github.com/srt0422 thanks, merged, not sure if I
followed the right steps to get the version tag in the correct place (did a
commit for the tag and then accepted your merge and then did a npm publish)
glad some one is using this
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/cristianszwarc/RNDeviceAngles/pull/1#issuecomment-290176228,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AA1DM2CgEcXdJDF5rm449miUe9voKiAZks5rqp7_gaJpZM4MtAmN
.

repo: cristianszwarc/RNDeviceAngles


text:
hmac validation and upgrade of pytest versions

HMAC validation added to the Client functionality.
Also, fix added as Tests were failing to run due to old version mismatch current python version.

Hey @Nevett after rebasing this project with master (which contained latest changes from GitHub-actions-migration) I realised that the CI tests where failing, after some investigation I figure out that it was due to a problem with the python versions 2.7 was deprecated and 3.6 didn't have the Mac.digest functionality, as this last one was available from 3.7. So I have modified the GitHub Actions python versions to [3.7,3.8,3.9] and seems like is working fine now! Let me know if you have any concerns about it, please?

Hey @Nevett after rebasing this project with master (which contained latest changes from GitHub-actions-migration) I realised that the CI tests where failing, after some investigation I figure out that it was due to a problem with the python versions 2.7 was deprecated and 3.6 didn't have the Mac.digest functionality, as this last one was available from 3.7. So I have modified the GitHub Actions python versions to [3.7,3.8,3.9] and seems like is working fine now! Let me know if you have any concerns about it, please?

Let's try to continue supporting 2.7 as discussed, and take a look at compare_digest instead of quality comparison to avoid timing attacks.

authors: Grajo Nevett

repo: cronofy/pycronofy


text:
Hello world example for channels is broken

The example as provided on docs.rs does not actually work:
use crossbeam_channel::unbounded; // BUG - this use will not work!

// Create a channel of unbounded capacity.
let (s, r) = unbounded();

// Send a message into the channel.
s.send("Hello, world!").unwrap();

// Receive the message from the channel.
assert_eq!(r.recv(), Ok("Hello, world!"));

Not that it is a major issue, but may take a while for someone to figure out they are not going insane and the correct use is
use crossbeam::channel::unbounded;

Not a major issue but given that this is literally the "Hello World" example it may not project the best image to a new user=)

Duplicate of https://github.com/crossbeam-rs/crossbeam/issues/529.

authors: alexpyattaev taiki-e

repo: crossbeam-rs/crossbeam


text:
[DO NOT MERGE] Add opensearch

This Draft PR contains code for OpenSearch following the information in CODE_GENERATION.md.
I am facing a problem on on Observe step, where the Not Found response from the service has a different format than most other services, in particular it isn't structured to contain awsErr.Error or awsErr.Code.
More detailed information about the issue is in:
https://github.com/crossplane-contrib/provider-aws/issues/1228#issuecomment-1140860899

Description of your changes

Fixes #1228
I have:

[ ] Read and followed Crossplane's contribution process.
[ ] Run make reviewable test to ensure this PR is ready for review.

How has this code been tested

@sendmars thanks for your effort we merged https://github.com/crossplane-contrib/provider-aws/pull/1453 as up2date

authors: haarchri sendmars

repo: crossplane-contrib/provider-aws


text:
Give larhauga write access to repo

@hasheddan could you give @larhauga access? thanks!

I believe @muvaf set up this repo so I don't have access to add new folks. @muvaf could you add @larhauga and then close this out? :)

Ugh sorry that took some time. @larhauga you should get an invite now

authors: chlunde hasheddan muvaf


text:
prevent "stack init" from clobbering stack without "stack init -f"

It is possible to run kubectl crossplane stack init from the wrong path or as a repeated command and lose all of the existing stack information.
This PR adds a init -f argument that must be supplied to allow an existing stack directory to be re-init'd.
This PR also includes a change to make install which permits make install to be re-run (useful during local development iterations).

I forgot to include this in my previous batch of comments, but could you also update the commit messages to follow the standard crossplane convention?

authors: displague suskin

repo: crossplaneio/crossplane-cli


text:
Fix ios eas build fail

Fixes #367, fixes #373
IOS를 대상으로 한 eas build에서 빌드가 실패하는 이슈에 대한 픽스입니다.
#367 (comment by @Benj846)
#367 (comment by @kkiriky)
#373 (comment by @Benj846)
위 코멘트들을 바탕으로 AppDelegate.mm에서 #import <RNKakaoLogins.h>가 삽입되는 위치를 변경하였습니다.
expo==48.0.10 버전에서 테스트되었습니다.

@hyochan 리뷰 부탁드립니다!


text:
Keyboard friendly UI components

Many people tend to use only keyboard to navigate, let's add support for this by highlighting components when tabbed and other things

This is about the tab index:
https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/tabIndex
We can define it explicitly
On Thu, Sep 10, 2015 at 6:27 PM, Durim Morina notifications@github.com
wrote:

Many people tend to use only keyboard to navigate, let's add support for
this by highlighting components when tabbed and other things
—
Reply to this email directly or view it on GitHub
https://github.com/crowdresearch/crowdsource-platform/issues/510.

yep, + a bit of css

authors: dmorina mbernst

repo: crowdresearch/crowdsource-platform


text:
firewall-bouncer dies after boot

On all my instances (X86-64 & Arm), I mentioned that the FW bounce dies immediately after the host has booted.
Reason: the network (DNS???) is not really ready and the DNS lookup for the CS host fails.
Instead of making multiple tries, the bouncer dies after the first check and is never reactivated (even by systemd).
This is very dangerous in my mind, since I didn't find yet a very simple way to be notified that a bouncer is no more alive.
time="17-11-2022 11:45:30" level=info msg="Processing new and deleted decisions . . ."
time="17-11-2022 11:45:30" level=error msg="auth-api: auth with api key failed return nil response, error: dial tcp: lookup XXXXXXXXX on  [::1]:53: server misbehaving"
time="17-11-2022 11:45:30" level=error msg="Get \"http://(HIDDEN):38080/v1/decisions/stream?startup=true\": dial tcp: lookup (HIDDEN).
home on [::1]:53: server misbehaving"
time="17-11-2022 11:45:30" level=error msg="terminating bouncer process"

What DNS service are you running? I'm guessing not systemd-resolve. If it is classed as a systemd service you can edit the service file to boot after the dns service is up and running.

authors: LaurenceJJones bernhara

repo: crowdsecurity/cs-firewall-bouncer


text:
Adding missing parameters to  config_example.conf

needed for https://github.com/crowdsecurity/cs-openresty-bouncer/pull/50

Fixes https://github.com/crowdsecurity/lua-cs-bouncer/issues/59

repo: crowdsecurity/lua-cs-bouncer


text:
关于夜间模式

请问后续有给软件添加跟随系统变化夜间模式吗？

可能会支持

可能会支持，在早期版本是支持的，但后期移除了.后续可能适配多主题会加上吧

好的，麻烦作者了

authors: Qing-Novel crowforkotlin

repo: crowforkotlin/pastemangax


text:
Always need a custom server to access resources (e.g., files)?

SolidAuthSwift uses a public/private key pair to generate DPoP's (https://solid.github.io/solid-oidc/primer/). It seems like a bad idea to store these on a mobile client. They would presumably have to be static and built into the app. As I understand it, apps can be decompiled when phones are jail broken and this could break security. Thus, it seems like an iPhone app using SolidAuthSwift necessarily has to have a custom server if it wants to access resources on a Solid Server (e.g., files).
This happens to be the exactly use case I'm designing for for SyncServer/Neebla (e.g., https://github.com/SyncServerII/Neebla, https://github.com/SyncServerII/ServerMain), but not all iOS apps want to or need to use a custom server.

Actually I think the reverse is true.  The spec for DPoP says:

Native applications installed and run on a user's device, which often have dedicated protected storage for cryptographic keys are another example well positioned to benefit from DPoP-bound tokens to guard against misuse of tokens by a compromised or malicious resource.

The public and private keys are generated by the app rather than coded in.  The public key is sent to the authorising server which returns an access token which is bound to the public key - the token can only be used by a client possessing the private key.  A different DPoP is generated for each request.

That is very good to know. It won't be useful for me right now, but I'll look into how public/private keys can be generated in an iOS app. Thanks!

Some references:
https://stackoverflow.com/questions/31911821/creating-ssl-public-and-private-key-pair-in-ios-app
https://developer.apple.com/documentation/security/certificate_key_and_trust_services/keys/generating_new_cryptographic_keys?language=objc
https://developer.apple.com/forums/thread/85914
https://stackoverflow.com/questions/44305953/how-to-generate-rsa-public-and-private-keys-using-swift-3
https://stackoverflow.com/questions/33021946/generate-an-rsa-public-private-key-pair
https://stackoverflow.com/questions/24291264/ios-app-data-encryption-with-public-private-keys
Wow. I definitely learned something new today! :)

authors: crspybits wrmack

repo: crspybits/SolidAuthSwift


text:
Winter of Code Project Idea

Topic: CMS BPHC
Project:

As of now users get notification for every registered courses. The Plan is to add functionality so that students can select courses for which they would like to receive notifications.

The notifications are provided by running a background service periodically using IntentService. Apply the same logic using Firebase JobScheduler.

(Optional, if time permits): Shift to MVP architecture.
Skills Required: RecyclerView, Realm Database, Retrofit2, IntentService.
Optional Skills (for 3rd point): RxJava, Dagger2

Firebase job scheduler has been done.
@SKrPl can you add some more points here?

Also

Add firebase Crash Reporting.
In course filter for file names, headers.

I'm closing this issue as stale.

repo: crux-bphc/CMS-Android


text:
Remove the nil? method?

We copied the nil? method from Ruby. People coming from Ruby use it and find out it has unexpected behaviour in Crystal. For example:
x = some_nilable_value
if !x.nil?
  x.foo # Error, x might be nil
end

The problem is that nil? doesn't do what we call "type filtering": the compiler doesn't know x won't be nil inside the if. An alternative to the above is this:
x = some_nilable_value
if x
  x.foo # OK
end

The above works and is semantically equivalent as long as x's type doesn't include Bool. In that case, one can do:
 x = some_nilable_value
unless x.is_a?(Nil)
  x.foo # OK
end

(or if !x.is_a?(Nil) once and if we implement #1196)
Alternatively, we can make the compiler have .nil? as equivalent to .is_a?(Nil) and disallow defining this method, but, as always, I'd like to keep the language simple.
What do you think?

+1 on removing it. I use if x, or if x = method_call(...) form. Haven't
used #nil? so far.
--
Best Regards,
Oleksii Fedorov,
Programmer,
Software Craftsman (http://manifesto.softwarecraftsmanship.org/),
TDD, Pair-Programming, Microservices, Good Architecture, Ruby, Clojure, Go,
a bit of Web Frontend and more,
Follower of Software Engineering Code of Ethics (
http://www.acm.org/about/se-code),
+49 15757 486 476
On Tue, Mar 29, 2016 at 7:05 PM, Ary Borenszweig notifications@github.com
wrote:

We copied the nil? method from Ruby. People coming from Ruby use it and
find out it has unexpected behaviour in Crystal. For example:
x = some_nilable_valueif !x.nil?
x.foo # Error, x might be nilend
The problem is that nil? doesn't do what we call "type filtering": the
compiler doesn't know x won't be nil inside the if. An alternative to the
above is this:
x = some_nilable_valueif x
x.foo # OKend
The above works and is semantically equivalent as long as x's type
doesn't include Bool. In that case, one can do:
x = some_nilable_valueunless x.is_a?(Nil)
x.foo # OKend
(or if !x.is_a?(Nil) once and if we implement #1196
https://github.com/crystal-lang/crystal/issues/1196)
Alternatively, we can make the compiler have .nil? as equivalent to
.is_a?(Nil) and disallow defining this method, but, as always, I'd like
to keep the language simple.
What do you think?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub
https://github.com/crystal-lang/crystal/issues/2387

I would prefer to keep the .nil? and I see a bonus to translate it to .is_a?(Nil) in order to gain the type filtering. Nil is special after all.
I actually prefer to be explicit in if regarding not nil check. If I don't use .is_a?(Nil) is because it's too verbose compared to .nil?.
But I know in my head this goes all way back to avoiding anything but booleans in conditions. But still, I like to be able to be explicit regarding .nil?

@bcardiff The point about nil being special is true, so maybe having nil? as a short form of is_a?(Nil) is good. After all the compiler knows about nil, for example in if and while, and the standard library has not_nil! and so on. And people coming from Ruby won't be surprised... though their code might result being a bit more verbose than current Crystal code (just doing if x).

+1 for nil? => is_a?(Nil)
Sometimes, slight, verbosity is good to clarify intent :-)

I feel like testing for x being true vs nil? are not exactly equivalent.
This is where rspec gets its truthy vs falsey semantics which are very useful. I found this writeup, which was helpful in understanding the utility. https://gist.github.com/jfarmer/2647362

Based on the comments above and some discussions we had with @waj and @bcardiff we decided that the best thing to do is to make nil? be the same as is_a?(Nil). The reasons are:

Nil is already "special": the compiler knows about it and many language constructs (if, while, &&) do type filtering around it. It makes sense to make nil? have a similar behaviour.
nil? is used a lot by Ruby programmers. It's better if nil? works and does type filtering as one would expect.
if x.nil? and unless x have a different meaning. The later passes is x is false, so it makes sense to have a (short) way to check for nil-ness (is_a?(Nil) is much longer and involves parentheses).
It's really simple to implement, just syntax sugar :-)

I noticed there was Pointer#nil? which meant "returns true if the pointer's address is zero". I removed that method because it was misleading. Even though a null pointer is falsey, it's not nil (it's type is not Nil). So if you used Pointer#nil? you have to use now Pointer#null?. The bad thing is that it's not easy to spot where Pointer#nil? is used, so you'll have to go one by one and replace them... but this should only affect shards that deal with pointers (most probably C bindings). I prefer to break this now and have nil? be consistent with its meaning. (I'll write a big note about this in the next release notes/changelog)

I forgot to say, in the next release I'll also make the compiler give an error if you try to define a method named nil?, is_a?, responds_to? or !. I can't do that right now because nil? is still defined in the current compiler.

Should the to_s of and ASTNode or the formatter prefer to use .nil? syntax over .is_a?(Nil) ?

@bcardiff We could probably make is_a?(Nil) and nil? appear as nil?. In any case if we don't have two different nodes for nil? and is_a?(Nil) the to_s representation will have to always be one of those. And they both work in the same way, so I think it doesn't matter much how we show it.

authors: asterite bcardiff miketheman ozra waterlink

repo: crystal-lang/crystal


text:
ICE: Module validation failed

Module validation failed: Function return type does not match operand type of return inst!
  ret %"(Array(AnyHash::JSONTypes::Value) | Bool | Float32 | Float64 | Hash(String | Symbol, AnyHash::JSONTypes::Value)+ | Int128 | Int16 | Int32 | Int64 | Int8 | JSON::Any | Set(AnyHash::JSONTypes::Value) | String | Symbol | Time | UInt128 | UInt16 | UInt32 | UInt64 | UInt8 | Nil)" %1, !dbg !28
 %"(Array(AnyHash::JSONTypes::Value) | Bool | Float32 | Float64 | Hash(String | Symbol, AnyHash::JSONTypes::Value) | Int128 | Int16 | Int32 | Int64 | Int8 | JSON::Any | Set(AnyHash::JSONTypes::Value) | String | Symbol | Time | UInt128 | UInt16 | UInt32 | UInt64 | UInt8 | Nil)" = type { i32, [3 x i64] } (Exception)
  from Crystal::CodeGenVisitor#finish:Nil
  from Crystal::Compiler#codegen<Crystal::Program, Crystal::ASTNode+, Array(Crystal::Compiler::Source), String>:(Tuple(Array(Crystal::Compiler::CompilationUnit), Array(String)) | Nil)
  from Crystal::Compiler#compile<Array(Crystal::Compiler::Source), String>:Crystal::Compiler::Result
  from Crystal::Command#run:(Bool | Crystal::Compiler::Result | Nil)
  from main

Error: you've found a bug in the Crystal compiler. Please open an issue, including source code that will allow us to reproduce the bug: https://github.com/crystal-lang/crystal/issues

I have a hard time isolating the code responsible for the issue.
Happens with Crystal 0.26.0, Amber 0.8 and raven.cr (develop branch) on macOS.

@Sija Interesting, Does this error show any specific file/line about amber error?

@faustinoaq none I can find, with --debug flag it fails with:
$ shards build --debug
Dependencies are satisfied
Building: pet-tracker
Error target pet-tracker failed to compile:
Module validation failed: conflicting debug info for argument
  call void @llvm.dbg.declare(metadata i32 %__temp_1797, metadata !1566, metadata !366), !dbg !1528
!1529 = !DILocalVariable(name: "self", arg: 1, scope: !1513, file: !322, line: 61, type: !1530)
!1566 = !DILocalVariable(name: "__temp_1797", arg: 1, scope: !1513, file: !322, line: 61, type: !14)

Crystal::CodeGenVisitor#finish:Nil
Crystal::Compiler#codegen<Crystal::Program, Crystal::ASTNode+, Array(Crystal::Compiler::Source), String>:(Tuple(Array(Crystal::Compiler::CompilationUnit), Array(String)) | Nil)
Crystal::Compiler#compile<Array(Crystal::Compiler::Source), String>:Crystal::Compiler::Result
Crystal::Command#run:(Bool | Crystal::Compiler::Result | Nil)
main

Error: you've found a bug in the Crystal compiler. Please open an issue, including source code that will allow us to reproduce the bug: https://github.com/crystal-lang/crystal/issues

Ahh, finally with master (props to @RX14 for #6261!) we have some proper backtrace:
$ ../crystal/bin/crystal build src/pet-tracker.cr --debug

Using compiled compiler at `.build/crystal'
Module validation failed: conflicting debug info for argument
  call void @llvm.dbg.declare(metadata i32 %__temp_1797, metadata !1566, metadata !366), !dbg !1528
!1529 = !DILocalVariable(name: "self", arg: 1, scope: !1513, file: !322, line: 61, type: !1530)
!1566 = !DILocalVariable(name: "__temp_1797", arg: 1, scope: !1513, file: !322, line: 61, type: !14)

/Users/sija/Code/crystal/src/llvm/module.cr:78:9 in 'verify'
/Users/sija/Code/crystal/src/compiler/crystal/codegen/codegen.cr:343:9 in 'finish'
/Users/sija/Code/crystal/src/compiler/crystal/codegen/codegen.cr:67:7 in 'codegen'
/Users/sija/Code/crystal/src/compiler/crystal/codegen/codegen.cr:63:5 in 'codegen:debug:single_module'
/Users/sija/Code/crystal/src/compiler/crystal/compiler.cr:22:7 in 'codegen'
/Users/sija/Code/crystal/src/compiler/crystal/compiler.cr:145:16 in 'compile'
/Users/sija/Code/crystal/src/compiler/crystal/command.cr:264:7 in 'compile'
/Users/sija/Code/crystal/src/compiler/crystal/command.cr:262:5 in 'compile'
/Users/sija/Code/crystal/src/compiler/crystal/command.cr:164:5 in 'build'
/Users/sija/Code/crystal/src/compiler/crystal/command.cr:69:7 in 'run'
/Users/sija/Code/crystal/src/compiler/crystal/command.cr:48:5 in 'run'
/Users/sija/Code/crystal/src/compiler/crystal/command.cr:47:3 in 'run'
/Users/sija/Code/crystal/src/compiler/crystal.cr:8:1 in '__crystal_main'
/Users/sija/Code/crystal/src/crystal/main.cr:104:5 in 'main_user_code'
/Users/sija/Code/crystal/src/crystal/main.cr:93:7 in 'main'
/Users/sija/Code/crystal/src/crystal/main.cr:133:3 in 'main'

Error: you've found a bug in the Crystal compiler. Please open an issue, including source code that will allow us to reproduce the bug: https://github.com/crystal-lang/crystal/issues

Funny, here is another undocumented thing to debug this kind of error:
https://github.com/crystal-lang/crystal/blob/master/src/compiler/crystal/codegen/codegen.cr#L324-L338
One can do DUMP=1 crystal build <file> to dump the llvm-ir before the ir validation (that triggers a module validation error as OP).
You can also do DUMP=some_regex crystal build <file> to dump only the llvm module that matches some_regex.

@bew Nice find! I'll dig into that and report back.

Interestingly, the latter exception relates to https://github.com/amberframework/amber/blob/v0.8.0/src/amber/server/server.cr#L63, if I comment that line we're back to square/exception one.

Seems like it has been fixed by #6346 and/or others.

Interestingly now it fails with:
Using compiled compiler at `.build/crystal'
Error in src/pet-tracker.cr:3: instantiating 'Amber::Server:Class#start()'

Amber::Server.start
              ^~~~~

in lib/amber/src/amber/server/server.cr:17: instantiating 'Amber::Server#run()'

      instance.run
               ^~~

in lib/amber/src/amber/server/server.cr:47: instantiating 'Amber::Cluster:Class#fork()'

        thread_count.times { Cluster.fork }
                                     ^~~~

in lib/amber/src/amber/server/cluster.cr:15: instantiating 'Process:Class#fork()'

      Process.fork { Process.run(PROGRAM_NAME, nil, env_hash, true, false, input: Process::Redirect::Inherit, output: Process::Redirect::Inherit, error: Process::Redirect::Inherit) }
              ^~~~

in /Users/sija/Code/crystal/src/process.cr:80: instantiating 'fork_internal()'

    pid = fork_internal do
          ^~~~~~~~~~~~~

in /Users/sija/Code/crystal/src/process.cr:80: instantiating 'fork_internal()'

    pid = fork_internal do
          ^~~~~~~~~~~~~

in lib/amber/src/amber/server/cluster.cr:15: instantiating 'Process:Class#fork()'

      Process.fork { Process.run(PROGRAM_NAME, nil, env_hash, true, false, input: Process::Redirect::Inherit, output: Process::Redirect::Inherit, error: Process::Redirect::Inherit) }
              ^~~~

in lib/amber/src/amber/server/cluster.cr:15: instantiating 'env_hash()'

      Process.fork { Process.run(PROGRAM_NAME, nil, env_hash, true, false, input: Process::Redirect::Inherit, output: Process::Redirect::Inherit, error: Process::Redirect::Inherit) }
                                                    ^~~~~~~~

in lib/amber/src/amber/server/cluster.cr:8: no overload matches 'Hash(Char, Char)#[]=' with types String, String
Overloads are:
 - Hash(K, V)#[]=(key : K, value : V)

        env["FORKED"] = "1"
           ^

#codetriage
@Sija I think it might have something to do with https://github.com/crystal-lang/crystal/pull/6333
I boiled it down to a simple example:
puts typeof(ENV.to_h)

Running on 0.25.1, we get Hash(String, String) https://carc.in/#/r/4onf
Here's a console with old vs new, showing the output change.
$ crystal --version
Crystal 0.25.1 (2018-06-30)

LLVM: 5.0.2
Default target: x86_64-apple-macosx

$ crystal eval 'puts typeof(ENV.to_h)'
Hash(String, String)

$ ~/workspace/miketheman/crystal/bin/crystal --version
Using compiled compiler at `.build/crystal'
Crystal 0.25.1+109 [ff3225fad] (2018-08-06)

LLVM: 6.0.1
Default target: x86_64-apple-macosx

$ ~/workspace/miketheman/crystal/bin/crystal eval 'puts typeof(ENV.to_h)'
Using compiled compiler at `.build/crystal'
Hash(Char, Char)

The signature has between 0.25.1 and ff3225fad - and I used git bisect to try and narrow it down - but there's been a variety of toolchain changes that I can't seem to nail down to bisect from 0.25.1 onwards.
Tagging @straight-shoota and @RX14 who committed that changeset - maybe they can shed some light on this?

Yeah, this seems to be caused by ENV.each yielding String, String instead of {String, String}. That messes up Enumerable#first which is used by Enumerable#to_h.

I doubt the original error has been fixed - just masked by a compile error which has now been solved.

I've just managed to narrow it down to extending Hash.

I've just managed to narrow it down to extending Hash.

My example from https://github.com/crystal-lang/crystal/issues/6997#issuecomment-529147055 also includes subclasses of Hash (Shards::Dependency and Shards::Target). So it seems plausible that this is somehow causing this.

@straight-shoota Well, guess what, there was a PR fixing it, but @ysbaddaden decided it was a nitpicking... Perhaps it's not after all? :P

authors: RX14 Sija bew faustinoaq miketheman straight-shoota


text:
Rename skip() macro method to skip_file() in docs

This macro method was renamed in #4709 yet the documentation was not updated.

use skip_file without parens, it works. was fixed in recent version. same for debug, can now omit paren.

@straight-shoota would you change the base branch to release/0.24? Since is a doc fix on top of 0.24.1 without adding feature it should lay there.

I've rebeased and removed the unnecessary parenthesis.

@straight-shoota something's gone very wrong with your rebase.

Also: we should remove parens from these calls in the stdlib if they're not required any more.

Ah, yes I've rebased on release/0.24 but didn't change the target branch. It's fixed now.
Removing the parenthesis in code should not go into the bugfix branch but the next release (otherwise you couldn't compile 0.24.2 with 0.23.1). I'll create a PR based on master for this.

Yes, I did mean on a new PR, thanks.

#5493

So, in order to merge this in 0.24.2 a () is needed in the docs.

Why? The docs are fine for 0.24.2.

@straight-shoota you are right. I got confused with the discussion of when the parens for macro calls where made optional

authors: RX14 bcardiff larubujo straight-shoota


text:
[BUG] CSV cell String containing number only must be escaped with quotes

Current Behavior
Writing cell with a string number then importing in excel of libre office will let the tool treat it as a number.
For example:
require "csv"

str = CSV.build do |csv|
  csv.row "015551234" #Assuming first column is a phone number
end

str.to_s # "015551234"

This would be imported as 15551234 in Excel of Libre Office.
Expected behavior
The output should be quoted: "015551234".
Currently there's zero way to quote this number, as using " character will lead to quote escaping:
require "csv"

str = CSV.build do |csv|
  csv.row "\"015551234\""
end

str.to_s # ""015551234""

@ Crystal team: I'm just waiting for direction (actually I'm not sure about RFC for CSV on theses cases) before creating specs and real PR
Thanks :)

How about just introducing an :all_strings quoting mode, which quotes all string values.

Actually I'm closing this PR as the change requested DO NOT change anything on the import in Excel nor Libre office.
Both continue to treat the quoted string AS number unless specific import rules, and there's no way to force the cells as string without this manual operation.
Sorry, I should have checked before; I was so sure quoting the number should force it as string, but office softwares live in another world !

Usually prefixing numbers with single quotes helps excel: "'42".
Due to the untyped nature of csv is hard to propose a default that will work for everyone.
Having converters based on column name, column index and data type can be helpful. But is not much very different from doing an explicit call.

authors: RX14 anykeyh bcardiff


text:
Build continues after errors in some of the components

In GitLab by @palvarez89 on Feb 14, 2017, 16:54
Building https://gitlab.com/tristanvb/buildstream-tests/commit/5e20e04577580c4f56f62f59956a6d4b8d5b7ded triggered some errors (which are now fixed), but the show status executed after that shows that the build continued:
sh-4.3# build-stream show --deps all build-essential.bst
      gnome-platform: 7b86d9adda47b7e17c1b9c419e85355f35f7eb1643348b5ffc694d1021db38f0 (cached)
           gnome-sdk: bfe7dafec7555e417fcec60525c4042a38ea1abfc8ddd8dd03d8950a162e664d (cached)
     stage1-binutils: d92564efa61ee5424d95e7eb6688b6c176633b7de07941d608e6036bd4c14bcf (cached)
          stage1-gcc: fa57f87dbbc5309474cbb66f0449e0fd093f52d42d86dfc8bcfc55b1e9d42274 (cached)
              stage1: 402d08fa51449a5d3fde185fc61459d412fa678eae5898f59c4cd00feb87d0b8 (cached)
stage2-linux-api-headers: a46017e2faa5618cfc7f3eb6b56d4aef931d757660f39c56bde1e9020efc1939 (cached)
        stage2-glibc: 62064d973a4c98ab50d230d219d71cf1a594ee0afdd7c71350a102b1fdc0ee60 (cached)
     stage2-binutils: 8f11da1c335a1b5daa4a51573225b0c1f680799dc0f827dca0cbb679a1595002 (cached)
      stage2-busybox: 5f818c25647c06493c0de74e711f6040a4d92583232149531f7cde05c03a3f3d (cached)
     stage2-fhs-dirs: df5dc158e4e4f5cd3b3f74d5a445bf219a2e645eba902faf4969cb042a36e4b0 (cached)
         stage2-gawk: a096f339bb9305aa3d1176be95545dfbe8dcbc79e68d4bc8c4f68597ad5e8483 (cached)
stage2-gcc-fixed-headers: d9700dda5be40f7ca737d2a03c9c29102e9ca9e70834e9a582f47a50782646b5 (cached)
    stage2-libstdcxx: 9079ffae09dce12546350243fabf812be5e3da3e549120c43bd87960d105aad7 (cached)
          stage2-gcc: 94671d0071b01636cc018dd311185d2e52303e44aa23b3d8326f4a4b5992dcc7 (cached)
         stage2-make: e68cfcad15f664b7e75350532ee584e5ed4395a56b4a1a9d7ab1617be746c8b9 (cached)
  stage2-reset-specs: 561d392d18adae1a229f821cb53d51be8fd7e5597de9986958e3047cf9ae2f36 (cached)
              stage2: d9b4d323e91c1c628eef0f49fa3f7638b2b40c0c541fc0662d3a9183053da705 (cached)
   linux-api-headers: 74c1b2cda2c125fd94614c1f1c0c30b2ae4127d8dcca1fbee917717a05f011c4 (buildable)
               glibc: b2a9dffcb63660a9ec2a49e81234032a9fa4e0c0ca408060f767b2e1e33d3793 (waiting)
                zlib: 020c4231a9363bae6038905d261a5a39ef78000d06113ada693f2b839b440102 (waiting)
            binutils: 1b984826a20e6736231a9339e8bcc42a6767e2392454f889395932e8ce4391fb (waiting)
             busybox: d808d24648885ba1d3683a165e8b56b0791de7cc51973f285b39593ed540c6a4 (waiting)
              ccache: 57331614340c3e01a4a98262a6b286dc930570fcbb0fed20db1d4825e24ef03e (waiting)
            fhs-dirs: 91c8ae954de6a0bc79da86d09d8693a0cac5add900d214099ae20fd6422be2ca (buildable)
                gawk: ab3ab0c7676f203c43574f03647db0ef0f9d9fd7c63107472b68e3a1d357de9d (waiting)
          m4-tarball: 5d64f7df0658f105e5e170ec0aaaec42ff933dcca1a8459ac97edaecf40d3b4f (waiting)
                 gcc: 8251ac83632d0807906a7428d505671a5f81d1b9d9dead94a53b7966119f2bd0 (waiting)
                make: c2ee53ed1f6c44fd305abc0fa289ac508de7b17fd798c7aa0d0329a281a4e604 (waiting)
     build-essential: 0dcced8ae39caa0bde81f8800da41adf78b67e74b7f532c093fc782ba13aa978 (cached)

I believe that "build-essential" component should have never being built.

In GitLab by @tristanvb on Feb 20, 2017, 14:28
mentioned in commit e814a53375cbad0e33cabd57a388aed8df7ac101

In GitLab by @tristanvb on Feb 20, 2017, 14:28
This is fixed with the following commits in master:
commit e814a53375cbad0e33cabd57a388aed8df7ac101
Author: Tristan Van Berkom tristan.vanberkom@codethink.co.uk
Date:   Mon Feb 20 23:21:17 2017 +0900
_pipeline.py: (Issue #4) Dont mark builds as succesfull when they fail.

commit 81795ce9ab936141e2effb62466635f08d46ee76
Author: Tristan Van Berkom tristan.vanberkom@codethink.co.uk
Date:   Mon Feb 20 23:20:27 2017 +0900
_scheduler.py: Propagate whether an exception occurred to parent Queue

So the Queue implementations (in _pipeline.py) can know if a build failed !

In GitLab by @tristanvb on Feb 20, 2017, 14:29
closed

repo: cs-shadow/buildstream


text:
Autos CRUD (Sample project) provided login details not working

For  Autos CRUD https://samples.dj4e.com/accounts/login/?next=/autos/
on https://samples.dj4e.com/
The provided log in details don't work for me
"You might need an account and password to log in for certain features. You might try this:
Username: dj4e-samples
Password: dj4e_nn_! "

The "nn" is "42" - this is not where you request help for the assignments.

Thank you!
Love your courses. I'm still new to this, I didn't know where else to ask.
I found the course on Youtube.
Jaco

authors: csev wecanwork


text:
New git tutorial overflows off the page on mobile

Hi Kyle thanks for pointing this out, turns out it's a problem for the SSH tutorial too. Will look into it now

@danjones1618 I still seem to have the issue on chrome (not checked on other browsers).
I've briefly investigated and it seems changing .page_section to display: block OR removing the flex-direction: column attribute from that class fixes that particular page (and others like the one mentioned in #51 )
This would break other parts of the site though and I haven't looked into exactly why that fix works.

@k4l397 I see what you mean. I'll work on getting this fixed asap as I'm currently refactoring parts of the website with the "post" pages being next on the radar.


text:
[ENHANCEMENT] Use current versions of tiny_object_loader and stb_image_write

Describe the enhancement
Use the current version of

tiny_object_loader and
stb_write_image

in order to be up-to-date. I was just trying to fix compiler warnings in both files included with blazeRT but first, we should try to use up-to-date versions.

Unfortunately, updating the dependencies does not fix warnings.

repo: cstatz/blazert


text:
Successfully flashed Maxcio RGB LED bulb but Tasmota isn't running

Hi there,
flash process was successful.
I'm running Sonoff-Tasmota (basic) on my RGB LED bulb.
(MAXCIO RGB LED BULB)
I can't switch/toggle to ON or OFF - the bulb is off.
I tried with "Generic" and "Sonoff B1" and other Module Types.
Played with GPIOs but nothing worked for me.
Any suggestions for this issue?
Another question: how to flash the original firmware back to the bulb?
Is it possible to use the upload option from Tasmota?
Device-Info:
VTRUST-FLASH 1.0
(c) VTRUST GMBH https://www.vtrust.de/35c3/
READ FLASH: http://10.42.42.42/get?read=HEX-ADDRESS
ChipID: e325fb
MAC: 68:C6:3A:E3:25:FB
SdkVersion: 1.5.3(aec24ac9)
BootVersion: 4
BootMode: 1
FlashMode: 1M QIO @ 40MHz
FlashChipId: 1440a1
FlashChipRealSize: 1048576
FlashChipSize: 1048576
FlashChipMode: 0
system_upgrade_userbin_check: user2 0x81000
Thanks for any help...

here is the script for configuration.yaml / HA

platform: mqtt
name: 'Wintergartenlicht'
state_topic: "stat/ledlampe1/RESULT"
value_template: "{{ value_json.POWER }}"
command_topic: "cmnd/ledlampe1/POWER"
payload_on: "ON"
payload_off: "OFF"
brightness_state_topic: "tele/ledlampe1/STATE"
brightness_command_topic: "cmnd/ledlampe1/Dimmer"
brightness_scale: 100
brightness_value_template: "{{ value_json.Dimmer }}"
rgb_command_topic: "cmnd/ledlampe1/Color"
rgb_command_template: "{{ '%02x%02x%02x00' | format(red, green, blue) }}"
rgb_state_topic: "tele/ledlampe1/STATE"
rgb_value_template: "{{(value_json.Channel[1]*2.55)|int}},{{(value_json.Channel[0]*2.55)|int}},{{(value_json.Channel[2]*2.55)|int}}"
qos: 1
retain: false
optimistic: false

try setting it as "AiLight" it worked on my end, also color works using commands in Tasmota

AiLight doesn't work for me...

repo: ct-Open-Source/tuya-convert


text:
It would be nicer to have more logging.

For medium/ bigger size cubes, no logging is done between
Starting analysis for cube '***'
Original dimension order for cube '***' is

and
Completed analysis for cube '***'
Updated dimension order for cube '***' to [

Once they are hooked up for analysis it would be nicer to have logs written for every update_storage_dimension_order with the result.

Yeah, that's a fair point. I think we can add those log statements. I will add create a PR.
Thanks for bringing this up!

authors: MariusWirtz rkvinoth

repo: cubewise-code/optimus-py


text:
DSL: Better error messages for declaration after statement

Making a distinction between declarations and statements makes sense, but it leads to bad error messages. In particular: if declarations and statements are interleaved, the parser just says "parser error".
The fix might me to add an error rule in the parser that successfully parses a declaration after a statement and then immediately throws an error. This error message will have a clear progeny (we will know it came from declaration-after-statement) and so we will be able to give a more intelligent error than just "parser error".
Originally posted by @rachitnigam in https://github.com/cucapra/packet-scheduling/issues/29#issuecomment-2240928422

@csziklai just assigning this to you in case you'd like to take a stab at it! I tried to flesh out Rachit's original message to give a little more info. If you'd rather do other stuff, just let me know and I'll tackle this!

I'm not really sure if I understand fully. Maybe if we discussed it, or if you want to tackle the issue.

@KabirSamsi would you like to take this on? I can go over the issue IRL if you'd like. I explained it to @csziklai and she said she'd rather focus on the well-formed-program checker. I'm also happy to do it, just thought I'd offer it to you since it is non-urgent and you mentioned you'd like a parser-ish task for fun :)

@anshumanmohan Are these the kinds of 'Parser Error' messages involving interleaved declarations/assignments that we are trying to improve?

Aye!

Is it worthwhile considering interleaved return statements as well? Or just declarations/assignments?

A return statement anywhere but the last line would also be an error, and the parser would currently just scream "parser error". So if you wanted to give a more intelligent error for an out-of-place return statement, that would be great too!

Also just an FYI, there is now a parse_file utility that you might find a bit more ergonomic than the parse_string thing that you're using in the screenshots. You could create a badprog.sched file and watch it fail.

Thanks for the pointers! They helped a lot.

A return statement anywhere but the last line would also be an error, and the parser would currently just scream "parser error". So if you wanted to give a more intelligent error for an out-of-place return statement, that would be great too!

I have done this in the #39 now!

authors: KabirSamsi anshumanmohan csziklai

repo: cucapra/packet-scheduling


text:
Cucumber Custom Plugin cause no feature read

Summary
I wrote a custom plugin to initialize chrome and firefox web driver causes no feature file been executed.
Expected Behavior
Feature File executed
Chrome open and close
Firefox open and close
Current Behavior
Feature File no executed
Chrome open but no close
Firefox open but no close
Possible Solution
No
Steps to Reproduce (for bugs)
Attach google drive code
Context & Motivation
Your Environment

Version used: Cucumber 4.2
Operating System and version: MS Windows 10
Link to your project: https://drive.google.com/open?id=1ycwBNZi9st-dkmdDfKaBxqU2mLchRWfM

Please use the support forums for questions and discussions. We use GitHub issues to track bugs and feature requests exclusively.

If you do think it's a bug please follow these guidelines and make sure to describe the problem beyond it doesn't work.
https://stackoverflow.com/help/minimal-reproducible-example

This is a strange issue where creating custom plugin cause no cucumber being read. Thus, it is consider a bug.

repo: cucumber/cucumber


text:
Do not change escaped docstring separators in descriptions.

Now the unescaping of docstring separators is performed unconditionally when matching the token "other". Since the token "other" is used both for descriptions and docstrings, also in descriptions \"\"\" is replaced with """ (why anyone would write \"\"\" in a description is another question).
This PR changes the behaviour so that only in docstrings  \"\"\" is replaced with """.

LGTM! Feel free to merge @brasmusson

@aslakhellesoy Now this PR is merged, but I could not push-subtrees to gherkin-objective-c, I got an ERROR: Permission to cucumber/gherkin-objective-c.git denied.

You should have karma now @brasmusson

That's right, thanks.

authors: aslakhellesoy brasmusson


text:
Add Netlify deployment of Ladle

Would be great to have the latest Storybook Ladle deployed, but also to have deploy previews of pull requests so reviewers can easily try out the changes.

@mattwynne @aslakhellesoy is there a netlify account we can use to set this up? We use it for the docs site too, right?

I think Netlify would be "too much" for simply hosting storybook.
I am pretty sure we could do something using github actions and github pages.
To answer your question: yes, we have a Netlify account for the documentation website, so if you really want to use Netlify, we can set that up ;)

Oh, you were interesting in the "review" thing!
Indeed, I don't know such possibilities yet with github pages

@mattwynne we discussed Netlify a bit the other day in the context of websites - would you mind adding me to the relevant Cucumber team so I can set this up? GitHub email address is the one.

@davidjgoss unfortunately I don't have privileges in the SmartBear Netlify org to do that. I'll pinged @declark who does to ask him if he can help.

@mattwynne and @davidjgoss of course I can help! Please send me what you need, and I'll take care of it.

Thanks @declark - I just sent you an email with the details.

This is set up now, thanks all.
it will need https://github.com/cucumber/react-components/pull/337 in order to deploy successfully, working on that now.

authors: aurelien-reeves davidjgoss declark mattwynne

repo: cucumber/react-components


text:
🛑 CUETCONNECT(MainSite) is down

In 6cc8bb0, CUETCONNECT(MainSite) (https://cuetconnect.org/) was down:

HTTP code: 502
Response time: 5189 ms

Resolved: CUETCONNECT(MainSite) is back up in ce3db16.

repo: cuetconnect/statuspage


text:
🛑 CUETCONNECT(MainSite) is down

In d6d1dff, CUETCONNECT(MainSite) (https://cuetconnect.org/) was down:

HTTP code: 502
Response time: 483 ms

Resolved: CUETCONNECT(MainSite) is back up in ce08b99.


text:
Offline support

While the client is connected, it should save images and metadata the local browser. The app should populate itself from this store if the connection is not available or is very slow.

The localStorage API only allows strings and has strict data limits. A library that interfaces with IndexedDB would be more feasible here.

The initialization behavior should be gathering metadata and images and putting them in a local store. When updates are received, they should also update the local store. Visiting the page without a network connection will retrieve the locally-stored values and display those while periodically re-checking the connection.

repo: cuibonobo/terra-incognita


text:
Rethink sampling

Right now we have stream.sampleWith(sampler), which works nicely.  It's fairly narrow in that it allows sampling one stream, and passing through the value directly.
One question this raises is how to sample 2 streams or N streams.  Say you wanted to add the values of two inputs, and display the result only when the user clicks a button.  You could combine the inputs, and then sample the resulting stream:
most.combine(add, s1, s2).sampleWith(buttonClick);

To cut down the noise, you might do:
most.combine(add, s1.distinct(), s2.distinct()).sampleWith(buttonClick);

But that's still doing extra, unnecessary adds: each time s1 or s2 changes, add will be called, even while the user isn't clicking the button.  If add is trivial, then you probably don't care.  On the other hand, it is doing extra work and throwing it away, which could be especially bad if add is nontrivial.
Another option might be to flip the whole thing around in a "sample that's like combine" combinator.  Like:
buttonClick.sample(add, s1, s2);

That allows sampling multiple inputs, and would only call add when the button is actually clicked, no matter how often s1 and s2 change.
Interestingly, it seems like both combine and sampleWith could be reimplemented using sample, although it's not clear the perf impact this may have on combine.
function combine(f, ...streams) {
    return merge(streams).sample(f, streams);
}

function sampleWith(sampler, stream) {
    return sampler.sample(identity, stream);
}

Messy proof of concept in d871f70496d21dc730ceadb69cc7d4ecb6819af6

repo: cujojs/most