text:
Broken pipe or closed connection

exception Bunny\Exception\ClientException (Broken pipe or closed connection)
is raised by calling
Gamee\RabbitMQ\Producer\ProducerFactory->getProducer(xxx)

CALLSTACK

.../web/vendor/bunny/bunny/src/Bunny/Client.php:75	source  Bunny\AbstractClient->read()

.../web/vendor/bunny/bunny/src/Bunny/ClientMethods.php:302	source  Bunny\Client->feedReadBuffer()

.../web/vendor/bunny/bunny/src/Bunny/Client.php:110	source  Bunny\AbstractClient->awaitConnectionTune()

.../gamee/nette-rabbitmq/src/Connection/Connection.php:64	source  Bunny\Client->connect()

.../src/Connection/ConnectionFactory.php:76	source  Gamee\RabbitMQ\Connection\Connection->__construct(arguments)

.../src/Connection/ConnectionFactory.php:46	source  Gamee\RabbitMQ\Connection\ConnectionFactory->create(arguments)

.../nette-rabbitmq/src/Exchange/ExchangeFactory.php:90	source  Gamee\RabbitMQ\Connection\ConnectionFactory->getConnection(arguments)

.../nette-rabbitmq/src/Exchange/ExchangeFactory.php:67	source  Gamee\RabbitMQ\Exchange\ExchangeFactory->create(arguments)

.../nette-rabbitmq/src/Producer/ProducerFactory.php:82	source  Gamee\RabbitMQ\Exchange\ExchangeFactory->getExchange(arguments)

.../nette-rabbitmq/src/Producer/ProducerFactory.php:58	source  Gamee\RabbitMQ\Producer\ProducerFactory->create(arguments)

.../web/vendor/gamee/nette-rabbitmq/src/Client.php:41	source  Gamee\RabbitMQ\Producer\ProducerFactory->getProducer(arguments)

.../cache/Nette.Configurator/Container_95a270975e.php:1700	source  Gamee\RabbitMQ\Client->getProducer(arguments)

1690:
1691:        public function createServiceSecurity__userStorage(): Nette\Security\IUserStorage
1692:        {
1693:            $service = new Nette\Http\UserStorage($this->getService('session.session'));
1694:            return $service;
1695:        }
1696:
1697:
1698:        public function createServiceSegmentationQueue(): App\Model\SegmentationQueue
1699:        {
1700:            $service = new App\Model\SegmentationQueue($this->getService('rabbitmq.client')->getProducer('segmentationProducer'));
1701:            return $service;
1702:        }
1703:
1704:
.../web/vendor/nette/di/src/DI/Container.php:181	source  Container_95a270975e->createServiceSegmentationQueue()

.../web/vendor/nette/di/src/DI/Container.php:107	source  Nette\DI\Container->createService(arguments)

.../cache/Nette.Configurator/Container_95a270975e.php:469	source  Nette\DI\Container->getService(arguments)

.../web/vendor/nette/di/src/DI/Container.php:181	source  Container_95a270975e->createService__37_App_Presenters_ApiSegmentationPresenter()

.../Bridges/ApplicationDI/PresenterFactoryCallback.php:59	source  Nette\DI\Container->createService(arguments)

inner-code	Nette\Bridges\ApplicationDI\PresenterFactoryCallback->__invoke(arguments)

.../application/src/Application/PresenterFactory.php:49	source  call_user_func(arguments)

.../nette/application/src/Application/Application.php:140	source  Nette\Application\PresenterFactory->createPresenter(arguments)

.../nette/application/src/Application/Application.php:83	source  Nette\Application\Application->processRequest(arguments)

/application/web/www/index.php:6	source  Nette\Application\Application->run()

I have found that the problem was invalid   user and password
but this exception is very very confusing...

But I guess that the exception is thrown from bunny library, is this correct? In that case, please look for more details in bunny/bunny

authors: paveljanda whipsterCZ

repo: gameeapp/nette-rabbitmq


text:
🛑 Indodax is down

In 4a863fd, Indodax (https://indodax.com) was down:

HTTP code: 403
Response time: 78 ms

Resolved: Indodax is back up in 4960b3c.

source: gharchive/issue

repo: gammarinaldi/watcher

license: MIT

license_type: permissive

license_source: github-api


text:
iphone6s IOS9,IOS10 出现相册浏览只能读取部分新照片

iphone6s IOS9,IOS10 出现相册浏览只能读取部分新照片，以前老的照片无法读取。有人发现这个BUG吗？

@gang544043963

没发现啊。你是用demo直接跑的吗？

我发现如果照片是存在iCloud的就无法读取

license: mit

license_source: bigquery


text:
Support for "securityDefinitions"

Currently even though "securityDefinitions" section is provided in the documentation for the API, it is not reproduced in the final JSON produced.
Sample Documentation on a API method (with securityDefinitions section)
@app.route('/reports', methods=["POST"])
def sample_meth():
       """
       Uploads the given file to LOEWI servers.
        ---
        securityDefinitions:
          BasicAuth:
            type: "basic"
        definitions:
          - schema:
            id: ErrorResponse
            properties:
              error:
                type: "string"
                description: "Gives a description about the error."
            example:
              error: "Lab name is not provided."
        operationId: "uploadReport"
        security:
          - BasicAuth: []
        """
        print("sample meth")

Expected JSON response
Following definition should be present at the root level of the JSON generated.
"securityDefinitions": {
    "BasicAuth": {
      "type": "basic"
    }
  }

Actual JSON response
Carries only the security requirement for the corresponding path, and the 'securityDefinitions' section is missing.
{
   "definitions":{
      "ErrorResponse":{
         "example":{
            "error":"Lab name is not provided."
         },
         "properties":{
            "error":{
               "description":"Gives a description about the error.",
               "type":"string"
            }
         }
      }
   },
   "paths":{
      "/reports":{
         "post":{
            "security":[
               {
                  "BasicAuth":[

                  ]
               }
            ],
            "summary":"Uploads the given file to LOEWI servers."
         }
      }
   }
}

Current solution is to add it manually to the generated JSON object, like below:
from flask_swagger import swagger
@app.route("/spec")
def spec():
     swag_doc = swagger(app)
     swag_doc['securityDefinitions'] = {"BasicAuth": {"type": "basic"}}

IMO, this seems like the most reasonable way to accomplish this. Defining the base securityDefinitions inside of your docstrings does not fully make sense, as they should only be defined once at the base and then referenced inside your docstrings.
In that case, some clarification/examples in the docs might help. If this is insufficient for your needs, can you elaborate more on how you would like to see this working?

The current solution is perfectly fine for me. But what I had in my mind, was to extract these securityDefinitions from the docstrings of any method to the top level, just like what is currently being done for definitions. Do you think this makes sense?

Thanks @SandhyaGiri this definitely makes sense. I think I'm just trying to reason about conflict resolution in the event that there are two different security definitions with the same name. For example:
@app.route('/reports', methods=["POST"])
def sample_meth():
       """
       docstring
        ---
        securityDefinitions:
          ApiKeyAuth:
            type: apikey
            in: header
            name: X-API-Key

and then another view:
@app.route('/reports', methods=["POST"])
def sample_meth():
       """
       docstring
        ---
        securityDefinitions:
          ApiKeyAuth:
            type: apikey
            in: header
            name: X-API-Key-Different-Header

In this case, which definition would we expect to see in securityDefinitions? More importantly, which one would be used for the view?
The thing I like about your solution is that there is one and only one to pass to define the security definitions.
It looks like definitions gets handled by requiring an ID, so we could consider doing something similar with securityDefinitions if we want to.

authors: SandhyaGiri mrname

repo: gangverk/flask-swagger


text:
Decimals

Hello,
Is there a way to set how many decimals to show?
In temperature i have 2 in humidity 0... i wold like to have 1 on both...
Is it possible?
Thanks for the great work!
JS

For humidity the device only reports whole numbers..  I'm not sure offhand for the temp though, I'll have to look.. I thought there was a way in homeassistant yourself you could change what it displayed?

For humidity the device only reports whole numbers..  I'm not sure offhand for the temp though, I'll have to look.. I thought there was a way in homeassistant yourself you could change what it displayed?

I agree, the temperate showing 2 decimals is meaningless, as most consumer IoT sensors are only accurate to 0.5°C (at best) so showing 21.45° is reporting insignificant/inaccurate precision. 1 decimal is also the "standard precision" for any (professional) weather service - I have 3 external weather services and none of them report more than 0.1° precision.
Humidity is actually correct (showing integer % values), as the sensor accuracy would be at best +/- 1%.
Similarly, the rain values appear as 4.09mm/h but should only be showing whole mm values, not 2 decimal places, for the same reason was above (accuracy of device).
Yes, it is possible to fix this in HA by creating template entities (or using a LoveLace plugin to alter the entity state via a template expression) but the user shouldn't have to do this, when the provided values are showing meaningless and inaccurate precision.

authors: garbled1 nickdos zejulio


text:
Fix DNS listening on NAT ip

$adDomain = Get-ADDomain
$domain = $adDomain.DNSRoot
$domainDn = $adDomain.DistinguishedName
remove the non-routable vagrant nat ip address from dns.
NB this is needed to prevent the non-routable ip address from
being registered in the dns server.
NB the nat interface is the first dhcp interface of the machine.
$vagrantNatAdapter = Get-NetAdapter -Physical     | Where-Object {$_ | Get-NetIPAddress | Where-Object {$_.PrefixOrigin -eq 'Dhcp'}}
| Sort-Object -Property Name `
| Select-Object -First 1
$vagrantNatIpAddress = ($vagrantNatAdapter | Get-NetIPAddress).IPv4Address
remove the $domain nat ip address resource records from dns.
$vagrantNatAdapter | Set-DnsClient -RegisterThisConnectionsAddress $false
Get-DnsServerResourceRecord -ZoneName $domain -Type 1     | Where-Object {$_.RecordData.IPv4Address -eq $vagrantNatIpAddress}
| Remove-DnsServerResourceRecord -ZoneName $domain -Force
disable ipv6.
$vagrantNatAdapter | Disable-NetAdapterBinding -ComponentID ms_tcpip6
remove the dc.$domain nat ip address resource record from dns.
$dnsServerSettings = Get-DnsServerSetting -All
$dnsServerSettings.ListeningIPAddress = @(
$dnsServerSettings.ListeningIPAddress `
| Where-Object {$_ -ne $vagrantNatIpAddress}
)
Set-DnsServerSetting $dnsServerSettings
flush the dns client cache.
Clear-DnsClientCache

fixed with powershell script

repo: gardart/ansible-freeipa-lab


text:
Use controller runtime for federated seed controllers

How to categorize this PR?

/area control-plane
/area dev-productivity
/kind enhancement
/priority normal
What this PR does / why we need it:
This PR makes the federated seed controller (extensions workers) use the Controller-Runtime manager and controllers in favor of generated informers/listers. It's a further and consequent step towards the Controller-Runtime and allows to get rid of any third party generated client code (e.g. from external-dns-management) which turned out to be a blocker for #2489.
Special notes for your reviewer:
I tested several scenarios, e.g. shoot creation/deletion, adding/removing workers with "new" OS type, seed creation/deletion, provoking errors in the extension controllers, etc.. It'd be nice if you could double check the state reconciliation as well (/cc @plkokanov @swilen-iwanow).
The controller manager that is built for each seed in the Gardenlet now uses the client/informer cache introduced by @tim-ebert.
Release note:

NONE

/assign

Update:

Resolved golang-ci issues
File renaming
Small channel improvements

/retest

/assign

I haven't looked into it in detail, but I am slightly worried about how that will play together with invalidating the seed client in the client map. I.e. if the Seed's kubernetes version is upgraded, the client will be invalidated automatically, which means that all the informers/watches will be stopped. That in turn means, that the controllers you have here won't receive any watch events anymore.

Nice scenario but no, I didn't test this. Let me check again and come back. But it will probably take me some days since I'm out of office next week.

Looks quite good!
I haven't looked into it in detail, but I am slightly worried about how that will play together with invalidating the seed client in the client map. I.e. if the Seed's kubernetes version is upgraded, the client will be invalidated automatically, which means that all the informers/watches will be stopped. That in turn means, that the controllers you have here won't receive any watch events anymore.
Have you tested this scenario?

Not sure if the gardenlet leader election mechanism uses the same clients. If so invalidating the client would cause the federated controllers to shut down and gardenlet to restart.
So to cover the cases where one gardenlet manages multiple seeds maybe we should implement a federated leader-election mechanism for the federated controllers?

Not sure if the gardenlet leader election mechanism uses the same clients. If so invalidating the client would cause the federated controllers to shut down and gardenlet to restart.

Nope, the leader election is using its own client:
https://github.com/gardener/gardener/blob/398870a9a2db8eb5eaf4489538a64f20ff6cd7fd/cmd/gardenlet/app/gardenlet.go#L316-L323

So to cover the cases where one gardenlet manages multiple seeds maybe we should implement a federated leader-election mechanism for the federated controllers?

Hmm, I'm not sure what you mean by "federated leader-election". Can you elaborate?
(Anyhow, using the gardenlet for multiple seeds is not recommended and mostly only a development scenario)

Currently (afaik) there is no way to stop a federated controller's control loop  from running for a particular seed (unless the seed is deleted). So in the case of one gardenlet managing multiple seeds you could have a scenario where a particular seed should no longer be managed by the same gardenlet, but by another. You would want to have a mechanism which can stop the federated controller for that seed and start it in the new gardenlet.
But as you mentioned, this is not a recommended setup and will most likely be encountered only in a development scenario. Also I believe we're side tracking a bit from the PR :).
Anyway, the PR looks good.
I'll test it out as well a bit later today.

/hold until v1.7 is released

/unhold as v1.7.0 is released

Ran the PR locally but the Infrastructure and Worker resources are not synced to the ShootState

I haven't looked into it in detail, but I am slightly worried about how that will play together with invalidating the seed client in the client map. I.e. if the Seed's kubernetes version is upgraded, the client will be invalidated automatically, which means that all the informers/watches will be stopped.

I just talked to @tim-ebert and he's going to address this case in a separate PR because it needs to be handled more generically.
@plkokanov many thanks for testing and reviewing this PR. I'll address your comments asap.

PR is closed in favor of #2588 which uses the cached informers directly.

source: gharchive/pull-request

authors: plkokanov rfranzke tim-ebert timuthy

repo: gardener/gardener


text:
Fix data reconcile trigger for secrets and configmaps

How to categorize this PR?

/area operations
/kind bug
/priority 3
What this PR does / why we need it:
Which issue(s) this PR fixes:
Fixes #https://github.com/gardener/landscaper/issues/243
Special notes for your reviewer:
Release note:

A bug has been fixed that caused the Landscaper to not detect data changes in secrets or configmaps

/test

/test

/test

repo: gardener/landscaper


text:
Exports are considered invalid in systemd

If we try to export the http/https proxys systemd will ignore them

Is this also true for the non-rhel7 config file as well? https://github.com/garethr/garethr-docker/blob/master/templates/etc/sysconfig/docker.erb
And what about the no_proxy option just below your change?
Thanks.

Should be resolved in https://github.com/garethr/garethr-docker/pull/264. Thanks for reporting.

authors: cwood garethr

repo: garethr/garethr-docker


text:
Work signup loading indicator

In case signup takes non-trivial time
Originally created by Tom Smyth at 2018-04-14 11:43, migrated from redmine-#8306

Status changed from New to Closed

By Tom Smyth at 2018-04-14 16:00

Version set to 6.0

By Tom Smyth at 2018-04-29 11:24

repo: gather-community/gather


text:
Hover effect added to social icons

🚀 Pull Request
Description
I added Hover effects to Social icons like GitHub , X , and Instagram,
added some nitrating animations and background colors

Related Issue
#604

Type of Change
What kind of change does this pull request introduce?

[ ] 🐛 Bug fix
[X] 🚀 New feature
[ ] 📄 Documentation update
[ ] 🛠 Code improvement/refactor
[ ] 🖼 UI/UX update
[ ] Other (please specify)

Screenshots (if applicable)
https://github.com/user-attachments/assets/214a646b-a63b-4018-a04a-7d63a68fdb74

Checklist
Please ensure the following tasks are complete before submitting the pull request:

[X] I have tested my changes and ensured they work as expected.
[X] I have added any necessary documentation or comments.
[X] I have checked the existing issues and pull requests to avoid duplicates.
[X] I have starred this repository.
[X] I have reviewed my code for best practices and readability.
[X] I have included any relevant tests (if applicable).

Additional Context
Add any other relevant information or context about the pull request here.

@PriyaGhosal please review the PR

@PATILYASHH not looks good.


text:
Add reentrancy tests for chain assertion handler (#255)

Tests for #255, I verified that adding Lock() calls in chain.go prior to calling handler.Success() or handler.Failure() caused the respective test to hang.
Please review @gavv

Coverage: 95.672%. Remained the same when pulling e0666d0a595e7665c686fc414d49b8b9f2743dc9 on regularcoder:master into 4395aae282c6d361bf796f394457b21a08b41f7e on gavv:master.

Thanks for PR! Will review in upcoming days.
Two preliminary comments:

could you please merge two tests into one with two subtests?

instead of creating new mock type reenteringAssertionHandler, could you please reuse mockAssertionHandler and adjust it for your needs?

add successCalled and failureCalled fields (BTW better counters than booleans)
add custom callback field which you can use to make call to mh.chain.env(); use mockReporter and its reportCb field as an example

Also please make reentrancy test to be the very first test (like it is for other structs).

Thank you for the feedback. Incorporated your comments.

LGTM!

I verified that adding Lock() calls in chain.go prior to calling handler.Success() or handler.Failure() caused the respective test to hang.

Appreciate that, thanks.

authors: coveralls gavv regularcoder

repo: gavv/httpexpect


text:
Possible mistakes in RFComms plugin

Hi! I believe I have found a couple of minor bugs (as in, easily fixed) in the RFComms plugin which could have non-negligible effects in cases where a precise communication model is needed.

Environment

OS Version: Ubuntu 20.04
Source or binary build? Source, ign-gazebo6, 721bc35

No log to report.

Description
1. Incorrect usage of standard deviation and variance in the normal distribution.
Input configuration for RFComms plugin takes sigma (standard deviation) for parametrizing normal distribution (see here).
The structure for holding distribution parameters (RFPower) is defined with mean and variance (see here).
In the structure initialization, sigma is given instead of variance (see here), and later when initializing random number generator with normal distribution parameters, a square root is taken from this variance which is actually sigma leading to unexpected values (see here).
Proposed solution: In the structure initialization, set the actual value of variance, i.e., sigma squared, like
- return {_txPower - kPL, this->rangeConfig.sigma};
+ return {_txPower - kPL, pow(this->rangeConfig.sigma, 2.)};

2. Incorrect calculation of bandwidth limitation
Bandwidth limitation for sending messages is defined here. It's probably the easiest to see the problem with an example.
Let's assume we are trying to send a message with the size of 10 bytes (80 bits) every second. That makes our desired bandwidth 80 bits/second. If the maximum bit-rate is set to the same 80 bits/second or a little more, say 90 bits/second, messages should be transmitted as intended.
The plugin keeps track of the time and size of each message sent in the array _txState.bytesSent. Every time we attempt to send a message, the plugin goes through the list and removes all messages in that array that are older than the epoch length (1 second). Consequently, the total number of bytes sent in the current epoch is updated for each removed message.
So, let's say we are trying to send a message at time t=3.000 s. This time is stored as double now = _txState.timeStamp;. Let's say that in _txState.bytesSent we have the following list of past messages:
// {timeStamp, sizeInBytes}
{1.000, 10},
{2.000, 10}

In the while loop, the plugin is removing each message for which _txState.bytesSent.front().first < now - this->epochDuration, and is also updating _txState.bytesSentThisEpoch.
now - this->epochDuration == 2.000 and time of the first message in _txState.bytesSent is 1.000 so it gets removed. However, for the second message, the plugin is checking the condition 2.000 < 2.000 which of course is false, and this message does not get removed. The size of the message sent at t=2.000 s and our new message at t=3.000 s give that _txState.bytesSentThisEpoch is 20 bytes (160 bits) which is more than the defined maximum.
In conclusion, we are sending messages precisely at the bandwidth limit or even a little bit below it, but the plugin forcefully drops some of them because it thinks we are above the limit.
Proposed solution: Use "<=" instead of "<" in time comparison, like
- _txState.bytesSent.front().first < now - this->epochDuration)
+ _txState.bytesSent.front().first <= now - this->epochDuration)

The same thing should be done on the receiving end.
Note: I know that float comparison is a little tricky and that two seemingly equal floats do not necessarily compare to equal, but I have confirmed the described problem happens in the simulation, and changing the comparison fixes the problem.
3. (Possibly) incorrect message size calculation.
My use case for this plugin comes from the MBZIRC competition and the idea was to simulate realistic wireless communication. The teams had to make sure to serialize and compress their messages and manage possible requirements for multi-hopping. From the description on the wiki I understand that the actual payload (our serialized message) is stored in the data field of the Dataframe message. Other fields of that message are used so that Ignition can correctly apply the communication model and transmit the message to the correct robot.
From this, I would say that the size of the data field is what should actually influence the communication model. However, in the communication model, the size of the whole message is used (see here)
#if GOOGLE_PROTOBUF_VERSION < 3004001
          itSrc->second, itDst->second, msg->ByteSize());
#else
          itSrc->second, itDst->second, msg->ByteSizeLong());
#endif

Furthermore, the data field contains the already serialized message in form of a byte array. This means that getting the number of bytes in a message we are attempting to send should be as simple as just getting the length of an array.
Proposed solution:
- itSrc->second, itDst->second, msg->ByteSizeLong());
+ itSrc->second, itDst->second, msg->data().size());

Again, I have implemented that change and I can confirm that the plugin behaves as expected then. The only thing I'm not sure about is the difference in protobuf version, i.e., can the same change be used regardless of the protobuf version or should I use some different function? I would say yes because it seems that bytes field of protobuf message always gets converted to std::string in C++, regardless of version.
Final remarks
I know these are small changes but for precise experiments with limited communication, they could lead to strange and unexpected behavior. Since I have already implemented points 1. and 2., I would be happy to open a pull request, and with a confirmation of the logic behind point 3., I could finalize that one as well.

Thanks for the detail report! I'll come back soon with my analysis.

The three points look reasonable to me. According to (3), I don't think we need to check the protobuf version anymore. I'm happy to review the pull request when you submit the patch. Thanks!

Closed by #1743

authors: caguero mjcarroll mkrizmancic

repo: gazebosim/gz-sim


text:
Parse URDF mimic values into SDFormat 1.11

Desired behavior
Support for mimic constraints has been added to SDFormat 1.11 with the //joint/axis/mimic element. This syntax was chosen to match the URDF joint mimic syntax, but our URDF parser doesn't yet support mimic constraints. It should be straightforward to add.
Alternatives considered

Implementation suggestion

Additional context

I think the parser just needs the changes in https://github.com/gazebosim/sdformat/commit/028540c4d26a5d4eb95f36afb412240abdd031e4
It just needs a test with an example URDF file with joint mimics

see #1333

fixed in https://github.com/gazebosim/sdformat/pull/1333

repo: gazebosim/sdformat


text:
php-cs-fixer fix

I rocommend use https://styleci.io/

Nice clean up, thanks. Will check out StyleCI when I get some time.

It's very simple and fast. You just create account and select yours repsoitory.
Realy is an useful service. :)

repo: gazsp/baum


text:
🛑 GitLab is down

In 9ff4116, GitLab ($CHECK_GITLAB) was down:

HTTP code: 502
Response time: 562 ms

Resolved: GitLab is back up in 691edf3 after 12 minutes.


text:
resource search sorting

at time the sorting on resource search is slightly off
from website

Identifying aquatic invertebrates using nex ... from Contentful
created
Yesterday, 3:38 PM
updated
Yesterday, 6:53 PM
published
Yesterday, 6:53 PM

Developing a common structural framework for d... from Contentful
created
4 hours ago
updated
8 minutes ago
published
8 minutes ago

elastic search query (showing the one from yesterday above the one from 4 hours ago)
NB: Using "origin": "2017-09-29T15:13:00.196Z" instead of now/d returns the expected result
{
	"size": 2,
    "query": {
        "function_score": {
            "functions": [
                {
                    "gauss": {
                        "createdAt": {
                            "origin": "now/d",
                            "scale": "7d",
                            "decay": 0.75
                        }
                    },
                    "weight": 10
                }
            ],
            "query": {
                "bool": {
                    "must": [
                        {
                            "term": {
                                "searchable": "true"
                            }
                        },
                        {
                            "term": {
                                "contentType": "dataUse"
                            }
                        }
                    ]
                }
            }
        }
    }
}

Elastic search response (some keys removed)
{
    "took": 7,
    "timed_out": false,
    "_shards": {
        "total": 49,
        "successful": 39,
        "failed": 10,
        "failures": [
            {
                "shard": 0,
                "index": "country",
                "node": "V-MvNfiRRViOgV_7aPTP5g",
                "reason": {
                    "type": "parsing_exception",
                    "reason": "unknown field [createdAt]",
                    "line": 1,
                    "col": 0
                }
            }
        ]
    },
    "hits": {
        "total": 227,
        "max_score": 0.13189553,
        "hits": [
            {
                "_index": "datause1506689838917",
                "_type": "content",
                "_id": "3gCOvQwphmS6kkKuWQKq2W",
                "_score": 0.13189553,
                "_source": {
                    ...
                    "title": {
                        "en-GB": "Identifying aquatic invertebrates using next generation sequencing"
                    },
                    "searchable": true,
                    "createdAt": "2017-09-28T14:37:39.196Z",
                    "contentType": "dataUse",
                    "homepage": true,
                    "updatedAt": "2017-09-28T16:53:50.631Z"
                }
            },
            {
                "_index": "datause1506689838917",
                "_type": "content",
                "_id": "3zGBIwOLH2QsM6IcUm0ecW",
                "_score": 0.13180104,
                "_source": {
                    "title": {
                        "en-GB": "Developing a common structural framework for data papers"
                    },
                    "searchable": true,
                    "createdAt": "2017-09-29T12:34:33.587Z",
                    "contentType": "dataUse",
                    "homepage": true,
                    "updatedAt": "2017-09-29T12:56:30.688Z"
                }
            }
        ]
    }
}

Elastic search full response
{
    "took": 7,
    "timed_out": false,
    "_shards": {
        "total": 49,
        "successful": 39,
        "failed": 10,
        "failures": [
            {
                "shard": 0,
                "index": "country",
                "node": "V-MvNfiRRViOgV_7aPTP5g",
                "reason": {
                    "type": "parsing_exception",
                    "reason": "unknown field [createdAt]",
                    "line": 1,
                    "col": 0
                }
            }
        ]
    },
    "hits": {
        "total": 227,
        "max_score": 0.13189553,
        "hits": [
            {
                "_index": "datause1506689838917",
                "_type": "content",
                "_id": "3gCOvQwphmS6kkKuWQKq2W",
                "_score": 0.13189553,
                "_source": {
                    "summary": {
                        "en-GB": "Using large-scale DNA barcode sequencing to effectively identify species of samples archived for up to 12 years "
                    },
                    "primaryImage": {
                        "file": {
                            "en-GB": {
                                "url": "//images.contentful.com/uo17ejk9rkwj/3mBCu5D8mQ0GEMGsMu2Sm8/262e6612b61efd1d3ef962075b309241/original__2_.jpg",
                                "details": {
                                    "size": 927874,
                                    "image": {
                                        "width": 2048,
                                        "height": 1366
                                    }
                                },
                                "fileName": "original (2).jpg",
                                "contentType": "image/jpeg"
                            }
                        },
                        "description": {
                            "en-GB": "Xanthagrion erythroneurum by Ry Beaver via iNaturalist. Photo licensed under CC BY-NC 4.0."
                        },
                        "title": {
                            "en-GB": "Xanthagrion erythroneurum"
                        }
                    },
                    "citation": "Carew ME, Metzeling L, St Clair R and Hoffmann AA (2017) Detecting invertebrate species in archived collections using next-generation sequencing. Molecular Ecology Resources. Wiley-Blackwell. Available at: https://doi.org/10.1111/1755-0998.12644.",
                    "topics": [
                        "ECOLOGY"
                    ],
                    "countriesOfResearcher": [
                        "AU"
                    ],
                    "title": {
                        "en-GB": "Identifying aquatic invertebrates using next generation sequencing"
                    },
                    "body": {
                        "en-GB": "In studies of aquatic invertebrate biodiversity, restraints on time and expenses often mean that communities are only identified to family levels. Archived samples stored in ethanol may, however, be identified more specifically at a later stage.\n\nThis study uses next-generation sequencing (NGS) of DNA barcodes to systematically identify species in archived macroinvertebrate samples from two sites in Australia, some of which had been stored up to 12 years at room temperature. Despite anticipated DNA degradation, the researchers were able to amplify partical DNA barcodes from most samples, and using these, identify the species often by more than one amplified sequence.\n\nNot all families had identifiable species, however, when the researchers compared the number of identified species per family with estimated equivalents in GBIF, they revealed potential gaps in the barcode library that could explain the lack of identified species.\n"
                    },
                    "type": "Entry",
                    "searchable": true,
                    "space": {
                        "sys": {
                            "type": "Link",
                            "linkType": "Space",
                            "id": "uo17ejk9rkwj"
                        }
                    },
                    "gbifRegion": [
                        "OCEANIA"
                    ],
                    "revision": 2,
                    "createdAt": "2017-09-28T14:37:39.196Z",
                    "countriesOfCoverage": [
                        "AU"
                    ],
                    "audiences": [
                        "GBIF_NETWORK",
                        "DATA_USERS"
                    ],
                    "primaryLink": {
                        "id": "19Fbu6S8gAE4s8YEsYGeES",
                        "label": {
                            "en-GB": "Original article (may require subscription)"
                        },
                        "url": {
                            "en-GB": "https://doi.org/10.1111/1755-0998.12644"
                        }
                    },
                    "id": "3gCOvQwphmS6kkKuWQKq2W",
                    "resourceUsed": "222 families",
                    "contentType": "dataUse",
                    "homepage": true,
                    "updatedAt": "2017-09-28T16:53:50.631Z"
                }
            },
            {
                "_index": "datause1506689838917",
                "_type": "content",
                "_id": "3zGBIwOLH2QsM6IcUm0ecW",
                "_score": 0.13180104,
                "_source": {
                    "summary": {
                        "en-GB": "Describing the structure of data papers through analysis of journals, their templates and guidelines"
                    },
                    "primaryImage": {
                        "file": {
                            "en-GB": {
                                "url": "//images.contentful.com/uo17ejk9rkwj/5SithJUWqs8QWeWYu6ci0o/2b02ececdb678e3559af46a535507dfa/gulls.png",
                                "details": {
                                    "size": 1527953,
                                    "image": {
                                        "width": 1500,
                                        "height": 500
                                    }
                                },
                                "fileName": "gulls.png",
                                "contentType": "image/png"
                            }
                        },
                        "description": {
                            "en-GB": "Map excerpt from data paper by Stienen et al. in Zookeys describing a bird tracking dataset."
                        },
                        "title": {
                            "en-GB": "Map excerpt from data paper \"GPS tracking data of Lesser Black-backed Gulls and Herring Gulls breeding at the southern North Sea coast\" by Stienen et al published 2016 in Zookeys."
                        }
                    },
                    "citation": "Chen Y-N (2017) An analysis of characteristics and structures embedded in data papers: a preliminary study. Libellarium: journal for the research of writing, books, and cultural heritage institutions. University of Zadar 9(2). Available at: https://doi.org/10.15291/libellarium.v9i2.266.",
                    "topics": [
                        "DATA_PAPER"
                    ],
                    "countriesOfResearcher": [
                        "TW"
                    ],
                    "title": {
                        "en-GB": "Developing a common structural framework for data papers"
                    },
                    "body": {
                        "en-GB": "Many institutions, including GBIF, encourage sharing of research data through [data papers](/data-papers) that extend metadata in a way that mirrors the traditional scientific publication model. Dozens of journals now accept data papers, however, as highlighted by this study, they lack a common standard.\n\nBy reviewing submission templates and guidelines from 26 data journals, the authors describe a unifying framework consisting mainly of three distinct components: 1) basic information (e.g. title, abstract, author, etc.), 2) dataset descriptions (i.e. how was data collected, how it formatted, what does it cover, etc.), and 3) relationships (i.e. links and references). \n\nThe authors use the proposed framework to highlight the successful case of mapping metadata directly derived from the GBIF [Integrated Publishing Toolkit (IPT)](/ipt) onto a data paper template that can be edited and submitted to a journal for consideration.\n\nAs of September 2017, authors have contributed to more than [50 data papers describing datasets published in GBIF](/resource/search?contentType=literature&topics=DATA_PAPER&relevance=GBIF_PUBLISHED)."
                    },
                    "type": "Entry",
                    "searchable": true,
                    "space": {
                        "sys": {
                            "type": "Link",
                            "linkType": "Space",
                            "id": "uo17ejk9rkwj"
                        }
                    },
                    "gbifRegion": [
                        "ASIA"
                    ],
                    "revision": 2,
                    "createdAt": "2017-09-29T12:34:33.587Z",
                    "audiences": [
                        "GBIF_NETWORK",
                        "DATA_USERS",
                        "DATA_HOLDERS"
                    ],
                    "primaryLink": {
                        "id": "62GlLSdFN6YMSsMqIEiyIq",
                        "label": {
                            "en-GB": "Original article"
                        },
                        "url": {
                            "en-GB": "https://doi.org/10.15291/libellarium.v9i2.266"
                        }
                    },
                    "id": "3zGBIwOLH2QsM6IcUm0ecW",
                    "contentType": "dataUse",
                    "homepage": true,
                    "updatedAt": "2017-09-29T12:56:30.688Z"
                }
            }
        ]
    }
}

Using "origin": "2017-09-29T15:13:00.196Z" returns the expected result

Looks like an issue of the query being now/d which is just the day, not the full time

closed by https://github.com/gbif/portal16/blob/fe03cae5dcbb4ecc79f266e5d435a32fb57e4da7/app/controllers/api/resource/search/resourceSearch.js#L204


text:
Wrong Bracket and Underscore Background Highlighting + Fix

Hello,
First of all, thank you so much for your work on this theme, I love it ! :)
I just want to open this issue to help others who maybe have the same problem as I am.
The problem is that when you use vim.lsp.buf.hover() and if the text in that hover window has an underscore or a closing bracket, the background will be red.
These are a few examples:

I found a reddit post on the neovim subreddit in which the OP used a different theme and have the same issue as I was. It seemed like, according to the people in the comment, neovim (as of version v0.9.5 - stable) still doesn't use tree-sitter for the syntax highlighting in vim.lsp.buf.hover() which resulted in this.
I can't confirm if this is really the cause as I'm not too familiar with neovim internals so please delete this issue if you think it was something else causing it.
The fix is to install neovim nightly, I'm on version NVIM v0.10.0-dev-3085+gb024643ca and this issue went away completely on its own using the same config with this Nord theme.
Hope this helps for anyone else who also has this issue.
Keep up the good work @gbprod ! You can close this issue if you like.

Closing this issue as it is fixed in the latest release of neovim v0.10.0 stable

license: WTFPL


text:
Raw/TO_JSON method

is there a method to access the raw JSON response in the module, especially for a domain object?

I will look at adding a TO_JSON() method to Net::RDAP::Base, so you can call JSON::encode($rdap) and have it work. In the meantime here are some alternatives:
1. Convert the object to a hash and then encode a reference to that hash:
my %domain = %{Net::RDAP->new->domain("example.com")};
my $json = JSON::XS->new->encode(\%domain);

2. Use Net::RDAP::Registry with Data::Mirror:
my $json = Data::Mirror::mirror_str(Net::RDAP::Registry->get_url(Net::DNS::Domain->new("example.com")));

Thanks for that.  Tying in with my other question you answered already, it looks like the corollary to the second option for preserving the raw registrar response would still involve iterating on the array created using the links() method to ID the element (e.g., $link) with rel->'relative' and then call Data::Mirror on that:
my $json = Data::Mirror::mirror_str($link->href);

Apologies for all the questions, I'm just trying to figure out whether I'm better of encoding as JSON or pulling a second response to treat as raw unless/until you implement TO_JSON() and making sure I understand the methods in the module helps a ton.  Thanks so much.

I've just released Net::RDAP v0.22 which adds the TO_JSON() method to Net::RDAP::Base.

Hey thanks a ton!

authors: gbxyz markushopkins

repo: gbxyz/perl-net-rdap


text:
Tarjetas

Se diferencias tarjetas para:
noticias , que peuden estar compuestas por Imágen, Etiquetas, H3, Body 1, Caption
para acceder a categorias secundarias estan compuestas por un h3 y  body 1
Para acceder a info importante o destacado imagen, h3 y body 1
Para acceder a info institucional que tienen un h3 y un body 1
Para acceder a categorias principales estan compuesta por h3 y body 1

@mathiassassone1 @aloyber @SantiBugdadi  , ajustar la ficha de adobe para poder materializar en obelisco

repo: gcba/estandares


text:
Update Travis to use the latest available build environment

Travis has recently announced supported for container-based instances of Ubuntu 14.04 LTS (an update over the currently instances of Ubuntu 12.04 LTS). We should update our Travis configuration to make use of the new environments.
This may also help with the performance of tests in Travis due to decreased image boot time.

Merged into develop.

repo: gchq/Gaffer


text:
Add an OperationChainHandler for the FederatedStore

Implement the handling of OperationChains on a per-graph basis, delegating the chain to each graph, and storing each output in a ChainedIterable.

Since each Operation now has its' own Map of Options, how should the Map from each Operation be handled in relation to the overall OperationChain? If the Map of each Operation differs, should this be ignored/merged/handled some other way?

Merged into develop.


text:
Improve Modularisation

MagmaCore on the develop branch is a Java9 module but not a maven module and this can be improved. Some suggested changes are:

Break MC into more Java9 modules and build them as maven modules, e.g.:

A core/main/lib module with only the code needed by clients of the library, which only exports the services package. (difficult to name this one given that magma-core.core is a bit odd)
An examples module with the demo code - this should only depend on the services exported by the main module.
An app module that contains just the Spring Boot server for the example code (if it is to be separated from the examples module)

The only module I care about is the one that exports the services package - it shouldn't contain the demo code or the Spring Boot server. I also don't mind how the modules are named.

Looks like this can be closed now.

repo: gchq/MagmaCore


text:
Submitting two bulk import jobs with same id overwrites the old one #894

Resolves #894
Filepaths for storing jobs in S3 changed

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.

repo: gchq/sleeper


text:
🛑 Domaine de Poulaines is down

In f4001a7, Domaine de Poulaines ($DOMAINE_POULAINES) was down:

HTTP code: 503
Response time: 573 ms

Resolved: Domaine de Poulaines is back up in 58d1388 after 20 minutes.

repo: gcommeuneidee/upptime


text:
Section-by-section dynamic rendition?

I've been really enjoying the theme!
This is a feature request (which I think doesn't exist yet).
Right now the sections are displayed continuously. We can change the spacing between sections with [design.spacing]. However, it would be great to have a different option to render the sections, to put in config.toml for example:

Only the first section is shown when the site is opened
When a person scrolls and reaches the bottom of the first section, then the second section opens up and the header of the second section is on top of the page
This goes on and goes backwards as well

Right now, even if you use the menu buttons to navigate between sections, you don't get the section header to be on top of the page. It's sometimes very low on the page, below the midpoint in many cases.

Thanks for your suggestion. Hugo is designed to generate the full page and is not well suited to this task. However, Academic is open source and can be modified to attempt to meet your requirements.

@gcushen would you mind sharing with me how I can go about doing something like that myself then? What do I need to modify or add in this case?
Thank you.

repo: gcushen/hugo-academic


text:
Allow user to establish a default theme mode

In a recent version of Academic, I noticed that the default theme mode switched from Light to Automatic. I'm not a huge fan of the Dark mode so I'd like to ensure that this always defaults to Light instead of Automatic. Is there a way that I can enforce this? If not, would it be possible to allow this to be configurable?

I still think this would be a useful feature in my opinion. I'd be happy to help if possible.

👋

The automatic mode represents the user's preferences and was added due to a number of requests for it. It can be disabled by disabling day/night mode in params.toml and setting the specific theme that you would like the visitor to see. There's no plan to offer further options for disabling it. Since Academic is open source, there's always the option to override the JS if the built-in features don't meet your specific requirements.

authors: gcushen marpaia


text:
Resizing avatar image

Feature Request
please allow resizing the avatar image.

Yes please!

Are you referring to the avatar in the About widget?
What kind of resizing options are you looking for - to make it much larger?

I am not completely sure I fully understand all the hugo-academic terminologies, so please forgive me if I am asking for something stupid or something already out there, but I want to change (reduce) the size of my profile picture, the one that appears on the left hand side at the top right above the name.

Are you referring to the avatar in the About widget?
What kind of resizing options are you looking for - to make it much larger?

I am referring to avatar in About widget. I want to reduce the size of avatar.

Is there any way to customize the shape of avatar image in the About widget?
I'm looking to make the shape rectangle (with width & length of my choice), instead of circle or square.


text:
Incomplete or empty template error with theme/partials/article_metadata.html

Hi,
I'm exploring if I can migrate my blog from jekyll to hugo. Your template looks awesome but I'm getting an error that I'm hoping you have some clue as to what could be causing it.
The repo for my jekyll blog is at https://github.com/lcolladotor/lcolladotor.github.com. I can successfully (or so it would seem) run hugo import jekyll . ../hugoblog/ (when at the cloned repo). Now, when I try to use hugo-academic as the theme I get the following error:
$ hugo server --theme=academic
Started building sites ...
ERROR: 2017/01/19 00:50:57 general.go:236: theme/partials/article_metadata.html is an incomplete or empty template
Built site for language en:
0 draft content
0 future content
0 expired content
135 regular pages created
167 other pages created
0 non-page files copied
190 paginator pages created
150 tags created
13 categories created
total in 207 ms
Watching for changes in /Users/lcollado/Dropbox/Code/hugoblog/{data,content,layouts,static,themes}
Serving pages from memory
Web Server is available at http://localhost:1313/ (bind address 127.0.0.1)
Press Ctrl+C to stop

I do not get that error when using themes/academic/exampleSite/* as described in the docs for your theme. If I diff the two article_metadata.html files, they are identical. So it doesn't sound to me like it's incomplete or empty as the error describes. My main guess is that hugo import jekyll is not working completely properly. But I don't know if that's the case or something else is going on. And like I said, I'm hoping you have an idea as to what is going on.
Thanks,
Leo

$ hugo version
Hugo Static Site Generator v0.18.1 BuildDate: 2016-12-29T12:12:41-05:00

Good to see that you're using the latest version of Hugo. If you can provide a link to your Hugo repo aswell, someone might be able to check for any obvious file structure issues.
Your best bet is probably posting this on the Hugo Forums though. Also, there are many related posts there on this topic of Jekyll conversion, which might be helpful.

Ok, so it looks like a jekyll conversion issue and not something related to the hugo-academic theme then?
Thanks! I'll post at the Hugo Forums.

It appears it might be a general Hugo problem with your file structure and or how you installed the Academic theme, probably not directly related to the Jekyll conversion but possibly. It would be helpful to see your Hugo repo for checking those things.

Ok. Here is the exact sequence of commands that reproduces the problem:
Un-evaluated code:
git clone git@github.com:lcolladotor/lcolladotor.github.com.git
hugo import jekyll lcolladotor.github.com hugoblog
cd hugoblog
git clone https://github.com/gcushen/hugo-academic.git themes/academic
hugo server --theme=academic
hugo version
git clone https://github.com/spf13/herring-cove.git themes/herring-cove
hugo server --theme=herring-cove

Evaluated code
$ git clone git@github.com:lcolladotor/lcolladotor.github.com.git
Cloning into 'lcolladotor.github.com'...
remote: Counting objects: 1027, done.
remote: Total 1027 (delta 0), reused 0 (delta 0), pack-reused 1027
Receiving objects: 100% (1027/1027), 12.31 MiB | 6.66 MiB/s, done.
Resolving deltas: 100% (519/519), done.
Checking connectivity... done.
$ hugo import jekyll lcolladotor.github.com hugoblog
Importing...
WARN: 2017/01/19 10:35:12 import_jekyll.go:390: Failed to parse filename '.DS_Store': filename not match. Skipping.
WARN: 2017/01/19 10:35:12 import_jekyll.go:390: Failed to parse filename '.DS_Store': filename not match. Skipping.
Congratulations! 137 post(s) imported!
Now, start Hugo by yourself:
$ git clone https://github.com/spf13/herring-cove.git hugoblog/themes/herring-cove
$ cd hugoblog
$ hugo server --theme=herring-cove

$ cd hugoblog/
$ git clone https://github.com/gcushen/hugo-academic.git themes/academic
Cloning into 'themes/academic'...
remote: Counting objects: 1232, done.
remote: Compressing objects: 100% (54/54), done.
remote: Total 1232 (delta 14), reused 0 (delta 0), pack-reused 1175
Receiving objects: 100% (1232/1232), 2.48 MiB | 0 bytes/s, done.
Resolving deltas: 100% (680/680), done.
Checking connectivity... done.
$ hugo server --theme=academic
Started building sites ...
ERROR: 2017/01/19 10:35:32 general.go:236: theme/partials/article_metadata.html is an incomplete or empty template
Built site for language en:
0 draft content
0 future content
0 expired content
135 regular pages created
167 other pages created
0 non-page files copied
190 paginator pages created
150 tags created
13 categories created
total in 275 ms
Watching for changes in /Users/lcollado/Dropbox/Code/hugoblog/{data,content,layouts,static,themes}
Serving pages from memory
Web Server is available at http://localhost:1313/ (bind address 127.0.0.1)
Press Ctrl+C to stop
^C
$ hugo version
Hugo Static Site Generator v0.18.1 BuildDate: 2016-12-29T12:12:41-05:00

and well, doesn't work:

Note that:
$ git clone https://github.com/spf13/herring-cove.git themes/herring-cove
Cloning into 'themes/herring-cove'...
remote: Counting objects: 159, done.
remote: Total 159 (delta 0), reused 0 (delta 0), pack-reused 159
Receiving objects: 100% (159/159), 6.56 MiB | 3.24 MiB/s, done.
Resolving deltas: 100% (62/62), done.
Checking connectivity... done.
$ hugo server --theme=herring-cove
Started building sites ...
Built site for language en:
0 draft content
0 future content
0 expired content
135 regular pages created
167 other pages created
0 non-page files copied
0 paginator pages created
150 tags created
13 categories created
total in 131 ms
Watching for changes in /Users/lcollado/Dropbox/Code/hugoblog/{data,content,layouts,static,themes}
Serving pages from memory
Web Server is available at http://localhost:1313/ (bind address 127.0.0.1)
Press Ctrl+C to stop

does seem to work:

I don't see console errors for both themes.
Since the above code reproduces the problem and it's all public, I don't think that you need a repo with the contents of hugoblog. If you think otherwise, I'll upload them to a gist.
Best,
Leo

I ask for your Hugo repo because there are many important things that I cannot see here. For example, it appears that you didn't follow all the installation steps for Academic that are in the Github Readme. Academic is a framework rather than just a theme, so you need to follow Academic's installation guide and copy/edit the config config.toml etc. from the example site.

Ahhhhh... I see. You are referring to https://github.com/gcushen/hugo-academic/blame/master/README.md#L32. I'm obviously new to hugo and I didn't understand why cloning the theme wasn't working (like it works for other themes). I see that's why you refer to Academic as a framework.
I also didn't understand why you wanted the Hugo repo, since the commands above would just give you that. But I see now that there's a lot of editing config and content files to get Academic to display the content, making sense why you would want to see the Hugo repo (as it wouldn't be easy to reproduce all my edits).
I've played a little bit more after reading in more detail http://gcushen.github.io/hugo-academic-demo/post/getting-started and looking at the exampleSite files. Looks like I can get it to work.
I suggest highlighting that Academic is a framework, not a theme which requires editing configuration files in the README.
I'll close this issue since I believe I can get Academic to work properly now.
Best,
Leo

I just wanted to let you know that I was able to get everything to work. Thanks!
See https://github.com/lcolladotor/lcolladotor.github.com/commit/a460f5502343800b0de5f71f6c652a5f81c3b165 for the details and the live website at http://lcolladotor.github.io/

@lcolladotor great to hear that you got it working! I just took a quick look at your site and wow... nice to see a site with so much interesting content! Since you have so much content and you're using a lot of the advanced features of Academic, I would love to hear from you if you have any more suggestions or feedback - just open an issue on Github, tweet me at GeorgeCushen, or send an email via the link on my website :)

authors: gcushen lcolladotor


text:
How to Integrate Vue-Firestore to Quasar-app Framework (VueJS) ?

Hi I'm a newbie on quasar framework and would like to know if you have an idea how I can add this awesome vue-firestore library to my project folder? Working on web-app. :D

have a look at app plugins
http://quasar-framework.org/guide/app-plugins.html
I do it like this:
`
// /src/plugins/firestore.js
// import something here
import firebase from 'firebase'
import '@firebase/firestore'
var fs = initFirestore()
// leave the export, even if you don't use it
export default ({ app, router, Vue }) => {
var firebaseApp
if(!firebase.apps.length){
firebaseApp = firebase.initializeApp(config)
} else {
firebaseApp = firebase.app()
}
}
function initFirestore(){
const config = {
apiKey: "",
authDomain: "",
databaseURL: "",
projectId: "",
storageBucket: "",
messagingSenderId: ""
}
const settings = {
timestampsInSnapshots: true
}
if(!firebase.apps.length){
	firebase.initializeApp(config)
} else {
	// F = firebase.app()
}
var fs = firebase.firestore() // firestore
fs.settings(settings)
fs.SetOptions = {merge: true}
return fs

}`
And then in quasar.conf.js you'll put the string 'firestore' into your plugins array
module.exports = function(ctx) { return { plugins: [] } }
DAMN 19 days!! Sorry no one replied! That's a shame :'( Go over to discord quasar
https://discordapp.com/channels/415874313728688138
There's heaps of active people there.
I don't even use the vue firestore wrapper but I might end up needing it.

authors: heliosnarcissus lopugit

repo: gdg-tangier/vue-firestore


text:
[Feature]Navbar added

Related Issue
resolved  issue #2
added a navbar
Proposed Changes
-first design of Navbar added.
Screenshots

@PankajKumar1947 You're supposed to have the issue assigned to yourself first. I cannot merge this as others are working on it already.

@PankajKumar1947 Please make sure you're getting an issue assigned first before you start working on anything or it will be a painful waste of time.

repo: gdsc-aec-india/gdsc-aec-web


text:
Changed gdsc logo on contact page and fixed responsiveness error of card

Changed the logo to official gdsc logo. Issue #65

Fixed the responsiveness bug (UI Fix) of the card on contact us page for mobile view.

This refers to Pull request #69. Let me know if this is alright.

@pooranjoyb have made the changes. Kindly review it and let me know.


text:
Add generic loss function optimiser with simulator support

Is your feature request related to a problem? Please describe.
Currently, gdsfactory appears to support SAX and MEEP optimisers. I suggest adding an example or support for a "generic optimisation loop", such that, a user would have to specify their geometry, search space, provide a loss function $\mathcal{L}$, methods for running the simulations and fetching their data.
In photonics, inverse design for individual elements appears popular. This approach is most likely very inefficient for that purpose. Instead, this framework should show how to combine simulation outputs and constraints from arbitrary sources for optimisation. Additionally, the choice of optimiser should be generic as well.
Describe the solution you'd like
I've found Ray Tune great for this purpose in not only hyperparamater selection but as a black-box optimiser for physics problems. Additionally, it already supports many other optimiser libraries, including Ax, Optuna, and scikit-optimize. See Search algorithms for details.
I'll try providing a prototype example for this.

yes Niko, a section of generic optimization sounds like a great idea
we can then apply it to different simulators and components in the docs

Closed after merging d851c46753b0390db6023269418f70605ece452b from #1137.

authors: joamatab nikosavola

repo: gdsfactory/gdsfactory


text:
fix femwell mode caching

How could we fix the docs issues for femwell ?

Looks like it's the Omegaconf not handling numpy floats issue in the femwell caching

I was able to fix the first such issue (see my branch here), but now we have numpy floats in the cross-section parameters causing the same issue

yes, there was an issue with omegaconf
now the issue is with the cache,
    filtered_layerstack = LayerStack(
        layers={
            k: get_layer_stack().layers[k]
            for k in (
                "core",
                "clad",
                "slab90",
                "box",
            )
        }
    )

    filtered_layerstack.layers["core"].thickness = 0.2

    resolutions = {
        "core": {"resolution": 0.02, "distance": 2},
        "clad": {"resolution": 0.2, "distance": 1},
        "box": {"resolution": 0.2, "distance": 1},
        "slab90": {"resolution": 0.05, "distance": 1},
    }
    lams, basis, xs = compute_cross_section_modes(
        cross_section="rib",
        layerstack=filtered_layerstack,
        wl=1.55,
        num_modes=4,
        order=1,
        radius=np.inf,
        mesh_filename="mesh.msh",
        resolutions=resolutions,
        overwrite=False,
        with_cache=True,
    )
    mode_solver.plot_mode(
        basis,
        np.real(xs[0]),
        plot_vectors=False,
        colorbar=True,
        title="E",
        direction="y",
    )

Returns
AttributeError: 'numpy.ndarray' object has no attribute 'split'

Thank you Simon!

authors: joamatab simbilod


text:
Query sample data against the "invariant" nodegroups

I believe @cuddihyge mentioned that he and @glguy have developed two sets of nodegroups:

One that checks for patterns that should be present in any valid data
One that checks for patterns that should never occur in valid data

We should run these against the Turnstile data in CI.
@glguy can you point me to those nodegroups so I can get this started?

User will select which MIL-STD-881 appendix to load - so there will no name clash.

authors: AbhaMoitra langston-barrett

repo: ge-high-assurance/RACK


text:
🛑 EC3 COM is down

In e094ab8, EC3 COM ($SITE_EC3_COM) was down:

HTTP code: 0
Response time: 0 ms

Resolved: EC3 COM is back up in a5db893 after 9 minutes.

repo: gedesco-git/uptime


text:
Correct Regex? I want to blacklist this entire website, but nothing I try works.

I have a website like this https://app.chatwebsite.com/room/lounge/randompersonsname
I want to disable Video Speed Controller for that entire website so that the control box does not show up on the videos.
I wanted to do something simple like this:
*chatwebsite.com*
https://app.chatwebsite.com*
but that didn't work.
So I tried figuring out Regex and tried:
https://app.chatwebsite.com/.
https://app.chatwebsite.com/.*
/?(?<=chatwebsite.*)$
and some others, but they also did not work.
What is the correct format?

Hello?

@gediminasel  - Can I please get some help? I just want to completely blacklist this one entire website so that the controller never shows up on it. But I don't know Regex and my guess attempts all failed. This would probably take you five seconds to answer. But I'm waiting months with no reply. Please help.

Hi, have you tried simply app.chatwebsite.com or chatwebsite.com?

Hi, have you tried simply app.chatwebsite.com or chatwebsite.com?

Awesome, that works. Thank you!

repo: gediminasel/videospeed-firefox


text:
No module named 'geojson'

Run on colab. After updating to geemap-0.20.5-py2.py3-none-any.whl, this error appeared. Could you please confirm if this is related to the fresh changes with required libraries?
landcover_google_sample.csv
label_points = pd.read_csv(sample_csv)
LABEL_DATA = geemap.df_to_ee(label_points,
                              latitude=label_points.columns[1],
                              longitude=label_points.columns[0])

[/usr/local/lib/python3.9/dist-packages/geemap/common.py](https://localhost:8080/#) in df_to_geojson(df, out_geojson, latitude, longitude, encoding)
   1161     """
   1162
-> 1163     from geojson import Feature, FeatureCollection, Point
   1164
   1165     if out_geojson is not None:

ModuleNotFoundError: No module named 'geojson'

Yes, geojson is now an optional dependency. You can use pip install geemap[extra] or pip install geojson. We reduced the number of required dependencies to see if geemap can potentially be accepted by the Google Colab team. If it is off the table, we might move some optional dependencies back to required.

repo: gee-community/geemap


text:
Dynamic sop(team)  ,  instead of a given sop(team) , should be designed

sometimes , sop(team) is changing soon.
for example , if I want to design a text classification model
my sop(team) might only be Engineer + Project Manager + boss + QA
Different user request , will lead to different sop(team)
Different sop(team)  , will lead to different code repo dynamically

In a real-life scenario, you will have a team and distribute requirements freely, activating each member dynamically. In 1.0 we will see this feature.

authors: CoderYiFei geekan

repo: geekan/MetaGPT


text:
import error

it says,
ImportError no module named crypt:

#update
i fixed this issue by using fcrypt modlue ( it is same as crypt, written for windows, as crypt don't work on windows)
but,now it is saying ->
.
no such file or directory 'passwords.txt'
.
.
(sorry i am new to programming, and i am starting with pyhon as my first language..i admit i know a little)

Apologies for the delay, did you work this out in the end?
Regards
Craig
On 6 Mar 2015, at 18:04, Chander Mohan notifications@github.com wrote:

#update
i fixed this issue by using fcrypt modlue ( it is same as crypt, written for windows, as crypt don't work on windows)
but,now it is saying ->
.
no such file or directory 'passwords.txt'
.
.
(sorry i am new to programming, and i am starting with pyhon as my first language..i admit i know a little)
—
Reply to this email directly or view it on GitHub.

repo: geekcomputers/Python


text:
Update Google_News.py

Added comment to function and updated print feature using the new format syntax.

Thank you for you contribution to the repo and the community

authors: devtycoon geekcomputers


text:
AI Trainer using OpenCV

Aim

To make an AI Trainer using OpenCV

Details
In this Project on building an AI Trainer using OpenCV and Python. We will use the pose estimation running on the CPU to find the correct points and using these points we will get the desired angles. Then based on these angles we find many gestures including the number of biceps curls. I will write the code in a way that you will be able to find angles between any 3 points with just a single line of code.
@geekquad I am a GSSoC'21 participant and I think this is an interesting python script of the OpenCV domain. Kindly allow me to work on this issue and contribute to this project!

/assign

/assign

Hey @Priyadarshan2000, really appreciate you here.
However, this doesn't match our sentiment. We are not collecting projects.
Rather than we are focusing on having various Image Processing techniques. Thankyou.

repo: geekquad/Image-Processing-OpenCV


text:
Dynamic inventory yaml

Can you provide python code for Ansible dynamic inventory to generate yml inventory file

@sagar-kolli - I have a python inventory script example from the book here: https://github.com/geerlingguy/ansible-for-devops/blob/master/dynamic-inventory/custom/inventory.py
Note that it generates JSON output (which is technically compatible with YAML since JSON is valid YAML), but it's meant to output directly into Ansible's inventory system.
If you want to generate a YAML file with a structure valid for use as a separate inventory file, then you can probably do that using Python and Jinja2.
Otherwise, for other advanced use cases, check out Ansible's documentation on inventory plugins: https://docs.ansible.com/ansible/latest/plugins/inventory.html

authors: geerlingguy sagar-kolli

repo: geerlingguy/ansible-for-devops


text:
The task includes an option with an undefined variable. The error was: 'kubernetes_join_command' is undefined

Following the kubernetes example and I kept getting this error on the geerlingguy.kubernetes : Join node to Kubernetes master task:
fatal: [node1]: FAILED! => {"msg": "The task includes an option with an undefined variable. The error was: 'kubernetes_join_command' is undefined\n\nThe error appears to be in '/home/enda/Documents/ansible-for-devops/kubernetes/roles/geerlingguy.kubernetes/tasks/node-setup.yml': line 2, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n---\n- name: Join node to Kubernetes master\n  ^ here\n"} fatal: [node2]: FAILED! => {"msg": "The task includes an option with an undefined variable. The error was: 'kubernetes_join_command' is undefined\n\nThe error appears to be in '/home/enda/Documents/ansible-for-devops/kubernetes/roles/geerlingguy.kubernetes/tasks/node-setup.yml': line 2, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n---\n- name: Join node to Kubernetes master\n  ^ here\n"}
During this time I was also getting this error on [geerlingguy.kubernetes : Initialize Kubernetes master with kubeadm init and ignore_preflight_errors]:
fatal: [master]: FAILED! => {"changed": true, "cmd": ["kubeadm", "init", "--config", "/etc/kubernetes/kubeadm-kubelet-config.yaml", "--ignore-preflight-errors=all"], "delta": "0:00:00.018542", "end": "2022-04-29 16:26:30.017344", "msg": "non-zero return code", "rc": 1, "start": "2022-04-29 16:26:29.998802", "stderr": "W0429 16:26:30.016270   14047 strict.go:47] unknown configuration schema.GroupVersionKind{Group:\"kubeadm.k8s.io\", Version:\"v1beta2\", Kind:\"InitConfiguration\"} for scheme definitions in \"k8s.io/kubernetes/cmd/kubeadm/app/apis/kubeadm/scheme/scheme.go:31\" and \"k8s.io/kubernetes/cmd/kubeadm/app/componentconfigs/scheme.go:28\"\nno kind \"InitConfiguration\" is registered for version \"kubeadm.k8s.io/v1beta2\" in scheme \"k8s.io/kubernetes/cmd/kubeadm/app/apis/kubeadm/scheme/scheme.go:31\"", "stderr_lines": ["W0429 16:26:30.016270   14047 strict.go:47] unknown configuration schema.GroupVersionKind{Group:\"kubeadm.k8s.io\", Version:\"v1beta2\", Kind:\"InitConfiguration\"} for scheme definitions in \"k8s.io/kubernetes/cmd/kubeadm/app/apis/kubeadm/scheme/scheme.go:31\" and \"k8s.io/kubernetes/cmd/kubeadm/app/componentconfigs/scheme.go:28\"", "no kind \"InitConfiguration\" is registered for version \"kubeadm.k8s.io/v1beta2\" in scheme \"k8s.io/kubernetes/cmd/kubeadm/app/apis/kubeadm/scheme/scheme.go:31\""], "stdout": "", "stdout_lines": []}
A similar error was encountered in this comment: https://github.com/geerlingguy/ansible-for-devops/issues/108#issuecomment-455028251 and the solution at that time was to upgrade to k8s 1.13
To get this working I upgraded to k8s 1.19 and updated the clusterRole api definition to rbac.authorization.k8s.io/v1 and the DaemonSet api definition to apps/v1.
Also had to set the spec.selector for DaemonSet as per https://kubernetes.io/docs/reference/using-api/deprecation-guide/#daemonset-v116
Running using the virtualbox vagrant provider on Fedora 35.

Thank you @hippogriffin I also had the same issue and your comment greatly assisted me.

authors: hippogriffin irontux


text:
Fixes #29 : New http target for the running test

Test running Gitlab targets localhost/users/sign_in which is a redirection (http 302) to a localhost/users/password/edit?reset_password_token=xxx . And unfortunately, the token is a random string.
So I propose to target localhost/users/password/new which is a http 200 return code. And in my opinion it is also good to determine if Gitlab is up and running.

Looks like a good idea to me.

authors: geerlingguy olo-dw

repo: geerlingguy/ansible-role-gitlab


text:
MySQL server problema

Hi, i'm trying to setup the VM using those great repo, but I'm having some problems with mysql.
Anyone has the same problem?
Thank you!

Might be related to #95 ?

Closing as a duplicate of #95 (which seems to be dancing around all the potential issues, but seems mostly environment-related :-/).

See also: https://github.com/geerlingguy/ansible-role-mysql/issues/40 — this seems to be related to a bug in Ansible 1.9.1 (if you downgrade to 1.9.0.1 and re-create your VM, it should be fixed). Hopefully Ansible 1.9.2 is released soon!

authors: davidlukac geerlingguy vinceferro

repo: geerlingguy/drupal-vm