text:
Add option: Warning on unknown variables

Sometimes we make typos on variable names (even with autosuggest).
It would be great if there was a configuration so mustache-js would generate a warning on 'unknown' variables, instead of giving back an empty string (eventhough it is spec-compliant).
The Mustache man-page says:
By default a variable "miss" returns an empty string. This can usually be configured in your Mustache library. The Ruby version of Mustache supports raising an exception in this situation, for instance.

Love this feature from other frameworks while developing locally, so +1 from me! I think it's important it has minimal to no impact on performance tho. Maybe even doable while keeping the core as is? E.g. by overriding some internal methods to enable this kind of behaviour while developing.

Maybe a mustache.dev.js which is build using mustache.js and the function overrides containing the checking logic?

I'd prefer a hard error, so that, for instance, when using with Express it becomes a 500 response and not just a log somewhere while the end user is seeing an incorrectly rendered page (potentially very incorrectly rendered, depending on how the missing variable was supposed to be used); this could be even more useful in production than in local development, depending on how good your 500 page is vs. how bad the mis-rendered pages would be for your application's functionality. Use of sections could still allow templates to ignore missing variables even with hard errors for direct use. And any higher-level use that needs to log the issue would be in control of the logging system, so we wouldn't have to worry about, say, Mustache's internal warning mechanism clobbering output from test runners or things like that.
I have a working prototype at https://github.com/ScottFreeCode/mustache.js, although I could use some help figuring out how to write a test for it.

Hmm, so using the existence of an object as an if ({{#thing}}) would throw an error? (I think this is quite common)
Or only actual rendering of variables ({{ id }}) would raise an error? What were you thinking?

In my mind the first should be an error, the second a ‘warning’.
For both I would like to know there is a missing value.
Eventhough in the second case it might not technically break, it could have a huge impact on the page.
Also, the other way around would be nice: unused variables… But that’s a lot more impact to make, I think! :D

On 8 Nov 2016, at 14:19, David da Silva notifications@github.com wrote:
Hmm, so using the existence of an object as an if ({{#thing}}) would throw an error? (I think this is quite common)
Or only actual rendering of variables ({{ id }}) would raise an error? What were you thinking?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub https://github.com/janl/mustache.js/issues/599#issuecomment-259133973, or mute the thread https://github.com/notifications/unsubscribe-auth/AJ8FmSptdhysYrQpg1ODkIrm12A_TXcYks5q8HbbgaJpZM4J8lKe.

In my mind the first should be an error, the second a ‘warning’.
For both I would like to know there is a missing value.

@MatthijsZw I see. I just remembered you could store a null value for the property, which would be the nice thing to do, and therefore no exception would occur. (specially mentioning this for the if case)

Also, the other way around would be nice: unused variables… But that’s a lot more impact to make, I think! :D

I'm thinking that it would be cool to somehow get the Schema for the data a template is expecting, and use that to generate a GraphQL query... or something similar.

On further reflection, I think part of the issue here is that missing data is invalid because -- and therefore only if -- the template is expecting that data. So, missing data that the template would just plain display is always invalid by that logic, but it's conceivable that a template might in one place expect a certain data to be available and branch on it as some kind of true/false flag (so it's invalid if it's not so much false as missing and therefore not meeting that expectation), but in another it might expect that data may or may not be available and branch on whether it is (in which case it's never invalid).
In that perspective, using null to control this doesn't really make much sense to me:

If the data's wrong -- not meeting expectations -- how can we expect the wrong data to control template behavior about handling wrong data?
The expectation's really in the template anyway.
null could be a falsey value for branches on truthiness that expect data and consider it invalid for the data to be missing, but that still leaves us with a need for branching on precisely whether the data was supplied at all because we expect that the data might not be filled in (not even with null, unless it's coming from a source that uses null for missing data, e.g. SQL -- and actually, that suggests that whether to treat null as missing or not should be configurable based on the data source).

What we need is two types of branches, for the different expectations on the part of the template. Which to my knowledge is unfortunate because the language-agnostic Mustache specification, while it allows for (but does not mandate) configuration of whether missing data is an error, as far as I know doesn't have anything for a different type of branch that would differ on this point. Hmm...

On the flipside, I'm currently thinking that extraneous/surplus/unused data isn't really a matter of the data being invalid, it's a matter of the template being invalid if it doesn't use that data when the application/data/model expects it to be used. That is, if some stuff is potentially useable but the template can decide whether it's relevant, then it doesn't matter whether the template prints that stuff, but if some stuff truly needs to be displayed to the user, then if the template doesn't display it that's an error. As a sort of reversal, the expectation lies outside the template (in the model?) and the invalidity of failing to meet that expectation lies in the template. Probably best to tackle that separately, I'd figure.

The above are, I suppose, strong opinions weakly held.

IMO interpreting null values as non-existing values is wrong.
{ name: null }

that object has a name property with a falsy value, and should therefore never be seen as invalid and therefore not a reason to throw.
A more appropriate check would be to check if a requested property has been defined like we do in mustache.hasProperty().

but in another it might expect that data may or may not be available and branch on whether it is (in which case it's never invalid).

What I was trying to convey is that, if you branch depending on key X (eg {{#X}}, the provided data should have a value for key X, either a truthy or falsy value, but definitely not undefined.

null implies "yeah, I know that there's no value. I am explicitly marking that there's no value".
undefined mostly implies that key X is not even defined (if you define a key with a value of undefined you'd be better off using null). And if the key is not defined, it's either because of being 'lazy' declaring the data (eg not using null when an object ref is lacking) or because of human error (typo, slip, confusion)

So, in this case, I would see benefits in throwing an Error. (trying to branch on a key that has a value of undefined)
On the other case, trying to render either undefined or null, not sure if there's any use-case for that. Maybe Err on that one as well.

unless it's coming from a source that uses null for missing data, e.g. SQL

Afaik, Mustache philosophy is not to use the models as-is, but to generate a 'view' from them. You could add nulls around in case your provider somehow doesn't.

I'm currently thinking that extraneous/surplus/unused data isn't really a matter of the data being invalid, it's a matter of the template being invalid if it doesn't use that data when the application/data/model expects it to be used

Hmm, I think it's pretty common not to use all the provided data. I threw the idea in mainly for tooling niceties, like the GraphQL query generation I suggested.

if some stuff truly needs to be displayed to the user, then if the template doesn't display it that's an error

But who/what decides what "stuff truly needs to be displayed to the user"? The template writer I'm guessing? If you force people to use all data in the view, then you are forcing them to generate a tailored view for each template they intend to render.

As a note: my use case was a manual setup without branching.
I had ‘other people’ create the data (events) manually and in that case I had no way of verifying they filled in all the fields or made typos in the variable-names.
My template would say “{{ event.name }} on {{ event.date }}”. In that case a missing value would create a horrible page.
All fields were required, so adding logic to not display {{ event.date }} wouldn’t make sense.
In this case ‘not used’ variables would be great to know as well, to double check for typos or for items they added thinking they would ‘magically’ appear on the page :)
I’m sure this use case violates the ideology of Mustache somehow, but it’s a real scenario.
And it would be great for both situations (missing values + unused values) to generate a warning.

On 9 Nov 2016, at 10:53, David da Silva notifications@github.com wrote:
but in another it might expect that data may or may not be available and branch on whether it is (in which case it's never invalid).
What I was trying to convey is that, if you branch depending on key X (eg {{#X}}, the provided data should have a value for key X, either a truthy or falsy value, but definitely not undefined.
null implies "yeah, I know that there's no value. I am explicitly marking that there's no value".
undefined mostly implies that key X is not even defined (if you define a key with a value of undefined you'd be better off using null). And if the key is not defined, it's either because of being 'lazy' declaring the data (eg not using null when an object ref is lacking) or because of human error (typo, slip, confusion)
So, in this case, I would see benefits in throwing an Error. (trying to branch on a key that has a value of undefined)
On the other case, trying to render either undefined or null, not sure if there's any use-case for that. Maybe Err on that one as well.
unless it's coming from a source that uses null for missing data, e.g. SQL
Afaik, Mustache philosophy is not to use the models as-is, but to generate a 'view' from them. You could add nulls around in case your provider somehow doesn't.
I'm currently thinking that extraneous/surplus/unused data isn't really a matter of the data being invalid, it's a matter of the template being invalid if it doesn't use that data when the application/data/model expects it to be used
Hmm, I think it's pretty common not to use all the provided data. I threw the idea in mainly for tooling niceties, like the GraphQL query generation I suggested.
if some stuff truly needs to be displayed to the user, then if the template doesn't display it that's an error
But who/what decides what "stuff truly needs to be displayed to the user"? The template writer I'm guessing? If you force people to use all data in the view, then you are forcing them to generate a tailored view for each template they intend to render.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub https://github.com/janl/mustache.js/issues/599#issuecomment-259374603, or mute the thread https://github.com/notifications/unsubscribe-auth/AJ8FmcFicDWYjSqibyWac-Sqjg-iFetnks5q8ZgqgaJpZM4J8lKe.

I’m sure this use case violates the ideology of Mustache somehow, but it’s a real scenario. And it would be great for both situations (missing values + unused values) to generate a warning.

Both seem feasible. It could be useful for CI.

I'd prefer seeing the parameter directly in the view for debugging.

Using mustache as a templating engine in any kind of configuration management environment requires hard errors on missing variables. I have a use case similar to @steverukuts, transforming kubernetes deployment documents. Missing variables are always errors in this use case.

@stefaneg a couple of months after writing that in fact I discovered that Terraform supports configuration written in JSON format so now I use this instead of using Mustache. This is much better and more programmable. We've now deprecated the use of Mustache for this and it will be removed in the next revision of our deployment pipeline.
Having looked at the Kubernetes deployment documentation I see that these are YAML files. Most programming languages have libraries that can read and write YAML so I suggest you do this instead. From my experiment, I learned that when you are trying to manipulate a machine readable format, you nearly always have a better option than Mustache.
Please note: while I do not use Mustache for anything anymore, I still feel that this is a valid feature request.

The solution is to use handlebars, which supports the same syntax, and also has a strict option which is exactly what is needed in this usecase.
@steverukuts You are right about the manipulating machine readable format, if you have a predetermined manipulation that you need to support, and especially if you need to have some smarts built into it. For an open ended configuration tool, that becomes too inflexible very fast, hence the need for templating. Try writing a tool supporting inserting arbitrary values in arbitrary places and...you have a templating engine very soon.

At work we've been using kontemplate for configuring Kubernetes resource the last few years. It's basically the go templating engine, with some handy
functions from sprig and custom ones in that project. It has been made as a more lightweight approach than helm for example.
In relation to the discussion above; it will also explode on unknown variables.

The solution is to use handlebars, which supports the same syntax, and also has a strict option which is exactly what is needed in this usecase.

This issue forced me into using handlebars as well.  It's too bad this isn't supported in mustache.

For anyone that doesnt want to/cant move to handlebars I've made a small package to add validation to mustache

For anyone that doesnt want to/cant move to handlebars I've made a small package to add validation to mustache

Just to note that I tried the above with a TypeScript project. It looks really promising, but my IDE couldn't find the types to enable me to use the package... I've logged it here: https://github.com/eliasm307/mustache-validator/issues/1

For anyone that doesnt want to/cant move to handlebars I've made a small package to add validation to mustache

Just to note that I tried the above with a TypeScript project. It looks really promising, but my IDE couldn't find the types to enable me to use the package... I've logged it here: eliasm307/mustache-validator#1

This is now fixed, and mustache-validator is working very well for me. Thank you @eliasm307!

authors: MatthijsZw Romanx ScottFreeCode antoine-pous claremacrae dasilvacontin eliasm307 killdash9 phillipj stefaneg steverukuts


text:
Docs: expand on the fact that Cloup is not a replacement for Click

[x] Suggest one should add Click to requirements too when installing Cloup.
[ ] Maybe add something in the README.

(Inspired by #70.)

I think what's already written in the docs is enough. I'm closing this for now.

source: gharchive/issue

repo: janluke/cloup

license_type: permissive

license_source: github-api


text:
Ansible plugin should list workflow templates

Is your feature request related to a problem? Please describe.
Currently with the PR for the Ansible plugin we show Ansible Job templates. We should extend this functionality to include showing workflow templates. The api for that is /api/v2/workflow_job_templates/
Describe the solution you'd like
We should include the visualization to view workflow templates using a specific labeling of workflow template vs job templates which would have the job template label
Describe alternatives you've considered
N/A
Additional context
@invincibleJai and #522

Thanks @cooktheryan for creating the ticket, currently we show type as job_template , for worfklow template should we list these as type workflow_template?  and did you mean this when you say We should include the visualization to view workflow templates using a specific labeling of workflow template vs job templates which would have the job template label
FYI job_template type:

cc @Kasturi1820

I agree with you we should show the label type of job_template vs workflow_template where applicable. You were correct with what I was trying to say with the visualization

Here is PR for it https://github.com/janus-idp/backstage-plugins/pull/674

authors: cooktheryan invincibleJai

repo: janus-idp/backstage-plugins


text:
trimming silences in the beginning and end of the audio

@janvainer : from the code, did not see any logic for removing the potential silences in the beginning and end of the recording (in wave2spec() ) ? is it that it is not needed in this approach ?

We used plain LJSpeech recordings without any trimming, since the dataset is quite clean. If your dataset contains silence, at the beginning or at the end, feel free to trim your audio.

ah ok. closing

authors: dsplog janvainer

repo: janvainer/speedyspeech


text:
[TIPS] Reduce JMM/SQL Memory Usage!

Hi! Its not an error/issue but tips to reduce memory usage :)
Before JMM(Server+Desktop)/SQL was using almost 2.5Go of memory!!!!
Now its use 800Mo!!!!! ^_^
SQL:
SQL Server Management Studio, then Server Properties, and Memory, put 256Mo for max memory
Before that SQL was using up to 1.1Go!!! Now only 380Mo :)
You can try less than 256Mo but JMM was no more working...
And i love 64bit but i use so much memory! :(
So i use a tool to force 32bit mode in JMM Server and Desktop: CorFlags
You can find it there:
C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bin\x64
Copy corflags.exe in JMM Server and JMM Desktop folders
And use thoses commands lines
JMM Server: CorFlags jmmserver.exe /32BIT+
JMM Desktop: CorFlags jmmdesktop.exe /32BIT+ /Force
Voila! ^_^
PS: if you can put all tips somewhere its a good idea...

Recent work has reduced Shoko Server's memory footprint, I'm going to close this issue.

authors: ElementalCrisis misakitchi

repo: japanesemediamanager/ShokoServer

license: MIT


text:
Move reading functions from OutputPin trait to StatefulOutputPin

As it has come up in #29, here is a proposal for removing the burden of caching the state on implementations that cannot read it from an output pin.

Also are you planning to follow up with the additional traits?

Do you mean a ReadableOutputPin trait?

@astro Hm, we had a discussion somewhere (can't remember where exactly) where we discussed a slightly different variant with composable traits. I think @austinglaser made a nice proposal based on a discussion we had.
The "problem" I see with your approach is that switching modes between input and output might not be all the much useful and be quite a bit of overhead since that actually requires changing the GPIO mode (which also has some side effects like electrically switching from a set low/high level into high impedance mode) where usually one might only want to check the logic state of the pin (i.e. what do the registers say) or the real hardware state (what is the actual voltage level at the pin), both of which may or may not actually be implementable on some MCUs.

Please refresh your browser, I edited my comment several times. :) Sorry!
I think this and #73 are separate problems. You can implement StatefulOutputPin (which I pushed later) without switching modes.

Err, yes, my bad, the comment was really meant for #73. Let me move it there.

@therealprof

The only problem I see is that this might potentially break existing implementations?

As I stated before elsewhere, I don't think we should be losing sleep over backwards-compatibility at this point. Yes, breaking implementations sucks, but I'm more concerned about whether embedded-hal is going to look good a few years from now.

@hannobraun That's fine with me, too. Just wanted to raise the concern others might have to feel whether there's consensus on that topic.

FWIW, I'm totally of @hannobraun's opinion. Break things early, if they're to break at all

I have moved toggle() into a separate ToggleableOutputPin trait with a default impl for StatefulOutputPin.
Also, I removed the OutputPin constraint from StatefulOutputPin as it is now optional and possible for theoretical output pins from which you can read but not write the state (eg. set by hardware).

Is there anything I can do to help this move forward?

This seems OK to me but it should be explicitly noted that these traits should be implemented only for push pull output pins and that low / high are referring to the electrical output of the pin. That was missing in the original trait as well.

@hannobraun just for the record: releasing a new minor version doesn't "just breaks implementations"; it fragments the ecosystem. Once a HAL implementation moves from e.g. v0.1.x to v0.2.x it can no longer be used with driver crates that depend on embedded hal v0.1.x. This happens even if the trait that the driver crate uses as a bound has not changed at all between the two minor releases. This situation increases the maintenance work of driver authors which now have to publish a new minor version of their crate that supports the new embedded-hal and probably will also have to maintain the v0.1.x version until all / most-of the existing / active / maintained HAL implementations move to v0.2.x. So bumping the minor version shouldn't be done often / lightly; as the embedded-hal ecosystem grows we'll have to allow more "settling time" between each new minor version release.
That being said we have to make a new minor version release beacuse of #80 so let's include this PR which also contains breaking changes in v0.2.0. @astro could you update the docs?

that low / high are referring to the electrical output of the pin.

I disagree. We can not make any assumption of the electrical state of a pin, only the logical state. Even if you drive it low on a push/pull pin there might be a stronger source keeping it high and vice versa.

@therealprof point taken
I'll merge this PR as it is and adjust the docs locally before releasing v0.2.0. Thanks for the PR, @astro!
bors r+

bors r+

bors r+

@japaric

just for the record: releasing a new minor version doesn't "just breaks implementations"; it fragments the ecosystem.

Good point, thanks for the explanation. While that doesn't change my stance about breaking changes in general, it's good to keep in mind that we need to release them strategically.

source: gharchive/pull-request

authors: astro austinbes hannobraun japaric therealprof

repo: japaric/embedded-hal


text:
switch to a more recent atomic-polyfill that compiles for AVR

cleaned up version of PR #313
closes #313

@mutantbob thanks for the original PR!

bors merge

repo: japaric/heapless


text:
How should I implement a keep-alive ping mechanism for an external component

I have written a full functional framework with a browser client using pure JavaScript and Strophe.js library to connect through BOSH to a OpenFire XMPP server talking to an "external component" written in NodeJS with junction.
Everything is working OK but the component is dissapearing from the OpenFire external components list (in admin web page) after a timeout of 10 minutes or so of inactivity. Probably this is a normal behaviour but:

is there a chance to raise this time limit?
how should I implement something like a keep-alive ping mechanism to make the component persistent for a very long time?

Thanks,
Constantin Teodorescu

https://github.com/strophe/strophejs/pull/119

strophe/strophejs#119

this don't work.

authors: brailateo darshanopenxcell debchy

repo: jaredhanson/junction

license: mit

license_source: bigquery


text:
Facebook Callback appends '#=' to Return URL

When authenticating with facebook and having this route:
router.get('/auth/facebook/callback',
        passport.authenticate('facebook', {
            successRedirect : '/',
            failureRedirect : '/'
        }));

.. callback somehow appends #_=_ to redirect URL.
How can this be fixed?

I know in angular you can set html5 but other than that im not sure.

This is coming from facebook's end. More info here:
https://github.com/jaredhanson/passport-facebook/issues/12#issuecomment-61456906

Related issue

Closing.  Not an issue with this project.

I know this answer is late, but the following code works (at least for me):
TL;DR:
if(location.hash=='#_=_')location.replace(location.href.split('#')[0]);

More detailed version:
//If #_=_ was appended to the URL:
if(location.hash == '#_=_'){
  //Store the "clean" URL in a variable
  var cleanURL = location.href.split('#')[0];
  //Set the URL to the "clean" URL
  location.replace(cleanURL);
};

authors: bitsandbytez framerate frenchbread jaredhanson luisvallejomohl

repo: jaredhanson/passport


text:
[Request] Switch Still Removal Functions

Right now the recipe removal for the Still is Output Fluid, InputFluid which is not quite sensible. Switch it to InputFluid, OutputFluid, Jared!

Seems to be already doing it? Strange.


text:
[Suggestion] Command for Fishing Rod Strings

Using Modtweaker you can modify fishing loot for Mariculture. I am not quite fond on how it works yet but all I know is that it needs fishing rod strings.
These were listed in the code:
static {
rodTypes.put("net", RodType.NET);
rodTypes.put("old", RodType.OLD);
rodTypes.put("good", RodType.GOOD);
rodTypes.put("dire", RodType.DIRE);
rodTypes.put("super", RodType.SUPER);
rodTypes.put("flux", RodType.FLUX);
if (Loader.isModLoaded("AWWayofTime")) {
try {
rodTypes.put("blood", (RodType) ReflectionHelper.getStaticObject(Class.forName("mariculture.plugins.PluginBloodMagic"), "BLOOD"));
} catch (ClassNotFoundException e) {
e.printStackTrace();
As they always could change, I think it would be appropriate to have a command like /mt fishingRods or something similar.

Will document it myself :'D


text:
Check if ports in use in start script (#397)

Using the choosePort function in react-dev-utils as it's already a dependency.
I wrapped the start script in a main function, as choosePort returns a promise.
Also, for the dev-server port I introduced a new environment variable PORT_DEV to allow providing non sequential ports.

lgtm

repo: jaredpalmer/razzle


text:
Mappable via Mutable not working in 5.5

After update on Laravel 5.5 Mutable is not working.
namespace App\Models;

use DB;
use Illuminate\Database\Eloquent\Model;

use Sofa\Eloquence\Eloquence;
use Sofa\Eloquence\Mappable;
use Sofa\Eloquence\Mutable;

/**
 * Class Apps
 *
 * @package App\Models
 */
class Apps extends Model
{

    use Eloquence, Mappable, Mutable;

    protected $getterMutators = [
        'name' => 'strtolower'
    ];

    /**
     * Таблица заявок (DEMANDS)
     *
     * @var string
     */
    protected $table = 'hl_demands';

    protected $maps = [
        'id'     => 'ID',
        'oldId'  => 'UF_OLD_ID',
        'active' => 'UF_ACTIVE',
        'name'   => 'UF_NAME',
    ];
}

$appData = Apps::find(311757);

$appData->id;
$appData->name;

"message": "Call to a member function mutate() on null",
"exception": "Symfony\Component\Debug\Exception\FatalThrowableError",
"file": "/home/dev4/www/laravel/vendor/sofa/eloquence-mutable/src/Mutable.php",
"line": 89,

I have also this issue, any news about that?

+1
I can't save any data if just add use Eloquence to Model. Eloquence v5.5.1, Laravel v5.5.21.
Method save() returns true, but data not updating and UPDATE-query not perfoming. And this shit on my production!
Code is simple:
$p = Post::find(2);
$p->views = 3432;
$r = $p->save()

use Illuminate\Database\Eloquent\Model;
use Sofa\Eloquence\Eloquence;

class Post extends Model
{
    use Eloquence;
    public $timestamps = false;
    protected $table = 'posts';
}

If I comment the line use Eloquence, all data will be updated. What's wrong?

Solution at the end of https://github.com/jarektkaczyk/eloquence/issues/205

authors: agonzalezml dorogov kevdotbadger vladamir

repo: jarektkaczyk/eloquence


text:
design questions on minimizing dependencies

I am wondering, if
#include <string.h>
#include <stdarg.h>
are strictly necessary, as we only need a few of the functions and argument handling doesnt sound super complicated either.
Can you add a comment on the other headers, what they are used for?
    #include <errno.h> // Kernel error codes
    #include <libgen.h> // regex for filter [but only contains dirname and __xpg_basename, so kinda useless???
    #include <unistd.h> // file seek
    #include <sys/types.h> // system types, but where are those used?!
    #include <sys/wait.h> // also includes features.h, pid exit status etc as process info
    #include <signal.h> // signal handler
    #include <time.h> // time

Do you mean remove the includes completely, and add your own implementations only for the functions Tau uses? I'm all for minimal dependencies, but there are some sane arguments for using optimized-library functions.
Alternatively, I'm experimenting with writing my own implementations for such library functions. I'm not going to include them with Tau for simplicity reasons, but I encourage you to check the core for my compiler which is a mini-C library of sorts. Most changes are periodically reflected in the CSTL repo for easy use.

repo: jasmcaus/tau


text:
Support for every other hour with offset (1am, 3am, etc.)

Hi,
I'm looking to create a cron output that runs a job every 2 hours, with a one hour offset.  Example:
'0 1,3,5,7,9,11,13,15,17,19,21,23 * * *'

Is this supported?  I tried something like this, but the hour value in the at option is ignored:
Whenever::Output::Cron.new(2.hours, nil, at: '1:00 am')
=> "0 0,2,4,6,8,10,12,14,16,18,20,22 * * *"

Thanks.

Using crontab syntax along with crontab guru works great for me.
Try it. 😊
every '0 1,3,5,7,9,11,13,15,17,19,21,23 * * *' do
  # your task
end

authors: liijunwei waterjump

repo: javan/whenever


text:
How to add, multiply, etc. dataframes considering multi column index?

Lets say I have two data frames, using two id columns to identify the rows:
A:
| id_foo | id_baa | value |
| 1 | 1 | 10 |
| 1 | 2 | 20 |
| 2 | 1 | 30 |
| 2 | 2 | 40 |
B:
| id_foo | id_baa | value |
| 1 | 1 | 100 |
| 1 | 2 | 200 |
| 2 | 1 | 300 |
| 2 | 2 | 400 |
=> What is the recommend way to add those two dataframes, so that the rows are matched by id_foo and id_baa and the entries of the  value columns are added?
Expected result:
C:
| id_foo | id_baa | value |
| 1 | 1 | 110 |
| 1 | 2 | 220 |
| 2 | 1 | 330 |
| 2 | 2 | 440 |

I tried to create multi column index with

a.setIndex({columns: ['id_foo', 'id_baa' ], inplace: true, drop: true});
However, setIndex only seems to support a single column (?)
https://danfo.jsdata.org/api-reference/dataframe/dataframe.set_index

I tried to use the add function, but there does not seem to be an option for specifying index/join columns?
https://danfo.jsdata.org/api-reference/dataframe/danfo.dataframe.add

Related:
https://github.com/javascriptdata/danfojs/issues/101

Multi

Lets say I have two data frames, using two id columns to identify the rows:
A: | id_foo | id_baa | value | | 1 | 1 | 10 | | 1 | 2 | 20 | | 2 | 1 | 30 | | 2 | 2 | 40 |
B: | id_foo | id_baa | value | | 1 | 1 | 100 | | 1 | 2 | 200 | | 2 | 1 | 300 | | 2 | 2 | 400 |
=> What is the recommend way to add those two dataframes, so that the rows are matched by id_foo and id_baa and the entries of the value columns are added?
Expected result:
C: | id_foo | id_baa | value | | 1 | 1 | 110 | | 1 | 2 | 220 | | 2 | 1 | 330 | | 2 | 2 | 440 |

I tried to create multi column index with

a.setIndex({columns: ['id_foo', 'id_baa' ], inplace: true, drop: true});
However, setIndex only seems to support a single column (?) https://danfo.jsdata.org/api-reference/dataframe/dataframe.set_index

I tried to use the add function, but there does not seem to be an option for specifying index/join columns?
https://danfo.jsdata.org/api-reference/dataframe/danfo.dataframe.add

Related: #101

Multi column index is not supported at the moment

Question: does this even work with a single column index at the moment? I.e. is the pandas DataFrame.add behaviour where it will add values from rows by matching on their row index (where there can be holes in one frame or the other) implemented?

authors: kitfit-dave risenW stefaneidelloth

repo: javascriptdata/danfojs


text:
Future.of and Future.run waiting a duration of time before running

JavaScript has
// waits 123 millis before calling the function
setTimeout(() => ..., 123);

This PR provides Future.run and Future.of methods that execute the given Supplier/Runnable after waiting a duration.

Ready for review!

Current coverage is 96.73% (diff: 90.90%)

Merging #1591 into master will decrease coverage by 0.01%

@@             master      #1591   diff @@
==========================================
  Files            88         88
  Lines         10667      10672     +5
  Methods           0          0
  Messages          0          0
  Branches       1820       1821     +1
==========================================
+ Hits          10321      10324     +3
- Misses          202        203     +1
- Partials        144        145     +1

Powered by Codecov. Last update 966ee43...f62d52c

Oh, javadoc formatting scrambled - will push --force a better version...

Latest commit takes ExecutorService latency into account (including tests)

@danieldietrich?

@paplorinc by accident during a late-night coding session. thank you!

https://github.com/netty/netty/blob/4.1/common/src/main/java/io/netty/util/concurrent/EventExecutorGroup.java#L105

Maybe we should use ScheduledExecutorService resp. ScheduledThreadPoolExecutor in order to decorate tasks...
http://download.java.net/java/jdk9/docs/api/java/util/concurrent/ScheduledThreadPoolExecutor.html

authors: codecov-io danieldietrich hepin1989 paplorinc

repo: javaslang/javaslang


text:
Add peekLeft method to Either

Closes #1668

Current coverage is 96.41% (diff: 0.00%)

Merging #1669 into master will decrease coverage by 0.03%

@@             master      #1669   diff @@
==========================================
  Files            89         89
  Lines         11187      11191     +4
  Methods           0          0
  Messages          0          0
  Branches       1881       1882     +1
==========================================
  Hits          10790      10790
- Misses          243        247     +4
  Partials        154        154

Powered by Codecov. Last update b9f2263...684636d

Hi @mfejzer, this is great, many thanks! Could you please the following lines to EitherTest.java (after the -- flatMap block)?
// -- peekLeft

@Test
public void shouldPeekLeftNil() {
    assertThat(empty().peekLeft(t -> {})).isEqualTo(empty());
}

@Test
public void shouldPeekLeftNonNil() {
    final int[] effect = { 0 };
    final Either<Integer, ?> actual = Either.left(1).peekLeft(i -> effect[0] = i);
    assertThat(actual).isEqualTo(Either.left(1));
    assertThat(effect[0]).isEqualTo(1);
}

Thank you!

Sorry for not adding test in first commit

@mfejzer thank you very much, nice first contribution!

authors: codecov-io danieldietrich mfejzer


text:
🛑 Rodriguez Marin, 88 is down

In 9abd2de, Rodriguez Marin, 88 (http://159.65.204.200:7057/) was down:

HTTP code: 502
Response time: 18678 ms

Resolved: Rodriguez Marin, 88 is back up in f1f7814.

repo: javisu/monitor


text:
🛑 Paseo de Extremadura, 298 is down

In 451c30e, Paseo de Extremadura, 298 (http://159.65.204.200:7046/) was down:

HTTP code: 502
Response time: 18821 ms

Resolved: Paseo de Extremadura, 298 is back up in a56b186 after 18 minutes.


text:
"Update and Rename a User" states inaccurate info

The issue tracker is for reporting product deficiencies. "How do I?" questions should be posted to the discussion forum at https://groups.google.com/group/google-apps-manager. When in doubt, start at the discussion forum and return here only when instructed to do so.
Please confirm the following:

I have upgraded to the latest GAM release from https://git.io/gamreleases and I still have this issue. Yes
I am typing the command as described in the GAM Wiki at https://github.com/jay0lee/gam/wiki Yes

Full steps to reproduce the issue:

Enter https://github.com/jay0lee/GAM/wiki/GAM3DirectoryCommands#update-and-rename-a-user
Run gam update user <e-mail address> changepassword on

Expected outcome (what are you trying to do?):
According to the documentation:

changepassword is optional and indicates whether the user should be forced to change their password on next login.

Actual outcome (what errors or bad behavior do you see instead?):
It logs the user/s out immediately, not only in the next login (plus as documented forces them to change their password).
Either the documentation should reflect that or there should be an option like immediately on/off.

Any update? Please update so your bot won't close it.

Wiki updated.

Thanks! Note there was a missing space though: you wrote changepassword onis specified instead of changepassword on is specified, so I've fixed it.
Also, do you think it's possible to add support for my proposed immediately on/off option?


text:
How to handle Date types?

The Typebox allows to define Date type in a couple of ways :
date: Type.String({ format: "date-time" }), // json schema compatible

// or

date: Type.Date({}), // json schema incompatible

I'd prefer to go with JSON schema compatible way (see first definition). But I have the problem with this definition using @Validate decorator to seriallize result returned from controller. The data I get from service/db uses raw javascript Date and therefore there is type conflict between the types if i return result with js date (e.g. { date: new Date() }.
What is the best way to avoid this kind of type conflicts between? In zod it was possible to address via z.coerce.date(), so wondering if there is something like this in Typebox or Nestjs-typebox.
Thanks in advance!

@jayalfredprufrock yeah I was wondering if that's the way i should use, then i'll probably have to use date: Type.Date({}) definition (as the most of my code uses raw JS Dates), and wherever it's required, i should do something like:
Type.Transform(MySchema).Decode((value) => ({
  ...value,
  myDate: `${value.myDate}`,
}))

Is it necessary to define both decode and encode methods?

Hi again! Encode is definitely optional but I think things work best if you define both. Your example should work, but I think the more canonical approach would be to define your own custom date type and use that:
// this assumes format date-time has been registered
const IsoDate = (options) => Type.Transform(Type.String({ format: 'date-time', ...options }))
  .Decode(value => new Date(value))
  .Encode(value => value.toISOString())

// Some schema consuming the type helper
MySchema = Type.Object({
    createdAt: IsoDate()
});

Now here's the thing - I think this library needs to adjust the encode/decode semantics. I sort of threw in support without thinking through it fully. The way it should work is that for request schemas, this library should call Decode() and the type should be inferred as StaticDecode<typeof T>. For response schemas, it should be the exact opposite. This library should call Encode() and the return type should be inferred as StaticEncode<typeof T>. This will ensure that you can work with a Date() object within your code, but successfully transform to/from it for responses/requests. Note that Static<typeof T> is equivalent to StaticEncode<typeof T> which means that within your code base you will need to be sure to always use the StaticDecode<typeof T> helper to make sure your code aligns with what this library hands you in requests.
This change should be relatively easy to make and I'm keen to get it in place, but the change is definitely breaking and will require a major version bump. It's likely I'll knock this out over the weekend or early next week. Let me know if you have thoughts regarding any of this.

@jayalfredprufrock Yeah, it sounds good and reasonable to me, thanks!
Btw, i'm a bit new to Typebox, are the string formats (e.g. format: 'date-time') should be manually registered or Typebox uses them out of the box?

@anotheri  all string format types require registration for typebox. My library does automatically register email, and I'll probably add some other reasonable format implementations as well. I'll just yoink the super common ones out of typebox's reference implementations here: https://github.com/sinclairzx81/typebox/tree/master/example/formats
But to unblock yourself you can manually register them using the code examples above.

@anotheri I have released a new prerelease version that addresses what I mentioned above. (4.0.0-next.1)
Namely, it performs response transformation before validating, request transformation after validating, and uses TransformDecode as the inferred schema type everywhere (except the example, which expects a true Static type, i.e. what the client will be providing). This should allow you to work with decoded types like Date within your codebase while handling serialization in both directions properly.
I also exported the IsoDate type for convenience, and also added several new string formats based on the typebox examples (url, date, time, date-time, uuid, email).
Besides the breaking behavior of how transform types work and are inferred, I also bumped up the typebox peer dep version to the latest, 0.34.0. It had some breaking changes that affected this library, hence I had to drop support for older typebox versions. I'll probably keep things on a prerelease next branch for a little while until typebox has worked out any kinks on 0.34.x. If things appear stable by the beginning of the year I'll officially release v4.

@jayalfredprufrock awesome, thank you a lot! 🙌

@jayalfredprufrock it works great in the Nestjs application itself, but for some reasons in e2e test (fwiw, i use Vitest environment, with isolated DB, and @nestjs/testing module which initiates the whole application module, so i expect the same behaviour), it fails response validation with message: "Unknown format 'date-time'",, although controller returns the same data format for both test and main application like this, with dates returned
[
  {
    id: 1,
    createdAt: 2024-11-18T23:19:19.291Z, // Date, not string
    updatedAt: 2024-11-18T23:19:19.291Z, // Date, not string
    title: 'hoge',
    content: 'hello world!!',
    published: false,
    accountId: 1
  }
]

Test response looks like this:
{
  statusCode: 400,
  message: 'Validation failed (response)',
  errors: [
    {
      type: 49,
      schema: [Object],
      path: '/0/createdAt',
      value: '2024-11-18T23:19:19.291Z',
      message: "Unknown format 'date-time'",
      errors: []
    },
    {
      type: 49,
      schema: [Object],
      path: '/0/updatedAt',
      value: '2024-11-18T23:19:19.291Z',
      message: "Unknown format 'date-time'",
      errors: []
    }
  ]
}

Any ideas what may cause this behaviour? or how can i debug it?

I'm guessing the bootstrapping code in main.ts isn't being run when executing things in your test harness. Try adding the following code in your testing setup:
configureNestJsTypebox({
    setFormats: true,
});

@smiley-uriux yeah, thanks, that was it! completely forgot about that configuration.

@jayalfredprufrock @smiley-uriux
Btw, is there a way to import and reuse the same typebox instance which is used in nestjs-typebox? So in case i need to do some decoding/encoding in my codebase (not as a part of @Validate interceptors), i don't need to re-configure those formats in every file where i use typebox? Any suggestion here?
I see only setFormats and individual exports for each format. Should I import those individual formats and register with typebox instance I use? Because as far as i tried to reuse setFormats it doesn't allied to instance i import locally (e.g. in isolated unit-test for service, where the nestjs-typebox is not used at all).

authors: anotheri jayalfredprufrock smiley-uriux

repo: jayalfredprufrock/nestjs-typebox


text:
Gd 30

womp womp

LGTM

authors: jaypey mazacra

repo: jaypey/git-diploma


text:
need  your  help

Hello, I'm from China, using your code: traceroute.php, why can't my program always get to the end, all timeout, can you answer it?

Because you're relying on the Internet to successfully pass a packet from end to end using a non-guaranteed protocol (UDP).
Simply put, and assuming the simplest answer tends to be the right one... Your firewall is probably blocking the packets. Maybe reply with a paste or screenshot, or try tracerouting from a looking glass to compare results.

Do you have a solution to it, can you use TCP? Do you know how to use TCP

Can you post your results?

repo: jaytaph/traceroute

license: unlicense


text:
Add support for printing response body automatically on failure

From johan.ha...@gmail.com on May 05, 2011 08:26:07
If the user requests it then print response body automatically on failure codes.
This could be implemented as a filter to the response.
Original issue: http://code.google.com/p/rest-assured/issues/detail?id=66

From johan.ha...@gmail.com on May 22, 2011 04:38:27
Status: Fixed

repo: jayway/rest-assured


text:
Overriding browser shortcuts?

Thank you for creating this library, it's extremely easy to use and very helpful!
I wanted to set a shortcut to 'ctrl+t', but when I tested it in Chrome, it opened a new tab instead.
Is there any way to override browser shortcuts?
If not, is there a list of all browser shortcuts across all browsers, so I can know which shortcuts aren't already being used by one or more browsers?

Similarly, on a Mac, command-option-left-arrow and command-option-right-arrow don't work. I think those events are handled at a very low level, javascript doesn't see them, and can't preventDefault(). I'm not aware of any away around that, but wish for one.

@davemerrill The command + option + left shortcut is occupied by the browser.

I would like to override command + p

@harithakusampudi
example: https://codepen.io/jaywcjlove/pen/pooQVEr?editors=1010
hotkeys('command+p,ctrl+p', function(event,handler) {
  event.preventDefault();
  console.log('handle', handler.key,  event)
});

@jaywcjlove thanks. It works. I use event.preventDefault();  to disabled short cut of browser or computer

some shortcuts can't be overriden:
https://github.com/liftoff/GateOne/issues/290#issuecomment-23121578
https://stackoverflow.com/a/15913471/5599948
https://groups.google.com/a/chromium.org/forum/?fromgroups=#!topic/chromium-bugs/Ntc1byZXHfU
I came across the same problem we just have to live with it.

authors: Bublade NathanWailes TranVanKung davemerrill harithakusampudi jaywcjlove

repo: jaywcjlove/hotkeys


text:
Django runserver error

Describe the problem
Tell us about the problem you're having.
Steps to reproduce
Tell us how to reproduce it.
System configuration

Django version:
Python version:
Django-Constance version:
Error :
Exception in thread django-main-thread:
Traceback (most recent call last):
File "C:\Users\golug\AppData\Local\Programs\Python\Python37\lib\site-packages\django\core\servers\basehttp.py", line 45, in get_internal_wsgi_application
return import_string(app_path)
File "C:\Users\golug\AppData\Local\Programs\Python\Python37\lib\site-packages\django\utils\module_loading.py", line 17, in import_string
module = import_module(module_path)
File "C:\Users\golug\AppData\Local\Programs\Python\Python37\lib\importlib_init_.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1006, in _gcd_import
File "", line 983, in _find_and_load
File "", line 967, in _find_and_load_unlocked
File "", line 677, in _load_unlocked
File "", line 728, in exec_module
File "", line 219, in call_with_frames_removed
File "C:\Users\golug\Downloads\CodeWaves\CodeWaves\CodeWaves\wsgi.py", line 16, in
application = get_wsgi_application()
File "C:\Users\golug\AppData\Local\Programs\Python\Python37\lib\site-packages\django\core\wsgi.py", line 13, in get_wsgi_application
return WSGIHandler()
File "C:\Users\golug\AppData\Local\Programs\Python\Python37\lib\site-packages\django\core\handlers\wsgi.py", line 127, in init
self.load_middleware()
File "C:\Users\golug\AppData\Local\Programs\Python\Python37\lib\site-packages\django\core\handlers\base.py", line 40, in load_middleware
middleware = import_string(middleware_path)
File "C:\Users\golug\AppData\Local\Programs\Python\Python37\lib\site-packages\django\utils\module_loading.py", line 17, in import_string
module = import_module(module_path)
File "C:\Users\golug\AppData\Local\Programs\Python\Python37\lib\importlib_init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1006, in _gcd_import
File "", line 983, in _find_and_load
File "", line 965, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'django.middleware.clickjackinkg'

The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "C:\Users\golug\AppData\Local\Programs\Python\Python37\lib\threading.py", line 917, in _bootstrap_inner
self.run()
File "C:\Users\golug\AppData\Local\Programs\Python\Python37\lib\threading.py", line 865, in run
self._target(*self._args, **self._kwargs)
File "C:\Users\golug\AppData\Local\Programs\Python\Python37\lib\site-packages\django\utils\autoreload.py", line 64, in wrapper
fn(*args, **kwargs)
File "C:\Users\golug\AppData\Local\Programs\Python\Python37\lib\site-packages\django\core\management\commands\runserver.py", line 138, in inner_run
handler = self.get_handler(*args, **options)
File "C:\Users\golug\AppData\Local\Programs\Python\Python37\lib\site-packages\django\contrib\staticfiles\management\commands\runserver.py", line 27,
in get_handler
handler = super().get_handler(*args, **options)
File "C:\Users\golug\AppData\Local\Programs\Python\Python37\lib\site-packages\django\core\management\commands\runserver.py", line 65, in get_handler
return get_internal_wsgi_application()
File "C:\Users\golug\AppData\Local\Programs\Python\Python37\lib\site-packages\django\core\servers\basehttp.py", line 50, in get_internal_wsgi_application
) from err
django.core.exceptions.ImproperlyConfigured: WSGI application 'CodeWaves.wsgi.application' could not be loaded; Error importing module.

How is it connected to django-constance?

repo: jazzband/django-constance


text:
Async compatible StaticFilesPanel

Description
Uses signals for automatic instrumentation of StaticFilesPanel and trigger recording mechanis.
and 2 ContextVar one for storing staticfiles particular to that request context and another for to identify signal for each request context.
Checklist:

[ ] I have added the relevant tests for this change.
[ ] I have added an item to the Pending section of docs/changes.rst.

I think it still need those integration type tests.

repo: jazzband/django-debug-toolbar


text:
Update settings.py

Add WP_TTL option

This is unnecessary as the ttl can already be passed as a kwarg
see: https://github.com/jazzband/django-push-notifications/blob/master/push_notifications/webpush.py#L40 and
https://github.com/web-push-libs/pywebpush/blob/992efed89454629e741f8540f690bef681b17f2d/pywebpush/__init__.py#L377

authors: Fethienv jamaalscarlett

repo: jazzband/django-push-notifications


text:
Supplying vulnerability-based constraints to the resolution process

What's the problem this feature will solve?
We have proposed including vulnerability information in the resolution process Python upstream. Unfortunately, the pip community does not seem to be open to include such feature directly in pip.
Before possibly introducing another tool, we would like to raise this feature also here. There is a small prototype, pipctl (using pip-tools), that can resolve application dependencies without known vulnerabilities, or allowing only acceptable ones. Would pip-tools community be interested in such a feature directly in pip-tools codebase?
Describe the solution you'd like
See pipctl prototype that can resolve application dependencies respecting vulnerabilities.

It looks like there is no interest. Closing.

repo: jazzband/pip-tools


text:
Some buckets don't work with doctests

When running tests against doctests, a warning is printed for these buckets: package, module, and class. The buckets global, parent, grandparent, and none work fine. Seems to be because DoctestItems don't have module or cls attributes (see further down for output).
I'm not hugely familiar with pytest, so I don't know if this needs fixing on their side. Poking around with ipdb, there doesn't seem to be any attribute that could be used instead.
A simple solution for now might be to simply point out that some buckets aren't available when running against doctests in the pytest-random-order documentation, and to leave the warning as is.
I've come up with a minimal working example to reproduce, I'm using Python 3.7.1, pytest-4.0.1, py-1.7.0, pluggy-0.8.0 and random-order-1.0.3. Let me know if you need anything else!

foo.py:
def add(a, b):
    """
    >>> add(1, 1)
    2
    >>> add(0, 0)
    0
    """
    return a + b

Inside fresh virtualenv, using class in this case:
$ pip install pytest pytest-random-order
$ pytest --doctest-modules --random-order-bucket=class foo.py
=== test session starts ===
platform darwin -- Python 3.7.1, pytest-4.0.1, py-1.7.0, pluggy-0.8.0
Using --random-order-bucket=class
Using --random-order-seed=151339

rootdir: ., inifile:
plugins: random-order-1.0.3
collected 1 item

foo.py .            [100%]

=== warnings summary ===
env/lib/python3.7/site-packages/random_order/plugin.py:87
  env/lib/python3.7/site-packages/random_order/plugin.py:87: PytestWarning: pytest-random-order plugin has failed with AttributeError("'DoctestItem' object has no attribute 'cls'"):
    File "env/lib/python3.7/site-packages/random_order/plugin.py", line 75, in pytest_collection_modifyitems
      session=session,
    File "env/lib/python3.7/site-packages/random_order/shuffler.py", line 63, in _shuffle_items
      full_bucket_key = get_full_bucket_key(item)
    File "env/lib/python3.7/site-packages/random_order/shuffler.py", line 52, in get_full_bucket_key
      return ItemKey(bucket=bucket_key(item, session), disabled=disable(item, session))
    File "env/lib/python3.7/site-packages/random_order/bucket_types.py", line 16, in wrapped
      key = f(item)
    File "env/lib/python3.7/site-packages/random_order/bucket_types.py", line 47, in get_class_key
      if item.cls:

    warnings.warn(pytest.PytestWarning(failure))

-- Docs: https://docs.pytest.org/en/latest/warnings.html
=== 1 passed, 1 warnings in 0.01 seconds ===

Thanks for the very detailed and helpful bug report. These aren't just warnings, these actually are plugin failures so no randomisation happens as a result.
Fixed in v1.0.4

Awesome, thank you!
I should have said that while doctests didn't get shuffled, normal tests were still shuffled, so I thought it wasn't a huge deal breaker. But happy to report 1.0.4 fixes it completely, thank you so much for the quick turn around!

authors: jbasko tobywf

repo: jbasko/pytest-random-order


text:
On closing every microapp when SESSION_COOKIE_AGE expires

Hello, when the session is closed due to the SESSION_COOKIE_AGE expiring, the server which uses django-mama-cas closes correctly but the tickets are not being consumed so the microapps are not being logged out as they normally do when the logout view is called by the user. Is there an estimated time for merging this feature?

Hi @marcosthejew,
You are supposed to run ''clearsessions'' Django command from time to time. Maybe there should be a command to clear tickets too? and then logout the microapps if single log out is True?
https://docs.djangoproject.com/en/2.0/topics/http/sessions/#clearing-the-session-store

authors: manelclos marcosthejew

repo: jbittel/django-mama-cas


text:
11.x to 12.0 migration says that IRequest no longer inherits IRequestin MediatR.Contracts, but this isn't true

In the 11.x to 12.0 migration guide, it is said that:

IRequest does not inherit IRequest<Unit> instead IBaseRequest

While this is true in the current state of the master branch, this isn't true for the latest 2.0.0 package of the MediatR.Contracts nuget package that was released 12 days ago.
A quick look inside the package using nuget.info shows that the actual commit for IRequest on version 2.0.0 is this:
https://raw.githubusercontent.com/jbogard/MediatR/528a6ccf552afeea4a1c11e83177b77df85124b0/src/MediatR.Contracts/IRequest.cs
Is it a documentation mistake or was the change accidentely not published?

I didn't want to believe you but ooooof you're right. Mistake on my part. I'll get some updated packages (and delist the existing ones) today.

authors: asimmon jbogard

repo: jbogard/MediatR


text:
Platform-http test fails in FIPS environment

Upstream PR: https://github.com/apache/camel-quarkus/pull/5463
Cherry-picked: 8341221cf552902986b6042ea75e0def7fd0c18b and 48452916ab8d6ff4411eb0a5e33e537361969fee

Failing test - `pulsar' - is not cause by this commit

repo: jboss-fuse/camel-quarkus


text:
Add GitHub actions

Signed-off-by: Ken Wills kwills@redhat.com

Replaces: https://github.com/jboss-modules/jboss-modules/pull/262#pullrequestreview-466118752

@dmlloyd Sorry for the spam. The TARGET thing works great and cleans this up a lot, and I added JDK 9 & 10.

Note, test run here: https://github.com/luck3y/jboss-modules/actions/runs/205933063

Thanks!

My pleasure! As before, going to disable the CI triggers for TC. Will keep the jobs around for a while in case they're needed.

repo: jboss-modules/jboss-modules


text:
Added jupyter-book feature, originally suggested in #28 by dcherian.

Configuration is set to only render notebooks and not rerun them (see
_config.yml). Jupyter book is built in separate subdirectory (see
notebooks/jupyter-book) to reduce clutter. Added dummy notebook in notebooks
directory.
Note that there is an issue with first-time deployments on using GITHUB_TOKEN.
See https://github.com/peaceiris/actions-gh-pages#-first-deployment-with-github_token.

Hey. Here's the next contribution. It's based on a suggestion from issue #28 by dcherian.
I've found it useful for viewing notebooks on GitHub. In the past I was telling people to use https://nbviewer.jupyter.org/ if they couldn't view a notebook on GitHub. With jupyter-book, I don't have to do this. I just tell people to click on the gihub-pages link and the notebooks can be viewed without a problem.*
They might also be useful for issue #21 . I've been able to get some students to use Binder ('click on the binder link in the Jupyter Book') without too much difficulty. I haven't got loads of feedback from this feature, so it could be useful to get feedback from others who have more experience.
*There is an issue with the first deployment when using GITHUB_TOKEN (see https://github.com/peaceiris/actions-gh-pages#-first-deployment-with-github_token). As far as I know, this can be fixed by setting a personal access token instead. But it seems to me that setting a personal access token might require more explanation, and so using the solution at https://github.com/peaceiris/actions-gh-pages#-first-deployment-with-github_token seems fine to me. Probably best to try all of this out yourself with a dummy project, and see how easy/complicated it is.

This is awesome. Thanks @nenb. I hope I find some time this week to look into this further.
Similarly to #47, how can we make sure that this feature is completely 'opt-in'? The simplest way I could think of, is to have the workflow yaml files in another folder, and then instruct the user to copy them to .workflows. But perhaps someone has a sleeker idea?

authors: jbusecke nenb

repo: jbusecke/cookiecutter-science-project


text:
Create switch heading and use it some places

What does this PR do and why?

fixes the rules form
adds a SwitchHeading component, uses it for the Token tab, hopefully fixes Token tab fo good.
resets Token tab values from the Funding tab where appropriate

I'm fairly sure this closes https://github.com/jbx-protocol/juice-interface/issues/787, but pls note anything i've missed or that is sus.
Screenshots or screen recordings
If applicable, provide screenshots or screen recordings to demonstrate the
changes.
Acceptance checklist

[ ] I have evaluated the Approval Guidelines for this PR.
[ ] I have tested this PR in all supported browsers.

Nice @aeolianeth this looks rock-solid in the UI, I couldn't find any  Only question I have:

Will put this to everyone else (I'm still undecided as to what I prefer), but wondering if enabling the switch should set the field to a value (e.g. discount rate to 10% rather than staying at 0%). It feels weird to 'enable' a field and have it do nothing

Also, I removed the close #787 because I left a few more comments on it outside the description which I'll work on today

But overall this is great! Approving and happy if we do the setting value thing in a follow-up if we end up deciding to do that

authors: aeolianeth johnnyd-eth

repo: jbx-protocol/juice-interface


text:
Startup errors

I get the following error when starting up nginx-proxy container:
migration file "20190227065017_settings.js" failed
migration failed with error: alter table setting add primary key setting_pkey(id) - ER_TOO_LONG_KEY: Specified key was too long; max key length is 1000 bytes
[8/3/2019] [2:42:41 AM] [Global   ] › ✖  error     alter table setting add primary key setting_pkey(id) - ER_TOO_LONG_KEY: Specified key was too long; max key length is 1000 bytes
[8/3/2019] [2:42:42 AM] [Migrate  ] › ℹ  info      Current database version: 20190218060101
[8/3/2019] [2:42:42 AM] [Migrate  ] › ℹ  info      [settings] Migrating Up...
migration file "20190227065017_settings.js" failed
migration failed with error: create table setting (id varchar(255) not null, name varchar(100) not null, description varchar(255) not null, value varchar(255) not null, meta json not null) - ER_TABLE_EXISTS_ERROR: Table 'setting' already exists
It seems like it is trying to insert a key which is too long to settings table.

To get it working again, I altered the primary key column to text. It started giving the following:
[8/3/2019] [3:09:13 AM] [Migrate  ] › ℹ  info      Current database version: 20190218060101
[8/3/2019] [3:09:13 AM] [Migrate  ] › ℹ  info      [settings] Migrating Up...
migration file "20190227065017_settings.js" failed
migration failed with error: create table setting (id varchar(255) not null, name varchar(100) not null, description varchar(255) not null, value varchar(255) not null, meta json not null) - ER_TABLE_EXISTS_ERROR: Table 'setting' already exists
[8/3/2019] [3:09:13 AM] [Global   ] › ✖  error     create table setting (id varchar(255) not null, name varchar(100) not null, description varchar(255) not null, value varchar(255) not null, meta json not null) - ER_TABLE_EXISTS_ERROR: Table 'setting' already exists
I drop the setting table then it recreates and gives the same error.

See this link. Older version of mariadb isn't supported
https://github.com/jc21/nginx-proxy-manager/issues/146#issuecomment-533845196


text:
Support for UserVoice Feedback Widget

UserVoice: http://uservoice.com/widget/
Certain customizations would also apply: http://feedback.uservoice.com/knowledgebase/articles/16797-how-do-i-customize-and-install-the-uservoice-feedb

Great idea, I will contact UserVoice and ask for a test account. Not promising any ETA, though. :-)

I have started working on UserVoice integration. See the documentation for an idea of how this will work. Is there anything missing for your usecase?

Hi Erik,
Version 0.12 has UserVoice integration. There are still some small bugs, but overall it should work. Could you check whether it works for you?
Regards,
Joost

authors: erikankrom jcassee

repo: jcassee/django-analytical


text:
Use ppxlib and metaquote

The ppx could be much simpler if ppxlib and metaquote were used:
https://ppxlib.readthedocs.io/en/latest/

@wokalski brought up that he's already migrated Brisk ppx to metaquote. Great example to follow and learn from! Thanks Wojtek :)

https://github.com/briskml/brisk-reconciler/blob/simple-component-api/jsx/brisk_jsx.ml

repo: jchavarri/rroo


text:
Getting number of frames and fps of a video file

Shortest code to do it with JCodec plz?
=)

That's not guaranteed to work in all cases, and as usual please report problems. But I would do something like.
Format f = JCodecUtil.detectFormat(file);
Demuxer d = JCodecUtil.createDemuxer(f, file);
DemuxerTrack vt = d.getVideoTracks().get(0);
DemuxerTrackMeta dtm = vt.getMeta();

int nFrames = dtm.totalFrames;
int fps = (int)(dtm.totalFrames / dtm.totalDuration);

I got the following when trying to use the code above:
java.lang.NullPointerException: Attempt to invoke virtual method 'int org.jcodec.common.Format.ordinal()' on a null object reference         at org.jcodec.common.JCodecUtil.createDemuxer(Unknown Source:13)

Very hard to reproduce without the file you are trying to open
Sent from my iPhone

On Mar 31, 2021, at 6:36 PM, Anastasia Bourlas (Stasia) @.***> wrote:

I got the following when trying to use the code above:
java.lang.NullPointerException: Attempt to invoke virtual method 'int org.jcodec.common.Format.ordinal()' on a null object reference at org.jcodec.common.JCodecUtil.createDemuxer(Unknown Source:13)
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.

Sorry I no longer have the file but I forgot to say this was being run on Android

authors: greek-stasia stefan-reich svitvitskiy zhuker

repo: jcodec/jcodec


text:
Added DONE event for notification of when all pages have been fetched

I added a done event which gets triggered when all nextPage's have been fetched. Created a tests folder to house any future tests. Also noticed that xml2js was missing when I did npm install, so I added it to the dependencies.
getReviews must be called recursively in order for the done event to be emitted as such:
var appStoreReviewsModule = require('app-store-reviews');
var appStoreReviews = new appStoreReviewsModule();

appStoreReviews.on('nextPage', function(nextPage) {
    appStoreReviews.getReviews(nextPage['appId'], nextPage['country'], nextPage['nextPage']);
});

appStoreReviews.on('done', function(data) {
    console.log("DONE")
});

appStoreReviews.getReviews("1111710488", "us", 1);

Hi @dondreytaylor,
Thanks the PR. It looks like you've not branched off from the latest commit on the master branch, so some of your changes are conflicted and some have already been implemented.

You're welcome. Oh wow, I didn't even notice that. I'll go back and work off the most recent commit.

Just want to confirm, is this the most recent commit b811cd8?

Yes, b811cd8 is the latest commit.

Thanks for your pull request. Unfortunately, this project is no longer maintained.

authors: dondreytaylor jcoynel

repo: jcoynel/app-store-reviews


text:
Add atlassian lifecycle endpoints

📓 Description
Summary of the change and link to any relevant tickets. New aliases should include details of why they are valuable
This PR adds the necessary lifecycle endpoints for Atlassian. After this the app is able to add/remove Atlassian tenants.
It's another large one, because most of the code is coming from the previous codebase.
Resolve #30
:octocat: Type of change
Please tick x relevant options, delete those not relevant

[x] New feature
[x] Documentation

:beetle: How Has This Been Tested?

[ ] unit test
[x] linter check
[x] GitHub Action checkers

:eyes: Checklist

[x] Code follows the Practicalli cljstyle configuration
[ ] Add / update alias docs and README where relevant
[x] Changelog entry describing notable changes
[ ] Request maintainers review the PR

@practicalli-john I'm particularly interested in your opinion regarding safely adding/dropping rows from the db in the handlers.clj.
E.g. the installed handler will add the credentials to the db, so I guess we should have a try/catch here? Then, Atlassian will issue the enabled event which hits our handler of the same name, and we create the space in the user's Confluence instance — if any of these steps fail, I think we should "clean up" after ourselves to avoid having credentials we don't need, or the user having spaces they won't use. I'm just not sure what would be the best order/way for doing this safely. Happy to hear your thoughts :)
I don't think you need to go through the other namespaces in depth, but I won't stop you :D
I'll add some unit tests later on.

I assume a user is driving actions that may update the database, so that user should be informed what happened in an understandable way.
So each call to the database should be verified that it worked. If it didn't work, then enough info should be collected so that the user knows what happened and what to do again.
Either a try catch finally combo or returning a map with details of the error so that the handler can respond with something meaningful
It is potentially valuable to split out the database code (possibility into another namespace) and ensure failures are handled meaningful ( of course logging errors is useful for the developer, but not the end user)

The user will be interacting with this function in two ways: the "Install" button in the Atlassian marketplace, or the "Upload app" link in the "Manage apps" page of a user's Confluence instance, in case of self-hosting. In either of these scenarios the feedback you get from Atlassian is either "App installed", which is the default even if we respond with 500 to some events, or "Installation failed" without any further info.
In any case, maybe we should keep all the "installation" code in the installed handler. Right now the installed handler writes to the db, and then the enabled handler creates a space for the messages in Confluence. The problem I see is that if the latter fails, the user still sees "Installation successful" 🤷, but if we respond 500 in the former, Confluence shows a (generic) error to the user and it makes it easier to cleanup. At least all the code is close together and easy to see how the cleanup is connected to the mess :D what do you think?
I'll look with-transaction 👍

Ah, so you are not able to control the content of user interface, that quite a big constraint.  That does seem to negate much of my previous comments.
Ideally I'd strive for at least the correct status, it either worked or did not. But even that seems elusive.
Are there other ways to show if the install worked?
Or explain in documentation what the status is and how to know if the install worked.
So I'd focus on ensuring connection were closed and queries that could fail were in transactions so they cleaned themselves up (depending the complexity of the query - might not need it for simple queries that fail without affecting the database state)

After the installation completes, even when something goes wrong, the user sees a happy modal with a button to "Get started". This takes them to a page we control - today it has a button to connect slack and some basic instructions, but we are in full control of the content.
I think we could use that page to inform the user of problems, plus via Slack once it's also installed (they are independent things). This means we need to save this state until it's solved 🤔
The simplest thing of all would be to fail install. I'll start with that by moving everything into the installed handler and dropping the enabled handler

Refactored the db functions into their own namespace
Added checks to the possible error points
Added a new call to GET the current spaces in Confluence, only attempt creation if the needed space doesn't exist (e.g. in case someone installed the app, used it, uninstalled and now installed again)

After some more exploration I figured out it's not possible to call the Confluence API before the enabled event.
I'm much happier with the structure now.

authors: jcpsantiago practicalli-john

repo: jcpsantiago/thearqivist


text:
🛑 erw is down

In e3236bb, erw (https://e-raumwerk.de) was down:

HTTP code: 503
Response time: 472 ms

Resolved: erw is back up in 680a500.

repo: jcruse-erw/UptimeReport


text:
threaded=True is slow

Hi
I use your great module for my nodemcu-32s v1.1 board, micropython version 1.9.4, everything looks fine, but when I start webserver with threaded=True, the response is slow, about 4s, however it's ~200ms when threaded mode is False.
I have no idea why this happens, my micropython is clean, no other modules and I use IP to connect the device, so it seems not an DNS issue, could you give me some hints about this?
Thanks a lot.
-Silver

Hello and sorry for my very late answer!
It is strange indeed..
Just, can you try on your platform to increase the stack size before creating the threaded server with a call to _thread.stack_size([size]) ?

microWebSrv using just one synchronous pipe-line (threaded or not) and more for websockets connections.
I'll remake it with my async lib : https://github.com/jczic/XAsyncSockets :)

Thank you for your nice work.
Same issue here, it takes 3 seconds to respond with very simple http server (same with https://github.com/jczic/MicroWebSrv/issues/42). I can confirm it works with "mws.Start(threaded=False)"
Suggestion:
Document it clearly about the limitation or by default set it as False at least. For first-time users, this waste some time as we usually use "default configuration" for testing purpose, and I started to think what is wrong with my network (as I cannot imagine a http test request takes 3 secs!). Of course, if it can be root-cased and fixed, that is better. :) Looking forward to the synchronous version.
Thanks,
Shenghong

Thank you for your nice work.
Same issue here, it takes 3 seconds to respond with very simple http server (same with https://github.com/jczic/MicroWebSrv/issues/42). I can confirm it works with "mws.Start(threaded=False)"
Suggestion:
Document it clearly about the limitation or by default set it as False at least. For first-time users, this waste some time as we usually use "default configuration" for testing purpose, and I started to think what is wrong with my network (as I cannot imagine a http test request takes 3 secs!). Of course, if it can be root-cased and fixed, that is better. :) Looking forward to the synchronous version.
Thanks,
Shenghong

Ok thanks.
I will test further because it doesn't make sense for a single thread on the server to take so long.

So, I have removed the thread allocation testing :
https://github.com/jczic/MicroWebSrv/commit/73cd549f926d2bd1c9a60e9979a53283d547ee15
But on computer or my emmbeded controller, the thread mode is faster than the no-threaded.
Strange ?

@jczic It seems behavior different on my esp32 WROOM 32 D and Lyrat (ESP32 WROVER + psRam). Behavior is totally strange.
(1) on WROOM, with or without threaded, the response time is 2.2 secs.
(2) on Lyrat, with thread, 3 seconds, without threads, 100ms. And at the same time, I tried to test by adding some more threads which just sleep, on Lyrat, it will affect the response time of http very much (more threads, slower, even 8 secs with 10 threads), and in WROOM it is not affected.
I known Lyrat has psRam which may affect performance and I known there is a special version supporting it (I am not using it now, I just use normal micropython build).
My target is to use normal WROOM module without psRam, it seems like performance is not affected by adding more sleep threads, but the response time is longer as 2.2 seconds with or without threads mode. I may need to focus on WROOM for more testing now. Can you provide the board information you are using for testing? Which board is the minimal requirements for a simple http server?
Thanks,
Shenghong

@jczic some updates, please take a look at https://github.com/micropython/micropython/issues/4372
Now I focus on esp32 WROOM (no psRAM) module and take some careful tests.
I got same results using MicroWebSrv for the testing. It seems like thread behavior is strange in micropython....

Hello @gengshenghong, some news about this problem with readline IO ?

Hello,
I released a fully new version (v2.0) of my web server here :
github.com/jczic/MicroWebSrv2.
Open source MIT, fully asynchronous, more robust, more fast and more
efficient!
It is delivered with a good documentation.
Thank you for your support and feedback. ☺
Jean-Christophe Bos
Le ven. 21 déc. 2018 à 08:41, Shenghong notifications@github.com a écrit :

@jczic https://github.com/jczic some updates, please take a look at
micropython/micropython#4372
https://github.com/micropython/micropython/issues/4372
Now I focus on esp32 WROOM (no psRAM) module and take some careful tests.
I got same results using MicroWebSrv for the testing. It seems like thread
behavior is strange in micropython....
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/jczic/MicroWebSrv/issues/46#issuecomment-449293233,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAegLFdO56AedkbLVNjgHs5gDY6NlE_Bks5u7JCXgaJpZM4X-R9z
.

--
Sincèrement,

authors: gengshenghong jczic silverchen0402

repo: jczic/MicroWebSrv


text:
Issues installing PyQT5 on apple silicone

PyQT5 doesn't seem to support ARM

At this time I won't be investigating fixes for this issue. In the future it might be possible to migrate to PySide6, but that will likely require some work to get working.

authors: dderg jdegenstein

repo: jdegenstein/jmwright-CQ-Editor


text:
Doesnt download captions for this video

`
from youtube_transcript_api import YouTubeTranscriptApi
srt = YouTubeTranscriptApi.get_transcript("UJHObtnp5A")
print(srt)
`
I tried to download this video
C:\Users\PycharmProjects\pythonProject\venv\Scripts\python.exe C:\Users\PycharmProjects\pythonProject\youtube.py
Traceback (most recent call last):
File "C:\Users\PycharmProjects\pythonProject\youtube.py", line 6, in
srt = YouTubeTranscriptApi.get_transcript("UJHObtnp5A")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\PycharmProjects\pythonProject\venv\Lib\site-packages\youtube_transcript_api_api.py", line 132, in get_transcript
return cls.list_transcripts(video_id, proxies, cookies).find_transcript(languages).fetch()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\PycharmProjects\pythonProject\venv\Lib\site-packages\youtube_transcript_api_api.py", line 71, in list_transcripts
return TranscriptListFetcher(http_client).fetch(video_id)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\PycharmProjects\pythonProject\venv\Lib\site-packages\youtube_transcript_api_transcripts.py", line 47, in fetch
self._extract_captions_json(self._fetch_video_html(video_id), video_id)
File "C:\Users\PycharmProjects\pythonProject\venv\Lib\site-packages\youtube_transcript_api_transcripts.py", line 59, in _extract_captions_json
raise TranscriptsDisabled(video_id)
youtube_transcript_api._errors.TranscriptsDisabled:
Could not retrieve a transcript for the video https://www.youtube.com/watch?v=UJHObtnp5A! This is most likely caused by:
Subtitles are disabled for this video

Hi @LeilaSchooley,
if you'll open https://www.youtube.com/watch?v=UJHObtnp5A in a browser, you'll see that the video is no longer available.

authors: LeilaSchooley jdepoix

repo: jdepoix/youtube-transcript-api


text:
The tutorial pages contain strange characters

Like â€™  etc.
Chrome ersion 78.0.3904.108 (Official Build) (64-bit)
on Windows 10

Do you mean this page?
https://py.processing.org/tutorials/
Can you give an example? I'm not seeing it. I see the page begin:

Processing.py Tutorials. A collection of step-by-step lessons introducing Processing (with Python).
Many of these tutorials were directly translated into Python from their Java counterparts by the Processing.py documentation team and are accordingly credited to their original authors. Please report any mistakes or inaccuracies in the Processing.py documentation GitHub.

For example,
on
https://py.processing.org/tutorials/interactivity/
This code asks, â€œIs the cursor to the right of the left edge and is the
cursor to the left of the right edge and is the cursor beyond the top edge
and is the cursor above the bottom?â€
and
The redraw() function runs the code in draw() one time and then halts the
execution. Itâ€™s helpful when the display neednâ€™t be updated
continuously.
and
These cursor icons are part of your computerâ€™s operating system and will
appear different on different machines.
and
Before drawing inside these functions, itâ€™s important to think about the
flow of the program
and
In fact, youâ€™ll notice this example has nothing at all inside draw(),
But I thought I saw it in other pages as well. Can you check them yourself
or should I list them all?
kind regards,
Johan
On Wed, Dec 18, 2019 at 12:55 AM Jeremy Douglass notifications@github.com
wrote:

Do you mean this page?
https://py.processing.org/tutorials/
Can you give an example? I'm not seeing it. I see the page begin:
Processing.py Tutorials. A collection of step-by-step lessons introducing
Processing (with Python).
Many of these tutorials were directly translated into Python from their
Java counterparts by the Processing.py documentation team and are
accordingly credited to their original authors. Please report any mistakes
or inaccuracies in the Processing.py documentation GitHub.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/jdf/processing-py-site/issues/157?email_source=notifications&email_token=AHDMJDALOXNBMIIAPUIAQ4LQZFRGFA5CNFSM4JTWZDTKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEHELQUY#issuecomment-566802515,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AHDMJDGWGETQG4BZGHBVUETQZFRGFANCNFSM4JTWZDTA
.

Got it. I also see those problems on that page

This code asks, â€œIs the cursor to the right of the left edge
https://py.processing.org/tutorials/interactivity/

I saw this happen elsewhere when utf was converted to ansi.

Looks like this tutorial has had UTF-8 curly quote / "smart quote" chars in it since it was created in 012155ac4e3cb15e000f4b337f5f0693ef126604. I can change them to straight quotes.

That should do it.
Op zo 12 jan. 2020 19:32 schreef Jeremy Douglass notifications@github.com:

Looks like this tutorial has had UTF-8 curly quote / "smart quote" chars
in it since it was created in 012155a
https://github.com/jdf/processing-py-site/commit/012155ac4e3cb15e000f4b337f5f0693ef126604.
I can change them to straight quotes.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/jdf/processing-py-site/issues/157?email_source=notifications&email_token=AHDMJDG5QEG6BTTV42YES3LQ5NO3HA5CNFSM4JTWZDTKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEIXA44A#issuecomment-573443696,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AHDMJDD5TY6AREF6XDYUGMLQ5NO3HANCNFSM4JTWZDTA
.

authors: jeremydouglass jpvanleeuwen

repo: jdf/processing-py-site


text:
[US-6-4] Для выбранного локатора показывается кнопка Select Locator вместо Unselect

JDN v 3.1.127
Back-end v 2022-02-12-11.36.19
Chrome

зашла на https://docs.oracle.com/javase/tutorial/java/javaOO/anonymousclasses.html
нажала New page object - Generate
выбрала локатор правок кнопкой мыши
кликнула на локатор левой кнопкой мыши

Expected:
первая кнопка в появившемся меню - Unselect locator

Actual:
первая кнопка в появившемся меню - Select locator

0.5pt - fe

version: 3.1.162

authors: Aniuta907 MariiaNebesnova VSemendiy lisatatarinova

repo: jdi-testing/jdn-ai


text:
[US-5-2][US-5-3] Добавить опцию выбора модели для распознования - ПОСТОЯННОЕ РЕШЕНИЕ

For version 1 (MVP):
Link to Figma - https://www.figma.com/file/8wieNfnIvfSET3zq0r8LbX/JDN-(v.1---MVP)?node-id=4618%3A71997

For version 2:
Link to Figma - https://www.figma.com/file/BVIiVfeuQfQuD1fi7HP99K/JDN-(v.2)?node-id=3127%3A41228

due to removed Settings, do we really need pop up with an only drop down?

authors: AlexeyGirin MariiaNebesnova


text:
consider adding option to TEI processed files for 'tei' in the filename

would help to rapidly differentiate between files processed with and without TEI

Addressed in #27.  TEI files will begin 'tei_' and non-TEI files will still follow the convention chapter_n.

authors: jdmartin tarahmarie

repo: jdmartin/gutenberg-text-splitter


text:
Added config file for tox. Closes #31.

Checkout the branch, run pip install tox and then run tox. As a side-note, there is currently one failing test.

@richleland Yeah, I added that test to illustrate #75 and #74, which are still open.

authors: matthewwithanm richleland

repo: jdriscoll/django-imagekit


text:
Revision of Common Puff to use newer pucks and dice features, player …

…seats, bar, and turn marker.

(Would you like write access to the repo?  I trust you to just do this stuff without me in the middle.)

Sure. It’s certainly a low risk thing.
Chad
Sent from my iPhone

On Feb 6, 2022, at 10:02 PM, Justin du Coeur, AKA Mark Waks @.***> wrote:

(Would you like write access to the repo? I trust you to just do this stuff without me in the middle.)
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you authored the thread.

authors: chadberg jducoeur

repo: jducoeur/playing-cards


text:
cli ux bus

Full disclosure, this is a complex issue that probably won't make much sense to anyone except me. I'm just writing down my thoughts to come back to this later as it keeps returning as a problem and I want to build a generic solution.
A ton of complexity in mise is related to displaying information to the user. mise will display logs and progress bars differently depending on how it's configured like if --verbose is passed or not.
Currently this is handled by passing around a bunch of "progress bar" structs which are sort of singletons for particular "tasks" of execution. There can be multiple running at once like when installing multiple tools in parallel.
Each of these "tasks" can output its own logs at different levels (error, warn, etc) and there is a lot of configuration around these to keep the output clean and relevant while also making it possible for the user to get more verbose output relatively easily by just passing --verbose or --debug.
So basically each task has a "progress bar" struct that needs to be passed to all subroutines so they have a place to output the right information. This works ok, but it does mean there are sometimes glitches because this step was skipped. Also, some parts of the code operate inside of some of this logic and some don't, meaning there may or may not be a progress bar to report information to. If there isn't, then we just operate like a traditional CLI and dump the logs out to stderr.
This is becoming more of an issue as of late because I'm modularizing some of the code in mise out to separate crates like xx, usage, demand, and vfox.rs. These libraries often also need a way to report status and progress.
What I want is some generic "bus" where libraries can emit this information to where the CLI calling the library has control over how that information gets rendered. I'd also like to remove the requirement that this needs to be explicitly passed as a struct down to all of the tasks and instead they had some kind of shared reference to get its current task.
My initial thought here was to use some kind of thread-local storage, but that has some problems since you may actually want to spawn multiple threads inside of a given task. I may need to look around a bit more for something like this to see if it's possible to have something like thread-local but also shared with some subset of threads—frankly I'm a bit new to multithreading code in general.
This seems to be a perennial problem in CLIs. Most CLIs just emit line-by-line whatever it is doing but that becomes quite hard to read once the CLI starts doing a lot of things. This is especially true when the CLI is doing things in parallel and emitting information about several things at once.
For that reason, I'd like for this to be a new crate for the explicit purpose of reporting CLI status. I know in node there is a tool which roughly does what I'm proposing here and it was driven by the observable pattern—though the name of the project escapes me right now. Once we have that in place, I would also like a way for plugins to be able to emit this somehow as well, like for example a plugin would be able to report the download progress back up to a progress bar in the UI so you could have multiple progress bars for different plugin tasks running in parallel.
Along with simply having a place to report this logic I would think this plugin would also have a set of built-in reporters, similar to what color_eyre does for error message reporting.
Anyhow the ultimate goal here is to make it possible for libraries to have a way to report progress but give mise (or whatever host CLI is running the library) the ability to customize how that information is presented to the user. This notably is strongly related to what logging libraries like log are already doing. However those don't have a way to report metadata like progress percentage of downloads.

some prior art: https://andrewkelley.me/post/zig-new-cli-progress-bar-explained.html#zig-progress-protocol-spec

repo: jdx/mise


text:
关于请求移除

恩，使用的时候发现普通请求应该加个cancelAll()方法，只有一个cancel(Tag) 感觉有点不够呢.
还有okServer 上传文件的时候，不像DowmLoadManager有remove方法呢。
就是有一种没有同步的感觉，某个操作在请求，上传，下载都会有的，但是这个类有相关方法进行操作，那个没有，或者是不全。很是蛋疼 -_-

可以。没有问题。。下版本修复。。修复完成我会回复你。。

2.1 已经增加。。欢迎体验。。

authors: jeasonlzy zengcanxiang

repo: jeasonlzy/okhttp-OkGo


text:
maven配置文件中，把dev改为prod之后，再改回dev就无法启动项目了

版本号：
v3.0
问题描述：
maven配置文件中，把dev改为prod之后，再改回dev就无法启动项目了
把.idea目录删除，再启动idea，又可以启动项目了
请问是不是我少安装了插件呢，谢谢
好像是没法识别application.yml中的profile.name了
截图&代码：
`Failed to load property source from 'file:/I:/DevEnv/workspace/jeecg-boot-master3/jeecg-boot/jeecg-boot-module-system/target/classes/application.yml' (classpath:/application.yml)
at org.jeecg.JeecgSystemApplication.main(JeecgSystemApplication.java:28)
Caused by: org.yaml.snakeyaml.scanner.ScannerException: while scanning for the next token
found character '@' that cannot start any token. (Do not use @ for indentation)
in 'reader', line 5, column 13:
active: @profile.name@
^`

spring:
application:
name: jeecg-system
profiles:
active: prod
手动改可以启动，感觉是我少安装了什么插件

repo: jeecgboot/jeecg-boot


text:
字段数据更新时间格式错误。

版本号：2.4.6
前端版本：还是 vue2版
问题描述：字段数据更新出现时间格式错误。
截图&代码：

org.springframework.http.converter.HttpMessageNotReadableException: JSON parse error: Cannot deserialize value of type java.util.Date from String "2020-02-27 14:20:42": not a valid representation (error: Failed to parse Date value '2020-02-27 14:20:42': Cannot parse date "2020-02-27 14:20:42": while it seems to fit format 'yyyy-MM-dd'T'HH:mm:ss.SSSX', parsing fails (leniency? null)); nested exception is com.fasterxml.jackson.databind.exc.InvalidFormatException: Cannot deserialize value of type java.util.Date from String "2020-02-27 14:20:42": not a valid representation (error: Failed to parse Date value '2020-02-27 14:20:42': Cannot parse date "2020-02-27 14:20:42": while it seems to fit format 'yyyy-MM-dd'T'HH:mm:ss.SSSX', parsing fails (leniency? null))
at [Source: (PushbackInputStream); line: 1, column: 34] (through reference chain: org.jeecg.modules.system.entity.SysDictItem["createTime"])
友情提示（为了提高issue处理效率）：

未按格式要求发帖，会被直接删掉;
描述过于简单或模糊，导致无法处理的，会被直接删掉；
请自己初判问题描述是否清楚，是否方便我们调查处理；
针对问题请说明是Online在线功能(需说明用的主题模板)，还是生成的代码功能；

解决办法：加一个配置类
@Configuration
public class JacksonConfig implements WebMvcConfigurer {
@Value("${spring.jackson.time-zone}")
private String TIME_ZONE;

//解决 spring.jackson.date-format=yyyy-MM-dd HH:mm:ss
//spring.jackson.time-zone=GMT+8 不生效的功能
@Override

public void extendMessageConverters(List<HttpMessageConverter<?>> converters) {
    MappingJackson2HttpMessageConverter converter = new MappingJackson2HttpMessageConverter();
    ObjectMapper objectMapper = converter.getObjectMapper();
    SimpleModule simpleModule = new SimpleModule();
    simpleModule.addSerializer(Long.class, ToStringSerializer.instance);
    simpleModule.addSerializer(Long.TYPE, ToStringSerializer.instance);
    objectMapper.registerModule(simpleModule);
    objectMapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false);
    objectMapper.setDateFormat(new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"));
    objectMapper.setTimeZone(TimeZone.getTimeZone(TIME_ZONE));
    converter.setObjectMapper(objectMapper);
    converters.add(0, converter);
}

}

你的日期字段？是怎么设置的数据库类型，字符串吗

authors: gabrielxvx zhangdaiscott


text:
jeecg-cloud-xxljob模块中logback.xml中生成日志路径问题

版本号：
v3.5.1last
前端版本：vue3版？还是 vue2版？
vue3
问题描述：
jeecg-cloud-xxljob模块中logback.xml中生成日志路径
，mac系统因权限问题无法生成，启动error：Failed to create parent directories for [/data/applogs/xxl-job/xxl-job-admin.log]
截图&代码：

友情提示（为了提高issue处理效率）：

未按格式要求发帖，会被直接删掉;
描述过于简单或模糊，导致无法处理的，会被直接删掉；
请自己初判问题描述是否清楚，是否方便我们调查处理；
针对问题请说明是Online在线功能(需说明用的主题模板)，还是生成的代码功能；

改为相对路径即可。


text:
openclash与之冲突

问题描述
主机名 | iStoreOS
型号 | FriendlyElec NanoPi R4S
架构 | ARMv8 Processor rev 4
目标平台 | rockchip/armv8
固件版本 | iStoreOS 22.03.6 2024052410 / LuCI istoreos-22.03 branch git-24.057.30647-6659faa
内核版本 | 5.10.201
IPv6地址，在打开openclash时候，三种方式不论何种方式获取ipv6地址。
日志：
2024/06/15 17:50:39 配置文件已保存在: /etc/ddns-go/ddns-go-config.yaml
2024/06/15 17:50:39 查询域名信息发生异常! Get "https://api.cloudflare.com/client/v4/zones?name=【隐藏我的域名】&status=active&per_page=50": EOF
2024/06/15 17:51:32 查询域名信息发生异常! Get "https://api.cloudflare.com/client/v4/zones?name=【隐藏我的域名】&status=active&per_page=50": EOF
在关闭openclash时候，或者使用SSRP+时候，日志正常
DNS服务商
Cloudflare
是否已搜索同类问题
已搜索，但未能解决
操作系统
Linux
架构
arm64
版本
6.6.2
安装方式
其它
额外信息
No response

不是程序问题，这个自行解决

不是程序问题，这个自行解决

解决了，把api.cloudflare.com设置为 Fake-IP 模式下将返回真实IP地址就行了。
是我大意了


text:
ipv6成功配置但是无法外网访问

问题描述

配置没有问题，光猫超级终端也关闭了防火墙.
可以内网访问，外网不行，也ping不通
DNS服务商
No response
是否已搜索同类问题
已搜索，但未能解决
操作系统
Linux
架构
x86_64
版本
v5.6.4
安装方式
Docker
额外信息
No response

再检查一下路由器的防火墙

再检查一下路由器的防火墙

没有用路由器。光猫牵的网线

没从图片中看到任何有关 IPv6 相关的防火墙设置，所以有理由怀疑这个选项只管 IPv4 防火墙。
可能还需要关闭类似 IPV6 SESSION 的选项：

没从图片中看到任何与 IPv6 相关的防火墙设置，所以有理由怀疑这个选项只管 IPv4 防火墙。
可能还需要关闭 IPV6 SESSION 之类的选项，如下图所示：

我将光猫改为桥接 用路由器拨号，但是发生同样的情况。

路由器防火墙也关了。

能不能访问和ddns没啥关系吧,正常情况直接用ipv6地址加端口就能访问

我是ipv6+端口能访问，域名+端口不行，不知道为什么，防火墙都关了也不行

linux的防火墙关了吗 有时候会获取到多个IPv6 你获取的是第几个IPv6

linux的防火墙关了吗 有时候会获取到多个IPv6 你获取的是第几个IPv6

linux关了，获取了两个ip，解析的是第一个，获取的公网ip在itdog上部分ping得通，网站是绝对打不开的。

目前算是解决了，80端口没法用，本来想重定向的，用其他端口就能行。

authors: Emtier RikkaLzw WaterLemons2k lldacing straint


text:
Button 1 and 3 freeze

When the clock is displayed and button 1 or 3 is pressed the clock freezes.
(You did say that there was a kind of bug with those buttons if the modified widgets were not used, but I use the modified ones...)

Do you have all three of the clocks loaded? Buttons 1 & 3 switch between my three clocks. You may have to hack them if you do not want all three.

Ah I thought you needed all the widgets and not the clocks... After I've installed the clocks it seems to work better, thank your.

Actually, I have just fixed the clocks so that if BTN 1 or 2 is pressed and there is no corresponding clock app there is no crash. To get the new versions of the clocks, you need to delete all browsing data in Chrome and reload my app loader.
I have noticed that t when you enable the ANCS widget in Settings and then switch to the clock it does crash - working on it - however the simple fix is press button 3 until the clock reloads. It does not happen after that .

authors: WalaWala jeffmer

repo: jeffmer/JeffsBangleAppsDev