text:
sw_engine/stroke: enhanced the quality of the dash line corners.

Previously, the engine didn't properly cover the dash line corner styles because it considered a new line to start at the corner.
This update modifies the logic to recognize curved lines as a single line, including the corners.
There may still be some quality issues,
but it's an improvement over the previous version.
@Issue: https://github.com/thorvg/thorvg/issues/121

I did a quick test of the PR while working on other Godot issues:

I have noticed that the stroke-dashoffset isn't calculated correctly:

@capnm thanks for info. let's revisit the dash-offset problem with a separate issue ticket.

authors: capnm hermet

repo: thorvg/thorvg


text:
doc: created week 5 progress report

Created week 5 progress report detailing the goals achieved, completed tasks, and any challenges up to this point.

This file is empty with no content

source: gharchive/pull-request

authors: Kyle-Dav maddernd

repo: thoth-tech/documentation

license: MIT

license_type: permissive

license_source: github-api


text:
Please add docs for Bitters, thanks!

Both Bourbon and Neat have docs that help us easy to learn and use. And I love them.
http://bourbon.io/docs/
http://thoughtbot.github.io/neat-docs/latest/
But when I try to use Bitters, I cannot find any document or example related to it. Can you add it? Thanks!

@Hongbo-Miao Since Bitters is a set of base styles, there really isn’t anything to “document” like Bourbon and Neat. It’s all just standard CSS; a starting point or scaffold. That being said, our from of “documentation” is our Example page: http://bitters.bourbon.io/example.html

@tysongach got it, thanks for help!

source: gharchive/issue

authors: Hongbo-Miao tysongach

repo: thoughtbot/bitters

license: mit

license_source: bigquery


text:
Random failure: Capybara::Webkit::InvalidResponseError: 'undefined' is not an object

Hello,
Running 1.0.0 with ruby 2.0.0-p247 & qt-4.8.5 I am getting random Capybara::Webkit::InvalidResponseError every once in a while. Let's say I run my tests 10 times in a row it might happen twice on 2 different tests.
I tried on various machines and it seems to happen more frequently on the less powerful setups, but even very recent macbook pros run into the issue.
I've spent some time trying to figure out what could be wrong in my code, but there isn't anything out of the ordinary, so I am not sure anymore how to go about this so I figured I'd bring this up here.
This issue seemed to be linked to our recent upgrade to Ruby 2.0, but I could be wrong since - like I said - it's very random.
Thanks

If it is the same problem I was having, then it's an issue with the Webkit implementation that Qt 4 uses on OSX. The solution is to upgrade to Qt 5 which uses a newer version that doesn't throw these kinds of errors when trying to play MP4 videos, for instance. See this blog post for details about the problem and solution: magnemg.tumblr.com/post/113251336220/how-to-solve-a-capybara-webkit-and-video-js

Thanks @redbar0n. I'll close this issue due to the long time of inactivity. Feel free to re-open it if you're still experiencing these issues.

authors: calleerlandsson marcgg redbar0n

repo: thoughtbot/capybara-webkit


text:
1.16.2 broke Session store not setting cookie

Either I'm missing a new setting somewhere, but I've tested 1.16.2 and 1.16.1. The latest version 1.16.1 breaks the session store. There is no user in the session, and I think this might have something to do with it.
https://github.com/thoughtbot/clearance/blob/v1.16.1/lib/clearance/session.rb#L57
https://github.com/thoughtbot/clearance/blob/master/lib/clearance/session.rb#L60

Possibly related (or same issue) as https://github.com/thoughtbot/clearance/issues/821
Can you give sample code of what broke?

I'm seeing this on 1.16.2 as well. Where standard login is not setting anything in the session, and thus we get
Filter chain halted as :require_login rendered or redirected

A downgrade to 1.16.1 immediately resolved the issue.

Thanks. Does it appear to be setting the cookie but not setting in the session in the req that should have signed in?

After upgrading to 1.6.2 and logging in, I can see a successful login and redirect to url_after_create, but a render_login failure. At this point, there is not a remember_me_token cookie in the store, only the session cookie. Doing the same thing on 1.6.1 creates the remember_me_token properly, which I assume is what is being used to log in the user on subsequent requests.

^
I've expreince the same thing, after the status.success? check during the session::sign_in the cookie isn't being set. I've checked current_user after the redirect, and it is nil. My assumption is that before_action :require_login fails even if sign_in is a success.
https://github.com/thoughtbot/clearance/blob/master/lib/clearance/authentication.rb#L94
I hope that helps.
I'm using a basic config.
Clearance.configure do |config|

  config.routes = false
  config.mailer_sender = 'noreply@site.com'
  config.redirect_url = '/dashboard'
  config.cookie_expiration = lambda { |cookies| 2.weeks.from_now.utc }
  config.secure_cookie = true
  config.rotate_csrf_on_sign_in = true

end

I'm having trouble replicating this in local apps. I've got one app which just relies on the clearance controllers directly, and another that subclasses them. Both have test suites which exercise signing in and out, and the suites pass. I've also confirmed manually that I can sign in/out of the running apps locally while using 1.16.2.
My suspicions are that there's at least one and maybe two issues related to either:

Changes made around interaction between custom domain settings and how we set cookies
Changes made to fix a bug that set too many cookies which moved cookie setting into the middleware and out of the controller level

Can you confirm further:

Does rake middleware include Clearance::RackSession ?
Are you modifying the domain clearance sets cookies on (or otherwise doing anything interesting with domains in your app, I guess)
Are you sub-classing clearance controllers, or just using straight up

Beyond that - getting either of a) minimal sample app to reproduce issue, b) clearance fork/branch which adds a failing spec - would be great.
I will continue to attempt to replicate locally.

I can confirm both rake middleware and I am not modifying the domain.
Here is my SessionsController.
class SessionsController < Clearance::SessionsController

  layout "minimal"

  def create
    @user = authenticate(params)

    sign_in(@user) do |status|
      if status.success?
        redirect_back_or url_after_create
      else
        flash.now.notice = status.failure_message
        render template: "sessions/new", status: :unauthorized
      end
    end
  end

private

  def url_after_destroy
    root_path
  end

  def url_after_create
    dashboard_root_path
  end

end

I can also confirm it fails on ruby 2.5.3 and rails 5.2.2
Here are my clearance specs that fail if it helps.
rspec ./spec/features/clearance/user_signs_out_spec.rb:5 # User signs out sign in and out
rspec ./spec/features/clearance/visitor_signs_in_spec.rb:5 # Visitor signs in with valid email and password
rspec ./spec/features/clearance/visitor_signs_in_spec.rb:12 # Visitor signs in with valid mixed-case email and password
rspec ./spec/features/clearance/visitor_signs_up_spec.rb:22 # Visitor signs up with valid email and password
rspec ./spec/features/clearance/visitor_updates_password_spec.rb:5 # Visitor updates password with valid password
rspec ./spec/features/clearance/visitor_updates_password_spec.rb:12 # Visitor updates password signs in with new password

@coneybeare and @dakotalightning - are you setting the clearance cookie_domain setting?
If not, are you setting a domain name elsewhere in your specs?

I am setting the cookie_domain in the initializer to ".mydomain.com"

I am not setting it anywhere; my settings are above.
https://github.com/thoughtbot/clearance/issues/822#issuecomment-469521235

Relevant to cookie_domain - I believe that in earlier versions we were setting two cookies, and one of them had the domain and one did not have the domain. A side effect of this was that in places where the app was being accessed in ways that were NOT over the specified cookie domain - it would still work, because the one cookie which was set without the domain would still come through and be set.
In 1.16.2 we fixed the duplicate cookie setting so now the only cookie being set is the one with the domain name - which means that places which were previously (probably unknowingly) relying on this behavior would have broken.
@coneybeare if you add a host! '.mydomain.com' to your suite (or whatever other means is necessary to tell rack/rails/capybara/etc to use that hostname), does that help?

@mjankowski I'll have to check it out after an update, but you may be on to something. I test on a different domain using a self signed certificate. Capybara.app_host is being set to https://localhost.test.
If I am understanding correctly, and your idea is indeed the root cause, this could be solved by either removing my cookie_domain value and using default, or by setting it to localhost.test in the test environment, right?

Yes, I think either removing the setting in the test env, or making sure the setting matches whatever the requests are being sent as in the test env - would probably solve.

I'm going to close this on the assumption that the misc domain/cookie/test topics discussed here were the issue, and that this can be resolved via updating your env configs to match up.
If anyone is seeing this issue in a non-test environment or in a way that's not resolved by fixing the domain config, let us know.

For reference, I don't have cookie_domain customised on my app, but I did have secure_cookie set to true. I assume it's the same issue under the hood but just another way to come across it.
My fix was similar to one of the solutions offered in the related tickets
config.secure_cookie = true if Rails.env.production?

authors: coneybeare dakotalightning dwightwatson mjankowski

repo: thoughtbot/clearance


text:
Not worked with belongs_to :relation, touch: true

Followings is some example:

  # models/message.rb
  class Message < ApplicationRecord
     belong_to :chatroom, touch: true
  end

      chatroom1 = create(
        :chatroom,
        chatroomable: create(:goods_item),
        user: user
      )
      create(:message, chatroom: chatroom1, created_at: Time.current - 13.hours)
      chatroom2 = create(
        :chatroom,
        chatroomable: create(:goods_item),
        user: user
      )
      create(:message, chatroom: chatroom2, created_at: Time.current - 2.hours)

What I expect is: chatroom1.updated_at is Time.current - 13.hours, and chatroom2.updated_at is Time.current - 2.hours.

Sorry,  This is worked.


text:
testing all factories at once

Hi Guys,
I'm am trying to write a simple validation (https://gist.github.com/1522252) to all my factories, it is working well when I run "rspec spec/factories_spec.rb" but for some reason the same tests fail when i try "rspec spec/".
I may be missing something but it would be awesome if guys could share the correct way to do that in the wiki of the project.

I updated the code so its working now I think this is a very useful trick so i added it to the wiki https://github.com/thoughtbot/factory_girl/wiki/Testing-all-Factories-(with-RSpec).
Thanks for the reply, I'm closing this issue because the problem was on my factories, not on FactoryGirl.

Awesome! Thanks @3den!


text:
Individual cops can be excluded for files

Pass the file's path into ProcessedSource initializer
This path is later used to determine if a specific Cop is applicable
https://github.com/thoughtbot/hound/issues/522

This is the line that does the check for the specific file: https://github.com/bbatsov/rubocop/blob/master/lib/rubocop/cop/commissioner.rb#L56.

Do you guys really want me to shorten those strings in the specs?

Ready to merge once the hound comments are handled!

authors: brittballard gylaz

repo: thoughtbot/hound


text:
APPLICATION_HOST bug fix in production environment

ENV["APPLICATION_HOST"] is used before it's defined in the production
environment.
By using inject_into_file instead of configure_environment we can
control the order of the steps.
[fixes #776]

I see you used :after instead of :before -- looks like it works fine. Any reason to put it inside the block?

I see you used :after instead of :before -- looks like it works fine. Any reason to put it inside the block?

I can split the string and put the first part before, and the second after. Both ways looked good to me, and all inside was a bit simpler. Do you think we should split them?

Since we are on ruby 2.3, we can use <<~ to remove the leading whitespace.

That is nice! If we take it out, I'll use this.

Nah, I see your point now. LGTM.

authors: mike-burns tute

repo: thoughtbot/suspenders


text:
conflict on solution name in deployed solution

The deployed solution in the admin panel was loading forever. So I checked the server logs and saw this:
Could not insert object, unique constraint failed:UNIQUE constraint failed:
        index_tfgrid_solutions_delegated_domain_1.name

From what I understand, for the delegated domain solution, the domain is used as bcdb config name. A bcdb config name must be unique. It's like the primary key in a table. I think this property makes it unsuitable to be use to store the deployed solution.
There are cases where you will have different delegated domain solution using the same domain.
I think the way how the deployed solution are stored in bcdb needs to be reviewed. There should not no conflict on name.
If you need query ability on names, then the bcdb schema needs to index a name property but the actual config name should most probably be unique or be the reservation ID, which is already unique by design.

https://github.com/threefoldtech/jumpscaleX_threebot/issues/694 is also a consequence of this.

cc @grimpy

FIXED at :
https://github.com/threefoldtech/jumpscaleX_libs/commit/4fb0f353a676a984325f45f3fba48e93b1865a34
https://github.com/threefoldtech/jumpscaleX_threebot/commit/3feaef0fe98aa3f7ee6bd5e4bfb3a28291276922

@BolaNasr
This issue is affecting all the solutions. Not only the domain delegate solution. But in your commit I only see code change regarding domain delegate.
Is this problem also solved for all the other solutions ?

@zaibon
This issue
it's already solved before by we are check the name of solution it's already exist in bcdb ( only DEPLOYED solutions ) ask user to add another name.
and we are every time when refresh solution page we clear all bcdb and get all solutions of user has deployed before to add it in BCDB if it's not expired or cancelled yet
https://github.com/threefoldtech/jumpscaleX_libs/blob/development/JumpscaleLibs/sal/reservation_chatflow/reservation_chatflow.py#L747

steps:
a) create a domain delegation by first getaway 6RZfnjuXVLFdtZh218hn4BLzsoKkTVpweqWECk5YUKud with domain ns1.freeflowpages.com
it succeed and gives me

b) create a domain delegation by second gateway C57earvre9QGj5oHbsDB2gjudbrAMXXtGsBReF8TE1ZR  with domain ns1.freeflowpages.com
is takes long time and gives me the reservation fail
reservation failing with https://explorer.testnet.grid.tf/explorer/reservations/460606
does not give me info like above picture in  a  about delegation info
when refresh the Domain Delegation tab ,  i got below which is mean is created !

@Pishoy  can please retry both with the first getaway ?

verified

authors: BolaNasr Pishoy zaibon


text:
Remove rentable tab from dedicated nodes

There's no need for user to see rented nodes.

Issue solved, waiting for review.

only two tabs are available now (rentable and mine)

repo: threefoldtech/tfgrid-sdk-ts


text:
Caprover Manage worker tab functionality isn't working correctly

Description
Testnet, 2.2.0-rc3.
After deploying a Caprover, I tried to add a worker, but it kept getting the same error: Cannot read properties of undefined (reading 'data').

And I couldn't delete the worker that I deployed while deploying the master.

Could be related to https://github.com/threefoldtech/tfgrid-sdk-ts/issues/1400

The add worker is working correctly, and I was able to add a worker with no errors.

But deleting workers is still not working. I tried to only delete one worker, but it didn't delete, and the manage tab is stuck as I can't press anything on it.

And after refreshing cauing, the whole page wasn't responding; the deployment didn't list.

Verified, Devnet: https://github.com/threefoldtech/tfgrid-sdk-ts/commit/a5146d94a9119d31e0324babafeb8b8fb2b3e6da.
Deploying Kubernetes master and worker and deleting them worked correctly with no errors.

And then I tried adding and removing more workers, and it worked fine.

TC1594: Deploy Caprover


text:
Round the deployment cost value

Description
Sometime when the resources are changed to certain values the deployment cost will be displayed with up to 10 decimals as seen below.

it would look better if the values were always rounded to 2 or 3 decimals

Should be fixed in #55

Verified on https://getmastodon.threefold.io/
The deployment cost is now rounded to 2 decimals.

repo: threefoldtech/www-mastodon


text:
Buttons not rendering with skeleton framework style.

I can't seem to get button elements to render in my app with the style from the skeleton framework through glamor/ous, everything else like the typography and grid system is working though. What am I doing wrong?

Confirmed.
Discovered this while preparing examples for glamor-ous (#206), maybe we can fix this while v3 transition.
Thanks!

Will be fixed with v3 :)

hey @otbe, can you specify what the specific issue was? I'd like to backport this fix for v2. please and thanks!

authors: EddyBorja otbe threepointone

repo: threepointone/glamor


text:
Docs: small typo

Playing around with Threlte again after a long break, loving how far this has come ❤ you guys are awesome!

Thanks a lot @lega0208, good catch!

repo: threlte/threlte


text:
Test fixes

Resolves #207
This is a huge PR mostly due to the inclusion of the latest products json files (which the docker container generates on build iirc?) This update happened to fix some tests. 🤔
We should also merge the docker-fixes to master so we can change the target branch of this PR to master.
Unfortunately this was mostly an exercise of whack-a-mole. Not the cleanest, but I figured if we can at least get the API routes solidly tested, we can move ahead with any major upgrades.
So here's some notes:

Removed or xfail'd persona-related view tests (as the url route is now commented out/removed.)
xfail'd some Firefox/AMO specific tests
Modified some tests that used areas of ATN that requires Thunderbird specific changes (GUID, specific_max_version, etc...) Biggest pain point, as changing fixtures would break other tests. Near the end of these fixes, I started just updating AppVersions directly in code.
In src/olympia/core/tests/test_certifi.py there's two tests that ping google and amazon for 200 statuses. These fail when running the complete suite, but succeed when run alone. I actually have no clue as to why, so I didn't mark them as xfail.

We should definitely squish this PR, lmk if I should pre-squish these commits.
(It would also be nice to maybe get a CI going with this project.)

I ran the squish merge on the new docker image (separate PR) and we may have some test regressions lol. But much better than before:
======== 143 failed, 5542 passed, 48 xfailed, 1 xpassed, 31 warnings, 2 error in 1569.96 seconds ========

This should be good after a master rebase.

repo: thundernest/addons-server


text:
🛑 TohoMoe is down

In 646f950, TohoMoe (https://toho.moe/test) was down:

HTTP code: 500
Response time: 958 ms

Resolved: TohoMoe is back up in f681e87.

repo: thwiki/status


repo: thx/gogocode


text:
[QUESTION] File uploading is stuck when file sizes are 1mb

I've been trying to get the file upload to work but it keeps getting stuck, or hang.
I have python-multipart installed. Using fastapi 0.42.0
from fastapi import APIRouter, BackgroundTasks, Depends, UploadFile, File
from fastapi.security import OAuth2PasswordBearer

router = APIRouter()
oauth2_scheme = OAuth2PasswordBearer(tokenUrl=settings.TOKEN_URL)

@router.post("/uploadfiles/", status_code=HTTP_200_OK)
async def create_upload_files(files: List[UploadFile] = File(...), token: str = Depends(oauth2_scheme)):
    return {"filenames": [file.filename for file in files]}

Using POSTMAN to test the API call. I've tried attaching single file, and multiple files. If the file sizes are close to or more than 1mb, the process will hang.
DEBUG: ('192.168.88.20', 50686) - ASGI [10] Sent {'type': 'http.request', 'body': '<131234 bytes>', 'more_body': True}
DEBUG: Calling on_part_begin with no data
DEBUG: Calling on_header_field with data[54:73]
DEBUG: Calling on_header_value with data[75:132]
DEBUG: Calling on_header_end with no data
DEBUG: Calling on_header_field with data[134:146]
DEBUG: Calling on_header_value with data[148:158]
DEBUG: Calling on_header_end with no data
DEBUG: Calling on_headers_finished with no data
DEBUG: Calling on_part_data with data[162:131234]

I've searched online and couldn't find any similar issues, and I'm not sure why this happened. I've tried uploading small files, like 10kb files, and they work fine. I tested this in my local machine, and also in another server with NGINX, with client_max_body_size set to 100mb. Same problem.
May I know what else should I do, or check, to allow bigger file sizes to be uploaded?

If I recall correctly, starlette sets up the UploadFile to spool the temp file to disk at the 1MB mark. So I think that probably explains why 1MB is a threshold for this behavior.
I don't currently have more insight than that, but it might be worth trying to make the calls using the starlette TestClient in a debugger and see if you can reproduce the behavior.

worth testing if you end up with same behaviour with swagger-ui too
On Fri, Nov 8, 2019 at 8:15 AM dmontagu notifications@github.com wrote:

If I recall correctly, starlette sets up the UploadFile to spool the temp
file to disk at the 1MB mark. So I think that probably explains why 1MB is
a threshold for this behavior.
I don't currently have more insight than that, but it might be worth
trying to make the calls using the starlette TestClient in a debugger and
see if you can reproduce the behavior.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/tiangolo/fastapi/issues/693?email_source=notifications&email_token=AAINSPSWQDLB57KPOPZZRALQSUGYDA5CNFSM4JKTPQ52YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEDO6SUA#issuecomment-551414096,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAINSPUFZNVFELQMUEZUF4LQSUGYDANCNFSM4JKTPQ5Q
.

--
benoit barthelet
http://pgp.mit.edu/pks/lookup?op=get&search=0xF150E01A72F6D2EE

Thanks @dmontagu and @euri10 for the help! :bowing_man:
@chongeva I wasn't able to reproduce the issue. Maybe it was from a previous version?
Here's a simplified, self-contained example, from your own code:
from typing import List

from fastapi import FastAPI, UploadFile, File

app = FastAPI()

@app.post("/uploadfiles/")
async def create_upload_files(files: List[UploadFile] = File(...)):
    return {"filenames": [file.filename for file in files]}

Then calling it with curl:
$ curl -F 'files=@t1.zip' -F 'files=@t2.zip' -F 'files=@t3.zip' -F 'files=@t4.zip' http://localhost:8000/uploadfiles/

{"filenames":["t1.zip","t2.zip","t3.zip","t4.zip"]}

And each one of the files t1.zip, t2.zip, t3.zip, t4.zip has a size of 16 MB.
Have in mind that Swagger UI won't display a correct widget for lists of files. That's an issue in Swagger UI itself.

authors: chongeva dmontagu euri10 tiangolo

repo: tiangolo/fastapi


text:
⬆ Bump mkdocs-material

Following #1760, highlighted code color in the dark theme was nearly impossible to read, as @AngliD stated in #725.
Later in that issue, @squidfunk stated that by bumping mkdocs-material to 5.5.0, the colors will be better.

Light theme before:

Light theme now:

Dark theme before:

Dark theme now:

Great, thanks for your contribution! And thanks for taking the time to take the screenshots :rocket: :art:

authors: adriencaccia tiangolo


text:
🌐 Update Chinese translation for docs/zh/docs/tutorial/cookie-params.md

as title

📝 Docs preview for commit e817985cdd028bccc237893271988db9849efb9f at: https://6499d4e74e0e080c77962fe1--fastapi.netlify.app

Thank you @jaystone776! :rocket:
As you are one of the Chinese translations' champions, I'm gonna merge this right away. :tada:


text:
[FEATURE] - Extend with custom data types

I want to extend the CLI app with custom data types not supported by Typer/Click. Right now, the Typer app raises an error on encountering an unsupported type.
The solution you would like
We could add a method to the Typer object to register custom data types along with a function to convert terminal input string to an object of the desired type.
A possible API could be:
app = typer.Typer()
app.register_custom_type(_type, _deserializer)

Here is the monkey-patched solution I use right now without providing a registration API. If this seems like a useful feature, I'll try refine this and submit a PR.
import datetime
from typing import Any, Callable, Optional

import typer
import click

_get_click_type = typer.main.get_click_type
REGISTERED_TYPES = {
    datetime.date: lambda string: datetime.datetime.strptime(string, '%Y-%m-%d').date()
}

class TyperCustomParam(click.ParamType):
    name = 'CustomParameter'
    def __init__(self, typ: type, deserializer: Optional[Callable] = None):
        self.name = typ.__name__
        self._deserializer = typ if deserializer is None else deserializer

    def convert(self, value, param, ctx):
        try:
            return self._deserializer(value)
        except Exception as E:
            self.fail(
                f"couldn't serialize {value} to an instance of type {self.name}, error: {E}"
            )

def supersede_get_click_type(
    *, annotation: Any, parameter_info: typer.main.ParameterInfo
) -> click.ParamType:
    if annotation in REGISTERED_TYPES:
        return TyperCustomParam(annotation, REGISTERED_TYPES[annotation])
    else:
        return _get_click_type(annotation=annotation, parameter_info=parameter_info)

typer.main.get_click_type = supersede_get_click_type

Alternatives
Alternatives would be to either modify the original routine or create a wrapper function to accept a Click supported datatype and convert later. Letting users create custom types directly is preferred since that lets us create CLIs without touching existing code.
Thank you for looking into this. Similar to FastAPI, typer is a really nice library.

I need this feature (actually for datetime.date like your example) - so please make PR!

Hey @jackric, the method used above requires a global container, which makes me uneasy. You could probably use this snippet in your code and import the typer module from it.

@ananis25 I think a nice approach would be to register custom types with a new function - either on typer or a typer.Typer object:
import typer
typer.register_type(datetime.date, lambda string: datetime.datetime.strptime(string, '%Y-%m-%d').date())

import typer
app = typer.Typer()
app.register_type(datetime.date, lambda string: datetime.datetime.strptime(string, '%Y-%m-%d').date())

typer.main.get_click_type would then check an internal store of registered types before its default behaviour.
For bonus points, allow multiple deserializing functions to be tried in order. They could be specified as a list to register_type, or multiple calls to register_type

If I understand correctly, the above snippet does exactly this, isn't it? I'd leave it to the maintainers to see if they really want to add this.

I agree with the solution proposed by @jackric.
Also, to add on top of that:
There are lots of "wrapper types" that can be called on a string input and give an augmented object that is still a string Many more are just variants of already handled types.
So maybe if Typer did just try to call the annotated type by default, it would be a quick and easy way to solve many problems with not so much work.
It could even be a enabled (or disabled) with an option in the Typer instanciation. In case some users somehow expect to get an error on unhandled types.

I agree with the solution proposed by @jackric.
Also, to add on top of that:
There are lots of "wrapper types" that can be called on a string input and give an augmented object that is still a string Many more are just variants of already handled types.
So maybe if Typer did just try to call the annotated type by default, it would be a quick and easy way to solve many problems with not so much work.
It could even be a enabled (or disabled) with an option in the Typer instanciation. In case some users somehow expect to get an error on unhandled types.

One thing that is missing when registering custom types (or at least not explicitly clear) is the usage when I just want to add a converter to an existing type. For example - parsing a hexadecimal number. I want to extend the parsing, but the result type is still a number.
The options I see for this are either:
@app.command()
def command(number: int = Typer.Argument(converter=lambda x: int(x, 0)))

Or
class HexInt(int): pass

# Fill in registering custom type

@app.command()
def command(number: HexInt)

I am not sure what I think about either.

One thing that is missing when registering custom types (or at least not explicitly clear) is the usage when I just want to add a converter to an existing type. For example - parsing a hexadecimal number. I want to extend the parsing, but the result type is still a number.
The options I see for this are either:
@app.command()
def command(number: int = Typer.Argument(converter=lambda x: int(x, 0)))

Or
class HexInt(int): pass

# Fill in registering custom type

@app.command()
def command(number: HexInt)

I am not sure what I think about either.

My 2 cents: declaring the HexInt class/type feels wrong, because later the type system says number is HexInt, when we really want to think of it as an int.

My 2 cents: declaring the HexInt class/type feels wrong, because later the type system says number is HexInt, when we really want to think of it as an int.

I wrote a PR that implements this, please let me know what you think: https://github.com/tiangolo/typer/pull/443

+1 would love to see @paulo-raca 's PR merged. Thanks!

Thanks all! Support for this was added in https://github.com/tiangolo/typer/pull/583, the new docs are here: https://typer.tiangolo.com/tutorial/parameter-types/custom-types/, it's available in Typer 0.8.0, just released. :tada:

authors: SylannBin ananis25 dsully jackric paulo-raca tiangolo tmr232

repo: tiangolo/typer


text:
Small changes to make it compatible with a whole new gold price API I…

… stood up
Description
Replace this with a description of your changes.
Copilot

🤖 Generated by Copilot at 5f4e8d0
Summary
🔄🦏🔑

This pull request improves the goldpriceticker app by switching to a more reliable and flexible API, adding a new metal option, and enabling user-provided API keys. It also secures the API key with encryption.

The old API is doomed, we need a new source of power
We summon the rhodium, the rarest of the metals
We enter our secret key, encrypted in the darkness
We run the goldpriceticker, we watch the prices rise

Walkthrough

Load and use secret.star file to decrypt API key for metals API (link)
Add rhodium as an option for the precious metal to display (link, link)
Update API endpoints to use new domain and authentication (link, link, link)
Add text field for API key in app configuration for testing purposes (link)

I believe the render is failing because it isn't using the API key when its run with pixlet.

repo: tidbyt/community


text:
Upload Verio & Verio Flex meters on macOS Catalina (UPLOAD-232)

Addresses UPLOAD-232.

OK, should be ready for review now.

@krystophv Would you mind reviewing the changes I made on this PR since Lennart's last review?

@pazaan Just one last double-check now that I've removed the test suffix, please :smile:

repo: tidepool-org/uploader


text:
大佬，uitableview numberOfSectionsInTableView>1,只显示第一个section，咋回事呢？

TABAnimated全局性的？部分控制器tableview不使用怎么设置呢？谢谢

我看demo可以，是不是不能继承UITableViewController，tableView自己生成？

只显示第一个section，与你使用的正确性有关
它的配置信息是全局性的，不影响不使用的UITableView
不能，控制视图只能是UIView及其子类

authors: ieliwb tigerAndBull

repo: tigerAndBull/TABAnimated


text:
classToAlias is not a public method

public static function bootHasParentModel()
    {
        static::creating(function ($model) {
            if ($model->parentHasReturnsChildModelsTrait()) {

                $model->forceFill(
                    [$model->getInhertanceColumn() => $model->classToAlias(get_class($model))]
                );
            }
        });
        static::addGlobalScope(function ($query) {
            $instance = new static;
            if ($instance->parentHasReturnsChildModelsTrait()) {
                $query->where($instance->getInhertanceColumn(), $instance->classToAlias(get_class($instance)));
            }
        });
    }

Is it actually throwing an error for you? if so can you help me re-create it?

repo: tightenco/parental


text:
Whether the returned keys of Scan are in lexicographical order?

If yes, maybe can add a comment to the API?

do you mean the scan command of rawkv api?

yes

repo: tikv/client-go


text:
#[trace] breaks: async fn a(mut b)

#[minitrace::trace("a", enter_on_poll = true)]
async fn a(mut b: String) {
    c(&mut b)
}

fn c(d: &mut String) {
    d;
}

gives this error:
173 | async fn a(mut b: String) {
    |                - help: consider changing this to be mutable: `mut b`
174 |     c(&mut b)
    |       ^^^^^^ cannot borrow as mutable

error[E0596]: cannot borrow `client` as mutable, as it is not declared as mutable

Remove the trace macro and the error goes away.
For anyone caught out, until a fix lands, the workaround should have no performance impact (should be optimized by the compiler):
async fn a( b: String) {
   let mut b = b;
    c(&mut b)
}

Note the synchronous version appears to survive intact:
#[minitrace::trace("a", enter_on_poll = true)]
fn a(mut b: String) {
    c(&mut b)
}

fn c(d: &mut String) {
    d;
}

Test cases related to issue #81.

I believe the issue comes from this statement, although I haven't had a machine to test it now:
https://github.com/tikv/minitrace-rust/blob/ede1ec506c2fc9f391f6c37489ab1cccdae5c2bb/minitrace-macro/src/lib.rs#L268
And frankly speaking, I don't know why is this statement here 🤣 because it's all copy-and-pasted from crate async-trait. I guess it's an async-trait specific constraint and we can simply remove it.

Testing now.

Closed by PR #119

authors: andylokandy taqtiqa-mark

repo: tikv/minitrace-rust


text:
Cross Compiling Gem

Hi, Is there a way to cross precompile the gem for linux and OSX? So i could only provided the compiled gem instead of rebuilding it on every server or dev machine ...
Thanks

The long term plan would be for the Rust portion to be pre-compiled. We definitely don't want to require end-users of a distributed gem to have to have the Rust compiler.

bump!

authors: shaqq squiidz wagenet

repo: tildeio/helix

license: isc


text:
Service Request: Goear

Feedback from a Nuvola Patron @pabloalcr:

Back when Grooveshark was up I often used it for songs I hadn't added to Google Music. [...]
Support for goear.com is the only thing I could ask for as it is the only decent Grooveshark replacement I've found.

Website: http://www.goear.org/

This website is terrible.

repo: tiliado/nuvolaruntime


text:
Fix 'products' element not found while parsing XML report warnings

PR to fix issue: https://github.com/tilialabs/tilia-phoenix-connect/issues/19

This breaks compatibility for Phoenix users running the Switch Connector in Phoenix Automate, so won't do

authors: matthewkayy tiliadavid

repo: tilialabs/tilia-phoenix-connect


text:
Feature request: --progress or --verbose flag

Hi, is there any thought to having a --progress  or --verbose flag? Would love to see a % indicator (files kraked vs files to krake) or a verbose listing of files as they move backwards and forwards.
Use case, just ran wp media krake on this baby, and want to know if it's alive or dead.
$ wp media krake --dry-run
Found 1138 attachments to check. Kraking all images.
Skipping already kraked images (comparing file MD4 hashes).
Using lossless compression for GIF, JPEG, PNG, SVG files.
1138 attachments (8505 images) checked.
8505 images with no kraken metadata.
0 images checked for changes.
0 modified images found.
8505 images will be kraked.

That's a great idea. I won't have the time for this the next weeks, but you're welcome to submit a PR.

authors: indietravel tillkruss

repo: tillkruss/wp-cli-kraken


text:
Allow exporting non-MOV

I understand that there's #184. Looking through the code, I think it is a good idea to allow exporting other types of video files here:
https://github.com/tilltue/TLPhotoPicker/blob/4863c7be2bd6c13ecd53c2795d5de4e5a15ab092/TLPhotoPicker/Classes/TLAssetsCollection.swift#L251
Also, in #42 you mentioned tempCopyMediaFile. Does exportVideoFile handle iCloud too? I see networkAllowed in there, but the iCloud part is commented out. Would love to have some clarity here.
Thank you!

Hi, @danqing
There were some bugs in the function, so I modified it. ( release 1.9.5 )
You can now use it and download the iCloud video.
Thank you.

Cool - thanks @tilltue! Would love to have support for exporting formats other than mov, which I believe should be pretty simple (changing the line I referenced above with some config).

@danqing
added outputFileType
func exportVideoFile(options: PHVideoRequestOptions? = nil,
                                outputURL: URL? = nil,
                                outputFileType: AVFileType = .mov,
                                progressBlock:((Double) -> Void)? = nil,
                                completionBlock:@escaping ((URL,String) -> Void))

Awesome. Thanks again @tillhue!

authors: danqing tilltue

repo: tilltue/TLPhotoPicker


text:
Timber documentation links are broken

Links to Timber Documentation seem to be broken on readme.md, 404 Github Pages error is shown.

The links are ok, but the documentation is currently down. We’re looking into this.
In the meantime, you can always navigate the docs in the docs/ folder: https://github.com/timber/timber/tree/master/docs. Except for the reference for PHP classes, which is auto-generated when building the docs.

@oskari thanks for the heads-up! I inadvertently unpublished them last night when I was trying to fix something, totally my b. Everything should be good now!

authors: gchtr jarednova oskari

repo: timber/timber


text:
Fix Descriptive Row not showing up

Added suggested fix with https://github.com/timdows/MMM-JsonTable/issues/16#issuecomment-774658023 and tested that it works as expected.
Fixes #16

Have been on vacation, but love it!

authors: manifestinteractive timdows

repo: timdows/MMM-JsonTable


text:
ctime

Hi, since the ctime() function has been removed, and seemingly replaced by the %c formatter, these two are inconsistent.
The old ctime function corresponds to:
%a %b %-d %H:%M:%S %-Y
While the new %c corresponds to:
%a %b %-d %-H:%M:%S %-Y
I just wondered if this is intentional, or not, as it made things depending on this format break for me on upgrading the time dependency.
Thanks!

Yes, this is intentional. Specifiers are explicitly not backwards-compatible, and I even created a tool to assist in upgrades (see #201).
I may be re-adding fixed formats, like ctime and a few RFC formats, as it would eliminate the runtime parsing of the formatting string. In theory, that will make it more performant.
But yeah, this is to be expected. Use the tool where possible. You can then think about edge cases with regard to padding, as most people don't really care what happens when the year is past 10,000, for example.

authors: jhpratt nuxeh

repo: time-rs/time


text:
function counter_agg does not exist

What did you do?
Trying to execute a script that contains counter_agg function.
For some reason helm chart deployed pod does not have counter-agg function, even though the extension is enabled.
the same function works fine in my local docker instance
Both local docker instance and k8 pod have the same migration script applied.
Did you expect to see some different?
Environment

Which helm chart and what version are you using?
timescaledb-single 0.33.1

What is in your values.yaml ?

timescaledb-single:
  image:
    tag: pg15
    pullPolicy: Always
  patroni:
    postgresql:
      parameters:
        checkpoint_completion_target: .9
  replicaCount: 1
  service:
    primary:
      annotations:
        linkerd.io/inject: "false"

  podAnnotations:
    linkerd.io/inject: "false"
  persistentVolumes:
    data:
      size: 10Gi

Kubernetes version information:

WARNING: This version information is deprecated and will be replaced with the output from kubectl version --short.  Use --output=yaml|json to get the full version.
Client Version: version.Info{Major:"1", Minor:"27", GitVersion:"v1.27.1", GitCommit:"4c9411232e10168d7b050c49a1b59f6df9d7ea4b", GitTreeState:"clean", BuildDate:"2023-04-14T13:21:19Z", GoVersion:"go1.20.3", Compiler:"gc", Platform:"windows/amd64"}
Kustomize Version: v5.0.1
Server Version: version.Info{Major:"1", Minor:"27", GitVersion:"v1.27.2", GitCommit:"7f6f68fdabc4df88cfea2dcf9a19b2b830f1e647", GitTreeState:"clean", BuildDate:"2023-05-17T14:13:28Z", GoVersion:"go1.20.4", Compiler:"gc", Platform:"linux/amd64"}

Kubernetes cluster kind:

kurl.sh
Anything else we need to know?:
script
2023-06-24 23:03:06 UTC [145]: [649775cf.91-40] admin@metrics,app=[unknown] [42883] ERROR:  function counter_agg(timestamp with time zone, integer) does not exist at character 158

2023-06-24 23:03:06 UTC [145]: [649775cf.91-41] admin@metrics,app=[unknown] [42883] HINT:  No function matches the given name and argument types. You might need to add explicit type casts.

2023-06-24 23:03:06 UTC [145]: [649775cf.91-42] admin@metrics,app=[unknown] [42883] STATEMENT:

	SELECT c."TargetId" AS TargetId,

	time_bucket_gapfill('1 minutes', c."TimeStamp") AS time,

	avg("LatencyMs"),

	min("LatencyMs"),

	max("LatencyMs"),

	delta(

	    counter_agg("TimeStamp", "KeyspaceHits")

	),

	delta(

	    counter_agg("TimeStamp", "KeyspaceMisses")

	),

	avg("CpuUsagePercent"),

	min("CpuUsagePercent"),

	max("CpuUsagePercent"),

	avg("MemoryUsageKB"),

	min("MemoryUsageKB"),

	max("MemoryUsageKB"),

	locf(max("TotalSystemMemoryKB")),

	max("TotalKeys")

	FROM "HyperRedisMetrics" c

	WHERE c."TargetId" = 'fd3e558a-02af-4898-a54f-c15f351ea494' AND c."TimeStamp" >= '2023-06-24 22:03:03' AND c."TimeStamp" <= '2023-06-24 23:03:03'

	GROUP BY TargetId, time

	ORDER BY TargetId, time DESC

Turns out that timescaledb is not the same as timescaledb_toolkit, and for some reason helm chart does not create the toolkit extension

repo: timescale/helm-charts


text:
Stackoverflow when converting an RGBA image to Gray-scale image

I have a stack overflow problem when converting an RGBA image to gray-scale image on Julia v0.4.0-rc4, while converting an RGB image to gray-scale image works as expected.
julia> using Images

julia> img = imread("data/lenna.png")
RGBA Images.Image with:
  data: 256x256 Array{ColorTypes.RGBA{FixedPointNumbers.UfixedBase{UInt8,8}},2}
  properties:
    imagedescription: <suppressed>
    spatialorder:  x y
    pixelspacing:  1 1

julia> gray_img = convert(Image{ColorTypes.Gray}, img)
ERROR: StackOverflowError:
 in _convert at /Users/user1/.julia/v0.4/Colors/src/conversions.jl:49 (repeats 80000 times)

I'm not sure if this is a problem in Images.jl or Colors.jl. Please see my notebook at http://nbviewer.ipython.org/gist/r9y9/c50c72e201755f416bee for more detailed steps.

That's because the conversion doesn't seem to be defined.
Not a big surprise, since it's not really clear what should happen to the alpha channel with that conversion. Maybe strip the alpha channel off first, or convert to GrayA?
Both seem to work fine for me.
But producing a stackoverflow instead of a reasonable error message is not good eitherway!

Fixed by https://github.com/JuliaGraphics/Colors.jl/pull/240

authors: SimonDanisch r9y9 timholy


text:
404 page when in development

Hey, I like the blog template a lot, thanks.
But I have an issue with getting the 404 "Sorry we couldn't find this page." when opening the homepage at http://localhost:3000/. It works fine after building and then starting it, but not in development mode. What could be causing this?

Try rename the index.xml to the eed.xml and remove a manual rewrite rule in the next.config.js (see more by this link https://github.com/timlrx/tailwind-nextjs-starter-blog/commit/5945a724913f7313c9b58ce6dfaa917901828b25#comments)

Yup, @rsipakov is right. I might just make the change in the v1 version so new users would not have this problem

Yup, @rsipakov is right. I might just make the change in the v1 version so new users would not have this problem

I think it will be useful.

authors: leevinikkila rsipakov timlrx

repo: timlrx/tailwind-nextjs-starter-blog


text:
I have a little issue...

I love the style but I don't have a project to use it.
Well done and thanks you ! :)

Yes came here to report same major issue, might have to come up with new startup just to use it, huge hassle, 4 out of 5 stars until I find project for it. ❤

haha, thanks, you made my day

authors: CyrilleHugues benmcnelly timqian


text:
Build for Apple Silicon (darwin-arm64) devices in CI, and sign and notarize all macOS binaries

[!IMPORTANT]
Add Apple Silicon build and signing support to CI workflow for macOS in build_and_release.yml.

CI Workflow:

Add aarch64-apple-darwin target to build matrix in build_and_release.yml for Apple Silicon support.
Introduce darwin-arm64 as binary name for ARM64 macOS builds.
Add steps to sign and notarize macOS binaries using indygreg/apple-code-sign-action@v1 when os is macos-latest.

This description was created by  for 9ea45f59c0d82e50c4c24f42f81b595ed3f3d1ac. It will automatically update as commits are pushed.

Summary by CodeRabbit

New Features

Added support for building binaries for the new aarch64-apple-darwin architecture on macOS.

Improvements

Enhanced job matrix configuration for better readability and structure.
Introduced signing and notarization steps for macOS binaries to ensure security and compliance.

Fixes #82.

repo: timrogers/litra-rs


text:
Is there a way to modify currentUser?

Currently currentUser is established/maintained by react-devise. currentUser, has the first and last name fields which I would like to allow the user to modify with a Profile#Edit type of view.
Given that react-devise handles currentUser and I don't have access to it's reducer/actions, is there a react/redux friendly way to update currentUser in the store?
Thanks

You would not want to update the currentUser in the store.
If you only want to control how currentUser is composed from the user model, you can do that in your user model's jwt_payload method.
However, I think you're asking how to edit a user. Classic Devise provides that via registrations/edit view, which we do not yet provide out of the box. That said, you can pretty easily build it yourself. You would create a view to edit the current user, just as you would to edit any other model. You could create your own controller and route, but it would be better to use the Devise's built-in registrations#update route. Based on server mods you've already made, that route will accept a JSON post.

There's another complication that just occurred to me. After your post to registrations#update the currentUser might not reflect that change.  You could just force the user to log back in, but that's obviously not ideal.
You need to somehow get an updated  authToken. Once you do,  you can reset the currentUser like so:
dispatch({
  type: 'LOGGED_IN',
  payload: authToken
});

You can customize RegistrationsController#update to return it.  Perhaps devise-jwt handles this in some idiomatic way.
Sorry for the vague answer. I will probably have to tackle this myself in the coming weeks.

Thanks Tim, I should have been more specific. Updating the user record on Rails is no problem... The problem is what you mentioned in your 2nd reply. To be more specific with the use case for future readers.
In my app, I created a EditProfile page that is intended to allow the user to set their first_name, last_name and photo. It's fairly easy to submit those fields to Rails and have Rails update the user record.
The challenge is, after Rails updates user, how to then tell my React app (powered by react-devise). to update store.currentUser with the updated fields without requiring a page refresh etc...
Since the currentUser's actions and reducers are inaccessible as they are baked into react-devise, I'm update to update currentUser in my app's store.
For now, I'm thinking about adding store.profile and duplicating the user profile info there (name, image, etc...) not idea but hopefully it will work. I'll then also need to update the react-devise sample app header to user store.profile vs store.currentUser

Gotcha. The "correct" way would be to get a authToken from the call to update the user, which you can use to reset the currentUser, as I described above. Otherwise you'll have inconsistent state, which could lead to obscure bugs.
I'm not sure how to do that off the top of my head. I'll try to investigate in the coming days. This must be a common issue with jwt auth, since jwt tokens hold user info be design. So there must be some idiomatic solution.

FTI - I submitted an issue to devise-jwt relating to this. You might find it helpful to follow. I will plan to look into this a little further in the coming days.

Check out the conversation in the aforementioned devise-jwt issue.
The token can be refreshed by tweaking the config like so:
config.jwt do |jwt|
  # other config
  jwt.dispatch_requests = [
    ['PATCH', %r{^/auth$}] # This is the route to registrations#update. Change it according to the route you are using the update the current user.
  ]
end

And then upon a successful user update, grab the token from the Authorization header and replace the existing one, thus updating currentUser:
dispatch({
  type: 'LOGGED_IN',
  payload: authToken
});

DISCLAIMER: Please read the issue mentioned above which has some info an advice about practices with JWTs. You might want to consider NOT putting user related info into the token. Also, the code above does not revoke the old token, which also might NOT be a best practice.

Thanks Tim, I appreciate the update.. If I'm understanding the threads correctly, are you saying updating the currentUser is now supported by react-devise? Or do you still this feature being added in a future update of react-devise?

The way to update currentUser in the store with is:
dispatch({
  type: 'LOGGED_IN',
  payload: authToken
});

react-devise does not yet provide a form or action for the registrations#update route, so you have to roll that yourself. We might add this at some point. It's probably not a high priority since in the typical case the form would need to created custom anyway, so as to include user attributes that are not related to authentication (e.g., first_name, last_name, etc).
react-devise does not strictly depend on devise-jwt, but that's what we use in the sample app and how-to docs. It does not by default return a fresh auth token (jwt) from the call to registrations#update. So you have to configure that as described in this issue and the referenced issue.
We might at some point create a Rails gem that will handle server setup, which likely will depend on devise-jwt. We would likely provide behavior, possibly via configuration, that would handle this on the server side.

Thanks again. I ended up deciding to move all user info outside of currentUser.

Might not be a bad idea. That's essentially what the maintainer of devise-jwt recommended, not to put volitile user info into JWT tokens.

repo: timscott/react-devise


text:
How to integrate with System Image Utility to create NetRestore/NetBoot image

I'm able to create a workable VirtualBox VM with packer. I'm wonder how can I convert the vmdk to NetRestore/NetBoot Image, so that I can deploy images to real hardwares.
Currently I have tried to mount vmdk with Paragon VMDK Mounter, it's failed to create NetRestore Image from mounted volume with both System Image Utility and Automator Flow
I also observed that when the creating process is finished, vmdk disk is unmounted.
But I can create NetBoot Image successfully with same mounted volume.

From the following screenshot you can see Image Source has been reset to Install OS X EI Capitan as the vmdk was unmounted.

I wouldn't recommend trying to create hardware images directly from this template. It's much, much more common to use a tool like AutoDMG to build hardware for block restores to physical Macs.
This works a bit similarly to NetRestore, where the OS installer is actually executed on your build machine but targeted to a new empty disk image. AutoDMG is purpose-built, however, and lets you add additional installer packages and applications to the process, and can incorporate available software updates.

Thanks @timsutton, as we need create system images for both hardware and VM. I'm looking for a general solution can handle them both consistently. And I think osx-vm-templates is what I need. Do you have any ideas about that?

I think if you want consistency, you need an automat-able process, and that's what AutoDMG was designed for - taking an OS X installer and layering on additional apps or packages.  You can block restore that image onto a physical Mac.
People usually go with a minimal approach here and only create a few base configurations, and let it connect to a client management system (Munki, Casper, Puppet, etc.) on boot.
vfuse is a tool that was designed to take the output from AutoDMG and convert that to a bootable VM, and also optionally configure it for use with Packer. So you could take the same source you have for physical Macs and VMs, and use Packer to do the additional VM-specific config, Vagrant, etc. bits that you need to make the environment distributable internally as a VM.

It's a great solution anyway.
I still have some questions, as you said that AutoDMG is used to create a minimal base image, then install(provision) additional apps/tools after the first boot with CM tools. In our situation, the provision step is very time-consuming as it's heavy depends on the network, almost all apps are installed from Homebrew. So I think I should create a base image include all the apps/tools we need instead of downloading them on each client.
I read the documentations of AutoDMG, it's said that it will mount a image on local, and run Install to this mounted disk, the customized apps/tools should be carried in a hand-made pkg format which are called during installation.
It will be a huge effort and hard to carry all apps/tools in such a pkgs, so I'm thinking if it's not the right way to handle my situation?

It probably isn't worth the effort to "convert" the things you install with brew to install up front in your image, because those things will drift out of date over time. I'm looking at doing this for things like Xcode, which take ages either way, but in a system where we would be re-generating the images automatically anyway.
Homebrew is also really only designed to be run by the "default" admin user on a machine. Do you have a way that you can automatically install/provision brew/cask and your formulae automatically upon deploying an image to a machine? I've seen people come up with ways to be able to automate Brew installs but it looks like a moving target. I'm not sure the Ruby install script has any support for doing a non-interactive version that you could, for example, run as the default 501 uid user in order to pre-populate things. That user would also need to already have its home directory created with at least a ~/Library directory, etc.
The "connect to a client management system" workflow I mentioned does add significant per-client deployment time if you compare to how fast it is to block-restore an image to a machine (even just ethernet, and via TB target disk on a fast SSD it's measurable in seconds). An image restore and additional post-config tasks may be 10-15 minutes over Gigabit ethernet compared to 30 minutes or more where it's installing many things additionally after restoring.
But, those who maintain software in a client management system are already spending time keeping that software up to date (with tools like AutoPkg, and the benefit is that when the machine is done deploying, everything is up to date. If you are putting everything into your image, that image will be out of date tomorrow and you still might want a way to make sure things are up to date. I don't mind that if I deploy a lab computer with 150 installer packages that it takes over an hour, because it's automated to the point where I don't have to do anything except click "start" on the deployment workflow.
Really depends on your environment's needs, though.

Thanks for the discussion! Closing this for now.

authors: cybertk timsutton

repo: timsutton/osx-vm-templates


text:
顶部会有空一行的情况

因为我再走csv导出的时候，导出的csv文件第一行是空白的。
一开始以为是那个文件是bom格式，我把项目文件都查询了一遍是否含有bom，发现不是bom格式的问题。
现在也一直搞不清楚是哪里的问题。

这是来自QQ邮箱的假期自动回复邮件。

您好，我最近正在休假中，无法亲自回复您的邮件。我将在假期结束后，尽快给您回复。


text:
Uncomplicate ipxe build procedure

Description
This PR gets rid of the multiple makefiles / recursive makes approach used to build iPXE. Simplifying the iPXE build description quite a bit.
Why is this needed
Updating iPXE build config is quite convoluted and makes contributions harder than necessary. As @geekgonecrazy experienced in #79. This is the first steps to possibly addressing #116.
How Has This Been Tested?
make
How are existing users impacted? What migration steps/scripts do we need?
Should be easier to mess with iPXE config/builds.

Hey @displague pinged you for review as you seem interested in this area :D, what with #116 and all.

Hey @displague pinged you for review as you seem interested in this area :D, what with #116 and all.

Had to do a amend/force push to kick the DCO bot, it looked to be stuck.

Had to do a amend/force push to kick the DCO bot, it looked to be stuck.

repo: tinkerbell/boots


text:
Add standalone mode

Description
This PR adds a "standalone" mode to boots so it can operate without a Packet API or Tinkerbell server. Instead of contacting a backend service, it loads a JSON file at startup and uses only information from there. This might not be terribly useful in the datacenter but makes local iteration on various features much easier and quicker since boots can run without any dependencies.
Why is this needed
This makes local iteration much faster. It also could be useful in labs where the full power of Tinkerbell is more than what the user wants.
How Has This Been Tested?
Existing tests pass. I validated it all in a pair of docker containers, one running boots and the other running dhclient -4 -d -w
How are existing users impacted? What migration steps/scripts do we need?
Shouldn't impact anyone not using the "standalone" path.
Checklist:
I have:

[x] updated the documentation and/or roadmap (if required)
[ ] added unit or e2e tests

Wanted to discuss the panics in models_standalone.go. any chance those panics could be moved up higher in the stack? What do you think about having the main func be the only thing that panics?

Fair enough. Most of those methods do not have a way to return error so I chose panic to make it clearer that the limitation is because the code is incomplete. If I or someone else rolls through and adds multi-interface support to that code most or all of them would go away. My goal was to get as quickly as possible to demonstrate the idea works, and find out if y'all want it. Assuming you do, I can lay in the multiple interface support and eliminate most of them.

@jacobweinstock the panics are gone now :)

One of these days I will remember to sign-off on commit 😅


text:
Labour Day in NSW, Australia is incorect

Important specifications

Australia (NSW)
Source of data used by Australian government:  http://www.industrialrelations.nsw.gov.au/oirwww/NSW_public_holidays/NSW_Public_Holidays.page

Description
Current page for Australia shows Labour Day for NSW as 8/6/2018.   Labour Day this year is Monday 1st October 2018 and in general it is the 1st Monday of October.

Although there's no entry for the state, it is in the per-holiday section already.
I can see an entry in Wikipedia here: https://en.wikipedia.org/wiki/Public_holidays_in_Australia#Labour_Day
To quote (emphasis mine):
"The Labour Day public holiday varies considerably between the various states and territorieshttps://en.wikipedia.org/wiki/States_and_territories_of_Australia. It is the first Monday in October in the Australian Capital Territoryhttps://en.wikipedia.org/wiki/Australian_Capital_Territory, New South Waleshttps://en.wikipedia.org/wiki/New_South_Wales and South Australiahttps://en.wikipedia.org/wiki/South_Australia. In Western Australiahttps://en.wikipedia.org/wiki/Western_Australia, it is the first Monday in March. In both Victoriahttps://en.wikipedia.org/wiki/Victoria_(Australia) and Tasmaniahttps://en.wikipedia.org/wiki/Tasmania, it is the second Monday in March. In the Northern Territoryhttps://en.wikipedia.org/wiki/Northern_Territory and Queenslandhttps://en.wikipedia.org/wiki/Queensland,[2]https://en.wikipedia.org/wiki/Public_holidays_in_Australia#cite_note-pubholqld-2 it is the first Monday in May."
The holiday is also covered in the main coloured chart at the top of the page.
I think the state specific sections are intended to refer just to any state-specific exceptions, rather than the rule.
Regards,
John

From: Tino Hager notifications@github.com
Sent: 02 October 2018 07:23
To: tinohager/Nager.Date
Cc: John Greenhow; Author
Subject: Re: [tinohager/Nager.Date] Labour Day in NSW, Australia is incorect (#108)
Wikipedia have no Labour Day for NSW. https://en.wikipedia.org/wiki/Public_holidays_in_Australia
Is the information wrong on wikipedia? Can you fix it?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://github.com/tinohager/Nager.Date/issues/108#issuecomment-426067835, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ApcoIeFTxy-PR1AAwFnmhvqr0zIqohL6ks5ugofGgaJpZM4XBYAF.

So the code looks correct:
items.Add(new PublicHoliday(firstMondayInAugust, "Labour Day", "Labour Day", countryCode, null, new string[] { "AUS-ACT", "AUS-NSW", "AUS-SA" }));
It must just be the website itself?

items.Add(new PublicHoliday(firstMondayInOctober, "Labour Day", "Labour Day", countryCode, null, new string[] { "AUS-ACT", "AUS-NSW", "AUS-SA" }));
commit with the fix

Quick fix, awesome!

authors: JohnGreenhow tinohager


text:
Add type hint for 'rawbuffers'

Added 'rawbuffers' parameter in Compiled.exec_ast for improved clarity and type safety.

Tests failing, and I just don't think this is right at all

authors: amirbouraoui geohot

repo: tinygrad/tinygrad


text:
Large plugin load before download finished

My plugin contains a 1MB binary file, I found that following error thrown before files occurred in the ~/.zazu/plugins/linonetwo/zazu-firefox-bookmarks, maybe code executes before file fully downloaded:
Error: Cannot find module '/Users/linonetwo/.zazu/plugins/linonetwo/zazu-firefox-bookmarks/zazu.json'\n    at Module._resolveFilename (module.js:455:15)\n    at Function.Module._resolveFilename (/Applications/Zazu.app/Contents/Resources/electron.asar/common/reset-search-paths.js:35:12

https://github.com/tinytacoteam/zazu/blob/363d517e4709fe4bff220b8b2890d7ca84fa0d5e/app/packages/package.js#L22-L32
TypeError: Cannot read property 'stylesheet' of undefined
at /Applications/Zazu.app/Contents/Resources/app.asar/packages/plugin.js:74:11

https://github.com/tinytacoteam/zazu/blob/363d517e4709fe4bff220b8b2890d7ca84fa0d5e/app/packages/plugin.js#L75-L77
Though errors are thrown, my plugin still works.

Fixed in https://github.com/tinytacoteam/zazu/pull/341

repo: tinytacoteam/zazu


text:
Bump jte to version 1.5.0

@tipsy thanks for bumping to jte 1.4.0 👍
I just bumped to jte 1.5.0, which adds some minor fixes and improvements: https://github.com/casid/jte/releases/tag/1.5.0

Thanks @casid !

authors: casid tipsy

repo: tipsy/javalin


text:
Defining task without autostart fails

Describe the bug
Using pydase 0.10.1, defining as task with the @task decorator without autostart (@task() or @task(autostart=False)) leads to failure to start server.
To Reproduce
import asyncio

import pydase
from pydase.task.decorator import task

class MyService(pydase.DataService):
    @task(autostart=False)
    async def my_task(self) -> None:
        while True:
            # Perform some periodic work
            await asyncio.sleep(1)

if __name__ == "__main__":
    service = MyService()
    pydase.Server(service=service).run()

Expected behaviour
Should generate frontend element to start/stop task.
Screenshot/Video

Additional context
Defining the task with autostart (@task(autostart=True)) starts the server successfully, generates the start/stop elements, and starts the task.

Thanks for the bug report! I will be looking into this shortly.

Confirmed that this is now fixed - thank you for taking care of this so quickly!

My pleasure. Thanks for the feedback!

authors: lmaisenbacherberkeley mosmuell

repo: tiqi-group/pydase


text:
Stock MSMTP Doesn't Work

When using the MSMTP environment variables from the base image with gmail, configuration changes have to be made to get it to work:
auto_from on has to be added to /etc/msmtp
/etc/msmtp has to be owned by asterisk and permissions have to be set to 600
Please add an environment variable to support gmail with msmtp

Added PR

Hi @joeyberkovitz - I appreciate you doing the legwork to get this working for others.
I closed the PR as I went about it in a bit of a different manner:
I've added the env var you recommended to the base images I maintain (alpine, debian, ubuntu) so that it can be used throughout all of my images. What I did keep though was the permissions modification to /etc/msmtp in this repo. I've got you marked in the Changelog for your addition for release 2.5.
Since I'm updating the base images, it will probably be a good day before Docker Hub gets around to building the new freepbx image. Thanks again!

authors: joeyberkovitz tiredofit

repo: tiredofit/docker-freepbx


text:
pagination tokens are null when list is empty for messages

Messages are optional when creating a thread. See here: https://platform.openai.com/docs/api-reference/threads/createThread
When that happens the first_id and last_id are null in the response when listing messages for that thread.
This may be the case for more list type responses but its unclear from the docs.

Thanks!

authors: perobertson tjardoo

repo: tjardoo/openai-client


text:
fix main file path, change to relative path

I'm having an issue where this package is working great in reality, but causing eslint and test suites to fail because they cannot resolve the main entry point to the package.
I think the main entry point is meant to be relative to the package directory, rather than absolute.
Thanks very much for this great package

Excellent, thanks mate. Do you know when this might be released? 🙏

I will release it in an hour

v.1.2.2 is released
thanks for contributing 👍

authors: PMCorbett tjindapitak

repo: tjindapitak/react-text-ellipsis


text:
Refactor to add cluster API

This replaces #96 - it's the same PR, but I tidied up the commits.
As per #96, discussion is in #93
Signed-off-by: Chris Jackson chris@cd-jackson.com

This is now implemented in a separate repository. Feel free to close.
https://github.com/zsmartsystems/com.zsmartsystems.zigbee


text:
Issue starting server using node 5.0.0

When starting the server using node >5.0.0 the process gives me an error as below:
module.js:339
throw err;
^
Error: Cannot find module '/usr/local/lib/node_modules/laravel-echo-server/node_modules/sqlite3/lib/binding/node-v47-linux-x64/node_sqlite3.node'
at Function.Module._resolveFilename (module.js:337:15)
at Function.Module._load (module.js:287:25)
at Module.require (module.js:366:17)
at require (module.js:385:17)
at Object. (/usr/local/lib/node_modules/laravel-echo-server/node_modules/sqlite3/lib/sqlite3.js:4:15)
at Module._compile (module.js:425:26)
at Object.Module._extensions..js (module.js:432:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:311:12)
at Module.require (module.js:366:17)
at require (module.js:385:17)
at Object. (/usr/local/lib/node_modules/laravel-echo-server/dist/database/sqlite.js:2:15)
at Module._compile (module.js:425:26)
at Object.Module._extensions..js (module.js:432:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:311:12)
This happens when the start command is used.
However if i downgrade node to 4.2.0 the package works as expected.
Can you advise why this could be?
Thanks.

I have the same problem with node v7.2.0

Same here with Node v6.9.2 in MacOS Sierra 10.12.1

authors: bolts1 freevital joarobles

repo: tlaverdure/laravel-echo-server


text:
[TVMScript][Parser] B1: Dataflow block

This PR features the parser support for Relax dataflow blocks.
cc @Hzfengsy @YuchenJin @yongwww

@MasterJH5574 Could you please make the CI green? Then let's merge it and enable following features/PRs.

Thanks @MasterJH5574 for the implementation, and @Hzfengsy for the review!

authors: Hzfengsy MasterJH5574 YuchenJin

repo: tlc-pack/relax


text:
Bump version to 1.5.0

PR to prep for the release of 1.5.0, which features improved autocomplete stuff for fish, as well as a small typo fix. Given that there's nothing else in the works (to my knowledge), no reason to not cut the release now.

What's the status on getting this version released?

Version released, and PR sent to bump the version in homebrew: https://github.com/Homebrew/homebrew-core/pull/105669
Someone else will need to handle updating the AUR repo.

authors: MasterOdin superatomic

repo: tldr-pages/tldr-c-client


text:
add_api

Add API for http service.

Looks like this might not be necessary. The app already has an API included. Check the bottom of the UI page, there is a link "use via API" there.

authors: oshev tensortkk

repo: tloen/alpaca-lora


text:
canvas-sm-preinst-autodetect-audience-w8h6f- imagePullBackOff

Long story short
Installing canvas in minikube, after executing helm install command for canvas, it is saying error image pull.
Description
I have followed this installation guide.
https://github.com/tmforum-oda/oda-canvas/blob/master/installation/README.md
helm repo add oda-canvas https://tmforum-oda.github.io/oda-canvas
helm repo update
helm install canvas oda-canvas/canvas-oda -n canvas --create-namespace

The exact command to reproduce the issue
helm install canvas oda-canvas/canvas-oda -n canvas --create-namespace

Environment

Kopf version:
Kubernetes version:
Client Version: v1.31.0
Kustomize Version: v5.4.2
Server Version: v1.30.0
Python version: 3.11.6
OS/platform: Mac OS m2 arm 64

The preinstall hook needs an image which contains kubectl and curl. Because bitnami removed curl from its kubectl docker image quay.io/appuio/oc:v4.14 is used as an alternative.
In the branch 372 I created a new baseimage "tmforumodacanvas/baseimage-kubectl-curl", but in the master branch it is still from the quay.io docker registry.
Maybe there is an issue to access other registries than docker.io from your environment?

You can take a look in the status of the POD, there should be messages about the image pull issue:
  containerStatuses:
  - image: tmforumodacanvas/xxx:vvv
    imageID: ""
    lastState: {}
    name: code-server
    ready: false
    restartCount: 0
    started: false
    state:
      waiting:
        message: Back-off pulling image "tmforumodacanvas/xxx:vvv"
        reason: ImagePullBackOff

You can take a look in the status of the POD, there should be messages about the image pull issue:
  containerStatuses:
  - image: quay.io/xxx:vvv
    imageID: ""
    lastState: {}
    name: xxx
    ready: false
    restartCount: 0
    started: false
    state:
      waiting:
        message: Back-off pulling image "quay.io/xxx:vvv"
        reason: ImagePullBackOff

Yes you are correct

After executing this
helm install canvas oda-canvas/canvas-oda -n canvas --create-namespace  --set secretsmanagement-operator.autodetectAudience=false --set secretsmanagement-operator.audience=https://kubernetes.default.svc.cluster.local
Still get same error
autodetect-audience

canvas-smanop

post-install-job

Overall pod status

Sorry, there must be something wrong with your installation.
If I execute the command as you mentioned it above, the autodetect POD is not deployed.
So, it can not have an ImagePullError.
I verified it. Using the default values install the canvas-sm-preinst-autodetect-audience job:
$ helm template canvas oda-canvas/canvas-oda -n canvas --create-namespace | grep autodetect

              name: canvas-sman-autodetect
# Source: canvas-oda/charts/secretsmanagement-operator/templates/preinst-autodetect-audience-job.yaml
  name: "canvas-sm-preinst-autodetect-audience"
      name: "canvas-sm-preinst-autodetect-audience"
      - name: autodetect-audience
        args: ["-c", "echo starting autodetect audience pre install hook;
           CMNAME=canvas-sman-autodetect;

But with the parameters as you mentioned above, the canvas-sm-preinst-autodetect-audience job is not present any more:
$ helm template oda-canvas/canvas-oda -n canvas --create-namespace  --set secretsmanagement-operator.autodetectAudience=false --set secretsmanagement-operator.audience=https://kubernetes.default.svc.cluster.local | find "autodetect"

no match for autodetect.
Also you have an ImagePullError for "tmforumodacanvas/secretsmanagement-operator:0.1.0" which is hosted on dockerhub. Maybe you have a general issue to connect to the internet and only cached images are available and new images are not found?

I am running it on Mac M2 Pro

Do we have images for ARM/64 instruction set.

I tried pulling docker image for secret management operator
LM0007405:swagger2oas subhanshu.shukla$ docker pull tmforumodacanvas/secretsmanagement-operator
Using default tag: latest
What's next:
    View a summary of image vulnerabilities and recommendations → docker scout quickview tmforumodacanvas/secretsmanagement-operator
Error response from daemon: no match for platform in manifest: not found

Seems it is available from arm64
Can you made it available.

Ah, that explains it. There was an error building the secretsmanagement-operator docker image for arm64.
I will change the title of this issue, then we can continue investigating why the arm image could not be built.

Found a Stackoverflow question which helped:
https://stackoverflow.com/questions/71372066/docker-fails-to-install-cffi-with-python3-9-alpine-in-dockerfile
RUN apk add gcc musl-dev libffi-dev

Without deeper understanding, I think there is a prebuilt package for linux/amd64 and for linux/arm64 it has to be built from scratch and tools like gcc were missing. Anyway, now it worked for both platforms:
https://github.com/tmforum-oda/oda-canvas/actions/runs/11517629274
Can you rerun your installation and add the following setting to the helm install commandline:
--set secretsmanagement-operator.version=0.1.1 --set secretsmanagement-operator.prereleaseSuffix=issue378

so in total:
$ helm install canvas oda-canvas/canvas-oda -n canvas --create-namespace  --set secretsmanagement-operator.autodetectAudience=false --set secretsmanagement-operator.audience=https://kubernetes.default.svc.cluster.local --set secretsmanagement-operator.version=0.1.1 --set secretsmanagement-operator.prereleaseSuffix=issue378

Now facing image pull error for canvas-vault-hc-post-install-hook-z8g2c

Yes, the quay.io image is not configurable, so you can not replace it with the new image containing linux/arm.
In the PR I have already replaced the quay.io image, but in the release 1.1.7 it is hardcoded.
You should be able to get further by deactivating the Canvas-Vault deployment:
--set canvas-vault.enabled=false

complete line:
$ helm install canvas oda-canvas/canvas-oda -n canvas --create-namespace  --set canvas-vault.enabled=false --set secretsmanagement-operator.autodetectAudience=false --set secretsmanagement-operator.audience=https://kubernetes.default.svc.cluster.local --set secretsmanagement-operator.version=0.1.1 --set secretsmanagement-operator.prereleaseSuffix=issue378

Yes, the quay.io image is not configurable, so you can not replace it with the new image containing linux/arm. In the PR I have already replaced the quay.io image, but in the release 1.1.7 it is hardcoded. You should be able to get further by deactivating the Canvas-Vault deployment:
--set canvas-vault.enabled=false

complete line:
$ helm install canvas oda-canvas/canvas-oda -n canvas --create-namespace  --set canvas-vault.enabled=false --set secretsmanagement-operator.autodetectAudience=false --set secretsmanagement-operator.audience=https://kubernetes.default.svc.cluster.local --set secretsmanagement-operator.version=0.1.1 --set secretsmanagement-operator.prereleaseSuffix=issue378

All update and running, do let me know how to access canvas dashboard (UI) step is missing in installation manual

The Canvas-Portal is not installed as part of the oda-canvas helm chart.
There is a seperate README how to install the Canvas-Portal:
https://github.com/tmforum-oda/oda-canvas/blob/master/canvas-portal/README.md

PullRequest #380 was merged into the master branch. In upcoming Release 1.1.8 linux/arm64 platform is supported.

PullRequest #380 was merged into the master branch. In upcoming Release 1.1.8 linux/arm64 platform is supported.

Thank you @ferenc-hechler  👍

authors: ferenc-hechler subhanshu-shukla-ril

repo: tmforum-oda/oda-canvas


text:
🛑 Portal 6 is down

In 2a2664b, Portal 6 (https://portal6.hcmus.edu.vn/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Portal 6 is back up in 5ac4304.

repo: tmkhiem/hcmus-web-uptime


text:
🛑 Portal 4 is down

In 891cf39, Portal 4 (https://portal4.hcmus.edu.vn/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Portal 4 is back up in 1085fc2 after 5 minutes.


text:
HTMLCollection is not fully "live"

Versions
Node 4.4.5
jsdom 9.2.1 (I've also reproduced it with versions down to the latest in the 6 series)
Steps to reproduce
Run the following test:
var html = '\
\
  \
  \
  \

\

1
\

2
\

3
\

4
\

\

\

1
\

2
\

3
\

4
\

\
    \
  \
';

var jsdom = require("jsdom");
var path = require("path");

var base_path = "file://" + path.join(__dirname);

var vc = jsdom.createVirtualConsole();
vc.on("log", console.log.bind(console.log));
vc.on("jsdomError", function jsdomError(er) {
    throw er;
});

jsdom.env({
    html: html,
    url: base_path,
    features: {
        ProcessExternalResources: ["script"],
    },
    virtualConsole: vc,
    done: function done(error, w) {
        if (error) {
            throw error;
        }
    },
});

Actual output
$ node test.js
first test textContent 1
first test textContent 2
first test textContent 3
first test textContent 4
second test textContent 1
second test textContent 1
/home/ldd/src/jsdom_issues/jsdom_issue1/test.js:47
    throw er;
    ^

Error: Uncaught [TypeError: Cannot read property 'removeChild' of null]
    at reportException (/home/ldd/src/jsdom_issues/jsdom_issue1/node_modules/jsdom/lib/jsdom/living/helpers/runtime-script-errors.js:58:24)
    at callback [as _onTimeout] (/home/ldd/src/jsdom_issues/jsdom_issue1/node_modules/jsdom/lib/jsdom/browser/Window.js:430:7)
    at Timer.listOnTimeout (timers.js:92:15)

Expected output
$ node test.js
first test textContent 1
first test textContent 2
first test textContent 3
first test textContent 4
second test textContent 1
second test textContent 2
second test textContent 3
second test textContent 4

Observations

The first test in the test code was actually initially done using (test = tests[0]) which does not work because it does not cause a refresh of the collection but I think this is a known issue.
The 2nd test passes if we use instead var tests = document.getElementsByClassName("test2") or var tests = document.body.children[1].getElementsByClassName("test2"). I suspect the problem is that element version changes are not properly propagated up the tree so the collection fails to refresh.

Probably fixed by https://github.com/tmpvar/jsdom/pull/1934, although we should add specific tests to chec, since there is still some caching that could potentially still be buggy.

This is indeed fixed after #1934. The script now prints
first test textContent 1
first test textContent 2
first test textContent 3
first test textContent 4
second test textContent 1
second test textContent 2
second test textContent 3
second test textContent 4

as expected.

This is the script I used (using the new API):
const { JSDOM } = require(".");

var html = '\
\
  \
  \
  \

\

1
\

2
\

3
\

4
\

\

\

1
\

2
\

3
\

4
\

\
    \
  \
';

new JSDOM(html, { runScripts: 'dangerously' });

authors: TimothyGu domenic lddubeau

repo: tmpvar/jsdom


text:
Update readme.md

YAAASSSS SLAYYY

@anjuved
@wkellogg
@fedepacheco


text:
fix(deps): update module github.com/relekang/coredns-blocklist to v1.12.1

This PR contains the following updates:

Package
Type
Update
Change

github.com/relekang/coredns-blocklist
require
patch
v1.12.0 -> v1.12.1

Release Notes

relekang/coredns-blocklist (github.com/relekang/coredns-blocklist)
v1.12.1
Compare Source

Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.

[ ] If you want to rebase/retry this PR, check this box

This PR has been generated by Renovate Bot.

ℹ Artifact update notice
File name: go.mod
In order to perform the update(s) described in the table above, Renovate ran the go get command, which resulted in the following additional change(s):

6 additional dependencies were updated

Details:

Package
Change

github.com/quic-go/quic-go
v0.48.1 -> v0.48.2

golang.org/x/crypto
v0.29.0 -> v0.31.0

golang.org/x/sync
v0.9.0 -> v0.10.0

golang.org/x/sys
v0.27.0 -> v0.28.0

golang.org/x/term
v0.26.0 -> v0.27.0

golang.org/x/text
v0.20.0 -> v0.21.0

repo: toanju/coredns


text:
5 sign up validations

Validates user email & password at registration

prevents invalid emails
prevents duplicate emails
validates password with password_confirmation
stores unsaved form information for reuse to prevent the need to reenter correct information

Good work - looks like some real progress.


text:
Generation:  1 Warning: Error in {: task 1 failed - "could not find function "calculate_tour_distance""   62:

> shiny::runApp()
Loading required package: shiny

Listening on http://127.0.0.1:5626
Loading required package: foreach
Loading required package: iterators
Loading required package: parallel

Attaching package: ‘dplyr’

The following objects are masked from ‘package:stats’:

    filter, lag

The following objects are masked from ‘package:base’:

    intersect, setdiff, setequal, union

Attaching package: ‘geosphere’

The following object is masked from ‘package:shiny’:

    span

[1] "Set up the EA"
Generation:  1
Warning: Error in {: task 1 failed - "could not find function "calculate_tour_distance""
  62: <Anonymous>

wrong project

repo: toddwschneider/shiny-salesman


text:
add lf europe as ospo associate (OSPOlogyLive Europe)

Pre-submission checklist:
Please check each of these after submitting your pull request:

[ ] Are you only including a repo_url if your project is 100% open source? If so, you need to pick the single best GitHub repository for your project, not a GitHub organization.
[ ] Have you picked the single best (existing) category for your project?
[ ] If submitting a tool, is your project closed source or, if it is open source, does your project have at least 100 GitHub stars?
[ ] Does it follow the other guidelines from the new entries section?
[ ] Have you included a URL for your SVG or added it to hosted_logos and referenced it there?
[ ] Does your logo clearly state the name of the project/product and follow the other logo guidelines?
[ ] Does your project/product name match the text on the logo?
[ ] Have you verified that the Crunchbase data for your organization is correct (including headquarters and LinkedIn)?
[ ] ~10 minutes after opening the pull request, the CNCF-Bot will post the URL for your staging server. Have you confirmed that it looks good to you and then added a comment to the PR saying "LGTM"?

duplicate of https://github.com/todogroup/ospolandscape/pull/191

repo: todogroup/ospolandscape


text:
Pass variables to webschema's "script"

We need some way to pass variables/objects to  webschema's script.
Ideally, script should be passed and executed as an actual PowerShell scriptblock, with it's SessionState and so on. This way we could capture required variables with GetNewClosure or pass them to scriptblock as arguments.
Right now, if I understand it correctly, scriptblocks are used as text to build function that executed in nancy via PowerShell host:
string command = @"function RouteBody {{ param($Parameters, $Request) {0} }}";

I'd love to be able to do this.  I'm not sure I can though - I will be actively pursuing a solution over this week while I'm at the MVP summit in Redmond.

I'm not sure that we can pass an actual PS scriptblock, but as viable workaround we can create a new InitialSessionState, create Runspace using it, assign this Runspace to a PowerShell object, and then import current variables/modules into it. Unfortunately, while it's all can be done in PowerShell, I have no idea how to pass this Runspace to the Flancy. Probably C# code has to be extended with some method/property that would accept Runspace object.
References:

Windows PowerShell Host Quickstart
Warren F.'s Invoke-Parallel function. It's a good example of importing variables/modules in a Runspace.

More thoughts on a subject:

If we could pass a runspace to a Nancy's PS host, we could ditch string command = @"function RouteBody {{ param($Parameters, $Request) {0} }}"; line entirely and instead add this function to a Runspace beforehand in PS part of module.

If this Runspace object could be passed as some kind of "shared" object (by reference?), we could modify it on the fly and script could be reloaded (but not routes, though) without restarting PowerShell.

authors: beatcracker toenuff

repo: toenuff/flancy


text:
Chat with pdf

I want to use OpenChatKit to chat with a pdf and ask questions about it. I suppose I can use pypdf to extract the text from the pdf and then run the bot using the --retrieval flag.My question is how do I create the index that the bot can exploit from the pdf text.
Thanks in advance

I have the save question, how we can create custom content or how the format should be (either txt file or any other format) for retrieval functionality.
Best

repo: togethercomputer/OpenChatKit


text:
[Phoenix] Add a clock view for running Pomodoro entry

Make it optional
Only render the current running entry in a circular countdown clock
Add stop entry button

use a svg circle with css animation for the outside ring (quick test here)

authors: lise-toggl shantanuraj

repo: toggl/toggl-button


text:
use question

how can i use glmatrix in typescripte project？Looking forward to your reply.

Hi,
first make sure that you have the @types/gl-matrix installed. You can install them via:
npm install --save @types/gl-matrix
See the npm-page for further information on types.
Now you should be able to load and use gl-matrix  in your TypeScript file like this:
import * as glMatrix from 'gl-matrix';
// ...
let matrix = glMatrix.mat4.create();

I created a little game in TS and WebGL 1.0. You can play here: https://8observer8.github.io/WebGL/Bitballoon/
You can see how I used glMatrix from TS here: https://github.com/8Observer8/Bitballoon3D

@toji @stefnotch I think this one can be closed, right? Also see #216

@Kaesebrot84 So, https://github.com/DefinitelyTyped is going to take care of everything and I don't have to care about anything?
Also, feel free to only ping me for "unimportant" stuff, because toji is apparently rather busy. 😉

repo: toji/gl-matrix


text:
To d8 or not to d8

That is a question....
Characters don't roll d8 in general play as that is the Narrativium die... Do I remove the button from the character sheet?
Reasons to keep it: GM says "roll it for me". Groups who decide that they like including it in their play as 5 options is more than 4.
Reasons to lose it: It's not in the rules for players. People get confused easily.
If you happen by, give an opinion, I'm not deciding this by myself.

I decided, d8s are no more!

repo: tokeidlom/discworld


text:
Allow users to select whether to create Styles or Variables or both while exporting to Figma

In #2406 we introduced a new option Export to Figma under the Styles & Variables

We want to allow users to choose whether they want to create variables or styles or both from the Options button

On a new Figma file the Options screen should open up first.
On subsequent launch, clicking on the Options button will open up the below screen

The options under What variables should be created and updated?

Select all : Creates color, number/dimension, text/string, booelan tokens as variables
Color : only creates color tokens as variables
Number/Dimension: only creates dimension, number, spacing, sizing, border radius, border width as dimension variables
Text/String: only creates text tokens as text/string variables
Boolean : only creates boolean tokens as boolean variables

The options under What styles should be created and updated?

Select all : Creates color, typography and  shadow tokens as color, typography and effects styles
Color: creates only color tokens as styles
Typography: creates only typography tokens as styles
Effects : creates only shadow tokens as styles

On clicking confirm the screen below will be shown and the settings will be remembered for the FIgma file

On clicking Export to Figma, variables or styles or both will be created depending on the selected checkboxes in the Options screen

@esthercheran @LukeFinch you'll want to look into #2475 to see if its still a bug that might influence the QA on this ticket.

Will be fixed in 2.0

Added to Featurebase Roadmap-	❖ ❇ New styles and variables options menu

repo: tokens-studio/figma-plugin


text:
opcode: offset should be u64 instead of libc::off_t

libc::off_t is i64 while kernel and liburing uses an u64 for the offset field in most of the opcodes.
There are some exceptions like IORING_OP_FILES_UPDATE and IORING_OP_FALLOCATE.
To avoid differences and casting issues (e.g. using try_into() on u64 to cast to i64 can fail) we should follow what liburing does and expose offset as u64.

And POSIX seems to confirm that off_t shall be signed:
blkcnt_t and off_t shall be signed integer types.
https://pubs.opengroup.org/onlinepubs/009696899/basedefs/sys/types.h.html

Under the impression that the kernel will always convert it to loff_t, but I agree that we should follow liburing's interface.
Anyway this is a break change and we need to keep it until the next version.

Under the impression that the kernel will always convert it to loff_t, but I agree that we should follow liburing's interface.

Right, actually then it always gets converted to loff_t which is signed, mah

Anyway this is a break change and we need to keep it until the next version.

It's fine, please let me know when I should rebase the PR.

authors: quininer stefano-garzarella

repo: tokio-rs/io-uring


text:
Future-proof the kevent ABI

FreeBSD 12 adds some new private fields to struct kevent, and it changes
the type of "data" from intptr_t to i64.  For now libc only binds the
11-compat ABI, but that will change some day.  Adjust mio's structure
definitions for compatibility with either ABI.
This should work on all 32 and 64 bit platforms.

Thanks @asomers.

authors: Thomasdezeeuw asomers

repo: tokio-rs/mio


text:
速報値であることの記載

改善詳細 / Details of Improvement
検査陽性者の状況、検査実施数 について、それぞれ既存の注釈の下に、以下の文面を追加してください。
検査陽性者の状況：「検査実施人数は、速報値として公開するものであり、後日確定データとして修正される場合があります」
検査実施数：「検査実施数は、速報値として公開するものであり、後日確定データとして修正される場合があります」
Background
検査実施数、検査実施人数は、東京都健康研究安全センターが集計した速報値をデータ化しています。報道向けにも速報値として伝えており、サイトにも明記します。

着手しますー。

@MaySoMusician
このIssue、新たにテキストを翻訳する必要があるため翻訳シートを更新したいのですが、私の方で行っても問題ないですか？

@kebhr 取り急ぎ、日本語以外は全て英語で対応していただけますか？
こちらに英文のみ追記させていただきました。

@halsk
承知しました。更新してDraft外します。

authors: halsk kebhr mtenjin


text:
新宿区のグラフはリリースから一時はずす

改善詳細 / Details of Improvement

まだ都側の最終チェックが終わっていないため、明日明後日のリリースからは、新宿区/千代田区のグラフははずしておきます。

リリースの際は以下気をつけてください。
#1971

リリース終わったので戻しておきました。
明日も同じなのでIssueは残しておきます。

authors: halsk nichesuch


text:
[i18n] worker.vue 内の文字列をi18n化

総合issue: #680
（全体の方針については↑へ）

pages/worker.vue の直打ちの文字列を<i18n>で定義するようにします。
各言語への翻訳はこちらにあります: https://docs.google.com/spreadsheets/d/1aksSfWIXE_L3rFYFjHz9xtVhh0n7ealMQ0eEz8GGPlw/edit#gid=0

@MaySoMusician
こちらのissue、"worker.vue"を化するものですが、タイトルが"parent.vue"となっております！
修正お願いいたします！

@cyblue9 ご報告ありがとうございます！修正いたしました

@MaySoMusician
迅速な対応ありがとうございます！

こちらを引き受けたいです！ まだ誰も作業してませんかな？

@IkarosuTsubasa あー申し訳ないです。一応ハッカソンの方で既に作業中です...
本日出した[i18n]の作業はひと通り割り当てが終わってしまっています...

@MaySoMusician  はい、わかりました！

authors: IkarosuTsubasa MaySoMusician cyblue9


text:
TextCard コンポーネントで slot や body プロパティを受け取る要素を div に変更した

📝 関連issue

#714
#758
#768

about.vue で slot にリスト要素を入れており、それが以前の <TextCard /> コンポーネントだと p 要素内に展開されるためHTML構文エラーとなっていました。
⛏ 変更内容

<TextCard /> コンポーネントで v-html と slot を受け取っている要素を div に変更した
slot を利用していない場合に空のタグが出力されるバグを修正した

確認お願いいたします！

@halsk h2 -> h3 にする変更などが、コンフリクト解消時に消滅しています

@oti さん、不具合が出た関係で一旦こちらを Revert したり元に戻したりしました。変更内容が正しく反映されているかご確認いただけますか？申し訳ありません。

@halsk ちょうどみていました。 h3 にした部分が h2 に戻っている以外は大丈夫そうです。

authors: amotarao halsk oti


text:
Define privacy policy

The published repository runs nginx, which keeps logs about who accesses the files. Collected information is (following default nginx rules):

Complete IP address.
Date and time of access.
HTTP verb, version and response code.
User agent (including browser name & version, OS name & version).

We should probably define a retention time for this information, and maybe reduce the scope of collected information (e.g. anonymise IP addresses after a given time). The logs could be used anonymously to publish stats about which packages are used.

Is this a prerequisite for #15?

I think it is. I’ll add it to the milestone. Thanks!

You could probably use fluentd to redirect the logs into some database. From there it would be easier to auto-delete or not add the ip at all to a db.
Here is a fluentd.conf i made and used: https://gist.github.com/LinusCDE/9ba8b79f115272dcbe2371cacb815288
There is also a docker-compose you can use to spin up a db and have a simple interface to look into with.
The elasticsearch part can be removed, though you can also go down the rabbit hole of using that with Kibana and get a lot a statistics very easily.
The cool thing about fluentd is, that it can take a lot of stuff (docker natively supports logging to them as a driver) and spit out nicely formatted json per log entry that can be sent basically anywhere.
Here is a sample entry from my mongo db that fluentd put there (was a nginx log entry with added server_name and got machine_id added by fluentd):
{
    _id: ObjectId('5ec42b813395ae000fde7593'),
    remote: 'xxx.xxx.xxx.xxx',  # IP removed
    host: '-',
    user: '-',
    method: 'POST',
    path: '/api/v4/jobs/request',
    code: '204',
    size: '0',
    referer: '-',
    agent: 'gitlab-runner 12.10.1 (12-10-stable; go1.13.8; linux/amd64)',
    machine_id: 'ozelo',
    time: ISODate('2020-05-19T18:54:33.000Z')
}

Whether nginx doesn't log the IP, fluentd removes it or it gets periodically removed by some client connected to the database is up to you.
One could probably also use a grafana server to have statistics of the data in the MongoDB (or whatever backend you choose).

authors: Eeems LinusCDE matteodelabre

repo: toltec-dev/toltec