text:
unable to deploy successfully

Greetings!
I've been trying to setup a new instance of this today, I have a few other instances that have deployed without a hitch. today I am receiveing this though,
# ./spec/views/landings/show.html.erb_spec.rb:1:in <top (required)>
# ------------------
# --- Caused by: ---
# PG::ConnectionBad:
#   FATAL:  no pg_hba.conf entry for host "172.24.0.6", user "postgres", database "rails7_app_test", no encryption
#   /usr/local/bundle/gems/pg-1.4.5/lib/pg/connection.rb:632:in async_connect_or_reset'
No examples found.

Finished in 0.00006 seconds (files took 1.65 seconds to load)
0 examples, 0 failures, 10 errors occurred outside of examples

Coverage report generated for RSpec to /home/lucky/app/coverage. 8 / 164 LOC (4.88%) covered.
Stopped processing SimpleCov as a previous error not related to SimpleCov has been detected
15. Visit Rails App: http://local....

more specifically:
PG::ConnectionBad: FATAL:  no pg_hba.conf entry for host "172.24.0.6", user "postgres", database "rails7_app_development", no encryption```

@raddrick sorry sir, fir now no any guesses
I think you found on the internet something like that
https://dba.stackexchange.com/questions/83984/connect-to-postgresql-server-fatal-no-pg-hba-conf-entry-for-host
But I never had an issue like that before

authors: raddrick the-teacher


text:
Completely crashes display output after starting the app

Starting the app leaves my Macbook Pro 11,4 without any video output on the external monitor and the internal display. The only way to recover from this seems to be forcing the computer to shutdown and starting the computer again. The internal display is also broken after unplugging the external monitor.
Using https://github.com/kfix/ddcctl I can control the monitor brightness/volume without problems.
I also tested MonitorControl with the latest ddcctl master commit, same results.
The monitor is: Iiyama ProLite B2888UHSU

I see, ddcctl works for setting the brightness but reading the brightness crashes the display:
./ddcctl -d 1 -b '?'

crashes bot displays (internal and external)
while:
./ddcctl -d 1 -b 100

Works fine

source: gharchive/issue

license: MIT

license_type: permissive

license_source: github-api


text:
add dateCatcher to karcsi

currently it still able to display outdated menu. you can use korhely scraper as reference

"csinalja meg akinek harom anyja van" 😠
I started to refactor dateCatcher module to catch this format:

Heti ajánlat 07.29-tŐ1-08.02ig

it makes it difficult in more levels:

they omit putting year into the date which would require addition of current year from our side (but of course this would be an ugly hack)
07.29 date format can be confused with price formats so a modified date regex would lead to many bugs in other scrapers

this is a won't fix right now. feel free to reopen and find a better solution. 😅


text:
wrong path of site logo cause 404 error in post pages

Because of current site logo' path is ./path/to/logo, site logo can only loaded in homepage.
https://github.com/theNewDynamic/gohugo-theme-ananke/blob/03fd7d9da05db0928284b601d987c97556c6eb24/layouts/partials/site-navigation.html#L5

If anyone else experiences this and is still waiting on the fix, I found preceding the path for the logo with / (which is different to what you do for featured_image) seems to fix/workaround this:
favicon: "/images/logo.png"
site_logo: "/images/logo.png"
featured_image: "images/header.jpg"

Note: These two image files are in <site dir>/static/images/

Hello
I have the same problem when the BaseURL is not http://localhost:1313 but something like this
baseURL = "http://localhost:1313/mysite"
and the / doesn't fix the problem.
if I use : site_logo = "images/logo.svg" I have logo only on the first main page
If I use :  site_logo = "../images/logo.svg" I have logo on all the other pages except first page
Thanks

Hello I have the same problem when the BaseURL is not http://localhost:1313 but something like this baseURL = "http://localhost:1313/mysite" and the / doesn't fix the problem.
if I use : site_logo = "images/logo.svg" I have logo only on the first main page If I use :  site_logo = "../images/logo.svg" I have logo on all the other pages except first page
Thanks

Did you try?:
site_logo = "/images/logo.svg"

I have partials for both page-header.html and site-header.html that contain:
  {{/* Trimming the slash and adding absURL make sure the image works no matter where our site lives */}}
  {{ $featured_image := (trim $featured_image "/") | absURL }}
  <header class="cover bg-top" style="background-image: url('{{ $featured_image }}');">

See https://gitlab.com/ben-moss/ben-moss.gitlab.io/-/tree/main/layouts/partials

Did you try?:
site_logo = "/images/logo.svg"

Yes I did it's really a problem of URL Path.
if my BaseURL = http://localhost:1314/mysite , and site_logo = "/images/logo.svg" so the logo is not found because the URL of the logo is : http://localhost:1314/images/logo.svg it's like the BaseURL is not used to define URL   of the image.
Ok I found the solution : I have to define the site_logo like this : site_logo = "/mysite/images/logo.svg"

authors: ben-moss junjieyuan omontigny

repo: theNewDynamic/gohugo-theme-ananke


text:
Support array images for featured image

Right now the featured image is a string, but Hugo's embedded templates look for an array of images.
Users have solved the problem by using Page Resources which both Hugo and Ananke support. But we should probably look for an array of images on top of our featured_image string.

This should take care of #161

How would image array data be structured in page front matter? Would existing sites have to update their featured_image values? Can we harmonize a fix with changes proposed in https://github.com/theNewDynamic/gohugo-theme-ananke/pull/540, specifically the featured_image_data property?

authors: budparr nedjo regisphilibert


text:
[Feature request] Sorting

I use your app a lot, but there are two things that would make it perfect for me.

The ability to sort tags alphabetically.
Selecting several tags (finding only bookmarks that match all tags).

That would be amazing!

closing in favour of https://gitlab.com/derSchabi/OCBookmarks/issues/13

authors: Didgeridoohan theScrabi

repo: theScrabi/OCBookmarks

license: mit

license_source: bigquery


text:
the python version

I rewrite it from C++ file. It might not be perfect but it works at least for HIC059_30.hic and rabbit_rep1_30.hic

Thanks for all your work!
This isn't compatible with Python 2.7, could you try and fix the problems
so it runs successfully in both 2.7 and 3?
E.g. the line
return str(buf,encoding="utf-8", errors="strict")
becomes
return str(buf).encode("utf-8")
On Wed, Oct 26, 2016 at 6:02 AM, Yue Wu notifications@github.com wrote:

I rewrite it from C++ file. It might not be perfect but it works at least
for HIC059_30.hic and rabbit_rep1_30.hic
You can view, comment on, or merge this pull request online at:
https://github.com/theaidenlab/straw/pull/4
Commit Summary

Merge remote-tracking branch 'theaidenlab/master'
Merge remote-tracking branch 'theaidenlab/master'
python version

File Changes

A python/straw_python.py
https://github.com/theaidenlab/straw/pull/4/files#diff-0 (414)

Patch Links:

https://github.com/theaidenlab/straw/pull/4.patch
https://github.com/theaidenlab/straw/pull/4.diff

—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/theaidenlab/straw/pull/4, or mute the thread
https://github.com/notifications/unsubscribe-auth/ABWiW3Fs8mx4qrTrGBxiAEvzD-uRcYhAks5q3tDdgaJpZM4KgvK5
.

--
Neva Cherniavsky Durand, Ph.D.
Staff Scientist, Aiden Lab
www.aidenlab.org

source: gharchive/pull-request

authors: mikeaalv nchernia

repo: theaidenlab/straw


text:
Input not available.

I'm using C language using this app, and I'm trying to get input using scanf, but I keep getting weird output and I can't input at all. How do I get input through the terminal?

Hi. For languages that are executed externally (for example, C), you'll need to input before the execution.

authors: JUSEOUNGHYUN bummoblizard

repo: thebaselab/codeapp


text:
Test task missing in build.xml?

How can i run the tests? There doesn't seem to be a test task.
Would it be better if the project just used a maven pom.xml? That way, you can build, test and deploy with one file? Let me know if you like me to submit a patch.

Tommy, I think you are exactly right that moving to a single pom.xml is the right approach -- I've just been postponing the work because looking at poms make my head spin (especially when adding the refs to do releases).
I have that work piling up here: https://github.com/thebuzzmedia/imgscalr/issues/41
If POMs are second nature to you and this is something you could whip up quickly and it could give us build parity to what the Ant build gives us now, that would be fantastic.

Tommy, now that the pom.xml is in the project can I mark this as fixed or did you specifically want a test task in the Ant's build script as well?

Yes  this is a closed issue. thanks!

authors: tc thebuzzmedia

repo: thebuzzmedia/imgscalr


text:
Enable Multi-language

Congrats on the launch, great package !
Would be great to add multiple translations for each page/copy.
Thank you again

Great, thanks !
Would it be also possible to support custom routing for multi-lang usage? (by enabling a quick combination with https://github.com/codezero-be/laravel-localized-routes for example)

I'm sure there's probably a way to utilize this package with the Auth package, if you find a good solution that would work well as a PR, I'm totally open for reviewing it.
For now I'm going to close this issue, but if you open a PR feel free to let me know.
Thanks.

authors: a-zog tnylea

repo: thedevdojo/auth


text:
Create kute-html.js

Usage

This will be an interesting experiment, however, I would recommend adding a brief how to use into the file header for now.

authors: dalisoft thednp


text:
🛑 test site is down

In d5a16e2, test site (https://londonlaboursupply.devhug.uk/) was down:

HTTP code: 502
Response time: 579 ms

Resolved: test site is back up in 3fd55b8.

repo: thegreatgulper/checksitestatus


text:
mst3k1_2.z5 miscalculates remaining line length

It seems to think it has around ~4 chars more wiggle room than it does.  Read the trace and fix it.

It's a bug in the game proper, it seems (i found an error and fixed it), but I'm still not sure why it doesn't show up in gargoyle/bofcel.  Really smart word wrap code that pushes auto-wrapped text up to previous indents?

repo: theinternetftw/xyppy


text:
Readthedocs fix

Solve the issue on the readthedocs build

[ ] confirm that all notebooks are running.

repo: theislab/greatpy


text:
QC & cell-type annotation steps in tutorial?

Hi all,
First, amazing job on the squidpy package as well as nicely elaborated tutorials!
I'm currently taking some slide-seq (v2) data, and wonder if I can apply scanpy/squidpy platform earlier on, not just for visualization and quantitative data analysis, but also for Quality Control (QC) and assign cell-types in each clusters. I'm aware that this is very dataset-specific, and hard to be generalized, but wanted to see these steps behind the current tutorial. Could you please unveil this part of the squidpy/scanpy notebooks for processing the data?
p.s. Also, I wonder where I can get the information of how to convert the raw aligned data to h5ad/anndata objects. If there's a tutorial so that I can see the whole workflow from the raw sequencing data all the way to the plots, that'd be fascinating.
Thanks very much,
Yang-Joon

hi @yangjun9095
thank you for the interest in squidpy. All the repoducibility notebooks from the paper can be found here: https://github.com/theislab/squidpy_reproducibility
most of the pre-0processing/QC uses scanpy functions, some of it can be seenhere: https://scanpy-tutorials.readthedocs.io/en/latest/spatial/basic-analysis.html. (scanpy notebook for legacy reasons).

p.s. Also, I wonder where I can get the information of how to convert the raw aligned data to h5ad/anndata objects. If there's a tutorial so that I can see the whole workflow from the raw sequencing data all the way to the plots, that'd be fascinating.

for raw-aligned you mean the output of spaceranger? if yes, then you can just use the scanpy function read_visium https://scanpy.readthedocs.io/en/stable/generated/scanpy.read_visium.html  if you mean some other data format, you can take a look at this tutorial on how to read general data into squidpy: https://squidpy.readthedocs.io/en/latest/auto_tutorials/tutorial_read_spatial.html
HTH

Thanks a lot, Giovanni! This is super helpful!
I actually wanted to load the output from slideseq-tools package (https://github.com/MacoskoLab/slideseq-tools/tree/0.1).
I think I can start with the tutorial that you shared. Thanks a lot again!
Best,
Yang-Joon

repo: theislab/squidpy


text:
Monitor C* clusters for out of band changes

The Reaper CRD allows you to specifies clusters as in the following example:
apiVersion: reaper.cassandra-reaper.io/v1alpha1
kind: Reaper
metadata:
  name: cass-reaper
spec:
  image: jsanda/reaper-k8s:cfad3f9f4cac-e026be8176d4
  serverConfig:
    storageType: cassandra
    cassandraBackend:
      clusterName: cluster-1
      contactPoints:
      - cluster-1
      keyspace: reaper
      replication:
        networkTopologyStrategy:
          dc1: 3
  clusters:
  - name: cluster-2
    namespace: default
    service:
      name: cluster-2
      namespace: default

When this Reaper object is created, the operator will do the following:

Create the reaper keyspace in the cluster-1 cluster
Create the Deployment for the Reaper application, which is named cass-reaper
Make a REST API to add cluster-2 to cass-reaper

A user can go into the Reaper UI and remove cluster-2. This would be an out of band change with respect to the operator. It would make the actual state of cass-reaper different from the desired state , and the operator will not be aware of the change.
There needs to be a background job that checks for out of band changes. When the job detects an out of band change, it should queue the Reaper object for reconciliation. A subsequent reconciliation of cass-reaper for example, will result in cluster-2 being added back to the Reaper application.
Note that the background monitoring job should only inspect clusters that are defined in .spec.clusters. Other clusters can be added to/removed from the Reaper application. The monitoring job will ignore them.
It is also important to note that clusters added to the Reaper application through .spec.clusters cannot  removed directly through the application. The clusters must be removed from .spec.clusters to trigger removal from the application.

The work for this is being done in the monitor-clusters branch.

repo: thelastpickle/reaper-operator


text:
Count number of downloads

Count the number of downloads of each comma chameleon distribution so we can report on uptake and if users are staying current with updates

Oh! There's an API for that:

curl -i https://api.github.com/repos/theodi/comma-chameleon/releases/latest
curl -i https://api.github.com/repos/theodi/comma-chameleon/releases

So for the latest release:

OS
Downloads

Linux 32
6

Linux 64
52

Windows 32
73

Windows 32
219

MacOS
586

936 downloads in total

thanks again for this Stephen

authors: Stephen-Gates quadrophobiac

repo: theodi/comma-chameleon


text:
BUG: :title_row warns if the first row has fewer fields than the average row?

That's the behavior. It seems like unusual behavior to me. Shouldn't it check if any row has more fields than the first row?

Yeah, I noticed that one as well ... it seems odd, but is there some reason behind it?

authors: jpmckinney nickzoic


text:
Do not use Container for the name of the generated styled.div around a component

It's confusing :/

Agreed.
And I'm not sure the architecture here really makes sense? I'm expecting the Foo.style.js to import and wrap Foo.component.js with some style, not Foo.component to wrap itself. There's no reason for the .component to be aware of styling, and it makes it less reusable

@williamdclt a downside of that would be that you have no control over where to use the styled.div : it will systematically create a  around your component

I'm not used to styled so I'm really not the best to judge of that, but it seem to make sense to me to systematically create the div around the component. It doesn't seem a good pratice to have this Container somewhere inside the component.
But then once again, I've never actually used styled so...

I'd rather control where actual DOM is created.

@foucdeg to better understand your point, I need an example of what is wrong to you and what it should be. Can you do that please?

@benja-M-1 here's the generated code for a PureComponent using StyledComponents:
import React, { PureComponent } from 'react';

import { Container } from './TestComponent.style';

type Props = {
};

class TestComponent extends PureComponent<Props> {
  render() {
    return (
      <Container>
      </Container>
    );
  }
}

export default TestComponent;

I just want the styled div Container to be called something else, because people might think that it refers to a Redux container, although it's a styled div. Let's avoid having one name for two completely different things.

as seen with @Kui-kui :

in {{ component }}.style.js, name the div Styled with the component name and make it default export
in {{ component }}.component.js, import it as Style

@foucdeg would you mind submit a PR?

@benja-M-1 sure !

@benja-M-1 @williamdclt @Kui-kui I just found out that the issue has already been mitigated by this commit where Redux containers were renamed wrappers. There is no longer a conflict on the name "Container".
However, I still feel that "Style" and "StyledTodoList" are better styled component names than Containers, so I'll go ahead with the PR.

@foucdeg Thanks, I merged your PR :)

authors: benja-M-1 foucdeg williamdclt

repo: theodo/theodo-stack-generator


text:
Allow remote streams in Reader

Introduction
This PR will allow the Reader to use non-seekable streams like remote streams (HTTP or FTP).
Proposal
Describe the new/upated/fixed feature
To allow the reader to use that new streams, the library should add a new method to that streams type. The stream will be transformed inside the library in a seekable stream. To improve the performance, it will be create in memory is it is small (default 2MB) or in a temporary file if it is bigger.
Backward Incompatible Changes
It is 100% backward compatible.
Targeted release version
9.0
PR Impact
This PR will modify the Reader API and will allow the use of remote streams out of the box.
Open issues

Hi @joskfg thanks for the submitted PR. I have some reservation if this is necessary in the library. Here's my thought.

The library should be and is still really agnostic in how it should be used and you are suggesting adding an opinionated way on how to deals with remote streams.
I fail to see how is this not already covered by the createFromStream named constructor added in 8.2 and still present in v9 ?
Last but not least IMHO your solution belongs in an independent package which should then suggests using league/csv or if you can create such package in time before v9 is out the other way around. For instance, I have such factory library for instance to deal with PSR-7 but for the same reasons given above I did not included it in the main league/csv package.

Hi @nyamsprod, thanks forreview the PR. It tries to give a solution to the fact that PHP doesn't support seek for remote streams. This means that if you want to use the library, you need to create a seekable stream that it is local and it is not easy to do.
As you refers, it can be solved with the createFromStream. I suggested to give the functionality out of the box because the remote files usage is common. Maybe there are more solutions but this is the best I found and it is based in the solution used in makeFromString.
Finally, you are right it can be an external package because all you need is createFromStream, but the library is already implementing helping methods like createFromPath or createFromString that can be easily done with createFromStream using createFromStream(fopen('/path/to/file.csv', 'r+'));, so I thought that this new helper could be a good solution.
Regards

@joskfg you are absolutely right, in a ideal world league CSV should need only one constructor which accepts a (stream and a SplFileObject object. But let's be realistic, the current API covers more than 80% of the average construction possibilities. And the missing alternative are easily manageable using the current API.
The PR on itself does not add anything to the CSV parsing and manipulation. It only offers a new way to access a CSV document and only partially as you can not use this technique for writing to a CSV  document. So we are introducing a new layer of difficulty for the developer who will have to consume the library for a partial gain.
If this PR is accepted on what ground will I refuse for instance a PR for handling PSR-7 objects or HttpFoundation response/request ? This is just opening a trend which IMHO will only add maintenance burden on a fairly simple package.
On the other hand providing these solutions as separate plugins to the main package would give a better choice to the community without having to maintain them on the main package.
My 2 cents.

Any idea/base about how to do a plugin?

Since you are building a Factory, you can look at this example https://github.com/bakame-php/psr7-csv-factory you could even fork it and improve it if you want

I won't use PSR-7 because PSR-7 is just for HTTP and this work for a lot of protocols like for example FTP (see http://php.net/manual/en/wrappers.php).

I'm not asking to use PSR7 you can use this repo as an example for adding new factory method that's all.

Yes, I just wanted to clarify that the PR has a wider scope :-).
Thanks

I will close this PR as you will be working on a factory package for the stream wrapper.

authors: joskfg nyamsprod

repo: thephpleague/csv


text:
Include non-official gateways

The OmniPay Common package contains the list of "official" gateways in its composer.json. This application will load up just the gateways listed in that file (through Omnipay::find()). There are many more gateways out there, which it would be great to be able to list and use in the example application.
A list of additional gateways to load (if available) would be great. A list of additional gateways that are known about but may not be loaded yet (they have not been installed via composer) would be great also. The ability to add your own gateway to the list that you may be developing, or is not on any official lists anywhere, also would be good.

I will refer to my other comments -- I don't think that this is a good idea.

At the moment you can install any non-official gateway, but the example application will not see it. That is what I would like to see solved here. Because of the way composer works, the application needs to start with a list of gateways that it can scan for - just the short names are all that is needed (or the namespace in OmniPay 3.0). So I think that list needs to be somewhere the example application can access at run time.
For example, while developing the PAYONE driver I set the root route up like this in index.php
// root route
$app->get('/', function() use ($app) {
    $supported_gateways = array_merge(
        Omnipay::find(),
        ['Payone_ShopServer', 'Payone_ShopClient', 'Payone_ShopFrontend']
    );
    sort($supported_gateways);

    $gateways = array_map(function($name) {
        return Omnipay::create($name);
    }, $supported_gateways);

    return $app['twig']->render('index.twig', array(
        'gateways' => $gateways,
    ));
});

If that list (['Payone_ShopServer', 'Payone_ShopClient', 'Payone_ShopFrontend']) could be pulled in from some other source - a file or even a file of known gateways + .env for adding development gateways, then that would be ideal I think.

What I tend to do is define an array somewhere in my application config that looks something like this:
omnipay: {
    PayPal_Rest: {
        secretKey: asdfasdf12341234,
        testMode: false
    },
    Pin: {
        apiKey: blablabla,
        testMode: false
    }
}

That way I can call Omnipay::create on $key and pass in $value as the parameters to initialize().
I can stick this array in a config file, or shove it in a database where a super-admin can edit it.
Everyone has their own solutions and I don't think that mandating one will achieve very much. YMMV.

If there is already a way of doing it, I'll give it a go and get some documentation in.

There is already a way of doing it -- not necessarily a recommended way of doing it. Everyone has their own implementation of $config these days it seems. I even recall having stand-up shouting arguments with devs about whether to use php files or .ini files to initialise $config -- these days I go for JSON blobs stored in the database if I can.

Just coming back to this in connection with https://github.com/thephpleague/omnipay-common/pull/137
That PR removes the list of all gateways from omnpay/common and removes the OmniPay::find() method for locating them all and checking which are installed. Going down that route for OmniPay 3.0, I guess we need the config approach here, and I would suggest a config file preset with all the gateway drivers we know about, and a config file that can be customised,  allowing the gateway drivers we don't know about to be added.
I'll have a play and see what I come up with. The key, to me, is an example application that lets people get up and running and try out OmniPay quickly and easily, but also offer flexibility for those wirting their own drivers or experimenting further.

authors: delatbabel judgej

repo: thephpleague/omnipay-example


text:
Update urls of endpoints/resources to match with windcave

As PaymentExpress was rebranded to Windcave, urls needs to be updated in order to work properly. This pull request just update the urls. Maybe the whole project needs to be renamed and/or refactored to use the new brand name.

Are there no breaking changes otherwise? Renaming the package/gateway would be breaking, but we could the gateway as an alias perhaps

repo: thephpleague/omnipay-paymentexpress


text:
Require correct PHP version on composer

Since omnipay/common requires PHP 5 and this package doesn't require any PHP version BUT works only with PHP 7.1+, then it should have the right PHP version to be required in order to avoid this package being required in the wrong php environment.

The tests work down to PHP 5.6, so it certainly is compatible with PHP 5.6 at least. I'm going to try to keep compatibility with 5.6 while Omnipay Common does, probably another 6-9 months.
Is it the documentation that says 7.1?

@judgej on the readme it says:
Omnipay is a framework agnostic, multi-gateway payment processing library for PHP. This package implements Sage Pay support for Omnipay. This version only supports PHP 7.1+.

Okay, it's probably the readme that is wrong. It did only support 7.1 at one point, but the 7.1+ syntax was so little used, that was changed.

This change causes a composer "downgrade" to version 3.2.0 on PHP 8.0.

authors: jamieburchell judgej ricardofiorani

repo: thephpleague/omnipay-sagepay


text:
V4 Extensions

Extensions will work similarly to how they do now, they'll just receive the Engine object and can then configure it accordingly. Very similar to how service providers work.
Extensions will be very powerful and I want to try and implement much of functionality via extensions in an attempt to eat my own dog food and showcase the power of extensions.
Here is a list of standard extensions that I want to support:

Layouts in general
Partials
Sections
Default Layouts

If a layout isn't defined, a default one will be assigned (need some way to override) #123

Escaping

Make sure to support different encodings as well #106

Asset
URI

Still in the works is the TemplateContext and how to provide functions inside of the template itself.

repo: thephpleague/plates


text:
Download rust nightly automatically

Also, pin the version to a specific one

eeeh, looks good :)

repo: thepowersgang/mrustc


text:
Add initial template for contributing and issue template

Initial drop for issues/24.
Because I am not vary familiar with this project there are some thing to improve.
For example:

Should we add a placeholder for logs?
Should reporter specify any additional environment details?

@Abrasha please add PULL_REQUEST template too, see the example here https://github.com/therajanmaurya/android-client-2.0/blob/development/.github/PULL_REQUEST_TEMPLATE.md

@therajanmaurya done. Tell me if you would like these 4 commits to be squashed.

Yes please do
On 04-Oct-2017 11:54 PM, "Andrii" notifications@github.com wrote:

@therajanmaurya https://github.com/therajanmaurya done. Tell me if you
would like these 4 commits to be squashed.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/therajanmaurya/Stock-Hawk/pull/37#issuecomment-334246575,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AFdZQkovKE9XdtE8DEbv45OImcx-Z6xfks5so81UgaJpZM4PtPqZ
.

@therajanmaurya done!

Thanks @Abrasha

authors: Abrasha therajanmaurya

repo: therajanmaurya/Stock-Hawk


text:
Setup production server

Get the production server instance up and running and working with Git.

Going to keep the servers for just the database so that the app doesn't have to reach the server and then to the api and then bring all that data back to the application. All servers are setup and their IP's are giving to the right people.

authors: jacobnigh therealaldo

repo: therealaldo/MacroManagement


text:
admin li in contents does not display properly

admin link, set as .start-inactive, is then show()n when an admin login. However,
this then sets the li to display: list-item, overriding the bootstrap classes
setting similar links to display: block. May need to use something different from
.start-inactive or a custom function instead of show()

This is due to expected behavior of jQuery's show(). Corrected by changing show() to removeClass("start-inactive")

repo: therealchjones/mffer


text:
Satzdarstellung: typenlose #...#-Kommentare werden nicht angezeigt

https://tlabeta.bbaw.de/sentence/IBcAZuZHQFUieE9hpnUeIQK3zA8
http://localhost:8080/sentence/IBcAZuZHQFUieE9hpnUeIQK3zA8
Rohdaten:
http://localhost:9200/_search?q=id:IBcAZuZHQFUieE9hpnUeIQK3zA8
          "tokens": [
            {
              "id": "IBgAZB2IqBQiiE0Wny7pzJl8amo",
              "type": "desc",
              "label": "Bildfeld mit sechs stehenden Personen",
              "glyphs": {}
            },
            {
              "id": "IBgAZHPHJBCPDUdqsD5LFncCqUU",
              "type": "rechts außen Anbetender, nach links schauend",
              "glyphs": {}
            },
            {
              "id": "IBgAZNjT8hFm20xSskBNnWmVkFw",
              "type": "in anblickend, von rechts nach links, Osiris, Anubis, Horus, Isis und Nephthys",
              "glyphs": {}
            },
            {
              "id": "IBgAZKzDYi4MbktwtxM7GbZexdI",
              "type": "alle mit Was-Zepter",
              "glyphs": {}
            }
          ],
          "wordCount": 0,

Auch Inhalte von typen lc, para usw. prüfen.
Siehe auch:

https://github.com/thesaurus-linguae-aegyptiae/tla-datentransformation/issues/54
https://github.com/thesaurus-linguae-aegyptiae/tla-datentransformation/issues/79

Erledigt. Hoffentlich keine Seiteneffekte?!

repo: thesaurus-linguae-aegyptiae/tla-web


text:
Query metafields in product query

Hey guys,
it would be awesome, if you add the possibility to also query for metafields in the product query.
Thank you very much for your answer in advance.
Best regards
Chris

@chrispreisler Sorry for the delay in this - but have added this.
To make metafields available in the Storefront API, you will need to follow this guide: https://shopify.dev/tutorials/retrieve-metafields-with-storefront-api

No problem, thank you very much. That sounds awesome. Where would I have to make that "Whitelistening" Mutation? Int the Gridsome Server? Or do you I have to use an extra tool to do that? Or can I do that from the Shopify Backend?
It's crazy, that it is so complicated to get the metafields via the api ...
Thanks for your help i advance again.
Best regards
Chris

@thetre97 Would it be possible to point me in the right direction? I tried for myself, but unfortunatley didn't get my head around it. Thank you so much.


text:
Automatic Scopes Clobber Existing Methods

If you have an enum that is the name of an existing method, the method is clobbered. Example an enum of :all is quite destructive ;)

@jscheel Whoops! Hah! I hadn't even considered that :smile: Thanks for spotting this one!

authors: jscheel thetron

repo: thetron/mongoid-enum


text:
Compatibility for Mongoid 6

This is a feature request.
I am waiting for the compatibility support for Mongoid 6

+1

+1

I added support mongoid 6
https://github.com/monster-media/mongoid-enum

@thetron I am eagerly waiting for the merging of the updates.
Thanks @monster-media.

so ? when mongoid 6 will be supported ?

Thanks @monster-media

Is it working? I'm still getting that a version 5.0 is required

@dev-blinov your repo is down

I forked and changed .gemspec
https://github.com/clustertv/mongoid-enum

@kinnrot what's the status for your fork? Any caveat or bugs with Mongoid 6?

@Fibrasek I got an app on prod that uses Enum in 2 models, no problems so far.
I didn't do any intensive testing though.

@kinnrot cool! Thanks! I'll give it a try.

If you are using rails 5 and mongoid 6.1 and want to use mongoid-enum you definitely going to have a tough day.
I finally found a solution to cop this, you need to mention this
gem “mongoid-enum”, git: ‘git@github.com:boie0025/mongoid-enum’, branch: ‘nb/mongoid-6’

insight your Gemfile.

Hey @thetron,
Thanks for the hardwork mantaining this gem. Some folks are still trying to use it with the new Mongoid and rails versions. Do you have a plan to update it or we may consired this gem as abandoned?

authors: Fibrasek JiProchazka Suneel-NXVT WagnerMatos corehook gnumarcelo kinnrot krazedkrish monster-media touseefbutt321


text:
Duplicate key store initialization

We have duplicate initialization of key stores in cmd/notary/keys.go and client/{repo,repo_pkcs11}.go. I think we should be able to unify them but I'm not certain. This issue is a reminder somebody should take a look.

@endophage we can remove the cmd/notary/keys.go getKeyStore method when moving the hardwareBackup logic into client/repo_pkcs11.go
I allready implemented this in my personal repo. You might want to have a look on this commit to view my changes
If you're good with that, I will create a PR

authors: endophage florianeichin

repo: theupdateframework/notary


text:
Creative Thinking requires other regex

In the roster, the creative thinking round header is of a different format and thus requires a different regex. Just putting this here so I remember what I did.

@thewindsofwinter can I close this?

Go ahead, I just put it here to remind me in case I do something dumb. I'm closing.

authors: phultquist thewindsofwinter

repo: thewindsofwinter/JHMC-scripts


text:
Design - table editing

Page wizard: Not keen on the table editing bit (e.g. for glossary or on the table page type). I’d prefer to be able to type in the bit you see in the editor rather than it open a dialog every time I want to edit. Particularly on the table page where it might not be logical to enter info for a row without easily seeing which column each bit of info will be in.
By Fay

Should be possible as shown in this demo http://www.trirand.com/blog/jqgrid/jqgrid.html
Select "Row Editing (new)" - "Inline Navigator (new)"

Yes, but, I couldn't get it to work properly with local storage.
But we could have a look later.

Yeah, thought as much. just leaving notes and links for future ref.

This probably isn't useful now for glossary or table page since we have wysiwyg editor but perhaps for the variables table. This example seems to work:
http://jsfiddle.net/aditib/CzVVK/

authors: JohnSmith-LT ingedonke torinfo

repo: thexerteproject/xerteonlinetoolkits


text:
My QR Code cannot be read if i embedded a logo

Describe the bug
Scanner didnt read my qr code that i generate with embedded image, if i remove the embedded image there will be no issues. But i have to make this logo inside the QR code
Expected behavior
I want to make a logo inside the QR code
Screenshots

Smartphone (please complete the following information):

Device: Samsung A21
OS: 10

Additional context
this was my code in my Flutter Application
QrImage(
              embeddedImage: AssetImage('assets/images/logo_mlm.png'),
              gapless: false,
              data: "https://md.palunaga.my.id/r/MEMBERID",
              version: QrVersions.auto,
              embeddedImageStyle: QrEmbeddedImageStyle(
                size: Size(40, 40),
              ),
              size: UIHelper.setSp(400),
            )

Any update?

I also need this

It happens because the image just covers a part of QRCode, what it needs to do is to just draw QRCode around the image, I don't know if this is possible to do in the current implementation of the package

@eli1stark not really, is just a matter of "density" probably. A more dense QR code can be detected even with an image that covers the central part of it.

I didn't know that a QR code can function without some part of it. I am genuinely curious right how QR codes work under the hood. By the way, the high density really solves the problem, at least for me

The embedded logo should be less than 30% of the size of the QR code. and also add errorCorrectionLevel: QrErrorCorrectLevel.H,
My code:
QrImage(                                       version: QrVersions.auto,                                       errorCorrectionLevel: QrErrorCorrectLevel.H,                                       embeddedImageStyle: QrEmbeddedImageStyle(                                         size: Size(40, 40),                                       ),                                       data: ''https://google.com',                                       size: 160.0,                                       embeddedImage: AssetImage(                                           "assets/images/marker.png"),                                     ),

The advice given seems good and this isn't something that can be "fixed" in the core code. It's about using sensible values.

It would be nice to be able to add a raised border to embeddedImage, or to customize other styles

我也想在二维码里面做一个logo，并且期望logo是圆形的白色边框凸起的
I also want to make a logo inside the QR code, and I expect the logo to be round with white frame raised

this worked for me

works

authors: HugoSart ahd-webtest alijonxr eli1stark kaundi kemalturk03 leeyisoft linxkaa nerder


text:
1.0.1 Not working on IOS

1.0 did work on IOS.
Can you help?

Hi, a setting was wrong in last release. You can delete and reinstall the plugin to fix it. Please let me know if if works!

Hi,
I'm afraid it is not working.
See pic attached of a few minutes ago.
[image0.png]
On 25 Oct 2022, at 9:54 PM, thingnotok @.***> wrote:

Hi, a setting was wrong in last release. You can delete and reinstall the plugin to fix it. Please let me know if if works!
—
Reply to this email directly, view it on GitHubhttps://bra01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fthingnotok%2Fobsidian-toggle-list%2Fissues%2F5%23issuecomment-1291294052&data=05|01|g%40digesu.com.br|8b4b8ed7831c4ebfa79e08dab6ec9dee|718f3212162b4bf891c55c06573e715e|0|0|638023424687195944|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|3000|||&sdata=yvc%2Fa6Rw%2FP%2BOUEzF2kS0odjYao9zmoNVGpqRa5Bb5jo%3D&reserved=0, or unsubscribehttps://bra01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAKTSVE7KTYVCS5T2WISXBOLWFB6LVANCNFSM6AAAAAAROOLVM4&data=05|01|g%40digesu.com.br|8b4b8ed7831c4ebfa79e08dab6ec9dee|718f3212162b4bf891c55c06573e715e|0|0|638023424687195944|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|3000|||&sdata=vOoys%2Fd75cJMvWF6mx20d8i5EP1nZuFL3%2B2tV6Hnwv4%3D&reserved=0.
You are receiving this because you authored the thread.Message ID: @.***>

The pic ...
Similar behavior on iPad.

Hi, sorry I misunderstood how obsidian pull plugins so the changes were not working.
I just update the setting and can download the plugin from community plugin with my iphone (ios 16.0). Keep me updated if it it works. You may need to restart the app or something to let the app fetch the new files.
btw, just curious, I'm not using obsidian on mobile devices, but as this plugin is only useful with keyboard hotkeys, how do you guys use it on a phone?

Thanks! It works.
To make it work on IOS, go to Options > Mobile, and add ToggleList two options to the mobile bar. 😎

authors: gdigesu thingnotok

repo: thingnotok/obsidian-toggle-list


text:
Solr commit performance

I have noticed the following line is causing Solr to take ages to return from mutations:
req.setAction(UpdateRequest.ACTION.COMMIT, true, true);
The offending parameters is waitSearcher that causes the action to wait until the new results are visible in the Solr index before returning. This can take several seconds.
@mbroecheler Is it safe to remove this?

check 0.5 and 0.9 branches

authors: BrynCooke mbroecheler

repo: thinkaurelius/titan


text:
HAP crashed reproduzierbar

Es ist relativ leicht HAP zum crashen zu bringen. Es braucht lediglich die eve App. Hier ruft man Räume / Typen / Strom auf und schon verabschiedet sich HAP. Danach muss man über das CCU-Addon einen Neustart erzwingen. Das Crash-Log hierzu sieht immer gleich aus:
1609661340899.crash.txt
Der entsprechende Zeitabschnitt im CCU-Log:
CCU.log.txt

Das liegt am HomeMaticProgrammableSwitchAccessory der ist eigentlich noch weit vom Status fertig, und sollte eigentlich gar nicht im npm sein.
Das ist ein Schalter mit programmierbaren Schaltzeiten. Allerdings habe ich das Eve Protokoll dazu noch nicht komplett auseinandergenommen.
Ich werfe den wieder aus dem npm raus.

Das liegt am HomeMaticProgrammableSwitchAccessory der ist eigentlich noch weit vom Status fertig, und sollte eigentlich gar nicht im npm sein.
Das ist ein Schalter mit programmierbaren Schaltzeiten. Allerdings habe ich das Eve Protokoll dazu noch nicht komplett auseinandergenommen.
Ich werfe den wieder aus dem npm raus.

Ich weiß nicht welchen Schalter Du damit meinst, wenn damit der HmIP-BRC2 gemeint ist, dann bitte nicht! Das ist meine Frinds of Hue Nachbau, welchen ich unbedingt brauche um nicht im Dunkeln zu stehen.
Ich brauche ja das Menü in eve nicht aufrufen.

Ich weiß nicht welchen Schalter Du damit meinst, wenn damit der HmIP-BRC2 gemeint ist, dann bitte nicht! Das ist meine Frinds of Hue Nachbau, welchen ich unbedingt brauche um nicht im Dunkeln zu stehen.
Ich brauche ja das Menü in eve nicht aufrufen.

du hast einem Kanal dieses Typs 'SWITCH', 'STATUS_INDICATOR', 'SWITCH_VIRTUAL_RECEIVER' den Service HomeMaticProgrammableSwitchAccessory zugewiesen. Den hätte es eigentlich noch gar nicht geben dürfen. Irgendwie packt npm das File aber mit ein. Der Unterschied zum HomeMaticSwitchAccessory ist, das dieser Typ (irgendwann) mal die Timerfunktion des originalen EVE Switches kann)

du hast einem Kanal dieses Typs 'SWITCH', 'STATUS_INDICATOR', 'SWITCH_VIRTUAL_RECEIVER' den Service HomeMaticProgrammableSwitchAccessory zugewiesen. Den hätte es eigentlich noch gar nicht geben dürfen. Irgendwie packt npm das File aber mit ein. Der Unterschied zum HomeMaticSwitchAccessory ist, das dieser Typ (irgendwann) mal die Timerfunktion des originalen EVE Switches kann)

Ich guck nachher mal, wo ich das brauche und ob ich es anders realisieren kann.

Ich guck nachher mal, wo ich das brauche und ob ich es anders realisieren kann.

Einfach auf den HomeMaticSwitchAccessory (ohne Programmable im Text) wechseln. Der kann das gleiche ...

Einfach auf den HomeMaticSwitchAccessory (ohne Programmable im Text) wechseln. Der kann das gleiche ...

Es waren 16 Geräte (HmIP-BSM, HmIP-FSM und HmIP-FSI16), welche ich jetzt entsprechend geändert habe. Wenn mich nicht alles täuscht, wurde der "fehlerhafte" Service jedoch beim Einrichten automatisch vergeben. Den Crash kann ich jetzt jedenfalls nicht mehr reproduzieren. 👍🏻

Es waren 16 Geräte (HmIP-BSM, HmIP-FSM und HmIP-FSI16), welche ich jetzt entsprechend geändert habe. Wenn mich nicht alles täuscht, wurde der "fehlerhafte" Service jedoch beim Einrichten automatisch vergeben. Den Crash kann ich jetzt jedenfalls nicht mehr reproduzieren. 👍🏻

Oh ok dann wird es Zeit, das ich den Service mit einem Update rauswerfe.

Oh ok dann wird es Zeit, das ich den Service mit einem Update rauswerfe.

authors: detLAN thkl

repo: thkl/hap-homematic


text:
added a few rvalue constructors, rankselect, subgraphstack, trailstru…

…cture and dyckmatching

Coverage decreased (-2.1%) to 83.355% when pulling d0ae1b8a8b0420a107cfc02ab70f5eaefb426c7f on 1yay1:refactoring into a34ff7b57bd48ab1705930fd7f9b91547952276a on thm-mni-ii:master.

repo: thm-mni-ii/sea


text:
hexo algolia error

Hi, I think you are referring to https://www.npmjs.com/package/hexo-algoliasearch, which is a different plugin.
Can you create it, again, on https://github.com/LouisBarranqueiro/hexo-algoliasearch/issues/new?
Thanks

@Baikeryoyo
The authentication information should be added to the site's configuration file（_config.yml） instead of the theme's configuration file（_config.yml）. You can try it.
algolia:
  applicationID: 'applicationID'
  apiKey: 'apiKey' # only search apikey
  indexName: '...'

authors: Baikeryoyo FreemanKevin oncletom


text:
Revert "Minor update to README for clear info on paths."

Reverts thomas-j-moffett/selenium-ide#2

After looking at the "Code" tab in npm where the package is deployed, I figured the relative paths I had originally made more sense. I changed it because I was thinking about if someone were to read that info and go looking for the paths in the root of the repo.

repo: thomas-j-moffett/selenium-ide


text:
Generated timelapse is missing night images

Description
The timelapse generated at the end of the night contains roughly 1/3rd of the total captured images. Over the night, 2450 images are captured and the timelapse is configured to run at 25fps and so I would expect a total video length of 101 seconds yet the generated video is only 28seconds. Spot checking the images for the night and I can confirm that the video does contain only about 1/3rd; roughl7 the first 700 images.
The keogram does contain data from every image.
I have tried running ./timelase.sh 20220625 manually and it "succeeds" without error yet the produced mp4 video remains the same length every time. The content of timelapseTMP.txt in the morning and after manually running the timelapse is the following every time:
Processed 2450 images

No errors are printed to the console (or from what I can tell the log either) while manually running the timelapse.
Desktop:

OS: Bullseye
Allsky version: v2022.03.01

Additional context
Using RPiHQ with the following configuration settings to reduce the processing load and file size:
# Set to "false" to disable daytime capture.
DAYTIME_CAPTURE="true"

# Night images are always taken and saved to disk.
# Setting DAYTIME_SAVE to "true" also saves daytime images to disk.
# Will only save daytime images if DAYTIME_CAPTURE="true".
DAYTIME_SAVE="true"

...

### Images
IMG_WIDTH=2028
IMG_HEIGHT=1520

...

### Timelapse
TIMELAPSEWIDTH=1920
TIMELAPSEHEIGHT=1080

# Bitrate of the timelapse video.  Higher numbers will produce higher quality but larger files.
TIMELAPSE_BITRATE="2000k"

[allsky.log](https://github.com/thomasjacquin/allsky/files/8987366/allsky.log)

**Log file**

Attached. No errors other than startup messages (I restarted a number of time during that day getting things tested).

I noticed IMG_RESIZE="false" and so I've set that to true just now after realizing the images were full resolution on disk.

@zapatodefuego Does it do this every night, or just June 25?  Did you change anything that impacts the image size on June 25?  The keogram and startrails programs don't like it when images are different resolutions; I'm not sure if the timelapse program is the same way.
If you did not make any changes, set FFLOG="info" and KEEP_SEQUENCE="true" in config.sh, then run timeapse.sh again.  Look at the timelapseTMP.txt file for any additional information and look in allsky/tmp/sequence-20220625 to see if there are 2450 files.
Another thing to try: determine the last frame added to the video (or close to the last), then mkdir ~/allsky/images/test and move the last image plus a thousand or more from 20220625 to test then timelapse.sh test and see what happens.  That will tell us if it was stopping due to a corrupt image.
Since you can reproduce this we'll be able to fix it, it may just take some effort.

Thanks for the response. There are indeed 2450 files in the sequence directory but looking the files closer with ls -alh reveals that there's a file of size 0 exactly where the timelapse stops. Removing this file and running timelapse.sh again results in success.
I'm closing this though perhaps there's a bug/feature request such that timelapseTMP.txt doesn't print the number of files the script intended to process but rather captures how many it did? Not sure if that information is possible to extract from ffmpeg.
Thank you for your help!.

@zapatodefuego I don't think that info is available, or it it is, that it's easily parseable.  I would have expected it to issue a warning message but instead it just stopped.
Did you have REMOVE_BAD_IMAGES="true"  I assume not since it would have caught the corrupt file.  If you don't like it removing too dark or too light files, adjust the thresholds instead of turning it off.
It would be useful to search for the name of the empty file in the log to (hopefully) see what happened.

I do have REMOVE_BAD_IMAGES="true" actually. I was messing with settings yesterday have have managed to reproduce this; that is:

Be an idiot and toggle settings on and off with enough frequency such that you interrupt an image (either in acquisition or during saving I would think), or add an invalid image somewhere into the directory
Observe the generated timelapse stopping at that image
Remove the invalid image and re-run the timelapse

While I do have the invalid image with filesize 0 I can't attach it as is - github reports "The file is empty. Try again with a file that's not empty".  I was able to add it to a zip and upload that however:
image-20220626145604.zip
You'll note that it really is just an empty file. hd and cat on the file prints nothing.

grep 20220626145604 allsky* doesn't return anything, so my log level must not have been high enough.

@zapatodefuego can you attach your log file?  I'd like to see what happened before and after that.

authors: EricClaeys zapatodefuego

repo: thomasjacquin/allsky


text:
Support external mqtt brokers

External brokers should be supported as well. As there is no way to automatically retrieve the configuration like for on-device brokers, the user has to provide all the configuration like username, password etc. in this case.

Implemented in v2.5

repo: thomasmauerer/hassio-addons


text:
🛑 MyPDNS Gitlab is down

In 774f591, MyPDNS Gitlab (https://mypdns.org/-/liveness?token=8QTcgMMaEQgzGtdxwPui) was down:

HTTP code: 0
Response time: 0 ms

Resolved: MyPDNS Gitlab is back up in 3b55963.

repo: thomasmerz/upptime


text:
🛑 Syncthing-KA-TM is down

In 1a90391, Syncthing-KA-TM ($URL_SYNCTHING_MERZ_NIMBUS_TM) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Syncthing-KA-TM is back up in 1104f35 after 4 minutes.


text:
🛑 Mastodon Fulda.social is down

In df90bc9, Mastodon Fulda.social (https://fulda.social) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Mastodon Fulda.social is back up in c1ea1a3 after 10 hours, 12 minutes.


text:
How to generate or where to get multilingual sentence embeddings data?

I'm novice, sorry for my stupid question.

This is probably the simplest way: https://pypi.org/project/laserembeddings/

@thompsonb Thank you!

authors: fishfree thompsonb

repo: thompsonb/vecalign


text:
ADD: THORChain Address

Get the THORCHAIN address from keystore and show to user
thorxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Already done.

authors: thorchain-admin veado

repo: thorchain/asgardex-electron


text:
Support transparent GIF?

-The original GIF doesn't have an alpha channel.
-It needs to be confirmed whether the GIF allows for 32-bit (RGBA) channel data.
-The current GIFSaver has been updated to fill the background with opaque white color.
-Are there any portability issues?

How to decode/play the transparent gif?
Custom gif won't be compatible with ohters unless we have a concrete specification,
WebP might be better go.

repo: thorvg/thorvg


text:
Feature Reqest - base64 encoded embedded images

Hi All,
One of the things I really like about Webdriver is the ability to embed a base64 image into a Cucumber html report, rather than rely on an image to be present in a particular location ad infinata...
Was wondering if it would be possible to get a similar feature in capybara-webdriver? :)
Cheers
Rob

Hey Rob - sounds like a decent feature. Please submit a pull request if you're interested.

After having a look through the code, it looks as if the PNG image is generated by QT itself.
You can convert the PNG to Base64 post screenshotting using the following code:
img_name = "#{Time.now.strftime('%Y-%m-%d-%H-%M-%S')}.png"
img = page.driver.render img_name
encoded_img = Base64.encode64(File.read(img_name))
File.delete img_name
#embedding the base64 image in a cucumber html report
embed("data:image/png;base64,#{encoded_img}", 'image/png')

authors: Twistedpear jferris

repo: thoughtbot/capybara-webkit


text:
fix valid_encoding? bug

I am having a:
'undefined method `valid_encoding?' for nil:NilClass'

bug in production. I think that the cause is that the presence method returns nil if params.fetch(:html, '') is an empty string.

I'm not quite sure when this bug would happen, or under what circumstances - can you add a test that shows when this might happen?

@pawurb Is there a test that can make sure this doesn't regress in the future?

I am closing this. Theoretically, removing the presence call there shouldn't make a difference. However, I believe the only way this error could occur would be if fetch(:email, '') returns nil (not an empty string). Without a specific test case or more information, I don't want to make this change.

authors: gabebw pawurb wingrunr21

repo: thoughtbot/griddler


text:
Store FileReview records per reviewed file

Violations now belong to FileReview record,
and builds have many file reviews.
File reviews have a completed status which can be used for jobs.

@gylaz I weighed in and updated the PR with the newly merged HAML support

LGTM :+1:  I like how this cleans up the style guide classes.

Looks good to me. :+1:

Updated the up migration to use SQL in d3d3168de95ab0d1f833ed151e05c52584e77ca2. Definitely needs :eyes: on it to make sure the data is correct.
I pulled the production database locally and ran this migration. After an hour and fifteen minutes I killed the killed the process. With SQL version it executes in about three minutes.

authors: gylaz salbertson teoljungberg thorncp

repo: thoughtbot/hound


text:
final step requires sudo for install of bundler, rails, heroku, tap and pg

I bought a new Mac Air on 10/2/2011
These instructions are very helpful.
An issue that I found is that the last step, running the script to install bundler, rails, heroku, tap and pg fails with permission issues.
So I am running the steps to install the components manually with sudo
Installing Bundler for managing Ruby libraries ...
ERROR:  While executing gem ... (Gem::FilePermissionError)
You don't have write permissions into the /Library/Ruby/Gems/1.8 directory.
Installing Rails to write and run web applications ...
ERROR:  While executing gem ... (Gem::FilePermissionError)
You don't have write permissions into the /Library/Ruby/Gems/1.8 directory.
Installing the Heroku gem to interact with the http://heroku.com API ...
ERROR:  While executing gem ... (Gem::FilePermissionError)
You don't have write permissions into the /Library/Ruby/Gems/1.8 directory.
Installing the Taps gem to push and pull SQL databases between development, staging, and production environments ...
ERROR:  While executing gem ... (Gem::FilePermissionError)
You don't have write permissions into the /Library/Ruby/Gems/1.8 directory.
Installing the pg gem to talk to Postgres databases ...
ERROR:  While executing gem ... (Gem::FilePermissionError)
You don't have write permissions into the /Library/Ruby/Gems/1.8 directory.

I would love to see if anyone could spend 2 minutes to possibly help fix this. I am getting the same error.

It shouldn't be necessary to sudo. These commands should be run in the context of the rvm'ed Ruby 1.9.2. I'm not sure what the cause of the problem is here.

the cause, i think, is this error
Install of ruby-1.9.2-p290 - #complete

RVM is not a function, selecting rubies with 'rvm use ...' will not work.

I am having this issue as well

@kurtzilla1, do you have Zsh as your shell? I do. Maybe that's the problem, script expects bash shell?

I have tried running the laptop script in both bash and zsh...whenever it tries to source the .zshrc it fails.  I think this is the root cause, because when it tries to install rails, it thinks it is in hash mode, instead of function mode.

I tried running it in zsh as well as bash and ran into the same thing.  Any change that it has something in the thoughtbot dotfiles that it relies on to make this work properly?

This is actually an rvm issue with the new rvm-installer

authors: croaky drapergeek durrantm ivanovv kelsmj kurtzilla1 ntulip sethvargo

repo: thoughtbot/laptop


text:
Create minimal featureset for vesting scheme

Create minimal feature set for vesting scheme
Objective: to attract more people to the vesting scheme

[ ] reporting changes
[ ] show locked, vested, ...
[ ] today in Stellar metadata:

[x]  chosen vesting policy
[ ] if special accounts like: farming pool

Related issues:

[x] Add the vesting schemes in the spec
[ ] Adapt https://tokenstats.threefoldtoken.com to include vested TFT's

This repo is not the right place for this issue

repo: threefoldfoundation/tft


text:
Import export Error

How to reproduce

Start 3bot server

create some nodes

do an export

j.data.bcdb.export()

close threebot server

do an import
example:

 j.data.bcdb.import_(path="/sandbox/var/bcdb_exports/10_Mar_2020_14_16_33")

after @zaibon  suggested adding
https://github.com/threefoldtech/jumpscaleX_core/blob/9bada8d884a4e07f2118e91f89d4a9ced0c7f713/JumpscaleCore/data/bcdb/BCDB.py#L566
you will get the following error

This breaks the storclient interface, the fix done in this commit needs to be refactored to keep all the storclients consistent with the interface:
https://github.com/threefoldtech/jumpscaleX_core/commit/e8ca3d939aa98472300afdcd482e48d8fe38f442

Where is the storclient interface defined ?

Fixed:
commits:
cad68ae7c52ee4f54965453238bebef36c80f76c
https://github.com/threefoldtech/jumpscaleX_threebot/commit/60793aceabe356725408f38048fe8ead7abfb9d6

storeclient related to zdb.
validate that the schema is saved with it's the latest state before exporting.
bug in the name of function threebot_zdb_sonic_start to be  start_servers_threebot_zdb_sonic.

Verified on unstable branch.
** Scenarios 1 **  export and import database
** Scenarios 2 **  change in bcdb and export then import
Verification steps:
Scenarios 1

Start 3bot server j.servers.threebot.start(background=True)

Export bcdb j.data.bcdb.export()

close threebot server

Import bcdb j.data.bcdb.import_(path="/sandbox/var/bcdb_exports/15_Mar_2020_09_28_07/")

Scenarios 2

Start 3bot server j.servers.threebot.start(background=True)

Add package
gedis = j.clients.gedis.get("pm", port=8901, package_name="zerobot.packagemanager")
gedis.actors.package_manager.package_add(path="/sandbox/code/github/threefoldtech/jumpscaleX_threebot/ThreeBotPackages/tfgrid/registrygeneric")

do an export
j.data.bcdb.export()

close threebot server

Import bcdb j.data.bcdb.import_(path="/sandbox/var/bcdb_exports/15_Mar_2020_09_38_07/")

check the existence of data
j.data.bcdb.instances.registry.get_all()

authors: Dina-Abd-Elrahman RafyAmgadBenjamin rkhamis waleedhammam zaibon


text:
logic for SSD in ZOS provisioning

see rules to be implemented in #6

overprovisioning of 2x on SSD
check size SSD capacity in line to CPU

github issue: https://github.com/threefoldtech/zos/issues/1496

Moved from: https://circles.threefold.me/project/test-tfgrid3/issue/7

already done

authors: georgeconstantinou rkhamis


text:
Update workflows to use the latest yggdrasil version 0.5.4

this one of them, please check the other workflows if they need to be fixed too
https://github.com/threefoldtech/tfgrid-sdk-ts/blob/e2580a57b73eccf122b824082e99a124b4611737/.github/workflows/grid_client_tests.yml#L44

I checked the other workflows, and only the grid client test is the one using the tggdrasil.
I updated the workflow with the latest version from their site: https://github.com/yggdrasil-network/yggdrasil-go/releases/tag/v0.5.4.
PR: https://github.com/threefoldtech/tfgrid-sdk-ts/pull/1710
Worfklow tested here: https://github.com/threefoldtech/tfgrid-sdk-ts/actions/runs/7395403959/job/20118505842

Verified,
And the last run of the workflow was successful using the latest yggdrasil version 0.5.4: https://github.com/threefoldtech/tfgrid-sdk-ts/actions/runs/7484206776

repo: threefoldtech/tfgrid-sdk-ts


text:
prepare flist for deploying threefold hub/validators

need to exist as docker image
convert to flist
document the environment variables

https://github.com/threefoldtech/threefold_hub/pull/40

@ashraffouda what is the flist url?

thanks. will close as it should be also autobuilt in the workflow #70

authors: ashraffouda xmonader


text:
How to use Python to capture and record sound?

RT

sounddevice package
pip install sounddevice
Select device
# show available input and output devices
python3 -m sounddevice

import sounddevice as sd

# specify the input device and the ouput device
# REF: https://python-sounddevice.readthedocs.io/en/0.3.15/api/module-defaults.html
sd.default.device = input_idx: int, output_idx: int

Record sound
import sounddevice as sd

# specify the samplereate
# REF: https://python-sounddevice.readthedocs.io/en/0.3.15/api/module-defaults.html
sd.default.samplerate = 24000


text:
[Maintenance] pip takes too long in finding boto3 versions (100+ tries & still failed to install)

Describe the feature
Provide a dependency resolver with stricter constraints for boto3 and botocore.
Expected behavior
Direct install the expected version.
Additional context
A sample of  installing process:
.....

Collecting boto3
  Downloading boto3-1.20.38-py3-none-any.whl (131 kB)
     |████████████████████████████████| 131 kB 47 kB/s
Collecting botocore<1.24.0,>=1.23.38
  Downloading botocore-1.23.38-py3-none-any.whl (8.5 MB)
     |████████████████████████████████| 8.5 MB 128 kB/s
Collecting boto3
  Downloading boto3-1.20.37-py3-none-any.whl (131 kB)
     |████████████████████████████████| 131 kB 92 kB/s
Collecting botocore<1.24.0,>=1.23.37
  Downloading botocore-1.23.37-py3-none-any.whl (8.5 MB)
     |████████████████████████████████| 8.5 MB 285 kB/s
Collecting boto3
  Downloading boto3-1.20.36-py3-none-any.whl (131 kB)
     |████████████████████████████████| 131 kB 172 kB/s
Collecting botocore<1.24.0,>=1.23.36
  Downloading botocore-1.23.36-py3-none-any.whl (8.5 MB)
     |████████████████████████████████| 8.5 MB 156 kB/s
Collecting boto3
  Downloading boto3-1.20.35-py3-none-any.whl (131 kB)
     |████████████████████████████████| 131 kB 99 kB/s
Collecting botocore<1.24.0,>=1.23.35
  Downloading botocore-1.23.35-py3-none-any.whl (8.5 MB)
     |████████████████████████████████| 8.5 MB 409 kB/s
Collecting boto3
  Downloading boto3-1.20.34-py3-none-any.whl (131 kB)
     |████████████████████████████████| 131 kB 312 kB/s
Collecting botocore<1.24.0,>=1.23.34
  Downloading botocore-1.23.34-py3-none-any.whl (8.5 MB)
     |████████████████████████████████| 8.5 MB 121 kB/s
Collecting boto3
  Downloading boto3-1.20.33-py3-none-any.whl (131 kB)
     |████████████████████████████████| 131 kB 109 kB/s
Collecting botocore<1.24.0,>=1.23.33
  Downloading botocore-1.23.33-py3-none-any.whl (8.5 MB)
     |████████████████████████████████| 8.5 MB 312 kB/s
Collecting boto3
  Downloading boto3-1.20.32-py3-none-any.whl (131 kB)
     |████████████████████████████████| 131 kB 328 kB/s
Collecting botocore<1.24.0,>=1.23.32
  Downloading botocore-1.23.32-py3-none-any.whl (8.5 MB)
     |████████████████████████████████| 8.5 MB 939 kB/s
Collecting boto3
  Downloading boto3-1.20.31-py3-none-any.whl (131 kB)
     |████████████████████████████████| 131 kB 656 kB/s
Collecting botocore<1.24.0,>=1.23.31
  Downloading botocore-1.23.31-py3-none-any.whl (8.5 MB)
     |████████████████████████████████| 8.5 MB 437 kB/s
Collecting boto3
  Downloading boto3-1.20.30-py3-none-any.whl (131 kB)
     |████████████████████████████████| 131 kB 595 kB/s
Collecting botocore<1.24.0,>=1.23.30
  Downloading botocore-1.23.30-py3-none-any.whl (8.5 MB)
     |████████████████████████████████| 8.5 MB 2.2 MB/s
Collecting boto3
  Downloading boto3-1.20.29-py3-none-any.whl (131 kB)
     |████████████████████████████████| 131 kB 2.2 MB/s
Collecting botocore<1.24.0,>=1.23.29
  Downloading botocore-1.23.29-py3-none-any.whl (8.5 MB)
     |████████████████████████████████| 8.5 MB 3.2 MB/s
Collecting boto3
  Downloading boto3-1.20.28-py3-none-any.whl (131 kB)
     |████████████████████████████████| 131 kB 6.4 MB/s
Collecting botocore<1.24.0,>=1.23.28
  Downloading botocore-1.23.28-py3-none-any.whl (8.5 MB)
     |████████████████████████████████| 8.5 MB 3.3 MB/s

.....

Could you try to create a new conda environment and install ConvLab-2 again? We don't have a constraint on the version of boto3 & botocore

Could you try to create a new conda environment and install ConvLab-2 again? We don't have a constraint on the version of boto3 & botocore. In the Colab, I can install boto3-1.21.16 botocore-1.24.16

The version-checking still exists (in a new conda  & on linux), even if I pre-install the  boto3-1.21.16 botocore-1.24.16 :(

Tried with python 3.7.11 and got new error:
Failed to build jsonnet quadprog
ERROR: Could not build wheels for quadprog which use PEP 517 and cannot be installed directly

I succeed to fix all error, by
(1) Use a higher version of python.
(2) Fix the installation of jsonnet quadprog by directly installing them with conda.

maybe update the pip will solve the problem, too

maybe update the pip will solve the problem, too

emmmm.. The problem seems coming from the deep dependency crash  caused by python version, since I try many different version (3.5.0,  3.5.8,  3.6.0,  3.6.1,  3.7.0 etc) and confront to various problems. The problem is solved with 3.7.11 which is close to the version of Colab

@AtmaHou We release [ConvLab-3], using python>=3.8, have a try!

authors: AtmaHou zqwerty


text:
Fix Gatsby intermittent crashes

Seems to happen when doing things like changing branches or merging/rebasing.
error There was an error compiling the html.js component for the development server.

See our docs page on debugging HTML builds for help https://gatsby.dev/debug-html

> 1 | export default function _extends() {
    |                ^
  2 |   _extends = Object.assign || function (target) {
  3 |     for (var i = 1; i < arguments.length; i++) {
  4 |       var source = arguments[i];

  WebpackError: ../packages/thumbprint-react/components/StarRating/index.module.scss

  - extends.js:1 options.error
    [lib]/[@babel]/runtime/helpers/esm/extends.js:1:16

Hard to repro consistently though.

Just got this when running yarn install
error There was an error compiling the html.js component for the development server.

See our docs page on debugging HTML builds for help https://gatsby.dev/debug-html

  Error: Cannot find module '/Users/glavelle/code/thumbprint/www/public/render-page.js
  '

  - module.js:11 require
    internal/module.js:11:18

  - render-html.js:32 Promise
    [thumbprint]/[gatsby]/dist/utils/worker/render-html.js:32:35

  - render-html.js:31 Promise.map.path
    [thumbprint]/[gatsby]/dist/utils/worker/render-html.js:31:37

  - From previous event:

  - render-html.js:31 Object.renderHTML
    [thumbprint]/[gatsby]/dist/utils/worker/render-html.js:31:18

  - child.js:90 execMethod
    [thumbprint]/[gatsby]/[jest-worker]/build/child.js:90:29

  - child.js:40 process.on
    [thumbprint]/[gatsby]/[jest-worker]/build/child.js:40:7

  - child_process.js:772 emit
    internal/child_process.js:772:12

  - next_tick.js:141 _combinedTickCallback
    internal/process/next_tick.js:141:11

  - next_tick.js:180 process._tickCallback
    internal/process/next_tick.js:180:9

Useful link: https://www.gatsbyjs.org/docs/debugging-html-builds/

Going to close this since I've been doing a good amount of documentation work lately and haven't run into it. Maybe it was fixed in Gatsby? @tomgenoni, have you seen these?
Let's re-open if we get the same errors.

authors: danoc lavelle

repo: thumbtack/thumbprint


text:
Examples of settings for large models.

I have a large dataset and the default settings make predictions quite well.
But I have a feeling that it can be even better. In addition, the GPU RAM is not fully utilized and there is a reserve of 20 GB for increasing the model.
I tried changing different parameters so that the model occupies the entire GPU RAM. But the predictions usually became worse than with the default settings or just a straight horizontal line on the resulting graph.
Perhaps the settings have dependencies that I do not see and do not follow. Or they should not be touched at all, because it will not get better.
Advise how you would increase the settings in my situation?
Do you have examples of presets for large models that I could research?

Hi, thanks for coming up with this interesting question.
Generally speaking, it depends on the type of your time series data. If your data contains a large number of variates, then increasing --d_model can be helpful. Otherwise, over-parameterization may cause the overfitting problem. In addition, enlarging the input length --seq_len is also usually helpful.
Furthermore, I think training a model on large datasets can be quite empirical. You may need some tricks like data balancing or data normalization.

repo: thuml/Time-Series-Library


text:
Upgrade to AWS SDK V3

Notes
Upgrade AWS SDK to V3 since V2 will enter maintenance mode in 2023. Ref: https://docs.aws.amazon.com/AWSJavaScriptSDK/latest/
Testing
Tested by running a CPU profiler on Lambda with Node18.

Hi @andclt,
Thanks for the contribution.
I have a concern on this. AWS SDK v3 is available by default only for nodejs18.x runtime but not for the others (nodejs16.x, nodejs14x). So to be able to support older versions until they are deprecated, I think both of the AWS SDK v2 and AWS SDK v3 should be supported.

Hi @serkan-ozal,
Yes got it, makes sense.

authors: andclt serkan-ozal

repo: thundra-io/middy-profiler


text:
和google base模型的对比

请问有和google base模型的对比结果吗？

官方网站上有展示对比结果，地址详见readme

authors: grygg haoxizhong

repo: thunlp/OpenCLaP


text:
Timeout issue

After doing all the setup, While running with the command given in the readme I am getting this issue.

Traceback (most recent call last):
File "/usr/local/lib/python3.6/dist-packages/pexpect/expect.py", line 99, in expect_loop
incoming = spawn.read_nonblocking(spawn.maxread, timeout)
File "/usr/local/lib/python3.6/dist-packages/pexpect/pty_spawn.py", line 462, in read_nonblocking
raise TIMEOUT('Timeout exceeded.')
pexpect.exceptions.TIMEOUT: Timeout exceeded.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "main.py", line 816, in
main(args)
File "main.py", line 611, in main
PROCESS_TOK = tok_class(**tok_opts)
File "/OpenQA/src/tokenizers/corenlp_tokenizer.py", line 33, in init
self._launch()
File "/OpenQA/src/tokenizers/corenlp_tokenizer.py", line 61, in _launch
self.corenlp.expect_exact('NLP>', searchwindowsize=100)
File "/usr/local/lib/python3.6/dist-packages/pexpect/spawnbase.py", line 390, in expect_exact
return exp.expect_loop(timeout)
File "/usr/local/lib/python3.6/dist-packages/pexpect/expect.py", line 107, in expect_loop
return self.timeout(e)
File "/usr/local/lib/python3.6/dist-packages/pexpect/expect.py", line 70, in timeout
raise TIMEOUT(msg)
pexpect.exceptions.TIMEOUT: Timeout exceeded.
<pexpect.pty_spawn.spawn object at 0x7fc2939ace10>
command: /bin/bash
args: ['/bin/bash']
buffer (last 100 chars): b'0:/OpenQA# bash: java: command not found\r\n\x1b]0;root@392696d4bc50: /OpenQA\x07root@392696d4bc50:/OpenQA# '
before (last 100 chars): b'0:/OpenQA# bash: java: command not found\r\n\x1b]0;root@392696d4bc50: /OpenQA\x07root@392696d4bc50:/OpenQA# '
after: <class 'pexpect.exceptions.TIMEOUT'>
match: None
match_index: None
exitstatus: None
flag_eof: False
pid: 533
child_fd: 7
closed: False
timeout: 60
delimiter: <class 'pexpect.exceptions.EOF'>
logfile: None
logfile_read: None
logfile_send: None
maxread: 100000
ignorecase: False
searchwindowsize: None
delaybeforesend: 0
delayafterclose: 0.1
delayafterterminate: 0.1
searcher: searcher_string:
0: "b'NLP>'"

I am getting the same error. What was the solution?

The same question

authors: Arjunsankarlal impulsecorp ruizewang

repo: thunlp/OpenQA


text:
Nice Project

Hi, I was looking for a simple merklized database in Rust to experiment with and this came up. It looks nice and simple and fast.
I ran some benchmarks locally and read the examples, and I like the design in general. I am not sure if this is being maintained much now, but a few questions on proper usage:

It exposes batches of all inserts or all removes or all gets. What about a batch of mixed inserts and removed? Is that just limited due to keeping the API simple? Or is there a reason it would be tricky to add?
This stores key_hash -> value_hash with merkle proof potential, which is nice an small. To use as a real storage, I would need a sibling DB to store the raw key->value mapping (unmerklized) and keep this just for proofs, correct?
RocksDB offers checkpoints, so I could provide read-only access to one version (for consistent long-reads/admin) while continuing to write. This is not exposed, but I assume this is mainly an issue of API clarity?

I don't want to ask you to implement these, but I would be interested in hearing if your thoughts on them and if they could be added without huge complexity overhead.
One issue there is keeping 2 databases in sync if I cannot commit atomically over them both. I could imagine sharing one eg. RocksDB under the hood, with all data stored with eg. 0 prefix and all data from MonoTree with 1. Then building a batch that contains all data updates and all MonoTree updates, so I can get the data and the proofs together in an atomic commit. This would require:

Prepending a prefix to writes, stripping from reads
Passing in a DB rather than creating it internally - for every call
(Most challenging) Relying on "someone else" to manage the batches and access

Apart from the API challenges, do you think something like that would be feasible?
Thank you for your time reading this. And let me know if I can support the project somehow.

Sorry for deadly late reply and for not being maintained much lately while you left lots of helpful comments!
It was long ago and I think you already get some your own answers, but I feel like I must leave answers.

A batch of mixed insert() and remove():
Honestly, I've never thought about what you pointed out. Back then, I came up with only those pairs of functions the following: get() and gets(), insert() and inserts(), and remove() and removes().
There were no special reason at all, except for keeping it simple. It would be more useful and faster if the monotree also has a batch of mixed insert() and remove() like RocksDB!

To use as a real storage:
You observed well that monotree stores key_hash -> value_hash. But I don't think you need a sibling DB to store raw_key -> value map if I get your words correctly. You can just use the same DB: value_hash == raw_key.

No distinction between node hash and leaf hash, thus no need to check if a node is a leaf.
As you know, the monotree dynamically changes key prefixes for each input like a Patricia tree as part of the optimization.
the monotree has no such thing like is_leaf(). Leaves are automatically determined as the result of key-path-compression.
If you keep reading a tree path (fragments of a key_hash) you automatically get the leaf, the very bottom one.
(See: https://github.com/thyeem/monotree/blob/master/src/tree.rs#L119)
Probably you might simply want to have 2 DBs in sync in specific situation (like read-only access as you said, or sharding purpose). It seems that you've been thinking a lot about operating two databases in sync. I'm not enough to talk about it.
One thing I can say for sure is that the monotree is designed for the stateroot of the blockchain, and will work enough to handle block speeds.
It would be better if this could be develepoed further in many ways. Thanks for sharing your thoughts and helpful comments.
I'll invite you as a collaborator of this project if you'd like to join us.

Thanks for the reply in the end. I went with with https://github.com/nomic-io/merk which, while fast, doesn't seem nearly as fast as yours (compare RocksDB benchmarks).

It would be better if this could be develepoed further in many ways. Thanks for sharing your thoughts and helpful comments. I'll invite you as a collaborator of this project if you'd like to join us.

It might be interesting to dig in, but it seems the project is inactive? Last commit about 18 months ago. Or am I wrong?

You're right. It has been inactive for a long time and I've bumped up dependencies just now.
There's still something left for monotree to be a completely parameterized SMT.
Back then I had an idea, but I've been busy with other things (zero-knowledge proof).

The goal of this project was .. simply to provide an non-verbose and optimized SMT at an abstract level rather than an application level.
In the way of no-frills, easy-to-use and easy-to-scale...
For now, I feel it's the right time to experiment with this project at the application level in the way somebody likes.
I've invited you to this project.

authors: ethanfrey thyeem

repo: thyeem/monotree


text:
chore(prow/config): remove dmr versions from triage list

also add old no-dmr to wont fix list.
Signed-off-by: wuhuizuo wuhuizuo@126.com

What problem does this PR solve?
Issue Number: close #xxx
Problem Summary:
What is changed and how it works?
What's Changed:
How it Works:

/hold

/unhold

/merge

/auto-cc

/autocc

repo: ti-community-infra/configs


text:
config: correct indentation

Correct indentation.

/lgtm
/approve

authors: purelind wuhuizuo


text:
Link to biopython-coronavirus tutorial

As suggested in https://github.com/biopython/biopython/issues/2808

@tiagoantao The travis failures seem unrelated to this PR, due to updates to Biopython versions. One fix would be to specify the Biopython version for travis
...or to comply with the latest 1.76 release, e.g. my_seq.tostring() is removed (should be str(my_seq)), output formats have changed in many cases etc. Also, while testing on my system at least, some of the data/ files are absent
(also note the next Biopython release will drop support for Python 3.5 currently used)

Thanks!
I am going to merge this and deal with the test issues later

Thanks! I included a link to this repo in my repo too

authors: chris-rands tiagoantao

repo: tiagoantao/biopython-notebook


text:
Using Access Token (OAuth2) generated in subsequent requests

Hi, I am just getting started with FastAPI and have been a little stuck working with the authentication piece of my project using the OAuth2 flow.
from datetime import datetime, timedelta
from typing import Optional
import uvicorn

from fastapi import Depends, FastAPI, HTTPException, status, Request
from fastapi.responses import RedirectResponse
from fastapi.security import OAuth2PasswordBearer, OAuth2PasswordRequestForm
from jose import JWTError, jwt

# Import the necessary libraries
from fastapi.templating import Jinja2Templates

# Mount the templates with Jinja
templates = Jinja2Templates(directory="templates")

# to get a string like this run:
# openssl rand -hex 32
SECRET_KEY = "09d25e094faa6ca2556c818166b7a9563b93f7099f6f0f4caa6cf63b88e8d3e7"
ALGORITHM = "HS256"
ACCESS_TOKEN_EXPIRE_MINUTES = 30

fake_users_db = {
    "johndoe": {
        "username": "johndoe",
        "full_name": "John Doe",
        "email": "johndoe@example.com",
        "hashed_password": "$2b$12$EixZaYVK1fsbw1ZfbX3OXePaWxn96p36WQoeG6Lruj3vjPGga31lW",
        "disabled": False,
    }
}

oauth2_scheme = OAuth2PasswordBearer(tokenUrl="token")

app = FastAPI()

def create_access_token(data: dict, expires_delta: Optional[timedelta] = None):
    to_encode = data.copy()
    if expires_delta:
        expire = datetime.utcnow() + expires_delta
    else:
        expire = datetime.utcnow() + timedelta(minutes=15)
    to_encode.update({"exp": expire})
    encoded_jwt = jwt.encode(to_encode, SECRET_KEY, algorithm=ALGORITHM)
    return encoded_jwt

@app.post("/token")
async def login_for_access_token(form_data: OAuth2PasswordRequestForm = Depends()):
    print(form_data.__dict__)
    if form_data.username not in fake_users_db:
        raise HTTPException(
            status_code=status.HTTP_401_UNAUTHORIZED,
            detail="Incorrect username or password",
            headers={"WWW-Authenticate": "Bearer"},
        )
    access_token_expires = timedelta(minutes=ACCESS_TOKEN_EXPIRE_MINUTES)
    access_token = create_access_token(
        data={"sub": form_data.username}, expires_delta=access_token_expires
    )

    return {"access_token": access_token, "token_type": "bearer"}

@app.get("/")
async def index(request: Request, token: str = Depends(oauth2_scheme)):
    return token

@app.get("/login")
async def login(request: Request):
    return templates.TemplateResponse("index.html", {"request": request})

if __name__ == "__main__":
	uvicorn.run("test:app", reload=True)

<form action="/token" method="post">

		Username
		<input type="text" placeholder="Enter Username" name="username" required>

		Password
		<input type="password" placeholder="Enter Password" name="password" required>

		<button type="submit">Login</button>

</form>

The first block is the python code that executes the application and the second block is the html code the user will interact with from a browser.
When a user navigates to "/login", they will fill out the form and when they hit submit, it will hit the post route for "/token". (The correct username is "john" and password is "doe"). When the user hits submit, they will get the newly generated access token.
However, I would like to now be able to use that newly generated access token in subsequent requests. I attempted to use RedirectResponse with custom headers, but the custom headers get dropped when I try to reroute to "/".
I feel like I am missing something obvious so any help would be greatly appreciated!

I am coming from Flask where we were able to store credentials within the session data and reference that. How can I login once with the correct credentials and then get rerouted to my home page "/".
And after rerouting to the home page, how can I ensure that the access token is available (until it expires) and being checked as the user visits other routes that have the OAuth2 dependency?

Hi,
You will need to store the token on the browser using JavaScript, then you need to ensure that it will be sent on subsequent requests.
https://auth0.com/docs/security/data-security/token-storage

Hi @dnutiu , thank you for the quick response and the documentation to follow. When you say store the token using JavaScript, are you referring to storing it as a cookie or in memory?
If it is stored in memory, will that mean the token is accessible in all my subsequent  headers?
Apologies if I'm missing something here.

Hello,
It depends on your use case and application design. I usually store the token in localStorage and append it to requests in the Authorization header using JavaScript and the localStorage API, I don't have experience with in-memory storage.

That makes more sense, do you know how to retrieve data stored in localStorage within FastAPI functions?

Hi,
The localStorage API is a browser API, it's available in Chrome, Firefox,
Edge and most recent browsers.
On Wed, May 5, 2021, 18:23 eliasyishak @.***> wrote:

That makes more sense, do you know how to retrieve data stored in
localStorage within FastAPI functions?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/tiangolo/fastapi/issues/3175#issuecomment-832778872,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABUGDAS4YBAUQDLHXK5CKHDTMFPF5ANCNFSM44DSZCMQ
.

Thanks for the help here @dnutiu ! 👏  🙇
Thanks for coming back and closing the issue @eliasyishak  👍

Sorry for the long delay! 🙈  I wanted to personally address each issue/PR and they piled up through time, but now I'm checking each one in order.

authors: dnutiu eliasyishak tiangolo

repo: tiangolo/fastapi


text:
🌐 Add translation for docs/zh/docs/advanced/response-cookies.md

Help developer in China

Awesome, thanks for your contribution @zhangbo2012! :cake:
And thanks for the reviews @mcthesw and @zy7y! :coffee:


text:
Do not allow duplicate tag names (OpenAPI object)

Addresses issue #5552

Failing because of an issue already addressed in PR #5547

Nice catch @aradipe !

authors: JarroVGIT aradipe


text:
how to get relationships child data

First Check

[X] I added a very descriptive title to this issue.
[X] I used the GitHub search to find a similar issue and didn't find it.
[X] I searched the SQLModel documentation, with the integrated search.
[X] I already searched in Google "How to X in SQLModel" and didn't find any information.
[X] I already read and followed all the tutorial in the docs and didn't find an answer.
[X] I already checked if it is not related to SQLModel but to Pydantic.
[X] I already checked if it is not related to SQLModel but to SQLAlchemy.

Commit to Help

[X] I commit to help with one of those options 👆

Example Code
Based on the example

https://sqlmodel.tiangolo.com/tutorial/fastapi/relationships/

class TeamReadWithHeroes(TeamRead):
    heroes: List[HeroRead] = []

@app.get("/teams/{team_id}", response_model=TeamReadWithHeroes)
def read_team(*, team_id: int, session: Session = Depends(get_session)):
    team = session.get(Team, team_id)

    if not team:
        raise HTTPException(status_code=404, detail="Team not found")
    return team

################ result #########################
{
    "name": "Preventers",
    "headquarters": "Sharp Tower",
    "id": 2,
    "heroes": [
        {
            "name": "Rusty-Man",
            "secret_name": "Tommy Sharp",
            "age": 48,
            "team_id": 2,
            "id": 2
        },
        {
            "name": "Spider-Boy",
            "secret_name": "Pedro Parqueador",
            "age": null,
            "team_id": 2,
            "id": 3
        },
        {
            "name": "Tarantula",
            "secret_name": "Natalia Roman-on",
            "age": 32,
            "team_id": 2,
            "id": 6
        },
        {
            "name": "Dr. Weird",
            "secret_name": "Steve Weird",
            "age": 36,
            "team_id": 2,
            "id": 7
        },
        {
            "name": "Captain North America",
            "secret_name": "Esteban Rogelios",
            "age": 93,
            "team_id": 2,
            "id": 8
        }
    ]
}

########### The result I want ###########

{
    "name": "Preventers",
    "headquarters": "Sharp Tower",
    "id": 2,
    "heroes": [
        {
            "name": "Captain North America",
            "secret_name": "Esteban Rogelios",
            "age": 93,
            "team_id": 2,
            "id": 8
        }
    ]
}

Description
I only want to display the value of id==8 in heroes What should I do?
I tried and searched a lot for three days, but I failed Somebody help me
Operating System
macOS
Operating System Details
monterey 12.4
SQLModel Version
0.0.8
Python Version
python 3.10
Additional Context
No response

Please follow all the tutorial for using SQLModel with Pydantic and FastAPI: https://sqlmodel.tiangolo.com/tutorial/fastapi/
You will probably find the answers there.

repo: tiangolo/sqlmodel


text:
✨ Add newsletter: FastAPI and friends

Port newsletter.md from FastAPI
The "FastAPI and friends newsletter" links on https://sqlmodel.tiangolo.com/help/ is currently broken.

Thank you! This was solved in https://github.com/tiangolo/sqlmodel/pull/84, so I'll close this one. But thanks for the interest and effort! :cake:

authors: joeriddles tiangolo


text:
support swift3.0

やったこと

Swift3.0対応

検証

[x] Sampleが動くことを確認
[ ] Swift3対応済みの別プロジェクトで呼び出して、動くことを確認

@tichise Is this library already ready for Swift 3 and Xcode 8.3?

authors: ArturGasparyan tichise

repo: tichise/MaterialDesignSymbol


text:
sync: Sync app list.

Some of these apps were not committed properly. I've generated the proper config using:
 go run tools/main.go sync

And so it begins! 😀

authors: betterengineering saltedlolly

repo: tidbyt/community


text:
new app: the guardian news

added new app The Guardian News - display headlines from openapi

recheck


text:
MOBILE-124: Opening notes the cached data is displayed, but the note is not dynamically updating

…t does not exist). These errors, e.g. for timeouts from backend API calls, were not being shown properly, so, user was not getting alerts for timeouts for API calls, for instance.

Note. This PR includes both the fix for not showing timeout errors for Tidepool API calls as well as a root cause fix for the graph not re-rendering with new graph data, after first having shown cached graph data, when the new graph data succeeds.

repo: tidepool-org/mobile


text:
🛑 TDMU Elearning ePortfolio is down

In 2f2baca, TDMU Elearning ePortfolio (https://eportfolio.tdmu.edu.vn) was down:

HTTP code: 0
Response time: 0 ms

Resolved: TDMU Elearning ePortfolio is back up in 7dc7a74.


text:
fix(nebula_examples): fix bugprone-incorrect-roundings

PR Type

Improvement

Related Links

Description
This is a fix based on clang-tidy bugprone-incorrect-roundings error.
/home/emb4/autoware/autoware/src/sensor_component/external/nebula/nebula_examples/src/velodyne/velodyne_ros_offline_extract_bag_pcd.cpp:180:44: error: casting (double + 0.5) to integer leads to incorrect rounding; consider using lround (#include <cmath>) instead [bugprone-incorrect-roundings,-warnings-as-errors]
    sensor_configuration.cloud_min_angle = 100 * (2 * M_PI - min_angle) * 180 / M_PI + 0.5;
                                           ^
/home/emb4/autoware/autoware/src/sensor_component/external/nebula/nebula_examples/src/velodyne/velodyne_ros_offline_extract_bag_pcd.cpp:181:44: error: casting (double + 0.5) to integer leads to incorrect rounding; consider using lround (#include <cmath>) instead [bugprone-incorrect-roundings,-warnings-as-errors]
    sensor_configuration.cloud_max_angle = 100 * (2 * M_PI - max_angle) * 180 / M_PI + 0.5;
                                           ^

Review Procedure

Remarks

Pre-Review Checklist for the PR Author
PR Author should check the checkboxes below when creating the PR.

[x] Assign PR to reviewer

Checklist for the PR Reviewer
Reviewers should check the checkboxes below before approval.

[ ] Commits are properly organized and messages are according to the guideline
[ ] (Optional) Unit tests have been written for new behavior
[ ] PR title describes the changes

Post-Review Checklist for the PR Author
PR Author should check the checkboxes below before merging.

[ ] All open points are addressed and tracked via issues or tickets

CI Checks

Build and test for PR: Required to pass before the merge.

Closed because I forgot that it was outside the scope of work.


text:
tier.run not compatible with latest golang.org/x/exp package

What is the issue?
A recent change to mirror changes coming in Go 1.21 to the the golang.org/x/exp package broke compatibility with tier.run. The build is failing with:
$ go build ./...
# tier.run/refs
refs/refs.go:286:22: type func(a FeaturePlan, b FeaturePlan) bool of func(a, b FeaturePlan) bool {…} does not match inferred type func(a FeaturePlan, b FeaturePlan) int for func(a E, b E) int

The slices.SortFunc function now requires that the function return int, not bool.
Steps to reproduce
$ go get -u golang.org/x/exp
$ go mod tidy
$ go build ./...

Are there any recent changes that introduced the issue?
https://cs.opensource.google/go/x/exp/+/302865e7556b4ae5de27248ce625d443ef4ad3ed
OS
macOS
OS version
No response
Tier version
No response

Thank you for the report. I'll take a look at this.

How is this affecting you right now? I'm able to build with the current 1.21rc3 just fine.

We are pulling in tier.run along with other dependencies which are attempting to upgrade the x/exp package. In the meantime we are having to hold off upgrading those packages until tier.run module is compatible with the new version.
Not a huge deal and not a bug per-se in tier.run but it would be nice to be able to keep up to date with all our dependencies.

With go1.21 released should probably use the standard lib version of slices instead of x/exp/slices
https://pkg.go.dev/slices
Fwiw the specific breaking change was https://go-review.googlesource.com/c/exp/+/511895
Until this repository bumps golang.org/x/exp/slices or switches to the standard lib, we're stuck pinning to an older supported version of /x/exp/slices

authors: bmizerany mfridman pkwarren

repo: tierrun/tier


text:
add support for privately hosted git repositories

This removes the exception about unsupported sites
Any git repository hosted anywhere can be used
Remove existing directory before clone when ran with --force

Sorry about the last one :) This one i tested with and without the ~/.degit directory and the tests were green.

No problemo. I also removed that dir and tested. Green to me too :)

repo: tiged/tiged


text:
DOCS-1127: Fixing command formats

Product Version(s):

Issue:
https://tigera.atlassian.net/browse/DOCS-1127
Link to docs preview:

SME review:

[ ] An SME has approved this change.

DOCS review:

[ ] A member of the docs team has approved this change.

Additional information:

Merge checklist:

[ ] Deploy preview inspected wherever changes were made
[ ] Build completed successfully
[ ] Test have passed

@gantony Can you review this one please?

repo: tigera/docs


text:
Use requested scopes (if specified) in dex

Description

For PR author

[ ] Tests for change.
[ ] If changing pkg/apis/, run make gen-files
[ ] If changing versions, run make gen-versions

For PR reviewers
A note for code reviewers - all pull requests must have the following:

[ ] Milestone set according to targeted release.
[ ] Appropriate labels:

kind/bug if this is a bugfix.
kind/enhancement if this is a a new feature.
enterprise if this PR applies to Calico Enterprise only.

/merge-when-ready delete-branch

/merge-when-ready delete-branch

OK, I will merge the pull request when it's ready, leave the commits as is when I merge it, and delete the branch after I've merged it.

OK, I will merge the pull request when it's ready, leave the commits as is when I merge it, and delete the branch after I've merged it.

authors: Brian-McM marvin-tigera

repo: tigera/operator


text:
[Question/Feature] Whitelist by group or group prefix

Expected Behavior
By default, laravel gives you route files which some have prefixes, such as api/.
It also automatically generates names for you via helpers such as Route::apiResource
The whitelist should potentially allow you to control by group level, e.g I want to include only "api" routes.
Currently the whitelist/blacklist seems to only allow filtering via the actual route names, rather than the route groups.
Current Behavior
Either I don't know how to do to this, or it seems you need to then manually overwrite every API route in your application to prefix the name with api. to allow you to only export IP routes.

That is correct. Unfortunately laravel route groups are ephemeral and it is impossible to retreive routes by group. The simple solution to this is to wrap your entire api.php routes file in a group with a name, such as
    //
});```

authors: DanielCoulbourne OwenMelbz

repo: tightenco/ziggy


text:
[Neovim] Find an alternative for null-ls.nvim

Currently null-ls.nvim works, but may break on future Neovim releases.

null-ls is archived since August 2023 and will no longer receive updates

Idea: Fork https://github.com/nvimtools/none-ls.nvim

Idea: https://www.youtube.com/watch?v=ybUE4D80XSk

conform.nvim: https://github.com/stevearc/conform.nvim
nvim-lint: https://github.com/mfussenegger/nvim-lint
mason-tools-installer: https://github.com/WhoIsSethDaniel/mason-tool-installer.nvim

repo: tigion/dotfiles


text:
Add support for pagination in the read API

This is for the API documented here: https://www.tigrisdata.com/docs/sdkstools/golang/database/query/

Hi, Looking to work on it, @ovaistariq as there are no specs. Can I assume pagination functionality should be similar to what we have for typescript? - https://www.tigrisdata.com/docs/sdkstools/typescript/database/query/#pagination. Let me know if you are expecting anything different.

Hi, @Shubham8287! Pagination API is implemented already.
We just need to put documentation in place. We are sorry for the confusion.
Would you be interested in working on https://github.com/tigrisdata/tigris-client-go/issues/223 instead?
If you decide to work on it, I can provide addition information.
Thanks for you interest in contributing!

Sure, Np.

Yeah, sorry about that. I will close this and create a new one for docs.

authors: Shubham8287 efirs ovaistariq

repo: tigrisdata/tigris-client-go