Suggestions on negative chips

I loved having to deal with negative chips, and i'd like to see them used in other situations.
Here are a couple of ideas. Feel free to use them or get inspiration from!

Review the cost of removing negative chips: right now it costs the same to remove an ADD1 chip and to reduce the level of a SHL3 chip, but the impact of these two types of chips isn't the same at all.
Let the player place down negative chips, giving him instantaneous bits in change for a possible problem later down the line. Alternatively these chips could cost nothing to place down, but slowly generating bits over time.
Generate chips that are direct counterparts to the CLK chip (accelerating attackers, or slowing down positive chips, or accelerating negative chips), the MEM chip (serving as attacker spawn points), and the ACC chip (cloning attackers).
Have new recruits that lower the amount of negative chips at the start of a level, lower their level, and lower the price to remove them.

This is a reasonable argument. I see it as less necessary because the negative chips are more of a problem for me at the start of a level. As the negative chips are placed randomly, it's more a matter of luck how difficult a level is anyway.
Very interesting idea! It would definitely change a lot of the gameplay and make new strategies possible. Unfortunately, it's just not feasible. If I interpret the code correctly, the reward is calculated once when the chips are generated via "attackerData.bits". An increase/decrease during a stage does not change this.
I find this difficult. In the context of a tower defence game, it might make sense. But the game is intended to reflect real calculation operations in the chips. There is no such thing as "clone a virus" at this computer level.
Possible :-)

This is a reasonable argument. I see it as less necessary because the negative chips are more of a problem for me at the start of a level. As the negative chips are placed randomly, it's more a matter of luck how difficult a level is anyway.

I agree that negative chips are mostly annoying when starting a level, if spawned in bad spots… but this can easily be mitigated by abusing the restart level feature to get better negative chip spawns. Hence my suggestion: it would give more wiggle room for thougtful action in the first moments of the game, whatever the spawn positions are, giving less incentive to just restart the game.
Maybe offer the option to replace a negative chip in another free slot for a small price in bits ? less so than removing a chip level of course, maybe half the price, or a third of it.

Very interesting ideas, thanks a lot. You are right that this could add a lot of possibilities for tactical game play. On the other hand, we should not make it too complicated, because then the average player will have difficulties to cope with this. I mean, there are already up to 5 possibilities to choose from, I don't know where to place all the buttons for negative chips ...

Review the cost of removing negative chips: right now it costs the same to remove an ADD1 chip and to reduce the level of a SHL3 chip, but the impact of these two types of chips isn't the same at all.

That should be feasible. But do you propose to make the more dangerous chips less or more expensive to remove? The thing is, if the player is faced with let's say SHL 3 instead of three times ADD 1, and it's more expensive to remove it, they will be even more likely to restart the level. So maybe the simple ADD chips should me more expensive.
(Currently, the code works like this: It looks for a random slot among those that are not already occupied by a positive chip (there are some levels with pre-defined chips). If the slot is empty, it adds a new negative chip. If there is already a negative chip, it raises its level. This operation is repeated n times, where n depends on the level.)

Unfortunately, it's just not feasible. If I interpret the code correctly, the reward is calculated once when the chips are generated via "attackerData.bits"

Yes and no. It's true that the reward is calculated (to be precise: It's equal to the length of the binary number, cf. the wiki page). But the calculation could be modified, and in fact is already for Mandelbrot's effect.

I find this difficult. In the context of a tower defence game, it might make sense. But the game is intended to reflect real calculation operations in the chips.

Well, it is a game in the first place, not a computer simulation. It wouldn't give me really bad conscience.
I have thought about a "splitter". That is a real-world computer component. It would turn an xABCD value into xAB00 and x00CD. Or, alternatively, to make things simpler, just into two equal copies of xABCD.

Have new recruits that lower the amount of negative chips at the start of a level, lower their level, and lower the price to remove them.

Good idea.

[removal cost depends on chip power and type]

That should be feasible. But do you propose to make the more dangerous chips less or more expensive to remove?
Dangerous chips should be more expensive.

Let's look at the the SUB1 chip: without upgrades, it costs 8b. The upgrade to SUB2 costs 12b more, so its value totals to 20 (the same you have to spend to remove its negative counterpart of a lower rank: ADD1). Now, SHR1 costs 16b to place down, and 24b to upgrade, which puts SHR2 to a total value of 40b. (the same value to remove two levels of any negative chip, SHL2 included).
If i'm in a situation where i have both an SHL and an ADD chip in my level, which should i chose to remove first ? right now the solution is easy: the SHL of course, especially in the beginning of a level when a single shift to the left can be catastrophic. ADD1 or even ADD2 can much more easily be dealt with, with a single tap on an attacker to reverse its value. Sometimes, it even gives you an incentive to keep that chip just to be able to heavily downgrade attackers with a single tap.
That choice would be much less automatic if the remove value depended on the value of its positive chip counterpart. I'd suggest trying between 120% and 200% its counterpart's value in bits. Now, should i put a positive chip right before or after the bad one to counter it, or should i remove that negative chip, by waiting and risking some attackers might pass ? and if sone do pass, do i panic-buy a positive chip or do i stand my ground and cross my fingers ?
I think it would make for much more interesting decisions.
Now of course that would make the negative chips quite harder to deal with. But the fact they already take an available space is already bad enough. So having less of them in harder levels might be for the bettes

Which gives me an additional idea for negative chips:
5. A chip that does not do anything, but just sits there and needs to be removed to recover that space.

The thing is, if the player is faced with let's say SHL 3 instead of three times ADD 1, and it's more expensive to remove it, they will be even more likely to restart the level
Forgot to add: yes! which calls for a new way to weight negative chips. Instead of having a set number of them in each designated level, the computer gets a "budget" to buy these negative chips with. So for example fwr level 23, the coméuter would have a negative chip "budget" of 30b: which would let him buy, idk… an ADD1 and an ADD2 chip, or an ADD1 and a SHL1 chip (that would all depend on the cost of removing them that would be changed according to my suggestion)

I have thought about a "splitter". That is a real-world computer component. It would turn an xABCD value into xAB00 and x00CD. Or, alternatively, to make things simpler, just into two equal copies of xABCD.

This is perfect! Not an exact equivalent to the ACC, but it's alread super interesting that this exists in the real world :)

[let the player place down negatives for a reward]

[…] I mean, there are already up to 5 possibilities to choose from, I don't know where to place all the buttons for negative chips ...

I agree it shouldn't be much bigger than that. But see, right unedr the CLK chip, you put down a buton that swaps between positive chips and their counterparts 👀
Heck, you can even just give that space to a "default" negative chip, which is then randomly chosen between the ones available. The reward would always be the same, but the negative side could be reaaally bad. Hoping for an ADD1 ? you get a SHL1, too bad !

I have had not much time recently and have not gone any further with all these suggestions.
However, at least the "chip that does not do anything, but just sits there" now exists (version 1.27).

I would suggest a NOT chip which performs the one's complement (each 1 becomes a 0, each 0 becomes a 1). This chip performs exactly the same operation that the player could do by tapping on a number. It is a negative chip, because usually a player will try to get the number to zero (e.g. by AND or SHL), but this would increase a zero to its max value again. It can obviously not be upgraded (like the NOP chip).
Another suggestion would be to reverse a value, similar to the BSWAP operation (Intel x86 manual for this instruction). In contrast to the real-world instruction, I would reverse bit-wise and not byte-wise, though, and I would therefore call it REV for reverse. It depends whether you want to have an instruction set that is possibly close to real-world instruction set or not. If so, then either use BSWAP as it is the operation name and its operation is byte-wise, or let it out entirely. If included, this chip could not be upgraded (and it could handle any input size, not just 32bit or 64bit inputs). It is a negative chip, since it complicates the processes a bit. If it was used at the beginning of a stage, it may have no big influence, though.
Examples:

0x00 would not be affected, similar to 0xFF
0x0001 would become a 0x8000 (REV) or a 0x0100 (BSWAP)
0x0101 would become a 0x8080 (REV) or would stay 0x0101 (BSWAP)
0x1337 would become a 0xecc8 (REV) or a 0x3713 (BSWAP)

I have thought again about the removal of chips. The main problem (as I see it) is that removing is just a question of money. So basically each level of Kilby equals 20 bits of info. It's just too cheap to remove all of them.
This would only partially be mended by making SHL more expensive than ADD. Besides, during the first waves, ADD can be more annoying than SHL (because if you shift 0x00 you still end up with 0x00. And 0x01 only becomes 0x02.)
What do you think of these ideas?

Whenever placing an ADD 1 chip, automatically upgrade it to ADD 2. And NOP to NOP 3.
Making some chips immobile, so that they cannot be removed. (But how to determine which ones?)
Make the price dependent on the number of chips already removed. Which would mean that you could only remove some of the unwanted chips before removal becomes too expensive.

Placing ADD2 and NOP3 is a possibility to make it more challenging, but I prefer the third idea.
In endless random generated levels, immobile chips may sit on a position, where they block an important spot. In pre-defined level, they add an interesting element! I would consider to take it into the gameplay for these levels.
Increasing the price depended on the number already removed, seems so me the best idea. At the beginning on an level, negative chips may be annoying, but after some rounds, the negative chips are no problem at all. Increasing the cost may change this.

Make the price dependent on the number of chips already removed.

I upvote the third idea, with the second idea only for predefined levels, and clearly visually distinguishable from removable chips (e.g. greyed out or so)

[…] So basically each level of Kilby equals 20 bits of info. It's just too cheap to remove all of them.

Well then maybe, instead of strictly removing one negative chip per recruit level, Kilby upgrades could work like Mandelbrot's : you'de have toqinvest in several levels of "blank upgrades" before being benefiting from a second or third negative chip removed.
My prefered suggestion would be to have Kilby decrease the price for negative chip removal by a percentage.

we could have another hero for reducing the price.

Bad idea :/ you'd end up with one hero that straight up removes a level of negative chip (20bits economized, and no bother from having the chip set in the first place, and a second hero that just reduces the price for removal… whuch both require the same amount of cryptocoins to upgrade.
Le 8 mars 2024 19:11:45 GMT+01:00, ochadenas @.***> a écrit :

That's an idea. I mean, we could have another hero for reducing the price.
--
Reply to this email directly or view it on GitHub:
https://github.com/ochadenas/cpudefense/issues/68#issuecomment-1986174355
You are receiving this because you authored the thread.
Message ID: @.***>

Yes, but in combination with increasing prices, the second one could have its value.

Some more thoughts on this ...
Seems that getting a good balance for these negative chips is quite hard, we'll need probably some more iterations.
And I must admit that I never thought that one would play up to level 80 or 90 or more. I never tested beyond level 20 ;) As of 1.30, in higher levels there will be a really HUGE number of negative chips, making the levels unplayable.
In 1.31, I'll try the following:
There will be two more kinds of chips, as @Cwpute suggested somewhere up in this thread: DUP that duplicates (clones) an attacker, and SPLT that splits up a number, e.g. x4F in x40 and x0F. This will raise the number of negative chip types to 5; I consider that this is sufficient, and that more types will not add much to game play.
Each of these types get a "difficulty", or "hardness" assigned. For instance,

NOP -> 1.0
ADD -> 2.0
SHL -> 2.5
SPLT -> 3
DUP -> 3,5
Each stage has a target difficulty, depending on its number. The sum of the unwanted chip values then should match approximately this target.

The number of chips must however somehow be capped.
I think that a second hero acting on negative chips would still be a good idea, just to have two of them. Perhaps keep this for 1.32.

The two new chips sound good :-)
I would like to suggest that the DUP or SPLT attackers are either released with a time delay or have a significantly different speed. In my opinion, dealing with two attackers at the same time is the most difficult part of the game.
Talking about this... a negativ SYNC-Chip is also possible, where an attacker is temporarily saved and released synchronised with another attacker.
Suggestion for the SPLT chip: These can either halve the numerical value (decimal) or simply split bit/byte.
24 = 0001 1000

0001 and 1000 or
1100 and 1100

@ochadenas If the negative chip system has to be changed, then one possibility would be to use two factors:

there is a difficulty-scoring, as you suggested. I'm not sure whether it has to be "sum = level". I think it would have to be cut for higher levels or asymthotically approach a limit value.
there is a limit to the maximum number of chip positions occupied at the level. This could be a percentage value.

As you mentioned in https://github.com/ochadenas/cpudefense/issues/68#issuecomment-1988406871, it would be a good option to use two heroes that affect the negative chips. They could have a percentage effect on each of the two factors. In any case, this would be better than the current "conversion" of one level at Kilby = -20 bit.

The "reduction by percentage" hero now exists (Margaret Hamilton). She gives a general discount of 8% per hero level.
The idea of limiting the occupied slots to a certain percentage is good, will think of how to implement this.


Migrate to django 3.1 or above

https://pypi.org/project/django-jsonfield/
Maintenance mode only: It is not recommended you use this library on new projects. Django 3.1 includes a cross-database JSONField implementation - see its release notes. You can use that field on older versions of Django with the django-jsonfield-backport package. See the (long) History section below for more information.

This was already done.


endless yield problem

I am want to write a pool process by guzzle. code like this:

$requests = function($list) {
while(true){
$some =  Redis::bLpop($list, 10);
if(!$some) continue;
[$key, $payload] = $some;
$array = json_decode($payload, true);
// likes [$url, $headers, $body] = $array;
yield new Request(...$array);
}
};
$pool = new Pool($client, $requests(['high','low']), ['concurrency' => 5, .......]);
$pool->promise()->wait();

when I push 10 requests to redis list 'high', but only got 6 responses.
And I push another 10 requests again, then I got 16 responses.
how can i fix this problem?

This is not an issue, but here I give you an idea:
<?php

use GuzzleHttp\ClientInterface;
use GuzzleHttp\Pool;
use GuzzleHttp\Psr7\Request;
use Psr\Http\Message\ResponseInterface;

class GeneratePool
{

    private ClientInterface $httpClient;
    private array $list;

    public function execute()
    {
        // populate $this->list ...
        $poolConfig = [
            'fulfilled' => function (ResponseInterface $response, $index): void {
                $this->fulfilled($response, $index);
            },
            'rejected' => function (Exception $reason, $index): void {
                $this->rejected($reason, $index);
            },
            'concurrency' => 50,
            'options' => [
                'connect_timeout' => 15,
                'exceptions' => true,
                'timeout' => 30,
            ],
        ];

        $pool = new Pool($this->httpClient, $this->generateRequests($this->list), $poolConfig);
        $promise = $pool->promise();
        $promise->wait();
    }

    private function generateRequests(): \Generator
    {
        foreach ($this->list as $index => $item) {
            // create the request and set a known index
            yield $index => new Request('GET', 'url', []);
        }
    }

    /**
     * @param ResponseInterface $response a successful response
     * @param $index the index set at the yield
     * @return void
     */
    private function fulfilled(ResponseInterface $response, $index): void
    {
        // this is a successful response from the Request yield a generateRequests
        // you have the response and do whatever you need to do with the item

        $item = $this->list[$index];
    }

    /**
     * @param Exception $reason this is an error response
     * @param $index the index set at the yield
     * @return void
     */
    private function rejected(\Exception $reason, $index): void
    {
        // $reason you might want to check reason->hasResponse() depends on the version of Guzzle you are working on
        // you have the response and do whatever you need to do with the item

        $item = $this->list[$index];
    }
}


Anybody here！ My GPU is 3080ti，BUt I have many promblems.Help

(edter) F:\Code\EDTER>pip install mmcv-full -f https://download.openmmlab.com/mmcv/dist/cu101/torch1.6.0/index.html
Looking in links: https://download.openmmlab.com/mmcv/dist/cu101/torch1.6.0/index.html
Collecting mmcv-full
Using cached mmcv-full-1.7.2.tar.gz (607 kB)
Preparing metadata (setup.py) ... done
Requirement already satisfied: addict in d:\program\anaconda3\envs\edter\lib\site-packages (from mmcv-full) (2.4.0)
Requirement already satisfied: numpy in d:\program\anaconda3\envs\edter\lib\site-packages (from mmcv-full) (1.21.5)
Collecting packaging
Using cached packaging-24.0-py3-none-any.whl (53 kB)
Requirement already satisfied: Pillow in d:\program\anaconda3\envs\edter\lib\site-packages (from mmcv-full) (9.4.0)
Requirement already satisfied: pyyaml in d:\program\anaconda3\envs\edter\lib\site-packages (from mmcv-full) (6.0.1)
Requirement already satisfied: yapf in d:\program\anaconda3\envs\edter\lib\site-packages (from mmcv-full) (0.40.2)
Requirement already satisfied: regex in d:\program\anaconda3\envs\edter\lib\site-packages (from mmcv-full) (2024.4.16)
Requirement already satisfied: platformdirs>=3.5.1 in d:\program\anaconda3\envs\edter\lib\site-packages (from yapf->mmcv-full) (4.0.0)
Requirement already satisfied: importlib-metadata>=6.6.0 in d:\program\anaconda3\envs\edter\lib\site-packages (from yapf->mmcv-full) (6.7.0)
Requirement already satisfied: tomli>=2.0.1 in d:\program\anaconda3\envs\edter\lib\site-packages (from yapf->mmcv-full) (2.0.1)
Requirement already satisfied: zipp>=0.5 in d:\program\anaconda3\envs\edter\lib\site-packages (from importlib-metadata>=6.6.0->yapf->mmcv-full) (3.15.0)
Requirement already satisfied: typing-extensions>=3.6.4 in d:\program\anaconda3\envs\edter\lib\site-packages (from importlib-metadata>=6.6.0->yapf->mmcv-full) (4.7.1)
Building wheels for collected packages: mmcv-full
Building wheel for mmcv-full (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [1630 lines of output]
C:\Users\hpuau\AppData\Local\Temp\pip-install-h0g55j97\mmcv-full_ac25281e1ae742c490f06ca385bc8ad6\setup.py:6: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
from pkg_resources import DistributionNotFound, get_distribution, parse_version
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win-amd64-cpython-37
creating build\lib.win-amd64-cpython-37\mmcv
copying mmcv\version.py -> build\lib.win-amd64-cpython-37\mmcv
copying mmcv_init_.py -> build\lib.win-amd64-cpython-37\mmcv
creating build\lib.win-amd64-cpython-37\mmcv\arraymisc

× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [1630 lines of output]
C:\Users\hpuau\AppData\Local\Temp\pip-install-h0g55j97\mmcv-full_ac25281e1ae742c490f06ca385bc8ad6\setup.py:6: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
from pkg_resources import DistributionNotFound, get_distribution, parse_version
why exist this promblem

我要进行测试，按照提示进行环境准备，在安装mmc那行代码依赖时，提示如上，难道mmcv已经不支持3080ti了？


invalid information?

when checking Service Plans using information provided and comparing with real information from license object are incosinstent in many scenarios. example for M365 business standard, there are 26 services included
(Get-MsolAccountSku|? AccountSkuId -match 'O365_BUSINESS_PREMIUM').servicestatus
ServicePlan                     ProvisioningStatus

VIVA_LEARNING_SEEDED            Success
Nucleus                         Success
RMS_S_BASIC                     Success
POWER_VIRTUAL_AGENTS_O365_P2    Success
CDS_O365_P2                     Success
PROJECT_O365_P2                 Success
DYN365_CDS_O365_P2              Success
MICROSOFT_SEARCH                Success
WHITEBOARD_PLAN1                Success
MYANALYTICS_P2                  Success
DYN365BC_MS_INVOICING           Success
KAIZALA_O365_P2                 Success
STREAM_O365_SMB                 Success
Deskless                        Success
BPOS_S_TODO_1                   Success
MICROSOFTBOOKINGS               Success
FORMS_PLAN_E1                   Success
FLOW_O365_P1                    Success
POWERAPPS_O365_P1               Success
O365_SB_Relationship_Management Success
TEAMS1                          Success
PROJECTWORKMANAGEMENT           Success
SWAY                            Success
INTUNE_O365                     Success
SHAREPOINTWAC                   Success
OFFICE_BUSINESS                 Success
YAMMER_ENTERPRISE               Success
EXCHANGE_S_STANDARD             Success
MCOSTANDARD                     Success
SHAREPOINTSTANDARD              Success
on this page - there are only 16 service plans:
BPOS_S_TODO_1
Deskless
EXCHANGE_S_STANDARD
FLOW_O365_P1
FORMS_PLAN_E1
MCOSTANDARD
MICROSOFTBOOKINGS
O365_SB_Relationship_Management
OFFICE_BUSINESS
POWERAPPS_O365_P1
PROJECTWORKMANAGEMENT
SHAREPOINTSTANDARD
SHAREPOINTWAC
SWAY
TEAMS1
YAMMER_ENTERPRISE
similarily - there are 48 service plans in M365 business premium:
(Get-MsolAccountSku|? AccountSkuId -match 'SPB').ServiceStatus|measure
Count    : 48
and if you check on this page, there are only half of this number:
AAD_SMB
BPOS_S_TODO_1
Deskless
EXCHANGE_S_ARCHIVE_ADDON
EXCHANGE_S_STANDARD
FLOW_O365_P1
FORMS_PLAN_E1
INTUNE_A
INTUNE_SMBIZ
MCOSTANDARD
MICROSOFTBOOKINGS
O365_SB_Relationship_Management
OFFICE_BUSINESS
POWERAPPS_O365_P1
PROJECTWORKMANAGEMENT
RMS_S_ENTERPRISE
RMS_S_PREMIUM
SHAREPOINTSTANDARD
SHAREPOINTWAC
STREAM_O365_E1
SWAY
TEAMS1
WINBIZ
YAMMER_ENTERPRISE
whay is that? why it doesn't show all the SPs? where is the difference?

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

ID: 7c245452-161d-89a1-c026-99a0721cf071
Version Independent ID: 16dec59a-eb83-1837-4efd-4645e7aeaed2
Content: Product names and service plan identifiers for licensing - Azure AD
Content Source: articles/active-directory/enterprise-users/licensing-service-plan-reference.md
Service: active-directory
Sub-service: enterprise-users
GitHub Login: @Nicholak-MS
Microsoft Alias: nicholak

@nExoRek
Thanks for your feedback! I've assigned this issue to the author who will investigate and update as appropriate.

@nExoRek I have updated the online table and the downloadable CSV for both the O365_BUSINESS_PREMIUM and SPB Products. Thanks for bringing this to our attention.
Thanks,
Nick
#please-close

please do not change column names. previous file had a column 'String_ Id'
the new one 'String_Id'.
checking names of plans and products is so common that i have it scripted -
and i believe i'm not the only one. it's a great help that you publish CSV,
please keep it standardized
https://github.com/nExoRek/eN-Lib/blob/master/get-ServicePlanInfo.ps1
thank you!
On Tue, 29 Mar 2022 at 19:56, PRMerger8 @.***> wrote:

Closed #89934 https://github.com/MicrosoftDocs/azure-docs/issues/89934.
—
Reply to this email directly, view it on GitHub
https://github.com/MicrosoftDocs/azure-docs/issues/89934#event-6328744397,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AFOTNHXSDEPG4QT53JXPIETVCM75FANCNFSM5Q34NTFQ
.
You are receiving this because you were mentioned.Message ID:
@.***>

--
-o((: http://www.w-files.pl :))o-


[release-1.3] Add route name to envoy access logs

This is an automated cherry-pick of #16237

@istio-testing: The following test failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

integ-new-install-k8s-presubmit-tests-release-1.3
0ed4f335c5d7f9727e3250c1bc740335a27cf3e7
link
/test integ-new-install-k8s-presubmit-tests-release-1.3

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@istio-testing: The following tests failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

integ-new-install-k8s-presubmit-tests-release-1.3
0ed4f335c5d7f9727e3250c1bc740335a27cf3e7
link
/test integ-new-install-k8s-presubmit-tests-release-1.3

istio-unit-tests-release-1.3
0ed4f335c5d7f9727e3250c1bc740335a27cf3e7
link
/test istio-unit-tests-release-1.3

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@istio-testing: The following tests failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

integ-new-install-k8s-presubmit-tests-release-1.3
0ed4f335c5d7f9727e3250c1bc740335a27cf3e7
link
/test integ-new-install-k8s-presubmit-tests-release-1.3

istio-unit-tests-release-1.3
0ed4f335c5d7f9727e3250c1bc740335a27cf3e7
link
/test istio-unit-tests-release-1.3

integ-mixer-k8s-presubmit-tests-release-1.3
0ed4f335c5d7f9727e3250c1bc740335a27cf3e7
link
/test integ-mixer-k8s-presubmit-tests-release-1.3

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

/retest

(no idea why this got the cla: no label initially...)

@istio-testing: The following tests failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

istio-unit-tests-release-1.3
0ed4f335c5d7f9727e3250c1bc740335a27cf3e7
link
/test istio-unit-tests-release-1.3

integ-mixer-k8s-presubmit-tests-release-1.3
0ed4f335c5d7f9727e3250c1bc740335a27cf3e7
link
/test integ-mixer-k8s-presubmit-tests-release-1.3

integ-new-install-k8s-presubmit-tests-release-1.3
0ed4f335c5d7f9727e3250c1bc740335a27cf3e7
link
/test integ-new-install-k8s-presubmit-tests-release-1.3

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.


ModuleNotFoundError: No module named 'kaggle.competitions'

In a python 3.6 virtual env I ran:
pip3 install kaggle
I copied the kaggle.json file to .kaggle directory under user in linux.
Then in a jupyter lab notebook I ran:
import kaggle
print(kaggle) #>><module 'kaggle' from '/home/me/.virtualenvs/myvenv/lib/python3.6/site-packages/kaggle/__init__.py'>
then I ran:
from kaggle.competitions import twosigmanews
and got the following error:
ModuleNotFoundError                       Traceback (most recent call last)
 in ()
----> 1 from kaggle.competitions import twosigmanews
2 # You can only call make_env() once, so don't lose it!
3 env = twosigmanews.make_env()
4 print('Done!')
ModuleNotFoundError: No module named 'kaggle.competitions'

That's not how the API can be used programatically.  I haven't tested this, but you'll need to do something to the effect of:
from kaggle.api.kaggle_api_extended import KaggleApi

api = KaggleApi()
files = api.competition_download_files("twosigmanews")
api.competitions_submit("submission.csv", "my submission message", "twosigmanews")

The python part of the API is not documented, only the CLI level.  Please browse kaggle_api_extended to see what you can do with it.

I realised the code I was trying to run was for a kaggle kernel, not a local kernel.

I have the same problem, can you tell me how did you solve it?

And I have the same problem

@Joxman98 @zhasulan , it's not solvable.  twosigmanews is not an available module and cannot be imported.  Period.

@paulperry so how can I solve it?
I'm a noob on this things.

You have two options: use the Kaggle kernels, which is what Kaggle wants you to do, or rewrite the module yourself (it doesn’t do much, it just loads the data).

I need to use this function
GCS_DS_PATH = KaggleDatasets().get_gcs_path('tpu-getting-started')
but KaggleDatasets is part of kaggle_datasets as per
https://www.kaggle.com/ryanholbrook/create-your-first-submission
Where is  get_gcs_path() defined?

i have this error can you help to solve? peptide requirements already satisfied?
ModuleNotFoundError                       Traceback (most recent call last)
Cell In[30], line 1
----> 1 import amp_pd_peptide
2 env = amp_pd_peptide.make_env()
3 iter_test = env.iter_test()
ModuleNotFoundError: No module named 'amp_pd_peptide'

for conda environment please intsall:
conda install kaggle
conda install conda-forge::kaggle


Incomplete xml parsing with 3.0

i'm trying to get XML from an url (http://iph.cadremploi.fr/emploi/jobs/11502602670) but I can't get the whole datas. It seems to stop at "item" node and bypass it. Any idea ?
I'm using AFNetworking 3.0 in order to build for tvOS.
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"http://iph.cadremploi.fr/emploi/jobs/11502602670"]];
[request setValue:@"text/xml-v25-09-2014" forHTTPHeaderField:@"Accept"];
[request setHTTPShouldHandleCookies:NO];

NSURLSessionConfiguration *sessionConfiguration = [NSURLSessionConfiguration defaultSessionConfiguration];
AFURLSessionManager *manager = [[AFURLSessionManager alloc] initWithSessionConfiguration:sessionConfiguration];
AFXMLParserResponseSerializer *serializer = [AFXMLParserResponseSerializer serializer];
serializer.acceptableContentTypes = [NSSet setWithObject:@"application/rss+xml"];
[manager setResponseSerializer:serializer];
[[manager dataTaskWithRequest:request completionHandler:^(NSURLResponse *response, id responseObject, NSError *error) {

    if(error==nil){

        NSLog(@"%@",[XMLReader dictionaryForNSXMLParser:(NSXMLParser *)responseObject error:nil]);
    }
    else{

        CE_LOG(error.localizedDescription);
    }

}] resume];

And here is the output :
{
rss =     {
    channel =         {
        description =             {
            text = "Job description";
        };
        language =             {
            text = fr;
        };
        link =             {
            text = "http://www.cadremploi.fr";
        };
        pubDate =             {
            text = "Tue, 13 Oct 2015 08:14:07 GMT";
        };
        text = "";
        title =             {
            text = "Flux RSS Cadremploi";
        };
    };
    text = "";
    version = "2.0";
    "xmlns:ce" = "http://cadremploi.fr";
};
}

@Bejil can you show how did you add 3.0.0 in Podfile?
I have specified brunch 3_0_0, but it does not contain parsers and some other classes.

Thanks for your response.
I manually add 3.0.0 by cloning it then copy/paste "AFNetworking" and "UIKit+AFNetworking" folders to my project.
I use XMLReader in order to simplify parsing and reading but with basic NSXMLParser it does the same. It doesn't return the whole xml datas.

Drop some debugging in line 350 of AFURLResponseSerialization. Try turning that data result into a string and printing it out. Is all the data there that you are looking for? If so, then the error you are seeing would not be related to AFNetworking.

Ok sorry, you're right. AFNetworking is not involved in this issue.
Don't know why but now it's working great... I really can't explain why.
Thanks for your help !


Add scatter/gather operations

It would be great if there were scatter/gather operations available on the sockets, i.e. wrappers around recvmsg() and recvmmsg(), sendmsg() and sendmmsg().
There are two parts to this:

the first of both functions can send/receive one datagram, but use multiple buffers transparently
the second of both functions can send/receive multiple datagrams with one syscall (plus ↑)

+1, these can probably slot in next to writev/readv in nix-rust, and then be exposed via mio::udp::UdpSocket

:+1:
Similar to #187, we don't know how Rust will implement this feature, so in general, we need to figure out how we want to handle introducing new apis.

Introduce the new api on UdpSocket and change it to what Rust stabilizes.
Introduce the new api on UdpSocket and diverge from std::net::UdpSocket.
Introduce a UdpSocketExt trait that contains "unstable" apis and move the apis to UdpSocket when std::net::UdpSocket stabilizes on an API.

I think C sounds good if we want to follow Rust library conventions.
Why do we have separate socket APIs again?

@rrichardson Windows support (#155)

Thanks for submitting the issue.
I'm going to close this due to inactivity. The state / direction of Mio has changed significantly. Mio has a goal of providing Tcp / Udp APIs equivalent to Rust's STD. Mio also has made it possible to implement custom Evented types, so it should be possible to implement extra features in third party libraries.


💄🐛 Take the DPS style header and footer

and fix a bug in the notification template that wasn't showing the header properly.

Layout a bit odd on mobile

Closing because this is very out of date now..


error: cannot access TaskStackBuilder

I am getting compilation error while using the lib below is the error
E:\Sync\app\src\androidTest\java\kamlesh\sync\activities\DashboardTest.java:31: error: cannot access TaskStackBuilder
assertThat(activity.spinner).isGone();
^
class file for android.app.TaskStackBuilder not found
I am using Android Studio 1.0.2.
Here is the screenshot

What version of Android are you compiling with?

I am compiling with version 4.2(Jellybean)

Because of the nature of this project, you need to compile with the latest version of the platform SDK. You can still have minimum and target API levels which are older and lint will protect you from calling too-new methods.


to merge content and delete duplicate file - fix for issue 485

…thub.com/opensearch-project/documentation-website/issues/485
Signed-off-by: alicejw<EMAIL_ADDRESS>Description
merge content for duplicate API page
Issues Resolved
https://github.com/opensearch-project/documentation-website/issues/485
Check List

[ ] Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Would it make more sense to change update-mapping.md to put-mapping.md? Users might be confused if they see they can update a mapping but can't see how to create a mapping.

sounds good. let me also update the topic title to make that clear.


HSEARCH-2073 LuceneHSQuery cannot be deserialized

https://hibernate.atlassian.net/browse/HSEARCH-2073

Replaced by #968


media console should have dedicated image upload

Description
with a whitelist so no randoms spamming sussy image
killers script wastes huge amount of bandwidth and causes lag in extreme cases, just sending a png to clients would be much much much better

also with a size limit of 200kb per image and like 4 images max because reporters funny

we are not doing this. only way anything like this is getting added is an IC camera that just takes snapshots of appearance data and doesnt rely on clients sending arbitrary images

could maybe maybe reuse map render stuff but using live game state and for a small viewport


During await, variables are wrongly assumed not to change

This happens using tsc 2.8.1 and 2.9.0-dev.20180414.
async function f() {
    let x: number = 0;
    if(x !== 0) throw new Error();

    await Promise.resolve().then(() => {
        x = 5;
    });

    if(x !== 5) throw new Error();
}

f().then(() => {
    console.log("Done");
});

$ tsc a.ts --target es2017 --lib es2017,dom
test.ts(9,8): error TS2365: Operator '!==' cannot be applied to types '0' and '5'.

Here tsc assumes that during the await the value x remains the same. During await statements, lots of things can happen (including execution of code entirely unrelated to the thing being awaited). Here is a more contrived example:
interface Datum {
    value: number;
}

const box: Datum = {value: 0};

function f1() {
    Promise.resolve().then(() => {
        box.value = 1;
    });
}

async function f2() {
    if(box.value !== 0) throw new Error();
    await Promise.resolve();
    if(box.value !== 1) throw new Error();
}

f1();
f2().then(() => {
    console.log("Done");
});

Both programs print Done when I run them using Node.js 8.11.0

Duplicated or related to #9998.

I think this is an instance of #9998, where the compiler is overly optimistic and assumes that await does nothing.

Thanks for spotting that out @j-oliveras


HBASE-19762 Fixed Checkstyle errors in hbase-http

:confetti_ball: +1 overall

Vote
Subsystem
Runtime
Comment

0
reexec
273
Docker mode activated.

_ Prechecks _

+1
hbaseanti
0
Patch does not have any anti-patterns.

+1
@author
0
The patch does not contain any @author tags.

+1
test4tests
0
The patch appears to include 10 new or modified test files.

_ master Compile Tests _

0
mvndep
24
Maven dependency ordering for branch

+1
mvninstall
254
master passed

+1
compile
32
master passed

+1
checkstyle
136
master passed

+1
shadedjars
264
branch has no errors when building our shaded downstream artifacts.

0
findbugs
0
Skipped patched modules with no Java source: hbase-checkstyle

+1
findbugs
32
master passed

+1
javadoc
26
master passed

_ Patch Compile Tests _

0
mvndep
16
Maven dependency ordering for patch

+1
mvninstall
249
the patch passed

+1
compile
31
the patch passed

+1
javac
31
the patch passed

+1
checkstyle
133
root: The patch generated 0 new + 0 unchanged - 143 fixed = 0 total (was 143)

+1
whitespace
0
The patch has no whitespace issues.

+1
xml
3
The patch has no ill-formed XML file.

+1
shadedjars
269
patch has no errors when building our shaded downstream artifacts.

+1
hadoopcheck
518
Patch does not cause any errors with Hadoop 2.7.4 or 3.0.0.

0
findbugs
0
Skipped patched modules with no Java source: hbase-checkstyle

+1
findbugs
40
the patch passed

+1
javadoc
26
the patch passed

_ Other Tests _

+1
unit
12
hbase-checkstyle in the patch passed.

+1
unit
56
hbase-http in the patch passed.

+1
asflicense
22
The patch does not generate ASF License warnings.

2506

Subsystem
Report/Notes

Docker
Client=17.05.0-ce Server=17.05.0-ce base: https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-131/1/artifact/out/Dockerfile

GITHUB PR
https://github.com/apache/hbase/pull/131

Optional Tests
dupname  asflicense  checkstyle  javac  javadoc  unit  xml  shadedjars  hadoopcheck  compile  findbugs  hbaseanti

uname
Linux 055b27d5ba5f 4.4.0-138-generic #164-Ubuntu SMP Tue Oct 2 17:16:02 UTC 2018 x86_64 GNU/Linux

Build tool
maven

Personality
/testptch/patchprocess/precommit/personality/provided.sh

git revision
master / 89ce5d17e4

maven
version: Apache Maven 3.5.4 (1edded0938998edf8bf061f1ceb3cfdeccf443fe; 2018-06-17T18:33:14Z)

Default Java
1.8.0_181

findbugs
v3.1.11

Test Results
https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-131/1/testReport/

Max. process+thread count
281 (vs. ulimit of 10000)

modules
C: hbase-checkstyle hbase-http U: .

Console output
https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-131/1/console

Powered by
Apache Yetus 0.9.0 http://yetus.apache.org

This message was automatically generated.

@Apache9 I updated the PR according to your feedback. Thanks for that.

:confetti_ball: +1 overall

Vote
Subsystem
Runtime
Comment

0
reexec
74
Docker mode activated.

_ Prechecks _

+1
hbaseanti
0
Patch does not have any anti-patterns.

+1
@author
0
The patch does not contain any @author tags.

+1
test4tests
0
The patch appears to include 10 new or modified test files.

_ master Compile Tests _

0
mvndep
45
Maven dependency ordering for branch

+1
mvninstall
333
master passed

+1
compile
27
master passed

+1
checkstyle
130
master passed

+1
shadedjars
308
branch has no errors when building our shaded downstream artifacts.

0
findbugs
0
Skipped patched modules with no Java source: hbase-checkstyle

+1
findbugs
70
master passed

+1
javadoc
68
master passed

_ Patch Compile Tests _

0
mvndep
33
Maven dependency ordering for patch

+1
mvninstall
280
the patch passed

+1
compile
28
the patch passed

+1
javac
28
the patch passed

+1
checkstyle
131
root: The patch generated 0 new + 0 unchanged - 143 fixed = 0 total (was 143)

+1
whitespace
0
The patch has no whitespace issues.

+1
xml
6
The patch has no ill-formed XML file.

+1
shadedjars
261
patch has no errors when building our shaded downstream artifacts.

+1
hadoopcheck
507
Patch does not cause any errors with Hadoop 2.7.4 or 3.0.0.

0
findbugs
0
Skipped patched modules with no Java source: hbase-checkstyle

+1
findbugs
38
the patch passed

+1
javadoc
28
the patch passed

_ Other Tests _

+1
unit
12
hbase-checkstyle in the patch passed.

+1
unit
53
hbase-http in the patch passed.

+1
asflicense
20
The patch does not generate ASF License warnings.

2586

Subsystem
Report/Notes

Docker
Client=17.05.0-ce Server=17.05.0-ce base: https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-131/2/artifact/out/Dockerfile

GITHUB PR
https://github.com/apache/hbase/pull/131

Optional Tests
dupname  asflicense  checkstyle  javac  javadoc  unit  xml  shadedjars  hadoopcheck  compile  findbugs  hbaseanti

uname
Linux e630cb7b8a9e 4.4.0-137-generic #163-Ubuntu SMP Mon Sep 24 13:14:43 UTC 2018 x86_64 GNU/Linux

Build tool
maven

Personality
/testptch/patchprocess/precommit/personality/provided.sh

git revision
master / 387a5da462

maven
version: Apache Maven 3.5.4 (1edded0938998edf8bf061f1ceb3cfdeccf443fe; 2018-06-17T18:33:14Z)

Default Java
1.8.0_181

findbugs
v3.1.11

Test Results
https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-131/2/testReport/

Max. process+thread count
291 (vs. ulimit of 10000)

modules
C: hbase-checkstyle hbase-http U: .

Console output
https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-131/2/console

Powered by
Apache Yetus 0.9.0 http://yetus.apache.org

This message was automatically generated.

@Apache9 Currently trying to figure out GitHubs merge capabilities. Normally we use Rebase and merge, but this time we have two commits. Should I use Sqash and merge instead or do we have another approach for handling such cases?

Please do a force push to your own branch to merge the two commits into one first, and then use 'Rebase and merge'.
There is a discussion thread on the dev list about disabling squash and merge so we'd better not use it for now.

:broken_heart: -1 overall

Vote
Subsystem
Runtime
Comment

0
reexec
0
Docker mode activated.

-1
patch
7
https://github.com/apache/hbase/pull/131 does not apply to master. Rebase required? Wrong Branch? See https://yetus.apache.org/documentation/in-progress/precommit-patchnames for help.

Subsystem
Report/Notes

GITHUB PR
https://github.com/apache/hbase/pull/131

Console output
https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-131/3/console

Powered by
Apache Yetus 0.9.0 http://yetus.apache.org

This message was automatically generated.


OCPBUGS-11888: handle daemonSet pods restart

when delete daemonSet or daemon pods manually
pods will get recreated but the interface will
have older xdp attached to it
- What this PR does and why is it needed
fix an issue where we have stale XDP attached to interface(s) when daemonset restarts
- How to verify it

bring up OCP cluster
configure sctp and deploy sctp client and server pods

 oc get pods -o wide
NAME         READY   STATUS    RESTARTS   AGE   IP            NODE                                       NOMINATED NODE   READINESS GATES
sctpclient   1/1     Running   0          17s   <IP_ADDRESS>   ci-ln-6rzv9ik-72292-ctfxk-worker-c-ls2sf   <none>           <none>
sctpserver   1/1     Running   0          17s   <IP_ADDRESS>   ci-ln-6rzv9ik-72292-ctfxk-worker-b-n2x9r   <none>           <none>

configure INFW and add rule to drop sctp traffic

$ oc get ingressnodefirewalls.ingressnodefirewall.openshift.io ingressnodefirewall-sctp -o yaml
apiVersion: ingressnodefirewall.openshift.io/v1alpha1
kind: IngressNodeFirewall
metadata:
  creationTimestamp: "2023-05-18T16:12:05Z"
  generation: 1
  name: ingressnodefirewall-sctp
  resourceVersion: "43804"
  uid: c6136909-60fe-4d73-ad46-68468399894b
spec:
  ingress:
  - rules:
    - action: Deny
      order: 10
      protocolConfig:
        protocol: SCTP
        sctp:
          ports: 30102-33000
    sourceCIDRs:
    - <IP_ADDRESS>/24
  interfaces:
  - genev_sys_6081
  nodeSelector:
    matchLabels:
      node-role.kubernetes.io/worker: ""
status:
  syncStatus: Synchronized

run ncat traffic make sure traffic is blocked and event is generated

$ oc rsh sctpserver
sh-4.2# ncat -l 30102 --sctp

$ oc rsh sctpclient
sh-4.2# nc -v <IP_ADDRESS> 30102 --sctp
Ncat: Version 7.50 ( https://nmap.org/ncat )
Ncat: Connection timed out.

$ oc logs -n openshift-ingress-node-firewall ingress-node-firewall-daemon-lvq5x -c events --follow
2023-05-18 16:13:02 +0000 UTC ci-ln-6rzv9ik-72292-ctfxk-worker-b-n2x9r ruleId 10 action Drop len 82 if genev_sys_6081
2023-05-18 16:13:02 +0000 UTC ci-ln-6rzv9ik-72292-ctfxk-worker-b-n2x9r 	ipv4 src addr <IP_ADDRESS> dst addr <IP_ADDRESS>
2023-05-18 16:13:02 +0000 UTC ci-ln-6rzv9ik-72292-ctfxk-worker-b-n2x9r 	sctp srcPort 45827 dstPort 30102

delete ingress-node-firewall daemon set

oc delete ds -n openshift-ingress-node-firewall  ingress-node-firewall-daemon

run traffic again make sure its blocked and events are generated

$ oc logs -n openshift-ingress-node-firewall ingress-node-firewall-daemon-wwh6b -c events --follow
2023-05-18 16:14:20 +0000 UTC ci-ln-6rzv9ik-72292-ctfxk-worker-b-n2x9r ruleId 10 action Drop len 82 if genev_sys_6081
2023-05-18 16:14:20 +0000 UTC ci-ln-6rzv9ik-72292-ctfxk-worker-b-n2x9r 	ipv4 src addr <IP_ADDRESS> dst addr <IP_ADDRESS>
2023-05-18 16:14:20 +0000 UTC ci-ln-6rzv9ik-72292-ctfxk-worker-b-n2x9r 	sctp srcPort 36697 dstPort 30102

/retest

/assign @martinkennelly

Also: an E2E test for this perhaps?

Also: an E2E test for this perhaps?

Marin has an updated e2e that specially test this condition so will wait on e2e till his PR merged

/lgtm


Failing tests should abort assembly

Currently when running assembly, it will report failure at the end of the task if the tests failed. However, it continues merging/packing the jars, which takes a long time.
It would be better if it aborted immediately on a test failure if the task runs the tests.

nice idea.


ipmasq: Stop and wait until goroutine is finished in unit tests

Otherwise, a previous ipmasq agent goroutine which has been asked to
terminate (via a.close(stop)) might close the handlerFinished
channel of a new goroutine's (it's read by ref) which will result in
panic once the new ip-masq-agent is issued to stop:
goroutine 14 [running]:

github.com/cilium/cilium/pkg/ipmasq.(*IPMasqAgent).Start.func1(0xc000100aa0)

    /home/travis/gopath/src/github.com/cilium/cilium/pkg/ipmasq/ipmasq.go:146 +0x368

created by github.com/cilium/cilium/pkg/ipmasq.(*IPMasqAgent).Start

    /home/travis/gopath/src/github.com/cilium/cilium/pkg/ipmasq/ipmasq.go:124 +0x3cb

FAIL	github.com/cilium/cilium/pkg/ipmasq	0.340s

Fixes: acaa1d15ee ("ipmasq: Use fsnotify instead of periodic polling")
Fix #11373

test-me-please

Coverage increased (+0.005%) to 42.663% when pulling 177729e744ee882d6f592cf6e5cab32ec3c72483 on pr/brb/fix-ipmasq-tests into a3e29fa996f6674da65af3a0de9bc5588e78cf92 on master.

CI hit #8945 flake.

test-me-please


Prototyping: Try recreating a WordPress plugin

In chatting with @paaljoachim, we thought it may be interesting/useful to use G2 to prototype/recreate something from WP-Admin.
To make it easier, perhaps we could try prototyping an experience based off an existing plugin, for example:
https://wordpress.org/plugins/wp-user-profiles/
This will give us a good sense of what the library does well, and where we can improve.

Here's my initial attempt to prototype a Profile screen:
https://d.pr/v/ZUnkSE
Some initial thoughts:

Creating the overall UI (grid, sections, etc...) felt okay.
Form label / input widths are bit strange (off balanced)
Need to figure out an improved design for responsiveness/large screen (taking into consideration Container, form widths, etc...)
Drag/Drop (using React Beautiful DND) works... but feels painful to setup. We really need those G2 Draggable components made.

Here's the Storybook prototype:
https://g2-components.xyz/iframe.html?id=examples-wip-userprofileplugin--default&viewMode=story

This is very cool!! I really dig doing the hands-on with the prototype in Storybook!
The UI feels modern and it is easy to interact with. Dragging the objects around makes me think of the WP Dashboard.
Nicely done, Jon!

Thanks for doing this! Paal's instinct is really good here, there's nothing to make a component library battle-tested like using it to build something real.
I would nudge towards a PR to the block editor, though, as that would force us out of storybook and into the environment that is to hopefully adopt these wonderful widgets. It might be painful at first, but I believe it would also uncover issues that need addressing, both on the block editor side, and on the components side. Paal's ticket #41 is one real option, another is to tackle a redesign of the contents of the paragraph sidebar.
I have on my todo list (which keeps being unwieldy 😩) to mock up an improvement to what's in the sidebar of 3 complex blocks, such as Paragraph, Navigation Menu, Cover. I'm hoping it can serve as a bridge between the block editor, whose sidebar needs oceans of TLC, and these components, which are full of TLC (tender loving care). Outside of the solid foundation, what I would like most to see brought from here to there is the compactness of the UI, and the systematization.


Can I create a pie chart with percentage?

I'm using the paid version, @sheet/chart and wondering if I can create a pie chart with percentage shown.
Currently it shows values only as default.
Is there a way to do that?
If it's not, can I ask a feature request here?

Please send an email to<EMAIL_ADDRESS>


Receive Double Incoming call

When call from caller side then, receiver receive double incoming call on same time with same number.

@iOS29Moon the issue was resolved in 0.1.8. Do you mind to check it?


Add the kangax ecmascript feature test suite

This adds a massive test suite from kangax to make sure we can upgrade acorn without regressing in the future.
It also confirms that try/catch is not parsed properly as @Timer found last week.
I also added a README so the next person who needs to update the test suite can do so easily.

Codecov Report

Merging #68 into master will increase coverage by 0.4%.
The diff coverage is n/a.

@@            Coverage Diff            @@
##           master      #68     +/-   ##
=========================================
+ Coverage   90.05%   90.45%   +0.4%
=========================================
  Files          10       10
  Lines         995      995
=========================================
+ Hits          896      900      +4
+ Misses         99       95      -4

Impacted Files
Coverage Δ

src/analyze.js
97.28% <0%> (+1.08%)
:arrow_up:

Continue to review full report at Codecov.

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


Bicycle routing not passing turning cycle

This https://graphhopper.com/maps/?point=47.563905%2C7.601375&point=47.564188%2C7.60219&locale=de&vehicle=foot&weighting=fastest&elevation=true&use_miles=false&layer=Omniscale (pedestrian) does return the correct result, but this https://graphhopper.com/maps/?point=47.563905%2C7.601375&point=47.564188%2C7.60219&locale=de&vehicle=bike&weighting=fastest&elevation=true&use_miles=false&layer=Omniscale (bike) does not. I looked at the raw data https://www.openstreetmap.org/#map=18/47.563928/7.601315 and see clearly that the truning cycle could be a problem, but the traffic restriction contains the attribute “bicycle=yes” (I added that a few days ago) - this should work.

IMHO, the issue is that this way has vehicle=private. BTW: I think GraphHopper does not even consider the type turning_circle, which also seems no issue, since this is supposed to be mapped to nodes.
Here is a route using a turning_circle

Hmmh, strange. Why does it work for foot then as we have restrictedValues.add("private");?

Hmmh, strange. Why does it work for foot then as we have restrictedValues.add("private");?

I would say, because it is vehicle=private and not access=private. Foot does not care about vehicle.

Ah, makes sense. @kaipankrath does it make sense to you too :) ?

Actually it does - now I can take that discussion to the guy I am working with on that area. Most probably I need to review the signature on site and check the attributes on the street. However I get the argument.

If you look at the data and on the calculated route you see that you get routed along the edge of the "Messeplatz", which currently is tagged as highway and area=yes. There is no edge between this "Messeplatz" area and the turning circle.

Finally we solved that in OSM adding an attribute to a small part of the street, see https://www.openstreetmap.org/note/664769 for details (in German). Now the bike routing works as expected.

Thanks for the update!


Implementing SSRS – Substrate Simple Remote Signer protocol

Implementation of the jsonrpc remote keystore over the http/ws protocol as the substrate keystore, including a separate example server implementation.
To Do:

[x] docs
[x] Metadata, License
[x] hide behind non-default feature-flag
[x] implement remaining (currently unused) functions on server

Note: test had ecdsa support, but was removed because of https://github.com/paritytech/substrate/issues/7490

over the http/ws

Shouldn't it be https/wss? How do you secure the transport anyway?

Shouldn't it be https/wss? How do you secure the transport anyway?

This is using regular jsonrpc_client_transports, which only support http and ws afaics.

Shouldn't it be https/wss? How do you secure the transport anyway?

This is using regular jsonrpc_client_transports, which only support http and ws afaics.

it is not a secure transport, especially for this task

it is not a secure transport, especially for this task

That is correct, and no one said it was. The expected environment for this to this point was to have a secured network, like run in a VPN and firewalled system and/or expect the connection to be tunneled through external means.
I see though that the regular user might not realize they have to do that, so I could see that we hide that feature behind a build flag you'd have to explicitly activate until we have a secure-default-way of doing it instead. WDYT?

it is not a secure transport, especially for this task

That is correct, and no one said it was. The expected environment for this until now, was to have a secured network, like run in a VPN and firewalled sub-network and/or expect the connection to be tunneled through external means (like SSH).
I see though that the regular user might not realize they have to do that, so I could see that we might want hide that this behind a feature flag you'd have to explicitly activate until we have a secure-default-way of doing it instead. WDYT?

Signer will be custom software implemented anyway. So I don't think there is much sense in using non-secure transport at all, when there are secure alternatives (for example, noise). If it is properly used, there will be no need in tunnelling and stuff. Noise has implementation in many languages if that is what required - even in pure C.
JSON-RPC overhead need is also not clear to me, but I am not sure if this is critical. How much signing happens on validator node per second/minute?

@NikVolf the goal was to get something out of the door quickly with the least developer overhead from our side to allow others to start experimenting with the workflow and use case – JSONRPC was all there and quick to get up and running, that's the only reason it was used. The way it stands, there are known security problems (like, the server still needs to have some knowledge of chain-info otherwise they can't securely sign VRFs, but that also means they have some connection to a chain or chain state, which requires internet to stay up to date) and performance issues (https and JSON being two things that could be replaced with more efficient things instead, but also that signing is mostly sync for in substrate still and the example and known others approaches also follow linear service patterns – like TEE can only do one signing at a time).

After conversation with @gnunicorn I've removed the needsaudit flag; our current SSRS implementation is for experimentation only, hidden behind a feature flag and should under no circumstances be used in anything production-related.
@gnunicorn is extending the readme to explicitly state the above.
(This shouldn't stop us from raising and documenting security-related issues with it, though — it's just by far not in shape to sustain any professional attention yet, and probably never will in its current form.)

After conversation with @gnunicorn I've removed the needsaudit flag; our current SSRS implementation is for experimentation only, hidden behind a feature flag and should under no circumstances be used in anything production-related.
@gnunicorn is extending the readme to explicitly state the above.
(This shouldn't stop us from raising and documenting security-related issues with it, though — it's just by far not in shape to sustain any professional attention yet, and probably never will in its current form.)

Maybe we should than put this into its own repo?
And what is the path we continue here? I thought this issue is soo pressing that we can deprecate sentries?

And what is the path we continue here?

I must admit, I'm a bit confused here too.
I'm talking to @gnunicorn in private to better understand what should and what shouldn't go into our codebase/pass the review here.

Convertet this back to draft to more clearly signal:

we don't the intend to merge or ship this as-is
this is an example implementation showing how in the new API other remote-protocols can easily be integrated
this is a highly insecure-by-default-example and before any of it could be used, must be given appropriate documentation

Unfortunately, no other, more secure protocol has been proposed until now, which leaves us with a couple of path to go ahead, but not decided on any yet:

leave this as is and wait for other protocols to come around
replace the given transport with an at least TLS-wrapped one and probably some further hardening, like certificate pinning or off-protocol key-exchange-requirement – none of which is currently supported by the libraries used
provide a generic protocol-plugging-mechanism and move the specific implementation into a example/experimental-named repository to make clear this is more about showing the API then the specific protocol

I'd assumed remote signers were vaguely HSM-like with special hardware connections, like a second ethernet card or USB connection.  Yes, I think an internet remote signer wants a secure handshake like TLS but with fixed transport keys and IP addresses for both sides, so no CAs or DNS.
Interestingly, if you look at Noise IK and KK then you'll observe the difference is sending the initiators long term secret inside the first flow, encrypted only by an ephemeral key exchange.
IK:
  <- s
  ...
  -> e, es, s, ss
  <- e, ee, se,

KK:
  -> s
  <- s
  ...
  -> e, es, ss
  <- e, ee, se,

As the initiator knows the respondents long-term secret, one could've a hybrid handshake between IK and KK in which foreign initiators reveal their identity, which permits whitelisting on the first flow, but special distinguished initiators hide their identity against an adversary who compromises the respondents' IP address but not the respondent machine.  In other words, your remote signer can open connections that look exactly like normal node connections, but avoids immediately exposing your remote singer's IP address against BGP attacks, etc.  This is probably useless since a signer's messages look different anyways, but technically the traffic observing attacker looks different form the BGP attacker.

For now, we consider our review done for this PR - please refer to issue 21 in the internal tracker.

superseeded by #7628 .


Assets: Consider removing the Quickstart

Both samples that exist on the Quickstart project exist on the Samples project as well.
We can probably get rid of the Quickstart by adding the quickstart region tags to the Samples ones and updating the docs to point to these instead.

It seems like all docs are poiting to the new samples and not to the quickstart ones. I'll attempt to delete them and if SnippetBot does not complain we are fine.


Bump message_ix version in conda workflow

Since we pinned the message-ix version to help the conda workflow pass, we need to keep this version number up-to-date.

How to review

Read the diff and note that the CI checks all pass.

PR checklist

[x] Continuous integration checks all ✅
[x] Add or expand tests; coverage checks both ✅

The tests all pass using the mamba solver. Thus, I will

Change the description of this PR
Reset all commits and introduce just the changes we want to keep
Open a new issue to deal with the cache saving problem


game menu: add default global config for game settings

Pull Request checklist
Note: these are not necessarily requirements

[ ] I reformatted the code with clang-format
[x] I checked to make sure my submission worked
[x] I am the author of submission or have permission from the original author
[ ] Requires update of the PS2SDK
[ ] Requires update of the gsKit
[ ] Others (please specify below)

Pull Request description
Add a global config for game settings (conf_game.cfg) this allows the user to choose between loading per game or global settings on a game by game/feature by feature basis.. global config is used by default and supports GSM, Cheats & PADEMU... per game settings take precedence over global if selected.
For a simple breakdown of how it works see here:
https://www.psx-place.com/threads/open-ps2-loader-v0-9-3.13415/page-45#post-211808
Test Build
https://www.sendspace.com/file/g9vqsx

Here is also little preview of updated main Game menu GUI:

Just compiled r1399 on my end and like it alot. :D
Alas, I need a replacement Controller/MC slot bay for my Fat PS2. Controller lag and PMC detection issues are happening way too often to ignore any further.

Added a quick fix for VMC GUI, commit message explains it... the issue was present in previous builds which is why it carried over to the new Game Menu.
That should be it for this PR.
Best Regards.

Added a quick fix for VMC GUI, commit message explains it... the issue was present in previous builds which is why it carried over to the new Game Menu.
Also I gotta agree with @TnA-Plastic on this one, the UseInfoPage option is redundant now as it is always an option by choosing to press square or not before booting a game so having the toggle switch only confuses noobies.
Unfortunately without write access I'm having difficulty finding the merge conflict.. it is neither present on my local nor my fork and git says I'm all up to date but if you can show me the file(s)/conflict(s) I can show how it should be.
Best Regards.

Regarding a 'switch' to turn Info-Page on and off:
Yes, I think that is a redundant choice now! ;)
I can see only ONE reason FOR that switch, which would be the case if some theme intentionally wants to disable the Info-Page, but even then the 'switch' should reside in the Theme-Config and not in OPL's config!
Why?
First off for what @KrahJohlito mentioned (preventing confusion on the user-side) and second, it wouldn't limit users to change the function back&forth for various themes, but one theme could have an Info-Page (even if it doesn't have additional support in the cfg/scripts or no special textures for it) and another theme could have it intentionally disabled.
This would trim down user-interaction to only changing a theme, instead of changing a theme and then additionally the Info-Page-switch/setting.
So I opt for not totally removing it, but introduce the switch to the Theme-Config instead.
Old Themes could default to 'Info-Page=1', even if it is not present in the config (thus keeping compatibility to old themes, while they get support for the Info-Page) and if a theme-creator wants to intentionally block the page, he/she could add 'Info-Page=0' to his config! :)

If you don't want your custom theme to have an info page all you have to do is not add an "info0:" element.

Yes, but the (vice-versa-)way I described it, we would have support for Info-Page on every theme out there - even without adding anything to any config - and only disable it, if it were really wanted/needed. ;)

It already does that how @Tupakaveli explained, themes that support info pages will have info elements where as themes that people made not to support the info will only have main elements, you can’t switch to the info page if there are no info elements in your loaded theme. :)

That's why I also mentioned elsewhere, that I think the internal theme should have some basic info-page-support, so it can be used on themes which were not updated to include info-page-support...
I don't see, why any theme would not have the Info-Page, except for the textures/style of the integrated theme's Info-Page not aligning well with the style of the chosen theme.

Ifcaro has had a default internal info page for like over a year or something now, but I think option wise it’s better as is in this PR... all the current themes with no info elems were intended not to use an info page, if we add that theme cfg option they would all need to go back and edit their cfgs to add infopage=0.. where as this way it’s automatic.

Hello,
this branch has conflicts and the commits cannot be merged.
Best regards.

I also think a default info page would not be good idea, because then it forces the theme creator to have to build one, even though his original intent was not to support one for his custom theme.
Plus now that we can even add more elements on the MAIN page (recent fix by krah), well, there might be some new upcoming custom themes where everything (or most elements) are on the first main page.
I think the way it is now, works great.  And plus removing the redundant option of turning on/off the info page in the settings is also perfect.
Like it was said above, if the custom theme artist adds the properties that start to display the info page in the theme's CFG file, then it should show, if not, then it shouldn't show, this way to avoid a default info page that doesn't even look like it's completed or matches the custom theme's layout.
My .02 cents.

@ElPatas1
Sorry I'm not sure what happened exactly as I couldn't find any conflicts on my end.. had to issue a new PR.

Plus now that we can even add more elements on the MAIN page (recent fix by krah)
That was other contributors, Maximus32 fixed main10 bug and Tupakaveli added support for attribute images/txt on main.


Quick Config Return for Load or new Event when file is corrupted

I know that Quick Config does not generate any error if the configuration file is corrupted or not well formatted.
As an improvement suggestion, it would be great to know (after executing the load procedure) if the config file was read without error or if it contained errors.

Yes, i will improve this. Thanks.

If you are using Quick.Config for config files, please, move your code to Quick.Options. It's easy to implement and it allows json and yml formats, value range checking and more.


SearchMethod protocol

We currently have one search method, the LocalSearch class. If we are to support additional methods, we should standardise an interface for such methods that e.g. GeneticAlgorithm can rely on. This issue exists to determine that interface.

Slightly off-topic: In view of our long-term ambition to possibly include algorithms other than HGS, to what extent should be keep the docs (and code structure) specific to HGS? E.g., educate is a HGS-specific term, and it would probably be more future proof to rename this to local_search.
...
Originally posted by @leonlan in https://github.com/N-Wouda/PyVRP/pull/75#discussion_r1101053697

I've given this some thought, and settled on educate because it'd also cover non-LS type of educators. I'm not entirely sure what we want to do, but we probably do want to facilitate people hybridizing with, say, ALNS (I recall a paper doing HGS + ALNS) or something else.
This also ties into #46, which might have LS derive from a base Educator class to express this intent more clearly. A discussion about this can probably take place there.
Originally posted by @N-Wouda in https://github.com/N-Wouda/PyVRP/pull/75#discussion_r1101131530

I suggest we call it SearchMethod, rather than Educator. We should think of an overall SearchMethod protocol that e.g. GeneticAlgorithm can rely on. In that sense, #122 duplicates this issue somewhat.

I think we can keep this pretty simple, and only impose something like this:
class SearchMethod(Protocol):

  def __call__(self, sol: Solution) -> Solution:
    pass

  def on_best(self, best: Solution) -> Solution:
    pass

The on_best thing is something we'll need if we want to replicate our current GA exactly. We might eventually want to do that differently so we can simplify this further. My ideal target is a search method that also allows a simple function, that is, only requires __call__.

on_best was removed in https://github.com/PyVRP/PyVRP/pull/287.

Yeah you're right! I still had the old situation in my head. Great, then just a function it is!

I just wonder, currently the Python local search has run, search and intensify. All three of them are functions accepting a solution and costEvaluator and therefore all three of them implement this protocol, which I think is correct as all three of them can be seen as search methods. Rather than passing the LocalSearch objects we can pass the individual functions, binding the local search object as argument. Is that correct?
The user then has the freedom to implement his own function as well, either as normal function, class function or a class with explicit __call__ implementation, do you see it like that as well?

I just wonder, currently the Python local search has run, search and intensify. All three of them are functions accepting a solution and costEvaluator and therefore all three of them implement this protocol, which I think is correct as all three of them can be seen as search methods. Rather than passing the LocalSearch objects we can pass the individual functions, binding the local search object as argument. Is that correct?

Yes, that works under #297. I see most of this as a bit of a historical coincidence due to how we implement LocalSearch.__call__.

The user then has the freedom to implement his own function as well, either as normal function, class function or a class with explicit __call__ implementation, do you see it like that as well?

Yes.


Mark hooks as producer/consumer

and warn in case of wrong mutual order.
Additionally, every hook should expose lists of produced/consumed sources if applicable.

Closed for low-priority and long inactivity.


feat: [sveltekit-pod] 2. Add routing and create homepage

Resolves #378

Background
We want to demonstrate basic routing as part of each kit. To do so, we want a homepage that directs to all the examples we've created thus far.
Acceptance

[ ] Add and configure routing
[ ] Create a basic homepage that lives at /
[ ] Route the counter component to /counter
[ ] Route the API component to /api-example

Note:

The mock was taken from a different kit. Change the text to be align with the current kit

Mock

Please align design of home page to mock


⚠ Slack has degraded performance

In ebbbf0f, Slack (https://status.slack.com/api/v2.0.0/current) experienced degraded performance:

HTTP code: 200
Response time: 101 ms

Resolved: Slack performance has improved in 91d0c96 after 726 days, 22 hours, 51 minutes.


Constituency level data

For https://github.com/mysociety/local-intelligence-hub/issues/4, Calculate constituency level RUC scores.

Version 2: Includes labels for constituency based on RUC https://mysociety.github.io/uk_ruc/datasets/uk_ruc/latest


BLD: spatial: fix ckdtree depends header list

Fixes the issue that ckdtree extension is rebuilt unnecessarily, due to
some of the depends files not existing.

Merging directly, straightforward fix.


FLAnimatedImageView not animating after setting UIImageView with same URL

I'm setting a UIImageView with pin_setImageFromURL.
Later, I set a FLAnimatedImageView with the  same method and URL.
imageView.pin_setImageFromURL(NSURL(string: "http://i.giphy.com/RqFXe34guTAAg.gif")!)
let dispatchTime: dispatch_time_t = dispatch_time(DISPATCH_TIME_NOW, Int64(0.1 * Double(NSEC_PER_SEC)))
dispatch_after(dispatchTime, dispatch_get_main_queue(), {
    self.flAnimatedImageView.pin_setImageFromURL(NSURL(string: "http://i.giphy.com/RqFXe34guTAAg.gif")!)
})

When I do this, the FLAnimatedImageView does not animate.
Perhaps the image is initially cached as a still image, so it will never appear animated?

That's a good theory!

@cannyboy is this still an issue with the latest beta? This logic has been rewritten.

Closing this for now, but please reply back if you have more info!


The results of the assessment were not good

Thanks for the wonderful works!! It helps me a lot!
After 30 rounds of training with your script, I found that the results of the assessment were not very good, as shown below

What could be the problem and would like to seek some help
Looking forward to your reply, thank you!

Hi, can you try PyTorch 1.7.1 or 1.12.1?

I am now closing this issue as there is no response.


Could not find request resource

Describe the bug
Create a brand new Sveltkit project and launch with error: Could not find request resource

Reload the page and then get this error:

Reproduction
Create a brand new Sveltkit project:
npm init svelte@next test
Select demo project with defaults:
✔ Which Svelte app template? › SvelteKit demo app
✔ Use TypeScript? … No / Yes
✔ Add ESLint for code linting? … No / Yes
✔ Add Prettier for code formatting? … No / Yes
cd test
npm Install
npm run dev -- --open
Logs
No response
System Info
System:
    OS: macOS 12.1
    CPU: (12) x64 Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
    Memory: 425.43 MB / 16.00 GB
    Shell: 5.8 - /bin/zsh
  Binaries:
    Node: 14.18.1 - /usr/local/bin/node
    Yarn: 1.22.14 - /usr/local/bin/yarn
    npm: 8.1.1 - /usr/local/bin/npm
  Browsers:
    Brave Browser: <IP_ADDRESS>
    Chrome: 97.0.4692.71
    Safari: 15.2
  npmPackages:
    @sveltejs/adapter-auto: next => 1.0.0-next.13
    @sveltejs/kit: next => 1.0.0-next.234
    svelte: ^3.44.0 => 3.46.2

Severity
blocking all usage of SvelteKit
Additional Information
No response

It looks like #3415 was missing a changeset for create-svelte and the necessary changes to the starter apps there weren't published.


netbird: 0.30.2 -> 0.31.0

Things done

Built on platform(s)

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

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] 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

[ ] 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
[x] Tested basic functionality of all binary files (usually in ./result/bin/)
24.11 Release Notes (or backporting 23.11 and 24.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.

Tested the basic functionality and works on x86_64-linux. Also tested the new functionality of deleting Netbird setup keys and that works on x86_64-linux too.
https://github.com/netbirdio/netbird/releases/tag/v0.31.0
Add a :+1: reaction to pull requests you find important.

I think the commit msg should be netbird: 0.30.2 -> 0.31.0

I meant the commit not the title of the mr :see_no_evil:

I meant the commit not the title of the mr :see_no_evil:

Is that required for approval or nitting?

Is that required for approval or nitting?

Yes, the commit message for updates is required. In this case, however, since this PR only consists of one commit, the merger can squash to edit the commit message accordingly. Please use the correct commit message syntax next time. Thanks!

however, since this PR only consists of one commit, the merger can squash to edit the commit message accordingly

Thanks for the information and noted.


plugin 'com.github.dcendents.android-maven' breaks Gradle 2.14 update

Will be delaying this fix due to Gradle 2.14 bugs. Will investigate if still needed in 2.15+


Not working on Monterey 12.7.1

It's my own foolish fault for not checking it on one system before also updating the other, but I can confirm that this is no longer working on this version of Monterey, and the dreaded Orange Dot is back while I've got a zoom meeting on the same computer. I've tested on 2 machines. It has also stopped working on my 3rd computer, which is running Ventura 13.6.1, but thankfully I only use that one to push, not to capture.

In macOS Sonoma 14.4 or later, you can hide the recording indicator on external displays without using Recording Indicator Utility. Learn more ↗


Update gettingstarted.md

Figured it's best to tell people not to do something before telling them to do it =P
also, is that specific to<EMAIL_ADDRESS>I'm using ^1.0.0 and the top section is working fine for me (meanwhile, I wasn't even able to locate a directory under node_modules/react-native-mmkv-storage/android/src/java/com/ammarahmed/mmkv

@TimTheToaster Can you mention that you should skip only if using reanimated >=2?

Closing since we don't need this configuration anymore in the latest version.


Added fast register functionality

TL;DR

Added fast registration functionality

21:10:38 ➜ flytectl  register files /Users/yuvraj/workspace/flyteorg/flytesnacks/cookbook/core/_pb_output/*  -d development  -p flytesnacks  --k8ServiceAccount=default --outputLocationPrefix="s3://my-s3-bucket/prefix" --additionalDistributionDir="s3://my-s3-bucket/fast" --continueOnError -c config.yaml --version=v1.0.0 --fast
 ---------------------------------------------------------------------------------------------------------------------------------------- --------- ------------------------------
| NAME (84)                                                                                | STATUS  | ADDITIONAL INFO              |
 ---------------------------------------------------------------------------------------------------------------------------------------- --------- ------------------------------
| /Users/evalsocket/workspace/flyteorg/flytesnacks/cookbook/core/_pb_output/00_core.control_flow.dynamics.return_index_1.pb              | Success | Successfully registered file |
 ---------------------------------------------------------------------------------------------------------------------------------------- --------- ------------------------------
| /Users/evalsocket/workspace/flyteorg/flytesnacks/cookbook/core/_pb_output/01_core.control_flow.dynamics.update_list_1.pb               | Success | Successfully registered file |

Flytectl Config
admin:
  # For GRPC endpoints you might want to use dns:///flyte.myexample.com
  endpoint: dns:///localhost:30081
  insecure: true
logger:
  show-source: true
  level: 3
storage:
  connection:
    access-key: minio
    auth-type: accesskey
    disable-ssl: true
    endpoint: http://localhost:9000
    region: my-region-here
    secret-key: miniostorage
  cache:
    max_size_mbs: 10
    target_gc_percent: 100
  container: my-container
  type: minio

Type

[ ] Bug Fix
[x] Feature
[ ] Plugin

Are all requirements met?

[ ] Code completed
[ ] Smoke tested
[ ] Unit tests added
[ ] Code documentation added
[ ] Any pending items have an associated Issue

Complete description
How did you fix the bug, make the feature etc. Link to any design docs etc
Tracking Issue
https://github.com/lyft/flyte/issues/
Follow-up issue
NA
OR
https://github.com/lyft/flyte/issues/

You do not need the cache configuration

I see that fast is just a flag, what happens if fast is not set, but the output files are generated using fast serialization? Do we have some check that detects this and fails / asserts

@kumare3 we have that check. So if you try to register fast serialize files then it will through the error but currently, we don't have a check for fast registration of serialize proto (It should also through error. Right ?).

@evalsocket what if the storage is not configured and we try to do fast-register?

@kumare3 if storage is not configured then it will fail when we will create storage client. Yes it will handle archive files.

Can you print an example
Of the error, I think we should explain the user to configure storage and link to example configurations


Starter template error

What is the location of your example repository?
No response
What version of Hydrogen are you using?
Hydrogen 2
What version of Remix are you using?
No response
Steps to Reproduce
npm init @shopify/hydrogen

Expected Behavior
Normal initialization
Actual Behavior
Error in starter templates

Thank you for reporting this. This looks to be Windows specific. We are working on a fix.

That's not worked

I've tried to use npm init @shopify/hydrogen@latest, but i'm still having the same issue.

I ran into a few issues using windows and the hydrogen-cli seems to attach a leading / to the distPath variable.
I tried both yarn create and npm create but not npm init. I wasn't able to get the create script to work, however I copied the demo-store-ts template files to my local repository to get it up and running.
As a quick workaround to get the dev server to launch, I modified the local<EMAIL_ADDRESS>file to assign the distPath as new URL("..", import.meta.url).pathname.substring(1); (adding the substring(1)).
This is not a solution to the situation, but may help guide contributors to a fix.

After luck to create new app (thanks to the authors above) I had a problem to run it.
I have duplicate disk letter after "npm run dev"
[(
)]
Also tried to build with "create" and "init" the result is the same.
platform: Windows 11, Node 18.14.0

I copied templates to the "C:\Users\Ltuser\AppData\Local\npm-cache_npx\0e131c694ee80c91\node_modules<EMAIL_ADDRESS>by hands from downloaded repository. After that I had a luck to create new app (thanks to the authors above) I had a problem to run it. I have duplicate disk letter after "npm run dev" [( )]
Also tried to build with "create" and "init" the result is the same. platform: Windows 11, Node 18.14.0

In the folder node_modules/@shopify/cli-hydrogen/dist/utils open the file virtual-routes.js and around line 9 you'll have something like this: const distPath = new URL("..", import.meta.url).pathname;
What I did to temporarily fix this was replace is with this:
const distPath = new URL("..", import.meta.url).pathname.slice(1);
This is because like what you said, it duplicates your Drive Letter.
Seems like the import.meta.url includes too many slashes.
Note that this change will disappear when you update the package or reinstall them.

Thanks everyone for reporting this. Trying to fix it in https://github.com/Shopify/hydrogen/pull/495 . If anyone has some time and a Windows machine, please test these changes.

Thanks everyone for reporting this. Trying to fix it in #495 . If anyone has some time and a Windows machine, please test these changes.

Hi thanks for your answer, I checked it, and now it works now properly.

Please try updating to<EMAIL_ADDRESS>or directly with npm create @shopify/hydrogen@latest again 🤞

Seems like on line 15 the new URL(file:///${relativeFilePath}) is not accepted on Windows, removing a slash at file:/// fixes the problem on Windows, don't know about other OS'es

@jarnodev Nice catch! That's definitely at least one of the problems. Regardless, we will try to get access to Windows environments before closing this issue again. We've been debugging this blindly so far 😅

I tried to run the commands off of this branch on my local Windows machine: Win10, Node v16.15.1
The init still errors due to missing starter template files:

I checked that these worked:

template-downloader.ts~downloadTarball() executes
storageDir appears to be correct<EMAIL_ADDRESS>response body is fetched
pipeline function gets to the extract() stage

Not sure where to go from here. Let me know if you want to pair on it and drive the development with my local machine.


closes #3

I think having the country code is clear enough, this seems unnecessary. thanks so much for your contribution and time!


Zig: Update to 0.9.0

Set Zig default release only within scripts/install_zig.sh (so we can switch releases in future from one place)
Update allocator and random interfaces for Allocgate
Update PriorityQueue interface
Use namespaced OS bits
Use @import(builtin).target instead of std.Target.current
Rename c_void to anyopaque
Remove unused locals
Remove deprecated log levels
Update demos and experiments

https://github.com/coilhq/tigerbeetle-node/ will need to be updated as well (separately).

Thanks @sentientwaffle ! Yes, it's my plan to tackle tigerbeetle-node as soon as this lands, so I can update the tigerbeetle submodule there.

@ifreund thanks for the IO fixes for Linux.


Which is better? angular-ellipsis or ng-text-truncate?

ng-text-truncate
https://github.com/lorenooliveira/ng-text-truncate
Demo
https://rawgit.com/lorenooliveira/ng-text-truncate/master/demo1.html
Why is angular-ellipsis more active and more popular?

From the looks of it, ng-text-truncate requires you to specify the maximum number of letters or words to display.  On the other hand, angular-ellipsis automatically truncates the visible text to the size of the containing element.  If you're dealing with dynamic text or multiple devices screen sizes, angular-ellipsis will be more flexible.


[dif, hmac] add unit test dif_hmac_get_message_length

Signed-off-by: Hugo McNally<EMAIL_ADDRESS>This pr only adds a unit test for the function dif_hmac_get_message_length .

LGTM, thanks @HU90m for the PR.


typename() intrinsic function to emit the type as a string literal

Search Terms
type instance stringizing name
Suggestion
It would be really useful to get the type of something as a string so it can be evaluated later at runtime.
typename() intrinsic function,
returns whatever your typescripts sees as the type as a string, this is emitted as a string constant in the output javascript.
Use Cases

Runtime logging in a generic where its desirable to log the interface name for debugging purposes.
Anywhere you have a strict separation between data and logic (ie it came from JSON, redux etc), there is no constructor to use a proxy for a type instance.
would allow implementation of a reflection system without touching the compiler.

Examples
const s = typename(string); // "string"

// the above would be emitted in javascript as:
const s = "string";

const s = "hello world";
const typename = typename(s) // "string"

const stringOrNumber: string | number = 9;
const typename = typename(stringOrNumber); // string | number

interface MyInterface { name: string, email: string };
const typename = typename( {} as MyInterface ); // "MyInterface"
const typename = typename( null as MyInterface ); // "MyInterface"
const typename = typename( undefined as MyInterface ); // "MyInterface"

// This would also allow construction of descriptor object literals that can
// survive transfer through JSON serialization
interface TypeInstance<T> {
  _t: string;
  _keys: string;
}

function TypeInstanceOf<T>(): TypeInstance<T> {
  return { _t: typename(T), _keys: typename(keyof T) }
}

const typeinstance = TypeInstanceOf<MyInterface >(); // { _t: "MyInterface", _keys: "name | email" }

const typestring = JSON.stringify(typeinstance); // "{ _t: "MyInterface", _keys: "name | email" }"

Checklist
My suggestion meets these guidelines:

[X] This wouldn't be a breaking change in existing TypeScript/JavaScript code
[X] This wouldn't change the runtime behavior of existing JavaScript code
[ ] This could be implemented without emitting different JS based on the types of the expressions
[X] This isn't a runtime feature (e.g. library functionality, non-ECMAScript syntax with JavaScript output, etc.)
[X] This feature would agree with the rest of TypeScript's Design Goals.

Unfortunately this doesn't check out with with the 3rd/4th items in the checklist.
* This could be implemented without emitting different JS based on the types of the expressions
* This isn't a runtime feature (e.g. library functionality, non-ECMAScript syntax with JavaScript output, etc.)

Any reason quick-info in the editor doesn't work?

That would completely defeat the goal.
I want to make the type information available to the runtime as a string
literal, this means you can avoid doing things like:
myFunction(typename: string, arg: string) {
console.log( typename + " says " + arg );
}
example code:
myFunction("MyType", "hello world"); // yuck, no inference, had to
double enter type constant, no safety on typename, could have a typo
With the typename intrinsic this would be first some standard boilerplate
for reference:
interface TypeTunnel { typeName: string; }
myTypeTunnel() { return { typename T } as TypeTunnel; }
// now exercise the new functionality
myFunction( myTypeTunnel(), "hello world" );
Also note this sort of thing is very common in most languages, see
stringizing operator, token pasting operator and so forth, and it requires
no new runtime functionality, its just saves having to enter all the type
literals manually as strings by declaring a string literal for you.
On Sun, Feb 17, 2019 at 12:18 PM Daniel Rosenwasser <
<EMAIL_ADDRESS>wrote:

Unfortunately this doesn't check out with with the 3rd/4th items in the
checklist.

This could be implemented without emitting different JS based on the types of the expressions* This isn't a runtime feature (e.g. library functionality, non-ECMAScript syntax with JavaScript output, etc.)

Any reason quick-info in the editor doesn't work?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/Microsoft/TypeScript/issues/29944#issuecomment-464503718,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AYBTeBXTmqEN-5jzLzAyitZ2usNQtVsyks5vObkWgaJpZM4a_R_o
.


Change the colour scheme based on temperature / weather type enhancement

AUTHOR
@harshsharma6401 @Riyadevvarshney11 @KshitijDarekar @psahithireddy

It works perfectly fine in localhost, but the search doesn't work in the deployed version. Idk what's the issue 👀

It works perfectly fine in localhost, but the search doesn't work in the deployed version. Idk what's the issue 👀

It's deployed without the API key. Netlify >_<


Aggregate intialization and designated initializers

Is your feature request related to a problem? Please describe.
Its okay to not want to implement constructors and destructors because they come with a whole host of issues.
But not having to make a static create for every struct would be nice.
Describe the solution you'd like
Aggregate initialization {} and initialization with named members to avoid the razorsharp knife I could cut myself with.
Describe alternatives you've considered
Static factory functions.
They're really verbose, got to repeat  all members as parameters, and typename of the struct, and remember about assignments.
Its a lot of code to hand-write.

TL;DR Basically https://github.com/microsoft/hlsl-specs/blob/main/proposals/0005-strict-initializer-lists.md but with being able to write out names of members to initialize (less error prone)

C-style aggregate designated initializers would be interesting too!

C-style aggregate designated initializers would be interesting too!

yeah exactly what I'm looking for, definitely not the C++ style because then your designators need to match order of declaration in struct.
I'd rather have that be a warning than an error.

Re: designated initializers, I'd love for the following to compile and work:

struct Varying {
    float4 position: SV_Position;
    float2 uv: TEXCOORD0;
};

Varying VSMain(
    float3 position: POSITION,
    float2 uv: TEXCOORD0
) {
    return {
        .position = mul(constant.combined_matrix, float4(position, 1.0)),
        .uv = uv
    };
}


Should pass state for FedEx rates

Currently for US addresses we don't pass the state on FedEx rate lookups. It seems FedEx has changed their API and now want states but they are doing the transition somewhat gracefully and allowing non-stated states for now and just giving a warning.
The warning given is "NOTE - 820: The destination state/province code has been changed."
This is mostly guesswork based on the warning and the fact that we don't pass through states. I don't have a recent copy of the API docs on hand right now to check.
@eboswort @kmcphillips

same issue


Spaces ignored when copying text from PDF generated via this template

I was using the template from Overleaf.
However when copying any text from the generated PDF, in most of the sentences the spaces would be ignored.
So it would look like this
Miseenplaced'unestratégiedesauvegardeetderestaurationdesbasesdedonnéesDB2
As a suggestion from other forums, I have tried adding the package Microtype. However it hasn't helped.
I doubt, if this messes up with the ATS on the various websites
Any suggestions on how to fix this ?
Also I would try compiling this on my own to see if it helps.
TIA

I just tried with the fresh template on Overleaf as well, and it happens specifically with the Experience Section
Here is what the copied text looks like
Architecte logiciel | Développeur/Concepteur Senior JEE, EPI, Nouvelle-Calédonie  ∠ Reconstructiondelaplateformed’intégration
∠ Migrationdel’ensembledesprojetsJavasousMaven
∠ Evolutionsetcorrectionsdesbugsduframeworkdedéveloppementinterne ∠ Veilletechnologique

Hi, thanks for opening this issue. It's a weird one ;)
I'll to reproduce as soon as I can.


devaudit httpd with root throws exception -- root appears to be hard coded

Running devaudit with no arguments tells you this for httpd:
 Audit an Apache Httpd server instance. Use the  --root option to specify the root directory of the Httpd server instance, and the --config-file option to specify the configuration file otherwise conf/httpd.conf will be used.

But for apache, I needed these arguments:
./devaudit httpd --application-binary /usr/sbin/apache2 --config-file /etc/apache2/apache2.conf --root /

The help text was non-obvious. We should mention the application binary argument, and perhaps provide an example.

Hmm. Its not that bad, really, but as this is the default apache usage it might be worth mentioning the --application-binary bit. What do you think?

I updated the help text to be a bit more informative. I think a better solution would be to automatically rely on the Linux which command to locate the application binary. The which command is usually available on most Linux installations and -b can be a fallback when the binary path can't be determined automatically or the user wants to directly specify this path.

Visually confirmed fix