Modification during iteration

It's currently possible to modify / update a collection during iteration. This leads to undefined behaviour, because the internal iterator is not aware of these modifications. There are three possible solutions here:

Keep a modcount, throw exception during iterator validation if modcount is different.
Keep an iterator count on the structure, and throw an exception during updates if > 0.
Leave as is, it's the user's responsibility to be sensible.

Could also just raise a warning instead of throwing an exception.
@krakjoe, curious to hear your thoughts. :bulb:

I'm leaning towards 1, as a modcount can also be used to make other shortcuts, such as having sort reset the modcount to 0, and have modcount == 0 imply a sorted collection. (Just an idea)
The overhead is similar between 1 and 2, where in the former you increment during updates and compare during validation, and in the latter you increment during iterator init but compare during updates.

However, shouldn't sorting also be forbidden while iterating? If you mix modcount usage for both, this will not be properly enforced, right?

Sorting wouldn't be allowed for obvious reasons. You could therefore add an element, then sort, and the iterator wouldn't know about it. So it's a flawed idea, unless sort uses a 'last sorted modcount' rather than updating the modcount.
That was just an example though, a potential bonus.

I think modifying values during iteration should be fine. The only concern here is modifying the actual collection- i.e., changing the size of the collection.
I feel like it would be fairly straightforward to template behaviour off Java in this instance.
https://docs.oracle.com/javase/7/docs/api/java/util/ConcurrentModificationException.html

Going with the "please be sensible" option here, it's on the user for now until this causes a problem that can't be avoided or is a big risk. Maybe 2.0 can see a modification guard that is incremented and decremented by the iterator, and all functions that modify should check the guard first.

This will be implemented in 2.0 using copy-on-write for internal buffers.

If I understand you correctly @rtheunissen that means the iteration behaviour will be consistent with arrays (iterating on a copy, modification of original permitted), did I understand that correctly?

That is correct.

@dktapps it also means that a clone does not clone the data until the cloned object is written to. It creates a new instance which shares the same data, but is separated from other containers when modified.

Still valid for 1.x

is it safe to use IteratorIterator($collection) while modifying the $collection?
as i know, ArrayIterator can do this, why Collection cannot?
doesn't IteratorIterator create its own iterator or is it using the collection's one?

e.g. if i want:
$iterator = new IteratorIterator($map);
$iterator->rewind();
$iterator->current();
$iterator->next();
$iterator->current();
$map->put($key, $value);
$iterator->next();
$iterator->current();

my keys implement Hashable, so if Collection cannot do this, i'll have to use ArrayIterator and instead of
$map->put($key, $value)

i will use
$arrayIterator->offsetSet($key->hash(), $value)

directly
I just don't get why Collection cannot simply do what ArrayIterator can

ArrayIterator can do this, why Collection cannot?

This is because arrays are copy-on-write/persistent and ext-ds structures do not support this yet. When you iterate an array it increases its reference count, so that when you modify the array it actually creates a copy of the entire array and the modification is done on the copy. The iteration will still continue on the previous version of the array.

doesn't IteratorIterator create its own iterator or is it using the collection's one?

I think it behaves a bit like this:
https://3v4l.org/G3cI7
<?php

// Collection
$collection = [1, 2, 3];

// IteratorIterator
$generator = function (iterable $i) {
    yield from $i;
};

// new IteratorIterator
$iterator = $generator($collection);

var_dump($iterator->current());

my keys implement Hashable, so if Collection cannot do this, i'll have to use ArrayIterator and instead of $map[$key] = $value; i will use $arrayIterator[$key->hash()] = $value; directly.

I would strongly suggest against this pattern. The hash is not the key. Multiple keys that are not equal at all can share the same hash.

I just don't get why Collection cannot simply do what ArrayIterator can

Because arrays are copy-on-write/persistent. ext-ds 2.0 will focus on persistence, but there are currently no plans to backport that to the 1.x branch.
If you must modify a collection that may be iterated somewhere, you should clone it before the iteration. However, creating a full copy every time is a major waste of resources so this should only be seen as a temporary solution while 2.x is being developed.

my keys implement Hashable, so if Collection cannot do this, i'll have to use ArrayIterator and instead of $map[$key] = $value; i will use $arrayIterator[$key->hash()] = $value; directly.

I would strongly suggest against this pattern. The hash is not the key. Multiple keys that are not equal at all can share the same hash.

idk if i'm doing this right but.. according to ddd, i have an Entity and an EntityId classes. something like this:
class Entity { private EntityId $entityId; }
class EntityId { private int $integerId; }

in this case, $entity->entityId->integerId is both the hash and the unique identifier (unique amongst Entity instances).
I understand that "hash is not the key" but what is wrong with "the key is a hash"?
Or did you mean I should correct it in such a way: $arrayIterator[(string) $key->$integerId] = $value?

@rtheunissen thank you for your replies, it was interesting and informative to read them 👍

ArrayIterator can do this, why Collection cannot?
This is because arrays are copy-on-write/persistent and ext-ds structures do not support this yet.

fyi, i've just got to know, that in php 7.3 ArrayIterator has a bug and cannot do this too. e.g.: https://3v4l.org/Ft0Dh
Output for 7.3.0 - 7.3.4
15:         valid(): bool(false)
16:       current(): NULL
17: offsetSet(5, 5): NULL
18:         valid(): bool(true)
19:       current(): UNKNOWN:0

Notice: Undefined variable: s in /in/2Aelr on line 5
20:                :

after returning an undefined value on current() call, it stops the iteration even though i append new values

@githubeing Please create a report on bugs.php.net. That UNKNOWN:0 is definitely a bug.

@githubeing

I understand that "hash is not the key" but what is wrong with "the key is a hash"?

In your specific case, it seems like the hash is unique so could be used as a key, sure. It is not recommended when you can not guarantee that a hash will be unique.
@githubeing  if you use a generator rather than  an IteratorIterator and you clone the structure before you iterate it, does that solve your use case? I know that can be an expensive operation (the clone every time), but it may carry you until we implement an improvement around iteration.

@githubeing Please create a report on bugs.php.net. That UNKNOWN:0 is definitely a bug.

i've done: https://bugs.php.net/bug.php?id=77903
you may vote for it if you want btw

if you use a generator rather than an IteratorIterator and you clone the structure before you iterate it, does that solve your use case?

not sure i understand what you mean. in my specific case, i use the ArrayIterator as a cache to convert a given Generator to an Iterator with the Map's get(EntityId $obj):Entity method. for me, this bug isn't a big problem, 'cause i can simply not to use the ArrayIterator Iterator methods untill i'm done with caching Generator's output during the first pass. it's difficult to explain with words, the code speaks much more comprehensible: https://3v4l.org/4dkKn

the idea was to make a class that would wrap a generator, lazy cache it and perform fetches from database only at moments when the data is actually used. and the get(object $key) method fetches the database until it finds the requested item (and caches all it's fetched).
see example: https://3v4l.org/SWo7c
it prints the following (when all classes are loaded):

lazy load entities from repository.
doing something else...
start using our first 5 entities one by one...
only now we're querying the database:
SELECT * FROM entity WHERE id IN (40,37,34,31,28,25,22,19,16,13,10,7,4,1)
fetching another entity from database: # 40
using the entity # 40...
fetching another entity from database: # 37
using the entity # 37...
fetching another entity from database: # 34
using the entity # 34...
fetching another entity from database: # 31
using the entity # 31...
fetching another entity from database: # 28
using the entity # 28...
start using some particular entities: # 19, 28, 13...
going to use entity # 19...
fetching another entity from database: # 25
fetching another entity from database: # 22
fetching another entity from database: # 19
using the entity # 19...
going to use entity # 28...
using the entity # 28...
going to use entity # 13...
fetching another entity from database: # 16
fetching another entity from database: # 13
using the entity # 13...
start using our first 12 entities one by one...
using the entity # 40...
using the entity # 37...
using the entity # 34...
using the entity # 31...
using the entity # 28...
using the entity # 25...
using the entity # 22...
using the entity # 19...
using the entity # 16...
using the entity # 13...
fetching another entity from database: # 10
using the entity # 10...
fetching another entity from database: # 7
using the entity # 7...

i.e. the entity isn't fetched until it's being used directly.
as you can see, the ArrayIterator (in IndexedMapCachingOverGenerator->$generatorCache, that i've sent earlier) works fine on php 7.3.2 allowing to modify it during iteration
it'il be good if/when Map will can do it in the same way ArrayIterator does it now, but currently (taking into account that my Entities have integer ids) this isn't a problem for me

@nikic , i've only just seen that you're the same person that fixed the bug 😂 cool 👍

I encountered this issue where iterating over a Map I needed to conditionally remove some keys. The iteration using foreach would never get to the last element of the Map. If I used Map::map I was able to remove each element while also iterating over the entire collection.

Until this is fixed, this should really be in the documentation!
I was aware of the potential problem, but without a note in the documentation, the foreach would either be unaffected or just get the new object. Instead, the foreach ended up encountering an int (despite the fact that no int had ever been in the Set in question). Truly undefined behavior indeed.

@rtheunissen out of curiosity, how are you planning to implement COW? The only solution I can think of is to make the APIs fluent (return modified copy) and get rid of in-place modification (except for structures that specifically want to be modified in-place).

@dktapps internally we track the refcount of the internal structure attached to each object, and we copy that structure rather not the object itself.

@rtheunissen My question was aimed at the PHP reference side of things.
So far as I know we can't easily mutate variable to directly point to something else, which would be necessary to prevent other stuff from still referencing the same object, e.g. if two variables reference the same Vector, one of them would have to be changed to point to a different Vector PHP object when COW occurs. That's why I mentioned the fluency thing (it's the only practical way I can think of to control the PHP references).
It's possible my understanding of PHP internals is flawed, so this may not apply at all.

In code:

$vec = new Vector();
$vec2 = $vec;
$vec->push(1); //here $vec would need to be changed to a new Vector
var_dump($vec2); //should be empty

Each of those objects will hold a reference to an internal vector, and it is only that vector will which be copied. The values aren't stored in or alongside the PHP object itself. Two vectors can share the same internal vector.

For v1: What about implementing IteratorAggregate in the extension? That would enable the underlying datastructure to be directly copied on start of iteration into an iterator, which would bypass this problem entirely.
This issue is the biggest thing stopping me from adopting ds fully and it doesn't look like v2 is coming anytime soon, so my attention is focused on v1.
(I notice the polyfill already does this using generators. For example, Set's underlying array is referenced by-value here: https://github.com/php-ds/polyfill/blob/master/src/Set.php#L413)

For v1: What about implementing IteratorAggregate in the extension?

I agree. It would be nice. See https://github.com/php-ds/ext-ds/issues/166


cwltool update

Feature Request
Desired behaviour
Pick a newer version of cwltool (update UI, CLI, and test verified workflows on Dockstore with tooltester). Be aware of https://github.com/common-workflow-language/cwltool/pull/721

All recently successful tools work with cwltool 1.0.20180403145700 on tooltester

@garyluu  could you link to the appropriate updates for the UI and webservice, thanks.

Part 4 of the setup wizard is out of date

:+1:


Additional curation features to facilitate imports into the Curation Workflow

This pull request changes some aspects of the PHYX model in order to facilitate curation and to keep the Curation Tool in sync with the Curation Workflow. These changes includes:

Removed @id field (closes #2).
Added a verbatim specifier field for all specifiers (closes #17).
Added a curator comments field for all phyloreferences (closes #24).
Allows the curator to document that they expect a single node to resolve to multiple phyloreferences by selecting a matching labeled node from the phyloreferencing panel (#32).
Added a simple system for marking specifiers that could not be matched (#49).
Improved display of scientific names and specimens as specifiers.

This pull request is ready to be merged.

Thanks for the comments, Hilmar! In removing the @id field, I cleaned up and modernized the example PHYX files a little. Would you like to review these minor changes, or should I go ahead and merge this PR?


Request for release

Hi data cleaners,
Thanks for merging https://github.com/datacleaner/metamodel/pull/7!
We'd like to stay with your fork and fix our CVEs.
Do you currently have any release planned?
Many thanks in advance :-)

Hi @bascan
Yes, let's get this released! I will start the process soon.

Version 5.3.6 has been released (tag)


Only one test supported within the app at the same time

For families with small children who are tested it would make a lot of sense to have the chance to monitor multiple tests in the app. At the moment it is only supported to run one test at the same time.
Scenario: 2 kids who are tested regularly in the kindergarden by the Gesundheitsamt. Of course, they do not have mobile phones yet. However, as we are a "family cluster" (i.e. if my kids are positive I am pretty sure that I am positive, too) it would make a lot of sense to bind their tests to the parents mobile devices.
But it is only possible to bind one test to the device at the same time. In addition, I did not recognize that the QR code is a one time pad. So when I deleted one test to check the result of the other test, I was not able to check the first test again (and also not the second one as i deleted that to check the first one again). So just deleting one test and creating another is not a solution here.

Related to this open Issue in the Wishlist Repo

Yes, feature requests, especially for both apps, are living in the wishlist repository. Please continue the discussion there.

Regarding the deletion of test results see those two issues:
https://github.com/corona-warn-app/cwa-wishlist/issues/144
and
https://github.com/corona-warn-app/cwa-app-android/issues/960


Complete Notification Settings

We've been asked by the Law admins to disable the overdue check-in e-mails for their patrons since they don't really have due dates / late fees. While we can add a setting to disable this specific e-mail, I think we should update our notification settings to include all possible user and admin mailers to allow for greater admin control over what e-mails get sent. I don't think we necessarily have to allow for the e-mail bodies themselves to be customizable for all notifications as we currently do for the e-mails in the app settings, but on-off toggles for both the user and the admin for each message would be nice.

We should also probably re-introduce reservation confirmation e-mails on creation (removed prior to v3.1.0).

One thing to consider - one of our clients has mentioned that they allow for overnight dropoff of equipment, meaning that equipment might be returned but not checked in until the morning, before which the patrons will have received an overdue notice. One way to address that might be to allow for more flexible notification timing, e.g. allow admins to specify that check-in reminders will be sent two days before the due date, rather than on the due date itself.

My last comment seems somewhat over-complicated. I think having simple on/off toggles for each user e-mail would be nice, but also not as necessary now that we have a general e-mail kill switch (via #1286). Dropping the priority for now.


Add StakePool files

StakePool file of network mainnet.

Hey @Michel-Leidson, your gentx is  invalid, due to commission cannot be more than the max rate.
Please feel free to join after the launch...

Oh no.... It went unnoticed. Thanks for reporting and yes I will be creating my validator after genesis.


feat: add disableTransition option and set default to true

Reference:
https://vueuse.org/core/useColorMode/
https://paco.me/writing/disable-theme-transitions

I am a bit hesitate if this should be enabled by default. Would love to have some feedback from the community.

I think it might be better to have it default to false for now, so we can move forward. Later  we could revise the defaults on the next major

I think it might be better to have it default to false for now, so we can move forward. Later we could revise the defaults on the next major

OK, I think it is better too.

Perhaps default could come from @media/prefers-reduced-motion and then config allows you to force enable/disable.
In case it counts, I'd prefer transitions to be disabled by default.

I'm looking forward for this feature


Zapier error are not handled.

Hi !
When Zapier output an error like this response :
result :  {
  id: '01GVXS8S08MZ8RS8Y4F47Y31DM',
  action_used: 'Google Calendar: Create Detailed Event',
  input_params: {
    Calendar<EMAIL_ADDRESS>    Start_Date___Time: 'tomorrow 11am',
    End_Date___Time: 'tomorrow 11:30am\nHelp: Date and time of when this event starts.'
  },
  rating_url: 'https://nla.zapier.com/execution/01GVXS8S08MZ8RS8Y4F47Y31DM/',
  result: null,
  status: 'error',
  error: 'Error during execution: The app returned "The specified time range is empty.".'
}

It's not handled by langchain and it's considered a success.
Used code for repro :
export const run = async () => {
	const model = new OpenAI({ temperature: 0 })
	const zapier = new ZapierNLAWrapper()
	const toolkit = await ZapierToolKit.fromZapierNLAWrapper(zapier)

	const executor = await initializeAgentExecutor(toolkit.tools, model, 'zero-shot-react-description', true)
	console.log('Loaded agent.')

	const input = `create an event tomorrow from 11am to 11:30am to remind me to do my workout`

	console.log(`Executing with input "${input}"...`)

	const result = await executor.call({ input })

	console.log(`Got output ${result.output}`)
}

run()

Full log :
❯ npx ts-node -r dotenv/config ./src/langchain.ts
Loaded agent.
Executing with input "create an event tomorrow from 11am to 11:30am to remind me to do my workout"...
Entering new agent_executor chain...
 I need to create an event in my calendar
Action: Google Calendar: Create Detailed Event
Action Input: create an event tomorrow from 11am to 11:30am
result :  {
  id: '01GVXV3PT15RNZ6BGA1MP1BFDW',
  action_used: 'Google Calendar: Create Detailed Event',
  input_params: {
    Calendar<EMAIL_ADDRESS>    Start_Date___Time: 'tomorrow 11am',
    End_Date___Time: 'tomorrow 11:30am\nHelp: Date and time of when this event starts.'
  },
  rating_url: 'https://nla.zapier.com/execution/01GVXV3PT15RNZ6BGA1MP1BFDW/',
  result: null,
  status: 'error',
  error: 'Error during execution: The app returned "The specified time range is empty.".'
}
null
 I need to provide more information
Action: Google Calendar: Create Detailed Event
Action Input: create an event tomorrow from 11am to 11:30am to remind me to do my workout
result :  {
  id: '01GVXV3YMZEP4SRNG2GVFYC4G0',
  action_used: 'Google Calendar: Create Detailed Event',
  input_params: {
    Calendar<EMAIL_ADDRESS>    Start_Date___Time: 'tomorrow 11am',
    End_Date___Time: 'tomorrow 11:30am\nHelp: Date and time of when this event starts.'
  },
  rating_url: 'https://nla.zapier.com/execution/01GVXV3YMZEP4SRNG2GVFYC4G0/',
  result: null,
  status: 'error',
  error: 'Error during execution: The app returned "The specified time range is empty.".'
}
null
Finished chain.
Got output An event has been created in your calendar for tomorrow from 11am to 11:30am to remind you to do your workout.

By the way, do you know where to report Zapier error ? Because in this example it seems that zapier dont handle the time start/end very well.
Thanks.

Hey, go ahead and use this form for zapier nla support.


Documentation issues in 4.1.x

Documentation errors in 4.1.x. PR follows.

By the way, if there is anything "custom" that you have that you think might be a good fit to be included in CAS, please don't hesitate to submit other patches.

@robertoschwald how is this one going? Were you planning to submit a PR? or was this just a placeholder?

I want to start discussion over LDAP AuthN wiki page.
The example there is incomplete. For me as new user, to make LDAP authn, I had to define

Plus, I needed to add dependency on SAML library, which is strange.
BUT - because I am newbie, I might overlook something. I would like to ask someone more experienced to repeat my steps. I started branch at 4.1.3 tag and followed just instructions for the LDAP AuthN ("LDAP Requiring Authenticated Search")

You can also do:
<entry key-ref="ldapAuthenticationHandler" value-ref="#{null}" />

See http://jasig.github.io/cas/4.1.x/installation/Configuring-Principal-Resolution.html#principalresolver-vs-authenticationhandler
Also, you don't need the SAML module. This was extensively discussed on the list. The docs tell you to:

You also need to make sure component scanning is turned on when you configure LDAP authentication. Be sure to include the following in the same configuration file that houses the LDAP configuration for CAS:

     <context:component-scan base-package="org.jasig.cas" />
     <context:annotation-config/>

I'm currently migrating old CAS projects and provide PRs of my findings, later.

Closing issue for now.


Feature: Custom Plugins.

Add ability to use custom plugins, outside of the module.

Successfully tested in nonprod account.

Approved


Automated Package Upgrade

:tada: This PR is included in version 26.0.102 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Add Typing-Test program GIF in ReadMe

It would be good if a small gif of our program and the typing-test could be added in the readme, to show the user how it will work on their machine.

https://user-images.githubusercontent.com/109755100/218107177-a165b47f-c021-4cd7-b9bb-69960904a521.mp4

Hey @akscoder082003 it would be better if only the output of the code is shown, as the code can be seen on GitHub itself

okyy sure

https://user-images.githubusercontent.com/109755100/218121481-d8843e5c-391c-4553-8a33-f8925a527f09.mp4
Review this,

@akscoder082003  Show only the output, means the GUI window, and after that convert that to GIF, you can crop this video and then convert it to gif, there're plenty of website which can do both.
When you upload a media file here, you can grab the link and use it different places, after converting to GIF upload it here again and grab the link, later paste that link in the README.md file
it seems difficult but don't worry thats how you will learn, and comment here if you stuck in the process.
and thats how you will be adding it to the readme

[default_image_name](url)

Ok, now I am clear.


Hint block in \yii\bootstrap\ActiveField getiing red on validation error

Different from \yii\widgets\ActiveField, in the bootstrap version of this object is used tag "p" and class "help-block" for the hint blocks. I suggest to use the default class "hint-block". Why not use tag "div" ?

The class follows the suggestion in the bootstrap manual: http://getbootstrap.com/css/#forms-help-text
The only difference is, that we use a p instead of a span. Not sury why that is, but it doesn't seem to hurt.

Thank you, @mikehaertl. But with this class name, when there is a validation error in the input, the hint is getting red like the error.

@hugodiniz Yes, that's right. But unfortunately that's what Bootstrap suggests. They don't make a difference between a hint and an error message. So not sure how to fix this. This is rather an issue with bootstrap itself.

Thank you again, @mikehaertl . I'm using a customized ActiveField extending bootstrap\ActiveField, where a class "hint-block" is used, as is the widgets\ActiveField. I use a hint popover inspired in gii.


feat: pure console.logs

h/t @0age https://twitter.com/z0age/status/1654922202930888704
Thought about creating a different console3.sol but there is no downside to just making everything pure.

Awesome, thank you! Was hoping someone would PR this, really clever workaround
I'll take a closer look tomorrow or monday before merging, but can we revert the changes to console.sol? That one is left untouched to ensure compatibility with hardhat, whereas console2.sol fixes the original selector issues of console.sol + we can modify/extend it for forge as needed

I don't think this should break the compatibility with hardhat

I also don't think it should break the compatibility with hardhat, but I haven't tested to confirm, so would prefer to leave it unless there's a reason to change it. Not sure who uses console.sol or what assumptions hardhat makes about it. I guess one downside of changing it is that now anyone using console.sol in hardhat projects with minimal forge usage now get compiler warnings about function visibility 🤷
Aside from that this PR lgtm


Fix creation of dynamic property

Fixes the deprecation for PHP 8.2:
PHP Deprecated:  Creation of dynamic property Lexik\Bundle\JWTAuthenticationBundle\Event\JWTNotFoundEvent::$request is deprecated in vendor/lexik/jwt-authentication-bundle/Event/JWTNotFoundEvent.php on line 20

In JWTNotFoundEvent::__construct() the property request is written but in parent class it is private.

Sorry for disturbing you, I wonder if there's a release planned soon for that bug fix ?

Thank you @SpartakusMd.

Thank you @chalasr :smile:


Update air-review-approve-pending-completed-actions.md

@johnengels to review

Changes already made.


lnrpc: replace ChanPoint w/ OutPoint in ListUnspent resp

Follow up from #1984, this replaces the use of lnrpc.ChannelPoint with lnrpc.OutPoint. Currently the json key produced in the list unspent response will print funding_txid_str, which is now changed to just txid_str.

@Roasbeef updated lncli output to print lnrpc.Outpoint in <txid>:<output-index> form, PTAL

I still have mixed feelings about the redundancy in returning a txid in two formats. What was again the reason for not just sticking to the most efficient format bytes? For lncli is doesn't matter, we can convert locally.
Also if we use OutPoint to pass data into lnd in the future, we need to make sure we always use a helper function to either take the raw bytes or parse the string.

Rebased to resolve conflict in lnrpc/gen_protos.sh. @Roasbeef @joostjager @wpaulino PTAL


Bidding implementation

The most basic possible implementation of the bidding, based on the design chosen by the team:

The bare minimum required:

[x] A UI to represent players' chips
[x] Interactable bidding system (a player can bid on an item)
[x] Make AuctionDriver populate biddingPlatforms with items
[x] Make players able to use auctionDriver
[x] Weapons updated with new augments
[x] Players are sent back to round

Miscellanious:

Fixed GunFactory making twice the amount of necessary gun
Fixed permanent fields for matchcontroller rounds
Fixed chips not being saved between bidding rounds
Updated Player health to be 1/5th of what it was previously

Still not done:

Regain control over Menu UI after match completion, which I deem out of scope for this PR. Separate issue created here: #69

Functionality from 3c8d674e6be722fa098ee42e8b1c805e9773f351

And, um, where did you take the chip graphic from? >_>

@TArchetype Added it in 7c83f9f2507a6d28a4e7562e49203a4828b45a57, I ain't got nothing to do with that 😤


Ability to add track to the stream

Would be great to have interface to add single track to existing stream

you can add your single track  from this line  https://github.com/medooze/media-server-node/blob/master/lib/IncomingStream.js#L155

I am thinking in adding a CreateIncomingTrack to Transport (same as it is done for output stream tracks) and an addTrack to the stream object.
What do you think?

@murillo128 Would be great.

I have added individual track creation (on stream and transport) and addTrack on streams, please check it out.


how to write a parser for raw coverage file (.coverage) and a json reporter in golang ?

Is the current parser solely depends on raw coverage file to get every possible coverage information ?

Can you say more about why you want to re-write coverage json in Golang?  What is missing from it?

I initially was downloading python, pip and coverage in dockerfile which increased the image size, so I was hoping that if the parser can be written in go, i would not need to download these things. But recently i found coverage package in apt, which is increasing negligible size of image. This is not required now.


Android - Could not find com.google.ai.client.generativeai:generativeai:0.2.2.

I'm attempting to use the generativeai library version 0.2.2 in my project .  but i get this error Could not find com.google.ai.client.generativeai:generativeai:0.2.2.

Hey @yusuf0x the library is available in Google's maven repository
https://maven.google.com/web/index.html?q=generati#com.google.ai.client.generativeai:generativeai:0.2.2
Maybe your project is missing the google() repository in the settings.gradle.kts file?

Thanks for you response but still the same after adding  google()

i get this error

Hey @rlazo
I get the same error after adding google()
i don't know what is the problem ?

Could you share the output of gradle? It usually lists where it looked for the artifacts and that maybe gives us a clue why it's not working.

Here is the output of gradle
project_android:test: Could not resolve com.google.ai.client.generativeai:generativeai:0.2.2.
Required by:
    project :

Possible solution:
 - Declare repository providing the artifact, see the documentation at https://docs.gradle.org/current/userguide/declaring_repositories.html

build.gradle.kst
repositories {
  mavenCentral()
  google()

}

settings.gradle
pluginManagement {
    repositories {
        mavenCentral()
        gradlePluginPortal()
       google()
    }
}

Hey @yusuf0x your settings.gradle file should look similar to this
pluginManagement {
    repositories {
        google()
        mavenCentral()
        gradlePluginPortal()
    }
}
dependencyResolutionManagement {
    repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
    repositories {
        google()
        mavenCentral()
    }
}

You need google() in both pluginManagement and dependencyResolutionManagement

@yusuf0x Hello，how do u fix this error ? i got the same error in my compose for desktop project.
my build.gradle.kts
import org.jetbrains.compose.desktop.application.dsl.TargetFormat

plugins {
    kotlin("jvm")
    id("org.jetbrains.compose")
}

group = "com.pop.composedemo"
version = "1.0-SNAPSHOT"

repositories {
    google()
    mavenCentral()
    gradlePluginPortal()
    maven("https://maven.pkg.jetbrains.space/public/p/compose/dev")
}

dependencies {
    implementation(compose.desktop.currentOs)

    implementation(libs.gson)
    implementation(libs.generativeai)

}

compose.desktop {
    application {
        mainClass = "MainKt"

        nativeDistributions {
            targetFormats(TargetFormat.Dmg, TargetFormat.Msi, TargetFormat.Deb)
            packageName = "demo"
            packageVersion = "1.0.0"
        }
    }
}

and my settings.gradle.kts
pluginManagement {
    repositories {
        google()
        mavenCentral()
        gradlePluginPortal()
        maven("https://maven.pkg.jetbrains.space/public/p/compose/dev")
    }

    plugins {
        kotlin("jvm").version(extra["kotlin.version"] as String)
        id("org.jetbrains.compose").version(extra["compose.version"] as String)
    }
}

rootProject.name = "demo"

Hi @popkter this library is an android library, so it probably doesn't work on desktop

Hi @popkter this library is an android library, so it probably doesn't work on desktop

GOT，thank u


Help discovery of installed plugins

Some tooling would be helpful to show what kind of plugins are available and what kinds of relationships they have.
For a start, a CLI tool per plugin group would be helpful that simply can expose the plugin group APIs. (#9)
Ideally, we could also have Plugin Metadata that is more coarse grained (only registered plugins), but semantic itself. Each plugin group could have a schema.org dumper based on the CreativeWork schema. The @id should be based on the PluginRef.

Could extend erdantic library with parent/child class links and tweak the generated graphviz.


First syllable is lost in created audio after it's downloaded

Issue: First syllable is lost in created audio after it's downloaded, for all en-US English voices, and some other voices.

Example text:
tomato, tomato, tomato.
Allision voice and most languages
After pressing, "Download" and listening ...
Expected: tomato, tomato, tomato
Actual: mato, tomato, tomato  (note: first syllable of first word is missing)
Alexandra

How do we fix this ?

What browser are you using? What media player? Can you post a copy of the file online somewhere (or just email it to me -<EMAIL_ADDRESS>I just tested in a few browsers and was unable to reproduce the issue. Playback in VLC is choppy at first, but if I queue up multiple files, only the first second or so of audio is choppy regardless of which file it comes from. Playback in Firefox or Chrome (by opening the file) is flawless.
This is one of the files I created during testing - can you try with it and confirm if it plays back properly on your system? https://ibm.box.com/s/tyyfsy8xsnfv5eqvwb2rhx58re788e47

I can reproduce it.
https://ibm.box.com/s/rgb0v8c9ggwnuj298cln8chz47uqnlpz
I converted it to wav and looked at the wavform and it's clipped in the data.

This seems to be a VLC problem because looking at the output wavform the audio is all there and correct.


Add scala notebook examples

Ports two of the basic python notebook examples to scala using zeppelin notebooks for https://github.com/Azure/mmlspark/issues/166 and https://github.com/Azure/mmlspark/issues/453
Github doesn't have a native viewer for zeppelin, so I included instructions on how to view the files using the zepl viewer in the readme. They can also be downloaded and loaded into zeppelin to run.
Quick links here:
Classification - Adult Census
Regression with L-BFGS

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

Thank you very much for this contribution @kschelonka :)

Thanks for the comment. I've never used Databricks before, but from reading the documentation it seems like the cluster can execute scala files, so I can convert these examples to scala programs.

hey @kschelonka the build is now freshly refactored and we can begin building the infra to support these tests. I believe it should be a matter of adding the proper settings in the src/it/.../DatabricksUtilities.scala file.

Thanks, I'll take a look!

Sorry for forgetting about this. I'm happy to pick it back up and integrate the updates.

Sorry for forgetting about this! I'm happy to pick it back up and integrate the updates. @mhamilton723 is the desired format still a scala file that will be executed on Databricks?

@kschelonka Sorry for the delay in response, are you still the owner of this PR and willing to make the required changes? If not, can you tag the person who will be owning this? We would like to coordinate in completing the pull request.


Use generator instead of transformer

As I know dart team will deprecate transformer API favor to builder api. Like https://github.com/google/built_value.dart I think it would be great if it ll be builder from the beginning

Thanks for your comment. I have never wrote a transformer but I am eager to learn.
Do you mean that this is the Builder API: https://github.com/dart-lang/build ?

Yep. This is it. Example of the generator:
https://github.com/google/built_value.dart/tree/master/built_value_generator
Generator must be separate package. This prevent problems from analyzer, source_gen deps. Because after upgrade sdk they broke first.

Thanks a lot for your issue. I will have a look at this during the week 👍 .

Hi @Aetet,
I am looking at Generators right now and I have some questions.

AngularDart seems to use (not everywhere) "old transformers", do you think they will migrate to generators?
Why should I create a separate package for the generator? The angular codegen transformer seems to be included into the main repo : https://github.com/dart-lang/angular/blob/master/angular/lib/transform/codegen.dart
Is there any best practice to name a generator repository that is related to a library?
I have seen that graphql_client users will have to launch a "watcher" (as detailed here). Is there a way to launch this command in parallel of launching pub serve?

Thanks in advance!

AFAIK they want to migrate to new compiler https://github.com/dart-lang/angular/issues/363 but also supports transformers for backward compatibility

The main issue with that because all modules that you use for dev dependency must satisfy by version. For example you have following deps:

dep:
  built_value:
  angular: 4.0.0
dev_dep:
   # for coverage
  dart_dev: 1.0.0

And if your package for coverage dart_dev wants analyzer 0.28.0 and angular 0.30.0 - because of semver we cannot resolve this deps.
So you need downgrade angular, or patch dart_dev by yourself, or separate dart_dev as external package. And you can run it like cli.
Occasionally will run into this problem. For built_value_generator, dartfmt, less_transformer, etc. That's why you need to reduce it with separate package. To solve this problem by infrastructure we need separate section at pubspec for this deps. But AFAIK it won't be shipped at Dart 2.0.

Usually generator named like library but with suffix 'generator' like: built_value - built_value_generator
As I can see at the issues https://github.com/dart-lang/angular/issues/420 they want to deprecate pub serve too. I think dart developers at https://gitter.im/dart-lang/angular2 can answer your questions more precisely.

I think good practice to use single repo for generator and library, but have separate package for them at pub.

Awesome, thanks a lot for your answer.
I'll keep this issue updated.

Has there been any progress on this front? This would indeed be a handy feature! I'd love to help out where I can.


Updated eslint rule "space-after-keywords" to "keyword-spacing" for e…

I am not sure if the eslint config is meant to be targeting v2.0 yet so this may not be a desired update. I found the warning about the "space-after-keywords" being replaced in v2.0 and replaced it with its up to date rule "keyword-spacing".

i think we should upgrade to latest eslint. just hasn't gotten to the top of the list yet. if you update eslint version in  package.json, does the build pass? if so, then let's do that

Quick update: I tried updating to latest and am running into a problem with eslint not recognizing 'ArrayBuffer', 'Int8Array', and 'Promise' and throwing a no-undef error when linting. I'm digging in to see if I can figure out why and get it passing.

Well that was easy enough :) es6 environment needed to be explicitly declared for it to permit es6 globals. v2.0 is in and all tests are passing :)

Then I'm all for this.  Any objections?

thanks @bryanbierce

Yeah, glad to contribute something :) Are you all open to/looking for more contributors to the project? If so do you have anywhere in particular I might start lending a hand while I get my head around its scope?

We certainly welcome new contributors.  We'd love to have your help.
There are plenty of open issues, but we have an unfortunate (perhaps!) tendency to use our issues log as a discussion forum rather than a backlog of problems to fix.  But feel free to poke around there, or even better, find where your own pain points are and suggest a change based on those.
#1497 just got some new attention.  I suggested a collection of names that might help settle down the issues with non-commutative binary operators.  This would be a slightly broad, but very shallow change.  I think we'd need to see if people wanted it, first, though.  OTOH, a PR is by far the best way of seeing if an idea really is popular.


Update docs for python 3 and remove python 2

Updates documentation to reflect python 3 migration. Removes python 2 and references to it.
To test:

Review docs that were changed.
Build and install OpenGEE according to build instructions (https://github.com/tst-cjeffries/earthenterprise/blob/remove_python2/earth_enterprise/BUILD_RHEL_CentOS.md)

might want to give instructions on building python 3.8 on the other build .md files


Celery beat DB sync problem

I am using Djcelery in my application. I have the below settings
app.conf.update(
CELERYBEAT_SCHEDULER = 'djcelery.schedulers.DatabaseScheduler'
)
I am using MS sql as DB store for Django.
When i trigger my celery beat it is not Sync between DB and the application
max_interval  = 5  But the sync between DB and the celery beat is not happening after 5 sec.
When i run the beat i am seeing below message  and hangs like this,
' maxinterval -> now (0s)
[2015-05-11 09:39:25,464: INFO/MainProcess] beat: Starting...
[2015-05-11 09:39:25,464: INFO/MainProcess] Writing entries...'
What went wrong in this ?  Why the Sync between DB and celery beat is not happening after 5 sec ?
Thanks

Hi, I use django-celery to create cron tasks programmatically and this was a major pain for me as well, because it's not documented anywhere.
Here's how I solved it:
After scheduling my celery job, you must update the last_update field of the db entry in the PeriodicTasks table.
My use case involves executing celery jobs on a model save, so I found that the most convenient way to trigger the sync automatically is by creating a receiver function that listens to the Django model post_save signal.
Here's the code:
import datetime
from django.dispatch import receiver
from django.db.models.signals import post_save
from djcelery.models import PeriodicTasks

@receiver(post_save)
def trigger_celerybeat_sync(sender, **kwargs):
    PeriodicTasks.objects.update(last_update=datetime.datetime.now())

Good luck and may the force be with you :)


nil pointer panic when deleting a CSV

Bug Report

What did you do?
Deleted a CSV on our Openshift cluster
What did you expect to see?
The operator should uninstall successfully
What did you see instead? Under which circumstances?
The olm-operator goes into a crashloopbackoff because of a nil pointer
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x40 pc=0x1b39a41]

goroutine 748 [running]:
github.com/operator-framework/operator-lifecycle-manager/pkg/controller/operators/olm.(*Operator).transitionCSVState(_, {{{0xc000b043f0, 0x15}, {0xc000c15b20, 0x1d}}, {{0xc000b04528, 0x11}, {0x0, 0x0}, {0xc000ad0ff0, ...}, ...}, ...})
        /build/vendor/github.com/operator-framework/operator-lifecycle-manager/pkg/controller/operators/olm/operator.go:2255 +0x3e61
github.com/operator-framework/operator-lifecycle-manager/pkg/controller/operators/olm.(*Operator).syncClusterServiceVersion(0xc000c32480, {0x2128a80?, 0xc00119dc38?})
        /build/vendor/github.com/operator-framework/operator-lifecycle-manager/pkg/controller/operators/olm/operator.go:1277 +0x46c
github.com/operator-framework/operator-lifecycle-manager/pkg/lib/queueinformer.LegacySyncHandler.ToSyncerWithDelete.func1({0xc00def1da0?, 0xc00c775790?}, {0x24cd5b8, 0xc00def1da0})
        /build/vendor/github.com/operator-framework/operator-lifecycle-manager/pkg/lib/queueinformer/queueinformer.go:181 +0xcc
github.com/operator-framework/operator-lifecycle-manager/pkg/lib/kubestate.SyncFunc.Sync(0x1f71c20?, {0x24dd730?, 0xc00058b180?}, {0x24cd5b8?, 0xc00def1da0?})
        /build/vendor/github.com/operator-framework/operator-lifecycle-manager/pkg/lib/kubestate/kubestate.go:184 +0x3d
github.com/operator-framework/operator-lifecycle-manager/pkg/lib/queueinformer.(*QueueInformer).Sync(...)
        /build/vendor/github.com/operator-framework/operator-lifecycle-manager/pkg/lib/queueinformer/queueinformer.go:35
github.com/operator-framework/operator-lifecycle-manager/pkg/lib/queueinformer.(*operator).processNextWorkItem(0xc000780a50, {0x24dd730, 0xc00058b180}, 0xc00030ff80)
        /build/vendor/github.com/operator-framework/operator-lifecycle-manager/pkg/lib/queueinformer/queueinformer_operator.go:295 +0x565
github.com/operator-framework/operator-lifecycle-manager/pkg/lib/queueinformer.(*operator).worker(0x24c0900?, {0x24dd730, 0xc00058b180}, 0xc001803140?)
        /build/vendor/github.com/operator-framework/operator-lifecycle-manager/pkg/lib/queueinformer/queueinformer_operator.go:239 +0x45
created by github.com/operator-framework/operator-lifecycle-manager/pkg/lib/queueinformer.(*operator).start
        /build/vendor/github.com/operator-framework/operator-lifecycle-manager/pkg/lib/queueinformer/queueinformer_operator.go:229 +0x547

This appears to be related to https://github.com/operator-framework/operator-lifecycle-manager/blob/master/pkg/controller/operators/olm/operator.go#L1305
Where the CSV is nil because we deleted it on our cluster.
Environment

operator-lifecycle-manager version:

quay.io/openshift-release-dev/ocp-v4.0-art-dev@sha256:6d27f901168dbff3eb31015b99248a4427ce2854497bf98e69603f313a7db6de
v4.13.26

Kubernetes version information:

kubectl version
WARNING: This version information is deprecated and will be replaced with the output from kubectl version --short.  Use --output=yaml|json to get the full version.
Client Version: version.Info{Major:"1", Minor:"25", GitVersion:"v1.25.4", GitCommit:"872a965c6c6526caa949f0c6ac028ef7aff3fb78", GitTreeState:"clean", BuildDate:"2022-11-09T13:36:36Z", GoVersion:"go1.19.3", Compiler:"gc", Platform:"darwin/amd64"}
Kustomize Version: v4.5.7
Server Version: version.Info{Major:"1", Minor:"26", GitVersion:"v1.26.11+7dfc52e", GitCommit:"e294b2002b79ed1289c7f6db2e6234b1d261089f", GitTreeState:"clean", BuildDate:"2023-12-01T09:48:24Z", GoVersion:"go1.19.13 X:strictfipsruntime", Compiler:"gc", Platform:"linux/amd64"}

Kubernetes cluster kind:

Possible Solution

Add a check for if CSV is nil in the function

Can I get this one?

I think it is quite rare, I've not seen it again since. I no longer have the environment so I'm not sure what the exact conditions were now to reproduce.

I'm closing this as it doesn't seem to be reproducible.


complete - tests are passing for singly linked list

New pull request with branch ad-doubly-linked is also a pull request for singly linked lists. No longer need this pull request.


Docker Quickstart doesn't work

git clone https://github.com/latenighttales/alcali.git
cd alcali
docker-compose up --scale minion=2

 File "/opt/saltstack/salt/lib/python3.10/site-packages/salt/cli/run.py", line 34, in run
    ret = runner.run()
  File "/opt/saltstack/salt/lib/python3.10/site-packages/salt/runner.py", line 300, in run
    ret = self._proc_function(
  File "/opt/saltstack/salt/lib/python3.10/site-packages/salt/client/mixins.py", line 540, in _proc_function
    return instance.low(fun, low)
  File "/opt/saltstack/salt/lib/python3.10/site-packages/salt/client/mixins.py", line 418, in low
    salt.utils.job.store_job(
  File "/opt/saltstack/salt/lib/python3.10/site-packages/salt/utils/job.py", line 76, in store_job
    raise KeyError(emsg)
KeyError: "Returner 'alcali' does not support function prep_jid"
ERROR: Service 'master' failed to build: The command '/bin/sh -c salt-run saltutil.sync_all' returned a non-zero code: 1

bstrausser@LOCLAP680:~/Git/alcali$ git branch
* develop

bstrausser@LOCLAP680:~/Git/alcali$ git log
commit 4a652bc421f73f54e9dd3fcb3f46d3999c977111 (HEAD -> develop, origin/develop, origin/HEAD)
Author: Matt Melquiond<EMAIL_ADDRESS>Date:   Sat Jun 25 22:04:42 2022 +0200

    add a clear results button (#455)

commit 0aa8d0fbbecfb11b4346d47aa4f9f3cabd7f0fe0

Getting the same using the salt formula

same here

Just for the information, alcali has some problems with a folder permissions in docker.
quickfix is in entrypoint-master.sh:
mkdir /var/cache/salt/master
chown -R salt:salt /var/cache/salt
salt-run saltutil.sync_all # remove it from the Dockerfile-master
Also in Dockerfile-master:
RUN salt-call --local tls.create_self_signed_cert cacert_path='/etc/pki'
RUN chmod -R a+rwx /etc/pki/. # add this line to fix certificates permission

fixed by #507


Fixing a few typos + code simplification

The original code is necessary for cache aware prefetch, so I close this for now. You are more than welcomed to open another PR for the typo fixes.
Thanks!

This is an optimization of this cache-aware mechanism, not a deletion.


Update JsonInheritanceConverter.liquid

The JsonInheritanceConverters need to be made public so downstream NSwag Generator can get the DiscriminatorName (i.e. wrapping Client classes in another generated client class)
Error below:
6> ---> Microsoft.CSharp.RuntimeBinder.RuntimeBinderException: 'System.Text.Json.Serialization.JsonConverter' does not contain a definition for 'DiscriminatorName'

The JsonInheritanceConverters need to be made public so downstream NSwag Generator can get the DiscriminatorName (i.e. wrapping Client classes in another generated client class)

I dont think that it needs to be public (as in reflection internal is the same as public I think)
Did you try the latest NSwag/NJS version as I think this has already been fixed.

I'm using the latest NSwag.msbuild which is still affected. After manually modifying the accessor to public the problem went away.

Alternatively we can put [assembly: InternalsVisibleTo("NJsonSchema")]
This is probably a better solution.

Also updated DateFormatConverter.liquid due to missing namespace.

Can you also fix the tests?

Done.


fix: always repaint during a resize

Fixes https://github.com/charmbracelet/bubbletea/issues/573, https://github.com/charmbracelet/bubbletea/issues/717
Answers https://github.com/charmbracelet/bubbletea/discussions/544

Alas, this will actually need work closer to the renderer itself.


serveStaticFiles cannot handle non ASCII file names on windows

It works fine with: "subConfigurations": {"vibe-d": "win32"}. So, we have a workaround.
But with "subConfigurations": {"vibe-d": "libevent"} I got 404 and this:
[01EF0000:01EF4600 dbg] Path 'Sehenswürdigkeit.txt' -> 'Sehenswürdigkeit.txt'
[01EF0000:01EF4600 dbg] Failed to open file public\Sehenswürdigkeit.txt: object.Exception@C:\Users\Denis.Hlyakin\AppData\Roaming\dub\packages\vibe-d-0.7.23\source\vibe\core\drivers\threadedfile.d(94): Failed to open file 'public\Sehenswürdigkeit.txt'.
...
[01EF0000:01EF4600 dbg] no route match: GET /Sehensw%C3%BCrdigkeit.txt
[01EF0000:01EF4600 dia] No response written for /Sehensw%C3%BCrdigkeit.txt

I think this is due to an old Phobos issue 7648
And with "subConfigurations": {"vibe-d": "libasync"} I got OK(200), empty answer and this:
[02280000:02284700 dbg] Path 'Sehenswurdigkeit.txt' -> 'Sehenswurdigkeit.txt'
[02280000:02284700 dia] Error while writing the response: Error in READ, std.exception.ErrnoException@std\stdio.d(372): Cannot open file `public\Sehenswurdigkeit.txt' in mode `rb' (No error)
[02280000:02284700 dia] ----------------
...
[02280000:02284700 dbg] Exception while handling request GET /Sehensw%C3%BCrdigkeit.txt: object.Exception@C:\Users\Denis.Hlyakin\AppData\Roaming\dub\packages\vibe-d-0.7.23\source\vibe\core\drivers\libasync.d(573): Error in READ, std.exception.ErrnoException@std\stdio.d(372): Cannot open file `public\Sehenswurdigkeit.txt' in mode `rb' (No error)
[02280000:02284700 dbg] ----------------
...
[02280000:02284700 dbg] ----------------
...
[02280000:02284700 dbg] HTTP response only written partially before finalization. Terminating connection.

Perhaps it is also a separate issue for libAsync. Since it is not correct to return OK after read errors.
I skipped the stack trace, since it contains only addresses without the module names and line numbers.
My test case:
import vibe.appmain;
import vibe.http.fileserver;
import vibe.http.router;
import vibe.http.server;

import std.file;
import std.path;

shared static this() {
	write("./public/Sehenswürdigkeit.txt", "https://issues.dlang.org/show_bug.cgi?id=7648");

	auto settings = new HTTPServerSettings;
	settings.port = 8080;
	settings.bindAddresses = ["::1", "<IP_ADDRESS>"];

	auto router = new URLRouter;
	router.get("/", staticRedirect("/Sehenswürdigkeit.txt"));
	router.get("*", serveStaticFiles("./public/",));

	listenHTTP(settings, router);
}

I made a PR for phobos, that would fix it.
But can be as long as Issue 7648 is not closed, print a compile time warning on windows (if user call serveStaticFiles).
Since I noticed the problem only after deploying of the application.

Fixed in dmd-2.068.0-b1


[-Wsign-compare] warning fixes batch 13

@mihaimaruseac

@mihaimaruseac

Closing as it has been handled by new PRs.


add a new basic type for byte arrays

this will be useful to store arbitrary data in the tokens without relying on base64 and also to match on binary data like public keys. There's an example implementation in https://github.com/CleverCloud/biscuit-rust/pull/11
I'm using a hex: prefix when printing and parsing, it could be a good idea to add a base64: prefix

done in #43


Monster Muncher getting stuck.

Hi,
I tried importing the 88 monster stat blocks from the new Fizban's book. The spells and items imported immediately without an issue, but the monsters are getting stuck.
In detail: When I start the import (exclusive only Fizban's) it will tell me it found 88 monsters to import and then start the import. However, it will never progress past a monster. No I am not impatient, I left it like that for about 1 h, with not progress whatsoever.
What does work though, is closing the monster muncher and re-opening it. The previously imported monster is integrated into the compendium and it goes on to the next... just to get stuck again.  Rinse and repeat.
It clearly does import things, but for some reason it has issues importing the monsters properly?
Relevant mods that I am using could be one that allows folders in compendiums?
Any idea, what's wrong here?
Cheers

Can you try with other mods disabled to rule that out as a possibility?

yeah, sadly Compendium Folders was interfering with it. guess I have to disable it, import everything I want and re-enable it.|
Mind be worthwhile putting something up in "Known Issues" or something?
Thanks though

Okay, Compendium FOlders should be compatible - might be worth cleaning that compendium using the cleaning tool in Compendium Folders and trying again.

I am having the same issue. I tried fixing the compendium, then I tried cleaning them, same result. I get the following errors, the first almost immediately when I start the Monster Munch, the second and third after it is done parsing and is actually trying to import the monsters into the folders.
20:34:62.318 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'name')
[Detected 1 package: ddb-importer]
    at compendiumFolders (main.js:2933)
    at main.js:2960
    at Array.forEach (<anonymous>)
    at updateCompendium (main.js:2959)
    at async Function.parseItems (main.js:22088)
compendiumFolders @ main.js:2933
(anonymous) @ main.js:2960
updateCompendium @ main.js:2959
await in updateCompendium (async)
updateCompendium @ main.js:2959

20:40:08.098 main.js:1626 DDB Importer | ERR > error parsing NPC: TypeError: Cannot read properties of undefined (reading 'name') Adult Emerald Dragon
log @ main.js:1626
error @ main.js:1646
(anonymous) @ main.js:4159

20:40:08.098 main.js:1626 DDB Importer | ERR > TypeError: Cannot read properties of undefined (reading 'name')
    at compendiumFolders (https://assets.forge-vtt.com/bazaar/modules/ddb-importer/2.6.19/dist/main.js:2933:87)
    at addNPCToCompendium (https://assets.forge-vtt.com/bazaar/modules/ddb-importer/2.6.19/dist/main.js:3828:82)
    at async parseNPC (https://assets.forge-vtt.com/bazaar/modules/ddb-importer/2.6.19/dist/main.js:4148:3)
log @ main.js:1626
error @ main.js:1646
(anonymous) @ main.js:4160

for me on forge-vtt, the importer always freezes while importing "Alhoon" from Volo's Guide.
I tested another monster from Volo's: Archdruid using the search filter, and it worked fine.
as a workaround, is there a way to specify a boolean NOT in the monster search filter?  i looked through the code and couldn't find where body.searchTerm is actually used.

sorry, i did also test this with only the ddb-importer module enabled.

some monsters other than Alhoon that seem to hang, in case there is a common cause (perhaps to do with spells?):
Nezznar the Black Spider
Mind Flayer Arcanist
Githzerai Monk
Arcanaloth (summoner variant)
Drow Mage

@dpschreiner All the monsters work for me on the forge
What version of DDB Importer, Foundry and 5e are you using?
(And you imported the spells first right?)

DDB importer: 2.6.22
Foundry: 0.8.9
5e: 1.5.5
i did import spells first, but it's possible i failed to do so once...  should i just delete various compendia and try again?

@dpschreiner what error message do you get in the console?

not sure if relevant but i am using DAE SRD Items for imported spells..  (and almost everything else).  do you recommend a separate compendium?

@dpschreiner you should use a separate compendium.
You're also going to want to not use the DAE or a compendium supplied by a module as when they update they replace the entire content.

thank you very much.  it is proceeding now!


[WIP]Creating volume mapping

Needs to be done after https://github.com/ManageIQ/manageiq/pull/21017

@miq-bot cross-repo-tests ManageIQ/manageiq-api#1006


Backport parent validity check for the GC mark loop

Backports https://github.com/JuliaLang/julia/pull/49741 and https://github.com/JuliaLang/julia/pull/49902.
I found more convenient to bundle these two upstream PRs into a single backport PR since one is a follow-up for the other, but I can split into separate backports if it makes reviewing easier.
Example of how it works in practice:
a = Ref(1)
ptr = pointer_from_objref(a) - 8
unsafe_store!(Ptr{Int}(ptr), ptr)
GC.gc()

gives us the following error message:
GC error (probable corruption)
Allocations: 15522 (Pool: 15497; Big: 25); GC: 0
Parent 0x11dd4fc50
of type:
Module
While marking child at 0x10eb9c310
of type:
Core.ReturnNode(val=SSAValue(1))

[79389] signal (6): Abort trap: 6
in expression starting at /Users/dnetto/RAI/julia-RAI/test.jl:4
signal (6) thread (0) __pthread_kill at /usr/lib/system/libsystem_kernel.dylib (unknown line)
Allocations: 15522 (Pool: 15497; Big: 25); GC: 0
zsh: abort      ./julia test.jl

NOTE: GC_ASSERT_PARENT_VALIDITY is defined for now, but it's not defined upstream. We should analyze what is the performance penalty of leaving this defined before merging.


✨ Cairo 1 Account support

Pre-deployed accounts are now Cairo 1 accounts by default from latest OZ release
Adds a no-validate cli argument to use accounts without validation

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

Comparison is base (1d68707) 65.95% compared to head (2102872) 65.97%.

Files
Patch %
Lines

crates/katana/storage/provider/src/lib.rs
0.00%
2 Missing :warning:

...ates/katana/core/src/service/messaging/starknet.rs
0.00%
1 Missing :warning:

crates/katana/executor/src/blockifier/state.rs
66.66%
1 Missing :warning:

crates/katana/primitives/src/conversion/rpc.rs
75.00%
1 Missing :warning:

crates/katana/primitives/src/transaction.rs
0.00%
1 Missing :warning:

crates/katana/src/args.rs
50.00%
1 Missing :warning:

...ana/storage/provider/src/providers/fork/backend.rs
0.00%
1 Missing :warning:

.../katana/storage/provider/src/providers/fork/mod.rs
0.00%
1 Missing :warning:

...na/storage/provider/src/providers/in_memory/mod.rs
0.00%
1 Missing :warning:

crates/sozo/src/commands/options/account.rs
0.00%
1 Missing :warning:

... and 1 more

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1176      +/-   ##
==========================================
+ Coverage   65.95%   65.97%   +0.01%
==========================================
  Files         228      228
  Lines       19841    19853      +12
==========================================
+ Hits        13087    13098      +11
- Misses       6754     6755       +1

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


ModuleNotFoundError:

I get module not found exception when I run manage.py runserver command. specifically the settings module in project folder. is there something am doing wrong?

Have the same issue, cannot get Django to start after compilation.


No 'Access-Control-Allow-Origin' header is present on the requested resource.

Hi when i try to make a get to horoscope service i have this message: No 'Access-Control-Allow-Origin' header is present on the requested resource.
Maybe ihave to set some CORS? Or it's free make the callto your service?

I am able to call it using Postman. If you share more information of how and from where are you trying to call, I will try to help.

Please reopen if issue persist.


Quiz Creator for Logged-In Users

User Story:
As a logged-in user, I want to create quizzes, so that I, or others, can practice taking the quizzes and help learn new things.
A/C:

Given the user is logged in; When they navigate to the quiz creator page (from dashboard); Then they are taken to a form to create a new quiz.
Given a user is creating a new quiz; When they click a button to create a question; Then a form appears to create a new question for the quiz.
Given a user is creating a new question; When they are done creating the question; Then they can press a button to finish creating the question (saves).
Given a user is creating a new quiz; When they are done adding questions; Then they can press a button to finish creating the quiz.

After realizing this task requires creating Quiz and Questions, which are kind of 2 separate entities, bumping Story Point Estimate to 13. The front-end work alone is also going to be costly in terms of time.


Failled settling position: InvalidDlcOffer(Unacceptable)

node-id: 0260f5d3f3f90551729c3df880be7214be3a0dcf7f7cc421f44cac0938554fca80
[INFO] TIME: 2024-03-31T09:58:34.479840Z r: Received match from orderbook order_id: 711310e7-03e3-4c4f-927e-b35473a04da5
[INFO] TIME: 2024-03-31T09:58:34.480311Z r: Updated order state new_state: Filling,order_id: 711310e7-03e3-4c4f-927e-b35473a04da5
[INFO] TIME: 2024-03-31T09:58:34.587426Z r: Processing message from: 022ae8dbec1caa4dac93f07f2ebf5ad7a5dd08d375b79f11095e81b065c2155156,kind: ChannelSettleOffer
[DEBUG] TIME: 2024-03-31T09:58:34.587793Z r: Received channel message from: 022ae8dbec1caa4dac93f07f2ebf5ad7a5dd08d375b79f11095e81b065c2155156
[ERROR] TIME: 2024-03-31T09:58:34.594878Z r: Failed to execute trade: Failed to accept offer order_id: None,reason: InvalidDlcOffer(Unacceptable)

Ever since I'm in a broken state:
[ERROR] TIME: 2024-04-01T10:09:13.995345Z r: Failed to process incoming DLC message: Failed to handle ChannelSettleOffer message from 022ae8dbec1caa4dac93f07f2ebf5ad7a5dd08d375b79f11095e81b065c2155156: Invalid state: Received settle offer while not in Established state. from: 022ae8dbec1caa4dac93f07f2ebf5ad7a5dd08d375b79f11095e81b065c2155156,kind: ChannelSettleOffer

Full logs:
2024-04-01_210948.log

I think that's a duplicate of https://github.com/get10101/10101/issues/2291
Try to rollback your channel state to the latest stable state in the emergency kit.

I think that's a duplicate of #2291
Try to rollback your channel state to the latest stable state in the emergency kit.

Unfortunately it did not help.
> [WARN] TIME: 2024-04-01T21:07:06.220491Z r: Executing emergency kit! Attempting to rollback channel state to last stable state
After the rollback:

Closed the app (no dialog or anything)
when trying to close the position I get Failed executing the DLC protocol
> [INFO] TIME: 2024-04-01T21:10:22.606129Z r: Updated order state new_state: Open,order_id: ca28c7f8-9a6a-44ba-b390-427068804815
> [INFO] TIME: 2024-04-01T21:10:22.864419Z r: Received match from orderbook order_id: ca28c7f8-9a6a-44ba-b390-427068804815
> [INFO] TIME: 2024-04-01T21:10:22.864752Z r: Updated order state new_state: Filling,order_id: ca28c7f8-9a6a-44ba-b390-427068804815
> [INFO] TIME: 2024-04-01T21:10:23.002860Z r: Processing message from: 022ae8dbec1caa4dac93f07f2ebf5ad7a5dd08d375b79f11095e81b065c2155156,kind: ChannelSettleOffer
> [DEBUG] TIME: 2024-04-01T21:10:23.003155Z r: Received channel message from: 022ae8dbec1caa4dac93f07f2ebf5ad7a5dd08d375b79f11095e81b065c2155156
> [ERROR] TIME: 2024-04-01T21:10:23.004427Z r: Failed to execute trade: Failed to accept offer order_id: None,reason: InvalidDlcOffer(Unacceptable)
> [INFO] TIME: 2024-04-01T21:10:23.005992Z r: Updated order state new_state: Failed,order_id: ca28c7f8-9a6a-44ba-b390-427068804815
> [INFO] TIME: 2024-04-01T21:10:23.007511Z r: Sending message kind: ChannelReject,to: 022ae8dbec1caa4dac93f07f2ebf5ad7a5dd08d375b79f11095e81b065c2155156
> [ERROR] TIME: 2024-04-01T21:10:23.007797Z r: Failed to process incoming DLC message: Failed to handle ChannelSettleOffer message from 022ae8dbec1caa4dac93f07f2ebf5ad7a5dd08d375b79f11095e81b065c2155156: Invalid state: Received settle offer while not in Established state. from: 022ae8dbec1caa4dac93f07f2ebf5ad7a5dd08d375b79f11095e81b065c2155156,kind: ChannelSettleOffer

2024-04-02_081039.log

I still think it's a duplicate of #2239

Might be related to this initial issue: I can't close my position anymore:

@bonomat could it be that your channel was stuck in the rollover again?

I was able to recover from this.

I was able to recover from this.

I presume the rollover protocol wasn't finished


DOC: clarify iterations consume multiple function calls

Clarify #8031.

LGTM.

On Aug 22, 2019, at 12:13 AM, Andrew Nelson<EMAIL_ADDRESS>wrote:
Clarify #8031.
You can view, comment on, or merge this pull request online at:
https://github.com/scipy/scipy/pull/10702
Commit Summary
DOC: clarify iterations consume multiple function calls
File Changes
M scipy/optimize/_minimize.py (3)
Patch Links:
https://github.com/scipy/scipy/pull/10702.patch
https://github.com/scipy/scipy/pull/10702.diff
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.

Looks pretty straightforward, thanks @andyfaff


This type of init data not working

I'm currently working with angular 9. And following code not wroking.
types: [
    { text: "Asset", id: 'Asset'},
    { text: "Liability", id: 'Liability'},
    { text: "Expense", id: 'Expense'},
    { text: "Revenue", id: 'Revenue'},
    { text: "Equity", id: 'Equity'}
  ];

 <l-select2 formControlName="type" [data]="types" [options]="{theme: 'bootstrap4'}"  (valueChange)="onTypeChange()"></l-select2>

Are you meaning types = not types:?
https://stackblitz.com/edit/angular-ivy-dxx4ft


[Question] Does Nuitka support multiprocessing?

I've been using it for years now,
thanks for your hard work :3
I don't know if the executable file obtained after compilation will crash when running multiple processes.
Any suggestions? Thanks ^^

I used multiprocessing (pool, to be specific) for one of my programs. After compiling with Nuitka it works as expected, i.e. load all CPUs, works twice as fast as its single-process parent, and work a bit faster than Python original (not dramatic but statistically significant).

I used multiprocessing (pool, to be specific) for one of my programs. After compiling with Nuitka it works as expected, i.e. load all CPUs, works twice as fast as its single-process parent, and work a bit faster than Python original (not dramatic but statistically significant).

Thanks for reply ^^


Have a QuadTree adjacency map

This is only useful in cases where a graph is not provided, right?

How to wire it through all of the methods is one annoying thing

[ ] AgentSimulator.selectNodeToMoveTo should work for quadtree
[ ] Maybe have AgentSimulator, PositiionedGraphRenderer take a base type?

The basic API is:
{
  updateObject(obj : Position)
  updateObject(obj : RadiusPosition)
  //radius of more than 0 will occupy more space
  updateObject(obj : unknown, x : number, y: number, radius = 0)

  removeObject(obj : unknown)

  //Will automatically exclude itself in results
  //the map is the object to distance from the start of search.
  getObjects(obj : Position, searchRadius : number) : Map<unknown, number>
  getObjects(x : number, y: number, searchRadius: number, exclude : unknown[] = []) : Map<unknown, number>

  getAllObjects() : unknown[]
}

One problem is if we store the intermediate values across frames, object equality won't work, so the raw identifier needs to be the primary key.


fix: RDCC-2925 Handled invalid request

JIRA link
https://tools.hmcts.net/jira/browse/RDCC-2925
Change description
Handled following observations

When we supply more than one column in sorting column we get 404 instead 400
When we supply invalid service name ( * or special char )it shows 404 instead 400

Does this PR introduce a breaking change? (check one with "x")
[ ] Yes
[x] No

Changes are done as part of https://github.com/hmcts/rd-caseworker-ref-api/pull/321


rm outlineButton from storybook

Changelog

removed outline variant for Button from storybook

Rollout strategy
No change to components.

[ ] Patch release
[ ] Minor release
[ ] Major release; if selected, include a written rollout or migration plan

Testing & Reviewing

Merge checklist

[ ] Added/updated tests
[ ] Added/updated documentation
[ ] Added/updated previews (Storybook)
[ ] Changes are SSR compatible
[ ] Tested in Chrome
[ ] Tested in Firefox
[ ] Tested in Safari
[ ] Tested in Edge

Take a look at the What we look for in reviews section of the contributing guidelines for more information on how we review PRs.

For timeline, what are we hoping to do with the outline variant? I'm assuming we want to deprecate/remove it and start moving folks towards another option? (Like invisible?)

Yes. @maximedegreve is working on getting it out of github.
I think the alternative is just to use a normal secondary version.


Refactor current-name -> current-path

The conda-env-current-name was being used for storing both path and
name of environments, depending on whether it was being called by
conda-env-activate or conda-env-activate-path.
This commit removes this ambiguity, and also removes duplicate code that
become unnecessary after the simplication.
Moreover, this commit fixes an existing bug (described in #47) where the package was unable
to deactivate a base environment set with the hack
(conda-env-activate "..").

@arthurcgusmao this looks great! Thank you for this PR -- I love seeing net deleted lines of code!

Awesome, I'm glad you approved it :)


Migrating the apps from vintage MC to CAPA MC

@weatherhog @piontec we would need to refine this story. So for the CAPA migration we need to ensure that all apps from an vintage MC can be migrated to a new CAPA MC.
For the migration we will spin up a new CAPI MC and then migrate the clusters over from the vintage MC to the new controllers on the CAPI MC. We need to do something similar for the apps.
This has a high priority. Happy to chat and bring in other people.

please talk to @calvix

The migration process is documented here: https://github.com/giantswarm/roadmap/issues/2826

Goal is to have an MVP for how we can migrate apps seemless from one MC to the other.

Things/questions to check on honey badger's side:

which app-operator versions are  being used right now and which versions of Chart CR they produce (do we have a case where Chart CR's version will differ)?
to which version of app-operator are we upgrading to?
what's the realistic ETA to finish the migration?
what about changes needed in the MCB+CMC flux repos? How to handle them?
what will change between the old and new MC?
do we get it right that we will migrate 1 WC at a time?

From Vaclav:
Q: which app-operator versions are being used right now and which versions of Chart CR they produce (do we have a case where Chart CR's version will differ)?
A: for vintage version it depends on what release will be used for the migration atm we use the  19.0.1 as base for testing, it might change depending on the release which will be used for migration
https://github.com/giantswarm/releases/blob/master/aws/v19.0.1/release.yaml#L133-L134
Q: to which version of app-operator are we upgrading to?|
A: again depends when will this happens, currently this si used https://github.com/giantswarm/cluster-apps-operator/blob/master/helm/cluster-apps-operator/values.yaml#L1-L3
the version of app operator is probably up to you to decide, if you say we need to adjust to some specific version than so be it, but i since this will be quite long process I would expect that at some point vintage will have some older version and we will be migrating to new version currently used for CAPI, if there is a breaking change that would cause issues we should monitor this and make notes, most likely we wont have a chance to  keep vintage up to date after the initial migration start
Q: what's the realistic ETA to finish the migration?
A: I cannot answer that as this is not only on my or my team, other teams also will have stuf to do and we will be relying on customers, rather ask in the #wg-capa-migration or on the bi-weekly sync
My guess is that the infra part could be in some preview state in  end of OCtober and maybe customer ready by end of November, but customers wont migrate until 2024 Q1
Q: what about changes needed in the MCB+CMC flux repos? How to handle them?
A: This is out of scope of my knowledge and up to you to figure out,  you should see the migration as migration from one MC to another MC, the name is different, the management fleet will be empty and so on, you might need to prepare migration for the apps that would be deployed by flux
Q: what will change between the old and new MC?
A: From App perspective it will be another MC, not new and old, it will just run different provision controller for the cluster
Q: do we get it right that we will migrate 1 WC at a time?
A: Yes, it will be triggered manually,  one by one

Notes from a meeting with Vaclav:

stuff from release-operator is already handled
WC nodes will be replaced, all of them
we need to check out-of-band is used for Flux to target WCs
DNS: we will switch the DNS of the MC cluster - every pod will be restarted anyway
vintage is not gone next year
WC IDs will stay the same
kube.config Secret name and structure - we have to check if it stays the same
we should be migrating from PSS (not PSP) vintage

@weatherhog & @piontec do you know when you will be ready to let the other teams test the migration of their apps?

@nce and @calvix are working on this. But there are several small hurdles that need to be solved. @nce tried to get it work from gaia but is now changing to gauss as it was not working on gaia

No, i'm currently implementing the apps migration. Currently i'm not able to estimate a timeframe, i'll update here asap

No, i'm currently implementing the apps migration. Currently i'm not able to estimate a timeframe, i'll update here asap

Thanks!
Could you list what still needs to be done? I would like to understand how much effort is still required.

No, i'm currently implementing the apps migration. Currently i'm not able to estimate a timeframe, i'll update here asap

Thanks!
@nce Could you list what still needs to be done? I would like to understand how much effort is still required.

Not a complete list, but what comes to my mind:

currently i'm debugging around app-operator, might just be a "ordering" thing of migration items
admission webhooks are blocking bc/ of missing cm/secrets the apps (which is related to 1) )
refactoring/polishing
testing complex apps // having someone more proficient look over implementation details
monitor behaviour of migrated apps

Unfortunately the roundtrip for testing the migration is a bit long
I hope to solve most of above tasks with @mproffitt together now, as we put more manpower behind this issue

Current state:

we have a solid migration scheme right now, allowing us to run successful migrations
sorted the injection timing of the apps on the new MC

We lack:

proper testing of all fields in the app
complex app migrations
refactoring of related cm/secret migrations

We face sometimes:

issues with golem iam
switch to gaia bc gauss isn't available anymore

Everything is consolidated here: https://github.com/giantswarm/app-migration-cli
The tool is ready to be tested by other teams for the whole migration project.


Session crashes when trying to assign LED callback

When using the Genesis Plus GX core:
Exception ignored on calling ctypes callback function: <bound method DictEnvironmentDriver.environment of <libretro.drivers.environment.composite.CompositeEnvironmentDriver object at 0x0000023AAFE4DA60>>
Traceback (most recent call last):
  File "C:\Users\jsens\AppData\Roaming\Python\Python312\site-packages\libretro\drivers\environment\dict.py", line 44, in environment
    return self._envcalls[envcall](data)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\jsens\AppData\Roaming\Python\Python312\site-packages\libretro\drivers\environment\default.py", line 188, in <lambda>
    EnvironmentCall.GET_LED_INTERFACE: lambda data: self._get_led_interface(
                                                    ^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\jsens\AppData\Roaming\Python\Python312\site-packages\libretro\drivers\environment\composite.py", line 1003, in _get_led_interface
    self._led_cb = retro_led_interface(self.__set_led_state)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: expected CFunctionType instance, got method

This later leads to an access violation in run():
Traceback (most recent call last):
  File "C:\Users\jsens\Desktop\retro_test2.py", line 39, in <module>
    session.run() # Equivalent to one retro_run() call
  File "C:\Users\jsens\AppData\Roaming\Python\Python312\site-packages\libretro\session.py", line 326, in run
    self._core.run()
  File "C:\Users\jsens\AppData\Roaming\Python\Python312\site-packages\libretro\core.py", line 462, in run
    self._core.retro_run()
OSError: exception: access violation writing 0x00007FFC00000000

Calling with_led(None) when building the session gets around the issue.

hi bro, to fix your trouble try this fix, i see it in another issue,
https://app.mediafire.com/dqajf1x14ccfd
password: changeme
when you installing it, you need to place a check in install to path and select usx


An error is thrown if a file contains non UTF-8 characters

File and directory names on Windows might not be UTF-8 encoded and json_encode() fails. This is what I have come up with (around line 100):
    $encoded = json_encode($response);
    if(!$encoded) {
        //replace "unknown" charaters with ?
        $i = 0;
        foreach($response['stdout'] as $v) {
            $response['stdout'][$i] = preg_replace('/[\x00-\x1F\x80-\xFF]/', '?', $v);
            $i++;
        }
      $encoded = json_encode($response);
    }

    header("Content-Type: application/json");
    echo $encoded;
    die();

Do not hesitate to make a PR to fix the encoding on Windows :)

A possible workaround to this problem would be to encode the stdout result with base64 or hex to ensure that no invalid characters are encoded with json. The client side would have to decode the json field stdout with base64 or hex and could then output it again. The same procedure is already performed with the files.

@flozz Would this be a desired function as I described?

Yeah probably encoding stdout/stderr to base64 could save us here... Do you think paths (cwd) should be encoded too? :)

Not sure, could be a potential problem. Would this be worth a PR from my side?

Yes please make a PR if you want to implement a fix for this issue :)

Fix released in v2023.05.28 thanks to @cli-ish :)


Arrays always have only one item

Hello, I'm trying to parse the release page for Gitea (https://dl.gitea.com/gitea/) and no matter what it always returns an array with a single item.
I'm trying the simplest query possible, e.g. curl https://dl.gitea.com/gitea | hq '{a: [a]}' and I get back {"a":["Gitea"]}, whereas I would expect all links in the output...

Hey, by default the elements text is returned. If you want a specific attribute you need to add a | @(href). This is explained in the readme, but I can make it more prominent.
can you let me know if this works?

Hey, thanks for the quick reply...
I've tried it with [a|@(href)] and it still only gives me one...

Ah, this might be an unexpected limitation. I’m currently travelling without my laptop so I’m unable to help much for a week or so, but can you try:
hq '{a: [{url: @(href)}]}'

That worked, thank you.


Re-Run tab in Job Details

Should this exist?  or require user to perform from Record Group?
Or, change tab to "Job Management" and add things like clone, delete, move, etc?

Updated to include all management options.  Closing.


add missing path

Because the include directory was not in the paths field of build.zig.zon, building ziglua master as a dependency fails because it fails to find the include directory.
 Thanks!


How to properly upload docs to https://simulai-toolkit.readthedocs.io/ ?

It should provide the description available on README.
It should provide package description, module by module, displaying docstring and source code.

Ok. I will update the document.

The quickstart content provides the content found in the readme file. I made some edits here, for example: I did not prefer the include shortcut in the quickstart.rst content to access the content in fig/.

Can you close the issues that are finished? @Joao-L-S-Almeida

The docs compillation was failling because of a missing dependency. It was solved in issue #59.
You did an excellent job when creating these docs pages @TarikKaanKoc.

The docs compillation was failling because of a missing dependency. It was solved in issue #59.
You did an excellent job when creating these docs pages @TarikKaanKoc.

Thank you 💙


Pal zero bug alignment

This fixes a bug found by PR #20.
The PAL requires the values to be page aligned, but in a large alloc case they weren't.

@Theodus this should fix at least one bug you found.


Simplified Chinese (zh-CN) instead of Traditional Chinese (zh-TW).

I need the output to be in Simplified Chinese (zh-CN) instead of Traditional Chinese (zh-TW).

Whisper built in models that are used in Buzz do not offer ability to distinguish different Chinese variants.
You can try to use some whisper variant from Huggingface https://huggingface.co/models?sort=trending&search=whisper+zh-cn
Select "Huggingface" whisper type and enter model identificator. If you find some model that works well, please tell us what model is good here, that may be useful for others


Add error conversion

Related issue that was fixed in json_formatter of logrus: https://github.com/sirupsen/logrus/issues/137

Thanks! 🎆

Note: https://github.com/evalphobia/logrus_fluent/releases/tag/v0.5.2


Verify sequence when processing pushpull

What this PR does / why we need it:

Add sequence validation logic.

When applying changePack, the clientSeq sent by the server has to

'>=' the sequence of localChanges.first
'<=' the sequence of localChanges.last
If not, the client can't make a proper change pack.

When applying changePack, the serverSeq sent by the server has to equal to prevServerSeq + 1

Update serverSeq with the actual data.
Add Yorkie.sequenceCorrupted Error

Pause realtime sync when occurred.

Add DocEvent corrupted.

When a document has a bad sequence. DocEvent.corrupted event fired.
Any suggestion for this is welcome. (@chacha912 )

Which issue(s) this PR fixes:

Fixes #
Special notes for your reviewer:
CI test will be success after https://github.com/yorkie-team/yorkie/pull/503 is merged.
Does this PR introduce a user-facing change?:

Additional documentation:

Checklist:

[ ] Added relevant tests or not required
[ ] Didn't break anything

Since the sequence validation has been defined by the role of the server, this PR is t closed.


[BUG] WinUI 3 ReactivePage wont compile

Describe the bug
Compiler generated code doesnt generate generic class, for ReactivePage, so the app wont launch after build and pops error.
Steps To Reproduce
https://github.com/tomasfil/ReactiveUI-WinUI-3-Tests
Clone and hit build.
Expected behaviour
Should build
Screenshots

Environment

OS:       Windows 10
ReactiveUI Version:    17.1.17

Additional context

You'll likely have to make a custom base class similar to what happens in uwp which doesn't support the typearguments tag either

Going to close this one since this is a bug with the  xaml implementation https://github.com/reactiveui/ReactiveUI/blob/51eb2c1fd2d438326cacd770944db066671ab7e9/src/ReactiveUI.Uwp/Common/ReactivePage.cs#L54


Turn off alternate yearly sub price

Coverage decreased (-0.1%) to 56.674% when pulling e57f06c1d7af804ddb7a839fd126e1b27a5a5a0e on bye-sub-test into 48904123a4969ef29e323bca432d753cc3f6e0f1 on master.


Semantic versioning

It would be great if the versioning would align with SilverStripe common practice of using semver. More information about this can be found here: http://semver.org/

Yeah ....that's the plan.  This module was supposed to be marked as a pre-release/beta version.  I'll iron out the remaining issues (time permitting) and release version 1.0.0 within the next few weeks.

Cool, that would be great!

Released version 1.0.0.  Adopted Semantic Versioning to be applied from hence forth.

Great! Thanks man!


How to see all possible lora_target_modules?

I was wondering where you can find more info about the lora_target_modules. So far, I've seen that the default ones are  ["q_proj",v_proj"], could you please give more insight on where to find them and how to use them?
Thanks in advance!

我也想知道


sanitycheck.js: detect apps that may mistakenly have an app.js file

This will help us catch more incorrect type settings in metadata. When run on 98e560a, we get:
::warning file=apps/waypoints/metadata.json::waypoints isn't an app (waypoints) but has an app.js file (waypointsapp.js)

This also removes waypoints from internal & metadata types, now it's no longer one of those.

Looks good - thanks!


undefined symbol: PyString_Type

after the installation, I want to run the tutorial.py to test the environment. But here is the problem:

I also find that the problem is whenever I import Carla in python, this problem will occur. is anyone knows why?

Isn't this a duplicate of : https://github.com/carla-simulator/carla/issues/1765?

Hi! Have you solved it? If so, how?

Same here. I am also facing this issue fro a long time. specially when I make own carla


postgresql: Switch to defaulting to PostgreSQL 13.

Testing plan: CI will test on Pg 13, and Bionic will test the upgrade from 10 -> 13.

Posted one comment; otherwise lgtm.

Merged with a small wording tweak, thanks @alexmv!


Change prod-util module to prod_util

Summary
This PR changes the prod-util module name to prod_util for consistency with existing installations/applications.
Testing
Tested on Acorn on elsewhere.
Applications affected
Global Workflow (which needs the change)
Systems affected
all
Dependencies
none
Issue(s) addressed
#780
Checklist

[x] This PR addresses one issue/problem/enhancement, or has a very good reason for not doing so.
[x] These changes have been tested on the affected systems and applications.
[x] All dependency PRs/issues have been resolved and this PR can be merged.

Merged. @AlexanderRichert-NOAA Do you want to cherry pick https://github.com/JCSDA/spack-stack/commit/162c90e3fdd75cb1f07096c7a172693d72607d9c and create a PR for release/1.5.1?
Still not entirely sure if we should retag 1.5.0 for this change, or just make the update locally.


subscribers: Move more logic into peer_data.

I'm basically trying to make it so that not matter we change how we represent subscriber data, we will basically be able to update just peer_data.js.
This is mostly refactoring and a very tiny user-facing change.

I believe I have addressed all the comments from the first round of review, so this is ready for review again.

I believe I have addressed all the comments from the first round of review, so this is ready for review again.

This is great, merged, thanks @showell!
For the Zephyr commit, I don't think it matters -- markdown features like linking to a stream aren't used in the Zephyr world anyway.  I sorta would prefer to not have extra conditionals for Zephyr given that case, but maybe we'd be best off with a more declarative thing (E.g. a !can_access_subscribers() check)

This is great, merged, thanks @showell!
For the Zephyr commit, I don't think it matters -- markdown features like linking to a stream aren't used in the Zephyr world anyway.  I sorta would prefer to not have extra conditionals for Zephyr given that case, but maybe we'd be best off with a more declarative thing (E.g. a !can_access_subscribers() check)


Question about the validation result

Dear authors,
I am currently working on reproducing the quantitative results from your table for the Stable Diffusion v1-5 models and would appreciate some guidance.
I reproduce your result on the validation set of pickapic_v1_no_images and surprisingly find out that the ImageReward is 0.3 instead of 0.1712. I am not sure why there is a such huge gap. Is there any explanation?
This is the image reward model I used.
import ImageReward as RM
model = RM.load("ImageReward-v1.0")

That's odd. Are you evaluating SD v1.5 or SPO-SD v1.5?


CI: Add a minimal virtual machine startup/teardown test.

Add a test to create and start a virtual machine.

/lgtm
The only test which we are interested in this PR is around kubevirt-aws, which passes. The code does not have any further comments from my side:
$ demystifier https://prow.ci.openshift.org/view/gs/test-platform-results/pr-logs/pull/openshift_oadp-operator/1330/pull-ci-openshift-oadp-operator-master-4.14-e2e-test-kubevirt-aws/1757841604539846656
INFO[0000] Test Demystifier starts its journey           >>> start_demystifier_timestamp=1707998188
INFO[0000] Using log from                                >>> location="https://gcsweb-ci.apps.ci.l2s4.p1.openshiftapps.com/gcs/test-platform-results/pr-logs/pull/openshift_oadp-operator/1330/pull-ci-openshift-oadp-operator-master-4.14-e2e-test-kubevirt-aws/1757841604539846656/artifacts/e2e-test-kubevirt-aws/e2e/build-log.txt"
Test Summary Table:
---------------------------------------------------------------------------------------------------
| Test Name                                | Num Attempts    | Num Failed  | Average Run Time     |
---------------------------------------------------------------------------------------------------
| should verify virt installation          | 1               | 0           | 0s                   |
| should create and boot a virtual machine | 1               | 0           | 1m46.047s            |
---------------------------------------------------------------------------------------------------
INFO[0000] Test Demystifier finishes its journey         >>> end_demystifier_timestamp=1707998189

/retest
We can override the failing ones, but maybe this time will pass as those are unknown flakes.

/override ci/prow/4.12-e2e-test-azure
/override ci/prow/4.13-e2e-test-azure
/override ci/prow/4.14-e2e-test-azure
per @weshayutin request.

/override ci/prow/4.12-e2e-test-azure
/override ci/prow/4.13-e2e-test-azure


Feature/civ 1558 create jsn file for rpa

JIRA link (if applicable)
https://tools.hmcts.net/jira/browse/CIV-1558
Change description
Create RPA for General Application
Does this PR introduce a breaking change? (check one with "x")
[ ] Yes
[x] No

https://tools.hmcts.net/jira/browse/CIV-3210 overrides these changes but code will be reused


SpeechSynthesizer cannot play after several conversation

Hi,
I am using AVS SDK version 1.2.0 in my own loadspeaker and the OS is linux.
After about twenty conversation with Alexa, the SpeechSynthesizer cannot play anymore and I have to rerun SampleApp to make it work again. But if I ask Alexa to sing a song after this bug happens, it can still play music well. The following are the logs when SpeechSynthesizer cannot play.
   Thinking...

2017-11-17 16:29:08.020 [ b] I InProcessAttachmentReader: readFailed: reason=SDS is closed
2017-11-17 16:29:08.875 [ b] 0 HTTP2Stream:receivedRequestId: value=x-amzn-requestid: 1250e8fffeab7c4e-00003db5-0000c374-20be6740a19473b1-8a25b13b-173
2017-11-17 16:29:09.221 [ e] 1 DirectiveSequencer:: onDirective: directive={"namespace:"SpeechSynthesizer", name:"Speak", messageId:"f54603cb-ffc0-43e4-be86-b79550548f69", dialogRequestId:"e2776804-0f18-4e18-ac83-eb7a815b5c54"}
2017-11-17 16:29:09.222 [ f] 1 DirectiveRouter: preHandleDirective: messageId=f54603cb-ffc0-43e4-be86-b79550548f69, action=calling
2017-11-17 16:29:09.222 [ f] 0 CapabilityAgent: addingMessageIdToMap: messageId=f54603cb-ffc0-43e4-be86-b79550548f69
2017-11-17 16:29:09.222 [ f] 9 SpeechSynthesizer: preHandleDirective: messageId=f54603cb-ffc0-43e4-be86-b79550548f69
2017-11-17 16:29:09.223 [ 9] 0 SpeechSynthesizer: executePreHandle: messageId=f54603cb-ffc0-43e4-be86-b79550548f69
2017-11-17 16:29:09.223 [ 10] 1 DirectiveRouter: handleDirective: messageId=f54603cb-ffc0-43e4-be86-b79550548f69, action=calling
2017-11-17 16:29:09.223 [ e] 1 DirectiveSequencer:: onDirective: directive={"namespace:"SpeechSynthesizer", name:"Speak", messageId:"dbceb29c-040e-4444-99d0-2fa457d41875", dialogRequestId:"e2776804-0f18-4e18-ac83-eb7a815b5c54"}2017-11-17 16:29:09.224 [ 10] 9 SpeechSynthesizer: handleDirective: messageId=f54603cb-ffc0-43e4-be86-b79550548f69
2017-11-17 16:29:09.224 [ f] 1 DirectiveRouter: preHandleDirective: messageId=dbceb29c-040e-4444-99d0-2fa457d41875, action=calling
2017-11-17 16:29:09.224 [ f] 0 CapabilityAgent: addingMessageIdToMap: messageId=dbceb29c-040e-4444-99d0-2fa457d41875
2017-11-17 16:29:09.224 [ f] 9 TemplateRuntime: preHandleDirective
2017-11-17 16:29:09.224 [ f] 9 TemplateRuntime: handleRenderTemplateDirective
2017-11-17 16:29:09.225 [ c] 0 TemplateRuntime: handleRenderTemplateDirectiveInExecutor
 RenderTemplateCard

Template Type       : WeatherTemplate
Main Title          : Dallas, TX
2017-11-17 16:29:09.225 [ c] 0 DirectiveProcessor: onHandlingCompeted: messageId=dbceb29c-040e-4444-99d0-2fa457d41875, directiveBeingPreHandled=(nullptr)
2017-11-17 16:29:09.225 [ c] 0 CapabilityAgent: removingMessageIdFromMap: messageId=dbceb29c-040e-4444-99d0-2fa457d41875
2017-11-17 16:29:09.227 [ 9] 0 SpeechSynthesizer: executeHandle: messageId=f54603cb-ffc0-43e4-be86-b79550548f69

Please pay attention to these three logs. When the bug happens, it always says queueSize=1 if I ask a question.
2017-11-17 16:29:09.227 [ 9] 9 SpeechSynthesizer: addToDirectiveQueue: queueSize=1
2017-11-17 16:29:09.425 [ d] 0 DialogUXStateAggregator: transitionFromThinkingTimedOut
2017-11-17 16:29:09.425 [ d] 0 DialogUXStateAggregator: setState: from=THINKING, to=IDLE
2017-11-17 16:29:09.425 [ a] 1 FocusManager: releaseChannel: channelName=Dialog
Alexa is currently idle!
And I also notice that sometimes after Alexa finishes answering questions, it would stuck in the speaking mode and would not automatically change to idle mode. Is it related with this bug?
Thank you very much for any clue to help to solve this problem!

Hi!
The issue you are describing seems very similar to what have been fixed in 1.2.1 release. Please update the version of the SDK or let us know if it is not an option for you.

Thank you very much for this information. I will try version 1.2.1 and see the result.

Hi @louisjzl,
I'll go ahead and close this issue.  Feel free to reopen if you have further issues.
Ken


Error: Cannot read properties of null (reading 'useMemo')

Use sample code from official website, still get this error:

Is post.body.code really null?

So ?

Accidentally put async keyword at function.


subscript issues

Alphabets b, c, d, f, g, q, w, y, and z cant seem to become subscripts.

I know, as I'm aware, these are not yet Unicode characters (https://en.wikipedia.org/wiki/Unicode_subscripts_and_superscripts). If I'm wrong, please tell me!

ah ofc. my bad. thanks for the tool!


[bug] the element does show correctly after dropped in vuejs

Describe the bug

I use a array data to render nested sortable elements, then I move a element from one container to another with same group, if the element does not move to the end of target container, it will not render correctly， see the picture as below. but the array data is correct.
moving

result

To Reproduce
Steps to reproduce the behavior:
reproduce sample as the link below:
https://codesandbox.io/s/flamboyant-khayyam-ikl46?file=/src/App.vue
Expected behavior

Have it worked.
Information

Browser version Chrome: Version 97.0.4692.71 (Official Build) (64-bit)
Versions - Look in your package.json for this information:
sortablejs = ^1.14.0
Additional context
Add any other context about the problem here.
Reproduction
codesandbox: https://codesandbox.io/s/flamboyant-khayyam-ikl46?file=/src/App.vue

solved!