Versions > 3.10.4 seem to break when using multiple flatpickrs on the same page

I noticed some weird behaviour after upgrading from 3.10.4 to 3.10.7. After a while of debugging it turns out that (sometimes, usually after 2-3 clicks) changing a flatpickr date triggers the onChange hooks of ALL flatpickrs on the page. This also seems to happen with onClose as well as other hooks. Code looked something like this:
let [from, setFrom] = useState<Date>(new Date());
let [to, setTo] = useState<Date>(new Date());
...
<Flatpickr
  data-enable-time
  value={from}
  onChange={(date) => {
    setFrom(date[0] as Date);
    }}
/>

<Flatpickr
  data-enable-time
  value={to}
  onChange={(date) => {
    setTo(date[0] as Date);
    }}
/>

After changing both inputs once, they would become interlocked and always both change. Very weird
EDIT: Just to make this clear, pinning the version back to 3.10.4 fixed the issue immediately.

Sorry, I'm not able to reproduce: https://codesandbox.io/s/zealous-cache-s3r3cn?file=/src/App.js
Can you try to reproduce in codesandbox and post a link?

I can, good suggestion! https://codesandbox.io/s/trusting-banzai-xg7rym
It appears more is required to produce said odd behaviour. In my version I have a shared options object defining format, minDate and a few other things. The issue appears now, but I can't make sense of it.
Thank you for looking into this btw, greatly appreciated!

Should be fixed in 3.10.9, thanks for the report! https://codesandbox.io/s/reverent-ride-x4qb4n

Hey @jacobmischka I have a similar issue with a slightly different setup in 3.10.9, not clear what is going on.
https://codesandbox.io/s/magical-cohen-ldzf4x

No, your onChange handlers just aren't right.
https://codesandbox.io/s/infallible-butterfly-9ituzg

Okay, do you have any idea why I have to do it that way? I've admittedly not been using React long but I've never seen this issue before?

The callback is basically just caching it, use the function form instead https://stackoverflow.com/a/59990838


v5 - When using gx-5 class total container width is 1156px, with other gx classes width is always 1140px

I think gutter width shouldn't influence total width of container. No matter which gx class I will use container should be always the same size.
Codepen example

The containers width is technically still 1140px, but the row inside it is overflowing it.
It looks like when the gutter size goes over the containers padding (1rem by default), the row will start overflowing the parent container.
If you add px-4 (which is 1.5rem, just like what the margin/padding are on the row/cols) to the container with the gx-5 row, you should see that it should display itself correctly.
Not really sure how to fix that, but thought I'd share my short research.

https://v5.getbootstrap.com/docs/5.0/layout/gutters/#horizontal-gutters explains some of this, but maybe the docs could be improved here.
/cc @MartijnCuppens

The containers width is technically still 1140px, but the row inside it is overflowing it.

Indeed

Not really sure how to fix that, but thought I'd share my short research.

v5.getbootstrap.com/docs/5.0/layout/gutters/#horizontal-gutters explains some of this, but maybe the docs could be improved here.

That's indeed the explaination. You can either use px-4 to fix the overflow but this influences the container width. overflow-hidden won't influence your container width.

https://v5.getbootstrap.com/docs/5.0/layout/gutters/#horizontal-gutters explains some of this, but maybe the docs could be improved here.

I missed that part.  My mistake. Adding overflow-hidden class fixed my problem. Thanks for explaining why it happened.


Is this project still maintained?

This project is working fine at my servers.

It doesn't on my end. See https://github.com/cloudflare/Stout/pull/45


cmake: Set default build type to Release

This commit introduces the CMake module "yamlInitializeBuildType" setting
the build type to "Release" if configure for a single config generator.
Module adapted from https://github.com/Slicer/Slicer/SlicerInitializeBuildType.cmake
Suggested-by: Julien Schueller<EMAIL_ADDRESS>

@sigmavirus24 Topic rebased, would appreciate if this could be merged after the CI complete. Thanks 😄


Remove runtime error message from covariances notebook

A runtime error popped up in the saved version of the covariances notebook pushed to samples.  Should rerun and remove:

@tercer PR #32 in whitenoise-samples should fix this

Closing this as it was resolved in the comment above


Unclear how to hit function from within Create React App in a way that is seamless between dev and production

I’m just getting started with Netlify Dev and found it unclear what URL to use to run functions.
My particular use-case is using Netlify Dev inside a Create React App project, but this might apply to using Netlify Dev with other frameworks as well.
When I run netlify dev it detects CRA and starts it as well. The output looks like this:
netlify dev
◈ Netlify Dev ◈
◈ Starting Netlify Dev with create-react-app
Waiting for localhost:3000.
◈ Lambda server is listening on 34567

><EMAIL_ADDRESS>start /Users/brandon/Code/reach
> react-scripts start

...Starting the development server...

.
Connected!
Waiting for localhost:34567.
Connected!

   ┌─────────────────────────────────────────────────┐
   │                                                 │
   │   ◈ Server now ready on http://localhost:8888   │
   │                                                 │
   └─────────────────────────────────────────────────┘

Compiled successfully!

You can now view reach in the browser.

  Local:            http://localhost:3000/
  On Your Network:  http://<IP_ADDRESS>:3000/

Note that the development build is not optimized.
To create a production build, use npm run build.

 So I made a function at functions/test.js, looked at the localhost URL at the bottom of the output, and tried localhost:3000/.netlify/functions/test, which didn’t work.
It took me a fair amount of time fiddling with the functions config in netlify.toml, reading docs, and fiddling with the path before I noticed Netlify Dev mentioned there is also a server running at localhost:8888 in the output.
OK, so now I can hit the function at localhost:8000/.netlify/functions/test. But now I’m confused as to how this is all supposed to work in development vs. production.
In development there are two servers, but in production there will be one. Or rather, there will be some routing rules that I can guess at but don’t seem to be represented here. Presumably static files will get routed first if they exist. And in order to make CRA work I’ll probably have to add a redirect for something like /* to /index.html. And then maybe Netlify handles any path that starts with /.netlify/functions specially and knows to route those to the functions?
So now back to working locally, inside of CRA if I want to link to a function, what do I do? If I link to /.netlify/functions/test it will resolve to localhost:3000/.netlify/functions/test which won’t work. But if I link to localhost:8888/.netlify/functions/test it will work in development but will break when I deploy to production.
What is the best practice here? Do I need to write a small utility to generate different URLs depending on the environment?

You can use /.netlify/functions/<functionName> without host and it will work on both netlify dev and production including draft URL's. Like so:
const response = await fetch('/.netlify/functions/hello-world').then(r => r.json())

If you have a need to use use host, you can use window.location.host and it will work on netlify dev and in production. Like so:
const response = await fetch(window.location.host + '/.netlify/functions/hello-world').then(r => r.json())

Thank you for opening this issue. Apologies for the long delay. You can ask usage questions on http://community.netlify.com as well.


How to be notified of backtracking?

I have trouble understanding the mechanism to handle backtracking when it cannot be avoided.
For instance, in examples/lua53_parse.cc I defined the following simple action to list unary operators:
template<typename R> struct action : pegtl::nothing<R> {};

template<> struct action<lua53::unary_operators>
{
    static void apply(pegtl::action_input const &in)
    {
        std::cout << "found unary operator \"" << in.string() << "\" at "
                  << in.line() << ':' << in.byte_in_line() << std::endl;
    }
};

Then parse this simple Lua snippet:
x = #l; f(#l)

… with this code:
pegtl::parse_string<lua53::grammar, action>("x = #l; f(#l)", "");

And the result is:
found unary operator "#" at 1:4
found unary operator "#" at 1:10
found unary operator "#" at 1:10

It appears that one action is executed twice because of backtracking when parsing f(#l). Is this the expected behaviour? What mechanism might the PEGTL provide to allow me to be notified that the second call to action<lua53::unary_operators>::apply() should be rolled back (and how much)?

That might be a bug in our Lua grammar, the idea was to eliminate all "major" backtracking while doing the conversion from CFG to PEG, but we might not have caught all places that need to be changed.
In general, the PEGTL currently takes a "hands off" approach regarding actions and backtracking, that is, the grammar and actions have to take care of it themselves, either by not performing actions when backtracking is possible, or taking precautions to undo the actions when backtracking occurs.
The general idea is that, for performance reasons, it would always be better to design the grammar and actions in a way that minimises backtracking, and eliminates it where actions are involved. If you would find some backtracking "undo"-notification useful we could look into the possibilities...

Thanks for the explanation; if it is indeed a bug in the grammar, I will look into it and try to provide an improvement. In general I am fine with the grammar having to be carefully designed so as to prevent excessive backtracking.
I am using a modified version of that grammar in a personal project and it has proved very useful so far, thank you (actually I’m very pleased with the PEGTL in general). For now since performance is not really an issue, my local quick and dirty workaround will be to replace any problematic foo rule with pegtl::seq<pegtl::at<foo>, foo>.

It is an "interference" between the rules for assignments and function calls.
The first time the unary operator is found is when f(#l) is parsed as the start of an assignment like f(#l)[foo]=42, which manages to parse the f(#l) and fails later.
The second time is when the statement is correctly parsed as a complete function call.
In other words, it was not enough that I worked across the expression rules to prevent backtracking, I also need to work across some of the statements...

I'm currently working on a grammar where backtracking cannot be avoided entirely (without the lookahead hack @samhocevar posted of course) and a way to hook in notifications would be nice.
My current approach is:
I define a rule for backtracking:
struct perform_cleanup : pegtl::success {};
struct backtrack : pegtl::seq<perform_cleanup, pegtl::failure> {};

which I use where backtracking is possible like this:
struct bad1 : pegtl::sor<[real rule], backtrack> {};

I have an action for the cleanup:
template<> struct action<perform_cleanup> {
  template<typename Input> static void apply(const Input& in, state& state) {
    state.cleanup();
  }
};

and (not needed) activate the tracer for debugging:
template<> struct control<backtrack> : pegtl::tracer<backtrack> {};

While this seems to work, there is probably room for improvement.
@ColinH do you think this could be optimized?

Would it be possible to see your grammar (and have some indication as to what the actions are doing)?

The grammar is here: https://github.com/groxxda/nixexpr/blob/master/expr.hh
Since it is quite long, I'll try to sum it up a bit.
The grammar should parse the nix language, here's the current flex lexer and bison parser.
Nix allows function definitions with the following syntax (among others):

variable: <function body>

At the same time, nix allows variable references like this:

variable

Here's the rule that matches identifiers and the action that simply converts them to an ast node.
When the parser encounters the expression var + 1, it does the following:

Try to match a function declaration

Match var as an identifier and save ast::name into state.value
Cannot match : so this is no function definition
Backtrack: Clear state.value

Try to match an arithmetic sum

Match var as an identifier and save ast::name into state.value
Match + and push a new state2 for the sum expression
Match 1 and save ast::number into state2.value
Finish the sum expression and construct ast::add into state.value like this: state.value = ast::sum(state.value, state2.value)

The reason to perform the cleanup when backtracking happens is to make this assertion happy.
This is further complicated by the fact that:

var:xyz is not a function declaration, but an URI.
var:[1] is not an URI but a function returning an array.

This is actually rather similar to the issue with the Lua grammar, perhaps unsurprisingly so: Two different kinds of statements or expressions that start with the same rules and are disambiguated only later.
The general idea to get rid of this is to push the decision as far down as possible:
From sor< seq< A, B >, seq< A, C > > to seq< A, sor< B, C > >.
Looking at what you write this might be easy in your case - both of the possibilities you outline not only start with the same rule, they also do the same thing - "save ast::name into state.value".
However looking at the details, it all looks a bit more complicated. What you are doing with the PEGTL and in general also looks rather impressive! Do you think you can use this idea to defer the decision until you know enough?
Or does this not work well with the way you have organised everything with the ast and next types of your parsing rules?
But the initial question of this issue was "how to be notified of backtracking".
The first solution that comes to mind is to let actions to alternatively define an undo() or backtrack() method that is called whenever a rule does not match. In the simplified example here you would have action< A >::apply() do your stuff, and action< seq< A, B > >::undo() do the cleaning up when B doesn't match (and before you attempt to match seq< A, C >.
Of course this spreads the work out a bit, but the alternative would make the library more complicated:
Let action< A >::undo() do the cleaning up for action< A >::apply() by having the PEGTL call undo() on the actions [that have this method] for all sub-rules of a failed rule.
Any other ideas or suggestions?

Thanks for the response, here are a few quick thoughts:

Or does this not work well with the way you have organised everything with the ast and next types of your parsing rules?

I noticed that the next type is not needed everywhere (I have a few rules with next = pegtl::success now that prove this). So I'll eventually replace the occurences of  struct X : A { using next = B; }; with struct X : seq<A, B>
Also I'm not really happy with having the rule annotated with the resulting ast type, so I'll likely remove the ast sub types and introduce a trait class to determine the resulting ast type.

Do you think you can use this idea to defer the decision until you know enough?

Although I think it is possible to do this, it's likely not worth the effort (partly because of unary prefix operators).
The naive approach would be:
expression = sor<function, binary>
function = seq <name, ':', expression>
unary = seq<opt<'!'>, name>
binary = seq<unary, opt<operator, unary>>

Gets:
expression = sor<seq<name, sor<function_end, binary_end>>, seq<unary, binary_end>>
function_end = seq<':', expression>
unary = seq<opt<'!'>, name>>
binary_end = opt<operator, unary>

which means quite some code duplication..
I could use change_action to get circumvent the duplication, but it looks like a huge effort..

Back to topic:

But the initial question of this issue was "how to be notified of backtracking".

I think your first suggested solution is too limited in it's usefulness to make it worth implementing.
Consider R = action<seq<A,B,C>> where action<A> and action<B> both execute state.value++ (increase an integer by one).
Now when R fails, action<seq<A,B,C>>::undo is lost, because it can't possibly know whether it should decrease state.value once or twice.
So I'd strongly prefer alternative two, where I define cleanup actions for A and B separately and PEGTL decides for me what cleanup actions should be called.
I'm not sure if PEGTL really needs support for this, because the approach I mentioned initially (make a dummy rule and associate it with an appropriate action) is a simple solution that already works.

I just discussed this with Colin and I think the "simple" solution might work like this:
sor< seq< A, B >, seq< A, C > >

will apply A, then B fails and you need to revert whatever A has done. In order to do this, you would then do this in
action< B >::undo();

This might not be the most efficient solution, but it will clearly work as when B fails you already know that A succeeded.
Do you think this approach will also work for your use-cases?

@d-frey:
This will not work for seq<star<A>, B> where action<A>::apply() { state.value++ }
I think to implement this cleanly, PEGTL has to call the undo function for the action whose apply function caused the state change (as many times as the apply function was called)..

How about
struct store_state : success {};

and
seq< store_state, star< A >, B >

for the first part, where
action< store_state >::apply();

saves the current value of state (or just state.value),
action< B >::apply();

"commits" the transaction (discarding the saved state from store_state) and
action< B >::undo();

uses the information from the saved state to restore the previous value.
I know this is all a bit manual and lacks the convenience one would wish for. OTOH it is straight forward, fits nicely into our design space and it is very general.

We are also looking into giving the whole thing a more transactional feeling, the action class could allow for three functions, begin(), success() or commit and failure() or rollback; in your example with seq<star<A>, B> you could use action<seq<star<A>, B>>::begin() to save the old counter value, action< A >::success() for the increment, and action< B >::failure() (or action<seq<star<A>, B>>:failure()?) to restore the old value...

If one wants to go with saving the state, I think the better approach is a state change for the (possibly failing) intermediate steps.
This already allows rollbacks and does not clutter the state with another variable and copying (part of) the state for rollback may be more expensive than the state change.
In my opinion an actions undo function is mostly useful if it undoes that same action, especially for cases like opt<A> or even star<A>, where it would be executed the appropriate amount of times.
For now I'm quite satisfied with the solution I described above which works similar to @d-frey s suggestion and also uses a dummy success rule.
That said, I want to emphasize that PEGTL already provides perfectly good ways to achieve what I need :+1:

It probably depends on the state change, but yes, sometimes this is more convenient.
Going back to undo(), you can always simulate the undo() with something like:
template<typename> struct on_fail : success {};
template<typename T> struct failable : sor<T,seq<on_fail<T>,failure>> {};

using in your grammar:
failable<X>

instead of plain X and specializing for both cases:
action<X>::apply() { ... } // X succeeded
action<on_fail<X>>::apply() { ... } // X failed

This is not too bad I guess, but of course it works in a very simple way. The PEGTL is still meant to be mean and lean, so a lot of things are possible but sometimes not very convenient. We are, however, always looking for generic, powerful yet simple ways to extend the library (time being our most sparse resource). What do you think about the above helpers and the way of adding undo() in a non-intrusive way? Is it worth adding this to contrib/?

Actually the additional hooks necessary for backtracking already exist, however they are called on the control class, not on the action. I have just extended examples/csv1.cc to show how this works.
Given that approach, and the work-arounds in the grammar discussed here, I will now close this issue, but feel free to continue the discussion or re-open if appropriate!


Fix exec into pods to resize volumes for multi-container pods.

The original code assumed only one container per pod.

Coverage decreased (-0.01%) to 11.17% when pulling 04b660519a477ca554a8a755ce162a8e8d5535b8 on volume_resize_with_multiple_containers into 6ee0349536659d1ea9d3e4d473fe1977797d7b8b on master.

:+1:

👍


Post request response code 500

Hi, i am trying to make a post request via the createRecord() method in the adapter, but i keep getting a response code 500.
this is my model:
class Employee extends Model
{
protected $table = 'Employees';
public $timestamps = false;
protected $fillable = [
    'firstName',
    'lastName',
    'company_id',
];

public function companies()
{
    return $this->hasOne(Company::class);
}

}
This is my adapter:
class Adapter extends AbstractAdapter
{
/**
* Mapping of JSON API attribute field names to model keys.
*
* @var array
*/
protected $attributes = [];
/**
 * Adapter constructor.
 *
 * @param StandardStrategy $paging
 */
public function __construct(StandardStrategy $paging)
{
    parent::__construct(new Employee(), $paging);
}

protected function createRecord(ResourceObjectInterface $resource)
{
    $record = new Employee();
    return $record;
}

protected function employees()
{
    return $this->hasOne('companies');
}

/**
 * @param Builder $query
 * @param Collection $filters
 * @return void
 */
protected function filter($query, Collection $filters)
{
    // TODO
}

}
This is the response i am trying to post(via my test classes):
'data' => [
'type' => 'Employees',
'attributes' => [
"company_id" => "1",
"firstName" => "test",
"lastName" => "test",
],
]

This is the response from Postman:
CloudCreativity\LaravelJsonApi\Exceptions\DocumentRequiredException: JSON API error in file /vendor/cloudcreativity/laravel-json-api/src/Http/Requests/ValidatedRequest.php on line 270

Have you followed the installation instructions on how to modify your Exception handler? The DocumentRequiredException should be converted to a 400 Bad Request response by the exception handler if you've updated your exception handler as per the installation instructions.

It's possibly to do with your headers. As per this:
https://www.w3.org/Protocols/rfc2616/rfc2616-sec4.html#sec4.3

The presence of a message-body in a request is signaled by the inclusion of a Content-Length or Transfer-Encoding header field in the request's message-headers.

I have been working on it for some time now, i still get an error 400, but when i write my tests i get this response,
"errors": [
{
"status": "400",
"title": "Required Member",
"detail": "The member 'data' is required.",
"source": {
"pointer": "/"
}
}
]
Do you still think it has to do with my headers?

Hi, thanks i get status 201 created now in postman with the added headers, now i will add the headers in my laravel project.


Add core data commands

https://github.com/AliSoftware/SwiftGen/issues/185
Added motoswift commands to swiftgen
Done:

New commands
Core Data xcdatamodel/xcdatamodeld parsers
stencil templates that works similar to XCode and Mogenerator
Tests

TODO:

documentation, readme

@AliSoftware please review

Example of commands with default arguments
swiftgen coredata human TypesModel.xcdatamodeld
swiftgen coredata machine TypesModel.xcdatamodeld
swiftgen coredata model TypesModel.xcdatamodeld

With defined arguments
swiftgen coredata human --output "./Human" --file-mask "{{class}}.swift" --template mogenerator TypesModel.xcdatamodeld
swiftgen coredata machine --output "./Machine" --file-mask "_{{class}}.swift" --template mogenerator TypesModel.xcdatamodeld
swiftgen coredata model --output Model.swift --enumName Model TypesModel.xcdatamodeld

TypesModel.xcdatamodeld.zip

Hello, @AliSoftware
By mistake merged all your new changes to this branch. Please can you assist what is better to do?
All other steps I did, you can check them
[ ] rebase that PR and fix the conflicts (they are mainly caused by the recent release of a 3.0.1 version)
[x] ensure your code is written with Swift 2.3 and it still works with Xcode 8, now that SwiftGen 3.0.1 has migrated to these versions
[x] Add documentation & update README.md
[x] Update documentation/Templates.md with the new StencilContext
[x] Maybe also add a playground page demonstrating that new command?
[x] Add an entry in the CHANGELOG to credit yourself

Not sure I see where you merged my changes into your branch (instead of rebasing?), at least I don't see it from GitHub. But if you did, you could git reset to the commit before the merge and start again from that.

moved all changes to https://github.com/AliSoftware/SwiftGen/pull/195 please review

Hello @AliSoftware please check https://github.com/AliSoftware/SwiftGen/pull/195


[DESIGN] Get UI/UX Feedback and Iterate

Designer Task 📐
What? ❓
Please review your Figma designs with the co-pres, and Sandy. Document your findings in the Google drive as well.

Closing


UnicodeDecodeError: invalid continuation byte

When running a simple extract on this website, the program throws a UnicodeDecodeError. This exception has not been observed so far for any of the other websites in my dataset.
The traceback is given below:
Traceback (most recent call last):
  File "/home/user/anaconda3/lib/python3.6/site-packages/goose3/__init__.py", line 128, in crawler_wrapper
    article = crawler.crawl(crawl_candidate)
  File "/home/user/anaconda3/lib/python3.6/site-packages/goose3/crawler.py", line 128, in crawl
    return self.process(raw_html, parse_candidate.url, parse_candidate.link_hash)
  File "/home/user/anaconda3/lib/python3.6/site-packages/goose3/crawler.py", line 169, in process
    self.article._tags = self.tags_extractor.extract()
  File "/home/user/anaconda3/lib/python3.6/site-packages/goose3/extractors/tags.py", line 47, in extract
    tag = self.parser.getText(elm)
  File "/home/user/anaconda3/lib/python3.6/site-packages/goose3/parsers.py", line 186, in getText
    txts = [i for i in node.itertext()]
  File "/home/user/anaconda3/lib/python3.6/site-packages/goose3/parsers.py", line 186, in <listcomp>
    txts = [i for i in node.itertext()]
  File "src/lxml/etree.pyx", line 2963, in lxml.etree.ElementTextIterator.__next__
  File "src/lxml/etree.pyx", line 1033, in lxml.etree._Element.tail.__get__
  File "src/lxml/apihelpers.pxi", line 670, in lxml.etree._collectText
  File "src/lxml/apihelpers.pxi", line 1405, in lxml.etree.funicode
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe2 in position 8: invalid continuation byte

And the code to reproduce this error:
from goose3 import Goose

def main():
    article = g.extract(url='http://wiitalia.it')
    print(article.title)

g = Goose()

if __name__ == '__main__': main()

Any ideas as to what's going on here?

@barrust I believe that this is a related error, reproducible with the following website aquaticplantcentral.com
Traceback (most recent call last):
  File "/home/user/anaconda3/lib/python3.6/site-packages/goose3-3.1.4-py3.6.egg/goose3/__init__.py", line 128, in crawler_wrapper
    article = crawler.crawl(crawl_candidate)
  File "/home/user/anaconda3/lib/python3.6/site-packages/goose3-3.1.4-py3.6.egg/goose3/crawler.py", line 132, in crawl
    return self.process(raw_html, parse_candidate.url, parse_candidate.link_hash)
  File "/home/user/anaconda3/lib/python3.6/site-packages/goose3-3.1.4-py3.6.egg/goose3/crawler.py", line 204, in process
    self.article._top_node = self.extractor.calculate_best_node(doc)
  File "/home/user/anaconda3/lib/python3.6/site-packages/goose3-3.1.4-py3.6.egg/goose3/extractors/content.py", line 88, in calculate_best_node
    text_node = self.parser.getText(node)
  File "/home/user/anaconda3/lib/python3.6/site-packages/goose3-3.1.4-py3.6.egg/goose3/parsers.py", line 186, in getText
    txts = [i for i in node.itertext()]
  File "/home/user/anaconda3/lib/python3.6/site-packages/goose3-3.1.4-py3.6.egg/goose3/parsers.py", line 186, in <listcomp>
    txts = [i for i in node.itertext()]
  File "src/lxml/etree.pyx", line 2961, in lxml.etree.ElementTextIterator.__next__
  File "src/lxml/etree.pyx", line 1014, in lxml.etree._Element.text.__get__
  File "src/lxml/apihelpers.pxi", line 670, in lxml.etree._collectText
  File "src/lxml/apihelpers.pxi", line 1405, in lxml.etree.funicode
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x92 in position 109: invalid start byte

My current goose3 version is installed from source.

Yep, great catch. It looks like another place where there can be a mismatch. For https://www.aquaticplantcentral.com/84724/new-large-pearl-grass it looks like it is that the headers say that it is using a different encoding than what is actually used (probably default). I should have something later today in a PR.


Update FR translation

Suggested FR translation improvements by a native speaker.

Improving French sentences.

Thanks for making One-Time Secret better! This will be in the next release.

The updated french translation is now live: https://onetimesecret.com/?locale=fr
Let me know if you would like to change the name or link on the thank you page:
https://onetimesecret.com/translations

Hi,
Sounds good - the page does not display my translation yet though ?
Best.

Hi,
I see that @netagence and I had the same idea at the same time (@delano I sent you a translation file by e-mail, did you received it?).
Anyway, thanks for the quick release.
However, like @netagence, I can't see the new translations.
Thanks,

Thanks for following up guys. The updated translation should be working now:
https://onetimesecret.com/?locale=fr
@fr-laurentn I hadn't seen your email when I did the previous update. Funny that you both had the same thought at the same time. I went ahead and added you to the translation page as well.

Confirmed to work now. Not pure chance, Laurent pointed at your nice tool and underlined the FR translation could be improved, which I realized was in GitHub so could be worked on, and I started doing so on a break at work failing to check if he'd do the same. Anyway mine may need polishing up so we'll both contribute in the end I guess. Thanks to both of you.

@delano It works like a charm. Thanks for the credits, I appreciate.


[SPIRV] Add loop materialization passes to transform dialect cleanup

Cleans up any residual linalg ops by converting them to loops to help prevent failures in later cleanup passes (e.g. SPIRVVectorize and FlattenMemRefSubspan).

It should be fine to have; but we'd better to add this when supporting some concrete cases, so that we can have proper tests.

SG, will roll this into another change then.


DBeaver minimizes without asking for

reset perspective
click on connection selector at top
click on any entry at the selection
(if DBeaver isn't minimized already:) click on postgresql schema selector while having connection selector open

Result: DBeaver minimizes/switches Window manager tab.

It is even enough if I click on connection switcher and click again (same spot, don't move the cursor). DBeaver just gets minimized.

I can't reproduce this.
What's your OS/window manager?

My system:

Windows 10 Pro
latest DBeaver version
latest Java 8 version

Can I provide you with anything else?

Hi there,
@GiantCrocodile , @serge-rider I just realized it while I was looking for some database at that combo, when I clicked on the borders of combo's list, all dbeaver main window just did a small/fast wink ...as minimized and maximized.
The image bellow, are the point where I did a single or double click to main window throws that small/fast wink.

I believe that can some bug or event that is triggered by click on combo's list, because on database or connection chances, some actions are invoked to refresh or repaint somethings on main window, etc.
PS: I don't remember about this error on previous releases, but I can check about it today at morning.

PS: I don't remember about this error on previous releases, but I can check about it today at morning.
This didn't happen in previous releases (~ maybe 2-3 releases earlier) to me.

Still can't reproduce that :( Although I've tried every possible way to click on these combos.

Uhmm,
First, it's not important or even critical, just a little bit strange.
When I click in one of those combos, the option list is shown to me and the main window loses his focus, this focus is in selected combo. So, if user clicks in one of those list borders, and, select one item or click back on script editor or dbeaver's main window, that small/fast wink is triggered.

Looking at combo of driver type on default sql editor of Eclipse, it doesn't has that option list resizer:

I don't know how to explain it, but I think that option list resizer could be the cause of this abnormality.

I also tried to record this problem using 'http://recordit.co/' app, but when it's recording my screen this 'bug' doesn't occur.

Is that option list an dialog windows ?

Eventually I've reproduced that on another Win10 machine.

It was fixed (I doesn't appear on my local environment anymore) although I'm not 100% sure. Please check in 4.1.2 and reopen if it is still there.

There is a PC here, where dbeaver minimizes another open window, usually Chrome. I'm not sure about that what is causing it's the fact of that combo of connections and databases are window, maybe their events as resize, moving, etc. are the root of this 'bug'.
What about using common combobox instead these customized combos?
PS: 4.1.2 release still has this strange behavior.

Another one, once dbeaver is maximized, when you select one database through database combo, dbeaver minimizes. I tested it in 6 pcs with Windows 10, 3 of them have updates deactivated.

Yes, I also can see this on some machines (windows 10.1?).

Issue is still there for me with latest release.

Yes, it was still there in 4.1.2.
Did you try to build from sources?

I'm sorry then, I didn't build it this time from source as I thought it is already in latest release.

Just providing some feedback about it, it's OK on 4.1.3.
Thanks.


Unable to output public_dns/public_ip value when requesting spot instances

Adding the snippet below to the outputs.tf file:
output "public-dns" {
  value = ["${aws_spot_instance_request.aws_dl_custom_spot.*.public_dns}"]
}

output "ssh-cmd" {
  value = ["${format("ssh -i %s%s.pem ubuntu@%s", var.ssh-key-dir,
    aws_spot_instance_request.aws_dl_custom_spot.*.key_name,
    aws_spot_instance_request.aws_dl_custom_spot.*.public_dns)}"]
}

Results in the following error when executing the command terraform apply:
* output.public-ip: Resource 'aws_spot_instance_request.aws_dl_custom_spot' does not have attribute 'public_dns' for variable 'aws_spot_instance_request.aws_dl_custom_spot.*.public_dns'
* output.ssh-cmd: Resource 'aws_spot_instance_request.aws_dl_custom_spot' does not have attribute 'public_dns' for variable

This issue is linked to https://github.com/terraform-providers/terraform-provider-aws/issues/4313.

I had the same issue.  I added wait_for_fulfillment = true to the resource "aws_spot_instance_request" "aws_dl_custom_spot" section and it seems to have fixed it.  Can you try adding that and let us know if it fixed it for you?

By the way -- thanks for this working example project!  It saved me a lot of time.

No problem @dennisobrien I will close this issue now.


Feature request: azure US GOV Provider

Hi Looking to see if additional provider can be put in place for Azure US GOV

You should be able to use the existing providers and override the URLs to use the gov tennant, is there any reason that this doesn't work already?

Hi Joe
I wasn't aware this was possible,  Can you advise on the command flag i need to use to do this ?
regards

Assuming you are using the Azure provider, you will need to set the --redeem-url and --login-url options


How to use translate ? (RESOLVED)

Hi,
You put many language for select2, but how to use it ?
I would like to translate my select2 in french ?
select2_locale_fr
How to do it ?
Thanks for all

Where is select2_locale_fr?
I am using select2 4.0.

In 4.0 the translations are provided in dist/18n/fr.js.

Thanks kevin-brown!
I found that not use select2.js but select2.full.js .


Lint output

Fixes #16

Seems there are 9 SwiftLint violations (line_length) in the test code itself, could be worth fixing before we merge this.


chore: add instructions for generating testnet_blocks.txt

This PR adds instructions for generating testnet_blocks.txt hex file.
EXC-1813

Would it make more sense to guard the logic of saving to a file behind a rust feature? So that we don't need to make source code changes.

thank you, done!


Error on Install - AWS Cluster

Hi,
I'm getting some errors trying to install a Flynn cluster on AWS.
Event: log: Running bootstrap
INFO[02-02|10:50:25] Event: log: dial tcp <IP_ADDRESS>:22: connection refused
INFO[02-02|10:50:26] Event: log: dial tcp <IP_ADDRESS>:22: connection refused
INFO[02-02|10:50:27] Event: log: dial tcp <IP_ADDRESS>:22: connection refused
INFO[02-02|10:50:42] Event: log: online-hosts: start
INFO[02-02|10:52:42] Event: log: Running `sudo flynn-host collect-debug-info` on <IP_ADDRESS>
INFO[02-02|10:52:42] Event: log: sudo: unable to resolve host ip-10-0-0-28
INFO[02-02|10:52:42] Event: log: t=2016-02-02T15:52:42+0000 lvl=info msg="uploading logs and debug information to a private, anonymous gist"
INFO[02-02|10:52:42] Event: log: t=2016-02-02T15:52:42+0000 lvl=info msg="this may take a while depending on the size of your logs"
INFO[02-02|10:52:42] Event: log: t=2016-02-02T15:52:42+0000 lvl=info msg="getting flynn-host logs"
INFO[02-02|10:52:42] Event: log: t=2016-02-02T15:52:42+0000 lvl=info msg="getting job logs"
INFO[02-02|10:53:12] Event: log: t=2016-02-02T15:53:12+0000 lvl=eror msg="error getting job logs, falling back to on-disk logs" err="could not list hosts: Get http://<IP_ADDRESS>:1111/services/flynn-host/instances: dial tcp <IP_ADDRESS>:1111: connection refused"
INFO[02-02|10:53:12] Event: log: t=2016-02-02T15:53:12+0000 lvl=info msg="getting system information"
INFO[02-02|10:53:12] Event: log: t=2016-02-02T15:53:12+0000 lvl=eror msg="error capturing output of \"virsh -c lxc:/// list\"" err="exit status 1"
INFO[02-02|10:53:12] Event: log: t=2016-02-02T15:53:12+0000 lvl=eror msg="error capturing output of \"virsh -c lxc:/// net-list\"" err="exit status 1"
INFO[02-02|10:53:13] Event: log: t=2016-02-02T15:53:13+0000 lvl=eror msg="error capturing output of \"bash -c tail -n 1000 /var/log/flynn/*.log\"" err="exit status 1"
INFO[02-02|10:53:13] Event: log: t=2016-02-02T15:53:13+0000 lvl=info msg="creating anonymous gist"
INFO[02-02|10:53:13] Event: log: t=2016-02-02T15:53:13+0000 lvl=info msg="debug information uploaded to: https://gist.github.com/834b72c3ba954aa8a04b"
INFO[02-02|10:53:13] Event: cluster_state: error
EROR[02-02|10:53:13] Error: bootstrap: online-hosts check error: timed out waiting for 3 hosts to come online (currently 0 online)

I'm not sure what I'm doing wrong. Could someone please help with this?
Best,
Aaron

Hmm, looks like the the AWS instances might be coming up slowly. Did you try more than once?

yes, I've tried about 5 times now. Same thing every time.

Okay, what region?

us-east

I'm getting the same thing intermittently today, but it was fine yesterday

@jvatic bump the bootstrap timeout.

it was fine yesterday for me as well.

The build fails for the pull-request :(
Is there a way for me to tweak my local copy?

I'll merge and get a release out in the next two hours.

:+1:  :100:
Thank you!

It looks like there is something going on with the libvirt socket. I'm investigating.


naming_authority should be added to the related_dataset id when relation_type is parent

The related_dataset element should also have value on the form naming_autorithy:UUID as we do for the metadata_identifier element.
So in nc_to_mmd.py in the get_related_dataset-function, we will need to add similar logic as on lines 874-890 in the get_metadata_identifier- function in the nc_to_mmd.py, so that lines 900-904 will be something like this:
for i in range(len(ids)):
    data.append({
         'id': naming_authority + ':' + ids[i],
         'relation_type': relation_types[i],
     })

This will make sure that the relation between parent/child is concurrent. I.e a child have related_dataset: naming_authority:UUID pointing to the parent with the metadata_identifier: naming_authority:UUID
Then DMCI will override this for dev and staging environments.

we'll need a new issue for dmci too, once this is done, because at the moment dmci overrides only the namespace in metadata_identifier

good point, the way the namespace replacement works in dmci for the metadata_identifier at the moment is that we append .dev or .staging to whatever the namespace is, but we could implement the replacement for the parent behind an if guard, so that it's done only if the parent namespace is no.met.. unless it's possible that a parent is on data.met.no but not in dev nor staging? maybe as you say the safest is to leave the parent untouched

In this case, I think we can only check that the related dataset id is correctly composed? I.e., check the format, and add an error to self.missing_attributes['errors'] if it is wrong.

I have an implementation in branch [fix-issue-242] (https://github.com/metno/py-mmd-tools/tree/fix-issue-242).
I tested a satellite swath dataset as it as parent/child relation with missing naming authority in the related_dataset element.
When I run nc2mmd the error I want is raised, but I get some additional stack-trace error, but I cannot see whats causing it.
All tests and coverages pass locally, I will create an MR to see if the pipeline fails.
Here is the command I run, and the output I get:
nc2mmd -u https://thredds.met.no/thredds/dodsC/remotesensingsatellite/polar-swath/2023/04/20/noaa19-avhrr-20230420212842-20230420213616.nc -o mmd/ -i /lustre/storeB/immutable/archive/projects/remotesensing/satellite-thredds/polar-swath/2023/04/20/noaa19-avhrr-20230420212842-20230420213616.nc -l log/
WARNING:root:Using default values METNCS for the MMD collection field. Please, specify other collection(s) if this is wrong. Valid collections are provided in the MMD documentation (https://htmlpreview.github.io/?https://github.com/metno/mmd/blob/master/doc/mmd-specification.html#collection-keywords)
/home/magnarem/anaconda3/envs/testenv/lib/python3.9/site-packages/py_mmd_tools/nc_to_mmd.py:1352: UserWarning:
	CF attribute featureType is missing - one of the feature types listed in Table 9.1 in https://cfconventions.org/Data/cf-conventions/cf-conventions-1.10/cf-conventions.html#_features_and_feature_types should be used.
  warnings.warn('\n\t'+'\n\t'.join(self.missing_attributes['warnings']))
Traceback (most recent call last):
  File "/home/magnarem/anaconda3/envs/testenv/bin/nc2mmd", line 8, in <module>
    sys.exit(_main())
  File "/home/magnarem/anaconda3/envs/testenv/lib/python3.9/site-packages/py_mmd_tools/script/nc2mmd.py", line 122, in _main
    main(create_parser().parse_args())  # entry point in setup.cfg
  File "/home/magnarem/anaconda3/envs/testenv/lib/python3.9/site-packages/py_mmd_tools/script/nc2mmd.py", line 112, in main
    req_ok, msg = md.to_mmd(
  File "/home/magnarem/anaconda3/envs/testenv/lib/python3.9/site-packages/py_mmd_tools/nc_to_mmd.py", line 1354, in to_mmd
    raise AttributeError('\n\t'+'\n\t'.join(self.missing_attributes['errors']))
AttributeError:
	related_dataset_id ACDD attribute is missing naming_authority in the identifier, relation parent.

I was checking a bit more in this script, and have concluded that this is an expected error.
Since we have this line  File "py_mmd_tools/nc_to_mmd.py", line 1354, in to_mmd     raise AttributeError('\n\t'+'\n\t'.join(self.missing_attributes['errors']))
It is expected that the traceback is printed when we raise an exception. The question is if the raised exceptions should be handeled somewhere else? It is why we rais an exception there in the first place.
Also, it is probably not good that the script fails if no arguments are given.
/py_mmd_tools/script/nc2mmd.py
Traceback (most recent call last):
  File "/home/magnarem/git/s-enda/metno/py-mmd-tools/./py_mmd_tools/script/nc2mmd.py", line 126, in <module>
    main(create_parser().parse_args())
  File "/home/magnarem/git/s-enda/metno/py-mmd-tools/./py_mmd_tools/script/nc2mmd.py", line 84, in main
    raise ValueError('OPeNDAP url must be provided')
ValueError: OPeNDAP url must be provided

Here we see similar behaviour, that we raise an error, and the stacktrace are printent.
Here we probably should print the command line help?

The #242 issue is solved, the id is checked and a message is printed to the user when the id is note on the correct form.
For the other issues commented in the end of #242. If we will solve this, we can create a new issue.
A solution is to modify the nc2mmd.py in the scripts folder, by adding try except to the calls.
def _main():  # pragma: no cover
    try:
        main(create_parser().parse_args())  # entry point in setup.cfg
    except ValueError as e:
        print(e)
    except AttributeError as e:
        print(e)

if __name__ == '__main__':  # pragma: no cover
    try:
        main(create_parser().parse_args())
    except ValueError as e:
        print(e)
    except AttributeError as e:
        print(e)

Solved by #251


Azure SDK Review - [Introduction to Azure Monitor Metrics]

New SDK Review meeting has been requested.
Service Name: Azure Monitor Metrics
Review Created By: Srikanta Nagaraja
Review Date: 07/10/2023 02:05 PM PT
Hero Scenarios Link: Not Provided
Architecture Diagram Link: here
Core Concepts Doc Link: Not Provided
APIView Links:
Description:
Detailed meeting information and documents provided can be accessed here

Meeting updated by Srikanta Nagaraja
Service Name: Azure Monitor Metrics
Review Created By: Srikanta Nagaraja
Review Date: 07/10/2023 02:05 PM PT
Hero Scenarios Link: here
Architecture Diagram Link: here
Core Concepts Doc Link: here
APIView Links: Java,
Description:
Detailed meeting information and documents provided can be accessed here

There are multiple options to consider. We'll discuss them in the arch board but the following two API views have the APIs updated for one of the options (Set data plane endpoint when creating the MetricsQueryClient - option 2 here)
.NET API view
JS API view


Make apxs work again

This mostly fixes the items in #4, or at least makes it possible to build mod_wsgi again...

Since we are keeping these -dev libraries, can we put them up with the earlier dependencies near line 15 so we can share the layer between 2.2 and 2.4?

Thanks for your contribution! :cake:

@yosifkit Done. Also nicely simplifies the diff :)

libc6-dev is not needed? Or maybe I am missing something.

libc6-dev is an indirect dependency of both libapr1-dev and libaprutil1-dev, so we don't need to explictly install it.

Oh, nice! LGTM
cc @tianon

LGTM, thanks!


add some 3d effects  in the footer it looks so simple now having some…

… 3d effects
What has changed?
Footer UI
Please include a summary of the change.??
the footer ui is very much simple made the things having some 3d effect in it so that user having some game to play with 3d and gave a better view to him
This PR Resolves #(issue)
Type of change
How Has This Been Tested?
Checklist:

[ ] My code follows the style guidelines of this project.
[ ] I have performed a self-review of my own code.

done, i added dco


hotfix: Blank line can lead to a safety failure.

Please, I've been using this framework for 20 years in my business and this can ruin my app.

I've reviewed, locally, the alterations made by @CleoMenezesJr on this pull request. The framework is faster than never.
This PR is necessary, I'd like to have it on production as soon as possible.

Can someone get this merged please? It's directly affecting my business.

I can confirm this is a valid fix.


Add new --cilium-version option for when auto-detection fails

https://github.com/DataDog/cilium-cli/blob/0.11-dd/connectivity/suite.go#L59 can fail if you don't have the cilium-cli-helm-values secret. This adds a basic option to set the cilium version for when the autodetection fails instead of always using 0.11. This is needed for the allow-all-except-world test when running on clusters before 0.11.

Nevermind, this is upstream https://github.com/cilium/cilium-cli/pull/982
I'll just upgrade our fork


Merge upstream fix to get rid of future library

A merge of https://github.com/robgolding/django-radius/pull/27

going with the squash instead


Quick Sort in python added

Here I have added the code for quick sort which is in python.

Sorry this issues is already closed gor for another one...

ok


Load a library that calls functions from a dependency from java

I want to call the dll output by unmanagedexportts from JNA.
However, all dlls that are dependent on dll must be placed in the same folder as JRE.
I think it would be nice if there was a way to go to load dll in the same folder as dll in a folder different from JRE. I would like you to tell me if there is something else in a different way.
https://github.com/java-native-access/jna/issues/590

It shouldn't be related for DllExport at all, because it only adds records into EXPORT_DIRECTORY (read more about PE32/PE32+).
That is, the final dynamic-link libraries(DLL) should contains the addresses of exported functions/variables as for your example from #25

https://msdn.microsoft.com/en-us/library/windows/desktop/ms680305.aspx

If you have problem with paths:
For example, the windows platform (WinAPI) provides LoadLibrary functions for work with dynamic libraries (DLL).
https://msdn.microsoft.com/en-us/library/windows/desktop/ms684179.aspx
HMODULE WINAPI LoadLibraryEx(
  _In_       LPCTSTR lpFileName,
  _Reserved_ HANDLE  hFile,
  _In_       DWORD   dwFlags
);

You can try to use flag 0x00000200 (LOAD_LIBRARY_SEARCH_APPLICATION_DIR) - If this value is used, the application's installation directory is searched for the DLL and its dependencies.
or 0x00000400 via AddDllDirectory etc.
e.g. my implementation for .NET uses 0x00000008 (LOAD_WITH_ALTERED_SEARCH_PATH)
The JNA uses this logic: https://github.com/java-native-access/jna/blob/master/src/com/sun/jna/NativeLibrary.java
so you can also try to use:
public static final void addSearchPath(String libraryName, String path)

+ other specific way for JNA, and any own implementation of course.
By the way:
java.lang.Error: Invalid memory access

the problem can be for different architectures (x64/x86 ...). I don't remember exactly error for java but it looks like incorrect access in memory by reading of incorrect addresses etc.

ah yes
please note, this DllExport has differences from the original UnmanagedExports

Details - https://github.com/3F/DllExport/blob/master/Readme.md
Changes - https://github.com/3F/DllExport/blob/master/changelog.txt


Redirect the WASM backtrace to branch main

Desc
Squash merging

Sorry, I was trying to PR to the forked patractlabs/wasmi


Align the UserDefaults implementation with Darwin Foundation

the register(defaults:) function now ensures that values are stored in the internal registration dictionary as NSObject objects which allows object(forKey:) and friends to actually find those values
the bool(forKey:), integer(forKey:), double(forKey:) and float(forKey:) functions now implicitly convert string represetations to the requested type
the set(_:forKey:) function now ensures that values of type String, Int and Double are first converted to the proper CFType before they are stored in the CFPreferences object
register(defaults:) and set(_:forKey:) now cause a fatalError() if an attempt is made to pass an unsupported type. This more closely resembles what the ObjC Foundation does and makes bugs in the code obvious
added unit tests to cover the above problems
added the CFXMLPreferencesDomain.c file to the macOS project and enabled the UserDefaults unit tests on macOS
enabled support for CFXMLPreferencesDomain on Linux, added it to the Linux build process and enabled the UserDefaults unit tests on Linux

There is hack in UserDefaults:47 that I want to specifically call out and that revolves around a failing forced cast on Linux:
            return (anObj as! CFString)._nsObject
This cast compiles and executes fine on macOS. It compiles fine on Linux but triggers a crash on Linux. It's not clear to me why this is so because "anObj" is definitely a CFString at that point. I confirmed that by printing out the CFTypeID of "anObj" on Linux.
I replaced the CFString casts with NSString casts for now. This code compiles and runs fine on macOS and Linux. However, I'd like to understand why the cast fails on Linux and what the proper solution is. Note that if write this code:
if let theObj = anObj as? CFString {
and try to compile it on Linux, then the compiler complains that the conditional cast will always succeed at runtime. Well that then begs the question though why the forced cast crashes the app...
@phausler : I guess that you might know why the forced CFString cast doesn't work on Linux while it does on macOS?

@swift-ci please test

if the object is an NSString you cannot use as? cast to convert to CFString you must use unsafeBitCast because on Linux hosts it does not know that the CFTypeRef of CFStringRef is actually a swift object, it just thinks it is an opaque ref counted type. So my guess is that on linux that line of as? CFString always fails.

Thanks for the info. I've updated the pull request such that we now do unsafeBitCast calls instead of the as! NSType force casts.

@swift-ci please test

@swift-ci please test

Hmm, failure in clang_builtins. Let's try again and see what happens.

@swift-ci please test

@swift-ci please test


Custom partial helper

Hi,
I want to create a custom partial helper.
e.g. {{include partialanme}} instead of {{> partialname}}
Is there a way to reference the partials from within the helper function?

Yep! Under the hood, gulp-hb uses the handlebars-wax library. It supports a pattern where you export a factory inside your custom helpers or partials files. That's how handlebarts-layouts does it.


🐛 BUG: TCP Stream read() function gets stuck

Which Cloudflare product(s) does this pertain to?
Workers for Platforms, Workers Runtime
What version(s) of the tool(s) are you using?
3.18.0 [Wrangler]
What version of Node are you using?
v20.11.0
What operating system and version are you using?
Windows 11
Describe the Bug
After performing a write operation and expecting a response, the issue arises when calling read() again. It gets stuck in this scenario.
import { connect } from 'cloudflare:sockets'

const socket = connect(...);

socket.writable.getWriter().write(...);
const { value: bytesRead } = socket.readable.getReader().read(); // Valid: Expected a response from the server
// Tries to read again to reproduce the behaviour
socket.readable.getReader().read(); // Invalid: The program got stuck here and there are no returns or error throwns

Please provide a link to a minimal reproduction
No response
Please provide any relevant error logs
No response

@nicolasbeauvais why do you expect it to return done: true? In your example the server keeps the connection open, so the socket isn't closed immediately after the data is sent. If you add a connection: close header then it doesn't get stuck anymore.

Thank you for fixing my playground example @dom96, the read() behaviour makes more sense now :bow:


ui/ux(cli): create and update message

This is really just for better UX:
Whenever I create or update a changelog with clog the output I get is always:
$ changelog updated (took xx ms)

I  think it'd be nicer if the tools states that it created a changelog, if that's the case and only updates if that's the case.

This is an easy fix, but with #58 I don't know if they're compatible. For example, if I do
$ clog > some_file.md

I may not want that file to contain "Updated/Created 15ms" ( now if we don't implement #58 this is a moot point and very simple to fix :P )

@kbknapp you're totally right. Does it make sense to generate that output only if a writer is applied? Not sure what's the standard way in UNIX commands to handle this..

@PascalPrecht Yes, that's good idea, only write this message when not writing to stdout.

@kbknapp I'd like to keep as UNIX-y as possible. If that's how all UNIX commands handle these cases, I'm voting for that.


Add stand-alone installation makefiles

These Makefiles and associated scripts make it easier to install
kubensenter, the kubens.service, and systemd drop-in wrappers for other
services.
Signed-off-by: Jim Ramsay<EMAIL_ADDRESS>

I think I'm going to add a little more documentation too


Update some recursive logs to V(5)

What type of PR is this?
/kind code-refactoring
What does does this PR do / why we need it:
These are some recursive logs related to sync and file indexer.  They are printed continuously  at V(4)  while odo push, making it difficult to check other debug logs. They are trace kind of logs, should be at V(5)
Which issue(s) this PR fixes:
Fixes #?
How to test changes / Special notes to the reviewer:

CI is happy ;)
/lgtm

/approve

We need to have a discussion with regards to V(5), this should not have been merged without an update to documentation.

Reverting the changes for now, as people debugging will suddenly find that the debugging logs have disappeared ..


READ impliedBy CONFIGURE impliedBy ADMINISTER

We need to have this order of implies to have a good inheritance of permissions (if not, CONFIGURE_JENKINS will miss READ permission).

Already merged in better_permissions then in FGP. This PR is useless now.


ref(boot.go,jobs/jobs.go): give each periodic its own frequency

Fixes https://github.com/deis/workflow-manager/issues/69

LGTM pending massages to jobs_test.go

[Current coverage][cc-pull] is 25.94%

No coverage report found for master at d2296be.

Powered by Codecov. Last updated by [d2296be...a2cb9db][cc-compare]
[cc-base-branch]: https://codecov.io/gh/deis/workflow-manager/branch/master?src=pr
[cc-compare]: https://codecov.io/gh/deis/workflow-manager/compare/d2296bec9264eb54177c610ff0d410fb0e963b4b...a2cb9db811daf004034dd2d17877cbef96991ea1?src=pr
[cc-pull]: https://codecov.io/gh/deis/workflow-manager/pull/82?src=pr


ClinicalCase: automatic detection of statistically significant differences between cohorts

This issue has been mirrored in Jira: https://reddata.atlassian.net/browse/GROK-14747

This issue has been mirrored in Jira: https://reddata.atlassian.net/browse/GROK-16009


Support light-up of WinRT APIs without limiting by TFM

If I want to use a WinRT API in a light-up scenario, I have to target net5-windows10.0.17763, meaning I can't just support build a class library that targets net5-windows. This is a bit problematic because the default target for a .NET 5 WPF project is net5-windows so my class library will not be compatible out of the box, but require the developer to increase the min-level.
In .NETCore 3.1 I could just use reflection against the WinRT APIs, and it could light up all the way down to Windows 8 (since the specific API I'm interested in came with Win8). However reflection into WinRT APIs are now broken in 5.0, so how would we achieve this today?
Now I get for applications, they can just do API checks to do adaptive code, but this approach doesn't work for class libraries, as apps referencing that class library have to increase their TFM beyond what they might want to increase it to.
Multi-targeting doesn't work either, because it would again mean anyone targeting net5-windows would not get light-up from WinRT APIs on Windows 8+. even if they are on the latest version of Windows 10.
Here's the specific scenario: If an app using my class library runs on Windows 8 or up, it'll be able to use the WinRT GeoLocator WinRT apis and add location information to the application. If the user runs on Win 7 that feature won't be enabled. I solved that in .NET Core 3.1 by using reflection into WinRT. If the API was found, it'll light up, otherwise report that location isn't supported on that platform. It's seems that with .NET 5, I'm forcing developers to only build apps that targets 17763 and up.
My understanding is that to do this in a class library, I'll have to multi-target for netcoreapp3.1 and net5-windows10.0.17763. This becomes problematic if my user uses the library in a WPF application. Creating a new WPF Project, will default to targeting net5-windows. Adding a reference to my library, the target fallback will pick netcoreapp3.1 since net5-windows10.0.17763 is a higher version. This would cause it to use the reflection-based WinRT APIs that can be used in netcoreapp3.1 but is broken in net5 - so when the user runs the application it won't work correctly, and I can only begin to imagine all the support issues that'll come out of this and reminding people to upgrade the target version.

@dotMorten thanks for raising the issue.  We'll give some thought to how C#/WinRT can support light up in class libraries.

@Scottj1s Thanks. I was trying to build CsWinRT and then copy the generated files for geolocator into a project, but had a hard time getting it to work.
My preferred solution is to be able to just target netcoreapp3.1 and the assembly would work fine on net5-windows as well (provided you're on Windows 8+). Alternatively I can multi-target netcoreapp3.1 + net5-windows (not net5-windows10.0.xxxxx). It's a little more work to multi target, and more code to maintain, so if that can be avoided that'll be good.

/cc @richlander

Need a sample demonstrating SupportedOSPlatform attributes

@dotMorten - We recently completed C#/WinRT embedded support work in v1.4.1, which should help address this scenario. These docs and samples provide more details on how to use the support.
Would love to get your feedback on this!

@angelazhangmsft Thanks I noticed. Already added it to our backlog to look into.

Tracking improved light-up support in #832


Make Scatterer-sunflare and Scatterer-config depend on Scatterer

Noticed while working on #8474
Scatterer-sunflare and Scatterer-config don't depend on core Scatterer.
To my knowledge they do nothing without it being installed as well.
In a case like #8474 where the sunflares are a recommendation, or if a user sees sunflares and wants to install them, they might only select "Scatterer Sunflare" and don't realize that they need Scatterer as well, then wondering why it doesn't work.
I haven't found a reason why they don't have the dependency yet, so I guess it is "because nobody noticed it yet".
So this PR adds Scatterer to the dependencies of Scatterer-sunflare and Scatterer-config.

I thought there was a reason we did not do this, but I can't recall it at the moment. I'll take a look at the old PRs and see if I can find some discussion...

I guess if there is some problem, this can be the PR where we document it. 😬

Just took me a few months, but now I realized a problem: we made a bunch of planet packs depend on Scatterer-sunflare-default in order to force the installation of the default sunflare, as others would be incompatible.
https://github.com/KSP-CKAN/NetKAN/pull/7794 and all the linked pull requests.
This was done under the assumption that Scatterer-sunflare-default wouldn't depend on Scatterer, and thus would only have an effect if the user installed Scatterer additionally on their own. But now we're forcing it as well.


Why not using StyleGAN as backbone?

Great work! But i am curious that why not using StyleGAN as the generator backbone since it has stronger capbility.

Hello,
StyleGAN can be used as a backbone, but there is currently no effective way of class-conditioning StyleGAN, so we leave this as future work.


Trying SPFx Tutorial 5 without VS2015 installed

Hi
I have set up my Windows 10 Machine for SPFx development.  I am using Visual Studio Code and not Visual Studio itself.
NB When you install Python (Setting up your machine) it needs .NET 2.0 to be alreafdy installed on your machine)
When get to Step 3 (npm i --save jquery) I get a failure - MSBUILD : error MSB3428: Could not load the Visual C++ component "VCBuild.exe". To fix this, 1) install the .NET Framework 2.0 SDK, 2) install Microsoft Visual Studio 2005 or 3) add the location of the component to the system path if it
is installed elsewhere.  [C:\xxxxxxx\Documents\SPFx\Projects\jquery-webpart\node_modules\utf-8-validate\build\binding.sln]
After a bit of digging around  I found this - http://stackoverflow.com/questions/14278417/cannot-install-node-modules-that-require-compilation-on-windows-7-x64-vs2012
So I downloaded the Microsoft Build Tools 2013 (http://www.microsoft.com/en-us/download/details.aspx?id=40760)
I set the global flag to use the 2013 version. (npm config set msvs_version 2013 --global)
The above error went away when I ran npm i --save jquery again but it was replaced with C:\xxxxxx\Documents\SPFx\Projects\jquery-webpart\node_modules\bufferutil\build\bufferutil.vcxproj(20,3): error MSB4019: The imported project "C:\Microsoft.Cpp.Default.props" was not found. Confirm that the
path in the  declaration is correct, and that the file exists on disk.
Further Info - gyp ERR! stack Error: C:\Program Files (x86)\MSBuild\12.0\bin\msbuild.exe failed with exit code: 1
gyp ERR! stack     at ChildProcess.onExit (C:\xxxxxxxxxxx\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\build.js:276:23)
gyp ERR! stack     at emitTwo (events.js:87:13)
gyp ERR! stack     at ChildProcess.emit (events.js:172:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
Any Ideas how I get jquery to compile ??
Thanks
Nigel

There's two easy steps to get things building without Visual Studio

npm -g install npm@next
npm install --global --production windows-build-tools

This will fix up your version of npm and then install and configure Python 2.7, the C++ build tools and set the node_gyp setting as required

Hi
After a bit more digging I found that Microsoft.Cpp.Defaults.props  is not installed in C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\v140 (I found this here - https://github.com/nodejs/node-gyp/issues/671).  SO it looks as if the C++ compiler is not installed.  The C:\Microsoft.Cpp.Default.props problem is because the file would be referenced as  and the there is no VCTargetsPath which is part of msbuild.
Regards
Nigel

Thanks Gavin - that worked a treat everything has now compiled successfully.
Pat / Chakkaradeep / Vesa - These two commands should be added to the instructions either for Tutorial 5 or to setting up your machine.

I've updated the docs.  We have a separate task being tracked to detect inconsistencies with the environment and report to the user either during yo generation, or at any point via command.


Yank packages?

Is it possible to "yank" certain package versions? This means that when querying for package versions the yanked version is not listed but it is still available for download. This is more useful than removing a version because if a lock file somewhere references the yanked version it can still be installed.

yes, that would be a really useful function. We don't have it currently, though.
PRs welcome!

is it similar to a archived status?

@adriendelsalle the terminology comes from pypi: https://pypi.org/help/#yanked
@baszalmstra actually my answer was not entirely correct: if you use the repodata-patching plugin, you can add a special repodata patch package to your channel and the patch instructions can remove a package. You can look at how conda-forge does this here: https://github.com/conda-forge/conda-forge-repodata-patches-feedstock


support html rendering for reading incoming mails

Afaik currently html emails are displayed as raw text.
Usualy cli mailing tools provide a way to setup an external rendering tool to display html.
Would be useful to have such a feature in himalaya vim too. Let's say opening a terminal buffer with the external tool in place of the vim buffer.

Partially related to https://github.com/pimalaya/himalaya/issues/478.


catkin build error: Linking libdefault_plugin.so failed

I built catkin with the following command:
./src/catkin/bin/catkin_make_isolated    --install    -DCMAKE_BUILD_TYPE=Release    --install-space=/opt/ros/jade
but I got the folling error:
Linking CXX shared library /home/usrname/ros_catkin_ws/devel_isolated/rviz/lib/libdefault_plugin.so
[ 98%] Built target default_plugin
Makefile:126: recipe for target 'all' failed
make: *** [all] Error 2
<== Failed to process package 'rviz':
Command '['/opt/ros/jade/env.sh', 'make', '-j4', '-l4']' returned non-zero exit status 2
Reproduce this error by running:
==> cd /home/username/ros_catkin_ws/build_isolated/rviz && /opt/ros/jade/env.sh make -j4 -l4
Any help, please!
Thanks!

Please post questions like this on answers.ros.org and see wiki.ros.org/Support for guidelines on how to get help.
You error output doesn't actually include the error, just messages saying there is an error. When you open a question on answers.ros.org you should include more of the error output, what version of ROS you're using, what tutorial you're using if any, and steps to reproduce the error.
You can comment here with a link to your answers.ros.org question once you open it.
Thanks.


When use alt + enter to use a comand give the terminal who open a custom title

Is your feature request related to a problem? Please describe.
I want to have a float windows when i use alt enter for a command
Describe the solution you'd like
Use a custom tittle for the windows, and write a windows rule on my hyprland config
Describe alternatives you've considered
none sorry
Additional context
nop
Have you checked the wiki?
Yes of course

If force-opening in a terminal it'll now put --title WalkerRunner


Missing files in the example project

Hi, I'm trying the example project 'out of the box', and I get a lot of errors regarding missing files :

Where can I find these?

@koenvanderdrift you'll need to run pod install in the Example folder, then open the generated .xcworkspace. Those red file names are not always actually missing; some are generated by CocoaPods at build time.

You can also run pod try SSDataSources, which does all the example setup for you.

Thanks, I also had to install Cocoapods :)
The first command gave me this error:
$ pod install
Analyzing dependencies
Fetching podspec for SSDataSources from ../SSDataSources.podspec
[!] Unable to satisfy the following requirements:

OCMock (~> 2.2) required by Podfile
OCMock (= 2.2.4) required by Podfile.lock

The second command worked, but then Xcode tells me that OCUnit is deprecated and meeds to be replaced with XCTest.
I'm also getting lots and lots of errors:

That OCMock error is my fault, I'll fix it in a bit. In the meantime, try pod update instead.

Allright, now it works. Thanks!
As a suggestion, maybe you can add these pod commands to a readme?

Done!

Are you still seeing errors in the example project? I don't see them on my end and the sample project does not have Treat Warnings as Errors enabled.

These steps work for me:

download and unpack the zip file from the frontpage on github
cd to Example folder
run pod update
run 'pod try SSDataSources`
close Xcode
run pod install
re-open .xcworkspace

@koenvanderdrift pod try clones the repo and runs pod install on its own; if you use pod try it should not be necessary to do anything else. You don't even need to download any code. :)
Or, you should now be able to clone the repo and follow the instructions now in the readme:
cd Example
pod install
open ExampleSSDataSources.xcworkspace

I still get this:
Example$ pod install
Analyzing dependencies
Fetching podspec for SSDataSources from ../SSDataSources.podspec
[!] Unable to satisfy the following requirements:

OCMock required by Podfile
OCMock (= 3.1.2) required by Podfile.lock

Have you cloned the latest master? Also try pod setup to set up your local pods cache. Another thing to try would be pod search OCMock and make sure you see 3.1.2 as the latest release in the search results.

No idea why, but pod search OCMock kept giving me older versions (causing the error), so I ended up completely removing cocoapods and reinstalled it. Everything is working now.

Great! pod search only searches your local pods cache. pod setup should update the cache and make sure you have the latest specs.


On Azure deployment, getting "Unable to bind to http://localhost:9410 on the IPv6 loopback interface."

On the first time I deployed my .NET Core Web API to Azure, I noticed this in my logs.
Obviously just a warning, but it's binding to localhost while on Azure, which seemed a little odd, so I thought I'd ask about it.
From global.json:
"version": "1.0.0-preview2-003121"
And I'm using 'net452' frameworks.
  "Timestamp": "2016-07-20T16:42:54.8896127+00:00",
  "Level": "Warning",
  "MessageTemplate": "Unable to bind to http://localhost:9410 on the IPv6 loopback interface.",
  "Exception": "System.AggregateException: One or more errors occurred. ---> Microsoft.AspNetCore.Server.Kestrel.Internal.Networking.UvException: Error -4089 EAFNOSUPPORT address family not supported\r\n   at Microsoft.AspNetCore.Server.Kestrel.Internal.Networking.Libuv.Check(Int32 statusCode)\r\n   at Microsoft.AspNetCore.Server.Kestrel.Internal.Networking.Libuv.tcp_bind(UvTcpHandle handle, SockAddr& addr, Int32 flags)\r\n   at Microsoft.AspNetCore.Server.Kestrel.Internal.Networking.UvTcpHandle.Bind(ServerAddress address)\r\n   at Microsoft.AspNetCore.Server.Kestrel.Internal.Http.TcpListener.CreateListenSocket()\r\n   at Microsoft.AspNetCore.Server.Kestrel.Internal.Http.Listener.<>c.<StartAsync>b__6_0(Object state)\r\n   --- End of inner exception stack trace ---\r\n   at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)\r\n   at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)\r\n   at Microsoft.AspNetCore.Server.Kestrel.Internal.KestrelEngine.CreateServer(ServerAddress address)\r\n   at Microsoft.AspNetCore.Server.Kestrel.KestrelServer.Start[TContext](IHttpApplication`1 application)\r\n---> (Inner Exception #0) Microsoft.AspNetCore.Server.Kestrel.Internal.Networking.UvException: Error -4089 EAFNOSUPPORT address family not supported\r\n   at Microsoft.AspNetCore.Server.Kestrel.Internal.Networking.Libuv.Check(Int32 statusCode)\r\n   at Microsoft.AspNetCore.Server.Kestrel.Internal.Networking.Libuv.tcp_bind(UvTcpHandle handle, SockAddr& addr, Int32 flags)\r\n   at Microsoft.AspNetCore.Server.Kestrel.Internal.Networking.UvTcpHandle.Bind(ServerAddress address)\r\n   at Microsoft.AspNetCore.Server.Kestrel.Internal.Http.TcpListener.CreateListenSocket()\r\n   at Microsoft.AspNetCore.Server.Kestrel.Internal.Http.Listener.<>c.<StartAsync>b__6_0(Object state)<---\r\n",
  "Properties": {
    "SourceContext": "Microsoft.AspNetCore.Server.Kestrel",
    "MachineName": "RD000D3A124D8B",
    "ThreadId": 1
  }

To azure using what? Azure app service?

Correct, yeah.  Azure App Service.  Freshly created a new App Service, and published from VS.

What does your Program.Main look like

I'm getting the same warning message on Azure App service. I'm using 'net46' frameworks with 1.0.0-preview2-003121 sdk.
Here is what my Program.Main looks like.
    public class Program
    {
        public static void Main(string[] args)
        {
            var host = new WebHostBuilder()
                .UseKestrel()
                .UseContentRoot(Directory.GetCurrentDirectory())
                .UseIISIntegration()
                .UseStartup<Startup>()
                .Build();
            host.Run();
        }
    }

Same here... just the default from the template.
    public class Program
    {
        public static void Main(string[] args)
        {
            var host = new WebHostBuilder()
                .UseKestrel()
                .UseContentRoot(Directory.GetCurrentDirectory())
                .UseIISIntegration()
                .UseStartup<Startup>()
                .Build();

            host.Run();
        }
    }

Which default template? Are you saying, the default template for ASP.NET Core ( .NET Framework) with no changes doesn't work on azure websites?

Using Templates/Visual C#/.NET Core/ASP.NET Core Web Application (.NET Core), and selecting Web API.
It's not that it doesn't work, the Web API runs fine on Azure, after publishing.
I just noticed that warning in the log data, and thought it may be an concern, even though it doesn't affect the functionality of the Web API.

Are you running .NET Core or .NET Framework? You mentioned that you were using net452. Why did you pick .NET Core if that's the case?

Right now, using the .NET Core project.json model (see attached example), but running net452 framework.  Started this project last year during early DNX days, and been focusing on net452 for a stable baseline before going back and migrating to .NET Core runtime.   The new project model works great, so didn't want to have to redo everything if we went to .NET Core runtime in future.
We also publish packages from our .NET Core projects and use them in .csproj projects (like on Service Fabric) where needed.  So that part works well today.
project.json.txt

@kirk-marple Kestrel binding to localhost is expected since Azure App Services use IIS as a reverse proxy in front of Kestrel on the same "machine". IIS uses an available port (in this case 9410) to communicate to Kestrel.
All the way until RC2, we would only try to bind to the IPv4 loopback address (<IP_ADDRESS>) when binding to "localhost", so you likely wouldn't have seen this warning. Starting in 1.0.0, we try to bind to the IPv6 loopback address as well ([::1]). It seems that Azre App Services doesn't allow binding to ([::1]).
I think that it makes sense for UseIISIntegration to specify http://<IP_ADDRESS>:[port] so you don't see this warning, since it seems it uses IPv4 anyway. @Tratcher what do you think?

This issue was moved to aspnet/IISIntegration#239

@halter73 Could you please explain the current status of that issue? It's been closed on Jul, 2016. Then, later you've set a milestone for it.
Is this still opened and going to be fixed?
Or is the workaround you've proposed inhttps://github.com/aspnet/IISIntegration/issues/239#issuecomment-245061642 the way to solve it?
Sorry for the questions. I'm just trying to get a better understanding of the status of this as I'm also facing it (and trying to reduce the noise in my logs...)

This 2.0 change should clean up your logs by not logging the exception stack trace with the warning when Kestrel attempts to bind to IPv6 loopback in the Azure App Service environment. Hopefully this is enough noise reduction in you logs since it's now just a one line warning when your App starts.
The hacky workaround I gave is probably still the best way to completely get rid of the warning. That or wait for the App Service environment to support IPv6.

@halter73 Thanks a lot for this detailed answer :heart_decoration:

That or wait for the App Service environment to support IPv6.

@davidebbo Is there any issue I could subscribe to to be notified when this is ready?

@nulltoken looks like https://feedback.azure.com/forums/34192--general-feedback/suggestions/17459872-azure-app-service-should-support-ipv6-address tracks this.

@davidebbo  Voted and subscribed!


disabling swap

I saw your comments on stack exchange about having issues with permanently disabling swap.   Using the shell commands in your current disable_swap.yml:
dphys-swapfile swapoff &&
dphys-swapfile uninstall &&
update-rc.d -f dphys-swapfile remove
I still have the problem of swap being there upon reboot.
Instead I've just been doing

apt:
name: dphys-swapfile
state: absent

and that seems to work.

Looking at your playbooks it seems you disable it restarting elsewhere.  closing this.


v-model for components that wraps not text inputs (not default model)

Vue.js version
2.1.10
Reproduction Link
http://jsfiddle.net/8n5qo677/
Steps to reproduce
Check/uncheck checkboxes
What is Expected?
Both inputs are should be checked/unchecked and represent model value in the first paragraph (bold value)
What is actually happening?
Second (custom) input doesn't reflect and doesn't change binded model value
Hi, i'm porting Framework7 mobile framework to Vue.js (http://framework7.io/vue/) which provides a huge set of ready to use UI components for mobile development, including custom component inputs required for addition inputs appearance. The issue is when we use component with v-model that wraps input such as "checkbox", "radio" and "select" is binded to default model (used for text inputs, which binds to "value" and "input" events) because (i believe) Vue can not recognize what type of input inside. It is ok, but looks like there is no way to control such behavior, all we can do is to handle "change" event manually and bind it "checked" attribute.
So would be good if we have kind of additional modifiers for v-model directive that allow us to tell Vue which kind of model is inside. E.g <my-input v-model.checkbox="toggle"> etc.
And according to the source code at https://github.com/vuejs/vue/blob/7cb0ee5835458422f1e3b1d179ec638ecc788429/src/platforms/web/compiler/directives/model.js#L27-L34 the fix could be pretty simple such is:
  if (tag === 'select' || modifiers.select) {
    genSelect(el, value, modifiers)
  } else if (tag === 'input' && type === 'checkbox' || modifiers.checkbox) {
    genCheckboxModel(el, value, modifiers)
  } else if (tag === 'input' && type === 'radio' || modifiers.radio) {
    genRadioModel(el, value, modifiers)
  } else {
    genDefaultModel(el, value, modifiers)
  }

Let me know if it is a good idea and can send a PR with this fix

Fixed your example

@znck well, it is only solution for the current case, not for distributable components. What to do if we need to preserve input's value, and what to do with radios in this case: Example with custom radios?

v-model is supported with any component. Read the docs - input components.

@znck examples in docs are only for text inputs. Otherwise how to modify this example with custom radios to be compatible with v-model?

@nolimits4web You have to provide a prop with a different name than value to map to the checkbox, radio or option value

@posva it is ok with this, but how to be with "checked" state binding as :checked="value" won't work here because the value is a string in this case rather what makes it always checked http://jsfiddle.net/112p0gs6/

<checkbox v-model="checked" real-value="foo"/>. value is used for the input value, so you have to use a different name for the value:
<input type="checkbox" :value="realValue" :checked="value">

@posva as I mentioned above it's ok for checkbox but doesn't work with input type="radio", check the example above

just do :checked="value === inputValue": http://jsfiddle.net/posva/a8oasrgt/


Rust-Postgres, binary support - ANTLR, Can you explain the parsing workflow?

I'm struggling to understand the concept of parsing with ANTLR and mapping the AGE output to custom data type.
Can you please throw more light?
My Initial attempt of executing the query brought the earlier error of: Error: db error: ERROR: no binary output function available for type agtype!
I would need to cast agtype to a readable format.

any update?

I'll look into your issue with #158

I found some thread about this.
when use rust-postgres driver needs binary I/O.
I think It needs some implementation.
@jrgemignani @JoshInnis
https://github.com/sfackler/rust-postgres/issues/389
https://www.postgresql.org/message-id/CANmj9Vz10xO_%2BUTE_K7o7BcdDpZhc0W6xBYB%2B7%2Bz6%2BfLVdoxMQ%40mail.gmail.com

This is my attempted implementation so far, which wasn't successful. I believe there is something I'm not properly addressing.
Cargo.toml
 . . . .
# [dependencies]
rand = { version = "0.7.3" }
tokio-postgres = { version = "0.5", features = ["with-chrono-0_4", "with-uuid-0_8"] }
postgres-protocol = "*"
postgres = "0.19.2"
postgres-types = "*"

src/main.rs
struct AgType<'a>(&'a str);

impl<'a> Display for AgType<'a>{

        fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
            let d: &str = self.0 ;
            write!(f, "({})", d)
    }
}

impl<'a> FromSql<'a> for AgType<'a> {
    fn from_sql(_: &Type, raw: &'a [u8]) -> Result<AgType<'a>, Box<dyn Error + Sync + Send>> {
        let t = types::text_from_sql(raw)?;
        Ok(AgType(t))
    }

    fn accepts(ty: &Type) -> bool {
        ty.name() == "agtype"
    }
}

fn main(){

pub fn graph_list() -> Result<(), Box<dyn Error>> {
    let conn_string = "host=localhost port=5432 dbname=texttest user=afidegnum password=chou1979";
    let mut client= Client::connect(conn_string, NoTls)?;

    &client
        .batch_execute("LOAD \'age\'")?;

    &client
        .batch_execute("SET search_path = ag_catalog, \"$user\", public")?;

     for row in &client.query("SELECT count(*) FROM ag_graph WHERE name= 'text_test'", &[])?{
         println!("{}", row.get::<_, i64>(0));
         let  count: i64 = row.get(0); println!("{}", count);
         println!("{}", count);
         dbg!(count);
     }

    for row in client.query("SELECT * from cypher('text_test', $$ MATCH (V:node) RETURN id(V) as vid $$) as (vid agtype)", &[])? {
        let path: AgType = row.get(0);
        println!("{}", path)
     }
    Ok(())
}

let res = graph_list();
match res {
        Ok(r) => {println!("Succeeded! {:?} ", r);},
        Err(e) => {println!("Error: {}!", e);}
    }

}

1
[src/lib.rs:20] count = 1
1
1
Error: db error: ERROR: no binary output function available for type agtype!

prepare
SELECT * from create_graph('text_test')
SELECT * from cypher('text_test', $$ CREATE (V:node{id:1}) $$) as (V agtype

If you use that commit to execute the above code, output is as follows.
output
Row { columns: [Column { name: "count", type: Int8 }] }
"{\"id\":<PHONE_NUMBER>31969, \"label\": \"node\", \"properties\": {\"id\": 1}}::vertex"
Succeeded! ()

using rust-postgres or from the console ?

With rust-postgres

ok, give me 15mins, let me check right away

The issue i'm having is querying the result, that's where i'm having the binary error

@afidegnum right.
If you can, checkout that PR. and, drop extension, reinstall extension.
because, only reinstall will not affect pg_type definition.

ok, good, right away!

what's the command for checking out the binary branch ?

Git branch show current branch.

master

Change branch. git checkout binary_io

ok, wait a min

still no luck, even though used the binary_io branch I even restarted the PostgreSQL server

the error lies when i query results like
SELECT * from cypher('text_test', $$
          MATCH (V:node)
          RETURN V
$$) as (V agtype);

can we capitalize on something like this?
COPY foo FROM stdin BINARY

any insight ?

I tested again. it works.
git clone -b binary_io --single-branch https://github.com/emotionbug/incubator-age.git
make -j16 && make install -j16

update pg_type set typsend = 'ag_catalog.agtype_send', typreceive = 'ag_catalog.agtype_recv' where typname = 'agtype';

use postgres::{Client, Error, NoTls};
use postgres::types::{FromSql, Type};

struct AgType<'a>(&'a str);

impl<'a> FromSql<'a> for AgType<'a> {
    fn from_sql(_: &Type, raw: &'a [u8]) -> Result<AgType<'a>, Box<dyn std::error::Error + Sync + Send>> {
        let t = postgres_protocol::types::text_from_sql(raw)?;
        Ok(AgType(t))
    }

    fn accepts(ty: &Type) -> bool {
        ty.name() == "agtype"
    }
}

pub fn graph_list() -> Result<(), Error> {
    let conn_string = "host=<IP_ADDRESS> port=5432 dbname=postgres user=postgres password=postgres";
    let mut client = Client::connect(conn_string, NoTls)?;

    &client.batch_execute("LOAD \'age\'")?;
    &client.batch_execute("SET search_path = ag_catalog, \"$user\", public")?;
    // &client.batch_execute("SELECT * from create_graph('text_test')")?;
    // &client.batch_execute("SELECT * from cypher('text_test', $$ CREATE (V:node{id:1}) $$) as (V agtype)")?;

    for types in &client.query("SELECT count(*) FROM ag_graph WHERE name= 'text_test'", &[])? {
        println!("{:?}", types)
    }

    for row in client.query("SELECT * from cypher('text_test', $$ MATCH (V:node) RETURN V $$) as (V agtype)", &[])? {
        let path: AgType = row.get(0);
        println!("{:?}", path.0);
    }
    Ok(())
}

fn main() {
    match graph_list() {
        Ok(r) => { println!("Succeeded! {:?} ", r); }
        Err(e) => { println!("Error: {}!", e); }
    }
}

Thanks, let me try again

it's a bit strange, I'm still not lucky even though the query returned a successful result.
I could see you run your extension from the docker. I'm using Arch Linux, is there something that needs implementing?
postgres=# select typreceive, typsend from pg_type where typname = 'agtype';
       typreceive       |        typsend
------------------------+------------------------
 ag_catalog.agtype_recv | ag_catalog.agtype_send
(1 row)

Row { columns: [Column { name: "count", type: Int8 }] }
Error: db error: ERROR: no binary output function available for type agtype!

@afidegnum
FROM postgres:11

RUN apt-get update
RUN apt-get install --assume-yes --no-install-recommends --no-install-suggests \
  bison \
  build-essential \
  ca-certificates \
  flex \
  git \
  postgresql-plpython3-11 \
  postgresql-server-dev-11

RUN git clone -b binary_io --single-branch https://github.com/emotionbug/incubator-age.git /age
RUN cd /age && make install

I always use docker environment. and, it works as above scenario without any problems in a new environment.
I think you are missed something.

what about the permissions? can all be done at the root level?

@afidegnum I don't know why are you talking about permission. but, it can

have you tried fetching results ? i.e fetch nodes

the problem i'm having is when running this particular query
 for row in client.query("SELECT * from cypher('text_test', $$ MATCH (V:node) RETURN V $$) as (V agtype)", &[])? {
        let path: AgType = row.get(0);
        println!("{:?}", path.0);
    }

@afidegnum  check on above comment. I wrote my code, and results.

I have verified that the message is output from PG functions and will look into the possibility of add it. Unfortunately, I cannot make any guarantees due to the nature of PGs code base.

Thanks a lot

I'm going to have to retract that. After rereading the thread, everything that @emotionbug has done is correct. My response was to an earlier comment so, it doesn't apply here.

I have pushed to the master branch @emotionbug and my patch. It "should" correct the issue for anyone using the latest clone of the master. Please update AGE on your side after cloning and building from the master to try it out.

ok, Everything is working when I used @emotionbug repo in docker, I will need to try the fresh installation on my Arch distro too. that's where i have been having the problem.

I close this issue because this can be reference in https://github.com/apache/incubator-age/issues/207


Code for "Mapa de eventos"

Could you provide the code of "Mapa de eventos".
Did you use Leaflet or any other API?
I was using https://github.com/Esri/cluster-layer-js but I couldn't interact as good as you do with your sample (using many colors and correct explode representation).
Best regards
Ezequias Rocha

Hi @ezequias !
Sorry for the delay to answer your question.
For "Mapa de Eventos", I used an add-on for DC called DC-Leaflet:
https://github.com/yurukov/dc.leaflet.js
Feel free to search for mapVis in the following file:
https://github.com/ipeluffo/itba-bigdata-final-2015/blob/gh-pages/vis.js
I hope this helps.
Kind Regards,
Ignacio


button event  ValueError: Lambda  returned an invalid event spec: True

Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior:

Code/Link to Repo:
`def btnon_click ( ):
print ( "on   click " )
return True

def index ( ):
box = rx.button ( "return home" , on_click=btnon_click )
return box
app = rx.App ( )
app.add_page ( index , route="/" )`
compile error:
File "E:\dev4\reflextest.venv\Lib\site-packages\reflex\event.py", line 827, in call_event_fn
raise ValueError(f"Lambda {fn} returned an invalid event spec: {e}.")
ValueError: Lambda <function btnon_click at 0x000001B75D04D300> returned an invalid event spec: True.
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Specifics (please complete the following information):

Python Version:
Reflex Version:
OS:
Browser (Optional):

Additional context
Add any other context about the problem here.

Event handlers need to be defined inside a subclass of rx.State
See https://reflex.dev/docs/state/overview/#example

ok, thanks