the output of perception

Could anyone tell me that  the meaning of  the following parameters represent about the lane line.
// equation X = c3 * Z^3 + c2 * Z^2 + c1 * Z + c0
optional double c0_position = 4;
optional double c1_heading_angle = 5;
optional double c2_curvature = 6;
optional double c3_curvature_derivative = 7;
I think c0 is the distance about the start point of the lane line to the vehicle,c2 represents that the  curvature of the lane line.And i want to know the reason that the curvature is calculated according to the curvature formula is different from this c2_curvature.
Can i get these parameters just like the course AdvanceLane_finding in the Udacity? Is this the same in the Apollo?
And i will really appreciate you if you can tell me how can i get them.

c[0..3] are the coefficients of cubic curve to represent curvy lane line. I don't know AdvanceLane_finding but this representation is quite intuitive. Please note that the origin of the coordinate system is the center of a rear axle.

@quuen was your question resolved? Kindly close the issue if you have no more questions. Thank you for your interest in Apollo.

Closing this issue as it appears to be resolved. Feel free to reopen if the issue persists. Thanks.


Website

The website http://phpgt.g105b.com needs to be improved with documentation, tutorials, videos, community, etc.

Now at http://phpgt.com


how to ensure table lock is released

Hi, I'm trying to run a spark job and write the output to SQL Server db. While playing around with the batchsize option and having tableLock = true I had to kill some of the jobs but seems the table lock was not released. Is there anything I can do to ensure the lock gets released either on job failure or job getting killed?
Using spark-mssql-connector-1.0.1.jar and mssql-jdbc-11.2.0.jre8.jar
Thank you!

The locks are by the JDBC while read / write to the sql table. Once the transaction is over, it automatically releases the lock. Spark MS SQL Connector does not add extra locking. SQL server keeps all records internally. e.g. Dynamic Management Views (DMV) sys.dm_tran_locks.

Close inactive issues


New extension: Hypersonic, the new way to complete todo's with Notion

Description
Adds a new extension, Notion ToDo's Manager.
The fastest way to complete your daily tasks and resume of that. The best way to have your todos synchronized with Notion.
Screencast

Checklist

[x] I read the extension guidelines
[x] I read the documentation about publishing
[x] I ran npm run build and tested this distribution build in Raycast
[x] I checked that files in the assets folder are used by the extension itself
[x] I checked that assets used by the README are placed outside of the metadata folder

Hey @mathieudutour, thanks for reviewing! You are right, we didn't manage authenticating without duplicating the template. We've just uploaded a new version for managing that state and letting the user re-authenticate with Notion.


Basic auth can't be used together with ShopifyAPI::Session.temp

If you've set up basic auth for a private app with ShopifyAPI::Base.site = ..., you can't use ShopifyAPI::Session.temp, since user and password aren't cleared and restored on ShopifyAPI::Base in ShopifyAPI::Session.with_session.
I'm not sure what other implications it would have, but one solution might be to add user and password to ShopifyAPI::Session, and making sure they're cleared and restored accordingly.
Here's a monkey patch for anyone else running into this:
module ShopifyAPI
  class Session
    class << self
      def with_session(session, &_block)
        original_session = extract_current_session
        original_user = ShopifyAPI::Base.user
        original_password = ShopifyAPI::Base.password

        begin
          ShopifyAPI::Base.clear_session
          ShopifyAPI::Base.activate_session(session)
          yield
        ensure
          ShopifyAPI::Base.activate_session(original_session)
          ShopifyAPI::Base.user = original_user
          ShopifyAPI::Base.password = original_password
        end
      end
    end
  end
end

FYI, the password for a private app can be treated as an access token.
So, rather than setting Base.user and Base.password to accomplish private authentication, you can use:
ShopifyAPI::Session.temp(domain: example.myshopify.com, token: YOUR_PRIVATE_APP_PASSWORD, api_version: "2020-04") do
  do_some_private_app_stuff
end

This might help you until this issue is addressed by the maintainers.

Didn't know that, @jamiemtdwyer. Thanks!


Rework healthcheck system

Add readiness in the proxy to show node status per type.
Rework the /status page to show proxy carthagenet and current nodes status per types.

The new status page:

This PR produces a debt. We need to create a integration test =>  #110


Camera Not Working with when some other app using camera

I'm Facing a issue when some other app used my camera then camera session stop working

yes because already other app is being used by the camera so make sure your session starts running and  all those cases you were handled or not


Add JDK8 to promotion build

This is to fix https://github.com/gradle/gradle-private/issues/4504
This PR adds JDK8 env variable into the promotion build, so that runDistributionBuild could read this env variable and pass it to the test JVM. Then the env variable
is recognized by AvailableJavaHomes.EnvVariableJvmLocator and passed to SrcDistributionIntegrationSpec.sourceZipContents
Example build: https://builds.gradle.org/buildConfiguration/Gradle_Master_Promotion_PublishBranchSnapshotFromQuickFeedback/89908990

I've triggered the following builds:

Pull Request Feedback (Trigger) (Check)

Build Scan

The following builds have passed:

Gradle_Master_Check_Stage_PullRequestFeedback_Trigger

Build Scan

The merge queue build has failed. Click here to see all failures.


pkg-config

I read the commit for the pkg-config files, but I dont know why the default location for the files are in /use/lib/pkgconfig.
Because the default lokation in fedora is /usr/share/pkgconfig
The location of sfml for me is /usr/lib and /usr/include bacause of default path in fedora.
I could make the correction if that is needed.
But if this is irrelevant then ignore it.
Best regards.

Ok, here we are. That's why I'm so reluctant to merge external contributions that I can't maintain myself.
I have no idea why the default path is /usr/lib/pkgconfig, and I have no idea what the best default path could be. I'd be really glad if the author of this modification, or someone experienced with pkgconfig, could help us.

its not that big of a problem, I just move all *.pc files to /usr/share/pkgconfig/. The reason is that I use autotools for building my application and I want to be able to check if sfml is present on the system.
First before I noticed that sfml included its own *.pc I wrote my own. And its easy to write them. But the only problem is that when you make install sfml it adds the pgk files a bit wrong.
But I can do some reaserch and chech where the default locations on different dist are located and come back to you

What are they in the first place?
Maybe I'm old school, but when I was coding C you'd simply link libraries and include the headers for the project you're interested into. I mean you're supposed to know your system and developing environment better than anyone else. No?
I have to admit there's a lot of stuff on linux (even the common ones) that I don't even have a clue how it works yet. Perhaps it's one of those things I am missing...

*Moving to a more constructive post: I read a few months ago that Fedora breaks the LSB (Linux Standard Base), that is, the standardized hierarchy into the linux file system.
They have a things like /lib, /usr/lib, /usr/share/, /usr/lib/share, /var/share, /var/usr/lib, /lib/usr/var... not literally, but it's a real mess in there. Every other distributions are LSB-correct except for Fedora.
Can anyone find a reference on this? I'm really not a Fedora user. I wish someone more experienced could guide you.

http://people.freedesktop.org/~dbn/pkg-config-guide.html
[...] "the PKG_CONFIG_PATH environment variable. This variable is used to augment pkg-config's search path. On a typical Unix system, it will search in the directories /usr/lib/pkgconfig and /usr/share/pkgconfig." [...]

I know what I have on my comp, but I still want to be able to check for dependencies if somebody else would help me with development or if I share my project.
I saw that it should check there but fails when I try to check for them.
I haven't tried to set the PKG_CONFIG_PATH but I don't want to. Can lead to some confusion when compiling the project.
But the main reason why I want to use pkg-config is that I use multiple machines to develop on.
But I will try with a different distro and check if it works there.

I have now tried it on arch linux and it seems that pkg-config only looks inside /usr/lib/pkgconfig and not in /usr/local/lib/pkgconfig, but when you set PKG_CONFIG_PATH to /usr/local/lib/pkgconfig it finds it.
But the problem remains that it doesn't do this auto magically, and thus can lead to problem for less experienced people that use linux as development platform.
But there aren't maybe that much people that use linux and even less people that use pkg-config and autotools for their projects.
In cmake, is it possible to make it add a path?

Side info: The sfml Arch package will use the proper /usr/lib/pkgconfig path.

Ok, gonna use that for sfml, and will never ever leave arch, my readeon hd 6850 didn't work that great. But with arch... :D But ill close this issue as it's not that important


Mostly jp2 images are not opening it is working in cantaloupe.Attaching error screenshot

Image url=https://uat-iiif.newmanstudies.org/iiif/2/TRT%2F01_Franciscan_Christocentrism_page-0003.jp2/full/full/0/default.jpg

I was wondering if this was resolved. I ran into the same problem when using jp2 images.

@ranjeetsinghthirdrock @guillenjs Do you have any jp2 source images you can share with me so that I can try to reproduce and fix this issue? You can either attach them here or email them to [my github username] at gmail.

@ranjeetsinghthirdrock After some debugging with a sample file provided by @guillenjs, I have narrowed the issue down to the JP2 loader in the underlying libvips image processing library. I have submitted a bug report in hopes of getting things working. If either of you would be willing to let me attach any of the files that are giving you trouble to that issue (or even attach them yourselves in comments), it would go a long way to helping resolve the issue.

@mbklein here is another sample image that is not opening
https://4slvho3i5lch7kp6zdultsdumq0ihqta.lambda-url.us-east-1.on.aws/iiif/2/TRT%2F01_A8.jp2/full/100,/0/default.jpg

@ranjeetsinghthirdrock Would it be possible to share the source JP2 file for that image? Either by zipping/attaching it here, or by emailing it to mbklein at gmail?

@ranjeetsinghthirdrock @guillenjs The underlying issue is with the OpenJPEG library that provides JPEG 2000 support. It looks like there's going to be a libvips release with a workaround – not an ideal one, as it depends on loading the entire frame instead of just the tiles required to complete the request, but I've tested it on my development server and the lag isn't terrible. But it's the best option available until the upstream issue is addressed.
I've also reached out to the team at Kakadu to ask how their licensing might work given the way our distribution works. It would require downstream users (i.e., you) to obtain a valid license for the Kakadu libraries, but if you've had this working in Cantaloupe, it's possible you've already been using the KakaduNativeProcessor with a license? (If you've been using the Cantaloupe OpenJpegProcessor, you may not even notice the performance hit from the libvips workaround mentioned above.)

@mbklein Thank you for all the work on this front! Is there a projected date when this update may be released so we can start testing on our end?

I'm currently testing with the libvips branch with the fix in it. Once it's stable, the maintainer will have to approve, merge, and release it, and then I can build and push a Lambda layer with support for it. I hope it'll be soon – closer to "a couple weeks" than "a few weeks."

I'm afraid I didn't quite understand the libvips release schedule, so it might be six months or so before the fix is in a release. That said, there's nothing stopping me from building a lambda layer with the pre-release workaround in it, so I'll let you know when it's available.

@ranjeetsinghthirdrock @guillenjs I've just released serverless-iiif v5.1.1 with support for the sharp/libvips/openjpeg workaround for this issue. It uses as-yet unreleased code from libvips and a forked version of sharp that enables the workaround code. I'll update to the released versions as the code make it into upstream releases.
If you have a chance, could you install or upgrade to that version and see if it fixes the problems you're having?

@mbklein, thank you for the update. I will test this out this week and get back to you about it.

@mbklein I have been testing the new v5.1.1 release, and generally, everything seems to be working fine. I did try and find a large file that is 20,000+ pixels and 18.6MB. That is the one file that I seem to be struggling to work correctly. It is not the same issue as before. If I request a smaller size, I get the image returned, but when I request a full-size image, I get an "Internal server error."
So, I am wondering if there is a max pixel width/height that would be ideal to stay under.
Thanks again for the all the help!

It's less about pixel width and more about memory – if you look at the CloudWatch logs for that request you'll probably see something like
REPORT RequestId: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx Billed Duration: 3000 ms   Memory Size: 3008 MB   Max Memory Used: 3009 MB
RequestId: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx Process exited before completing request

If you deployed it using the default parameters, you could try bumping up the IiifLambdaMemory setting. It can go as high as 10240. But since the workaround for the issue we've been focused on involves loading the entire image into memory in one shot (instead of one tile at a time), it's also very likely that very large JPEG 2000 images with the multipart tile layout will eat way more memory than they would otherwise.

Thanks for pointing that out, @boxerab. I've passed that info along to the libvips maintainer; it'll be up to him to decide whether to add support for it.


"Your voting journey" menu hidden behind the top banner; user can't see or operate the menu

Describe the bug
"Your voting journey" menu is hidden behind the top banner; user can't see or operate the menu
To Reproduce
Steps to reproduce the behavior:

Go to mobile app
Click on hamburger menu
Select "Your voter journey"
See error

Expected behavior
User should be able to see the menu and menu should be functional
Screenshots

Smartphone (please complete the following information):

Device: Samsung S10+
OS: Android
Browser:  N/A (on mobile app)
Version 11

Additional context
Add any other context about the problem here.

This is now fixed. However, I would like to keep this issue open. The fix was to upload the image manually to ICR. If I ask CE to build and upload, the menu is broken. Need to look into it some mroe.


Consider using GRPC spec health check instead of custom

Currently, we implement our own custom health check service but GRPC has it's own health check service spec
This is compatible with GRPC tooling such as https://github.com/grpc-ecosystem/grpc-health-probe/ and may make it easier to add checks for things such as load balancers

Done in #6234


[Mobile] Once the selected icon is in the "Recently used Icons" item the whole display template will drop

Once you select any icon and it will be in the "Recently used Icons" item - the whole display template will drop.

Thanks for reporting this issue! It should be fixed now, with 1.0.61.


richer embedding objects

During the course of embedding, the algorithm holds a rich embedding object that contains connectivity information for chains -- couplers that are used to make chains, and couplers that are used for chain interactions.  That information is currently being thrown away, only to be reconstructed by the user at a later stage.  It may be nice to handle this a little better; returning and accepting richer embedding objects  that contain full or partial connectivity information.

I would also advocate for simple information such a max_chain_length and number_max_chains to be returned as attributes of some sort. That way a user can decide whether the embedding is likely to succeed (eg., chains of length 22, try again), or whether they should try the embedder again. This would be especially useful when searching for a fixed embedding that will be used many times.

@boothby, regarding your comments above, how would chain connectivity information recorded? Do you imagine sending more vectors to find_embedding() would be the way? Eg., vector[vector[int]] chain_couplers?

For the time being, minorminer stores chain connectivity in the chain class, found in chain.hpp.  Specifically, the chain for u contains a link to itself (link[u]), encoding the chain's root; and for each neighbor v, there's a link[v] encoding a single qubit which is used for the u-side of the edge (u,v), with the invariant that if q = chain[u].link[v] exists, then p = chain[v].link[u] also exists and the edge (p,q) is in the target graph.
The chain class is a reference-counting datastructure, and one place where link is used is in tearing out chains -- since each edge has a unique link per qubit, we simply unlink the chain we're tearing out, and garbage-collect superfluous qubits from neighboring chains.  Without that uniqueness, tearing chains out becomes significantly more complex.
I'm having a hard time motivating my original query -- it will take a significant amount of work, only to save maybe .01% of the embedding runtime.  On the other side, Harris et al have better bias&interaction spreading algorithms which need to know all of the couplers, not just a random one picked out for convenience in this heuristic.

See also EmbeddingStructure added by https://github.com/dwavesystems/dwave-system/pull/321


Allow to query ion image shape from Python client

Currently SMDataset has no property from which one can read its shape, which would be useful to correctly size a new array.
My current work-around is to query the databases, query all annotations for the first database, download for the first annotation the first ion image and then just read the shape and trash the array data.
dataset = sm.dataset(id=dataset_id)
formula, adduct = dataset.annotations()[0]
database = dataset.database_details[0]
formula, adduct = dataset.annotations(database=database.id)[0]
shape = dataset.isotope_images(formula, adduct, only_first_isotope=True)[0].shape

Since for one dataset, all ion images should have the same shape, the shape could be exposed as a property. This way one could also avoid downloading more data than needed.

I agree, too many steps to get the ion image size. This information is now in private attributes:
acquisition_grid = json.loads(ds._info['acquisitionGeometry'])['acquisition_grid']
print(acquisition_grid)
{'regular_grid': True, 'count_y': 258, 'count_x': 673}

I will add this information to the public attributes.

@aeisenbarth
metaspace2020 ver. 2.0.2 on PyPI


Iox #495 bugfix gcc 5 compatibility

Pre-Review Checklist for the PR Author

[x] Code follows the coding style of CONTRIBUTING.md
[x] Tests follow the best practice for testing
[x] Branch follows the naming format (iox-#123-this-is-a-branch)
[x] Commits messages are according to this guideline

[x] Commit messages have the issue ID (iox-#123 commit text)
[x] Commit messages are signed (git commit -s)
[x] Commit author matches Eclipse Contributor Agreement (and ECA is signed)

[x] Update the PR title

Follow the same conventions as for commit messages
Link to the relevant issue

[x] Relevant issues are linked
[x] Add sensible notes for the reviewer
[ ] All checks have passed (except task-list-completed)
[ ] Assign PR to reviewer

Notes for Reviewer
Enable build on gcc 5, including QNX SDP 7.0
Remaining issue tracked in #607.
Checklist for the PR Reviewer

[ ] Commits are properly organized and messages are according to the guideline
[ ] Code according to our coding style and naming conventions
[ ] Unit tests have been written for new behavior
[ ] Public API changes are documented via doxygen
[ ] Copyright owner are updated in the changed files
[ ] PR title describes the changes

Post-review Checklist for the PR Author

[ ] All open points are addressed and tracked via issues

References

Partially closes #495

LGTM, could you add a section QNX in doc/website/getting-started/installation.md and mention e.g. the compiler version, steps, et.c there?

Added inf to use a toolchain file for QNX.


How to install using cocoapod.

For manual install, follow the Alamofire manual install procedure.

https://github.com/teambition/RRuleSwift/pull/9


Are linear probes for ResNet50 also before projection ?

If I understand correctly when performing linear probing you take the representations before the linear projection heads. In the code, this can be done very nicely thanks to this line: https://github.com/openai/CLIP/blob/3b473b0e682c091a9e53623eebc1ca1657385717/clip/model.py#L233
It is less clean for ResNet architecture, which makes me wonder whether you do the same for ResNets?
Here's the code I'm currently using assuming that I have to remove the projection head for both ViT and ResNet:
model, preprocess = clip.load(model, device, jit=False)
encoder = model.visual  # only keep the image model

if hasattr(encoder, "proj"):
    encoder.proj = None
else:
    # set manually the projection head to identity while ensuring that still linear layer:
    N = encoder.attnpool.c_proj.in_features
    identity = torch.nn.Linear(N, N)
    nn.init.zeros_(identity.bias)
    identity.weight.data.copy_(torch.eye(N))
    encoder.attnpool.c_proj = identity

Thanks for the easily usable code + pretrained weights ♡

I have the same question, after reading the CLIP paper.
What exactly does "linear probing on ResNet" mean?


add TypeScript declaration file

Description
Add a TypeScript declaration file.
Steps to Reproduce

Add import promise from 'eslint-plugin-promise'
Hover over eslint-plugin-promise in VSC

Expected behavior: [What you expect to happen]
Get no errors.

Real life example from neostandard: https://github.com/neostandard/neostandard/blob/08ae5469c71def357f0202fed2be9b83f62efc5a/lib/configs/base.js#L5

Should we go all in with checkJs: true, basically going full JavaScript+JSDoc-as-TypeScript?

I have a PR for that in another project, so I’m +1 on it

Will probably wait on #484 to begin any work here, as don't want the tooling to have to be outdated to be supported...

Agree @brettz9 👍 And I think @scagood is also interested in this topic :)


Renamed internally used flag for detecting managers built from QuerySets with as_manager()

This rename is intended to prevent confusion with the variable naming which @loic pointed out to me.

merged in 05f702b94ca4ad77236a1e299270e8014def02e6.


mbed client does not support LWM2M Create of object instance

The mbed client does not support creation of object instances with the LWM2M Create request. Instead, an object instance can be created by sending a LWM2M Write request to a non-existent object instance.
This is wrong.
The difference between a LWM2M Create and LWM2M Write is subtle; if there is an object instance in the request then it is a Write and if there is no object instance in the request then it is a Create. With the Create, the object instance that you want to have can be defined in message payload.
This is described in the LWM2M specification, OMA-TS-LightweightM2M-V1_0-20170208-A.pdf, page 35, paragraph 5.4.3 Write, and page 37, paragraph 5.4.6 Create.
Background information:
Test configuration is:

mbed client application on K64F board
Leshan LWM2M server on Linux
Leshan web interface, HTTP requester tool, and own application (CT-tool confguration utility)
Wireshark to capture and display HTTP and CoAP messages (modified for TLV Content-Format 99).

For a Write, you have to do a HTTP POST to an existing object instance, like:
POST http://<leshan_server>/api/clients/OpenAIS xx:xx:xx:xx:xx:xx/4006/5
For a Create, you have to do a HTTP POST to the object, like:
POST http://<leshan_server>/api/clients/OpenAIS xx:xx:xx:xx:xx:xx/4006
For both the Write and the Create the object instance content is stored in the payload. This usually includes the object instance.
The POST messages above are the HTTP messages to the Leshan LWM2M server. The LWM2M server translates the messages to CoAP POST requests.
The /5 in the Write request translates to an additional CoAP option, "Uri-Path: 5". This is, at the CoAP (and mbed-client) level, the only difference between a Write and a Create.
Wireshark traces can be made available on request.

ARM Internal Ref: IOTCLT-1864

Due to the more or less monolithic nature of mbed OS, your findings might get more attention if you raise issues in https://github.com/ARMmbed/mbed-os

Hi,
Thanks for your report.
I made some testing around this but for me it looks like Create is working fine.
It could be that I'm missing something here now but the POST request in /object level does create a new object instance.
Attached wireshark logs where object instance and resource is created as a part Create.
create.zip
It would help if you could attach wireshark traces which shows the issue.
Thanks,
Antti

Hi Antti,
Your wireshark trace does show the correct behavior as far as I can see.
Unfortunately my wireshark trace, attached below, shows problematic behavior.
ws_20170707_1033_lwm2m_web_create_oAGroup_mbed.zip
The following packets are interesting:
Frame 23 HTTP POST
Frame 28 CoAP POST
Frame 29 CoAP ACK 4.04 Not Found
Frame 34 HTTP 200 OK status "NOT_FOUND"
N.B. that this uses the standard CoAP port 5683, not port 5693 as in your example.
The Create request in my trace is made with the Leshan LWM2M web interface and the Leshan web server. Can this make a difference?
Would it be possible for me to build your mbed client example application to verify the behavior?
Thanks,
Klaas

Same example but now with a "poster" application, now with the object instance specified in the POST.
This does create a new object instance in the mbed client device.
This is the file:
ws_20170821_1649_poster_create_oAGroup_mbed_succeed.zip
The following packets are interesting:
Frame 5 HTTP POST to /4006/2 (n.b. with the object instance specified here)
Frame 10 CoAP POST (n.b. with the object instance specified, so this is a CoAP Write)
Frame 12 CoAP ACK 2.01 Created
Frame 28 HTTP 200 OK status "CREATED"

The client application that I used in my tests is built with the mbed-client and other ARMmbed repositories from 5 april 2017. Is it possible that the object-creation issue is fixed already since then? That could explain the correct behavior reported by Antti and the wrong behavior reported by me. Please confirm!

Closing the issue as inactive and due to the repository being deprecated.
Please take a look at our current offering at https://cloud.mbed.com/docs/current. The actively maintained version of this component can be found in http://github.com/armmbed/mbed-cloud-client.
Please open a new issue if this is still valid. We strongly encourage you to migrate to the latest product. New issues in this repository will most likely remain unfixed.


  Please feel free to unfreeze any mod for which there is metadata (this would be all except the Malemute, that one will go up shortly).  If it is easier on the team for me to do a version bump, let me know and I can do so.  Just looking at the lowest-friction way of sorting this.
There will be a fairly large metadata change coming up (I am shuffling some dependencies), but I don't want that to delay getting these bits up there for folks to use.
Thanks!

FirespitterCore, SoundingRockets and USITools are showing up as only 1.1.2 compatible, so a version bump would probably fix them if only their AVC files have changed. Everything else looks up to date.

@politas here we go again. The above feedback that you have given is covered in the report I sent. There is a history here. There also an outstanding PR to help close the loophole mentioned. Can't be more specific on details. This not the time or place for that. I just wanted to leave a note here that underlines the connection  between the advice given above and information presented elsewhere.

@nobodyhasthis - can we please cut with the secret squirrel stuff?

This has all been fixed, now, all Bob's mods are available..


Update README.md

Since node-sass-chokidar is used to build SCSS files and result in CSS files, it's a development requirement, not a production one. So the proper way to install it is using --save-dev.

This doesn't really matter in bundled apps because technically all deps are development deps. We figured it's easier for people to just remove this distinction especially since it confuses some hosting platforms.
You're always welcome to move stuff to devDependencies yourself if you feel strongly about it.


roll polymer 0.3.5

It was just released a couple hours ago :-)
Here are the details: https://github.com/Polymer/polymer/releases

This issue has been moved to dart-lang/polymer-dart#263.


Adding new dataset

how to add new word in dataset ?

Hello,
The class provides a way to inject a data folder through the constructor: https://github.com/AntoineAugusti/laravel-sentiment-analysis/blob/636d07b333043a7a5716b034f1e0bfabfe8368b7/src/SentimentAnalysis.php#L23-L26 If you provide a custom folder, you can override some of the default files from phpInsight: https://github.com/JWHennessey/phpInsight/tree/master/lib/PHPInsight. Take a look at the data folder and the PHPInsight \Sentiment class.

Thank you for responding my email. Actually the problem was I used
phpinsight in my college project for analyzing product reviews, and the
mixed reviews such as "The product is nice but could have been more better
or the product is prolly good but lacks consistency " is considered as
positive but it should be analysed as neutral. I am unable to fix this
problem. Could you please provide me some ideas. It would be a great help.
On Wed, Aug 7, 2019 at 6:25 PM Antoine Augusti<EMAIL_ADDRESS>wrote:

Closed #18
https://github.com/AntoineAugusti/laravel-sentiment-analysis/issues/18.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/AntoineAugusti/laravel-sentiment-analysis/issues/18?email_source=notifications&email_token=AJDDXIYMO6546XVSZG7SMPTQDK7C5A5CNFSM4IJ7FGDKYY3PNVWWK3TUL52HS4DFWZEXG43VMVCXMZLOORHG65DJMZUWGYLUNFXW5KTDN5WW2ZLOORPWSZGOS5SCXSY#event-2539924427,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AJDDXI5SN67ENYTGVDKFQIDQDK7C5ANCNFSM4IJ7FGDA
.

You'll likely want to look at machine learning / deep learning techniques. Worth a read: https://scikit-learn.org/stable/tutorial/text_analytics/working_with_text_data.html


tests: Add tests for Network Setup Options deserializer

Initial tests setup.

Covers deserialize and struct loading test for network options.

Usage
make test

@Luap99 @mheon PTAL

/lgtm


Multiple different crashes when the sharedInstance is accessed across different threads at app launch.

Describe the bug
The app crashes when we try to access Clevertap.sharedInstance() from multiple threads at app launch.
We are seeing > 1000 crashes per day for our app because of this.
There are many more other crashes related to Clevertap in our crash reporting tool, which could be resolved if we resolve this issue I believe.
To Reproduce
Steps to reproduce the behaviour:

Clone this repository
Run pod install to install the latest ClevertapSDK
Build and run the app on a simulator
Across 5 consecutive launches, you should see a crash at least once, sometimes in all 5 launches
Increase/decrease the number of accesses to Clevertap.sharedInstance() in appDidFinishLaunching to increase/decrease the chances of a crash occurring accordingly.

Expected behaviour
The crash should not occur
Screenshots
Memory leaks

Example crash:

Environment (please complete the following information):

Xcode version: Xcode 13.3.1
CleverTap SDK Version: 4.0.1
Device: iPhone 8 simulator
OS: iOS 15.4

Possible Solution
sharedInstance Singleton should be created only once. For every subsequent call to the sharedInstance, we should make the caller wait until the entire initial Clevertap init finishes successfully.
Additional context
In my testing I observed 3-4 different kinds of crashes with the same sample code in the attached github repo.

Alright @asifmohd let us view the repo you've provided and come back to you with a possible solution. 👍

@asifmohd we have added a possible fix for this on our feature branch at https://github.com/CleverTap/clevertap-ios-sdk/tree/task/SDK-1618-shared-instance-thread-safe . Could you please test it with the sample app repo provided by you at https://github.com/asifmohd/cleverTapTest before we push it to release? Here's a Podfile sample just in case:
target 'ClevertapTest' do   pod 'CleverTap-iOS-SDK', :git => 'https://github.com/CleverTap/clevertap-ios-sdk.git', :branch => 'task/SDK-1618-shared-instance-thread-safe', :modular_headers => true end

Tested it out on the repo, with upto 1000 loops, and did not observe any crashes and no more duplicate/leaked instances in memory graph.
Looks like the issue should be fixed ❤

We have added a fix for this in our latest release for v4.1.0 https://github.com/CleverTap/clevertap-ios-sdk/releases/tag/4.1.0


[IMPROVE] UI on biometrics screen

Please shrink the size of the eye icon to reveal the password on biometrics screen.

QA done.


Governance. Delegate. Can't delegate to different delegators

Description
When user have already delegated in one delegators for the governance tracks, he won't be able to delegate to another delegator any more, when he will open delegator details - it will shows "Your delegations" detail.
https://github.com/user-attachments/assets/b4b10310-c167-4c71-809e-3bfb040b57a7
Steps to Reproduce

Delegate to account_A in Governance tracks
Open Delegations, find account_B
Try to delegate to account_B

Expected Behavior
Can delegate to different delegators in different tracks
Actual Behavior
Can't delegate to different delegators
Environment
https://github.com/novasamatech/nova-spektr/commit/64f12ff7746cb19024e2df0b6009cec5e6e2cf17

duplicate of:
https://github.com/novasamatech/nova-spektr/issues/2165


Use path-to-regexp lib to match paths

This is the same lib used by express and page, so should have had a lot of real world testing.
Also included in this commit is support for '*' catch all routes.
Tests have been updated to prove the changes.

@garth looks great to me! I totally agree with using a well tested, robust package for this, as my implementation was limited and only handled basic cases. Thank you! I'm looking forward to using it!
I'll leave it to @christianalfoni to merge though.

Great stuff, just let me test this with the Cerebral-Router when I get home and I will release new version :-)
I think we could also release a new version of reactive-router using addressbar and url-mapper. As that is something other people can use with other flux implementations.


Offline Google map not working on version 2

I have tried various version 2 Google map Xamarin Android sample. If there is no wifi and cell data then samples fail to update the map and create fizzy maps. This is despite downloading offline maps in Google map app.
However if I use sample that uses the Google API directly then the offline downloaded maps are used and maps are responsive despite there is no cell or wifi data. So this is perfect except there is no documentation how to add many markers to Google API using Activity and Intent.
I don't care what method I use but I must have many icon markers on a offline Google map.
Please give me reference to a working sample/example.
Thanks

Thanks for reporting this to us. We try to keep our samples updated and current. However, this sample is fairly out of date and in need of an update. We've add this to our backlog of items to address.

Can you please point me to working current samples that show multiple circle icon markers on google map in offline airplane mode.

The Version 3 sample works fine under offline maps using Activity and Intent. Can you show me how to add multiple markers to that sample.

Please how can you close this when I am not asking you to fix a problem...i am merely asking you to point me to a solution.

Right now, the best I can do is to point you to the MapWithMarker sample.


Missed one of those GOCART-2G fields ...

With multiple bins that come out w/ the incorrect name in the output file.

please let me know when you issue the patch ...


Add e2e test to cover External Control Plane scenario of Multicluster setup

After the merge of this PR we need to create the e2e test that follow the configuration for External Control Plane

@fjglira I have a working implementation of this but I'm waiting until https://github.com/istio-ecosystem/sail-operator/issues/389 is complete since that will affect how the test is written.

@nrfox I think I almost have the test also. But as you mentioned, with the old way of setting the remote resource. If you already have something, we can use your test without any issue


Ties for long notes

Hi Silas,
Could I check how to have ties for minims and breves? I tried
1 - - - ~ | 1 - - - |

but this was rendered as

Thanks!

I think the "proper" way is to just use continuations, not ties:
WithStaff 1 - - - | - - - -

(the tie is automatically added in the 5-line staff, and the note is just continued with dashes in the jianpu)
If we need to do something different, it would help if we could find an example of published jianpu music to confirm what it "should" look like...

I think the "proper" way is to just use continuations.
I see, thank you.

if we could find an example of published jianpu music to confirm what it "should" look like...

After some searching,
here is an example that uses 'numbered notes' at the start of each bar, with the 'numbers' being tied together

(Source: https://theocarinanetwork.com/decoding-jianpu-notation-t18028.html)

Thanks, ah that makes things complicated.
Lilypond has 3 types of curve to connect notes: tie, slur, and phrase mark.  These 3 have slightly different curvatures.  The tie is the flattest of the 3, and is supposed to be used only between notes that are right next to each other.
When you say 6 - jianpu-ly actually implements it as 6 ~ 6 but makes the tie invisible and sets the second 6 as a -.  That explains why adding a ~ after the - results in a tie starting from the last -.
If we wanted Lilypond to tie from a note at the start of one bar, directly to the note at the start of the next bar, passing over the dashes in between, then we'd probably have to tell Lilypond the true length of the numbered note and add the dashes as fake notes in a separate voice, skipping the non-dash beat in this new voice.  That could lead to some quite complex code in jianpu-ly to handle all the cases.
Or you could fake it by using a slur:
2/4 6 ( - | 6 ) -

puts the ends of the curve on the right places, but it does have disadvantages:

the MIDI will sound wrong (because a slur is not really a tie: it will re-sound the note)
if the long notes are already under a slur, then you can't have one slur inside another slur.  (You can have a slur inside a phrase mark if you do it that way, but we still have to hope we don't get a case of long notes inside a slur that's already inside a phrase mark.  This is rather unlikely though.)

Appreciate the reply, and thanks for the details.

When you say 6 - jianpu-ly actually implements it as 6 ~ 6 but makes the tie invisible and sets the second 6 as a -. That explains why adding a ~ after the - results in a tie starting from the last -.

I see, and now that makes sense.

tell Lilypond the true length of the numbered note and add the dashes as fake notes in a separate voice, ...

Regarding this, what about using fake rests in a separate voice? Feel free to critique.
Rests will probably not affect the midi in anyway, so the implementation may be simpler ( I think). Again, I may have overlooked some complications, so feel free to comment!

Hi, well if we're in the jianpu-ly code (not just giving it input), then we don't have to worry about the midi, because we already have a mechanism to say the jianpu, the 5-line and the midi are three different scores at that level i.e. we can do things in jianpu that are different from what was done in midi (that's why there's lines of code that say "if midi or western..." - the whole thing is repeated for each type of output).  And I said fake notes instead of fake rests because we already know that notes are easier to work with when we're beaming (although in some cases you can beam across a rest as well).
But it turns out that Lilypond 2.20 and above can do labelled curves which are independent of slurs and phrase marks, so we might as well just use that (most people have 2.20+ these days, and if we still want to support 2.18 we can just detect it and say "your long-note ties are not going to look right unless you upgrade Lilypond to 2.20 or above")

Thanks Silas,
I think using fake rests doesn't concern beaming here (since the note durations are minims and longer), and if we are talking on the code level, either rests or notes is fine.
Either of the approaches in your comment above sounds good :)


Write a blog post describing the launch of this open source project

For the 2i2c blog, we should describe the launch of this open source project in collaboration with CellMap. This can be linked to from CellMap's announcement.

Closed by https://github.com/2i2c-org/2i2c-org.github.io/pull/342


Incorrect seqmap for the actual train set in MOTS?

On https://motchallenge.net/data/MOTS/ the MOTS training set consists of the four videos MOTS20-02, MOTS20-05, MOTS20-09 and MOTS20-11. The seqmap corresponding to this one is called val_MOTSchallenge.seqmap. Shouldn't this be the one called train.seqmap? Or am I missing something?

Here the same applies as in #8 There are 2 versions of the datasets with a slightly different format and the tools here currently only work with one of them.


How do I deploy a backend to Vercel separately? Always 404

How do I deploy a backend to Vercel separately? Always 404

@fwh666 you can't deploy Strapi on Vercel, need to use Render, Heroku, Digital Ocean, etc.
I have the frontend deployed on Vercel and backed  deployed on digital ocean.

Can you add a "How to deploy" guide with deploy  instruction on Render/Heroku/DigitalOcean for the app(backand with frontend) ?

@PaulBratslavsky Did you have any problem with image optimization requests when deploy on Vercel?


fix uninitialized variable

Ah I see thanks I'll just do a memset instead to make sure the struct is initialized

Ok, sounds good.  I found this while trying to track down a problem in a different WIP merge request; once you have a memset fix in master I'll rebase that branch.

It's in master now

thanks Jerome!


Improve visualization faktaark

Faktaark opens in a modal instead of in the infobox panel. Changed format of buttons so they look better.

I agree with most of your comments. I also thought it was unnecessary to have the expand div if we only have the buttons.
So I have created another PR with a different version, which I personally like better :)
Changes:

No expand.
Added a "open faktaark" icon button in the list item, which opens the faktaark in a modal.
The "open in new window" button has been moved to the modal.

I prefer to have a modal instead of the div on top of the map for a couple of reasons:

It looks well independently of the size of the screen.
I don't like a user can continue working with the map, layers, etc. while the faktaark is open since it refers to an specific layer and coordinates. I see it could be useful if you just check other results for the same coordinates, but in theory one could change layers, coordinates, poligon, etc. and the faktaark would not match (or you would have to update it for every change...)

Other option preferred.


CI/CD: Add a GitHub Action Bot to tag PRs with merge conflicts

Description
Add a GitHub Action Bot to tag PRs with merge conflicts. The Bot should do the following:

Tag a PR with merge-conflicts label if it runs into a merge conflict. Remove it up once it has been resolved.
Comment instructions to resolve merge conflicts by quoting GitHub Docs.
Remind the PR author every 24 hours if the merge conflicts is not fixed.

Hi! I would like to work on this. However, I've never created a Github bot before. I think I could manage the auto labelling and commenting part, but am a bit confused about how we could implement the third part?

Hi! I would like to work on this. However, I've never created a Github bot before. I think I could manage the auto labelling and commenting part, but am a bit confused about how we could implement the third part?

No worries! Let us first go with the needful first and then you can extend another PR to do the third after a discussion.

Thanks! I'll get started soon.


German translation added

Added de.lproj folder containing Localizable.strings with German translation. No changes to Xcode's project file. First translation and github pull request for me, so I hope everything's alright. Cheers.

Hey @drct looks like your missing some changes to the XcodeProj to include it? I was going to take your PR for German because you create it first and the dictionary is the exact same as https://github.com/RobotsAndPencils/XcodesApp/pull/245. If you're ok with it, I can take the other one instead, otherwise, could you fix it up to include those changes. Thanks

Thanks. I'll check it and update the XcodeProj.

Thanks for contributing!


Unobvious Compose behavior when processing bboxes

Hi.
I've found some unobvious behavior when using bbox-aware Compose along with ToTensor augmentation for PyTorch. The problem is that boxes_postprocessing() method assumes image has numpy format (HxWxC), but it is not if when ToTensor  was applied.
As a workaround, bbox modifying augs should be separrated from ToTensor(). For example
full_aug = Compose([VerticalFlip(p=1), ToTensor()], bbox_params=bbox_conf)

should be rewritten as
 bbox_modifying_aug = alb.Compose([alb.VerticalFlip(p=1)], bbox_params=box_conf)
 full_aug = alb.Compose([bbox_modifying_aug, ToTensor()])

Complete snipped reproducing the problem and demonstrating workaround in action is available here.
As far as I know, this thing is not mentioned anywhere in docs, but it should be if it is intentional behavior.
I think it should not be left like that and should be changed.

Hi,
Compose method now has preprocessing and postprocessing transforms. https://albumentations.readthedocs.io/en/latest/api/core.html#albumentations.core.composition.Compose so you should use them for ToTensor.
I agree that it's not obvious. Do you have ideas?

Yeah, you are right.
Thanks, we will try to improve API.


ERC777Token (Token Contract) for Scilla

This PR contains ERC777 Token Contract implementation in Scilla.
It contains the functions required for ERC777 token implementation.
References taken:
https://github.com/ethereum/EIPs/blob/master/EIPS/eip-777.md
https://github.com/jacquesd/ERC777/blob/master/contracts/examples/ReferenceToken.sol

Also please have a message.md containing all the message.json required to test the functions

@vaibhavchellani added message.md for testing.

great work @iamjaspreetsingh , merging !


reset the add student modal for creating a participation

Fixes #525

The flake8 issue you're seeing is fixed in my other pr that is currently open, so I won't fix it here again


Inspire Courage aura broken?

I just upgraded to v11 and the new pf2e module version (5.3), and I'm figuring out which mods and settings I had, because some of it got blanked out.
The question I have is about the Inspire Courage aura macro: when I use it on my bard, it seems like it's activating the aura, but not applying the buff to anyone (including the bard herself). the Aura is visible when I mouse-over, but it doesn't actually buff anyone

This would be a module issue


Improved "Code" viewer for viewing code directories

Originally reported on Google Code with ID 167

The plugin allows for different themes, multiple instances, fullscreen mode, github
connections, and much more. This following demo is hooked up to our public BigSpaceship/js
repository.
http://www.bigspaceship.com/blog/labs/jquery-plugin-codeexplorer-v01/
https://github.com/bigspaceship/js

Reported by @umple on 2011-06-24 22:00:13

One can already browse online code in Umple. One simply has to point the browser at:
https://cruise.eecs.uottawa.ca/umple/UmpleOnlineURLoptions.html
For example one can do: https://cruise.eecs.uottawa.ca/umpleonline/?filename=raw.githubusercontent.com/umple/umple/master/umpleonline/ump/2DShapes.ump
One could take this a step further by seeing if there are other files in the directory ...


refactor: Create context for profile info

Refactor Request
Describe the Refactor Request
Create Contexts for allTokens and profile information (profile picture, address etc).

The development is getting slow and many bugs / funny / unexpected behavior are happening because of that
Describe Preferred Solution
Create Contexts for allTokens and profile information

Related Code
TokensShelf.tsx

Additional Context

Awesome @eduramme we need a context for the ENSAvatar and the ENSName.
The shelf tokens as a context would facilitate their handling in case of resetting the shelf or simply moving them around during the swap workflow, specially when using the search feature

Bumping this.
Removed allTokens context from name as it will be resolved by #277

Hey @eduramme , let's not burn our heads with RPC requests for the ENS name.
Let's use this website: https://ensdata.net/
We can fetch the Primary Name of an address using it, we can even get the ENS avatar.

@0xneves That's awesome

No context was created for that issue. Now we're using https://ensdata.net/ to retrieve ENS data.


Refactor callback

I noticed :Telescope frecency get stuck some time in typing chars. So I've refactored logic to reduce time to calculate candidates.

LGTM


Add Ruby language tutorial

Added a link to a core Ruby programming tutorial. Thanks!

Thanks for your suggestion! Included the link in the latest edition: https://github.com/vicoyeh/pointers-for-software-engineers/pull/61


Question : user security with jwt

Hello,
first thank you for this amazing bundle, and the very well done doc ^^. I have a question about user verification, from the jwt : I am using the following code in a graphql mutation :
protected $em;
protected $userRepository;
protected $jwtManager;
protected $tokenStorageInterface;
protected $roomRepository;

public function __construct(EntityManagerInterface $em, UserRepository $userRepository,RoomRepository $roomRepository,TokenStorageInterface $tokenStorageInterface, JWTTokenManagerInterface $jwtManager) {
    $this->em = $em;
    $this->userRepository = $userRepository;
    $this->jwtManager = $jwtManager;
    $this->tokenStorageInterface = $tokenStorageInterface;
    $this->roomRepository = $roomRepository;
}

public function create(string $content, string $room)
{
    $decodedJwtToken = $this->jwtManager->decode($this->tokenStorageInterface->getToken());
    $user = $this->userRepository->find($decodedJwtToken["id"]);
    $post = new Post();
    $room = $this->roomRepository->findOneBy(["name" => $room]);
    $post->setContent($content);
    $post->setAuthor($user);
    $post->setRoom($room);
    $this->em->persist($post);
    $this->em->flush();

    return $post;
}

But from what I learned in the doc, we shouldn't be getting the user from the database in this check. It could be done with a custom user provider, implementing the JWTUserInterface but I don't understand how to use it in the example above :/.
Also does it affects alot performance to keep the userRepository->find() ?
Thank you in advance for your help.
Younes

If I understand you correctly, you want to get the current user?
Then you can do this:
$currentUser = $this->tokenStorageInterface->getToken()->getUser();
Beware that getToken() can be null, so you should check for that unless you're sure that there always must be a user logged in.

Using the token storage is indeed the way to go.
Closing as answered. Thanks @RikudouSage

If I understand you correctly, you want to get the current user?
Then you can do this:
$currentUser = $this->tokenStorageInterface->getToken()->getUser();
Beware that getToken() can be null, so you should check for that unless you're sure that there always must be a user logged in.

Why the user is like a new user when I used $this->getUser()? I want to load it from database


better error message

when parsing url, there are several things that can go wrong (wrong
hostname, wrong url scheme etc).

This overload turns out to be no longer relevant - it should perhaps be deprectated instead.


[Feature request] Use FLORIS for AMR-Wind standin

The current AMR-Wind stand-in does not contain any realistic physics. This feature (discussed with @paulf81 and @genevievestarke ) would use FLORIS (which contains steady-state physics) instead, so would account for wake interactions, albeit in an instantaneous way.
Wind farm information would be read in from the amrwind.inp file, and a matching FLORIS model instantiated to be called timestep by timestep.

Agree completely with this

Closed by #63


Inconsistent UI response to X action with element at variable widths

Please verify the version of auro-input you have installed
@latest
Please describe the bug
While investigating #327 I discovered the following UI bug.
Please see this CodePen: https://codepen.io/blackfalcon/pen/MWMVjVo
To repro the issue, please do the following in the provided example:

Tab in, then tab out of the element and notice that the warning icon appears.
Tab into the element and enter a value, notice the warning AND the "x" button appears.
DO NOT LEAVE the element while in this state.
With BOTH the warning and the "x" within the element, click on the "x"
Notice this does not clear the value, but only removes the warning.

Reproducing the error on the docsite
This issue is reproducible on the Auro docsite
Expected behavior
It is expected that when using the auro-input element at any width, the x button action should clear the value of the input.
What browsers are you seeing the problem on?
Firefox, Chrome, Safari, Microsoft Edge
Additional context
This and issue #327 may be related.

Closing this as an implementation error.  The behavior seen where trying to click the X on an input where the input field can resize is because before the click event can even fire, validation is run, and the error is cleared.
Our recommendation is that input should not be implemented to have error validation and resizing and allow for clearing with the x button.  Best practice recommendation is that the input field should be a set width, and in most known uses of Auro-input we see a fixed width used.


Refactor unused function args in presto-main

#4188
This PR is a preparation before enable UnusedVariable error prone check.

Is there anything need to be revised ?

Merged, thanks!


Sandbox database empty

Possibly I'm missing something crucial, but after starting the flextesa sandbox with
make flextesa-sandbox
the database does not get initialised (no migrations are run, I suppose). Here's an excerpt from the logs:
db_1        | 2021-11-17 17:08:40.888 UTC [84] ERROR:  relation "head_stats" does not exist
db_1        | 2021-11-17 17:08:40.888 UTC [84] STATEMENT:  REFRESH MATERIALIZED VIEW CONCURRENTLY head_stats;
metrics_1   |
metrics_1   | 2021/11/17 17:08:40 /go/src/github.com/baking-bad/bcdhub/cmd/metrics/services/view.go:30 ERROR: relation "head_stats" does not exist (SQLSTATE 42P01)
metrics_1   | [0.712ms] [rows:0] REFRESH MATERIALIZED VIEW CONCURRENTLY head_stats;
metrics_1   | ERR  error="ERROR: relation \"head_stats\" does not exist (SQLSTATE 42P01)"
db_1        | 2021-11-17 17:08:40.891 UTC [86] ERROR:  relation "states" does not exist at character 15
db_1        | 2021-11-17 17:08:40.891 UTC [86] STATEMENT:  SELECT * FROM "states" WHERE name = $1 ORDER BY "states"."name" LIMIT 1
metrics_1   |
metrics_1   | 2021/11/17 17:08:40 /go/src/github.com/baking-bad/bcdhub/internal/postgres/service/storage.go:23 ERROR: relation "states" does not exist (SQLSTATE 42P01)
metrics_1   | [4.832ms] [rows:0] SELECT * FROM "states" WHERE name = 'projects' ORDER BY "states"."name" LIMIT 1
metrics_1   | ERR  error="ERROR: relation \"states\" does not exist (SQLSTATE 42P01)"
metrics_1   | INF starting service... name=projects
db_1        | 2021-11-17 17:08:41.501 UTC [87] ERROR:  relation "head_stats" does not exist
db_1        | 2021-11-17 17:08:41.501 UTC [87] STATEMENT:  REFRESH MATERIALIZED VIEW CONCURRENTLY head_stats;

Dumping the database with
COMPOSE_PROJECT_NAME=bcdbox docker-compose exec db pg_dump -c indexer > dump_`date +%d-%m-%Y"_"%H_%M_%S`.sql
confirms this.

Ok so I figured it out in the end. Part my lack of understanding of docker and its networks.
To start off with, the felxtesa binding to <IP_ADDRESS>:8732:20000 failed for me, so I took that out and hoped it would just work. It didn't. That made the indexer fail to connect to the node and the migrations would not be run.
What worked for me was to use links instead of extra_hosts, there probably is a better, more general, way to do this, but I'll just leave my solution here for posterity.
docker-compose.sandbox.yml
version: "3.6"
services:
  elastic:
    image: bakingbad/bcdhub-elastic:4.0
    restart: always
    volumes:
      - esdata:/usr/share/elasticsearch/data
    environment:
      - bootstrap.memory_lock=true
      - discovery.type=single-node
      - "ES_JAVA_OPTS=-Xms256m -Xmx256m"
    logging: &bcd-logging
      options:
        max-size: 10m
        max-file: "5"

  db:
    image: postgres:12
    shm_size: 1g
    restart: always
    environment:
      - POSTGRES_USER=root
      - POSTGRES_PASSWORD=root
      - POSTGRES_DB=indexer
      - PGDATA=/var/lib/postgresql/data/pgdata
    volumes:
      - db:/var/lib/postgresql/data
    logging: *bcd-logging

  api:
    restart: always
    image: bakingbad/bcdhub-api:4.0
    environment:
      - BCD_ENV=sandbox
      - GIN_MODE=debug
      - POSTGRES_USER=root
      - POSTGRES_PASSWORD=root
      - SANDBOX_NODE_URI=http://sandbox:20000
      - SANDBOX_IPFS_GATEWAY=https://cloudflare-ipfs.com
    depends_on:
      - elastic
      - db
    ports:
      - <IP_ADDRESS>:14000:14000
    volumes:
      - bcdshare:/etc/bcd
    links:
      - "flextesa:sandbox"
    logging: *bcd-logging

  indexer:
    restart: always
    image: bakingbad/bcdhub-indexer:4.0
    environment:
      - BCD_ENV=sandbox
      - POSTGRES_USER=root
      - POSTGRES_PASSWORD=root
      - SANDBOX_NODE_URI=http://sandbox:20000
      - SANDBOX_IPFS_GATEWAY=https://cloudflare-ipfs.com
    depends_on:
      - db
      - metrics
    links:
      - "flextesa:sandbox"
    volumes:
      - bcdshare:/etc/bcd
    logging: *bcd-logging

  metrics:
    restart: always
    image: bakingbad/bcdhub-metrics:4.0
    environment:
      - BCD_ENV=sandbox
      - POSTGRES_USER=root
      - POSTGRES_PASSWORD=root
      - SANDBOX_NODE_URI=http://sandbox:20000
      - SANDBOX_IPFS_GATEWAY=https://cloudflare-ipfs.com
    depends_on:
      - elastic
      - db
    links:
      - "flextesa:sandbox"
    volumes:
      - bcdshare:/etc/bcd
    logging: *bcd-logging

  flextesa:
    restart: always
    image: tqtezos/flextesa:20211025
    command: granabox start
    environment:
      - block_time=4
    ports:
      - "20000:20000"
    expose:
      - 20000/tcp
    logging: *bcd-logging

  gui:
    container_name: sandbox-gui
    restart: always
    image: bakingbad/bcdhub-gui:4.0
    depends_on:
      - api
    ports:
      - <IP_ADDRESS>:8000:80
    logging: *bcd-logging

volumes:
  esdata:
  bcdshare:
  db:
    driver: local

Hey @852Kerfunkle, sorry for the late reply!
Indeed extra_hosts is not a pretty solution, but kinda working on all platforms (as turned out not :))
Thanks for the recipe! I'll update the compose file


Primary navigation hamburger menu not visible nor clickable

My settings:
Show publication cover: off
Color scheme: auto
Navigation layout: logo on cover
Ghost version: 5.36.0
Casper version: 5.4.5
Steps to reproduce:

Reduce screen size until the primary navigation bar disappears, or view Casper site in mobile
Go to the top right where the hamburger menu is supposed to be
Observe that you can't see the hamburger menu
Clicking on where the hamburger menu is, no dropdown menu seems to appear.

You can see this on my blog https://adventgineering.org

The hamburger menu is not working on your website because you turn dark mode, and the hamburger icon does not change color according to the dark theme. It works fine with your site's light mode ( remove dark mode  ).

Enable light theme and your  hamburger menu icon is work fine.

chnage Color scheme: light

Three follow ups:

That means we should make it work in dark mode by changing the css somewhere. Probably in the screen.css file in the Dark Mode section.
Not sure what's wrong with the hamburger, I noticed that even on reduced screens, in the code the area on the website where Primary Navigation should be still links to the correct pages, just that I can no longer click on them. Upon clicking on the hamburger menu, nothing changes in the code.
I have issues with switching back to light mode via the ghost admin panel (which I will detail in another issue)

Hey @hkrsmk, thanks for the detailed feedback. The burger icon dark mode issue is now fixed in 5.4.6. Could you check again?
This is how it works after the fix.
https://user-images.githubusercontent.com/1418797/221766993-2a1349c2-0aea-4e2e-b2fd-b77901f155e2.mp4

Yes, it's working great now. Thank you so much!


nvBWT (and nvSetBWT) do not deal with multifasta (treats only first ref into)

Hello,
When indexing a multifasta file, both nvBWT and nvSetBWT work, but they treat only the first sequence in my multifasta file.
(nvBowtie works also, treating this only first reference sequence).
How to deal with multifasta (therefore several fasta sequences in a same file), please?
Thank you in advance.

I also have this issue.

I agree that it would be great if these tools were applicable to multifasta files, particularly because it would allow the tools to be used in metagenomics studies.
One area where it could be particularly helpful is assembling genomes from metagenomes.  The current approaches can incorporate information about the relative abundances of contigs across samples into the binning process, but typically this is only done for a small number of samples due to reliance on cpu-based mapping software. Extending the nv tools to work with multifastas could be a huge advance!


Export of Collection via ArangoDB 3.03 Web Interface Results in 401 Error

my environment running ArangoDB
I'm using the latest ArangoDB of the respective release series:

[ ] 2.8
[X ] 3.0
[ ] self-compiled devel branch

On this operating system:

[ ] DCOS on

[ ] AWS
[ ] Azure
[ ] own infrastructure

[x] Linux

[ ] Debian .deb
[X ] Ubuntu .deb
[ ] SUSE   .rpm
[ ] RedHat .rpm
[ ] Fedora .rpm
[ ] Gentoo
[ ] docker - official docker library
[ ] other:

[ ] Windows, version:
[ ] MacOS, version:

this is a web interface-related issue:
I'm using the web interface with this browser: Chrome or Firefox (latest stable) running on this OS: Linux Mint 17

[X ] authentication is enabled?
[ ] using the cluster?
[ ] _system database?

These are the steps to reproduce:

open the browser on http://<IP_ADDRESS>:8529
log in as root user
use database [X ] _system [ X] other:
Open any collection.
Use the "Download documents as JSON file" button in upper right.
...

The following problem occurs: A new browser tab is popped with the following JSON:
{"error":true,"errorNum":401,"errorMessage":"Unauthorized","code":401}
Instead I would be expecting:
The JSON file containing the data in the collection I attempted to export.

Confirmed to not work (i.e. throws "401 unauthorized" error) in current 3.0.
In devel, there is no such error, but the download does not start either. The browser calls the following URL via HTTP GET "/_admin/aardvark/query/result/download/eyJxdWVyeSI6IkZPUiB4IGluIEBAY29sbGVjdGlvbiBSRVRVUk4geCIsImJpbmRWYXJzIjp7IkBjb2xsZWN0aW9uIjoiZSJ9fQ==", but nothing happens (in Firefox 47.0).

The unauthorized bug is fixed since a few days in both branches. Chrome is fine, Firefox is broken. Will investigate.

The unauthorized bug is fixed since a few days in both branches. Chrome is fine, Firefox is broken.

Just to clarify: Firefox 47.0 still says "Unauthorized" in current 3.0 (7c557ff244918302a0d9e535f51969bc12da10d7) as I reported here

The firefox download issue is now fixed.
@jsteemann : We do not push a new grunt build for every bugfix. This is part of the deployment process. This could be the reason why your instance still throws unauthorized.

@hkernbach : confirmed to work after grunt-ing the web interface files.
I'll write a comment about the fix into the changelog as it is missing there.

Thank you. I'll try to remember next time.


Update aws-java-sdk-dynamodb to 1.12.296

Updates com.amazonaws:aws-java-sdk-dynamodb from 1.11.1034 to 1.12.296.
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

Adjust future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "com.amazonaws", artifactId = "aws-java-sdk-dynamodb" } ]

Or, add this to slow down future updates of this dependency:
dependencyOverrides = [{
  pullRequests = { frequency = "@monthly" },
  dependency = { groupId = "com.amazonaws", artifactId = "aws-java-sdk-dynamodb" }
}]

labels: library-update, early-semver-minor, semver-spec-minor, commit-count:1

Superseded by #333.


v2 parser AugAssign stmt doesn't allow x[0] += 1

What is wrong?
The new parser (v2 branch) only supports augmented-assignments where the LHS is an identifier. Eg x += 1 is supported, but x.y += 1 isn't.
How can it be fixed
Good opportunity for someone to become familiar with the new parser, I guess.

If anyone is interested in this issue, please fork from Hir PR because I modified the parser in the PR.

It also seems necessary to fix the Assign statement, which wrongly assumes that its left-hand side is a pattern.
lhs should be a pattern or expression.

If v2 parser alows probe .smt insted of .stmt by using an incluide ...  .smt.create.stmt":::::" meany that solve the problem.. find in your languague obviusly

Resolved in https://github.com/ethereum/fe/pull/985


Enhancement - FaaS UI to use mono-spaced font for request/response

Issue
The FaaS UI can be used to invoke functions on the cluster - it has two textboxes for request/response - both are using the default Angular material theme's font.
Proposed fix
Either find a way to force/override the Angular material font or embed a light-weight JavaScript code editor.

Roboto Mono could fit Material UI design, an be easily added to the project through google font import already in place: https://github.com/alexellis/faas/blob/19699d5e799f8ded9995cef0ded8f6558f53643c/gateway/assets/index.html#L4

That sounds like a good approach @fabienheureux. Can you try it out and share a screenshot in this issue?

Sure, will share something on my lunch break 😉

If you think the changes are good, you can just rebuild the container and deploy again.
./build.sh in gateway folder
then update docker-compose.yml to add the tag "latest-dev" instead of "0.6.0" (or whatever it is set to) for the gateway.

Fixed in #140


Remove Azure Functions app's URL as default base url

Describe the issue
When adding new OpenApiServer, I am expecting that I could fully define my own servers(base urls). But still the Azure Functions app's URL is showing after overriding Servers or adding "OpenApi__HostNames" environment variable. The reason to do this is that I am using API management to access the swagger ui, and I don't want to expose the backend Azure function urls. Thank you.
Expected behavior
When override Servers, Azure functions app's url should not be added as base url by default.
Screenshots

@a2741890 Thanks for the issue! Assuming that you're locally running the app because I can see the localhost. To omit the localhost or hosting application's URL and only want to use API Management's URL, set this property to false.
https://github.com/Azure/azure-functions-openapi-extension/blob/e7e2acfa54682c8fa4c93d3bffb9db7716dc2415/src/Microsoft.Azure.WebJobs.Extensions.OpenApi.Core/Configurations/DefaultOpenApiConfigurationOptions.cs#L39
Found that this property has not been documented yet. I'll document it soon.
Make sure that you may experiences the CORS error for that case. I'll take further look as well.


Add Google API dependencies.

@jiayliu
This is gathered from google-api-python-client and is the google-api-python-client-gae-1.2.zip unzipped so that our API can use it.

lgtm

Since these files aren't under the top-level LICENSE, I think they should go under an apprtc/third_party directory.

@juberti should I add a LICENSE file or README inside the third_party directory mentioning something about licensing?

Yeah, I think a README explaining that this is third-party code (and why we need it here, as opposed to pulling it as a npm module) is an excellent idea.

readme added. ptal


Add updated instructions and screenshots for the Merging process

@machikoyasuda we might want a screenshot specifically showing the building:levels error and how to fix it? See #64

@almccon that’s a great idea. @cityhubla how do we fix the string building error?


'Received unexpected chunk upload response' when uploading a video

Please follow the guide below

Issues submitted without this template format will be ignored.
Please read the questions carefully and answer completely.
Do not post screenshots of error messages or code.
Put an x into all the boxes [ ] relevant to your issue (==> [x] NO spaces).
Use the Preview tab to see how your issue will actually look like.
Issues about reverse engineering is out of scope and will be closed without response.
Any mention of spam-like actions or spam-related tools/libs/etc is strictly not allowed.

Before submitting an issue, make sure you have:

[x] Updated to the lastest version v1.5.7
[x] Read the README and docs
[x] Searched the bugtracker for similar issues including closed ones
[x] Reviewed the sample code in tests and examples

Which client are you using?

[x] app (instagram_private_api/)
[ ] web (instagram_web_api/)

Describe the Bug/Error:
I got an error when trying to upload a video using api.post_video I've tried with and without encoding, also tried to encode the thumb, size and duration without media.prepare_video but nothing seem to work. When I save the video and upload it to IG with the app, as suggested here , it works just fine...

Python 3.6.4 :: Anaconda, Inc.
Code:
...
data, size, duration, thumb = media.prepare_video(filepath, aspect_ratios=MediaRatios.standard, skip_reencoding=True, save_path='video.mp4')
api.post_video(data, size, duration, thumb)
...

Error/Debug Log:
WARNING:py.warnings:/Users/guillaume/miniconda3/envs/tf/lib/python3.6/site-packages/moviepy/video/io/ffmpeg_reader.py:132: UserWarning: Warning: in file /var/folders/7s/5vyv23b511g2vc2zcvtdc1z40000gn/T/ipae_drkku0o2.mp4, 1536000 bytes wanted but 0 bytes read,at frame 395/396, at time 13.17/13.17 sec. Using the last valid frame instead.
  UserWarning)

WARNING:py.warnings:/Users/guillaume/miniconda3/envs/tf/lib/python3.6/site-packages/instagram_private_api/endpoints/upload.py:497: UserWarning: This endpoint has not been fully tested.
  warnings.warn('This endpoint has not been fully tested.', UserWarning)

DEBUG:instagram_private_api.client:REQUEST: https://i.instagram.com/api/v1/upload/video/ POST
DEBUG:instagram_private_api.client:DATA: b'_csrftoken=Lnzv89pHahkVWR3uBzf6GEasInm6CaNV&_uuid=80a0f3f4-ae91-11e8-9886-985aeb8e7954&upload_id=1536176631309&media_type=2&upload_media_duration_ms=13170&upload_media_width=612&upload_media_height=816'
DEBUG:instagram_private_api.client:RESPONSE: 200 {"video_upload_urls": [{"url": "https://upload.instagram.com/api/v1/stage/video/?target=tsp_prn\u0026vx_token=2\u0026staging_in_tao=0", "job": "AQC6x9LvN1YG-oNHY3v51K5HX9BMft3lRp3nmwGj5RuY06sK4xQnbEmVua_aG0jYUxHa433-Lpv1IHWbZjrnwif43l3qPuEUJIcKwTMcoKUMNtpJTEu2xAEEqWHPqHxLdafKle7TiHOGWszaiVK37YEMq1B4VKNhNDYCfc_ZhQYYtTTq_xFCTxz7SMDZhLGgZ2agpRpEghqUERuWrxiW9aFaCBfhP1JUAn6XSD1dCm_lQqOMDaTWD53XL8ZynBaNEZwi_MriS8xSEhVRarxjPg-MqDYrK50EZadGxLveAZuPqF_fiQXm_ayRxQ3R7rlQgzen8BA_UWu3RUjNU-kqg4VuMegXQDuu6ljxRwhEyMdmdg", "expires":<PHONE_NUMBER>.2875023}, {"url": "https://upload.instagram.com/api/v1/stage/video/?target=tsp_prn\u0026vx_token=1\u0026staging_in_tao=0", "job": "AQDvmA78eBVFus9uCTZzf_fxCqaJbXcpg9ouDsHb02RmkYA5pZ3FCp4zDBjWLaPa2Ggh1HXuZ0hNIJeF8QWIdnC0zV6uWNB_jlliKvR7y0CWf9YOvEkUDEAyCwhx8J7KVq7Mchf4jNzpQW7UioNAA3TXlO0yw2wlxqjrTkAvX-wky07i0em8jnMAwdVFWSviV38q3Rkp1Ijbg-MMhmROZ5H3PGUvhPIfV-6ZdRksGoTPl87JgAqNFsV6EwHDj4zZUYv6bLOxpQ84RapsBVauP9O3OKaJt4qM5s3R75XjFLxAG48sf2mEuEjJHVdJwa7wHxbPLlDe46d9YGuAT7e4uKZrhc1uw0RyG4OnQkx0jSE5HQ", "expires":<PHONE_NUMBER>.2877524}, {"url": "https://upload.instagram.com/api/v1/stage/video/?target=tsp_prn\u0026vx_token=4\u0026staging_in_tao=0", "job": "AQDK5HXX1qnINlwrLpdh5hiKoNbQLvjbhlJI8b2CuLw9MsZkxO6idOrzud9oVxF4uIAuaw4tf0X1rm25dyuJM4TeAeh4qCk0MhdIkhWHcESdODhRJBWIHGEyTKYB64RsDBqQTef2WTtPfjkbXKCg_giC1zCH58qQWw0iJxY-m-jlGfmZJ1kgr7hTTMikFcqQ6E8YqraViJ2SYKs1zuI3jaFW6BUbFUX3M1zdTY2VihbFT9Kql-nF8FUiYlhlT2sSuSLK4IFIluRgUTzSPsoYD30-0lpvsH6axRGRmW5yyGdCd1kWB4iEAT7VwcycyTvM5ZrhLGzHFqqvxvtHeSMHgTp3Hs5AbKn48u6JIcgtshgbTg", "expires":<PHONE_NUMBER>.2879884}, {"url": "https://upload.instagram.com/api/v1/stage/video/?target=tsp_prn\u0026vx_token=2\u0026staging_in_tao=0", "job": "AQAXBK_Qxs_xOUFlAUWzBbP8kydv4xKAIqIs-mudfTMzphHuO8TFGWY3DhverNo-YYVzk6zwOJ1Z5HJAarXAw6nACjYsNFA7AjJHNsInl9PDjd1vRyVdqWezFfW8VRaKKns_A-tas71oYAQH8TcD4YbNOQfi1tD0PVZqa5r5mKMd3Egbc-sMNOsa2qhhGghN7X4hE9U2C-umufyY4EyH7zvwHQF9atV6ZS_61swBgqWNMKxXxbp1ZawdE5w0XLeLbQOj3cwrOqZtX5MDh2P0wWVqXqDzac2e0esolopJQ37lMFn64Cg4iwbYksQwSgzm8oqKs8dvIUmdUfgyOoeUxepRFZ_HufqFTNm3WrKVGzEEEw", "expires":<PHONE_NUMBER>.2881846}], "upload_id": "1536176631309", "xsharing_nonces": {}, "status": "ok"}
DEBUG:instagram_private_api.client:POST https://upload.instagram.com/api/v1/stage/video/?target=tsp_prn&vx_token=2&staging_in_tao=0
DEBUG:instagram_private_api.client:Uploading Content-Range: bytes 0-401042/1604175
DEBUG:instagram_private_api.client:RESPONSE: 201 0-401042/1604175
DEBUG:instagram_private_api.client:POST https://upload.instagram.com/api/v1/stage/video/?target=tsp_prn&vx_token=2&staging_in_tao=0
DEBUG:instagram_private_api.client:Uploading Content-Range: bytes<PHONE_NUMBER>85/1604175
DEBUG:instagram_private_api.client:RESPONSE: 201 0-802085/1604175
DEBUG:instagram_private_api.client:POST https://upload.instagram.com/api/v1/stage/video/?target=tsp_prn&vx_token=2&staging_in_tao=0
DEBUG:instagram_private_api.client:Uploading Content-Range: bytes<PHONE_NUMBER>128/1604175
DEBUG:instagram_private_api.client:RESPONSE: 201 0-1203128/1604175
DEBUG:instagram_private_api.client:POST https://upload.instagram.com/api/v1/stage/video/?target=tsp_prn&vx_token=2&staging_in_tao=0
DEBUG:instagram_private_api.client:Uploading Content-Range: bytes 1203129-1604174/1604175
DEBUG:instagram_private_api.client:RESPONSE: 200 {"result": "deprecated", "configure_delay_ms": "6500", "status": "ok"}
ERROR:instagram_private_api.client:Received unexpected chunk upload response: {"result": "deprecated", "configure_delay_ms": "6500", "status": "ok"}
Traceback (most recent call last):
  File "main.py", line 171, in <module>
    main(args)
  File "main.py", line 140, in main
    post_video(api, path, thumb_data, caption)
  File "/Users/guillaume/Documents/02-Projects/201803-Instamona/Git/Instamona/instagram/utils.py", line 102, in post_video
    api.post_video_story(data, size, duration, thumb)
  File "/Users/guillaume/miniconda3/envs/tf/lib/python3.6/site-packages/instagram_private_api/endpoints/upload.py", line 701, in post_video_story
    thumbnail_data=thumbnail_data, to_reel=True)
  File "/Users/guillaume/miniconda3/envs/tf/lib/python3.6/site-packages/instagram_private_api/endpoints/upload.py", line 622, in post_video
    code=500)
instagram_private_api.errors.ClientError: Upload has failed due to unexpected upload response: {"result": "deprecated", "configure_delay_ms": "6500", "status": "ok"}

It seems to be a problem with the encoding of the last frame or something like that? I've also updated moviepy but it does not seem to help...

Have you found a solution?
This is happening to me too. I have uploaded a couple of videos and then none of the accounts I have accepts any video.
I tried with many different formatted mp4 files no help. Even the ones I download from instagram itself.
Moviepy doesn't work on Ubuntu on Windows. So this makes things harder :/

Just found the root cause res.info's content type is "application/json; charset=utf-8" rather than "application/json" so upload.py can not interpret the last chunk as last chunk instead it treats as one of the intermediate ones. So fails with unexpected response.
Probably api response changed.

Please test if the master branch fixes this for you.


osbuild-tests: Intermittent failure in TestEverything on Fedora 32

I'm seeing this failure intermittently on Fedora 32:
TASK [Run osbuild-tests test] **************************************************
Wednesday 13 May 2020  14:17:43 +0000 (0:00:00.505)       0:16:04.344 *********
fatal: [localhost]: FAILED! => changed=true
  cmd:
  - /usr/libexec/tests/osbuild-composer/osbuild-tests
  - -test.v
  - -test.timeout
  - 1800s
  delta: '0:18:34.667167'
  end: '2020-05-13 14:36:18.234157'
  msg: non-zero return code
  rc: 1
  start: '2020-05-13 14:17:43.566990'
  stderr: ''
  stderr_lines: <omitted>
  stdout: |-
    === RUN   TestEverything
        TestEverything: main_test.go:104:
                    Error Trace:    main_test.go:104
                                                            main_test.go:61
                    Error:          Not equal:
                                    expected: "FAILED"
                                    actual  : "FINISHED"

                                    Diff:
                                    --- Expected
                                    +++ Actual
                                    @@ -1 +1 @@
                                    -FAILED
                                    +FINISHED
                    Test:           TestEverything
                    Messages:       Unexpected compose result: FAILED
    --- FAIL: TestEverything (1114.00s)
    === RUN   TestSources
    --- PASS: TestSources (0.66s)
    FAIL
  stdout_lines: <omitted>

It most recently occurred here during work on #603:
https://osbuildci.cloud.paas.psi.redhat.com/blue/organizations/jenkins/osbuild%2Fosbuild-composer/detail/PR-603/69/pipeline

@major do we have logs from this failure (I wasn't able to find them)? Could be an issue with the mirrors/depsolve.

Ah darn, this is a duplicate of #566. I'll close this one.


fix(ci): make gh-pages ci run even on first commit

as per https://github.com/JonasPammer/cookiecutter-github-action-typescript/issues/4

(^ somehow accidentally added commits from #20)

(^ somehow accidentally added commits from https://github.com/JonasPammer/cookiecutter-pypackage/pull/20)


[os_log][stdlib-private] Refactor new os log APIs based on string interpolation for enabling optimizations.

Refactor and add inlining and @_semantics attributes to the new os log APIs  so that it can be optimized by the new OSLogOptimization compiler pass. The implementation now clearly marks out code that will be evaluated at compile time from the code that will be executed at runtime.

@swift-ci Please smoke test

The PR for the optimizer is available here: https://github.com/apple/swift/pull/24336

@moiseev Based on discussions with @eeckstein, I have removed -Onone requirement from the module and instead marked functions that will be constant evaluated with @_optimize(none).  I have pushed a commit with these changes.

@swift-ci Please test

@swift-ci Please test

Build failed
Swift Test Linux Platform
Git Sha - e8651a0af71eb55ccbdbf19f84ac7a5c07e01e9b

Build failed
Swift Test OS X Platform
Git Sha - e8651a0af71eb55ccbdbf19f84ac7a5c07e01e9b

Removed @frozen from public enums.

@swift-ci Please test

Build failed
Swift Test Linux Platform
Git Sha - eb3c5e1eaaba60150e0805524c0d032299a20b9a

Build failed
Swift Test OS X Platform
Git Sha - eb3c5e1eaaba60150e0805524c0d032299a20b9a


Test against prereleases

We should probably use
python -m pip install  --pre -e .

instead of
python -m pip install --upgrade --pre -e .

I.e., without the --upgrade.  But I wanted to test with upgrades to see if there were some potential upper pins that I should investigate. Thoughts?

This definitely makes sense to me - thanks for tracking down the weird pinning behavior.

The more I think about it, the more I think maybe we should keep the --upgrade option. If it ends up causing too much noise, we can revisit.

I'm not sure I understand the implications of --upgrade vs not, so I defer to your and others' expertise!


[WIP] Image Builder Extension

This checklist is used to make sure that common guidelines for a pull request are followed.

For new extensions:

[ ] My extension description/summary conforms to the Extension Summary Guidelines.

If this PR is for a new extension or change to an existing extension, use the following to try out the changes in this PR:
docker run -it microsoft/azure-cli:latest
export EXT=<NAME>
pip install --upgrade --target ~/.azure/cliextensions/$EXT "git+https://github.com/Azure/azure-cli-extensions.git@imagebuilder-new-extension#subdirectory=src/$EXT&egg=$EXT"

Travis error:

************* Module azext_imagebuilder.custom
E:104, 0: function already defined line 78 (function-redefined)


feat: support per table memtable options

I hereby agree to the terms of the GreptimeDB CLA.
Refer to a related PR or issue link (optional)

#3183
#2804

What's changed and what's your intention?
This PR supports configuring memtable options for each table. It replaces the global memtable builder in the worker with a builder factory MemtableBuilderProvider.
By default, all regions use the same default_memtable_builder. If memtable.type is specified in the region options, the provider will create a new memtable for the region. The memtable config in the MitoConfig only applies to the default memtable.
create table if not exists test_memtable(
    host string,
    ts timestamp,
    memory double,
    TIME INDEX (ts),
    PRIMARY KEY(host)
)
engine=mito
with(
    'memtable.type' = 'time_series',
);

This PR changes the default global memtable to the old time_series memtable. It enables the new memtable in the metric engine by setting the memtable type explicitly.
It also fixes an issue that the region uses the default value instead of returning an error if compaction.twcs.max_active_window_files isn't a valid integer.
Checklist

[ ]  I have written the necessary rustdoc comments.
[ ]  I have added the necessary unit tests and integration tests.
[x]  This PR does not require documentation updates.

Hopefully we won't end up with MemtableBuilderProviderBuilder 😅


Ignoring compilation errors in some scripted tests

I've discovered this issue while hacking on https://github.com/sbt/sbt/pull/3151.
Non-compiling build.sbt or the scala files inside project whose test files only check the failure of commands report success when the miscompilation should report an error.
An example is actions/task-cancel, whose project and build files reference to taskCancelHandler. taskCancelHandler was renamed by Josh back in 2014 to taskCancelStrategy.
As said before, this issue does not reveal itself because the scripted test only check the failures of commands:
# All tasks should fail.
-> compile
-> test

We may have more of these examples in the sbt codebase. If so, they will be revealed by my refactoring to scripted https://github.com/sbt/sbt/pull/3151 (which is at the moment of writing not yet pushed).

project-load/sha-config is another example. It depends on bintray-sbt 0.2.1 which is not correctly resolved since bintray sbt does not exist for sbt 1.0.0-SNAPSHOT.
This increases the surface of this issue from "Non-compiling build.sbt or sbt scala files" to "Any test that produces an error at sbt initialization".

project/defs is another example. It uses a val extractor and however it's reported as successful:
lazy val a,b = project

Another example: source-dependencies/transitive-memberRef.
[error] x source-dependencies / transitive-memberRef
[error]  Cause of test exception: {line 11}  Command failed: checkCompilations failed
[trace] Stack trace suppressed: run last sbtRoot/*:scripted for the full output.
[error] (sbtRoot/*:scripted) Could not parse test script, '/tmp/sbt_5216b0ae/pending' [2.2] error: expected command
[error]
[error] #
[error]
[error]  ^

In this case, we were swallowing a parser error.

Another example: project/old-ops. This one is important.


Update requirements.txt for werkzeug 2.3.7

I had problems with werkzeug 3.0.1 but reverting to werkzeug 2.3.7 smoothed things out.
Nov 11 13:42:32 changedetection systemd[1]: Started Change Detection.
Nov 11 13:42:33 changedetection changedetection.io[553]: Traceback (most recent call last):
Nov 11 13:42:33 changedetection changedetection.io[553]:   File "/usr/local/bin/changedetection.io", line 5, in
Nov 11 13:42:33 changedetection changedetection.io[553]:     from changedetectionio.changedetection import main
Nov 11 13:42:33 changedetection changedetection.io[553]:   File "/usr/local/lib/python3.9/dist-packages/changedetectionio/init.py", line 10, in
Nov 11 13:42:33 changedetection changedetection.io[553]:     from flask_wtf import CSRFProtect
Nov 11 13:42:33 changedetection changedetection.io[553]:   File "/usr/local/lib/python3.9/dist-packages/flask_wtf/init.py", line 4, in
Nov 11 13:42:33 changedetection changedetection.io[553]:     from .recaptcha import Recaptcha
Nov 11 13:42:33 changedetection changedetection.io[553]:   File "/usr/local/lib/python3.9/dist-packages/flask_wtf/recaptcha/init.py", line 1, in
Nov 11 13:42:33 changedetection changedetection.io[553]:     from .fields import RecaptchaField
Nov 11 13:42:33 changedetection changedetection.io[553]:   File "/usr/local/lib/python3.9/dist-packages/flask_wtf/recaptcha/fields.py", line 3, in
Nov 11 13:42:33 changedetection changedetection.io[553]:     from . import widgets
Nov 11 13:42:33 changedetection changedetection.io[553]:   File "/usr/local/lib/python3.9/dist-packages/flask_wtf/recaptcha/widgets.py", line 3, in
Nov 11 13:42:33 changedetection changedetection.io[553]:     from werkzeug.urls import url_encode
Nov 11 13:42:33 changedetection changedetection.io[553]: ImportError: cannot import name 'url_encode' from 'werkzeug.urls' (/usr/local/lib/python3.9/dist-packages/werkzeug/urls.py)
Nov 11 13:42:33 changedetection systemd[1]: changedetection.service: Main process exited, code=exited, status=1/FAILURE
Nov 11 13:42:33 changedetection systemd[1]: changedetection.service: Failed with result 'exit-code'.

Temporarily downgrading to Flask 2.2.3 was also needed for me:
Traceback (most recent call last):
  File "/usr/local/bin/changedetection.io", line 5, in <module>
    from changedetectionio.changedetection import main
  File "/usr/local/lib/python3.10/dist-packages/changedetectionio/__init__.py", line 10, in <module>
    from flask_wtf import CSRFProtect
  File "/usr/local/lib/python3.10/dist-packages/flask_wtf/__init__.py", line 4, in <module>
    from .recaptcha import Recaptcha
  File "/usr/local/lib/python3.10/dist-packages/flask_wtf/recaptcha/__init__.py", line 1, in <module>
    from .fields import RecaptchaField
  File "/usr/local/lib/python3.10/dist-packages/flask_wtf/recaptcha/fields.py", line 3, in <module>
    from . import widgets
  File "/usr/local/lib/python3.10/dist-packages/flask_wtf/recaptcha/widgets.py", line 6, in <module>
    JSONEncoder = json.JSONEncoder
AttributeError: module 'flask.json' has no attribute 'JSONEncoder'

Thanks guys - any context here? like it just happened randomly, or after an update? (if so what versions)
and does downgrading the changedetection version fix it or?
please - more version/context info about when/why this happened :)

and please, did you install via PIP or just unzipped it or? there's really not enough information here

Hey, sorry to say that I may still be quite vague, but will do my best. I run changedetection from the pip repository on a dedicated ubuntu lxc. I do not use a venv for this.
Yesterday, I did update to the latest version of changedetection via pip install --upgrade changedetection It is now on v0.45.7
I am not sure which version it was on previously, but at least v0.45.x
At a guess I would say this triggered updating to werkzeug to 3.0.1 ???
I am not too familiar with pip, but I will see if I can find pip logs or something
Cheers

@2600box I can reproduce the problem, now looking into why the tests didnt pick it up
@nmaggioni you are chiming in also with no background information, you have a different issue maybe

https://github.com/maxcountryman/flask-login/issues/803
https://github.com/maxcountryman/flask-login/issues/744
https://github.com/maxcountryman/flask-login/pull/746
https://stackoverflow.com/a/77215455
So I installed via pip and I got 0.6.2, 0.6.3 included the fix
https://github.com/dgtlmoon/changedetection.io/blob/07a853ce59797f192707c7749a259307dab6cc1a/requirements.txt#L4C1-L4C17
@2600box can you try reverting back to 3.0.1 and simply updating flask-login
pip3 install Werkzeug==3.0.1 Flask-Login==0.6.3^C

that fixed it for me

@nmaggioni what version of flask login you got?
pip3 list|grep -i Flask

Hmmm, still incompatible for me, even after a reboot.
Starting point:
changedetection:~# pip3 list|grep -i Flask
flask                2.3.3
Flask-Compress       1.14
flask-expects-json   1.7.0
Flask-Login          0.6.3
flask-paginate       2022.1.8
Flask-RESTful        0.3.10
Flask-WTF            1.1.1
pytest-flask         1.2.0
changedetection:~# pip3 list|grep -i werkzeug
werkzeug             2.3.7

Upgrade:
changedetection:~# pip3 install Werkzeug==3.0.1 Flask-Login==0.6.3
Collecting Werkzeug==3.0.1
  Using cached werkzeug-3.0.1-py3-none-any.whl (226 kB)
Requirement already satisfied: Flask-Login==0.6.3 in /usr/local/lib/python3.9/dist-packages (0.6.3)
Requirement already satisfied: Flask>=1.0.4 in /usr/local/lib/python3.9/dist-packages (from Flask-Login==0.6.3) (2.3.3)
Requirement already satisfied: MarkupSafe>=2.1.1 in /usr/local/lib/python3.9/dist-packages (from Werkzeug==3.0.1) (2.1.3)
Requirement already satisfied: blinker>=1.6.2 in /usr/local/lib/python3.9/dist-packages (from Flask>=1.0.4->Flask-Login==0.6.3) (1.7.0)
Requirement already satisfied: Jinja2>=3.1.2 in /usr/local/lib/python3.9/dist-packages (from Flask>=1.0.4->Flask-Login==0.6.3) (3.1.2)
Requirement already satisfied: importlib-metadata>=3.6.0 in /usr/local/lib/python3.9/dist-packages (from Flask>=1.0.4->Flask-Login==0.6.3) (6.8.0)
Requirement already satisfied: itsdangerous>=2.1.2 in /usr/local/lib/python3.9/dist-packages (from Flask>=1.0.4->Flask-Login==0.6.3) (2.1.2)
Requirement already satisfied: click>=8.1.3 in /usr/local/lib/python3.9/dist-packages (from Flask>=1.0.4->Flask-Login==0.6.3) (8.1.7)
Requirement already satisfied: zipp>=0.5 in /usr/local/lib/python3.9/dist-packages (from importlib-metadata>=3.6.0->Flask>=1.0.4->Flask-Login==0.6.3) (3.16.2)
Installing collected packages: Werkzeug
  Attempting uninstall: Werkzeug
    Found existing installation: werkzeug 2.3.7
    Uninstalling werkzeug-2.3.7:
      Successfully uninstalled werkzeug-2.3.7
Successfully installed Werkzeug-3.0.1

Which results in:

Nov 11 17:03:05 changedetection systemd[1]: Started Change Detection.
Nov 11 17:03:07 changedetection changedetection.io[2087]: Traceback (most recent call last):
Nov 11 17:03:07 changedetection changedetection.io[2087]:   File "/usr/local/bin/changedetection.io", line 5, in
Nov 11 17:03:07 changedetection changedetection.io[2087]:     from changedetectionio.changedetection import main
Nov 11 17:03:07 changedetection changedetection.io[2087]:   File "/usr/local/lib/python3.9/dist-packages/changedetectionio/init.py", line 10, in
Nov 11 17:03:07 changedetection changedetection.io[2087]:     from flask_wtf import CSRFProtect
Nov 11 17:03:07 changedetection changedetection.io[2087]:   File "/usr/local/lib/python3.9/dist-packages/flask_wtf/init.py", line 4, in
Nov 11 17:03:07 changedetection changedetection.io[2087]:     from .recaptcha import Recaptcha
Nov 11 17:03:07 changedetection changedetection.io[2087]:   File "/usr/local/lib/python3.9/dist-packages/flask_wtf/recaptcha/init.py", line 1, in
Nov 11 17:03:07 changedetection changedetection.io[2087]:     from .fields import RecaptchaField
Nov 11 17:03:07 changedetection changedetection.io[2087]:   File "/usr/local/lib/python3.9/dist-packages/flask_wtf/recaptcha/fields.py", line 3, in
Nov 11 17:03:07 changedetection changedetection.io[2087]:     from . import widgets
Nov 11 17:03:07 changedetection changedetection.io[2087]:   File "/usr/local/lib/python3.9/dist-packages/flask_wtf/recaptcha/widgets.py", line 3, in
Nov 11 17:03:07 changedetection changedetection.io[2087]:     from werkzeug.urls import url_encode
Nov 11 17:03:07 changedetection changedetection.io[2087]: ImportError: cannot import name 'url_encode' from 'werkzeug.urls' (/usr/local/lib/python3.9/dist-packages/werkzeug/urls.py)
Nov 11 17:03:07 changedetection systemd[1]: changedetection.service: Main process exited, code=exited, status=1/FAILURE
Nov 11 17:03:07 changedetection systemd[1]: changedetection.service: Failed with result 'exit-code'.

root@changedetection:~# pip install "Werkzeug==2.3.7"
Collecting Werkzeug==2.3.7
Using cached werkzeug-2.3.7-py3-none-any.whl (242 kB)
Requirement already satisfied: MarkupSafe>=2.1.1 in /usr/local/lib/python3.9/dist-packages (from Werkzeug==2.3.7) (2.1.3)
Installing collected packages: Werkzeug
Attempting uninstall: Werkzeug
Found existing installation: werkzeug 3.0.1
Uninstalling werkzeug-3.0.1:
Successfully uninstalled werkzeug-3.0.1
Successfully installed Werkzeug-2.3.7
root@changedetection:~# systemctl restart changedetection
Downgrading:

root@changedetection:~# pip install "Werkzeug==2.3.7"
Collecting Werkzeug==2.3.7
Using cached werkzeug-2.3.7-py3-none-any.whl (242 kB)
Requirement already satisfied: MarkupSafe>=2.1.1 in /usr/local/lib/python3.9/dist-packages (from Werkzeug==2.3.7) (2.1.3)
Installing collected packages: Werkzeug
Attempting uninstall: Werkzeug
Found existing installation: werkzeug 3.0.1
Uninstalling werkzeug-3.0.1:
Successfully uninstalled werkzeug-3.0.1
Successfully installed Werkzeug-2.3.7

All good:

changedetection:~# systemctl restart changedetection
Nov 11 17:05:49 changedetection systemd[1]: Started Change Detection.
Nov 11 17:05:56 changedetection changedetection.io[346]: (346) wsgi starting up on http://<IP_ADDRESS>:5000

@2600box your flask-wtf is ancient and we never pinned a version
pip3 install Werkzeug==3.0.1 Flask-Login==0.6.3 Flask-WTF==1.2.1

does that fix it? (I can see the flask-wtf error in your message, i still dont think its a werkzeug related issue)

https://github.com/dgtlmoon/changedetection.io/issues/1965

@2600box your flask-wtf is ancient and we never pinned a version
pip3 install Werkzeug==3.0.1 Flask-Login==0.6.3 Flask-WTF==1.2.1

does that fix it? (I can see the flask-wtf error in your message, i still dont think its a werkzeug related issue)

Confirming that this worked. Cheers


Move "sparse" argument to run_modal()

Following @raphaeltimbo idea of moving n_eigen from Rotor.__init__() to  Rotor.run_modal() (Issue #573), I'd like to propose the same to sparse argument. It's used only when running the modal analysis, solving the eigenvalues / eigenvectors. And as this argument is called only to define what numpy/scipy method to call when running the modal analysis, I think it makes sense to move sparse to run_modal().
What do you think?

Totally agree with that.

PR #588 closes this issue.


Update draft PLC specification to mention that program bodies should …

…be closed terms
This does what it says: see SCP-3788.

Pre-submit checklist:

Branch

[ ] Tests are provided (if possible)
[ ] Commit sequence broadly makes sense
[ ] Key commits have useful messages
[ ] Relevant tickets are mentioned in commit messages
[ ] Formatting, materialized Nix files, PNG optimization, etc. are updated

PR

[ ] (For external contributions) Corresponding issue exists and is linked in the description
[ ] Self-reviewed the diff
[ ] Useful pull request description
[ ] Reviewer requested

This has been reviewed elsewhere and just updates a PDF, so I'll merge it when the tests have finished.