text:
Encode copy-source in replication utils

Explain the changes
This PR encodes the copy-source in the replication utils. This is to ensure that we encode the keys properly. This being absent results in replication failure, multiple failed GetObject requests (CopySource internally calls this) and failed PutObject requests.
Issues: Fixed #xxx / Gap #xxx
Fixes https://bugzilla.redhat.com/show_bug.cgi?id=2277298
Testing Instructions:

make run-single-test testname=test_bucket_replication.js

[ ] Doc added/updated
[x] Tests added

Manual testing on k8s done. Could successfully replicate an object named 1268-2__#$!@%!#__BED-END-1-Carton-13.jpeg from a namespace store backed bucket to a backing store backed bucket. Merging the PR.


text:
Made changes in the README for more clarity

I added images and commands pertaining to the smooth functioning of the kodyfire. I added the steps to publish the project onto github and how to deal with vulnerabilities which might take place when dealing with npm.
Kindly merge my PR

@anis-marrouchi

I have made the changes as told.

source: gharchive/pull-request

repo: nooqta/kodyfire

license: MIT

license_type: permissive

license_source: github-api


text:
Bring tracking implementation

This is requested by user
https://tracking.bring.com/tracking/api/fetch/1234567898?lang=en
Content-Type: application/json
Response with bad code: {"errorId":"4825866b-9c9e-4f05-a82b-0e4d5c8fa70f","errorCode":"2404","errorMessage":"Unable to locate 1234567898"}
Need to get working tracking number before implementation attempt

Here's one: TESTPACKAGE-AT-PICKUPPOINT

Found in Bring API Documentation: https://developer.bring.com/api/tracking/

Bring API is somewhat logical. I think it's easy to build the client part for it

Bring API Documentation has some example responses: https://developer.bring.com/api/tracking/#tracking-endpoint-response-200

There is now pull request waiting for review @developerfromjokela

source: gharchive/issue

authors: developerfromjokela norkator

repo: norkator/Paketin-Seuranta


text:
UPS tracking broken again?

UPS doesn't seem to work. Cainiao does pick up the code but does not show the pickup location (I'm not sure if that's available outside of their own site though). Example code sent via Trello.

New thing added to this api is X-XSRF-TOKEN header, when I populated that it worked again. Otherwise giving un authorized. Now have to solve where to ask / calculate this token.

Where'd you get that one for testing?
On Sun, Nov 22, 2020, 11:54 Martin Kankaanranta notifications@github.com
wrote:

New thing added to this api is X-XSRF-TOKEN header, when I populated that
it worked again. Otherwise giving un authorized. Now have to solve where to
ask / calculate this token.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/norkator/paketin-seuranta/issues/83#issuecomment-731723390,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AJU4T5RZYRXAYESOZW566RDSRDNUPANCNFSM4T3DQPBA
.

Where'd you get that one for testing?
…
On Sun, Nov 22, 2020, 11:54 Martin Kankaanranta @.***> wrote: New thing added to this api is X-XSRF-TOKEN header, when I populated that it worked again. Otherwise giving un authorized. Now have to solve where to ask / calculate this token. — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <#83 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJU4T5RZYRXAYESOZW566RDSRDNUPANCNFSM4T3DQPBA .

From @ristomatti at private Trello board so @ristomatti decides should it be shared for you

Is the only right way to handle this via loading tracking page because it initially gives response header "Set-Cookie" having that token which is valid for X time. I'm not sure.

@norkator Sure you can share it (privately). It's only my new laptop. 😄 But it'll be a home delivery anyway. To be delivered Monday/Tuesday I believe.

Okay theres another way.. I stole this from Aftership website: 1ZA529F90495123295 @developerfromjokela

Where'd you get that one for testing?
…
On Sun, Nov 22, 2020, 11:54 Martin Kankaanranta @.***> wrote: New thing added to this api is X-XSRF-TOKEN header, when I populated that it worked again. Otherwise giving un authorized. Now have to solve where to ask / calculate this token. — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <#83 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJU4T5RZYRXAYESOZW566RDSRDNUPANCNFSM4T3DQPBA .

From @ristomatti at private Trello board so @ristomatti decides should it be shared for you

I meant how did you find about the header? Or where?

Where'd you get that one for testing?
…
On Sun, Nov 22, 2020, 11:54 Martin Kankaanranta @.***> wrote: New thing added to this api is X-XSRF-TOKEN header, when I populated that it worked again. Otherwise giving un authorized. Now have to solve where to ask / calculate this token. — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <#83 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJU4T5RZYRXAYESOZW566RDSRDNUPANCNFSM4T3DQPBA .

From @ristomatti at private Trello board so @ristomatti decides should it be shared for you

I meant how did you find about the header? Or where?

Just simply tested with chrome and noticed that token, then tried with rest client tool with Paketin Seuranta current config, got that permission denied and then with token which I copied from this browser request -> then it worked.

This stupid X-XSRF-TOKEN-ST is what I am looking for, its calculated at Bundle javascript file when entering ups webpage. I try engineer how its done so can mimic it.

I don't know why I think this so hard, if you call "https://www.ups.com/track?loc=en_US" with get method theres header in response with X-XSRF-TOKEN-ST

Okay found out just by looking how ups page is actually handling these tokens so now theres header called Cookie with X-XSRF-TOKEN and its corresponding token and then own X-XSRF-TOKEN with X-XSRF-TOKEN-ST

authors: developerfromjokela norkator ristomatti

repo: norkator/paketin-seuranta


text:
Add support for secure token storage

Token storage change in latest release of gh
This is a message from the GitHub CLI team, maintainers of gh, writing to inform you that the most recent release of gh contains changes which may affect your extension. The latest release introduces the feature of storing authentication tokens in the system keyring (encrypted storage) instead of in a plain text file.
The keyrings that are supported are:

Keychain on macOS

GNOME Keyring on Linux (Secret Service dbus interface)

Wincred on Windows

This has huge security benefits for the users of our tool and was one of our oldest outstanding issues. Unfortunately this change has the potential to break extensions that rely on utilizing the users authentication token to work.
In order to have continued compatibility with gh there are some actions you, as an extension author, need to take. These actions will depend on the implementation of your extension.
Extensions built in Go using go-gh:

Upgrade your go-gh version to v1.2.1, the latest version.

This can be done using go get github.com/cli/go-gh@v1.2.1

Verify that in your extension retrieval of the user authentication token is done using the  auth.TokenForHost function.

If you were previously accessing the authentication token using any other method it will no longer work.
Automatic resolution of the authentication token when using the API clients will continue to work without changes.

All other extensions:

Verify that in your extension retrieval of the user authentication token is done by shelling out to the gh auth token command.

If you were previously accessing the authentication token using the gh config get command, reading the configuration file directly, or any other methods it will no longer work.

As of right now storing the authentication token in the system keyring is an opt-in feature, but in the near future it will be required and at that point if the changes above are not made then your extension will be broken for all users. If you have any questions/concerns about this change please feel free to open a discussion in the gh repo.
Thanks,
The GitHub CLI Team

Thanks @samcoe! gh-home doesn't actually use gh internally, I adapted it from a git alias so it isn't affected by this change, but thanks for letting me know :)
I'll close this issue now :)

authors: norwd samcoe

repo: norwd/gh-home

license: Unlicense


text:
fix(icons): removed two last empty lines from pokeball.

Description
For some reason, pokeball icon's height is incorrect, this PR fix it by removing the two last empty lines.
Compatibility
Should be equal to master (84x84).
Caveats
Before:

After:

:tada: This PR is included in version 2.0.0 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:

authors: BcRikko guastallaigor


text:
doc: Remove outdated docs

Remove two outdated docs in Notation CLI as they have been migrated to the Notary website:

https://notaryproject.dev/docs/tutorials/trust-policy/
https://notaryproject.dev/docs/how-to/directory-structure/

Codecov Report

Merging #501 (4ba959b) into main (c736231) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main     #501   +/-   ##
=======================================
  Coverage   29.57%   29.57%
=======================================
  Files          26       26
  Lines        1515     1515
=======================================
  Hits          448      448
  Misses       1050     1050
  Partials       17       17

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more

@shizhMSFT Could you pls help to merge this PR?

authors: FeynmanZhou codecov-commenter

repo: notaryproject/notation


text:
Use 🚗 for "car" instead of 🚌

🚌 is a bus. 🚗 is a car. When "car" is typed into the text box, it becomes 🚌.

This project just uses emojilib to get the underlying keywords -> emoji mapping. You should open an issue or PR on that repo! :)

authors: nloveladyallen notwaldorf

repo: notwaldorf/emoji-translate

license: mit

license_source: bigquery


text:
Boyfriend Floating

Describe your bug here.
Boyfriend floats no matter what i do..Even if i change it he still floats...Can you please fix this?
Command Prompt/Terminal logs (if existing)
No response
Are you modding a build from source or with Lua?
Source
What is your build target?
Windows
Did you edit anything in this build? If so, mention or summarize your changes.
Only the character..But it wont fix

There is something called character editor and offsets, you know that those exist... right?

There is something called character editor and offsets, you know that those exist... right?

He's saying that even if he changes the character position values, bf still floats

I Figured it out....There was a second bf.chr file in the mods folder

repo: notweuz/FNF-OSEngine


text:
Update cats-effect to 3.5.1

About this PR
📦 Updates org.typelevel:cats-effect from 3.2.9 to 3.5.1
📜 GitHub Release Notes - Version Diff
Usage
✅ Please merge!
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!

💡 Applied Scalafix Migrations

org.typelevel:{cats-effect,cats-effect-laws}:3.3.0 (created no change)

github:typelevel/cats-effect/v3_3_0?sha=series/3.x

⚙ Adjust future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "org.typelevel", artifactId = "cats-effect" } ]

Or, add this to slow down future updates of this dependency:
dependencyOverrides = [{
  pullRequests = { frequency = "30 days" },
  dependency = { groupId = "org.typelevel", artifactId = "cats-effect" }
}]

labels: library-update, early-semver-minor, semver-spec-minor, version-scheme:early-semver, scalafix-migrations, commit-count:1

Superseded by #473.

repo: notxcain/aecor


text:
🛑 Simplii Alpha is down

In 57f3581, Simplii Alpha (http://alpha.admin-web-simplii.savvyy.io/) was down:

HTTP code: 404
Response time: 74 ms

Resolved: Simplii Alpha is back up in eaef05f.

repo: novacSavvyy/simpliiUptime


text:
Demo project illustrates API usage

... and it is tested!

Hello , I am trying to check out the demo. How exactly am I doing that? I am trying to run python manage.py runserver and I get an error ImportError: No module named None.settings .
Do I have to install something extra? I have clone the repo and I have installed django-docusign in a virtualenv.

@danaev try django-docusign-demo runserver or make serve

make serve worked ! thanks!

authors: benoitbryon danaev zebuline

repo: novafloss/django-docusign


text:
Add the possibility to delete a file on the edition mode

The aim of this PR is to add a checkbox with the name slug-clear and id slug-clear_id which is read on the submit by the backend to remove the file of the form.
This behavior is the standard one use by django to handle file deletion.
Technically:

Handle list of values to get the currenFile
Compute value (which is used for the required validation) with the current file and selected file

Refactor:

add an attribute  buttonClassNamesDefault to handle vendors classnames for the integration (bs3 classnames for the buttons
Repercute buttonClassNamesDefault on the radio buttons items component

Thanks to https://medium.com/@chrisdmasters/acceptance-testing-file-uploads-in-ember-2-5-1c9c8dbe5368#.776m7sykv

repo: novafloss/formidable-core


text:
OpenGL Instancing.

Currently our approach to loading the same normalised data (upcoming in a WIP feature branch) is not that efficient. We need to instance the data onto the GPU ideally.

Resolved by #86 .

lmao closed the wrong issue.

repo: novelrt/NovelRT


text:
Use Public/SecretKey for the elliptic-curve implementation

Currently we are using ProjectivePoint and Scalar directly instead of PublicKey and SecretKey respectively.
The reason was that curve25519_dalek::Scalar supports Zeroize but not ZeroizeOnDrop.
But elliptic_curve::SecretKey supports ZeroizeOnDrop but not Zeroize.
(this was one of the main reasons I worked on introducing ZeroizeOnDrop in the first place)
The best solution here would be to introduce a SecretKey for Ristretto255, which currently doesn't exist, we could introduce this type ourselves in opaque-ke though.
Not sure what to do about elliptic_curve::PublicKey, as it implements neither. Is not zeroing out the public key acceptable?
This is analogous to https://github.com/novifinancial/voprf/issues/57 and is mainly for code improvement and cleaner deserialization, it doesn't actually change anything.

Hmm, I see. Yes, not zeroing out the public key should be fine in this case.

authors: daxpedda kevinlewi

repo: novifinancial/opaque-ke


text:
pre proccessing policy for general conns

issue : #236
sub-task:

[ ] optimize policy pre-processing : store data on policy's general conns (to whole world/ entire cluster)more info

Some notes:
1. main changes:
- step1 : while upserting a new network-policy, scan its ingress and egress rules and store :
- all destinations (whole world) connections
- entire cluster connections

notes on step1:

can not do the pre-process only for exposure analysis; since policy-engine's exposure analysis flag is updated only after upserting the objects  (the pe.exposureAnalysisFlag is updated after pe.NewPolicyEngineWithObjects which calls UpsertObject funcs)

currently, I stored both entire world and entire cluster conns (entire cluster contains also entire world) although I use only entire cluster;
in the mean while kept the entire-world connection cause we may use it in next optimizations; if we don't will eliminate it.

a rule may contain namedPort; in pre-process we can not convert the namedPort into portNum (we don't have all peers yet, neither know what peers are selected); so :

on pre-process; I store the new connection with the namedPort (however; here I found a bug in PortSet(detailed below))
while computing allowed connections between peers (scanning the policy rules for finding selected peers;), each time a namedPort was converted, saved it in the policy struct; (a policy object has a map from protocol to map from namedPorts to port numbers)

- step2: while scaning the policies selecting a pod for allowed connections computations; updated the pod's general exposure data from the policy's stored data.
(when updating the pod's data, checked and replaced namedPort in the poliy's entire cluster conns using the map; (worked with local test with namedPort))
2. notes on PortSet :

although PortSet has a

NamedPorts         map[string]bool
ExcludedNamedPorts map[string]bool

they were never used before and never initialized;
so while running a test with a namedPort I got : panic: assignment to entry in nil map error;
I updated the MakePortSet with initialized empty maps; but still got the error;
since almost always a new PortSet is initialized by PortSet{};
so currently in the PortSet funcs that are used for storing the namedPort; I check and initialize the maps if are nil

** TODO:** (for next commit?)
if new data of the Policy is accepted :

we can benefit from it for computing allowed conns;
I suggest that the netpol func ruleSelectsPeer checks only if there is a specified rule selecting the specific peer; (specified podSelector/ NamespaceSelector ...)
and  then for-example :
the allowed conns between peers is the entireCluster.Union(this-rules-conn)
for IPblock the policy's entireWorldConn.Union(specific IPBlock rule conn)

some questions/comments:

can not do the pre-process only for exposure analysis; since policy-engine's exposure analysis flag is updated only after upserting the objects

I think we can find solutions for this, such as adding more api funcs to generate policy engine as desired.

while computing allowed connections between peers (scanning the policy rules for finding selected peers;), each time a namedPort was converted, saved it in the policy struct

why does it need to be stored in the policy?
what if the connection from actual pod to a "fake" (representative) pod depends on a named port? how will this be handled by exposure analysis?

I suggest that the netpol func ruleSelectsPeer checks only ...

not sure I understand the entire sentence, though I think ruleSelectsPeer could avoid iterating all rules in case we already know from pre-processing (when available, from exposure analysis activation) that at lease one of the rules is matching all namespaces or any pod/ip-block ..  (for this case we do need the "all destinations (whole world) connections").

next tasks to be done are:

adding new api func to the policy-engine; so all pre-process (and storing general conns for pods) will be computed only for exposure-analysis.
in case of exposure-analysis; updating some computation that can benefit from the stored data of the policy

since this PR is already labeled L ; I think should commit these to a new PR ?

next tasks to be done are:
* adding new api func to the policy-engine; so all pre-process (and storing general conns for pods) will be computed only for exposure-analysis.

* in case of exposure-analysis; updating some computation that can benefit from the stored data of the policy

since this PR is already labeled L ; I think should commit these to a new PR ? (sub-task : * - [ ] adding new api func for policy-engine for running exposure-analysis individually)

ok, let's have these in a new PR

authors: adisos shireenf-ibm

repo: np-guard/netpol-analyzer


text:
cleanup changes table

The read.me says:

cleanup changes table -> Can only do that after Dexie.Syncable supports the clear flag

Can you provide any more info on this. Is there a Dexie issue on the clear flag etc.
The ability to cleanup the changes table along with any other tables will be important in production with larger databases.

First off: no there is no Dexie.Syncable github issue regarding this flag (at least I didn't see any). The flag is the 4th parameter to the applyRemoteChanges function and it is currently not implemented in Dexie.Syncable. The only "issue" is a TODO in the Dexie.Syncable code and I think a mention in the Dexie wiki.
The main question is: what do we do if a client's revision is too old and the changes table was cleaned? More detailed questions/challenges:

How do we detect "revision too old"?
Should we recreate the client DB by sending CREATE changes for everything?
How do we know which changes the client already has and which not? (And do we even care if we reacreate everything?)
How do we know that some changes are not available anymore? (might help answer the 1st question)

@nevf any ideas are appreciated. I would love to have the clear/resync flag implemented but didn't have a good idea on how to do this yet. Maybe we should open an issue on the Dexie tracker. Perhaps @dfahlander already has some ideas regarding this.

Just to clarify, changes table is automatically cleared from old changes once they have been synced and accepted by the remote server. It is not there to just clear the _changes table, but to clear the entire database prior to adding server changes.
The 'clear' option was intended to use when the client has been offline for a long time so that the server has discarded the revision that the client refers to (servers may discard old revisions to save space). In that case, the server must send the entire database to the client in "CREATE" changes.
In current status, as the clear flag is ignored, the result will be that the server changes will still overwrite the local data, but if client had objects that isn't part of the server database, those object will still persist in the client, so this could lead to an inconsistent state.
One workaround would be for the syncProtocol to call the following code before calling applyRemoteChanges():
const observableTables = db.tables.filter(table = table.schema.observable);
db.transaction('rw', observableTables, ()=> {
    return Promise.all(observableTables.map(table => table.clear());
}).then(()=> {
    // Get local revision after clearing the tables
    return db._changes.orderBy('rev').last();
}).then(currentRevision => {
    // Reset remoteBaseRevisions to current revision so that client wont re-send the delete changes:
    return db._syncNodes.where({url: connectedUrl}).modify({myRevision: currentRevision});
}).then(() => {
    // Now call applyRemoteChanges to apply the CREATEs
    return applyRemoteChanges(...);
});

This transaction will generetate lots of "DELETE" changes in _changes table followed by lots of CREATE changes from server though, but it would be temporary as the _changes table would automatically get cleaned up as no node would refer to the old revision anymore.

@dfahlander thanks for the input. Just to be clear my questions in the previous post are for the changes table in the server. I guess if the client sends a baseRevision greater than null or 0 and the server does not find changes with that revision and the latest db revision on the server is greater than the baseRevision from the client, the server knows that it needs to send CREATE changes for all tables/records in the db. If this is correct the server must trigger a changes event for the socket client to receive with the create changes. The poll pattern case is simple I would say since we can just answer with the create changes.

@nponiros @dfahlander I don't profess to understand how the ISyncProtocol implementations work in detail. That said I do have a suggestion re. clearing out the changes table on the server. First it should be up to the developer to decide when a client has been offline for too long a period that we won't bother to keep changes any longer.
However once the changes table on the server has been cleared I'd like to see something like "send all server doc's that have been added or updated in all tables since that client was last online" and "get the client to delete doc's that no longer exist on the server".
This will present a much better experience to that user than deleting their entire database and then recreating it from scratch.  For example the user has a Tablet that hasn't been used for 4 months, they travel overseas, get online with our app and simply need say 100 new/updated documents vs. deleting their 500MB database and waiting for it to download and recreate on some slow cellular phone data connection.

@nevf well in some sence this is what the changes table does. If a delete change is no longer in the table then how do I inform the client about the deletion? Similar with update. Either we keep some meta data on the server or the client must send its db so we can compare it to the server. Or we send creates and the client db gets deleted as @dfahlander said. But maybe I didn't understand exactly what you mean.
An alternative might be to compact the changes table. So basically not delete changes but merge them (what client/server already do before sending changes)

@nponiros If all documents include a last update timestamp, then a client can request the server to send all doc's updated since a certain time, ie. since the last connected 4 months ago. This is only needed if the changes table has been deleted.
As for deleted documents the server could keep these forever as they only need to contain a document id, not the entire document, so the space needed to store them would be minimal.

@nevf this is what I did before both on the server and the client (older versions of the sync server and sync client). So if I understand correctly you want to combine revisions with a timestamp. So if the server says revision too old the client sends the timestamp.
Saving the timestamp on the client should not be an issue. We can use the syncnode for that or even do it without syncable in the protocol implementation. But there are a few issues.

Even if we have a timestamp we cannot send an update change since we don't know what changed so we would send a create change.
We need to save extra data (the timestamp).
We need a place to save deleted IDs (I assume that an ID will never be reused).
What do we do with any old client changes that were never synced? It might be complex to merge those and resolve conflicts the same way changes in the changes table are merged.

Compacting the changes table would solve the "saving delete ids issue". When we compact we would also merge all updates of a document with the create change. To avoid data duplication we might be able to reference the id of the real doc in the changes table instead of duplicating it. Unless I am missing something compacting the changes would mean that we don't need the clear flag since we always keep all the changes. It is not ideal since we might send too much data if we compact too many revisions but probably still better than recreating the whole client db. One advantage of this approach is that it is server side only. Whoever implements the database connector can decide how to save the changes table. I choose the current approach because it was the easiest.

@nponiros In my use case document ID's will never be reused as they are UUID's.
From a UX perspective it would be nice if the server could notify (email) users who had been offline for some period and let them know they need to get the specific device/browser back online to ensure their db is efficiently kept up to date.  That is outside the scope of ISyncProtocol, but something I may well implement in my app.

If all documents include a last update timestamp, then a client can request the server to send all doc's updated since a certain time, ie. since the last connected 4 months ago.

In this situation the client would either replace their document if it existed, otherwise create a new document.

What do we do with any old client changes that were never synced? It might be complex to merge those and resolve conflicts the same way changes in the changes table are merged.

You could create client doc's that don't exist on the server. If they do exist you could replace the server doc with the client doc if the client doc is newer than the server doc. I haven't yet looked at how Dexie Syncable handles conflict resolution.
HTH a little.
PS. It would be great to get @dfahlander input on this.

If the server already has an object and we don't have information about updates (effectively we have a create change) which will be the case if the changes table is compacted or deleted, the server change wins. Also a client delete will be ignored. So basically with the current conflict resolution any old client changes will be ignored. resolve_conflicts.js implements the algorithm. Syncable doesn't resolve conflicts. Only the server does.
What I want to know is: do we really need the clear flag or would compacting the changes table + efficiently storing the changes of the changes table be good enough?
@nevf Don't forget the database is implementation specific so you can use a more efficient way to store your data.

authors: dfahlander nevf nponiros


text:
Track initialWidth with a GA custom variable

Could be nice to see how things are being embedded
See also #99.

Should now be working. Just waiting for data to show up.

repo: nprapps/dailygraphics


text:
Automl

Base code for AutoML.
Autogluon for AutoML training and testing.
Takes care of #1 using Sklearn train_test_split.
Takes care of #2: binary and multiclass ROC, PR, and confusion matrix. Further, by using the leaderboard built into AutoGluon we have more statistics on inference time, training time, and overall scores.

You'll also notice I pushed two csv files under the test directory. I used these to test the AutoML framework for both multiclass and binary classification problems. They are probably good to have around, though you may have better intuition where they belong.

committed suggested changes, linted and added comments, tested on binary and multiclass, merging.

repo: nprint/nprintML


text:
Unit in stplanr funtion

Hi Robin,
I am attempting to convert stplanr functions that simplifies the network into Python. However, I noticed that the unit used in the line "rnet_x = rnet_subset(rnet_x, rnet_y, dist = 20, min_length = 5)" is not in meter. Could you please explain this to me?
Zhao

I think the units are metres, no?
As per link here, sf uses Google's S2 Spherical Geometry Engine which has units of meters even for lon/lat CRSs: https://github.com/geopandas/geopandas/issues/2098
May have mis-understood something here, let me know if this doesn't fix it and happy to re-open.

repo: nptscot/networkmerge


text:
Does sign() use the public or the private key?

The sign() function should use the private key as I understand.
When connecting to ssh server it sends a "message".
The client uses ssh-agent to sign this "message" with the private key.
The server uses the public key to confirm, that the signature was signed with the private key.
Only the owner of the private key can make this signature, therefor he is authenticated.
What is the use-case for signing with the public key?

You are right, that the signature is made with a private key and the wording of the documentation of the sign() method is wrong. The public key is provided along with the message to sign to the ssh-agent, and is used to identify the private key that should be used to create the signature. I will update the documentation shortly

I have released a new version of the crate and updated the documentation to hopefully make this clearer

authors: bestia-dev nresare

repo: nresare/ssh-agent-client-rs


text:
[nrf fromtree] samples: subsys: settings: Add configuration for nRF54L15

Add configuration needed to run the sample on
nrf54l15pdk/nrf54l15/cpuapp.
Signed-off-by: Sebastian Głąb sebastian.glab@nordicsemi.no
(cherry picked from commit f8ddeed85c7c01d05a69e13d9d5c0738df338860)

Cherry pick of
https://github.com/zephyrproject-rtos/zephyr/commit/f8ddeed85c7c01d05a69e13d9d5c0738df338860

repo: nrfconnect/sdk-zephyr


text:
ベンチマークの環境変数について

こんにちは、練習で使わさせて頂いております。ありがとうございます。
ベンチマークの実行方法について
https://github.com/nri-isucon/nri-isucon2022/blob/main/docs/vagrant.md?plain=1#L56
TARGET_PORT=80 TARGET_IP_ADDR=127.0.0.1

がおそらく正しいと思うのですがいかがでしょうか？

@yuki2006 はじめまして、ご報告ありがとうございます。
また、ご活用いただきありがとうございます。
確かにドキュメントが誤っておりまして、記載いただいた内容が正しいです。
ドキュメントを修正いたします。


text:
Update sbt to 1.5.2

Updates org.scala-sbt:sbt from 1.4.9 to 1.5.2.
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!

Ignore future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "org.scala-sbt", artifactId = "sbt" } ]

labels: library-update, semver-minor

Superseded by #294.


text:
help！！！！

When I use lpush to add UUID string to redis, it will automatically become UUID in redis and key does not exist

In lua that key will faill in a string. The minus ("-") symbol is a reserved character for patterns. For this to work correctly you need to use:
9076afc1%-4559%-4ac2%-8171%-7ecadb240ca2
You should use a string parser if you need to check for this in lua.
http://lua-users.org/wiki/StringLibraryTutorial

ITNOA
@hzm199822 if your issue is resolved, please close this issue

authors: dlannan-fmad hzm199822 soroshsabz

repo: nrk/redis-lua


text:
large variants for logos

Figma file is now updated with large-variants for all logos in logoand preview that follow the new design profile. These logo are now identical to smallversions, with the exception of the inner dimensions of the NRK logo. large logos use the original design of the NRK logo, for use where the height of the first bar of the NRK logo is > 32 px, rather than the optically adjusted logo for use where the height of the first bar of the NRK logo is =< 32 px.
Should be ready to push to main repo.

Vi gjør denne når byggesystem for core-icons er ferdig

authors: asmundmatzow stianlj

repo: nrkno/core-icons


text:
Fix for operations done in the end of the list, where receives no element_target

Fix issue when element_target is undefined.

Looks good to me!
@Wallacy feel free to join us at the Sofie-Slack if you'd like:
https://join.slack.com/t/sofietv/shared_invite/enQtNTk2Mzc3MTQ1NzAzLTJkZjMyMDg3OGM0YWU3MmU4YzBhZDAyZWI1YmJmNmRiYWQ1OTZjYTkzOTkzMTA2YTE1YjgxMmVkM2U1OGZlNWI

authors: Wallacy nytamin

repo: nrkno/tv-automation-mos-connection


text:
How to Generate IGES/STEP file from Mesh/STL using Python ?

How to Generate IGES/STEP file from Mesh/STL using Python or C++?

Well, not with meshio. :smile:
meshio, as the name indicates, treats meshes. IGES and STEP specify CAD geometries.

Hi @nschloe ,
   I am asking how to generate cad [step/iges] file from 3d mesh or stl using python?

is there any way to convert ?using scripts ?

I don't know; not with meshio anyway. You'll have to do it yourself.

It can be done with a cpp library and can be exposed as an API. I have done the same using cpp and python flask.

authors: asirihewage nschloe selvakarna

repo: nschloe/meshio


text:
Install, without Traefik Pilot?

Hey,
This plugin looks cool, but I've never added plugins before. I can see that it's on Traefik Pilot, but to use that I need to subscribe to that. Is there a way to install this plugin w/o that?
Can I place something in the traefik directory to activate the plugin?
Thanks in advance :)
Mike.

Hi Mike 👋
yes, there is a way. In fact, I'm not using pilot either.
What you're looking for is local / private plugins.
I'm running traefik with Docker Compose, so here's what I'm doing:
# docker-compose.yml

version: "3"

services:
  traefik:
    image: "traefik:v2.6.2@sha256:860fc052d2b48c0b05b76c47baeb6fdeea316b8950afc1e230e51f11e2b71157"
    container_name: "traefik"
    ports:
      - "443:443"
    networks:
      - "traefik"
    volumes:
      - "/opt/traefik/config/traefik.yml:/etc/traefik/traefik.yml:ro"
      - "/opt/traefik/config:/etc/traefik/config:ro"
      - "/opt/traefik/plugins:/plugins-local"
      # ...
    restart: unless-stopped

On my host system, the traefik-plugin-geoblock repository is located at:
/opt/traefik/plugins/src/github.com/nscuro/traefik-plugin-geoblock

traefik.yml (static config) then contains:
# traefik.yml

experimental:
  localPlugins:
    geoblock:
      moduleName: github.com/nscuro/traefik-plugin-geoblock

One of the dynamic configs in /opt/traefik/config/dynamic finally defines the middleware based on the plugin:
# geoblock.yml

http:
  middlewares:
    geoblock:
      plugin:
        geoblock:
          enabled: true
          databaseFilePath: /plugins-local/src/github.com/nscuro/traefik-plugin-geoblock/IP2LOCATION-LITE-DB1.IPV6.BIN
          allowedCountries: ["DE"]
          allowPrivate: true
          disallowedStatusCode: 204

Note that databaseFilePath is for the path within the container.
I then activate the middleware using labels on my service containers, like so:
# docker-compose.yml

# ...
      traefik.http.routers.myservice.middlewares: "geoblock@file"

Please let me know if you have further questions! :)

Much appreciated!
And this is only for v2 I assume? :)

Yeah, I don't think traefik v1 supports plugins. At least private plugins are v2 exclusive.

authors: LordMike nscuro

repo: nscuro/traefik-plugin-geoblock


text:
In order for company-go to work with foreign packages, it requires a -source flag

Per mdempsky/gocode#32, a -source flag needs to be passed to this forked version of gocode in order for it to find references in foreign packages.
Since company-go in MELPA comes from this repo, it puts us in a strange position since nsf/gocode doesn't supports this flag. With Go's own Language Server Protocol server in development, the need for the gocode tool may "soon" be obviated. Have you considered splitting out the emacs packages into their own repos?

It wasn't added by me there: https://github.com/melpa/melpa/blob/master/recipes/company-go. If it wasn't added by me, then it probably can be changed by somebody else also.

authors: kat-co nsf

repo: nsf/gocode


text:
WIP: Update graphite 1.1.3

Fix failure on centos 7
/var/log/nginx/error.log contained:
2018/06/17 11:38:43 [error] 6691#0: *13 open() "/usr/share/nginx/html/tags/tagMultiSeries" failed (2: No such file or directory), client: 127.0.0.1, server: _, request: "POST /tags/tagMultiSeries HTTP/1.1", host: "127.0.0.1"

This was due to the unset parameter GRAPHITE_URL that defaulted to http://127.0.0.1:80 that then ended up at the default nginx vhost. I have added the parameter to work around this.
# URL of graphite-web instance, this is used to add incoming series to the tag database
# GRAPHITE_URL = http://127.0.0.1:80

Added a test to detect missing params.

Fix failure on Ubuntu 14.04
We install a older version as a workaround on trusty https://github.com/nsg/ansible-graphite/blob/master/tasks/Debian.yml#L18 ... and in the pip install list we specified an different version. This worked on all non-trusty systems ... I just removed Twisted and a few redundant items from the list.
Broken Graphite Web UI
/static files where not served over uwsgi interface. Added it to nginx.

Added a test to detect this

Remove support for 0.9.x
Instead of maintaining a different config file for the old 0.9.x relases, I will just remove it instead. Most people most likely will go with the newer version anyway, and if you really need the 0.9.x release, just use https://github.com/nsg/ansible-graphite/releases/tag/2.1
Misc

Drop old unsupported Ansible versions
Fixes and tweaks

@odyssey4me FYI, I solved it.
Basically, the new tag-thing with GRAPHITE_URL in 1.1.3 was the reason behind the error logs on CentOS, and to new Twisted version was the reason behind the trusty failure.
Merge time! Thank you for the PR (#32)

@nsg Oh fantastic! Thanks for going ahead and spending the time to figure it out.

repo: nsg/ansible-graphite


text:
Browser cache prevents new data from being seen promptly

Matt is going to research how the browser cache behaves and how we can manipulate it. He will post ideas on slack and in the github ticket.
If browser refresh is found to be 2 hours or less, then lets not spend too much time fixing this.
After discussion with Matt and Karl, I decided to create this card.
When we update the input of the web-app, the data on the server side are ingested. They are also distributed to the client when we call the website in a private window. But they don’t seem to be distributed to the client, when the client use a regular window. As explained by Matt, the data/metadata are stored in the cache of the client. A reset button has been developed https://trello.com/c/N5H7XTTi but when I tried it, it didn’t completely work. In addition, the user doesn’t specifically know when there’s an update.
This is a problem for all the metadata, for instance if we need to correct a label, or resend a bad geojson, but possibly also for the geotiffs and plots displayed. For instance, if a user open snow today in the morning at 8, and that the process didn’t finish the generation at that time, the user could see the data generated the previous day and not be warned that they are updated data available.
Since, snow-today is specifically a near-real-time website, my personal view is that this refreshing problem is an issue preventing the public release of the website and communication to this release to the media.
Does it expire in a certain amount of time, e.g. every 24 hours?

The answer to the browser cache question is "it's complicated". We should be using headers or another technique to control it. The question is how we want to do it :slightly_smiling_face: We can use max-age to set for example 15 minutes or 30 minutes? I'm thinking it should be around the average amount of time we expect a user to use the app for in one sitting. That's just a gut feeling. We can't really use Expires header to set an explicit expiry datetime because we're using a static web server (NGINX). We'd need a way to dynamically set expiration datetime based on when we expect the next ingest will occur.
If we can update the client to use If-Modified-Since (based on the lastDateWithData in the json) then we can get the best of all worlds and reduce max-age to an even shorter value. Does NGINX work with this out of the box?

We decided we will implement Cache-Control: max-age=900 to set cache expiration to 15 minutes.
We plan to continue exploring the possibility of using If-Modified-Since to further improve network performance IFF we have extra time remaining after other tasks completed.

Implemented and tested by @mfisher87 @windnagelnsidc @sebastien-lenard . All 3 of us saw the new data after waiting 15 minutes. 2 of us saw the new data sooner than that, but that's OK; early cache invalidation can happen for reasons out of our control and the consequence is positive: the users see the new data sooner.

repo: nsidc/snow-today-webapp


text:
FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory

Describe the bug
I am currently using the latest BGPAlerter version (1.32.0) with the latest 'config.yml' file in which only the Slack channels option is enabled to post alerts. However, I've noticed that after 15 minutes, it consumes all the memory limit allowed to it and crashes. To address this issue, I doubled the memory limit, and this time it runs for 4 hours and crashing again with the same error. This led me to suspect that the Node.js application's code may have potential memory leaks or inefficiencies. The strange part is that if I use an older 'config.yml' file (from the 1.29 release), this problem disappear. see below logs
<--- Last few GCs --->

[70:0x7fa67e593010]   945326 ms: Scavenge (reduce) 496.2 (507.3) -> 496.1 (508.3) MB, 11.0 / 0.0 ms  (average mu = 0.872, current mu = 0.632) allocation failure;
[70:0x7fa67e593010]   949133 ms: Mark-sweep (reduce) 497.0 (508.3) -> 496.8 (509.1) MB, 3334.4 / 0.0 ms  (+ 207.2 ms in 15 steps since start of marking, biggest step 94.2 ms, walltime since start of marking 3807 ms) (average mu = 0.719, current mu = 0.116

<--- JS stacktrace --->

FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory
Aborted (core dumped)

Provide an example
Snippet of config.yml
connectors:
  - file: connectorRIS
    name: ris
    params:
      carefulSubscription: true
      url: ws://ris-live.ripe.net/v1/ws/
      perMessageDeflate: true
      authorizationHeader: null
      subscription:
        moreSpecific: true
        type: UPDATE
        host:
        socketOptions:
          includeRaw: false

monitors:
  - file: monitorHijack
    channel: hijack
    name: basic-hijack-detection
    params:
      thresholdMinPeers: 3

  - file: monitorNewPrefix
    channel: newprefix
    name: prefix-detection
    params:
      thresholdMinPeers: 3

  - file: monitorPath
    channel: path
    name: path-matching
    params:
      thresholdMinPeers: 1

  - file: monitorVisibility
    channel: visibility
    name: withdrawal-detection
    params:
      thresholdMinPeers: 40
      notificationIntervalSeconds: 3600

  - file: monitorAS
    channel: misconfiguration
    name: asn-monitor
    params:
      thresholdMinPeers: 3

  - file: monitorRPKI
    channel: rpki
    name: rpki-monitor
    params:
      thresholdMinPeers: 3
      checkUncovered: false
      checkDisappearing: false

  - file: monitorROAS
    channel: roa
    name: rpki-diff
    params:
      enableDiffAlerts: true
      enableExpirationAlerts: true
      enableExpirationCheckTA: true
      enableDeletedCheckTA: true
      enableAdvancedRpkiStats: false
      roaExpirationAlertHours: 2
      checkOnlyASns: true
      toleranceDeletedRoasTA: 20
      toleranceExpiredRoasTA: 20

  - file: monitorPathNeighbors
    channel: path
    name: path-neighbors
    params:
      thresholdMinPeers: 3

reports:
  - file: reportSlack
    channels:
      - hijack
      - newprefix
      - visibility
      - path
      - misconfiguration
      - rpki
      - roa
    params:
      showPaths: 0 # Amount of AS_PATHs to report in the alert
      colors:
        hijack: '#d60b1c'
        newprefix: '#fa9548'
        visibility: '#fad648'
        path: '#42cbf5'
        rpki: '#d892f0'
        roa: '#d892f0'
      hooks:
        default: <my-slack-channel-uri>

############################
# Notification settings:
# - notificationIntervalSeconds
#       Defines the amount of seconds after which an alert can be repeated. An alert is repeated only if the event that
#       triggered it is not yet solved.
# - persistStatus
#       Persist the status of BGPalerter. If the process is restarted, the list of alerts already sent is recovered
#       and they are not repeated. The process must be able to write on disc, this option will create a file inside .cache/

notificationIntervalSeconds: 86400
persistStatus: true

############################
# REST API settings:
# - rest.host
#       The IP address the server will listen. The default value is localhost, this means the API will not be reachable
#       from another host. To make it public use null or 0.0.0.0.
# - rest.port
#       The port the server will listen

rest:
  host: localhost
  port: 8011

logging:
  directory: logs
  logRotatePattern: YYYY-MM-DD
  maxRetainedFiles: 10
  maxFileSizeMB: 15
  compressOnRotation: false
  useUTC: true

checkForUpdatesAtBoot: true
generatePrefixListEveryDays: 0

############################
# The files containing the monitored prefixes. Please see prefixes.yml for an example.
# This is an array (use new lines and dashes!)

monitoredPrefixesFiles:
  - prefixes.yml

############################
# RPKI settings:
# Global RPKI settings shared across all monitors requiring RPKI data
# More information here: https://github.com/nttgin/BGPalerter/blob/main/docs/rpki.md
#
# To enable ROA expiration alerts, you need VRPs including expiration timestamps.
# "rpkiclient" is the default vrpProvider since is the only one supporting ROAs expiration data.

rpki:
  vrpProvider: rpkiclient
  preCacheROAs: true
  refreshVrpListMinutes: 15
  markDataAsStaleAfterMinutes: 120

############################
# Advanced settings (Don't touch here!)
# Please, refer to the documentation to know the meaning of the following parameters.

alertOnlyOnce: false
fadeOffSeconds: 360
checkFadeOffGroupsSeconds: 30
pidFile: bgpalerter.pid
maxMessagesPerSecond: 6000
multiProcess: false
environment: production
configVersion: 2

prefixes.yml is auto generated using below command
npm run generate-prefixes -- --a 8422 --o prefixes.yml
Expected behavior
Expectation is bgpalerter should run with any config without any issue.
Are you using the binary or the source code?
docker image

Hi @jayeshkumarbhoi,
Your log shows you are giving to the process a limit of 500MB.
"BGPalerter requires a machine with 4GB of RAM and swap enabled. If you are using small AWS EC2 instances (or similar), remember to activate the swap."
From the doc: https://github.com/nttgin/BGPalerter/blob/main/docs/installation.md#requirements
This has been already discussed in previous opened ticket as well.

authors: jayeshkumarbhoi massimocandela

repo: nttgin/BGPalerter


text:
fix MMC bug on calculating n_labels

#136

Codecov Report

Merging #137 into master will not change coverage.
The diff coverage is 100%.

@@           Coverage Diff           @@
##           master     #137   +/-   ##
=======================================
  Coverage   89.69%   89.69%
=======================================
  Files          34       34
  Lines        1358     1358
=======================================
  Hits         1218     1218
  Misses        140      140

Impacted Files
Coverage Δ

..._strategies/multilabel/maximum_margin_reduction.py
97.77% <100%> (ø)
:arrow_up:

Continue to review full report at Codecov.

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

authors: codecov-io yangarbiter

repo: ntucllab/libact


text:
🛑 Secret Site BIS is down

In cb9fd04, Secret Site BIS ($SECRET_SITE) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Secret Site BIS is back up in 9f1efbf after 38 minutes.


text:
🛑 Secret Site BIS is down

In 057040d, Secret Site BIS ($SECRET_SITE) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Secret Site BIS is back up in f374243 after 38 minutes.


text:
🛑 TCP ping is down

In 26fb6ec, TCP ping (1.1.1.1) was down:

HTTP code: 0
Response time: 0 ms

Resolved: TCP ping is back up in 6389dc3.


text:
🛑 Università e ricerca is down

In 5994cc3, Università e ricerca (https://www.mur.gov.it/it) was down:

HTTP code: 403
Response time: 851 ms

Resolved: Università e ricerca is back up in 49ed02a.


text:
🛑 Guardia di Finanza is down

In 150db49, Guardia di Finanza (https://www.gdf.gov.it) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Guardia di Finanza is back up in 22b6786 after 33 minutes.


text:
fix: change path to latexindent

問題
vscode上でフォーマットを行うと,
latexindentのパスが正しくないという旨のエラーが表示され自動フォーマットが実行されないようです.
原因
#5 でTexLiveのバージョンを2022へ変更した際に, latexindentのパスも変わったようです.
対処
devcontainer.json内のlatex-workshop.latexindent.pathを2020から2022へ書き換えました.

修正ありがとうございます！

repo: nukopy/latex-in-docker-on-vscode


text:
Feature/diktat cli arguments pattern#1854

A test PR to validate before creating a proper one in main repo

Welcome to Codecov :tada:
Once merged to your default branch, Codecov will compare your coverage reports and display the results in this comment.
Thanks for integrating Codecov - We've got you covered :open_umbrella:

authors: codecov-commenter nulls

repo: nulls/diktat


text:
How to run this tool with 10g nic ?

I need a way to run this tool to send millions of packets per second with 10g nic.
please help me.

For such task, please use masscan directly (https://github.com/robertdavidgraham/masscan) and follow https://github.com/robertdavidgraham/masscan#pf_ring

but I need Nmap scripting abilities too, so it's better to say let's find out how we can use pfring with jfscan ?!

This will work with only with Masscan and scans will be much faster, but Nmap will not utilize such throughput as it does not have it's own TCP/IP stack implemented as the masscan does.

Ok, so can you please tell me how we can run Masscan on the 10 GB nic mode and the Nmap on the 1 GB nic mode in the Jfscan tool ?
Or please implement this feature on your tool.


text:
How to remap gc[count]{motion} and gb[count]{motion}

Hi, I'm new to neovim and inverted my motions, for me K is down and J is up, so I wanted to remap gc[count]{motion} and gb[count]{motion} to respect that. How can I do it?
Thanks!

Please use Discussions to ask your question.

authors: jmwielandt numToStr


text:
improve fallback sink doc

We need more details on how to use fallback sink.

when to call responseFailure as compared to responseFallback. add it to  https://numaflow.numaproj.io/user-guide/sinks/fallback/
how to specify the spec.

how does backoff work with onFailure - does it apply to ALL types of onFailure strategies?
what are the options for onFailure? add it to https://numaflow.numaproj.io/APIs/#numaflow.numaproj.io/v1alpha1.OnFailureRetryStrategy add it to https://numaflow.numaproj.io/APIs/#numaflow.numaproj.io/v1alpha1.RetryStrategy

https://numaflow.numaproj.io/user-guide/sinks/retry-strategy/

authors: KeranYang kohlisid

repo: numaproj/numaflow


text:
Add inspect_types (etc) docstrings

Feature request
When I use tab-completion to explore my jit-compiled functions, I see inspect_* methods that are actually super useful. However, if I want to see a description of what they do, I need to go online here. Doing inspect_asm? in IPython yields <no docstring>. It would be great if the methods contained these docstrings, not to mention a link to more extensive documentation about how to read the resulting output.

Thanks for the request, this is a good point. Would you be interested in creating a patch to add these docstrings? It would be most welcome. Thanks!

Sounds like a good item for the SciPy sprints.  :)

@seibert it was! Sorry that I was too busy with other stuff! Would you be able to point me to the right place to look in the codebase?

@jni, https://github.com/numba/numba/blob/37ab1420fa87d02b635991b32f0faf5c65e8fc4d/numba/dispatcher.py#L397-L461, thanks.

authors: jni seibert stuartarchibald

repo: numba/numba


text:
methods of numpy.random can not reproduce the same probability with the same random seed under the nopython=True

numpy.random.seed method seem to be failed under the func with the nopython=True mode.
windows
numba version '0.53.1'
numpy version '1.19.5'
Codes for this problem are as follows, thanks:
import numpy as np
from numba import jit

def _normal(K=2):
    print(np.random.randint(K), np.random.rand())

@jit(nopython=True)
def _numba(K=2):
    print(np.random.randint(K), np.random.rand())

Test1:
np.random.seed(2022)
_normal()
np.random.seed(2022)
_normal()

Test1 output:
0 0.009358613807764704
0 0.009358613807764704
Test2:
np.random.seed(2022)
_numba()
np.random.seed(2022)
_numba()

Test2 output:
0 0.9014572675655993
0 0.6993665754033217

Thanks for the report. This is known behaviour (docs: https://numba.readthedocs.io/en/stable/reference/numpysupported.html#random), the Numba RNG state and NumPy RNG states are entirely separate. Therefore calling np.random.seed() will only impact the NumPy RNG seed and this explains the behaviour in the above. To make Numba's RNG state the same as NumPy's, the np.random.seed() function needs calling from within a JIT compiled region, for example:
import numpy as np
from numba import jit
from numba.extending import register_jitable

# Fixed version, use a set_seed function and register_jitable

@register_jitable # This will run in JIT mode only if called from a JIT function
def set_seed_compat(x):
    np.random.seed(x)

@jit(nopython=True)
def baz(K=2):
    set_seed_compat(2022)
    print(np.random.randint(K), np.random.rand())

print("\nfixed:\n")

# Python version
baz.py_func()
baz.py_func()

# JIT version
baz()
baz()

Hope this helps?

Thanks!

No problem, thanks for closing.

authors: hIxiIan stuartarchibald


text:
Explore Mode: "When correct" not working if a part has no marks

Suppose you pose an explore mode question and you want the students to enter three numbers between 1 and 999, then let them proceed to the next part of an "explore mode" question if they entered three such numbers.
This should be possible using the "Availabilty"-option "When correct" for the second part, but this only works, if the first part assigns marks > 0 to the answers, which in some cases might not be desired.
If yo assign a mark of 0 to the questions in the first part, then the "correct"-trigger does not seem to become switch, leaving the second part unavailable.

I think I got the opposite behaviour to this: I created a part with two gaps, each with zero marks available. Answering one correctly but the other incorrectly produced full credit, which I think is wrong. I've just committed a change to the gap-fill marking algorithm to fix this.
Can you give me a link to a question that demonstrates the behaviour you described?

Here is a question that uses this (I went with 1 mark per gap as a workaround): https://numbas.mathcentre.ac.uk/question/77207/zahlendarstellung-am-quipu/preview/

Strange, I can't seem to reproduce it, I changed the values back to 0 for each mark an now it works... i could swear it did not work the first time.

OK, I'll close this then. Reopen it if you see the problem again.

authors: avohns christianp

repo: numbas/Numbas


text:
Come up with a way to use custom types within Map and List types

Currently the custom type info is lost when loading a map, as the only type that can be found is the basic dynamo backing type.  For example, there is no way to tell that the value for 'foo' is a DateTime and not just a string:
{'foo': {'S': '2015-07-31T04:45:13.529425+00:00'}}

It may be possible when specifying the type to indicate the expected structure, although this is harder (impossible?) with arbitrary data:
class Model(engine.model):
    id = Column(Integer, hash_key=True)
    content = Column(Map(foo=DateTime, bar=UUID}))

class Model(engine.model):
    id = Column(Integer, hash_key=True)
    content = Column(List(DateTime, UUID))

Considering the following for Map:
Document = Map(**{
    'Rating': Float,
    'Stock': Integer,
    'Description': Map(**{
        'Heading': String,
        'Body': String,
        'Specifications': String
    }),
    'Id': UUID,
    'LastPurchased': DateTime
})

class Model(engine.model):
    sequential_id = Column(Integer, hash_key=True)
    document = Column(Document)

Map is complete, just need to figure out how List typing will work.
Options:

Single type, variable length
List of types, fixed length

Going with single-typed lists by default, and maybe add a section to the docs Advanced - Custom Types that explains how to create a multi-type fixed length list.

repo: numberoverzero/bloop


text:
[Enhancement] Refactoring suggestions

Is your feature request related to a problem? Please describe.
Working on a separate feature, it took a while for me to understand the paradigms of this linter and to decide between different approaches to making additions. Some general hurdles I've noticed:

Functions have very long lists of arguments, which makes readability and safety a problem, especially when many arguments have the same type such as *ast.CallExpr or ast.Expr. Common global contextual things like Config are probably better kept as context through e.g. a Visitor method receiver.
On a related note to (1), many conceptually grouped data fields are spread out into different variables rather than a handy abstraction. a single concept like "Gomega assertion" e.g. Expect(value, err).To(Succeed()) can probably be encapsulated into something like type GomegaAssertion { ActualFunction *ast.Ident; ActualArgument ast.Expr; ActualArguments []ast.Expr; AssertionFunction *ast.Ident; AssertionCall *ast.CallExpr }, or an interface which returns the same via methods. The Gomega handler does this to some extent, but it could have more features. pass and reportBuilder can probably be grouped into a Visitor abstraction
The ginkgo_linter.go file is very long an a pain to scroll through to find the relevant parts of code. It would be nice to break this out into several chunks, maybe even one per "rule".
Methods are not commented / documented. I normally prefer well-named identifiers over comments, but under the level of abstraction here, examples would provide a lot of help to a newcomer to understand an individual function without going through the entire call stack of that function. Also exacerbates (2) since there isn't a common, reused encapsulation that makes it very clear what each argument of a helper function is based on documentation of the abstraction.
Dealing with AST subtree cloning correctly is a pain, and creating copies of nodes pessimistically is probably bad for performance, although I don't really know the right solution here.

Describe the solution you'd like
Some suggestions above, but put concisely:

Common encapsulation structures to remove the need to pass tons of arguments through functions
Method receiver to carry around common context like analysis.Pass and config.Config
More comments on what methods do, ideally with examples, but concise sentences would be a good improvement.
Separate files for the main linter logic to avoid having to scroll over 2000 lines of code.

Describe alternatives you've considered
N/A
Additional context
N/A

Yes, I agree, the code became too complex and it's time for refactoring. Thanks for bringing this up @navijation.

authors: navijation nunnatsa

repo: nunnatsa/ginkgolinter


text:
Sorting order of recent articles

Describe the bug
By adding a weight to articles, the recent articles section on home gets sorted by weight instead of date.
Expected behavior
It should be ordered by date because it's called recent.
Solution
Add ByDate.Reverse in the partial recent-articles for cardview-fullwidth.html, cardview.html and list.html.
{{ range first $recentArticles (.Paginate (where .Site.RegularPages.ByDate.Reverse "Type" "in"   .Site.Params.mainSections)).Pages }}

Hugo by default lists content by their weights and then by date. https://gohugo.io/templates/lists/#sort-content
What do you think about adding orderByWeight to Recents (and to terms.html for cohesion)?
This would allow for configuring order scheme similar to list template in other parts
@lambertwiddersinn  @nunocoracao

I think it's a good idea to add that to recents and terms for more cohesion. For lists I can choose now the sorting logic by date or weight thanks to your work. It works really well.

I would rather define a default that makes sense instead of adding more configs. It's already pretty bloated.

authors: lambertwiddersinn mnjm nunocoracao

repo: nunocoracao/blowfish


text:
👤 Update users.json

Updating users.json to add Synaptic Sugar, a videogame developer with a static website made with Hugo and Blowfish 🐡 🎮 Thanks @nunocoracao!

Thanks @ncocchiaro
(sorry this took me a long time to merge)

authors: ncocchiaro nunocoracao


text:
Is this still maintained?

Is this package still maintained? And if it if can you give an example usage with axum for example?

You can create WebSocket instance from anything that implement AsyncRead or AsyncWrite

Is this package still maintained? And if it if can you give an example usage with axum for example?

I will consider adding some examples with other http frameworks


text:
[T5A3][T13-B2] Gao Yu

Ready for review.

@GaoYu-Karen :Accepting this PR without a review because another of your PRs for this tutorial was reviewed in detail.

authors: GaoYu-Karen KulaniT


text:
Fix #14 - Add hasTargetSystem and hasTargetComponent fields to MavlinkMessage

See #14 for more information.

I'm going to continue on my own repo instead.


text:
nut-popup在支付宝小程序上样式丢失

nutui-uniapp 版本号
1.7.7
平台
alipay
重现链接
无
重现步骤
使用nut-popup写一个弹窗组件，在支付宝小程序平台，样式丢失。
期望的结果是什么？
h5 和微信小程序样式正确。

实际的结果是什么？
支付宝样式错误

环境信息
uniapp的版本：

4.08.2024040123
4.07.2024032720
4.06.2024032513
3.99.2023122611

系统信息
System:
OS: macOS 14.2.1
CPU: (8) x64 Intel(R) Core(TM) i5-1038NG7 CPU @ 2.00GHz
Memory: 1.01 GB / 16.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
Node: 16.14.2 - /usr/local/bin/node
Yarn: 1.22.10 - /usr/local/bin/yarn
npm: 8.13.2 - ~/node_modules/.bin/npm
pnpm: 8.6.5 - /usr/local/bin/pnpm
Watchman: 2023.06.26.00 - /usr/local/bin/watchman
Browsers:
Chrome: 124.0.6367.60
Safari: 17.2.1
其他补充信息
使用uniapp版本 4.08.2024040123、4.07.2024032720、4.06.2024032513、3.99.2023122611 支付宝小程序样式丢失，使用"@dcloudio/uni-app": "3.0.0-3090820231124001"这个版本支付宝小程序样式展示正确

这是一个已知问题， 我也不知道为什么在支付宝小程序会编译成这样😵💫， 可以看一下文档中注意事项，有解决办法

uniapp  自 3.99.2023122611 开始新增了支付宝小程序的 styleIsolation 配置，默认值由 shared 调整为 apply-shared，导致嵌套组件样式异常，并且目前不支持单独组件修改配置，这属于 uniapp 方面的破坏性变更
现在只能先手动在 manifest.json 中的 mp-alipay 字段下添加 styleIsolation 配置，将默认值重置为 shared，等 uniapp 后续支持单独配置后，组件内部再跟进修改
{
  "mp-alipay": {
    "usingComponents": true,
    "styleIsolation": "shared"
  }
}

repo: nutui-uniapp/nutui-uniapp


text:
Proovida uut uuendamise viisi

Lisada UPDATE.bat fail, millel vajutades saab kasutaja uusima versiooni automaatkontrollist.
Hetkel lihtsalt command:  git pull

Liiga keeruline, lihtsam on jagada discordis, moodle'is vüi meiliga


text:
Support data-theme

Is your feature request related to a problem? Please describe.

In order to work with daisyUI, we need to add data-theme="dark" into the <html> tag, see https://daisyui.com/docs/themes/
Describe the solution you'd like

The module could automatically set it, same as the class.
Additional context

Demo to reproduce, made with Next: https://stackblitz.com/edit/daisyui-nextjs-ftqupt?file=pages%2Findex.js

Is this something you could look into @danielroe if you have time?

repo: nuxt-community/color-mode-module


text:
[Types] Add missing optional properties to ReCaptchaOptions

🔍 Context
Closes #120 - ReCaptchaOptions interface lacks 2 properties needed for v2 (language and size)
🏗 Work

[x] Update ./types/index.d.ts

Bump @mvrlin 😇🙏

Thank you, @randompch ❤

@randompch update to @nuxtjs/recaptcha@1.1.2

authors: mvrlin randompch

repo: nuxt-community/recaptcha-module


text:
Styling appears broken on @nuxtjs/sanity docs website

Hi, I wanted to report that the styling on the @nuxtjs/sanity docs website appears to be broken. The website is functional but the styling is not being applied correctly, making the content difficult to read.
https://sanity.nuxtjs.org/
Thanks in advance!

thanks for flagging! should be resolved with a lockfile update + a hotfix in pinceau

repo: nuxt-modules/sanity


text:
/node_modules/h3/dist/index.mjs' does not provide an export named 'useCookie'  when using serverSupabaseUser

Hi there ! First of all, thanks a lot for this module :) !
Version
@nuxtjs/supabase: 0.1.28
nuxt: 3.0.0
Tried also with different node versions.
Steps to reproduce
Create a server function route and try using the serverSupabaseUser
import { serverSupabaseUser } from "#supabase/server";

export default eventHandler(async (event) => {
  const user = serverSupabaseUser(event);
  return user;
});

What is Expected?
To get an object in return
What is actually happening?
Nitro server error on server init

 ERROR  [worker reload] [worker init] The requested module '/node_modules/h3/dist/index.mjs' does not provide an export named 'useCookie'                                                                    13:37:00

  import { eventHandler, setHeaders, sendRedirect, defineEventHandler, handleCacheHeaders, createEvent, getRequestHeader, getRequestHeaders, setResponseHeader, assertMethod, readBody, setCookie, createApp, createRouter as createRouter$1, lazyEventHandler, toNodeListener, useCookie, getQuery, createError } from 'node_modules/h3/dist/index.mjs';
  ^^^^^^^^^                                                                                13:36:50
  SyntaxError: The requested module 'node_modules/h3/dist/index.mjs' does not provide an export named 'useCookie'
  at ModuleJob._instantiate (node:internal/modules/esm/module_job:123:21)
  at async ModuleJob.run (node:internal/modules/esm/module_job:189:5)
  at async Promise.all (index 0)
  at async ESMLoader.import (node:internal/modules/esm/loader:526:24)
  at async loadESM (node:internal/process/esm_loader:91:5)
  at async handleMainPromise (node:internal/modules/run_main:65:12)

Idea
Might be related with recent changes in the h3 dependency of vite-builder ?

Oh sorry I was using the wrong server function method haha.
it's defineEventHandler insteaad of eventHandler

Nop, problem persists, wasn't that :D .

Ok found my bug, after figuring out that h3's useCookie was already replaced getCookie found out that my @nuxtjs/supabase dependency was not being updated despite having cleared my .lock file and all relevant folders. Might be something related with the registry.
Changed manually
    "@nuxtjs/supabase": "^0.1.28",

for
@nuxtjs/supabase": "^0.3.0",

repo: nuxt-modules/supabase


text:
Example with Custom Icons Working with ssr:false

I'm trying to use custom iconify collections, as mentioned in #311 and I can get it to work under normal conditions.
But when generating with ssr:false the icons don't appear.
I was hoping someone might have an example of how to get this working?
Similar to #311, I can't do the svg custom collection provided as there are an enormous number of svg files.

That's the tricky part I mentioned in #311. If you don't use ssr but have an API server, you can set provider: 'server' so the icons would be requested from the server. Otherwise, there is honestly no way to serve custom icons (because Iconify doesn't have your custom icons) other than bundle them all into the client.

I understand the server part; I'm just trying to get the client bundle working with the custom icons and I seem to have no luck.

https://github.com/JohnCampionJr/nuxt-icon-custom
In case it will help anyone else, I've put together a sample that seems to work as expected.
Can you check real quick and see if there is any optimizations to make?

authors: JohnCampionJr antfu

repo: nuxt/icon


text:
Feature: Set serve-static options in nuxt.config

This would enable us to configure the headers directly rather than using current workaround of secondary serve-static middleware. Will submit a PR when I can!

In nuxt.confg.js, render.static is the configuration of serveStatic.
https://github.com/nuxt/nuxt.js/blob/dev/lib/core/renderer.js#L251

😳
Thanks, I somehow missed that!

authors: clarkdo homerjam


text:
too many dependencies in nuxt.js

When I use nuxt.js as an expreess.js middleware, I have to install too much dependencies like "babel-core" "postcss" or "webpack" in production mode. So I think nuxt render should move to a seperate repo.

This question is available on Nuxt.js community (#c2679)

nuxt-start has been published for only including core functionality, it won't include the dependencies you mentioned.
Before 2.0 released, you can try nuxt-edge-start now.
https://www.npmjs.com/package/nuxt-edge-start

authors: clarkdo jinze


text:
can not find : ./node_modules/nuxt/bin/nuxt start

Hi, We have updated our nuxt.js version to 2.4.0, it seems that in this version folder ./node_modules/nuxt/bin/nuxt-start and start script is removed, is it true? Then what is replaced? Any help link? Thanks in advance.

This question is available on Nuxt community (#c8961)

Hi @aebrs. Please also install nuxt-start package.

1- Thanks.
2- I installed it on server and yet can not run my web site.
I am using pm2 like this:
module.exports = {
apps : [
{
name: "nuxt",
script: "./node_modules/nuxt-start/bin/nuxt-start",
env: {
"HOST": "127.0.0.1",
"PORT": 3000,
"NODE_ENV": "production",
}
}
]
}
would it be chaned too?

@aebrs If you need to directly set path to nuxt-start binary, yes

Any sample on how to use?
In Programmatic Usage there is some code mentioned but there is no sample or help about best place o this sample code. No sample code for using pm2 and so on.
May you give some hand?

should it mixed with server.js :
const express = require('express');
const { Nuxt, Builder } = require('nuxt');
const config = require('./nuxt.config.js');
const app = express();
app.listen(process.env.PORT || 3000);
config.dev = false;
const nuxt = new Nuxt(config);
app.use(nuxt.render);
new Builder(nuxt).build().catch(err => {
console.error(err);
process.exit(1);
});

@aebrs 	Please fill out a correct bug report :wink:

Call nuxt.ready() after new Nuxt()

server.js:
const express = require('express'); const { Builder } = require('nuxt'); const { Nuxt } = require('nuxt-start')  const config = require('./nuxt.config.js'); const app = express(); app.listen(process.env.PORT || 3000); config.dev = false; const nuxt = new Nuxt(config); nuxt.ready() app.use(nuxt.render); new Builder(nuxt).build().catch(err => {   console.error(err);   process.exit(1); });
ecosystem.config.js:
module.exports = {   apps : [       {         name: "nuxt",         script: "./node_modules/nuxt-start/bin/nuxt-start",         env: {             "HOST": "127.0.0.1",             "PORT": 3000,             "NODE_ENV": "production",         }       }   ] }
Not running yet.

1- it was my fault, pm2 error, so final working script is:
module.exports = {   apps : [       {         name: "nuxt",         script: "./node_modules/nuxt-start/bin/nuxt-start.js",         env: {             "HOST": "127.0.0.1",             "PORT": 3000,             "NODE_ENV": "production",         }       }   ] }
I hope it help others too.
Thanks you.

I solved this probolem with following code:
  "scripts": {
    "pm2": "pm2 start ./node_modules/nuxt-start/bin/nuxt-start.js --name myApp"
  }

@aebrs Thank you for posting your problem and solution.
It helps me to fix the same problem.

@jaweii , just a heads up nuxt-start is not a dev dependancy :)

authors: BiswasSuman aebrs blowsie jaweii manniL pi0