Unable to run the sample application for google cloud platform

I am just starting off on google-cloud-platform. I have created an account and a project on cloud console. I was trying to run some of the sample apps provided. I started with the sample app for cloud storage provided at:
https://github.com/GoogleCloudPlatform/java-docs-samples/tree/master/storage/cloud-client
I have installed apache maven 3.5.0 on my PC. I followed the steps provided in the link, that is I gave the following commands:
mvn clean package -DskipTests
and then
mvn exec:java -Dexec.mainClass=com.example.storage.QuickstartSample -Dexec.args="my-bucket-name"
The first command succeeded. However, the second command failed. I got the following error:
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 01:06 min
[INFO] Finished at: 2017-06-15T18:27:55+05:30
[INFO] Final Memory: 15M/172M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.6.0:java (default-cli) on project storage-google-cloud-samples: An exception occured while executing the Java class. connect timed out -> [Help 1]

Now, the computer where I was running this command on, is behind a proxy. However, my proxy settings have been set in the file conf/settings.xml, also when I ran the first command, it successfully downloaded some packages, so I'm not sure if it is due to some proxy issue, however to check, I tried it on another machine, which is not behind a proxy.
I gave the same two commands. The first one succeeded and the second failed again, with the following (different) error:
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 01:02 min
[INFO] Finished at: 2017-06-15T18:22:31+05:30
[INFO] Final Memory: 13M/32M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.6.0:java (d
efault-cli) on project storage-google-cloud-samples: An exception occured while
executing the Java class. 401 Unauthorized -> [Help 1]

So my queries are:

What could be the cause for the error in the first case? Is it something to do with proxy settings? If yes, then where/how should I specify the settings?
What could be the cause for the error in the second case where I am not behind any proxy?
Am i missing some step here?
Also , if you look at the source for this sample app, there is just a single file which basically creates a bucket. The bucket is passed as an argument from command line. Now, as per my understanding, first there needs to a project in the cloud console to create any resources. So where will this bucket be created? As in shouldn't we be specifying the project-ID where this bucket is to be created?

Have you done the following:

Install the Cloud SDK followed by:

gcloud init
gcloud auth application-default login

It should pick up the projectID from gcloud.

Thanks a lot, the issue is resolved.
I had installed the Cloud SDK and run the command
gcloud init
However, the command
gcloud auth application-default login
was missing.  After giving the command I was able to run the app from the PC which was not behind the proxy.
As regards to the other PC, which is behind the proxy, the issue got resolved after I added the proxy settings in the command, that is:
mvn -DproxySet=true -DproxyHost=proxy.XXXX.com -DproxyPort=XXXX exec:java -Dexec.mainClass=com.example.storage.QuickstartSample -Dexec.args="my-bucket-name"

I have an additional query regarding this. I am able to build and run from the command line after following the steps mentioned above.
However when I try to import and build the project in eclipse (I import it as a maven project), I get the following error in the pom.xml :
Plugin execution not covered by lifecycle configuration: org.apache.maven.plugins:maven-compiler-plugin:3.3:compile (execution: default-compile, phase: compile)    pom.xml /datastore-google-cloud-samples line 23 Maven Project Build Lifecycle Mapping Problem
The details of eclipse I am using are:
Version: Neon.3 Release (4.6.3)
Build id: 20170314-1500
I looked at the following answer: How to solve "Plugin execution not covered by lifecycle configuration" for Spring Data Maven Builds and added the pluginManagement tag in my pom.xml, however I still got the same error.
Is there any step which I am missing here?
Is there any particular setting which needs to be done in eclipse to use it with maven and/or google cloud?
Is there any modification needed in pom.xml for building with eclipse?
Has anyone else observed this issue?

Are you using Spring?
Have you changed the pom?
Are you importing to use w/o maven?  (if so, I'm not likely to know the answer), Google Eclipse Plugin
My quick guess is that you removed the parent pom, and some of our samples can't yet run standalone.  You might need to add something from one of the parents.

Can you paste your pluginManagement section here ?


Add link to swift tutorial from fcc youtube

Link to Code With Chris' swift tutorial which is also featured on freecodecamp's youtube channel.

[ x] I have read freeCodeCamp's contribution guidelines.
[ x] My pull request has a descriptive title (not a vague title like Update index.md)
[x ] My pull request targets the master branch of freeCodeCamp.
[ x] None of my changes are plagiarized from another source without proper attribution.
[x ] All the files I changed are in the same world language (for example: only English changes, or only Chinese changes, etc.)
[ x] My changes do not use shortened URLs or affiliate links.

Closes #XXXXX

Thank you for opening this pull request.
This is a standard message notifying you that we’ve reviewed your pull request and have decided not to merge it. We would welcome future pull requests from you.
Reason: We do not accept PRs which only add links when there are already valid reference links for the article.  Instead of just adding a link, it would be great if you can add original content. Paraphrased content from another source should be referenced.
Thank you and happy coding.


[Event Request] Master Data Management

Describe the request
Codeunit 7231 "Integration Master Data Synch.???
?? Before Line: 79 Integration Event:
IntegrationRecordRefBeforeChangeCompany(var IntegrationRecordRef: RecordRef; var IsHandled: Boolean)
?? Before Line: 166 Integration Event:
IntegrationRecordRefBeforeChangeCompany(var IntegrationRecordRef: RecordRef; var IsHandled: Boolean)
?? Before Line: 206 Integration Event:
IntegrationRecordRefBeforeChangeCompany(var IntegrationRecordRef: RecordRef; var IsHandled: Boolean)
?? Before Line: 262 Integration Event:
IntegrationRecordRefBeforeChangeCompany(var IntegrationRecordRef: RecordRef; var IsHandled: Boolean)
Codeunit 7233 "Master Data Management"
?? Before Line 308 Integration Event
IntegrationRecordRefBeforeChangeCompany(var IntegrationRecordRef: RecordRef; var IsHandled: Boolean)
?? Before Line 330 Integration Event
IntegrationRecordRefBeforeChangeCompany(var IntegrationRecordRef: RecordRef; var IsHandled: Boolean)
?? Before Line: 337 Integration Event
IntegrationRecordRefBeforeChangeCompany(var IntegrationRecordRef: RecordRef; var IsHandled: Boolean)
?? Before Line: 345 Integration Event
IntegrationRecordRefBeforeChangeCompany(var IntegrationRecordRef: RecordRef; var IsHandled: Boolean)
?? Before Line: 663 Integration Event
IntegrationRecordRefBeforeChangeCompany(var IntegrationRecordRef: RecordRef; var IsHandled: Boolean)
?? Before Line: 851 Integration Event
IntegrationRecordRefBeforeChangeCompany(var IntegrationRecordRef: RecordRef; var IsHandled: Boolean)
?? Before Line: 869 Integration Event
IntegrationRecordRefBeforeChangeCompany(var IntegrationRecordRef: RecordRef; var IsHandled: Boolean)
?? Before Line: 1961 Integration Event
IntegrationRecordRefBeforeChangeCompany(var IntegrationRecordRef: RecordRef; var IsHandled: Boolean)
?? Before Line: 2013 Integration Event
IntegrationRecordRefBeforeChangeCompany(var IntegrationRecordRef: RecordRef; var IsHandled: Boolean)
?? Before Line 2045 Integration Event:
IntegrationRecordRefBeforeChangeCompany(var IntegrationRecordRef: RecordRef; var IsHandled: Boolean)
?? In Procedure GetIntegrationRecRefCount Line 2050: Integration event added at begin
OnSetMasterCompany(var MasterCompany: Text; TableID: Integer)
Note: Instead of ChangeCompany(MasterDataManagementSetup."Company Name") Use new variable MasterCompany: Text
?? Before Line 2152 Integration Event:
IntegrationRecordRefBeforeChangeCompany(var IntegrationRecordRef: RecordRef; var IsHandled: Boolean)
?? Before Line 2178 Integration Event:
IntegrationRecordRefBeforeChangeCompany(var IntegrationRecordRef: RecordRef; var IsHandled: Boolean)
Codeunit 7235 "Master Data Mgt. Table Couple"
?? Before Line: 118 Integration Event:
IntegrationRecordRefBeforeChangeCompany(var IntegrationRecordRef: RecordRef; var IsHandled: Boolean)
Codeunit 7236 "Master Data Mgt. Tbl. Uncouple"
?? Before Line: 84 Integration Event:
IntegrationRecordRefBeforeChangeCompany(var IntegrationRecordRef: RecordRef; var IsHandled: Boolean)
Codeunit 7237 "Master Data Mgt. Subscribers"
?? Before Line: 102 Integration Event:
IntegrationRecordRefBeforeChangeCompany(var IntegrationRecordRef: RecordRef; var IsHandled: Boolean)
?? Before Line: 170 Integration Event:
IntegrationRecordRefBeforeChangeCompany(var IntegrationRecordRef: RecordRef; var IsHandled: Boolean)
?? Before Line: 352 Integration Event:
IntegrationRecordRefBeforeChangeCompany(var IntegrationRecordRef: RecordRef; var IsHandled: Boolean)
?? Before Line: 498 Integration Event:
IntegrationRecordRefBeforeChangeCompany(var IntegrationRecordRef: RecordRef; var IsHandled: Boolean)
?? Before Line: 528 Integration Event:
OnSetMasterCompany(var MasterCompany: Text; TableID: Integer) Note: ContactTableID is used
Note: Instead of ChangeCompany(MasterDataManagementSetup."Company Name") Use new variable MasterCompany: Text
?? Before Line: 557 Integration Event:
OnSetMasterCompany(var MasterCompany: Text; TableID: Integer) Note: ContactTableID is used
Note: Instead of ChangeCompany(MasterDataManagementSetup."Company Name") Use new variable MasterCompany: Text
?? Before Line: 586 Integration Event:
OnSetMasterCompany(var MasterCompany: Text; TableID: Integer) Note: ContactTableID is used
Note: Instead of ChangeCompany(MasterDataManagementSetup."Company Name") Use new variable MasterCompany: Text
?? Procedure FixPrimaryContactNo Line 671 Integration Event added at begin
OnSetMasterCompany(var MasterCompany: Text; TableID: Integer)
Note: Instead of ChangeCompany(MasterDataManagementSetup."Company Name") Use new variable MasterCompany: Text
?? Procedure UpdateChildContactsParentCompany Line 772 Integration Event added at begin
OnSetMasterCompany(var MasterCompany: Text; TableID: Integer)
Note: Instead of ChangeCompany(MasterDataManagementSetup."Company Name") Use new variable MasterCompany: Text
Additional context
Master Data Management is just for one single company. We have a solution like Master Data Management but then you can choose per table which central company managed the data.
We need to convert our solution to Master Data Management and this is currently not possible.
So this is way we request the events.
Another way is to enrich the Master Data Management with this feature.
@dcenic as discussed.
Internal work item: AB#527523

@Bertverbeek4PS In order not to narrow down the terminology to ChangeCompany function, I will name the events IntegrationRecordRefBeforeChangeCompany as 'OnGetSourceRecordRef', because the purpose is to populate the RecordRef with the record from the source company (if it's in the same environment then it is ChangeCompany, if it is cross-environment then it is something else). One day, when we get approval to go for cross-environment, we could use these events to do a cross-environment call instead of just ChangeCompany calls). Or we could use an interface... But that is in the future.

@Bertverbeek4PS By examining the code, I found out that we already have various events MasterDataManagement.OnGetIntegrationRecordRefByIntegrationSystemId and
MasterDataManagement.OnGetIntegrationRecordRef
that both take IntegrationTableMapping. But we just don't raise them in enough places. That said, they might get handy for cross-environment work.
But I think for your scenario: allowing a source company per table id, I think we should do it uniformly like this:
before calling ChangeCompany, raise event OnSetSourceCompany(SourceCompanyName, TableID).
if it is handled, change company with that SourceCompanyName. You requested that in a subset of cases we do it like this, and other subset we do it differently. I think we should do it like this in all the places that you pointed out. You just subscribe to OnSetSourceCompany and set the company name based on Table ID.

Thanks @dcenic! Indeed that would be very usefull!
But then in the other way we do it now with a custom field and events.
Would it not be better to have such a scenario in the base?
And indeed for cross company you also need the events.

@Bertverbeek4PS It didn't look right to enable this by allowing the custom setting of source company name in half of the occurrences, and to raise a OnGetIntegrationRecordRef in half of the other occurrences. Across the app, there are various ways that source record ref is gotten (by RecordId, by Guid, by text, by filtering and then findfirst etc), so we need to think more about how to raise these events that will be useful for cross-env. For now, you just need to subscribe and return the source company depending on the Table No. - and it will support having source company per table (within the same environment of course).

Thanks @dcenic !


Texture get_size gets wrong size for Region textures

Godot version:
3.2.3
OS/device including version:
Win 7
Issue description:
(Similar to: https://github.com/godotengine/godot/issues/33366 )
The size returned by get_size() for a texture is the full texture size, even if a region rectangle is declared.
Given Texture has no documented methods/properties for getting the rectangle size this means it's impossible to get the correct texture size when using a spritesheet with a region.
https://godot-es-docs.readthedocs.io/en/latest/classes/class_texture.html#class-texture-get-size
Steps to reproduce:
get_node("Sprite").get_texture.get_size() on a Texture using a region.
I expect this should be an easy fix:
If region enabled:
return Vector2(rect.w, rect.h)

bad size.zip

@CitrusWire Please upload a minimal reproduction project to make this easier to troubleshoot.

@CitrusWire Please upload a minimal reproduction project to make this easier to troubleshoot.

Done

Done

This is not a bug. region_rect is a property of Sprite. It doesn't modify texture, it just displays part of it. Texture doesn't know if it's used by regioned Sprite.
Your options are either using get_rect().size or using an AtlasTexture, which has its own region property.


iosevka-bin: 8.0.2 -> 9.0.1

Automatic update generated by nixpkgs-update tools. This update was made based on information from passthru.updateScript.
meta.description for iosevka-bin is: "Slender monospace sans-serif and slab-serif typeface inspired by Pragmata\nPro, M+ and PF DIN Mono, designed to be the ideal font for programming.\n"
meta.homepage for iosevka-bin is: "https://be5invis.github.io/Iosevka"
meta.changelog for iosevka-bin is: ""
Updates performed

Ran passthru.UpdateScript

To inspect upstream changes

Release on GitHub

Compare changes on GitHub

Impact

Checks done (click to expand)

built on NixOS

The tests defined in passthru.tests, if any, passed

0 of 0 passed binary check by having a zero exit code.

0 of 0 passed binary check by having the new version present in output.

found 9.0.1 with grep in /nix/store/1frz24dyxjvd1qzgdbbx9k672hcy06nw-iosevka-bin-9.0.1

found 9.0.1 in filename of file in /nix/store/1frz24dyxjvd1qzgdbbx9k672hcy06nw-iosevka-bin-9.0.1

directory tree listing: https://gist.github.com/c53e2ead912120c47c98592212051398

du listing: https://gist.github.com/5a1906f5f65e3311f694800cbe6c38e9

Rebuild report (if merged into master) (click to expand)

4 total rebuild path(s)

1 package rebuild(s)

1 x86_64-linux rebuild(s)
1 i686-linux rebuild(s)
1 x86_64-darwin rebuild(s)
1 aarch64-linux rebuild(s)

First fifty rebuilds by attrpath
iosevka-bin

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/1frz24dyxjvd1qzgdbbx9k672hcy06nw-iosevka-bin-9.0.1 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A iosevka-bin https://github.com/r-ryantm/nixpkgs/archive/cbe6469cd7af668cd49c9c6e2b8c258b286408fe.tar.gz

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/1frz24dyxjvd1qzgdbbx9k672hcy06nw-iosevka-bin-9.0.1
ls -la /nix/store/1frz24dyxjvd1qzgdbbx9k672hcy06nw-iosevka-bin-9.0.1/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
Result of nixpkgs-review run on x86_64-linux 1

1 package built:

iosevka-bin

Maintainer pings
cc @cstrahan for testing.

Result of nixpkgs-review pr 132385 run on x86_64-linux 1

1 package built:

iosevka-bin


Rethink the interest areas as they are CC specific

There is no way to just change them to Agora specific ones as it will break cc.
Should have a table, does not need to "tenant" aware as currently there is no plan to have multiple SAAS systems running on the same server / db.  Each DB will be able to set their own.

Update: for now I am going to leave this, Agora will have the CC interest list for the time being.  I don't want to loose focus on the theme / conversion.

These have nothing to do with agora at this point, should be removed for launch

Solution will be to replace with tags. That way the user can specify any interests.
First step related to this ticket will be to remove the original interest areas.
Related to #306

Interest areas are removed


making single config file

PR Description

It will be resolving https://github.com/omkarkhatavkar/jirasync/issues/5 at 80%
Added more correction in URLs
The resolved encoding issue whenever '#' comes in the title it was failing
Added some sleep for sync, It was failing after 4-5 user iteration

@rochacbruno I have tested this with GitHub working as expected. Please check for Redmine flow


GSF IEF Meeting Agenda 2024-03-28

Time 10:30am (GMT) / 4:00pm (IST) - See the time in your timezone

Lead – @srini1978 (Microsoft)
Co-Lead @navveenb (Accenture)
Co-Lead – @jawache (GSF)
PM - @jmcook1186 (GSF)

Antitrust Policy
Joint Development Foundation meetings may involve participation by industry competitors, and it is the intention of the Joint Development Foundation to conduct all of its activities in accordance with applicable antitrust and competition laws. It is therefore extremely important that attendees adhere to meeting agendas, and be aware of, and not participate in, any activities that are prohibited under applicable US state, federal or foreign antitrust and competition laws.
If you have questions about these matters, please contact your company counsel or counsel to the Joint Development Foundation, DLA Piper.
Roll Call
Please add 'Attended' to this issue during the meeting to denote attendance.
Any untracked attendees will be added by the GSF team below:
Agenda

[ ] Press Record!
[ ] Sprint update
[ ] Intro to our epic strategy
[ ] Discussion topic: QA
[ ] Discusion topic: plugin registry
[ ] Discussion topic: post-hackathon questionairre

Attended

Attended

Attended

Attended


Fix spelling error in 4.0.x DEBEZIUM doc

Could you please propose the same PR but for the main branch?

Alright, I'll submit it now


Too many tokens

Hi @jalammar,
With my dataset I'm getting

CohereError: too many tokens: total number of tokens (prompt and prediction) cannot exceed 2048 - received 6354. Try using a shorter prompt or a smaller max_tokens value.

Is this b/c Cohere can't handle more than 2048 or is it a limitation on the freebie key I'm using? My toy data is 6354 records.
Thanks!

It's a limitation on the model (to 2048 tokens), and not the trial key. Length is indeed a limitation of this approach.
Note that the 6354 number in the message does not refer to your records. It refers to the number of tokens in the naming prompt.
Here's an example of how that looks. Say we're naming these two clusters:

Topically starts by naming cluster 0. To do that:
1- it takes a few example texts from the cluster
2- Adds these examples to the cluster naming prompt
3- Sends that to the generative model

Then does the same with the rest of the clsuters.
Two ways to get around the length limitation:

instead of passing the full texts, do you have shorter versions of the text instead? For example, if you are topic modeling articles, can you do the naming on the titles instead of the articles themselves? Or if you are doing academic papers, can you do the abstracts, or titles instead?
If not, then consider using an excerpt of the text for the naming. Create for example a new column in the dataframe containing an excerpt of the long document (maybe the first sentence or paragraph, if that would tend to capture the gist of the document).
A more advanced approach that would likely lead to better results is to pass a summary of the document.

Thanks for the detailed explanation. I understand the 2048 token limitation, but for some reason I am still getting the error when I throttle the sample length down. Let me see if I'm understanding the flow correctly for example:
app.name_topics((first200Words, IssueTopicsBT.topics_))
So where IssueTopicsBT.topics_ is the cluster assignment for each of the text strings in first200Words the app will:

cycle through each topic cluster, select (how many??) doc string samples,
concatenate them
feed them to cohere?

In other words will I hit the 2048 limit when the length the sampled records x number of samples > 2048? If so then how many samples are concatenated? Hope this is clear.

Clear! The samples are concatenated to the first (generic) prompt in this file: https://github.com/cohere-ai/sandbox-topically/blob/main/topically/prompts/prompts.py
It shows a few examples for the types of names of clusters.
I believe with the new Command model we should be able to use shorter prompts and fit in more examples.

cycle through each topic cluster, select (how many??) doc string samples,
10 Is the default value. You can change that by passing num_sample_texts=5 to name_topics.


Smart default app directory

Defect fix for PR #169.
This fix is to add missing application configuration for dependencies. Also, this will suppress injecting duplicated configuration again if it is configured already.

@cthigh, can you review Joseph's final changes

@patricktiu yes, will do that now.


Help please!

So I am stuck just trying to figure out how to just get the rest example given to work.
First trying to use it I got the error "Cannot use import statement outside of a module"
So I said okay and added the "type=module" to my code.
Then I get "Failed to resolve module specifier "CoinbasePro". Relative references must start with either "/", "./", or "../""
So I tried adding one of the characters it says.
Regardless of which one I use I get the error "net::ERR_ABORTED 404 (Not Found)"
The file I am running this from is in the root directory of the site. Does it have to be within the node_modules folder?
If anyone can assist me id appreciate it please!

Hi @HipsterJesus115, are you trying to run "coinbase-pro-node" from a cloned local repository or have you added it as a dependency to your own project?
I have linked read world examples from the README. By having a look at those example you will see how to make use of "coinbase-pro-node": https://github.com/bennycode/coinbase-pro-node/tree/v3.0.4#real-world-examples


Improve memory footprint of queue workers

Since it seems there's a good amount of interest in running Zulip in smaller environments, it's worth doing a bit of optimization on the Zulip memory footprint.  I think this will also be pretty valuable for running the Zulip development environment on a laptop.
I think probably the simplest version of this implementation would be a way to run all the queue workers in a single process that just watches all the queues; that should be great for development and smaller servers, and easy to make work (no need to even make it multithreaded).
Part 2 would be to make that multithreaded.

The places in the code to start looking at this are zerver/worker/queue_processors.py and zerver/management/commands/process_queue.py.
To start with getting this working in the development environment, you can patch tools/run-dev.py to run things with your new tooling.

Would be very cool to make this multithreaded, the 4GB memory requirement for a production server is very high.

#367 will make the Zulip workers multithreaded in the development environment; there will be a bit more work to do this in production since we'll probably want to offer both configuration options...

@timabbott cool! I'm not sure why anyone would want non-multithreaded workers, or is it temporarily until multithreading is stable?

Well there are two considerations:

debuggability -- it will likely be easier to debug some things in the multi-process configuration than the multithreaded configuration.
stability -- currently if a worker crashes, the rest of them keep running happily; with multithreading, it's possible for a worker crashing to bring them all down.

Both of these seem like things that shouldn't be a problem in the long term, but likely are important enough that I'd imagine we want to support both options for a transitional period...

Totally agree about the transitional period.


Dereference optional values.

Fixes #22.

I wonder is it a way to go or not?

I'm not sure to be honest. I'll investigate this later next week.

@solnic Anyway, don't you think that Some("SomeString") should typecheck with Types::Maybe::Strict::String?

Now I'm not sure too. Constructor should not be called on objects constructed by itself (if it's not a recursive data type, of course).

I'll be refining behavior of Type objects a bit for the next release, so maybe this issue will go away as a side-effect of this refactoring. At least that's what I'm hoping for hah!


fix: reduce console errors on stylesheet CORS

Current dependencies on/for this PR:

master

PR #5

PR #2

PR #3

PR #4

PR #6   👈

This comment was auto-generated by Graphite.

⏳ This pull request is set to merge as part of a Graphite merge job
Stack job ID: ig6nty8pUfH6VXaZuEcF.
See details on graphite.dev


Test Printing

At present, there are no media queries to optimize for printing.
Learn about this.
Print each template, find anything ugly.
Plan / Assemble issue list.

Neat:  adds url to links in print
@media print {
a[href]:after {
content: " (" attr(href) ") ";
}
}


Feat: Adding a previous year/mock papers page

Describe the feature
To enhance student learning, we can create a dedicated page on the website that provides access to previous year's papers and mock exams, alongside the existing study notes. This would allow students to test their understanding and apply the knowledge gained from the notes.
Add ScreenShots

we can add the redirecting link to the page here
Record

[X] I agree to follow this project's Code of Conduct
[X] I'm a GSSoC'24 contributor
[X] I want to work on this issue

Hello @hereisSwapnil  I would like to work on the issue under GSSoC'24. I have successfully completed the repo setup on my local machine.

please assign me the issue @hereisSwapnil


Serialize measurement keys through IonQ metadata

IonQ API v0.1 does not have measurement gates.  To handle measurement gates we store their keys in a metadata field which the API preserves on a job. We expect this to be fixed in future API version, so this is written in a way that will make that upgrade faster (i.e. serialized a placeholder measurement).

Part of #3479


Fix/redirect links

Adjusted scroll for nav buttons.

updated PR on https://github.com/peviitor-ro/oportunitatisicariere/pull/497


❓ [Question] How to convert nvinfer1::ITensor into at::tensor?

❓ Question
Hi,
How to convert nvinfer1::ITensor into at::tensor?   Like   #146
What you have already tried
I want to do some operations use libtorch on the nvinfer1::ITensor. So, can I convert nvinfer1::ITensor into at::tensor? Or I must write a custom converter with the libtorch function?
@xsacha @aaronp24 @itsliupeng @lukeyeager @elezar

You cant really convert ITensors into at::Tensors, ITensors are just edges between layers in the tensorrt and have no concrete value. You can set that ITensor as an output and feed it to some Torch code outside of the TRTorch program


Restructure Sinatra helper + Add POST

I merged your code and made some modification, therefore this PR can be closed


balena Fin

Any way to get this working on the Fin?
I am unable to get a mouse or touch screen via USB to work

Can you give some more information on the hardware you're using? For the mouse specifically you need to set the WPE_BCMRPI_CURSOR=1 env var.
Also, have you tested the same hardware peripherals and software on a rpi3 to verify that those work?


paramiko.Transport parameter is wrong. you must first delete timeout=1 parameter then run script.

Thank you for letting me know, in another issue @elom10 has made a a solution to it https://github.com/adhikara13/CVE-2023-25136/issues/1#issue-1676466413, i will most likely ask him to make a PR if he will agree


Fix feature indices

This PR removes the feature_indices from the .fit() function of a DecisionTree, and instead implements max_features where a subset, of size max_features, from the features are chosen at random for each split.
I profiled this and saw that the __get_feature_indices() method I implemented to help implement max_features ran for 2 milliseconds in a run of about 7500 milliseconds. Thus the time spent doing this is miniscule.
I don't think that it is a problem for us with this added running time.

@svbrodersen: Once/if you agree with the changes (in particular the comment you had) you can merge this.


[Feature Request] Add context menu for Python Interactive window

Adding a context menu that hosts different operations allowed in the interactive window would be a great feature. for example restarting, interrupting a kernel, adding a new cell, removing a cell, expanding/collapsing and more importantly copying a cell content or portions of it, can be provided in a context menu.
Currently, the only way we can copy an error or output from the python interactive window is by first making a selection and then pressing Ctrl+C. this is not desirable and an uncalled-for hassle. nearly always after making a selection, I uncontrollably go for a right click to select copy! and bang there is no context menu and I have to reselect what I selected before again!
It would be much appreciated if you could add a context menu where we can select a word, line, or the whole output of a cell, and then copy it.
being able to restart/interrupt a kernel, etc from a context menu is also desirable and greatly appreciated.

@Coderx7. This is something that we would like as well, but currently the VSCode webview that we use for our UI doesn't support this:
https://github.com/Microsoft/vscode/issues/12215
https://github.com/Microsoft/vscode/issues/54285
So I sadly don't think there is anything that we can do for this at this point.

@IanMatthewHuff Thank you very much for the prompt reply, its very appreciated.
Should we head to the VsCode and ask for such feature in Webview? since this is a clear disadvantage imho! which imposes strict limitations on the functionality one intends on providing.

Just to note. VSCode disables the basic browser support for right click context menus. But we still have a webview so we can consider implementing our own context menus. Just a matter of handling the right clicks and creating our own popup elements ect...
So while this request is a bit more work than it might seem we do have an avenue for possibly getting this done.


Question about Marketplace Licence issue when used in Patched vscode version.

There is a Project that Patches vscode to run via the browser its code base is over 90% vscode as it is and the main core is simpl vscode there are only some ui changes.
is it allowed to still use the original marketplace? I Think as vscode is OSS this should be no problem can some one confirm that or point me to the right contact to confirm that facts.
https://github.com/cdr/code-server/issues/990

The information provided in issue 990 is correct, code-server is not licensed to access the Visual Studio Marketplace.  Only products which are members of the Visual Studio family of products are licensed to do so per the Marketplace terms of use.  From the wiki:

The Visual Studio Marketplace is a service that we provide to users of the Visual Studio family of products (Visual Studio for Windows and Mac, Visual Studio Code, and Azure DevOps, formerly Visual Studio Team Services). The Marketplace not only provides discovery and hosting services, it provides ratings, comments, Q&A, publisher verification, virus scanning, conflict resolution services, payment services for Azure DevOps extensions, as well as support for publishers. The Marketplace is not a general purpose store designed to support any distribution or a subset of distributions. Access to the Marketplace is governed by the Marketplace Terms of Use.


enabling batch mode launch from client

Add an option to launch workbench in batch mode.
Implements https://github.com/ansys/pyworkbench/issues/117

The other PR implemented this.


DS-4380:  Update XOAI (OAI-PMH) for full JDK11 compatibility

Minor PR to update to XOAI v3.3.0, which is more compatible with JDK11.  In XOAI v3.3.0, I've updated dependencies to avoid any "An illegal reflective access operation has occurred" warnings when running JDK 9 or above.  See https://github.com/DSpace/xoai/releases/tag/xoai-3.3.0
This PR also makes a minor refactor to the classes which obtain the Solr configuration for dspace-oai to ensure they provide better logging & use the more correct version of the configuration oai.solr.url.
I've tested both of these minor changes locally and they work well on latest master and with JDK11.

At +1 and Travis approved.  Merging, as this is a tiny PR & I've tested it thoroughly locally.


Support for merge-commits

The so-called fast-appends are added in https://github.com/apache/iceberg-rust/pull/349
It would be good to also consider adding merge-commits.
With the fast-append, a new manifest is written out and added to the manifest-list as mentioned in the spec. As the name suggests, this is the fastest way of appending new data, minimizing the chance of conflicts. Also, it works pretty well in the case of a commit, since only the manifest has to be rewritten in case of a conflict. The biggest drawback is that you create many manifests adding overhead in the long run (more calls to the object store than needed).
The merge-commit takes an existing manifest, adds the new entries to it, and replaces the old manifest in the manifest-list.
Having too few manifests is not good because it will lead to limited parallelization, but too many will add much overhead in terms of networking and parsing. The thresholds can be configured through configuration, and have some reasonable defaults:

The goal of this issue is to add MergeAppendAction next to FastAppendAction. This is not a trivial task since there are some caveats:

Each manifest is bound to a certain partition strategy, meaning that the partition-spec-id is stored in the Avro header, and they should be all the same.
When rewriting the existing manifests, the ADDED status must be changed to EXISTING, and the sequence numbers must be tracked correctly.

I'm working on the merge append. And I find that the manifest writer needs to be refined first in #738 so that the code can be more clean.


Upgrade jfrog-cli-core & jfrog-client-go

It is recommended to upgrade the jfrog-cli-core and jfrog-client-go depedencies used by this plugin to their latest versions, to receive code upgrades and fixes, and then publish a new release to their plugins registry.

Done. recently upgraded jfrog-cli-core and jfrog-client-go


My side of the story

I added sine lines, mainly about ethics, and this time I am pulling against the main branch.

Hi! Thanks for your submission.
Unfortunately it seems that there were changes in the main that conflict with yours.
Could you please perform a merge as described in Tutorial 2 slides 102-114 and integrate those changes?
Read the theory in slides 102-104 and then start the practice
by synchronizing your local and remote main with my upstream main as described in slide 105.
We do not want to lose any existing content, so you should keep what others have written and add yours.
You're free to reorganize the content blocks so that it still makes a story, but please do minimal changes
to the content of what others have written to integrate them with yours.
The merges will be approved according to arrival time starting from October 30th, 17:00,
so expect that you need to merge several times after that time.
If I do not approve the changes you will be asked to update the content.

Thanks for your contribution! Task 2 completed! See canvas for results


Life Expectancy Prediction

Aim

Life Expectancy Prediction using Machine Learning

Details

A typical Regression Machine Learning project leverages historical data to predict insights into the future. This problem statement is aimed at predicting Life Expectancy rate of a country given various features. Life expectancy is a statistical measure of the average time a human being is expected to live, Life expectancy depends on various factors: Regional variations, Economic Circumstances, Sex Differences, Mental Illnesses, Physical Illnesses, Education, Year of their birth and other demographic factors. This problem statement provides a way to predict average life expectancy of people living in a country when various factors such as year, GDP, education, alcohol intake of people in the country, expenditure on healthcare system and some specific disease related deaths that happened in the country are given.

Kindly assign me this issue as a part of gssoc'21 @avinashkranjan

@guptadiksha307 Assigned to you, refer to this PR files on how to structure your files and creating the prediction script https://github.com/avinashkranjan/Amazing-Python-Scripts/pull/556


Allows websites to be regionally-restricted to Colombia (bug 1200810):

Creates a new restricted tag (website-region-co) that allows editorial to indicate that a website should only be shown in Colombia.
Updates the base MultiSearch endpoint view to add filters preventing websites with that tag from being shown in regions outside of Colombia.
Updates the base MultiSearch endpoint view to add filters allowing websites with that tag to be shown inside of Colombia.
Disables those filters by default.
Enables those filters on the Fireplace MultiSearch endpoint.

Yes, this is a horrific hack to get this feature request out of the way and allow us to focus on 2.5. Product is aware of this and will not ask for this to be extended to other regions or used past a trial period. If the trial is successful, this commit will be reverted and we will add full region restriction functionality to websites. If not, this commit will be reverted.
r? @ngokevin @robhudson

@robhudson would especially appreciate a close look at the ES approach. I'm not sure it is ideal, but I'm also not sure what the ideal way would be.

This looks fine to me. r+

Thanks Rob!


How to extract detailed features for a clothes?

Hi,
I was able to run the following code to obtain top 10 features of a clothes:
python demo/test_predictor.py --config configs/attribute_predict/global_predictor_resnet_attr.py --checkpoint checkpoint/resnet/model_best_resnet_global.pth --input demo/attr_pred_demo2.jpg
Is there a way to extract more detailed features of an image in (e.g., a list of about 100 or 200 values)? I want to use these features to further check similarity of two clothes.
Thanks,
Kaida

Of course you can. The default value of AttrPredictor is tops_type=[3, 5, 10].
You can re-define it in demo/test_predictor.py:
attr_predictor = AttrPredictor(cfg.data.test, tops_type=[100, 200])

No more question about extracting features, I will close it.


hyperlink redirect

Under About this Workshop at the end it says, "You can view all of the source files for this workshop on this GitHub site, along with other workshops as well. Open this link in a new tab to find out more"
But the hyperlink points to the same page.  i.e. https://github.com/Microsoft/sqlworkshops/tree/master/sqlserver2019bigdataclusters

Right - if the page has been opened in "Pages" or maybe in a converted PDF, etc they aren't in the github base, they are in a rendered site. That link will bring them to the right location. :)


Add headless firefox and some other updates

Coverage remained the same at 3.419% when pulling 9135f873b9c802cd41f9dd052afce67b23761577 on binoculars:feature/updates into 7d03af613ab75c7392a35c4ef831c0a192d2caaf on CenterForOpenScience:develop.

Coverage remained the same at 3.419% when pulling 7df00c7a0709bee243cf57e1458da35655bbd63b on binoculars:feature/updates into 7d03af613ab75c7392a35c4ef831c0a192d2caaf on CenterForOpenScience:develop.


Incorrect type for metadata fields in Get/Provision/Deprovision responses

I noticed in this PR  a new metadata field  (with labels/attributes) was added as per latest OSB specification.
Is there any reason for creating labels and attributes as a map[string]string instead of interface{} as per OSB specification where metadata labels and attributes fields are object type like parameters field (or at the least making it map[string]interface{} so integers and structs can be used as values) ?
Current implementation limits proper usage of labels and attributes of metadata in ServiceBroker implementation. I can add PR changing labels and attributes to interface{} (or map[string]interface{}) if you agree.

Hi @r6q
The spec defines both these fields as key-value fields, also in reality the platforms that defined the concepts and potentially make use of the labels and annotations define some more restrictions.
Regarding labels the concept was taken from K8s labels and CF labels and both of them define labels as key-values of strings (that can also be queriable). Given this, I would be inclined to keep it as a map[string]string.
The annotations concept was also taken from K8s annotations and CF annotations. They both define it as a key-value. However, CF expects the values to be a string and in K8s it can be an interface.
To keep in line with these current community definitions of labels and annotations I think it is ok to create a PR where annotations are defined as map[string]interface{}.
Thanks,
Felisia

Ok, thanks for your insight, let's leave it as <string, string>


Is this guaranteed to appear always on top?

Disappointed chrome requires the experimental flag turned on. I like the idea of  because it would ensure that it will never get hidden below elements. I am creating a chrome extension and this is important for me that the dialog always appear on top of all other elements on a given page.

The guarantee is only for showModal, as it appears in the "top layer", outside normal z-index. show just adds it as regular DOM.
Again, this doesn't apply to the polyfill, which just uses a "very large" value for z-index.


RuntimeError: downsample feature map of size torch.Size([1, 64, 135, 240])

Hi @ducha-aiki @jatentaki  Thanks for your great works! I met some errors:
Traceback (most recent call last):
File "detect.py", line 249, in
described_samples = extract(dataset, args.h5_path)
File "detect.py", line 201, in extract
batched_features = extract(bitmaps)
File "/home/anaconda3/envs/pytorch1/lib/python3.6/site-packages/torch_dimcheck/dimcheck.py", line 110, in wrapped
result = func(*args, **kwargs)
File "/home/disk/disk/model/disk.py", line 57, in features
descriptors, heatmaps = self._split(self.unet(images))
File "/home/anaconda3/envs/pytorch1/lib/python3.6/site-packages/torch/nn/modules/module.py", line 493, in call
result = self.forward(*input, **kwargs)
File "/home/anaconda3/envs/pytorch1/lib/python3.6/site-packages/torch_dimcheck/dimcheck.py", line 110, in wrapped
result = func(*args, **kwargs)
File "/home/anaconda3/envs/pytorch1/lib/python3.6/site-packages/unets/unet.py", line 100, in forward
features.append(layer(features[-1]))
File "/home/anaconda3/envs/pytorch1/lib/python3.6/site-packages/torch/nn/modules/module.py", line 493, in call
result = self.forward(*input, **kwargs)
File "/home/anaconda3/envs/pytorch1/lib/python3.6/site-packages/torch/nn/modules/container.py", line 92, in forward
input = module(input)
File "/home/anaconda3/envs/pytorch1/lib/python3.6/site-packages/torch/nn/modules/module.py", line 493, in call
result = self.forward(*input, **kwargs)
File "/home/anaconda3/envs/pytorch1/lib/python3.6/site-packages/unets/ops.py", line 42, in forward
raise RuntimeError(msg)
RuntimeError: Trying to downsample feature map of size torch.Size([1, 64, 135, 240])
which version of pytorch? any suggestions?  Thanks!

I am not the author, please don't assign to me a credit for creating DISK.
Regarding your question --- set resize values to be power of 2, e.g. 1024x768.
Altough I would also prefer to hear about more robust solution from @jatentaki

Haha, @ducha-aiki is not a maintainer but apparently responds even faster than I do.
More precisely, it has to be not only power of 2, but multiples of 16 (since we have 4 downsampling steps, each reducing the resolution by 2 --> 2^4 = 16). In practice, please set the --height and --width flags to a size which is closest to your input size and divisible by 16 (don't worry if it doesn't exactly preserve the aspect ratio, it will internally maintain it with padding).

I added more informative exception messages around this issue. @wolf943134497 is the problem resolved?

@jatentaki  the problem is solved! Thanks for your suggestions and great works!
Sorry to disturb you, ducha-aiki. Thanks for your help!

@wolf943134497 你好， 我是LIO-wheel-fusion 项目 这个原始仓库的主人，吴新锐。 lio-wheel-fusion工程， 是我们内部项目，因为设计项目保密协议
之前误上传至了github，现原始仓库 lio-wheel-fusion 已经删除， 请您看到此消息后， 删除此 fork 得到的仓库， 谢谢合作！！！！
或者看到此条消息后，尽快联系邮箱  916806487 或者电话<PHONE_NUMBER>5！！  谢谢合作！！
如有疑问请联系<EMAIL_ADDRESS> 或者电话致电<PHONE_NUMBER>5 ，谢谢合作！


Remove help wanted text from README

Despite some great work done in the last couple of months, nobody showed a strong motivation to take over this project.
I want to thank @hkdobrev for his hard work as he helped me lot in closing issues and fixing bugs. Silex is now compatible with Symfony 4 and that's going to help a lot in migrating projects.
I still strongly believe that Symfony 4 is a better alternative and that there is nothing unique anymore in Silex.
Forking is still an option if someone wants to take over of course.

Thank you for this work, which helps to look forward for existing Silex projects.
Then, after 2 months of "help wanted" announcement, neither the current contributors, nore other people wanted to take over Silex ? On reason would be, that there is no reason now to start or continue a project with Silex, because, like you say, Symfony 4 is a better way to follow.
It would be nice to create a short guide explaining how to migrate from Silex to Symfony 4 like  https://github.com/symfony/symfony/blob/master/UPGRADE-4.0.md
Now that end of Silex seems clear the homepage of the framework should be updated.

The website now has a warning as well.


exceptions.MinerException: GQL error

19:52:18: Fatal error encountered:
19:52:18:
19:52:18: Traceback (most recent call last):
19:52:18:   File "main.py", line 158, in main
19:52:18:   File "twitch.py", line 768, in run
19:52:18:   File "twitch.py", line 824, in _run
19:52:18:   File "inventory.py", line 232, in claim
19:52:18:   File "inventory.py", line 138, in claim
19:52:18:   File "inventory.py", line 154, in _claim
19:52:18:   File "twitch.py", line 1570, in gql_request
19:52:18: exceptions.MinerException: GQL error: [{'message': 'service error', 'path': ['claimDropRewards']}]
19:52:18:
19:52:18: Exiting...
19:52:19:
19:52:19: Application Terminated.
19:52:19: Close the window to exit the application.

This one has been brought up many times, just use the search engine.
Duplicate of #337 (and other "service error" cousins), tracked by #417.


Number of reads listed in index & eventalign stdout doesn't match

Hi,
I have been using the output of eventalign to calculate the % of reads discarded by nanopolish and have noticed that the total number of reads listed in the standard output of nanopolish index and nanopolish eventalign for the same dataset do not match.  I have verified the number of reads with alternative tools and found that the number of reads listed by nanopolish index is correct, while nanopolish eventalign overestimates the number of reads.
Here is an example:
nanopolish index output
[readdb] indexing data
[readdb] indexing data/sub_dir
[readdb] indexing data/sub_dir/sub_sub_dir
[readdb] num reads: 471731, num reads with path to fast5: 471731
nanopolish eventalign output
[post-run summary] total reads: 727710, unparseable: 0, qc fail: 5895, could not calibrate: 7091, no alignment: 2218, bad fast5: 0
Please let me know if I have missed something and this is the intended behaviour.
Thanks,
Alex

Hi Alex,
The post-run message is a little misleading since it counts the number of alignments it processed in the BAM, not unique reads seen. Its probably working as intended.
Jared

Hi Jared,
Thanks for getting back to me, that clears things up!
Thanks,
Alex


HOWTO pages for key use cases

Given the the questions we have been getting, I think it's time we create some succinct  guides for key use cases:

How to create new operators (c++ & python & julia & ...)
How to create custom training loops

Also, since few people read the hole doc and nobody read FAQ before AQ, we should link them in bold somewhere you can't miss, like in the root README.md
I can write the python operator part. Can someone help with the rest

Let us do it. I think we can put it on python/index.md
here is the current guide for c++ ops https://github.com/dmlc/mxnet/blob/master/doc/developer-guide/operator.md
@piiswrong  would be great if you can push numpy ops

The Julia side user defined operator is not ready yet due to multi-thread callback issues dmlc/MXNet.jl#16. But I can add the Julia part for the howto once the implementation is ready.


Add CUDA decoding support

Actually implement cuda decoding in C++:

Initialize a cuda device if requested. We create a small tensor on the device to initialize the context.
Use the cuda device to decode the video to NV12 format.
Use libNPP to convert from NV12 to RGB. We make sure to wait on this cuda event so there are no race conditions in accessing this tensor from the downstream consumer (that is on a different stream than libNPP).

Note that the GPU decodes frames that are not bit-accurate. This is by design and we ensure tensors are approximately equal rather than fully accurate. The actual tensor values depends on the GPU architecture because GPU math is not precise.
Also added a gpu_benchmark with the following results:
python benchmarks/decoders/gpu_benchmark.py --video /tmp/frame_numbers_1920x1080_100.mp4
[--------------------- Decode+Resize Time --------------------]
                       |  video=frame_numbers_1920x1080_100.mp4
1 threads: ----------------------------------------------------
      D=cuda R=cuda    |                   12.1
      D=cuda R=cpu     |                  148.0
      D=cuda R=native  |                   11.5
      D=cuda R=none    |                   11.5
      D=cpu R=cuda     |                   16.9
      D=cpu R=cpu      |                  134.2
      D=cpu R=native   |                   23.2
      D=cpu R=none     |                    9.4

Times are in seconds (s).

Key: D=Decode, R=Resize
Native resize is done as part of the decode step
none resize means there is no resize step -- native or otherwise

Results show that a single NVDec is slower than 22 core CPU without resizing, but faster with resizing.
I also added a "throughput mode" for the benchmark that decodes W videos in parallel using T threads. Results of this "throughput mode" shows that A100 has higher decode throughput than my 22-core CPU:
python benchmarks/decoders/gpu_benchmark.py --video /tmp/frame_numbers_1920x1080_100.mp4 --devices=cuda:0,cpu --resize_
devices=none --num_threads 10 --num_videos 10

[---------------------------------- Decode+Resize Time ----------------------------------]
                               |  threads=10 work=10 video=frame_numbers_1920x1080_100.mp4
1 threads: -------------------------------------------------------------------------------
      D=cuda R=none T=10 W=10  |                            29.0
      D=cpu R=none T=10 W=10   |                            38.8

Times are in seconds (s).

Key: D=Decode, R=Resize T=threads W=work (number of videos to decode)
Native resize is done as part of the decode step
none resize means there is no resize step -- native or otherwise

nvidia-smi shows 99% NVDEC utilization :)
# gpu         pid   type     sm    mem    enc    dec    jpg    ofa    command
# Idx           #    C/G      %      %      %      %      %      %    name
    0    2180816     C     70      5      -     99      -      -    python

This throughput mode is representative of video decoding using the dataloader with multiple threads.

Looking forward to this!

Hi @ahmadsharif1, thanks for the great PR to add back GPU support! Wondering if it's possible to also add back the device parameter into SimpleVideoDecoder, which was previously removed in https://github.com/pytorch/torchcodec/pull/196/files#diff-5ff4f051479ffd5d021001e2a101973746feda3a3f579bf2d072629329c421dc?

Hi @ronghanghu
We will be adding GPU support to SimpleVideoDecoder before releasing CUDA-enabled binaries, so stay tuned. However it will be done in a different PR.
Out of curiosity, can you share how you get TorchCodec? Is it through pip install torchcodec or do you build it from source (or do build it from internal fbcode)?
We want to add support for GPU decoding in SimpleVideoDecoder before releasing it, but the release may take a while. If you build from source you can get it earlier. So let us know how you get TorchCodec so we can help you get it asap.

Thanks @ahmadsharif1, we are building TorchCodec internally


Only a nonstandard negation operator parses

Description
The MathLive editor supports multiple ways to express the same logical negation symbol, but only one of them actually parses, and it is not one I had ever heard of.
Steps to Reproduce
After loading MathLive, I try these at the console.
// Other logical operators work as expected:
MathfieldElement.computeEngine.parse( 'A \\wedge B' ).json
// ==> ['And','A','B']
//     Great!  Works as expected!
MathfieldElement.computeEngine.parse( 'A \\vee B' ).json
// ==> ['Or','A','B']
//     Great!  Works as expected!
MathfieldElement.computeEngine.parse( 'A \\implies B' ).json
// ==> ['Implies','A','B']
//     Not standard LaTeX, but I'm not arguing.  That's fine.

MathfieldElement.computeEngine.parse( '\\not A' ).json
// ==> ['Error',['ErrorCode','\'unexpected-command\'','\'\\not\''],['LatexString','\'\\not\'']]
//     This was just a guess because we had "implies" spelled out, so I was experimenting...
MathfieldElement.computeEngine.parse( '\\lnot A' ).json
// ==> ['Not','A']
//     Works but it's an unusual operator name.
//     The only way I discovered this symbol was by using the keyboard in the MathLive widget,
//     then inspecting under the hood what it was it had created.

Actual Behavior
The system accepts only \lnot as a parse-able negation operator.
Expected Behavior
I expected the (standard?) \neg operator to be parse-able.
Environment
MathLive version  Latest from CDN on Dec 7, 2023, which is CortexJS Compute Engine 0.22.0.
Operating System macOS 12.4
Browser Brave

Both \neg and \lnot are used. See https://www.bu.edu/math/files/2013/08/LongTeX1.pdf, https://tex.stackexchange.com/questions/430677/what-is-the-difference-between-lnot-and-neg or https://www.cis.upenn.edu/~cis1600/current/files/resources/useful_latex_commands.pdf.
I'm not sure if one is more popular than the the other, but if you have any reference on that I'd be interested...

Okay, good point, I should be more specific, sorry.  As your second reference points out, there isn't a visual or semantic difference between \neg and \lnot.  Furthermore, you can enter both of them in MathLive.  That's why I was surprised to find out that one of them parses into logical negation while the other one generates a parsing error.  That's unexpected.  I would think that if the appearance and accepted meaning of both is identical, then the behavior of both of them in the parser should also be identical.


Add web page

Add a jekyll github page for the project describing the features and some documentation on how to build and use

closed by #233c3a204f4dd16b590fcca68d57101cd77205ba


Implement proper ISO 8601 parsing, fixes #2450

Adds a normalize function for iso8601 strings which is used only when the string after the normalization appears to be valid iso8601.
I've added tests to this pull request as well by copying the existing tests and removing the dashes and colons, and replacing the dots by commas.
fixes: #2450

Please rebase to squash into one commit.  Thanks.

@pietercolpaert I'm glad that you're willing to work on this, but the existing approach isn't satisfactory.
We already have a complicated regex that extracts the tokens directly, so there is no need for a rewrite. It should get a bit hairier, but still work more or less the same way. Also it will be kind of hard to proof that the long list of replacements is correct :)
src/lib/create/from-string.js has isoRegex, isoDates and isoTimes, I think only a few small changes are required to those variables.
The tests look OK, I'm not sure they cover 2 digit timezone case (not sure how tz3 tests work). The matchOffset regex in src/lib/parse/regex.js doesn't cover 2 digits.
Strict mode only:

We should also handle -00 as an error case (https://en.wikipedia.org/wiki/ISO_8601#Time_offsets_from_UTC)
https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations also we should force basic-basic, extended-extended date-time format in strict mode

Thank you @ichernev for the explanation. I understand that this is not satisfactory and is seen as a 'quick fix' rather than a durable solution.
It may take a while until I find some time again to make a better solution. In the meantime I hope someone else picks this up.
The tests could indeed be reused :)

I'll see what I can do for this release.

Regarding -00:00, Since it's valid in RFC3339, I can see someone still wanting to parse that with moment.  I think we should support it, even if it's not ISO8601 compliant.

@mj1856 Although I cannot give a pragmatic reason of why not to do it, I'm against enabling that as ISO8601. If it's RFC3339, then we should enable the constructor to also detect RFC3339 instead of only iso8601

@mj1856 @pietercolpaert given how non compliant we were for years, I don't see a big difference either way.

Close as #2641 is merged and fixes this properly.

Great! Thanks! This will save me some time in the future! :+1:


adding note about team sync

👋🏽
Why:
While working through these instructions and setting up our Okta instance with GitHub, we found that the IdP group assignment option does not appear for teams that have a child team assigned. here is a screenshot of the option that is not available for parent teams:

What's being changed (if available, include any code snippets, screenshots, or gifs):
Adding a quick note to make users aware of this requirement.
Check off the following:

[x] I have reviewed my changes in staging (look for the "Automatically generated comment" and click the links in the "Preview" column to view your latest changes).
[x] For content changes, I have completed the self-review checklist.

Writer impact (This section is for GitHub staff members only):

[ ] This pull request impacts the contribution experience

[ ] I have added the 'writer impact' label
[ ] I have added a description and/or a video demo of the changes below (e.g. a "before and after video")

@sukoonmusic Thanks so much for opening a PR! I'll get this triaged for review :zap:

Thanks @sukoonmusic, and nice to see a familiar face! 😊 I'm just going to confirm with the team that this is expected behavior and will review your PR after I hear back from them. 🙇🏻♀

Whoops... I actually just realized we already document this limitation earlier in the article:

Parent teams cannot synchronize with IdP groups. If the team you want to connect to an IdP group is a parent team, we recommend creating a new team or removing the nested relationships that make your team a parent team. For more information, see "About teams," "Creating a team," and "Moving a team in your organization's hierarchy."

Do you think that information would have been more discoverable for you if we had a dedicated section about requirements and limitations for groups? It could also include these Iines from the article:

You can connect up to five IdP groups to a GitHub Enterprise Cloud team. You can assign an IdP group to multiple GitHub Enterprise Cloud teams.

Team synchronization does not support IdP groups with more than 5000 members.

If so, feel free to update your PR accordingly! Otherwise feel free to close. 😊

👋🏽 hey @lecoursen! whoa, I definitely missed it. Thank you for pointing me to it 🙏🏽
Will go ahead and close, and remember to read closer next time!!


[Bug]:  test_range_redirect related tests panic

Description about the bug
#496 it was discovered that the relevant tests for test_range_redirect would panic. It seems unrelated to the submission in #
Version
0.4.1 (Default)
Relevant log output
`test_range_redirect` panic!
@info:
panicked at 'failed to create curp service, storage error, internal error, I/O Error:  No such file or directory: While renaming a file to /tmp/xline-YZQ0gq24/curp/CURRENT: /tmp/xline-YZQ0gq24/curp/000005.dbtmp: No such file or directory', /home/runner/work/Xline/Xline/curp/src/server/mod.rs:198:17
@stackTrace:
   0: kv_test::test_range_redirect::{{closure}}
             at ./tests/kv_test.rs:165:1
   1: <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call
             at /rustc/90c541806f23a127002de5b4038be731ba1458ca/library/alloc/src/boxed.rs:1987:9
   2: std::panicking::rust_panic_with_hook
             at /rustc/90c541806f23a127002de5b4038be731ba1458ca/library/std/src/panicking.rs:695:13
   3: std::panicking::begin_panic_handler::{{closure}}
             at /rustc/90c541806f23a127002de5b4038be731ba1458ca/library/std/src/panicking.rs:582:13
   4: std::sys_common::backtrace::__rust_end_short_backtrace
             at /rustc/90c541806f23a127002de5b4038be731ba1458ca/library/std/src/sys_common/backtrace.rs:150:18
   5: rust_begin_unwind
             at /rustc/90c541806f23a127002de5b4038be731ba1458ca/library/std/src/panicking.rs:578:5
   6: core::panicking::panic_fmt
             at /rustc/90c541806f23a127002de5b4038be731ba1458ca/library/core/src/panicking.rs:67:14
   7: curp::server::Rpc<C,RC>::new::{{closure}}
  ........

Code of Conduct

[X] I agree to follow this project's Code of Conduct

Closed since it's duplicated with issue #406


fg and bg are same color for ColorColumn

https://github.com/maxmx03/solarized.nvim/blob/8c59d890fdbf2665efa3ae25356deb964fdd2358/lua/solarized/themes/default/editor.lua#L5
I think it should just set the bg and not the fg (similar to CursorColumn), right? otherwise characters that occur in the colorcolumn are invisible lol
with that said, thank you so much for this theme! ❤ I've tried a half dozen solarized nvim themes over the past couple years. this one right now (even before the recent refactor) is hands-down the best. well done! 🙌

i will fix 😅


Error during New-AGMLibVM - The term 'Get-AGMFollowJobStatus' is not recognized

PS /Users/mferrari> New-AGMLibVM -imageid 59884072 -vmname matteovm -datastore "IBM-iSCSI-V3700-1" -vcenterid 5552150 -esxhostid 26534616 -mountmode prdm -mapdiskstoallesxhosts false -poweronvm true -volumes '[IBM-FC-V3700] demo-sql-3/demo-sql-3.vmdk' -monitor -wait
InvalidArgument: /Users/mferrari/.local/share/powershell/Modules/AGMPowerLib/<IP_ADDRESS>/Public/New-AGMLibVM.ps1:574
Line |
574 |          $wait = "y"
|          ~~~~~~~~~~~
| Cannot convert the "y" value of type "System.String" to type
| "System.Management.Automation.SwitchParameter".
jobname    : Job_28662677
status     : running
queuedate  : 2020-10-27 22:23:43
startdate  : 2020-10-27 22:23:44
targethost : matteovm
Get-AGMFollowJobStatus: /Users/mferrari/.local/share/powershell/Modules/AGMPowerLib/<IP_ADDRESS>/Public/New-AGMLibVM.ps1:607
Line |
607 |              Get-AGMFollowJobStatus $jobgrab.jobname
|              ~~~~~~~~~~~~~~~~~~~~~~
| The term 'Get-AGMFollowJobStatus' is not recognized as the name of a cmdlet, function, script
| file, or operable program. Check the spelling of the name, or if a path was included, verify that
| the path is correct and try again.

Fixed in <IP_ADDRESS>


Update the docs to link the demo

The docs still link to a live demo that happened four months ago. New look:

Thanks! I forgot I wanted to update that last year.
/lgtm


REST PUT endpoint/function

Need to add a PUT request to our main endpoint. This PUT request should route to a handler just for PUT requests.
Users should be able to send a PUT request to {base_endpoint}/{user_id}, the input request body should be the entire User object, and should overwrite the User object in our database. Essentially updating the User.

The input body for this needs to include docBody, this docBody attribute will completely overwrite the docBody in the database.

Hit this with a PUT request, see above comment for body parameters: https://fat9xy633i.execute-api.us-east-1.amazonaws.com/test/users/{id}

After recent discussion (see #15, #16), we have decided to split up the PUT requests to different endpoints.
This endpoint should be converted to a user settings PUT request. The input should be similar to the post input, including just the users "settings". i.e. Name, Start and End date, etc..
As of now, user email must remain the same, and can not be edited after account creation.
If start and end dates are changed, this lambda function should should add/pop weeks on/off of the END of the users journal. For example, if the user initially select 12 weeks, but changed the dates such that there are now 16, we should ADD 4 weeks to the end of the journal. Similarly, if the user goes from 16->12, we pop the last 4 weeks off of the journal.

After recent discussion (see #15, #16), we have decided to split up the PUT requests to different endpoints.
This endpoint should be converted to a user settings PUT request. The input should be similar to the post input, including just the users "settings". i.e. Name, Start and End date, etc..
As of now, user email must remain the same, and can not be edited after account creation.
If start and end dates are changed, this lambda function should should add/pop weeks on/off of the END of the users journal. For example, if the user initially select 12 weeks, but changed the dates such that there are now 16, we should ADD 4 weeks to the end of the journal. Similarly, if the user goes from 16->12, we pop the last 4 weeks off of the journal.


Footer logo size update

The problem
The logo in the footer at md and sm sizes grow too large. This is per the original design specs. This feature request is to change the size.
The solution
At md and sm, for both the default version and the minimal version, the logo should be fixed at 128px wide and maintain the aspect ratio.
Additional information

Current at md size

To be


green cards are white

all of the symbols on the green cards are white, making it hard to see. is there a fix for this?

Thanks for opening this. Looks like the game changed the bamboo graphics to be white a while back.
I still like the simplicity of dropping in the game assets unchanged, so I added a somewhat hacky way of recoloring the assets in the browser, which doesn't require any manual editing.

thanks!


TypeScript: DiagnosticsCategory Warning is not honored

The video below demonstrates tslint running as a language server plugin. Notice that the tslint warnings show up as errors. However, in the code the DiagnosticCategory is set to Warning.

This is the code that creates the diagnostic https://github.com/egamma/tslint-language-service/blob/master/src/index.ts#L61

Looks like we don't set an severity on the diagnostics which causes them to all be marked as errors. Looking into fixing this

Hmm, I don't see a category field on normal Diagnostic objects in the TSServer protocol, only on DiagnosticWithLinePosition. Let me see if this field is sent anyways when you explicitly set in the TSLint plugin

I've opened https://github.com/Microsoft/TypeScript/issues/15237 to track adding category to the Diagnostic objects that tsserver returns to us. This seems like an oversight in the current protocol


opencv2/opencv.hpp' file not found

iOS run with wrong opencv2/opencv.hpp' file not found

Hi @CBL0123 , I have the same error, did you find a solution ? Thx

I have the same issue on macos. Would be good to know what versions of everything this project requires. Runnning pod lib lint native_opencv_macos.podspec turns up a couple errors in the podfile but when these are resolved a LOT more appear.


Fix out-of-bounds read in decode_png

Hello, I was fuzzing this project with sydr-fuzz and found SIGSEGV in vision::image::decode_png. It appears when I run target on a slightly corrupted PNG file. The problem occurs in the reader structure, which doesn't check for size bounds when reading.
According to the libpng manual, the custom I/O function that replaces the reader function is responsible for detecting and handling end-of-data errors.
So I added a size check that fixes the SIGSEGV error.
libfuzzer output:
==300149==ERROR: AddressSanitizer: SEGV on unknown address (pc 0x00000fd90351 bp 0x7ffc180f4880 sp 0x7ffc180f4750 T0)
==300149==The signal is caused by a READ memory access.
==300149==Hint: this fault was caused by a dereference of a high value address (see register values below).  Disassemble the provided pc to learn which register was used.
    #0 0xfd90351 in vision::image::decode_png(at::Tensor const&, long, bool)::$_0::operator()(png_struct_def*, unsigned char*, unsigned long) const /vision_fuzz/torchvision/csrc/io/image/cpu/decode_png.cpp:81:27
    #1 0xfd901bc in vision::image::decode_png(at::Tensor const&, long, bool)::$_0::__invoke(png_struct_def*, unsigned char*, unsigned long) /vision_fuzz/torchvision/csrc/io/image/cpu/decode_png.cpp:76:7
    #2 0x1146986b in png_read_data /libpng-1.6.37-fuzz/pngrio.c:37:7
    #3 0x11547e32 in png_crc_read /libpng-1.6.37-fuzz/pngrutil.c:201:4
    #4 0x11548197 in png_crc_finish /libpng-1.6.37-fuzz/pngrutil.c:226:7
    #5 0x11570761 in png_handle_bKGD /libpng-1.6.37-fuzz/pngrutil.c:1943:7
    #6 0x11407b85 in png_read_info /libpng-1.6.37-fuzz/pngread.c:170:10
    #7 0xfd8b15e in vision::image::decode_png(at::Tensor const&, long, bool) /vision_fuzz/torchvision/csrc/io/image/cpu/decode_png.cpp:86:3
    #8 0x5ce5ab in LLVMFuzzerTestOneInput /decode_png_fuzz.cc:26:32
    #9 0x4fae01 in fuzzer::Fuzzer::ExecuteCallback(unsigned char const*, unsigned long) /llvm-project/compiler-rt/lib/fuzzer/FuzzerLoop.cpp:611:15
    #10 0x4e4d1c in fuzzer::RunOneTest(fuzzer::Fuzzer*, char const*, unsigned long) /llvm-project/compiler-rt/lib/fuzzer/FuzzerDriver.cpp:324:6
    #11 0x4eaa6b in fuzzer::FuzzerDriver(int*, char***, int (*)(unsigned char const*, unsigned long)) /llvm-project/compiler-rt/lib/fuzzer/FuzzerDriver.cpp:860:9
    #12 0x514002 in main /llvm-project/compiler-rt/lib/fuzzer/FuzzerMain.cpp:20:10
    #13 0x7f8761f9d082 in __libc_start_main /build/glibc-SzIz7B/glibc-2.31/csu/../csu/libc-start.c:308:16
    #14 0x4df63d in _start (/decode_png_fuzz+0x4df63d)

@sigseg5 Thanks for the contribution!
Would you be able to add a unit-test with a sample corrupted image (you can add it at test/assets/damaged_png; hopefully something small) that would fail in main branch with the above error? We should check on the unit-test that your proposed error will appear.

The failing test on windows is unrelated. cc @pmeier

According to the libpng manual, the custom I/O function that replaces the reader function is responsible for detecting and handling end-of-data errors.

@sigseg5 can you please provide the link on that ?

@vfdev-5 libpng GitHub repo man