Column instance with the python app

Column instance with the python version is not working.
When I try to execute this code :
%pyspark
from pyddq.core import Check
from pyddq.reporters import ZeppelinReporter
df = sqlContext.createDataFrame([(1, "a"), (1, None), (3, "c")])
check = Check(df)
reporter = ZeppelinReporter(z)
check.satisfies(df._1 > 0).run([reporter])
I get :
TypeError: 'Column' object is not callable

@Gerrrr any thoughts? What was the reason why we didn't implement?

Originally I did not figure how to convert pyspark.sql.Column into scala's column. It is implemented in https://github.com/FRosner/drunken-data-quality/pull/118 now.


automatic selection of card targets when playing manually

I would like to see automatic selection of card targets when cards are played manually when the automatic execution of card Play and Redraw is stopped due to Divination, etc.
I play with a controller and sometimes I want to Play manually, but then it is very difficult to target an ally.
Thanks for all your help.

sry, The release will be delayed due to a prolonged schedule.
I'll update it tomorrow, so please wait.

Implementation completed in <IP_ADDRESS>.


Non-admin users can't add a new record

Describe the bug
Some users on https://latest.cortezaproject.org/ reported they don't have an option to add a new record.
As an admin, I went to the Compose admin panel and changed the "Access to compose" permission from deny to allow for everyone.
As an admin, I went to "CRM" namespace > admin pages > modules and changed the "Create record of any module", "Update records of any module", "Read records of any module" from deny to allow for everyone.

As a non-admin user, I still can't see the option to add a new record. Can you please check? I created a testing non-admin account so let me know if you need credentials.

bad permission mapping in the UI. Fixed in 5340f10.

latest.corteza updated.


update buildpack orders to reflect rearch

Summary

An exploration in shaking up the buildpack order in the .NET buildpack.

Use runtimeconfig.json to determine what runtimes (if any) are required at runtime.
Make .NET publish buildpack responsible for requiring a specific .NET SDK version
install ASP.NET as shipped by Microsoft (includes .NET runtime)
install runtimes after dotnet publish, since they aren't needed in the build phase

To experiment with this spike:

clone the ASP.NET, .NET SDK, .NET Publish, and .NET Execute buildpacks; for each, check out the rearch-spike branch
build each of the component buildpacks
replace their entries in this buildpack's package.toml with the paths to the local buildpackages
build this composite buildpack locally
use it to build apps!

Use Cases

Checklist

[ ] I have viewed, signed, and submitted the Contributor License Agreement.
[ ] I have linked issue(s) that this PR should close using keywords or the Github UI (See docs)
[ ] I have added an integration test, if necessary.
[ ] I have reviewed the styleguide for guidance on my code quality.
[ ] I'm happy with the commit history on this PR (I have rebased/squashed as needed).

Superceded by #818


feat(langauge): LOCAL-10116 adding placeholder file for hindi

@daragh-king-genesys - Please approve and merge this PR. Thanks.


No doubt ,message gets duplicated all time with RNChat sample project . Any help ???

This doesn't work well , there are so many warnings . There is also all time duplicate messages which has not been seen ,when you enter to see unseen messages then all unread messages gets duplicated !!!!
which just make this package painful. There are so many bugs also ......

A new chat sample with new push notification lib is created
Please follow this MR for any issues https://github.com/ConnectyCube/connectycube-reactnative-samples/pull/296


SectionList: render each section inside a container (View)

Is it possible to render each section in sectionlist inside a View container or give it styles?
What i want is something like this:
<View style={styles.container}>

      <SectionHeader />
      <SectionItem />
      <SectionItem />
      <SectionFooter />

</View>

How did you manage this problem? Could you find a solution?


Is search working in Channel Islands?

No smiths of any age, any year, in any place found on a search of the Channel Islands (FC1 has 'too many' to display).

Pat to review

FreeCEN2 still no search results for Smith, Channel Islands
FreeCEN1 timing out on a search for Smith, Channel Islands, 1861 (works fine for ALcock, NRY, 1861
Error on FreeCEN2: for Records 1861 St Helier: Error message: Validation of FreecenDwelling failed. summary: The following errors were found: Place can't be blank resolution: Try persisting the document with valid data or remove the validations.

@Captainkirkdawson @AnneV-Learn to explore what is going on

@PatReynolds
I have just done several searches for SMITH in Channel Islands Census and get results with them all:

![Screenshot 2021-07-17 at 11.18.57.png]
(https://images.zenhubusercontent.com/6009aeccd60429cb7008e5d3/bf19bf93-92a9-424e-893f-35c5404dde9d)
￼
￼
￼
￼


Refactor admonition

Changes:

Change paragraph tag to a header (semantic html)
Add block: true so that the output html is more readable
Remove the admonition-body div. This was not used in the CSS, and is not based on the current output from sphinx (and current themes)

This simplifies the code and doesn't introduce another css selector

Make the CSS less specific about the header selector (remove the paragraph requirement)
Remove space in class names for admonitions
Update the tests, ensure that the css is visually similar to previous

Before:

A Title

Some content

After:

A Title

Some content

cheers! At first glance, this looks good. Will give it proper due dilligence soon


Error copying in Libreoffice Calc

Hello,
first of all: Thanks for Yippy. It is really a great tool.
When I copy a cell in LibreOffice Calc I get something like "Failed to save new pasteboard item due to error: The item couldn’t be saved because the file name “dyn....weqbc” is invalid."
Nevertheless the text was copied to Yippy. Hence everything seems to work fine but the window with the message is annoying.
Best regards
Michael

Resolved in https://github.com/mattDavo/Yippy/releases/tag/2.6.0


Define dynamic config and integrate in service bootstrap

This is WIP. Sending out to get initial feedback.

I think we agreed on the design that doesn't use lookups to config from the application code. Instead we only use structures to configure any application logic.

@mfateev Similar to latest commit? Or ware you implying dependency injection?

Coverage decreased (-0.2%) to 68.273% when pulling efe77bc4707d409fea2b415dca59dc4195e2dd52 on dynamic into d429f53cd8ff8dece04ec2f0738c97fbad09e5a3 on master.


{ARM} az policy assignment: Change policy assignment parameter descriptions (#25446)

Fix incorrect target branch main from #25446.

ARM

Will work on https://github.com/Azure/azure-cli/pull/25797 instead.


When the bag is full, should it do RecycleItems?

Expected Behavior
I added the "min_empty_space": 	0, line into config. Then it starts to collect all the items. When the bag is full, it should recycle according to the rules. And i have to stop the bot then change config and to log in again.
Also, the message of skip  recycle appeared every second line. Which is too much
Your config.json (remove your credentials and any other private info)
			"config": {
				"min_empty_space": 	0,
				"item_filter": {
					"Pokeball":	{ "keep" :	 10 },
					"Greatball":	{ "keep" :	 30 },
..

It's a bug right now. set // min_empty_space or delete it.


fix xattr include names

Hi,
The master branch does not compile correctly due to an xattr bad Path
Env:

OS: ArchLinux
Kernel: Linux 4.19.8

➜  overlayfs-tools git:(master) ✗ make
gcc -Wall -std=c99 -c main.c
main.c:15:10: fatal error: attr/xattr.h: No such file or directory
 #include <attr/xattr.h>
          ^~~~~~~~~~~~~~
compilation terminated.
make: *** [makefile:11: main.o] Error 1

I create a small branch named fix_xattr_lib_include to try to fix this
Now it compiles :
➜  overlayfs-tools git:(fix_xattr_lib_include) ✗ make
gcc -Wall -std=c99 -c main.c
gcc -Wall -std=c99 -c logic.c
gcc -lm main.o logic.o sh.o -o overlay

I will test a bit more, but feel free to take a look at your side too :)
Bye o/

FWIW, Fedora's libattr-devel provides /usr/include/attr/attr.h as a compatibility symlink, but it's deprecated. See Fedora bug 1601482.

FWIW, Fedora's libattr-devel provides /usr/include/attr/attr.h as a compatibility symlink, but it's deprecated. See Fedora bug 1601482.

It's been quite a while, I barely remember what I've done with it actually.
Let's close this issue, the code seems to works well without this addition now :)
Have a nice day

It's been quite a while, I barely remember what I've done with it actually.
Let's close this issue, the code seems to works well without this addition now :)
Have a nice day


Missing overall result: fail on test case timeout

If a test case in test suite fails due to timeout there is no overall result for that test case and thus it can't be found easily.
The run just reports n tests passed and 1 error and you basically have to match list of tests with results with tests that were executed to find the one offending case to investigate.
Maybe this could also be fixed by generating some overall result report so I don't have to grep OVERALL from the log to get the list of failing cases.

$ tmt run -a provision -h local
/var/tmp/tmt/run-176
...
    execute
        how: tmt
        summary: 1 test executed
    report
        how: display
        summary: 1 error

$ tmt run --id /var/tmp/tmt/run-176 report -v
/var/tmp/tmt/run-176

/plans/default
    report
        how: display
            errr / (timeout)
        summary: 1 error

total: 1 error

Right, now I don't understand why I filled this in the first place because the verbosity is obvious.
Also -v can be added to the run as well, no need for specifying it extra for report.


OIPA-2543

Assessing files being excluded/not refreshed in the DS; Discrepancies with IATI Validator

:tada: This PR is included in version 5.6.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


micro-stacks.store value always has Mainnet address

micro-stacks.store local storage value always has Mainnet address, even if there's both network="testnet" supplied to ClientProvider and Hiro Wallet signs in to Testnet. Same for ClientProvider onPersistState dehydratedState, so it seems impossible to SSR correctly on Testnet becauseuseAccount stxAddress is always the Mainnet one (even though useNetwork isMainnet is correctly false).

This is a known issue, in that if there is a saved state of mainnet in the users session, eg saved to cookie or in localstorage, the network= value in the client provider will be ignored.
I will be pushing an update this week that will change the behavior of the network value, such that folks can either force the setting of network via that value, or have it be set as the "default" value, which if there is a different value for the user session, it will be ignored.

To test and make sure this is the case, can you clear all application data (localStorage, cookies, etc), and make sure testnet is the value, and then determine that it's either testnet or mainnet on the server?
Also, if you can share a reproduction or repo for your project, that would help.

fixed with https://github.com/fungible-systems/micro-stacks/pull/159

Please update your dependencies to their latest versions and let me know if you run into any issues!

@aulneau with your fix #159 (thanks for the PR to my repo!) the lib is updating the local storage & cookie when signing out/in, but it's still putting Mainnet address in them even if there's both network="testnet" supplied to ClientProvider and Hiro Wallet signs in to Testnet. My repo is https://github.com/akornato/stacks-dashboard deployed at https://stacks-dashboard.vercel.app

@akornato I just tried out your project and found it to behave as I expect:

clear all local storage and cookies
set the network to 'testnet' in _app.tsx
console.log the value of useCurrentStxAddress (both server and client are correct)
address is in testnet mode
change testnet to mainnet in _app.tsx
console.log the value of useCurrentStxAddress (both server and client are correct)

If you do not pass enableNetworkSwitching to the config, the value saved to localStorage or cookie will be ignored, and the only value that matters is what is passed to the Config provider.
Does this help? If you have other questions please let me know!

@aulneau indeed useAccount and useCurrentStxAddress are now returning Testnet address on the server correctly, that's great! However the dehydratedState I'm accessing in getServerSideProps still has Mainnet address. I need the Testnet address there to be able to fetch correct data for Testnet address on the server.

Is there a solution to accessing the testnet address from the dehydratedState when using getServerSideProps?


Fix publish by Unicorn.

When enabling the UnicornSyncEnd the deserialized items where not published, they where not added to Unicorns publish queue.

Reviewed with Wim V


Support cocoa pod

I want to install it throw cocoa pod, can you support pod please.
Thanks

Given its MIT I just imported the source directly into my project (its only 3 classes anyhow).  Perhaps a Cocoapod isn't really needed for such a small addition?


Any plans to publish this to NPM?

It would be useful for those of us using browserify to build our JS bundles to be able to pull this in via NPM. Any thoughts?

You should now be able to require this in your package.json file:

"dependencies": {
    "aws-sdk-mobile-analytics": ">=0.9.0",
    "aws-sdk": ">=2.1.18"
  }

:+1:

how do you use "aws-sdk-mobile-analytics" dependency in a react-native app? I can't import it from node module.


Define the process model

First of all, define the own process model for adding IPC.

achieve it in xbionic!!


Cleanup

Removing deprecated "Old" directory with old version of application
Move JS and CSS files into bundle config
Move connection strings to developer settings

ASP.Net replaced for Django...


@1x support

+1 for support for 1x

+1 for same

Yeah for 1x!

+1 this (@1x) would be amazingly useful. thanks!

@schwa23 Hey! I was working on getting this up for @1x based on your script only. I'm not really great at code and wanted your help in 2 things -

I reckon you have used polynomial regression for generating tracking values for font-sizes not mentioned by Apple. How do i generate a better regression formula with new x,y inputs of 1x values?

Apple recommends interpolating values. Is it same as polynomial regression?

Thanks,
Sankalp

+1
C'mon.. it's time to adopt @1x for design work. Really.

@iamsankalp 1) The formulas shouldn't change; it should be just a matter of multiplying the input by 2, then dividing the output by 2. For 2) I actually tried to do a linear interpolation at first, but the polynomial regression turned out to be easier, and for 99% of the usage the results are the same.

FYI if anyone is reading this, just updated the plugin with 1x support. let me know if you have any problems with it.

@schwa23 Thanks for replying and update, Joshua! :)


[Python] Support conversion of pyarrow.RunEndEncodedArray to numpy/pandas

Describe the enhancement requested
We want to enable the conversion of Run-End Encoded arrays to numpy and pandas. For example, this should not fail:
In [1]: import pyarrow as pa
   ...: import pyarrow.compute as pc
   ...:
   ...: arr = pc.run_end_encode([1, 1, 2, 3, 3, 3, 6])
   ...: arr.to_numpy()
---------------------------------------------------------------------------
ArrowNotImplementedError                  Traceback (most recent call last)
Cell In[1], line 5
      2 import pyarrow.compute as pc
      4 arr = pc.run_end_encode([1, 1, 2, 3, 3, 3, 6])
----> 5 arr.to_numpy()

File ~/repos/arrow/python/pyarrow/array.pxi:1585, in pyarrow.lib.Array.to_numpy()
   1583
   1584         with nogil:
-> 1585             check_status(ConvertArrayToPandas(c_options, self.sp_array,
   1586                                               self, &out))
   1587

File ~/repos/arrow/python/pyarrow/error.pxi:91, in pyarrow.lib.check_status()
     89     return -1
     90
---> 91 raise convert_status(status)
     92
     93

ArrowNotImplementedError: No known equivalent Pandas block for Arrow data of type run_end_encoded<run_ends: int32, values: int64> is known.

Component(s)
Python

Issue resolved by pull request 40661
https://github.com/apache/arrow/pull/40661


Added space for workshop info

First commit regarding Nuclear Data workshop

Spelling issues only last names & institutions.


[R] read_parquet from s3 is slow and often flakey

Describe the bug, including details regarding any error messages, version, and platform.
R version 4.3.0
Ubuntu 20.04.6
Sometimes it fails, other times it hangs, but it always takes longer than similar methods using aws.s3 and it's unclear why. Here are some examples of the errors I see. Otherwise it's just a significant delay like it's running into a time out somewhere and retrying:
Error: IOError: AWS Error NETWORK_CONNECTION during GetObject operation: curlCode: 28, Timeout was reached

Error in url(file, open = "rb") : URL scheme unsupported by this method

Reprex:
The two scripts below, in my example point to a small 5mb file. I can run this on a machine with arrow 8.0.0 or a machine with arrow 12.0.0 and the result is the same (significant delay with s3:// addresses)
library(dotenv)
library(tictoc)

load_dot_env()

tic(); df <- read_parquet("s3://somefile.parquet"); toc()
# 70.211 sec elapsed

vs.
library(aws.s3)
library(dotenv)

load_dot_env()

load_aws <- function(f) {
    read_parquet(
        get_object(
            object = f,
            bucket = "s3://bucket-name",
            region = "eu-west-1"
        )
    )
}

tic(); df <- load_aws("s3://somefile.parquet"); toc()
# 1.394 sec elapsed

On the same machines I can run a similar test in Python and the delay is not there leading me to believe it is something explicitly with the implementation in R. Happy to help debug! Tell me what you need.
Component(s)
R

Thanks for the report. One difference between your arrow and aws.s3 code is that the arrow code first has to find the region(s) the object exists in so it will always be a bit slower. But 70sec is extreme. Can you add ?region=eu-west-1 to your S3 URI which I think will skip the bit where we try to find the region? Like:
read_parquet("s3://arrow-s3-testing-eu-west-1/starwars.parquet?region=eu-west-1")
That said, the below error seems like something else:

Error in url(file, open = "rb") : URL scheme unsupported by this method

I first tested to make sure read_parquet was working for me, which it was, but I noticed you're in eu-west-1 so I made a bucket in eu-west-1 and tried again and got the above error. I knew I didn't set a bucket ACL so I thought it might be related to that so I stepped through it in the debugger and found the issue: read_parquet is eating an AWS authentication error in this code:
https://github.com/apache/arrow/blob/8b6688acca6d14ea69c533c150b2cc05a1403f91/r/R/io.R#L253-L260
> fs_and_path$fs$OpenInputFile(fs_and_path$path)
Error: IOError: When reading information for key 'starwars.parquet' in bucket 'arrow-s3-testing-eu-west-1': AWS Error ACCESS_DENIED during HeadObject operation: No response body.

Once I set an ACL the error went away and reads were against fast (1-2sec). So I guess my question is why you might be intermittently getting an error that read_parquet is eating and what is that error? Unfortunately #35398 isn't merged just yet but once it is it might help. No matter what we find here, it would be good to tweak the code so errors aren't eaten.

Can confirm that this was wildly faster when I set the paramter on the s3 path. Very good catch! A general comment here is that I am setting an .env var for AWS_DEFAULT_REGION along with access id and secret keys so perhaps trying the default region first would be useful. If you are familiar with where this happens I'm happy to submit a PR.

What happens when you remove AWS_DEFAULT_REGION and just have the access/secret keys in your .env and try with the S3 URI as you did initially (ie w/o ?region)? I'm curious if AWS_DEFAULT_REGION is reacting antagonistically with our region guessing code.

It's the same (delay). I have two envs, only one of which has the AWS_DEFAULT_REGION set and it was slow on both without the param ?region=

Okay, that's good to know. The region lookup code is triggered in the underlying Arrow C++ implementation around https://github.com/amoeba/arrow/blob/8b6688acca6d14ea69c533c150b2cc05a1403f91/cpp/src/arrow/filesystem/s3fs.cc#L343 and below but I'm not sure what change we actually want here yet. It's the weekend so others will probably see this next week. Despite what we've learned here, timeouts and 70sec delays are still very strange.

Oh, apologies, I don't have too much experience with that language. I thought the check might happen in R. Strange that it translates so slowly either way depending on SDK.

Are you accessing a public file?  My guess is that you're running into the default AWS credentials checker.  By default, even if the file is public, AWS is going to try and figure out what credentials you are using before making any request.
Unfortunately, if you don't have a credentials file stored somewhere that it expects (e.g. ~/.aws/credentials) then it will start trying some unpleasant alternatives.  The main problematic alternative is to make a request to <IP_ADDRESS> which is a special magic IP address that all EC2 containers are configured to serve that contains EC2 metadata (e.g. in case your EC2 instance has credentials assigned to it).  Depending on your system's networking configuration it may take some time for this request to fail.
So, for example, if I delete my credentials file, turn on AWS trace logging, and run your test then the first option takes 13 seconds and my logs are filled with messages like this:
[INFO] 2023-06-13 17:28:26.917 ProcessCredentialsProvider [140191537006528] Failed to find credential process's profile: default
[TRACE] 2023-06-13 17:28:26.917 FileSystemUtils [140191537006528] Checking HOME for the home directory.
[DEBUG] 2023-06-13 17:28:26.917 FileSystemUtils [140191537006528] Environment value for variable HOME is /home/pace
[DEBUG] 2023-06-13 17:28:26.917 FileSystemUtils [140191537006528] Home directory is missing the final / appending one to normalize
[DEBUG] 2023-06-13 17:28:26.917 FileSystemUtils [140191537006528] Final Home Directory is /home/pace/
[DEBUG] 2023-06-13 17:28:26.917 SSOCredentialsProvider [140191537006528] Loading token from: /home/pace/.aws/sso/cache/da39a3ee5e6b4b0d3255bfef95601890afd80709.json
[DEBUG] 2023-06-13 17:28:26.917 SSOCredentialsProvider [140191537006528] Preparing to load token from: /home/pace/.aws/sso/cache/da39a3ee5e6b4b0d3255bfef95601890afd80709.json
[INFO] 2023-06-13 17:28:26.917 SSOCredentialsProvider [140191537006528] Unable to open token file on path: /home/pace/.aws/sso/cache/da39a3ee5e6b4b0d3255bfef95601890afd80709.json
[TRACE] 2023-06-13 17:28:26.917 SSOCredentialsProvider [140191537006528] Access token for SSO not available
[DEBUG] 2023-06-13 17:28:26.917 InstanceProfileCredentialsProvider [140191537006528] Checking if latest credential pull has expired.
[INFO] 2023-06-13 17:28:26.917 InstanceProfileCredentialsProvider [140191537006528] Credentials have expired attempting to re-pull from EC2 Metadata Service.
[TRACE] 2023-06-13 17:28:26.917 EC2MetadataClient [140191537006528] Getting default credentials for ec2 instance from http://<IP_ADDRESS>
[TRACE] 2023-06-13 17:28:26.917 EC2MetadataClient [140191537006528] Retrieving credentials from http://<IP_ADDRESS>/latest/meta-data/iam/security-credentials
[TRACE] 2023-06-13 17:28:26.917 CurlHttpClient [140191537006528] Making request to http://<IP_ADDRESS>/latest/meta-data/iam/security-credentials
[TRACE] 2023-06-13 17:28:26.917 CurlHttpClient [140191537006528] Including headers:
[TRACE] 2023-06-13 17:28:26.917 CurlHttpClient [140191537006528] host: <IP_ADDRESS>
[TRACE] 2023-06-13 17:28:26.917 CurlHttpClient [140191537006528] user-agent: aws-sdk-cpp/1.10.13 Linux/5.19.0-43-generic x86_64 GCC/10.4.0
[DEBUG] 2023-06-13 17:28:26.917 CurlHandleContainer [140191537006528] Attempting to acquire curl connection.
[INFO] 2023-06-13 17:28:26.917 CurlHandleContainer [140191537006528] Connection has been released. Continuing.
[DEBUG] 2023-06-13 17:28:26.917 CurlHandleContainer [140191537006528] Returning connection handle 0x563be150dc20
[DEBUG] 2023-06-13 17:28:26.917 CurlHttpClient [140191537006528] Obtained connection handle 0x563be150dc20
[DEBUG] 2023-06-13 17:28:26.918 CURL [140191537006528] (Text)   Trying <IP_ADDRESS>:80...
[DEBUG] 2023-06-13 17:28:27.919 CURL [140191537006528] (Text) After 1000ms connect time, move on!
[DEBUG] 2023-06-13 17:28:27.919 CURL [140191537006528] (Text) connect to <IP_ADDRESS> port 80 failed: Connection timed out
[DEBUG] 2023-06-13 17:28:27.919 CURL [140191537006528] (Text) Connection timeout after 1001 ms
[DEBUG] 2023-06-13 17:28:27.919 CURL [140191537006528] (Text) Closing connection 0\
[ERROR] 2023-06-13 17:28:27.919 CurlHttpClient [140191537006528] Curl returned error code 28 - Timeout was reached

There is a way to specify anonymous credentials when creating an S3 filesystem (which should prevent S3 from trying to recalculate credentials on each request) but I don't know enough of the R library to know how to plumb that through to something like read_parquet.

I am accessing a file that is not public. Credentials are loaded in env variables AWS_SECRET_ACCESS_KEY, AWS_ACCESS_KEY_ID. It works much better now that I've added the parameter ?region.

Ok.  I hadn't noticed the default region was configured for me in ~/.aws/config (and not credentials).  If I remove that file then I see a delay even if I have credentials.  It appears to be the same basic idea, AWS is attempting to get the region from some EC2 address and, depending on how your network is configured, it may take a long time for it to realize that doesn't work:
[TRACE] 2023-06-13 18:55:34.572 EC2MetadataClient [139814276814784] Getting current region for ec2 instance
[TRACE] 2023-06-13 18:55:34.572 EC2MetadataClient [139814276814784] Retrieving credentials from http://<IP_ADDRESS>/latest/meta-data/placement/availability-zone
[TRACE] 2023-06-13 18:55:34.572 CurlHttpClient [139814276814784] Making request to http://<IP_ADDRESS>/latest/meta-data/placement/availability-zone
[TRACE] 2023-06-13 18:55:34.572 CurlHttpClient [139814276814784] Including headers:
[TRACE] 2023-06-13 18:55:34.572 CurlHttpClient [139814276814784] host: <IP_ADDRESS>
[TRACE] 2023-06-13 18:55:34.573 CurlHttpClient [139814276814784] user-agent: aws-sdk-cpp/1.10.13 Linux/5.19.0-43-generic x86_64 GCC/10.4.0
[TRACE] 2023-06-13 18:55:34.573 CurlHttpClient [139814276814784] x-aws-ec2-metadata-token:
[DEBUG] 2023-06-13 18:55:34.573 CurlHandleContainer [139814276814784] Attempting to acquire curl connection.
[INFO] 2023-06-13 18:55:34.573 CurlHandleContainer [139814276814784] Connection has been released. Continuing.
[DEBUG] 2023-06-13 18:55:34.573 CurlHandleContainer [139814276814784] Returning connection handle 0x5615e85f8ff0
[DEBUG] 2023-06-13 18:55:34.573 CurlHttpClient [139814276814784] Obtained connection handle 0x5615e85f8ff0
[DEBUG] 2023-06-13 18:55:34.573 CURL [139814276814784] (Text)   Trying <IP_ADDRESS>:80...

[DEBUG] 2023-06-13 18:55:35.107 CURL [139814276814784] (Text) connect to <IP_ADDRESS> port 80 failed: No route to host

[DEBUG] 2023-06-13 18:55:35.107 CURL [139814276814784] (Text) Failed to connect to <IP_ADDRESS> port 80 after 533 ms: Couldn't connect to server

Adding ?region did not help as I'm still experiencing timeouts. I'm trying to read a large directory of parquet files but only bring back the one file that matches a particular ID and I'm using arrow to do so.
My S3 URI looks like this s3://archetypetx-bucket1/workflow_data/outputs/pubchem/latest/mcrpc/results_summary?region=us-east-1, but I can see in the shinyapps.io logs that it's not retaining the region parameter. I've also set AWS_DEFAULT_REGION in my .Renviron file. Thank you for any help.
Error in compute.arrow_dplyr_query: IOError: Could not open Parquet input source 'archetypetx-bucket1/workflow_data/outputs/pubchem/latest/mcrpc/results_summary/partition=10/c81b17e8f4e94be19905c47ffee281ca-0.parquet': AWS Error NETWORK_CONNECTION during GetObject operation: curlCode: 28, Timeout was reached

@tcash21 If you haven't yet I'd recommend trying aws.s3::s3reqd_using() while setting FUN = arrow::read_parquet. I spent a lot of time trying to debug this but arrow for R still proved too unreliable in the cloud because of its region and file path methodology (it'd often timeout and eat error). I've been following this thread hoping for a clean fix, but as of now the aws.s3 has proven more reliable.

@JerePlum99 thank you I'm trying this but does it work with partitioned parquet files? I'm not querying one specific object so it's throwing an error at me. I've resorted to using duckDB for now instead but it's much slower than arrow was.
pc <- aws.s3::s3read_using(bucket = base_url, object = "partition*/*.parquet", FUN = arrow::read_parquet)

@tcash21 I'm a bit rusty but aws.s3 isn't extremely well maintained and I don't think it has the more sophisticated partitioning logic available. Sorry this doesn't solve your issue, I can confirm it's not just you and there doesn't appear to be a reliable workaround within the current arrow package version.


添加链表排序算法

feature 添加链表排序算法

Sent from Mail for Windows 10
From: lin dong
Sent: Saturday, July 7, 2018 4:35 PM
To: crossoverJie/Java-Interview
Cc: Subscribed
Subject: Re: [crossoverJie/Java-Interview] 添加链表排序算法 (#52)
@ryandonglin commented on this pull request.
In src/main/java/com/crossoverjie/algorithm/LinkedListMergeSort.java:

@@ -0,0 +1,127 @@
+package com.crossoverjie.algorithm;

+/**

链表排序, 建议使用归并排序
好的，我再完善一下
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.

m
Sent from Mail for Windows 10
From: crossoverJie
Sent: Friday, July 6, 2018 11:09 PM
To: crossoverJie/Java-Interview
Cc: Subscribed
Subject: Re: [crossoverJie/Java-Interview] 添加链表排序算法 (#52)
Merged #52.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.


Strong named?

Trying to use this in a VS extension, but that requires the dll to be strong named - is that available?

Hi @ErikEJ,
Sorry, I don't have a strong named version. However there are ways to strong-name assemblies in Nuget packages:

https://blog.maartenballiauw.be/post/2014/09/10/automatically-strong-name-signing-nuget-packages.html
Assembly Strong-Naming Toolkit

Thanks, I will strong name the dll


NSString+Attributed.swift stack oveflow

The extension for NSString when used, result on an infinite loop.
extension Attributed where Base == NSString {

    public func attributed(with attributes: Attributes) -> NSAttributedString {
        return attributed(with: attributes)
    }

    public func attributed(_ attributeBlock: (Attributes) -> (Attributes)) -> NSAttributedString {
        return attributed(attributeBlock)
    }
}

I believe the intended behaviour here was to call the String extension, and if so, the could should be:
extension Attributed where Base == NSString {

    public func attributed(with attributes: Attributes) -> NSAttributedString {
        return (self as String).at.attributed(with: attributes)
    }

    public func attributed(_ attributeBlock: (Attributes) -> (Attributes)) -> NSAttributedString {
        return (self as String).at.attributed(attributeBlock)
    }
}

@vfn Thanks so much for catching this, yes I believe this slip-up got in when I updated the
library to use the new way of writing extensions.
I will throw a pull request up soon, mind reviewing it?

https://github.com/Nirma/Attributed/pull/27 fixes it.


Remote control through "_ssh"

Cause of the non-existence of _log function, need to remove this listener.
Tempory fix if you have this error: foglet._ssh.removeAllListeners('logs')

Todo:

[ ] Remove signaling.emit on construction, if you want to use/customize signaling emit/on, just access to the signaling object: foglet._ssh.signaling


Fixes for directory traversal and filenames with spaces

Hi Petr,
This is a re-roll of https://github.com/bc-petrkotek/chromecastize/pull/24, I'll note in the files the differences between the two.
-Elijah

Could you provide a version without all the whitespace changes?

Closing this, if it is still an issue, feel free to create a new PR.


2.0.1 is giving error on my website now

Refused to apply style from<EMAIL_ADDRESS>because its MIME type ('text/plain') is not a supported stylesheet MIME type, and strict MIME checking is enabled.
(index):1 Refused to execute script from<EMAIL_ADDRESS>because its MIME type ('text/plain') is not executable, and strict MIME type checking is enabled.
(index):80 Uncaught TypeError: Cannot read property 'init' of undefined
at (index):80

Hi @avj2352
Thanks for reporting this issue. Are you explicitly adding the stylesheet to your index.html file or just the javascript file? The reason I'm asking is that we made a change in the past day or so which you now don't need to add the stylesheet anymore.
Can you give me a code example of how you run the plugin, please?

@jperasmus : Sure, the errors are both to do with the stylesheet and script of copy-code so I will send the links as is in my file:

for CSS, this is the current link:

For JS, this is the current script tag:

Okay, thanks. You can remove the stylesheet completely and change your script tag to:

You can then also remove the part where you explicitly ran window.DocsifyCopyCodePlugin.init() since version 2 of this plugin does that for you now. Just be sure to add the script tag below the docsify configuration object.

Thanks for the instructions on how to get this working with the new version. Just wanted to note though that you now need to load the js file after window.$docsify whereas before it worked before.

You're still manually loading the css file and also calling the plugin init() - remove those and it should work.

the css file is not loaded

the css file is not loaded

line #12 of @mohsens22 's code above is:
<link rel="stylesheet" href="//unpkg.com/docsify-copy-code/styles.css">

@adrianbj Just seen, the source code has CSS code

I removed them the error is gone but the plugin does not seem to work

<!DOCTYPE html>

  <meta charset="UTF-8">
  <title>Programming tips</title>
  <link rel="icon" href="docs/_media/favicon.ico">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
  <meta name="keywords" content="doc,programming,dotnet,goodpractices,mvc,tips,geeks,geeksltd">
  <meta name="description" content="Programming tips">
  <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
  <link rel="stylesheet" href="//unpkg.com/docsify/lib/themes/vue.css">

Loading ...

Hi @mohsens22
You'll need to put the script tag below the docsify.min.js one like you have with the other plugins. Can be above or below search.min.js.
Also, I'm not 100% sure if it would make a difference, but there shouldn't be a / at the end, the script tag should look like this:

doesn't work

Now it does work

Thanks @jperasmus - that fixes it...and I can confirm that the / at the end of the line will break it.

FYI...
The new URL allows unpkg.com to redirect requests to the appropriate file. This is better than linking directly to a developer may change file names or locations. Using the redirect makes this a non-issue.
As for the trailing slash...

Without slash = redirect to script file: https://unpkg.com/docsify-copy-code
With slash = list files in a package: https://unpkg.com/docsify-copy-code/

Appending a A[number] after the package name let's you specify versions:

v1.xx redirect = https://unpkg.com/docsify-copy-code@1
v1.xx files = https://unpkg.com/docsify-copy-code@1/
v1.xx redirect = https://unpkg.com/docsify-copy-code@2
v1.xx files = https://unpkg.com/docsify-copy-code@2/

😄

@gcphost Apologies for the breaking change. The changes made in 2.x along with the new install instructions should prevent this from happening in future releases.
If you find yourself linking to a CDN for a production site, it's safer to link directly to a specific version instead of the latest version. [Semantic versioning] rules indicate that a major version change (like v1.x => v2.x) includes breaking change(s). By that logic, it would be best to swap the order of the URLs presented in the README so folks are linking specifically to v2.x instead of the latest version to prevent a similar situation happening with future releases.

FYI, we've made two small tweaks (#8) that should help alleviate the issues caused by the breaking changes in 2.0:

Updated: README now recommends a version-specific CDN URL. Specifying a version ensures that the release of a major update (v3.x) will not break a production site.
Added placeholder file and method to prevent v1 installations that point to the latest release (causing v2 to be downloaded) from throwing an error. These v1 sites will no longer have copy code functionality since they need to update their script src, but the site will no longer break as a result. A console message will be displayed in this scenario to let devs know that v2 has been released and new installation instructions are available.

Thanks!


Fix erlang ref

I tried building locally and failed because this ref is not in the repo.
Looks like this was pinned against a merge commit that is no longer in the branch?

@GoelDeepak what happened here?

Community asked me to remove the merge commit and I didn't realized that dcos is pointing to that.
@mellenburg thanks for taking care of it


[assimp x64-linux] build failure

Host Environment

OS: Ubuntu 18.04.3 LTS
Compiler: G++ 7.4.0, CMake 3.10.2

To Reproduce

Setting up (installing if needed) VCPKG - see SetupVCPKG.txt (Originally is a cmake file included in main CMakeLists.txt)
Installing Dependencies with:
execute_process(COMMAND ${VCPKG_EXEC} install ${MY_PROJECT_DEPENDENCIES} --triplet ${VCPKG_TARGET_TRIPLET} WORKING_DIRECTORY ${VCPKG_ROOT})

Failure logs
[191/221] /usr/bin/c++ -DASSIMP_BUILD_DLL_EXPORT -DASSIMP_BUILD_NO_C4D_IMPORTER -DASSIMP_BUILD_NO_OWN_ZLIB -DASSIMP_IMPORTER_GLTF_USE_OPEN3DGC=1 -DMINIZ_USE_UNALIGNED_LOADS_AND_STORES=0 -DOPENDDLPARSER_BUILD -Iinclude -I. -I/home/ubuntu/vcpkg_cpptruths/buildtrees/assimp/src/v5.0.0-c7e52001a1/include -I/home/ubuntu/vcpkg_cpptruths/buildtrees/assimp/src/v5.0.0-c7e52001a1/code -I/home/ubuntu/vcpkg_cpptruths/buildtrees/assimp/src/v5.0.0-c7e52001a1/. -I/home/ubuntu/vcpkg_cpptruths/installed/x64-linux/include -I/home/ubuntu/vcpkg_cpptruths/buildtrees/assimp/src/v5.0.0-c7e52001a1/code/../contrib/rapidjson/include -I/home/ubuntu/vcpkg_cpptruths/buildtrees/assimp/src/v5.0.0-c7e52001a1/code/../contrib -I/home/ubuntu/vcpkg_cpptruths/buildtrees/assimp/src/v5.0.0-c7e52001a1/code/../contrib/unzip -I/home/ubuntu/vcpkg_cpptruths/buildtrees/assimp/src/v5.0.0-c7e52001a1/contrib/irrXML -I/home/ubuntu/vcpkg_cpptruths/buildtrees/assimp/src/v5.0.0-c7e52001a1/code/../contrib/openddlparser/include -I/home/ubuntu/vcpkg_cpptruths/buildtrees/assimp/src/v5.0.0-c7e52001a1/code/../include -Icode/../include -I/home/ubuntu/vcpkg_cpptruths/buildtrees/assimp/src/v5.0.0-c7e52001a1/code/.. -g -fvisibility=hidden -fno-strict-aliasing -Wall -fPIC -std=c++0x -fPIC -D_CRT_SECURE_NO_WARNINGS -O3 -DNDEBUG -MD -MT code/CMakeFiles/assimp.dir/FBX/FBXExporter.cpp.o -MF code/CMakeFiles/assimp.dir/FBX/FBXExporter.cpp.o.d -o code/CMakeFiles/assimp.dir/FBX/FBXExporter.cpp.o -c /home/ubuntu/vcpkg_cpptruths/buildtrees/assimp/src/v5.0.0-c7e52001a1/code/FBX/FBXExporter.cpp

install-x64-linux-rel-out.log
Additional context
Build runs successfully on windows (x64-windows). Tried updating vcpkg (./vcpkg update) and reinstalling vcpkg. Clone the recent version of the vcpkg source code from Git.

Hi @pweissenbacher, if you use cmake in your custom project, you can copy the dependencies without using execute_process. Here is the integration documentation:
https://github.com/microsoft/vcpkg/blob/master/docs/users/integration.md
which you can use in your work environment.

My problem is, that i need to deploy my custom Project which depends on several dependencies (GLFW, Assimp, ...)
My build runs on a Pipeline (each build runs gets a resetted build machine), where on each run of the build, VCPKG and all dependency packages need to be installed. And the installation of the assimp package gets stuck.
Maybe i got a really big twist in my thinking here, but i don't think that the vcpkg integrate install will help here.

There is no error in your provisioning log, but I found that the compilation process was interrupted:
[191/221] /usr/bin/c++  -DASSIMP_BUILD_DLL_EXPORT -DASSIMP_BUILD_NO_C4D_IMPORTER -DASSIMP_BUILD_NO_OWN_ZLIB -DASSIMP_IMPORTER_GLTF_USE_OPEN3DGC=1 -DMINIZ_USE_UNALIGNED_LOADS_AND_STORES=0 -DOPENDDLPARSER_BUILD -Iinclude -I. -I/home/ubuntu/vcpkg_cpptruths/buildtrees/assimp/src/v5.0.0-c7e52001a1/include -I/home/ubuntu/vcpkg_cpptruths/buildtrees/assimp/src/v5.0.0-c7e52001a1/code -I/home/ubuntu/vcpkg_cpptruths/buildtrees/assimp/src/v5.0.0-c7e52001a1/. -I/home/ubuntu/vcpkg_cpptruths/installed/x64-linux/include -I/home/ubuntu/vcpkg_cpptruths/buildtrees/assimp/src/v5.0.0-c7e52001a1/code/../contrib/rapidjson/include -I/home/ubuntu/vcpkg_cpptruths/buildtrees/assimp/src/v5.0.0-c7e52001a1/code/../contrib -I/home/ubuntu/vcpkg_cpptruths/buildtrees/assimp/src/v5.0.0-c7e52001a1/code/../contrib/unzip -I/home/ubuntu/vcpkg_cpptruths/buildtrees/assimp/src/v5.0.0-c7e52001a1/contrib/irrXML -I/home/ubuntu/vcpkg_cpptruths/buildtrees/assimp/src/v5.0.0-c7e52001a1/code/../contrib/openddlparser/include -I/home/ubuntu/vcpkg_cpptruths/buildtrees/assimp/src/v5.0.0-c7e52001a1/code/../include -Icode/../include -I/home/ubuntu/vcpkg_cpptruths/buildtrees/assimp/src/v5.0.0-c7e52001a1/code/.. -g -fvisibility=hidden -fno-strict-aliasing -Wall -fPIC -std=c++0x -fPIC  -D_CRT_SECURE_NO_WARNINGS -O3 -DNDEBUG -MD -MT code/CMakeFiles/assimp.dir/FBX/FBXExporter.cpp.o -MF code/CMakeFiles/assimp.dir/FBX/FBXExporter.cpp.o.d -o code/CMakeFiles/assimp.dir/FBX/FBXExporter.cpp.o -c /home/ubuntu/vcpkg_cpptruths/buildtrees/assimp/src/v5.0.0-c7e52001a1/code/FBX/FBXExporter.cpp

Maybe someone interrupted the build process?
And I don't know about your environment. Is the path where vcpkg is located on your project machine? I think there are several solutions here:

Install vcpkg on the project computer. Build dependencies once and run integrate.
Build dependencies using vcpkg, export the dependencies using the command export, and copy them into your project to use them.
Just like your solution. First use vcpkg to install dependencies and then build your own project.

But I can successfully build assimp, can you try to install assimp manually and provide the results?
Thanks.

@JackBoosY you are indeed right, I myself interrupted the build process, but mainly because the machine were I built, got stuck at package [191/221]. I tried to build it manually with the vcpkg install assimp command and there I got an error message why the built was not successfull.
The error message was: virtual memory exhausted: Cannot allocate memory.
Apparently, 4GB of memory is not enough to uild assimp...
And somehow, the automatic install during the CMake build did not provide the error message.
But thanks for your investigations, I will try to build assimp with a more powerful machine (more memory).
Best Regards!

@pweissenbacher If you still can't resolve the issue in the future, please reopen it.
Thanks.


Artisan command does not work

When using the below artisan command I get an error as below. Is it not implemented yet or am I doing something wrong? I cannot find the actual commands in the code.
php artisan saloon:connector
ERROR  There are no commands defined in the "saloon" namespace.

Hi @pajkho!
The namespace is part of the saloon-laravel plugin mentioned in the documentation and, from my understanding, not required when installing the saloon package.
Have you already required the laravel plugin package?

That's right @Lirianer - thanks for helping! 😀
You can install the Saloon Laravel plugin by running: composer require sammyjo20/saloon-laravel - this should register the commands that are missing.
I'll also update the docs to make it clearer that you need the Laravel plugin installed.

Thank you. I totally missed that part of the documentation :)


Add Per-UMI Read Coverage Information

Hi,
This isn't an issue, more a question but thought it might as well be public in case it helps anyone else :-). I'm sorry for it being so long, I was trying to not take up your time with a long back and forth.
I've been reading the code through pretty carefully, it's really very nice and elegant! One thing I was thinking about was getting some sense of the raw read coverage per SNV, especially separated by UMI. For a given SNV, I had some hypothetical scenarios where I have decreasing amount of 'gut-level' confidence:

3 distinct UMI's, where each have 2+ reads covering the base, all of which agree on the mutation
2 distinct UMI's, where each only has 1 read covering the base, but those two 'independent' reads agree
1 UMI with say 15 reads, 14/15 of agree on a mutation
1 UMI with 2 reads both of which agree

I feel like as a layperson, in the first scenario, even if I only have a few total reads, the distinct UMI's and multiple (albeit few) unanimous reads per UMI gives me more confidence it's not sequencing artifact. But in the 3rd scenario, where I have a lot more reads but a single UMI, it could all stem from an early PCR artifact which then amplified.
In the collapsing stage, it seems like that information is lost but spelunking through the code, I noticed the commented out coverage metric which seemed to be exactly in this vein. Would it be possible for you to give more context for why it was ultimately removed? I added it back in (while also keeping track of the total number of reads for that base+UMI, just in case) here and then added some commits (here) in that same branch to propagate that information forward through the pileup. Does that seem like a reasonable approach?
I was also interested in keeping the UMI's separate for as long as possible so my successive pileup analysis could consider the information each independent UMI gives. Do you have any advice for how to do that? What I came up with here was to pass in a list of unique barcode+"_"+UMI strings instead of passed_barcodes.txt.gz and then do that same concatenation in the filter function. But that list is huge, many gigabytes. I tried to modify the BarcodeHash while reading in the bam when a white-listed barcode's has a new UMI but, I think b/c of the threading, it broke. I could use the parallel hashmap maybe? Do you think I'd be better still collapsing by barcode, but modifying some of the code to aggregate the individual UMI stats instead?
Any thoughts you have are really appreciated, I'm excited to use this program on a lot of data!

Hi @Alf-Kenz
I removed the coverage information because it was redundant with the XR tag, which gives the 0 based start and end position of the read and it's cigar string.  I can probably add the original bam flag and generate an MD tag for each reads as well.  This would let you recreate the sequence of each read from a given collapsed read.  It wouldn't include the quality information though.  You could probably parse each of those tags to recreate all of the reads for additional analyses.
I believe I have some C++ code somewhere to generate an MD tag from a given read alignment.  I'll see if I can integrate it and let you know.

Another idea I could implement would be to add an option to emit a special bam file that is grouped by UMI.  Ie. The collapsed read, followed by all of the reads merged into the collapsed read.  The sorting on this file would be "wonky" because it would be ordered by gene and not compatible with other pileup methods that expect a sorted file.

Hi @GWW,
That all makes sense to me, and the quality point is well taken. The way the current collapse takes the max qual made sense to me for the small reads p/ umi p/ base I'm currently seeing, but it definitely  could be very helpful in modeling the SNV confidence to also know the sequencing quality.
I'm happy to also do some of the leg work on integrating the MD tag if it helps. For the special bam, I agree that some of the final QC stages for a putative SNV it would be very helpful to go back to the raw reads, and especially because of the small UMI/cell barcode mutations, it can be hard to get to the exact reads being collapsed.
I am also curious about your thoughts on keeping the UMI's separate all the way through the pileup, thinking more about the *_barcode_matrices.h5 sparse mtx file than the collapsed pileup file. If I pass each 'barcode' as cell_barcode+UMI barcode then since the reads are collapsed beforehand by UMI, there is basically no pileup.h5 grouping (e.g. h5 file -> base_T -> (.minus + .plus) = 1 for all rows). So I can then get the individual barcode+UMI's read coverage from above but everything is way slower and unweildy. And I have to be careful about filtering.
Do you think there's a path forward to still grouping within each of the cell barcodes but propagating the barcode's array of per-UMI coverage + potentially quality score (at a given base) through. Or it's best to just keep it split and deal with the slowdown and huge hash tables. I can cram it through by modifying some of the objects but to keep propagating but maybe that's worse of a hack

Oh and of course I can't repeat myself enough, thanks for responding so fast and so nicely!

I am happy to help.  I am glad people are using my tool.
The read collapsing may not be entirely necessary for your read case.  The primary use for them was to look at multiple SNVs / RNA edits in close proximity etc.
I could probably add a command to pileup a specific region (or the whole file) from the merged.bam file and merge the UMI data to give you per barcode/molecule information.  Perhaps a modified sparse matrix format, such as barcode_id:<base 1><qual 1><base 2><qual 2>;<base 1><qual 1><base 2><qual 2> where each semicolon separated list is from a single molecule.
The other option would be to make an alternative collapse command that takes a specific region as an argument and provides you with a collapsed read (using the reads overlapping that region) and their individual constituents.


Comparing Numbers results in infinite loop

#[cfg(test)]
mod tests {
    use super::*;

    #[test]
    fn cmp_numbers() {
        let num0 = Number::from(1);
        let num1 = Number::from(2);
        assert_eq!(num0, num1);
    }
}

results in
thread 'data::arithm::tests::cmp_numbers' has overflowed its stack
fatal runtime error: stack overflow

because eq method calls itself.
https://github.com/internet2-org/rust-aluvm/blob/3b16ef83bad1b02137261739f9d22dfc1a966d6f/src/data/arithm.rs#L28
Maybe we can compare two values by converting them to corresponding integer/float types?

FYI I was working on https://github.com/internet2-org/rust-aluvm/issues/9

@dr-orlovsky FYI I was working on https://github.com/internet2-org/rust-aluvm/issues/9

maybe we can just
impl PartialEq for Number {
    #[inline]
    fn eq(&self, other: &Self) -> bool {
        match self.cmp(&other) {
            Ordering::Equal => true,
            _ => false,
        }
    }
}

Good catch!
I think it will be bad to use more computationally-expensive compare function to do simpler equality check.
What can be done here is to add [..] right after both to_clean().
And there is another bug there: we need two more parentheses around two && expressions in two lines above.
Would you like ti do a PR fixing that?

yes, working on it


fix flaky failure in CI for RichErrorModelTest

motivation
close #291
maybe we not wait  http server start, and stop http finally.
how
add wait and stop

@pjfanning @raboof @jxnu-liguobin @He-Pin PTAL


[routing] Fix bug in static-files canHandle method

Closes https://github.com/javalin/javalin/issues/2235

@Playacem could you review?


Accessing file path with SharpThumbnailHandler

Version of SharpShell used: 2.7.1
Related type(s) of SharpShell-Server: SharpThumbnailHandler
I want to write a custom thumbnail server for a file type, but the file references other files that are relevant to generating a proper thumbnail.
Main file
├─ Associated file
├─ Associated file
└─ Associated file
The problem is that SharpThumbnailHandler only gives access to the Main File with SelectedItemStream , but since I don't know the file path, I cannot resolve the paths to the secondary files.
It could be great to have a  ComStream GetAssociatedItemStream(string relativePath); method.
Do you think it is possible?

Hi @vpenades I'll see what can be done here!

OK effort number 1 has failed 😄  - PR #309 actually successfully returns the name of the associated file from a ComStream if one exists, however it will not serve your purposes as you need the full path I assume.
This means that the only way to solve this problem is to create a new class, something like SharpFileThumbnailHandler, which does not implement IInitializeWithStream but instead the less commonly used IInitializeWithFile. This means you will get a file path to work with instead.
Before I make the changes, can I confirm that this is what you need - to generate a thumbnail given a full path to a file, rather than the raw stream data?

Yes, that's what I would need.
Associated files are referenced by relative paths, but in order to find them you need the absolute path of the main file, so you can build the absolute paths to the associated files.

Bad news:
https://github.com/dwmkerr/sharpshell/pull/311
I created the SharpFileThumbnailHandler class and after a few hours wasted debugging realised that thumbnail handlers for files are no longer supported due to some security issues they exposed (which is why they simply do not get called now).
The last option is to try the same approach as in PR #311 but using IInitiailizeWithItem. I will see if I can get time to look into this now

Awww, I'm sorry to hear that :(
I suspected there might be some security issue. Technically speaking, you really don't need the full path of the main file, just to be able to get another file relative to the main file. But I guess it's something that should be implemented by Microsoft in the internal APIs.
I guess that accessing the full path indirectly, if possible, would be restricted in the future because it would allow the same exploit.

OK I tried with IInitializeWithItem as well:
#312
No joy, same issue I'm afraid! It looks like the only solution would be to embed the data you need in the file stream itself if it is a custom file that you have created, or as you suggested manually create the thumbnails.
Sorry about that! I've updated the troubleshooting docs with notes from this issue and merged the new interop types into the library, but marked the new server type as deprecated. Are you OK if I close the issue?

Yes it's very annoying - you can't even use the property metadata store to hold things like the folder path or whatever, because with the Thumbnail Handler you have no access to any of the items, just the stream. If I find a workaround I'll let you know, sorry we weren't able to get this one done! BTW if you use SharpShell lots and find it useful, please do consider sponsoring me!

By create a new class just a copy of SharpThumbnailHandler but replace InitializeWithStreamServer with InitializeWithFileServer, I'll be able to get a file path.
Code here
using SharpShell;
using SharpShell.Attributes;
using SharpShell.Interop;
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Namespace.Yours
{
    /// <summary>
    /// The SharpIconHandler is the base class for SharpShell servers that provide
    /// custom Thumbnail Image Handlers.
    /// </summary>
    [ServerType(ServerType.ShellItemThumbnailHandler)]
    public abstract class FileThumbnailHandler : InitializeWithStreamServer, IThumbnailProvider
    {
        public int GetThumbnail(uint cx, out IntPtr phbmp, out WTS_ALPHATYPE pdwAlpha)
        {
            //  DebugLog this key event.
            Log($"GetThumbnail for item stream, width {cx}.");

            //  Set the out variables to default values.
            phbmp = IntPtr.Zero;
            pdwAlpha = WTS_ALPHATYPE.WTSAT_UNKNOWN;
            Bitmap thumbnailImage;

            try
            {
                //  Get the thumbnail image.
                thumbnailImage = GetThumbnailImage(cx);
            }
            catch (Exception exception)
            {
                //  DebugLog the exception and return failure.
                LogError("An exception occured when getting the thumbnail image.", exception);
                return WinError.E_FAIL;
            }

            //  If we couldn't get an image, return failure.
            if (thumbnailImage == null)
            {
                //  DebugLog a warning return failure.
                Log("The internal GetThumbnail function failed to return a valid thumbnail.");
                return WinError.E_FAIL;
            }

            //  Now we can set the image.
            phbmp = thumbnailImage.GetHbitmap();
            pdwAlpha = WTS_ALPHATYPE.WTSAT_ARGB;

            //  Return success.
            return WinError.S_OK;
        }

        /// <summary>
        /// Gets the thumbnail image for the currently selected item (SelectedItemStream).
        /// </summary>
        /// <param name="width">The width of the image that should be returned.</param>
        /// <returns>The image for the thumbnail.</returns>
        protected abstract Bitmap GetThumbnailImage(uint width);
    }
}

Logs here

2021-02-14 14:07:05.424Z - explorer - SharpShell Diagnostics Initialised. Process explorer.
2021-02-14 14:07:05.427Z - explorer - PMXThumbnailHandler: Intiailising a file based server for 'C:\Users\White\Desktop\Ganyu_R18_MDJSN_edit_v1.1\Ganyu_R18_v1.1 - Copy.pmx' with mode 'READ'.
2021-02-14 14:07:05.430Z - explorer - PMXThumbnailHandler: Intiailising a file based server for 'C:\Users\White\Desktop\Ganyu_R18_MDJSN_edit_v1.1\Ganyu_R18_v1.1 - Copy.pmx' with mode 'READ'.
2021-02-14 14:07:05.433Z - explorer - PMXThumbnailHandler: GetThumbnail for item stream, width 96.
2021-02-14 14:07:05.436Z - explorer - PMXThumbnailHandler: GetThumbnail for item stream, width 1280.

@ShiinaManatsu yes, we know about InitializeWithFileServer, but this method has been disabled in Windows Vista and later by microsoft for security reasons.
Intialization of IThumbnailProvider with IInitializeWithFile is not supported since Vista for security reasons. Use IIntializeWithStream instead.
So although the method still exists in the API, it's useless now.

@ShiinaManatsu yes, we know about InitializeWithFileServer, but this method has been disabled by microsoft:
Intialization of IThumbnailProvider with IInitializeWithFile is not supported since Vista for security reasons. Use IIntializeWithStream instead.
So, are you sure this actually works on windows 10?

It works on my Windows 10 20H2

Althought I dont know why there is no my log :(

My implementations here:
using HelixToolkit.Wpf;
using ...;

namespace Thumbnail.PMX
{
    /// <summary>
    /// The PMXThumbnailHandler is a ThumbnailHandler for pmx files
    /// </summary>
    [ComVisible(true)]
    [Guid("88615FC3-2F4A-463B-805B-1ED5BFF4F393")]
    [COMServerAssociation(AssociationType.FileExtension, ".pmx")]
    public class PMXThumbnailHandler : FileThumbnailHandler
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="PMXThumbnailHandler"/> class
        /// </summary>
        public PMXThumbnailHandler()
        {
            //  Create our lazy objects
        }

        /// <summary>
        /// Gets the thumbnail image
        /// </summary>
        /// <param name="width">The width of the image that should be returned.</param>
        /// <returns>
        /// The image for the thumbnail
        /// </returns>
        protected override Bitmap GetThumbnailImage(uint width)
        {
            var pmx = PMXLoaderScript.Import(SelectedItemPath);

            Log($"File path: {SelectedItemPath}");

            /* Other code are not relate so I remove them so that you can read easily */
        }
    }
}

Hmmm... maybe microsoft has lifted the security ban and it is allowed again? I'll give it a try....

@dwmkerr @ShiinaManatsu here's a project from a guy that seems to have more insight on the issue:
https://github.com/csuft/WindowsThumbnail
From the project: "Make sure the registry key DisableProcessIsolation value is set to one"
So it seems that was the missing piece...  I wonder which are the other implications of setting that registry value.

@ShiinaManatsu

Althought I dont know why there is no my log :(

If you read the documentation written by @dwmkerr for InitializeWithFileServer, it states:
Note that in Windows Vista onwards, implementations of this interface may not behave as expected as it has been essentially deprecated for security reasons. For example, a Shell Thumbnail Handler which implements this interface will not be called.
So I think that's why your PMXThumbnailHandler implemented with FileThumbnailHandler doesn't call GetThumbnailImage... it is initialized, yes, but the call to GetThumbnailImage never happens.
In your log, I can see GetThumbnail for item STREAM is called, so I guess that's why you've been able to build a thumbnail from it.
Please, confirm this is the case, or let us know if it's actually working for you.

Nope, it actually get called, cause the image generated is correct, before I reply this issue, I used to throw exception and even show a messagebox.

Nope, it actually get called, cause the image generated is correct, before I reply this issue, I used to throw exception and even show a messagebox.

From your own log:

It seems the thumbnail is being generated from the stream, not from the file. That's why I asked

Nope, it actually get called, cause the image generated is correct, before I reply this issue, I used to throw exception and even show a messagebox.

From your own log:

It seems the thumbnail is being generated from the stream, not from the file. That's why I asked

I create a stream from that path. The fileserver don't have a stream so I have to read by myself


udproute gateway api translator

gateway api translator for udp route
This PR is a part of https://github.com/envoyproxy/gateway/issues/641
Signed-off-by: zhaohuabing<EMAIL_ADDRESS>

Codecov Report

Merging #728 (75eabd4) into main (c1f2585) will decrease coverage by 0.46%.
The diff coverage is 54.02%.

@@            Coverage Diff             @@
##             main     #728      +/-   ##
==========================================
- Coverage   63.45%   62.98%   -0.47%
==========================================
  Files          47       47
  Lines        5927     6214     +287
==========================================
+ Hits         3761     3914     +153
- Misses       1927     2043     +116
- Partials      239      257      +18

Impacted Files
Coverage Δ

internal/cmd/server.go
7.56% <0.00%> (-0.07%)
:arrow_down:

internal/ir/infra.go
67.41% <ø> (ø)

internal/gatewayapi/runner/runner.go
55.46% <42.85%> (-0.79%)
:arrow_down:

internal/gatewayapi/translator.go
79.85% <47.59%> (-5.40%)
:arrow_down:

internal/gatewayapi/contexts.go
72.88% <57.89%> (-4.27%)
:arrow_down:

internal/gatewayapi/helpers.go
72.53% <88.88%> (+2.37%)
:arrow_up:

internal/message/types.go
77.77% <100.00%> (+2.77%)
:arrow_up:

internal/provider/kubernetes/gateway.go
49.25% <0.00%> (-0.86%)
:arrow_down:

internal/provider/kubernetes/gatewayclass.go
75.36% <0.00%> (+5.07%)
:arrow_up:

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

There are still some duplications in the gateway API translator, but it's better to do the refractory in another PR since this one is already quite big. I created an issue to track it. https://github.com/envoyproxy/gateway/issues/736

hey @zhaohuabing sorry for the delay, can you please rebase again


Complete the documentation in the README

Finish the documentation of the entire codebase in the README.

is this completed?


adding images via Markdown not supported?

"Images may be added to a post by placing them in your static/img/ folder and referencing them in Markdown such as with ![alt text](img/my-image.jpg)."
this functionality does not appear to be supported in the current version:

+++
date = "2016-04-20T00:00:00"
draft = false
tags = ["test", "programming"]
title = "Programming Example"
math = false
+++

![where is the image](img/portrait.jpg)

**Lorem ipsum** dolor sit amet, consectetur adipiscing elit.

Hi
The image path uses the standard web URL protocol. You can either specify it as an absolute path from the root of the domain or as a relative path from the URL of the current page.
According to the Markdown and screenshot you provided, it appears to be looking for the image at http://localhost:1313/post/example-post/img/portrait.jpg whereas the actual location of the image in your setup is probably at http://localhost:1313/img/portrait.jpg
So to correctly locate the image, you could either start the URL with a slash like /img/portrait.jpg which will cause it to concatenate itself with the root domain of your baseURL defined in config.toml - which in development mode, simply concatenates it with localhost:1313.
Or you could specify the URL as a relative path from your current page URL to your img folder like ../../img/portrait.jpg.
Hope that helps!

You might also find the latest documentation about writing content (http://gcushen.github.io/hugo-academic-demo/post/writing-markdown-latex/ ) useful, although it doesn't currently elaborate on the URL format for images.

Looks like the docs have been updated since I last cloned the repo, thanks for the tip.

On 2 Jun 2016, at 11:25, gcushen<EMAIL_ADDRESS>wrote:
You might also find the latest documentation about writing content (http://gcushen.github.io/hugo-academic-demo/post/writing-markdown-latex/ http://gcushen.github.io/hugo-academic-demo/post/writing-markdown-latex/ ) useful, although it doesn't currently elaborate on the URL format for images.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub https://github.com/gcushen/hugo-academic/issues/14#issuecomment-223253567, or mute the thread https://github.com/notifications/unsubscribe/AHdog6Q82P0gE1ICtddVx9VdvmsraFrDks5qHq-HgaJpZM4IsX4C.

The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.

So to correctly locate the image, you could either start the URL with a slash like /img/portrait.jpg which will cause it to concatenate itself with the root domain of your baseURL defined in config.toml - which in development mode, simply concatenates it with localhost:1313.
Or you could specify the URL as a relative path from your current page URL to your img folder like ../../img/portrait.jpg.

fwiw (b) works but (a) does not. images located in static/img, so e.g. http://localhost:1313/sitename/img/img.png http://localhost:1313/sitename/img/img.png
this is presumably due to the fact that the server is being started as  http://localhost:1313/sitename/ http://localhost:1313/sitename/img/img.png rather than  http://localhost:1313/ http://localhost:1313/sitename/img/img.png for reasons that are not always clear to me.
The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.

The Academic theme does not parse the images or their URLs, it's all done by Hugo. Generally, URLs should have the previously described behaviour (e.g. http://stackoverflow.com/questions/10659459/starting-with-a-forward-slash-in-html-for-href ), but in your case, it appears Hugo may be altering the behaviour slightly. You might be interested in searching the  Hugo forums - there are some related discussions there, for example: https://discuss.gohugo.io/t/image-path/1721
I might try to clarify this more in the Academic documentation sometime.

my image is not been working within the website .I tried many commands but its not working


Custom ModalHeader closeButton character request

After implementing a font override of $font-family-sans-serif I no longer see the X to close a Modal. I'm assuming that's because the font I'm using doesn't have anything at Character Code 215. I propose a feature to allow a charCode prop to be passed into the header for these situations as opposed to the current String.fromCharCode(215) implementation.
I got around this by defining the .close style but it would be nice for it to be more customizable.
If this sounds good I can get a PR together for it.

This sounds good. Maybe we can allow for a string or a number, if it's a number we can use String.fromCharCode(number) and if it's a string we can just use the string directly.
We then set the default prop to 215.

Awesome, started work on this just now. Hope to have it completed before Monday.


Fix for #42 - Fix the params variable validationFactors when validating session

This pull request address issue #42 "params variable is defined incorrectly on line 284"
Based on the recommendation by @mobile09 in #42, I've corrected line 284 in crowd.py and I was able to confirm that this fix is working as expected when validating a session with a user passing through a proxy.
I've encountered the same issue and fixed it internally, though it was a good idea to get it fixed upstream ;)
I've only bump the minor version since this is not a big change in functionality but only a fix.
Thanks,
Maiko

Thanks for the merge @aelse.
Do you plan on releasing the update to pypi ? Could be a good idea to get the fix out there ;)
Thanks !

@maiko I've just done a release.


Use of expose_inputs for force & nac calculator setting

Related issue to #15, I plan to implement expose_inputs for each calculator (VASP for example) to pass input parameters.

Solved via the common workflow .
I would close the issue if you are ok with it.


REACH OUT TO ADWARE RECOVERY SPECIALIST - GENIUS BITCOIN RECOVERY SERVICES

What kept me going after the devastating loss of $300,000 to a fake cryptocurrency trading platform was the realization that life hadn't ended there. Website info: www.adwarerecoveryspecialist.expert  It was a severe blow, one that left me reeling with disbelief and despair. The sequence of events that led to this financial catastrophe began innocuously enough, with a message on Instagram from a broker agent claiming to represent a reputable cryptocurrency investment company. Initially skeptical, I was bombarded with persuasive messages and videos supposedly showcasing the company's legitimacy and the impressive returns others had purportedly made. Intrigued and swayed by the promise of financial gain, I cautiously dipped my toes into the waters of cryptocurrency trading. Starting with a modest investment of $150, I followed the agent's guidance and successfully withdrew my initial profits. Text or Call: +18186265941  Encouraged by this initial success and the agent's assurances, I decided to commit more funds, eventually escalating my investment to a staggering $300,000.However, what followed shattered my newfound optimism. When I attempted to withdraw my profits, I encountered a series of inexplicable delays and excuses. My pleas for assistance fell on deaf ears as the company's responses grew evasive and ultimately ceased altogether. To my horror, I discovered that I had been blocked from accessing their platform entirely. Email info<EMAIL_ADDRESS> It was a devastating realization that I had not only lost my entire investment but also plunged myself into insurmountable debt. Desperate and disillusioned, I turned to the internet in search of solutions. Amidst a deluge of cautionary tales and heartbreaking accounts similar to mine, I stumbled upon a ray of hope: ADWARE RECOVERY SPECIALIST. Skeptical yet desperate for any chance of recovering my lost funds, I reached out to them after reading numerous positive reviews attesting to their credibility and success in fund recovery. From the outset, ADWARE RECOVERY SPECIALIST distinguished itself with professionalism and empathy. They patiently listened to my story, understanding the depth of my predicament, and offered a clear path forward. Unlike the scammers who had callously deceived me, ADWARE RECOVERY SPECIALIST did not demand upfront payments or additional fees beyond their service charges. They provided a transparent process and meticulously explained each step they would take to pursue the recovery of my funds. For several weeks, their team of experts diligently investigated the fraudulent activities of the cryptocurrency trading platform that had ensnared me. Through their expertise and persistence, they traced the intricate web of transactions and legal avenues necessary to reclaim what was rightfully mine. The moment I received confirmation that my funds had been successfully recovered was nothing short of surreal.  ADWARE RECOVERY SPECIALIST  not only restored a significant portion of my financial stability but also provided a renewed sense of hope and trust in legitimate financial services. Reflecting on my harrowing experience, I am compelled to caution others against venturing into cryptocurrency investments without thorough research and due diligence. The allure of quick profits can blind even the most cautious individuals to the risks posed by unscrupulous entities lurking in the digital shadows. my  journey from the depths of despair to recovery stands as a testament to the resilience and the invaluable support offered by reputable recovery services like ADWARE RECOVERY SPECIALIST. Their unwavering commitment to their client's interests is a beacon of hope for anyone navigating similar challenges.
Telegram username: @adwarerecoveryspecialist If my story serves as a cautionary tale, let it be a reminder to approach investment opportunities with caution and seek guidance from trusted professionals. ADWARE RECOVERY SPECIALIST not only salvaged my financial future but also restored my faith in the possibility of reclaiming what was lost to deceit and exploitation.

I lost all my crypto to a fake investment scam to someone I met online. I started searching for help legally to recover my funds, and I came across a lot of Testimonies about REMOTESPYWISE. I contacted him, providing the necessary information and it took him and his team of experts about 36 hours to locate and help recover my stolen funds. I am so relieved and the best part was, the scammer was located and arrested by local authorities in his region. I hope this helps as many out there who are victims. I strongly recommend Remotespywise professional services for assistance with swift and efficient recovery (Crypto, Credit card, Forex,) REMOTESPYWISE @ GMAIL, COM

I lost all my crypto to a fake investment scam to someone I met online. I started searching for help legally to recover my funds, and I came across a lot of Testimonies about REMOTESPYWISE. I contacted him, providing the necessary information and it took him and his team of experts about 36 hours to locate and help recover my stolen funds. I am so relieved and the best part was, the scammer was located and arrested by local authorities in his region. I hope this helps as many out there who are victims. I strongly recommend Remotespywise professional services for assistance with swift and efficient recovery (Crypto, Credit card, Forex,) REMOTESPYWISE @ GMAIL, COM


Configure Azure Pipelines

This configuration builds the application and produces builds for both Debug and Release configurations.

 Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.:x: VytisVA sign nowYou have signed the CLA already but the status is still pending? Let us recheck it.


Set the current directory in gendoc.py to the scripts directory

The script has a number of paths that are hard coded relative to the scripts directory.

LGTM

LGTM


Release Google.Cloud.OrgPolicy.V1 version 3.2.0

Changes in this release:
New features

Change netstandard2.1 target to netstandard2.0 (commit 82bea85)

Created release for Google.Cloud.OrgPolicy.V1-3.2.0


cmd/go: GOPROXY list feature fails to allow private modules to be downloaded

What version of Go are you using (go version)?
go version devel +004fb5c Fri May 3 03:49:11 2019 +0000 linux/amd64
Does this issue reproduce with the latest release?
NA
What operating system and processor architecture are you using (go env)?
go env Output
$ go env
GOARCH="amd64"
GOBIN=""
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GONOSUMDB=""
GOOS="linux"
GOPROXY="direct"
GOSUMDB="off"
GOTMPDIR=""
GCCGO="gccgo"
AR="ar"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build237972668=/tmp/go-build -gno-record-gcc-switches"

What did you do?
GOPROXY=https://proxy.golang.org/,direct go build
What did you expect to see?
I expect to see private modules downloaded directly from my company's VCS (which is behind a corporate firewall and not accessible from the internet).
(as described in https://github.com/golang/go/commit/f30c564529b8297eadfd2441679e5ffe0f9850b8)
What did you see instead?
go: downloading gopkg.in/inf.v0 v0.9.1
verifying<EMAIL_ADDRESS><EMAIL_ADDRESS>reading<EMAIL_ADDRESS>410 Gone

when GOPROXY=direct, then mymodule downloads and builds without problem.

The go command failed to retrieve necessary info from the sumdb - sum.golang.org can't see private modules either.
Can you try to exclude the private modules from verification using GONOSUMDB env vars? https://go.googlesource.com/proposal/+/master/design/25530-sumdb.md#command-client
By the way, I think a better approach for accessing private repos is to use the GONOPROXY env var, instead of relying on the GOPROXY list fallback.
@rsc @FiloSottile

@rsc Looks like GOPROXY=direct implies GOSUMDB=off, is that true and intended?

@FiloSottile Yes I believe this is intended for right now in the early phases of testing. GOSUMDB defaults to sum.golang.org if GOPROXY=https://proxy.golang.org in the Go 1.13 dev branch, but GOSUMDB is still off at tip.

@rsc Looks like GOPROXY=direct implies GOSUMDB=off, is that true and intended?

Yes, and not just true and intended but also documented: https://tip.golang.org/cmd/go/#hdr-Module_authentication_failures.

@amnonbc, you need to set GONOSUMDB to tell the go command which modules not to check (the whole point of the checksum database is to avoid trusting downloads blindly, so this information must originate with you, not some network server that might be intercepted). See the end of https://tip.golang.org/cmd/go/#hdr-Module_authentication_failures, and note that you can set it easily by using the new go env -w command, as in go env -w GONOSUMDB=<patterns>.

@rsc, should we consider a change in authentication logic if the GOPROXY is a list? E.g. if a module was fetched from 'direct' mode because the first proxy (proxy.golang.org) couldn't serve the module. Or, enable authentication at least for modules downloaded from the proxy.golang.org if GOPROXY=<private_proxy>,https://proxy.golang.org.

@rsc Thanks for the explanation, and the awesome work on Modules.


[rlgl] rlMultMatrixf() may be multiplying in the wrong order

Issue description
I've been having some issues with weird translations when using rlMultMatrixf(), after looking at its code I thought that I was just misusing it, But it seems to be used in the exact same way in other place in raylib.
The line that does the actual multiplication is this
// rlgl.h, 1094
*RLGL.State.currentMatrix = MatrixMultiply(*RLGL.State.currentMatrix, mat);

where the order is (cur mat, new mat) But in the other translations (rlTranslatef() for example) it does the opposite order
eg. *RLGL.State.currentMatrix = MatrixMultiply(matTranslation, *RLGL.State.currentMatrix);
As for me potentially misunderstanding its use, It looks like its used exactly like I'd expect in rlDrawMesh(), where it just passes the matrix to rlMultMatrixf()
// rlgl.h, 2748
rlMultMatrixf(MatrixToFloat(transform));

@masterex1000 Actually, I think rlMultMatrixf() multiplies the matrix in inverted order because it expects to receive the matrix float values aligned as row-major but internally they are converted into a columns-major Matrix. Other functions like rlTranslatef() generate the matrix properly.
Actually, rlMultMatrixf() can be changed to:
void rlMultMatrixf(float *matf)
{
    // Matrix creation from array
/*
    Matrix mat = { matf[0], matf[4], matf[8], matf[12],
                   matf[1], matf[5], matf[9], matf[13],
                   matf[2], matf[6], matf[10], matf[14],
                   matf[3], matf[7], matf[11], matf[15] };

    *RLGL.State.currentMatrix = MatrixMultiply(*RLGL.State.currentMatrix, mat);
*/
    Matrix mat = { matf[0], matf[1], matf[2], matf[3],
                   matf[4], matf[5], matf[6], matf[7],
                   matf[8], matf[9], matf[10], matf[11],
                   matf[12], matf[13], matf[14], matf[15] };

    *RLGL.State.currentMatrix = MatrixMultiply(mat, *RLGL.State.currentMatrix);
}

I'm not an expert on math so I could be missing some point...

glMultMatrixf() takes a column-major matrix, at least according to this page from khronos.org.
https://www.khronos.org/registry/OpenGL-Refpages/gl2.1/xhtml/glMultMatrix.xml
Along with that, on the same page it says that "replaces the current transformation with C × M × v", with C being the current matrix, M being the new matrix, and V being whatever vertex your using. So I'm guessing it just does C*M, the opposite order of what rlMultMatrix() is doing right now.
So if it was supposed to receive a matrix in inverse order, would that mean that rlMultMatrix() would have to be changed for earlier opengl versions to convert it too?

Actually, current rlMultMatrix() implementation is following the glMultMatrix() specs:
Calling `glMultMatrix()` with an argument of m = m  0 m  1 ... m  15 replaces the current transformation with C × M × v , or

c  0 c  4 c  8 c  12 c  1 c  5 c  9 c  13 c  2 c  6 c  10 c  14 c  3 c  7 c  11 c  15 × m  0 m  4 m  8 m  12 m  1 m  5 m  9 m  13 m  2 m  6 m  10 m  14 m  3 m  7 m  11 m  15 × v  0 v  1 v  2 v  3

When compiling raylib for OpenGL 1.1 rlMultMatrix() just calls glMultMatrix().

Hmmm, Then am I confused how glMultMatrix() works and is used? This page says...

The current matrix (see glMatrixMode) is multiplied by this translation matrix, with the product replacing the current matrix, as if glMultMatrix were called with the following matrix for its argument
https://www.khronos.org/registry/OpenGL-Refpages/gl2.1/xhtml/glTranslate.xml

But it seems like the matrices would have to be in the opposite order for that to work....
Does that then mean that all the other rlgl transformation calls are wrong in opengl >1.1 since they are multiplying the new matrix * the current matrix (M * C)?

Actually, raylib is also following those glTranslate() specs:
glTranslate produces a translation by x y z . The current matrix (see glMatrixMode) is multiplied by this translation matrix, with the product replacing the current matrix, as if glMultMatrix were called with the following matrix for its argument:

1 0 0 x 0 1 0 y 0 0 1 z 0 0 0 1

Here you have an array of values but the Matrix equivalent is actually a transposed version  to be multiplied with glMultMatrix(). rlTranslatef() calls MatrixTranslate() that returns a non-transposed version, so, when multiplying with MatrixMultiply() the order is inverted.
OpenGL 1.1 and raylib rlgl equivalent calls work the same way.

Oh, Alright. Does that mean the matrices that opengl takes are transposed? And what order are you supposed to access elements in a raylib matrix?
Raymath says the matrix is opengl style, right handed, column major. Would row 0, column 1 (i guess matrix coords are normally given in row,column order, or at least it is for opencv) be mat.m4 or mat.m1?
(Here is the matrix declaration if you don't want to look it up)
// Matrix type (OpenGL style 4x4 - right handed, column major)
typedef struct Matrix {
    float m0, m4, m8, m12;
    float m1, m5, m9, m13;
    float m2, m6, m10, m14;
    float m3, m7, m11, m15;
} Matrix;

Actually, it doesn't matter. raylib Matrix is aligned in memory as row-major:
m0, m4, m8, m12, m1, m5, m9, m13, m2, m6, m10, m14, m3, m7, m11, m15
but in operation terms raylib Matrix behave as column-major (and so raymath):
m0, m1, m2, m3, m4, m5, m6, m7, m8, m9, m10, m11, m12, m13, m14, m15
So, what is row 0, column 1? In memory alignment terms would be m4 but for raymath in operating terms it is m1.


How should I apply a terrform root module construct using terragrunt?

I'm working on a terragrunt code base for the first time, having used terraform a lot in the past without terragrunt. I'm a bit confused as to the structure terragrunt seems to enforce. I would usually organise my terraform thus:
main.tf
--> module
    main.tf
--> module2
    main.tf

This is listed as best practice on the terraform docs:

The Root Module
Terraform always runs in the context of a single root module. A
complete Terraform configuration consists of a root module and the
tree of child modules (which includes the modules called by the root
module, any modules called by those modules, etc.).

Source
But none of the terragrunt structures seem to represent this. It seems to be designed so that each module is independent and run using the run-all command.
This seems problematic to me, from the existing code base I can see that this initialises terraform for every module and I'd say causes issues with sharing secrets between modules. So I'd prefer to work with one root module and multiple child modules.
I can't find a terragrunt pattern that will allow me to do this?
I'm also confused as to how this responsibility is decomposed, do I actually structure my terraform (as above) or do I need an extra root .hcl file?
I'm after something a little like this I guess
└── live
    ├── prod
    │   ├── terragrunt.hcl
    │   ├── app
    │   │   └── terragrunt.hcl
    │   ├── mysql
    │   │   └── terragrunt.hcl
    │   └── vpc
    │       └── terragrunt.hcl
    ├── qa
    │   ├── terragrunt.hcl
    │   ├── app
    │   │   └── terragrunt.hcl
    │   ├── mysql
    │   │   └── terragrunt.hcl
    │   └── vpc
    │       └── terragrunt.hcl
    └── stage
        ├── terragrunt.hcl
        ├── app
        │   └── terragrunt.hcl
        ├── mysql
        │   └── terragrunt.hcl
        └── vpc
            └── terragrunt.hcl

But this example just talks about specifying the provider block and nothing about a root main.tf. So I'm lost?

I believe that you are mismatching some concepts here.
Module structure
Let's first start with the terraform bit here. Guessing that your first code snippet is in directory layout i'll rewrite it a bit
└── my-terraform-project
    ├── my-module-a
    │   ├── my-submodule-a
    │   │   ├── ...
    │   │   └── main.tf <-- submodule main.tf
    │   ├── ...
    │   ├── variables.tf
    │   └── main.tf <-- module main.tf
    ├── my-module-b
    │   └── ..
    └── main.tf <-- root main.tf

If you want to declare module usage then usually this is written in the main.tf file. All calls should be top-to-bottom so that parents always declare child but not vice versa. That means the module main.tf can only declare the submodule main.tf . In a best case-scenario always the direct inheritance is allowed so that the root main.tf must never declare the submodule main.tf but can so declaring the module main.tf. Just consider this example of an AWS IAM module stack.
Terragrunt structure
Just as you have guessed you will need an additional layer to control the deployment using terragrunt. For this you can now drop the root main.tf because it is not bound to any module logic and should only declare your modules for usage. Your terraform project may now only contain directories of modules which are abstracting the logic and allow for generic usage by providing input value through variables.
You should now consider to create a terragrunt directory to layout your deployment structure such as mentioned in the second code snippet.
└── my-terragrunt-project
    ├── prod <-- stage
    │   ├── terragrunt.hcl <-- stage information
    │   ├── my-module-a
    │   │   └── terragrunt.hcl <-- declaration of my-module-a usage
    │   └── my-module-b
    │       └── terragrunt.hcl <-- declaration of my-module-b usage
    ├── dev
    │   ├── terragrunt.hcl
    │   ├── my-module-a
    │   │   └── terragrunt.hcl
    │   └── my-module-b
    │       └── terragrunt.hcl
    └── root-terragrunt.hcl

There are different approaches to this layout depending on your deployment target (such as AWS, Google, Azure, ...) and its logic to separation of concerns. This one reflects a typical staging approach. Each stage contains at least one terragrunt.hcl file describing information about the stage. It must only contain variable or provider information for the deployment.
The second level contains module information which previously would be part of a main.tf file. You will need to describe which module should be "loaded" and provide inputs to it. Like from the example:
terraform {
  # Deploy version v0.0.1 in prod
  source = "git::git@github.com:foo/modules.git//app?ref=v0.0.1"
}

inputs = {
  instance_count = 10
  instance_type  = "m2.large"
}

Hope this helps you a bit understanding. If i missed you question just let me know. It can be hard to describe what is missing sometimes.


Listing some differences with Helix

Hi, I've tried to list some differences with Helix:

[ ] "%" doesn't select  the whole file in normal mode but insert a "%" instead.
[ ] the match inside "mi" and match around "ma"  doesn't  support parameters:

[ ] "m" : Closest surrounding pair to cursor

Do you if support for tree sitter grammar is possible?
With that we could use the following command in match and Unimpaired mode.

[ ]  "t"  : Type Definition
[ ] "f" : Function
[ ]  "a" : Argument/parameter
[ ] "d" : Comment
[ ]  "T": Test

Believe it should be c for comment, but yeh keen to see these addressed ✨ Helix has given me a life I don't want to go back from but am forced into VSCode land while Fluttering

Well spotted! I've updated the issue


Add improved exceptions and logging

Description

Story ID
Story Name

#171285714
Better identifying SDK exceptions/logging from Service exceptions/logging

Summary of Changes:
REVAPI verifies the next version shourd be 2.1.0-alpha

Delete this section if your PR does not depends on other PRs
This pull request depends on the following pull requests:

org/project:PR-number
ex. autonomic-tmc/tmc-oss-root-pom:21

Delete this section if other PRs do not depend on this one
The following pull requests depend on this pull request:
org/project:PR-number
ex. autonomic-tmc/tmc-oss-root-pom:21

Review readiness
This pull request is considered a Work In Progress unless all of the following boxes are checked.
Items not required for this PR should be removed from the below list.

[ ] A secret scan was run:

[ ] on every commit
[ ] on every push

[ ] Existing tests of the following types were run:

[ ] unit tests
[ ] integration tests

[ ] Application was run to ensure it is still working as expected
[ ] Examples given to customers still work as expected
[ ] Code quality gates have been meet:

[ ] Code Coverage
[ ] Sonar Quality Gate

[ ] Ensured no breaking changes to the public interface
[ ] One of the following has been done:

[ ] Documentation was updated
[ ] A story was created to update the documentation

PR Reviewer's Checklist
Be sure to give yourself enough time to review the PR.  We are looking for good approvals, not rubber stamped approvals.

[ ] Pull down the branch
[ ] Review the code
[ ] Build the code
[ ] Run tests, application and/or examples locally
[ ] Review code's coverage
[ ] Review code's Sonar quality gate

Reviewers for this PR:

[ ] @autonomic-tmc/sdk-team
[ ] @autonomic-tmc/fe-pr-reviewers

@AimmeK I have replaced the old exception classes with new ones. We can decide if we still want to rewrite the README.md.


⚠ Turnos 24x7 has degraded performance

In 18f7ded, Turnos 24x7 (https://reservas-dev.alternativasinteligentes.com/) experienced degraded performance:

HTTP code: 200
Response time: 866 ms

Resolved: Turnos 24x7 performance has improved in 23cf726.


SampleGen: can't find field on request object? [TranslationService.CreateGlossary]

I can no longer generate the sample below.
Error message:
ERROR: toplevel: Unexpected exception:

java.lang.IllegalArgumentException:
The field name is not found in the collection map.
Field name: glossary.name, map keys: [parent]

I'm calling:
service: google.cloud.translation.v3beta1.TranslationService
rpc: CreateGlossary

This Request requires that 2 fields be set: parent and glossary
The Error message seems to imply that it's only seeing the parent field and not the glossary field (the object to create)

Full YAML below:
type: com.google.api.codegen.samplegen.v1p2.SampleConfigProto
schema_version: 1.2.0
samples:
- region_tag: translate_create_glossary_beta
  title: Create Glossary
  description: Create Glossary
  service: google.cloud.translation.v3beta1.TranslationService
  rpc: CreateGlossary
  request:
  # Configure parent (Google Cloud Project + Location to scope this Glossary under)
  - field: parent%project
    value: "[Google Cloud Project ID]"
    input_parameter: project
  - field: parent%location
    value: us-central1

  # Pass full resource name for Glossary resource to create (?)
  #
  # Google Cloud APIs aren't supposed to have you provide the #name of objects on create,
  # instead Glosary should have a display_name and the ID should be server-side generated.
  # See: https://aip.dev/133#user-specified-ids
  #
  # Nevertheless, the Translation v3beta1 API currently requires you to pass the full
  # glossary name on create or else you get this API error:
  # > "Empty resource name.;  Resource type: glossary"
  #
  - field: glossary.name%project
    value: "[Your Google Cloud Project ID]"
    input_parameter: project_2

  - field: glossary.name%location
    value: us-central1

  - field: glossary.name%glossary
    value: my_glossary_id_123
    input_parameter: glossary_id

  # Glossary configuration
  - field: glossary.language_codes_set.language_codes[0]
    value: en
  - field: glossary.language_codes_set.language_codes[1]
    value: es
  - field: glossary.input_config.gcs_source.input_uri
    value: gs://cloud-samples-data/translation/glossary.csv
  response:
  - print:
    - Created Glossary.
  - print:
    - 'Glossary name: %s'
    - "$resp.name"
  - print:
    - 'Entry count: %s'
    - "$resp.entry_count"
  - print:
    - 'Input URI: %s'
    - "$resp.input_config.gcs_source.input_uri"

@googleapis/samplegen

Note: the glossary.name project/location/glossary come from the defined collections:
  collections:
  - name_pattern: projects/{project}/locations/{location}
    entity_name: location
  - name_pattern: projects/{project}/locations/{location}/glossaries/{glossary}
    entity_name: glossary

This sample used to generate as-is for me afaicr 😕

Duplicate of https://github.com/googleapis/gapic-generator/issues/2586
... I always remember collections: but forget field_name_patterns: 😅


Disable deprecated rules when using allRules flag.

fixes #6336
This deactivates all deprecated rules when running with the allRules flag to allow warningAsError to be set to true.

Warnings

:warning:
This PR is approved with no milestone set. If merged, it won't appear in the detekt release notes.

  Generated by :no_entry_sign: dangerJS against f6f42f361f2c537b8fef960839f38083eb172886


This is happening no matter what i try

this is happening no matter what i try its named the right name and i have tried deleting it and reinstalling it and it still doesnt work

This is a configuration issue. This is the fault of your own. Issue closed since there is no issue.


hi I have a issues for material-ui

Context
this's in the material-ui of withStyles.d.ts ,there're the code, in 32 lines
export interface WithStylesOptions<ClassKey extends string = string>
  extends JSS.CreateStyleSheetOptions<ClassKey> {
  flip?: boolean;
  withTheme?: boolean;
  name?: string;
}

it has no exported member 'CreateStyleSheetOptions' in types/jss.
how can I resolve it
Your Environment

Tech
Version

Material-UI
v1.2.1

types/jss
9.3.1

React
16.3.0

browser

etc

Please provide a full reproduction test case. This would help a lot 👷 .

We rely on "@types/jss": "^9.5.3",


Migrate unbans from IRC to Helix

Pull request checklist:

[x] CHANGELOG.md was updated, if applicable
[x] Documentation in docs/ or install-docs/ was updated, if applicable
[ ] I have tested all changes

I have modified the code to be more consistent with the ban functions:

Added an unban_id function
Added an _unban function
Updated unban function to utilize unban_id
Updated unban_login to get the user_id of the user being banned

I kept the existing unban_login function as to not break anyone else's existing code that uses this function.

All working just fine