feat: expose storage to tracers

Tracers can now read storage slots. This is required for the validation tracer.
TODO

[x] check that the extra plumbing does not affect performance

There is no huge performance impact at least. I cannot reliable measure any difference but I did not inspect the assembly.

The new interface looks weird. I guess it could be caused by performance, but ideally I'd like to see the Tracer interface left unchanged and state interface extended as either
pub trait StorageInterface {
    /// Gets value of the specified storage slot.
    fn get_storage(
        &mut self,
        address: H160,
        slot: U256,
    ) -> U256;
}

/// Public interface of the VM state. Encompasses both read and write methods.
pub trait StateInterface {
    /// Gets a storage handle.
    fn storage(&mut self) -> impl StorageInterface;

   // ...
}

... or even
pub trait StateInterface: StorageInterface { /* ... */ }

In order to do this, VirtualMachine should include the World (i.e., W param). Are there any issues preventing this? Of course, VirtualMachine should provide a public getter for World so that it can still be accessed by the glue code. Technically, there's an alternative: implementing StateInterface for an adapter type like this:
pub(crate) struct VmState<'a, T, W> {
    vm: &'a mut VirtualMachine<T, W>,
    world: &'a mut W,
}

impl<T: Tracer, W: World<T>> StateInterface for VmState<'_, T, W> {
    // ...
}

...but I don't like it because it means that StateInterface method can no longer be used on VirtualMachine (which happens in the glue code and in the unit tests in this repo).

I see. How about this alternative:
pub trait StateInterface {
    // left as-is
}

// Name TBD
pub trait TracedStateInterface: StateInterface {
    fn get_storage(
        &mut self,
        address: H160,
        slot: U256,
    ) -> U256;
}

pub trait Tracer {
    /// Executes logic before an instruction handler.
    ///
    /// The default implementation does nothing.
    fn before_instruction<OP: OpcodeType, S: TracedStateInterface>(
        &mut self,
        state: &mut S,
    ) {
       // ...
    }
}

Then, StateInterface can still be implemented for VirtualMachine, and implementing TracedStateInterface would require an adapter. A potential alternative that would further simplify the transition, but can lead to more verbose uses in tracers is
pub trait StateInterface {
    // left as-is
}

pub trait TracedStateInterface {
    fn base(&self) -> &impl StateInterface;
    fn base_mut(&mut self) -> &mut impl StateInterface;
    // a potential alternative is having an associated type:
    // type Base: StateInterface;
    // and requiring `TracedStateInterface: AsRef<Self::Base> + AsMut<Self::Base>`

    fn get_storage(
        &mut self,
        address: H160,
        slot: U256,
    ) -> U256;
}

Then, the wrapper would be as simple as
pub(crate) struct VmState<'a, T, W> {
    vm: &'a mut VirtualMachine<T, W>,
    world: &'a mut W,
}

impl<T: Tracer, W: World<T>> TracedStateInterface for VmState<'_, T, W> {
    fn base(&self) -> &impl StateInterface {
        self.vm
    }

    fn base_mut(&mut self) -> &mut impl StateInterface {
        self.vm
    }

    fn get_storage(&mut self, address: H160, slot: U256) -> U256 {
        self.vm.world_diff.just_read_storage(self.world, address, slot)
    }
}

The extension trait is the best suggestion IMO because using the base method would make writing tracers clunky.
Is there some library or trick to "inherit" methods from a field like in Go?
I also have an issue with the wrapper: It seems wrong to me to pass &mut (&mut A, &mut B), though because the types are know at compile time that probably compiles away. (&mut A, &mut B) cannot be used instead because &mut is not Copy.

AFAICT, there are no tricks for such trait delegation in the language itself. There are some crates implementing such delegation, such as delegate-attr and ambassador (I like the former better, although I haven't used either of them in production). Subjectively, composition approach (either via getters or AsRef / AsMut) looks like an OK solution to me; it seems to correspond to the overall "composition over inheritance" Rust motto.

It seems wrong to me to pass &mut (&mut A, &mut B)

I do think that the compiler should simplify this away; logically, there's no reason not to. In general, re-borrowing references in Rust is somewhat common, and it doesn't look like an anti-pattern.


Xcode 10.2 and Swift 5 support

Is this PR going to be merged into the project? I see it's been approved for some time.

Alternatively, you can use my branch too.


query_df does not seem to use query_tz option on a given query context

When creating a context with query_tz as an argument and applying it to a query that returns DateTime64(9) objects, query_df does not seem to return datetime64 objects with their hours converted to the correct timezone, but query returns datetime objects whose hours are converted to the correct timezone.
Steps to reproduce

some_context = client.create_query_context('select some_datetime64_column from my_table', query_tz="America/Los_Angeles")
my_df = client.query_df(context=some_context)
my_rows = client.query(context=some_context).result_rows

Expected behaviour
I would expect both my_df and my_rows have their datetime fields converted to "America/Los_Angeles" times.  However, only my_rows has its datetime fields converted to the correct timezone, whereas my_df does not.  Note, I'm not expecting the datetime64 or datetime fields to be timezone aware but rather have their time values themselves be in the given timezone.  query seems to do exactly this, but query_df does not seem to.  Currently I work around this by simply using query and calling pd.DataFrame on the returned sequence of tuples which is fine, but it would be great if  I could usequery_df to create the dataframe in one step.  Thanks in advance for any help and apologies if I missed an argument/setting that makes query_df behave in the same way.
Environment

clickhouse-connect version: 0.5.9
Python version: 3.10

ClickHouse server

ClickHouse Server version: <IP_ADDRESS>

Duplicate of https://github.com/ClickHouse/clickhouse-connect/issues/136.  Please try with the current version 0.5.14.

Duplicate of #136. Please try with the current version 0.5.14.

That did the trick, thanks @genzgd!  Much appreciated!


Unable to open bz2 files if wrong prefix

flexbar 2.7 is unable to open a valid bz2 read file named library_name.txt.bz2. If the file is renamed library_name.fq.bz2 flexbar runs without issues.
Is there a reason why this check is performed?

Right, the library that is used for IO requires the standard fasta and fastq extensions.

Is there no possibility of changing this list of "default" extensions in the library? Files with the extension .txt.[gz|bz2] is what you get from several different sequencing facilities (and, IIRC also from the Illumina machines them self). This change broke our pipelines that handle incoming data and we have to "fix" this by symlinking the original files. Would it be possible to have a short changelog for new versions to document changes like this?

Thank you for the request. Sorry for the inconvenience caused by the issue with extensions in the library. I will try to make the free choice of extensions possible again in future releases. This would also be helpful to fix the broken Galaxy tool without symlinks.


Add option to flit build to disable version normalisation

I'd like to create dists with a version of 7.10-alpha0 to conform to my organizations version guidance.
Currently Flit normalizes versions to ones in PEP 440 but I'd like to disable this behavior.
Are you willing to accept a PR which adds a --no-version-normalization or equivalent?

Sorry, not really. Flit is very much aimed at the 90% use case, and having some scheme to make sensible version numbers is good for the ecosystem as a whole.

Yeah sorry for the noise, forgot to close this one after realizing normalization is required per the PEP. Thanks.

No problem, thanks for being understanding about it.
On Sun, 6 Sep 2020, 13:40 Seth Michael Larson<EMAIL_ADDRESS>wrote:

Yeah sorry for the noise, forgot to close this one after realizing
normalization is required per the PEP. Thanks.
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
https://github.com/takluyver/flit/issues/365#issuecomment-687779352, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AACQB5LIAAG6JZS2MSNB6U3SEN7LJANCNFSM4P2GP6CA
.


Serif (Georgia) font not displaying

Changing Preferences > Story > Feed view font family has no effect on the font displayed, it always shows a sans-serif font. It does change the font size, however (I'm guessing to adapt to the expected different font).
Inspect-element always reports the fonts as: 'Lucida Sans', 'Lucida Grande', Verdana, 'Helvetica Neue', Helvetica, sans-serif;
Observed on Win7 with both Chrome and Firefox.
Edit: I just noticed this happens only when in List Mode. In Split Mode it displays correctly.

Ah-ha, this has definitely been fixed.


Cannot use snaplayout on windows11.  (.net6  V2.0.2)

Describe the bug
Cannot use snaplayout on windows11.
To Reproduce
Creat an application using custom TitleBar.
        <ui:TitleBar Name="TitleBar" Grid.Row="0"
            Title=""
            FontSize="{Binding FontSize13, Mode=OneWay}"
            ForceShutdown="False"
            Icon="pack://application:,,,/Logo.png"
            MinimizeToTray="False"
            ShowHelp="False"
            ShowMaximize="True"
            ShowMinimize="True"
            UseSnapLayout="True">
......
......

Expected behavior
Pops up snaplayout when move mouse over the maximize button.

You have two screens ?

I was looking at the same thing (I have two screens), even the Demo app has this issue.
WIN + Z combo keys is showing the snaplayout correctly, it's just the hover to be broken.

same issue :(
22H2 Windows 11 (RP)

Using only one screen has the same problem

You have two screens ?

Using only one screen has the same problem

I was looking at the same thing (I have two screens), even the Demo app has this issue. WIN + Z combo keys is showing the snaplayout correctly, it's just the hover to be broken.

The same.


can we work together

can you give your skype

You can submit a PR on this repository if you'd like to contribute. :)


Spacing Around Column and Callout frames Increases When Type Size Is Increased

Describe the bug
Issue occurs several different browser windows, when the Type size is increased. The spacing around the column (top, bottom, left, right) also increases causing the Column to become very narrow. It does not occur on mobile device using Chrome. The issue is also seen with Callout content except that it appears to perform as expected on Chrome on my desktop (instead of just on mobile in Chrome).
To Reproduce
Steps to reproduce the behavior:

Go to resources/technical-content/palette-recipes using a mobile device or a narrow desktop browser window. (Not Chrome on mobile).
Scroll down to the examples below the "Column" heading and adjust the type size in the browser
See Error
Repeat on mobile using Chrome for a comparison

Expected behavior
The spacing around Column content should not increase when users increase the size of the type in the browser. The Column width should remain constant regardless of type size.
Screenshots
On mobile Safari (default type vs increased type size)

Desktop, minimized Browser window

Desktop, full width Browser window
Chrome (default vs enlarged type)

Firefox (default and two different increases in type)

Chrome on mobile (example of what is expected)

Desktop (please complete the following information):

OS: Catalina version 10.15.6
Browsers: Chrome, Firefox

Smartphone (please complete the following information):

Device: iPhone SE
Browsers: Safari, Chrome

Additional context
The issue can be seen on all pages with Column content in use and to all types of columns (Full Width, Sibling, with Header). The issue is also seen with Callout content except that Callout content appears to perform as expected on Chrome on my desktop (in addition to Chrome on my mobile device).

@eringeorgen From what I can tell with my tests and your screenshots the column paddings are the same expected pixel densities. Font size changes on mobile are actually zooming in the screen (CMD and + on desktop), so this isn't an issue we can fix.
@twblack88 This is a similar wont fix as to #439 with a possible solution being #420.
These kinds of fixes are difficult to tackle because there's only so much font size change support we can provide and there aren't selectors in css available to check what a device browser's current font size is.

Changing this to deprioritize. I attempted to experiment with this issue, but it's more so that these kinds of visual requests need to go to Shea prior to them coming to developers.


Add S3 Bucket ACL Allows Read to AllUsers query for CloudFormation

Platform
CloudFormation
Description
S3 Bucket ACL should not allow read operations to 'AllUsers' grantee

Closes #792


NestedScrollView/CustomNestedScrollView whitespace issue with non-expanded toolbar on orientation change

In the sample app, for both the NestedScrollView and the CustomNestedScrollView demos, while changing orientation (after having scrolled a little), the extra spacing thats placed in the NestedScrollView/CustomNestedScrollView appears to show up out from underneath the toolbar. The toolbar then jumps to the expanded state when you start to scroll.
Steps to repro:

In the NestedScrollView/CustomNestedScrollView scroll a little to have the toolbar in a non-expanded state
Rotate the device
Note how the whitespace (that is used to make space for the header/toolbar) shows up
Start to scroll in the NestedScrollView/CustomNestedScrollView and note how the toolbar snaps to an expanded state

It seems like even though the offset is preserved throughout the orientation change, the  NestedScrollView/CustomNestedScrollView's scroll position doesn't get preserved?
Screenshots

I thought I fixed it before. Let me look into it.

Hi @drinkthestars
It's happened because I haven't set id for NestedScrollView. Without id, android won't do saveInstanceStates on orientationChanged.
Please check my commit above.
Thanks,
Henry


Merge pull request #1 from CBaquero/master

New datatypes

What is this?

It was an attempt to push to syncfree repository new stuff from the C++ CRDTs. I will probably try again with Annette, since I am not that used to those features of GitHub.

Carlos Baquero
HASLab / INESC TEC &
Universidade do Minho,
Portugal
<EMAIL_ADDRESS>http://haslab.uminho.pt/cbm/

On 09/09/2015, at 19:06, Christopher S. Meiklejohn<EMAIL_ADDRESS>wrote:
What is this?
—
Reply to this email directly or view it on GitHub.


Refactor delta logic for library usage

Follow up on #168 after attempting to use the collector in a library and realizing there were some issues with some fields needing to be exported on HistogramMetric and ConstMetric to make it work.
I noticed a few other things which I fixed up along the way

Dedicated package for delta support (the bulk of the diff)
Slimmed down the data stored in memory from the GCP Distribution
The CollectedMetric and CollectedHistogram structs were eliminated in favor of ConstMetric + ConstHistogram tracking the collection time
The consumer of ListMetrics(metricDescriptorName string) map[string][]*Collected<Metric|Histogram> doesn't need the map so this was simplified to ListMetrics(metricDescriptorName string) []*Const<Metric|Histogram>

I have another follow up to this which abstracts the the store implementation so it can be shared between Histograms and Counters but didn't want to pile too many things in to this.

This needs a rebase.

Sorry for the review delays, this exporter got lost in my inbox.


Chinese / Japanese characters are unable to mask

I am trying to get a input field masked with Japanese mobile phone number format. It's straight forward if the input only contains 0-9 numeric characters. But the problem is it's quite common to use full-width numeric characters  ０－９in Japan and China, which are unable to be masked.
Also when I input full-width characters, the existing placeholders are pushing to the right hand side, which I think is an unhandled bug.

@owen26 ,
It's been a while ;-)
But can you have a try with the latest version from github.

hi robin,
Sorry for late reply. I tried the latest version of this plugin

https://github.com/RobinHerbots/jquery.inputmask/blob/3.x/dist/jquery.inputmask.bundle.js

with the config of
$('input').inputmask({
  mask: '999-9999-9999'
});

This time I'm unable to input any full-width numeric characters such as

１２３４５６７８９０

I guess this is the expected behaviour with my config?

No, it should work.  Can you have a look in the keypress event and see whick code you get for the fullwidth numeric chars.

@owen26 correct me if I'm wrong:
Keyboard as Japanese, set to Hiragana and using a simple page like this one: http://www.asquare.net/javascript/tests/KeyCode.html
When pressing any number from 1 to 0, the KeyDown for all is 229, what changes is the keyUp (1 = 49, 2 = 50, etc). After press, the auto-complete dropdown kicks in and when you pick the value, it won't trigger any other keyCode. But while you were using Up/Down to pick between full-width (２),half (2) or japanese hiragana (二), it will trigger 38/40. Odd.
Anyways, just trying to help, not that I'll use the feature atm.

The input fires a compositionevent which i tranlate to keypresses.  What i
mean, see what keycode you get in the keypressevent from the inputmask;
Op 09:01 DI 9 Jun 2015 schreef Raphael DDL Oliveira <
<EMAIL_ADDRESS>
@owen26 https://github.com/owen26 correct me if I'm wrong:
Keyboard as Japanese, set to Hiragana and using a simple page like this
one: http://www.asquare.net/javascript/tests/KeyCode.html
When pressing any number from 1 to 0, the KeyDown for all is 229, what
changes is the keyUp (1 = 49, 2 = 50, etc). After press, the auto-complete
dropdown kicks in and when you pick the value, it won't trigger any other
keyCode. But while you were using Up/Down to pick between full-width
(２),half (2) or japanese hiragana (二), it will trigger 38/40. Odd.
Anyways, just trying to help, not that I'll use the feature atm.
—
Reply to this email directly or view it on GitHub
https://github.com/RobinHerbots/jquery.inputmask/issues/198#issuecomment-110253721
.

@RobinHerbots
I captured the keycode using the following code:
$('#telephone').on('keypress', function (e) {
  console.log(e.keyCode, e.which);
});

unfortunately I'm unable to trigger keypress event when my input method is switched to full-width mode. When I switched back to half-width mode, it triggered as usual.
Personally I think it would be an acceptable behaviour for me, as the original reason I raise this bug is because full-width character interrupted the proper format of the mask symbols, which wouldn't be a problem if they are not allowed to be insert any more.

Try wih the compositionupdate event and watch the e.originalevent.data

@owen26,
I made a jsfiddle http://jsfiddle.net/Lgcnxa2g/
Can you try some wide chars and tell me what you get in the textarea.

Hi Robin,
I tried your jsfiddle, but there is something seems not quite right. And when I type things(no matter what I typed), nothing comes out in the textarea. Please see the screenshot.

I use the latest version of Chrome and Firefox under Windows 8.1

What are your exact keyboard settings?
Op 02:18 WO 10 Jun 2015 schreef Xinan<EMAIL_ADDRESS>
Hi Robin,
I tried your jsfiddle, but there is something seems not quite right. And
when I type things(no matter what I typed), nothing comes out in the
textarea. Please see the screenshot.
[image: qq<PHONE_NUMBER>1333]
https://cloud.githubusercontent.com/assets/385786/8072472/c89c7244-0f48-11e5-8b81-d844a45f57ae.png
I use the latest version of Chrome and Firefox under Windows 8.1
—
Reply to this email directly or view it on GitHub
https://github.com/RobinHerbots/jquery.inputmask/issues/198#issuecomment-110540855
.

Ah, actually when I use the built-in Japanese input method, the TEXTAREA can show the correct characters I'm typing such as "１, ２, ３". But when I use Chinese input method, it shows nothing.
I think it might have something to do with these input method's native behaviour. Some input methods (especially for Asia languages) put the characters you are typing into a temporary place (usually marked with underscore), when you press ENTER, it will be converted to the final string and put in your input area. As the screenshots below:

This behaviour trigger events differently in JavaScript. In Japanese method, when I start type numbers, "keypress" event is not triggered, "compositionupdate" on the other hand, is triggered. With e.originalEvent.data set to the content of what I was typing. But when I press ENTER to convert the characters to the final words, "compositionupdate" is not triggered.
When I type numbers in Chinese method (full width mode), neither "keypress" nor "compositionupdate" was triggered.
I think maybe you can install some of the input methods to feel what I'm saying. And maybe the behaviour could be affected by individual computer settings. Since there are so many different input methods, the best way to solve this issue seems to be simply ignore those special characters.

@owen26 ,
In the keyboard layout I find multiple chinese keyboard layouts.  I don't know which one to take.  I tried some and they all produce correct output.
Does the Chinese method triggers an input event?  I can ignore this case, but I just want to reproduce at my machine to make sure there is no trivial fix.

@RobinHerbots ,
I suggest you can install a third party input method called Sogou, which is the most popular Chinese input method on the market. (they are like 90% market share).
http://pinyin.sogou.com/
Unlike other languages, the Microsoft embed Chinese input method is almost never used in real world.
If your plugin compatible with Sogou, then it's compatible with most of the Chinese people.

@owen26,
Can you provide some screenshots with some translation of the tool, so that I kown what I am doing ;-)
It is chinese only and it's all chinese to me if you know this expression ;-)
I managed to install and select the pinyin ime by guessing, ... now how do I type the chinese wide chars?

Ok, google translate on android to the rescue  ;-)

Chinese input method is not supported

Same issue here. Using the latest version of Jquery plugin, the numeric input on while using Traditional Chinese (Using in HK, TW but not in China) Input method “Quick 速成”, with normal setting (should be output normal characters but not full-width characters), sometimes work but sometimes didn’t.
I am trying to mask

Credit Card number (this work on both English and Traditional Chinese Input Methos)
$(selector).inputmask("(9999-9999-9999-9999)|(999-999999-999)");

Credit Card expiration date / CV2
$(selector).inputmask("99/99");
$(selector).inputmask("999");
// Everything is great with English input method, however, the input handled as spaces (same 1-9 input) while using Traditional Chinese Quick input method with half-width normal characters output (Win10 built-in)

@RobinHerbots Were you able to solve this issue? I am having the same exact issue where the characters are mis-placed if I were to use the masking and have the chinese keyboard turn on.


Ecovacs 0.92.1 Bug

Home Assistant release with the issue:
0.92.1
Last working Home Assistant release (if known):
0.92.1 (was a broken platform previously)
Operating environment (Hass.io/Docker/Windows/etc.):
Hass.io
Component/platform:
ecovacs
Description of problem:
First off: thank you for all the work put into just getting the component working again!
The component now loads, and the commands all work. However, there is a field in the component now called "error" with a value of "null". From looking at the documentation, I believe this is supposed to be the lifespan of your filter. There are no errors in the logs. Here's what the entity attributes look like in the "states" tab:
status: charging
battery_level: 99
battery_icon: mdi:battery-charging-100
fan_speed: normal
fan_speed_list: normal,high
error: null
friendly_name: vacuum
supported_features: 2043
Problem-relevant configuration.yaml entries and (fill out even if it seems unimportant):
ecovacs:
  username: myusername
  password: !secret vacuum
  country: us
  continent: na

Traceback (if applicable):

Additional information:
HAssio 2.11
Supervisor 162

Please do not change our issue template

Please do not change our issue template

Sorry; corrected

Hi there,
This is actually not a bug. The error attribute is there to indicate what the most recent error thrown by the vacuum is. This can be used in automations to trigger on the vacuum getting stuck, the vacuum failing to find its charger, and other such errors. It's null when there is no most recent error such as on startup. There's a bit more info in the documentation: https://www.home-assistant.io/components/ecovacs/#handling-errors

Got it - thank you!


Back to the starting point

I don't know if it's easy to do but it lacks a button to go back to the starting point when you trace in routing mode so you can't do it yourself.
I'm a lazy guy.

Other people have suggested this improvement with 2 variants:

automatically route (or straight line if routing is disabled) from the last point to the start point of the trace
come back to the start point using the exact same route

If you have to choose, I would prefer the first one!

Thank you for your suggestion, I have re-implemented the website from scratch and added both variants to the future version.
You can check it out here: https://gpx.studio/gpx.studio/ and provide feedback on this new repository: https://github.com/gpxstudio/gpx.studio.

Thank you vcoppe, your app was already amazing, but it's becoming incredibly amazing. The new app seems awesome: very fast, top aesthetics, a ton of new features... All of that while keeping the simple and accessible aspect I'm sure was a huge reason of the widespread love for your project.


add anaconda3 home path '/usr/local/anaconda3'

Thanks! By the way, is /usr/bin/anaconda3 a standard location? It doesn't seem right for it to be in /usr/bin.

I don't know it yet, but on macOS with brew the  anaconda3's home location is  /usr/local/anaconda3.


Small button

Hi,
Can you make additional interface for device:

Remove button On and Off and make Device label like button.
Make Device label small (half from it current size).

Regards,
Siva73.

Hi,
could you explain better to which device you refer to? Light, Automation, generic Device...

I can't remove ON and OFF and use only a button, because it could happen that if you switch on for example the light with the app and then you switch it off manually and you don't refresh the list, the app end up to be in an inconsistent state. To be able to work like you want the app should listen for real time event, which is out of scope for now

Can you attach a screenshot if you have an issue with the size, so that I can understand the reason? I've used material design guidelines to create the cards

Light and Sound.
Simply on smartphone - 4 buttons on screen. And scrolling...
About ON/OFF - ok, it's not needed to real time listening.


Failed to load 'dracoenc_unity.dll' because one or more of its dependencies could not be loaded

This error is always reported on the win11 computer, but I do not know what library is relied on here

I had the same issue with Windows 11. The issue was resolved by installing Microsoft Visual C++ Redistributable packages for Visual Studio 2015, 2017, 2019, and 2022: https://learn.microsoft.com/en-us/cpp/windows/latest-supported-vc-redist?view=msvc-170#visual-studio-2015-2017-2019-and-2022

It looks like the encoding plugins, .dll at least, haven't been updated along with the unity scripts
You can use the most recent binaries that have lacking functions and different signatures

Hey, I have the same issue on Windows 10 latest, clean install. Built the app using Mono and IL2CPP, still missing a .dll. I need to distribute my app as a standalone, not asking users to install redistributable packages for VS, did you guys found a way to include the missing DLL in the build?

The next DracoUnity version will have one DLL file only, so the encoding dll problem should be gone.

If someone can confirm (or falsify) that installing Microsoft Visual C++ Redistributable packages for Visual Studio 2015, 2017, 2019, and 2022 solves the problem, I'd put that in the docs.
Thanks

I can confirm that installing the redistributable package linked above by @John-Storm fixes the issue.

Please transition to Draco for Unity, the successor of this repository/package.
The original pitfall is now documented here:
<EMAIL_ADDRESS>Thanks for bringing it to our attention!


Build a DataLake on HDInsight AKS cluster running Apache Flink and Azure Eventhub part

Purpose

...

Build a DataLake on HDInsight AKS cluster running Apache Flink and Azure Eventhub part
Does this introduce a breaking change?

[ ] No

Pull Request Type
What kind of change does this Pull Request introduce?
Build a DataLake on HDInsight AKS cluster running Apache Flink and Azure Eventhub part

[ ] Bugfix
[ ] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] Documentation content changes
[ ] Other... Please describe:  Build a DataLake on HDInsight AKS cluster running Apache Flink and Azure Eventhub part

How to Test

Get the code

git clone [repo-address]
cd [repo-name]
git checkout [branch-name]
npm install

Test the code

What to Check
Verify that the following are valid

...

Other Information

@Baiys1234 - please update the folder name to have Azure Event Hub with Apache Flink on Azure HDInsight on AKS

Update to Build a DataLake on HDInsight AKS cluster running Apache Flink and Azure Eventhub not [Build a DataLake on HDInsight AKS cluster running Apache Flink and Azure Eventhub part]


Issuing a delete to /declare/ deletes existing BIG-IP DNS topology records

Do you already have an issue opened with F5 support?
No
ISSUE TYPE

Bug Report

AS3 BUILD/ VERSION

f5-appsvcs-3.6.0-5 +

BIGIP VERSION

 Version     <IP_ADDRESS>
 Build       0.0.3
 Edition     Point Release 6

SUMMARY

When issuing a delete to any tenant it appears that all existing BIG-IP DNS topology records are deleted.

STEPS TO REPRODUCE

- With DNS provisioned, configure one or more topology records.
- Right now, this appears to happen with any tenant configuration.  A simple HTTP app will suffice.
- Issue a delete for the tenant ID.  Ex. https://{{bigip_mgmt}}/mgmt/shared/appsvcs/declare/<Tenant>

EXPECTED RESULTS

AS3 should only delete the targeted tenant configuration

ACTUAL RESULTS

AS3 deletes the tenant configuration as well as all BIG-IP DNS topology records.
From /var/log/audit
bigipa notice mcpd[4842]: 01070417:5: AUDIT - object 0 - obj_delete { gtm_top_item { } } [Status=Command OK]

@chrisadrian001 are you configuring the dns records through AS3 or manually? Can you please provide a sample declaration that will help us look at reproducing the error?

The topology records were configured manually prior to the use of AS3.  At this point, what was configured in the original declaration doesn’t appear to have any relevance to the end result of the topology records being deleted.  However, as an example, the below declaration will produce the observed behavior.
POST: https://{{bigip_a_mgmt}}/mgmt/shared/appsvcs/declare/
{
"class": "AS3",
"action": "deploy",
"persist": true,
"declaration": {
"class": "ADC",
"schemaVersion": "3.0.0",
"id": "example-declaration-01",
"label": "Sample 1",
"remark": "HTTPS with HTTP Redirect",
"Tenant_1": {
"class": "Tenant",
"defaultRouteDomain": 0,
"App_1": {
"class": "Application",
"template": "https",
"serviceMain": {
"class": "Service_HTTPS",
"snat": "auto",
"persistenceMethods": [],
"virtualAddresses": [
"{{app_vip_1_ip}}"
],
"pool": "web_pool",
"serverTLS": { "bigip": "/Common/clientssl"
}
},
"web_pool": {
"class": "Pool",
"monitors": [
"http"
],
"members": [
{
"serverAddresses": [
"{{app_server_1_ip}}"
],
"shareNodes": true,
"servicePort": {{app_server_1_port}}
},
{
"serverAddresses": [
"{{app_server_1_ip}}"
],
"shareNodes": true,
"servicePort": {{app_server_2_port}}
}
]
}
}
}
}
}
DELETE: https://{{bigip_a_mgmt}}/mgmt/shared/appsvcs/declare/Tenant_1
Here are the results of the delete on a sample topology record created manually.
[root@bigipa:Active:Disconnected] config # tmsh list gtm topology
gtm topology ldns: subnet <IP_ADDRESS>/32 server: subnet <IP_ADDRESS>/32 {
order 1
}
[root@bigipa:Active:Disconnected] config # tail -f /var/log/audit | grep -i topology
Apr 15 15:23:48 bigipa notice tmsh[31910]: 01420002:5: AUDIT --- folder=/Common module=(tmos)# status=[Command OK] cmd_data=list gtm topology
Apr 15 15:24:09 bigipa notice mcpd[4842]: 01070417:5: AUDIT - client tmsh, --- object 0 - modify { gtm_globals { gtm_globals_topology_longest_match 1 } } [Status=Command OK] <----- Point where AS3 received the DELETE for Tenant_1
^C
[root@bigipa:Active:Disconnected] config # tmsh list gtm topology
[root@bigipa:Active:Disconnected] config #

Actually, that audit log entry should have been this one: Apr 15 15:24:09 bigipa notice mcpd[4842]: 01070417:5: AUDIT - client tmsh, ---- object 0 - obj_delete { gtm_top_item { } } [Status=Command OK]

Issue 1013 internally


Unable to Destroy filled blocks with even radius.

I ticked filled, even, and tried to cleave out a circle. It only destroyed all blocks in the circumference. Otherwise this mod is very cool!

yes, Fill isn't ready for even circles, I'm working on it


Implement check_lengths

https://github.com/dask/dask-ml/pull/863/files#diff-970a9a902963a060977ac1912b5a86a5177cebfd468517967f63335bb6d024eaR435-R437 added an empty check_lengths. We should implement a real one.
Unlike scikit-learn, we don't actually want to check the lengths when constructing the graphs. But we do want to check things like that the number of chunks match, that the chunk shapes match if present, divisions, etc.

@TomAugspurger Isn't that logic already implemented in check_matching_blocks ?

Yep, that might just do the trick.


hiding local user name

Hi, it would be good to hide my local user name on remote SSH machine. Why should I expose it?
-             export SSHHOME=\$(mktemp -d -t .$(whoami).sshrc.XXXX)
+             export SSHHOME=\$(mktemp -d -t .sshrc.XXXX)

Hi, just removing the username from the command will break sshrc if there are multiple users using sshrc to connect to a single server (as everyone would try to reuse the same dotfiles location).
If you want to hide the username hashing it could be a better solution.

There is stil mktemp which adds some randomness. I have logged in the same server from 2 local consoles and there is different $SSHHOME in each session. So I think it is working fine.

Indeed, that thought only occurred to me after sending my reply.


[WIP] IPC channel added to check if docker is installed or not

Just a simple implementation for the ipc channel for checking if docker is installed and working file or not.
TODOS

[x] Add check to see if docker is installed or not.
[ ] Move check docker ipc call to useInterval.
[ ] Add check to see if if there's a Docker daemon up

Great! 👏


More granular compare_key and determine path at initialization time

Invalid operators no longer slip through the cracks at parse time
This could have been written as payload.keys.detect { |key| COMPARE_KEYS.match?(key) || TYPES.match?(key) },
but we'd just have to write it this when when we add type checking (the next PR)

update:

Dropped my payload parameter change.

update:

/unless compare_key/unless @compare_key/ (a rollback)


feat: add get_extable_utxos to watcher security-critical API

Coverage decreased (-0.2%) to 81.73% when pulling f5bf93044fdda1e5bdda5dd28f377ac98fae9507 on 679-security_critical_Watcher into 9beeb5e7be5e36a49998e18043cd8fb5463d90ed on master.

part of #679


Remove keyboard upon change of screen (Create Wallet)

Please include link to asana task

https://app.asana.com/0/361770107085503/556566572991223


Try moving to common PyB GHA

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

0 of 0   changed or added relevant lines in 0 files are covered.
298 unchanged lines in 24 files lost coverage.
Overall coverage decreased (-3.8%) to 76.592%

Files with Coverage Reduction
New Missed Lines
%

src/main/python/pybuilder/pip_utils.py
1
93.91%

src/main/python/pybuilder/pluginloader.py
1
87.01%

src/main/python/pybuilder/plugins/python/remote_tools/init.py
1
45.24%

src/main/python/pybuilder/terminal.py
1
75.47%

src/main/python/pybuilder/plugins/python/core_plugin.py
2
87.62%

src/main/python/pybuilder/plugins/python/unittest_plugin.py
2
79.43%

src/main/python/pybuilder/plugins/core_plugin.py
3
74.36%

src/main/python/pybuilder/plugins/python/integrationtest_plugin.py
3
41.88%

src/main/python/pybuilder/plugins/python/coverage_plugin.py
4
51.33%

src/main/python/pybuilder/execution.py
5
90.43%

Totals

Change from base Build<PHONE_NUMBER>:
-3.8%

Covered Lines:
4654

Relevant Lines:
5910

💛  - Coveralls


Added argument description to twig asset() method

I have added a description of the arguments for the asset() method. I didn't find them obvious when I first used the AssetServiceProvider, although it makes sense in hindsight. The description would have saved me some time getting the paths right

Thank you @DaveC49.


Log node creation and deletion

What this PR does / why we need it:
Log node creation and deletion in agent controller
Release note:

Log node creation and deletion in agent controller

/lgtm


supabase-cli: 1.202.3 -> 1.210.1

Automatic update generated by nixpkgs-update tools. This update was made based on information from passthru.updateScript.
meta.description for supabase-cli is: CLI for interacting with supabase
meta.homepage for supabase-cli is: https://github.com/supabase/cli
Updates performed

Ran passthru.UpdateScript

To inspect upstream changes

Release on GitHub

Compare changes on GitHub

Impact
Checks done

built on NixOS
The tests defined in passthru.tests, if any, passed
found 1.210.1 with grep in /nix/store/qrni1cvzhg55fjif5l3xdlpbhp2n402r-supabase-cli-1.210.1
found 1.210.1 in filename of file in /nix/store/qrni1cvzhg55fjif5l3xdlpbhp2n402r-supabase-cli-1.210.1

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

2 total rebuild path(s)

2 package rebuild(s)

First fifty rebuilds by attrpath

supabase-cli

Instructions to test this update (click to expand)

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

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

Or:
nix build github:r-ryantm/nixpkgs/3d7c1006b62777d50724321bd56b3334d68df912#supabase-cli

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/qrni1cvzhg55fjif5l3xdlpbhp2n402r-supabase-cli-1.210.1
ls -la /nix/store/qrni1cvzhg55fjif5l3xdlpbhp2n402r-supabase-cli-1.210.1/bin

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

x86_64-linux

:white_check_mark: 1 package built:

supabase-cli

Maintainer pings
cc @Gerschtli @kashw2 for testing.

[!TIP]
As a maintainer, if your package is located under pkgs/by-name/*, you can comment @NixOS/nixpkgs-merge-bot merge to automatically merge this update using the nixpkgs-merge-bot.

Add a :+1: reaction to pull requests you find important.

nixpkgs-review result
Generated using nixpkgs-review.
Command: nixpkgs-review pr 351889

aarch64-darwin

:white_check_mark: 1 package built:

supabase-cli


CVXPY + GPU error

Hi
I'm trying to run a simple optimization problem using CVXPY on GPU (on the cluster) but it gives the following error:
import _scs_gpu
ModuleNotFoundError: No module named '_scs_gpu'
Is there a specific module to import to get rid of this error? I could not find an example of running optimization on GPU using CVXPY online. This is the part of the code in which I have enabled the use of GPU.
X=prob.solve(solver=cp.SCS, gpu= True,use_indirect=True,eps=10(-8),verbose=False)**
Any help would be appreciated.
Thanks

Cvxpy itself doesn’t use GPUs. The decision to use a GPU or not depends on the solver. I think SCS is the only cvxpy solver which has possible GPU support. To use that GPU support, you have to compile SCS from source (with an appropriate compiler flag).
Sent with GitHawk

Cvxpy itself doesn’t use GPUs. The decision to use a GPU or not depends on the solver. I think SCS is the only cvxpy solver which has possible GPU support. To use that GPU support, you have to compile SCS from source (with an appropriate compiler flag).
Sent with GitHawk

Thanks for your response. I have already installed scs (pip install scs) if that's what you mean. I have also tried running the following (according to one of the users):
python3 setup.py install --scs --gpu --int
but it does not recognize  --scs option. I don't know how to compile SCS from the source. Any hints?

Back when I used SCS, “pip install scs” did not include GPU support. I had to download SCS source code (from its GitHub repository) and follow GPU-specific setup instructions.
@bodono is seems that this is really an SCS question, rather than a cvxpy question. Do you agree? If so, can you take over this discussion, possibly on the SCS repo?
Sent with GitHawk

Thanks for your response. I have already installed scs (pip install scs) if that's what you mean. I have also tried running the following (according to one of the users):
python3 setup.py install --scs --gpu --int
but it does not recognize --scs option. I don't know how to compile SCS from the source. Any hints?

I just tested that and it works for me. First of all, uninstall scs (pip uninstall scs, you might have to run it a couple of times) and delete any artifacts in the scs directory (rm -rf build scs.egg-info dist). Then two things:

When you run that command, right at the top you should see something like:

=> python3 setup.py install --scs --gpu --int
Namespace(blas64=False, extraverbose=False, float32=False, gpu=True, int32=True, scs=True)

note the gpu=True flag, do you see that?

When you open a python instance try:

import _scs_gpu

what happens?

Hi,
I worked myself through this conversation because I had the same problem. The installation finally worked with cloning the git repo and installing it this way afterwards:

=> python3 setup.py install --scs --gpu --int

Now I want to use it also with cvxpy but a ModuleNotFoundError is raised with python not finding the module '_scs_gpu'.
That part also throws a ModuleNotFoundError:

When you open a python instance try:

import _scs_gpu

what happens?

Do you have another advice how to process this problem?
Thanks

Can you clean out the repo then paste in here what you see when you try to install?

Namespace(blas64=False, extraverbose=False, float32=False, gpu=True, int32=False, scs=True)
running install
running bdist_egg
running egg_info
writing scs.egg-info/PKG-INFO
writing dependency_links to scs.egg-info/dependency_links.txt
writing requirements to scs.egg-info/requires.txt
writing top-level names to scs.egg-info/top_level.txt
blas_mkl_info:
NOT AVAILABLE
blis_info:
NOT AVAILABLE
openblas_info:
libraries = ['openblas', 'openblas']
library_dirs = ['/usr/local/lib']
language = c
define_macros = [('HAVE_CBLAS', None)]
blas_opt_info:
libraries = ['openblas', 'openblas']
library_dirs = ['/usr/local/lib']
language = c
define_macros = [('HAVE_CBLAS', None)]
lapack_mkl_info:
NOT AVAILABLE
openblas_lapack_info:
libraries = ['openblas', 'openblas']
library_dirs = ['/usr/local/lib']
language = c
define_macros = [('HAVE_CBLAS', None)]
lapack_opt_info:
libraries = ['openblas', 'openblas']
library_dirs = ['/usr/local/lib']
language = c
define_macros = [('HAVE_CBLAS', None)]
{'libraries': ['mkl_rt', 'pthread'], 'library_dirs': ['/usr/local/lib'], 'define_macros': [('SCIPY_MKL_H', None), ('HAVE_CBLAS', None)], 'include_dirs': ['/usr/local/include', '/usr/include']}
{'libraries': ['mkl_rt', 'pthread'], 'library_dirs': ['/usr/local/lib'], 'define_macros': [('SCIPY_MKL_H', None), ('HAVE_CBLAS', None)], 'include_dirs': ['/usr/local/include', '/usr/include']}
scs 2.1.2 is already the active version in easy-install.pth
Installed /usr/local/lib/python3.6/dist-packages/scs-2.1.2-py3.6-linux-x86_64.egg
Processing dependencies for scs==2.1.2
Searching for scipy==1.3.3
Best match: scipy 1.3.3
Adding scipy 1.3.3 to easy-install.pth file
Using /usr/local/lib/python3.6/dist-packages
Searching for numpy==1.17.4
Best match: numpy 1.17.4
Adding numpy 1.17.4 to easy-install.pth file
Installing f2py script to /usr/local/bin
Installing f2py3 script to /usr/local/bin
Installing f2py3.6 script to /usr/local/bin
Using /usr/local/lib/python3.6/dist-packages
Finished processing dependencies for scs==2.1.2

This line:
scs 2.1.2 is already the active version in easy-install.pth
indicates to me that you already have SCS installed. Did you uninstall it first? When I run it on a fresh instance I see
Adding scs 2.1.2 to easy-install.pth file

Yes I uninstalled it before, but only once. Additionally I removed the folder manually and now I get the following:

Namespace(blas64=False, extraverbose=False, float32=False, gpu=True, int32=False, scs=True)
running install
running bdist_egg
running egg_info
creating scs.egg-info
writing scs.egg-info/PKG-INFO
writing dependency_links to scs.egg-info/dependency_links.txt
writing requirements to scs.egg-info/requires.txt
writing top-level names to scs.egg-info/top_level.txt
writing manifest file 'scs.egg-info/SOURCES.txt'
blas_mkl_info:
NOT AVAILABLE
blis_info:
NOT AVAILABLE
openblas_info:
libraries = ['openblas', 'openblas']
library_dirs = ['/usr/local/lib']
language = c
define_macros = [('HAVE_CBLAS', None)]
blas_opt_info:
libraries = ['openblas', 'openblas']
library_dirs = ['/usr/local/lib']
language = c
define_macros = [('HAVE_CBLAS', None)]
lapack_mkl_info:
NOT AVAILABLE
openblas_lapack_info:
libraries = ['openblas', 'openblas']
library_dirs = ['/usr/local/lib']
language = c
define_macros = [('HAVE_CBLAS', None)]
lapack_opt_info:
libraries = ['openblas', 'openblas']
library_dirs = ['/usr/local/lib']
language = c
define_macros = [('HAVE_CBLAS', None)]
{'libraries': ['mkl_rt', 'pthread'], 'library_dirs': ['/usr/local/lib'], 'define_macros': [('SCIPY_MKL_H', None), ('HAVE_CBLAS', None)], 'include_dirs': ['/usr/local/include', '/usr/include']}
{'libraries': ['mkl_rt', 'pthread'], 'library_dirs': ['/usr/local/lib'], 'define_macros': [('SCIPY_MKL_H', None), ('HAVE_CBLAS', None)], 'include_dirs': ['/usr/local/include', '/usr/include']}
In file included from /usr/local/lib/python3.6/dist-packages/numpy/core/include/numpy/ndarraytypes.h:1830:0,
from /usr/local/lib/python3.6/dist-packages/numpy/core/include/numpy/ndarrayobject.h:12,
from /usr/local/lib/python3.6/dist-packages/numpy/core/include/numpy/arrayobject.h:4,
from src/scsmodule.c:5:
/usr/local/lib/python3.6/dist-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:17:2: warning: #warning "Using deprecated NumPy API, disable it with " "#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]
#warning "Using deprecated NumPy API, disable it with "
^~~~~~~
scs/src/rw.c: In function ‘scs_read_data’:
scs/src/rw.c:143:3: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result]
fread(&(file_int_sz), sizeof(uint32_t), 1, fin);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
...
MANY TIMES
...
scs/src/rw.c:96:3: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result]
fread(A->i, sizeof(scs_int), Anz, fin);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/local/lib/python3.6/dist-packages/numpy/core/include/numpy/ndarraytypes.h:1830:0,
from /usr/local/lib/python3.6/dist-packages/numpy/core/include/numpy/ndarrayobject.h:12,
from /usr/local/lib/python3.6/dist-packages/numpy/core/include/numpy/arrayobject.h:4,
from src/scsmodule.c:5:
/usr/local/lib/python3.6/dist-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:17:2: warning: #warning "Using deprecated NumPy API, disable it with " "#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]
#warning "Using deprecated NumPy API, disable it with "
^~~~~~~
scs/src/rw.c: In function ‘scs_read_data’:
scs/src/rw.c:143:3: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result]
fread(&(file_int_sz), sizeof(uint32_t), 1, fin);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
...
MANY TIMES
...
scs/src/rw.c:96:3: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result]
fread(A->i, sizeof(scs_int), Anz, fin);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/local/lib/python3.6/dist-packages/numpy/core/include/numpy/ndarraytypes.h:1830:0,
from /usr/local/lib/python3.6/dist-packages/numpy/core/include/numpy/ndarrayobject.h:12,
from /usr/local/lib/python3.6/dist-packages/numpy/core/include/numpy/arrayobject.h:4,
from src/scsmodule.c:5:
/usr/local/lib/python3.6/dist-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:17:2: warning: #warning "Using deprecated NumPy API, disable it with " "#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]
#warning "Using deprecated NumPy API, disable it with "
^~~~~~~
scs/src/rw.c: In function ‘scs_read_data’:
scs/src/rw.c:143:3: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result]
fread(&(file_int_sz), sizeof(uint32_t), 1, fin);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
...
MANY TIMES
...
scs/src/rw.c:96:3: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result]
fread(A->i, sizeof(scs_int), Anz, fin);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/local/lib/python3.6/dist-packages/numpy/core/include/numpy/ndarraytypes.h:1830:0,
from /usr/local/lib/python3.6/dist-packages/numpy/core/include/numpy/ndarrayobject.h:12,
from /usr/local/lib/python3.6/dist-packages/numpy/core/include/numpy/arrayobject.h:4,
from python_linsys/private.c:2:
/usr/local/lib/python3.6/dist-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:17:2: warning: #warning "Using deprecated NumPy API, disable it with " "#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]
#warning "Using deprecated NumPy API, disable it with "
^~~~~~~
In file included from /usr/local/lib/python3.6/dist-packages/numpy/core/include/numpy/ndarraytypes.h:1830:0,
from /usr/local/lib/python3.6/dist-packages/numpy/core/include/numpy/ndarrayobject.h:12,
from /usr/local/lib/python3.6/dist-packages/numpy/core/include/numpy/arrayobject.h:4,
from src/scsmodule.c:5:
/usr/local/lib/python3.6/dist-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:17:2: warning: #warning "Using deprecated NumPy API, disable it with " "#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]
#warning "Using deprecated NumPy API, disable it with "
^~~~~~~
scs/src/rw.c: In function ‘scs_read_data’:
scs/src/rw.c:143:3: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result]
fread(&(file_int_sz), sizeof(uint32_t), 1, fin);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
...
MANY TIMES
...
scs/src/rw.c:96:3: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result]
fread(A->i, sizeof(scs_int), Anz, fin);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Adding scs 2.1.2 to easy-install.pth file

Installed /usr/local/lib/python3.6/dist-packages/scs-2.1.2-py3.6-linux-x86_64.egg
Processing dependencies for scs==2.1.2
Searching for scipy==1.3.3
Best match: scipy 1.3.3
Adding scipy 1.3.3 to easy-install.pth file

Using /usr/local/lib/python3.6/dist-packages
Searching for numpy==1.17.4
Best match: numpy 1.17.4
Adding numpy 1.17.4 to easy-install.pth file
Installing f2py script to /usr/local/bin
Installing f2py3 script to /usr/local/bin
Installing f2py3.6 script to /usr/local/bin

Using /usr/local/lib/python3.6/dist-packages
Finished processing dependencies for scs==2.1.2

But I still get the ModuleNotFoundError when importing _scs_gpu

Ok now what do you get when you ls /usr/local/lib/python3.6/dist-packages/scs-2.1.2-py3.6-linux-x86_64.egg

EGG-INFO
pycache
scs
_scs_direct.cpython-36m-x86_64-linux-gnu.so
_scs_direct.py
_scs_gpu.cpython-36m-x86_64-linux-gnu.so
_scs_gpu.py
_scs_indirect.cpython-36m-x86_64-linux-gnu.so
_scs_indirect.py
_scs_python.cpython-36m-x86_64-linux-gnu.so
_scs_python.py

So it's installed, probably something is wrong with the way your python install is using the paths. You could try adding that directory to the PYTHONPATH.

Okay, after a short search on google I did it that way:
import sys
sys.path.append('/usr/local/lib/python3.6/dist-packages/')
That doesn't change anything. I have to admit that I'm not a pro programmer yet. :'D
Also I'm working on Google Colab, which is a little frustrating.

You guys can keep talking, but this is not a cvxpy issue.

This is still not a cvxpy issue but as I failed to find conversation/solutions elsewhere in the web despite this being a bit old question, here is my solution to it. Worked in Google Colab and might work in other venvs too with adjustments.
In Colab
!pip install cvxpy
!pip uninstall scs -y
!git clone --recursive https://github.com/bodono/scs-python.git
!cd /content/scs-python && python -m pip install . --install-option="--scs --gpu --int"
Second row uninstalls scs that comes with cvxpy. Third row clones the scs-python to your Colab env and fourth row cds to the cloned directory and runs install. This approach sets PYTHONPATH correctly withing venv thus avoiding the problem in path that comes with using python3 setup.py install --scs --gpu --int.
After that import _scs_gpu worked for me in Colab.

python3 setup.py install --scs --gpu --int
Hi, I am trying to work on Colab with GPU accelaration for cvxpy. Your reply excites me, but I tried, but not succeed. Do i need anything besides the four lines of commands? After running that I would have "Successfully installed scs-3.0.0", but when I run "import _scs_gpu", it still "ModuleNotFoundError: No module named '_scs_gpu'". Thank you so much!

This is still not a cvxpy issue but as I failed to find conversation/solutions elsewhere in the web despite this being a bit old question, here is my solution to it. Worked in Google Colab and might work in other venvs too with adjustments.
In Colab !pip install cvxpy !pip uninstall scs -y !git clone --recursive https://github.com/bodono/scs-python.git !cd /content/scs-python && python -m pip install . --install-option="--scs --gpu --int"
Second row uninstalls scs that comes with cvxpy. Third row clones the scs-python to your Colab env and fourth row cds to the cloned directory and runs install. This approach sets PYTHONPATH correctly withing venv thus avoiding the problem in path that comes with using python3 setup.py install --scs --gpu --int.
After that import _scs_gpu worked for me in Colab.

Hi, I am trying to work on Colab with GPU accelaration for cvxpy. Your reply excites me, but I tried, but not succeed. Do i need anything besides the four lines of commands? After running that I would have "Successfully installed scs-3.0.0", but when I run "import _scs_gpu", it still "ModuleNotFoundError: No module named '_scs_gpu'". Thank you so much!

I tried this：
pip uninstall scs -y
pip install scs
which solved my problem

i have anonther problem. i have the same content with above repo but come up with "undefined symbol: cusparseDcsrmv"
the problem comes with the following
python3 setup.py install --scs --gpu --int
Namespace(blas64=False, extraverbose=False, float32=False, gpu=True, gpu_atrans=True, int32=True, scs=True)
running install
running bdist_egg
running egg_info
writing scs.egg-info/PKG-INFO
writing dependency_links to scs.egg-info/dependency_links.txt
writing requirements to scs.egg-info/requires.txt
writing top-level names to scs.egg-info/top_level.txt
blas_mkl_info:
NOT AVAILABLE
blis_info:
NOT AVAILABLE
openblas_info:
libraries = ['openblas', 'openblas']
library_dirs = ['/usr/local/lib']
language = c
define_macros = [('HAVE_CBLAS', None)]
blas_opt_info:
libraries = ['openblas', 'openblas']
library_dirs = ['/usr/local/lib']
language = c
define_macros = [('HAVE_CBLAS', None)]
lapack_mkl_info:
NOT AVAILABLE
openblas_lapack_info:
libraries = ['openblas', 'openblas']
library_dirs = ['/usr/local/lib']
language = c
define_macros = [('HAVE_CBLAS', None)]
lapack_opt_info:
libraries = ['openblas', 'openblas']
library_dirs = ['/usr/local/lib']
language = c
define_macros = [('HAVE_CBLAS', None)]
{'libraries': ['mkl_rt', 'pthread'], 'library_dirs': ['/home/gyw/anaconda3/envs/GM/lib'], 'define_macros': [('SCIPY_MKL_H', None), ('HAVE_CBLAS', None)], 'include_dirs': ['/usr/local/include', '/usr/include', '/home/gyw/anaconda3/envs/GM/include']}
{'libraries': ['mkl_rt', 'pthread'], 'library_dirs': ['/home/gyw/anaconda3/envs/GM/lib'], 'define_macros': [('SCIPY_MKL_H', None), ('HAVE_CBLAS', None)], 'include_dirs': ['/usr/local/include', '/usr/include', '/home/gyw/anaconda3/envs/GM/include']}
Adding scs 2.1.2 to easy-install.pth file
Installed /home/gyw/anaconda3/envs/GM/lib/python3.6/site-packages/scs-2.1.2-py3.6-linux-x86_64.egg
Processing dependencies for scs==2.1.2
Searching for scipy==1.4.1
Best match: scipy 1.4.1
Adding scipy 1.4.1 to easy-install.pth file
Using /home/gyw/anaconda3/envs/GM/lib/python3.6/site-packages
Searching for numpy==1.19.5
Best match: numpy 1.19.5
Adding numpy 1.19.5 to easy-install.pth file
Installing f2py script to /home/gyw/anaconda3/envs/GM/bin
Installing f2py3 script to /home/gyw/anaconda3/envs/GM/bin
Installing f2py3.6 script to /home/gyw/anaconda3/envs/GM/bin
Using /home/gyw/anaconda3/envs/GM/lib/python3.6/site-packages
Finished processing dependencies for scs==2.1.2
(GM) gyw@user-Super-Server:~/code/GMTracker-main/scs-python$ python
Python 3.6.13 |Anaconda, Inc.| (default, Jun  4 2021, 14:25:59)
[GCC 7.5.0] on linux
Type "help", "copyright", "credits" or "license" for more information.

import _scs_gpu
Traceback (most recent call last):
File "", line 1, in
ImportError: /home/gyw/anaconda3/envs/GM/lib/python3.6/site-packages/scs-2.1.2-py3.6-linux-x86_64.egg/_scs_gpu.cpython-36m-x86_64-linux-gnu.so: undefined symbol: cusparseDcsrmv
exit()
someone pls help me :(

What version of SCS are you using? cusparseDcsrmv is no longer in CuSparse and SCS moved over to the new API a while ago. I would suggest updating SCS first to see if that fixes it.

Oh I see you're using SCS 2.1.2, I would strongly recommend updating to SCS 3+, it's overall faster and more robust, plus fixes things like this.

yes, upgrading can fix the cusparse problem. but it also brings error as follows:
Traceback (most recent call last):
File "gmtracker_app.py", line 285, in
args.max_age, args.n_init, args.reid_thr, args.checkpoint_dir)
File "gmtracker_app.py", line 239, in run
frame_callback(frame_idx)
File "gmtracker_app.py", line 226, in frame_callback
tracker.update(detections, seq_info["sequence_name"], frame_idx, checkpoint_dir)
File "/home/gyw/code/GMTracker/utils/tracker.py", line 119, in update
self._match(detections,video,frame,checkpoint_dir)
File "/home/gyw/code/GMTracker/utils/tracker.py", line 149, in _match
self.max_age, self.tracks, detections, confirmed_tracks,reid_thr=self.reid_thr,seq_name=video,ckp_dir=checkpoint_dir)
File "/home/gyw/code/GMTracker/GMMOT/assignment.py", line 143, in graph_matching
track_indices_l, unmatched_detections,reid_thr,seq_name,ckp_dir)
File "/home/gyw/code/GMTracker/GMMOT/assignment.py", line 95, in quadratic_matching
indices, thr_flag = graphnet.forward(data1, data2, kf_gate, reid_thr, iou, start_src, end_src, start_tgt, end_tgt, seq_name, inverse_flag=False)
File "/home/gyw/code/GMTracker/GMMOT/gmatching.py", line 107, in forward
prob.solve(solver=cp.SCS, gpu=True, use_indirect=True)
File "/home/gyw/anaconda3/envs/GM/lib/python3.6/site-packages/cvxpy/problems/problem.py", line 436, in solve
return solve_func(self, *args, **kwargs)
File "/home/gyw/anaconda3/envs/GM/lib/python3.6/site-packages/cvxpy/problems/problem.py", line 928, in _solve
self, data, warm_start, verbose, kwargs)
File "/home/gyw/anaconda3/envs/GM/lib/python3.6/site-packages/cvxpy/reductions/solvers/solving_chain.py", line 341, in solve_via_data
solver_opts, problem._solver_cache)
File "/home/gyw/anaconda3/envs/GM/lib/python3.6/site-packages/cvxpy/reductions/solvers/conic_solvers/scs_conif.py", line 308, in solve_via_data
results = scs.solve(args, cones, verbose=verbose, **solver_opts)
File "/home/gyw/anaconda3/envs/GM/lib/python3.6/site-packages/scs-3.2.7-py3.6-linux-x86_64.egg/scs/init.py", line 177, in solve
solver = SCS(data, cone, **settings)
File "/home/gyw/anaconda3/envs/GM/lib/python3.6/site-packages/scs-3.2.7-py3.6-linux-x86_64.egg/scs/init.py", line 140, in init
**self._settings
ValueError: Error parsing inputs
i've been working with it for days, is it because the code is incompatible with the upgraded version or its just because the code? thank you so much for your help!

Something strange is going on with the data getting passed to SCS, unfortunately the errors are not descriptive (from the python side). Does you code work with the non-gpu SCS direct version (ie, the default)? If it does then it's likely an issue with the width of the integer type, otherwise something else is wrong with how the data is getting passed.


Clean-up and update Confidential Ledger tests for proxy migration

Description
Updates confidential ledger tests so that:

Testing environment can be created using New-TestResources.ps1 works. (Matches the .NET one.)
Adds test exports so testing works in IntelliJ.
Shared environment variable names so tests can be updated easily when moving to proxy recording.
Updating tests and adding additional tests found in:  https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/confidentialledger/Azure.Security.ConfidentialLedger/tests/ConfidentialLedgerClientLiveTests.cs

All SDK Contribution checklist:

[x] The pull request does not introduce [breaking changes]
[x] CHANGELOG is updated for new features, bug fixes or other significant changes.
[x] I have read the contribution guidelines.

General Guidelines and Best Practices

[x] Title of the pull request is clear and informative.
[x] There are a small number of commits, each of which have an informative message. This means that previously merged commits do not appear in the history of the PR. For more information on cleaning up the commits in your PR, see this page.

Testing Guidelines

[x] Pull request includes test coverage for the included changes.

/azp run java - confidentialledger - tests

API change check
API changes are not detected in this pull request.


FunctionalHandler API Design

A place to discuss FunctionalHandler API

For now, the main way to use FunctionalHanlder is this:
// Internal site

public class TapGestureRecognizer: UITapGestureRecognizer {
    @FunctionalHandler<TapGestureRecognizer, Void>
    var onTapGesture

    init() {
        super.init(target: nil, action: nil)
        commonInit()
    }

    override public init(target: Any?, action: Selector?) {
        super.init(target: target, action: action)
        commonInit()
    }

    private func commonInit() {
        self.addTarget(self, action: #selector(handleTap))
    }

    @objc private func handleTap(_ recognizer: TapGestureRecognizer) {
        $onTapGesture?(recognizer)
    }
}

// Public site

func example() {
    let tapRecognizer = TapGestureRecognizer()
    tapRecognizer.onTapGesture { recognizer in
        guard recognizer.state == .ended else { return }
        print("tapped")
    }
}

But also I'd like to add scope method to the public site
// Public site

func example() {
    let tapRecognizer = TapGestureRecognizer()
    tapRecognizer.onTapGesture.scope(\.state) { state in
        guard state == .ended else { return }
        print("tapped")
    }
}

FunctionalHandler probably should be renamed to FunctionalDataSource, and FunctionalHandler will be a new type with (Input) -> Void action. Handlers should not have outputs, now it is a generic pattern, but handlers are specific, that is why it should be reimplemented. Generic equivalent's name is still a thing to discuss.

Also scope here has map semantics, so the map is definitely a thing to remove, it even doesn't seem to be needed...

Functional prefix will be removed for Handler & DataSource types

Functional prefix will be removed for Handler & DataSource types

Swift 5.9 introduced variadic generics, but currently it's only supported on iOS17+ for types, maybe we may consider using macros to support it across all oss 🤔


Unable to set the application name to Chinese

Description
当我修改app_name为中文的时候，应用程序会闪退
<resources>
    <string name="app_name">aaaa</string>
</resources>

[after modification](javascript:;)
<resources>
    <string name="app_name">测试</string>
</resources>

Version
0.69.4
Output of npx react-native info
Done in 8.39s.
Java: 11.0.12
npmPackages:
@react-native-community/cli: Not Found
react: 18.0.0 => 18.0.0
react-native: 0.69.4 => 0.69.4
react-native-windows: Not Found
npmGlobalPackages:
react-native: Not Found
Steps to reproduce
Change the name of the application to “你好”，
npm run android
When the app is opened, it will flash back
Snack, code example, screenshot, or link to a repository

It will be like this in the emulator, I tried to package the release version to view on the phone, there is no flashback.
You can get a multi-language configuration, copy the values folder under android/app/src/main/res and rename it to values-zh, change the name to Chinese in values-zh/string.xml, and keep the English name in values/string.xml.
There may be a better solution, but this is all I can think of at the moment.

I also encountered this problem. According to @lionet1224 practice, it didn't work. Should I test it in a Chinese environment, but the simulator can't seem to be set to Chinese

I also encountered this problem. According to @lionet1224 practice, it didn't work. Should I test it in a Chinese environment, but the simulator can't seem to be set to Chinese

You can modify it in the settings


fixes #42 - Add a startsWith check to publish-new-release workflow

fixes #42 - Add a startsWith check that verifies the PR being merged in is from a release/<version> branch, skipping the workflow if it is not. This saves us from showing failed workflows for non-release PR merges.
Example of this logic skipping non-release PR merges: https://github.com/jsoberg/Loot-Hoard-DnD-Discord-Bot/actions/runs/2988351427
Example of this logic triggering on release PR merges: https://github.com/jsoberg/Loot-Hoard-DnD-Discord-Bot/actions/runs/2988387989

Cool, thank you for the contribution!

Actually, would you mind sending a follow-up PR that adds an entry to the changelog?

Oh yeah, no worries!

Would drafting a 2.1.0 release be appropriate here, updating the changelog in that PR?

Would drafting a 2.1.0 release be appropriate here, updating the changelog in that PR?

We can draft a new release yes! I typically always fixed up the changelog before but the release PR is a good place too!

We are still depending on a quite old version of the create-pull-request action here so the workflow is broken :(
Need to update that and probably enable dependabot in this repo.
https://github.com/thomaseizinger/github-action-gitflow-release-workflow/actions/runs/3065049502/jobs/4948757562#step:9:17


DLQ support in subscriber client

@jskeet PTAL, the integration test is now done; and it passes for me locally.

Just a ping to remind you that I've approved this, as I think I did so after you'd finished work on Friday. (If there's some other reason for not merging, that's fine of course.)


Add new Inertia::location($url) method

Closes #57.
This PR adds a new Inertia::location($url) method, which returns a "409 Conflict" response with the X-Inertia-Location header set. This will cause a full page visit (location.href = url) to happen client-side by Inertia. This works since this behaviour is already in place for automatic asset refreshing.
return Inertia::location('https://www.google.com');

I really struggled with naming this method, but in the end decided that location() made the most sense, because:

There is no confusion here with this being a redirect. I was worried that adding a method with the word "redirect" it in might cause developers to use this method instead of just regular redirects (even when a regular redirect is totally the right approach).
It doesn’t feel like you’re doing something wrong. We considered hardVisit($url) and abortTo($url), but that almost implied that you were doing something incorrect.
It’s short.
It aligns really well with what's actually happening (a window.location = url) visit.
It even matches the header we are already using for this (X-Inertia-Location).

Credit to @adamwathan for coming up with this method name. 🥰

Pinging @bknoles, @ledermann, @BrandonShar. Gents, think we could get the same method added to the Rails adapter? 🙏

Cool stuff! I'll need to think a bit about the right syntax, but I think I can get this in today.

@BrandonShar Awesome! Someone already suggested the implementation here. Just need to update to a better name than "redirect_without_inertia". It would be great to use "location" just like in the Laravel adapter. Something like inertia.location('http://google.ca/'). (Fair warning, I don't know Ruby at all lol.)

Yeah, that solution looks pretty solid. I was wondering if this should be a part of the renderer, but I don't think so. Just making sure it has the right "rails-y" feel since we don't use the Inertia object directly like the laravel version does.
Does inertia_location('http://google.ca/') seem right to you? That would line up with our existing inertia_share helper.

(and rail's existing redirect_to('http://google.ca') pattern)

Yes, perfect, I was wondering if you would suggest inertia_location(). 👍


Make Timber_Theme use the native WP_Theme class

Ticket: #1280 1280
Reviewer: @
Issue
Timber\Theme was (incorrectly) reimplenting some logic already existing in WP_Theme
Solution

Make Timber\Theme a thin wrapper on top of WP_Theme
Use WP Theme test setup

Impact
Small
Usage
Transparent for all users
Testing
All existing tests are passing.

@xavivars looking good! Travis caught a few failing tests though...

TestTimberSite::testChildParentThemeLocation
TestTimberTwig::testTranslate
TestTimberTwig::testTranslateAndFormat

... any ideas on those guys?

The problem with the TestTimberTwig tests was that the tests were not really "unit": they were depending on other setup tasks. When executed in isolation, they were working, but they were failing when executing all the suite.
I changed the mkdir to be recursive, and I've also fixed the teardown I added to the TestTimberTheme and they're passing now.
I'll try to dig into the TestTimberSite one, but I could not reproduce the issue locally.

Coverage decreased (-0.4%) to 96.233% when pulling 900e0f75c66d684d152b71820627e5b5a421927e on xavivars:feature/refactor-timber-theme into 8ea56d74bc989ccb7c1d0b366c1a2813b258c134 on timber:master.

@jarednova I still can't reproduce TestTimberSite's issue locally. It'd be great if you could take a look at it, as I don't know what else to try...

@xavivars sure thing! thanks for getting 2/3rds of 'em taken care of

@jarednova I think there are still tests that do not do proper tearDown: when I deleted all tmp wordpress files, I managed to reproduce.
That said, I think I finally solved it :)

Coverage increased (+0.03%) to 96.731% when pulling 425a6bd91ade4827a18873457783a0f1fc845e7e on xavivars:feature/refactor-timber-theme into 6c3ee3369c361bc14785f251e190a91f2a2bed0c on timber:master.

Current coverage is 96.95% (diff: 100%)

Merging #1281 into master will increase coverage by 0.02%

@@             master      #1281   diff @@
==========================================
  Files            45         45
  Lines          3258       3253     -5
  Methods         441        441
  Messages          0          0
  Branches          0          0
==========================================
- Hits           3158       3154     -4
+ Misses          100         99     -1
  Partials          0          0

Powered by Codecov. Last update 6c3ee33...425a6bd

Awesome, thanks for closing that out @xavivars. Merging!


⚠ Bofrost.at has degraded performance

In 5fe7d0d, Bofrost.at (https://www.bofrost.at) experienced degraded performance:

HTTP code: 200
Response time: 2305 ms

Resolved: Bofrost.at performance has improved in f930ae1 after 26 minutes.


Cannot install Loaf

I followed the instructions and added Load to my Podfile:
pod 'Loaf'
then ran pod install, which resulted in the following error:
[!] CocoaPods could not find compatible versions for pod "Loaf":
  In Podfile:
    Loaf

Specs satisfying the `Loaf` dependency were found, but they required a higher minimum deployment target.

Cocoapods version 1.9.1
Project target is set to 10.3

I have the same problem

+1. exactly the same problem.
Minimum deployment target is set to 10.0. Docs says Loaf require iOS 9.3+

I have the same problem
platform:ios,'10.0'

Hello
Same problem here :/

The problem is that in pod spec iOS version is specified as 9.0 but swift version is set to 5.2 which is available since iOS 11.
@schmidyy could you please specify min swift version as 4.2 then everything works normally. I just tested by downloading code modifying pod spec and installing pod as local developer pod.


include python example

Your project was just the "getting started" I needed. Thanks.
I'm no good with php, so I made a python example instead. Feel free to include it.

I'm glad this repo was helpful to you.
Thanks for your contribution.


Extension does not remove Reddit's onclick URL tracking.

New Issue Checklist (tick off like this: [x])

[x ] I checked existing issues (open and closed) for possible duplicates
[x ] I can reproduce the problem on the latest stable version (not nightly!)
[x ] If you have a problem a specific website: adding the domain to your blacklist does not solve the problem
[x ] The issue is not about adding entries to the default blacklist

What is your browser?

[x ] Firefox
[ ] Chrome

What is your operating system?

[x ] Linux
[ ] Mac
[x ] Windows

Description (please include examples/screenshots where applicable)
Reddit uses code to rewrite the destination URL when it is clicked to include various tracking parameters.  The link looks fine when moused over, but upon clicking and releasing the mouse button, extra data is inserted into the URL.
For example if I click a link in a subreddits sidebar to (say), https://old.reddit.com/r/cats/  the code adds several parameters to the link usually starting with utm_souce,  after Reddit processes the link it re-adjusts the URL back to the original clicked link.
Obviously for this is not desired activity from a privacy PoV.

This extension is not meant to remove URL parameters, but to skip redirection.
Skip redirection means to remove visiting tracking domain.
Lets say you click on a link that leads you to URL like https://trackingdomain.com/?redirectto=https://interestingdomain.com, then this extension will remove the tracking domain and lead you directly to domain/URL of your interest avoiding the tracking domain.
In the example case the destination domain URL will be rewritten to https://interestingdomain.com
If you wish to remove some (tracking) URL parameters you need to install another extension for that purpose. There are two good one:

Neat URL
ClearURLs

The first one gives you option for fine tuning, and the second one is fully automatic.
I am using both of those and the Skip Redirect too.
Cheers

@crssi but that's exactly what reddit does:
https://out.reddit.com/t3_e3usyk?url=https%3A%2F%2Fnow.tufts.edu%2Farticles%2Fbacteria-help-make-low-calorie-sugar&token=AQAAHtPiXUptvPtZuaqZXqhbQDNdwSRo_hbkTWwWguYmSMuR9gCt&app_name=reddit.com

@ilikenwf
Where does this come from?
Is this sample from location and time when this issue was opened?

The out.reddit.com link came from a reddit news article today.
If one is logged in they can disable these links, however people who
don't login to reddit still get funneled through the tracking area...
So while this ticket is old, I'd argue it is still valid...
On 11/30/19 3:08 PM, crssi wrote:

@ilikenwf https://github.com/ilikenwf
Where does this come from?
Is this sample from location and time when this issue was opened?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/sblask/webextension-skip-redirect/issues/111?email_source=notifications&email_token=AADFIOQINU7T62PWAIKEDLDQWLI47A5CNFSM4HEJZFP2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEFQT7HY#issuecomment-560021407,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AADFIOQRP2456ULLXKZQYC3QWLI47ANCNFSM4HEJZFPQ.

I don't see where you see a problem?
What result do you expect when you click on a link you have provided?
Important note: I am not an developer of this extension, so I can speak only for my self and I am just trying to help 😉 .

@ilikenwf I just tried your link, I go to https://now.tufts.edu/articles/bacteria-help-make-low-calorie-sugar directly without passing through out.reddit. So this is where this extensions works as intended. The original problem described in the issue was URL parameters being added by reddit which were expected to be removed by this extension, but it's out of scope. If you've got another problem, please open a new issue.


many time on zoom image.. blank space show and image hide

Can you please create add your ionic info and your code. It is very hard to track issues without any additional information.

Closed due to no user interaction. Please reopen if you still facing this issue.


Futures

Hello, thanks for the great project.
We are using it in a demo for a new rust based run-time for our product and needed to be able to do asynchronous host functions.
Use case being running multiple wasm modules on the same thread, when some/all have asynchronous io so we dont want to prevent other work from occurring.
I first tried to make it work with the unstable async/await rust api and wasn't happy with all the added workarounds that were required (mostly closures/traits) and we are currently using tokio 1.2 for our demo...so i just reworked some of the functions to return futures.
Currently missing good docs, tests, and a lot of finesse, to be clear I'm new to rust as a language so if this is just plain bad code i apologize ahead of time (but comments gladly accepted)
Some of the work in the interpreter loop seems like it could be done better and I would like a few things to be more compatible with the current api

RuntimeArgs are passed as vecs instead of slices so they can be owned
Rc around externals doesn't work with imports builder

Only other thought would be the use of the term x_async in the methods, with the upcoming 'async/await' these methods might be better called x_future so they dont get confused with the new rust async api.
Not sure if this would be of any use to the project, but would appreciate comments either way!

Hello,
Your use case does make sense! However, isn't invoke_resumable is what you want here? It is a low-level API, however, I believe that async/futures implementation could be implemented on top of it.

@pepyakin ! yes I tried that originally and for some reason (escapes me at the moment) I couldn't make it work, or it was messy in my scenario. Since i've had more experience with wasmi at this point I'll try it again and make sure I can make a case for the addition of this api. Thanks for your help.

Oh, and sorry my build failed from formatting errors...rookie mistake (:

Closed for lack of activity.


[BUG]: Screen gets distorted after clicking on resizable buttons on Visualization page.

What is the bug?

Legends are getting distorted after dragging resizable button.
Data Config panel combo box icons are getting distorted after dragging resizable button.

How can one reproduce the bug?
Steps to reproduce the behavior:

Go to Observability/Event Analytics/Explorer page
Select any chart from the chart selector
Drag the resizable buttons that are on both the sides of the chart and observe the issue.

What is the expected behavior?
The legends and combo box icons should be properly aligned even after dragging the resizable buttons.
Do you have any screenshots?

Hi @anirudha , @mengweieric , @btzeng
We have fixed an legends overlapping issue on resize button action, now if we resize panel, then legends will adjust accordingly. Please see the attached video.
https://user-images.githubusercontent.com/102342039/181683723-7ac660cc-215b-47bd-a9c4-22dad93b611f.mp4
Please confirm is this looks good ?
Thanks
Deepak
@abasatwar @spattnaik

The bug is on hold will be discussed in Bug bash.


Native Encoding/Decoding

Add a flag useNativeDecoding for the consumer side.
Do not apply the content type interceptors if native encoding/decoding is being used.

If we are using native encoding/decoding, we should not attempt to convert it on the inbound side. The outbound already supports it as an overridable flag.


scope: allow same-name options from different scopes

depends https://github.com/NuschtOS/ixx/pull/32

@SuperSandro2000 ixx PR now merged and release created.

the nix hash needs an update

Also should we add an easy to spot indicator from which scope the options are? From the description you would need to guess which options is from which scope.

Aready done - have a look on the preview deployment.

Should clicking the scope change the search scope on the left?


Feature that lets you play a mp3 at the same time as your song to help copy notes

idk about the name, feel free to make any suggestions

idk but have you ever tried doing that when making songs? I think doing that might get you confused about whether the sound is in the song or is a note block and the sound of one might cover the other one. It might be helpful if you're checking if everything in the song matches the original, but that can easily be done by playing them side by side using a music player or just convert the original song into .ogg and make it an instrument.
also why is the indent 8 characters long

which indent
it might not help that much for more complex songs, but it makes things a lot easier for me
also i tried doing the playing the original thing but i was pretty bad at it
didnt really consider the making the original song into a instrument to play thing, that prob removes the need for this thingy

the code indent
why is your tab 8 spaces instead of 4, looks weird surrounded by 4 space indent codes

it looks fine in the editor for some reason

maybe it's just github displays tabs 8 characters wide for some reason

ive tried the custom instrument trick, and it really doesnt work well for longer songs, and it seems to have slowed down my music file slightly? could be because of the tempo or smth
im unable to stop the entire song from playing out when it gets triggered, even when i stop the song, and clicking on the icon in the menu starts playing it as well

Closing this because this is implemented in another way in 3.12


docs: add notification section to customize and reference

:heart: Thank you for your contribution!
Description
closes https://github.com/inveniosoftware/invenio-app-rdm/issues/2204, https://github.com/inveniosoftware/docs-invenio-rdm/issues/558,
Adds notification documentation to the reference and customization sections.
Checklist
Ticks in all boxes and 🟢 on all GitHub actions status checks are required to merge:

[ ] I'm aware of the code of conduct.
[ ] I've created logical separate commits and followed the commit message format.
[ ] I've added relevant test cases.
[ ] I've added relevant documentation.
[ ] I've marked translation strings (for relevant code).
[ ] I've followed the CSS/JS and React guidelines (for relevant code).
[ ] I've followed the web accessibility guidelines (for relevant code).
[ ] I've followed the user interface guidelines (for relevant code).
[ ] I've identified the copyright holder(s) and updated copyright headers for touched files (>15 lines contributions).
[ ] I've NOT included third-party code (copy/pasted source code or new dependencies).

Third-party code
If you've added third-party code (copy/pasted or new dependencies), please reach out to an architect.
Reminder
By using GitHub, you have already agreed to the GitHub’s Terms of Service including that:

You license your contribution under the same terms as the current repository’s license.
You agree that you have the right to license your contribution under the current repository’s license.

Notifications walk-through page


Anerdw: Watch bani[\W_]*rani

Anerdw requests the watch of the watch_keyword bani[\W_]*rani. See the MS search here and the Stack Exchange search in text, in URLs, and in code.

bani[\W_]*rani has been seen in 0 true positives, 0 false positives, and 0 NAAs.

Self-rejected by Anerdw in Charcoal HQ. Reason: 'not how username watches work'


Update site header image

Add map of Baltimore

@jondandois let me know when you have some time to discuss further changes


Document why we build from source on macOS

On Windows we use the installers provided from python.org, while on Ubuntu we have to build from source because there is no installer.
While macOS reuses much of the build process for Ubuntu, I always forget why we don't switch over to the official binaries.  I chatted with @maxim-lobanov and he reminded me of the reason.

Could someone with permission merge when this is ready?  😃


Android has a new payment state

Just logging this new info so it's not forgotten. Not yet sure the impact.
https://android-developers.googleblog.com/2017/05/track-your-subscriptions-better-with.html

PR me bro!


Front end always shows demo mode

I thought that was intentional :/

@cschu It's actually a feature of  DataMeta that you can switch it into demo mode and it will discard all uploaded files after processing but treat them in the database as if they existed. Just the indicator in the footer seems broken, i.e. always on 😅

request.registry.settings.get(['datameta.demo_mode'])
'false'

I'm guessing, it does not parse the string, but justs returns true.


[util] Add object-oriented torch device class

Summary
This PR cleans up the various calls to choose_torch_device(), torch_dtype(), choose_precision() and so on, removes redundant function calls, and creates a single class named TorchDeviceSelect that supersedes their functionality. In addition to creating a simplified API, this class generalizes the call to clear the VRAM cache so that the same method empties the VRAM cache for both CUDA and MPS devices. It also provides an API for invocation context-dependent retrieval of the GPU device, intended for use in GPU load balancing in the future.
Example usage:
from invokeai.backend.util.devices import TorchDeviceSelect

class Foo(BaseInvocation):
    def invoke(self, context: InvocationContext):
         torch_device = TorchDeviceSelect.choose_torch_device()
         torch_dtype = TorchDeviceSelect.choose_torch_dtype()

         # empty CUDA or MPS cache
         TorchDeviceSelect.empty_cache()

In an invocation's invoke() method, the GPU device can be retrieved like this, allowing the model manager to select the device best suited for a particular model:
    def invoke(self, context: InvocationContext) -> LatentsOutput:
        device = context.models.get_execution_device()

The methods that return strings instead of objects, e.g. "float32" rather than torch.float32, have been removed.

Related Issues / Discussions

QA Instructions

Merge Plan
Squash merge when approved.

Checklist

[X] The PR has a short but descriptive title, suitable for a changelog
[X] Tests added / updated (if applicable)
[X] Documentation added / updated (if applicable)

What's the difference between "auto" and "autocast"?

What's the difference between "auto" and "autocast"?

"auto" selects one of the floating point precision types. "autocast" used to activate the torch.autocast() context for certain generation operations, but I this code has been removed. So I've gone ahead and removed references to this configuration option.
By the way, I notice a TODO from ryan in model_patcher.py saying that torch.autocast might provide a speed benefit in model patching. It could be hard-coded there if needed.

"auto" selects one of the floating point precision types. "autocast" used to activate the torch.autocast() context for certain generation operations, but I this code has been removed. So I've gone ahead and removed references to this configuration option.

Gotcha. We need to be careful with changing valid config settings. If somebody has "autocast" in their invokeai.yaml file, they will get a pydantic error on startup. It may be OK for this particular setting, but generally we'll want to write a config script migration, like config_default.py:migrate_v3_config_dict

Right. I'll put in a migrate script

Indeed we should be careful when adding to the public API, because we are promising to support and maintain it.
Some more thoughts:

I'm not sure get_execution_device should be in the context.models namespace. Feels more like a utility to me.
There's no indication that using TorchDeviceSelect.get_execution_device() directly in a node is going to cause problems - because it doesn't except in a separate branch that may be merged in the future and not work for some nodes. In fact, some nodes do use TorchDeviceSelect directly. It's a confusing and has footgun potential.
"TorchDeviceSelect" suggests to me that I can use this class to select a torch device. Maybe something more generic like "TorchHelper" is clearer.
The invocation_api module exports some objects that are removed in this PR:from invokeai.backend.util.devices import CPU_DEVICE, CUDA_DEVICE, MPS_DEVICE, choose_precision, choose_torch_device

For better or worse, we have committed these to the public API. Need to handle that.

I'm tired of working on this and will get back to it at some point. Converting to draft for now.

Indeed we should be careful when adding to the public API, because we are promising to support and maintain it.
Some more thoughts:

I'm not sure get_execution_device should be in the context.models namespace. Feels more like a utility to me.

There's no indication that using TorchDeviceSelect.get_execution_device() directly in a node is going to cause problems - because it doesn't except in a separate branch that may be merged in the future and not work for some nodes. In fact, some nodes do use TorchDeviceSelect directly. It's a confusing and has footgun potential.

"TorchDeviceSelect" suggests to me that I can use this class to select a torch device. Maybe something more generic like "TorchHelper" is clearer.

The invocation_api module exports some objects that are removed in this PR:
from invokeai.backend.util.devices import CPU_DEVICE, CUDA_DEVICE, MPS_DEVICE, choose_precision, choose_torch_device

For better or worse, we have committed these to the public API. Need to handle that.

These recommendations have now been implemented.


README.md file requires proofreading

The README.md file for the cspyce repo has several grammatical errors and some missing logical statements. The document needs to be proofread.

This was done as part of #27


Test PR Don't Merge

Test

I'm going to try and sync this to fix a transformers bug (#709 in planning)


Refactoring to improve stability/usability of integration test suite

Bumping the default request timeout from 30 seconds to 90 seconds. this more closely matches the server-side timeout value
Added a standard prefix for all names created in test data. Now all make_name calls add a testcli prefix to the generated names. This makes it easier to run the cleanup script against test data
Added the new group CLI commands to cleanup and teardown actions in the test suite

Additionally, I've manually wiped most of the old CI test data on the staging environment. The environment was very bloated with lingering test data and causing some tests to timeout from too much data (mainly backup and import tests)

Playing around with running the tests in serial vs parallel. Serial seems to produce more stable results. Doing a test run now with parallel tests enabled and the new refactoring to see if there is any improvement.


[scripts] Rewrite find-files-for-linting in Python

Reimplement this script in Python, to allow for easier customization for CI or local execution.
This contributes to the effort tracked by https://github.com/GoogleChromeLabs/chromeos_smart_card_connector/issues/937.

(After discussion in other PRs, I realized we want a couple more command-line parameters, which would be very tedious with pure Shell. So let it be Python.)


Use Scheduler instead of asyncio.sleep on silence cog

Closes #977
As described in #977 using asyncio.sleep isn't a good way to check if the silence duration has passed, since in some cases, it can cause channels to get prematurely unsilenced.
This solves that issue by using Scheduler from bot.utils.scheduling which has the ability to cancel on-going scheduled tasks. This also means that there can be a message on !unsilence saying that the channel is currently not silenced, which provides much better feedback than not sending anything.

I suggest using Scheduler inside cog, not with other class. One example is reminders.

I thought this was a bit cleaner, but yeah sure, I can do that. Another way would be to add this class to moderation/scheduler.py together with the  InfractionScheduler and simply import it from there, so that the code of silence.py isn't that long.
So which approach should I take?

@ItsDrike silence.py is good enough for this. The only use case for this is silence. Inside scheduler.py is InfractionScheduler, that is used by many files.

@MarkKoz It should be fixed now


teams-for-linux: JavaScript TypeError "properties of undefined (reading 'play')"

Describe the bug
Audio notifications in teams-for-linux do not play and a pop-up appears with a JavaScript error. The error raised is quoted below:
Uncaught Exception:
TypeError: Cannot read properties of undefined (reading 'play')

A screenshot of the error is also provided which references the nix store path pointing to index.js.
Steps To Reproduce
Steps to reproduce the behavior:

Start teams-for-linux.
Get a notification from either a direct message, or the start of a meeting.
Popup with error appears.

Expected behavior
Notifications play an audio tone and do not create a Javascript error.
Screenshots
If applicable, add screenshots to help explain your problem.

Additional context

NixOS configuration using flakes.
teams-for-linux version is 1.0.45.
Other notifications in my system work fine such as Slack and Firefox.
Running Hyprland, Gnome is also installed. Issue is not dependent on desktop environment as it occurs in both Gnome and Hyprland.
Using pipewire for audio. Config below:

  hardware.pulseaudio.enable = false;
  security.rtkit.enable = true;
  services.pipewire = {
    enable = true;
    alsa.enable = true;
    alsa.support32Bit = true;
    pulse.enable = true;
    config.pipewire = {
      "context.properties" = {
      "link.max-buffers" = 16; # version < 3 clients can't handle more than this
      "log.level" = 2; # https://docs.pipewire.org/page_daemon.html
      };
    };
  };

Notify maintainers
@muscaln

Metadata
Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.
[user@system:~]$ nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 6.1.9, NixOS, 23.05 (Stoat), 23.05.20230202.a100acd`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.13.2`
 - channels(root): `"nixos"`
 - nixpkgs: `/nix/store/n14283gcxp1l2qj0h53lngw4rl4y9xkd-source`

Hmm, I'm surprised I haven't had this issue (and I also use sway/pipewire). I'll look into it some time in the next few days if no one else figures it out first
I also planned to update the package to 1.0.49 which may fix it, but that update is waiting on #214062 because of changes to the yarn.lock that need newer parsing for lockfile fixup

@a-sebi, it seems like this might be fixed by #219393. Do you think you could give that PR a try?

I still get it using the PR.

I still get it using the PR.

Can you try it again? I think I found the issue and just made another push to that PR

What's the best way to test PRs? Sorry, still fairly new to NixOS. I've tried building from a tarball with this method but I'm getting an error as follows:
> unpacking sources
> variable $src or $srcs should point to the source

I also tried the method of using a tarball in my configuration.nix as per here but I got a different error about attribute ‘currentSystem’ missing.

The easiest method to test is probably nix --extra-experimental-features 'nix-command flakes' run github:NixOS/nixpkgs/refs/pull/219393/merge#teams-for-linux when the teams-for-linux client isn't already running. That builds and runs the package from that PR

I'm no longer getting the error.

Also no longer getting the error. Thanks @lilyinstarlight!


Check known contracts

Add a contract watch list system, currently for xDai contracts.
See issue #542

Ok #468 contracts added. I had to for now assume that these are ERC20 contracts, because the constructor scanner doesn't currently handle delegate contracts.


Visualize graph output

Added table to display data fetched from the graph

I can't submit work on gitcoin for second time, here is my address 0xe43D926aCe7729Add8b418B22527D2b49AE80477. Thanks

Hi @vividwood - thank you for submitting your PR and apologies for the delay. I am merging this now and will send payment to the address you provided shortly. Thanks!