Deprecate Some Old DNSs

Summary
These SSL certs are about to expire:

DNS
expiration date
can be deprecated

api.mapserv.utah.gov
Oct 25 23:59:59 2021 GMT

developer.mapserv.utah.gov
Oct 25 23:59:59 2021 GMT

secure.mapserv.utah.gov
Oct 25 23:59:59 2021 GMT
X

test.mapserv.utah.gov
Oct 25 23:59:59 2021 GMT

test.secure.mapserv.utah.gov
Oct 25 23:59:59 2021 GMT
X

test2.mapserv.utah.gov
Oct 25 23:59:59 2021 GMT
X

wvc.mapserv.utah.gov
Oct 25 23:59:59 2021 GMT
X

We could just send a ticket to Conn's group (is that hosting?) and he said that they would renew them. However, I'm pretty sure that there are a few of these that could be deprecated/retired. I've marked the ones that I believe can go.

[x] Validate that they can be deprecated (@steveoh, completed: 2021/10/18)

Also, I asked Conn if we are responsible to remember when they expire. Here is his response:

Yes. We track them as well, but we don't always know if they need to be renewed or not.

We probably shouldn't leave this to chance for next year. It would be a pretty disruptive thing for our certs to expire.
Action items (wait until @steveoh verifies that my proposed deprecations are OK)

[ ] Submit a ticket to retire/remove the deprecated DNS entries - INC1551858 (@nathankota, ticket submitted 2021/10/18; completed: 2021/00/00)
[ ] Submit a ticket to Conn's group to renew the valid DNS entries - INC1551868 (@nathankota, ticket submitted 2021/10/18; completed: 2021/00/00)
[x] Schedule a reminder about these for next year (@nathankota, completed: 2021/10/18 - reminder scheduled for Monday, October 3, 2022)
[x] Remove the bindings on the web servers (@stdavis, completed: 2021/10/18)
[x] Submit ticket to remove the following VIP: <IP_ADDRESS> (wvc.mapserv.utah.gov) (@stdavis, completed: 2021/10/18)
[x] Submit a ticket to remove any F5 rules related to the deprecated DNS (@stdavis, completed: 2021/10/18)

Group Task Assignments

Check [x] the box when you have assigned all the tasks relevant to your group.

~- [ ] Data Team (@gregbunce)~

[x] Dev Team (@stdavis)

~- [ ] Cadastre Team (@rkelson)~

conductor results for tasks - 158

check
status

@steveoh has completed 0 out of 1 tasks
:no_entry:

@nathankota has completed 0 out of 3 tasks
:no_entry:

@stdavis has completed 1 out of 2 tasks
:no_entry:

I submitted INC1551805 - for removal of the wvc.mapserv.utah.gov VIP and INC1551816 for removing the rules on the F5.

Submit a ticket to retire/remove the deprecated DNS entries

INC1551858

Submit a ticket to Conn's group to renew the valid DNS entries

INC1551868

@stdavis can you take a look at the vip diagram and make sure any of the deprecations will empty a particular VIP

@stdavis or @steveoh please confirm the following and I will have DTS resolve INC1551858


Authorization with HTTP header not working

Problem:
I have a JWT token provided and verifyToken mutation is working properly with provided token
BUT when I set the Authorization header as "JWT <token>" it raises error with message "You do not have permission to perform this action."
(I have used login_required decorator in a mutation. I also use Postman for quering.)
(I can make query from browser when I am logged in to admin panel.)
setting.py:
MIDDLEWARE = [
    ...
    "django.contrib.auth.middleware.AuthenticationMiddleware",
    ...
]

GRAPHENE = {
    "SCHEMA": "home.schema.schema",
    "MIDDLEWARE": [
        "graphql_jwt.middleware.JSONWebTokenMiddleware",
    ],
}

AUTHENTICATION_BACKENDS = [
    "graphql_jwt.backends.JSONWebTokenBackend",
    "django.contrib.auth.backends.ModelBackend",
]

GRAPHQL_JWT = {
    "JWT_PAYLOAD_HANDLER": 'account.utils.jwt_payload',
}

This didn't work for me, but I think I found a fix by changing one line in the Middleware. See my issue #291

Didn't work for me. Can someone help please?

it worked for me thanks champion


code tabs [feature request]

It would be really nice to have support for code tabs to support projects with APIs for different programming languages.
I have tried the approach of https://github.com/rvanhorn/hugo-dynamic-tabs. While it works, the CSS starts to get broken as I need to include bootstrap to make the tabs working.
I can help developing the feature, with some guidance.

Sorry for late.
I have added it in recent commits.
Update the theme first.
Check https://zzo-docs.vercel.app/zdoc/shortcodes/codeblock/


util.Validator

Need to fix Context.
Maybe just do a real simple version for 0.8
Basically just a method or two. And then deprecate them

Also need to look at List support


Make sure optional dependencies are, in fact, optional

Add a CI job with no scipy and no matplotlib, make sure self-tests finish (pytest.skip tests which require optionals) .
While at it, may expand the CI matrix to include a range of python versions (match scipy), also OSes. Since this all is pure python, platform-dependent problems are unlikely --- but there's always room for surprises.

@Sheila-nk would be great if you could take a look. I think it's easiest to replicate the existing workflow with a single python & pytest version, remove pip installs and see what fails.


feat: support for jupyterlab

Added support for jupyter lab.

uses prebuilt js that can be distributed in python package
swaps jquery ui to use version managed by the jquery ui team
updates @jupyterlab-widgets/base to support newer versions (for jlab3)
slightly tidied (?) the setup.py script

It's been a little while since I touched js stuff, so please forgive any naive mistakes!
Installs happily via pip install ., and works with my jupyter setup:
IPython          : 7.16.3
ipykernel        : 5.3.4
ipywidgets       : 7.6.5
jupyter_client   : 7.1.2
jupyter_core     : 4.9.1
jupyter_server   : 1.13.4
jupyterlab       : 3.2.8
nbclient         : 0.5.10
nbconvert        : 5.6.1
nbformat         : 5.1.3
notebook         : 6.4.8
qtconsole        : 5.2.2
traitlets        : 5.1.1

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
Fixes #55.

Thanks for the PR @zacharyrs - please give us a day or so to look it over. We very much appreciate contributions such as yours.

Thank you very much for this PR, @zacharyrs!
I took some time to look over the changes made and test them out, and everything looks good. The widgets are working great in the latest build of JupyterLabs 3.x on my local setup. We had some initial concerns that such an upgrade could affect functionality on classic Jupyter Notebook, but the new build appears to be fully backwards-compatible with our current installation process.
This is an excellent first step towards JupyterLab support in this package; thank you again for your efforts.

@michaelnchin Thanks!
Glad it's going through - I made sure I left the classic extension build as is, just added/improved the lab extension.
The one thing I'm not 100% sure about is widening the version ranges for @jupyterlab-widgets/base, but that seems to be behaving as expected.
Looking forward to seeing a new version published!
Cheers

Maybe a regression but graphs still not rendering on jupiterlab


Error handling for cookies disabled

When local storage or cookies are disabled, the application reports this back without throwing an error.
The report is simply that GTM couldn't be initiated.

Includes a cheeky update in Dockerfile... adds screenshot.png to the Nginx container file system.

Last comment! ... It may be good to version bump in public/app/themes/justice/inc/plugin-hacks.php, to clear any browser cache.


No completion for "TriggerMediaInputAction" request

Description
There is no completion on the "TriggerMediaInputAction" mediaAction parameter (type-hinted as string). Add a list of possibilities would be easier when using this request (because the wanted string by OBS is something like this : "OBS_WEBSOCKET_MEDIA_INPUT_ACTION_RESTART")

exactly my current problem!
it says it takes a ObsMediaInputAction enum but I cant seem to be able to import such enum to use it.
currently this code works:
obs.call("TriggerMediaInputAction", {
	inputName: "media6",
	mediaAction: "OBS_WEBSOCKET_MEDIA_INPUT_ACTION_RESTART",
});

but looks ugly. I was expecting something like
obs.call("TriggerMediaInputAction", {
	inputName: "media6",
	mediaAction: ObsMediaInputAction.RESTART,
});

How do I import ObsMediaInputAction to use? 🤔
I've found a few places where theres all the input actions:
https://github.com/obsproject/obs-websocket/blob/6d4b7c786e59cde6e6a287f81d785f071c158a2d/docs/generated/protocol.json#L451-L509
https://github.com/obsproject/obs-websocket/blob/f4b72b69ce7f9ec6a5fdb1b06971e00d2b091bec/src/eventhandler/EventHandler_MediaInputs.cpp#L30-L35
https://github.com/obsproject/obs-websocket/blob/f4b72b69ce7f9ec6a5fdb1b06971e00d2b091bec/src/requesthandler/RequestHandler_MediaInputs.cpp#L172-L199
https://github.com/obsproject/obs-websocket/blob/ab743c2ee6834ffa49c61f4f600f6a764bb02ef6/src/utils/Obs.h#L80-L172

You need to use the string version. ObsMediaInputAction doesn’t exist in the lib. I’ll make a pr today to add it and fix another little problem


Add link to Scala implementation

This is just a rebase of https://github.com/multiformats/multicodec/pull/91 hence merging it without another review.


[feat]: 2FA Support for Login (TOTP)

Prerequisites

[X] I have searched for existing issues that already suggest this feature, without success.

Describe the Feature Request
Add the option for a second factor login requirement for the Embassy main login
Describe the Use Case
Additional security, if your password is compromised, access would still require a 2nd device be compromised
Describe Preferred Solution
Easiest would be TOTP support for apps such as andOTP, Aegis, etc
Describe Alternatives
No response
Anything else?
No response

Well, would also like to point out that webauthn would be a good standard / alternative to totp.
https://webauthn.guide/

Well, would also like to point out that webauthn would be a good standard / alternative to totp. https://webauthn.guide/ https://blog.trezor.io/why-you-should-never-use-google-authenticator-again-e166d09d4324

This does look generally better, thank you

oh slick, i forgot trezors can be used as u2f devices

I used to be a heavy Authy user (now owned by Twilio) but now that I have Vaultwarden as server and Bitwarden as clients I have found myself migrating most of my essential 2FA sites to use TOTP from Bitwarden.
Anyways you might find this useful: Build Two-factor Authentication in Angular with Twilio Authy


Video: no media controls / muted

Videos are opened muted with no media controls

@Alex0007 is the video duration less than or equal to 20s?

@Alex0007 is the video duration less than or equal to 20s?

I guess so. It was a short video. Can't remember the exact duration though


Add check-dist.yml

This adds a workflow to check the contents of the checked-in dist/index.js against the expected version.
See actions/upload-artifact#227 for background and rationale.
Similar PR: https://github.com/actions/download-artifact/pull/108

note that we have similar comparison in the build.yml:
https://github.com/actions/setup-java/blob/4b1b3d4a82f726de9ba1945f8c6967b67caf5dcd/.github/workflows/build.yml#L31-L33
It runs verify-no-unstaged-changes.sh in the __tests__ dir.

@konradpabjan , agree with @KengoTODA . In build.yml we do pretty similar check: https://github.com/actions/setup-java/blob/main/tests/verify-no-unstaged-changes.sh
I think it should be enough.

🤦♂ Disregard. Thanks everyone!


Fixes crosshair not moving the cursor in FireFox

The cursor wasn't working in FireFox and throwing an error ReferenceError: event is not defined. Found that the parameter name wasn't matching up to the event variable in grid.js mouse event functions. The parameter is changed to match the variable name and also changed the other functions to match the new parameter name convention.
Quickly tested in latest Chrome and Firefox on Debian.

Opps accidentally forgot a word with the commit message, suppose to say "Fixes crosshair not moving with the cursor in FireFox", fixed with the force push.

Whoa, this is something! I'm scratching my head how it was possible. Thanks!


added purkynka.cz

@thechosenzendro First stage of verification passed, official domain for Střední průmyslová škola Brno, Purkyňova, příspěvková organizace is purkynka.cz as far as I verified. This is just an informational note. Pull request is still in the review. I appreciate your patience while waiting for the final decision.

@thechosenzendro Thank you for your patience while waiting for a review and processing your request. Pull request merged.
Please start requesting the licenses in about an hour, to let the changes to propagate through our system.


error 404 while accessing landing page

whenever i try to open the landing page of kingphisher it says error 404 page not found .
king-phisher is running on port 80 and when checking log file it says  AdvancedHTTPServer                                 WARNING  denying request due to lack of a valid id
i have disbled reqire_id option  in server config file but it still displays this error . Besides i cant start king-phisher server on any other port exept port 80

@vaneet123 ,
The 404 Page Not Found occurs when require_id for the King Phisher is set (by default it is) and you attempt to navigate to a webpage hosted by King Phisher with out valid ID. We recommend keeping this setting set, and send yourself a test email with the jinja syntax from the FAQ, to verify everything is working correctly. Once the testing is complete you can delete the instance of sending yourself an email to keep your data for the campaign clean.
If you decide to change the King Phisher require_id setting to false, you must restart the King Phisher Server for it to take effect. This can be done via upstart or systemd which ever is installed on your server.
upstart:
service king-phisher stop
systemd:
systemctl stop king-phisher

I have started the kingfisher server several times but this aint working .

can you please increase your log level of your King Phisher server to DEBUG, restart the server, and attempt to connect, and provide me log out put from the server. Also what operating system is your King Phisher server running on?

@ @

thanks a lot it is working now and my apologies for disturbing u for such a silly mistake   .
everything worked after i stoped the server and restarted it with systemctl .
but i ahve another problem the test emails dont reach my gmail account although it says  sending message succesful i guess gmail drops them as spam is there any way around this.

GMail's spam filter is particularly effective. If you're just testing you can make a rule to never classify your source address as spam. Otherwise you'll need to fiddle with the settings, and likely send from an address your SMTP server is authorized to send from. You can send from a GMail account if you use the GMail SMTP server. Steps to do this are outlined in the FAQ.

ok thanks a lot for your help will see what i can do .


feat(es/parser): typeof on #private Fields

Description:

BREAKING CHANGE:

swc_ecma_ast
swc_ecma_codegen
swc_ecma_parser
swc_ecma_transforms_proposal
swc_ecma_transforms_typescript
swc_ecma_visit
swc_estree_ast
swc_estree_compat

Related issue (if exists):

close #4287
https://github.com/microsoft/TypeScript/pull/47696

We're reverting the linked change in TS, so you probably want to revert it too.


Context limits? Plus no idea what the AI is doing.

I used the DDG PR, not sure if the search is working. I set the AI to write me a python hello world. It came up with a plan. Now it's doing something.. it keeps generating and it has exhausted my 16k context limit.
 I still can't get into settings on either chrome nor firefox and I can't delete projects. It's pretty cool but I think it still has a long way to go. The plans are really great but it seems to be stuck at executing them.

 Not all models, even API have the same context.  Not all models, even API have the same context. It's
not infinite.
—
Reply to this email directly, view it on GitHub
https://github.com/stitionai/devika/issues/96#issuecomment-2037047721,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/A6G5RBEK4GAGU5IQM7YWSFLY3VA55AVCNFSM6AAAAABFE7SNJCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMZXGA2DONZSGE
.
You are receiving this because you commented.Message ID:
@.***>

Then lord help the people with ollama using this. Whole thing seems more of a way to sell people on APIs.


FreeRTOS+TCP Zynq: check frame type before calculating ICMP checksum (v3)

Description
This PR will replace the earlier #177, of which the branch got lost.
The only significant change is in the function xNetworkInterfaceOutput(), in which the frame-type is checked before checking the protocol type.
I the current driver, outgoing ARP frames get a size warning. It doesn't cause incorrect behaviour, except for the size warnings in the logging.
Test Steps
Define ipconfigDRIVER_INCLUDED_TX_IP_CHECKSUM as 1 and send an outgoing ping. The ARP before the PING may not trigger a size warning, and the ICMP checksum shall be calculated correctly.
Related Issue
None.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

/bot run checks

/bot run checks

/bot run checks

This PR has moved to FreeRTOS-Plus-TCP PR #19.


Temporary workaround for Vanilla HTML projects?

I understand, Vanilla HTML support is scheduled for later in your Roadmap.
But I need it now :)
So, wondering if there is a hack or workaround to run it on Vanilla HTML using the storybook-builder-rsbuild package alone?

Nice, thank you @fi3ework I'll check it out asap

Most works very well. One little feedback @fi3ework
name: getAbsolutePath('storybook-html-rsbuild'),

That function getAbsolutePath isn't needed, it works without.
Then I would point it to the rsbuild configuration like that for example:
  framework: {
    name: "storybook-html-rsbuild",
    options: {
      builder: {
        rsbuildConfigPath: "etc/rsbuild/config.ts",
      },
    },
  },

That function getAbsolutePath isn't needed, it works without.

It's necessary only when no hoist is allowed.

I see.
Add to documentation maybe?


Added support for series plugin

This patch adds support for the series plugin available in the pelican-plugins repository.

Sorry for the long wait. Looking at all PRs was long overdue, but I was really busy.
Anyways, thanks for this great PR, it's been merged!


Add support for Rails 5.0.0

Addresses two deprecation warnings related to Rails 5:
DEPRECATION WARNING: append_before_filter is deprecated and will be removed in Rails 5.1. Use append_before_action instead. (called from detect_locale at lib/rails_locale_detection/controller_methods.rb:12)

and
DEPRECATION WARNING: `render :text` is deprecated because it does not actually render a `text/plain` response. Switch to `render plain: 'plain text'` to render as `text/plain`, `render html: '<strong>HTML</strong>'` to render as `text/html`, or `render body: 'raw'` to match the deprecated behavior and render with the default Content-Type, which is `text/plain`. (called from show at spec/support/rails.rb:27)

Thanks for this! Hadn't gotten around to it yet. Looks good, but could you update the travis.yml so that CI tests rails 5 as well?

I've pushed out 2.1 that includes rails 5 support

@mateomurphy just saw your question from last week, my apologies.  I'm glad to see that it went in!


Settings: GetValueOrDefault(key, null) returns empty string

From @csoren on January 21, 2016 8:59
On iOS ISettings.GetValueOrDefault(key, null) returns null if the key does not exists. On Android, the same call returns the empty string, if the key does not exists.
I would expect the platforms to behave the same way and return the default value I specified (null).
Copied from original issue: jamesmontemagno/Xamarin.Plugins#195

Agreed it should be consistent. Will require a bit of work because I need to check to see if the key exists and if not then return your default. This is what iOS does. I will say null is a bad idea and is actually an exception if you tried to pass it in to set it (well i convert it to string.empty). I highly recommend going with a different default.

From @dvshub on April 16, 2016 7:16
James, thanks for making this great effort to create a common Settings layer on all these platforms.
This issue (and the one I reported for AddOrUpdateValue) is actually pretty simple to fix. I debugged and found that the root cause is Convert.ToString(defaultValue) at Line# 96 and 219 on Android https://github.com/jamesmontemagno/Xamarin.Plugins/blob/1ed18269c3e123c67a1bd01685d0cdacd0ea4db3/Settings/Refractored.Xam.Settings.Android/Settings.cs
Since Convert.ToString() returns "The string representation of value, or String.Empty if value is an object whose value is null. If value is null, the method returns null."
as per https://msdn.microsoft.com/en-us/library/astxcyeh(v=vs.110).aspx
So the fix is:
defaultValue = (defaultValue == null)? null : Convert.ToString(defaultValue);
But this will result in removing the existing entry if the key was found since that is the default behavior of SharedPreferences on Android while adding an entry with null value.
Hence, the best solution is to say that null values are not supported by the Settings plugin and throw ArgumentException if the supplied value is null for case TypeCode.String. This will also make the Android behavior consistent with the behavior on iOS.

From @csoren on January 22, 2016 8:8
The reason I'm using null is so I can determine whether the key has been set. Passing a default value, such as the empty string, will not allow me to do that. There's no "KeyExists" function, if null is discouraged, perhaps the solution would include adding that to ISettings?

I am officially marking it that we do not accept null as a value or nullables. In version 3.0 I will throw an exception when a null value is passed in.

Awesome, thanks James.
On Wed, Oct 5, 2016 at 6:50 PM, James Montemagno<EMAIL_ADDRESS>wrote:

Closed #8 https://github.com/jamesmontemagno/SettingsPlugin/issues/8.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/jamesmontemagno/SettingsPlugin/issues/8#event-814143984,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ALnB3Hg03bS_kwRIGAokQnR3Ck8UtyQjks5qxFPwgaJpZM4JAxK_
.

I wish I had a better solution, but nulls are just tricky and cause problems.

Agreed. The solution looks good enough to me!
On Wed, Oct 5, 2016 at 8:33 PM, James Montemagno<EMAIL_ADDRESS>wrote:

I wish I had a better solution, but nulls are just tricky and cause
problems.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/jamesmontemagno/SettingsPlugin/issues/8#issuecomment-251859214,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ALnB3JooOGATimqsOKzJViki4Rytsn44ks5qxGv1gaJpZM4JAxK_
.


Issues and clarifications

Hi ,
This is a great script and thank you for sharing your hard work!
Couple of questions:
We have couple of website behind incapsula application firewall, we are a charity company and like to get the security logs / system logs from our application
Can you clarify the followings please:
1: Inside that folder, save the private key with the name Private.key.  where do you get the Private key i thought the data transfer is based on the API ID & Key ?
2: This is of course not a valid URL BASEURL=https://logging.incapsula.com/123456_456789.  ?
Much appreciate your reply!
Regards,
LS

Hi,
If you need additional information regarding enabling logs from Incapsula for your sites,
please contact our customer support.
Regarding your questions:

You need to generate a key pair and upload your public key to Incapsula. You will than have your own private key. For example:
openssl genrsa -out Private.pem 2048
openssl rsa -in Private.pem -outform PEM -pubout -out Public.pem
openssl pkcs8 -topk8 -in Private.pem -out Private.key –nocrypt

You can get the relevant URL for your account from the logs settings page

Thanks,
Doron

Thanks very much for your quick reply, just one more question:
Are you saying enabling logs is a seperate functionality ?  i see from our settings is not enabled!
Regards,
sza

Hi,
The logs feature is not enabled by default, if you wish to enable this functionality please contact Incapsula's support, they will be happy to provide you with all the relevant information.
Regards,
Doron

Brilliant, Thanks very much for your help.

enable logging feature
create and upload the keys  ? do we upload the key ourself or we provide incapsula to deploy the key ?
once we enabled the logging feature - i suspect we get individual URLs to get the logs from ?

Regards,

Hi,

You will need to upload your key yourself to Incapsula
As I mentioned, You will get the relevant URL for your account from the logs settings page

Regards,
Doron


tasks panel Sort

Minor improvement to the UI

Order by source
Order by output

I am more interested in what kind of "real life" issue you are dealing with?
Is your request concerning tasks list, brokers list, processes?

We want to harvest to a folder, reprocess/enhance, then push enhanced records to GPT.
Brokers and Tasks.
Right now 27 "Brokers", and 37 tasks. (some brokers route to a folder and others to a GPT2.x). Sorting brokers just makes them easier to find.
I'd like the tasks grouped by source... which is order by source.
Some of this is development cruft. I'm sure a broker which pulls, enhances and publishes will be done at some point, or the enhancement services will push directly to GPT.

Pull request #71 gives ability to group tasks by input source. All tasks are sorted by name within each group. User has ability to name each task individually during its creation.


Bugs fixed and adding support for predicates selectivity

let indexInfos be lazy initiation, see #11
fix bugs in KNN to handle the case when child of RTreeNode is RTreeLeafEntry, see #12
add indexSelectivityThreshold in spark.sql.conf，to support predicates selectivity for In Range query: Measure the area (or volume) ratio of queryMBR in rootMBR, if it is larger than indexSelectivityThreshold, adopt full scan.

For selectivity optimization, you should have another parameter setting how many levels in local R-trees that you would like to be considered in selectivity estimation. To do this, you need to add this parameter to SQLConf and have a function in R-Tree to do limited level traverse for selectivity estimation.
Besides, don't you think your function for selectivity estimation in MBR.scala is a little bit silly.... Basically, you just need to create a new MBR based on two input MBRs, and calculate the intersection MBR of them. To do this, find the maximum in all coordinates of two low, and minimum for two high. Then you can check if it is a legal MBR, or calculate its area to estimate selectivity.
Finally, push down is another issue. And you have not completely resolve it. This is because you only push basic relational predicates down to spatial joins, but haven't push spatial predicates down through all kinds of join.

Yes, your solution to selectivity estimation is much better.
Also, I find a difficulty to consider  setting how many levels in local R-trees that you would like to be considered in selectivity estimation:  I think we can only get the underlying data information from either leaf entry or pack.data, and can we get the underlying data from any RTreeNode (or RTreeInternalEntry) directly, rather than fetching leaf entry?

@ChenZhongPu You should put this in the local processing procedure for (both box and circle) range queries. You can stop by a specific level and then check the selectivity. If the predicate is selective enough, you can continue go down to lower levels. If not, stop R-tree traverse procedure and start scanning.

For predicate push down in spatial Join, I think the spatial predicate (filterCondition) will be applied in the correspoding left or right logicalPlan automatically, for example:
    val joinQuery = "SELECT * FROM point1 KNN JOIN point2 " +
      "ON POINT(point2.x, point2.y) IN KNN(POINT(point1.x, point1.y), 3) WHERE " +
      "POINT(point1.x, point1.y) IN CIRCLERANGE(POINT(0, 0), 5)"

here in circleRange filterCondition on left will be applied in point1's logicalPlan, so  what do you mean "haven't push spatial predicates down"?
By the way, I also find the spatial join in Simba cannot support multiple join conditions, for example:
SELECT * FROM point1 JOIN point2 ON (point1.x > point2.x AND point1.x < 6)

this basic join with two  join conditions is OK, but
SELECT * FROM point1 KNN JOIN point2
 ON ( POINT(point2.x, point2.y) IN KNN(POINT(point1.x, point1.y), 3) AND point1.x < 6 )

, the parsr cannot handle such case. Hence, for spatial join, leftJoinCondition and rightJoinCondition will be always empty.

@ChenZhongPu can you show me the logical and physical plan generated by Simba for the first query? You can do this by printing df.queryExecution, where df is the DataFrame output of your query.
For the second question, the answer is yes. We force this for some legacy issue. I don't see it as a great issue. However, if you want to fix this, we can discuss about the improved syntax in our next meeting. As a result, leftJoinConditoin and rightJoinCondition you mentioned should be always empty for spatial joins.

@Skyprophet  The Optimized Logical Plan and Physical Plan is as follows:
== Optimized Logical Plan ==
Project [name#0,x#1,y#2,name#3,x#4,y#5]
+- Join KNNJoin, Some( **(List(x#4, y#5)) IN KNN (List(x#1, y#2)) within (3))
   :- Filter  **(List(x#1, y#2)) IN CIRCLERANGE (List(0, 0)) within  (5)**
   :  +- LogicalRDD [name#0,x#1,y#2], MapPartitionsRDD[4] at rddToDataFrameHolder at KNNJoinExample.scala:42
   +- LogicalRDD [name#3,x#4,y#5], MapPartitionsRDD[9] at rddToDataFrameHolder at KNNJoinExample.scala:44

== Physical Plan ==
Project [name#0,x#1,y#2,name#3,x#4,y#5]
+- RKJSpark [x#1,y#2], [x#4,y#5], 3
   :- Filter  **(List(x#1, y#2)) IN CIRCLERANGE (List(0, 0)) within  (5)**
   :  +- Scan ExistingRDD[name#0,x#1,y#2]
   +- Scan ExistingRDD[name#3,x#4,y#5]

Filter has been push downed.

@ChenZhongPu Please revert the changes on level limit for selectivity estimation. After careful consideration, I think we need more complex logic to deal with it. I would recommend to open new issues and PR to resolve this. By doing this, we can merge this branch for now and then start implementing the new logic.


Flow typings check & review

After @TomaszKolek is done with all the typing and they are merged, me and one more person should go over the code base and review and improve on anything that might be missed or overlooked.

I would like to explore more on this. :)

Cool, have a look at the almost ready to merge PR #672 it is nice to learn a bit.


Optional support for bytes::Bytes type backing bytes field.

This is an attempt to support bytes::Bytes as a backing type for bytes fields. This is opt-in, the default remains Vec<u8>. The configuration at build time is similar to BTreeMap opt-in.
~For bytes fields with this feature enabled, no memory copying should take place when decoding from buffers backed by Bytes. Encoding will still copy data regardless of the backing type.~
This does not address zero-copying, which would require specialisation or additional support in the Buf trait.

I will address the CI errors tomorrow; but please feel free to comment on the overall approach in the mean time.

And here as well, I humbly offer StrChunk as the alternative backing type for strings to accompany Bytes.

We can also consider using bstr, which means we only need to provide Bytes type for string.

We can also consider using bstr, which means we only need to provide Bytes type for string.

I think part of the purpose of this change is to provide generated message structs with scalar fields backed by Bytes. To be convenient to the consumer, the string fields should be accessible as UTF-8 buffers/slices without extra steps. As far as I understand, bstr only provides Vec wrappers and string conversion methods grafted onto an [u8].

And here as well, I humbly offer StrChunk as the alternative backing type for strings to accompany Bytes.

Given that the bytes crate already is a dependency of prost it's a lot more obvious to offer it as an option. But I guess alternative string types could be offered behind a feature flag? To be completely honest, though, I'm not keen on making changes to the backing type of string fields part of this PR.

And here as well, I humbly offer StrChunk as the alternative backing type for strings to accompany Bytes.

Given that the bytes crate already is a dependency of prost it's a lot more obvious to offer it as an option. But I guess alternative string types could be offered behind a feature flag?

Yes. However, StrChunk is a very thin wrapper over Bytes, and the crate does not have any other dependencies besides another tiny library providing convenience traits.

To be completely honest, though, I'm not keen on making changes to the backing type of string fields part of this PR.

Sure, the corresponding change for strings can wait for another feature PR. Without it, however, support for zero-copy scalars will be incomplete.

oh also please stick to generic params and where clauses instead of impl trait in encoding.rs to maintain consistency.

oh also please stick to generic params and where clauses instead of impl trait in encoding.rs to maintain consistency.

I have done this in all places except for length_delimited!(impl BytesAdapter);. Changing this to a generic parameter with a trait bound doesn't let me reuse the existing implementation with the length_delimited!() macro. I can of course duplicate it but not sure that is worth the style change. What do you think?

hmm, not sure what I did there but I intended to add a couple of commits to the PR branch, not sure why it got closed.

OK well I really screwed that up, and now I can't fix cause the PR's been closed.  Will open a new PR with the proper commits.  Apologies @rolftimmermans !

Reopened as #341


support CentOS Stream 9 as a build target

requires https://github.com/rpm-software-management/mock/issues/719
This is just a tracking issue in packit.

This is now done on copr's side:
<EMAIL_ADDRESS>Once we recreate production workers, it should be available in packit as well (next Monday - July 26th).


Debug not autoscrolling with repeating newline

Does this issue occur when all extensions are disabled?: Yes

Version: 1.58.0
Commit: 2d23c42a936db1c7b3b06f918cde29561cc47cd6
Date: 2021-07-08T06:53:55.113Z
Electron: 12.0.13
Chrome: 89.0.4389.128
Node.js: 14.16.0
V8: <IP_ADDRESS>-electron.0
OS: Linux x64 5.4.0-77-generic

When debug output has repeating text and specifically it has newline \n in the output, this happens.
👁 Please don't close this I have read these 2 issues, this one is different. I promise, look:
Steps to Reproduce:

Just print some repeating text which has newline in it:
Specifically, I ran this:
console.log(`1

`);

I use nodemon and my debug configuration is this:
{
    "launch": {
        "configurations": [
            {
                "name": "Local nodemon",
                "request": "launch",
                "cwd": "${fileDirname}",
                "program": "/usr/local/bin/nodemon",
                "args": [
                    "--inspect",
                    "${file}"
                ],
                "skipFiles": [
                    "<node_internals>/**"
                ],
                "type": "pwa-node"
            }
        ]
    }
}

https://github.com/microsoft/vscode/issues/117674


Add TouchBarGopher and TouchBarFlappyBird

Added two games my friend and I make during a hackathon.

both look like quite fun games, cheers


Netlify Identity login dialog misbehaving - https://identity-js.netlify.com/v1/netlify-identity-widget.js not found

We have been using Netlify Identity to protect the CMS editing part of our website for several years. We haven't changed anything recently.
Chrome console says https://identity-js.netlify.com/v1/netlify-identity-widget.js is 404 not found
Describe the bug
Logging in to the private portion of our website (protected by Netlify Identity) no longer works
To Reproduce

Go to https://twogenerations.co.uk/admin/#/

You will see

Entering the credentials here does nothing - the page just hangs and Chrome's console says

Expected behavior
When it was working, you would see:

Then after clicking the button, you get

where you can enter your credentials successfully and pass to the protected pages.
Screenshots
See above
Applicable Versions:

Decap CMS version: [e.g. 2.0.4]
Git provider: [e.g. GitHub, BitBucket]
OS: [e.g. Windows 7]
Browser version [e.g. chrome 22, safari 11]

Node.JS version:

CMS configuration

Chrome console says:
GET https://identity-js.netlify.com/v1/netlify-identity-widget.js net::ERR_ABORTED 404 (Not Found)
index.js:15 `window.CMS_MANUAL_INIT` flag set, skipping automatic initialization.
setupCMS.ts:53 Using login system: git-gateway
setupCMS.ts:54 Currently targetting branch: production
bootstrap.js:26 netlify-cms 2.4.2

Additional context
Something similar happened to us back in Apr 2021. At that time it spontaneously recovered after a few days and we closed the internal issue with Cannot Reproduce.

Recording the solution in case someone else has the same problem:
Our source has been loading https://identity-js.netlify.com/v1/netlify-identity-widget.js since at least 2019.
Looking closely at the docs to see if netlify-identity-widget.js is no longer usable,, I noticed that the examples all show loading https://identity.netlify.com/v1/netlify-identity-widget.js rather than https://identity-js.netlify.com/v1/netlify-identity-widget.js.
I removed the -js, and everything burst back into life.
So it looks like they silently retired an old host-name that had been there for years, without seeing if anyone was still loading from it!
But all is now well and my users are relieved!


⚠ Spryr has degraded performance

In 010e9a8, Spryr (https://spryr.com) experienced degraded performance:

HTTP code: 200
Response time: 3963 ms

Resolved: Spryr performance has improved in 0b2efc9 after 8 minutes.


[1.10.2] SteelAnvil CraftTweaker format

Heya,
i'm trying to add some recipes to the anvil but run into this error when loading up the script:
net.minecraft.item.ItemStack cannot be cast to java.lang.Character
The script i'm using is following:
val steelPlate = <immersiveengineering:metal:38> as IIngredient;
val blastBrick = <immersiveengineering:stoneDecoration:1> as IIngredient;
SteelAnvil.add(<immersiveengineering:stoneDecoration:2>, [[steelPlate, steelPlate, steelPlate, null], [steelPlate, blastBrick, steelPlate, null], [steelPlate, steelPlate, steelPlate, null], [null, null, null, null]]);

I know @primetoxinz mentioned in the past that the anvil recipe wasn't working properly. I looked at the source code the other day and it seemed like it's suppose to work now?
Is my format incorrect? (The wiki still shows the old version when it used addShaped/addShapeless).
Thanks,
SC

It might be an issue on our side, I'll try to get it figured out.

As a side note, I don't think those null values will be needed in the script.

Thanks! Will try it without the null as well with the new version.


Make toolchain work for renumbering plugin tests

@theseion Isn't this working already?

Yes, I don't recall why I opened this issue. Great, that I provided a detailed description of the issue... 😅


[Feature][Connector-V2 File] connector-file-oss write mode optimization

Search before asking

[X] I had searched in the feature and found no similar feature requirement.

Description
[Feature][Connector-V2 File] connector-file-oss write mode optimization
In the current connector design mode, all file connectors are abstracted by the hadoop fileSystem to read and write to specific storage(s3，oss，localfile , ftp，hdfs ).
when we sink write data to some special file storage system， suck as s3 or aliyun ,  the default policy to buffer tmp data is wirte local file to avoid memory cost，but it may cause some problems.
1.all write task speed  will related by disk IO performance , especially for large file intergration.
2.some connector source checkpoint policy is split , when a task split is finish ,  it will trigger a checkpoint , then file connector sink upload local tmp file to storage tmp directory, then rename to config path， the capacity of temp files  is unpredictable.
when we sink write data to aws s3， hadoop-aws  may buffer data in local disk or memory in config ，we can avoid the promblems.
https://hadoop.apache.org/docs/stable/hadoop-aws/tools/hadoop-aws/index.html

but when we sink write data to aliyun oss, hadoop-aliyun has no config like haoodoop-aws, all data will buffer in local disk.
https://hadoop.apache.org/docs/stable/hadoop-aliyun/tools/hadoop-aliyun/index.html

this problem  can also occur in  engine checkpoint  storage  and imap storage.
the best idea to flush data for data integration in memory , this will avoid the io performanca problem ,can we abstract the commom method for inputout put stream in file connectors , the special storage may use special sdk to read and writ? or we try to support buffer mode in hadoop aliyun ?
welcome to discuss~
Usage Scenario
connector-file-oss
engine checkpoint-storage
engine imap-storage
Related issues
No response
Are you willing to submit a PR?

[ ] Yes I am willing to submit a PR!

Code of Conduct

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

the newest code for hadoop-aliyun will support the buffer mode in disk or memory in branch trunk
https://github.com/apache/hadoop/blob/trunk/hadoop-tools/hadoop-aliyun/src/main/java/org/apache/hadoop/fs/aliyun/oss/Constants.java

we can try to update hadoop-aliyun version to solve this probem when apache hadooop release next version ~

IMO, aliyun-oss has the parameter to config buffer, so your concern is useless.  For more details you can refer to aliyun-jindo sdk.


Seeding documents through mongoose

Correct if I'm wrong here but when I'm seeding data, the information that's supposed to run through my mongoose model's methods, plugins, defaults and even native mongoose timestamps don't get created. It seems to me that seedgoose doesn't use mongoose to populate the database.
Based on #8 I imagine that there is some technical limitation that requires going around mongoose for these instance methods and type casting, etc.? From a technical standpoint would it be possible for seedgoose to generate data with smart IDs and then feed mongoose with that? I love the design of this project but I can't see myself using it without type-casting and having to mock the instance methods on my models.

Hi @hennessyevan, sometimes if you want to use mongoose to seed data and run save hook, it fails because the whole data map is not complete at the moment it is seeding. How about adding a flag option?


Recover and previous values

PromiseKit 6
Installed using CocoaPods
I'm collection all data in my chain like described here: Previous Results
The problem is, that some parts of the chain might fail but that's expected and I'm using recover to recover from the (expected) failure. When recover get's called, it only gets the error as the parameter so I have no chance to add my default value which I'm returning from the recover to my previously collected values (tuples).
It might not be easy to solve this, because recover is called because an error occurred so there is nothing that can be provided to recover except the error. Maybe recover could be provided the whole, failed promise and not just the error.
// Wouldn't be needed If recover gave me access to former values
var details: PharmacyDetails?
var images: PharmacyImages?

pharmacyManager.pharmacyDetails
    .then { (data) -> Promise<(PharmacyDetails, PharmacyImages?)> in
        // Storing detailsData in an extra variable in case of recover
        details = data
        return self.pharmacyManager.pharmacyImages.map { (data, $0) }
    }
    .recover { error in
        // Details are in tuple but not accessible here, so I take the stored variable
        return .value((details!, nil))
    }
    .then { (data) -> Promise<(PharmacyDetails, PharmacyImages?, CorporateDesign?)> in
        images = data.1
        return self.pharmacyManager.corporateDesign.map { (data.0, data.1, $0) }
    }
    .recover { error -> Promise<(PharmacyDetails, PharmacyImages?, CorporateDesign?)> in
        return .value((details!, images, nil))
    }
    .done { allData in
        let viewModel = PharmacyHeaderViewModel(pharmacy: allData.0, pharmacyImages: allData.1, design: allData.2)
        self.rows.append(viewModel)
    }
    .catch { error in
        print("Error \(error)")
    }

Sounds feasible. I'll give it a try!
If it works, I'll close ticket.
Thanks a lot! And thanks for PromiseKit - An awesome piece of Software!

I nested the chain and it works like expected! Thanks again!


Workspace.eachEditor is deprecated.

Use Workspace::observeTextEditors instead
Workspace.eachEditor (C:\Users\Stive.Zambrano\AppData\Local\atom\app-0.189.0\resources\app\src\workspace.js:355:7)
<unknown> (C:\Users\Stive.Zambrano\.atom\packages\jslint\lib\main.coffee:44:23)

same as #30 just on another line


how to setup this project for local development?

don't see any local development/contribution guide
I already have refact-vsocde extension installed, any chance that there might be conflict between them (I have not worked on an vs-code extension before)

hi @Ashu999 just run the program via vs code. It will open a development environment and that would not be conflicting with the existing extension

thanks


Code hint does not update active argument when navigating code with left/right arrows.

Godot version
4.0 880a0177d12463b612268afe95bd3d8dd565bf52
System information
Win 10
Issue description
The below video shows that the code hint does not update when moving the caret. As the caret changes position the code hint should:

Change which method it is displayed for (e.g. for do_something_with_bool)
Change the active argument that is emphasized
Disappear completely if not inside a method.

https://user-images.githubusercontent.com/41730826/194735876-eafa5080-38af-4536-bace-8f2e2d94d673.mp4
cc @Paulb23.
At the moment code completion (the dropdown options) and the code hint (the hint shown in the video) are tightly coupled. You cannot query for the code hint without querying for code completion options, as far as I can tell. I think it would make sense to separate these two things so that they can be updated and called separately.

Is caret in method -> show code hint
Update code hint when caret changes is not as much processing as filling the entire code completion list.

Steps to reproduce
In any script, call any method with arguments, like Input.is_action_pressed, popup  the code hint (ctrl+space) and then move with the arrow keys.
Minimal reproduction project
No response

Here is rider as an example of how it should be.
https://user-images.githubusercontent.com/41730826/194736209-2a0a92a2-2fcc-429e-8643-e91368fe4de8.mp4

The strangest thing is that in fact code completion is being updated with caret movements while code hint is not.
https://user-images.githubusercontent.com/66184050/216728955-4c08c5e8-865c-41ac-90b1-63e3211ccede.mov
I think the thing responsible for making it update is in code_edit.cpp line 523. Doing something similar won't most likely make it appear when reaching a method but it would work flawlessly to swap between methods, change the focused arguments and maybe hide it when reaching the end. I'm not sure about the last one as it is currently not working on code completion (could not find the issue, maybe there isn't one on this issue)


Recent Connections does not reflect on Object Explorer connection status (and vice versa)

Connect to a connection on the object explorer tree.
Open the recent connections list.
It is observed that the entry for the connection in recent connections is marked as disconnected, even after clearing it and reconnecting. However, opening the connection via notebook changes the status, although the object explorer connection won't be connected as well. (Unless this is by design now).

This was observed to occur before the introduction of the new connection string format (for multiple connection options) so it isn't caused by that. This might have been something to do with how closing the recent connections flyout affected the connection status in recent connections.

I think this is in non-async server tree - status from recent connections was removed with Async server tree design.

Closing as async server tree is going to be enabled by default in July release.


Return values from allow_duplicates!

I want to propagate errors to my test function, but allow_duplicates! doesn't return anything. Maybe it should return a generic?

Could you give an example?

#[test]
fn test_foo() -> Result<()> {
  allow_duplicates! {
    some_function_that_returns_result()?;
  }?;

  Ok(())
}

Not sure if what I'm asking is possible with the current design. Perhaps it'd be better if you can specify a closure for allow_duplicates!?
allow_duplicates!(|| -> Result<()> {
  // code here
})

allow_duplicates! is designed to allow the snapshot macros to work within them. Those pass or panic rather than return results.
for example:
insta::allow_duplicates! {
    for x in (0..10).step_by(2) {
        let is_even = x % 2 == 0;
        insta::assert_debug_snapshot!(is_even, @"true");
    }
}

Possibly there's a case where we want to run the snapshot macro but then separately return something? But then do we need the thing we're returning as part of the insta context?

The behavior I'm looking for actually is already supported. My main issue was having to explicitly specify the type for the Result that's returned from inside allow_duplicates!, since the macro is internally wrapping everything in a closure.


Add comments to destroy_addr in SIL.rst.

destroy_addr is never semantically a "no-op". Just because an
instruction can be safely eliminated does not mean the instruction has
no semantics! That would be like saying we could move an unknown
memory read below an otherwise dead store!

@swift-ci smoke test and merge


Add decision_variable_dependency to represent polynomial dependency between decision variables

Ready for binary encoding of integer variables.

When an integer variable $x \in [0, 3]$ is binary encoded as $x = b_1 + 2 b_2$ with $b_1, b_2 \in {0, 1}$, $x$ will disappear from objective function and constraints.
Thus, $x$ is not passed to solver which only solve with $b_1$ and $b_2$. So we have to reconstruct $x$ from $b_1$ and $b_2$, but how?
decision_variable_dependency field in ommx.v1.Instance stores this relation, i.e. $x = b_1 + 2 b_2$ as a set of the ID of $x$ and a polynomial $b_1 + 2 b_2$.

More comprehensive test for evaluate dependency will be done when implementing log-encoding.


C++ compilation fails on macOS with libcxx 15

Solution to issue cannot be found in the documentation.

[X] I checked the documentation.

Issue
Since this update, I see some issues with packages compiling source code at runtime with cppyy on macOS. Here is an example:
  In file included from input_line_1:1:
  In file included from /Users/runner/miniconda3/envs/test/bin/../include/c++/v1/new:94:
  In file included from /Users/runner/miniconda3/envs/test/bin/../include/c++/v1/exception:85:
  In file included from /Users/runner/miniconda3/envs/test/bin/../include/c++/v1/type_traits:485:
  /Users/runner/miniconda3/envs/test/bin/../include/c++/v1/__type_traits/is_pod.h:29:38: error: no template named 'is_trivially_default_constructible'; did you mean 'is_nothrow_default_constructible'?
      : public integral_constant<bool, is_trivially_default_constructible<_Tp>::value   &&

The full log is here: https://github.com/flatsurf/e-antic/actions/runs/4333166222/jobs/7566119386 (expand Run flatsurf/actions/show-logs@main to see the actual errors.)
I don't understand what's going on here. How could the type_traits header be inconsistent like that?

I could also run conda info somehow in the CI if that's helpful.

@isuruf, any idea what might be going on here?

I don't understand what's going on here. How could the type_traits header be inconsistent like that?

The headers upstream were granularized (example), and it seems that libcxx 15 is missing the right header to use is_trivially_default_constructible in is_pod.h.
However, that branch only triggers if #if __has_builtin(__is_pod) is false, so I guess you could try using a newer compiler that has said builtin. I checked if this oversight was fixed upstream but it looks like for LLVM 16, the fallback (for not having __is_pod) was removed completely. As such there's nothing obvious that we could backport, except of course we could just try to include the correct header.
Otherwise, you could raise an issue upstream and see what the libcxx people recommend (though given that there won't be any more releases for 15.x, I'm not sure how much attention it'll get; sorry that we were so far behind in getting libcxx 15 to conda-forge, otherwise we could have discovered this in a more timely fashion). Perhaps it's still interesting for them from a test-coverage POV.

@h-vetinari thanks for the explanation :)
I am still a bit confused as to why I am the only one affected by this. The compiler I am using here is cxx-compiler which on macOS is clang-cxx 14 currently. This now pulls in libcxx 15.0.7. That combination is working fine in feedstocks I rebuilt in the past few days. What could be different in my application that makes this combination break?

cc @wlav this seems to break the cppyy build for macOS on conda-forge.

May simply be that here, too, Clang9 is just way too old. Repo master is at Clang13. I'll push to get it released (as cppyy 3.0.0).

Ok. Then this is unrelated to the installed cxx-compiler which makes sense. I guess we need make sure that cppyy forces libcxx <15 on conda-forge until cppyy 3 is out.

May simply be that here, too, Clang9 is just way too old.

I had no idea your compiler was that old. Yes, that's way too old (and explains the missing built-in).

Repo master is at Clang13.

Do you depend on specific details of individual llvm/clang versions? Because llvm 16 is almost out, and 13 is quite old itself already. Unless you really need to (which is rare), it'd be better to just use the default compiler version in conda-forge (currently 14, but only because some parts of the 15 stack were stuck for quite a while).

I'll push to get it released (as cppyy 3.0.0).

Thanks!

Do you depend on specific details of individual llvm/clang versions?

Yes, Cling has modifications made to Clang for interactive use, in particular to allow graceful recovery from failure. A lot, but not all, of these changes are being upstreamed into Clang (clang-repl, for the benefit of lldb), so future upgrades should come faster, as there will be fewer modifications. E.g. I believe, but haven't tried, that current Cling on Clang13 can use stock LLVM13 again. Another reason to be optimistic is that support for interactivity and JITing in Clang/LLVM itself is seeing lots of improvements, e.g. JITLink. Still, I depend on Cling to do these upgrades first, before getting support into cppyy and this will always be the case.
Note that other than parsing headers, Cling's Clang is linked internally, so it's actually possible to mix different LLVMs in the same process (e.g. Numba's llvmlite or Julia). Furthermore, the Cling folks are working on changing the incremental parsing to stop the parsing at the declarations only (in effect, make everything a forward declaration). The reason for this is performance: by not parsing definitions, headers load quicker, and only on use will definitions be parsed, reducing memory usage. Depending on how far they can push this, this will also increase the headers supported, as long as specific problematic definitions aren't used in the end.

This should be fixed once https://github.com/conda-forge/conda-forge-repodata-patches-feedstock/pull/414 has been merged.


Proposed fix for nlp.text().sentences() for quoted strings containing punctuation.

In attempting to parse a sentence containing something like: 'my double quoted "string!".' I found that the sentence_parser() function would break the string prior to the ending double quote.  The included change fixes this case - I'd like to know if it causes any unexpected side effects.
Also, added a demonstrator for nlp.text().sentences() to demo/index.html.  Typing multiple sentences into the new textarea field and pressing the Parse button will parse the typed paragraph into sentences.

beauty!

yeah, that makes sense. Thanks for your work!

you're welcome - thank you for the great API!


Tab and autoselect mask parts

Hallo Robin,
I was so amazed by your script that I couldn't stop thinking about it :) and tonight I had an idea that, in my opinion, could improve even more the usability.
After all this is an helper to form editing, to make form insert more usable and quick and lower the insert errors, so any idea in that direction, even small improvements could make a big improvement I guess.
Anyway... the idea is to use the "tab" and "back-tab" (shift+tab to go back) inside masked inputs to skip to the various mask parts and eventually auto-select that mask part for immediate input replacement.
This would be useful for both fixed and dynamic length mask parts. For fixed it would be useful during editing of already filled textbox, for dynamic length parts it would be useful both during initial insert and editing.
So in the IP example, you could skip to the next triplet both pressing the dot "." or "tab" AND you could go back to the previous triplet pressing "shift+tab", in doing this if the triplet you skipped to is already filled in, it will be auto-selected.
This will be a big enanchement in any literal-separated mask input (phone numbers, email, credit card, IP, whatever...).
Also I would render those two as optional, so that you can decide if to use them or not both globally or just for some input boxes.
For the tab you could just have some setting like "always" and "none" or go more in detail and allow to decide to use it "always", "never", "only for empty fields", "only for non empty fields" or using your functionality wich detects is the field is partially complete or complete or valid add even more option (I think to start just the first two could do enough btw).
Same for the autoselect functionaity, wich should work both by pressing tab or (in the example above) the dot ".", you can give the options "on/off".
Hope this can be useful to you :)

It's about time to think about this enhancement


Hop bridge for Cairo 0.10

Compiles succesfully, only missing part is Connector, which should be a simple contract made in native Cairo which will be the responsible of inter-blockchain message passing.


why not using the same tf.session in tmp/export_embeddings.py

Hi Im understanding the export_embedding.py file and has a doubt that for every batch creating tf.sessions in load_and_align_data function is this done intensionally? can we use same tf session for loading the facenet model as well as MTCNN networks (  pnet, rnet, onet).

Closed due to inactivity. Reopen if needed.


feature/search

Add feature for searching specified string or regexp in ELF.
Fix issue #36

This change is

This pr also fixed https://github.com/peter50216/pwntools-ruby/issues/36

Review status: 0 of 2 files reviewed at latest revision, 1 unresolved discussion.

test/elf/elf_test.rb, line 59 at r1 (raw file):
Previously, david942j wrote…
[0x1, 0x15e613]

Fix

Comments from Reviewable

Review status: 0 of 2 files reviewed at latest revision, 2 unresolved discussions.

lib/pwnlib/elf/elf.rb, line 141 at r2 (raw file):
Previously, david942j wrote…
An enumerator

fix

Comments from Reviewable

Reviewed 1 of 1 files at r2, 1 of 1 files at r3.
Review status: all files reviewed at latest revision, all discussions resolved.

Comments from Reviewable

👍


Revert "google analytics"

Reverts NebulousLabs/Sia#258
luke is merge master not david

oh wait revert is an intensive process.


Custom JSON output for Alert Post and HttpPost Nodes

This is a feature request for the ability to specify custom JSON output for the Alert Post and HttpPost nodes.  As it stands now there is no control over how the JSON looks and adding additional elements to it is not a trivial task.
In thinking how this might be implemented I could see a parameter that might point to a template file that could perform the mapping:
.template(String template, Boolean appendUnusedValues)
templateFIle -- The path and name pf the template file or a string with the template definition.  This would allow you to specify the template in the TICK script as a var or separately as a file
appendUnusedValues -- If true would append any remaining tags or fields to the end of the json.  This would provide the ability to transform certain tags or fields while retaining many of the original tags and fields.  If false only the tag or field values specified in the template will be in the output json
stream
|httpPost()
.template('myTemplate.tmpl', true)
.endpoint('example')
Where the template file might look like:
{
"myParam1": {{tag.tagName}},
"myParam2": {{field.fieldName}}
}
Thoughts?

Similar to: https://github.com/influxdata/kapacitor/issues/1071

This new feature would be greatly improved if could also use the Tick variables on the template as  requeted in (https://github.com/influxdata/kapacitor/issues/894)

I think this is now currently possible via https://github.com/influxdata/kapacitor/pull/1572

@rbetts This is complete already in the #1572 as noted above. Closing....

Hi,
I will try to explain my trial on defining a post to an endpoint on my script, with custom json using an alert-template-file.
First, we'll need to edit the kapacitor config (.../kapacitor/kapacitor.conf) to configure the endpoint, url, headers and the path to the template:
[[httpPost]]
endpoint = "test" -> We will need to pass this on the tick like .post().endpoint('test')
url = "www.test.com" -> URL to post our templated json. Obviously, the one needed!
headers = { Content-Type = "application/json; charset=UTF-8" }
basic-auth = { username = "", password = "" }
alert-template-file = "/path/to/template"
Second, lets define the template. We use tmpl for testing and works fine. The template looks like:
{
"id": "{{.ID}}",
"message": "{{.Message}}",
"details": "{{.Details}}",
"time": "{{.UnixNano}}",
"duration": "{{ .Duration}}",
"level": "{{.Level}}",
"recoverable": {{.Recoverable}},
"data": {{ .Data }}
}
Last, we need to fire from our tick script. As stated above, the only need to configure on the tick is on the alert make:
.post()
.endpoint('test')
With all this done, the results look like:
POST / HTTP/1.1
Host: <IP_ADDRESS>:9999
User-Agent: Go-http-client/1.1
Content-Length: 447
Content-Type: application/json; charset=UTF-8
Accept-Encoding: gzip
{
"id": "use cpu:host=amondelo",

"message": " use cpu:host=amondelo cpu chronograf-v1-1742046d-72f3-4c2e-a4f5-4273ce2ddae3 host=amondelo 2.5",

"details": "Valor 2.5",

"time": "2018-10-26 07:56:49 +0000 UTC",

"duration": "10s",

"level": "CRITICAL",

"recoverable": "true",

"data": {"series":[{"name":"cpu","tags":{"cpu":"cpu0","host":"amondelo"},"columns":["time","value"],"values":[["2018-10-26T07:56:49Z",2.5]]}]}

}
Hope this can help others (like me...) trying to use this useful way to send alerts to other systems!

@arturo-mondelo can i use this using Chronograf?

Hi @ashishkaransingh
Sure, i try to answer those...
Yes, you can use it from chronograph...Just add to the tick:
.post()
.endpoint('endpoint_name_on_the_kapacitor_config')
About tmpl, we choose that one. You can use any other supported (html for instance...) but i just uploaded my tests; and i defined the template as .tmpl
Yes, you need to define the message and the details on the tickscript. Also, you can define a custom id, and that will be sent...The rest (level, data, time...) are provided and no action is required by your side (neither id; it have the default one so no need to make your own!)
Hope this solve your doubts!
Regards

Hi @ashishkaransingh
Sure, i try to answer those...
Yes, you can use it from chronograph...Just add to the tick:
.post()
.endpoint('endpoint_name_on_the_kapacitor_config')
About tmpl, we choose that one. You can use any other supported (html for instance...) but i just uploaded my tests; and i defined the template as .tmpl
Yes, you need to define the message and the details on the tickscript. Also, you can define a custom id, and that will be sent...The rest (level, data, time...) are provided and no action is required by your side (neither id; it have the default one so no need to make your own!)
Hope this solve your doubts!
Regards
PD: I can upload my test tickscript if you want a working example with the configuration mentioned, made using chronograf.

Thanks a lot for your reply!
Yes a sample test tickscript would be great.

@arturo-mondelo  So currently this is the piece of config i am using
[[httppost]]
endpoint = "test"
url = "https://testapi.com"
headers = {Content-Type = "application/json; charset=UTF-8"}
#basic-auth = { username = "my-user", password = "my-pass" }
alert-template-file = "C:/temp/tmpl.yml"

Well actually i don't get why you are using yaml file. Attending to the documenation:
https://docs.influxdata.com/kapacitor/v1.5/event_handlers/post/#alert-templates
"Alert templates are used to construct a custom HTTP body"
Try with an .html or .tmpl extension even with mine (save it c:/tmp/post.tmpl):
{
"id": "{{.ID}}",
"message": "{{.Message}}",
"details": "{{.Details}}",
"time": "{{.Time}}",
"duration": "{{ .Duration}}",
"level": "{{.Level}}",
"recoverable": {{.Recoverable}},
"data": {{ .Data }}
}
And i'm pretty sure you have this working!

I tried using .html and .tmpl, once i start tickscript i do see logs but nothing gets posted.
I will change it back to .htmlm and try again.
It would be helpful if you can share a working example of tickscript.

looking forward for your working example with chronograf.

Ok
Yes i will upload the script used on this trial later (i don't have the one used on this computer!)
But is just a quick test (don't expect much!) script, and yes, generated on chronograf directly.

This is my chronograf generated tick script (in our environments use custom ones). But, for this test, it works just fine:
var db = 'telegraf'
var rp = 'autogen'
var measurement = 'cpu'
var groupBy = ['host']
var whereFilter = lambda: TRUE
var name = 'use cpu'
var idVar = name + ':{{.Group}}'
var message = ' {{.ID}} {{.Name}} {{.TaskName}} {{.Group}} {{ index .Fields "value" }}'
var idTag = 'alertID'
var levelTag = 'level'
var messageField = 'message'
var durationField = 'duration'
var outputDB = 'chronograf'
var outputRP = 'autogen'
var outputMeasurement = 'alerts'
var triggerType = 'threshold'
var details = 'Valor {{ index .Fields "value" }}'
var crit = 20
var data = stream
|from()
.database(db)
.retentionPolicy(rp)
.measurement(measurement)
.groupBy(groupBy)
.where(whereFilter)
|eval(lambda: "usage_user")
.as('value')
var trigger = data
|alert()
.crit(lambda: "value" > crit)
.message(message)
.id(idVar)
.idTag(idTag)
.levelTag(levelTag)
.messageField(messageField)
.durationField(durationField)
.details(details)
.post()
.endpoint('ejemplo')
trigger
|eval(lambda: float("value"))
.as('value')
.keep()
|influxDBOut()
.create()
.database(outputDB)
.retentionPolicy(outputRP)
.measurement(outputMeasurement)
.tag('alertName', name)
.tag('triggerType', triggerType)
trigger
|httpOut('output')

Thank you very much for the example.
so far everything is at its place, but I am getting an error when running kapacitor with config file.
Command
kapacitord.exe -config "C:\kapacitor-1.5.0_windows_amd64\kapacitor-1.5.0-1\kapacitor.conf"
Error:
create server: invalid configuration: httppost: must use an absolute path for alert-template-file.
I tried different configuring different paths.

not sure why I was reluctant to use this on windows but below path worked
"/temp/template/post.html"

Hi,
I will try to explain my trial on defining a post to an endpoint on my script, with custom json using an alert-template-file.
First, we'll need to edit the kapacitor config (.../kapacitor/kapacitor.conf) to configure the endpoint, url, headers and the path to the template:
[[httpPost]]
endpoint = "test" -> We will need to pass this on the tick like .post().endpoint('test')
url = "www.test.com" -> URL to post our templated json. Obviously, the one needed!
headers = { Content-Type = "application/json; charset=UTF-8" }
basic-auth = { username = "", password = "" }
alert-template-file = "/path/to/template"
Second, lets define the template. We use tmpl for testing and works fine. The template looks like:
{
"id": "{{.ID}}",
"message": "{{.Message}}",
"details": "{{.Details}}",
"time": "{{.Time}}",
"duration": "{{ .Duration}}",
"level": "{{.Level}}",
"recoverable": {{.Recoverable}},
"data": {{ .Data }}
}
Last, we need to fire from our tick script. As stated above, the only need to configure on the tick is on the alert make:
.post()
.endpoint('test')
With all this done, the results look like:
POST / HTTP/1.1
Host: <IP_ADDRESS>:9999
User-Agent: Go-http-client/1.1
Content-Length: 447
Content-Type: application/json; charset=UTF-8
Accept-Encoding: gzip
{
"id": "use cpu:host=amondelo",

"message": " use cpu:host=amondelo cpu chronograf-v1-1742046d-72f3-4c2e-a4f5-4273ce2ddae3 host=amondelo 2.5",

"details": "Valor 2.5",

"time": "2018-10-26 07:56:49 +0000 UTC",

"duration": "10s",

"level": "CRITICAL",

"recoverable": "true",

"data": {"series":[{"name":"cpu","tags":{"cpu":"cpu0","host":"amondelo"},"columns":["time","value"],"values":[["2018-10-26T07:56:49Z",2.5]]}]}

}
Hope this can help others (like me...) trying to use this useful way to send alerts to other systems!

Hi, Does it work?

Does this work the same with row-templates?

@ednjv  I have only tried with alert-template-file

@arturo-mondelo any idea on https://github.com/influxdata/kapacitor/pull/1572

@ashishkaransingh hello

@ashishkaransingh hello, Have you figured out how to customize HTTP post

hello, Have you figured out how to customize HTTP post

hello, Have you figured out how to customize HTTP post


world.classs world variable was not compatible with Catservers world variable

java.lang.NoSuchFieldError: world
at net.minecraft.world.World.(World.java:193) ~[amu.class:?]
at net.minecraft.world.WorldServer.(WorldServer.java:117) ~[oo.class:?]
at net.minecraft.server.MinecraftServer.func_71247_a(MinecraftServer.java:357) ~[MinecraftServer.class:?]
at net.minecraft.server.dedicated.DedicatedServer.func_71197_b(DedicatedServer.java:328) ~[nz.class:?]
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:600) [MinecraftServer.class:?]
When the developer of catserver tries to modify the variables, it gets worked, but this is only a temporary method that cannot be used all the time

only forge server is officially supported
please stop using weird servers

Haha. In fact, catserver is a forge + bukkit server, which is convenient for users to use and very popular.
https://github.com/Luohuayu/CatServer
It`s free and open source

well then it would work
forge is lgpl, it has to be foss, this is no surprise. so is vs code but its still shit
either way cat server is not official forge

ok, fine so....
Another issue...https://github.com/ValkyrienSkies/Valkyrien-Skies/issues/372

also, fixed on latest master


Fix duplicated short option name for target robot version

--target-version and --transform shared the same short name of the option (-t). Now --target-version uses -tv.
I have read on the subject and usually it's not recommended to use more than single character for short name of the option (usually cli tools allow to chains some flags like -l -r can be -lr). But since we're already using two letter short names in both Robocop and Robotidy I went ahead. We don't allow chaining and it's desribed in the docs.
Fixes #375

Codecov Report

Merging #397 (b0c564b) into main (9928e1f) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main     #397   +/-   ##
=======================================
  Coverage   97.61%   97.61%
=======================================
  Files          44       44
  Lines        3570     3570
=======================================
  Hits         3485     3485
  Misses         85       85

Impacted Files
Coverage Δ

robotidy/cli.py
98.28% <ø> (ø)

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


Communicator App in MS Teams won't authenticate

Hi,
When following the deployment guide for MS Teams Communicator App [https://github.com/OfficeDev/microsoft-teams-apps-company-communicator/wiki/Deployment-guide], once installed and publichsed from Teams Admin Center, I get to a sign-in page. When i click "sign-in" a new window appears, but does not sign me in, hence the app is not working. Attached is the manifest.json.
Unfortunately, MS Support could not help me with this either since this is a custom app. Also, nothing in the troubleshooting guide addresses this :(
company-communicator-authors.zip.zip
Regards,
TJ

It could be problem with application id uri given in manifest/author app expose an api section. If both are not matching then above would occurs.

I am getting the same error, both the Application ID URI match in the manifest/author. when I click Sign in on Teams it just loads the https://appName.azurefd.net/signin-simple-start and lands back to the same sign in screen on teams.
Is there a place where I can check?

@sharlotlek ,
Could you please open the Developer tool, click on the network tab and share us the API responses in the Network panel. Or else please share you MS team alias, so that we can communicate over Teams for troubleshooting the issue.

Closing this issue due to inactivity, please create a new one if issue still persists.


Update penumbra deps to v80

Bumping the Penumbra dependencies to v0.80.x, specifically on the current main branch of the protocol repo. Ideally we'd tag a v0.80.10, containing fixes from https://github.com/penumbra-zone/penumbra/pull/4905, but we haven't done that just yet.
Notably, the bump in Penumbra protocol deps will involve a schema change for the view database. I haven't tested locally yet, but I expect Hermes when upgraded to throw an error about the view schema mismatch. If and when that happens during interactive testing on the testnet, I'll make sure to document those errors so we can communicate the need to perform maintenance to operators.

Ideally we'd tag a v0.80.10, containing fixes from https://github.com/penumbra-zone/penumbra/pull/4905, but we haven't done that just yet.

Marking ready for review because the code we want is present and we want to move forward with testing.


Memory leak on BranchReferralInitListener

I have the splash screen in which I am initialising branch.io as follows:
`Branch branch = Branch.getInstance();
    branch.initSession(new Branch.BranchReferralInitListener() {
        @Override
        public void onInitFinished(JSONObject referringParams, BranchError error) {
            try {
               // My Code
            } catch (Exception e) {
                e.printStackTrace();
            }
            if (error == null) {
                // params are the deep linked params associated with the link that the user clicked -> was re-directed to this app
                // params will be empty if no data found
                // ... insert custom logic here ...
            } else {
                Timber.d("MyApp" + error.getMessage());
            }
        }
    }, this.getIntent().getData(), this);`

Getting the memory leak from leak canary as shown in below screenshot:

Please help how to fix this leak.

Hi @sirajsolutelabs -- we're looking into this now, thanks for reporting!

Hi @sirajsolutelabs -- where are you making the init call? When I drop your code into onStart w/ LeakCanary running, I'm not able to generate any canary notifications. When/where are you calling getAutoInstance? Can you share all your Branch related code, referencing where each snippet is being used? Steps to reproduce this leak would be helpful as well! Thanks.

Hi @EvangelosG, Thanks for the quick response. As shown in above question, The initSession code is in onStart() method of my SplashActivity - The main launcher activity.
The getAutoInstance method is in Application class as given below:
`public class AppApplication extends Application {
@Override
public void onCreate() {
    super.onCreate();

    // initialize the Branch object for invite functionality
    Branch.getAutoInstance(this);

   // Other codes
 }

}`
Now I am using Branch io for invite in InviteActivity. The leak is in SplashActivity

Thanks for the additional information. How are you handling Branch in your Splash Activity? Can you show me your code for traversing to the next activity? I'm still struggling to reproduce the leak. If you want to use our sample app to show me how to reproduce the leak, that would be incredibly helpful! It lives here and already has LeakCanary, just un-comment in the Application class and add the needed dependency: https://github.com/BranchMetrics/android-branch-deep-linking/tree/master/Branch-SDK-TestBed

Closing this for now since our test not able to reproduce the leak

@sirajsolutelabs I had similar issue, noticed memory leak during opening splash screen.

It's hard to reproduce, but actual result might be anonymous implementation of BranchReferralInitListener. I replaced it with static class that uses weak reference to activity and so far problem is solved:
private static class OnBranchInitializedHandler implements Branch.BranchReferralInitListener {
    private final WeakReference<Activity> ref;

    public OnBranchInitializedHandler(Activity activity){
       ref = new WeakReference<>(activity);
}
}

@bkraszewski  Thanks of the above test and details. Certainly it is leaking a reference set to the callback but what would be the reason of launching a new activity while you are waiting on an activity  to get the results Branch Initialization?
Is there a  use case for you to launch a new activity while waiting for the Branch  Init Session callback? If so can you try to move the callback from Activity to some other place (Say application class) since Android will try to kill no more used Activities
If you still want to keep the Branch callback in the Activity, can you please  try calling startActivityForResult()  when launching the new activity.

@sojanpr No chance to launch other activity, but I think case might be:

user launches app, splash screen appears
user navigates back finishing activity before branch is initialized
activity is cleaned up due to heavy memory usage for phone
memory leak

@bkraszewski  Good point. I think that should be the only case. We will fix the code  to hold only weak reference to Branch.BranchReferralInitListener . Will update here when we release it


Grid renders to the correct layer in stack (fixes #79)

Reviewed 3 of 3 files at r1.
Review status: :shipit: all files reviewed at latest revision, all discussions resolved, all commit checks successful.

Comments from the review on Reviewable.io


The 2D skeleton deformation in 4.0 is broken

Godot version
4.0.beta15.official [4fa6edc88]
System information
Windows 10, Forward+
Issue description
The deformation of the polygons does not correspond to the position of the skeleton in the simple image.

Steps to reproduce
Download a test project
or
create a skeleton for a simple picture yourself and try to deform it.
Minimal reproduction project
2d_animation_bug_test.zip

Related to https://github.com/godotengine/godot/issues/71962 and https://github.com/godotengine/godot/issues/71108.

Also, in the bone weights editing menu, the position of the image does not correspond to the positions of the bones, which is very inconvenient.

Duplicate of: https://github.com/godotengine/godot/issues/71108
Fixed by: https://github.com/godotengine/godot/pull/72214

Did this solve the problem with the bone weight editor (screenshot above)?

Duplicate of: #71108
Fixed by: #72214

Did this solve the problem with the bone weight editor (screenshot above)?


method_source not working with Prism due to different SyntaxError messages

Running https://github.com/banister/method_source 's test suite passes on ruby master but fails with RUBYOPT=--parser=prism bundle exec rake:
Failures:

  1) MethodSource::CodeHelpers should not raise an error on broken lines: def\na\n(); end
     Failure/Error: eval("BEGIN{throw :valid}\n#{str}")

     SyntaxError:
       (eval at /home/eregon/code/method_source/lib/method_source/code_helpers.rb:71):3: syntax errors found (SyntaxError)
         1 | BEGIN{throw :valid}
       > 2 | def
           |    ^ expected an `end` to close the `def` statement
           |    ^ expected a delimiter to close the parameters
       > 3 |
           | ^ unexpected end of file, assuming it is closing the parent top level context

           | ^ unexpected end of file; expected a method name
     # ./lib/method_source/code_helpers.rb:71:in 'Kernel#eval'
     # ./lib/method_source/code_helpers.rb:71:in 'block in MethodSource::CodeHelpers#complete_expression?'
     # ./lib/method_source/code_helpers.rb:70:in 'Kernel#catch'
     # ./lib/method_source/code_helpers.rb:70:in 'MethodSource::CodeHelpers#complete_expression?'
     # ./spec/method_source/code_helpers_spec.rb:22:in 'block (4 levels) in <top (required)>'
     # ./spec/method_source/code_helpers_spec.rb:21:in 'Integer#upto'
     # ./spec/method_source/code_helpers_spec.rb:21:in 'block (3 levels) in <top (required)>'

  2) MethodSource::CodeHelpers should not raise an error on broken lines: p = <<FOO\nlots\nand\nlots of\nfoo\nFOO
     Failure/Error: eval("BEGIN{throw :valid}\n#{str}")

     SyntaxError:
       (eval at /home/eregon/code/method_source/lib/method_source/code_helpers.rb:71):3: syntax error found (SyntaxError)
         1 | BEGIN{throw :valid}
         2 | p = <<FOO
       > 3 |
           | ^ could not find a terminator for the heredoc
     # ./lib/method_source/code_helpers.rb:71:in 'Kernel#eval'
     # ./lib/method_source/code_helpers.rb:71:in 'block in MethodSource::CodeHelpers#complete_expression?'
     # ./lib/method_source/code_helpers.rb:70:in 'Kernel#catch'
     # ./lib/method_source/code_helpers.rb:70:in 'MethodSource::CodeHelpers#complete_expression?'
     # ./spec/method_source/code_helpers_spec.rb:22:in 'block (4 levels) in <top (required)>'
     # ./spec/method_source/code_helpers_spec.rb:21:in 'Integer#upto'
     # ./spec/method_source/code_helpers_spec.rb:21:in 'block (3 levels) in <top (required)>'

  3) MethodSource::CodeHelpers should not raise an error on broken lines: [\n:lets,\n'list',\n[/nested/\n], things ]
     Failure/Error: eval("BEGIN{throw :valid}\n#{str}")

     SyntaxError:
       (eval at /home/eregon/code/method_source/lib/method_source/code_helpers.rb:71):2: syntax error found (SyntaxError)
         1 | BEGIN{throw :valid}
       > 2 | [
           |  ^ expected a `]` to close the array
         3 |
     # ./lib/method_source/code_helpers.rb:71:in 'Kernel#eval'
     # ./lib/method_source/code_helpers.rb:71:in 'block in MethodSource::CodeHelpers#complete_expression?'
     # ./lib/method_source/code_helpers.rb:70:in 'Kernel#catch'
     # ./lib/method_source/code_helpers.rb:70:in 'MethodSource::CodeHelpers#complete_expression?'
     # ./spec/method_source/code_helpers_spec.rb:22:in 'block (4 levels) in <top (required)>'
     # ./spec/method_source/code_helpers_spec.rb:21:in 'Integer#upto'
     # ./spec/method_source/code_helpers_spec.rb:21:in 'block (3 levels) in <top (required)>'

  4) MethodSource::CodeHelpers should not raise an error on broken lines: abc =~ /hello\n/
     Failure/Error: eval("BEGIN{throw :valid}\n#{str}")

     SyntaxError:
       (eval at /home/eregon/code/method_source/lib/method_source/code_helpers.rb:71):2: syntax error found (SyntaxError)
         1 | BEGIN{throw :valid}
       > 2 | abc =~ /hello
           |        ^ expected a closing delimiter for the regular expression
         3 |
     # ./lib/method_source/code_helpers.rb:71:in 'Kernel#eval'
     # ./lib/method_source/code_helpers.rb:71:in 'block in MethodSource::CodeHelpers#complete_expression?'
     # ./lib/method_source/code_helpers.rb:70:in 'Kernel#catch'
     # ./lib/method_source/code_helpers.rb:70:in 'MethodSource::CodeHelpers#complete_expression?'
     # ./spec/method_source/code_helpers_spec.rb:22:in 'block (4 levels) in <top (required)>'
     # ./spec/method_source/code_helpers_spec.rb:21:in 'Integer#upto'
     # ./spec/method_source/code_helpers_spec.rb:21:in 'block (3 levels) in <top (required)>'

  5) MethodSource::CodeHelpers should not raise an error on broken lines: issue = %W/\n343/
     Failure/Error: eval("BEGIN{throw :valid}\n#{str}")

     SyntaxError:
       (eval at /home/eregon/code/method_source/lib/method_source/code_helpers.rb:71):2: syntax error found (SyntaxError)
         1 | BEGIN{throw :valid}
       > 2 | issue = %W/
           |         ^~~ expected a closing delimiter for the `%W` list
         3 |
     # ./lib/method_source/code_helpers.rb:71:in 'Kernel#eval'
     # ./lib/method_source/code_helpers.rb:71:in 'block in MethodSource::CodeHelpers#complete_expression?'
     # ./lib/method_source/code_helpers.rb:70:in 'Kernel#catch'
     # ./lib/method_source/code_helpers.rb:70:in 'MethodSource::CodeHelpers#complete_expression?'
     # ./spec/method_source/code_helpers_spec.rb:22:in 'block (4 levels) in <top (required)>'
     # ./spec/method_source/code_helpers_spec.rb:21:in 'Integer#upto'
     # ./spec/method_source/code_helpers_spec.rb:21:in 'block (3 levels) in <top (required)>'

  6) MethodSource::CodeHelpers should not raise an error on broken lines: puts 1, 2,\n3
     Failure/Error: eval("BEGIN{throw :valid}\n#{str}")

     SyntaxError:
       (eval at /home/eregon/code/method_source/lib/method_source/code_helpers.rb:71):2: syntax error found (SyntaxError)
         1 | BEGIN{throw :valid}
       > 2 | puts 1, 2,
           |          ^ expected an argument
         3 |
     # ./lib/method_source/code_helpers.rb:71:in 'Kernel#eval'
     # ./lib/method_source/code_helpers.rb:71:in 'block in MethodSource::CodeHelpers#complete_expression?'
     # ./lib/method_source/code_helpers.rb:70:in 'Kernel#catch'
     # ./lib/method_source/code_helpers.rb:70:in 'MethodSource::CodeHelpers#complete_expression?'
     # ./spec/method_source/code_helpers_spec.rb:22:in 'block (4 levels) in <top (required)>'
     # ./spec/method_source/code_helpers_spec.rb:21:in 'Integer#upto'
     # ./spec/method_source/code_helpers_spec.rb:21:in 'block (3 levels) in <top (required)>'

  7) MethodSource Methods should return source for an *_evaled method
     Failure/Error: raise SourceNotFoundError, "Could not parse source for #{name}: #{e.message}"

     MethodSource::SourceNotFoundError:
       Could not parse source for hello_name: (eval at /home/eregon/code/method_source/lib/method_source/code_helpers.rb:71):3: syntax errors found
         1 | BEGIN{throw :valid}
         2 |   def hello_#{name}(*args)
       > 3 |
           | ^ expected an `end` to close the `def` statement

           | ^ unexpected end of file, assuming it is closing the parent top level context
     # ./lib/method_source.rb:29:in 'MethodSource.source_helper'
     # ./lib/method_source.rb:115:in 'MethodSource::MethodExtensions#source'
     # ./spec/method_source_spec.rb:75:in 'block (3 levels) in <top (required)>'
     # ------------------
     # --- Caused by: ---
     # SyntaxError:
     #   (eval at /home/eregon/code/method_source/lib/method_source/code_helpers.rb:71):3: syntax errors found (SyntaxError)
     #     1 | BEGIN{throw :valid}
     #     2 |   def hello_#{name}(*args)
     #   > 3 |
     #       | ^ expected an `end` to close the `def` statement
     #
     #       | ^ unexpected end of file, assuming it is closing the parent top level context
     #   ./lib/method_source/code_helpers.rb:71:in 'Kernel#eval'

Finished in 0.00674 seconds (files took 0.04986 seconds to load)
36 examples, 7 failures

Failed examples:

rspec './spec/method_source/code_helpers_spec.rb[1:2]' # MethodSource::CodeHelpers should not raise an error on broken lines: def\na\n(); end
rspec './spec/method_source/code_helpers_spec.rb[1:3]' # MethodSource::CodeHelpers should not raise an error on broken lines: p = <<FOO\nlots\nand\nlots of\nfoo\nFOO
rspec './spec/method_source/code_helpers_spec.rb[1:4]' # MethodSource::CodeHelpers should not raise an error on broken lines: [\n:lets,\n'list',\n[/nested/\n], things ]
rspec './spec/method_source/code_helpers_spec.rb[1:5]' # MethodSource::CodeHelpers should not raise an error on broken lines: abc =~ /hello\n/
rspec './spec/method_source/code_helpers_spec.rb[1:6]' # MethodSource::CodeHelpers should not raise an error on broken lines: issue = %W/\n343/
rspec './spec/method_source/code_helpers_spec.rb[1:9]' # MethodSource::CodeHelpers should not raise an error on broken lines: puts 1, 2,\n3
rspec ./spec/method_source_spec.rb:74 # MethodSource Methods should return source for an *_evaled method

Because of https://github.com/banister/method_source/blob/06f21c66380c64ff05c8031c0208eef240da0e83/lib/method_source/code_helpers.rb#L125-L131
Is there a better way with Prism to find "subsets of SyntaxErrors that can be fixed by adding more input to the buffer" than matching messages (which seems very brittle)?

@kddnewton Any thoughts regarding that last sentence? IIRC IRB also wanted this predicate for syntax errors.

To answer your question — there is not currently a way. I think that discussion is still taking place here: https://bugs.ruby-lang.org/issues/20024.


feat(cards): add support for MS CryptoAPI tokens

WE2-716

Change the allowed PIN symbols regex to add support for the character ranges defined in the SafeNet Authentication Client Administrator Guide:

The Administrator password quality and Initialization Key quality must include three out of the following four
rules:

English uppercase letters (ASCII 0x41...0x5A)
English lowercase letters (ASCII 0x61...0x7A)
Numeric (ASCII 0x30...0x39)
Special characters (ASCII 0x20...0x2F + 0x3A...0x40 + 0x5B...0x60 + 0x7B...0x7F)

Add support for UTF letters (umlauts etc) as well.


Allow syncWith() to specify interfaces

Currently syncWith() takes no options, AFAICT.  (Contradicting the docs, BTW)
It would be nice to be able to bidirectionally link two objects that don't share the same interface.  Unfortunately, the obvious method for doing this, passing an object with observerInterface and subjectInterface wouldn't help because they switch roles.  However, it's entirely possible (likely?) that the interface for each specific object would stay the same for both directions, we just need a way of specifying them, but I'm not sure the best way to do that..  leftInterface and rightInterface ?  Blech.
Example:
var a = Synapse($('#foo')), b = Synapse(new Backbone.Model());

// tedious
a.observe(b, 'some_prop_on_b', 'attr.some_attr_on_a')
  .notify(b, 'attr.some_attr_on_a', 'some_prop_on_b');

// better?
a.syncWith(b, { leftInterface: 'attr.some_attr_on_a', rightInterface: 'some_prop_on_b' });

// a.k.a.
a.syncWith(b, 'attr.some_attr_on_a', 'some_prop_on_b');

Probably also helpful to have a way to specify triggerOnBind with a direction in the options (i.e. which object is the source of authority for the initial one-way sync)

I too have not come to a clear/clean solution for this. It most likely will need to be denoted by left and right. When interfaces and/or events are not detected, the verbosity of defining a binding is miserable. An alternate approach for configuring the DOM-based hooks (jQuery, Zepto, and Backbone View) is to extend these: https://github.com/bruth/synapse/blob/master/src/synapse/hooks/jquery.coffee#L206-231 which are exposed, but not documented.


Add relevant icons at home page

I would like to work on this. It would be great if you could assign this

I would like to work on this issue as well. please assign in case the issue is not resolved.

I would like to work on this issue as well. please assign in case the issue is not resolved.

I have already assigned it to @devil-cyber there are other issues opened you can work on that or open new ones if you find anyone. Contribution in any form is appreciated 🙂

@ramyak-mehra  while running the app this error occurred:
Error: Type 'DiagnosticableMixin' not found.
I tried to change the flutter_svg version but that is giving another error adobe_xd only work with flutter_svg^ 0.17.4
any idea how to solve this

@ramyak-mehra  while running the app this error occurred:
Error: Type 'DiagnosticableMixin' not found.
I tried to change the flutter_svg version but that is giving another error adobe_xd only work with flutter_svg^ 0.17.4
any idea how to solve this

Remove the Adobe xd package and bump up the version for the flutter svg
The new flutter update broke the older flutter svg package

ok let me try 😃

@ramyak-mehra new error:
google-services.json is missing.

@devil-cyber  you gotta add that file in the app folder.
make firebase project with com.dsctiet.mobileapp
You will find google-services.json file there

Ok thanks
On Thu, Oct 1, 2020, 12:26 PM Priyanshu Sunadia<EMAIL_ADDRESS>wrote:

@devil-cyber https://github.com/devil-cyber you gotta add that file in
the app folder.
make firebase project with com.dsctiet.mobileapp
You will find google-services.json file there
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/developer-student-club-thapar/mobile-app/issues/19#issuecomment-701929819,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AMPIV6VXIN3K2YAITRSAIZ3SIQR2JANCNFSM4R4YAYLQ
.

@devil-cyber  what's the status on icons?
I might have to complete it myself as we have a deadline ahead of us


221 demonstrate use of predictive distributions in tutorials using arviz

Add 'hdi_type' plot with equal tailed credible intervals to demonstrate posterior predictive distribution using arviz

There was a lot of merging and reverting here. But the code relevant to this PR are lines 487-541 in 'examples_with_datasets.qmd' @damonbayer

Closing this due to mangled history, see #234


Output Explaination

Hello, Thanks for sharing your work. Could you explain the output of the predict model?
TIA

Hi!
Thanks for your interest.
Do you mean predict.py?
The output is a file with one json per line. Each json contains the following keys:
cased_words:   a list of words in the document (each word is a string)
span_clusters: a list of coreferent clusters, each cluster is a list of spans, each span is a tuple of word indices (start, end).
    for instance, in "Jack and Jill went up the hill", [0, 1] will refer to "Jack" and [5, 7] will refer to "the hill".
word_clusters: a list of coreferent clusters, each cluster is a list of word indices.
    Basically it's the same as span_clusters, but with individual words instead. You would have 0 for "Jack" and 6 for "hill" here.


Integration with libp2p and/or bifrost

norouter is really cool, the idea of forwarding IP traffic via a stdin/stdout "exec" session is great.
I see a few ways my project Bifrost and libp2p could improve norouter and vise-versa:

Bifrost defines a Transport interface and a common Quic transport over a io.Reader/io.Writer or a net.Listener.
Norouter can pass the "exec" session read/writer to the Quic constructor to make a Transport.
Bifrost can then be dynamically configured to listen on local ports & forward traffic via norouter.
Multiple transports can be used simultaneously & Bifrost will balance traffic over them.
Other logic like connection management and on-demand conns is then implemented "for free"

There's then a very modular / easy way to then swap norouter out for a more production grade transport like direct UDP connections w/ k8s DNS resolution later on, without changing any app code.
Would love to hear your thoughts on this @AkihiroSuda

Feel free to open pull requests 🙂 (any change needed on norouter side?)

I'll prototype a transport :)


Calling super.foo with wrong arguments creates a NoSuchMethodError with _existingArgumentNames set to null

NoSuchMethodError's toString knows how to report the case of a call having mismatched arguments. However, in the specific case of calling a superclass method with the wrong number of arguments, the expected arguments aren't reported so it doesn't get it right.

class A {
  void test() { }
}

class B extends A {
  void test() {
    super.test(1);
  }
}

void main() {
  new B().test();
}

leads to:
Unhandled exception:
Super class of class 'B' has no instance method 'test'.

NoSuchMethodError: method not found: 'test'
Receiver: Instance of 'B'
Arguments: [1]

Compare to changing the bottom call to new B().test(1):
Unhandled exception:
Class 'B' has no instance method 'test' with matching arguments.

NoSuchMethodError: incorrect number of arguments passed to method named 'test'
Receiver: Instance of 'B'
Tried calling: test(1)
Found: test()

This is fixed with 2d0522b643e2f6057d8af317b19064c71cd25c20