text:
Biasstep rebias

this contains the script of re-biasing detectors using biasstep.
this function has recently been tested in LATR-t with different loading conditions.
this plot is showing the result of re-biasing detectors when LATR-t ful exposed to the room

this plot is showing the result of re-biasing detectors after covering the LATR-t with a metal plate

Notice the tests were done with UHF detectors (Uv31), and the change of loading between these two test are very large.
in the field we expect lower and more gradually change of loadings.
The next level thing is to make the script run faster, this might involve only running part of the analysis code for bias-step.

Hi Yuhan, I'm about to start reviewing this, but do you think you can post here (or in the docstring) like the overall strategy for how this works? Something like a flow-chart that documents what it will to do at each step under what conditions, etc. would be really helpful for understanding this at a higher level

Hi Yuhan, I'm about to start reviewing this, but do you think you can post here (or in the docstring) like the overall strategy for how this works? Something like a flow-chart that documents what it will try to do at each step under what conditions, etc. would be really helpful for understanding this at a higher level

the main logic is described in 4.2.2 of
https://arxiv.org/pdf/2208.05997.pdf
extra parts of this script is for handling failures of bias_step and handling extreme situations of detectors stucked in SC state or in normal state

Hi Yuhan, finally was able to read through the entire function. Here are the notes I took about the control flow. Do you agree with this  as the intended behavior?

Take initial bias steps bsa_0

will rebias if there are any bias lines where R0 is all nan
If >10% of dets are have Rfrac < 0.1, marks bg as overbias_needed
If >50% of dets have Rfrac > 0.9, marks bg as normal (and drop from normal needed)

Overbias overbias_needed bgs

runs overbias_dets on bgs that need overbiasing, and waits
For biaslines that have been overbiased, set the DC bias voltage to testbed_100mK_bias_voltage
Run bias steps

(no bias retry here)

Check normal condition (above) and add updated bias lines to bg_detectors_normal array if they meet it

Drop from normal

For each normal bg, step voltage by 0.5(V_norm - V_SC) determined from IV
Run bias steps

update bsa_0 so it's always the last bias step ran
These bias steps don't have a retry

Check normal condition. If any bgs are still normal, repeat.
After exiting loop, the resulting DC biases are initial_dc_biases

Find new bjas voltage and take bias steps:

vspread is diff between median normal and median SC voltages based on IV
New bias voltage is init +/- 0.15*vspread where +/- is determined by
whether or not the median Rfrac is > or < than 0.5
Take bias steps (bsa_1) and retry if needed

Determine new bias point for each channel:

v_estimate = (v0 (target - Rfrac_1) + v1 (Rfrac_0 - target)) / (Rfrac_0 - Rfrac_1)
vnew = median(v_estimate[bg]), or if all are nan, vnew = (v1 - v0) / 2

Set bias to vnew and retake bias steps bsa_2 (with retry if needed)

BG is successful if abs(Rfrac - target) < 0.05

Fine tuning unsuccessful bias groups

Step 0.15 vspread in the appropriate direction
Take bias steps (with retry)
v_estimate2 = (v0 (target - Rfrac_1) + v1 (Rfrac_0 - target)) / (Rfrac_0 - Rfrac_1)

with v0= prev estimate and v1 = prev estimate + delta

Apply v_estimate2, retake bias steps.

Return  final bias step and bias voltages

Can you give an estimate of the run-time?

Can you give an estimate of the run-time?

4 mins if start from in-transition, 14 mins if start from SC. (tested in LATRt)

I like this description of the flow of the function. Since @yuhanwyhan gave the thumbs up to the description can you commit that to the docs rst file along with a link to Yuhan's conference proceedings @jlashner ?

there is one potential rare failure mode I just realized.
let's assume a situation that there is one bad biasline that causes heating or that biasline is short to a FR, and we don't want to touch it at all. The current script will still take a few bias_steps on this biasline. Although if a biasline is bad, we will not put bias_voltage on it to start with, so taking a biasstep round 0 voltage shouldn't do much damage, still....
the solution for this issue will require some re-writing.
the current script forces taking bg map for all 12 biaslines because when it calculates the v_estimate, it does the calculation for all biaslines and then apply the bg_map. One possible fix will be adding a for loop looping over the chosen biaslines and apply the bg_map inside the for loop such that the script only calculate the v_estimate for the chosen biaslines.
I suggest adding this fix into the later version of this script when we can test it cold again. Right now without a cold cryostat and MF/UHF UFMs, I am not confident that this change won't break the code.

a way to make the script faster will be only running the R_tes calculation from biasstep except the final biasstep (running only the _compute_R0_I0_Pj part). An estimation of the run-time for each analysis block of the current biasstep function will be nice.

Added a simple docs page linking to the spie paper, and made the function a pysmurf action. I think I am happy to merge this in now and solve any problems with it as they come up.

@kmharrington mentioned 2 additional things needed for this to be used within the site data operations, and packaging:

Getting the .g3 tags in the file to be something other than oper,bias_steps so they aren't all made into different operations books.
Figure out how to get imprinter to bind them all together into one book

I’m happy to wait on 2 until later but if 1 is a simple-ish modification I would like to get that in before merge. We want to use this soon in SAT-MF1 though so if not simple ok to merge and open new issue/or with these additional things.

Right, thanks for reminding me. Latest commit should do that, and sets all g3_tags to biasstep_rebias

Right, thanks for reminding me. Latest commit should do that, and sets all g3_tags to oper,biasstep_rebias

Thanks let's get this merged then

authors: jlashner msilvafe yuhanwyhan

repo: simonsobs/sodetlib


text:
Drag not working on tactile devices

Hi there,
I advice people don't use this pluggin for tactile devices, because drag is not triggerred.

Albinsunnanbo's answer is awesome but it might not be enough with Samsung browser.
I got it working by adding this before any Toggle-related code :
document.addEventListener("touchmove", function (event) { event.preventDefault(); }, false);
document.addEventListener("touchstart", function (event) { event.preventDefault(); }, false);
Hope it will help !
Thibka

I can confirm it is not working neither in Android nor in iOS and proposed patches didn't work either for me. Sadly will look for alternatives :(

source: gharchive/issue

authors: JordanMachado Thibka adrian-e

repo: simontabor/jquery-toggles

license: mit

license_type: permissive

license_source: bigquery


text:
Ability to sort (and paginate) by column

As requested in https://github.com/simonw/datasette/issues/185#issuecomment-376614973
I've previously avoided this for performance reasons: sort-by-column on a column without an index is likely to perform badly for hundreds of thousands of rows.
That's not a good enough reason to avoid the feature entirely though. A few options:

Allow sort-by-column by default, give users the option to disable it for specific tables/columns
Disallow sort-by-column by default, give users option (probably in metadata.json) to enable it for specific tables/columns
Automatically detect if a column either has an index on it OR a table has less than X rows in it

We already have the mechanism in place to cut off SQL queries that take more than X seconds, so if someone DOES try to sort by a column that's too expensive it won't actually hurt anything - but it would be nice to not show people a "sort" option which is guaranteed to throw a timeout error.
The vast majority of datasette usage that I've seen so far is on smaller datasets where the performance penalties of sort-by-column are extremely unlikely to show up.

Given how unlikely it is that this will pose a real problem I think I like option 1: enable sort-by-column by default for all tables, then allow power users to instead switch to explicit enabling of the functionality in their metadata.json if they know their data is too big.

I think this can work with a ?_sort=xxx parameter - and ?_sort=-xxx to sort in the opposite direction.
I'd like to support "sort by X descending, then by Y ascending if there are dupes for X" as well. Two ways that could work:
?_sort=-xxx,yyy
Or...
?_sort=-xxx&_sort=yyy
The second option is probably better in that it makes it easier for columns to have a comma in their name.
Is it possible for a SQLite column to start with a - character?

Might have to do something special to get sort-by-nulls-last: https://stackoverflow.com/questions/12503120/how-to-do-nulls-last-in-sqlite
order by ifnull(column_name, -999999)

Would need to figure out a smart way to get the default value - maybe by running a min() or max() against the column first?

This is a better pattern as you don't have to pick a minimum value:
ORDER BY CASE WHEN SOMECOL IS NULL THEN 1 ELSE 0 END, SOMECOL

I think there are actually four kinds of sort order we need to support;

ascending
descending
ascending, nulls last
descending, nulls last

It looks like [-blah] is a valid SQLite table name, so mark I descending with a hyphen prefix isn't good.
Instead, maybe this:
?sort_asc=col1&sort_desc_nulls_last=col2

I'd like to continue to support _next=token pagination even for custom sort orders.
To do that I should include rowid (or general primary key) as the tie breaker on all sorts so I ca I corporate that it into the _next= token.

In terms of user interface: the obvious place to put this is as a drop down menu on the column headers.
This also means the UI can support combined sort orders. Assuming you are already sorted by county descending and you select the candidate column header, the options could be:

sort all by candidate
sort all by candidate, descending
sort by county descending, then by candidate
sort by county descending, then by candidate descending

I'm tempted to put these verbose sorting options inline in the page HTML but have them in the table footer so they don't clog up the top half of the page with uninteresting links - then use JavaScript to hoik them out into a dropdown menu attached to each column header.

There is one other interesting option for auto-enabling/disabling sort: the inspect command could include data about column index presence and whether or not a column has any null values in it.
This would allow us to dynamically include a "nulls last" option but only for columns that contain at least one null.
It's quite a lot of additional engineering for a very minor feature though, so I think I'll punt on that for the moment.
We may find that the _group_count feature can benefit from column value statistics later on though.

Alternative idea: by default enable all sorting in the UI.
If a table has more than 100,000 rows disable sorting UI except for columns that have an index.
Allow this to be overridden in metadata.json

I'm not entirely sure how to get _next= pagination working against sorted collections when a tie-breaker is needed.
Consider this data:
https://fivethirtyeight.datasettes.com/fivethirtyeight-2628db9?sql=select+rowid%2C+*+from+[nfl-wide-receivers%2Fadvanced-historical]
order+by+case+when+career_ranypa+is+null+then+1+else+0+end%2C+career_ranypa%2C+rowid+limit+11

If the page size was set to 9 rather than 11, the page divide would be between those two rows with the same value in the career_ranypa column. What would the ?_next= token look like such that the correct row would be returned?

The problem is that our _next= pagination currently works based on a < - but for this case a <= for the value is needed combined with a < on the tie-breaker (which would be the rowid column).
So I think this is the right SQL:
select rowid, * from [nfl-wide-receivers/advanced-historical]
where career_ranypa >= -6.331167749 and rowid > 2736
order by case when career_ranypa is null then 1 else 0 end, career_ranypa, rowid limit 11

https://fivethirtyeight.datasettes.com/fivethirtyeight-2628db9?sql=select+rowid%2C+*+from+[nfl-wide-receivers%2Fadvanced-historical]
where+career_ranypa+>%3D+-6.331167749+and+rowid+>+2736
order+by+case+when+career_ranypa+is+null+then+1+else+0+end%2C+career_ranypa%2C+rowid+limit+11
But how do I encode a _next token that means ">= X and > Y"?

Maybe the answer here is that anything that's encoded in the next token is treated as >= with the exception of columns known to be primary keys, which are treated as >

Pushed some work-in-progress with failing unit tests here: https://github.com/simonw/datasette/commit/2f8359c6f25768805431c80c74e5ec4213c2b2a6
Here's a demo: https://datasette-column-sort-wip.now.sh/sortable-4bbaa6f/sortable?_sort=sortable - note that the _sort_desc and _sort_nulls_last options aren't done yet, plus it doesn't correctly paginate (the _next tokens do not yet take sorting into account).

I think this is the right incantation for a "next" link: https://datasette-column-sort-wip.now.sh/sortable-4bbaa6f?sql=select+*+from+sortable
where+sortable+<%3D+94
and+(
++(pk1+>+'d')
++or
++(pk1+%3D+'d'+and+pk2+>+'w')
)
order+by+sortable+desc%2C+pk1%2C+pk2
limit+7

I'm going to combine the code for explicit sorting with the existing code for _next= pagination - so even tables without an explicit sort order will run through the same code since they are ordered and paginated by primary key.

A common problem with keyset pagination is that it can distort the "total number of rows" logic - every time you navigate to a further page the total rows count can decrease due to the extra arguments in the where clause. The filtered_table_rows value (see #194) calculated using count_sql currently has this problem.

Actually next page SQL when sorting looks more like this:
select rowid, * from [alcohol-consumption/drinks]
where "country" like :p0
and beer_servings > 111
     or (beer_servings = 111 and rowid > 190)
order by beer_servings, rowid limit 101

The next page after row 190 with sortable value 111 should show either records that are greater than 111 or records that match 111 but have a greater primary key than the last one seen.
https://fivethirtyeight.datasettes.com/fivethirtyeight-2628db9?sql=select+rowid%2C+*+from+[alcohol-consumption%2Fdrinks]
where+"country"+like+%3Ap0
and+beer_servings+>+111
+++++or+(beer_servings+%3D+111+and+rowid+>+190)
order+by+beer_servings%2C+rowid+limit+101&p0=%25a%25

Demo: senator tweets ordered by number of replies:
https://datasette-issue-189-demo.now.sh/fivethirtyeight-2628db9/twitter-ratio%2Fsenators?_sort_desc=replies
Page 2 (note that since Senators retweet things there are tweets with the same text/number-of-replies but retweeted by different senators that span the page break): https://datasette-issue-189-demo.now.sh/fivethirtyeight-2628db9/twitter-ratio%2Fsenators?_next=8556%2C121799&_sort_desc=replies

Another demo: https://datasette-issue-189-demo-2.now.sh/salaries-7859114-7859114/2017+Maryland+state+salaries?_search=university&_sort_desc=annual_salary

This seems to be working well. Still left to do:

[ ] UI that shows which sort order is currently being applied (in HTML and in JSON)
[ ] UI for applying a sort order
[ ] Validation that the selected sort order is a valid column
[ ] Documentation plus release notes

Small bug: "201 rows where sorted by sortable_with_nulls" shouldn't have the word "where" in it.

I'm going to split the following out into separate tickets:

Ability to sort by multiple columns e.g. ?_sort=name&sort_desc=age&_sort=height
Ability to specify nulls last e.g. ?_sort_desc_nulls_last=age

Actually I think I always want nulls last when ordering asc, nulls first when ordering desc.

Another stretch goal for a separate ticket: smarter handling of sort-by-nulls-last.

I've merged this into master.

This is now released in Datasette 0.15 https://github.com/simonw/datasette/releases/tag/0.15

Another demo: https://fivethirtyeight.datasettes.com/fivethirtyeight-2628db9/congress-age%2Fcongress-terms

I think I found a bug. I tried to sort by middle initial in my salaries set, and many middle initials are null. The next_url gets set by Datasette to:
http://localhost:8001/salaries-d3a5631/2017+Maryland+state+salaries?_next=None%2C391&_sort=middle_initial
But then None is interpreted literally and it tries to find a name with the middle initial "None" and ends up skipping ahead to O on page 2.

authors: carlmjohnson simonw

repo: simonw/datasette

license_source: github-api


text:
Command to test if difference exceeds a threshold

My original inspiration for this tool was that I wanted to run a CI job that checked if an image had changed by more than a certain amount.
A command that varies its exit code based on the size of the difference could solve this.

I'm thinking this:
image-diff test one.png two.png --threshold 5

This will show an error message (to stderr) if at least 5% of pixels have changed between the two images, and return a non-zero exit code.
With -q it will suppress the message.

Any options other than threshold I wonder?
If you omit --threshold it will detect if there are any changes at all.

Can use this code as inspiration: https://github.com/python-needle/needle/blob/master/needle/engines/pil_engine.py

GitHub put your repo in my feed, and I can't resist to recommend on using an image hash algorithm instead to check similarity, depending on your use case. An interesting topic by itself!
Here's a nice lib I've used in the past https://github.com/JohannesBuchner/imagehash

Weirdly I had just found https://github.com/JohannesBuchner/imagehash when I saw your comment!

fluke! long live to internet

and you might have come across the blog post. I'm surprised on how simple and effective it is. imagehash uses numpy operations, it might be bigger dependency, but will run faster, that's a trade off

authors: redraw simonw

repo: simonw/image-diff


text:
A way to use with Fastboot but not in Fastboot

I use Fastboot with Ember SimpleAuth but my use case is such that the Fastboot App Server will always render a page without authentication, in other words Ember SimpleAuth is only required for client side authentication. However, SimpleAuth generates a cookie when running under Fastboot, which messes up my caching. I use(d) Varnish to strip all cookies but I've just moved over to Fastly a Varnish powered CDN and had to learn and configured it to do the same. So I thought, maybe others are going through the same, and even if not, this really should be configurable in SimpleAuth.
I use the Adaptive Store, I once switched to the localStorage store which I believe would solve this issue but I switched back after reading it will affect authentication in private browsing mode on Safari and iOS Safari.
I propose to investigate how to make this configurable. If we add a disable in Fastboot boolean, how will that affect the service calls? Or do we add a setting say Fastboot user = cookie/null.
Not sure so opening this as an issue.

Scenarios like this one are the reason why ESA was designed to be pluggable in the first place. You can simply implement your own session store and use that. I guess you would write something that uses localStorage (or a cookie or sessionStorage) in the browser and works like the ephemeral store in FastBoot. The store API is very simple - you only need to implement 3 methods really - check the BaseStore's API docs for more info.

Thanks for your response @marcoow , indeed a custom session store would be one way to solve this, but that means creating one in every project as well as keeping up with the API in case of changes. I find it simpler and more scalable to just use Varnish and strip all cookies coming from Simple-Auth, so that's what I use. But as I stated in the issue, perhaps there are others having the same issue but solving it in different ways. So I created the issue to investigate, if enough users reactive positively to it, whether to make it configurable in SimpleAuth itself.

The idea behind ESA has always been to provide a library for implementing authentication/authorization solutions with little effort. The goal was to make it pluggable so that everyone can build custom solutions for specific requirements if need be but not necessarily support every use case out of the box in the core library. Everything that gets added makes the library gibber and more complex, which is something we're trying to avoid for the sake of ESA's long term sustainability.
So for anything that ESA does not support out of the box, the first question to ask is always: can that aspect be implemented via ESA's pluggable architecture easily? If the answer is yes that's great 👍 but that also makes it unlikely that the aspect in question will be added to the core library (unless it turns out to be something that the majority of the users are using which doesn't seem to be the case here). If you can solve the problem with using the adaptive store and stripping cookies in Varnish that's great and the solution is documented here now.
Implementing a custom session store is super easy though (I think - if that turns out to be wrong we need to make it easier or maybe better documented). The API is also very unlikely to change. In fact, there is no way it could change before a 2.0 release that's not even planned yet. And even if it would change with 2.0 we'd have to deprecate it first which we haven't done and have no intention to do. So while we will add deprecations over time and remove some things in 2.0, session stores aver very unlikely to be one of these things.

Thanks for that comprehensive answer. I'm my free time, I try create a custom session store and report back  on its ease or difficulty. I'd even paste the method here incase others who come across this issue but can't go the varnish way. Thanks.

authors: The-Don-Himself marcoow

repo: simplabs/ember-simple-auth


text:
What if authentication route is an external URL?

In an app I'm working on now, the authentication route is actually external to the Ember application, and is managed by a different system. This system emails users a link that they click which automatically brings them to the Ember app, authenticates them using query params, then logs them in.
The various mixins have been great for achieving the automatic log in, but redirecting to an external URL when authentication fails or the session is destroyed has been a bit of work, especially regarding testing. Essentially I made something like this on the app route:
redirectToRecovery: function() {
  if (config.environment === 'test') {
    this.transitionTo('signup');

  } else {
    window.location.replace(config['simple-auth'].authenticationUrl);
  }
}

and just invoke that method on the various hooks (sessionInvalidationSucceeded, sessionAuthenticationFailed etc.). Also, the signup route just happens to be an unprotected route in the app, so in my tests I can verify users cannot access protected routes. This is clearly not the best solution.
Any thoughts on a simpler way to accomplish this? Would you accept some PRs along these lines if I have some time to work on it?

Whenever authentication needs to be triggered the mixins will invoke the authenticateSession action which by default will simply transition to Configuration.authenticationRoute. If your authentication route is external to the Ember application you could simply override that action and implement the redirect there. Of course you'd still have to handle the test environment where you don't want to redirect to another URL.
Does that solve your use case?

Ah, yes I believe it does. Thanks Marco!

authenticateSession is now deprecated, what is the new way to achieve this?

@jackmatt2: you call the authenticate method on the session service as explained in the README: https://github.com/simplabs/ember-simple-auth#basic-usage

Does not work when the login page is hosted elsewhere. In my case a jsp page.

@jackmatt2: sounds like that might be sth. for stackoverflow

Yep, added it.

authors: jackmatt2 marcoow samselikoff


text:
Pytorch implementation

Thanks for your great contribution. I really enjoyed reading the paper.  I hope you do not mind me asking, but are there any plans for  implementing the code in  Pytorch? Although I am pretty familiar with Tensorflow, I find TF's declarative mode  and static graph design philosophy a major flaw for research purposes, where flexibility, ease of debugging, and  clarity of code tend to be more important considerations for some, especially for those researchers who would want to build upon, incorporate, or modify existing code.

Glad you enjoyed the paper!  A numba implementation with a scikit-learn-like interface is already in the works, which will hopefully address many of the issues you listed.  I plan to benchmark it against the tensorflow implementation, and will definitely consider pytorch if the performance difference is too onerous.

Thank you for your reply!

I just merged a numba implementation which may address your concerns.  In addition, it is much faster an memory efficient than the previous tensorflow implementation, and has a pretty clear (I think) scikit-learn-like API interface.  I'll be posting some API tutorials soon, but a CLI walkthrough is already up.

Impressive work. Thank you for your contributions!

authors: hannaml rfarouni

repo: simslab/scHPF


text:
Add events

Could you guys add events like clipboardy.on('paste')?
So it triggers a callback with the data pasted

I don't know about Windows or Linux, but on macOS, the only way to get pasteboard events is polling, which is inefficient.
Why do you need a paste event for a Node.js module? The only use-case I can think of is some kind of interactive CLI tool.

Fixed that with while loops, thanks.

authors: sindresorhus snuckdev

repo: sindresorhus/clipboardy

license: MIT


text:
unable to handle more than 16 files?

Some background: I have a stream that concatenates over 100 files together using gulp-concat. I'm trying to make sure these are sorted first, so I am using gulp-sort. But I wanted to check the ordering of the files which might need to be customized.
Anyway, my task looks something like this:
gulp.task('framework', function() {
    var dest = 'build/ui/js', stream;
    stream = gulp.src(sourcePaths.framework) // contains a couple of globs
    .pipe(sort());
    if(args.debug) { // set to true outside this task
        stream.pipe(debug({ title: 'framework' }));
    }
    stream.pipe(concat('framework.js'))
    .pipe(gulp.dest(dest));
    return stream;
});

After 16 filenames have been output to the console, the task just stops and doesn't continue processing. If I reduce the number of files passed into src() to below 16, it seems to work fine.

This is looks like highWatermark problem, but gulp-debug is not buffering incoming files, just passign them through. I think sort() is causing problems, because it needs to get all files, sort them and after that pass them on.
Can you remove .pipe(sort()) line?

If I remove the sort line, everything works. However I think I am going to replace gulp-sort with gulp-order (which fits my use case better anyway), we'll see how that goes.

repo: sindresorhus/gulp-debug


text:
Add server-side rendering support

Fixes #8

Can you add a test?

Thanks 🙌

source: gharchive/pull-request

authors: rafaelfbs sindresorhus

repo: sindresorhus/react-router-util


text:
Add arrow-up support when choosing labels in a PR

This feature adds support for cycled list navigation with keyboard support when choosing labels for PRs.
The PR closes #1450 (I saw the project had an older but closed PR so I thought I could give it another try).

Why limit it to labels? Could be applied to any list popover, like Reviewers, Assignees, Project, Milestones, etc.

@sindresorhus I limited it to labels because of the issue but I'm more than happy to expand it to the other lists! 👍

Oh, sorry, hahaha, i think what the emails if for some projects un Github
El sáb., 11 may. 2019 12:57, Eduardo Fernandes notifications@github.com
escribió:

@sindresorhus https://github.com/sindresorhus I limited it to labels
because of the issue but I'm more than happy to expand it to the other
lists! 👍
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/sindresorhus/refined-github/pull/2008#issuecomment-491531805,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AMBMLDK6Z7ZODRABP4DSRWTPU4CJRANCNFSM4HKXP4XQ
.

Ping on this, if you have time

Feel free to reopen this if you have time to pick it up again

authors: Abraham6754 bfred-it idasbiste sindresorhus

repo: sindresorhus/refined-github


text:
Meta: Use JSX when generating elements with functions

Testing/implementing https://github.com/vadimdemedes/dom-chef/pull/59

Before this PR

After


text:
Invalid 'reference' directive syntax

ERROR in node_modules/screenfull/dist/screenfull.d.ts(1,1): error TS1084: Invalid 'reference' directive syntax

How did you fix this ?

Just Open screenfull.d.ts and save it, Its solve my issue.
or replace ///  with //

Hello,
Is it possible to fix this issue in lib code please ?
We use this fix  in an auto build chain (Nexus & Jenkins for example)

Hi @sindresorhus no body want's to fix this in node_modules. It's not the right way to fix the issue in library. It's open source and all team members can't change library code. what if the code builds through CI/CD pipeline

There's nothing wrong with Screenfull. You need to upgrade your TypeScript version. See: https://github.com/DefinitelyTyped/DefinitelyTyped/issues/10097#issuecomment-499783519

authors: Ferhatos chandrasekharu donglinkai jigneshkapdiya m00dy sindresorhus


text:
SRTranslator stopped working.

A few days ago it was working fine, but now i get 0% and stops after 1-2 min with no error.
Tried to update all my libraries but still the same.
Translating xtest.en.srt to xtest.da.srt
Loading c:\serier\xtest.en.srt
... Translating chunk. 0 %
Code
def translate_file(file_path, translated_file, src_lang, dst_lang):
try:
translator = DeeplTranslator()
srt = SrtFile(file_path)
srt.translate(translator, src_lang, dst_lang)
srt.wrap_lines(32)
srt.save(translated_file)
translator.quit()
except Exception as e:
log.log_error(f"Error during translation: {str(e)}")
END.
Did run it with DEBUG on. and here is the log file.
06-02-2023 13:43:09 Translating xtest.en.srt to xtest.da.srt
06-02-2023 13:43:09 Getting a new Proxy from https://www.sslproxies.org/
06-02-2023 13:43:09 Starting new HTTPS connection (1): www.sslproxies.org:443
06-02-2023 13:43:09 https://www.sslproxies.org:443 "GET / HTTP/1.1" 200 None
06-02-2023 13:43:09 Starting new HTTP connection (1): 134.122.26.11:80
06-02-2023 13:43:09 Starting new HTTP connection (1): 167.71.199.211:39909
06-02-2023 13:43:10 Starting new HTTP connection (1): 103.169.7.88:61524
06-02-2023 13:43:10 Starting new HTTP connection (1): 66.70.178.214:9300
06-02-2023 13:43:11 http://66.70.178.214:9300 "GET http://www.google.com/ HTTP/1.1" 503 None
06-02-2023 13:43:11 Starting new HTTP connection (1): 140.227.25.191:23456
06-02-2023 13:43:11 Starting new HTTP connection (1): 198.27.74.6:9300
06-02-2023 13:43:12 Starting new HTTP connection (1): 158.69.52.218:9300
06-02-2023 13:43:12 Starting new HTTP connection (1): 43.243.126.35:3128
06-02-2023 13:43:13 Starting new HTTP connection (1): 5.45.92.167:443
06-02-2023 13:43:13 Starting new HTTP connection (1): 51.159.115.233:3128
06-02-2023 13:43:14 http://51.159.115.233:3128 "GET http://www.google.com/ HTTP/1.1" 302 347
06-02-2023 13:43:14 http://51.159.115.233:3128 "GET http://www.google.com/sorry/index?continue=http://www.google.com/&q=EgQzn59JGOfrg58GIinkVaBV1pS1VN4PxT2B8EabTJ-M6KttDyAsL6nE6VI8xdTOvK16iHVVyjIBcg HTTP/1.1" 429 3030
06-02-2023 13:43:14 Creating Selenium Webdriver instance
06-02-2023 13:43:14 driver not found in PATH, trying Selenium Manager
06-02-2023 13:43:14 Executing: C:\Users\Trixster\AppData\Local\Programs\Python\Python311\Lib\site-packages\selenium\webdriver\common\windows\selenium-manager.exe --browser firefox
06-02-2023 13:43:14 Using driver at: C:\Users\Trixster.cache\selenium\geckodriver\win64\0.32.1\geckodriver.exe
06-02-2023 13:43:14 Started executable: geckodriver in a child process with pid: 2804
06-02-2023 13:43:15 POST http://localhost:64112/session {"capabilities": {"firstMatch": [{}], "alwaysMatch": {"browserName": "firefox", "acceptInsecureCerts": true, "moz:debuggerAddress": true, "pageLoadStrategy": "normal"}}}
06-02-2023 13:43:15 Starting new HTTP connection (1): localhost:64112
06-02-2023 13:43:18 http://localhost:64112 "POST /session HTTP/1.1" 200 793
06-02-2023 13:43:18 Remote response: status=200 | data={"value":{"sessionId":"d318d2f9-78db-4a95-a80d-cdd9901442b6","capabilities":{"acceptInsecureCerts":true,"browserName":"firefox","browserVersion":"109.0.1","moz:accessibilityChecks":false,"moz:buildID":"20230127170202","moz:debuggerAddress":"127.0.0.1:64113","moz:geckodriverVersion":"0.32.1","moz:headless":true,"moz:platformVersion":"10.0","moz:processID":26220,"moz:profile":"C:\Users\Trixster\AppData\Local\Temp\rust_mozprofileCWRELt","moz:shutdownTimeout":60000,"moz:useNonSpecCompliantPointerOrigin":false,"moz:webdriverClick":true,"moz:windowless":false,"pageLoadStrategy":"normal","platformName":"windows","proxy":{},"setWindowRect":true,"strictFileInteractability":false,"timeouts":{"implicit":0,"pageLoad":300000,"script":30000},"unhandledPromptBehavior":"dismiss and notify"}}} | headers=HTTPHeaderDict({'content-type': 'application/json; charset=utf-8', 'cache-control': 'no-cache', 'content-length': '793', 'date': 'Mon, 06 Feb 2023 12:43:17 GMT'})
06-02-2023 13:43:18 Finished Request
06-02-2023 13:43:18 POST http://localhost:64112/session/d318d2f9-78db-4a95-a80d-cdd9901442b6/window/maximize {}
06-02-2023 13:43:18 http://localhost:64112 "POST /session/d318d2f9-78db-4a95-a80d-cdd9901442b6/window/maximize HTTP/1.1" 200 49
06-02-2023 13:43:18 Remote response: status=200 | data={"value":{"x":4,"y":4,"width":1366,"height":768}} | headers=HTTPHeaderDict({'content-type': 'application/json; charset=utf-8', 'cache-control': 'no-cache', 'content-length': '49', 'date': 'Mon, 06 Feb 2023 12:43:18 GMT'})
06-02-2023 13:43:18 Finished Request
06-02-2023 13:43:18 Going to https://www.deepl.com/translator
06-02-2023 13:43:18 POST http://localhost:64112/session/d318d2f9-78db-4a95-a80d-cdd9901442b6/url {"url": "https://www.deepl.com/translator"}
06-02-2023 13:43:20 http://localhost:64112 "POST /session/d318d2f9-78db-4a95-a80d-cdd9901442b6/url HTTP/1.1" 200 14
06-02-2023 13:43:20 Remote response: status=200 | data={"value":null} | headers=HTTPHeaderDict({'content-type': 'application/json; charset=utf-8', 'cache-control': 'no-cache', 'content-length': '14', 'date': 'Mon, 06 Feb 2023 12:43:18 GMT'})
06-02-2023 13:43:20 Finished Request
06-02-2023 13:43:20 POST http://localhost:64112/session/d318d2f9-78db-4a95-a80d-cdd9901442b6/element {"using": "css selector", "value": "[aria-label=Close]"}
06-02-2023 13:43:20 http://localhost:64112 "POST /session/d318d2f9-78db-4a95-a80d-cdd9901442b6/element HTTP/1.1" 404 414
06-02-2023 13:43:20 Remote response: status=404 | data={"value":{"error":"no such element","message":"Unable to locate element: [aria-label=Close]","stacktrace":"RemoteError@chrome://remote/content/shared/RemoteError.sys.mjs:8:8\nWebDriverError@chrome://remote/content/shared/webdriver/Errors.sys.mjs:180:5\nNoSuchElementError@chrome://remote/content/shared/webdriver/Errors.sys.mjs:392:5\nelement.find/</<@chrome://remote/content/marionette/element.sys.mjs:275:16\n"}} | headers=HTTPHeaderDict({'content-type': 'application/json; charset=utf-8', 'cache-control': 'no-cache', 'content-length': '414', 'date': 'Mon, 06 Feb 2023 12:43:20 GMT'})
06-02-2023 13:43:20 Finished Request
06-02-2023 13:43:20 POST http://localhost:64112/session/d318d2f9-78db-4a95-a80d-cdd9901442b6/element {"using": "css selector", "value": "[aria-label=Close]"}
06-02-2023 13:43:20 http://localhost:64112 "POST /session/d318d2f9-78db-4a95-a80d-cdd9901442b6/element HTTP/1.1" 404 414
06-02-2023 13:43:20 Remote response: status=404 | data={"value":{"error":"no such element","message":"Unable to locate element: [aria-label=Close]","stacktrace":"RemoteError@chrome://remote/content/shared/RemoteError.sys.mjs:8:8\nWebDriverError@chrome://remote/content/shared/webdriver/Errors.sys.mjs:180:5\nNoSuchElementError@chrome://remote/content/shared/webdriver/Errors.sys.mjs:392:5\nelement.find/</<@chrome://remote/content/marionette/element.sys.mjs:275:16\n"}} | headers=HTTPHeaderDict({'content-type': 'application/json; charset=utf-8', 'cache-control': 'no-cache', 'content-length': '414', 'date': 'Mon, 06 Feb 2023 12:43:20 GMT'})
06-02-2023 13:43:20 Finished Request
06-02-2023 13:43:21 POST http://localhost:64112/session/d318d2f9-78db-4a95-a80d-cdd9901442b6/element {"using": "css selector", "value": "[aria-label=Close]"}
06-02-2023 13:44:32 Finished Request
06-02-2023 13:44:34 Error during translation: Translation timed out

The same thing happens to me too, I'm using the latest version.

srt_file.py, line 138, in translate
translation = translator.translate(
deepl.py, line 125, in translate
raise TimeOutException("Translation timed out")
srtranslator.translators.base.TimeOutException: Translation timed out

I think I found something in the source field does not write anything

Using latest version. 0.1.81 :-)

Same issue here, it stays some seconds on "Translating chunk. 0 %" and then throws a timeout error.
When running with the -s flag, I can see the deepl language settings being correctly set up in the browser, but no text input is ever pasted into the translation box.
When runnning with -vv flag, it procudes a very long log, which I attached here
log.txt
.

The same also he selects the languages but does not put the text

Yeah, seems like something in DeepL's page changed and the textarea is disabled at start. Im working on a solution, hope to fix it today in the night. Don't promise anything tho.

authors: KryptoST Trixster-dk ab-unstable erickgamer787 sinedie

repo: sinedie/SRTranslator

license: WTFPL


text:
Unable to complete setup - No bridge found

Hello there, trying to setup my bridge but it doesn't work.
When I type dmx-hue setup for the first time in one of my Windows 11 VMs, it finds my two bridges, I select one of them, then click on the link button on top of the bridge and proceed to run dmx-hue setup again but this time it doesn't find any bridges. If I run dmx-hue it says to run the setup again. What could be affecting the setup? I also tried on a MacOS laptop with the same results.
Thanks!
Outputs:
PS C:\Users\filip_y80qtot> dmx-hue setup
Found 2 bridge(s)
? Multiple bridges found, select the one to use Bridge02 (10.254.0.19)
No bridges found
PS C:\Users\filip_y80qtot> dmx-hue setup
No bridge found
PS C:\Users\filip_y80qtot> dmx-hue
0
Bridge not configured, run "dmx-hue setup"

@sinedied , thanks.
I actually tried a Windows 10 and it worked on first try. Not sure what else changed besides the OS. Thanks for the help!

repo: sinedied/dmx-hue


text:
bug: no exchange for hopping window

Query:
https://github.com/singularity-data/risingwave/blob/5ff98d772f19ebb85aa3c6dd577db0c29693d1ab/e2e_test/streaming/time_window.slt.disabled#L1-L21
Explain:
dev=> explain create materialized view mv_hop as
select * from hop(t1, created_at, interval '15' minute, interval '30' minute);
                                                                         QUERY PLAN
-------------------------------------------------------------------------------------------------------------------------------------------------------------
 StreamMaterialize { columns: [row_id, uid, v, created_at, window_start, window_end, _row_id(hidden)], pk_columns: [_row_id, window_start], dist_keys: [4] }
   StreamHopWindow { time_col: $3, slide: 00:15:00, size: 00:30:00, output_indices: [0, 1, 2, 3, 5, 6, 4] }
     StreamTableScan { table: t1, columns: [row_id, uid, v, created_at, _row_id], pk_indices: [4] }
(3 rows)

Note that the table scan is distributed by _row_id, while materialize is distributed by window_start. There should be an exchange inserted between them, or should we use _row_id?

+1. at least there should be an Exchange before Materialize

+1. at least there should be an Exchange before Materialize

If the key is distributed by row_id, it also satisfies [_row_id, window_start] distribution. So we don't need to insert an exchange.

But we can always have an ad-hoc rule to insert an exchange before materialize so as to split them into two actors and thus improve parallelism 🤣

+1. at least there should be an Exchange before Materialize

If the key is distributed by row_id, it also satisfies [_row_id, window_start] distribution. So we don't need to insert an exchange.

#3595 fixed the issue by distributing with the input pk without exchange, which also fulfill the idea of #3255. I think we can close this issue now.

authors: BugenZhao fuyufjh skyzh

repo: singularity-data/risingwave


text:
fix(optimizer): fix col prune for logical hop

Refer to a related PR or issue link (optional)
#2875

please remember to fix it in #2769 @Enter-tainer


text:
Resizing the browser issues

When the browser window gets resized the ng-windows may move out of the visual scope. also the maximized windows don't readjust to the new viewport size.

I'll take a look.

authors: Head sinmsinm

repo: sinmsinm/angular-window-manager


text:
Please add license information

Could you please add a license to your project?
I'd like to use it for an iOS app that will be distributed by the App Store, and I need to be sure I can use your script under a license compatible to the App Store Terms for developers.
Github has some documentation on how to best add a license to a project here: https://help.github.com/articles/licensing-a-repository/.
Thank you for your consideration, and the effort you have already put into this!

Thanks for your advice. It will be MIT License for this project. I will add
the license file when I back to work next week.
On Fri, Sep 1, 2017 at 9:04 AM Ploy notifications@github.com wrote:

Could you please add a license to your project?
I'd like to use it for an iOS app that will be distributed by the App
Store, and I need to be sure I can use your script under a license
compatible to the App Store Terms for developers.
Github has some documentation on how to best add a license to a project
here: https://help.github.com/articles/licensing-a-repository/.
Thank you for your consideration, and the effort you have already put into
this!
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/sinofool/build-openssl-ios/issues/3, or mute the
thread
https://github.com/notifications/unsubscribe-auth/AAXNWICm6FS4zM7Yfrkj-XddoDQv0jYJks5seCr5gaJpZM4PKV54
.

Added

authors: Ploy-XIV sinofool

repo: sinofool/build-openssl-ios


text:
docs(readme): README 업데이트

변경사항

추후 변경할수도 있는거 감안하고 봐주시면 감사하겠습니다 ~

논의하고 싶은 사항

OG 이미지 관련
현재 최상단 OG 이미지는 사이프 공식 홈페이지에서 가져온 것을 사용하고 있습니다.

SDS 전용 이미지를 사용하는 것이 좋을지,
또는 Sipe 로고만 포함된 이미지를 사용하는 것이 더 적절할지 의견 부탁드립니다.

OG 이미지 관리 방식
OG 이미지를 public/assets 폴더에 저장한 후, README.md에서 참조하도록 설정했습니다.

일부 프로젝트는 docs라는 폴더를 만들어 이미지를 관리하기도 하던데,
어떤 방식이 더 효율적일지 조언을 부탁드립니다.

CONTRIBUTING.md 리뷰 요청
CONTRIBUTING.md를 초안으로 작성해 보았습니다.

내용이 부족한 부분이 있을 수 있으니, 한 번 검토해주시고 의견 주시면 감사하겠습니다!

시각자료
README.md

CONTRIBUTING.md

체크리스트

[ ] 기능 명세를 작성하였나요?
[ ] 테스트 코드를 작성하였나요?

오 너무 잘했다 리드미 실력잔데??

LGTM~~~~~~ sds 전용 로고나 이미지가 있으면 좋을것 같은데.. 지금은 없으니 일단 넣고 추후 변경해도 좋을듯! 크기가 넘큰것 같아서 크기만 좀 조정하면 완벽할것 같아유

그럼 아는 동생한테 살짝 부탁해서 이따가 시안 가져가볼게  ~ 그때 머지하겠으


text:
New way to pass ENVIRONMENT VARIABLES to runtime, to control DEBUG ou…

…tput and enable/disable BRUTEFORCE test, with fallback values.
REFERENCES:

Define a Makefile variable using a ENV variable or a default value https://stackoverflow.com/a/24263397/6366150
Docker compose .env default with fallback https://stackoverflow.com/a/70772707/6366150
Export environment variables inside "make environment" https://stackoverflow.com/a/49524393/6366150
Uppercase to lowercase and vice versa https://community.unix.com/t/uppercase-to-lowercase-and-vice-versa/285278/6
How do I trim leading and trailing whitespace from each line of some output? https://unix.stackexchange.com/a/279222/233927

Codecov Report

Merging #50 (8bda6ab) into main (93a2ace) will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff            @@
##              main       #50   +/-   ##
=========================================
  Coverage   100.00%   100.00%
=========================================
  Files           16        16
  Lines          372       372
  Branches        49        49
=========================================
  Hits           372       372

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more

authors: codecov-commenter sir-gon

repo: sir-gon/projecteuler-py


text:
Endorsements return non-whole numbers.

Another pesky Blizzard change for you to try to sort out.
Up until about yesterday endorsements would return whole numbers for each type of endorsement. Today, however, they return numbers below one. I believe these numbers are percentages because when they're added up, they always add up to one.

Job's done, change is live, should make it a bit easier to deal with.
Used decimal for increased precision because it seems like you might want to be precise with this.

Man, I've got to thank you for being so responsive to this project. Keep it up <3
Really does suck that Blizzard no longer displays the exact number of endorsements. I'll miss that.

authors: Giggitybyte sirdoombox


text:
Battle Record shield damage isn't updating

Dang. I'm not sending the stackShields or armor per token with the battle record...

repo: sirgwain/craig-stars


text:
Write reports Incrementally during the run

Currently all reports are generated after a run completes. I'd like this to output during the run.

Not an issue. It was a problem with the IDE not refreshing file system until the run is done

repo: sisbell/stackwire-gpt


text:
add https skip verify flag

can you add https skip verify flag to ignore cert verify，like -k, --insecure in curl ?
or is there some way to do this in current version ?

The ability to specify a client cert, key, and truststore would also be nice.

Thanks for your suggestions, I will add these features supporting --insecure, --cert and --key this weekend.

@KleKwi @chrisoberle hi,  Features --insecure, --cert and --key has beed supported in latest main branch. if no problems, I will release it.

@KleKwi @chrisoberle hi,  Features --insecure, --cert and --key has beed supported in latest main branch. if no problems, I will release it.

Thank you!

authors: KleKwi chrisoberle six-ddc

repo: six-ddc/plow


text:
Installation steps not applicable for Netbox Docker setup

upgrade.sh will fail with dependencies error when running netbox-docker (gcc related). Also no systemctl is included on Alpine docker image from main build https://github.com/netbox-community/netbox-docker
× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [7 lines of output]
/usr/lib/gcc/x86_64-alpine-linux-musl/10.3.1/../../../../x86_64-alpine-linux-musl/bin/ld: cannot find Scrt1.o: No such file or directory
/usr/lib/gcc/x86_64-alpine-linux-musl/10.3.1/../../../../x86_64-alpine-linux-musl/bin/ld: cannot find crti.o: No such file or directory
/usr/lib/gcc/x86_64-alpine-linux-musl/10.3.1/../../../../x86_64-alpine-linux-musl/bin/ld: cannot find -lssp_nonshared
collect2: error: ld returned 1 exit status
sys.argv ['/tmp/pip-install-8azecwv0/ruamel-yaml-clib_499f18dc73c743ea86e47acc6c498bf1/setup.py', 'egg_info', '--egg-base', '/tmp/pip-pip-egg-info-249cq7qa']
test compiling /tmp/tmp_ruamel_9j_rnwv4/test_ruamel_yaml.c -> test_ruamel_yaml link error /tmp/tmp_ruamel_9j_rnwv4/test_ruamel_yaml.c
Exception: command '/usr/bin/gcc' failed with exit code 1
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

in you docker compose you need to add the command to trigger the update on the worker.
Afterward you tables should be generated.
Small example for docker-compose.override.yml
version: '3.4'   netbox-worker:      command:     - /opt/netbox/venv/bin/python     - /opt/netbox/netbox/manage.py     - rqworker

It works fine for me, here is my Dockerfile:
FROM netboxcommunity/netbox:latest-2.2.0
RUN /opt/netbox/venv/bin/python3 -m pip install --upgrade pip setuptools

#netbox_ddns
RUN apt update
RUN apt install git --yes
RUN /opt/netbox/venv/bin/pip install --no-warn-script-location git+https://github.com/sjm-steffann/netbox-ddns@31c511b3e1e8f4939c1aba424bdc8194eaa1b85a

authors: a-belhadj aodix eberbrenes

repo: sjm-steffann/netbox-ddns


text:
High-level api

I wanted to know how the high-level api talked about in the readme is coming along and if it was still on the table.

It's definitely on the table, but my work on this library besides maintenance is limited by time. There's an open PR (#17) at the moment working towards it, but it doesn't entirely fit the approach I'd like to see to the code structure and I'd need to substantially rework it in a branch before merging. At some point I'd like to sit down, reevaluate it, and decide between doing so or just starting my own approach, but again, am unsure as to when I'll have the opportunity to do so.

I understand. I always have a similar issue.
Thanks for your reply. I'll follow the PR.

authors: Extarys sjudson


text:
Bitbucket:271 設定ダイアログ保存時に例外発生

再現手順確立してないけどとりあえず起票。

System.NotImplementedException: メソッドまたは操作は実装されていません。
   場所 ContentTypeTextNet.Pe.Library.Utility.AppbarForm.ToHidden(Boolean force)
   場所 ContentTypeTextNet.Pe.PeMain.UI.App.HideAutoHiddenToolbar()
   場所 System.ComponentModel.CancelEventHandler.Invoke(Object sender, CancelEventArgs e)
   場所 ContentTypeTextNet.Pe.PeMain.UI.Ex.AppContextMenuStrip.OnOpening(CancelEventArgs e)
   場所 System.Windows.Forms.ToolStripDropDown.SetVisibleCore(Boolean visible)
   場所 System.Windows.Forms.ToolStripDropDown.Show(Int32 x, Int32 y)
   場所 System.Windows.Forms.ContextMenuStrip.ShowInTaskbar(Int32 x, Int32 y)
   場所 System.Windows.Forms.NotifyIcon.ShowContextMenu()
   場所 System.Windows.Forms.NotifyIcon.WndProc(Message& msg)
   場所 System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

Software: PeMain
Version: 0.59.3.274-b1a7c2835b3e53b51fd3acce4b5e2da236931b73
Type: RELEASE
Process: 64
Platform: 64
OS: Microsoft Windows NT 6.1.7601 Service Pack 1
CLI: v4.0.30319

BitBucket から移植

項目
内容

元課題
#271

起票日時
2015-05-24T00:00:15Z

起票者
sk_0520

096c4d0d2d399d2e384b3febef41664320e0d86d

BitBucket から移植

項目
内容

元コメント
#271 コメント

コメント日時
2015-05-24T23:06:33Z

コメントユーザー
sk_0520

Removing component: PeMain (automated comment)

BitBucket から移植

項目
内容

元コメント
#271 コメント

コメント日時
2020-02-24T21:18:28Z

コメントユーザー
sk_0520


text:
Bitbucket:431 PeからSharedLibraryへ統合した処理に委譲

内部的なお話。
ついでにソースも綺麗にしておく。

Software: Pe
Version: 0.76.1.37974-44f67d148ee65e925593dfa7d6568f40a801b2c1
BuildType: RELEASE
Process: 64
Platform: 64
OS: Microsoft Windows NT 6.1.7601 Service Pack 1
CLR: v4.0.30319

BitBucket から移植

項目
内容

元課題
#431

起票日時
2016-04-02T03:48:10Z

起票者
sk_0520

resolved #431
→ 《cset 2bdf3043da95》

BitBucket から移植

項目
内容

元コメント
#431 コメント

コメント日時
2016-04-03T02:28:32Z

コメントユーザー
sk_0520

Removing component: Source (automated comment)

BitBucket から移植

項目
内容

元コメント
#431 コメント

コメント日時
2020-02-24T21:18:25Z

コメントユーザー
sk_0520


text:
feat: bundle css and js files into go executable

make terminal page running without internet access to cdn.jsdelivr.net

Thank you :)

authors: evrins skanehira

repo: skanehira/rtty


text:
Add ability to render to the host element if no Shadow DOM support is available.

It might be best to render to the host element if no Shadow DOM support is available. This just means that composing elements that have a render() function into other elements will cause errors with Incremental DOM.
If we do end up doing this, we should think about warning to the console. If not, we should throw an error requiring Shadow DOM support.

This has been implemented without warning, currently. If we think there should be warning support we should add this at a later point.

When you say "shadow DOM support", does that include polyfilled support?

yes

authors: jpnelson treshugart

repo: skatejs/skatejs


text:
How can I write this sql in emacsql-sqlite format?

Hi, emacsql syntax is a bit arcane to me. How can I rewrite this?
 select case substr(path,1,8)
 when 'storage:'
 then '/home/amos/Zotero/storage/'||its.key||'/'||substr(path,9)
 else path
 end
 from items its, itemAttachments a, fulltextWords w, fulltextItemWords iw , fulltextItems i
 where w.wordID = iw.wordID and iw.itemID = i.itemID and a.itemID = i.itemID and its.itemID = a.itemID
 and word in ('database');

regards.

You can't use the concatenation operator (||) with EmacSQL. It requires
all values are maintained as valid s-expressions, and s-expressions
generally cannot be correctly concatenated with this operator.

authors: amosbird skeeto

repo: skeeto/emacsql

license: unlicense


text:
Input text style incorrect

Current Behavior

Text input box missing padding and styles
Expected Behavior

Steps To Reproduce
    <Label label="Full Name" classes="mt-5">
            <input id="fullName" name="fullName" type="text" class="input" value={form?.full_name ?? fullName}/>
        </Label>

Link to Reproduction / Stackblitz
a
More Information
No response

@Adam1901 it looks like you missed the prerequisite steps here. When using forms, we require the use of the official Tailwind Forms plugin:
https://www.skeleton.dev/elements/forms#install-the-forms-plugin
Just FYI, this plugin normalizes most input styles, which them more easily customized between browsers.

Serves me right for not reading the documentation.
May I suggest a migration page betwenn1 and 2.
Thank you!

@Adam1901 if you mean between versions 1 and 2: https://github.com/skeletonlabs/skeleton/discussions/1947

Yeah the migration guide is part of the pinned v2 Announcement post here: https://github.com/skeletonlabs/skeleton/discussions/1945

repo: skeletonlabs/skeleton


text:
W3C validator complains

Current Behavior
Multiple components throwing multiple errors in https://validator.w3.org/
Expected Behavior
No response
Steps To Reproduce
No response
Link to Reproduction / Stackblitz
No response
More Information
No response

This is probably too broad to be useful I'm afraid. I'm not sure we'll be able to promise major changes on this front before Skelton v3 is ready. v3 features a vast number of changes to adhere to ARIA and WGAC guidelines. I'll keep this validator in mind for future testing, but unfortunately I don't think this is actionable for us...yet!


text:
Add PROFILE.md

Summary

Changes

Closes:
Task list

[ ] For workflow changes, I have verified the Actions workflows function as expected.
[ ] For content changes, I have reviewed the style guide.

Automatically workout easily successful
Anando
On Mon, Sep 2, 2024, 01:32 Jona543 @.***> wrote:

Summary Changes
Closes:
Task list

For workflow changes, I have verified the Actions workflows function
as expected.
For content changes, I have reviewed the style guide
https://github.com/github/docs/blob/main/contributing/content-style-guide.md
.

You can view, comment on, or merge this pull request online at:
https://github.com/skills/introduction-to-github/pull/831
Commit Summary

8b0962e
https://github.com/skills/introduction-to-github/pull/831/commits/8b0962e7c4b0c8bb8d93899dd5bf5c04596bd842
Add PROFILE.md

File Changes
(1 file https://github.com/skills/introduction-to-github/pull/831/files)

A PROFILE.md
https://github.com/skills/introduction-to-github/pull/831/files#diff-474adae50fddd8134a968b8e9f5f101cb860268b397baab28966501f8390a8ed
(1)

Patch Links:

https://github.com/skills/introduction-to-github/pull/831.patch
https://github.com/skills/introduction-to-github/pull/831.diff

—
Reply to this email directly, view it on GitHub
https://github.com/skills/introduction-to-github/pull/831, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AWLHVFACC4DXRPWHBV2EMU3ZUNTU3AVCNFSM6AAAAABNPDFCESVHI2DSMVQWIX3LMV43ASLTON2WKOZSGQ4TSNRUGU4TQNA
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>

repo: skills/introduction-to-github


text:
Fix Flaky RecordHandlerTest#testDelete()

Source https://github.com/skiptests/astraea/actions/runs/3282393763/jobs/5405739787#step:5:714
RecordHandlerTest > testDelete() FAILED
    org.opentest4j.AssertionFailedError: expected: <1> but was: <0>
        at app//org.junit.jupiter.api.AssertionUtils.fail(AssertionUtils.java:55)
        at app//org.junit.jupiter.api.AssertionUtils.failNotEqual(AssertionUtils.java:62)
        at app//org.junit.jupiter.api.AssertEquals.assertEquals(AssertEquals.java:166)
        at app//org.junit.jupiter.api.AssertEquals.assertEquals(AssertEquals.java:161)
        at app//org.junit.jupiter.api.Assertions.assertEquals(Assertions.java:628)
        at app//org.astraea.app.web.RecordHandlerTest.testDelete(RecordHandlerTest.java:807)

剛剛測試這個在 #945 修好了

repo: skiptests/astraea


text:
[WEB] Increase metric store expiration for BalancerHandler

原先一秒鐘的保留時間太短，當叢集規模大的時候，一次撈取會耗費很長的時間，沒辦法在這個短暫的時間下成功建構一個完整能服務 NetworkCost 的 ClusterBean。

那先合併吧，留一個議題提醒我們調教完 metrics 後要修改回來

那先合併吧

@chia7712 能幫我再 approve 一次嗎，剛剛 BalancerHandler.java 有衝突，感謝🙏


text:
서버 모니터링 시스템 구축

트래픽 체크 및 지속적인 관리를 위한 서버 모니터링 시스템 구축
netdata가 UX/UI가 가장 직관적이고 필요한 기능이 전부 있어서 가장 적합할 듯 합니다.
후보 비교
https://tidal-brook-54f.notion.site/783be0f03dd042af907e5e9740acbb57?v=a7965f12cf584a0bb8937d91e911727f

netData는 Host machine의 상태만 확인 가능합니다. 컨테이너별 상태를 모니터링하기 위해 Cadvisor를 사용합니다.
참고

https://blog.naver.com/PostView.nhn?blogId=alice_k106&logNo=221090348538&proxyReferer=https:%2F%2Fwww.google.com%2F
https://imbang.net/2019/06/21/cadvisor-prometheus-grafana-%EB%A5%BC-%EC%9D%B4%EC%9A%A9%ED%95%9C-%EC%BB%A8%ED%85%8C%EC%9D%B4%EB%84%88-%EB%AA%A8%EB%8B%88%ED%84%B0%EB%A7%81/

@cranemont sentry는 어떻게 생각하시나요??

@dotoleeoak 찾아봤는데 sentry랑 Cadvisor, node exporter가 성격이 조금씩 다르네요

sentry: user, service error log 수집 시스템
Cadvisor: docker container 리소스 모니터링 시스템
node exporter: host machine 리소스 모니터링 시스템

이중 먼저 필요한건 sentry같아 보여요! 우선 sentry 먼저 도입하고
추후에 Cadvisor+node exporter조합으로 리소스 모니터링 시스템을 구축하는건 어떨까요?

@cranemont 넵 좋아요~

system-management 레포지토리에서 진행합니다

authors: cranemont dotoleeoak

repo: skkuding/skku-coding-platform


text:
feat: (back) OpenAI 관련 로직 초기설계 (진행중)

server/src 하위에 openai 폴더 생성 후 controller와 service 파일 추가.
controller에는 ChatGPT에 메시지를 생성하는 기초 함수 몇 가지가 입력되어 있고,
service는 활용 방향에 대해 고민중인 단계입니다.

디렉토리 구조에 문제가 있을 것 같아서 말씀 드립니다. 일반적으로 controller에는 api 즉, GET /api/user 등의 end-point를 표현하고 내부 비지니스 로직은 service layer에 구현하는게 일반적입니다.
그런데 현재 구조에는 controller에 gpt와 통신하는 로직이 존재하고 해당 메서드들은 프론트와의 통신을 위한게 아닌 단순히 gpt와의 통신 메서드로 보이네요.
제 생각에는 feedback이라는 커다란 도메인(controller, service)를 두고 외부에 따로 openapi.service 등의 provider로 빼는게 좋아보입니다. feedback controller에는 프론트에서 feedback 관련한 api를 호출하는 end-point를 구현하면 될 것 같습니다.

authors: AnJeongMin lincret


text:
Visualization under Linux

A student using Windows reported that the visualization window does not load. The file works on my Mac, so I suspect that Linux causes some problems. Attached is the version info of his machine.

cannot reproduce

repo: skogsbaer/write-your-python-program


text:
Any documentation about the ewelink api directly(not the package) ?

Hello !
It’s maybe a bit off topic, but does someone know if any kind of documentation on the ewelink API has been made ?
I need to implement the control of ewelink connected devices from scratch and I don’t find any resources that simply explain how this API works.
Thank you in advance

https://github.com/CoolKit-Technologies/apiDocs/tree/master/en
In particular APICenterV2.md

Thanks a lot !

repo: skydiver/ewelink-api


text:
Modelling an "annotated" path.

Hi!
I'm currently trying to define a data structure to model a path followed by a vehicle, that will consist of several positions at which properties can be assigned. A position in this case is simply an integer that denotes the distance traveled by the vehicle. An example of a property assignable to a position is a point of interest, or an indication that the vehicle is turning.
Some things that are important to note:

Positions need to be sorted in ascending order.
Positions are not sequential. There may be a position with value 1 followed by another with value 10.
It should be possible to iterate each of the positions and their properties in separate, and always in the ascending order of the positions.
Sometimes it is necessary to iterate positions' properties simultaneously.
There are some continuous ranges of positions that are special.
There are some properties that all positions have and some that are optional.
Paths are short lived they are not maintained throughout the app lifetime.

My immediate thought was to use a AoS, but it quickly became evident that it won't scale properly given the unnecessary space that will be occupied by the optional properties at all the positions.
The idea then switched to use a SoA, with a main sorted vector of structures containing the position value and any associated non-optional properties. For each optional property I would then have a separate vector sorted in ascending order of the positions. Some of the optional properties are already guaranteed to be received in the correct order so I won't even have to sort all of the vectors. To be able to relate optional properties with the corresponding positions' entries, each optional property will store its associated position value and then I would have a bimap to be able to map a non optional position to its position entry and a position entry to any other optional property. This bimap would provide the information to iterate positions' properties simultaneously. The special ranges of positions I mentioned above could then be just a property with a pair of iterators to the position vector. Nevertheless I wanted to find out if anyone had this problem already and whether there was any library or known concept that could help me simplify this.
After a bit of research and discussion the suggestion of modelling this as an ECS came up. I had briefly heard the term before but, for practical purposes, didn't knew anything relevant. However it did seemed like a good fit for what I was trying to do while providing also a lot of flexibility. After reading a bit on it I ended up finding your library and did some code to get used to it. It felt easy to use and there was a lot of information available. So I decided to use it and try to model this as an ECS.
My idea is to have a registry per path with the following components:

One for the position value.
One for the Non-Optional properties.
One for each of the Optional properties.

Then to guarantee the proper sorting I would sort the positions everytime a new one is added and I will make sure that every entity would have a Position component. With the view support it would be easy to iterate entities with the components I want. The only downside is that I would need to always include the Position component in the view to be able to apply the .use<...> construct and get them in the order I need. It would get tricky if the necessity to iterate non-optional properties in a "XOR way" comes up but I think I would be able to deal with it either with an additional component or a vector on the side. Another problem that I thought about is that since the components other than the Positions are not ordered I cannot represent the special ranges of positions as a pair of iterators and would need to resort to a vector of entities for each range.
After all of this I'm starting to have some performance concerns vs the SoA approach since:

Iterating each of the components forces an indirection with the position components.
Ranges of positions are now vectors instead of a pair of iterators.
I still need to do some relations on the side for "XOR iterations" or had tag components to be able to use views.

I've read some documentation and some of the "ECS back and forth" articles bug given that I don't have a lot of knowledge on the library and ECS in general I wanted to ask:

Do you think ECS is a good approach here?
If yes am I missing something in the library that could help me to deal with the ordering by position requirement ?
Would you model a range of positions differently than a vector of identities?

Thanks and sorry in advance if this question is out of context here.

I'm turning the issue into a discussion as it seems more appropriate to me. 👍

authors: riverwoodland skypjack

repo: skypjack/entt


text:
fix undefined uint32_t error on 2.12.1 under GCC 13

uvw 2.12.1 currently doesn't compile with GCC 13 (Fedora 38) because type_info.hpp doesn't have correct include for standard integers.
/home/fcelda/devel/uvw/src/uvw/type_info.hpp:17:37: error: ‘uint32_t’ in namespace ‘std’ does not name a type; did you mean ‘wint_t’?
   17 | [[nodiscard]] static constexpr std::uint32_t fnv1a(const char *curr) noexcept {
      |                                     ^~~~~~~~
      |                                     wint_t

Standard integers are defined in cstdint. The removed header cstdef seems unused.

Oh. It looks like this has been fixed already. :+1: Thanks.

repo: skypjack/uvw


text:
Some small arguments

所谓说 avl 树每次重平衡需要回溯回根节点的纯粹胡扯

I am so glad to see this. Thanks for providing the clean code and clear comparison. However, I am little bit concerned about the argument you are making here. The following are just some of my simple ideas:
I did some similar benchmarks years ago (https://github.com/SchrodingerZhu/data_structure_for_love/blob/master/report.md, I was not so good at programming at that time as I am today, the code may contain some flaws but I think it can already provide some reasonable comparisons). As you can see, it was really a draw between Rb-Tree (a left-leaning version) and the AVL tree; one performance better in some workloads, the other wins a little in different situations.
I do agree that re-balancing of an AVL tree requires visiting back until the root each time is an exaggeration; yet I do believe there is a reason behind such argument.
In fact, in the summary section of ODS (https://opendatastructures.org/ods-python/9_3_Summary.html), the book spent a full section to prove why red-black trees can have a better re-balancing performance theoretically. In the later chapter, it also argues:

Adersson's variant of red-black trees, Sedgewick's variant of red-black trees, and AVL trees are all simpler to implement than
the RedBlackTree structure defined here. Unfortunately, none of them can guarantee that the amortized time spent rebalancing is
O(1) per update. In particular, there is no analogue of Theorem 9.2 for those structures.

Again, this is only something theoretically, not practically. We cannot rely fully on the analysis: for example, Fibonacci heap performances great in paper but it is troubled with its large constant time per operation; binary structures should be optimal for in memory operations but b-tree can do better in some projects due to its friendliness to the architecture. And, this exact project also suggests this idea.
Anyway, I wrote this just to leave a room for theory. Sometime, people do need "paperwork" to guarantee some critical properties. and I think that is why rb-tree is widely chosen. However, as the theory also suggest, AVL tree can have a lower height, so it is also widely accepted in many situations to provide faster in-memory lookup. So maybe the problem is to decide which one to use in the particular case.
Just some personal views. Thanks again for this project!

OK，学院派还有一个问题，一个劲的在那里算旋转次数，根本不提重新上色，你看看 rbtree 里面换颜色的代码，一点不轻量级，动不动就是父亲，叔叔，祖父，祖父的兄弟，表亲，改一大堆。