text:
Bug report

What's your nodejs Version.
v18.16.0
What's the version you downloaded the bot?
10.3.0
Describe the bug

=== UNHANDLED REJECTION ===
Reason:  DiscordAPIError: Invalid Form Body
components[0].components[0].options[0].emoji.id: Invalid emoji
components[0].components[0].options[1].emoji.id: Invalid emoji
components[0].components[0].options[2].emoji.id: Invalid emoji
components[0].components[0].options[3].emoji.id: Invalid emoji
components[0].components[0].options[4].emoji.id: Invalid emoji
components[0].components[0].options[5].emoji.id: Invalid emoji
components[0].components[0].options[6].emoji.id: Invalid emoji
components[0].components[0].options[7].emoji.id: Invalid emoji
components[0].components[0].options[8].emoji.id: Invalid emoji
components[0].components[0].options[9].emoji.id: Invalid emoji
components[0].components[0].options[10].emoji.id: Invalid emoji
components[0].components[0].options[11].emoji.id: Invalid emoji
components[0].components[0].options[12].emoji.id: Invalid emoji
components[0].components[0].options[13].emoji.id: Invalid emoji
components[0].components[0].options[14].emoji.id: Invalid emoji
components[0].components[0].options[15].emoji.id: Invalid emoji
components[0].components[0].options[16].emoji.id: Invalid emoji
components[0].components[0].options[17].emoji.id: Invalid emoji
components[0].components[0].options[18].emoji.id: Invalid emoji
components[0].components[0].options[19].emoji.id: Invalid emoji
components[0].components[0].options[20].emoji.id: Invalid emoji
components[0].components[0].options[21].emoji.id: Invalid emoji
components[0].components[0].options[22].emoji.id: Invalid emoji
components[0].components[0].options[23].emoji.id: Invalid emoji
components[0].components[0].options[24].emoji.id: Invalid emoji
at RequestHandler.execute (C:\Users\Administrator\Desktop\discord_bot\node_modules\discord.js\src\rest\RequestHandler.js:350:13)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async RequestHandler.push (C:\Users\Administrator\Desktop\discord_bot\node_modules\discord.js\src\rest\RequestHandler.js:51:14)
at async TextChannel.send (C:\Users\Administrator\Desktop\discord_bot\node_modules\discord.js\src\structures\interfaces\TextBasedChannel.js:158:15)
at async first_layer (C:\Users\Administrator\Desktop\discord_bot\commands\💪 Setup\setup-membercount.js:67:23)
=== UNHANDLED REJECTION ===.

Additional context, text and screenshots!
https://cdn.discordapp.com/attachments/1065370654599286916/1108094815310200843/bot.PNG

I found a fix for this, you have to look in all files where this emoji "Number_1:ID" is defined and delete it like in the picture but keep the function "getNumberEmojis".
Example Files: setup-youtube

#204


text:
登录错误

正在登录到平台: kuaishou.server.web
[2022-09-22][14:21:35][OwOBlogErrorHandler/EMERGENCY] > Error: Call to undefined function owoframe\network\curl_init() in /root/git/OwOFrame/src/owoframe/network/Curl.php:111
Stack trace:
#0 /root/git/OwOFrame/application/kuai/command/KuaiCommand.php(590): owoframe\network\Curl->__construct()
#1 /root/git/OwOFrame/application/kuai/command/KuaiCommand.php(347): application\kuai\command\KuaiCommand->initCurl()
#2 /root/git/OwOFrame/application/kuai/command/KuaiCommand.php(56): application\kuai\command\KuaiCommand->interceptParameters()
#3 /root/git/OwOFrame/src/owoframe/console/Console.php(116): application\kuai\command\KuaiCommand->execute()
#4 /root/git/OwOFrame/owo(29): owoframe\console\Console->monitor()
#5 {main}

[2022-09-23][00:58:38][Console/INFO] > 正在查询......
[2022-09-23][00:58:38][OwOBlogErrorHandler/EMERGENCY] > TypeError: Return value of application\kuai\api\Graphql::getResult() must be an instance of application\kuai\api\Graphql or null, instance of stdClass returned in /root/OwOFrame/application/kuai/api/Graphql.php:149
Stack trace:
#0 /root/OwOFrame/application/kuai/command/KuaiCommand.php(83): application\kuai\api\Graphql->getResult()
#1 /root/OwOFrame/src/owoframe/console/Console.php(116): application\kuai\command\KuaiCommand->execute()
#2 /root/OwOFrame/owo(29): owoframe\console\Console->monitor()
#3 {main}

the same bug , can't work

Thanks for issue, I'll fix it in the next commit.

@iGoogleVip @ayccc  check the newest version with OwOFrame and KuaishouParser. If that works, then you can safely close this issue please :) Commit: 6accfac1299e883c44ea8940d3c3960e33cc8e88

请在之后的Issue中使用标准模板。Please use the standard Issue template for the future.

This Issue will be closed because of:

The author has not responded within 5 days.
Is the same like #9 . If you have any questions, please give your commit(s) on Issue #9 .

the same bug , can't work

I was compare yours issue and this again, it was not the same bug. @ayccc This bug causes because the PHP enviroment has not enabled the Curl extension, so that cannot find the method curl_init. @ayccc PLEASE CHECK YOUR PHP ENVIROMENT!!!

source: gharchive/issue

authors: Tommy131 ayccc iGoogleVip

license_type: permissive

license_source: github-api


text:
Data structure for flat and dark fields

Determine flat field and dark field data structures for normalisation. This is needed for Zeiss data, Diamond data. What to do when no flat and/or darks such as for Nikon data. To hold/load in darks as separate AcqData and flats as separate AcqData, or hold darks and flats within data AcqData?
Also related to #30

This is also needed for nikon data collected with IPC.
I think as all the raw projections, dark and flat are all needed to describe the data they should be held as one set of AcqData. The normalisation processor should return a new AcqData with the normalised data. Then at least each AcqData fully describes the data set.

We agreed to pass 3 AcqData (data, flat and dark) to the normaliser, which will return a new AcqData.
We also need to enhance the normalisation processor to work as:

If passed a single flat and dark it will apply a simple normalisation.
If passed two flats and darks it can perform a linear interpolation to correct each projection (how do we determine start and end? do we want to handle more than 2 points?).
If passed multiple flats and darks it can average them together and normalise
If the number of projections in each AcqData container match it'll perform a 1-to-1 correction which will allow users to pre-calculate a per-projection correction however they want.

This seems to require update of our loaders to return (up to) three different DataAcquisition objects: projections, flats and darks.
If multiple flats and darks, what should the dimension holding those be called? In projections it is "angles", but "angles" is not really a fitting names for the dimension of multiple flats/darks.
Related is also #30 which could allow to average a set of flats and darks within the normaliser.

We discussed pros and cons of using a separate class for NormalisationData versus including flat and darkfields in AcquistionData
NormalisationData
Suggested structure:
AcquisitionData
    Array
    Geometry
    IsNormalised boolean

NormalisationData
    FlatField
    DarkField
    NormalisationGeometry

AcquisitionGeometry
    Config
        System
        Angles
        Panel
    DimensionLabels(horizontal, vertical, angles, …)
    Link to NormalisationGeometry

NormalisationGeometry
    DarkField dictionary
        labels: angles, repeats, before, after
        DimensionLabels(horizontal, vertical, N)
    FlatField dictionary
        labels: angles, repeats, before, after
        DimensionLabels(horizontal, vertical, N)

Pros:

Data can be kept after normalisation

Cons:

Would have to apply Slicer and Binner separately to each object
Would have to return both objects from the loader and pass both objects to the normaliser

AcquistionData
Suggested structure:
AcquisitionData
    Array
    Geometry
    FlatField
    DarkField
    IsNormalised boolean

AcquisitionGeometry
    Config
        System
        Angles
        Panel
    DimensionLabels(horizontal, vertical, angles, …)
    Normalisation meta data
        DarkField dictionary
            labels: angles, repeats, before, after
        FlatField dictionary
            labels: angles, repeats, before, after

Pros:

If Slicer or Binner is used in the reader, it’s easier to apply to the flat and dark when it's loaded, the same as the data array
Flat/dark dictionary could be inferred from the flat/dark array size and the data geometry. So could initialise an object just from data, dark, flat and data geometry

Cons:

Not obvious what we'd do with the flat and dark fields after normalisation, in some use-cases it would make sense to remove it, other times it may be useful to access and recheck the data later. One option would be to remove it if data is passed to out, but keep it otherwise.

Example use cases

Data with no darkfield or flatfield data
AcquisitionData could be created as normal, with the default for darkfield/ flatfield data = None

Data with flatfield and darkfields for before and after the data was collected
Reader returns AcquisitionData and/or NormalisationData containing data array, and array containing N flatfield and N darkfield scans, and flat/darkfield dictionaries labelling the indices of the flat and dark repeat scans as before and after e.g.

flatfield_dictionary = {'before' : slice(0, num_before ),
                        'after' : slice(num_before, num_after)}

Add a before and after method to Normaliser, which could access the correct arrays using the labels in the dictionary

Data with flatfield per projection
AcquisitionData and/or NormalisationData containing data array, and array containing N flatfield and N darkfield scans, and flat/darkfield dictionaries labelling the flat and dark repeat scans with labels

flatfield_dictionary = {'angles' : np.arange(0,180))}

Add a per projection method to Normaliser which accesses the angles in the dictionary

Data with multiple scans but no labels
Reader returns AcquisitionData and/or NormalisationData containing data array, and array containing N flatfield and N darkfield scans. The flat/darkfield dictionaries might not be needed in this case because we don't have any information. Normaliser could use a simple method taking the mean of all flat and dark data

Loading data to a numpy array without a reader and creating an AcquisitionData by hand

ag = AcquisitionGeometry.create_Parallel3D().set_angles(np.linspace(0, 180, num=10)).set_panel((1000,1000))
ad = ag.allocate()
ad.fill(data_array)
dark_dictionary = {'before' : slice(0,9), 'after': slice(10,19)}
ad.set_darkfield(dark_array, dark_dictionary)
flat_dictionary = {'before' : slice(0,9), 'after': slice(10,19)}
ad.set_flatfield(flat_array, flat_dictionary)

norm = Normaliser(method='before_and_after')(ad)
norm.get_output(out=ad)

or using NormalisationData
ag = AcquisitionGeometry.create_Parallel3D().set_angles(np.linspace(0, 180, num=10)).set_panel((1000,1000))
ad = ag.allocate()
ad.fill(data_array)

dark_dictionary = {'before' : slice(0,9), 'after': slice(10,19)}
flat_dictionary = {'before' : slice(0,9), 'after': slice(10,19)}
nd = NormalisationData(dark_array, dark_dictionary, flat_array, flat_dictionary)

norm = Normaliser(nd, method='before_and_after')(ad)
norm.get_output(out=ad)

I notice in the 'cons' for 'NormalisationData', you say:

Would have to return both objects from the loader and pass both objects to the normaliser

So have I understood correctly that in either plan (storing flat/darks in NormalisationData or AcquisitionData), this would involve the readers returning the flats and darks (either as NormalisationData or as part of AcquisitionData)?
We need to think carefully about how this is done in each reader. For some (EPAC NXTomo for example), all of the info - the flats, darks, etc. are stored in the same HDF5 file, making it easy. For other cases, the data could be something like a stack of tiffs and the user will have to point to the stack of dark tiffs and stack of flat tiffs. Will these paths be inputs to the reader when it is set up, or later, optional calls e.g. set_dark_field_path() etc.?

Hi Laura, that's a good point. I think it would have to depend on the reader - so if we have use cases where we know everything is within one file, the reader would know where to look. I guess we need a way to make it customisable for lots of different types of data, so maybe a generic reader where you could specify the paths for dark and flatfields, or it could also be an option to just load the dark and flat field arrays yourself and create the AcquisitionData or NormalisationData object by hand.

authors: gfardell hrobarts jakobsj lauramurgatroyd

repo: TomographicImaging/CIL


text:
Vive Controllers no longer visible in-game

Anyone else having problems with the Vive controllers no longer appearing (not functional at all)? The only things in-game that work are the menu buttons, which will show the SteamVR dashboard, with the controllers re-appearing then. I've been developing with NewtonVR for over a year now, and this is the first time this happened.
I'm using the latest SteamVR beta client (Built Dec 20, 2017 at 19:15 Version 1513815351). To verify if this was not something I've messed up in my project, I started a new Unity project, imported the latest SteamVR plugin (Version 1.2.2) and the latest NewtonVR scripts from Unity store (Version 1.24, July 06, 2017). The same issue still occurs.
The SteamVR client (specially betas) can be a little inconsistent, so I've re-started the computer a few times as well. If I'm the only one seeing this I'll try to re-install it.
Thank you.
UPDATE: re-installing the SteamVR client either beta or standard version didn't solve the issue. I also noticed that the example scene inside the SteamVR plugin folder is working OK.

My bad - sorry about that. Somehow I disabled the check box "Enable SteamVR" inside NVR Player.

repo: TomorrowTodayLabs/NewtonVR

license: mit

license_source: bigquery


text:
🛑 Baidu is down

In 41e21b4, Baidu (https://www.baidu.com/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Baidu is back up in 019f6f6.

repo: TomsProject/uptime

license: MIT


text:
Tremolo not working

I can't seem to get it working. Here's an example: http://jsfiddle.net/prespcLb/13/

The Tremolo needs to be started before you'll hear it. Also i don't think Tone.Mono is doing anything here; the Oscillator signal is already mono.
http://jsfiddle.net/3od6qsjt/1/
Tone basically has two genres of LFO-based effects, those with start/stop/sync (AutoPanner, AutoFilter) and those without (Phaser, Chorus). I'm not quite sure which side Tremolo should land on.
I thought maybe a user would want to sync up the Tremolo with the start of the Transport and have everything tempo synced. What do you think? useful or unnecessary?

authors: lukephills tambien


text:
Add ability to disable default receive buffer size in websocket server

Description
In our project we encountered performance drops in websocket connection over vpn. During debugging we find out that when socket.setReceiveBufferSize(WebSocketImpl.RCVBUF); is not set the performance increases (RRT is smaller and more packets per second are ingested)

Motivation and Context
Improve performance
How Has This Been Tested?

Types of changes

[x] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

[x] My code follows the code style of this project.
[x] My change requires a change to the documentation.
[ ] I have updated the documentation accordingly.
[ ] I have added tests to cover my changes.
[ ] All new and existing tests passed.

Thanks for the PR! I think I would like a more general solution, so I've opened #1407

@PhilipRoman We try also this before, but only when ReceiveBufferSize is not set to any value, we achieved the best results, no matter how high the value we set

@Vangreen that is really strange, could you please verify with your setup that even doing
      socket.setReceiveBufferSize(socket.getReceiveBufferSize());

causes the slowdown? (and maybe post the value of socket.getReceiveBufferSize() - note the socket prefix, this is the real Socket receive buffer, not the one you set for websocket).
For me default buffer size is 65536 and setting buffer size to that value has no effect on performance (compared to not setting at all).
On a side note, the websocket default buffer size of 16K seems too low and causes slowdowns in my testing compared to the system default 64K.

@PhilipRoman setting up the 'real' socket buffer this way somehow blocks the system a memory management.
Let's start from the beginning. After testing the connection with relatively large RTT, we weirdly had a very bad packet processing performance and the reason was too small rwnd. As a result of this huge performence dropdown, we focused on receive buffer size. But despite increasing WebSocketImpl.RCVBUF, on the established conneciton we didn't get SO_RCVBUF greater than 212992.. So enlarging WebSocketImpl.RCVBUF had no effect on tcp window size. Since the system settings where OK and it didn't seem to decrease the SO_RCVBUF, we disabled this line and we received a performance improvement that was dozens of times better.
Since there is only one value WebSocketImpl.RCVBUF for setting up the real socket and application buffer, I would suggest to separate it for the websocket message size and the socket buffer.

Fixed with #1407

@dushabella the behaviour you expect is now turned on by default (no explicit set buffer size). I didn't separate the socket and application buffer sizes since there is no point in having read buffer bigger than socket buffer, but also the socket buffer can easily be saturated on a fast connection, so also not a good idea to have it smaller than socket buffer (just extra syscall overhead).

@PhilipRoman, you're right there may be benefits of setting the same buffer size, but since the SO_RCVBUF and WebSocket layer buffers are logically separate it could be possible to adjust them independently to fine-tune the behavior of the connection. Depending on the network environment, we may want to adjust the buffer sizes for optimal performance/syscalls/memory use.
Consider the connection with relatively small network traffic but a large RTT. Large SO_RCVBUF would be crucial to ensure a proper window size, but it would fill up slowely. Large application buffer wouldn't reduce the number of syscalls since read() won't read out of empty socket anyway, but this large buffer would take up memory and did not use it, and wasted it as a consequence.

source: gharchive/pull-request

authors: PhilipRoman Vangreen dushabella marci4

repo: TooTallNate/Java-WebSocket


text:
Play ogg?

I was wondering if this module actually plays an ogg sound file

@beckmx you'll need to pipe the decoder into a playback module (I.e. node-speaker). HTH!

authors: beckmx brozeph

repo: TooTallNate/node-ogg


text:
Scene tab is not updated when scene is renamed

Describe the bug
When I rename a scene, the scene's tab continues to show the old name.
To Reproduce
Steps to reproduce the behavior:

Create a scene, or select an existing scene.
Add it to the tab list.
Rename the scene.
Observe that the tab still shows the original name.

Expected behavior
The tab is updated with the new name.
Screenshots

Desktop (please complete the following information):

OS: Kubuntu
Browser: Chrome 84

Damn, I implemented the tabs a long time ago and the implementation is very bad to be fair.
This also requires a breaking change now, since I stored links & titles instead of id's. So part of this will also be a migration script 👍

authors: AntonyBoucher TorstenDittmann

repo: TorstenDittmann/OmniaWrite


text:
Endless connecting

What i should do with this? (Sorry if my english is bad, not my native language)

drop me your logs from C:\ProgramData\GOG.com\Galaxy\logs directory

plugin-bethesda-cb57391f-1675-35b1-05c0-896d43bdf4f8.zip

Okey, i get it. Plugin don't know russian, i guess.

Yep, i can see it crashes on parsing your name. Will try to work on it this week

@Regenor98  Did a quickfix rn, can you download the plugin from repo again and see if it still crashes?

plugin-bethesda-cb57391f-1675-35b1-05c0-896d43bdf4f8.zip
Still endless connection. But now in logs appear new error: ERROR - JSONDecodeError('Invalid control character at: line 1 column 589 (char 588)')

@Regenor98  Ok, thanks, it shouldnt crash now in newest master.

Well, now it works, thanks. But one more thing, before i close this issue topic: plugin didn't display account name.


text:
How does customize.lua work? Random questions

Disclaimer: new to lua (and programming):
Came across your video on Neovim and was wondering how does customize.lua work to quickly disable/enable plugins for testing. I know in your utilities.lua you have e.g. return require('traap.core.customize').harpoon for all the relevant plugins and that customize.lua contains a list of your plugins, but not sure how the return require(...).plugin works, e.g. whether it has to do with lua, Neovim, or both.
Also, do you see any reason to use after/ directories (e.g. ~/.config/nvim/after/plugin/telescope.lua) in runtimepath? I believe those are loaded after plugins are loaded so they should ensure nothing gets overwritten although I know you explicitly defined the order yourself. I briefly used Neovim about 2 years ago and it was popular for people to dump all their files in ~/.config/nvim/lua/personal_namespace but now it seems after/ directories are more common.
Lastly curious if utilizing lua to make code in config prettier has the potential to affect performance, e.g. in your options.lua config, you have a table of options and then at the end iterate through each to set them. Or e.g. splitting what would have been a large init.lua file into many configs, like one for each plugin which is popular.
Thanks and looking forward to more videos.

Came across your video on Neovim ...

Hi rieje - First!  Thank you for watching my video and taking time to ask me a question.

and was wondering how does customize.lua work to quickly disable/enable plugins for testing. I know in your utilities.lua you have e.g. return require('traap.core.customize').harpoon for all the relevant plugins

enabled = [ true | false ] is runtime equivalent  the function that does 'return require('traap.core.customize').harpoon.  LuaJIT (just in time compiler) does optimize.
I may update the code to something like:
local customize = require('traap.core.customzie')
which becomes an "alias" so require statement only appears once in the code.  LuaJIT still has to do work and can optimize away.   Then all enabled = function() could change to enabled = customize.harpoon, as an example.

and that customize.lua contains a list of your plugins, but not sure how the return require(...).plugin works, e.g. whether it has to do with lua, Neovim, or both.

This is lua syntax.  It is essentially returning true or false.

Also, do you see any reason to use after/ directories (e.g. ~/.config/nvim/after/plugin/telescope.lua) in runtimepath?

The Lazy package manager  loads all plugins define in the specification found in traap.core.plugins.  I tell Lazy to load files found at traap.plugins.  Lazy process these files alphabetically.    Neovim will load after/plugin/... files alphabetically  too which is okay.  The caveat to remember referencing any plugin before it is loaded will cause a failure.
I just posted a pull-request https://github.com/Traap/init.lua to ThePrimeagen to resolve the caveat I just mentioned.  If you want to use after/plugin/... just remember to use the pcall(requrie, 'harpoon') syntax.

I believe those are loaded after plugins are loaded so they should ensure nothing gets overwritten although I know you explicitly defined the order yourself.

You are correct.

I briefly used Neovim about 2 years ago ...

Welcome back.

and it was popular for people to dump all their files in ~/.config/nvim/lua/personal_namespace but now it seems after/ directories are more common.

I see both techniques done.  I see rational for using either method or both.

Lastly curious if utilizing lua to make code in config prettier has the potential to affect performance, e.g. in your options.lua config, you have a table of options and then at the end iterate through each to set them. Or e.g. splitting what would have been a large init.lua file into many configs, like one for each plugin which is popular.

I merged most plugins into traap.plugins.utilities for two reasons.

I was implementing the customize flag for each plugin.
To "show off" the vim folding sytle I use.

Thanks and looking forward to more videos.

I am working content for my next Video now.  I  will demonstrate "neovim starter kit swapping."  That is the primary reason I wanted made a pull-request for ThePrimeagen.  Prime uses packer and lsp-zero, which is cool.  I want to show between my configuration and others without "fear of destroying" your Neovim environment.

authors: Traap rieje

repo: Traap/nvim


text:
Key collisions

When sending Django models as args to tasks, part of the key is generated by converting the model to a string. This causes key collisions for us since we have multiple objects that outputs the same from __unicode__
I propose something like this https://github.com/chripede/celery-once/commit/a2b465ce8fd1aa6593cfb5bfe7712320e792bf5f to allow objects to create unique keys.
The code in my django model would look something like this
    def __unicode__(self):
        return self.domain

    def celery_once_key(self):
        return "{}-{}".format(self.pk, self.domain)

@chripede Hey, thanks for the feature suggestion!
One way to achieve this with the current version of celery once is too pass UUID as an argument of the task, and limit celery once to look at that key, e.g. like...
e.g.
@tasks(base=QueueOnce, once={'key': ['pk']})
def example(model, pk):
  pass

I'm not sure how I feel about a custom method on objects. Celery tends to err away from passing around models.
For that reason, I'm hesitate to support this, unless others out there would really find it useful? I'm gonna close this out for now, but happy to revisit it, if it has others support.

@cameronmaske while they tend to err away from it, they still allow it. Everyone has a different use case.
Anyways, I'll add a bogus parameter to my task to keep the keys unique.

Why not to use self.request.id for that purpose?

authors: Skyross cameronmaske chripede

repo: TrackMaven/celery-once


text:
Xcode CloudにおいてのGOOGLE_SERVICE_INFO_PLISTのProd対応

Summary by CodeRabbit

新機能

環境変数 XCODE_CANARY_APP に基づいて GoogleService-Info.plist ファイルの出力パスを動的に決定する条件文を追加しました。

@all-contributors please add @coderabbitai for review

repo: TrainLCD/MobileApp


text:
Create a Frontend Server using React

Currently, the project is having only backend. A frontend server have to be create so that we can connect backend with the frontend.
Preferred language should be JavaScript. Framework can be React (preferred). If not, you are free to suggest your thoughts.

HLLO mam , i can solve your almost  all issues related to frontend,  u can checkout myprofile I'm a frontend developer with good hand in reactjs. could you please assign me some issue?

@Trisha-tech I would be happy to contribute on the front end part with all the basic schematic and structure with responsiveness to multiple devices and sign in and sign up pages

Hello, I am a full stack developer with the required tech stack, kindly assign me with this issue  so that I can provide my insights and solutions.

@Trisha-tech can i do this?

repo: Trisha-tech/OnlineBookSales


text:
[DRAFT] Stateful testing setup

This is the skeleton to be used primarily for writing all stateful BNS-V2 tests. See each commit for details.

Hey guys! Thanks for this! This is huge and hopefully will take BNS to the limit, please let me know if you need anything

Hey @Patotking12, thanks! 👍 Given the number of invariant cases, you're more than welcome to add some of them.
Feel free to add invariants like @BowTiedRadone is doing here.
Keep each commit simple, adding just one invariant if possible. Avoid helper functions until you see the rule of three and need to refactor. From PoX-4, we learned to start with simple commits and make things more DRY later.
If you have any questions, we're happy to help. Thank you 🙏


text:
Support for EOSIO

Description
Adds support for EOSIO blockchain. While this is a graphene based blockchain as well, it differs a lot in its implementation from Steem and Bravo and hence most of the code is new.
Testing instructions
We have added tests in src/tests as well as swift and kotlin tests in their respective directories
Types of changes

New feature (non-breaking change which adds functionality)

Checklist

[ ] Prefix PR title with [WIP] if necessary.
[x] Add tests to cover changes as needed.
[ ] Update documentation as needed.

@alejandro-isaza Can you please merge the PR if everything is okay? We will raise for Bitshare after this merge.

repo: TrustWallet/wallet-core


text:
Update scikit-learn requirement to >=0.22.2,<1.4.0

Description
Scikit-learn 1.1.x is over 1 year old. Also Python 3.10 is over 2 years old.
Fixes #1953,
Replaces #1964
Type of change
Please check all relevant options.

[x] Improvement (non-breaking)
[ ] Bug fix (non-breaking)
[ ] New feature (non-breaking)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] This change requires a documentation update

Testing
Please describe the tests that you ran to verify your changes. Consider listing any relevant details of your test configuration.

CI

Checklist

[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my own code
[x] I have commented my code
[x] I have made corresponding changes to the documentation
[x] My changes generate no new warnings
[ ] I have added tests that prove my fix is effective or that my feature works
[x] New and existing unit tests pass locally with my changes
[ ] My changes have been tested using both CPU and GPU devices

Hi @jamesmyatt Thank you very much! I have started the unit-test workflows for this PR.

@beat-buesser There seems to be a problem with Codecov:
[2023-12-13T14:18:25.530Z] ['error'] There was an error running the uploader: Error uploading to [https://codecov.io:](https://codecov.io/) Error: There was an error fetching the storage URL during POST: 404 - {'detail': ErrorDetail(string='Unable to locate build via Github Actions API. Please upload with the Codecov repository upload token to resolve issue.', code='not_found')}

Codecov Report

Merging #2346 (e9a03f6) into main (ffd3a49) will decrease coverage by 61.01%.
Report is 9 commits behind head on main.
The diff coverage is n/a.

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

@@             Coverage Diff             @@
##             main    #2346       +/-   ##
===========================================
- Coverage   81.39%   20.38%   -61.01%
===========================================
  Files         324      324
  Lines       29331    29305       -26
  Branches     5409     4963      -446
===========================================
- Hits        23873     5975    -17898
- Misses       4092    23262    +19170
+ Partials     1366       68     -1298

see 257 files with indirect coverage changes

Hi @jamesmyatt Could you please take a look at one of the new runs? It seems that Python 3.11 is not yet available. I suggest we remove the second new run for Python 3.11 and also remove the oldest run for 0.24.2.

Removing 0.24.2 makes sense.
Looks like the issue for python 3.11 is the version of numba that's pinned.

You're right. Can you try if it is possible to upgrade numba too? If I remember correctly it depends on the numpy version.

@beat-buesser Can you approve the workflows, please?

Fixed by #2372


text:
Added description and benefits for free tier

refs https://github.com/TryGhost/Team/issues/1037
Adds new Free tier card when tiers feature is enabled, allowing site owners to add custom description and benefits for free tier for Portal/theme.

Codecov Report

Merging #2203 (3a9a88a) into main (b9740cb) will decrease coverage by 0.09%.
The diff coverage is 14.28%.

@@            Coverage Diff             @@
##             main    #2203      +/-   ##
==========================================
- Coverage   37.47%   37.37%   -0.10%
==========================================
  Files         539      534       -5
  Lines       21291    21221      -70
  Branches     3867     3856      -11
==========================================
- Hits         7978     7932      -46
+ Misses      13313    13289      -24

Impacted Files
Coverage Δ

app/components/gh-launch-wizard/connect-stripe.js
2.40% <0.00%> (ø)

app/components/gh-launch-wizard/set-pricing.js
2.72% <0.00%> (ø)

app/components/gh-members-payments-setting.js
1.92% <ø> (ø)

app/components/gh-members-recipient-select.js
2.17% <ø> (ø)

app/components/gh-members-segment-select.js
2.04% <ø> (ø)

app/components/gh-portal-links.js
2.22% <ø> (ø)

app/components/modal-member-product.js
1.96% <0.00%> (ø)

app/components/modal-portal-settings.js
1.29% <0.00%> (-0.01%)
:arrow_down:

app/components/modal-product.js
2.67% <0.00%> (-0.08%)
:arrow_down:

app/controllers/settings/membership.js
2.10% <0.00%> (-0.04%)
:arrow_down:

... and 35 more

Continue to review full report at Codecov.

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

authors: codecov-commenter rishabhgrg

repo: TryGhost/Admin


text:
Ensure that editing cards are not hard-selected

If a card that is being edited is hard-selected then make sure that it is in fact soft-selected.
closes https://github.com/TryGhost/Ghost/issues/8385

Coverage remained the same at 73.551% when pulling 00e30f475ab5a26ba782a46a04d8463224167ec6 on disordinary:editing-card into 3e49b7548eeed3be82f12af281191ec5a3a5712d on TryGhost:master.

authors: coveralls disordinary

repo: TryGhost/Ghost-Admin


text:
s3fs and docker image

Issue Summary
I am attempting to run the (latest) docker ghost image using s3fs to access a bucket as a docker volume.  My container starts and dies with the message...
chown: changing ownership of '/var/lib/ghost': Input/output error
my run command looks like this...
docker run --name blog -d -p 80:2368 -v /opt/ghost:/var/lib/ghost ghost
where /opt/ghost is an s3fs mounted volume on the host.  I think this issue is related to https://github.com/docker-library/ghost/issues/19 but I don't see a way from there to resolve.  my mounted volume already has 1000 as user/group.
Also interesting to note; ghost appeared to create files in the volume on first run just fine, but crashed just after that.

Hey @aarongundel Sorry to hear you are having trouble. Can you please swing by our slack channel and ask for help there?

Also please be aware the docker image is not maintained by us, but by docker 😉

authors: ErisDS aarongundel kirrg001

repo: TryGhost/Ghost


text:
Migrate binaries from "node-sqlite3" bucket to "mapbox-node-binary" bucket

The current batch of binaries are hosted under my personal aws account, but these should be migrated to a Mapbox account so other committers on this project can have admin access to the bucket.
To do this I will:

[x] - Point package.json binary/host value at mapbox-node-binary
[x] - Re-encode the node-pre-gyp publishing keys in .travis.yml with new keys that work to publish to this new location
[ ] - In a few months (after the v2.2.5 release is well established) I'll delete the node-sqlite3 bucket.

It would be good to update the wiki page here: https://github.com/mapbox/node-sqlite3/wiki/Binaries#available-binaries with the new URL and then I believe the old bucket can now be deleted?

We've since switched to GitHub Releases so this can be closed 🙂

authors: ErisDS daniellockyer springmeyer


text:
Usage of inotify

You are using inotify for some log handling actions. However, inotify is not available on MacOS, it is Linux only. I would like to use pytos directly on my workstation for some presentations and basic development. Is it possible to replace inotify as a dependency and replace it with something that is available on more platforms?
Best regards,
Paul

Same issue.  I can not utilized pytos on OSX.

Same issue on Win 7 :(

As Tufin applications would not run on MacOS or Windows - we currently do not support it (not aware if we ever would).
I would suggest to setup IDE to run and debug it from your OS remotely on the TOS server.
See the example on how you can use pycharm for that:
https://www.jetbrains.com/help/pycharm/remote-debugging.html

Why would it matter where you run the application?   Are you saying APIs only work on linux in general?
I think it's prudent to remove the dependency so more people can make use of Pytos.

Again - this is not planned.
Moreover there are other 3rd party libs we use and we are not going to support it partially so it works only in specific cases, which in this case do cover your needs.
If you use pytos - you need ST or SC. So use them and setup remote config with IDE - it's acceptable way most development works.

authors: PaulNokel ShayHaluba funkycode packetinspector

repo: Tufin/pytos


text:
مشکل با ایمیل

سلام و خسته نباشید.
بنده از ای پی آی شما استفاده کردم و خیلی راضی هستم.
یوزر موقع خرید ایمیل ثبت میکنه.اگه ایمیل الکی ثبت کنه به چه صورت هست؟
ممنون میشم توضیح بفرمایید

سلام
بنده صرفا کتابخونه رو طبق پاسخ های سرور سایت همراه پی نوشتم و هیچ اطلاعی نسبت به این موضوع ندارم، شما میتونین سوال خودتونو از طریق تیکت در سایت همراه پی بپرسین.
باتشکر


text:
Create Today's actual date

Create Today's actual date
Example :
monday , december , 2023 ,24

see above feedback; please also refrain from relying on ChatGPT too heavily as it doesn't know that much about writing extensions

I will note that this is easy to port to normal Scratch scripts very directly

repo: TurboWarp/extensions


text:
为什么要使用webpack?

为什么要使用webpack？
项目中有很多文件会相互依赖，有几个文件就要发多少次请求来获取文件，如果一个文件因为网络问题延误了整个页面也会延误，而当项目逐渐变大，有几十个到上百个JavaScript文件的时候，那问题会更严重，不但有延迟问题，还会遇到很难维护的问题。
而webpack就解决了这些问题，把所有JavaScript文件合成一个文件，这样就减少了http请求数量，让页面加载和显示更快。不过这个合并的阶段是在开发完成之后才进行的，也就是说开发阶段我仍然是有a.js，b.js和c.js等等这些文件的，这样才好开发和维护，因为如果开发阶段就合并的话，就相当于基于一个可能上万行的文件进行开发，这样的代码是没法维护的。
在开发后完成的这个合并的过程就是打包。webpack在打包过程中：

会分析各个文件之间的依赖关系，然后生成一个依赖图并用文件的形式保存下来
并且针对浏览器无法识别的如less，es6等文件进行统一的处理，翻译成浏览器可以识别的js
浏览器运行代码的时候就读取这个文件，就知道了各个代码块之间的关联以及如何调用

webpack基础结构
1、Entry（入口）
指示 webpack 应该使用哪个模块，来作为构建其内部依赖图的开始。进入入口起点后，webpack 会找出有哪些模块和库是入口起点（直接和间接）依赖的。
2、Output（出口）
告诉 webpack 在哪里输出它所创建的结果文件，以及如何命名这些文件，默认值为./dist。
3、Loader（模块转换器）
将所有类型的文件转换为 webpack 能够处理的有效模块，然后你就可以利用 webpack 的打包能力，对它们进行处理。
4、Plugins（插件）
在 Webpack 构建流程中的特定时机注入扩展逻辑来改变构建结果或做想要的事情。
5、Module(模块)
开发者将程序分解成离散功能块，并称之为模块，在webpack里一个模块对应着一个文件，webpack会从配置的 Entry 开始递归找出所有依赖的模块。比如常见的，开发模式和生产模式环境。
webpack基本用法
1.创建webpack.config.js文件
const path = require("path"); //Node.js内置模块
module.exports = {
    entry: './src/main.js', //配置入口文件
    output: {
   	path: path.resolve(__dirname, './dist'), //输出路径，__dirname：当前文件所在路径
        filename: 'bundle.js' //输出文件
    },
    module: {
        rules: [
            {
                test: /\.css$/,    //打包规则应用到以css结尾的文件上
                use: ['style-loader', 'css-loader']
            }
        ]
    }
}

webpack只能识别js和json，对于导入的css无法识别，因此需要采用loader翻译css文件。
2.命令行执行
webpack --mode=development

或者配置项目的npm运行命令，修改package.json文件
"scripts": {
    //...,
    "dev": "webpack --mode=development"
 }

然后命令行运行：
npm run dev

3.在webpack目录下创建index.html
引用bundle.js
<body>
    <script src="dist/bundle.js"></script>
</body>

4.浏览器查看index.html

module，chunk，bundle

对于一份同逻辑的代码，当我们手写下一个一个的文件，它们无论是 ESM 还是 commonJS 或是 AMD，他们都是 module ；
当我们写的 module 源文件传到 webpack 进行打包时，webpack 会根据文件引用关系生成 chunk 文件，webpack 会对这个 chunk 文件进行一些操作；
webpack 处理好 chunk 文件后，最后会输出 bundle 文件，这个 bundle 文件包含了经过加载和编译的最终源文件，所以它可以直接在浏览器中运行。

module，chunk 和 bundle 其实就是同一份逻辑代码在不同转换场景下的取了三个名字：
我们直接写出来的是 module，webpack 处理时是 chunk，最后生成浏览器可以直接运行的 bundle。
原文连接：

https://juejin.cn/post/7005530386641977374

repo: Twlig/issuesBlog


text:
Snazzy Rc/Arc handling

Hey @TyOverby thank you for authoring this module. It's something I'd very much like to use in my project. That said, poking through the code, I wasn't able to spot any handling for Rc/Arc references.
Is there presently a way, or is it conceivable within the scope of your design to serialize the owned Arc internals once, then include pointers / offsets for subsequent Rc/Arc handles? Looking for a solution to send essentially a vec containing structs, each of which references an Rc/Arc, with high repetition of the referenced values. My main concern is high deserialization ( deduplication ) effort with substantially duplicated nested content, and serialized size.
I'm imagining something to the effect of the following.
impl Serializer for HoldsArc {
    fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
        where S: Serializer
    {
        match serializer.seen_arcs_map.entry(&*(self.some_data) as *const _) {
            Vacant(e) => {
                e.insert((serializer.present_offset, *self.some_data));
                serializer.serialize_whatever(*self.some_data);
            }
            Occupied(e) => {
                serializer.serialize_u64(e.get().0)
            }
        }

    }
}

Sidebar: What are the implications for potential ser/de parallelization in the future?
Cheers :)

Hi @dnorman! Unfortunately, cyclical graph serialization is out-of-scope for Bincode, though I could certainly see something be built on top of Bincode at some future date!
I have run into this before, and my solution was to build an intermediate structure that contained a flat array of shared nodes, and then a bunch of "handles" that contained indexes into the array.  Unfortunately this sounds similar to what you were trying to avoid :(  Also unfortunately, I don't think I've ever seen a serialization/deserialization strategy that dealt with shared nodes in a way that makes sense for Rust.

What are the implications for potential ser/de parallelization in the future?

Could you go more into detail here?

Hey @TyOverby, thanks for the timely response.
To clarify, what I'm looking for is really just efficient DAG serialization. Cyclical graph serialization is a whole other can of worms IMO. In theory, a DAG could be very efficiently serialized / deserialized on a streaming basis.
IE: See a reference, have I seen it before? No? - Ok, include it right here and store the offset in case I see it again in later serialization. See a reference, seen it before? Yes? -ok, serialize only the reference.
With regard to scope, is this something you could conceive of accepting as a pull request, or is it wholly out of scope for the future of bincode?
For context: my use case is a new DAG-based distributed database I'm working on, and I'm trying to make it screaming fast.
In the short run, I'll likely take the same kind of intermediate data-structure approach you suggest, but this potentially entails copying a lot of data needlessly. Even if can be made relatively memory efficient, the CPU time to do it is duplicative, and something I'll want to zealously optimize, thus my inquiry here.
With regard to parallelization of serialization (sounds cute, right?) It seems to me like this would be desirable when sending large datastructures, using something like Rayon to parallelize the effort. Not sure if any serde projects are doing this presently (I imagine not) but it would seem to me to be the logical progression. I mention this because of it's potential incompatibility with an offset-based approach, and complexities that it would entail with coordination between the various parallelized branches of the serialization process. A bit through the looking glass here, I confess.
IMO, the slight preposterousness of all of the above really brings the following question to the fore: What should be the domain of the serializer, and what should be that of the application logic?
One could easily argue that the marginal cost of marshaling the data structure, and any parallelization efforts are well within the realm of the application – just the "cost of doing business", but I am interested in trying to think about this firstly from a performance standpoint, and see what factorizations thereof could be broadly acceptable to others. IE: I'd rather not write and maintain my own bespoke serializer, but it may be necessary for my long term mission of brutal efficiency. Am I crazy, or is this an endeavor worth pursuing outside of my weird little project? (honest question)

With regard to scope, is this something you could conceive of accepting as a pull request, or is it wholly out of scope for the future of bincode?

This is wholly out of scope for bincode because bincode simply provides a binary serialization mechanim for anything that SerDe can handle.  Since SerDe doesn't know about shared references, neither do we.

In the short run, I'll likely take the same kind of intermediate data-structure approach you suggest, but this potentially entails copying a lot of data needlessly

If you are concerned about copying a bunch of references, strings, or slices, check out the RefBox, StringBox, and SliceBox helper types.

when sending large datastructures, using something like Rayon to parallelize the effort

I'm not sure how this would work.  Serialization and deserialization is fundamentally a linear sequence.  For example
enum Foo {
    Bar,
    Baz(u32),
}

serialize(vec![Foo::Bar, Foo::Baz(5), Foo::Bar])

would yield these bytes
0 --
0  |
0  |
0  |
0  |
0  |
0  |
3 <- Length of vec
0 --
0  |
0  |
0 <- Tag for Foo::Bar
0 --
0  |
0  |
0 <- Tag for Foo::Baz
0 --
0  |
0  |
5 <- Int32 Value for Foo::Baz
0 --
0  |
0  |
0 <- Tag for Foo::Bar

Because the values in bincode are "jagged", you can't skip to an arbitrary location in the array and start deserializing.
Also, because bincode fundamentally writes to Write objects, it would be impossible to write from multiple threads at the same time.
Furthermore, if this application is serializing to the network or the filesystem, then those components are going to be your bottleneck.  I've benchmarked bincode encoding at 3GB / s on my 5 year old laptop, and even then I was bottlenecked at the speed of just writing into memory.  (decoding is even faster)

Not sure if any serde projects are doing this presently.

I'm not sure that there are any serializers / deserializers that do this.  You spend so much time just waiting for bytes to be read/written, that parallelization buys you nothing.

Am I crazy, or is this an endeavor worth pursuing outside of my weird little project?

Por qué no los dos?  Building a general purpose RC/ARC serializer would have its uses for sure.  I'd imagine that the algorithm for implementing this would look a lot like the "Mark" phase of a Mark and Sweep garbage collector.

Here is a proof of concept of an efficient Rc<> DAG serialization/deserialization approach that works with any Serde data format.
https://gist.github.com/dtolnay/dd05bc98c438e160d142fbbc0272d92c
@dnorman if you are interested in fleshing this out further, I would recommend building a crate around this DAG layer. The main missing pieces are some unsafe TypeId shenanigans to make it work for heterogeneous Rc types, and a simple proc macro to make it work for user-defined structs. There are also ways to make the representation more compact if you care about that.
Example DAG
  A
 / \
(   B
 \ / \
  C   )
 / \ /
D   E

JSON representation
{
  "data": "A",
  "left": {
    "Marked": {
      "id": 0,
      "data": "C",
      "left": {
        "Plain": {
          "data": "D",
          "left": null,
          "right": null
        }
      },
      "right": {
        "Marked": {
          "id": 1,
          "data": "E",
          "left": null,
          "right": null
        }
      }
    }
  },
  "right": {
    "Plain": {
      "data": "B",
      "left": {
        "Reference": 0
      },
      "right": {
        "Reference": 1
      }
    }
  }
}

Annotated bincode representation
[65] // data=A
[1, 1, 0, 0, 0] // left=marked
[0, 0, 0, 0] // id=0
[67] // data=C
[1, 0, 0, 0, 0] // left=plain
[68] // data=D
[0, 0] // left=none right=none
[1, 1, 0, 0, 0] // right=marked
[1, 0, 0, 0] // id=1
[69] // data=E
[0, 0] // left=none right=none
[1, 0, 0, 0, 0] // right=plain
[66] // data=B
[1, 2, 0, 0, 0] // left=reference
[0, 0, 0, 0] // id=0
[1, 2, 0, 0, 0] // right=reference
[1, 0, 0, 0] // id=1

@TyOverby Thanks again for the most excellent feedback.
Some thoughts:

I'm not sure how this would work. Serialization and deserialization is fundamentally a linear sequence. For example

With respect, I would argue that a serialization (noun) is a fundamentally linear sequence, but serialization and deserialization (verb) need not be. The way I mean this is that some data structures may be quite computationally intensive to serialize / deserialize. Your statements about bottlenecks are completely apt for cases where only memory copying is entailed, but this is not always so.

This is wholly out of scope for bincode because bincode simply provides a binary serialization mechanim for anything that Serde can handle. Since Serde doesn't know about shared references, neither do we.

I suppose this is really the question I was attempting to ask, but without quite realizing it. The precise boundaries of what Serde is (and what it isn't) remain somewhat fuzzy to me. It is understood that serde does not provide an abstraction / api for shared references, but whether this is an express non-goal for the serde core, or merely a thing that wasn't yet considered valuable, is somewhat less so.

I'm not sure that there are any serializers / deserializers that do this. You spend so much time just waiting for bytes to be read/written, that parallelization buys you nothing.

In a similar vein: it's not totally clear to me precisely where, in the eyes of the serde maintainers, are the boundaries of what serde is and isn't. One definition I'd be inclined to consider is: a stream-capable interface for the transportation of data structures. Given that additional layers of marshaling and un-marshaling as a layer on top of serde would add (computational, code) complexity and limit the capacity for streaming serializations, it would seem, at least in the abstract, desirable to try to move serde and it's ecosystem more toward streaming, referential, and parallelization capabilities.
Though we may or may not agree on precisely where these boundaries ought to be set, I greatly appreciate your taking the time to clarify these things to me. It's been an enormous help.
@dtolnay Thank you for the generous provision of this code. The approach generally makes sense to me, and is approximately inline with what I was thinking. I believe this will work for my use case. That said, in my view, it would probably make sense to introduce this kind of functionality into serde itself, so as to not require playing games by instantiating the NodeToId map inside the root node Serialize impl. Of course, most serialization formats will never innately support DAG serialization – does this in your view preclude it from inclusion into the serde core library?
Of course, I'd much prefer to collaborate with the serde core / module folks in harmony with their respective visions; but in the event that's not forthcoming, I'd rather implement something bespoke rather than hacking around potentially express non-goals of serde.
Any suggestions on how I could help develop clarity about said boundaries, and roadmap for serde? If it's an "it is what it is" type of situation, that's ok. Either way, clarity is king :)
Cheers

It is a goal of Serde to enable DAG serialization but there are much better approaches than baking it into the core APIs and requiring buy-in from every data format in order to work. The approach I recommended (once the functionality is built out in a helper crate) would be just as powerful from end users' perspective but would immediately work across all formats. The design of Serde is such that things like this do not need to be built in. They can be layered on top and be more flexible than a built-in approach.
Parallelism is exactly the same. It is a goal of Serde to enable parallel serializers and deserializers but that does not translate to parallelism-specific functionality needing to exist in the core APIs.

Here's a sketch of what I think of as the "layers" of serde
layer 0 : data formats
These technically don't require serde to work (as an example, bincode used to also support rustc-serailize).

JSON
Bincode
YAML

Layer 1 : Serde API
Sitting in-between the data format and the serialization / deserialization  implementations, the Serde API represents the method of transformation between rust structures in memory and their representation in a format.
Layer 2 : Structure Serialization / Deserialization implementation
The most common example of this would be #[derive(Serialize, Deserialize)], but it also extends to custom impls.
Layer 3 : Wrappers and optimization structures
These are utility structures like RefBox, SliceBox and StrBox that take advantage of custom impls to get performance wins.
DAG or graph serialization would likely be in this layer (though this layer and layer 2 are pretty blurry).
Layer 4 : Application layer
At this point, you aren't really thinking about serialization at all, you just take your structure and throw it into a data / transport format and everything underneath should "just work".
@dtolnay Does this analysis look right to you?

@dnorman

some data structures may be quite computationally intensive to serialize / deserialize

This may be true from an application-layer perspective, but at the layer that bincode operates, there is practically no room for parallelization.

Your statements about bottlenecks are completely apt for cases where only memory copying is entailed, but this is not always so.

Again, looking at this from the view that bincode gets, "memory copying" is our best-case scenario.  Worst-case would be reading from the network.  Any optimizations for more complex serialization / deserialization strategies will need to be in layers above bincode.

Given that additional layers of marshaling and un-marshaling on top of serde would add (computational, code) complexity and limit the capacity for streaming serializations, it would seem, at least in the abstract, desirable to try to move serde and it's ecosystem more toward streaming, referential, and parallelization capabilities.

Maybe I'm misunderstanding, but streaming and parallelization are fundamentally at odds here.  Not having an appropriate window into the future means that only one thread of control can be making progress on a serialization stream.  What would it mean for a network stream to be written to from multiple threads?  💥Chaos💥.  Chaos is what it would mean.
What you could do is break your structures up into multiple chunks, serialize them (in memory) on separate threads, and then send them out on the same thread.  This would happen (in my diagram) at Layer 4 (or maybe layer 3 if you were sneaky), but it wouldn't make sense in layers 1 or 2.
This process could theoretically also be done in reverse (read a bunch of bytes in, somehow figure out how to slice them up, send off to other threads for partial deserialization, join them back on some main thread), but it would be much harder, and I don't think there would be any real performance wins.

Though we may or may not agree on precisely where these boundaries ought to be set, I greatly appreciate your taking the time to clarify these things to me. It's been an enormous help.

Not at all!  It's been pretty fun thinking about these things at any rate!
It's not really my place to be making critiques on your database architecture, but I don't think that parallel serialization/deserialization will help you that much even if the structural hurdles are solved.  Assuming that this database is running on a machine with n physical CPU cores, as soon as you have n or more network connections to this database open and all these connections are fairly active, then spawning new threads from one of these network-connection threads to do parallel serialization / deserialization will only impact performance in a negative way.

@TyOverby I don't think that accurately characterizes the ecosystem. I would recommend thinking of it more like this:
                       APPLICATION
                      /    / \    \
                     /    /   \    \
       data structures   /     \   data formats
                    |   /       \   |
                    |  /         \  |
                    | /           \ |
data structure adapters           data format adapters
                       \         /
                        \       /
                         \     /
                          SERDE

The application defines and/or imports the data structures and data formats that it wants to use. It also defines and/or imports zero or more adapters which mediate the interaction between data structures and data formats across Serde's APIs.
Application

Servo
Unbase

Data structures

UnbaseConfig
ListUsersResponse
CssGradient

Data formats

JSON
YAML
Bincode

Data structure adapters

Type erasure
DAG handling
Parallelization

Data format adapters

Type erasure
Unused value tracking
Encryption
Compression

Serde

authors: TyOverby dnorman dtolnay

repo: TyOverby/bincode


text:
Error in running the demo code

Hello,
I simply tried to run the CNN demo code shown below and it resulted in syntax error,
import torch
from torchsummary import summary
import torchvision.transforms.functional as Ft
import torchvision
import torch.nn as nn
import torch.optim as optim
import torch.nn.functional as F

class CNN(nn.Module):
    def __init__(self):
        super().__init__()
        self.conv1 = nn.Conv2d(1, 10, kernel_size=5)
        self.conv2 = nn.Conv2d(10, 20, kernel_size=5)
        self.conv2_drop = nn.Dropout2d(0.3)
        self.fc1 = nn.Linear(320, 50)
        self.fc2 = nn.Linear(50, 10)

    def forward(self, x):
        x = F.relu(F.max_pool2d(self.conv1(x), 2))
        x = F.relu(F.max_pool2d(self.conv2_drop(self.conv2(x)), 2))
        x = x.view(-1, 320)
        x = F.relu(self.fc1(x))
        x = self.fc2(x)
        return F.log_softmax(x, dim=1)

model = CNN()
summary(model, (1, 28, 28))

But it gives the following syntax error
Traceback (most recent call last):

  File "/home/mohitlamba/anaconda3/lib/python3.5/site-packages/IPython/core/interactiveshell.py", line 2963, in run_code
    exec(code_obj, self.user_global_ns, self.user_ns)

  File "<ipython-input-7-5468f49557cb>", line 2, in <module>
    from torchsummary import summary

  File "/home/mohitlamba/anaconda3/lib/python3.5/site-packages/torchsummary/__init__.py", line 1, in <module>
    from .torchsummary import summary

  File "/home/mohitlamba/anaconda3/lib/python3.5/site-packages/torchsummary/torchsummary.py", line 30
    **kwargs: Any,
                 ^
SyntaxError: invalid syntax

I am sorry it is already solved

repo: TylerYep/torch-summary


text:
Remote LSP server cannot access files

Is there a way to solve the problem of remote deployment of pyright-langserver being unable to access source files?

Hi @jadestrong sorry I overlooked this question. Does /workspace exist on your machine? This example assumes it is there.

Yes, this directory does not exist. If only the directory exists, it will also prompt that the python.py file does not exist, so for each file opened by the editor, it is necessary to create a file with the same name in the workspace directory?

But the languageclient passes the content of the open file to the LS, right? So if your are only interested in the content of the editor it should not matter. I will come back with a more solid answer after testing it.

Yes, if you only open one file, it seems ok, but if you open multiple files and reference each other, it will throw a diagnostic error like this:

After the corresponding blank file has been created in the /workspace directory , it works fine.

@jadestrong when the pyright runs in vscode the file-creations on the client side are present on the server side directly as they both use the same file system. With this architecture (separated file system of both client and server) you have to ensure this via language server prototcol https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#workspace_willCreateFiles on your own

@jadestrong I will close this issue here as the code moved to https://github.com/TypeFox/monaco-languageclient If you see the need to please open a new issue or discussion there.

authors: jadestrong kaisalmen

repo: TypeFox/monaco-components


text:
[VSCode] Binary file sharing support

I have been using the Live Share extension to collaboratively edit LaTeX, but have always had trouble viewing image and PDF files.
https://github.com/microsoft/live-share/issues/1895
What I would like to request is similar to this issue. If this is resolved, it would be an advantage that Live Share does not have!
Thank you.

I'm not sure what kind of architecture Microsoft is using internally for their live share feature (it's closed source after all), but I'm a bit confused why they haven't fixed it after 5 (!) years. Anyway, see PR https://github.com/TypeFox/open-collaboration-tools/pull/51 for a fix for that.

authors: akenejie msujew

repo: TypeFox/open-collaboration-tools


text:
Documentation error: angle/square brackets for internal linking

The documentation says
Additionally you can link to other classes, members or functions using double angle brackets.
where it should have said
Additionally you can link to other classes, members or functions using double brackets.
alternatively
Additionally you can link to other classes, members or functions using double square brackets.

+1 to the "square brackets" version

Closing as a duplicate of https://github.com/TypeStrong/typedoc/issues/79. I don't believe I have access to update the docs directly, but if you find something let me know.

authors: aciccarello blakeembrey jesperstarkar

repo: TypeStrong/typedoc


text:
Component events are undocumented

Both Component events (ComponentEvent.ADDED, ComponentEvent.REMOVED) are completely undocumented and thus only discoverable by either experimenting or reading the source.
For reference, here's how the other events are currently documented:

Converter
RendererEvent
PageEvent
Serializer

DiscoverEvent.DISCOVER is also undocumented.

One important thing that needs to be mentioned in the annotation is that component events are the only events to bubble all the way up to Application.

For reference, here's the events overview that I've compiled so far: https://gist.github.com/mootari/d39895574c8deacc57d0fc04eb0d21ca

Suggested descriptions:

ComponentEvent.ADDED: "Triggered before a component gets added. Bubbles."
ComponentEvent.REMOVED: "Triggered after a component has been removed. Bubbles."
DiscoverEvent.DISCOVER: "Triggered when the application options are being processed."

"Bubbles" implies that the reader knows what bubbling means in that context. Here are some alternatives:

"Bubbles up to the top component."
"Gets passed through to the application."
"Raised on each parent component."

ComponentEvent.ADDED actually gets triggered right before the component is added to the owner, even though the event name implies otherwise (the new component already has a reference to its parent at this point).
Might be a good idea to switch those lines?

There's yet another gotcha: Converter.addComponent() overrides ChildableComponent.addComponent() and completely removes the bubbling. I can see no reason for this - was it intentional?


text:
Multiple download

HellO! How can I make multiple downloads at the same time? Thanks for your reply

It's in the Usage examples although this program doesn't work atm since it uses an outdated version of YoutubeExplode.

Sorry, wrong category

authors: HexonDev Tyrrrz

repo: Tyrrrz/YoutubeMusicDownloader


text:
Going from lemma detail page to home page by cleaning search bar does not erase lemma detail content

This can be reproduced by the following procedures

Go to search page /search/wapamew
click on the hightlighted link "wâpamêw"
Ctrl/Command + A to select everything from the search bar
press backspace/delete

This is no longer replicable ¯_(ツ)_/¯
Closing!

authors: Madoshakalaka eddieantonio


text:
Synchronize terminology in texts in Settings

Some of the terminology or general wordings in the texts in Settings is contradictory or imprecise:

Inflectional category: "I only want to see the inflectional category in linguistic mode" --> "in linguistic labels"
Show emojis with entries: "Don't show emojis with my entries" --> "Do not"
Emoji for animate nouns (awa words): "Choose the emoji that will represent all awa words" --> "animate nouns (awa words)"
Select dictionary source: "Show entries from the Cree: Words dictionary. Wolvengrey, Arok, editor. Cree: Words. Regina, University of Regina Press, 2001" --> "Cree : Words / nêhiyawêwin : itwêwina"
Show/Play Paradigm Audio: "I would like to see audio in paradigm layouts" -> "paradigm tables"
Show/Play Synthesized Audio in Paradigms:

"This setting applies to the Paradigm Layouts specifically." --> "Paradigm Tables"
"I would like to hear synthesized recordings in my paradigm layouts" --> "see/hear ... paradigm tables" (delete "my")

Show/Play Synthesized Audio: "This setting applies to all speech except the paradigm layouts." --> "paradigm tables"

@nienna73 If you need a break from the bigger subprojects, you might implement this.

repo: UAlbertaALTLab/morphodict


text:
bot build issues, someone please share bot.exe

I am getting lot of errors in vs 22 and build is failing. Please release bot.exe for win10

similar to https://github.com/UBoat-Botnet/UBoat/issues/58

Update;
After lot of efforts I was able to build exe with 0 errors but it is not connecting to external panel (url updated in gate.h) also no Wireshark connections.

This will be last update:
Unhandled exception at 0x00007FF71F6E5433 in boat.exe: 0xC0000005: Access violation reading location 0x0000000000000000.

Exception thrown at 0x00007FF71F6E5433 in boat.exe: 0xC0000005: Access violation reading location 0x0000000000000000.
Unhandled exception at 0x00007FF71F6E5433 in boat.exe: 0xC0000005: Access violation reading location 0x0000000000000000.

Already wasted my time and it didn't worked, giving up finally. developers of this project need to understand either maintain code/docs properly otherwise add disclaimer of try at your own risk of wasting time, incase of you guys don't care anything then please delete this project so that no one can waste time.

yeah same I wasted a lot of time with this

authors: Jackson-Pollock texas-john

repo: UBoat-Botnet/UBoat


text:
🛑 Student Media - Motley is down

In dc18951, Student Media - Motley (https://motley.ie) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Student Media - Motley is back up in 026952d after 10 minutes.

repo: UCCNetsoc/upptime


text:
🛑 Student Media - Motley is down

In 28f511f, Student Media - Motley (https://motley.ie) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Student Media - Motley is back up in 1c115bc after 8 minutes.


text:
create and test table filling functionality

Should make a TemplateFiller class (or similar) that initialises reading in a document.  Then a populate_table method that has a table number, and a pandas dataframe (that matches the dimensions of the output table), writing the them to the class's document. Also tests to ensure that the correct table is populated.
prototype stub for using docx to write to rows.
from pathlib import Path

from docx import Document
from docx.table import Table

def remove_all_rows(table: Table):
    """Slightly painful way of removing all rows except for title, but does work"""
    total_rows = len(table.rows) - 1
    for row_number in range(total_rows, 0, -1):
        row = table.rows[row_number]
        row._element.getparent().remove(row._element)

if __name__ == "__main__":
    template_path = Path("templates", "Reading Recovery School Report template 2021-22.docx")
    doc = Document(template_path)
    # You can get the tables from the document alone
    tables = doc.tables
    table_1 = tables[1]

    # view the header text, but can't read the comments in with python-docx
    header_cells = table_1.row_cells(0)
    print([cell.text.strip() for cell in header_cells])

    # Remove the rows that aren't the header
    print("rows:", [x for x in table_1.rows])
    remove_all_rows(table_1)
    print("post: deletion:", [x for x in table_1.rows])

    # Add a new row and populate the text value
    new_row = table_1.add_row()
    cell_count = 0
    for cell in new_row.cells:
        cell.text = f"{cell_count}: long text values wrap as expected based on their width"
        cell_count += 1
    print([cell.text.strip() for cell in table_1.row_cells(1)])

    doc.save(Path("output", "demo.docx"))

Realised I've not explicitly added tests to ensure that the correct table is populated - any ideas on that very welcome!

Maybe making a helper function that can iterate through all tables in a word doc and assert that all cells are filled? Bit dumb here but useful for when we start writing tests for filling an entire document

authors: harryjmoss stefpiatek

repo: UCL-ARC/rred-reports


text:
NDNts-aux snapshot

Includes snapshot program parts 1,2,3 and some leftover debug code (when all testing is good will remove before merge)

Part 1 (yjsAdaptor): Check the state vector for the snapshot interval, and when the interval is up, publish and update the persistent storage on the blind fetch pointer of the latest snapshot.

Part 2 (syncAgent + namespace): An additional checker for the snapshot keyword for the existing syncAgent endpoint, and respond by checking persistent storage with the name as the key.

Detailed explanation of how this is achieved is in the slides and the doc attached below.
If needed, will move it to a separate function or a separate class/endpoint.

Part 3 (yjsAdaptor): A callback registered to the syncAgent to handle the topic 'snapshot'. When a member receives a snapshot via blobs, it checks it against its persistent storage blind fetch pointer. If the received snapshot is newer, it will override the pointer with the snapshot it just received.

Again, this is a rough overview, please consult the slides / docs

Lastly, a minor debug code is added to fetchBlob(), because I found that under heavier loads it is prone to lag and therefore cause problems to the synchronization process.
This pull request is meant to be a work-in-progress, as there are many debug codes to remove and unsafe calls to fix.
Attached are the slides and doc for documentation.
https://docs.google.com/presentation/d/15q8wTChtQtKzaAA1anvDJa1ZNr1DS1Kc67kW6XYghzM/edit?usp=sharing
https://docs.google.com/document/d/1s4pnJS4vSAP_EJD-P0XP6J5osoz8nNgEfLs-HOCDL6U/edit?usp=sharing

https://github.com/UCLA-IRL/ndn-workspace-solid/issues/4

authors: CAWorks-ChrisA zjkmxy

repo: UCLA-IRL/ndnts-aux

license: ISC


text:
BuildingStatus API Deployment

Time Tracking: MA-109
This is done when:

[ ] BuildingStatus AWS API deployment steps to prod documented
[ ] BuildingStatus APIM deployment steps to prod documented
[ ] BuildingStatus AWS API deployed to prod
[ ] BuildingStatus APIM API deployed to prod

https://collab.ucsd.edu/display/WTS/Migration+Notes+for+BuildingStatus+API

repo: UCSD/campus-mobile


text:
Review User Preference for SAH Notifications

Review if students can opt-out of receiving SAH notifications.

This issue is being closed due to platform migration and may be revisited at a later date.


text:
Firebase Hosting fix

Deploy using firebase
Delete deploy.yml
Fix Hosting issues on Firebase

@m4nik1 please help me fix this?

Could not go the preview that the github action gave. Please fix this. @charitarthchugh

Fine, will deploy.

repo: UConnAI/LiquidPrep-Website


text:
Workstealing task queue causes a race condition.

Original issue: https://charm.cs.illinois.edu/redmine/issues/1345

Workstealing task queue incurs a race condition due to the following faults in the implementation.
inline static void* TaskQueueSteal(TaskQueue Q) {
int h, t;
void *task;
while (1) {
h = Q->head;
t = Q->tail;
if (h >= t)
return NULL;
(4) task = Q->data[h % TaskQueueSize]; -> This line may incur a race condition because the worker can push a task in this slot before the thief returns this task.
(5) if(!__sync_bool_compare_and_swap(&(Q->head), h, h+1))
continue;
(6) return task;
}
}
inline static void TaskQueuePush(TaskQueue Q, void *data) {
(1)int t = Q->tail;
(2) Q->data[t % TaskQueueSize] = data;
(3) Q->tail = t+1;
}
(1) (2) (3) can be reordered as (1) (3) (2) so race condition happens in a scenario as the following
head tail
(1)  0     0
(3)  0     1
(4)  0     1  task = Q->data[0] // task == NULL
(2)  0     1 Q->data[0] = data
(5)  1      1
(6)  1      1   return task; (return NULL)
This can be fixed in two ways.

Added explicit barrier between (2) (3)  CmiMemoryWriteFence();
Modified (6) to Q->data[h % TaskQueueSize);  // This might be simpler and better.

Original date: 2017-01-04 04:52:07

~~https://charm.cs.illinois.edu/gerrit/#/c/2101/~~ https://github.com/UIUC-PPL/charm/commit/fce7e5d5963ffae55ffc8cc7993c9d4e9a84aa8f

Original date: 2017-01-04 07:15:45

Seonmyeong Bak wrote:

Workstealing task queue incurs a race condition due to the following faults in the implementation.
inline static void* TaskQueueSteal(TaskQueue Q) {
int h, t;
void *task;
while (1) {
h = Q->head;
t = Q->tail;
if (h >= t)
return NULL;
(4) task = Q->data[h % TaskQueueSize]; -> This line may incur a race condition because the worker can push a task in this slot before the thief returns this task.
(5) if(!__sync_bool_compare_and_swap(&(Q->head), h, h+1))
continue;
(6) return task;
}
}
inline static void TaskQueuePush(TaskQueue Q, void *data) {
(1)int t = Q->tail;
(2) Q->data[t % TaskQueueSize] = data;
(3) Q->tail = t+1;
}
(1) (2) (3) can be reordered as (1) (3) (2) so race condition happens in a scenario as the following
head tail
(1)  0     0
(3)  0     1
(4)  0     1  task = Q->data[0] // task == NULL
(2)  0     1 Q->data[0] = data
(5)  1      1
(6)  1      1   return task; (return NULL)
This can be fixed in two ways.

Added explicit barrier between (2) (3)  CmiMemoryWriteFence();
-2. Modified (6) to Q->data[h % TaskQueueSize);  // This might be simpler and better--. (1)(3)(4)(5)(6)(2) can happen and this lead to race condition, and hangs.

repo: UIUC-PPL/charm


text:
change name of probe to is_ready within ck::future

ensures consistency with C++ futures. this feature is likely not used yet, so this is the optimal time to change it

@matthiasdiener It looks like the Spack CI cannot handle branches from external repositories.

@matthiasdiener It looks like the Spack CI cannot handle branches from external repositories.

Yeah, that's true. Feel free to merge this with the test failing for now, passing the test is not required for a merge.

For pull requests from forks, we will need to merge #3177 first.

authors: Wingpad evan-charmworks matthiasdiener


text:
remove prop types from peer dependencies

Closes #472

Deploy preview for affectionate-nobel-f3a8ec processing.
Built with commit 6e1de2a44ca5cefb68af66e0011b2916282c69d8
https://app.netlify.com/sites/affectionate-nobel-f3a8ec/deploys/5bf52682ec8a89050d1d2625

Codecov Report

Merging #478 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #478   +/-   ##
=======================================
  Coverage   99.73%   99.73%
=======================================
  Files          80       80
  Lines         381      381
  Branches       15       15
=======================================
  Hits          380      380
  Misses          1        1

Continue to review full report at Codecov.

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

authors: codecov-io penx

repo: UKHomeOffice/govuk-react


text:
HOCS-2457 add Spring config to allow Swagger service on casework

This ticket adds a Swagger service to casework giving us access to all the exposed api endpoints published by the casework service.
The Swagger page is available at http://localhost:8082/swagger-ui.html

Spring profile switching is now added. The profile is 'swagger' and can be added as an env variable or as a -D JVM command line option. So without the 'swagger' profile there will be no swagger endpoints available.

repo: UKHomeOffice/hocs-casework


text:
Fix weekly branch environment teardown and PR merge branch teardown

What?
Updated config to tear down PR envs
Why?
The drone/cron jobs that should tear down branch environment deployments when a) the accompanying PR is merged to master or b) weekly at the end of the week is currently not succeeding.
This appears to be because of older config not correctly calling the branches or cron jobs.
How?

Updated deploy.sh section to include all microservices deployed by PAF in the relevant delete command
Updated drone pipeline steps to find PR branches and run commands to tear down

Copied new config/alterations from IMA and ASC projects where the jobs appear to work ok.
Anything Else?
The drone cron job in the PAF project (drone/paf/settings/cron is currently misnamed as tear_down_envs and so it doesn't run any specific step from the drone.yml. After these changes we need to create a new cron job called tear_down_pr_envs with (ideally) the schedule 0 0 21 * * 5 (but stock 'weekly' would be ok)

nice work

you can run this one after 5pm to ensure it tears everything, I saw permissions errors before

authors: JHoldergov jamiecarterHO

repo: UKHomeOffice/paf


text:
Create template for queries and make HiXAgenda/SubAgenda/Afspr-code variable

Currently agenda, subagenda and appointment code are inside the SQL query, but when scaling up, it might be a better idea to make it a template and store the agenda and locations elsewhere. Or move part of the filtering to Python, where the hoofdagenda is still used in SQL, but the exclusion of subagendas and the inclusion of afspraakcodes is done in Python using a config file

Idea for new config file setup:

[clinic]

[clinic.example1]
phone_number = "82934"
teleq_name = "Example 1"
main_agenda_code = "Z8492"
subagenda_exclude = true
subagendas = ["Z8362", "Z7493"]
appcode_exclude = true
appcodes = ["VH743", "FH175"]


text:
The group worked on stories requested by the customer

The User filtering in the sample code is all done via Angular instead of by making calls to the server and having it do some of the work.

The work for issue #16 sort of addresses this as well. Company searching is on the server.

authors: NicMcPhee kklamberty


text:
[✨FEAT✨]: Ackerman to MoTec node

Is there an existing enhancement request for this?

[X] I have searched the existing feature requests

Description
Take ackermann as input and and outputs a CAN service message.
Additional Information
topic/cmd_val that has stamped ackermann msg
then process info and send msg to CAN interface node with CAN service
This is safety critical (need way of knowing if unable to send msg/crash etc.)

Input

Stamped Ackermann message
- From topic/cmd_val

Error handling/safety

If can't send message
- print warning msg
- try resend msg
if sys crash
- emergency stop car (send braking signal)
- deactivate node
- print error msg
NB: maybe detect crash with separate node sending a heartbeat so often (if dont receive throw sys crash error)

Tests

simulate unsuccessful msg
simulate sys crash
simulate successful msg

Parameters

use yaml file for launch params
parameters
- CAN bus connection id
Ackerman to MoTec Node.docx

I would also say that this node should publish to the diagnostics topic. This is what I have read as the common way of making sure safety crit systems are alive.

Also I am thinking that the motec should be the one triggering the Ebrake and so you don't have to worry about this node triggering the break system and all it needs to do it turn the ackerman steering msgs into can messages

Input

Stamped Ackermann message

From topic/cmd_val

Error handling/safety

If can't send message

print warning msg
try resend msg

if sys crash

emergency stop car (send braking signal)
deactivate node
print error msg
NB: maybe detect crash with separate node sending a heartbeat so often (if dont receive throw sys crash error)

Tests

simulate unsuccessful msg
simulate sys crash
simulate successful msg

Parameters

use yaml file for launch params if there are any
Ackerman to MoTec Node.docx

[ ] create package
[ ] create minimal/basic nodes
[ ] create server
[ ] create subscriber
[ ] create translation between Ackermann and CAN
[ ] implement crash detection (heartbeat)
[ ] implement error handling
[ ] create tests

Also the steering angle can be negative so how are you gonna translate into an unsigned int. Once you anserw that then you can start coding :)

For negative ackermann values use twos complement. Flip all bits and add 1 to LSB.

repo: UOA-FSAE/autonomous


text:
Team 4 Sprint 2: Creating a basic functional countdown

Description
Task: Creating a basic functional countdown
Feature: Countdown Clock(#3)
The task is to implement a functional countdown feature. The basic functionality - the countdown - should be implemented for now. Adding time, starting, pausing can come later.
Completion Deadline: Sept. 8
Member

Rio Tanabe (@riotanabe ) (riotanabe)

Hey guys, is this at a service level that we can interact with yet? Trying to make consumeable items add time to it

Hey guys, just checking in, how do you plan on making the timer accessible to other components?

@riotanabe hey man, I've added in some basic countdown logic time increase work. Unsure if you were looking into this. Just on this commit here 8d98cbd

@riotanabe hey man, I've added in some basic countdown logic time increase work. Unsure if you were looking into this. Just on this commit here 8d98cbd

Thank you. I was looking into the time adding component but were struggling a bit. Is the time increase working, or should I look into it a bit further? Also has it been merged with main?
Thanks.

Thank you, we were thinking of adding it in.
Is the time adding feature working? If not I’ll implement it by the deadline.
Kind Regards,
Rio Tanabe
10/9/2022 15:31、Connor Ryan @.***>のメール:

@riotanabehttps://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Friotanabe&data=05|01||dcff187683e3429e37fb08da92f60939|84df9e7fe9f640afb435aaaaaaaaaaaa|1|0|637983882685263530|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|3000|||&sdata=bwG6gXBH%2BXgnU8iR1ptYN8jRnWKPimW14d4JGJwkndQ%3D&reserved=0 hey man, I've added in some basic countdown logic time increase work. Unsure if you were looking into this. Just on this commit here 8d98cbdhttps://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FUQdeco2800%2F2022-ext-studio-1%2Fcommit%2F8d98cbd2b0c36fa831ad6ed05b53c7185f1a46fe&data=05|01||dcff187683e3429e37fb08da92f60939|84df9e7fe9f640afb435aaaaaaaaaaaa|1|0|637983882685263530|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|3000|||&sdata=AepCmJPaKRkjC4yvQj5r2bMPM%2FBPEmj6gs%2BBq6qWgTA%3D&reserved=0
—
Reply to this email directly, view it on GitHubhttps://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FUQdeco2800%2F2022-ext-studio-1%2Fissues%2F78%23issuecomment-1242645422&data=05|01||dcff187683e3429e37fb08da92f60939|84df9e7fe9f640afb435aaaaaaaaaaaa|1|0|637983882685263530|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|3000|||&sdata=R3Kd84X5BoQ2FS9raSETiHtGy3hrLrj%2Fb3TrtMSullU%3D&reserved=0, or unsubscribehttps://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAVXBXYD5ZPYBV6V6DXL66WLV5QTKPANCNFSM6AAAAAAQHR3P5U&data=05|01||dcff187683e3429e37fb08da92f60939|84df9e7fe9f640afb435aaaaaaaaaaaa|1|0|637983882685263530|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|3000|||&sdata=xlIg4Op36MNzYCI%2BQObApxt%2FavcaSMN5%2Fa10ZpMmVPQ%3D&reserved=0.
You are receiving this because you were mentioned.Message ID: @.***>


text:
Engage filter logic by owner/ operator - compliance sub types

Definition of Ready

[x] Does this meet the INVEST criteria?
[x] Does this have a clearly defined user?
[x] Does this have an estimate?
[x] Does this have acceptance criteria?
[x] Does this have sufficient context for the specific functionality being developed (design, business rules, etc.)
[x] Does this have a dev link been provided in the design?
[x] Is this traceable to a feature, epic, or PI?

User Story
As a custom data download user I want the filter logic to engage when I select owner/ operator criteria So that I can avoid producing a compliance query with no results
Acceptance Criteria
Given that a user has applied allowance based or emissions based as a compliance sub type
When the filter panel functionality is displayed
Then the filter logic is engaged
Given that a user has selected an compliance sub type (allowance based and emissions based)
When filter criteria is applied for owner/ operator
Then all other filters are narrowed based on the applied owner/ operator criteria
Given that the filter logic is engaged
When new filter criteria is applied
Then all previously selected criteria that are still valid are maintained
Given that the filter logic is engaged
When the filter panel functionality is displayed
Then non applicable selections are removed from the combo box filter list
AND grayed out from the check lists
Given that the filter logic is engaged
When owner/ operator criteria is removed (ex filter tags, filters)
Then the filters are narrowed based on the applied criteria
Given that the filer logic is engaged
When the the checklist functionality is displayed
Then the user can not select or apply filter criteria for greyed out items
Given that the filter logic is engaged
When the "select all" functionality is selected on the checklist component
Then the system selects criteria that is not greyed out
Given that the filter logic is engaged
When the checklist functionality is displayed
Then the select all functionality is disabled for groupings that only contain greyed out criteria
Development Notes
Does this Story require 508 Testing?

[ ] Implementing a new authoring tool that will produce code / content for the application
[ ] Implementing a 3rd party widget that will be part of the application
[x] Adding new / updating custom functionality
[ ] Adding new / updating a page template
[ ] Adding new / replacing existing functionality (unless the replacement has already passed 508 testing)
[ ] Full Site Review prior to a scheduled EPA 508 review
[ ] Planning a video that will appear on the application
[ ] Producing a video that will appear on the application
[ ] Producing Training materials
[ ] Producing documents

Context
(User journeys, design mockups, architectural diagrams, business rules, data element definitions)
Testing
Test Case: TC478
Tester: @JanellC
Definition of Done

[x] Have all Acceptance Criteria been agreed to and validated by the scrum team?
[x] Has the code been unit tested and peer reviewed?
[x] Have the functional tests been executed?
[x] Have all defects been reviewed and dispositioned, resolved, or deferred?
[x] Is the user story ready to be deployed to the test/staging environments?

TC478 passed @tlageman-epa. This ticket is ready for 508 testing @aprematta

repo: US-EPA-CAMD/easey-ui


text:
Add Additional Filters to the bulk data files page

Definition of Ready

[x] Does this meet the INVEST criteria?
[x] Does this have a clearly defined user?
[x] Does this have an estimate?
[x] Does this have acceptance criteria?
[x] Does this have sufficient context for the specific functionality being developed (design, business rules, etc.)
[x] Does this have a dev link been provided in the design?
[x] Is this traceable to a feature, epic, or PI?

User Story
As a bulk data files user I want to use the filers to find XML and EDR files so that I can conduct analysis
Acceptance Criteria
Given that a user has navigated to the bulk data files page
When the data type functionality is displayed
Then the system displays the following options:  Allowance, Compliance, EDR, Emissions, Facility, Mercury and Air Toxics Emissions (MATS), XML
Given that a user has navigated to the bulk data files page
When EDR is selected as a data type
Then the system displays the Year, Quarter, and State filters
Given that a user has selected EDR as a data type
When the Year functionality is displayed
Then the system displays a list of years from 1995 – 2008
AND the user can select one year
Given that a user has selected EDR as a data type
When the Quarter functionality is displayed
Then the system the following options: 1st Quarter, 2nd Quarter, 3rd Quarter, 4th Quarter
AND the user can select one quarter
Given that a user has selected EDR as a data type
When the state functionality is displayed
Then the system displays a list of states ( 50 US states and PR. Remove All other territories)
AND the user can select one state
Given that a user has navigated to the bulk data files page
When XML is selected as a data type
Then the system displays the sub type filter
Given that a user has selected XML as a data type
When the sub type functionality is displayed
Then the system displays the following options : Emissions, Monitoring Plan, QA
AND the user can select one sub type
Given that a user has selected XML as a data type
When Emissions or QA is selected a data sub type
Then the system displays the Year, Quarter, and State filters
Given that a user has selected XML as a data type
When Monitoring Plan is selected as a sub type
Then the system displays the state filter ( 50 US states and PR. Remove All other territories)
Given that a user has selected Emissions as a XML sub type
When the year functionality is displayed
Then the system displays the following years: 2006-current (current year is up until ECMPS goes live)
and the user can select one year
Given that a user has selected QA as a XML sub type
When the year functionality is displayed
Then the system displays the following years:  2008-current  (current year is up until ECMPS goes live)
and the user can select one year
Given that a user has selected Emissions or QA as a XML sub type
When the Quarter functionality is displayed
Then the system displays the following options:  1st Quarter, 2nd Quarter, 3rd Quarter, 4th Quarter
and the user can select one quarter
Given that a user has selected Emissions or QA as a XML sub type
When the State functionality is displayed
Then the system displays a list of 50 US states and PR (remove All other territories)
and the user can select one state
Given that a user has applied filter criteria
When the data table functionality is displayed
Then the files are narrowed based on the applied filter criteria
Given that a user has applied filter criteria
When the clear all functionality is selected
Then the system clears all applied filter criteria and will only display the data type filter by default
Development Notes
Scope of this ticket is for the XML and EDR data types

As apart of the scope of this ticket, there needs to be logic between the state and year filters. The system should only display states applicable to the selected years. This logic needs to be implemented for XML and EDR data types
Ensure that the data labels are populated from the content management system

Does this Story require 508 Testing?

[ ] Implementing a new authoring tool that will produce code / content for the application
[ ] Implementing a 3rd party widget that will be part of the application
[x] Adding new / updating custom functionality
[ ] Adding new / updating a page template
[ ] Adding new / replacing existing functionality (unless the replacement has already passed 508 testing)
[ ] Full Site Review prior to a scheduled EPA 508 review
[ ] Planning a video that will appear on the application
[ ] Producing a video that will appear on the application
[ ] Producing Training materials
[ ] Producing documents

Context
Bulk Data Files wireframes
Requirements
filters will display select by default
Data Type :
Drop down
Optional
Single Select
Will displays select by default
Adding two additional Data types to the bulk data files page: XMLs and EDRs
Ensure data types are listed in alphabetical order
Data Types: Allowance, Compliance, EDR, Emissions, Facility, Mercury and Air Toxics Emissions (MATS), XML
EDR:
Given that a user has selected EDR as a data type, then the system displays the year, quarter, and state filters.

Year :
Drop down
Optional
Single Select
Values: List of years: 1995 – 2008

Quarter:
Drop Down
Optional
Single Select
Values: 1st Quarter, 2nd Quarter, 3rd Quarter, 4th Quarter

State
Drop down
Optional
Single Select
Values: All US 50 states and PR. Remove All other territories

Need more information: Note that not all years will have data for all states - we should discuss as a group when we review tickets for this work – will revisit...may be an enhancement
XML
Given that a user has selected XML as a data type then the system displays the sub type filter.

Sub type:
Drop down
Optional:
Single Select
Values: Emissions, Monitoring Plan, QA

Sub type: Emissions
Given that a user has selected emissions as a XML subtype then the system will display the Year, Quarter, and state filters

Year (Emissions):
Drop down
Single Select
Optional
Values: 2006-current  Note: current year is up until ECMPS 2.0 goes live
Quarter (Emissions):
Drop down
Optional
Single Select
Values: 1st Quarter, 2nd Quarter, 3rd Quarter, 4th Quarter
State (Emissions):
Drop down
Optional
Single Select
Values: All 50 states and PR (remove all other territories)
Need more information: Note that not all years will have data for all states - we should discuss as a group when we review tickets for this work

Sub Type: Monitoring Plan
Given that a user has selected monitoring plan as an XML sub type then the system displays the state filter

State (Monitoring Plan):
Drop Down
Optional
Single Select
Values: All 50 states and PR (remove all other territories)

Sub Type: QA
Given that a user has selected QA as a monitoring plan sub type then the system displays the Year, quarter, and state filters.

Year (QA) :
Drop down
Single Select
Optional
Values: 2008-current Note: current year is up until ECMPS 2.0 goes live
Quarter (QA) :
Drop down
Single Select
Optional
Values: 1st Quarter, 2nd Quarter, 3rd Quarter, 4th Quarter
State  (QA) :
Drop down
Optional
Single Select
Values: All 50 states and PR (remove all other territories)
Need more information: Note that not all years will have data for all states - we should discuss as a group when we review tickets for this work
Change Criteria
The user will have the ability to clear one, many, or all filter criteria
If the user changes data type, then:
The filter criteria displayed updates accordingly
No previously entered filter criteria is retained
If a user changes data type, then filter criteria is cleared
If a user selects the Clear all functionality, then all the applied filter criteria is cleared and the system will only display the data type filter by default
Testing
Test Case: TC687
Tester: @JanellC
508 Testing:
Tester: @aprematta
Definition of Done

[x] Have all Acceptance Criteria been agreed to and validated by the scrum team?
[x] Has the code been unit tested and peer reviewed?
[x] Have the functional tests been executed?
[x] Have all defects been reviewed and dispositioned, resolved, or deferred?
[x] Is the user story ready to be deployed to the test/staging environments?

TC687 passed @tlageman-epa . This ticket is ready for 508 testing @aprematta


text:
UI enhancement: MP Span record display

User reported the following:

It would be great if this screen could be modified to show some important information that’s contained in the span record (like the span and/or range). Information like the Method and UOM aren’t as useful to the end user.  I understand there may be real estate issues for displaying ALL the data but think there is more valuable info to communicate without requiring the user to click on the View window.

Review 1.0 and see what values are missing.

authors: annalbrecht j-tafoya


text:
Allow retrieval of constant value location levels over a date range

For non-timeseries location levels, I'd like to specify a date range and see all the values it was set to within that date range.
For example...
Assuming the levels table contains these:
LOCATION_LEVEL_ID				LEVEL_DATE	LEVEL_UNIT	CONSTANT_LEVEL
Lake Isabella.Stor.Inst.0.Top of Gross Pool	01-JAN-00	ac-ft		568100.0
Lake Isabella.Stor.Inst.0.Top of Gross Pool	01-OCT-10	ac-ft		361249.99999999994
Lake Isabella.Stor.Inst.0.Top of Gross Pool	13-JUN-23	ac-ft		568100.0

Notice the LEVEL_DATE is different.
I'd like to supply a start and end date, and get a result like this:
{
  "office-id": "SPK",
  "location-level-id": "Lake Isabella.Stor.Inst.0.Top of Gross Pool",
  "seasonal-values": [],
  "constant-value": 568100,
  "constant-values": [
    ["1900-01-01T00:00:00-07:00", 568100],
    ["2010-10-01T00:00:00-07:00", 361249.99999999994],
    ["2024-06-13T00:00:00-07:00", 568100],
  ],
  "level-date-start": "1900-01-01T00:00:00-07:00",
  "level-date-end": "2024-06-13T00:00:00-07:00",
  "level-units-id": "ac-ft",
  "level-date": "2024-06-13T00:00:00-07:00",
  "interval-months": 0,
  "interval-minutes": 0,
  "attribute-units-id": "ac-ft"
}

For the regular single point-in-time query, I'd expect "constant-values" array to be empty, if present at all. At least if compatibility with the current version is desired. If not, making the entire thing an array even for a single result is fine with me.
For compatibility, I left the current behavior in there as well, where it returns "constant-value" and "level-date", which is set to the most recent value in the date range requested. That can be changed if desired too.
I'm open to various output formats, I listed the above as an example.
Personally, I'd prefer the unix epoch timestamp, like in timeseries, but this levels call already has its own date format. Though, the response doesn't include the timezone, so it's not round-trippable. That's a separate issue though.

The getAll endpoint already accomplishes this. You can pass in the level id and a start and end date. It will create a record with each effective date along with its value. It would be up to the client to ignore seasonal/timeseries levels. I could see an update that restructures the LocationLevels DTO to group all levels with the same id to remove redundant data.

authors: DanielTOsborne adamkorynta

repo: USACE/cwms-data-api