Fixing missing defaults for custom instances

Fixes #220

If you don't provide a defaultConfig for a custom instance, instance.defaults will be an empty object. The global defaults are already getting merged at time of request (https://github.com/mzabriskie/axios/blob/master/lib/axios.js#L29). I think the real issue is that the nested structure of the defaults doesn't exist. I propose the following options as a solution:

Developer needs to ensure that instance.defaults.headers exists before adding to common or get, etc. This would work, but is less than ideal in my opinion.

let instance = axios.create();
instance.defaults.headers = {
  common: {},
  get: {},
  post: {},
};

Make sure a basic defaults structure exists when axios.create is called.

axios.create = function (defaultConfig) {
  return new Axios(utils.merge({
    common: {},
    get: {},
    post: {},
  }, defaultConfig));
};

I don't think either option achieves what I'm after; removing inconsistencies between the default instance and custom instances.
This might be an artificial example, but you wouldn't be able to query the defaults with custom instances:
axios.defaults.timeout // => 0
// vs
const instance = axios.create();
instance.defaults.timeout // => undefined, while actually 0 will be used when making a request

My proposed change passes the global defaults to the constructor, which is also what is done for the default instance (https://github.com/mzabriskie/axios/blob/master/lib/axios.js#L79). (And then there's actually no reason anymore to merge in the global defaults in https://github.com/mzabriskie/axios/blob/master/lib/axios.js#L29?)

@mzabriskie do you have any further thoughts on this?
Currently the default instance and custom instances are not interchangeable, which bit me when I started using custom instances in a piece of code that did work previously with the default instance.

Does any of the configuration passed when creating an instance get applied? It doesn't seem like it. I don't understand why this isn't considered a major bug - seems to make create() completely useless.

@joshuaflanagan The config passed in axios.create should be applied. Could you please provide a code snippet that reproduces the problem?

You're right, I am seeing the instance config being applied. Turns out I had a local config problem. This issue seemed like it was describing my same problem, but it wasn't. Sorry for the alarm!


Typo in language file

On the other hand I did not understand the utility of the line:  https://github.com/deathart/CodeIgniter4/blob/8ff5bf615b9d41f6acba6693a4bc80d8b1ab71fa/system/Language/en/Images.php#L59

@deathart - the PageNotFound text is in there for localizing to other languages.

I was too quick to comment earlier and didn't really notice this was the Images lang file you were pointing to. You're right - that can be deleted.

That copyright is great. And yes, put it on all language files, please.

Here it is done:)

Looks good, thanks!

@deathart ps - we expect contributions to be gpg-signed, thanks


System cannot find nbserver-318-open.html when running jupyter notebook command

Hi there im fairly new to all this, but I have set up everything according to the tutorial sheet but, when I run the jupyter notebook command which is shown in detail in the image I have attached, an error message pops up. Is there a way to fix this file error?

Furthermore, when running the cells, does anyone mind explaining the process a bit more in-depth if possible. I understand I can change all my setting but how does rendering work when you run it? and when you do run the cells do you have to reach step 5 before Ubuntu does anything?
Also is there anyway to see your processed images like in the original disco diffusion in like 50 step gaps or do you have to wait until the render is complete?
ONTOP of all that now im getting alot of ERROR 404 HTTP request sent, awaiting response... 404 not found messages. Any fixes?
Thanks, sorry for the lot of questions!

I have the same red text :(

If jupyter runs, you can ignore the red text. Closing this as it was posted a while ago - if still experiencing issues please open again, but stick to 1 problem per issue.


Updated links to use v2 docs

Coverage increased (+0.02%) to 71.7% when pulling b1ba06b783c752ddbf345740e736701cbe97a9fd on kirrg001:v1-links into ad6b7c9a9f4927e0cac11217ec7858e215ac2c44 on TryGhost:2.0.


WindowStartupLocation does not show window on expected position

Using WindowStartupLocation property not show window on expected position.
Tested on 0.6.2-build6147-beta
On Windows:
CenterOwner - show window top-left from the expected position
CenterScreen - OK
On Linux:
CenterOwner - show window bottom-right from the expected position
CenterScreen - show window bottom-right from the expected position
On Mac OSX:
CenterOwner - show window on static position independently on owner position, horizontally centered to screen, vertically top of center screen
CenterScreen - OK

For me (on Linux) CenterScreen uses as origin the top-left corner of the window :

Should have been fixed by #2250. Please let me know if not.

@grokys With night build 0.7.1-cibuild0001581-beta now work properly:
Windows: - all is OK
Linux: - center to screen is OK, center to parent is a little bit top-left from expected position, but it is OK
OSX: center to screen is OK, center to parent is a litle bit top-right from expected position, but it is OK


feat(cassandra) refresh cluster topology

Summary
A new cassandra_refresh_frequency property schedules a recurring background timer calling lua-cassandra's cluster:refresh() method in the background. In lua-cassandra 1.5.0, this method has been refactored to be safe to call at runtime.
When cassandra_refresh_frequency is 0, no topology refresh timer will be scheduled. A restart of Kong is necessary for lua-cassandra to consider new nodes (decommissioned nodes are blacklisted by the retry policy). The default value for this timer is chosen to be 60.
No Admin API endpoint has been implemented as part of this PR for the time being. Subsequent patches welcome if a manual refresh feature turns out to be desired.
Note: a more consequent refactor of lua-cassandra's CQL binary protocol implementation would allow for REGISTERing a connection, and interpreting TOPOLOGY_CHANGE events, which would be a more efficient approach.
Full changelog

Bump lua-cassandra to 1.5.0 (Changelog)
Add a new property: cassandra_refresh_frequency

Issues resolved
Fix #2674

When cassandra_refresh_frequency is 0, no topology refresh timer will be scheduled.

@thibaultcha would it be more consistent to have:
cassandra_refresh = on/off
cassandra_refresh_frequency = ..

I believe that there are properties where setting the value to 0 doesn't imply that the functionality is disabled, but that the timer is set to run continuously.


[docs-only] Small description text fixes for envvars

This only updates two description of envvars to use the same wording.

:boom: Acceptance test localApiTests-apiArchiver-ocis failed. Further test are cancelled...

:boom: Acceptance test localApiTests-apiCors-ocis failed. Further test are cancelled...


[Extensions] Docker: No service mesh adapters detected

Current Behavior
Service mesh adapters are present, but are reported as not detected.
What is the logical test being used to determine if adapters are available?
Expected Behavior
Present adapters should be shown as available.
Screenshots/Logs

Environment

Meshery Server Version: stable-v0.6.0-rc.6a

Contributor Guides and Resources

🛠 Meshery Build & Release Strategy
📚 Instructions for contributing to documentation

Meshery documentation site and source

🎨 Wireframes and designs for Meshery UI in Figma
🙋🏾🙋🏼 Questions: Layer5 Discussion Forum and Layer5 Community Slack

@leecalcote Can I work over this issue .

This might have occurred due to emptystate not getting updated immediately.


Please add endColumn, endLine, endOffset to the API

When integrating PEG.js with ACE editor it really helps to know where each node of AST starts and ends, so you can for example highlight errors (i.e. type errors in a program, not just errors in parsing).
The API supports column(), line() and offset() functions which give the precise information about the beginning of an AST node.
The more difficult part is to learn where does it end.
I've worked around it by using endOffset=offset()+text.length and then trying to find specific line and column in which endOffset is located, but it seems to be quite complicated (it's hard to do it faster than in O(log n) time, and hard to do it right in presence of CR+LF mixups).
I believe that endLine and endColumn could be provided by API in O(1) making it both faster and less error prone.

I moved this after 1.0.0 as I’d like to get to that version quickly. I’m now mostly focusing at polishing existing functionality and I’m deferring minor features that “only” fix annoyances (which this issue is because there is a workaround).

I changed my mind and implemented this for 0.9.0 already — mostly because I figured out the right API (hopefully), the implementation wasn’t that hard, and because I want to add location info to GrammarError soon and it felt wasteful to do it one way and then redo it later. For details, see the relevant commits.
@Mingun @kwesibrunee Thanks for exploring the topic, I drew inspiration form your approaches.
@Mingun I’ll probably add some comment later on why I did this differently than you did in #225 and why I didn’t accept your PR right away.


Sportbukkit link in docs down.

The link in the docs to sportbukkit.jar is broken someone needs to re-upload to somewhere else.

No one uploads such a jar, it's the output from the build server.
The repository went down as oc.tc closed, new builds may be found in https://repo.extension.ws , the issue is you can't have a link to the latest, you need to scroll down to get the latest sportbukkit

Pablete me salvaste la vida, pensé que tendría que descargas esas weas del maven. que flojera


Solve audio problem on 10.12 for ALC282

Disable newly added patch for Sierra, cause it breaks input/output init on this codec

Thank you)


Packaging update

Modernise our packaging workflow. This should now be more in line with the packaging toolchain used for our other libraries.

Not sure why it is using some experimental things. Closing this PR so that I can figure out why.


[Feature Request] Want to support GIF format

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. E.g. I'm always frustrated when [...]
Describe the solution you'd like
A clear and concise description of what you want to happen.
Describe a small use-case for this feature request
How would you imagine this to be used? What would be the advantage of this for the users of the application?
Additional context
Add any other context or screenshots about the feature request here.

Want to support GIF format pictures

This has been added in #225 and is now available in dev. We will merge it to master and make an official release soon.

thanks


Replacing the fsevents dependency?

I installed it with
npm install --save xlsx-populate
on my ubuntu 17.04 with the npm version 3.5.2.
ERROR in ./~/xlsx-populate/lib/Workbook.js
Module not found: Error: Can't resolve 'fs' in '/home/oct/Documents/Workplace/web-app/node_modules/xlsx-populate/lib'
 @ ./~/xlsx-populate/lib/Workbook.js 4:11-24
 @ ./~/xlsx-populate/lib/XlsxPopulate.js
 @ ./src/components/TemplateForm/index.js
 @ ./src/containers/Template/index.js
 @ ./src/containers/index.js
 @ ./src/routes.js
 @ ./src/main.js
 @ multi (webpack)-dev-server/client?http://localhost:3000 webpack/hot/dev-server ./src/main

the reason is the dependency fsevents, since when I try to install it with
npm install --save fsevents
i get
npm ERR! Linux 4.10.0-20-generic
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install" "--save" "fsevents"
npm ERR! node v4.7.2
npm ERR! npm  v3.5.2
npm ERR! code EBADPLATFORM

npm ERR! notsup Not compatible with your operating system or architecture<EMAIL_ADDRESS>npm ERR! notsup Valid OS:    darwin
npm ERR! notsup Valid Arch:  any
npm ERR! notsup Actual OS:   linux
npm ERR! notsup Actual Arch: x64

npm ERR! Please include the following file with any support request:
npm ERR!     /home/oct/Documents/Workplace/web-app/npm-debug.log

Maybe you want to consider replacing the fsevents dependency with another one which works on all systems?

We don't use fsevents. We do use the standard Node fs though. Your error looks related to webpack. Seems like a common occurrence: http://stackoverflow.com/questions/39249237/node-cannot-find-module-fs-when-using-webpack

Thanks! You pointed mi into the right direction, after further searching on the web adding
node:{fs: 'empty'}
to my base.js from webpack resolved the error.


Update hydra, tiamat, dhcp/dns, add TalDos, update IP allocations

Added and updated information on pages for hydra and tiamat
Added page for TalDos
Updated DHCP & DNS pages to point to TalDos
Added DHCP configuration
Updated IP allocations to reflect Talos and TalDos's new IPs

You can add this to the _typos.toml file to remove the error on the mirror page. I never had a chance to share this.
[default]
extend-ignore-identifiers-re = [
    # Ignore mirror hard disk names
    "2RW103_ZL2*",
]

Just put your addition in _typos.toml. Thank you!

I wonder if you could shrink the DHCP config removing the comments. I sometimes use COSI resources as references for how to do system administration tasks, and the DHCP section is 75% of the way to being a tutorial 😃

@carykees98 Committed your changes to dhcp.md

I wonder if you could shrink the DHCP config removing the comments. I sometimes use COSI resources as references for how to do system administration tasks, and the DHCP section is 75% of the way to being a tutorial 😃

Definitely a good idea, I just pasted the contents of the file in. I'm definitely not opposed to making book entries more tutorial-like in the future, maybe that will be my project for break.


Error when boost up with newest experiment build

DEBUG    : error setting double destination in 'name: impurities', 'u_val: vitamin',
FUNCTION : static void kwargs_shim::throw_error(std::string_view)
FILE     : src/math_parser_shim.h
LINE     : 53
VERSION  : b3a2e0d
and
DEBUG    : unrecognized number source in 'name: impurities', 'u_val: vitamin',
FUNCTION : static void kwargs_shim::throw_error(std::string_view)
FILE     : src/math_parser_shim.h
LINE     : 53
VERSION  : b3a2e0d
And when I trying to crack the core deliberately, the game crashed. Maybe is due to this update : https://github.com/CleverRaven/Cataclysm-DDA/pull/70996
Edit : I have fix the eoc.json myself by replace all the u_val('vitamin', 'name: impurities') with u_vitamin('impurities') , because I can't make PR so I attach the fixed file here.
eoc.json

Closed with #4


raw.get_data() should accept int64

When loading a file to RawArray, the get_data() command does only accept int32, but should accept all ints, including int64, as this is the standard dtype for many numpy functions (e.g. np.argmax). It's a small change, I'll propose it.

can you provide a code snippet to replicate? are you on windows?

yes! sorry, should have done that initially:
import numpy as np
import mne
from mne.datasets import sample

data_path = sample.data_path()
fname = data_path + '/MEG/sample/sample_audvis_raw.fif'
ch_idx= np.argmax([0,1,2,3,4])
fif = mne.io.read_raw_fif(fname)
data = fif.get_data(ch_idx)

only happens with 0.18 dev version! 0.17 seems to be fine.
btw 1.5GB for the sample data set is quite huge!


Open post ajax request in a new tab?

With FB 2 it was possible to open a post ajax request in a new tab. When we are in the new tab -> the request was sent through POST with the same parameters. IN FB3 we are sending a get request I think. With FB2 I was able to send 100 ajax request till one of them broke. I was able to open this one in a new tab and debug from there. Right now that's no longer possible.

Any progress on this? Is this a firebug issue or firefox's console issue? Should I create a topic with the firefox team?

Seems to occur only when the POST body is empty.

Really? For me that is always the case. No matter if the post body is empty or not.

This is Firebug issue and I'll do some analyses
(but it can take some time since I am planning vacation)
Honza

Afraid to report the same. I'm using Firefox 51 (beta) and I switched to the Firefox Developer Tools, thinking that Firebug had been integrated. "Open in new Tab" on a POST request will result in a GET request in the new tab. That's unfortunate, that was a useful debugging feature...

This is reported to the DevTools in bug 1220758.
Sebastian


"Invalid scheme in uri" error while trying to connect using narmal mongo url 'mongodb+srv://[username]:[password]@[host]'

await mongoClient.connect();

Can you give an example of the url that you are using?

Can you give an example of the url that you are using?
Thank for answering, iam using a normal mongo database url<EMAIL_ADDRESS>

@giorgiofran
Thank you for answering, iam using a normal mongo database url<EMAIL_ADDRESS> var client = MongoClient("mongodb+srv://myusename:mypassword@cluster0.ytc4tjd.mongodb.net/");   await client.connect();

Thanks, I will check this in the next days.

Thank you so much for fixing the issue; it's working now!


How to construct SELECT (EXISTS ...))?

Hi. Is it possible to construct query like this with knex?
SELECT id   ,name   ,EXISTS (SELECT 1    FROM options    WHERE customer_id = customers.id    AND option_name = 'Editor') AS isEditor FROM customers
Thanks!

Kind of:
var inner = knex('options').whereRaw('customer_id = customer.id').limit(1);
var isEditor = knex.raw(isEditor).wrap('exists (', ') as isEditor');

knex('customers').select('id', 'name', isEditor).then( //...

output:
select "id", "name", exists (select * from "options" where customer_id = customers.id limit 1) as isEditor from "customers"

I assume you mean  knex.raw(inner).wrap('exists (', ') as isEditor'); and it works! Thanks a lot.

Why is there not a .exists() method like .count() for this?

@maxbogue because we cannot make wrapper to every function of every dialect.
const subQuery = knex('options').where('customer_id', knex.raw('??', ['customer.id']).limit(1);
knex('customers').select('id', 'name',  knex.raw('exist(?) as ??', [subQuery, 'isEditor'])).this(...

is currently nicest syntax for  this.

can I argue this is a fairly common usecase, and I'd be fine if it actually just limited to 1 and turned to a boolean for every implementation? It could then use optimizations, but the main point is that it helps keep your code semantic

For everyone out there that reaches this issue looking for a way to create a simple SELECT EXISTS(...) statement, here's the gist:
knex.first(
  knex.raw('exists ? as present', knexSubQuery.limit(1))
);

Example:
async function exists(alias) {
  const res = await knex.first(
    knex.raw(
      'exists ? as present',
      knex('email_mx_alias')
        .select('id')
        .where('alias', '=', alias)
        .limit(1)
    )
  );

  return res.present === 1;
}

This should be another way, right?
const selectQuery = knex.select("1").from("myTable").where({ myColumn: 12345 }).toSQL();

const result = await knex.raw(`SELECT EXISTS (${selectQuery.sql})`, selectQuery.bindings);

const exists = result.exists;

@Gameghostify I think that one has a couple of issues.

You can't select an unknown column from a .select() call - like you did with 1 there. You'll en up with a ER_BAD_FIELD_ERROR: Unknown column '1' in 'field list' exception.
If you fix the above (by, say, changing 1 to some known column, like id), then there would be no .exists property anywhere on your result set. You get back RowDataPacket and FieldPacket arrays.

Other than that, it should work.

I haven't tested it yet but I'm pretty sure
SELECT EXISTS(SELECT 1 FROM myTable WHERE myColumn = 12345)

gets generated here.
With most rdbms (e.g. mysql, mariadb, ...) this should be exactly the same as
SELECT EXISTS(SELECT * FROM myTable WHERE myColumn = 12345)

Well - I did test it and it has the problems outlined above. The concept works, it just needs some implementation tweaks to make valid for knex.

Oh, sorry, I misunderstood
Tested it now and it works with knex.select(1) (notice, not a string)!
It seems that knex treats strings as column names here  (whereas numbers are treated as literals)

I am doing like this for my unique constraint check logic using Knex raw

type payloadType = {
    name: string,
    colname: string,
    colvalue: string
}
export async function uniqueConstrintCheck(knex: any, tableName: string, payload: payloadType[]) {
    try {
        for (const task of payload) {
            const response = await knex.raw('SELECT  EXISTS (SELECT from ?? WHERE ??= ?)', [tableName, task.colname, task.colvalue])
            if (response.rows[0].exists === true) {
                return `${task.name} already exists`
            }
        }
        return null
    } catch (err) {
        console.error(err)
        return `something went wrong`
    }
}


AgriPV suggestions

Hi,
I am working as a post-doc in Research Center Jülich, Germany and I am coding a small package using bifacial_radiance with the focus on AgriPV and I am very glad that you are still actively developing the project.
The suggestion:

I think you should also set groundscan['orient'] = '0 0 -1' not only in the latest tutorial 18, but also the ones before
Please make backscan in AnalysisObj.analysis optional with default=None , so we can simulate only one side (or only the ground) or you could also merge front- and backscan into a list or dict of scanDicts, which may have only one or also multiple entries so that e.g. also

analysis.analysis(octfile, name=sim_name+'_North&South', frontscan=treescan_north, backscan=treescan_south) analysis.analysis(octfile, name=sim_name+'_East&West', frontscan=treescan_east, backscan=treescan_west)
simplifies to
analysis.analysis(octfile, name=sim_name+'_North&South', scanDicts=scanDicts)
Thank you and best regards
Leonard

Hi Leonard,
How exciting, glad you're looking into AgriPV with our tool.
Regarding suggestion one, there is nothing to fix on the provided tutorials, detailed motives here:

Journal 16 - Does not do the irradiance simulation on itself, the HPC does it. I'll update the documentation in the journal at some point to update to point exactly which HPC script on the folder we uploaded does it but it's one of the PuertoRico ones (probably the 2nd one).
Journal 17 - the only thing that fully gets evaluated on this journal is the GHI, with one sensor. It doesn't really matter to change the sensor angles to 0 0 -1 as the unobstructed surface of the ground will deffinitely be sampled by the sensor. HPC script indicated at the end of the tutorial does perform the actual simulation and provide the correct orientation of 0 0 -1
Journal 18 - Not modeling the ground but the trees so no need to modify

Regarding the second suggestions, we already built that functionality for that same purpose; I don't think we did 0 as a valid value but deffinitely only 1 scan for the surface you are not interested in. You can achieve this by setting sensorsy = [frontsensors backsensors], and same for sensorsx to scan on the other axis.
Tx!

Forgot to answer the last part --- The simplification you are proposing there is not the same as the one you start the bullet point with; that is actually making 4 different scans and orientations instead of 2. I don't think we have a plan to implement that and I'm unclear on the benefit, as it does not reduce computation time, but I'll keep it in mind.

Hi Shirubana,
Thank you for the fast reply. The first suggestion was rather for the user who might oversee to adapt the orientation, if they are interessted in the ground and take a journal (except 18) as starting point (e.g. also 11 and 12). At least this happened to me at first.
Regard the second suggestion, I will try the one-scan scanDict then, thanks. The benefits of the last suggestion would just be a shorter code for scanDict counts unequal to two and that the one-scan point simulation would also not be neccessary anymore. But I understand that many peoply would need to change adapt their code, which would be a disadvantage.
Thanks!
Leonard


"Auto Focus Search Box" option doesn't work

When I click add-on button and popup opens then search box is NOT in focus, I start typing but search box stays empty.
Tried turning on/off  "Preserve search" but it result is the same.

OS: Windows 7  64bit
Firefox 68.0.1 64bit (firefox portable)
Tab Manager v2   0.21.3

Thanks for reporting this. I confirmed this on macOS as well. It's a bug during a past framework upgrade.
I'll fix this soon.

This should be fixed in v0.21.4. Could you please take a look?

Yes, it works OK now. Thank you very much!
P.S. Also it looks to me that popup window now takes more time to open (about .7-1 sec) than it took in prev version.

I'm not aware of any load time change. But I made a change to solve potential performance issue in v0.21.5.

It seems a little bit faster.

Thanks for confirming


Fix Inconsistent support for non-equi joins

Fix https://github.com/facebook/presto/issues/3019

Merged with some minor adjustments. Thanks!


Fix optimizer load state dict copy tensor by reference

Fixes: https://github.com/dotnet/TorchSharp/issues/1172

Also fixes https://github.com/dotnet/TorchSharp/issues/1176 with the conditional state being copied to the right device.

@NiklasGustafsson What do you think of my solution?
I added a disposeAfter flag to the to(..) function which dispose the input tensor after moving to the new tensor.
Turns out we didn't need to check if the tensor actually moved, because we get a new handle regardless.
I wrote a unit test attempting to move and cast tensors to the same and different types/devices, and made sure the behavior was as expected.
What do you think?
If this solution is good, I'll wait for this to be merged and then use it in the other PR.

@shaltielshmid -- here's a tip: Once you have created a PR, try to consolidate a number of commits before pushing again. Every push starts a new build on the CI/CD pipeline, which wastes resources.

Of course, I apologize.
I generally try to make a few commits, but only push when I complete changes.

You have run the unit tests on CUDA, right?

Merged


[5.5] [SymbolGraph] add sourceOrigin info for all protocol implementations

Resolves rdar://78680450
This PR ports https://github.com/apple/swift/pull/37777 to the release/5.5 branch.
Change Information

Explanation: Adds sourceOrigin information for symbols that implement protocol requirements when the protocol and the implementation are in the same module.
Scope of issue: Currently, the sourceOrigin field in the symbol graph's relationships only appears when a symbol is synthesized, or when the protocol being implemented was defined in a different module. When a symbol is implementing a locally-defined protocol and also inherits docs, there is currently no way to relate the implementation to the symbol that defined the docs it's inheriting.
Risk: Low. The added code only adds a new field in more places.
Automated Testing: The lit test "SymbolGraph/Relationships/Synthesized/InheritedDocs" has been updated to exercise this situation.

@swift-ci Please test

@swift-ci Please test

@swift-ci Please build toolchain macOS platform

Build failed
Swift Test OS X Platform
Git Sha - e4b6582a767c1e1c45473bfbed71b19e61e9caa4

FATAL: Unable to delete script file /var/folders/_8/79jmzf2142z2xydc_01btlx00000gn/T/jenkins3885156208099152097.sh

@swift-ci Please test macOS platform

Ditto for the toolchain build.
@swift-ci Please build toolchain macOS platform

Toolchain build failed again in the SwiftPM tests:
Tests/SimpleTests/SwiftTests.swift:1:8: error: module compiled with Swift 5.3.2 cannot be imported by the Swift 5.5 compiler: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/lib/XCTest.swiftmodule/x86_64-apple-macos.swiftmodule

@swift-ci Please build toolchain macOS platform

This is known issue, and it was resolved with this PR https://github.com/apple/swift/pull/37823

@swift-ci Please build toolchain macOS platform

macOS Toolchain
Download Toolchain
Git Sha - e4b6582a767c1e1c45473bfbed71b19e61e9caa4
Install command
tar -zxf  swift-PR-37815-1008-osx.tar.gz --directory ~/


Revert "cleanup duckdb build (#257)"

This reverts commit 7489afec0f018c6da90c8047781c6a8b30bceca7.
This commit broke our CI tests because it removed support for JSON. I think removal of JSON support was by accident. Let's revert for now, and re-open a new PR with a fixed build.

hmm, dont understand this but I'll investigate further


dissipating trajectory of the vortex has been added with some changes…

… in the geometry and applied external field

Good idea, I'll remove it


Update chroma integration to note that it has node support

Chroma's client is isomorphic, but the current sidebar implies it does not work in Node. Suggestions for how to fix this? @nfcampos Thanks!

The sidebar label "Node.js" implies that it only works in Node.js. So the vector stores without the label are isomorphic.

@jacoblee93 ah i see - i think node-only would be more clear. Currently it looks like Chroma does not work in Node - which I think confuses users because it does! You could also have B and N chips and then put them on each client.

B and N?

Browser and Node

Gotcha - Browser doesn't quite encapsulate it since there's Cloudflare Workers/Edge functions/Deno as well. I'll make it say Node-only

@jacoblee93 very good point


Dracula for LCD Smartie

New Theme - LCD Smartie
I would like to announce that a Dracula skin for LCD Smartie is available on:
https://github.com/limbo666/Dracula_for_LCD_Smartie
FYI:
LCD Smartie is an open source software for Windows. It drives character LCD Screens and displays diagnostics and other informational messages to external hardware and virtual LCD screens.

Hey, that's very cool! ✨
I just sent you an invitation to join the organization.
I also cloned your repository for Dracula's organization, so you can go ahead and delete or archive yours:

Your repository.
New repository.

Thanks for building this! 🎉


Write a Java program to find area of a circle

Description
Write a Java program to find area of a circle
Area of circle = π × Radius^2
Radius : 2

Area : 12.566370614359172

How to contribute

Save the solution in FindAreaOfACircle.java file
Add FindAreaOfACircle.java file in find-area-of-a-circle folder

!assign


Sequencer suffers from TOCTOU issues

Bug found by auditors:

Due to the way action handling is done, unexpected behaviors can be noted.
a transactions action's stateful checks are ran together in parallel. Then the actions are executed.
Action 1 -> check_stateful()
Action 2 -> check_stateful()
...
Action 1 -> Execute()
Action 2 -> Execute()

This means that certain actions could have unforseen consequences. Imagine 2 BridgeSudoChangeAction actions which have been bundled into 1 tx, they would both execute even if the first action changes the sudo address because the stateful checks of both actions are executed before the execute
    async fn check_stateless(&self) -> anyhow::Result<()> {
        ensure!(!self.actions.is_empty(), "must have at least one action");

        for action in &self.actions {
            match action {

Some thoughts I have for this:
Because check_stateless, check_stateful, and execute are split and run one after the other, this inherently creates ace conditions. The way to fix this is to move the checks into execute. Given their serial nature this addresses the problem.
Looking at the current state of cnidarium, I find that they changed their naming in cndiarium_component::ActionHandler to the following:
check_stateless (as before)
check_historical (where they explicitly highlight the issue we are facing: time-of-check-to-time-of-use: https://github.com/penumbra-zone/penumbra/blob/6981aec13519d352be642f690350b5227657de4f/crates/cnidarium-component/src/action_handler.rs#L56-L59)
check_and_execute (where now stateful check && execution happen atomically, taking into account serial execution)


Wildcard in filename not working

Hi,
I tested avdo succesfully on a single file so I wanted to give it all my files. I executed avdo *.xml and got the following error message (paths are shortened wit [...]):
Error: No such file or directory 'c:\[...]\src\main\res\drawable\*.xml'.
    at checkOptimizeFileError (C:\[...]\AppData\Roaming\npm\node_modules\avdo\dist\lib\index.js:212:31)
    at C:\[...]\AppData\Roaming\npm\node_modules\avdo\dist\lib\index.js:162:16

Error on my site or bug? I am on Windows 10, getting it with Powershell and cmd.
Greetings!

Hmm... that is strange. I am wondering if this is a limitation of Powershell and cmd? I am testing with a virtual machine and got the same error when using cmd... but when I tried using Cygwin it worked fine.
I'm not too familiar with Windows... so not sure if wildcards are expected to work (or if there is some other way you are supposed to do wildcards)?
Fortunately in your case there is a pretty easy workaround... just execute avdo --dir . instead and that will optimize all XML files. You won't be able to specify more detailed wildcards (i.e. *_suffix.xml or something like that).

Thank you for the answer. I think you are right. I am also not too familiar with the windows shell maybe somebody can find a way to use wildcards.
The way by specifying a directory worked like a charm though 👍
Thanks!


Feature request to specify version when try to install a package

vcpkg install cpprestsdk will only able to install the newest version of cpprestsdk.
But sometimes user wants to install a specific version which may already run on customer's production for a very long time.

Thanks for posting this issue. Closed as duplicate of #1681.


[Windows] Compiler Error C2099: "initializer is not a constant"  in release/profile mode

Compile error C2099 in release and profile mode on windows, Debug mode and all build modes for android/ios/macOS are passed.
Build release output:
<project_path>\windows\flutter\ephemeral\.plugin_symlinks\flutter_qjs\cxx\quickjs\quickjs.c(41791,1): error C2099: initializer is not a constant [<project_path>\build\windows\plugins\flutter_qjs\quickjs.vcxproj]
<project_path>\windows\flutter\ephemeral\.plugin_symlinks\flutter_qjs\cxx\quickjs\quickjs.c(41792,1): error C2099: initializer is not a constant [<project_path>\build\windows\plugins\flutter_qjs\quickjs.vcxproj]

The code at quickjs.c(41791|41792):
static const JSCFunctionListEntry js_math_funcs[] = {
    // skip lines
    JS_CFUNC_SPECIAL_DEF("floor", 1, f_f, floor ),
    JS_CFUNC_SPECIAL_DEF("ceil", 1, f_f, ceil ),

According to https://github.com/codeplea/tinyexpr/issues/34,

change floor and ceil to floorl and ceill(for long double type), error disappear but warning of mismatch of parameter type
add #pragma function (ceil) and #pragma function (floor) before static const JSCFunctionListEntry, error disappear.

flutter doctor -v
```
[✓] Flutter (Channel master, 1.26.0-2.0.pre.167, on Microsoft Windows [Version 10.0.19042.685], locale zh-CN)
    • Flutter version 1.26.0-2.0.pre.167 at D:\Projects\sdk\flutter
    • Framework revision d3a2259541 (9 days ago), 2020-12-31 15:14:03 -0500
    • Engine revision 82b4ae86d6
    • Dart version 2.12.0 (build 2.12.0-179.0.dev)
    • Pub download mirror https://pub.flutter-io.cn
    • Flutter download mirror https://storage.flutter-io.cn
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
• Android SDK at D:\Projects\sdk\Android\Sdk
• Platform android-30, build-tools 30.0.3
• ANDROID_HOME = D:\Projects\sdk\Android\Sdk
• Java binary at: C:\Users\narumi\AppData\Local\JetBrains\Toolbox\apps\AndroidStudio\ch-1\201.6953283\jre\bin\java
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
• All Android licenses accepted.
[✗] Chrome - develop for the web (Cannot find Chrome executable at .\Google\Chrome\Application\chrome.exe)
! Cannot find Chrome. Try setting CHROME_EXECUTABLE to a Chrome executable.
[✓] Visual Studio - develop for Windows (Visual Studio Enterprise 2019 16.8.3)
• Visual Studio at C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise
• Visual Studio Enterprise 2019 version 16.8.30804.86
• Windows 10 SDK version 10.0.18362.0
[✓] Android Studio (version 4.1.0)
• Android Studio at C:\Users\narumi\AppData\Local\JetBrains\Toolbox\apps\AndroidStudio\ch-1\201.6953283
• Flutter plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
[✓] VS Code (version 1.52.1)
• VS Code at C:\Users\narumi\AppData\Local\Programs\Microsoft VS Code
• Flutter extension can be installed from:
🔨 https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter
[✓] Connected device (3 available)
• sdk gphone x86 (mobile) • emulator-5554 • android-x86    • Android 11 (API 30) (emulator)
• Windows (desktop)       • windows       • windows-x64    • Microsoft Windows [Version 10.0.19042.685]
• Edge (web)              • edge          • web-javascript • Microsoft Edge 87.0.664.75
! Doctor found issues in 1 category.
</details>

Thanks

Thanks

Thanks, I tested on with your fork and it works, can build with --release

The problem suddenly occur again. Local building passed, but github workflow failed, which is successful several days ago.
[        ]   D:\a\chaldea\chaldea\windows\flutter\ephemeral\.plugin_symlinks\flutter_qjs\
cxx\quickjs\quickjs.c(41831,1): error C2099: initializer is not a constant
[D:\a\chaldea\chaldea\build\windows\plugins\flutter_qjs\quickjs.vcxproj]

line 41831
    JS_CFUNC_SPECIAL_DEF("log2", 1, f_f, log2 ),

Build log:
https://github.com/chaldea-center/chaldea/runs/6422757907?check_suite_focus=true
Wonder why and what kind of functions are facing this problem?

VS2019 builds ok, after upgrade to VS2022(17.2.32505.173), the error occurs, and #pragma function (log2) also works.

PR plz

Before patching, I wonder will this problem increasing while VS updating its components or libs?
Is this the only way to fix it one by one?
( I dont have C/C++ experience)

I'm not familiar with C++, either.
In https://github.com/ekibun/flutter_qjs/commit/232ea07e895f24f0fc6b6f521fb134164d7c5133, I remove the pragma and disable the intrinsic function optimization. The windows release build of the example compiles successfully. Please check again in your application.

I’m sorry but I currently don’t have bandwidth in maintaining this library, I am fraud a release won’t happen in the near future. Please feel free to fork this repo and make changes though.

The only troublesome stuff is that this repo using submodule and pub wont clone it if using git deps, thus every update or workflow needs to manually init submodule.
If no more fix recently, why not just release a minor version to fix it? I guess it only takes several minutes to run dart pub publish?


The problem with the function of get_GRU_cell

In get_GRU_cell, when to compute h = self.weights['lambda']*(1-z)h_prev_reset + zh_tilde, the wt is h_prev_reset, while in the paper, the h_prev_warped in the code represent wt, which one is right in computing the value of h in the code??

Hi, h_prev_reset in the code corresponds to r_t*w_t . See eq. 2 and 6 in the paper. In an earlier arxiv version there was no multiplication by r.

Hi, I see that h_prev_reset in the code corresponds to r_tw_t,  but in the code, showed that h = self.weights['lambda'](1 - z)h_prev_reset + zh_tilde where self.weights['lambda']*(1 - z) should multiply h_prev_warped which corresponds to w_t  in the paper.
At 2018-12-05 15:49:02, "D-Nilsson"<EMAIL_ADDRESS>wrote:
Hi, h_prev_reset in the code corresponds to r_t*w_t . See eq. 2 and 6 in the paper. In an earlier arxiv version there was no multiplication by r.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.


Allow to match filepaths in unique match-mode

fixes #129

Thank you for your contribution. I think your approach is a good way to solve the problem. To further illustrate this, could you please add an example rule to one of the configuration files in the example/ folder?

I've been trying to add tests  to my PR, but doing so requires writing a new struct, as DummyRepo maps queries to messages. Should I write a new struct or write a dummy test ?

Hm, why do you have to modify DummyRepo? The filtering would happen in apply_rules based on the path of the message, e.g. something like
        let messages = repo.search_message(&query_str)?;
        let messages = messages.iter().filter(|x| x.file_name() == ... ).collect();

Hm, why do you have to modify DummyRepo? The filtering would happen in apply_rules based on the path of the message, e.g. something like
        let messages = repo.search_message(&query_str)?;
        let messages = messages.iter().filter(|x| x.file_name() == ... ).collect();

The issue is that, since DummyRepo is a HashTable with keys being queries, it doesn't get multiple messages per query, so the filtering according the path is trivial. I'm pushing a test, it is trivial, but if you're ok with it, it's fine I guess.


sellerProduct: in ver. 3.0.0

sellerProduct:

brandName:, gradeCode: and gradeCodeName are assigned by the supplier/seller.  The customer can use a sellerproduct with these properties when ordering paper. So these properties are never assigned by the customer for a sellerProduct. So the assignedBy construct can be removed.

A sellerProduct can be fully-specified or not fully-specified. The identifier used for a not fully-specified sellerProduct is gradeCode in papiNet xml. The identifier used for a fully-specified sellerProduct is  partNumber in papiNet xml.
I propose when having gradeCode that property partNumber: should be added. Property gradeCodename could be renamed to sellerProductName or productName, A choice could be added between gradeCode and partNumber (OneOf)

The customer can specify an customerArticle that can be can be fully-specified or not fully-specified. Properties brandName:, gradeCode: and partNumber: can also be used for a customerArticle. Property customerArticleName: or articleName: could be used for an customerArticle.

Decisions on 2023-12-20
Current business cases for version 3.0.0 are without uuid and master data. Our decision is to currently remove the uuid from products, parties, locations and  customerArticles.
Property partNumber should be added to sellerProduct and customerArticle.
gradeCodeName should be changed to productName.

I think we need to (re)discuss the consequences of removing the (uu)id of parties and locations. How would we then present the links with the following (existing) API endpoints:

`GET /parties/{partyId}
`GET /locations/{locationId}

@bengtwentus will prepare some proposals to be discussed...

Let's summarize the needed changes for sellerProduct and customerArticleReference:

sellerProduct.id ...
sellerProduct.brandName ...
sellerProduct.gradeCode ...
sellerProduct.gradeCodeName ...
customerArticleReference.id...
customerArticleReference.articleNumber ...
customerArticleReference.articleName ...

When I will be ready with the commit, I will probably create a new issue to discuss further the overall usage of UUIDs so we can close this issue with the commit containing all the changes we agreed on!

Changes done in commit 46c2cf1.
I will propose a JSON schema to:

add the constraint that sellerProduct.gradeCode and sellerProduct.partNumber must not be both populated
add the constraint that customerArticleReference.gradeCode and customerArticleReference.partNumber must not be both populated

within a the new issue ..., so we can already close this issue.

The minLength: 1 is missing with the type: string and the constraint must be explained in English prose within the description .

The constraint minLength: 1 has been added, see commit 38cbcd5. Regarding the constraint, we will follow that up within issue #123.


Fix for inheritance of abstract properties and ContractResolver that suppresses properties

fixed logic for which properties should be included in schema
added test for custom contract resolver
fixed issue with inheritance with an abstract property
suppress warnings for xml comments in test project

There is plenty of work to go using the parts from the Json.NET contract resolver that overlap with TypeDescription and other classes. I did the minimal I needed to for my project and I'm not confident in #d7a2429, but I think the unit test should be included as serializing an object to a string using the TypeConverter method is standard for Json.NET.


bundling is broken

purs-loader starts bundling right after the compilation, but it does not guarantee that all the references to the PureScript modules are already collected. As a result, if compilation ends faster than modules processing, this code continues to add bundle modules that will never be bundled (because bundling is already started at this time).
I've got this problem compiling a large JS project with some of PureScript included, while compiling for the server side. For some reason bundling for client side either worked well or problems weren't obvious.
At least, I'd recommend to throw an error if more bundle modules are tried to be pushed when bundling is already started because else bundle is invalid anyway.
I don't see any easy way to fix the problem. It's needed to somehow wait for all the modules except PureScript ones to be processed before starting bundling. It can be done with checking _compilation.modules and not starting bundling unless all non-.purs of them have module.building equals to undefined (see this code). I couldn't find any better way to determine webpack have finished with the module. Anyway, it looks hacky.
Also, because all the modules must be ready before bundling, PureScript files cannot be used in loaders or as loaders with bundle: true mode. This looks pretty obvious, but probably should be documented. A workaround here can be to use special non-bundling settings for loaders, but haven't tried it myself yet.

Thanks for the report. Sorry for the delay. I will get back to this next
week.
On Monday, 26 September 2016, Dmitry Smolin<EMAIL_ADDRESS>wrote:

purs-loader starts bundling right after the compilation
https://github.com/ethul/purs-loader/blob/896c11ece1c11c3a57c5169dbbaa24865016cded/src/Psc.js#L53,
but it does not guarantee that all the references to the PureScript modules
are already collected. As a result, if compilation ends faster than modules
processing, this code
https://github.com/ethul/purs-loader/blob/0b853815ef14d35cedebc2c7806fd2f9ff9d5ab5/src/index.js#L97
continues to add bundle modules that will never be bundled (because
bundling is already started at this time).
I've got this problem compiling a large JS project with some of PureScript
included, while compiling for the server side. For some reason bundling for
client side either worked well or problems weren't obvious.
At least, I'd recommend to throw an error if more bundle modules are tried
to be pushed when bundling is already started because else bundle is
invalid anyway.
I don't see any easy way to fix the problem. It's needed to somehow wait
for all the modules except PureScript ones to be processed before starting
bundling. It can be done with checking _compilation.modules and not
starting bundling unless all non-.purs of them have module.building
equals to undefined (see this code
https://github.com/webpack/webpack/blob/17ca14ccd96dcb951c29f6762260cb7a3fc434d0/lib/Compilation.js#L122).
I couldn't find any better way to determine webpack have finished with the
module. Anyway, it looks hacky.
Also, because all the modules must be ready before bundling, PureScript
files cannot be used in loaders or as loaders with bundle: true mode.
This looks pretty obvious, but probably should be documented. A workaround
here can be to use special non-bundling settings for loaders, but haven't
tried it myself yet.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/ethul/purs-loader/issues/68, or mute the thread
https://github.com/notifications/unsubscribe-auth/AAVYy-jwXlqrVnimRGUq1oKi2fuxCpKWks5quAk5gaJpZM4KG0iY
.

This definitely requires a bit more digging on my part. However, I wonder if it may be worth evaluating the pros/cons of keeping the bundling feature. If you don't mind my asking, do you see a significant improvement in the end result of the JS in a production build from webpack with bundling enabled vs. disabled?

Yes, it's significant. Especially if you are careful and do not reference JS modules from PureScript code. It reduces code size a lot.

Gotcha. I will look into a possible solution to this.

Thank you!

here is quick and dirty fix I'm using right now (just to demonstrate possible fix idea):
https://github.com/ethul/purs-loader/compare/master...grammarly:ac7aba1
(plz ignore added lib/* files, only 2 src files at the very end were actually changed)

Thanks for the diff. Just so I understand, is it that we have to wait for all of the non-PureScript modules in general to have bundling === undefined? Or is it that we have to wait for all non-PureScript modules that import PureScript files to have bundling === undefined?

Also, you don't have to have a small use-case that reproduces this issue, do you?

We have to wait only for those that import PureScript files. But some module can import other module, which can then import PureScript. So, probably we need to wait for all in practice.
I'm not actually sure that bundling === undefined is a valid check. There is nothing in docs that saying it. I've looked at webpack code and tried several approaches and only this one seemed to work for me. However, I'm not sure how much it is correct and stable.
Unfortunately, I it's hard to provide simple use-case. In my situation JS code is huge and PureScript is small, that makes it compile and bundle earlier than all the JS modules are processed. But it also depends on the order of processing and who knows what else.

Potentially, it could be reproduced by adding artificial huge delay to JS modules processing (add setTimeout or something to JS loader) and having several JS modules to import very small PureScript ones. I will try to create sample project with this, but probably you can do it faster by just modifying JS loader directly in node_modules. The key factors to reproduce:

More than one JS file should import PureScript (the first will start the compilation, some other should be late enough to get processed after it bundling is finished)
JS should import different PureScript modules (or else you won't see that one of them is missing in the resulting bundle)
PureScript modules should be small to compile quick enough (including all the dependencies)
Should somehow introduce enough delay between processing the first JS module importing PureScript and the last one. Making JS processing slow may not be enough because if they start in parallel, they can still finish in time to get their PureScript imports correctly bundled. It's also needed to either have a lot of JS modules to make them wait for processing (not be processed all in parallel at once) or modify webpack code to reduce parallelism.

Thank you for the details on how to reproduce this. I am wondering if there might be a webpack plugin hook that we can leverage in the loader to run psc-bundle at the appropriate time. I thought optimize-tree might be a possibility, but it seems a loader can't hook into that soon enough. But maybe there is a way. I still have to explore this a bit.
Another hook that might work is if we can use the build-module, succeed-module, and failed-module hooks. For instance, we can store a promise for each (non-PureScript) build-module and then resolve/reject it accordingly in the succeed-module and failed-module hooks, respectively. Then once all promises are resolved, do the bundling. However, it seems a loader might be able to hook on to these soon enough.

I may be experiencing a comparable issue, and using bundle: true solves it -- this could be fixing a symptom only.
When bundle option is set to the default value, purs-loader throws TypeError: Cannot read property 'imports' of undefined. The error first arises when using the react-basic package, and creating a very simple component creates a TypeError: React_Basic.createComponent is not a function error.


support for Blish HUD?

Name
Blish HUD
Website Link
https://blishhud.com/
https://github.com/blish-hud/Blish-HUD
if it possible, how about modules update?

I think this add-on manager is only for dll-based plugins, not standalone executables (TaCo, BlishHUD, etc,..)
Btw, module updates and downloads is coming to BlishHUD in a future release. There are already preview GIFs of that functionality floating around on their discord.


docs: 2018 Q3 OKRs

libp2p:

Spreadsheet for 2018 2018 Q3
PR for 2018 Q2 for reference

/ cc @jacobheun @vasco-santos @steverichmond
I want to try to connect this tab for js-libp2p OKRs with this tab for overall libp2p project OKRs.
By connect, I really just mean that generally the two should be aiming at the same goals.  We can do this in a bottoms-up way, where we start with the ongoing work by the JS libp2p team and better align the overall goals to fit those plans.  Or we can do it in a top-down way, i.e., start by getting to consensus on the overall libp2p goals and use that to set goals for js-libp2p.  Thoughts?

@mgoelzer I think we are likely going to need to leverage both approaches. I see the direction of libp2p being heavily influenced by the community and the projects it integrates with. For example, we know that right now libp2p can be extremely difficult to troubleshoot errors. It takes up a lot of time doing so, not just for libp2p developers, but for its consumers as well. Making that easier to do as well as making the system more fault tolerant in general should be high priorities for us, because it will improve user experience and allow us to spend subsequent quarters focused more on feature development.
Where I see the more top-down approach coming into play is through event connections, market research, PL goals and general community outreach. What types of things are libp2p/ipfs users or potential users looking for that we can put into place? What support does libp2p need to continue to be successful, and are we growing at the rate we need to?
I think a lot of these can tie together pretty well. (More demos of work being completed that can be shared with the community, interesting proof of concept work with new features, etc.)

Here is a draft of a fairly large initiative I'd like to see for Q3. I think it's reasonable for this to be completed within 3 months.
Q3 OKR Proposal: Libp2p stability
One of the recurring themes of Q2 has been issues with error handling and troubleshooting.
There is an issue in js-ipfs, #1406, that discusses a roadmap for standardizing error codes across the ipfs ecosystem. I think this is going to be a huge improvement for diagnosing errors when they arise. In order to better leverage standardized errors and improve our ability to handle and diagnose them in the libp2p workflow, I think we should focus on making the following updates to libp2p modules.
State Machines
Make libp2p a state machine, #98
Along with allowing users to initiate libp2p transitions, rather than change state directly, this would also help to better diagnose issues. If we know what state/transition libp2p was in when an error occured, it should help us better understand how to replicate that issue. Right now we have to rely on stack traces (which are can currently be very unhelpful), or view the logs, provided someone was able to have them running when they hit an issue.
A clearly documented state machine, also has the benefit of better informing users of the underlying flows in libp2p. They'd be able to see all the available states, their transitions and what they transition to. As the libp2p connection workflow is a topic for the upcoming summit in Berlin, it's clear that this could be extremely helpful. I think the connection proposal in libp2p-switch is an example of how this could help clarify workflows, especially with additional comments.
Make libp2p-switch a state machine, including its connections, #24
There are two major things this lets us do.

It makes it easy to understand internal state and the state of connections. This allows us to better handle individual errors that occur for a given connection and translate its state accordingly.
It makes it easier for libp2p and the connection manager to understand what's going on with switch, so they can make more informed decisions. Notification of state transitions, and connection transitions, along with logging via debug of those transitions should also make it easier for users to diagnose issues.

Standard Errors
Standardize connection errors and add them to the ipfs initiative, #1406
This must be done to make the implementation successful.
Implement in interface-connection modules
By leveraging standard errors for all modules implementing the connection interface, the libp2p-switch connection state machines will be better able to respond to the errors appropriately.
Fatal codes could terminate connections outright and not cause libp2p or switch to crash the node. Unstable connections could be reported up to libp2p and the connection manager to handle. The connection manager could make decisions on which connections to keep, and/or potentially add dialing backoffs for connections (network outage, a restarting peer, etc).

All in for improving debuggability! The other P0 objective should be supporting js-ipfs getting Connectivity Magic, namely interopable and reliable DHT + IPNS.

@mgoelzer I agree that we should be synced between those 2 tabs. I agree with @jacobheun as the OKRs tab should represent the intended direction of the project as a whole, and GO and JS should follow them. Moreover, JS and GO implementations will probably have other aspects that are inherent to the current state of each project, and if those aspects are critical they should also be tackled.
Accordingly, I would like to know if there is an IMPLEMENTATION_STATUS.md, as we have for ipfs.  I have looked for it, but I couldn’t find it and I think that this document could also be important for OKRs consideration.
Meanwhile, I have some suggestions for OKRs in the JS side that I consider to be important for the following quarter. I will describe them later in here.

Hi all, thank you so much for writing these. I've a feel that they are really close to what we will be writing in the spreadsheet at the end.
As food for thought, I wrote up -- https://github.com/ipfs/pm/issues/654 -- to remind everyone that if we miss to understand our user and use case needs, we will only be able to see the needs that we see during the development.
If I were to name the most important objective is to nail down the DHT + IPNS implementations and respective interop. That will enable libp2p and IPFS in JS to achieve the connectivity magic that everyone expects from the project.

@mgoelzer linking my comment to the libp2p 2018 OKRs here for reference -- comment

All right, I think we are done here! \o/ @jacobheun, @vasco-santos, if you agree, I'll move these to the spreadsheet, assign priorities and wrap up this PR. 👍 this comment for YES!

OKRs for 2018 Q3 are set! Godspeed team! And may the muxers be with you ⚡

Accordingly, I would like to know if there is an IMPLEMENTATION_STATUS.md

Yes, we're working on something similar for the project over here https://github.com/libp2p/libp2p/pull/39.  The idea would be to have our main KPI (meaning the thing we track long term, beyond just any single quarter) be %age completion of that list, which could grow over time.  The list itself needs more cleanup -- it was copied out of https://github.com/ipfs/ipfs/blob/master/ROADMAP-TO-1.0.0.md (just the libp2p parts) and needs some further cleanup.  You can see some comments from @diasdavid about parts that I've left out, and I also need to improve it's formatting.

@mgoelzer IMPLEMENTATION_STATUS.md is a different doc from ROADMAP, check https://github.com/ipfs/ipfs/blob/master/IMPLEMENTATION_STATUS.md

@diasdavid Yes, right, I'm just pointing out that it's a similar type of document (list of things with emojis to indicate completion status).


[bazel,dvsim] update dvsim.py to use Bazel to build SW

This fixes #11563 by updating dvsim.py, and the chip-level testbench, to
build SW artifacts with Bazel (instead of meson).
Signed-off-by: Timothy Trippel<EMAIL_ADDRESS>

Going to merge and handle cleanups (if necessary) in a follow up to unblock Bazel transition tasks.


method to set mute

how do i programatically mute the audio. ?

follow this link :
https://stackoverflow.com/questions/4573667/how-to-mute-mediaplayer-in-android


[Breaking Change] Make the type schema for null-aware spread operations consistent

The type schema used by the compiler front end to perform type inference on the operand of a null-aware spread operator (...?) in map and set literals will be made nullable, to match the behavior of list literals (and to match the behavior of the analyzer).
Although this is technically a breaking change, it's not expected to have any effect on real-world code.
Background
When the compiler needs to perform type inference on the operand of a spread operator (... or ...?), it uses a type schema that's based on the context of the surrounding literal. For example, consider the following code:
List<List<int>> f(Iterable values) => [...values.map((x) => [])];

Since no element type is specified for the empty list [], the compiler needs to infer one. It does so by taking the return type of f (List<List<int>>), extracting its element type (List<int>), wrapping it in Iterable (Iterable<List<int>>), and then using that as the type schema for performing type inference on values.map((x) => []). This in turn causes [] to be type inferred using the type schema List<int>, so [] is interpreted as <int>[].
If the spread operator had been null-aware (...? instead of ...), then the type schema used to type infer values.map((x) => []) would have been Iterable<List<int>>? instead of Iterable<List<int>>. (In other words, a nullable type schema would have been used, because the null-aware spread operator can handle the possibility of its operand evaluating to null). This doesn't have any effect on values.map((x) => []) (because map always returns a non-null value), but it's possible to construct contrived examples where there's a user-visible effect. For example, here's some highly contrived code that detects the type schema using a generic function:
T detectTypeSchema<T>(T t) {
  print(T);
  return t;
}

main() {
  List<int> x1 = [...detectTypeSchema([])];
  List<int> x2 = [...?detectTypeSchema([])];
}

This prints:
Iterable<int>
Iterable<int>?

Which shows that type inference is using a type schema of Iterable<int>? when inferring the generic type parameter for detectTypeSchema in the declaration of x2.
However, as of the current version of Dart, the same thing does not happen with set or map literals. This code:
main() {
  Set<int> x1 = {...detectTypeSchema({})};
  Set<int> x2 = {...?detectTypeSchema({})};
  Map<int, String> x3 = {...detectTypeSchema({})};
  Map<int, String> x4 = {...?detectTypeSchema({})};
}

prints this result:
Iterable<int>
Iterable<int>
Map<int, String>
Map<int, String>

This is clearly an oversight; the compiler should use a nullable type schema for nullable spread operators in all kinds of collection literals, not just lists.
Intended change
The type schema used by the compiler front end to perform type inference on the operand of a null-aware spread operator (...?) in map and set literals will be made nullable, to match what currently happens in list literals. This will make the compiler front end behavior consistent with that of the analyzer.
This change will cause the test code above to print the following result:
Iterable<int>
Iterable<int>?
Map<int, String>
Map<int, String>?

Justification
In addition to the advantages of making the compiler front-end more self-consistent, and making it more consistent with the analyzer, the change makes reasonable sense from first principles. With few exceptions, the intention of the type schema is to capture what values would be permissible for a given expression to take on. Since null-aware spread operations accept null, it makes sense for them to use a nullable type schema.
Expected impact
A prototype of this change caused zero test failures in Google's internal codebase, so the impact is expected to be extremely low for real-world code.
Mitigation
In the unlikely event that some real-world customer code is affected, the effect will be limited to type inference. So the old behavior can be restored by supplying explicit types. For example, in the code above, the change exerts its effect through the type that's inferred for the generic function detectTypeSchema. To restore the old functionality, the user simply needs to specify explicit types for the generic function. For example:
main() {
  Set<int> x1 = {...detectTypeSchema<Iterable<int>>({})};
  Set<int> x2 = {...?detectTypeSchema<Iterable<int>>({})};
  Map<int, String> x3 = {...detectTypeSchema<Map<int, String>>({})};
  Map<int, String> x4 = {...?detectTypeSchema<Map<int, String>>({})};
}

@vsmenon @Hixie @grouma breaking change request incoming.

SGTM.

Fine by me.

lgtm


set browerslist to 'Chrome 79'

By setting the browserlist to 'Chrome 79', Parcel produces Javascript that can be parsed with the Babel version available in CRA 4.0.3. This addresses problems with optional chaining, which is available starting with Chrome 80 (see https://caniuse.com/mdn-javascript_operators_optional_chaining)
See also https://github.com/bvaughn/react-resizable-panels/issues/72

Published as 0.0.35
https://github.com/bvaughn/react-resizable-panels/releases/tag/v0.0.35

Thanks for the ultra-fast merge (and the great component).


Fix/install

test this please

In order to get the software running for extracting poses from the Target observations on Ubuntu 20.04 I had to apply the same changes to target_extractor.cc as mentioned by @ntonci. For me it worked without having to use the catkin_ignore commands on the aslam_cv2 package parts.


📝[Docs]: Update README to Include Roadmap.sh for Progress Tracking

Is there an existing issue for this?

[X] I have searched the existing issues

Issue Description
Update the README to include a link to roadmap.sh for structured learning paths in machine learning.
Suggested Change
Add a section for roadmap.sh in the README and update the Table of Contents accordingly.
Rationale
This update will help users track their learning progress and provide a clearer roadmap for mastering machine learning concepts.
Urgency
High
Record

[X] I have read the Contributing Guidelines
[X] I'm a GSSOC'24 contributor
[X] I want to work on this issue

@sanjay-kv Please assign it to me as part of GSSoC'24 Extended. As a beginner in open-source contributions, this would be a fantastic opportunity for me to get started. I look forward to your response.
Thank you!

thank you for approving the idea, will start working on it.
@sanjay-kv please assign the level also in the labels section.


Benchmark Rust application

What: create a benchmark, in Rust, resembling the original one by MS
Why: helps to model performance

Closes #16

Pardon the delayed response.
Looks great! Nice work. I will try running it. I'm curious about the results :smiley:

Hey, so I ran this with different workloads (and did a lot of profiling) to understand the behaviour of the system.
Fundamentally, it works well. The performance is not directly comparable with the original benchmark because they are using integers and we are copying memory around but still it works nicely. The issue is when different threads try to concurrently modify the same values. We place a lock around the value (in order to prevent concurrent in-place modifications of the in-memory values) but obviously this becomes a serialisation bottleneck in certain workloads.
Obviously depending on how the KV store is used, it could be a hindrance to throughput. For general cases of individual threads accessing disjoint values, it shouldn't be an issue.


toHaveSelector type

It appears there's no type defined on PlaywrightMatchers for toHaveSelectorCount

Fixes in #53

Fixes in #53


Minor html bug - invalid HTML

Div is not an allowed self-closing HTML tag. Causes an error when upgrading jQuery

Thanks for your contribution!
If you haven't already done so, could you please make sure you sign our CLA (https://jitsi.org/icla for individuals and https://jitsi.org/ccla for corporations)? We would, unfortunately, be unable to merge your patch unless we have that piece :(.


Lua sprites

Describe your problem here.
i need an Lua Sprite to apear in front of dad and behind bf at the same time
Are you modding a build from source or with Lua?
Lua
What is your build target?
Windows x64
Did you edit anything in this build? If so, mention or summarize your changes.
No response

https://github.com/ShadowMario/FNF-PsychEngine/wiki/Lua-Script-API:-Object-Functions#object-orderremoving

setObjectOrder('dad', 3)
setObjectOrder ('mid', 2)
setObjectOrder ('bf', 1)
idk

Thanks


first sheepdog changes

update metada
set existing post status to draft

👷 Deploy Preview for timely-brigadeiros-dd9fc4 processing.

Name
Link

🔨 Latest commit
dacb6b335c1e0f492f7ff2c0b86f4021964e9e25

🔍 Latest deploy log
https://app.netlify.com/sites/timely-brigadeiros-dd9fc4/deploys/64bfab5c3218480008f40377


How to disable specific properties?

Hi,
I see the 4 main contributions of SMACv2 are as follows

random team compositions
random start positions
conic fov
conic attack/shoot

I want to disable follows

random team compositions (only increase stochasticity by start positions)
conic fov (attack should follow conic constraints, but fov should be like SMACv1)

This would help reproduce the paper's ablation studies.
I'm unable to configure the above described behaviour. Could you please direct me to the relevant reference? It'll be great if there is an example of this.
Thanks
Kinal

Thank you @benellis3
This answers most part my queries.
So based on my understanding, I believe having multiple unit types with deterministic team composition is not possible.

Yeah you can use the "fixed" distribution type I believe (https://github.com/oxwhirl/smacv2/blob/main/smac/env/starcraft2/distributions.py#L33). Then you can list the team that you want.
This isn't the most well tested use case but it should work just fine.


Search Services

Feature Request
Desired behaviour
Elasticsearch should index and return services
┆Issue is synchronized with this Jira Story
┆Issue Type: Story
┆Fix Versions: Dockstore 1.7
┆Issue Number: DOCK-792

Can wait


Added a bit to the kind quickstart doc

Added more to validating the stack

Also changed a md-lint complaint that must have been from a recent update: https://github.com/updownpress/markdown-lint/blob/master/rules/034-no-bare-urls.md


[BUG] ServiceBusException Message Processing Error

Library name and version
Azure.Messaging.ServiceBus
Describe the bug
We have had two transient exception on two services.
One uses dotnet isolated, the other dotnet in process
One uses shared key, the other managed identity.
Both use ServiceBus triggers.
sdkVersion azurefunctions: <IP_ADDRESS>71

sdkVersion azurefunctions: <IP_ADDRESS>86

Expected behavior
No unncessary exceptions raised
Actual behavior
Exceptions raised. The reason is unknown as this is a very generic exception
Reproduction Steps
Could not reproduce. Seems to have happened randomly
Environment
.net 6.0

Hi @bbieniek.   Thank you for reaching out and we regret that you're experiencing difficulties.   Could you help me understand what assistance you're seeking?

@jsquire , thank you. This helped me getting rid of those annoying exceptions.
Anyway, I got a little worried about the following remark of yours: "If you're seeing consistent and frequent errors, that is likely a sign that there's an issue related to the Service Bus namespace associated with your Function."
I would like to know more about your definition of 'frequent'.
I have 4 environments and before changing the LogLevel to warning this was happening in the 4 of them, even when there was no activity on the bus. This was happening, on each environment, about twice a month (but not at the same time across environments).
There's one more curiosity about it. During the last 3 months, this happened about 20 times (in total for all environments), and each time it happened there were exactly 113 exceptions raised (of this kind) in the same couple of seconds. Exactly 113 exceptions, always!
After having added these details, do you still think it is safe to ignore? If it is safe to ignore exceptions of type 'Info', why is that that among the 20 libraries I added to my project, this was the only one producing exceptions?

Yes, me too, and in my case it happens always in multiples of 113. I can get 113, 226, 339... exceptions in the same 5 min. These groups of 113 happen within the same second (some times in the same couple of seconds).

Hi @luisgmgouveia.   Apologies for overlooking your response; closed issues are generally not monitored for comments and these weren't picked up until this was unresolved.  In the future, I'd encourage you to open a separate issue to discuss.
To address your questions:

Is there any way to avoid getting this particular exception reported in Application Insights? I believe it might have something to do with the "isExceptionSnappointsEnabled" flag

Unfortunately, there is no way that I know of to filter specific exceptions from AppInsights.  This is part of the Functions runtime and not something the SDK has influence or control over.

I got a little worried about the following remark of yours: "If you're seeing consistent and frequent errors, that is likely a sign that there's an issue related to the Service Bus namespace associated with your Function." I would like to know more about your definition of 'frequent'. I have 4 environments and this is happening in the 4 of them, even when there is no activity on the bus. This is happening, on each environment, about twice a month (but not at the same time across environments). During the last 3 months, this happened about 20 times (in total for all environments), and each time it happened there were exactly 113 exceptions raised (of this kind) in the same couple of seconds. Exactly 113 exceptions, always! After having added these details, do you still think it is safe to ignore?

By frequent I mean something similar to "this is happening every 20 minutes consistently and I'm seeing them happen in bursts of 50 a time."   The numbers in that example are arbitrary, of course, but generally if you're seeing something occur a couple of time a month that burst for a couple of minutes an stop, they're benign.  Typically traces back to something like a host node in the environment being rebooted or patched.
It's difficult for me to say for this specific error, as it's service-side and the SDK has no insight into the cause.  If it's something that concerns you and you'd like to dig into things, your best path forward would be to open an Azure support request for the Service Bus service team.

If it is safe to ignore exceptions of type 'Info', why is that that among the 20 libraries I added to my project, this was the only one producing exceptions?

Nothing that is considered an exception is logged as "Information" by the SDK.  Generally, all exceptions are logged as "Error".  There are a few scenarios where exceptions are expected as part of the service contract and known to be benign.  For example, when a connection is force-closed by the service after being idle.  These exceptions are logged as "Verbose"; patterns over time may tell a story that indicates a problem and are often useful for troubleshooting.  In and of themselves, the exceptions logged as "Verbose" are expected and not something that applications are expected to react to.  This is the pattern used by all of the current generation Azure SDK packages.

Hi @bbieniek.   Without detail, there is not much that offer as far as insight.   If you saw 30 exceptions for "The service was unable to process..."  in a few minutes or similarly short window of time, this is likely due to normal service activity - such as a node rebooting.  This should have been transient and recovered without any action on the part of the application.
If you'd like to provide further detail on what exceptions you observed, I'm happy to offer further thoughts.

Hi @jsquire , thank you for your answer. I know exceptions are logged as errors, I was just saying that these specific exception's severity level is "Information":

I wish I could somehow filter these exceptions (severity=Information) in applicationinsights. Is there anything you have in mind to do so? I'm asking this because your solution ("Azure.Messaging.ServiceBus": "Warning") didn't solve the problem (as exceptions are logged as errors).
Regarding @bbieniek comment, I doubt it is a coincidence I also had tons of exceptions yesterday night for the first time in weeks:

@luisgmgouveia:  The SDK emits logs as ETW events and controls only the log level (Verbose, Information, Warning, Error) as described here.   If you're seeing logs emitted as the Error log type for the receive exception, then things are working as expected.   If you are not, please open a separate issue for us to investigate.

Hi, we're sending this friendly reminder because we haven't heard back from you in 7 days. We need more information about this issue to help address it. Please be sure to give us your input. If we don't hear back from you within 14 days of this comment the issue will be automatically closed. Thank you!

Thank you @jsquire , I opened issue #33516


unable to locate packages

Required Info

Camera Model
D435i

Operating System & Version
Linux (Ubuntu 22.04)

Issue Description
I am trying to install the Realsense SDK from source on Ubuntu 22.04.
When I try to install the libraries and the developer & debug packages, it says, "unable to locate packages".

sudo apt-get install librealsense2-utils
sudo apt-get install librealsense2-dev
sudo apt-get install librealsense2-dbg

I have installed this SDK multiple times in the last few weeks but I didn't see this problem before.

Hi @dhruvinvadgama   Have you previously attempted installation of the librealsense SDK on Ubuntu 22.04, please?  The SDK does not yet officially support 22.04 at the time of writing this.  A pre-built test package for it is available at https://github.com/IntelRealSense/librealsense/issues/10439#issuecomment-1171965106

Hello,
Yes I have previously used the SDK on Ubuntu 22.04 and It worked fine. I have done this multiple times on 6-7 different computers with same environment. Only yesterday it just doesn't seem to find the packages anymore..

The message librealsense2-dkms is already the newest version makes me think that it is already installed on the computer.
You could try removing all RealSense related packages from your computer with the command below and then trying installation again.
dpkg -l | grep "realsense" | cut -d " " -f 3 | xargs sudo dpkg --purge

Okay. I will try that.
Also, as you can see in the photo, the librealsense2-dkms could be installed, but librealsense2-utils, librealsense-dev and librealsense-dbg are not found.

librealsense2-dkms contains the core of the RealSense SDK.  librealsense2-utils installs RealSense example programs and tools, such as realsense-viewer.
librealsense2-dev and librealsense2-dbg are optional installs for developer activities such as debugging and building an application with g++ or your own choice of IDE.
What kernel version are you using, with 22.04 please?

I am using 5.15.0-52-generic

Up until now, RealSense dkms packages have officially supported a maximum kernel version of 5.4 rather than 5.15.  The RealSense developer team made some changes in the past week to support kernels 5.13 and 5.15 with dkms - as described at the PR page https://github.com/IntelRealSense/librealsense/pull/11076/files
I would recommend trying the installation again tomorrow (Monday) to see whether the problem with the packages is related to a weekend issue or whether they remain unavailable to you.

Okay, I will try installing again tomorrow to find out the issue.
Yes, I am using the official distribution_linux,md instructions to install.
Also, I am using v2.50.0

Have you had an opportunity to perform the installation, please?  Thanks!

I am facing the same issue with kernel version 5.15.0-53-generic.
Any updates?
Thanks!

Okay, I will try installing again tomorrow to find out the issue.
Yes, I am using the official distribution_linux,md instructions to install. Also, I am using v2.50.0

Hello, have you resolved this issue now, I am facing the same problem, thanks

Hello,
Not really, but I have found a way around.
Here is the official Linux installation.
https://github.com/IntelRealSense/librealsense/blob/master/doc/installation.md
I have tried to build librealsense with the RSUSB backend, which doesn't depend on the linux kernels. I found this information in an issue which was posted here.
https://github.com/IntelRealSense/librealsense/issues/10439#issuecomment-1107521661
I still could not install the following packages.
librealsense2-utils
librealsense2-dev
librealsense2-dbg

Hi @dhruvinvadgama  If librealsense is built from source code with the RSUSB backend using CMake then including the build flags -DBUILD_EXAMPLES and DBUILD-GRAPHICAL-EXAMPLES in the CMake build instruction will build the tools and examples in addition to the librealsense SDK.  This has the same effect as installing them from the librealsense2-utils package.
librealsense will be built in Debug mode by default when building from source code.   It can be built in 'Release' mode with optimizations included by using the build flag -DCMAKE_BUILD_TYPE=release
These instructions are demonstrated in the instruction guide at https://github.com/IntelRealSense/librealsense/issues/9931#issuecomment-964289692 for building with the RSUSB backend.

I searched for the packages with 'sudo find' and I could not locate them.  I understand now that the graphics support, tools and examples are installed, not inside the above listed packages but separately. Correct?
Also, the resizing of the frames is not possible. I cannot change the size from (640 x 480) to other sizes like (1280 x 720) etc. Is this problem also linked to the package installation or is it completely different?

Package installation and building from source code are two different methods of achieving the same goal - installing the librealsense SDK.  One or the other should be chosen but not both performed on the same computer, otherwise you could end up with two installations of librealsense that conflict with each other.
So if your goal, as you mentioned at the start of this case, is to install from source code then you should completely ignore the package installation instructions at the link below and instead use CMake to build from source instead. You do not need to use the packages at all to achieve a successful source build.
https://github.com/IntelRealSense/librealsense/blob/master/doc/distribution_linux.md

In regard to changing the frame size, do you mean changing the resolution of a stream?  If so then you cannot do this while the stream is enabled.  You need to stop it, change the resolution and enable the stream again.
In the RealSense Viewer tool this is simple to do with the side-panel controls.  In a script it would be done by using a Stop() instruction to stop the pipeline, and then use cfg instructions after the Stop() line to define a new stream resolution and Start() the pipeline again.

Okay. Thank you. I think this helps.


[BUG] Toolbar icons missing

Hi,
I am not sure if this is an issue with uber-juno or the toolbar.
After a fresh install of Atom with uber-juno, the toolbar has 4 icons missing: Start Remote Julia Process, Interrupt Julia, Stop Julia, Run All
The missing spaces are still clickable, so this is just a visual problem, not a functional one.
Thanks.
Details

Atom version: 1.40.1
Julia version: 1.2.0 x64
OS: Kubuntu 18.04
Package versions:

Atom.jl: 0.10.1
julia-client: 0.10.1
ink: 0.11.1

Steps to reproduce

Install Julia, Atom, uber-juno
Agree to change the layout

I'm having the same issue on a fresh install on Windows 10 1903.
Atom versoin 1.40.1
Julia version: 1.2.0 x64

Fixed by https://github.com/JunoLab/atom-julia-client/pull/626.


feat: add manual migrations using gormigration

initial migration (postgres and sqlite)
update preimage to be NULL instead of ''
add composite index for summing payments in budget period

also fixes preimage to be NULL by default and removes gorm model hints
Manually tested with:

existing DB (current release schema): sqlite
new DB: sqlite
existing DB (current release schema): postgres
new DB: postgres

Notes:

initial migrations of sqlite and postgres are generated from their respective schema dumps (PostgreSQL 16, sqlite3 3.37.2)
I used a simple method of checking if the database is empty or not to skip the first migration so that I did not need to alter all the lines of the dumps and accidentally break something
current format of migrations seem verbose and prone to accidental copy-paste errors (ID/filename). Is there a better way?

@kiwiidb all feedback has been addressed. Thanks!

@bumi did you test it locally?

@bumi did you test it locally?

I have, in all the scenario's that you also mentioned.

yep, I did and looks good to me.


'cockroach debug ballast': provide a checklist for operators

The following callouts must be added:

the cockroach debug ballast should not be run by a unix root user directly, to limit the chance of mistakenly affecting system directories / files.
the target file should not be named similarly to a block device in /dev, to reduce the chance of mistyping a /dev  prefix into the command and thereby trashing a filesystem.
give a new file name every time, instead of overwriting existing ballast files. To replace ballasts, add more ballast and then remove the old one.

Related: https://github.com/cockroachdb/cockroach/pull/59995

cc @taroface. Let me know if you need help.


MongoMapper: Error at querying documents with embedded documents

Hi,
can someone explain to me, why i get this error?
MongoMapper::NotSupported at /admin/customers This is not supported for embeddable documents at this time.
Screenshot
My model looks like this:
class CustomerAddress
    include MongoMapper::EmbeddedDocument

    key :street, String
    key :plz, String
    key :city, String
    key :state, String
    key :country, String
    key :lat, Float
    key :lon, Float
end

class Customer
    include MongoMapper::Document

  # key <name>, <type>
  key :last_name, String, :required => true
  key :first_name, String
  key :email, String
  key :phone, String
  key :mobile, String
  key :customer_number, String
  many :customeraddresses

  timestamps!
end

Is this a problem with Padrino or with MongoMapper?

Sorry, totally forgot this one. Apparently mongomapper doesn't support what i wanted to do back then. I've changed to mongoid and now i'm happy. Also i made some major changes to my concepts.
thanks


Delivery Plans 2.0 dependency question

Hello.
I was recently reading a new release notes for Azure DevOps Server 2022 RC1 here, where I stumble upon this image:

I would like to ask what is the dependency with the "badge ribbon like" icon with text "Top Customer Asks" ? I cannot find it as the  work item in ADOS and according to the context of the image the object which the mentioned icon represents looks something like an insight for the epic. Is this a new WI or its some kind of custom process template modification which was used for the image?
Reason I am asking this is because we are looking for insights tracking in relation to epics or features like in Product Board and it would be really cool if we can do that without integrating Product Board with ADOS.
Thank you very much for any response.

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

ID: e3d30dee-f1ca-f648-defa-87b8f394cac4
Version Independent ID: b518d1be-9ad4-7cc2-bb29-330ec693b598
Content: Track dependencies by using Delivery Plans in Azure Boards - Azure Boards
Content Source: docs/boards/plans/track-dependencies.md
Product: devops
Technology: devops-agile
GitHub Login: @KathrynEE
Microsoft Alias: kaelli

neustupa - Thank you for your inquiry. The "badge ribbon like" icon with text "Top Customer Asks" indicates that it is a Parent of Delivery Plans 2.0 which in turn is a Parent of Delivery Plans 2.0: Dependency Tracker.  In this case, the work item types are:

Initiative (custom work item type): Top Customer Asks
Epic: Delivery Plans 2.0
Feature: Delivery Plans 2.0: Dependency Tracker

To learn more about adding custom work item types as a portfolio backlog, see Customize your backlogs or boards (Inheritance process).

Thank you kindly for your fast response.
Excellent.
Kind regards.


Fixed indentation

This PR to fix the indentation of functions to conform to the more usual style. It also fixes code folding in VS Code and any number of other editors.
The PR is merely the output from shfmt. No other changes have been made to the code. shftm can be found at https://github.com/mvdan/sh and installed with brew install shfmt

OK, silly me, I PRed to main rather than a branch. Let me fix that.

The other PR is on a branch


feat: 🎸 finish 235

resolved #235

https://user-images.githubusercontent.com/17974631/120356657-279ab500-c337-11eb-8803-39bfd55e2d40.mp4

Thanks for the PR! However, for .ts and .tsx files, I think this setting should bypass them since when doing so, the following will happen:

https://user-images.githubusercontent.com/17974631/120433897-5acc5b00-c3ae-11eb-9d98-5b3ef61f85f0.mp4
this pr doesn't complete the extension, just add the extension to the label.
cc @johnsoncodehk

Oh, sorry, didn't notice that. The desired behavior should be completing what's shown in the intellisense, e.g. Foo.tsx being shown as Foo, and completed as Foo, Foo.js/Foo.jsx being shown as they are, and completed as they are.

Thanks for the PR!
But TS already has typescript.preferences.importModuleSpecifierEnding setting and I expect to reuse it. I will check how typescript-language-features handle all the TS settings and try to make same achieve in volar. (Maybe do it in the next weekend)


Fix: persist redux store

This pr fixes issue of not persisting cart item on refresh of page.
It closes issue #33

Great work on implementing redux rersist to persist the cart state! This should definitely improve the user experience.


Provide abstraction to make handling pagination easier

This is an enhancement request to add some type of abstraction over results pagination to remove the burden on developers to manually do it (e.g. calculate offsets, keep track of total results, build new new requests per page, etc.)
Some examples of how other Go SDKs have implemented this:

Okta Golang SDK
AWS SDK for Go V2
Azure SDK for Go

added a generic class to allow for pagination and added examples for doing such in the readme


Fuzzing of nas_security.Decode

Fuzzing of nas_security.Decode
Fix some crash by invalid short NAS message.
This PR is required https://github.com/free5gc/nas/pull/18.

@ShouheiNishi
Please update nas pkg version to v1.1.0.
Thanks.


provide tests for #17

Tests for #17 - they will succeed once the updater ships the stable release
cc @LukasReschke @rullzer

Requires https://github.com/nextcloud/updater_server/pull/23

Requires #23

Rebased ;)


Implemented: POC of loglevel and loglevel-plugin-remote library for basic logging on browser console. (#21uxamh)

Related to #63
Description
Loglevel is a client-specific logging library. I've implemented the basic usage, using info, trace, warn, and error levels.
Screenshot

Added loglevel-plugin-remote for remote server logging support.
Added TypeScript support through creating index.d.ts file using TypeScript Compiler.
Refernce https://www.typescriptlang.org/docs/handbook/declaration-files/dts-from-js.html


feat: generic key validation request

Fixes #6093

#6451  👈
master

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @benesjan and the rest of your teammates on  Graphite

Docs Preview
Hey there! 👋 You can check your preview at https://6645e0afc601849011068f0f--aztec-docs-dev.netlify.app

Benchmark results
Metrics with a significant change:

batch_insert_into_append_only_tree_32_depth_ms (512): 316 (+18%)
batch_insert_into_append_only_tree_32_depth_ms (1024): 609 (+21%)
batch_insert_into_append_only_tree_32_depth_ms (2048): 1,194 (+21%)
batch_insert_into_append_only_tree_32_depth_ms (4096): 2,355 (+21%)
batch_insert_into_indexed_tree_20_depth_ms (512): 453 (+20%)
batch_insert_into_indexed_tree_20_depth_ms (1024): 894 (+21%)
batch_insert_into_indexed_tree_20_depth_ms (2048): 1,769 (+20%)
batch_insert_into_indexed_tree_20_depth_ms (4096): 3,533 (+20%)
circuit_witness_generation_time_in_ms (root-parity): 301 (+33%)
node_history_sync_time_in_ms (5): 18,269 (+19%)
node_history_sync_time_in_ms (10): 33,780 (+19%)
l2_block_processing_time_in_ms (8): 1,605 (+18%)
l2_block_processing_time_in_ms (32): 6,026 (+19%)
l2_block_processing_time_in_ms (64): 11,973 (+19%)

Detailed results
All benchmarks are run on txs on the Benchmarking contract on the repository. Each tx consists of a batch call  to create_note and increment_balance, which guarantees that each tx has a private call, a nested private call, a public call, and a nested public call, as well as an emitted private note, an unencrypted log, and public storage read and write.
This benchmark source data is available in JSON format on S3 here.
L2 block published to L1
Each column represents the number of txs on an L2 block published to L1.

Metric
8 txs
32 txs
64 txs

l1_rollup_calldata_size_in_bytes
740
740
740

l1_rollup_calldata_gas
6,692
6,692
6,692

l1_rollup_execution_gas
586,877
586,877
586,877

l2_block_processing_time_in_ms
:warning: 1,605 (+18%)
:warning: 6,026 (+19%)
:warning: 11,973 (+19%)

l2_block_building_time_in_ms
24,924 (+5%)
98,295 (+6%)
196,440 (+6%)

l2_block_rollup_simulation_time_in_ms
24,748 (+5%)
97,675 (+6%)
195,217 (+6%)

l2_block_public_tx_process_time_in_ms
10,023 (+6%)
39,778 (+7%)
79,460 (+7%)

L2 chain processing
Each column represents the number of blocks on the L2 chain where each block has 16 txs.

Metric
5 blocks
10 blocks

node_history_sync_time_in_ms
:warning: 18,269 (+19%)
:warning: 33,780 (+19%)

node_database_size_in_bytes
22,941,776
39,485,520

pxe_database_size_in_bytes
29,868
59,425

Circuits stats
Stats on running time and I/O sizes collected for every circuit run across all benchmarks.

Circuit
circuit_simulation_time_in_ms
circuit_input_size_in_bytes
circuit_output_size_in_bytes
circuit_witness_generation_time_in_ms
circuit_proving_time_in_ms
circuit_proof_size_in_bytes

private-kernel-init
129 (+3%)
18,212
41,446
N/A
N/A
N/A

private-kernel-inner
360 (+2%)
66,727
41,446
N/A
N/A
N/A

private-kernel-reset
616 (+3%)
210,456
41,446
N/A
N/A
N/A

private-kernel-ordering
357 (+1%)
61,368
55,522
N/A
N/A
N/A

base-parity
8.35 (+7%)
128
64.0
310 (+13%)
12,552 (-6%)
2,208

root-parity
51.2 (+6%)
27,064
64.0
:warning: 301 (+33%)
154,681 (-15%)
2,720

base-rollup
710 (+7%)
111,094
925
8,695 (+14%)
138,365 (-14%)
3,104

root-rollup
72.7 (+13%)
11,454
789
193 (+2%)
15,323 (-8%)
3,424

public-kernel-app-logic
135 (+4%)
68,697
59,431
378 (+12%)
478 (-4%)
73,024

public-kernel-tail
467 (+4%)
174,138
7,691
480 (-1%)
383 (-10%)
10,112

public-kernel-setup
110 (+4%)
68,697
59,431
328 (+12%)
447 (-10%)
73,024

public-kernel-teardown
114 (+5%)
68,697
59,431
327 (+13%)
394 (-6%)
73,024

merge-rollup
6.69 (+4%)
2,696
925
112 (-29%)
3,441 (-7%)
3,104

Tree insertion stats
The duration to insert a fixed batch of leaves into each tree type.

Metric
1 leaves
16 leaves
64 leaves
128 leaves
512 leaves
1024 leaves
2048 leaves
4096 leaves
32 leaves

batch_insert_into_append_only_tree_16_depth_ms
13.1 (+19%)
21.4 (+20%)
N/A
N/A
N/A
N/A
N/A
N/A
N/A

batch_insert_into_append_only_tree_16_depth_hash_count
16.7
31.8
N/A
N/A
N/A
N/A
N/A
N/A
N/A

batch_insert_into_append_only_tree_16_depth_hash_ms
0.769 (+19%)
0.660 (+20%)
N/A
N/A
N/A
N/A
N/A
N/A
N/A

batch_insert_into_append_only_tree_32_depth_ms
N/A
N/A
61.7 (+19%)
97.3 (+19%)
:warning: 316 (+18%)
:warning: 609 (+21%)
:warning: 1,194 (+21%)
:warning: 2,355 (+21%)
N/A

batch_insert_into_append_only_tree_32_depth_hash_count
N/A
N/A
95.9
159
543
1,055
2,079
4,127
N/A

batch_insert_into_append_only_tree_32_depth_hash_ms
N/A
N/A
0.633 (+20%)
0.602 (+19%)
0.576 (+18%)
0.570 (+21%)
0.567 (+21%)
0.565 (+21%)
N/A

batch_insert_into_indexed_tree_20_depth_ms
N/A
N/A
73.4 (+20%)
143 (+20%)
:warning: 453 (+20%)
:warning: 894 (+21%)
:warning: 1,769 (+20%)
:warning: 3,533 (+20%)
N/A

batch_insert_into_indexed_tree_20_depth_hash_count
N/A
N/A
106
208
692
1,363
2,707
5,395
N/A

batch_insert_into_indexed_tree_20_depth_hash_ms
N/A
N/A
0.644 (+20%)
0.646 (+21%)
0.618 (+21%)
0.617 (+21%)
0.615 (+21%)
0.616 (+21%)
N/A

batch_insert_into_indexed_tree_40_depth_ms
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
80.6 (+20%)

batch_insert_into_indexed_tree_40_depth_hash_count
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
108

batch_insert_into_indexed_tree_40_depth_hash_ms
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
0.709 (+21%)

Miscellaneous
Transaction sizes based on how many contract classes are registered in the tx.

Metric
0 registered classes
1 registered classes

tx_size_in_bytes
58,427
1,049,033

Transaction size based on fee payment method
| Metric |  |
| - |  |
Transaction processing duration by data writes.

Metric
0 new note hashes
1 new note hashes
2 new note hashes

tx_pxe_processing_time_ms
2,644 (+4%)
2,798 (+6%)
7,165 (+8%)

Metric
0 public data writes
1 public data writes
2 public data writes
4 public data writes
8 public data writes

tx_sequencer_processing_time_ms
709 (+4%)
986 (+5%)
1,063 (+7%)
1,974 (+8%)
1,258 (+8%)


Cleanup: remove archaic functions from JsFile

Coverage decreased (-0.0%) to 98.87% when pulling f23eb5072beeb16183e83de914ef3054ef4776b2 on mikesherov:removeGetComment into b6941a993059781cd35e8d35b56715b612a0bed4 on jscs-dev:master.

:+1:

BTW it could be used in jsdoc plugin. Not sure though.
/cc @zxqfox

:+1:
@mdevils Thanks for note. Nope ;-)

LGTM