New model: endogenous labor supply (intensive margin)

We want to move into models with labor supply choice soon.  For starters, a model with choice over quantity of labor supplied is quite feasible.  Consider the utility form:
u(C,\ell) = ((1-\ell)^\alpha C)^(1-\rho)/(1-\rho)
With transitory and permanent productivity shocks, this model can be solved in normalized form using EGM.  State variables will be (bNrmNow,TranShkNow).  In precomputation step, will construct a function that maps (EndOfPrdvP,TranShkNow) to (cNrmNow,LbrNow) solutions to the EGM-style FOCs.  cFunc will be a LinearInterpOnInterp1D.

Posted this now because one of my students will be tackling this model for her course project.

One thing your student will find (I think) when they do this is that for
very wealthy people, the model implies the optimal amount of labor is
negative. For the super wealthy (relative to their wage), 'buying leisure'
will even when labor=0 will get more utility than more consumption. I wrote
this model up in a very scrappy way a while back (I can see if I can find
the code if your student is interested, but it might be best to start from
scratch).
One way I've seen that people include labor in a heterogenous agent model
is using GHH preferences (see for example the well known HANK
http://www.princeton.edu/~moll/HANK.pdf paper ). It's possible that might
be more useful than the above model as it will give more empirically
reasonable results for the labor of the wealthy (especially those who
choose negative hours in the above model...).
Edmund
On 19 May 2017 at 14:30, Matthew N. White<EMAIL_ADDRESS>wrote:

We want to move into models with labor supply choice soon. For starters, a
model with choice over quantity of labor supplied is quite feasible.
Consider the utility form:
u(C,\ell) = ((1-\ell)^\alpha C)^(1-\rho)/(1-\rho)
With transitory and permanent productivity shocks, this model can be
solved in normalized form using EGM. State variables will be
(bNrmNow,TranShkNow). In precomputation step, will construct a function
that maps (EndOfPrdvP,TranShkNow) to (cNrmNow,LbrNow) solutions to the
EGM-style FOCs. cFunc will be a LinearInterpOnInterp1D.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/econ-ark/HARK/issues/113, or mute the thread
https://github.com/notifications/unsubscribe-auth/AJy-S0QgWbm-zxqo_QL-2JZQYcXcVzC8ks5r7d_egaJpZM4Ng3O-
.

Yes, for very large values of mNrmNow, the agent would like to supply negative labor (if it were allowed).  The (EndOfPrdvP,TranShkNow) to (cNrmNow,LbrNow) function will be allowed to return LbrNow < 0, but this will be constrained to LbrNow = 0 during solution when calculating bNrmNow = aNrmNow - WageRteTranShkNowLbrNow + cNrmNow.  Interestingly, I think the correct approach is to store negative labor values in the interpolated policy function, but set them to zero when the function is called.  That will result in the LbrNow=0 seam being identified correctly, rather than subject to quirks of gridpoint placement.
I actually have no problem with this model saying that very wealthy people should not / will not work.  I mean, that's true.  If you have $1M in the bank and have the capability to earn $5/hour, you shouldn't work at all: your wealth-to-productivity ratio is extremely high.  This model can be normalized by permanent income (productivity in this case), so it does not predict that high income people should work less.

Ugh, a set of asterisks for multiplication because italicizations up there (around TranShkNow).

Addendum: When the (EndOfPrdvP,TranShkNow) to (cNrmNow,LbrNow) function returns LbrNow < 0, cNrmNow needs to be recalculated as cNrmNow = EndOfPrdvP**(-1./CRRA) before calculating the endogenous bNrmNow gridpoint.

The grad student (Tiphanie Magne) has now more or less completed the solver for this model.  The module lacks simulation methods and needs to be tested at other parameter sets (and lifecycle testing), but it ostensibly works.  For simplicity, I had her assume that there is always a positive probability of TranShk=0, so that the lower boundary of admissible states is easy to calculate.
I'll introduce Tiphanie to GitHub and try to get this into a PR soon-ish.  One holdup is that I had her use file versions from the ConsAggMarkov branch, as they have functionality she required.  Until that branch gets merged to master, this model can't / shouldn't be merged.

After sitting in my private fork of HARK for nearly two years, I finally put this model into public HARK, in the LaborIntMarg branch.  The solver works correctly, and the comments for it have been cleaned up.  I'm partway through cleaning other docstrings and comments.  A couple tiny remaining items that anyone could do:

Move the relevant example parameter dictionary from the temporary ConsumerParametersTM.py into the main ConsumerParameters.py, clean up comments and formatting, and delete the former file.

Add a lifecycle example to the main block.

For the somewhat more ambitious, I think the model is still missing its simulation methods.  I'm pretty sure the only ones that need to be written (and not just inherited) are getControls and getPostStates.  The inherited IndShockConsumerType.getStates will do some wrong (but harmless) stuff, like calculate mNrmNow = bNrmNow + TranShkNow; that should be fixed in getPostStates as mNrmNow = bNrmNow + LbrNow*TranShkNow.

So, I think this should be merged, and we can leave your points as "issues"
to be addressed.
On Wed, Sep 4, 2019 at 10:12 PM Matthew N. White<EMAIL_ADDRESS>wrote:

After sitting in my private fork of HARK for nearly two years, I finally
put this model into public HARK, in the LaborIntMarg branch. The solver
works correctly, and the comments for it have been cleaned up. I'm partway
through cleaning other docstrings and comments. A couple tiny remaining
items that anyone could do:

Move the relevant example parameter dictionary from the temporary
ConsumerParametersTM.py into the main ConsumerParameters.py, clean up
comments and formatting, and delete the former file.
2.
Add a lifecycle example to the main block.
For the somewhat more ambitious, I think the model is still missing its
simulation methods. I'm pretty sure the only ones that need to be written
(and not just inherited) are getControls and getPostStates. The inherited
IndShockConsumerType.getStates will do some wrong (but harmless) stuff,
like calculate mNrmNow = bNrmNow + TranShkNow; that should be fixed in
getPostStates as mNrmNow = bNrmNow + LbrNow*TranShkNow.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/econ-ark/HARK/issues/113?email_source=notifications&email_token=AAKCK76JTEDUYQYSYGSDPQLQIBTHDA5CNFSM4DMDOO7KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD55SVDI#issuecomment-528165517,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAKCK72DOYPM75D42G7OK7LQIBTHDANCNFSM4DMDOO7A
.

--

Chris Carroll

Please not yet. Item 1 has to be done before we merge into master.  We
don't want a second copy of ConsumerParameters (from two years ago)
running around in master HARK.  It's literally a 2 minute task to fix this,
and a basic Python competence test.
On Wed, Sep 4, 2019 at 10:14 PM Christopher Llorracc Carroll <
<EMAIL_ADDRESS>wrote:

So, I think this should be merged, and we can leave your points as "issues"
to be addressed.
On Wed, Sep 4, 2019 at 10:12 PM Matthew N. White<EMAIL_ADDRESS>
wrote:

After sitting in my private fork of HARK for nearly two years, I finally
put this model into public HARK, in the LaborIntMarg branch. The solver
works correctly, and the comments for it have been cleaned up. I'm
partway
through cleaning other docstrings and comments. A couple tiny remaining
items that anyone could do:

Move the relevant example parameter dictionary from the temporary
ConsumerParametersTM.py into the main ConsumerParameters.py, clean up
comments and formatting, and delete the former file.
2.
Add a lifecycle example to the main block.
For the somewhat more ambitious, I think the model is still missing its
simulation methods. I'm pretty sure the only ones that need to be written
(and not just inherited) are getControls and getPostStates. The inherited
IndShockConsumerType.getStates will do some wrong (but harmless) stuff,
like calculate mNrmNow = bNrmNow + TranShkNow; that should be fixed in
getPostStates as mNrmNow = bNrmNow + LbrNow*TranShkNow.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<
https://github.com/econ-ark/HARK/issues/113?email_source=notifications&email_token=AAKCK76JTEDUYQYSYGSDPQLQIBTHDA5CNFSM4DMDOO7KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD55SVDI#issuecomment-528165517
,
or mute the thread
<
https://github.com/notifications/unsubscribe-auth/AAKCK72DOYPM75D42G7OK7LQIBTHDANCNFSM4DMDOO7A
.

--

Chris Carroll

—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub
https://github.com/econ-ark/HARK/issues/113?email_source=notifications&email_token=ADKRAFKA25VTYPAGSO2E5FLQIBTQHA5CNFSM4DMDOO7KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD55SY7A#issuecomment-528166012,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ADKRAFI37WIAUJ52NENEQFTQIBTQHANCNFSM4DMDOO7A
.


get file URL

Is it possible to get URL of RemoteFile? getRemoteFile receive file object that doesn't contain file_path. But in API docs says: "Can be used to register a URL". What I'm missing? How can i "register URL"?

Use downloadFile after using getRemoteFile.

One more question. Is it possible to get all chats, without their id. Or where i can take all chats's id...?

Is getChats a method, which you need?

In this case I need chat's IDs.

Last 100 chats:
{
    '@type': 'getChats',
    'offset_order': '9223372036854775807',
    'offset_chat_id': 0,
    'limit': 100,
}

My bad. Didn't read docs well enough.  I'm using TDLib in Node.JS via FFI. I'm confused downloading photos. getRemoteFile accepts STRING file id and calling it returns the file itself:
{'@type': 'getRemoteFile',   'remote_file_id': 'AgADBAADj6sxG1DZ4FNqhx2hDKpy6XRPkRoABFiyRSjl7chZn0wCAAEC'}
RESULT of getRemoteFile:
{ '@type': 'file',   id: 1,   size: 0,   expected_size: 0,   local:    { '@type': 'localFile',      path: '',      can_be_downloaded: true,      can_be_deleted: false,      is_downloading_active: false,      is_downloading_completed: false,      downloaded_prefix_size: 0,      downloaded_size: 0 },   remote:    { '@type': 'remoteFile',      id: 'AgADBAADj6sxG1DZ4FNqhx2hDKpy6XRPkRoABFiyRSjl7chZn0wXXXX',      is_uploading_active: false,      is_uploading_completed: true,      uploaded_size: 0 } }
The problem is downloadRemoteFile does not respond to query as it requires NUMBER file_id as one its arguments. Which NUMBER parameter should be passed to it?
Would you please help? Thanks

After you have received File object through getRemoteFile, you can pass its id to downloadFile method, "id: 1" in your example.


SqlConnectionStringBuilder dictionary error from multiple threads

When access from multiple threads, the SqlConnectionStringBuilder class now throws the following error:

“Operations that change non-concurrent collections must have exclusive access. A concurrent update was performed on this collection and corrupted its state. The collection's state is no longer correct.”

A change to the dictionary class was implemented a year ago that raises this error (see issue 31186).
In my case, the SqlConnectionStringBuilder is created statically from configuration values, but the first connection string request may not be on the startup thread. This seems to be what generates this error.
I suggest a simple replacement of the Dictionary with a ConcurrentDictionary. I may submit a pull request to address this, unless someone else wants to take this.

@j-hicks I agree with @Wraith2.  SqlConnectionStringBuilder isn't and never was thread safe. If you are getting this exception since now, there is likely a bug in the way you are using it that before you just didn't know about.

Of course we all agree that the existing version isn't thread-safe, and probably never was.
In my case, I didn't realize that this would be an issue until the “throw” — recently added to the Dictionary class — alerted me to the problem.
The real question is whether it should be thread-safe. Given that the most likely use case is configuration data which is shared across an application (i.e. a singleton instance handling both set’s and get’s which may be accessed across a multi-threaded application), it seems to me that the answer is “yes”.
I rewrote my own code already to consume this class use of this without a shared instance, so this is not urgent for me. I believe the existing class could be easily modified to accommodate this, but I haven't tried yet, and I won’t bother unless there’s value in implementing the change.

@j-hicks the class could be easily changed, but this is less about what SqlConnectionStringBuilder does specifically, and more about what kind of guarantees DbConnectionStringBuilder provides in general. In other words, other providers would also have to modify their connection string builders, or we start to have divergent implementations, and code being ported from one builder fails (in potentially subtle ways!) on another.
In addition, the general approach in .NET is to not make classes thread-safe unless there's a specific, good reason to do so - non-thread-safe is the default. This doesn't seem to be the case here; a connection string builder isn't typically meant to be modified concurrently, but rather a single instance is usually instantiated and used to generated a connection string. At that point the connection string can be used by all parts of the program.
Note that read-only concurrent reads should be fine - the problem is with concurrent mutation.

Ok.
Frankly, I can’t explain why I got the error, since I didn’t think I set values from multiple places. The problem was intermittent and rare, and therefore extremely hard to reproduce. I suspect that it had something to do with using the Polly library for automatic retries, but I can't prove it.
If no one thinks that this is worthwhile, I'm happy to go do something else. As I mentioned, it wasn't hard to rewrite my code to ensure single-threaded access, and I'm sure others can do the same.
@roji I appreciate your work on Npgsql! I have used it extensively in my own contribution. You may be interested in my sharding-capable, high-performance ORM, at https://www.argentsea.com. I would love to hear your thoughts!
Unless someone can suggest a justification to keeping this open, I'll find other fish to fry.
Thanks all!

@j-hicks thanks for understanding and also for the kind words! I didn't know about ArgentSea, will note it and try to take a look (although times are extremely busy at the moment so it may take a while).
If you have any other thoughts about ADO.NET or SqlClient (or Npgsql) please don't hesitate to share them.


Allow synchronous control of scroll position through TextEditor model

This PR adds the ability to manipulate a TextEditor's vertical scroll position at the model level, via a new method, ::setFirstVisibleScreenRow method, which is marked as Experimental for the time being. It also un-deprecates TextEditor::getFirstVisibleScreenRow, making it possible to synchronously read the editor's vertical scroll position.
This was driven out by vim-mode's ScrollFullPage commands, which need to synchronously update the editor's scroll position.
I've refactored the presenter so that it doesn't store its own copy of the scrollRow and scrollColumn state, using the model instead as the source of truth for these concepts. As part of this effort, I refactored the way the presenter's scrollTop and scrollLeft are initialized; they're now computed based on the firstVisibleScreen{Row,Column} as soon as the necessary measurements (line-height and base-character-width) are assigned.
Refs https://github.com/atom/vim-mode/pull/906

/cc @as-cii @nathansobo

Awesome work, @maxbrunsfeld. Thank you for addressing this! :sparkles:
I wonder if, analogously, we should emit an event whenever ::setFirstVisibleScreenColumn is called on the model. What do you think?
By the way, I've left just one other minor comment, otherwise it looks good to me! :boom:

I wonder if, analogously, we should emit an event whenever ::setFirstVisibleScreenColumn is called on the model. What do you think?

I left the setFirstVisibleScreenColumn private because I don't we need it as a public API in the same way as we need setFirstVisibleScreenRow. The onDidChangeFirstVisibleScreenRow method is also private, and is only used by the presenter at the moment, so that it can respond to external calls to setFirstVisibleScreenRow.
So even though it's asymmetrical, I'd like to avoid adding an onDidChangeFirstVisibleScreenColumn method until we either need it as a public API, or we need a public API for setting the horizontal scroll position programatically.

So even though it's asymmetrical, I'd like to avoid adding an onDidChangeFirstVisibleScreenColumn method until we either need it as a public API, or we need a public API for setting the horizontal scroll position programatically.

:+1:
I think there's some lint error that's causing CIs to fail: other than that, I guess we can :shipit: :sparkles:.


Fix crash when validating invalid type index

As of the GC proposal, it is possible to have types that reference a
type index that has not yet been defined (i.e. recursive types). To
handle this, the validator will use the number of types declared
(ValidCtx::defined_type_count) in the type section to determine
whether the type index is valid.
The number of types that is actually defined (ValidCtx::types::size())
may not match the number that was declared (e.g. if the type could not
be parsed, or is omitted). If this happens then accessing
ValidCtx::types with that index will crash.
This change updates defined_type_count at the end of the type section
to match the number of types that was actually defined. This way we can
always use defined_type_count and it will be consistent with the
number of defined types.
Also, we've added a few helper functions to make validating indexes
clearer: ValidateTypeIndex, ValidateFunctionIndex,
ValidateMemoryIndex, ValidateTableIndex, ValidateGlobalIndex,
ValidateEventIndex.

Fixes #45.

@sbc100 ping


make all of fields in csv String.

We don't have to convert a number to BigDecimal unless znai needs to compute the field. Also ApiParametersCsvParser throws an exception if a field is a number.
For example, when we define a return value, a number can't be an argument.

0,, on success

ApiParametersCsvParser.parseRow(ApiParametersCsvParser.java:55) throws an exception since it tries to cast BigDecimal to String.

Another bug fix is that if name has more than one dot, it's not a nested part. We need to handle a name with multiple dots as is.
For example,

...,, Variable parameters

add missing width for a table

No near computer at the moment, could you please check if your change affects the behavior of the table plugin with csv file containing numbers before and after your change.
The numbers conversion may be obsolete now, but I am struggling to remember why it was added.

No near computer at the moment, could you please check if your change affects the behavior of the table plugin with csv file containing numbers before and after your change.
The numbers conversion may be obsolete now, but I am struggling to remember why it was added.

No near computer at the moment, could you please check if your change affects the behavior of the table plugin with csv file containing numbers before and after your change.
The numbers conversion may be obsolete now, but I am struggling to remember why it was added.
I tested the below index.md with the old command and the new command with changes. I don't see any difference on generated pages.

$ cat index.md
Your product
quick summary
include table.csv
:include-table: table.csv
include table.json
:include-table: table.json
$ cat table.json
[
{
Account: 111,
Price: 111,
Description: "test 1<PHONE_NUMBER>1234567890"
},
{
Account: 222,
Price: 222,
Description: "test 2<PHONE_NUMBER>1234567890"
},
{
Account: 333,
Price: 333,
Description: "test 3<PHONE_NUMBER>1234567890"
}
]
$ cat table.csv
Price,Description Note
100,hello


Add CategoryProductsCount command

This command displays a category tree with number of products for each.
Arguments:

<id-category>: Category to start the tree from [default: shop root category].

Options:

--output: CSV file destination path to write the result to.

Multistore compatible ✔
Preview:

@PululuK Thanks for feedback, I think it's better now. Could you check again?

Thanks !


Hot Reload not working when using Docker

I've used the following next.config.js code to fix the hot reload bug with Next.js
/** @type {import('next').NextConfig} */
const nextConfig = {
  reactStrictMode: true,
  swcMinify: true,
  // except for webpack, other parts are left as generated
  webpack: (config, context) => {
    config.watchOptions = {
      poll: 1000,
      aggregateTimeout: 300
    }
    return config
  }
}

module.exports = nextConfig```


flexbox flex mixin with 3 arguments

I'm trying to use flex mixin with 3 arguments:
@include flex( 0, 0, 300px );
but get this error message:
(Line 24: Mixin flex takes 1 argument but 3 were passed.)
Is this not supported by bourbon? Thanks

It is supported! Just remove the commas:
@include flex(0 0 300px);

Thanks! ;)


Fix for IDENTITY-3333 and bulk import now supported for all user-stores

Please review and merge

Fixed with #1339


Clicking the character icon within a team takes you to their Opt Tab

Suggestion would be to click the title bar to take you to the Overview Tab of the "On Field" character,
but clicking any of the character icons will takes you to Opt Tab to increase the flow of the UI.

This would assist in the flow outlined in #1731

No, That's confusing and just makes the behaviour inconsistent. also, if the character has a tc build active, it doesn't have a optimization tab. I am not sure what issue you are trying to address with this, but this is not the way to go.


NLineInputFormat

Hi, more a question than an issue.  I noticed that in this article about CommonCrawl, the author used these Hadoop setting to speed things up.  Would these be helpful in the setup you propose also?  Thank you.
HADOOP_INPUT_FORMAT = 'org.apache.hadoop.mapred.lib.NLineInputFormat'
INPUT_PROTOCOL = RawProtocol

sorry the article is here: http://engineeringblog.yelp.com/2015/03/analyzing-the-web-for-the-price-of-a-sandwich.html


missing magit-section dependency

What did you expect to happen?
Things work, I can open files etc.
What actually happened?
Clean pull & install. Upon opening Emacs, any attempt to open a file fails. Messages is filled with:
Failed to load magit package incrementally, because: (file-missing Cannot open load file No such file or directory magit-section)
Failed to load org package incrementally, because: (file-missing Cannot open load file No such file or directory magit-section)
Failed to load org-agenda package incrementally, because: (file-missing Cannot open load file No such file or directory magit-section)
Failed to load org-capture package incrementally, because: (file-missing Cannot open load file No such file or directory magit-section)
Failed to load org package incrementally, because: (file-missing Cannot open load file No such file or directory magit-section)
condition-case: Error in a Doom startup hook: doom-first-file-hook, global-git-commit-mode, (file-missing "Cannot open load file" "No such file or directory" "magit-section")

The revision I have is bf8495b4122701fb30cb6cea37281dc8f3bedcd0
Describe your attempts to resolve the issue
Added (package! magit-section) to packages, ran doom sync, things worked again.
Steps to reproduce

git clone && doom install && doom sync
start Emacs
observe you can't really open any file/directory
switch to messages buffer

System Information
https://paste.ubuntu.com/p/SFfYv9ZXC2/

Is this still an issue on the latest version of doom? I've clean installed doom since and I didn't reproduce this.
If this is still an issue, can you post a pastebin to a website that doesn't require login to view?

Seems to be working with the latest master, i.e. cdb59b0a3d3e20f37df6fdb5a68c7c8090c9c25d. I see that there were a couple of commits touching magit, so maybe the dependencies are correct now. Anyways, the problem appears to be gone. Thanks!


Hide Intercom App per Page

Am I missing something super obvious? Is there a way to not load the Intercom app on certain pages? I've got a mix of content and app related material, and would like to reserve it for the latter.

There is a way with the intercom SDK, wondering if this would work?
https://gist.github.com/JackGJenkins/b8160e3f237c8d7ea836af83d1a6db09

There is a way with the intercom SDK, wondering if this would work?
https://gist.github.com/JackGJenkins/b8160e3f237c8d7ea836af83d1a6db09

Hey! I don't think there is a way to not load it per page, but you can hide it on particular pages, similar to the link @ooOsH has posted.
I imagine beforeMount of the page component would be a good place for it, or a hook in the router

Hey! I don't think there is a way to not load it per page, but you can hide it on particular pages, similar to the link @ooOsH has posted.
I imagine beforeMount of the page component would be a good place for it, or a hook in the router

Does the plugin inject intercom into the context?

Does the plugin inject intercom into the context?

Yep
https://github.com/hex-digital/nuxt-intercom/blob/master/lib/plugin.js#L12

Yep
https://github.com/hex-digital/nuxt-intercom/blob/master/lib/plugin.js#L12


[Rosetta] Implement changes needed to support optional 3 extra transaction fields

Implement changes from #141 to support removing 3 extra fields
https://www.notion.so/clabsco/Explore-tool-changes-due-to-ethereum-format-transactions-75fb18b535664885a1da07df7169122b

I spent some time looking into this last week -- the changes themselves still shouldn't take a lot of time, however on second look, it probably makes most sense to bundle this work with donut modifications. The reason is that the PR including these changes already includes a lot of those changes, esp. a renaming of the modules (go-ethereum -> celo-blockchain) that basically wreaks havoc on kliento + deps in rosetta. (I.e. will require modifications to kliento + rosetta just to import properly).

Update:
Summary:
The precompiles (CIP 20, 25, 26), BLS Curve Operations changes (CIP 30, 31), Epoch Snark Data (CIP 22), and Governable Lookback Window (CIP 21) shouldn't have any impact on rosetta. CIP 28 and 35 modified fields that are used/applicable to Rosetta, but they required minimal if any changes to the Rosetta code base. @mariano, does that sound correct to you?
Details:

CIP 25: Ed25519 Precompile --> shouldn't affect rosetta (also backwards compatible)
CIP 31: BLS Curve Operations on 12-381 --> don't think this should affect rosetta (also backwards compatible)
CIP 30: BLS Curve Operations on 12-377 --> don't think this should affect rosetta (also backwards compatible)
CIP 20: Extensible Hash Function Precompile --> shouldn't affect rosetta
CIP 21: Governable Lookback Window --> don't think this should have affect rosetta
CIP 22: Epoch Snark Data --> don't think this should affect rosetta (relevant to validators not full nodes)
CIP 26: Precompile for BLS --> shouldn't affect rosetta
CIP 28: Split etherbase --> looked into this: since core rosetta doesn't deal with Validator rewards (cUSD) anyways, this shouldn't be an issue there, and gas fees going to the coinbase address is still correct going forwards (coinbase==txFeeRecipient). For rosetta-cusd, this should also be fine since the address that appears in the Transfer event logs should continue to be correct (validator address)
CIP 35: Support for Ethereum-compatible transactions --> changes are minimal; since we already use celo-blockchain/core/types.NewTransaction internally in Rosetta, no logic changes needed to be made.

Done:

updated kliento: branch eelanagaraj/donut-preparation (based on Trevor's rename branch :praise: but set to the updated blockchain branch)
updated rosetta-master: branch eelanagaraj/donut-preparation (updated versions of kliento + blockchain, got it to compile, some testing via CLI and manually done)
updated rosetta-beta/construction: beta/construction-donut-preparation (updated versions of kliento + blockchain, got it to compile, some testing via CLI (mainly Construction) and manually done)
updated rosetta-cusd: branch eelanagaraj/donut-preparation (now uses beta/construction-donut-preparation branch, updated celo-blockchain module name + kliento/blockchain dep; CLI Construction tests and minimal data API tests)

TODOs [punt until donut is on alfajores]:

after donut changes are finalized, add any additional changes that have been added and test
full CLI Data API checks once alfajores has hard forked for rosetta and rosetta-cusd


Need help with usage

Hi,
i'm trying to use FormFactory in one of my open source projects.
I like it how it generates my first form, but I'm a bit lost in how to use the features.
I am using ASP.NET Core 2 Razor Pages.
So my main two questions are:
How can I enable validation? My required fields i.e. aren't validated and I can post the form without needing to fill in required fields.
When the form gets posted, what do I need to do to get the entered & posted data into my model to further process it?
Thanks in advance

Have you included the unobtrusive validation javascript script? It's
required for the validation to work. See the source of the example page.
It should bind to the view model in the same way a normal form is bound (or
are you using a dynamically built form?)
On 9 March 2018 at 21:37, Sebastian P.R. Gingter<EMAIL_ADDRESS>wrote:

Hi,
i'm trying to use FormFactory in one of my open source projects.
I like it how it generates my first form, but I'm a bit lost in how to use
the features.
I am using ASP.NET Core 2 Razor Pages.
So my main two questions are:
How can I enable validation? My required fields i.e. aren't validated and
I can post the form without needing to fill in required fields.
When the form gets posted, what do I need to do to get the entered &
posted data into my model to further process it?
Thanks in advance
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/mcintyre321/FormFactory/issues/55, or mute the thread
https://github.com/notifications/unsubscribe-auth/AAQ0-ssTG_7Vq91oEJjRvb6jnSdfrbNiks5tcvYwgaJpZM4Sk530
.

Ah, all sorted out. Indeed, the javascript was missing. I could also sort out the binding. Thanks.


PackageManagement\Install-Package fails with "Administrator rights are required to install or update." when run as administrator y bug report

Steps to reproduce
# Check if I am running in elevated command prompt:
[bool](([System.Security.Principal.WindowsIdentity]::GetCurrent()).groups -match "S-1-5-32-544")
True

Install-Module AzureAd -Scope CurrentUser -Force

Expected behavior
Expect the module to be updated in the current user scope
The same issue has been reported in issue #12777 but that issue was closed as some users reported the problem had to do with Controlled Folder Access.
In my case controlled folder access is off but I still have the issue.
Actual behavior
Get this error. The error message is not correct as I am running from an elevated command prompt. So either the message is wrong or there is a bug.
Install-Module AzureAd -Scope CurrentUser -Force
Install-Package: C:\Users\yooak\OneDrive\Documents\PowerShell\Modules\PowerShellGet\2.2.5\PSModule.psm1:9711
Line |
9711 |  … talledPackages = PackageManagement\Install-Package @PSBoundParameters
     |                     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | Administrator rights are required to install or update. Log on to the computer with an account that
     | has Administrator rights, and then try again, or install by adding "-Scope CurrentUser" to your
     | command. You can also try running the Windows PowerShell session with elevated rights (Run as
     | Administrator).

Environment data

Name                           Value
----                           -----
PSVersion                      7.1.3
PSEdition                      Core
GitCommitId                    7.1.3
OS                             Microsoft Windows 10.0.19042
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           <IP_ADDRESS>
WSManStackVersion              3.0

or install by adding "-Scope CurrentUser"

What will be if you try to install module without administrative elevation? I did never install modules with elevated PowerShell as "CurrentUser".

Same error if I try as a normal user, no difference @237dmitry

I have been experiencing a similar issue since Powershell 7.1.3 and I have checked with 7.2.0 preview 4 and the issue still exists.
Install-Package: Administrator rights are required to install or update. Log on to the computer with an account that has Administrator rights, and then try again, or install by adding "-Scope
CurrentUser" to your command. You can also try running the Windows PowerShell session with elevated rights (Run as Administrator).

I keep seeing this error and I do not have Windows Defender Controlled Folder Access enabled. Any suggestions on how to get around this?
I have tried running without admin privileges and use - Scope CurrentUser, but it keeps telling me I need Admin privileges

Pease share output with Verbose switch.


document that ws_handler should be prepared to handle CancelledError

Since when a websockets server is closed (i.e. when WebSocketServer.close() is called), protocol.handler_task.cancel() is called on every WebSocketServerProtocol instance, I think it would be good to document that authors should write ws_handler to be prepared to handle CancelledError being thrown in.  (ws_handler is the connection handler coroutine passed to websockets.serve().)

Yes.

I verified experimentally that catching asyncio.CancelledError results in a 1000 close code rather than 1001.

@cjerdonek Does that PR look good to you?


Extend letter-spacing scale

This PR extends the default letter-spacing scale to include the following values:
{
  // ...
  letterSpacing: {
    tighter: '-.05em',
    tight: '-.025em',
    normal: '0',
    wide: '.025em',
    wider: '.05em',
    widest: '.1em',
  },
}

I find I am almost always changing the default tight and wide from .05em to .025em, so I've changed those here but kept the .05em values as tighter and wider. I've also added a widest option at 0.1em, but chose not to mirror that to tightest because it would be far too tight to be useful.
This is a breaking change for anyone who was inheriting our default values in their project but easily solved by locking in the old values in your own config.

In graphic design, the leading is typically set to something like 1.25 for headlines, 1.5 for body copy, and captions somewhere in between. Then lists of course have something closer to 2.0 leading.
If this pull request is merged, then Tailwind would by default cover all of the approximate values of what graphic designers use day to day. This would make the work of developers building their web design mockups much easier! 😄

The values for tight and wide may change slightly, but I imagine many will just accept the new defaults and the accompanying design changes.
I like the new tracking scale, but would add that type extended beyond the widest class is a pretty common design pattern. You frequently see small headers or labels use type that is bold and uppercase with very extended tracking. Therefore, I think it would be helpful to add .tracking-extended { 0.15em; } so that Tailwind covers most everday use cases.

Going to stick with just these 6 for now but can always add a new extended value in a future release since it wouldn't be a breaking change 👍 Easy to extend the scale per project in the mean time.


On error in portable, check if sys.executable during portable building != sys.executable during running portable

...and provide that information together with the traceback... or better than comparing sys.executable; check installed plugin project versions?
The original user request was to detect which komodo release (https://github.com/equinor/komodo) it was built with, but that makes only sense internally in Equinor. We should probably try to not include komodo-assumptions/logic and keep it Python generic.

Also should mention in the documentation that the same dependencies are typically needed when running a portable app (i.e. should have the same versions of packages as when building it).


feat!: store URIs for ingested VCFs

close #2
% vrsix load --help
Usage: vrsix load [OPTIONS] VCF [URI]

  Index the VRS annotations in a VCF by loading it into the sqlite DB.

  Optionally provide a custom file URI to describe how to retrieve VCF records
  after index lookup:

      % vrsix load input.vcf gs://my_storage/input.vcf

Options:
  --db-location PATH
  --help              Show this message and exit.

pass an arg to the load command to declare a custom file URI (e.g. above). Otherwise, use the local file address as the URI.
creates a second table within the sqlite DB for storing file URIs. Will need to make basic updates to fetch methods (just add a JOIN to get to the URIs table).
uri can be an arbitrary string here -- not sure if it's worth trying to validate upon ingest. I'm thinking it could either be a file descriptor a la file:///Users/james/code/my_vcf.vcf or a Google cloud storage address like gs://fc-secure-00000000-0000-0000-0000-00000000/files/input.vcf. My hope is that one string-based file designator is enough for a user to plug into their own workflow as needed.
added some more fine-grained tests directly into the Rust side for my own debugging.

Oh, and this will of course require an update to any fetch methods in the toolkit in order to retrieve it.

Anything I need to test for this PR?

Theoretically the tests are all running in CI so... hopefully it's all going the way it looks like it should? Maybe some outstanding considerations could be

edge cases for URIs. Should any validation be performed or can the user just put whatever?
Not necessarily related to this PR, but see if the development instructions work for you?

typo, need to fix virtualenv to venv: python3 -m virtualenv venv?

👍 I habitually use virtualenv but yeah it's not in the stdlib like venv is


Deploy Application to Cloud Foundry with SAP Cloud SDK for JavaScript

Tutorial URL: https://developers.sap.com/tutorials/s4sdkjs-deploy-application-cloud-foundry.html
Please specify the step you are referring to
npm run ci-build && npm run ci-package
Giving Error:
===========================================

mkdir -p deployment/ && cp -r node_modules dist package.json index.html deployment/ && rm -rf deployment/node_modules && npm i --production --prefix deployment

The syntax of the command is incorrect.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR<EMAIL_ADDRESS>ci-package: mkdir -p deployment/ && cp -r node_modules dist package.json index.html deployment/ && rm -rf deployment/node_modules && npm i --production --prefix deployment
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the<EMAIL_ADDRESS>ci-package script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR!      C:\Users\VENU\AppData\Roaming\npm-cache_logs\2019-08-09T02_37_04_874Z-debug.log

Hello, thank you for raising this issue. Are you running this in a Git Bash as pointed out by this note?

Note: We are aware, that the ci-package script currently does not work when executed in Windows’ CMD. Currently, the easiest workaround is to install a bash on your system (by default, git for Windows comes with Git Bash) and configure npm to execute scripts in that bash. This can be done by executing npm config script-shell <P:\ath\to\your\bash.exe>.

Thank you for your feedback. We haven't heard from you in a while, so we are closing the issue.
If you still have questions, feel free to reopen the issue.


GIF example animations.

Great UI repos. Quick question... What do you use to make the gif animations? Thanks.

i don't use gif animation. Png images and code.

Sorry, I meant the example animations. Like this one: https://camo.githubusercontent.com/d406ac5a03a2b1fa5cf41fadc8d2408cb8709bdc/68747470733a2f2f6431337961637572716a676172612e636c6f756466726f6e742e6e65742f75736572732f3132353035362f73637265656e73686f74732f313635303331372f7265616c6573746174652d70756c6c5f312d322d332e676966

Our designers use flash and after-effects for creating animation.
You can follow us on the dribbble - https://dribbble.com/yalantis


Presentation Video

Presentation successfully submitted 🥳 @Paccid
https://drive.google.com/file/d/1geTeVjhaFBII4juW5m79Frcj2p7S4Ozd/view?usp=drivesdk

We added some more templates.


Adding fess to fixed pricing page

Closes: #706
Changes proposed in this PR:

The marketplace fee and community fee are now shown on the set fixed pricing tab

While working on this I realised that we have a lot of placeholder content in price.json I'll fix that in a separate PR: https://github.com/oceanprotocol/market/issues/760

awesome, just pushed some small visual updates for that create pricing form in here too. This is all good to go for merge after multi network


Look through government.github.com repo for projects to add

This has self-identified GitHub orgs
https://github.com/github/government.github.com/blob/2242fd0648d548f9c66e95ad81e4559eb99ef045/_data/governments.yml#L103-L155

List of orgs (not just Github) on ORE are listed here (~25)
https://canada-ca.github.io/ore-ero/en/open-source-code-groups.html
We should definitely add some more since there are over 50 on the Github list


Can you provide an example code for how to run this project in local?

I want to run this project in my local server, but I don't know how to achieve it after '''npm install'''.
Can you give some help, please?
Thanks a lot!

simple way to build and run the app localy
assuming that you already have node, npm and python installed.
download and build the app
git clone https://github.com/wavedrom/vcdrom.git
cd ./vcdrom
npm i
./build.sh

launch
cd ./app
python3 -m http.server 9000

now in your browser go to http://localhost:9000/

Thanks for the help!!
When I finish the step, I got this error below, any suggestions?

or you can run server this way:
http-server app
``


K8SPG-619: restart backup jobs on failure

https://perconadev.atlassian.net/browse/K8SPG-619
DESCRIPTION
Problem:
The backup pod currently fails on the first attempt, resulting in the creation of a new pod on failure. This behavior may not be reliable in all Kubernetes environments, due to potential delays in establishing communication with the Kubernetes API.
Cause:
The backup job’s restartPolicy is set to Never, preventing the existing pod from retrying after a failure.
Solution:
Update the backup job’s restartPolicy to OnFailure and configure backoffLimit to 2. This will allow the existing pod to restart up to two times, with incremental pauses of 10 seconds and 20 seconds between retries.
CHECKLIST
Jira

[ ] Is the Jira ticket created and referenced properly?
[ ] Does the Jira ticket have the proper statuses for documentation (Needs Doc) and QA (Needs QA)?
[ ] Does the Jira ticket link to the proper milestone (Fix Version field)?

Tests

[ ] Is an E2E test/test case added for the new feature/change?
[ ] Are unit tests added where appropriate?

Config/Logging/Testability

[ ] Are all needed new/changed options added to default YAML files?
[ ] Are all needed new/changed options added to the Helm Chart?
[ ] Did we add proper logging messages for operator actions?
[ ] Did we ensure compatibility with the previous version or cluster upgrade process?
[ ] Does the change support oldest and newest supported PG version?
[ ] Does the change support oldest and newest supported Kubernetes version?

Test name
Status

custom-extensions
passed

custom-tls
passed

demand-backup
failure

finalizers
passed

init-deploy
passed

monitoring
passed

one-pod
passed

operator-self-healing
passed

pitr
passed

scaling
passed

scheduled-backup
passed

self-healing
passed

start-from-backup
passed

tablespaces
passed

telemetry-transfer
passed

upgrade-consistency
passed

upgrade-minor
passed

users
passed

We run 18 out of 18

commit: https://github.com/percona/percona-postgresql-operator/pull/969/commits/09a5bff526ce5bdd72810ca3edbc26189427e8c9
image: perconalab/percona-postgresql-operator:PR-969-09a5bff52

Test name
Status

custom-extensions
passed

custom-tls
passed

demand-backup
failure

finalizers
passed

init-deploy
passed

monitoring
passed

one-pod
passed

operator-self-healing
passed

pitr
passed

scaling
passed

scheduled-backup
passed

self-healing
passed

start-from-backup
passed

tablespaces
passed

telemetry-transfer
passed

upgrade-consistency
passed

upgrade-minor
passed

users
passed

We run 18 out of 18

commit: https://github.com/percona/percona-postgresql-operator/pull/969/commits/d1092708f582df1a63f8cfaf1146dec9012fe2d9
image: perconalab/percona-postgresql-operator:PR-969-d1092708f

Test name
Status

custom-extensions
passed

custom-tls
passed

demand-backup
passed

finalizers
passed

init-deploy
passed

monitoring
failure

one-pod
passed

operator-self-healing
passed

pitr
passed

scaling
passed

scheduled-backup
passed

self-healing
passed

start-from-backup
failure

tablespaces
passed

telemetry-transfer
passed

upgrade-consistency
passed

upgrade-minor
passed

users
passed

We run 18 out of 18

commit: https://github.com/percona/percona-postgresql-operator/pull/969/commits/a50d1b089234348b854264759bc4918a30f6f5b3
image: perconalab/percona-postgresql-operator:PR-969-a50d1b089

Test name
Status

custom-extensions
passed

custom-tls
passed

demand-backup
passed

finalizers
passed

init-deploy
passed

monitoring
passed

one-pod
passed

operator-self-healing
passed

pitr
passed

scaling
passed

scheduled-backup
passed

self-healing
passed

start-from-backup
passed

tablespaces
passed

telemetry-transfer
passed

upgrade-consistency
passed

upgrade-minor
passed

users
passed

We run 18 out of 18

commit: https://github.com/percona/percona-postgresql-operator/pull/969/commits/a50d1b089234348b854264759bc4918a30f6f5b3
image: perconalab/percona-postgresql-operator:PR-969-a50d1b089

Test name
Status

custom-extensions
passed

custom-tls
passed

demand-backup
passed

finalizers
passed

init-deploy
passed

monitoring
passed

one-pod
passed

operator-self-healing
passed

pitr
passed

scaling
passed

scheduled-backup
passed

self-healing
passed

start-from-backup
passed

tablespaces
passed

telemetry-transfer
passed

upgrade-consistency
passed

upgrade-minor
failure

users
passed

We run 18 out of 18

commit: https://github.com/percona/percona-postgresql-operator/pull/969/commits/f01c9bb90a3e191370a96d5e6f5cf1a1360dceee
image: perconalab/percona-postgresql-operator:PR-969-f01c9bb90

Test name
Status

custom-extensions
passed

custom-tls
passed

demand-backup
passed

finalizers
passed

init-deploy
passed

monitoring
passed

one-pod
passed

operator-self-healing
passed

pitr
passed

scaling
passed

scheduled-backup
passed

self-healing
passed

start-from-backup
passed

tablespaces
passed

telemetry-transfer
passed

upgrade-consistency
passed

upgrade-minor
passed

users
passed

We run 18 out of 18

commit: https://github.com/percona/percona-postgresql-operator/pull/969/commits/aaa2c86a1b9887665153ab5fda8156fc6828b95e
image: perconalab/percona-postgresql-operator:PR-969-aaa2c86a1

Test name
Status

custom-extensions
passed

custom-tls
passed

demand-backup
passed

finalizers
passed

init-deploy
passed

monitoring
failure

one-pod
passed

operator-self-healing
passed

pitr
passed

scaling
passed

scheduled-backup
passed

self-healing
passed

sidecars
passed

start-from-backup
passed

tablespaces
passed

telemetry-transfer
passed

upgrade-consistency
passed

upgrade-minor
passed

users
passed

We run 19 out of 19

commit: https://github.com/percona/percona-postgresql-operator/pull/969/commits/450fbd4c2cde115141e89b35959d4320faff7c3c
image: perconalab/percona-postgresql-operator:PR-969-450fbd4c2

Test name
Status

custom-extensions
passed

custom-tls
passed

demand-backup
passed

finalizers
passed

init-deploy
passed

monitoring
passed

one-pod
passed

operator-self-healing
passed

pitr
passed

scaling
passed

scheduled-backup
passed

self-healing
passed

sidecars
passed

start-from-backup
passed

tablespaces
passed

telemetry-transfer
passed

upgrade-consistency
passed

upgrade-minor
passed

users
passed

We run 19 out of 19

commit: https://github.com/percona/percona-postgresql-operator/pull/969/commits/d8b4d5de57c0587e6660c2657b8928cd40adce74
image: perconalab/percona-postgresql-operator:PR-969-d8b4d5de5

Test name
Status

custom-extensions
passed

custom-tls
passed

demand-backup
passed

finalizers
passed

init-deploy
passed

monitoring
passed

one-pod
passed

operator-self-healing
passed

pitr
passed

scaling
passed

scheduled-backup
passed

self-healing
passed

sidecars
passed

start-from-backup
passed

tablespaces
passed

telemetry-transfer
passed

upgrade-consistency
passed

upgrade-minor
passed

users
passed

We run 19 out of 19

commit: https://github.com/percona/percona-postgresql-operator/pull/969/commits/a4cab0cd3ebc3c44d4698eac32528a22ae4324ce
image: perconalab/percona-postgresql-operator:PR-969-a4cab0cd3

Test name
Status

custom-extensions
passed

custom-tls
passed

demand-backup
passed

finalizers
passed

init-deploy
passed

monitoring
passed

one-pod
passed

operator-self-healing
passed

pitr
passed

scaling
passed

scheduled-backup
passed

self-healing
passed

sidecars
passed

start-from-backup
passed

tablespaces
passed

telemetry-transfer
passed

upgrade-consistency
passed

upgrade-minor
passed

users
passed

We run 19 out of 19

commit: https://github.com/percona/percona-postgresql-operator/pull/969/commits/48ed8964879f8a91bcda3ea8c3dcbd7d2b4582cd
image: perconalab/percona-postgresql-operator:PR-969-48ed89648


Does not compile on debian stretch

Error is:
/usr/bin/cc   -I/home/holger/git/libclipboard/include  -std=c99 -Wall -pedantic -g -fdiagnostics-color=auto   -o CMakeFiles/clipboard.dir/src/clipboard_x11.c.o   -c /home/holger/git/libclipboard/src/clipboard_x11.c
/home/holger/git/libclipboard/src/clipboard_x11.c: In function 'clipboard_text_ex':
/home/holger/git/libclipboard/src/clipboard_x11.c:607:29: error: storage size of 'timeout' isn't known
struct timespec timeout;
As a hack I added
#define __need_timespec
to clipboard_x11.c
I guess a proper solution is to compile it according to some POSIX standard.

Thanks for the report! It should be fixed now.


corrects the manifest file for signatures.db

Move back the signatures.db to mythril root
change the signatures path in MANIFEST.ini
fixes #823

I am experiencing the signatures.db issue using debian.
Traceback (most recent call last):   File "/usr/local/bin/myth", line 11, in <module>     sys.exit(main())   File "/usr/local/lib/python3.5/dist-packages/mythril/interfaces/cli.py", line 293, in main     enable_online_lookup=args.query_signature,   File "/usr/local/lib/python3.5/dist-packages/mythril/mythril.py", line 97, in __init__     self.mythril_dir = self._init_mythril_dir()   File "/usr/local/lib/python3.5/dist-packages/mythril/mythril.py", line 130, in _init_mythril_dir     copyfile(str(parent_dir / "signatures.db"), db_path)   File "/usr/lib/python3.5/shutil.py", line 120, in copyfile     with open(src, 'rb') as fsrc: FileNotFoundError: [Errno 2] No such file or directory: '/usr/local/lib/python3.5/dist-packages/signatures.db'
I tried to install directly the develop branch from git but I still get the error. Any suggestions?

@rmlopes , i think it still didn't make it to the release, try our docker container(mythril/myth-dev image) or just move the signatures.db file present in mythril repo to ~/.mythril/ directory.


Using CompactArray for permutations

speaking of space used for permutations, I just noticed that we could probably halve it in the Software Heritage graph by using CompactArray instead of naive arrays, as we have 34 billion nodes (2^35).
Do you want me to try and see the impact on LLP performance?

Well, the only difference should be in the generation and inversion of the permutation. The problem is that CompactArray in the atomic version does not have very strong concurrency guarantees, so you wouldn't be able to use parallel sorting when generating it.


Fix panic in stats.calculateRuleDiff

The process would panic when it calculates stats of a rule that is newly
added to an existing NetworkPolicy and the stats is zero.
Signed-off-by: Quan Tian<EMAIL_ADDRESS>Fixes #2494

This needs to be backported to at least v1.2 as NetworkPolicyStats is enabled by default in it, and can be backported to v1.0 and v1.1.

/test-all

Codecov Report

Merging #2495 (23c9a70) into main (cdc8453) will decrease coverage by 17.79%.
The diff coverage is 100.00%.

@@             Coverage Diff             @@
##             main    #2495       +/-   ##
===========================================
- Coverage   59.82%   42.03%   -17.80%
===========================================
  Files         284      148      -136
  Lines       22168    18132     -4036
===========================================
- Hits        13263     7621     -5642
- Misses       7483     9828     +2345
+ Partials     1422      683      -739

Flag
Coverage Δ

kind-e2e-tests
?

unit-tests
42.03% <100.00%> (+<0.01%)
:arrow_up:

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


Documentation

1. Suggested Structure for ReadMe:

Project Name
Project Description
Snapshots
Tech Stack Used
How to Contribute
Learning Resources
Code of Conduct
Project Admin and Mentors
License

Try to put in more emojis,gif,images
Some Resources to get started with:

Basics of GitHub Markdown
https://guides.github.com/features/mastering-markdown/

Some more tips on GitHub Markdown
https://ghost.org/changelog/markdown/

For creating badges:
https://shields.io/

Quick Fetch badges:
https://github.com/Naereen/badges

Emoji Cheatsheet:
https://www.webfx.com/tools/emoji-cheat-sheet/

Samples of the ReadMes of my other projects:

https://github.com/smaranjitghose/PyDeceive
https://github.com/smaranjitghose/DeepPixel

2. Work on the documentation of the project:

Don't change any of the base code
Take one page at a time
Put comments for what each section does, so that it is easy for anyone to change certain content
Continue the same for other pages too
Keep in mind that the project in the development phase so pages are ought to be changed so update the documentation accordingly
Create Snapshots of the pages in asnapshot directory inside images so that it can be used later.

#3. Guide.MD

Create a guide.MD file where you have beautifully laid out what each section of each of the files is about and changing which parts one can use this repo for their own purpose

Please assign it to us @smaranjitghose
(@sonalsk)

Please ask her to comment so that I can assign it to her

@smaranjitghose Can I work on this issue ?

Sure!

This will be continued with the new UI


DLL load failed while importing win32file

python Version 3.8
[pywin32]==303
[portalocker]==2.4.0
import win32file
ImportError: DLL load failed while importing win32file
I think is pywin32-303 doesn't have win32file.pyd

@56907dzq how did you solve this issue?


Functionality request related to Advertising

Thank you for this amazing library.
I am using it in a Raspberry Pi to connect using Android, and it works fine.
I also tried to connect from Windows using "Bluetooth LE Explorer" and I was unable to do that.
Moreover, in the advertising I include the device name. Android is able to find and parse the name, but the previous application not.
The next step was to use "BLE Scanner" in Android to analize the advertising, and I found that it includes the name of the device, but it does not includes the flags section (data type 0x01). I know that the standard makes this section optional, but it would be great to configure it in order to prepare a more "typical" advertisement.
Are you planning to implement this feature?
Is it possible at all?
Thank you for your support.
Best regards.

Hi, no concrete plans to add this. As far as I am aware, using Flags can be done but that dinctionality is marked 'experimental'.
Generally speaking I am staying away of experimental features. But perhaps.there is a way to support it without breaking stuff for people that have not enabled experimental features.....

Thank you.
I understand.
May be in the future.
Have a nice day.


Museum district (13,75): Red-white robot animation artifacts

When the red and white robot its being animated, some vertices corruption can be observed:
https://play.decentraland.zone/branch/release-2020-12-02/index.html?ENV=org&position=13%2C75&realm=fenrir-amber
Internal slack video:
https://decentralandteam.slack.com/files/UB4ENQ750/F01FWUM4U3F/screen_recording_2020-12-02_at_13.12.07.mov?origin_team=T9EJMTT7Z&origin_channel=Vall_threads
This may be related to bad animation keyframe importing.

Fixed in #1953


Upgrade support from v0.5.0 to v0.6.0

This may depend on https://github.com/longhorn/longhorn/issues/593

We will only support detaching the v0.5.0 volume gracefully in v0.6.0. No other operations would be supported.

Note: Live upgrade from v0.5.0 to v0.6.0 is not supported, so no need to test the live upgrade feature.

Validation: WIP
Steps to test:
Install Longhorn v0.5.0
1- using kubectl apply -f https://raw.githubusercontent.com/longhorn/longhorn/v0.5.0/deploy/longhorn.yaml
2- Create volumes:

Create a volume, attach it to a node, and write data to it and calculate its md5 checksum.
Create a volume with pv/pvc attached to a pod using: kubectl apply -f https://github.com/longhorn/longhorn/blob/master/examples/pvc.yaml, write data to it and calculate its md5 checksum.
Create StatefulSet with attached volumes using "kubectl apply -f https://raw.githubusercontent.com/longhorn/longhorn/master/examples/statefulset.yaml" write data to the volumes attached to web-0 & web-1 pods, calculate its md5 checksum.

Upgrading Longhron to v0.6.0-rc1
3- Upgrade Longhorn manager using kubectl apply -f https://raw.githubusercontent.com/longhorn/longhorn/v0.6.0/deploy/longhorn.yaml

Expected result:

Longhorn components pods will be terminated and new pods will be started.
In Settings/Engine Image, new Longhorn Engine Image will be available.
In Nodes page, Longhorn components readiness should be ready on Readiness column

for longhornio/longhorn-engine:v0.6.0-rc1

Engine Image: ready
Instance Manager - Engine: running
Instance Manager - Replica: running

for rancher/longhorn-engine:v0.5.0

Engine Image: incompatible
Instance Manager - Engine: Unknown
Instance Manager - Replica: Unknown

On Volume page, in State column, an Up Arrow will show up next to Volume state, Hovering over the arrow, a tool-tip will show up stating that Current engine image: v0.5.0
 Engine image v0.6.0-rc1 is now available!

Upgrade Longhorn engine (offline) https://github.com/longhorn/longhorn/blob/master/docs/upgrade.md#offline-upgrade
4- Follow the detach procedure for relevant workloads
5- Select all the volumes using batch selection. Click batch operation button Upgrade Engine, choose v0.6.0 engine image
6- Attach the volume, and recreate the workloads
7- Verify the data integrity on volumes.


Flutter ignores certificate/public keys pining on Android

https://github.com/flutter/flutter/issues/96722 https://github.com/flutter/flutter/issues/89124

#96722

@m7mdra
the issue you linked is still open,
what about closing this one and follow up there?

ok will close this.


[Suggestions / Edits] Some off-topic talks 😅

There are few things I want to suggest:

There is no such file as run.bat in frostwire/desktop/src. Please remove the line from https://github.com/frostwire/frostwire/blob/master/desktop/README.md

If you are using Windows, run the project with run.bat in the src folder.

Also try the Intelij IDE predefined options like:

Optimize imports
Code cleanup
they really do what they say 😎👍

Look at serious issues  #916 , #563

Any developer should also check Discord channel 😅😄. (u guys can also install discord app - works like whatsapp).

Looks like desktop application is using deprecated API or something like that. So windows is preventing its install with its  "Potentially Unwanted Application protection feature" (more details in discord-general section).

Did not remove the line as there is a run.bat file, it's just not on the frostwire/desktop/src folder, it's in the frostwire/desktop folder.
Just fixed the line

Did not remove the line as there is a run.bat file, it's just not on the frostwire/desktop/src folder, it's in the frostwire/desktop folder.
Just fixed the line

yup, i mean the same thing.

Code cleanup

Use carefully. Some automatic code cleanups can break the codebase in unintended ways.
We've even left some comments in the code because we've seen how those warnings don't actually apply to us.

done (frostwire.com/chat)

That was InstallCore being flagged, it's solved by talking to them and getting a new sdk from them. But yes, I think there's some stuff that's deprecated and we get the warning on startup, related to illegal reflection access, stuff that we need to change the look and feel I'm afraid (a hack).


Incorrect E3002 'AWS::ImageBuilder::ContainerRecipe' BlockDeviceMappings property

CloudFormation Lint Version
1.3.5
What operating system are you using?
docker container based on python:3.12-alpine
Describe the bug
$ cfn-lint --template ./a.yaml
E3002 Additional properties are not allowed ('BlockDeviceMappings' was unexpected)
a.yaml:12:9

Expected behavior
no errors or warnings
Reproduction template
Resources:
  AasOpenSearchDomainNginxProxyContainer:
    Type: AWS::ImageBuilder::ContainerRecipe
    Properties:
      Components: []
      ContainerType: DOCKER
      TargetRepository:
        RepositoryName: sampleRepository
      DockerfileTemplateData: |
        FROM {{{ imagebuilder:parentImage }}}
      InstanceConfiguration:
        BlockDeviceMappings:
          - DeviceName: /dev/xvda
            Ebs:
              DeleteOnTermination: true
      ParentImage: amazonlinux:2023
      Name: sampleName
      Version: 1.0.0

This is tripping up the json schema validation as its expecting properties to be along the additionalProperties going to patch it out as it doesn't need to be there.
"InstanceConfiguration": {
   "$ref": "#/definitions/InstanceConfiguration",
   "additionalProperties": false
  },

Fixed in #3413 release with v1.3.6


Add /health.svg endpoint to serve a small queue status badge.

This is inspired by shields.io, but is served directly.
Future work: show overall health status at a glance (maybe using sparklines?)

nifty, a few suggestions though

Going from a, b, c... to a, b, c, ... really simplified things!

Looks better, too :)
On Thu, Jun 16, 2016 at 3:45 PM, Ryan Hitchman<EMAIL_ADDRESS>wrote:

Going from a, b, c... to a, b, c, ... really simplified things!
—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub
https://github.com/kubernetes/contrib/pull/1224#issuecomment-226635411,
or mute the thread
https://github.com/notifications/unsubscribe/AAnglvKRHFQs3Fpw-8C1WJoG-qdZxymiks5qMdIKgaJpZM4I33Bh
.

LGTM
@mikedanese please merge this before you do your push!

Ok.


Improve how the offshore NEP is forced in

Copying from #191
Open points:

[ ] The way the land use constrained is hacked seems a bit strange. I am worried that the p_nom_max is now too high, because the values are just copied over from the north_sea_duck_node generator. It's no problem as long as the capacity is limited by a global constraint. But should be rewritten later on.
[ ] Implementation of AC rests on the assumption that the connection point already exists from previous years. might potentially error if later projects connect farther inland. Probably fine
[ ] Ideally we would have separate, non extendable generators, with "NEP" in their name. Those would have the correct capacities and are not extendable. We could even delete all extendable offwind generators <2030 and only force in capacities in add_existing and in the NEP_force_function. As a caveat, this might throw off n.statistics. Potentiall the new active option in PyPSA might help here.

maybe also add tags to the generators to see which ones are from pypsa-eur and which ones are added in the NEP function


Option to change how pixels are addressed on the grid.

I've set up a simple little demo with an EPS32 and 2 64x32 panels and it all works, this is more of a quality of life/ease of use sorta thing.
So instead of the traditional layout description where all the panels are connected in one long row I'd like to work with them in one long column. I'm not talking stacked I'd like to run them end to end. For instance lets say I have 5 panels; with the current chaining method I could (theoretically, not tested) create a chain of 320 wide by 32 high, however I'm looking for 32 wide and 320 high.
I think this could be faked by having the options to swap out where the defined coordinate lands, as the rest of the chaining seems to work fine. I considered just writing a shim function to do that but since X and Y change positions it doesn't seem like it'll be as smooth a process as I imagined (I come from a web dev background where higher level languages would make this simpler).
It's possible there is a way to do this with the virtual display library but it seemed like it was the only option not supported.
Edit I've noticed another quirk about my panel, it's not RGB, it's RBG. I built a simple sketch to confirm, a way to change that would be nice as well, something I can define on setup to do the swap on the library side would be nice to de-clutter the sketch.

Just in case someone else comes across this I fixed it by using the following functions to get the X, Y, and Color values respectivly.
/*
 * These functions take an x and y at the desired orinentation and convert them to an x and y at the orintation the driver wants
 */
int gX(int x, int y){
  return y;
}
int gY(int x, int y){
  return abs(MATRIX_WIDTH-x)-1;
}
int gC(int r, int g, int b){
  return matrix.color565(r,b,g);
}

Hi pgooch,
Glad the library is of use to you. Electrically / physically the only way to connect these panels up is by way of on 'horizontal' (i.e. Serial) chain of panels. That's how it works.
Are you referring to rotating the horizontal chain vertically however, like this?

If so, custom code will be required here as code hasn't been written for this particular type of arrangement in the virtual display class... yet.

Edit I've noticed another quirk about my panel, it's not RGB, it's RBG.

Bizzare. An alternative option is to swap the B_1, B_2, G_1, G_2 pins from the ESP to the first panel (unless you're using a ribbon cable or something)

Yes, thats the layout ideal I had (well, I was thinking the ESP on 4 and going up but thats a physical orientation thing.
I totally didn't think of swapping pins around, thats a much nicer solution that my current messy code one.
I've also notice what appears to be artifact caused by asking the matrix to do to much, pixels next to the intended one lighting up one of the LEDs or scan-line like effects. I imagine they are more hardware than software related, would that be a good guess given your experience?

I've also notice what appears to be artifact caused by asking the matrix to do to much, pixels next to the intended one lighting up one of the LEDs or scan-line like effects. I imagine they are more hardware than software related, would that be a good guess given your experience?

Refer to the double buffering example.

Thanks for the tip, will do once I'm done with getting other things working (not related to the library, it's rockin'). It seems to be related to power, if I power the matrix through the board it doesn't happen, but when I provide an external 5V it does. Just an interesting thing I noticed when playing around with it.

 Also, it's important to put a large  2000uf capacitor on the back of the panels between VCC and GND if possible as well to deal with power draw spikes due to the graphics.

I was only powering 2 pixels for testing some code, but thanks for the tip I picked up some caps that I'll install.

Did you end up getting to the bottom of this issue. Can I close it?

I did solve it, it was something in the mess of wires, I ordered a PCB and it works exactly as expected. Thanks for the library man, works great.


feat: add govukSkipLink()

Pull Request Test Coverage Report for Build<PHONE_NUMBER>
Details

23 of 23 (100.0%)  changed or added relevant lines in 1 file are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+0.2%) to 98.551%

Totals

Change from base Build<PHONE_NUMBER>:
0.2%

Covered Lines:
220

Relevant Lines:
220

💛  - Coveralls

Pull Request Test Coverage Report for Build<PHONE_NUMBER>
Details

23 of 23 (100.0%)  changed or added relevant lines in 1 file are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+0.2%) to 98.551%

Totals

Change from base Build<PHONE_NUMBER>:
0.2%

Covered Lines:
220

Relevant Lines:
220

💛  - Coveralls


Remove dependency on MenuAPI or be able to toggle between menuAPI and esx_menu_ui

In the video it appears as you use menu ui but then you indicate that it needs a dependency called MenuAPI, it gives an option to not require that dependency since it is only a simple menu theme that consumes resources.

The reason I have switched to my MenuAPI is that people wanted it on other frameworks than ESX. And from personal experiences, I know that people do not even read: "readme.MD" or description in config.lua.
So there would be tons of other "issues" because people don't know how to even read.
Both of these resources take 0.02ms combined together when AFK... Feel free to add support to ESX Menu UI but there won't be any support for this because like I said above it would cause just more trouble.
Thanks and have a great day.


Update text demo page to have a view mode and an edit mode

No clue why.
FYI @xster

I think it wasn't a regression. The code checked for the presence of a onWillPop overrider (which the demo has) and disables the back gesture altogether rather than checking the return value of the onWillPop handler at the time of the gesture.
Maybe the it was designed so originally to avoid awkward UI irresponsiveness and unexpected behaviour since the user can inject an onWillPop handler and do whatever he/she wants inside. For instance, the demo shows a dialog saying 'this form has errors, do you really want to leave'. I think a similar 'infallible instant pop' expectation from the user probably applies to the back button itself as well though.
Maybe we should make the recommendation to the user that if the user wants to override the poppability of a page, he/she should present the page as a fullscreen dialog (with an 'X' and a 'Submit'/'Done'/'Save' button) instead of a normal stack page.

It should be an error to have an onWillPop overrider if the route supports something like the back gesture, IMHO.

Agreed. The existing implementation kinda does what you're saying. Back gesture is enabled by default (which I think is fine for not asking the user to explicitly specify too many things) and turns off when there's an overrider.
I think the only thing 'wrong' was the demo uses a dialog behaviour (confirmation before leaving) without presenting a dialog affordance. I'll see if I can tweak the scaffold/appbar to automate some of this stuff.

Ok, to make easier for users to not forget to go to the fullscreen dialog's app bar and swap out the leading button to an X instead of the default <, I'll move the fullscreenDialog knowledge from MaterialPageRoute to ModalRoute, next to barrierDismissible etc which I think scopes nicely.
The AppBar will read it and present an appropriate button. Has the added benefit of letting it centrally drive other fullscreen dialog related UI like a white appbar background for iOS.

Remaining: let the text demo page have a view mode and an edit mode

I'm blocked on this. The text demo is actually broken on iOS until we fix #9511 or #9513.

Doesn't seem like this is required for M2?

Closing as obsolete


model trained only in cloud?

the training is done only in cloud, is it possible to do it locally without uploading data?

You'll need: https://lamini-ai.github.io/enterprise_install/

If you're interested in running locally, contact us.


kokoro: setup initial configurations

Signed-off-by: Alessandro Comodi<EMAIL_ADDRESS>This PR adds kokoro configurations to run the tests

@mithro FYI

@acomodi - It helps kokoro run if I actually install the webhook which makes it listen to this repository.

Since I wasn't able to push to this repository, I have instead create a pull request at https://github.com/SymbiFlow/fpga-tool-perf/pull/58

@acomodi this has been merged now see https://github.com/SymbiFlow/fpga-tool-perf/pull/58


Cannot repro the demo of twa post message

Read this First
If you have a Trusted Web Activity related question, the best place to ask it is on StackOverflow, on the
trusted-web-activity tag, which is also monitored by the team.
Describe the bug
I'm not sure it's a bug or not. I can't repro the demo.
I can compile it but cannot works correctly.

If I compile and open it directly. Cannot trigger CustomTabsCallback.
So I call validateRelationship after mSession = mClient.newSession(customTabsCallback);. But requestPostMessageChannel return false. I'm sure I've put PostMessageService in AndroidManifest.xml.

To Reproduce
Steps to reproduce the behavior:

Clone the repo
cd android-browser-helper/demos/twa-post-message
edit MainActivity.java. Replace URL and TARGET_ORIGIN by localhost site my owned. The site I already has assetlink.json which has correct sha256 of debug keystore and relation. And add following code at line 142. (already imported CustomTabsService)                        mSession.validateRelationship(CustomTabsService.RELATION_USE_AS_ORIGIN,
                                TARGET_ORIGIN, new Bundle());

adb logcat | grep PostMessageDemo
../../gradlew installDebug and open the app by hands.
Following partial logs:08-08 00:53:20.868 25893 25893 D PostMessageDemo: Relationship result: true
08-08 00:53:23.168 25893 25893 D PostMessageDemo: Requested Post Message Channel: false

Expected behavior
A clear and concise description of what you expected to happen.
requestPostMessageChannel return false should return true
Did this ever used to work
no
Screenshots
Code Snippets
If applicable, add or link to code snippets describing how the API is being used.
Smartphone (please complete the following information):

Device: Pixel 5
OS: Android 13
Browsers Installed Chrome 115.0.5790.139 and Chrome Beta 116.0.5845.61 (Changed default broweser)
Browser Versions Chrome 115.0.5790.139 and Chrome Beta 116.0.5845.61 (Changed default broweser)
android-browser-helper library version 2.4.0

Additional context
Add any other context about the problem here.

Thanks for reporting this, may I know the value of SOURCE_ORIGIN you are using?

So that wasn't mentioned in the demo but the SOURCE_ORIGIN has to either start with http:// or https://, please try it and let me know if the issue still persists.

So that wasn't mentioned in the demo but the SOURCE_ORIGIN has to either start with http:// or https://, please try it and let me know if the issue still persists.

I follow the comment. So I leave it as "my-app-origin-uri".
I just tried to changing it to "https://foo.bar" and it seems to work.

Thanks for the confirmation.


Support include and exclude patterns for path ruleset

Description
Update the ruleset to allow include and exclude logic for path.
Value
Greatly simplifies scenarios where you want to exclude a specific file(s) or folder(s), and not need to call out includes for everything else.
Design
Both of the below proposed design changes to the .vela.yml would have the same underlying results of:

Commit that changes cool-code/foo.js will trigger
Commit that changes cool-code/docs/foo.md will not trigger

proposed option 1
Add ignore and include underneath path to allow the following configuration:
ruleset:
  path:
    include:
      - [ "cool-code/**" ]
    exclude:
      - [ "cool-code/docs/**"]

This could lead to breaking behavior due to the current structure of the yaml so extra consideration is needed.
proposed option 2
Utilize some ignore character(s) to allow updating the existing path to handle both scenarios. The following example utilizes the ignore character of !:
ruleset:
  path: [ "!cool-code/docs/**", "cool-code/** ]

Definition of Done
ruleset for path updated to allow include and exclude logic
Effort  (Optional)
1 day
Impacted Personas (Optional)
All users utilizing the ruleset of path

Hello 👋
The Vela admins have decided to condense all existing issues into a single repo found @ go-vela/community.
For a direct link to your counterpart issue in that repo, you can find it linked yesterday in the history of this issue.
If you have any questions, please feel free to direct them to the community repo.
Thanks for your input and feedback!


Not Getting Response in Chat UI with Local Ollama Instance

Describe the bug
Not getting any response back from a local Ollama instance that is running fine and gets correctly picked by Ragapp.
To Reproduce

Deploy with MODEL=llama3 docker compose up -d
Go to :8000, type something in the text box and hit send. Nothing is returned
Go to :8000/admin. type something in the text box and hit send. Same thing

Expected behavior
The user should get a response back in chat.
Screenshots
https://github.com/user-attachments/assets/a6f1eaed-d594-41e4-aecc-94ae25f9f41d
Desktop (please complete the following information):

OS: Ubuntu 22.04
Browser: Chrome 128.0.6613.138

Additional context
ollama_logs.txt

logging at the log, the issue is that ollama with llama3:latest doesn't support function calling:
   |   File "/usr/local/lib/python3.11/site-packages/ollama/_client.py", line 488, in _request
    |     raise ResponseError(e.response.text, e.response.status_code) from None
    | ollama._types.ResponseError: llama3:latest does not support tools


Add documentation

[Enquiry] How to get the documentation for this tool to do PPL from natural language and to do RAG
As i do not see any documentation on this tool
Thanks
RamDa

Catch All Triage - 1 2 3 4 5

Please refer: https://github.com/opensearch-project/ml-commons/blob/main/docs/tutorials/agent_framework/build_your_own_chatbot.md and https://github.com/opensearch-project/ml-commons/blob/main/docs/tutorials/agent_framework/Chatbot_with_RAG.md


Support Puck with HockeyApp

Hockey action actually dont support puck.
We need to use puck in "notes" value here instead of "Changelog" :
hockey(
api_token:@hockeyAppAPIKey,
ipa:ipaPath,
notes:"Changelog"
)
Puck automatically provide markdown formatted release notes!
Thank you

Upload to HockeyApp
/usr/local/bin/puck -submit=auto -download=true -collect_notes_type=jenkins_aggregate -collect_notes_path="${WORKSPACE}" -notes_type=markdown -source_path="${WORKSPACE}" -repository_url=http://repository.server/repository-path -api_token=10101010101010101010101010101010 -app_id=01010101010101010101010101010101 "$ARCHIVE_PACKAGE"

Aditionally it would be nice if we could grep the result from a hockey upload and get the download link.
For example, this is a default hockey step output:
[11:33:56]: Starting with ipa upload to HockeyApp... this could take some time.
[11:47:59]: Public Download URL: https://upload.hockeyapp.net/apps/XXXXXXXXX
[11:47:59]: Build successfully uploaded to HockeyApp!

and we could use the "public download url" in a subsequent step like Slack integration etc.

@tagyro you can, just use the following:
url = lane_context[SharedValues::HOCKEY_DOWNLOAD_LINK]
build_info = lane_context[SharedValues::HOCKEY_BUILD_INFORMATION]

more information via
fastlane action hockey

@KrauseFx Thanks, much appreciated!


DBAPI doesn't support CREATE TABLE or other none-returning queries

Describe what's wrong
CHDB's dbapi implementation does not work for basic queries like CREATE TABLE that return no data
Does it reproduce on recent release?
Yes, reproduced on chdb==1.0.2
How to reproduce
import chdb.dbapi as dbapi
conn1 = dbapi.connect()
cur1 = conn1.cursor()
cur1.execute("""CREATE TABLE rate (
	day Date,
	value Int32
) ENGINE = Memory""")

Expected behavior
Execute succeeds without an exception
Error message and/or stacktrace
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
File ~/venv/lib/python3.11/site-packages/chdb/dbapi/connections.py:185, in CHDBResult.read(self)
    184 try:
--> 185     data = json.loads(self.connection.resp)
    186 except Exception as error:

File /usr/local/lib/python3.11/json/__init__.py:339, in loads(s, cls, object_hook, parse_float, parse_int, parse_constant, object_pairs_hook, **kw)
    338 if not isinstance(s, (bytes, bytearray)):
--> 339     raise TypeError(f'the JSON object must be str, bytes or bytearray, '
    340                     f'not {s.__class__.__name__}')
    341 s = s.decode(detect_encoding(s), 'surrogatepass')

TypeError: the JSON object must be str, bytes or bytearray, not NoneType

During handling of the above exception, another exception occurred:
...
File ~/venv/lib/python3.11/site-packages/chdb/dbapi/connections.py:187, in CHDBResult.read(self)
    185     data = json.loads(self.connection.resp)
    186 except Exception as error:
--> 187     raise err.InterfaceError("Unsupported response format:" % error)
    189 try:
    190     self.field_count = len(data["meta"])

TypeError: not all arguments converted during string formatting

Additional context
This seems to work fine in the non DBAPI implementation.

It looks like this behavior is caused by:
https://github.com/chdb-io/chdb/blob/b76b240cc45c96d796c2a4783aa8856a6099c9d0/chdb/dbapi/connections.py#L123
Which calls _read_query_result() even before fetchone/etc are called. I'm not sure if this behavior is correct, but in this case self.connection.resp is none presumably because CREATE TABLE doesn't return anything.


terratest in container

terratest for azure example fail while running in a container vs natively.
is azure cli mandatory in order to run the tests ?

How are you authenticating to Azure? Running locally it defaults to Azure CLI and as a dev, we are usually always signed into it. But Terraform recommends using Azure's Managed Service Identity (MSI) or a Service Principal when connecting. I ran into this when trying to automate my own terratests against Azure modules I am building. Here is the security I had to setup. https://www.terraform.io/docs/providers/azurerm/guides/service_principal_client_secret.html
I was running my CI on hosted Azure DevOps agents and they all have Azure CLI on them, but I don't think it is required. I would try setting up the environment variables the link above suggests with a service principal that has access to provision resources in your subscription.

Hi,
the problem is fixed, azure go sdk actually needs azure cli.
authentication are done via service principals and and expect specific env var to be set (was not documented)
AZURE_SUBSCRIPTION_ID
AZURE_CLIENT_SECRET
AZURE_TENANT_ID
AZURE_CLIENT_ID

Good to know. I am just starting to explore azure go sdk. I had to set those environment variables up in my CI pipeline in order to work with Terraform too.

So I have more details for anyone trying to automate tests against Azure with Terratest
You need an SPN that can do the provisioning and you need to setup two sets of environment variables.
These are the environment variables that Terraform is looking for:
ARM_SUBSCRIPTION_ID
ARM_CLIENT_SECRET
ARM_TENANT_ID
ARM_CLIENT_ID
See  https://www.terraform.io/docs/providers/azurerm/guides/service_principal_client_secret.html for details on authenticating with Terraform.
For the Azure SDK for Go, you need to configure a different set of environment variables.
AZURE_SUBSCRIPTION_ID
AZURE_CLIENT_SECRET
AZURE_TENANT_ID
AZURE_CLIENT_ID
See https://docs.microsoft.com/en-us/azure/developer/go/azure-sdk-authorization for details on authenticating with Azure SDK for Go.

Please see https://github.com/gruntwork-io/terratest/issues/89 for the status on Terratest with Azure. In particular, we're starting some work around it, and when that work is done, we'll be able to come back to this question!

Closing as the original issue was solved.


Additional fields for apiserver.yaml

Currently I'm unable to generate and deploy api server with just one command, because I'm using secured private docker registry and k8s cluster with RBAC enabled.
What solves problem for me is editing apiserver.yaml and adding ImagePullSecrets and ServiceAccount to apiserver deployment. But doing this manually is cumbersome.
I would like to run it on one command like this (and this pull request enables it):
apiserver-boot run in-cluster --name group_name --namespace default --image private_repo/IMAGE --image-pull-secrets private_repo_secret --service-account service_account_with_rights

Currently I need to run:
    apiserver-boot build container --image $IMAGE_NAME
    docker push $IMAGE_NAME
    rm config/apiserver.yaml
    apiserver-boot build config --name remoteenvsgroup --namespace default --image $IMAGE_NAME

and then edit apiserver.yaml and run kubectl apply.
Also I have seen controller-secret flag but it is not used and I'm not sure if it place holder for image-pull-secrets functionality.

I have created this pull request from wrong account, will recreate it from correct one.


Base ruby buildpack dockerimage on upstream

This uses the latest version and is based on a source that gets
constantly updated not like onbuild

/lgtm

@rawlingsj pinned it to current latest i.e. 2.6.3


algorithm : Added Maths' Functions

Describe Changes :
Issue : #10
Added :

[x] Absolute number
[x] Area  of various shapes
[x] Decimal to Binary Conversion

What remained?

Please make another PR titled "Set up tooling"

Perhaps we could make a good first issue for that. 🤔

The entire tooling is still in this PR. Please make another PR titled "Set up tooling" or similar first where you set up TypeScript, test etc. In particular I don't want the diff of this PR to be cluttered with the massive changes to package-lock.json. Same goes for your other PR.

Ok...


Language filter doesn't reflect effective setting if language is outside of SEARCHABLE_LANGUAGES[ ]

Change the language to Russian and enable Search only in this language by default.
Go to Following and expand the search filter. The Language dropdown was automatically set to Russian, and no claims are present for my English-based list (all is good here ✅ ).
Change the language to Chinese and enable Search only in this language by default.
Go to Following and expand the search filter. The Language dropdown is currently set to Any, yet no claims are present for my English-based list ❌.

If you toggle the Language dropdown to another language, and then back to Any, then visually things make sense now.

Expanding SEARCHABLE_LANGUAGES[] to fully match the global list of languages would fix the behavior, but I think there must be a reason for the array to be a smaller subset, so submitting this report instead.
Why would there be a smaller subset when Search only in this language by default is being applied to the global set, indicating all languages are searchable?

We meant to only show the checkbox for the languages that had enough content to search by, otherwise the searches would fail. We have some search improvements in the works which should make it work in all cases.


Unable to upload csv file

Hi,
I am trying to upload csv data using Rest API service. Service accepts data in text/csv format. When I POST the csv data with header pasting it to raw-Text data on POSTMAN app, it does work with no issues. However I am not able to do the same using file instead of copy-pasting data.
Can someone please help me on this?
Thanks,
GV

You'll need to look up the API documentation on this. Are you able to successfully send the file using cURL?

Hi Abhijit,
Thanks for your reply! I did go through the API guide. It's for Eloqua using it's Bulk API 2.0. It does support csv import. Using cURL all other operations are working fine except csv file import. That's the reason trying to see if it can be done through POSTMAN. As mentioned, POSTMAN imports the data when it is added directly as csv text in the call, but not sure how to make postman to read the data from file instead. I tried specifying file as @path/filename.csv. Error received with this approach is same with POSTMAN as well as cURL. Can you please confirm the way I'm sending data file to POSTMAN is correct?
Thanks,
GV8

This is an API limitation - if it does not support file uploads, then there's nothing that Postman can do about it. We'll be able to help if you're able to upload the file using cURL, but not using Postman.


[Fix] DayPicker: update calendarMonthWeeks if numberOfMonths is changed

This is a rebase of this pr:
https://github.com/airbnb/react-dates/pull/1395

@LMulvey @ljharb - any ideas on why the builds are failing?

@haojonat there's no need to close and reopen a PR to "kick" the tests; if they don't pass immediately, and should, then there's a problem with the repo and it's not something that can be fixed by a rerun.
The tests are failing right now due to the release of npm 7.

@ljharb ah gotcha, in that case, should i wait for the tests to get fixed?  or are we comfortable enough to get this overridden and merged?

Please do wait; I’ll rebase this PR once master is passing again.

Sounds good, thanks @ljharb

It looks like the new tests aren't actually covering the new lines, so the coverage requirement isn't being met.

@ljharb, i think i might have force pushed over one of your changes to run the LEGACY_PEER_DEPENDENCIES or something.  My bad.  Could you repush that?

@ljharb - noticed a case where the bug persists.  will push another commit to address that as well as take another look at the tests

@haojonat sounds great, thanks.

Why do the storybook knobs need to be removed?

@ljharb - it was causing the REACT=15 builds to fail for some reason.  /shrug

found another way to fix that.

Hi @ljharb, do you know what does releasing a patch (or minor) depends on?


Adds Scaleway to supported services

Tested with Scaleway Block Storage and working fine.

hello, which config have you used for scaleway ? I can't connect

hello, which config have you used for scaleway ? I can't connect

goofys --endpoint https://s3.<REGION>.scw.cloud <BUCKET_NAME> /mnt/data
goofys#<BUCKET_NAME>   /mnt/data        fuse     _netdev,allow_other,--file-mode=0666,--dir-mode=0777,--endpoint=https://s3.<REGION>.scw.cloud 0 0   0       0


Add Java8 beta (8u60+)

The latest beta is currently 8u60 and it has completely different packaging and installation from the previous versions.
https://derflounder.wordpress.com/2015/03/06/macjreinstaller-and-oracles-java-install-application/
It will require some extra care, most likely some different hacks etc.
I think I managed to do the installation bit here, but I'm struggling to make it work with the latest Android Studio.
I think I'll need to have a look again to how/where does app like Android Studio looks for different Java versions.

Fixed in https://github.com/caskroom/homebrew-versions/issues/1425


basedpyright: 1.22.0 -> 1.22.1

Automatic update generated by nixpkgs-update tools. This update was made based on information from passthru.updateScript.
meta.description for basedpyright is: Type checker for the Python language
meta.homepage for basedpyright is: https://github.com/detachhead/basedpyright
meta.changelog for basedpyright is: https://github.com/detachhead/basedpyright/releases/tag/1.22.1
Updates performed

Ran passthru.UpdateScript

To inspect upstream changes
Impact
Checks done

built on NixOS
The tests defined in passthru.tests, if any, passed
found 1.22.1 with grep in /nix/store/7c099mcyv6lbidldhayjkcqgsn067mds-basedpyright-1.22.1
found 1.22.1 in filename of file in /nix/store/7c099mcyv6lbidldhayjkcqgsn067mds-basedpyright-1.22.1

Rebuild report (if merged into master) (click to expand)

3 total rebuild path(s)

3 package rebuild(s)

First fifty rebuilds by attrpath

basedpyright
emacsPackages.lsp-bridge

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/7c099mcyv6lbidldhayjkcqgsn067mds-basedpyright-1.22.1 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A basedpyright https://github.com/r-ryantm/nixpkgs/archive/8e954ac5f60224a459b0030cafd13e105e2d66cf.tar.gz

Or:
nix build github:r-ryantm/nixpkgs/8e954ac5f60224a459b0030cafd13e105e2d66cf#basedpyright

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/7c099mcyv6lbidldhayjkcqgsn067mds-basedpyright-1.22.1
ls -la /nix/store/7c099mcyv6lbidldhayjkcqgsn067mds-basedpyright-1.22.1/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
nixpkgs-review result
Generated using nixpkgs-review.
Command: nixpkgs-review

x86_64-linux

:white_check_mark: 2 packages built:

basedpyright
emacsPackages.lsp-bridge

Maintainer pings
cc @kiike for testing.

[!TIP]
As a maintainer, if your package is located under pkgs/by-name/*, you can comment @NixOS/nixpkgs-merge-bot merge to automatically merge this update using the nixpkgs-merge-bot.

Add a :+1: reaction to pull requests you find important.

@NixOS/nixpkgs-merge-bot merge


Doc: getting started case shouldn't used regex_remap

With the getting started simple case using regex_map, we see that
pattern used in user@ messages as well as stack overflow
questions. Getting rid of that in favor of regular remap
rules, and giving a few examples of slightly more complex
examples to help gain intuition on how remap works.

[approve ci autest]


Need a way to use ThriftClientConfig for turning tcpNoDelay off (i.e. turning Nagle's algorithm on)

Thank you for reporting this issue and appreciate your patience. We've  notified the core team for an update on this issue. We're looking for a response within the next 30 days or the issue may be closed.


Wrong particle information for 1.17.1

Particles SMOKE, LARGE_SMOKE and SMALL_SMOKE don't exist. See 1.17 API: https://helpch.at/docs/1.17/org/bukkit/Particle.html
Correct particles: SMOKE_NORMAL and SMOKE_LARGE
After playing around some more, pretty much all particles don't match up with the API.

I would really like to contribute to this project. You can find my portfolio at https://www.linkedin.com/in/nathandiepeveen. Please contact me at<EMAIL_ADDRESS>

Why don't you start by looking at issues and then doing pull requests and fixing them Nexel? I'm not related to the project, but I agree it needs driven people like you to keep things improving.

@NexelOfficial I see what you mean. We generate our typings from the SpigotMC docs: https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/Particle.html
I'm unsure why there is a discrepancy between these. If you have any ideas or more info, I'd appreciate the help.


Update pages to use the new hbox/vbox classes

We can now remove the usage of the obsolete .hbox > .hgrow and .hbox.space-between selectors and use the new hbox/vbox classes instead in all the pages.

@dlaliberte: This is done as intended.


Fix typo

@changeworld : Thanks for your contribution! The author(s) have been notified to review your proposed change. @ningk


Add workaround for pod restart problem while restoring

When running through the restore procedure, kubernetes keeps restarting the nexus pod after 3 minutes (6 liveness/readiness probes fail), way shorter than the time required to untar the blobs tar file. I propose a workaround that worked for me.

@pires could someone have a look at this PR, please?

Thank you very much for your contribution!