Connect to Cloud deployment from glaredb local or python

Description
With rpcsrv. The relevant open stuff will use a url in the form of https://user:pass@hello.remote.qa.glaredb.com:6443/hello
E.g. local:
> \open https://user:pass@hello.remote.qa.glaredb.com:6443/hello
Connected to GlareDB Cloud deployment: "hello"
>

python:
import glaredb
con = glaredb.connect("https://user:pass@hello.remote.qa.glaredb.com:6443/hello")

We can come up with prettier schemes in the future.

glaredb://user:pass@hello.remote.qa.glaredb.com:6443/hello ?

@scsmithr is this done?
It looks like there was some work done in https://github.com/GlareDB/glaredb/pull/1518

There's still this: https://github.com/GlareDB/glaredb/issues/1525


mockPartial has no effect, constructor always called

Hey team,
Albeit I prefer Mockery over phpunits mocks I have several problems with Mockery.
I dont know if I just did not understand it correctly or my code is plain wrong...
I create a mock width:
\Mockery::mock(MyClass::class)->makePartial()
    ->shouldReceive('someMethod')
    ->andReturn(0)

I expect, that this mock does behave like the original class with the exception that someMethod is mocked and returns 0.
However: It does not work. All methods return null instead of only the specified one.
I have to do it the following way to make it work:
\Mockery::mock(MyClass::class.'[someMethod]')
    ->shouldReceive('someMethod')
    ->andReturn(0)

So what I am doing wrong?
Furtermore:
I get the error, that the construction of a mock failed because mockery didnt pass the right amount of arguments to the constructor. I thought, that Mockery wont call the constructor if I do not pass any arguments. I reall need something like disableOriginalConstructor here...

Can you post an example of the class you are mocking? Preferably an executable script with the behaviour in question, thanks!

I cant deliver you a working script.
The class in question was from Symfony and composer since I wanted to test commands from composer.
The think the code was code was:
// use Symfony\Component\Console\Command\Command;
$command = \Mockery::mock(Command::class)
            ->makePartial()
            ->shouldReceive('run')
            ->andReturn(0)
            ->getMock();

I just realized while reviewing this, that I did a mistake on that error. I will check this again.
However the second problem remains:
$repoManager = \Mockery::mock(RepositoryManager::class')->makePartial()
    ->shouldReceive('getLocalRepository')
    ->andReturn($localRepo)
    ->getMock();

In the given Code the consructor was called even when I did not apply any arguments. That ofc failed because RepositoryManager needs some arguments to be constructed.
I cant say more because I moved on using unpleasant PHPUnit Mocks.
All I have are some outcommented Mockery Mocks

Hi there,
I bumped into this issue, while trying to find a solution to my own problem.
If I use the makePartial() method
        $essence = Mockery::mock('\Impensavel\Essence\SOAP', array(
            $elements,
            'http://webservices.oorsprong.org/websamples.countryinfo/CountryInfoService.wso?WSDL',
            $namespaces,
        ))
        ->makePartial();

I'll get the following error
Fatal error: Call to a member function close() on null in /home/vagrant/GH/essence/src/XML.php on line 118
If I use the traditional partial mock
$essence = Mockery::mock('\Impensavel\Essence\SOAP[makeCall]', array(
            $elements,
            'http://webservices.oorsprong.org/websamples.countryinfo/CountryInfoService.wso?WSDL',
            $namespaces,
        ));

it just works.
This is the class I'm mocking.
Any pointers to what the problem may be are welcome :)

@quetzyg does the parent class xml do some work in the constructor? That's the only thing I can think of, something not working in the parent::__construct call.

@quetzyg scratch that, will look myself, thought it was a link to a gist....

Hmmm, I don't get any errors
<?php

require_once "vendor/autoload.php";

$essence = Mockery::mock('\Impensavel\Essence\SOAP', array(
    [],
    'http://webservices.oorsprong.org/websamples.countryinfo/CountryInfoService.wso?WSDL',
    []
))
->makePartial();

var_dump($essence instanceof \Impensavel\Essence\Soap);             // bool(true)
unset($essence);

``` php

@davedevelopment, yes the XML class constructor does handle a few things.
Try using these values:
$elements = array(
    '/soap:Envelope/soap:Body/m:ListOfCountryNamesByCodeResponse/m:ListOfCountryNamesByCodeResult/m:tCountryCodeAndName' => array(
        'map'     => array(
            'code' => 'string(m:sISOCode)',
            'name' => 'string(m:sName)',
        ),
        'handler' => function ($element, array $properties, &$data) {
            var_dump($properties);
        },
    ),
);

// Web Service Definition Language
$wsdl = 'http://webservices.oorsprong.org/websamples.countryinfo/CountryInfoService.wso?WSDL';

// XML namespace
$namespaces = array(
    'm' => 'http://www.oorsprong.org/websamples.countryinfo',
);

instead of the empty arrays.

@quetzyg
With those values I get:
PHP Fatal error:  Uncaught BadMethodCallException: Method Mockery_0_Impensavel_Essence_SOAP::register() does not exist on this mock object in /home/davem/src/essence/vendor/mockery/mockery/library/Mockery/Loader/EvalLoader.php(16) : eval()'d code:709
Stack trace:

That's not unexpected to me, XML::__construct attempts to call the register method, which at this time has been mocked by mockery, but doesn't have any expectations set for it, nor is the mock a partial yet. I don't think there's any way around this.

If I use the makePartial(), shouldn't I get a class that's pretty much original to what I would have on a normal instantiation?
And the mocked methods would only replace the original ones after?
Why would the register(), which belongs to a grandparent (AbstractEssence -> XML -> SOAP) be mocked?

The call to makePartial comes at what I call runtime. The call to Mockery::mock creates and instantiates a mock object, at which point it is a full mockery mock, so all methods (attained via reflection, so methods all the way up the class hierachy) have been replaced with mockery code. When you call makePartial, that same mockery code is executed, but it knows to defer the call to the original code.
The Mockery::mock("Class[foo]") is a compile time partial, so you are telling Mockery which methods to replace as it builds the mock.

I see...
Well, I'll do things differently, then.
Thanks for your help, @davedevelopment.

Can this issue now be closed @quetzyg, @davedevelopment?

Yeah, sure.


How to encode existing image?

The README suggests using e2e for encoding existing face image, but this repo seems to be empty. I tried using stylegan-encoder instead, but it is based on Tensorflow and I got stuck with downloading the model with "Google Drive quota exceeded" error. Any suggestions for what to use for StyleGAN encoding?

Hi @tambetm ,
Thanks for your interest!
Until the code of e4e will be released, I recommend using pSp. You can refer to this issue for additional details. Let me know if it works for you 😊

Thanks! Closing this as duplicate to #1.

FYI e4e has been released!


91 Stop website styling from leaking into PayButton widget

https://github.com/PayButton/paybutton/issues/91
this depends on the PR from
https://github.com/PayButton/paybutton/issues/88
to work properly.
the docs also must point to the newly built paybutton.js on unpkg before seeing changes.

the style leaking requires changes from this PR
https://github.com/PayButton/paybutton/pull/92


Don't raise 409 errors from OpenSearch

Resolves #1095
Typically we see a conflict because OpenSearch is still trying to update documents at the time that we issue a query for all outdated documents, so we think there are some outdated documents when in reality, some documents just haven't finished updating yet.
I think it's safe to ignore a 409, but I'd like feedback on doing so. In both places that delete_by_query is called, the response is printed directly following, so it will be in the logs even if we do get a 409.

Converting this back to a draft - it is very odd that we're seeing this 409 behavior because we have refresh=True on the bulk update request.


cargo: fix fuse-backend-rs dependency in cargo.toml

Relevant Issue (if applicable)
#1283
Details
The previous changes only upgraded the value in cargo.lock, we should also upgrade cargo.toml.
Types of changes
What types of changes does your PullRequest introduce? Put an x in all the boxes that apply:

[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)
[ ] Documentation Update (if none of the other choices apply)

Checklist
Go over all the following points, and put an x in all the boxes that apply.

[ ] I have updated the documentation accordingly.
[ ] I have added tests to cover my changes.

Can you please also put the following detail in patch commit log?
The previous changes only upgraded the value in cargo.lock, we should also upgrade cargo.toml.

Can you please also put the following detail in patch commit log? The previous changes only upgraded the value in cargo.lock, we should also upgrade cargo.toml.

OK, fixed.


How to use layouts?

I have the following structure of files:
const { compile } = require('pure-engine')
const escape = require('escape-html')
const fs = require('fs-extra');

async function example() {
  const content = await fs.readFile('./index.html');
  const { template } = await compile(content.toString())
  console.log(template({ foo: 'bar' }, escape))
}

example()

<import layout from="./default.html" />

<layout>

Hello, world!

  <form>
    <input name="foo" />
    <button>Submit</button>
  </form>
</layout>

<!DOCTYPE html>

  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>

Once compiled, the layout isn't resolved. What's the right setup for layouts for work?

It's almost correct! The compiler does not know where to put the content of the layout. There's a <slot/> tag that you need to use inside of the layout.
<!DOCTYPE html>

  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>

  <slot />

Please feel free to send a PR to update the docs, might be not obvious at first glance.

@emilos Aa, sorry! I meant to include the <slot /> in the initial description (I've just corrected it). Even with this part, this doesn't work. Here's the output:
<layout>
Hello, World!
<form><input name="foo"><button>Submit</button></form></layout>

I've also tried to display the layout using {layout} and it prints undefined.

You might need to specify paths as the compiler option too, right now it
doesn't know where to search the assets. Docs need an update for sure :)
czw., 5 mar 2020, 11:42 użytkownik Zaiste<EMAIL_ADDRESS>napisał:

@emilos https://github.com/emilos Aa, sorry! I meant to include the  in the initial description (I've just corrected it). Even with this
part, this doesn't work. Here's the output:
Hello, World!Submit
I've also tried to display the layout using {layout} and it prints
undefined.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/buxlabs/pure-engine/issues/562?email_source=notifications&email_token=AAP52EDPMRS4YFQBPVFJQCLRF56X5A5CNFSM4LBMPL2KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEN4WYLY#issuecomment-595160111,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAP52EAOFF25HMECURTOSRDRF56X5ANCNFSM4LBMPL2A
.

@emilos no worries! I've made it work as you suggested. The paths option was needed
const { compile } = require('pure-engine')
const escape = require('escape-html')
const fs = require('fs-extra');

async function example() {
  const content = await fs.readFile('./index.html');
  const { template } = await compile(content.toString(), { paths: '.' })
  console.log(template({ foo: 'bar' }, escape))
}

example()


Registry reports wrong connection_id

I have a config with 4 chains and 3 relayers between them and /ibc/{chain_1}/{chain_2} request returns incorrect connection id randomly.
For reproduction here's the config I'm using:
chains:
  - id: juno-1
    name: juno
    numValidators: 1
    ports:
      rest: 1313
      rpc: 26653
      grpc: 30658
      faucet: 8000
  - id: junotwo-1
    name: juno
    numValidators: 1
    ports:
      rest: 1317
      rpc: 26659
      grpc: 30660
      faucet: 8004
  - id: junothree-1
    name: juno
    numValidators: 1
    ports:
      rest: 1323
      rpc: 26657
      grpc: 30657
      faucet: 8001
  - id: junofour-1
    name: juno
    numValidators: 1
    ports:
      rest: 1328
      rpc: 26658
      grpc: 30659
      faucet: 8003

relayers:
  - name: juno-juno2
    type: hermes
    replicas: 1
    chains:
      - juno-1
      - junotwo-1
    config:
      event_source:
        mode: "pull"
  - name: juno2-juno3
    type: hermes
    replicas: 1
    chains:
      - junotwo-1
      - junothree-1
    config:
      event_source:
        mode: "pull"
  - name: juno3-juno4
    type: hermes
    replicas: 1
    chains:
      - junothree-1
      - junofour-1
    config:
      event_source:
        mode: "pull"

registry:
  enabled: true
  ports:
    rest: 8081

When it's running I create one channel betwenn each of them:
kubectl exec hermes-juno-juno2-0 -- hermes create channel --order unordered --a-chain juno-1 --a-connection connection-0 --a-port  transfer --b-port transfer
kubectl exec hermes-juno2-juno3-0 -- hermes create channel --order unordered --a-chain junotwo-1 --a-connection connection-0 --a-port  transfer --b-port transfer
kubectl exec hermes-juno3-juno4-0 -- hermes create channel --order unordered --a-chain junothree-1 --a-connection connection-0 --a-port  transfer --b-port transfer

After that I'm doing couple of GET requests to get connection_id between chains:
$ curl -s GET 'http://localhost:8081/ibc/juno-1/junotwo-1' | jq ".chain_1.connection_id" && curl -s GET 'http://localhost:8081/ibc/junotwo-1/junothree-1' | jq ".chain_1.connection_id" && curl -s GET 'http://localhost:8081/ibc/junothree-1/junofour-1' | jq ".chain_1.connection_id"
"connection-0"
"connection-0"
"connection-0"

If you repeat running this command eventually you will get something like that instead of correct result:
"connection-0"
"connection-0"
"connection-1"

Where one of the connection ids incorrect.
Why it's bad:
We use this endpoint to determine command for opening channels in hermes and when incorrect connection_id passed inside hermes it errors that it does not have config for the chain_b

Ahh i think this is cuz there can be multiple connections between the chains, maybe some are not active or invalid even. This is a good bug to report thanks.
I think issue could be here: https://github.com/cosmology-tech/starship/blob/main/starship/registry/chain.go#L247 Maybe we need to update the way we fetch connection information between the chains

Great, thanks for active maintaining of this awesome tool!
Yeah it seems like connection_id just swaps on ibc/chain1/chain2 (in case of incorrect result), so:

chain1 returns chain2->chain1 connection_id
chain2 returns chain1->chain2 connection_id

For some time and then it gets back to normal until flips again. Can't say for sure tho, as I only observed the results


Bug - Chips + Typeahead + Custom rendering doesn't clear fields

Using angular-chips with typeahead enabled and custom rendering, after clicking on the suggestion it adds the chip but it doesn't clear the field.
I'm trying to use it on ionic
This is basicaly what I'm doing (with a few differences) - http://codepen.io/anon/pen/rjjEqx
The image below is for you to visualize what I'm trying to say:

First I type my name, it gives me the suggestion with my full name and when I click on the suggestion it adds the chip but what I typed keeps there.

Also there is this error: $digest already in progress (angular)

Hi, I just tried the example link it work fine. Pls check the attachment. I
tried in iPhone chrome browser. Could you tell me which browser and device
you tried?
On Fri, Jan 20, 2017 at 12:12 AM Nathan Martins<EMAIL_ADDRESS>wrote:

Using angular-chips with typeahead enabled and custom rendering, after
clicking on the suggestion it adds the chip but it doesn't clear the field.
I'm trying to use it on ionic
This is basicaly what I'm doing (with a few differences) -
http://codepen.io/anon/pen/rjjEqx
The image below is for you to visualize what I'm trying to say:

First I type my name, it gives me the suggestion with my full name and
when I click on the suggestion it adds the chip but what I typed keeps
there.
Also there is this error: $digest already in progress (angular)
[image: screenshot from 2017-01-19 13-09-14]
https://cloud.githubusercontent.com/assets/5864842/22114503/8091f3f4-de48-11e6-80ce-0e1c5b5fc7df.png
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/mohbasheer/angular-chips/issues/29, or mute the
thread
https://github.com/notifications/unsubscribe-auth/AESlZ5QYkN7bPavP9sX2p38AlaF8PQOLks5rT4tbgaJpZM4LoSwZ
.

Actually I'm working with IONIC, the printscreen is from its emulator. I think is something conflicting with ionic modules maybe.

If you can try reproduce in codepen. Then it's easy to fix.
On Fri, Jan 20, 2017 at 12:04 PM Nathan Martins<EMAIL_ADDRESS>wrote:

Actually I'm working with IONIC, the printscreen is from its emulator. I
think is something conflicting with ionic modules maybe.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/mohbasheer/angular-chips/issues/29#issuecomment-273972499,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AESlZ8J3n1x8oIUmyIHL6CBY8enqBXnRks5rUDJlgaJpZM4LoSwZ
.

I tried here, but it works perfectly on codepen. When I run the app in my device (android) it complains about the $scope.apply function when addChip function is called. I'll be able to verify this tuesday. If you want to close the issue its ok.

i don't know if this is gonna help you but I fixed it here. As I said, it was something to do with the addChip function in the $scope.apply. It was throwing and exeption "$digest (or $apply) already in progress" then, I went into the addChip function and changed the $scope.apply() for scope.$evalAsync();


Panics after upgrading from 0.5.1 to 0.5.3

Thank you for the great library. I like it :+1:
I am not sure if close issue 40 fixes the trouble but version 0.6 is not published yet.
OS: Window 7 Home 64 bit
Rust: 1.30 GNU-MinGW
Crossterm: 0.5.3
I started using your library a few weeks ago. It was 0.5.1. It worked smoothly. Today I ran cargo update and my application started panicking at line let term = crossterm::terminal::terminal();.
It shows:
thread 'main' panicked at 'called Result::unwrap() on an Err value: Os { code: 87, kind: Other, message: "The parameter is incorrect." }', libcore\result.rs:1009:5
I rolled back to 0.5.1. Should I wait for 0.6? Or it is a new bug and it needs some investigation?

It is probably a bug, please go back to 0.5.1 Are you sure you are using 0.5.3? I had this bug solved there since it occurred in 0.5.2. 0.5.2 has been yanked.

On what system are you?

For your case Windows 7 I suggest to go back a version, I've gotta install a Virtual machine first if I want to debug that.

I saw  0.5.3 in Cargo.lock.  As I mention in the original post, I use Windows 7 that is not in the list of OSes that must work.

Is let term = crossterm::terminal::terminal(); the only code you ran?

No, it is the first call to crossterm and them it exits with panic. Next call is request for terminal size.

Cool! I tested some time ago on Windows 7 too. So should suppose to work. I will do some research now. To which screen dimensions are you setting your terminal screen? Not that Windows 7 and 8 are having limits to the size.

stack backtrace:
   0: std::sys::windows::backtrace::unwind_backtrace
             at libstd\sys\windows\backtrace/mod.rs:104
             at libstd\sys\windows\backtrace/mod.rs:95
   1: std::sys_common::backtrace::print
             at libstd\sys_common/backtrace.rs:71
             at libstd\sys_common/backtrace.rs:59
   2: std::panicking::default_hook::{{closure}}
             at libstd/panicking.rs:211
   3: std::panicking::default_hook
             at libstd/panicking.rs:227
   4: std::panicking::rust_panic_with_hook
             at libstd/panicking.rs:476
   5: std::panicking::continue_panic_fmt
             at libstd/panicking.rs:390
   6: rust_begin_unwind
             at libstd/panicking.rs:325
   7: core::panicking::panic_fmt
             at libcore/panicking.rs:77
   8: core::result::unwrap_failed
             at libcore/macros.rs:26
   9: <core::result::Result<T, E>>::unwrap
             at libcore/result.rs:808
  10: crossterm::kernel::windows_kernel::ansi_support::try_enable_ansi_support::{{closure}}
             at C:\Users\vvm\.cargo\registry\src\github.com-1ecc6299db9ec823\crossterm-0.5.3\src\kernel\windows_kernel/ansi_support.rs:17
  11: std::sync::once::Once::call_once::{{closure}}
             at libstd\sync/once.rs:230
  12: std::sync::once::Once::call_inner
             at libstd\sync/once.rs:397
  13: std::sync::once::Once::call_once
             at libstd\sync/once.rs:230
  14: crossterm::kernel::windows_kernel::ansi_support::try_enable_ansi_support
             at C:\Users\vvm\.cargo\registry\src\github.com-1ecc6299db9ec823\crossterm-0.5.3\src\kernel\windows_kernel/ansi_support.rs:15
  15: crossterm::common::functions::get_module
             at C:\Users\vvm\.cargo\registry\src\github.com-1ecc6299db9ec823\crossterm-0.5.3\src\common/functions.rs:71
  16: crossterm::modules::terminal::terminal::Terminal::new
             at C:\Users\vvm\.cargo\registry\src\github.com-1ecc6299db9ec823\crossterm-0.5.3\src\modules\terminal/terminal.rs:32
  17: crossterm::modules::terminal::terminal::terminal
             at C:\Users\vvm\.cargo\registry\src\github.com-1ecc6299db9ec823\crossterm-0.5.3\src\modules\terminal/terminal.rs:177
  18: colortest::main
             at src/main.rs:9

it is output for simple application:
use crossterm;
fn main() {
    let term = crossterm::terminal::terminal();
    println!("{:?}", term.terminal_size());
}


Item Stats Plugin not displaying stats for quiver (charged/uncharged)

Type
Incorrect behavior
Operating System
Windows
OS Version
Windows 10
Bug description
When hovering over the dizana's quiver, in either the charged or uncharged state, the Item Stats plugin shows 0 stats across the board.
Screenshots or videos

RuneLite version

Logs
No response

This is being caused by the way the wiki is handling the uniqueness of the quiver, they put a comment next to the ranged attack and ranged strength values asking people NOT to edit them, and our wiki-scraper expects only a value to be there, so it's throwing an error and not obtaining the stats of the item.
2024-11-08T01:55:05.4995228Z Item Dizana's quiver has an non integer arange
2024-11-08T01:55:05.4996715Z Item Dizana's quiver has an non integer rstr

|arange = +18 <!--DO NOT change this PLEASE, the charged quiver's bonus is PASSIVE and only applies to arrows/bolts, including it here would be misleading-->
|rstr = +3 <!--DO NOT change this PLEASE, the charged quiver's bonus is PASSIVE and only applies to arrows/bolts, including it here would be misleading-->


in windows version of pyTranscriber 1.1 can read directory file

Hi
in windows version of pyTranscriber 1.1 can not read all directory file

thx

Perhaps you need to ask the pyTranscriber's developer? Autosub is a command line tool which doesn't operate the GUI part.


Missing vendor

See error output:
../../../../../../github.com/go-ozzo/ozzo-validation/is/rules.go:12:2: cannot find package "github.com/asaskevich/govalidator" in any of:
	/usr/local/Cellar/go/1.11/libexec/src/github.com/asaskevich/govalidator (from $GOROOT)
	/Users/Jacky/Jacky.Wu/MyProjects/Go/src/github.com/asaskevich/govalidator (from $GOPATH)

Should we include this vendor?
Thanks.

Unable to reproduce the issue. Please try with the new "go mod" support.


deploys failing with error: marking resource as failed because no progress for 1m30s

Before proceeding

[X] I didn't find a similar issue

Version
1.2.122+fix1
How to reproduce
Not sure how to reproduce but on our builds, the only thing that change was the werf version.
Helm resources fail to converge with error:
ERROR: marking resource as failed because no progress for 1m30

working version: werf is /root/.trdl/repositories/werf/releases/1.2.117+fix2/linux-amd64/bin/werf
not working version: werf is /root/.trdl/repositories/werf/releases/1.2.122+fix1/linux-amd64/bin/werf

Result
ERROR: marking resource as failed because no progress for 1m30
resources fail to update and deploy fials
Expected result
resources to update as normal
Additional information
No response

so that was in stable, tried using alpha similar problem but different timeout:
error: marking resource as failed because no activity for 4m0s
it seems to happen for the following resource kinds:

PodDisruptionBudget
ServiceAccount
Secret
ConfigMap
Service
HorizontalPodAutoscaler
Ingress

Looks like things that haven't changed during a deploy. But the statefulsets and deployments which have changed did update
    werf.io/release-channel: 1.2 alpha
    werf.io/version: v1.2.132

@oppianmatt Hello, can you provide full log of werf converge? Don't forget to remove the sensitive parts. Also, I will need your full werf converge command with all flags and the result of env | grep WERF_ just before werf converge, thanks.

Reverted stable to the older version until this is fixed. Currently can't reproduce. Any additional context would be helpful.

Fixed in https://github.com/werf/kubedog/pull/271. Backported to all release channels.

If previous fix didn't work for someone, this should fix it https://github.com/werf/werf/pull/4671

so was using rock-solid which was working until just now
but seeing how a fix was backported to all release channels will try another channel and report back, and if still happening will provide the logs as requested

can confirm that rock-solid and stable I was getting the error, but I tried alpha and it was working

Good. The last fix at https://github.com/werf/werf/pull/4671 backported up to the stable release channel just now.


Adjust OracleQueryCompilationContext

Generates a random alias with a letter and a number between 0 to 9 to avoid the error below.
ORA-00972: identifier is too long.

@CrazyJson  Hi , Can you merge this?

@maikebing Take a look at my fork of this, I have also pushed a Nuget with various other fixes.


Uncaught Exception: Attempting to call a function in a renderer window that has been closed or released. Function provid

An uncaught exception was reported.
Info:
OS: win32
Arch: ia32
GPMDP Version: 3.0.1
Time: Mon Mar 28 2016 00:00:56 GMT 0200 (Romance Daylight Time)
Error:
Attempting to call a function in a renderer window that has been closed or released. Function provid
Error: Attempting to call a function in a renderer window that has been closed or released. Function provided here: Object.<anonymous> (C:\Users\redacted\AppData\Local\GPMDP_3\app-3.0.1\resources\app\build\inject\GPMInject\interface\mouseButtonNavigation.js:8:8.
    at BrowserWindow.callIntoRenderer (C:\Users\redacted\AppData\Local\GPMDP_3\app-3.0.1\resources\atom.asar\browser\lib\rpc-server.js:201:19)
    at emitTwo (events.js:92:20)
    at BrowserWindow.emit (events.js:172:7)

This issue was created automatically inside the uncaughtException handler

Closing this automatically reported issue as a duplicate of #470


preventing messages from over-writing the current prompt text

This is a small change (and my first foray into Go) that prevents new messages and errors that get sent to be displayed from over-writing an active prompt. I was noticing an issue where if the Find:  prompt was left open that it would get occasionally overwritten by the "Saved ..." message. This stops that from happening while still logging the events into micro's log buffer.

Could you give me some instructions for how to reproduce the bug this is trying to fix? Thanks!

If you open any file, then open the "Find:" prompt then enter some text. After that you wait until another message would appear, (such as the save message) it will over-write the existing prompt message.
Video: http://magic.pewpewthespells.com/iUsD


enable hierarchical/submenu feature

We can show Submenu items based on WPGraphQl docs:
https://www.wpgraphql.com/docs/menus/#hierarchical-data.
I wrote a basic css to show/hide submenu too.
I don't know if is a good idea make it recursive. For now, we are showing first children.
Sory about yarn misuse, it is not in my work day yet.

nice! it looks like it's working great. it can use a style fix but ill handle that :)
thanks for putting this together!

@all-contributors please add @ffabiosales for code

Great!
Thank you for this project.
@colbyfayock


rsync after vagrant destroy?

Hi,
I know the project directory get's rsync'ed to /vagrant in the server that gets spunned up in GCE.  I noticed that the /vagrant doesn't get rsync'ed back to the project directory when vagrant destroy is executed.  Would it make sense to have this happen?  Thanks.

Hi @vinhdizzo!
I would suggest filing a feature request with vagrant itself to support it in their rsync implementation.
The current custom syncing mechanism stays with this provider currently only until NFS capability issues are sorted out: https://github.com/mitchellh/vagrant/issues/6781
Cheers,
A.

Deduping on #175 since that issue is more general.
Currently  Vagrant doesn't implement bi-directional sync yet. However, people report that at least 2 plugins achieve that (like vagrant-unison or vagrant-scp): hashicorp/vagrant#3062
If you have any issues with interoperability - let me know and I'll do my best to see if I can make it work.


When cleared, Variant destroys the Reference it had assigned if it was the only ref. count incrementer

Godot version:
3.2.4-beta, 4.0
OS/device including version:
N/A
Issue description:
The Variant(Object *) constructor checks whether the passed object is a Reference to manage its reference count.
The problem comes when the Reference has not yet gotten its reference count initialized and so its the Variant it's assigned to the one doing that, because that will cause the object to be freed when the Variant is cleared/destroyed/reassigned.
One example of this happening is the self variable in GDScriptFunction::call() when called during the duplication of a resource. The moment the script property is copied and such script is called on a still-unreferenced Reference which is the duplicate Resource you get a crash.
Probably there are other cases across the whole codebase.
Steps to reproduce:
Consider this sequence:

Some Resource-derived class is instantiated: SomeResource *res = memnew(res).
A Variant is initialized with it: Variant v(res);. res's ref. count becomes 1.
The Variant is cleared: v.clear() . res's ref. count becomes 0 then it's released.

Minimal reproduction project:
Not needed.
Possible approaches to fixing:
I can think of some ways to fix this:

Find and fix every case of a Reference whose ref. count is not yet initialized being assigned to a Variant, by managing the life cycle of the former explicitly via Ref<>.
Modify Variant so it doesn't deal with the reference count of a Reference if it's not already initialized when it's assigned.
Modify Variant so it doesn't deal with the reference count of a Reference it's assigned via the Object * constructor. (Adding this here for the sake of the brainstorm, but that would only be possible in 3.2, where there is the Variant(RefPtr &) constructor that could have the alternative ref. counting semantics.)

This is intended and the correct behavior (at least in 4.0 unless I am missing something) it requires no change.

Checked and it should be the same in 3.2. This is fully intended, it's not a bug or a problem.

The crash you get in 3.x I think is related to something else, because in Godot 3.x, scripts reference themselves. In 4.0 you should not get this crash because this behavior has been fixed.

I backported vnen's change so scripts now provide the self reference the same way as in 4.0.
The crash was discovered in 3.2. I tried the MRP on 4.0 and it crashed too. Try the MRP provided at https://github.com/godotengine/godot/pull/43049#issuecomment-717559858.
If Variant is designed to work that way, then I guess we should apply solution 1).

Here's my suggestion:

For 3.2, make Variant not do any kind of ref.-counting on References passed as Object *. That will fix the existing cases where a Reference is not put in a Ref before assigning it to a Variant by avoiding the early destruct problem. This won't affect GDScript, only the C++ side. I have thought of a way to implement it without having to make Variant bigger.
For 4.0 it may be better to just try to find and fix all the cases where the illegal-by-design way is used. We already have spotted a couple of cases, and the rest may very well be found during the pre-alpha and alpha stages as people start to try to do stuff with the engine.

It seems we have indeed chosen the option to fix the individual cases where Variant is wrongly used, rather than patching it, even in 3.2.
So this is no longer an issue by iself.
See #43610 for further info.


rewrite settings documentation

https://trello.com/c/1tt5qu2b/61

retest this please

retest this please

retest this please

retest this please


autocomplete $Shape properties returns error

// @flow

declare type Foo = {
    name: string;
}

const myFoo: $Shape<Foo> = {};

myFoo.

When I try to get autocompletion results for this file at myFoo. then it returns an error:
$ flow autocomplete 9 7 < index.js
Error: autocomplete on unexpected type of value ShapeT (please file a task!)

With $Shape, no longer errors (but does not return results). If you use the replacement, $Partial, you'll get results as expected:
name string | void
hasOwnProperty (prop: mixed) => boolean
isPrototypeOf (o: mixed) => boolean
propertyIsEnumerable (prop: mixed) => boolean
toLocaleString () => string
toString () => string
valueOf () => mixed


Ability to fine tune custom model on conversable agents

Why are these changes needed?
Agent's with custom models should be able to accept feedback and fine tune their underlying models.
If this PR is wanted I will update with tests/notbook/blog
Related issue number

Checks

[ ] I've included any doc changes needed for https://microsoft.github.io/autogen/. See https://microsoft.github.io/autogen/docs/Contribute#documentation to build and test documentation locally.
[ ] I've added tests (if relevant) corresponding to the changes introduced in this PR.
[ ] I've made sure all auto checks have passed.

Codecov Report
Attention: Patch coverage is 25.00000% with 12 lines in your changes are missing coverage. Please review.

Project coverage is 25.79%. Comparing base (8ec1c3e) to head (3cbcc45).

Files
Patch %
Lines

autogen/agentchat/conversable_agent.py
25.00%
6 Missing :warning:

autogen/oai/client.py
25.00%
6 Missing :warning:

Additional details and impacted files
@@             Coverage Diff             @@
##             main    #1787       +/-   ##
===========================================
- Coverage   37.05%   25.79%   -11.26%
===========================================
  Files          62       62
  Lines        6499     6513       +14
  Branches     1438     1564      +126
===========================================
- Hits         2408     1680      -728
- Misses       3898     4620      +722
- Partials      193      213       +20

Flag
Coverage Δ

unittests
25.77% <25.00%> (-11.28%)
:arrow_down:

Flags with carried forward coverage won't be shown. Click here to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


Pip installer for CoreML Converter: mxnet-to-coreml

The new way to install the converter:

pip install mxnet-to-coreml

Current version is 0.1.0 and runs only on MacOS and python 2.7.
Once inside the directory pip_package, user needs to run:

python setup.py bdist_wheel
twine upload dist/*

Once uploaded it'll look like this:
https://testpypi.python.org/pypi/mxnet-to-coreml
Also updated the README for converter to reflect this.
Unit tests continue to pass. Also, converted the squeezenet model after installing from fresh using the pip install.
@jiajiechen @madjam @domdivakaruni @srikris @mli @piiswrong

@kevinthesun @szha


TextField on html5 target only accessible with mouse after changing content programmatically

When I use a dynamic TextField for user input on html5 targets, and I programmatically change its content, the text field loses focus and becomes inaccessible except through clicking on it again with the mouse. The event handlers for the focus get called properly if I try focusing it through other means (e.g. by setting stage.focus), but it is not possible to input text with the keyboard unless the text field is clicked on. After clicking on it once, it remains accessible until the content is again changed in the program.

This is working for me on the latest source of OpenFL and Lime:
package;

import openfl.display.Sprite;
import openfl.events.Event;
import openfl.text.TextField;

class Main extends Sprite {

	public function new () {

		super ();

		var textField = new TextField ();
		textField.text = "Hello";
		textField.type = INPUT;
		addChild (textField);

		var i = 0;

		addEventListener (Event.ENTER_FRAME, function (_) {

			i++;

			if (i == 240) {

				textField.text += "h";
				i = 0;

			}

		});

	}

}

Are you using -Dcanvas or -Ddom? The above is working for GL. It is also possible that this was improved since the last release, or that there is something more complex happening in your code that is changing focus

If you modify it like this, the error occurs:
`package;
import openfl.display.Sprite;
import openfl.events.TimerEvent;
import openfl.text.TextField;
import openfl.utils.Timer;
class Main extends Sprite {
public function new () {

    super ();

    var textField = new TextField ();
    textField.text = "Hello";
    textField.type = INPUT;
    addChild (textField);

    var timer = new Timer (5000);
    timer.addEventListener (TimerEvent.TIMER, function (_) {

        textField.text = "";

    });
    timer.start ();

}

}`

(the important change is that I assign the text field something rather than just concatenating. Upon assigning text, it loses focus and must be clicked again to refocus.

The bug also happens on neko.


watch uploads +-25kb of file

If I watch my *.css.liquid, I can reliably expect a partial upload.
Running watch on a minified and unminified file repeatedly uploads approximately 25Kb of the file.
No options are added to config.yml.
OS: Mac OSX 10.9.5
Themekit 0.3.1

Can we put a priority on this? Makes editing css of existing themes (with some very large stylesheets) impossible.

Could you describe in more detail what your workflow is like here? I'm playing around with some pretty large assets (three.js and bootstrap.css) and the entire files appear to be getting uploaded correctly.
Are there lots of writes happening to the same file over and over again?

I was able to replicate something that I think is showing what is going wrong here. If there are lots of changes happening in rapid succession to very large files, they are actually getting locked up in Shopify's background queue.
We only allow a single job to run for an asset, and with the case of a large asset (I was going from 1 byte to more than 1 megabyte) it can take a while. Unfortunately, Shopify accepts the work (even if it cannot queue it) and returns a 200.

With our current structure, we use Gulp to build sass from outside of the Shopify theme into the assets folder.
We have themekit watch a few folders at once, but only when sass is built will it trigger an upload for the compiled css. When building sass, there won't be multiple other uploads, so I'm experiencing this on single file updates.
I'm pretty sure when Node closes a file after writing any sort of change will only then be picked up by themekit; not while the buffer is still receiving data.
@cshold have you experience this with anything other than CSS? I don't think I have - probably because the stylesheets tend to be the largest single assets. I would imagine this would potentially happen with any large file.

I'm pretty sure when Node closes a file after writing any sort of change will only then be picked up by themekit; not while the buffer is still receiving data.

Are we absolutely sure this is the true? There is no guarantee that is the case and it should be easy to test. Instead of dumping built file into the assets directory, write it somewhere else then move it. That should let us definitively know if it's an issue with how files are getting written to or if there is an underlying issue in this application.
@cshold and some colleagues have a similar setup, so I'll also give this "write then move" thing a try and see what happens.

I've can recreate this issues with theme watch on .scss.liquid and .js.liquid files, no build tasks involved.

I'm also experiencing this issue with a heavyweight snippets/*.liquid file. Weighing in at an understated 129kb.

Replicated the issue and a patch that I have in https://github.com/Shopify/themekit/tree/bugfix-large-files-do-not-upload appears to fix it.
If you have the go runtime installed and want to double check that this does indeed fix the issue please do. I'll be on the #shopify IRC channel on freenode if you need any help getting your environment set up.

@stevebosworth can you test out the patch and see if it fixes the issue?

Tested this branch with @csaunders a few days ago and then again today.  Seems like it's :100: on my end :ship:

Can we get this in a new release?

A release is now up on S3. All you should have to do is theme update


[WIP] Batch jobs

Codecov Report
Attention: 186 lines in your changes are missing coverage. Please review.

Comparison is base (12af04a) 74.3% compared to head (f70b9e7) 67.1%.

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files

Files
Coverage Δ

src/consumer/mod.rs
69.5% <100.0%> (+0.3%)
:arrow_up:

src/error.rs
44.0% <ø> (ø)

src/proto/single/utils.rs
100.0% <100.0%> (ø)

src/proto/single/mod.rs
91.4% <20.0%> (-3.0%)
:arrow_down:

src/producer/mod.rs
50.0% <8.3%> (-13.9%)
:arrow_down:

src/proto/batch/mod.rs
80.9% <80.9%> (ø)

src/proto/single/resp.rs
82.9% <0.0%> (-6.7%)
:arrow_down:

src/proto/mod.rs
69.4% <41.3%> (-10.1%)
:arrow_down:

src/proto/batch/cmd.rs
0.0% <0.0%> (ø)

src/tracker/mod.rs
13.5% <13.5%> (ø)

... and 1 more


Undefined node switches screen to error screen

If an undefined node is referenced in "edge" section, screen is switched to an error screen causing work to be lost:
Example:
{signal: [
{name: 'sig_a',       wave: 'p......'          , period:1          , node:'ab.'         }
],
edge: [
'a~c'
]
}

(c is not a defined node)

Should be fixed in v0.11.2


Feet dsl update

@feet without arguments returns an empty Vector{StockAndFlow0}.  Fixed feet and foot so they return errors, as opposed to causing an error in the preprocessing stage of replacing with macro.

Note, I merged nstratify here, then updated.

...wrong branch.


Diff Context Provider Not Working When 'disable_indexing' is Set to True

Before submitting your bug report

[X] I believe this is a bug. I'll try to join the Continue Discord for questions
[X] I'm not able to find an open issue that reports the same bug
[X] I've seen the troubleshooting guide on the Continue Docs

Relevant environment info
- Continue: v0.7.23
- IDE: VSCode 1.84.2

Description
The issue appears when the user sets disable_indexing to true, causing the diff context provider to malfunction. The first problematic commit was identified as 08358a1b, part of v0.3.10. The error message from the continue.log file differs slightly from the one the user currently receives in the latest version. Since v0.3.13, the user has been seeing the error messages as displayed in the Log Output at the end of this issue report.

log output for v0.3.10

[2023-12-02 06:03:29] [CRITICAL] Error handling message: Traceback (most recent call last):

  File "server/continuedev/server/gui.py", line 46, in message

  File "server/continuedev/server/protocols/gui.py", line 73, in handle_json

  File "server/continuedev/core/context.py", line 418, in get_context_item

ValueError: Context provider with title diff not found

To reproduce

modify your config.json by setting disable_indexing to true
open VSCode and type @diff

you might need to add { "name": "diff" } to context_providers if it's not already there.

notice the spinner never stops

check the logs (see below)

Log output
[2023-12-02 07:44:50] [CRITICAL] Error handling message: Traceback (most recent call last):

  File "server/continuedev/server/gui.py", line 47, in message

  File "server/continuedev/server/protocols/gui.py", line 62, in handle_json

  File "server/continuedev/core/context.py", line 464, in get_context_item

  File "server/continuedev/plugins/context_providers/diff.py", line 59, in get_item

server.continuedev.core.main.ContinueCustomException

@LangLangBart Thanks for sharing. Looks likely related to a new bug where diff shows up under the @ files dropdown.

@LangLangBart Finally solved, but as a byproduct of a large refactor that we did this week. If you try the latest pre-release you'll notice that there is no more dependency on the Continue Python server, and @ diff is working very reliably.
Indexing has been removed temporarily until we redo it in the next couple weeks, but I think any overlap between that and diff is very unlikely, so going to go ahead and close this issue

and @ diff is working very reliably.

Yes, it is. I tested it with the 0.7.54 Pre-Release version, but my custom slash command for generating a commit message no longer appears, similar to issue #632. I will see if I also need to update my config.py. If that doesn't resolve the issue, I will create a new bug report.


Move to stable channel + bump to 4.13

Ref. https://issues.redhat.com/browse/ART-5087

Test build:

https://brewweb.engineering.redhat.com/brew/buildinfo?buildID=2263092
https://brewweb.engineering.redhat.com/brew/buildinfo?buildID=2263153

/assign @ingvagabund

@locriandev would you please set the PR against the master branch?

/retest-required

https://github.com/openshift/cluster-kube-descheduler-operator/blob/master/manifests/art.yaml#L10-L11 needs to be updated as well from 4.9 to 4.10.

Just the last change under art.yaml, the rest looks good
/approve

Just the last change under art.yaml, the rest looks good /approve

Done in https://github.com/openshift/cluster-kube-descheduler-operator/pull/279/commits/61810bda962947390e09bcb924e3f00ad80bbad3

/label tide/merge-method-squash
/lgtm


Error: getaddrinfo ENOTFOUND

I'm trying to execute your example and the result is:
Using parameters:
{
  "local_host": "localhost",
  "local_port": 65000,
  "remote_host": "removed",
  "remote_port": 80,
  "usr": "removed",
  "pwd": "removed",
  "as_pac_server": true
}
Failed to listen at localhost:65000
Error: getaddrinfo ENOTFOUND

It seems localhost is not in your etc hosts. Try<IP_ADDRESS> please


cannot create 'services' entities when not using a database

Hi
When I add new service to konga an error arise :
" cannot create 'services' entities when not using a database".

@saharrost , that is true. When using Kong with declarative configuration, Konga can only be used as a visual representation tool.
This is how it is intended to be.

So with declarative configuration  I can not use Konga for adding services ?

Correct, because then, Kongs configuration is static and cannot be changed per se.

Thanks. I think I should use Kong with database

I have the same issue. So please guide me how can I create a service?
I'm following the intruction in Kong website with k8s is
kubectl apply -f https://bit.ly/k4k8s

I have the same issue too.

I have the same issue


MDATPAnalyzer misconfigured

Hello, the "MDATPAnalyzer" tool is preconfigured with a list of internet endpoints for European customers. It doesn't not appear to be correct for American customers.
These are the only endpoints included, which is dramatically deficient.
https://winatp-gw-neu.microsoft.com/test
https://winatp-gw-weu.microsoft.com/test
https://settings-win.data.microsoft.com/qos
https://eu.vortex-win.data.microsoft.com/health/keepalive
http://ctldl.windowsupdate.com/msdownload/update/v3/static/trustedr/en/disallowedcertstl.cab
https://eu-v20.events.data.microsoft.com/ping

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 83207fc9-2c91-eb07-4237-6bb1f42e3778
Version Independent ID: 5db33cf3-2dcb-bb33-a252-3a13ca9737f9
Content: Configure machine proxy and Internet connection settings
Content Source: windows/security/threat-protection/microsoft-defender-atp/configure-proxy-internet.md
Product: w10
Technology: windows
GitHub Login: @mjcaparas
Microsoft Alias: macapara

@officedocsbot assign @jvsam

@SwiftOnSecurity. Two days before I checked mdatp tool,  i found that there sites are configured for United States region

Sorry for the misunderstanding, I think I may have downloaded an old version. This is fixed.

@SwiftOnSecurity
The issues section of this repository is intended for product documentation issues only.
Please consider opening a product support ticket by the following link below for your problem so that it gets resolved quickly.
Windows 10 Support
Thank you.


Seems the facebook auth popup doesn't close when auth completes

Affects 3.0.0-rc3 and works as expected in 3.0.0-rc2

After facebook auth the popup remains open and redirected to http://localhost:3000/_=_?code=<oauth code>
Nothing special in my configuration I spuspect:
{
	baseUrl: '/api',
	providers: {
		facebook: {
			clientId: facebookId,
			scope: facebookScopes
		}
	}
}

i know. facebook changed that. PR is on the way

@icanhasjonas i made a dev build with a fix. not 100% if it works for you. hope so. you can try with
jspm i aurelia-authentication=github:spoonx/aurelia-authentication@dev
will need aurelia-api@rc3


DTLS support

The lib seems to support it https://developer.apple.com/reference/security/1654508-secure_transport

I believe it already is? https://github.com/sfackler/rust-security-framework/blob/master/security-framework/src/secure_transport.rs#L117

How, did see it, it's not in the doc https://sfackler.github.io/rust-security-framework/doc/v0.1.9/security_framework/secure_transport/enum.ConnectionType.html

I must have forgotten to build the docs with the OSX_10_8 feature.


Docker Image to support 0.3.0

I have been unable to use the docker image:
docker.pkg.github.com/pyansys/dpf-core/dpf:v2021.1
with DPF-Core 0.3.0
However it works fine with 0.2.1
I take this to indicate that the Docker image is on Ansys 2021R1 (as the name suggests?)
Is this correct, and if so can we get an updated Docker image?
Thanks,
Hunter

hi @HunterAtApex I'll check and get back to you.
Thanks
Ramdane


Bug: Can't remove OTG and go back to vanilla worldgen

I got tired of the immense lag and wanted to switch back to using default Minecraft worldgen.  Imagine my surprise when the game wound up hanging while trying to make a new world with a console error referencing OTG, which I'd removed.  I've now put it back in and am just going to use a "default" setup, but the higher memory overhead is the entire reason I tried to switch back.  Did I miss a coremod or something?

Hey Carnaxus, it should be possible to use worlds created with OTG without OTG installed. What's the console error when you try to load a world without OTG?

Make sure you have removed OTG-Core.jar from your mods folder (its a core mod that OTG unpacks when it runs for the first time).


⚠ V2RAY 🇻🇳 Vietnam VN 1 has degraded performance

In abcd941, V2RAY 🇻🇳 Vietnam VN 1 (https://vnv-1.openv2ray.com/) experienced degraded performance:

HTTP code: 200
Response time: 11303 ms

Resolved: V2RAY 🇻🇳 Vietnam VN 1 performance has improved in 35aa52b.


Allure history disappeared after testless/buildspec build

I ran into a problem that after a build that does not contain test cases (Broken) or build sepcs Allure does not display the history.
Example:

Allure report of 490 build doesn't contain history.
Seems that root cause in allure-bamboo plugin:
When build is done allure trying to define last allure report with history and it implemented by calling URL
format("%s/plugins/servlet/allure/report/%s/%s/history/%s",
                getBambooBaseUrl(), planKey, buildId, fileName)

if returned 200, it means that build contain history and allure will copy artifacts from build, but if build is testless allure still returns 200 on above URL and trying to copy history from build without history.
Allure-bamboo plugin version: 1.14.0

The same issue occurs when deleting plan run results. The tab 'Allure Report' isn't shown but the report is generated and accessible via the URL

Please try 1.19.1 version


Initialise data.json

The data.json is now initialised when it does not exist. Theres also some stuff with tabs vs. spaces and the character line limit. (Sorry but this is v. important to me)

He fix the boi
<3


Fixing WinSCP SourceForge Address!

Fixing WinSCP SourceForge Address! lukesampson/scoop#2071

SourceForge problems seem to be solved


[Scheduled Maintenance] Site down for Maintenance

Additional context
Migrating the servers to another data center.

The servers are migrated successfully! Closing this maintenance window 🏄🏼♂


Generating a SAS for a DataLake Blob Directory or file

I followed the steps outlined in https://github.com/Azure/azure-sdk-for-net/issues/22896 to generate SAS for a directory and always get the below exception. In Azure side everything is open. I'm not sure what changes the name of my DFS endpoint https://gopdfsfoo.dfs.core.windows.net/ to gopblobfoo.dfs.core.windows.net.
On a separate note, how can I generate SAS for a file? The use case is that in our SaaS service we will be storing jpg files of different customers. I would like to generate SAS token on file basis for the web & mobile client to fetch the files directly instead of proxy through us. If this is not possible, I can organize using directories.
One or more errors occurred. (Retry failed after 6 tries. Retry settings can be adjusted in ClientOptions.Retry. (No such host is known. (gopblobfoo.dfs.core.windows.net:443)) (No such host is known. (gopblobfoo.dfs.core.windows.net:443)) (No such host is known. (gopblobfoo.dfs.core.windows.net:443)) (No such host is known. (gopblobfoo.dfs.core.windows.net:443)) (No such host is known. (gopblobfoo.dfs.core.windows.net:443)) (No such host is known. (gopblobfoo.dfs.core.windows.net:443)))
Code below:
        public static async Task WTH(DataLakeSasPermissions permissions)
        {
            // client authenticated with a Shared Key (connection string contains the shared key)
            DataLakeDirectoryClient directoryClient = new DataLakeDirectoryClient("redacted connection string" , "gop-filesystem2", "gop-dir");
            // generate the SAS with setting the permissions and the expirey time
            Uri sasUri = directoryClient.GenerateSasUri(DataLakeSasPermissions.All, DateTimeOffset.UtcNow.AddDays(1));

            DataLakeDirectoryClient sasDirectoryClient = new DataLakeDirectoryClient(sasUri);

            // Act
            await foreach (PathItem pathItem in sasDirectoryClient.GetPathsAsync())
            {
                // Just make sure the call succeeds.
                Console.WriteLine(pathItem.Name);
            }
        }

Workaround has worked for the past few months. Please go ahead and close this ticket.


Usage of from_utf8_lossy is misleading

In the Rust starter, we're suggesting that the user use from_utf8_lossy on a packet that we know will contain non utf8 characters:
https://github.com/codecrafters-io/build-your-own-dns-server/blob/f24e245fffc37f69d98ad959ec007701227dbe2f/compiled_starters/rust/src/main.rs#L15
Is there another method we can use for the starter here that isn't misleading?

I don't recall that _received_data  is used, and I think that if the data needs to be visualized, &[u8] is actually pretty usefully printable with the debug representation, e.g.:
println!("Incoming data: {:?}", &buf[0..size]);

Does that work?

I think we can just safely remove the line - @sherubthakur thoughts?

@rohitpaulk I plan to remove this line.
@pcn I agree data visualization is useful, however I will let users decide if they want to do it or not. So I will just print some bare minimum. I hope that makes sense.


Fix performance and other issues reported by Codacy

replace std::string::substr by std::string::resize
initialize variables in initialization list
fix several format strings

I think it is possible to use in-class initializers instead of repeating vars in ctor.
struct x {
	int *ptr{};
};

Instead of x::x() : ptr{nullptr} {}

Also it is 2025 soon, I would propose to allow some c++20/23 features.
What are tesseract compiler requirements?
Support ubuntu20.04 lts gcc?


Transpiling uniswap v3. warp lib missing associated cairo imports

I am transpiring uniswap v3 and the generated code expects the following cairo imports which are missing from warp_lib.
from warplib.maths.int_conversions import warp_int8_to_int128
from warplib.maths.negate import warp_negate128
from warplib.maths.add import warp_add128
from warplib.maths.add_signed import warp_add_signed256
from warplib.maths.ge_signed import warp_ge_signed256
from warplib.maths.sub_signed import warp_sub_signed256
from warplib.maths.le_signed import warp_le_signed256
from warplib.maths.mul import warp_mul256

run yarn warplib before transpiling a contract in the project home folder.


DjangoCMS Toolbar doesn't show up without adding ?edit in the URL

Description
I have done djangocms setup using djangocms-installer . once my site is up I try to access it using http://domainname:8000/ and I can see the toolbar. But when I share the same URL with someone else , they can not see the toolbar and cannot edit as well anything .
I have added CMS_INTERNAL_IPS = []  and ALLOWED_HOSTS = ["*"] in settings.py . I am handling static and media files like below
STATIC_URL = '/static/'
MEDIA_URL = '/media/'
MEDIA_ROOT = "/apps/static_media_files/media"
STATIC_ROOT = "/apps/static_media_files/static"
STATICFILES_DIRS = (
os.path.join(BASE_DIR, 'apps', 'static'),
)
I am using AWS RDS postgress as my database.
after adding CMS_INTERNAL_IPS , if I add ?edit in the url , It works as expected . http://domainname:8000/en/?edit. I can see toolbar.
I want to know is there any possible ways that I can remove dependency of adding ?edit in the URL and it shows toolbar.
## Steps to reproduce

Install djangocms-installer.
Run djangocms apps
create directory apps/static_media_files
Run python manage.py collectstatic
Run python manage.py createsuperuser
Run gunicorn --bind <IP_ADDRESS>:8000 apps.wsgi
wsgi.py file
"""
WSGI config for apps project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/howto/deployment/wsgi/
"""

import os

from django.core.wsgi import get_wsgi_application

# from django.apps.wsgi import get_wsgi_application
from dj_static import Cling

# application = Cling(get_wsgi_application())

os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'apps.settings')

application = get_wsgi_application()
application = Cling(get_wsgi_application())

Access URL http://IP:8000 and create some pages . Once done ask other user to access same URL  . User will not be able to see the toolbar.  But once they add ?edit , http:IP:8000/en/?edit , they will be able to view toolbar.
Expected behaviour
I expect URL to work in the same way for everyone . It should show toolbar to users.
Actual behaviour
Other users are not able to view the toolbar if they don't hit url by adding ?edit in the end of the URL.
Additional information
dj-database-url==0.5.0
dj-static==0.0.6
Django==3.0.11
django-classy-tags==2.0.0
django-cms==3.7.4
django-filer==2.0.2
gunicorn==20.0.4
psycopg2==2.8.6

@gauravdutt13 This is by design, we wouldn't want a site visitor to know that the toolbar exists, this can only happen if the admin user is already logged in. The toolbar should show if the user is already logged in and they open the link.

I have somehow forced the url to redirect to /?edit which solved my issue. I made changes in base.html which enables a login button for the users. they can login and can access the toolbar.
But Now I have integrated this setup with ADFS. when I try to login with some users to the CMS site, again the toolbar is getting disappeared . Can you tell me what settings to be enabled for admin users in ADFS related settings so that when they login to CMS page , they get to see the toolbar .


[SMALLFIX]Change Running-Alluxio-Fault-Tolerant-on-EC2.md

Change Running-Alluxio-Fault-Tolerant-on-EC2.md

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Alluxio-Pull-Request-Builder/2883/
Test PASSed.


feat: react-resizable add transformScale

after PR https://github.com/STRML/react-resizable/pull/115 merged
should upgrade react-resizable version and merge this PR
Please contact me if any questions.

Thanks!

@STRML pls upgrade dependencies lib react-resizable to 1.10.1, and upgrade this repo version, thanks!


Incident management: add create time

Implements https://github.com/ooni/backend/issues/752

@majakomel 1.0.84~pr764-198 deployed on -test as discussed

1.0.84~pr764-201 deployed on -test and e2e tested successfully


Question: Parallel Scheme

Is your feature request related to a problem? Please describe.
Given I have 2 feature files, having 2 scenarios each
And each scenario has 10 examples each (total 40 unique examples)
What would happen when I run behavex in parallel-scheme=scenario and parallel-scheme=feature?
Context: Im trying to upgrade from behavex v1.6 to the latest version.
I ran some local benchmarking and realized the following:

in v1.6, parallel-scheme=scenario works on scenario level. im guessing if you have 1 feature having 2 scenarios with 10 examples each, then 2 threads will be spun up to run the tests, 1 for each scenario. these threads would then work through each example in the scenario.
in the latest version, it would seem like parallel-scheme=scenario works on example level. im guessing if you have 1 feature having 2 scenarios with 10 examples each, then 20 threads will be spun up to run the tests, 1 for each example - yielding a much faster execution time.

Now i want to confirm whether if I use parallel-scheme=feature on the latest version:

would it spin up 2 threads - 1 for each feature as given on my initial example at the top of the post?
or would it spin up 4 threads - 1 for each scenario inside the feature files

I'm raising the question purely to understand how it works - because i would think parallel-scheme=scenario should work on scenario level and not on example. having the ability to run it on example level is very useful but can introduce undesirable issues when we dont know how it works (rate limitting issues during api calls for instance)
i feel the current behavior of  parallel-scheme=scenario is more fitting for  parallel-scheme=example but that's a topic for another day perhaps.
For now, really just want to understand to behavior.

Hi @iamkenos. You did very good questions :)
Regarding parallel-scheme=scenario you are right, in latest version, the examples that are part of a scenario outline are also executed in parallel, and this differ to the behavior in v1.6.
The change was done based on requirements from users to split the examples across the parallel sessions. However, considering your question and your expectations, we might need to consider another execution argument to run the scenario outline examples in serial mode or in parallel. That implementation would not be easy at all to implement, as we cannot change the current behavior of the parallel-scheme=scenarios (that is currently involving running the examples in parallel), so we need to analyze if we can add another argument for it.
Going over parallel-scheme=feature, each parallel process will pick up a feature file, and everything within the feature file will run in serial mode in the assigned process. So, your first assumption ("would it spin up 2 threads - 1 for each feature as given on my initial example at the top of the post?") is the correct one.
Also, your questions

thanks for clarifying @hrcorval !


GitHub Actions CI workflow is currently failing

E.g., the logs at gh run view --job<PHONE_NUMBER> --log | cat -n show that packages loader and types are currently failing (lines 589 and 48360), but they don't mention any individual tests that actually failed.
What's going on here? Why are the tests failing? Why aren't there additional details logged?
Am I running into resource limits with GitHub Actions? (What are those limits? How do I tell how close I am to hitting them?)
How can I reproduce the failures locally?

Changing the workflow to use go test -short seems to have worked around the test failures. Leaving this issue open until I have answers to my questions above.

It looks like amigo/loader.TestStdlib and amigo/types.TestStdlibSSA time out in the CI runner. That may explain why -short fixes them. I don't think the problem is a hard limit in GitHub Actions, since the tests on package types ostensibly run strictly after those on package loader, but I'm not sure why it doesn't print that the tests timed out.

I did notice when running the tests locally, they take a lot of memory and started to swap. I wonder if they're getting OOM killed or something on GitHub's runners, and go test doesn't report that?


analyse_request is so limited.

analyse_request function in networklib.py can only handle three types of requests which are all hardcoded. also the delimiter ('|') is not optional and can not be changed.
this function should be refactored in a way that can handle every possible request for the value of any variable specified by the user.
this can be done in a way that uses eval function but I hate eval and exec so I will probably implement it in a way that the function gets a dictionary with bytes objects as keys and functions as values. the function will act like getters for specified variable.
for example assume that the user wants the server to be capable of sending the width of the window. in this case the dictionary that will be passed to analyse_request and the function that is given as the value for "WINW" should be something like this:
def get_winw():
    return ms.WINW
{b"WINW": get_winw}

now the analyse_request function gets a dictionary as a parameter and uses it's values to create the response.
it calls the functions which will return bytes objects and concatenates those bytes objects and sends them.


additional handling in nb convertor

updated:

added %%latex magic, to handle beaker TeX evaluator
added handling of the section with different levels.
changed latex mime method, a user can pass latex without $ and it will still render correct result.

handle tags like this: https://github.com/twosigma/beakerx/issues/5106

removed %%latex magic and added tags handling

thx -- python style is 4 spaces for indentation.


Validate CORTX integrations

We have a list of CORTX integrations here.
These are community created integrations and many still need validation and testing
You can setup CORTX here.
Choose an integration and then add a "Tested-by" section when you have completed the testing to mark that you have tested.
E.g. https://github.com/Seagate/cortx/tree/main/doc/integrations/AWS_EC2
Or if you have a problem with the integration please raise an issue here.

For the convenience of the Seagate development team, this issue has been mirrored in a private Seagate Jira Server: https://jts.seagate.com/browse/CORTX-29165. Note that community members will not be able to access that Jira server but that is not a problem since all activity in that Jira mirror will be copied into this GitHub issue.

Closing as an obsolete


Adjust malloc size for prompt_tokens

This pull request addresses a potential memory optimization when calling the bpe_encode function.
The function currently reserves memory for the prompt_tokens array using a size derived from config.seq_len, independent of the actual size of the prompt. This could lead to a situation where the allocated memory size is either too large (leading to inefficient usage of memory) or even too small if the prompt has more characters than config.seq_len (potentially resulting in buffer overflow).
This PR proposes to change the malloc call from

(int*)malloc(config.seq_len * sizeof(int)) to
(int*)malloc(strlen(prompt) * sizeof(int))

This ensures that the allocated memory is directly proportional to the size of the prompt.

2048*4 is 8kb, model takes more space than this temporary buffer. Try tokenising tokenizer.py and comparing it's size. This is just useless...

thank you, i agree, esp the concern w.r.t. potential buffer overflow.


Support search parameters

At present it is not possible to retrieve entries by content type as it is not possible to pass the search query param to the http client. It is also not possible to pass the skip or limit query parameters. So fetchAll does not fetch all, it only fetches 100, and there is no way to get at the rest unless you already know their ids.

@RobeEW :+1: I'll try to add support for that soon.

This has been merged, I will release 0.9.8 today so you don't have to wait for 1.0, will post here once it is out.

Pushed to SonaType, so 0.9.8 should be available via Maven Central within the next 10 minutes.

Great, thanks!

@RobeEW np, thanks for the report!


Process different size of text with CNN

Hi , I'm new to keras and I want to process different size of sentences for learning a document embedding in CNN. I used zero-padding and mask_out in Embedding layer, but layers after Embedding layer doesn't support masking. Is there any way to solve it?
inputs = Input(shape=(1,max_len),dtype='int32')
x= Embedding(vocab_size, dim,weights = GloVe, mask_zero = True, input_length=max_len)(inputs)
x = Reshape((1,max_len,50))(x)
x = Convolution2D(nb_filter, n_gram, dim,init='glorot_uniform', activation='linear',border_mode='valid', subsample=(1,1))(x)
x = MaxPooling2D(pool_size=(2,1))(x1)
x = Flatten()(x)
out = Dense(10)(x)
Conv_sen= Model(inputs,out)
Conv_sen is a shared model, I want to use it to precess every sentences in a document for learning their own sentence embedding. The following merge will concatenate them to form a document embedding.
Inp_list = [None] * len(list_of_sentence)
for i in range(len(list_of_sentence)) :
Inp_list[j] = Input(shape=(1,max_len),dtype='int32')
sen_emb[j]= Conv_sen(Inp_list[j])
concat = merge(sen_emb, mode = 'concat')
By the way, the max words in a sentence is about 250, and the average length is about 30. Is it ok to use zero padding for every sentence?
Thanks.
Please make sure that the boxes below are checked before you submit your issue. Thank you!

[x] Check that you are up-to-date with the master branch of Keras. You can update with:
pip install git+git://github.com/fchollet/keras.git --upgrade --no-deps
[x] If running on Theano, check that you are up-to-date with the master branch of Theano. You can update with:
pip install git+git://github.com/Theano/Theano.git --upgrade --no-deps
[x] Provide a link to a GitHub Gist of a Python script that can reproduce your issue (or just copy the script here if it is short).

You can use bucket strategy with train_on_batch or fit_generator. It is necessary that your batches are homogeneous. Also, you have to set max_len=None in your model.
Pay attention on timestep size involved in conv layer. Depending the border_mode selected you may have some problems.
Btw, you can use conv1d instead of conv2d :-). See this example: https://gist.github.com/mtreviso/7430af6d3c294c204dd2be1737ed284c

Thanks, @mtreviso.  I can't do as the example, because the order of sentences matters.

@McVilla: if the order matters, then you can feed one sentence per batch using train_on_batch. It will be slow, but viable.

This is a more fundamental problem with Keras's sequence handling. The successful embed->conv models I've seen seem to just treat the padding character as a usable vector value and set mask_zero=False. Not sure how much is lost by that hack.

As far as I understand, this is still an open problem with Keras.


"make install" ends with some errors

I wanted to update my working tesseract (version from August) by pulling and compiling the latest version but make install ends with some errors:
$ sudo make install
...
Makefile:333: recipe for target 'install-dataDATA' failed
make[3]: *** [install-dataDATA] Error 1
make[3]: Leaving directory '/work/usr/local/src/tesseract/tessdata/configs'
Makefile:403: recipe for target 'install-am' failed
make[2]: *** [install-am] Error 2
make[2]: Leaving directory '/work/usr/local/src/tesseract/tessdata/configs'
Makefile:461: recipe for target 'install-recursive' failed
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory '/work/usr/local/src/tesseract/tessdata'
Makefile:483: recipe for target 'install-recursive' failed
make: *** [install-recursive] Error 1

$ tesseract --version

tesseract: error while loading shared libraries: libtesseract.so.4: cannot open shared object file: No such file or directory

Full output see http://dpaste.com/1AMP4MA.txt
Please can you help?

I think it was due to a version conflict on my debian 8 with a packaged-tesseract. After removal of the packaged tesseract, it works (but make install errors remain).

install-dataDATA
This indicates problem with configuration. How did you configured  build?

this is my standard procedure:
make clean
git pull
./autogen.sh
./configure --enable-debug
make
sudo make install

Extract from your build protocol:
make[3]: Entering directory '/work/usr/local/src/tesseract/tessdata/configs'
make[3]: Nothing to be done for 'install-exec-am'.
 /bin/mkdir -p '/usr/local/share/tessdata/configs'
 /usr/bin/install -c -m 644 inter makebox box.train unlv ambigs.train api_config kannada box.train.stderr quiet logfile digits hocr tsv linebox pdf rebox strokewidth bigram txt '/usr/local/share/tessdata/configs'
/usr/bin/install: „inter“ und „/usr/local/share/tessdata/configs/inter“ sind die gleiche Datei

So you are building in /work/usr/local/src/tesseract and want to install to /usr/local. The installer says that /work/usr/local/src/tesseract/tessdata/configs/inter and /usr/local/share/tessdata/configs/inter are the same file and fails therefore. Do you have a symbolic link somewhere (either in your build directory or in the installation directory) which connects both directory hierarchies?

Yeah, you are right. I had indeed such a link when I build the last version !
I will now re-compile and report here, and close, if it solved.
Nevertheless, perhaps the "make" could be improved to catch (capture?) such a user mistake.

Well, make did catch that mistake and said that the installation failed because for some files source and destination were identical ("sind die gleiche Datei").

I reported that issue, and close it now. Issue solved by removing my softlink for tessdata.

root@scube014:~/qingy-fork-master/src/libraries# make clean
Making clean in libraries
/bin/bash: line 20: cd: libraries: No such file or directory
make: *** [clean-recursive] Error 1
pls find this problem .

make install
if [ -L /usr/include/sound ]; then
rm -f /usr/include/sound;
ln -sf /media/ss/DATA/SOFTWARE/Rt-Linux-HDaudio-5.18/alsa-driver-RTv5.18/alsa/include/sound /usr/include/sound;
else
rm -rf /usr/include/sound;
install -d -m 755 -g root -o root /usr/include/sound;
for f in include/sound/.h; do
install -m 644 -g root -o root $f /usr/include/sound;
done
fi
install: cannot stat 'include/sound/.h': No such file or directory
Makefile:188: recipe for target 'install-headers' failed
make: *** [install-headers] Error 1

similar problem with my alsa make install
make install
if [ -L /usr/include/sound ]; then
rm -f /usr/include/sound;
ln -sf /media/ss/DATA/SOFTWARE/Rt-Linux-HDaudio-5.18/alsa-driver-RTv5.18/alsa/include/sound /usr/include/sound;
else
rm -rf /usr/include/sound;
install -d -m 755 -g root -o root /usr/include/sound;
for f in include/sound/.h; do
install -m 644 -g root -o root $f /usr/include/sound;
done
fi
install: cannot stat 'include/sound/.h': No such file or directory
Makefile:188: recipe for target 'install-headers' failed
make: *** [install-headers] Error 1

I got the same error.
just preceded sudo to make install
then boom

@vee-varun : can you be more specific? What kind of error you get, what version of code you used, of etc?

I have same errors.
Not "make install", but "sudo make install" in terminal.
Then i have solved.

I would like to add that I had the same problem on my system

OS: Manjaro 20.2.1 Nibia
Kernel: x86_64 Linux 5.10.2-2-MANJARO

When installing bitcoin-0.21;
To solve it I had to install the new version of boost $ pamac install boost=1.75.0-1

I would like to add that I had the same problem on my system

OS: Manjaro 20.2.1 Nibia
Kernel: x86_64 Linux 5.10.2-2-MANJARO

When installing bitcoin-0.21;
To solve it I had to install the new version of boost $ pamac install boost=1.75.0-1


error when arkmanager update

When I run an update, i have this :
My script is in /home/steam/steamcmd, i have configure .cfg
arkmanager.cfg :
# config SteamCMD
steamcmdroot="/home/steam/steamcmd"                                 # path of your steamcmd instance
steamcmdexec="steamcmd.sh"                                          # name of steamcmd executable
steamcmd_user="steam"                                               # name of the system user who own steamcmd folder

# config Server
sessioname=YourLinuxSessionName
arkserverroot="/home/steam/steamcmd"                                     # path of your ARK server files (default ~/ARK)
arkserverexec="ShooterGame/Binaries/Linux/ShooterGameServer"        # name of ARK server executable

ERROR :
arkmanager update
/usr/bin/arkmanager: ligne 70 : [:  : nombre entier attendu comme expression
The server is already stopped
Redirecting stderr to '/root/Steam/logs/stderr.txt'
[  0%] Checking for available updates...
[----] Verifying installation...
Steam Console Client (c) Valve Corporation
-- type 'quit' to exit --
Loading Steam API.../home/buildbot/buildslave/steam_rel_client_linux/build/src/clientdll/applicationmanager.cpp (3030) : Assertion Failed: CApplicationManager::GetMountVolume: invalid index
/home/buildbot/buildslave/steam_rel_client_linux/build/src/clientdll/applicationmanager.cpp (3030) : Assertion Failed: CApplicationManager::GetMountVolume: invalid index
/home/buildbot/buildslave/steam_rel_client_linux/build/src/clientdll/applicationmanager.cpp (3181) : Assertion Failed: m_vecInstallBaseFolders.Count() > 0
/home/buildbot/buildslave/steam_rel_client_linux/build/src/steamconsole/../common/steam/client_api.cpp (393) : Assertion Failed: ClientAPI_Init(GlobalInstance): GetIClientRemoteControlManager returned NULL.
FAILED.

Thank you for your responce

arkserverroot="/home/steam/steamcmd"

this is terribly wrong, you must specify the folder where the ARK server is stored, not the folder where steamcmd is stored

The "nombre entier attendu comme expression" error (en_US equivalent: "integer expression expected") is printed because you are attempting an update without first having performed an install.
Second, it looks like you have $HOME set to /root, which is not accessible by a normal user, which is likely the reason you are getting the assertion failures from steamcmd.

Fez : my game is in /home/steam/steamcmd/shooter...
Klight : yes i have create a New installation for this script
Yes ok its in root $home if i start with root its thé same

that's bad, steamcmd and the ARK server should be in two different folders. It can cause problems when steamcmd tries to update because it have to touch the same folder of the steamcmd executable.
steamcmd should be never ran as root, so you should not use the root folder.
If you are not willing to follow the best practice we can't help you.

It you start it as root, then it should be telling you "This script must NOT be run as root".
It looks like you switched to the steam user using something like su -p steam.  Drop the -p, and su should set the correct home directory (/home/steam).

Ok,
I create new directory :
/home/steam/cmd
/home/steam/ark
I configure .cfg with new directory
I use command with steam user

arkmanager install
and
arkmanager update

and commands finish with success
Thanks for your help, good deamon :D


Add lib.trivial.orElse, and tests for lib.trivial.mapNullable

Description of changes
This is a new function orElse, which aims to make nullable mapping through pipes cleaner.
The reason behind the argument ordering, is ease of use with lib.pipe, and ease of currying in general. It's consistent with mapNullable, and fits it well:
lib.pipe null [
  (mapNullable (x: x + 1))
  (orElse 1)
];

You can find multiple places where it might be worth using, by running nix-shell -p ripgrep --command "rg 'if .* [!=]= null then'" in nixpkgs.
Tests for mapNullabe were also added, since they were pretty similar.

Things done

Built on platform(s)

[ ] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[X] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[X] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
23.11 Release Notes (or backporting 23.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[X] Fits CONTRIBUTING.md.

Sounds useful! I'm not 100% sure about the naming, orElse isn't bad, but here's some other ideas:

mapNullTo: I like this one, would be even better if mapNullable would be named mapNonNull though
fromNullable: Matching Haskell
ifNullThen

fromNullable: Matching Haskell

That's funny.
First thing I did before starting on this PR, was to search hoogle with the type signature to make the names match, and I found orElse. But I went ahead without reading its description, which states that it's actually the flipped version of fromMaybe.
FWIW I've seen Java's Optional, Scala's Option also calls it orElse and getOrElse. I feel like the name flows well in the pipe example, but the naming doesn't really bother me that much. Open to change it.

Hehe I see! Hmm so the orElse from Haskell has the opposite argument ordering than the orElse here, but I don't think using fromNullable is that great, it's not obvious what it does.
My favorite then is mapNullTo, I'll also ask @roberth for an opinion on this.

lib.pipe null [
  (mapNullable (x: x + 1))
  (orElse 1)
];

Please write for the reader. The following leaves zero questions as to what it means, and it's an order of magnitude faster.
x: if x == null then 1 else x + 1

mapNullable

Nullable is not a lawful functor, so I wouldn't call that map. Nullable t is very distinct from Maybe t/Option[T], being backed by a union type rather than a sum type. Concretely this means that Just Nothing is not representable, so information is lost, assumptions are broken and you shouldn't use it to program anything non-trivial.
So for trivial programs, you're better off writing out the if-then-else.
And for non-trivial programs, you should also avoid it because you don't want your readers to make assumptions about how "map" functions behave.
My counterproposal is to remove mapNullable. That way we don't need to test it either.

mapNullTo

No! It's not the values that get mapped when we say map! It's the function on items that is mapped to a function on lists, etc.

The following leaves zero questions as to what it means

I agree with this, but only for a first time reader. After having read the definition (or just understood) the function once, it's IMO easier to both read and use afterwards. And I would make the argument that this is the case for large parts of lib as well. We could just unwrap a bunch of abstraction to make it easier for first time readers, but this sounds like a bad idea in the long run.
Personally, I feel like this is both common enough and the expansion is bothersome enough to read in the middle of something nontrivial that it is worth abstracting, but I know we disagree about that.

and it's an order of magnitude faster

I don't get what you mean here. Faster to write, faster to understand, faster to execute?

No! It's not the values that get mapped when we say map! It's the function on items that is mapped to a function on lists, etc.

I'm not a 100% stable on the formal mathematics behind this so I can't really comment. But do you know of another word to use when talking about mapping values rather than functions? Something like applying, transforming or imaging?
For both correctness and readability, maybe we could use something "less mathematical" like replaceNullWith?

My counterproposal is to remove mapNullable. That way we don't need to test it either.

What do you think @infinisil?

lib.pipe null [
  (mapNullable (x: x + 1))
  (orElse 1)
];

Please write for the reader. The following leaves zero questions as to what it means, and it's an order of magnitude faster.
x: if x == null then 1 else x + 1

After taking another look, I have to agree with @roberth here. The second code sample is a bunch more efficient because it doesn't have to do any function calls, whereas the first one calls 3 functions, Nix notably doesn't do any inlining to make this faster, each function call does have a cost. You could use NIX_SHOW_STATS=1 for some measurements.
And it's also easier to read, instead of having to understand what pipe, mapNullable and orElse do, one just needs to understand if statements. Arguably if statements are a bit harder to write and format though (NixOS/rfcs#101 should improve that).
I can imagine it making code that already uses lib.pipe easier though. It would be good to have a bunch of real-world code use orElse so we could see if it's really necessary.

You could use NIX_SHOW_STATS=1 for some measurements.

That's nice to know!
Then I think I'll be closing this PR. Should we open an issue or something about the deprecation of mapNullable?

I'm not sure if it's worth bothering deprecating mapNullable for now. It might not be that useful, but it doesn't bother anybody either. I do remember using it myself a couple times.

calls 3 functions

Make that 10 calls.

lib.pipe
lib.pipe null
mapNullable
x: x + 1
orElse
foldl' (curried primops are a bit more efficient than curried lambdas, so I'll count this once)
reverseApply 2×
reverseApply x 2×

... almost all of which allocate closures (Envs), and there's the unavoidable list allocation as well.


Adding Documentation

Adding some documentation as per Discord (#jsCT).

Added and completed README.md for now
Added TERMS.md pending changes

Todo: Change all jsCT to ct.js (Rebranded)

@kerbybit; Thoughts?

We're going with a, do what you want, if you get banned, its your fault system for ctjs


Add caching with in-memory support

Add a function to not evaluate the rules again with the same conditions and return the same result.

Duplicate of #48.


3445 refresh token logs

What issue does this PR address?
#3445
Does this PR introduce a breaking change?
No. Just logging verbiage changes.
Please check if the PR fulfills these requirements

[x] The commit follows our guidelines
[x] Unit Tests for the changes have been added (for bug fixes / features)

Other information:
Log output from acceptance tests...
While revoking Access Token:
IdentityServer4.ResponseHandling.TokenRevocationResponseGenerator:Warning: Client implicit denied from revoking access token belonging to Client client
IdentityServer4.Endpoints.TokenRevocationEndpoint:Information: Token revocation complete
While revoking Refresh Token:
Client implicit denied from revoking a refresh token belonging to Client client
IdentityServer4.Endpoints.TokenRevocationEndpoint:Information: Token revocation complete

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

Looks good. Thanks!


namespace: false positif installation

It can happen that sometimes a namespace service install succeed while actually there is not namespace created on the zerodb.

#146 has been fixed we should keep an eye on this one now see if the bug happens again or not.

seems #146 indeed fix the problem. closing


How to accelerate regseg on tensorRT

I tried to use tensorrt with original regseg repository.
However onnx had trouble with torch.split and also torch2trt unable to use with specific tensorrt version.
Please let me know how did you use tensorrt with regseg model when measure the latency.

Hi,
So we are using the Deci platform in order to compile and optimize the runtime performance. You choose there the target HW that you will use, and if it's Nvidia's HW it will compile it using trt.
You can try using the platform and load there your onnx model - https://console.deci.ai/
we can also assist you with deployment issues via Deci community slack channel  - https://join.slack.com/t/decicommunity/shared_invite/zt-1b0pfclld-SEyaCUQxafr~7LWuPM9H~Q

Since RegSeg's original repository saved model as zip file, how did you convert it to onnx?


Getting errors in windows during rum time

i am struggling to run this program from 2 days. every time i ended with different errors so that is why i ended to post my error here
i installed dex-oracle in my Windows 10 using Git Bash and installed Ruby 2.5 from Window Installer Setup and using Android Studio AVD emulator and apk i am using from project Simplify "obfuscated-app"

On the first one, it looks like /data/local isn't writable. Can you push files there? Can you push files to /data/local/tmp?
The second one looks like an invalid zip. Does it decompress properly?


Shameless fork/reimplementation

I find remi pretty cool, and definitely more modern/scalable approach than e.g. http://www.gtk-server.org/ . At 100K and no dependencies beyond standard library it's also very attentively and cool written. Unfortunately, not cool enough for https://github.com/micropython/micropython , where 100K of code is unbelievably huge and unlikely fit embedded platforms supported. Even if targeting only unix port, few features currently used by remi are currently missing in micropython/micropython-lib. So, while having contemplated adding missing features on uPy side, things like threading make it too big, complex, and not portable. So, instead I started with an empty file, trying to reimplement features one by one, starting with "look" part (no events/updates so far). The most boring part (for a programmer) with web UI is styling, and so I'm going inherit one from remi. That's why I consider it a fork, even though code is intended to be written from scratch.
So, this is request for feedback (even if it's "Don't do this!" or "You're bastard!"), but mostly self-confession: any time I see similar projects, I want to know why there're some, instead of them working together. The above is my "why".

Uhm, maybe it's me that I'm having problems finding the link, but where is your fork?

In a ~/tmp. Again, this an early request for feedback/declaration of intent, maybe I'll receive so compelling arguments that I'll bury it in awe ;-).

Oh, in that case, which parts of remi are unsupported by the stdlib?
Some widgets can definately be removed if needed (i.e. IMO the svg widgets should be a submodule), and also you should not include the editor in your LOC estimate.

Ok, I developed my hack further so it shows complete Python -> HTML -> WebSocket -> Python -> WebSocket -> HTML interaction, pushed https://github.com/pfalcon/uremi (suggestion on name are also welcome, API isn't going to be compatible with remi).
I tested provided simple_app.py to work in 16K of heap memory with MicroPython.

@pfalcon Really good work! Maybe will contribute soon.


FP8 FMHA cannot be enabled on Pre-Hopper Arch in L40?

System Info
CPU x86_64
GPU NVIDIA L40
TensorRT branch: v0.10.0
CUDA: NVIDIA-SMI 535.161.07   Driver Version: 535.161.07   CUDA Version: 12.2
Who can help?
@Tracin
Information

[X] The official example scripts
[ ] My own modified scripts

Tasks

[ ] An officially supported task in the examples folder (such as GLUE/SQuAD, ...)
[X] My own task or dataset (give details below)

Reproduction
I want to use KV-Cache-Reuse and Chunked Context, I use the following commands:
python /data/tensorrt_llm/examples/quantization/quantize.py --model_dir /data/deepseek-6.7b-online-v2.1 \
                                   --dtype float16 \
                                   --qformat fp8 \
                                   --kv_cache_dtype fp8 \
                                   --output_dir /data/trt-v10-deepseek6.7b-online-v2.1-2gpu-fp8-bz32 \
                                   --calib_size 512 \
                                   --tp_size 2

# Build trtllm engines from the trtllm checkpoint
trtllm-build --checkpoint_dir /data/trt-v10-deepseek6.7b-online-v2.1-2gpu-fp8-bz32 \
             --output_dir /data/trt-v10-engines-deepseek6.7b-online-v2.1-2gpu-fp8-bz32/2-gpu \
            --max_input_len 8192 \
            --max_output_len 1024 \
            --gemm_plugin float16 \
            --strongly_typed \
            --paged_kv_cache enable \
            --gpt_attention_plugin float16 \
            --max_batch_size 8  \
            --paged_kv_cache enable \
            --max_num_tokens 128 \
            --use_paged_context_fmha enable \
            --use_fp8_context_fmha enable \
            --workers 2

Expected behavior
The commands can work.
actual behavior
I got the following errors:
[TensorRT-LLM][ERROR] tensorrt_llm::common::TllmException: [TensorRT-LLM][ERROR] Assertion failed: FP8 FMHA cannot be enabled on Pre-Hopper Arch. (/app/tensorrt_llm/cpp/tensorrt_llm/plugins/gptAttentionCommon/gptAttentionCommon.cpp:462)
1       0x7fdc83c232c3 /usr/local/lib/python3.10/dist-packages/tensorrt_llm/libs/libnvinfer_plugin_tensorrt_llm.so(+0x572c3) [0x7fdc83c232c3]
2       0x7fdc83c237e0 /usr/local/lib/python3.10/dist-packages/tensorrt_llm/libs/libnvinfer_plugin_tensorrt_llm.so(+0x577e0) [0x7fdc83c237e0]
3       0x7fdc83ca4f60 tensorrt_llm::plugins::GPTAttentionPlugin::GPTAttentionPlugin(int, int, int, int, int, int, int, float, tensorrt_llm::kernels::PositionEmbeddingType, int, float, tensorrt_llm::kernels::RotaryScalingType, float, float, int, int, int, bool, tensorrt_llm::kernels::ContextFMHAType, bool, bool, int, bool, tensorrt_llm::kernels::AttentionMaskType, bool, int, nvinfer1::DataType, int, bool, bool, int, bool, bool, bool, bool, bool, bool) + 256
4       0x7fdc83ca5bc2 tensorrt_llm::plugins::GPTAttentionPluginCreator::createPlugin(char const*, nvinfer1::PluginFieldCollection const*) + 3090
5       0x7fde1515c62a /usr/local/lib/python3.10/dist-packages/tensorrt/tensorrt.so(+0x15c62a) [0x7fde1515c62a]
6       0x7fde150457a3 /usr/local/lib/python3.10/dist-packages/tensorrt/tensorrt.so(+0x457a3) [0x7fde150457a3]
7       0x556000c3f10e /usr/bin/python3(+0x15a10e) [0x556000c3f10e]

I use L40, so FP8 FMHA cannot be enabled on Ada？
additional notes
Hope there is a way to solve it.
Thanks.

Yes, we only enable FP8 FMHA for Hopper(SM90) at this moment.
cc @PerkzZheng  for vis

Yes, we only enable FP8 FMHA for Hopper(SM90) at this moment.
cc @PerkzZheng  for vis

@nv-guomingz OK, Got it.
Is there any plan to support Ada Arch?
We really want to use KV-Cache-Reuse feature.
Thanks so much!

@activezhao yes, this is on our roadmap, but there is no concret date. Will update here if we have any progress. Note that there are potential accuracy concerns with FP8 FMHA,  I would suggest that you can try that on hopper first.

thank @PerkzZheng
@activezhao  could we close this ticket now?

@activezhao yes, this is on our roadmap, but there is no concret date. Will update here if we have any progress. Note that there are potential accuracy concerns with FP8 FMHA, I would suggest that you can try that on hopper first.

@PerkzZheng OK, thanks.

thank @PerkzZheng @activezhao could we close this ticket now?

@nv-guomingz Of course, please close it.
Thanks.


Bug, can't remove the shadow in the back of the title

Hi, first of all thank for the great work. I really appreciate the snippet you created.
I think there is a problem, I can't seem to be able to remove the white shadow box that is behind the title

Do you know if this is possible. Thanks.

Thank you. Issue fixed in next release v1.2.1


path to bowser's keep not open

Using open mode, i received the 6th star in Culex's spot (hammer bros for my rng) but the path to Bowser's keep did not open. I tried talking to Mallow's parents to open the bus and the cut scene played, but when i go to board, nothing happened. The 6th star was literally the last boss i had left standing previous to the keep

Can you please tell us how you were playing?  Console, emulator, version, etc.

I'm unable to reproduce this.  BK opened fine after getting 6 stars with the last one on Culex in a test seed.  Are you sure you didn't have the 7 star flag enabled?

Have not received any further info on this, and there's been multiple updates with hundreds of seeds generated without issue.