text:
[FP]: Keycloak-services for CVE-2021-3513

Package URl
pkg:maven/org.keycloak/keycloak-common@6.0.1
CPE
cpe:2.3:a:keycloak:keycloak:6.0.1:::::::, cpe:2.3:a:redhat:keycloak:6.0.1:::::::
CVE
CVE-2021-3513
ODC Integration
None
ODC Version
9.1.0
Description
Actual vulnerable component is keycloak-services-6.0.1.jar

Updated the package information
pkg:maven/org.keycloak/keycloak-common@6.0.1

repo: jeremylong/DependencyCheck


text:
Maven mojos 'purge' & 'update-only' aggregator #618

Fix #618

@axel3rd Thanks for this PR - I like the way the invoker tests work. I did move them to a profile as they add a long time to the install (which I use a lot locally). I plan on using this for other tests in the future!
--Jeremy

I did move them to a profile as they add a long time to the install

OK (that's right .. in officials Maven plugins or some other projects, the common practice is to use a run-its profile to execute them, but IMO this is important to run them with travis for PRs or builds).

source: gharchive/pull-request

license_type: permissive

license_source: github-api


text:
Edit Base Schedule Index attribute

I am missing something. During installation of your project I didn't set the correct values for my zones. I've been trying to edit the attribute but it just doesn't seem to stick after a reboot of Home Assistant. Could you tell me the proper location to edit 'Base Schedule Index'? In particular I want to modify;

Number of sprinklers
Flow
Throughput
Reference evapotranspiration
Peak evapotranspiration
Area
Precipitation rate
Base schedule index minutes

Do any of these self recalculate based on the value of the other items? For example, item 1) and 2) give 3). Is 3 automatically calculated?
Thanks in advance.

FAQ: If you want to go back and change your settings afterwards, you can either delete the instance and re-create it or edit the entity registry under config/.storage at your own risk.

You need to provide 1, 2, 3, 4 and 6. 5/7/8 are calculated so you cannot configure them. The UI config you went through the first time automatically calculates 3 for you.

Thank you for the nudge. While editing the core.config_entries file I noticed that the following were listed under options;
"options": {
"lead_time": 0,
"maximum_duration": 1800,
"force_mode_duration": 600,
"show_units": false,
"auto_refresh": true,
"auto_refresh_time": "23:00",
"initial_update_delay": 300,
"coastal": false,
"estimate_solrad_from_temp": true
},
All of the items are configurable under Configuration > Integrations > Smart Irrigation Card - Configure (for each zone). Is there a reason why the data and name fields couldn't be included in the configure command? May be an opportunity for improvement if there is not a reason to not do this.
Thanks for the plugin. I see a lot of promise in it once I completely figure it out. I just found HA so I'm on the bottom of the learning curve at the moment. My plan is to put a guide together to help others that go down this route (and have a way for me to redo things if necessary!).

here are some issues with that, and we have an issue open for it here: https://github.com/jeroenterheerdt/HAsmartirrigation/issues/27

source: gharchive/issue

repo: jeroenterheerdt/HAsmartirrigation

license: MIT


text:
Add dereference_singleton_recombinants

Allows us to create a ts for plotting that doesn't have singleton recombinants and their associated recombination nodes.

Added a few tests and sorted a test_utils file.


text:
Way to hide cross button to disable deletion of node?

Whether there is any option or setting to disable deletion of node?
Currently, deletion is possible with delete button and cross icon shown when the node is selected. Both options need to be stopped for a particular node.

Hello @ishpreetkaurwebner
View #10 and #70
They sure help you.
Jero

Thank you @jerosoler, these links gave me idea to prevent deletion of particular node.
The solutions provided on #10 and #70 gave me some direction to implement my own problem area.

Hello @jerosoler ,
With your solution, it was great help for me to handle to do something like confirmation before delete .
But, now I am facing a new issue with above.
Above solution was working perfectly fine when there was no connection between two nodes. When there is connection between two nodes, and I try to remove one node, node remove successfully, but not the connection arrow. I want to remove connection also when node is deleted, and when I look on console of browser console tool, then following error is displayed sometimes for output and sometimes for input node:
Uncaught TypeError: Cannot read property 'inputs' of undefined
    at Drawflowoverride.removeConnectionNodeId (drawflow.min.js:1)
    at Drawflowoverride.removeNodeId (drawflow-custom.js:19)
    at Drawflowoverride.click (drawflow.min.js:1)
removeConnectionNodeId @ drawflow.min.js:1
removeNodeId @ drawflow-custom.js:19
click @ drawflow.min.js:1

Uncaught TypeError: Cannot read property 'outputs' of undefined
    at Drawflowoverride.removeConnectionNodeId (drawflow.min.js:1)
    at Drawflowoverride.removeNodeId (drawflow-custom.js:19)
    at Drawflowoverride.click (drawflow.min.js:1)
removeConnectionNodeId @ drawflow.min.js:1
removeNodeId @ drawflow-custom.js:19
click @ drawflow.min.js:1

Hello @jerosoler ,
Issue is resolved as I moved the line
this.removeConnectionNodeId(id);
at start of function
class Drawflowoverride extends Drawflow {
  removeNodeId(id) {

instead at last line.

authors: ishpreetkaurwebner jerosoler

repo: jerosoler/Drawflow


text:
added blog post

tested local. created PR

wrong env. closing PR


text:
Adding files

HI
I try to add a file but get this:
Adding ItemSpec: D:\a\14\a\Translated native format\ImCostFoundation.de.label.txt, Recursive: Full, Apply Ignorefile: False
No Add detected
A dir shows:
Directory: D:\a\14\a\Translated native format
Mode                LastWriteTime         Length Name

-a----        4/19/2024   2:34 PM            658 ImCostFoundation.de.label.txt

The a folder is the artefacts staging folder it's probably not mapped to
your TFVC repo. Generally you need to have your file to be added in the s
(sources) folder.
On Fri, Apr 19, 2024, 17:03 soerenpc @.***> wrote:

HI
I try to add a file but get this:
Adding ItemSpec: D:\a\14\a\Translated native
format\ImCostFoundation.de.label.txt, Recursive: Full, Apply Ignorefile:
False
No Add detected
A dir shows:
Directory: D:\a\14\a\Translated native format
Mode LastWriteTime Length Name
-a---- 4/19/2024 2:34 PM 658 ImCostFoundation.de.label.txt
—
Reply to this email directly, view it on GitHub
https://github.com/jessehouwing/azure-pipelines-tfvc-tasks/issues/116,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AA724S5JYP5BX24XIQMUQLTY6EW3VAVCNFSM6AAAAABGPLEVYGVHI2DSMVQWIX3LMV43ASLTON2WKOZSGI2TGMRTGIZDMMI
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>

Thanks for your fast reply I had other tasks but are now continuing on this subject.
I tried to add the translated file into D:\a\14\s/Translated  but nothing is added I assume it needs to be a mapped folder so what if I just copy the file back to:
D:\a\14\s\Metadata\SmartCostFoundation\Smart Cost Foundation\AxLabelFile\LabelResources\de\ImCostFoundation.de.label.txt
?

I tried to copy the file back to the mapped position. Then changed the file but it is not picked up by the check-in.

authors: jessehouwing soerenpc

repo: jessehouwing/azure-pipelines-tfvc-tasks


text:
🛑 Staging Server is down

In c419479, Staging Server ($STAGING_SERVER) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Staging Server is back up in f0d8ab9 after 9 minutes.

repo: jessgusclark/psr-upptime


text:
Implement Nomad Task Driver support (0.9.x)

Damon was developed long before Nomad had the concept of a Task Driver. It was always the plan that some day we'd like to contribute this back to Nomad as a part of the engine. Now since Nomad 0.9.0 preview supports pluggable task drivers, we can use that as another way to run windows executables with Damon.
This alternate mode needs documentation as well as implementation.
Some Open Questions still:

How will Damon report metrics as a Task Driver? Right now it is done as another separate task service and advertised port.
Will the task driver have access to the full job spec? Possibly to read in more details about the job that are not present entirely in the environment variables.
How does the task driver log? Is the log aggregated in the nomad client logs? Originally we liked the log to be along-side the task since it was convenient for log shipping application logs with damon events to correlate problems. I'm sure we can continue to log to file ourselves with rotate logs; but maybe make it configurable.

Progress tracked here: #17

repo: jet/damon


text:
[Bug] Fix bash regression for PATH

Summary
Fixing zsh shell regression as the following:
bash: command substitution: line 37: syntax error near unexpected token `newline'
bash: command substitution: line 37: `			$NIX_STORE/*'

Closes #196
Closes #186
How was it tested?
devbox shell
go test ./...

oops, thanks for these fixes!

authors: LucilleH savil

repo: jetpack-io/devbox


text:
Solver selection always returns last matching solver

Just from reviewing the code while investigating an issue I'm having with solver data mismatch, I believe there is a bug in determineSolverConfigToUse.  When a candidate solver matches the criteria, it assigns &d to matchAll or to specificMatch.  However, this is the address of a loop variable that is reused in each loop.  Thus when the loop completes, both of these variables are likely to point to the same object, which would have been set to the last element in the array.
The consequence of this is that it may return a mismatched solver / challenge pair.  If one of these is using DNS and the other uses HTTP, this can even crash cert-manager.
Note that I am not experienced in Go programming.  But based on a bit of research I think the fix might be to change the loop to work like this:
for idx := range candidates {
    d := &candidates[idx]

That way, d will reference the array element instead of the temporary local variable created by the for loop.
See https://github.com/jetstack/cert-manager/blob/52ce959356e5c8b9cfb30841b780c33d3eef5cc5/pkg/controller/acmeorders/sync.go#L448
A workaround for this issue might be to use labels to ensure that only one solver can match a given domain, or perhaps reordering the solvers in the issuer can give a workable solution.  I'm still experimenting with that.
/kind bug

I've worked around this by using a separate issuer for HTTP and DNS, that way there is no conflict possible.

repo: jetstack/cert-manager


text:
Bump files for v0.7.0-alpha.0

What this PR does / why we need it:
Bumps all our manifests and files for the upcoming release-0.7. This should have probably been done nearer the cycle, but we now know for next time :smile:
Release note:
NONE

/cc @DanielMorsing

/lgtm

authors: DanielMorsing munnerz


text:
django_hosts.resolvers.reverse NoReverseMatch with wildcard regex

Not sure if I'm missing something, but I'm having trouble using reverse on wildcard subdomains.
hosts.py
from django.conf import settings
from django_hosts import patterns, host

host_patterns = patterns('',
    host(r'www', settings.ROOT_URLCONF, name='www'),
    host(r'(\w+)', app.custom_urls', name='wildcard'),
)

app.custom_urls.py
from django.conf import settings
from django.conf.urls.static import static
from django.conf.urls import include, url

from app import views

urlpatterns = [
    url(r'^$', views.home, name='home'),
    url(r'^articles/', include('app.articles.urls', namespace='articles')),
    url(r'^events/', include('app.events.urls', namespace='events')),
    url(r'^partners/', include('app.partners.urls', namespace='partners')),
]

if settings.DEBUG:
    urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)

Now if I try something like:
from django_hosts.resolvers import reverse

reverse('home', host='wildcard')

I'm getting the error:
NoReverseMatch                            Traceback (most recent call last)
<ipython-input-2-e86d09f05052> in <module>()
----> 1 reverse('home', host='wildcard')

/Users/vitorfs/Development/venv/lib/python2.7/site-packages/django_hosts/resolvers.pyc in reverse(viewname, args, kwargs, prefix, current_app, host, host_args, host_kwargs, scheme, port)
    167     hostname = reverse_host(host,
    168                             args=host_args,
--> 169                             kwargs=host_kwargs)
    170     path = reverse_path(viewname,
    171                         urlconf=host.urlconf,

/Users/vitorfs/Development/venv/lib/python2.7/site-packages/django_hosts/resolvers.pyc in reverse_host(host, args, kwargs)
    119     raise NoReverseMatch("Reverse host for '%s' with arguments '%s' "
    120                          "and keyword arguments '%s' not found." %
--> 121                          (host.name, args, kwargs))
    122
    123 #: The lazy version of the :func:`~django_hosts.resolvers.reverse_host`

NoReverseMatch: Reverse host for 'wildcard' with arguments '()' and keyword arguments '{}' not found.

Now if I change my hosts.py
hosts.py (removed regex)
from django.conf import settings
from django_hosts import patterns, host

host_patterns = patterns('',
    host(r'www', settings.ROOT_URLCONF, name='www'),
    host(r'test', app.custom_urls', name='wildcard'),
)

I can run:
In [1]: from django_hosts.resolvers import reverse

In [2]: reverse('home', host='wildcard')
Out[2]: '//test.testserver.local/'

Which is correct.

I just realised the right way to do it is:
In [2]: reverse('home', host='wildcard', host_args=('test',))
Out[2]: '//test.testserver.local/'

repo: jezdez/django-hosts

license_source: bigquery


text:
Added Front-End Development Resource

IMPORTANT: When creating your Pull Request, please use the following format for the title: Category - Resource Name & Section
PR Title samples:

Web development - CSS Portal & Tools
Web development - Leetcode & Challenges

Fixes Issue Closes #223

Description: Added a Front-End Development Course

Resource URL: https://www.coursera.org/professional-certificates/meta-front-end-developer

Checklist:
Before submitting your pull request, ensure that you have completed the following tasks:

[x] I have carefully reviewed and adhered to the contributing guidelines before creating this pull request.
[x] I followed the prescribed PR title template. (Check this if you're adding a resource)

@jfmartinz could you please review it

Thanks

repo: jfmartinz/ResourceHub


text:
feature request - jsdoc only

hello,
is it possible to configure the "comment-reflow/comment-length" rule to only apply to jsdoc-style comments?

We can certainly look into this.
On Sat, Feb 26, 2022 at 9:38 PM James @.***> wrote:

hello,
is it possible to configure the "comment-reflow/comment-length" rule to
only apply to jsdoc-style comments?
—
Reply to this email directly, view it on GitHub
https://github.com/jfroelich/eslint-plugin-comment-reflow/issues/54, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/ABY44K2VMBQCHX22EXXFUIDU5G2FXANCNFSM5POK3SQQ
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>

--
Josh Froelich I Principal Engineer
Integra Beauty, Inc.
Chatsworth, California
Langehair.com https://langehair.com/ / Instagram
https://www.instagram.com/langehair/?hl=en / Facebook
https://www.facebook.com/getlange/
--
                      CONFIDENTIALITY NOTICE
The
contents of this email message and any attachments are intended solely for
the addressee(s) and may contain confidential and/or privileged information
and may be legally protected from disclosure. If you are not the intended
recipient of this message or their agent, or if this message has been
addressed to you in error, please immediately alert the sender by reply
email and then delete this message and any attachments. If you are not the
intended recipient, you are hereby notified that any use, dissemination,
copying, or storage of this message or its attachments is strictly
prohibited.

thanks josh!

authors: Zamiell jfroelich

repo: jfroelich/eslint-plugin-comment-reflow


text:
Remove wrapper task

With newer versions of gradle, that task is already available. This causes errors in building.
Also, the wrapper currently uses 4.8 whereas this task tried to use 2.4

Thank you @rahulsom!
BI-493 tracks this fix.

repo: jfrog/build-info


text:
Remove deprecated extractor props

[x] All tests passed. If this feature is not already covered by the tests, I added new tests.
[x] This pull request is on the dev branch.
[x] I used gofmt for formatting the code before submitting the pull request.

This PR deletes the "j" binary that was added by mistake here.

repo: jfrog/jfrog-cli-core


text:
jfrog rt set-props does not work (deletes properties instead)

Unable to set properties of artifacts using jfrog rt set-props. This command deletes properties instead. Observed in jfrog version 1.26.0.
Digging into the source code, I found this:
https://github.com/jfrog/jfrog-cli-go/blob/1fe8f138afca70cbcf8459c71c3554ae00c98d25/artifactory/commands/generic/setprops.go#L37
Shouldn't this be calling serviceManager.SetProps?

Hi @tdmx
Thank you for reporting this. We will work on this issue and let you know when the new version will be released.

@tdmx,
The issue is fixed as part of version 1.26.1.
Thanks

Thank you for the quick response. All working as expected now!

authors: AlexeiVainshtein eyalbe4 tdmx

repo: jfrog/jfrog-cli-go


text:
404 when trying to download a release

Describe the bug
When trying to download a release from https://github.com/jfrog/jfrog-cli/releases I'm receiving a 404.
Current behavior
Example: https://releases.jfrog.io/artifactory/jfrog-cli/v2-jf/2.52.10/jfrog-cli-linux-amd64/jf
Response:
{
  "errors": [
    {
      "status": 404,
      "message": "Not Found"
    }
  ]
}

Reproduction steps
Try to download a release from the releases page.
Expected behavior
I expect to be able to download all releases listed in the releases page.
JFrog CLI version
NA
Operating system type and version
MacOS
JFrog Artifactory version
No response
JFrog Xray version
No response

Jfrog error: Downloading: https://releases.jfrog.io/artifactory/jfrog-cli/v1/1.53.2/jfrog-cli-linux-386/jfrog
##[error]Error occurred while executing task:
Failed while attempting to download JFrog CLI from https://releases.jfrog.io/artifactory/jfrog-cli/v1/1.53.2/jfrog-cli-linux-386/jfrog. If this build agent cannot access the internet, you may use the 'Artifactory Tools Installer' task, to download JFrog CLI through an Artifactory repository, which proxies https://releases.jfrog.io/artifactory/jfrog-cli/v1/1.53.2/jfrog-cli-linux-386/jfrog. You may also manually download version 1.53.2 of JFrog CLI and place it on the agent in the following path: /__t/_jfrog/current/jfrog
Error: certificate has expired

Thanks, @vaibhavdangar-woolies and @vtc-guilherme-souza, for flagging this problem!
A short time after the incident yesterday, we sorted out the certificate issue, so everything should be back on track now. If you're still experiencing any trouble, just give us a heads-up.

repo: jfrog/jfrog-cli


text:
"invalid character 'u' looking for beginning of value" when running jf yarn install in Yarn 4 project

Describe the bug
When I run "jf yarn install" in my Yarn 4 project I receive the following error:
09:47:20 [🚨Error] invalid character 'u' looking for beginning of value
Current behavior
jf yarn install
09:47:19 [Debug] JFrog CLI version: 2.63.2
09:47:19 [Debug] OS/Arch: linux/amd64
09:47:19 [Debug] Trace ID for JFrog Platform logs: 92e835809fc8ca2a
09:47:19 [🔵Info] Running Yarn...
09:47:19 [Debug] Preparing to read the config file redacted/.jfrog/projects/yarn.yaml
09:47:19 [Debug] Found resolver in the config file redacted/.jfrog/projects/yarn.yaml
09:47:19 [Debug] Preparing prerequisites.
09:47:19 [Debug] Found Yarn executable at: /usr/bin/yarn
09:47:19 [Debug] Working directory set to: redacted
09:47:19 [Debug] Found Yarn executable at: /usr/bin/yarn
09:47:19 [Debug] Sending HTTP GET request to: redacted/artifactory/api/system/version
09:47:19 [Debug] Artifactory response: 200
09:47:19 [Debug] JFrog Artifactory version is: 7.90.6
09:47:19 [Debug] Sending npm auth request
09:47:19 [Debug] Sending HTTP GET request to:redacted/artifactory/api/npm/auth
09:47:19 [Debug] Sending HTTP GET request to:redacted/api/repositories/redacted
09:47:20 [🔵Info] Trace ID for JFrog Platform logs: 92e835809fc8ca2a
09:47:20 [🚨Error] invalid character 'u' looking for beginning of value
Reproduction steps
Create Yarn 4 project
Run jf c add
Run jf yarn-config
Run yarn install
Expected behavior
The dependencies are downloaded.
JFrog CLI version
2.63.2
Operating system type and version
Ubuntu 20.04
JFrog Artifactory version
7.90.6
JFrog Xray version
3.88.12

Hi @RobinDinkel,
This issue has already been reported in our jfrog-cli-core project, where the logic for handling it resides. As I mentioned in this issue, we currently do not support Yarn v4.
We will provide updates once support is added to our roadmap and share progress as it happens.
I'm closing this issue to avoid duplication. Thank you for bringing this to our attention!

authors: EyalDelarea RobinDinkel


text:
Can't import

Hi VideoCore team.
I'm trying to import this library to my project using the pods 0.38.2(downgraded to fix the issue #224) and Swift 2. But it don't work.
I've tried to add the ObjcBridge, but I can't find the project.

source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '8.0'
use_frameworks!

target 'SomeApp' do
    ...
    ...
    pod 'VideoCore', '~> 0.2.0'
end

Worked with @maxcampolo fork.

repo: jgh-/VideoCore

license: mit


text:
Show all threads and pre-select profile start thread by default

Closes https://github.com/jhawthorn/vernier/issues/56
Related to https://github.com/jhawthorn/vernier/pull/75
Ensures that on profile load, no threads are filtered out i.e. initialVisibleThreads contains all threads, and that the thread in which the profiler was started is the pre-selected thread i.e. it's the one and only thread in initialSelectedThreads.

Manual testing
# main thread start

Vernier.profile(out: "output_main.json") do
  10.times.map do |i|
    Thread.new do
      Thread.current.name = "Spawned #{i}"
      sleep 0.01
    end
  end.each(&:join)
end

# spawned thread start

10.times.map do |i|
  Thread.new do
    if i == 5
      Vernier.profile(out: "output_spawned.json") do
        Thread.current.name = "Spawned #{i}"
        sleep 0.01
      end
    else
      Thread.current.name = "Spawned #{i}"
      sleep 0.01
    end
  end
end.each(&:join)

output_main.json
output_spawned.json

Thank you!

repo: jhawthorn/vernier


text:
Fixed event delegation

Refactored delegate to fixed a bug which prevents that a delegation on a form element will not trigger events of child inputs. Or in other words... this will work now:

      handleEvents.delegate(document.querySelector('body'), 'keyup', 'form', e => console.log("hello world"));

Did it similar like the delegate lib: https://github.com/zenorocha/delegate/blob/master/src/delegate.js

Changed in package.json the module path to main src file for better IDE (e.g. Webstorm) and build support
jsDoc: flagged useCapture as optional and use the correct syntax for optional parameters
Renamed prototype to polyfill
Added package-lock.json (see https://stackoverflow.com/questions/44206782/do-i-commit-the-package-lock-json-file-created-by-npm-5)

Thank you very much for contributing, I will be checking and approving this PR as soon as posible.

I recognized that you use a yarn lock file... so I think you can delete my package-lock :)

No problem, I tested with both yarn and npm and both files can coexist together.

authors: Hanterdro jherax

repo: jherax/handle-events

license: isc


text:
Use npm-check-updates lib instead of check_dependencies.js script

@MathieuAA checkout https://www.npmjs.com/package/npm-check-updates
I just saw the check_dependencies.js file and wanted to check if you considered the above plugin? I have been using it for a long time and its a good one

@deepu105 Thanks Deepu! I'll check this out tonight!

Closing this. Yarn does this with yarn outdated.

nice
Thanks & Regards,
Deepu
On Sun, Dec 17, 2017 at 2:38 PM, Mathieu ABOU-AICHI <
notifications@github.com> wrote:

Closed #124 https://github.com/jhipster/jhipster-core/issues/124.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/jhipster/jhipster-core/issues/124#event-1391074391,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABDlF_gH9yEYMaykbaPcGUtzuR2pJLt_ks5tBRk9gaJpZM4N49UT
.

repo: jhipster/jhipster-core


text:
Basic R updates

Mainly changing = to <- and making the lab a tad bit more exciting

@carriewright11 is it easiest if we just render our own modules/chapters? Don't want to overwrite anything important of course.

yes that work!


text:
Element

public Element(String tag, String namespace)
Create a new, standalone element, in the specified namespace.
Parameters:
tag - tag name
namespace - namespace for this element

Did you open this by accident? If so, can you please close it?

repo: jhy/jsoup


text:
Issues with importing as nested component.

When component list imports BeeGridTable, everything works fine.
Now, component list-stories (in separate repository), wants to use component list (that uses BeeGridTable), then I see the error:

Code for component list:
<template>
  <div @click='onClickRowHandler'>
    <BeeGridTable
      :columns='columnsData'
      :data='data'
      :showFilter='false'
      :showPager="showPagination"

      border
      highlight-row
      ref='selection'
    ></BeeGridTable>
  </div>
</template>

<script>
import Vue from "vue";
import BeeGridTable from "beegridtable";
import BeeLocale from "beegridtable/src/locale";
import "beegridtable/dist/styles/beegridtable.css";

import defaultProperties from "./defaultProperties";

Vue.use(BeeGridTable, {
  locale: BeeLocale,
  capture: true,
});

export default {
  name: 'list',
  components: {
    BeeGridTable, // Commenting out this line stops the above error, but still not usable in list-stories.
  },
  data(): {...},
  props: {...},
  computed: {...},
  methods: {...},
  mounted() {}
}
</script>

In src/main.js, (for repo of list component),  I simply do:
import listComponent from './components/list/list.vue';
export default listComponent;

Code for component list-stories:
<template>
  <div>
    <list :rows='activeList'/>
  </div>
</template>
<script>
import list from 'list-component';
export default {
  name: "HelloWorld",
  props: {
    activeList: []
  },
  components: { list }
};
</script>

In src/main.js, (for repo of list-stories):
import Vue from "vue";
import App from "./App.vue";

Vue.config.productionTip = false;

new Vue({
  render: h => h(App)
}).$mount("#app");

Any advice on how to fix the bug.
Essentially, I am trying to figure out how to import BeeGridTable and export the wrapper component such that BeeGridTable is usable by caller component without explicitly importing BeeGridTable.

Well ! My understanding is that you have a custom component library, you need to encapsulate the BeeGridTable in it, and then use the custom component in your business project.
I made a project similar to your description. Beefor2 is similar to your component library, and beefor2demo is similar to your business project.
-- 1. Create a component list in the Beefor2 project
<template>
  <div @click="onClickRowHandler">
    <BeeGridTable
      :columns="columnsData"
      :data="data"
      :showFilter="canFilter"
      :showPager="showPagination"
      border
      highlight-row
      ref="selection"
    ></BeeGridTable>
  </div>
</template>

<script>
export default {
  name: "s-list",
  data() {
    return {};
  },
  props: {
    columns: {
      type: Array,
      default() {
        return [];
      },
    },
    rows: {
      type: Array,
      default() {
        return [];
      },
    },
    showFilter: {
      type: Boolean,
      default() {
        return false;
      },
    },
    showPager: {
      type: Boolean,
      default() {
        return false;
      },
    },
  },
  computed: {
    showPagination() {
      return this.showPager;
    },
    canFilter() {
      return this.showFilter;
    },
    data() {
      return this.rows;
    },
    columnsData() {
      return this.columns;
    },
  },
  methods: {
    onClickRowHandler() {
      console.log("clicked");
    },
  },
  mounted() {},
};
</script>

-- 2. In the entry file of the component library, it may be main.js in your project.
import Vue from "vue";
import App from "./App.vue";
import router from "./router";

import BeeGridTable from "beegridtable";
import BeeLocale from "beegridtable/src/locale";
import "beegridtable/dist/styles/beegridtable.css";

Vue.use(BeeGridTable, {
  locale: BeeLocale,
  capture: true,
});

Vue.config.productionTip = false;

new Vue({
  render: (h) => h(App),
  router,
}).$mount("#app");

-- 3.After you publish the component library, in your business project, you should reference your custom components like this
in main.js
import Vue from "vue";
import App from "./App.vue";

import beefor2 from "beefor2";
import "beefor2/dist/beefor2.css";

Vue.use(beefor2);

Vue.config.productionTip = false;

new Vue({
  render: (h) => h(App),
}).$mount("#app");

-- Final render normally！

If needed, I can upload the sample code.

For details, please see
beefor2
[beefor2demo)[https://github.com/jiahengaa/beefor2demo]

Thank you so much @jiahengaa for writing so well detailed response.
The problem you understood is correct.
The solution you proposed works, but there is one problem.
The solution makes beefor2 a plugin as well (similar to how BeeGridTable is a plugin).
While, the product requirement is to make beefor2 a component (similar to how beefor2demo is a component).
Reason we need beefor2 as a component (and NOT a plugin) is because, the way our project is developed:

Develop component A and test it
Develop component B (which uses A) and test it
Develop component C (which uses B) and is not aware about A and test it
Develop component D (which uses C) and is not aware about A or B and test it.

Now, technically I can make all A,B,C,D as plugins and things will work the way you demoed (thanks for that 💯)
But, in our case, we already have a lot of code developed where C and D, etc are all components.
While, in this case, A (BeeGridTable) is a plugin.
Essentially how I see is, there are 2 options:

Create a plugin B which should be installed in all testing environments C, D, E, ... etc
Or, fork A, change its export mechanism to like a component and then use it.

Essentially how I see is, there are 2 options:

Create a plugin B which should be installed in all testing environments C, D, E, ... etc
Or, fork A, change its export mechanism to like a component and then use it.

In the case of N->...->C->B->A, make sure that when B->A, B can correctly import BeeGridTable and it's css style.

authors: ashvaibhav jiahengaa

repo: jiahengaa/BeeGridTable


text:
windows版本，全屏之后再退出全屏模式，窗口大小会被重置

复现步骤 / Step to reproduce
1.以非全屏模式，窗口最大化打开软件。 此时状态为图1:

2.系统的任务栏有点碍事，全屏显示区域大一点，按F11进入全屏，此时状态为图2：

3.想要在全屏模式下离开软件，不想左手操作win+d或者alt+tab，右上角没有可点击的最小化按钮，于是按F11退出全屏
，此时窗口大小被重置，复现率百分之百：

预期行为 / Expected behaviour
退出全屏后，窗口应该保持进入全屏前的大小。
实际行为 / Actual Behaviour
退出全屏后，窗口变成了一个固定的，被重置的大小
应用日志 / App logs
🐛 Init LogService success
🐛 Init LocalConfigService success
🐛 Init NetworkSetting config success
🐛 Init UserSetting config success
🐛 Init EHSetting config success
🐛 Init PathService success
💡 systemProxyAddress: 127.0.0.1:7890
🐛 Init EHRequest success
🐛 Init JHRequest success
🐛 Init StorageService success
🐛 Init DownloadSetting config success
🐛 Init SuperResolutionSetting config success with default
🐛 Init LocalBlockRuleService success
🐛 Init FavoriteSetting config success
🐛 Init AdvancedSetting config success
🐛 Init MouseSetting config success with default
🐛 Init PreferenceSetting config success
🐛 Init PerformanceSetting config success with default
🐛 Init ReadSetting config success
🐛 Init SecuritySetting config success with default
🐛 Init SiteSetting config success
🐛 Init StyleSetting config success with default
🐛 AppUpdateService fromVersion: 12, toVersion: 12
🐛 Init AppUpdateService success
🐛 init Gallery groups: []
🐛 Gallery download task count: 0
🐛 start download executor
🐛 Init GalleryDownloadService success
🐛 init Archive groups: []
🐛 Archive download tasks count: 0
🐛 Init ArchiveDownloadService success
💡 Refresh local gallerys, preCount:0, newCount: 0, timeCost: 0ms
🐛 Init LocalGalleryService success
🐛 Init CloudConfigService success
🐛 Init FrameRateService success
🐛 Init HistoryService success
🐛 Init IsolateService success
🐛 Init QuickSearchService config success with default
🐛 Init ScheduleService success
🐛 Init TagTranslationService success
🐛 Init SearchHistoryService config success
🐛 Init SuperResolutionService success
🐛 Init TagSearchOrderOptimizationService success
🐛 Init VolumeService success
💡 Init WindowService success
🐛 Init WindowService success
🐛 Init MyTagsSetting success
💡 PopularPageLogic get data, prevGid:null, nextGid:null
🐛 NetworkSetting afterBeanReady success
🐛 UserSetting afterBeanReady success
🐛 EHSetting afterBeanReady success
🐛 DownloadSetting afterBeanReady success
🐛 SuperResolutionSetting afterBeanReady success
💡 Fetch favorite setting from EH
🐛 FavoriteSetting afterBeanReady success
🐛 AdvancedSetting afterBeanReady success
🐛 MouseSetting afterBeanReady success
🐛 PreferenceSetting afterBeanReady success
🐛 PerformanceSetting afterBeanReady success
🐛 ReadSetting afterBeanReady success
🐛 SecuritySetting afterBeanReady success
💡 Fetch site setting from EX
🐛 SiteSetting afterBeanReady success
🐛 StyleSetting afterBeanReady success
🐛 QuickSearchService afterBeanReady success
💡 Fetch tag translation data from github
🐛 SearchHistoryService afterBeanReady success
💡 refresh MyTagsSetting
💡 Maximized window
💡 Tag translation data downloaded
💡 Tag translation data is up to date, timestamp: 2024-07-31T12:14:20.000Z
💡 refresh default tag set success, length: 6
💡 Fetch site setting from EX success
💡 Fetch favorite setting from EH success
💡 Clear outdated image cache success, count: 0
🐛 App is hidden
🐛 App is shown
🐛 App is hidden
🐛 App is shown
💡 Restored window
💡 Enter full screen
🐛 App is hidden
🐛 App is shown
💡 Leave full screen
🐛 App is hidden
🐛 App is shown
🐛 App is hidden
应用设置 / App Settings
No response
备注 / Addition details
No response
JHenTai 版本号 / JHenTai version
目前用的最新v8.0.0+248，但是自从有全屏功能之后，我一直是这种体验。。一直能复现
操作系统版本 / operating system version
windows11 x64稳定版
设备型号 / Device model
PC x64
自查步骤 / Verify steps

[X] 您已仔细查看并知情 常见问题 中的内容 / You have checked Q&A carefully
[X] 您已搜索过 历史Issue，没有找到类似内容 / I have searched on History Issues, No duplicate or related open issue has been found
[X] 您确保这个 Issue 只提及一个问题。如果您有多个问题报告，烦请发起多个 Issue / Ensure there is only one bug report in this issue. Please make mutiply issue for mutiply bugs
[X] 您确保已使用最新版本测试，并且该问题在最新版本中并未解决 / This bug have not solved in latest version

1、

2、全屏模式就是指没有顶部底部区域的模式，也没有计划单独给全屏模式加上顶部按钮。

是提供最大化/最小化/全屏这个功能的插件有bug。


text:
Please add a LICENSE file

Under which license is this repository available? Please add a license file to let the users know.
https://docs.github.com/es/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/licensing-a-repository
https://docs.github.com/es/communities/setting-up-your-project-for-healthy-contributions/adding-a-license-to-a-repository

Done!

authors: jianyuan pdenapo

repo: jianyuan/pocketbase-sveltekit-auth


text:
🛑 Staak is down

In 944c7b9, Staak (https://www.staak.co.uk) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Staak is back up in 7be3f10.

repo: jimwib/uptime


text:
🛑 Bleeding Edge Forums is down

In 8614d71, Bleeding Edge Forums (https://forum.bleedingedge.com) was down:

HTTP code: 503
Response time: 11832 ms

Resolved: Bleeding Edge Forums is back up in c54ec21 after 6 minutes.


text:
[OFFICIAL/TV]* —Liverpool vs Aston Villa LiVe 𝐒𝐭𝐫𝐞𝐚𝐦𝐬 FrEe BrOaDcAsT oN TV Guide & 𝐒𝐭𝐫𝐞𝐚𝐦𝐢𝐧𝐠 09 November 2024

In the Premier League, Arne Slot‘s in-form Liverpool host Aston Villa who are experiencing a dip in results at the moment. Here’s how to watch and stream live around the world.
Anfield will be up for this one as Unai Emery brings Aston Villa to Merseyside for a Saturday night match against Liverpool, who are currently Europe’s best-performing team.
With Liverpool having won their last six games at Anfield and Aston Villa losing their last three matches in all competitions, the Reds are favourites.
Emery has previously shown, though, that he can set a side up to frustrate, so Liverpool and the crowd need to be ready to put in a display against Aston Villa if they want to remain comfortably top of the Premier League.
Check This Is Anfield for the latest team news ahead of the match.
You can also follow the game by downloading the This is Anfield app, including lineups, live coverage and all the reaction and analysis.
The match gets underway at 8pm (GMT) – or 3pm in New York, 12pm in Los Angeles, 7am (Sunday) in Sydney, 12am (Sunday) in Dubai and 11pm in Nairobi.
UK Viewers
Liverpool vs. Aston Villa is being shown live on TNT Sports 1 in the UK, which is available to live stream here.
Live audio commentary of Liverpool vs. Aston Villa and a full match replay and highlights will also be available on LFCTV GO here.
This Is Anfield will also be providing live text commentary throughout on our website and full match reaction and analysis on the This Is Anfield app for iPhone and Android later.
Download free here.
US Viewers
Liverpool vs. Aston Villa is shown live on Peacock in the US, which is available to live stream with Peacock here.
Live audio commentary of Liverpool vs. Aston Villa and a full match replay and highlights will also be available on LFCTV GO here.
This Is Anfield will also be providing live text commentary throughout on our website and full match reaction and analysis on the This Is Anfield app for iPhone and Android later.
Download free here.
Canada Viewers
Liverpool vs. Aston Villa is being shown live on Fubo TV in Canada, which is available to live stream with Fubo TV here.
Live audio commentary of Liverpool vs. Aston Villa and a full match replay and highlights will also be available on LFCTV GO here.
This Is Anfield will also be providing live text commentary throughout on our website and full match reaction and analysis on the This Is Anfield app for iPhone and Android later.
Download free here.
Worldwide
Live audio commentary of Liverpool vs. Aston Villa and a full match replay and highlights will be available on LFCTV GO here.
You can find live listings for Liverpool vs. Aston Villa around the world at Live Soccer TV’s website, here.
This Is Anfield will also be providing live text commentary throughout on our website and full match reaction and analysis on the This Is Anfield app for iPhone and Android later.

hgjgyjy

repo: jina-ai/reader


text:
After a few Epochs, Loss Would Be NaN

Hello, I tried to test your code but after a few epochs (8 at most) the loss of the network turns out to be NaN. Has anyone else faced this issue while testing? How can I fix it

?

Is the problem solved?

I have solved this problem by using the torch.norm instead of using sqrt in the squash function

authors: AzadeAlizade Z4HRA-S jindongwang

repo: jindongwang/Pytorch-CapsuleNet


text:
Evaluate Salsify for video transport

It outperforms the rest: https://snr.stanford.edu/salsify/

GPL licensed and thus useless.

Uh, it's not meant to be used as-is but to have the design implemented in other projects.

The implementation is only for Linux and doesn't have audio. The value is mostly in demonstrating the benefit of Salsify’s design and in allowing other researchers (and industry) to replicate our results, with the intent that Salsify’s ideas will be incorporated by others and improve the quality of real-time video in many applications.

I'm unable to even maintain the current implementation of protocols/codecs properly, let alone adding a new one.

authors: ibauersachs thekyriarchy

repo: jitsi/jitsi


text:
Implement individual DHCP status collector

This collector will collect metrics for the health state of an individual DHCP service that belongs to T0 or T1 router. We can monitor a specific DHCP service and find which DHCP service is down.

I'm taking this


text:
Consider using path instead of file in the generate struct

When showing jk generate to someone, he found the use of the file key confusing:
export default [
  { value: dashboard('apiserver'), file: 'dashboard.json' },
]

It wasn't clear at first glance if file was the content to write or the path of the file to write. We may want to rename file to path to lift this ambiguity.

or filename? (though that's usually the base name, isn't it)

It's also longer to type than path :)

p?

:trollface: :grin:

authors: dlespiau squaremo

repo: jkcfg/jk


text:
No Qt platform plugin could be initialized - Docker

I am following the instructions under 'Reproducing Results' in a docker container.
`$ python -m tetranerf.scripts.process_blender --transforms /data/blender/ficus/transforms_train.json --output /data/blender/ficus
Images copied to /tmp/tmp7q1swz2m/images
qt.qpa.xcb: could not connect to display
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, xcb.
*** Aborted at 1684267602 (unix time) try "date -d @1684267602" if you are using GNU date ***
PC: @                0x0 (unknown)
*** SIGABRT (@0x3e800000056) received by PID 86 (TID 0x7fd2539ae080) from PID 86; stack trace: ***
@     0x7fd259557046 (unknown)
@     0x7fd257801520 (unknown)
@     0x7fd257855a7c pthread_kill
@     0x7fd257801476 raise
@     0x7fd2577e77f3 abort
@     0x7fd257df4ba3 QMessageLogger::fatal()
@     0x7fd2583fb713 QGuiApplicationPrivate::createPlatformIntegration()
@     0x7fd2583fbc08 QGuiApplicationPrivate::createEventDispatcher()
@     0x7fd258024b17 QCoreApplicationPrivate::init()
@     0x7fd2583feb70 QGuiApplicationPrivate::init()
@     0x7fd258b12ced QApplicationPrivate::init()
@     0x55bd3e2363dd colmap::RunFeatureExtractor()
@     0x55bd3e228499 main
@     0x7fd2577e8d90 (unknown)
@     0x7fd2577e8e40 __libc_start_main
@     0x55bd3e22b3e5 _start
──────────────────────────────────────────────  💀 💀 💀 ERROR 💀 💀 💀  ───────────────────────────────────────────────
Error running command: ['colmap', 'feature_extractor', '--database_path',
PosixPath('/data/blender/ficus/sparse/database.db'), '--image_path', PosixPath('/tmp/tmp7q1swz2m/images'),
'--ImageReader.single_camera', '1', '--ImageReader.camera_model', 'SIMPLE_PINHOLE', '--ImageReader.camera_params',
'1111.1110311937682,400.0,400.0']
────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────`

I will look into it. This is related:
https://github.com/NVlabs/instant-ngp/discussions/300
https://github.com/NVlabs/instant-ngp/issues/329
https://github.com/nerfstudio-project/nerfstudio/issues/524

I am building a new image with COLMAP built from source.  I hope it will resolve the issue.

Ok, I have updated the dockerfile and the image. Can you please test it now?

The latest image has resolved the issue! Thank you very much for all that you have done :)

authors: Lycophyta jkulhanek

repo: jkulhanek/tetra-nerf


text:
Container hangs on startup with podman (Fedora CoreOS)

Hello,
I'm attempting to run this image on CoreOS using podman, but the container hangs indefinitely at 00-app-script.sh: executing....
The following is a minimal example after removing volume/device mounts in case that was the issue:
# podman run --rm --name=makemkv docker.io/jlesage/makemkv:v1.18.1
[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] 00-app-niceness.sh: executing...
[cont-init.d] 00-app-niceness.sh: exited 0.
[cont-init.d] 00-app-script.sh: executing...

Any ideas? Is there a way to enable verbose logging for these scripts?
Thanks in advance!

Apologies, this turned out to be a hardware issue. Thanks for the awesome work!

repo: jlesage/docker-makemkv


text:
Add latest complete mowing

Add latest complete mowing

Will be added in 0.8.0

Fixed in 0.8


text:
Choose an OS LIcense

I'm not under any illusions that my first foray into ncurses will be legally troublesome; however, I would like to get into the habit of adding licenses earlier on to my projects.
Requirements:

[x] Automatically linked in repo header as a shortened license name for ease.
[x] Allows free use with attribution.
[x] Provide a brief explanation of what this license means in the PR.

Do you want to restrict use at all?

Share-alike?
Commercial uses?

I accepted a PR from someone for an MIT license, but you raise some good questions.  Does the MIT license allow commercial use as long as attribution is given?  I'm not sure that sits 100% well with me.  Is there a license that fits the requirements in the issue, which also disallows commercial use?

CC-BY-NC-SA
Creative Commons
BY - Attribute
NC - Non-commercial
SA - Must use the same license

Also, sorry the double fix, I checked for open PRs, not closed ones.

Created a new issue https://github.com/jm-janzen/termq/issues/55 for you PR to reference.  Thanks for for you work/knowledge.  Creative Commons sounds perfect.

Please use CC BY or CC BY-SA instead of CC BY-NC-SA, as the non-commercial clause makes it not open source (incompatible with the OSI definition of open source).

I see.  I'm reading up on this now.  I hadn't really considered it.  As a consumer, that's definitely how I prefer software.

@Calinou after reading up on your suggestion, I agree with your opinion.  If you'd like to submit a PR including an MIT license, I'd gladly accept it.

I did not know that! Very interesting.

Closed by https://github.com/jm-janzen/termq/pull/66.  I think we all learned a lot about OS licensing.  :)

I was doing more reading on this, and I honestly found the best summary to be on Wikipedia. I agree with this move. Thanks for the learning!

Good reference.  I absolutely agree.  Intuitively, -NC makes a lot of sense, but when I think about all the OS libraries and packages I use, full free use is definitely how I'd prefer it as a consumer.

authors: Calinou crhallberg jm-janzen

repo: jm-janzen/termq


text:
准确识别emoji，处理ZWJ字符以及FitzType。

在 UTF-8 格式的字符串中，emoji 的 Unicode 码位是 0x1F600~0x1F64F，通常存储为 UTF-16 格式。
例如：😊存储为 "\uD83D\uDE0A"，对应的 Unicode 是 0x1F60A。
零宽连接符, ZWJ (Zero Width Joiner)
多个 emoji 可以通过零宽连接符(\u200D)组合成新的 emoji。
例如：“👨👩👧👦”实际上是“👨 👩 👧 👦” 通过 ZWJ 符号连接在一起组合而成的，对应的存储为 "\uD83D\DC68\200D\uD83D\DC69\200D\uD83D\DC67\200D\uD83D\DC66"
菲茨派屈克修饰符, (Fitzpatrick modifier)
目前全世界人类的 虚色分级 (Fitzpatrick scale) 是 1975 年由一位叫做 Thomas B. Fitzpatrick 的人制定出來的，他当初定义了 6 种虚色等級。(Type 1 ~ Type 6)。
因为 Type 1 与 Type 2 颜色太相近了，在电脑屏幕上不容易区分，索性就合并了。这5个字元分別是：

Type
Desc
CodePoint
Emoji
UTF-16

fitz_1_2
pale white/white
U+1F3FB
🏻
\uD83C\uDFFB

fitz_3
cream white
U+1F3FC
🏼
\uD83C\uDFFC

fitz_4
moderate brown
U+1F3FD
🏽
\uD83C\uDFFD

fitz_5
dark brown
U+1F3FE
🏾
\uD83C\uDFFE

fitz_6
black
U+1F3FF
🏿
\uD83C\uDFFF

在“人类”emoji后添加下列肤色修饰符，就可以改变emoji的肤色。
例如：在原始emoji 🧑后分别添加5个修饰符，最后得到 🧑🏻🧑🏼🧑🏽🧑🏾🧑🏿。

https://learn.microsoft.com/en-us/globalization/fonts-layout/emoji
https://stackoverflow.com/questions/30757193/find-out-if-character-in-string-is-emoji
https://betterprogramming.pub/understanding-swift-strings-characters-and-scalars-a4b82f2d8fde
https://github.com/vdurmont/emoji-java
https://www.cnblogs.com/goloving/p/16023118.html

通过移植 pango-emoji.c 的代码，目前已经可以识别。


text:
Revised CYOA App Submission

I have deployed this app on Heroku at the following URL:
https://artjourney.herokuapp.com
To sign in, I've created an account for you:
Email: joe@enova.com
Password: mastey
The gist of the app is that admin users can go to the Artists#Index page and add an artist from the Artsy API:
Artsy AP!
This will search for an artist. For example, try "Vincent van Gogh". This will add the artist and their artworks if it doesn't already exist.
All users have a My Profile page, where they can display their favorite artists. The actual favoriting and unfavoriting is handled on the Artist#Show page. This will add the artist to their profile page. In addition, a set of images, one random image from each followed artist, is shown on the User Profile.
My app is fairly conventional. A couple things to note are:

I have an artsy_api_wrapper.rb file in the lib directory. This file handles the connection and requests to the external API.

I have two files in app/services, retrieve_artist.rb and retrieve_artworks.rb, that handle calling the API Wrapper and creating artist and artwork records.

Please let me know if you have any questions. Thank you for reviewing!

Looks good. I added a few notes, but this is really well done. Keep it up!


text:
How to deal with stored procedures that return multiple rows, in golang 1.9 or later (sql.Out)?

So in golang 1.9, sql.Out was introduced, allowing this sort of thing:
  var outArg string
  _, err := db.ExecContext(ctx, "ProcName", sql.Named("Arg1", Out{Dest: &outArg}))

This is relatively straightforward and easy to use if you are getting a single value from a query.
However, if you are getting multiple rows of multiple columns, it is a pain to deal with, because you usually have to use driver.Rows or []driver.Value
(and lets say I can't change my workplace to not use stored procedures).
I would like to be able to scan the results into a struct (and anything else that sqlx package supports).
Here is a concrete example.
The procedure:
PROCEDURE get_regexs( o_csr OUT o_as_cur) IS
BEGIN
  IF (o_csr%ISOPEN) THEN
    CLOSE o_csr;
  END IF;
  OPEN o_csr FOR
    SELECT
      t1.regexp_id,
      t1.regexp,
      t1.other_id,
      t1.regexp_match_type
    FROM
      my_regexp_t t1
    WHERE
     t1.status = 1;;
END;

The code I am currently using:
var rset driver.Rows
res, err := conn.ExecContext(ctx, `begin myuser.get_regexs(:v1); end;`, sql.Out{Dest: &rset})
// Deal with err and defer rset.Close()

rows := make([]driver.Value, len(rset.Columns()))
for {
	if err := rset.Next(rows); err != nil {
		if err == io.EOF {
			break
		}
		return err
	}
	// Manually copy each element in the `rows` slice into a slice of structs...
}

There are a few different ways that sqlx could help.
One way would be to have some sort of ScanStructFromValues method, that takes a driver.Rows and scans it into a struct.
Another way would be to have the current Select method automatically take any sql.Out that is provided as an argument, and scan them into the provided struct interface.  Though on second thought, this would be incomplete because Select only allows one destination interface, while the procedure may have multiple outputs.
Maybe there could be a sqlx.Out that includes the destination interface in it, and sqlx automatically scans it into that struct.
Just some ideas, but I'd like to know if this something you'd consider adding to sqlx.
I would much rather hook into the tried and tested struct scanning that sqlx provides, than recreate the wheel.

Hey @jmoiron, I'm curious to hear what you think?

Having the same thought here in 2020. Any recommended solution?

authors: maverickVision veqryn

repo: jmoiron/sqlx


text:
Invalid Response status when attempting to run oobabot

Giving your fork of oobabot a try today and it seems to be attempting to talk to api/v1/stream which does not look like a valid endpoint when looking at localhost:5000/docs
I believe it should be using localhost:5000/v1/completions but I'm not sure where to configure that?
←[33;40m2024-02-22 21:10:18,052←[0m←[37;40m  INFO ←[0m←[37;40mStarting oobabot, core version 0.2.3←[0m
←[33;45m2024-02-22 21:10:18,054←[0m←[37;45m WARNING ←[0m←[33;45mPyNaCl is not installed, voice will NOT be supported←[0m
←[33;40m2024-02-22 21:10:18,054←[0m←[37;40m  INFO ←[0m←[37;40mOobabooga is at http://localhost:5000←[0m
←[33;40m2024-02-22 21:10:20,092←[0m←[37;40m WARNING ←[0m←[33;40mCould not connect to Oobabooga server: [http://localhost:5000]←[0m
←[33;40m2024-02-22 21:10:20,092←[0m←[37;40m WARNING ←[0m←[33;40mPlease check the URL and try again.←[0m
←[33;40m2024-02-22 21:10:20,094←[0m←[37;40m ERROR ←[0m←[31;40mReason: 403, message='Invalid response status', url=URL('http://localhost:5000/api/v1/stream')←[0m

You're right, it is located here:
https://github.com/jmoney7823956789378/oobabot/blob/ff6bbe5e29d98d4a90345452466f0b4680ee7cf7/src/oobabot/settings.py#L584
When you use --generate-config it should populate new options:
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
# oobabooga
# .
oobabooga:

  # Use the OpenAI API instead of the Oobabooga API.
  #   default: True
  use_openai:

  # OpenAI API key. Required if use_openai is True.
  #   default: awesome_api_key
  api_key:

  # OpenAI API completions endpoint. Defaults to the official OpenAI API URL.
  #   default: http://localhost:5000/v1/completions
  openai_endpoint:

  # Base URL for the oobabooga instance.  This should be ws://hostname[:port] for plain
  # websocket connections, or wss://hostname[:port] for websocket connections over TLS.
  #   default: ws://localhost:5005
  base_url:

  # Base URL for the oobabooga instance.  This should be ws://hostname[:port] for plain
  # websocket connections, or wss://hostname[:port] for websocket connections over TLS.
  #   default: http://localhost:5000
  base_blocking:

I realize I was being very stupid and not pip installing your fork of oobabot but just oobabot so even though I cloned your fork and had your src in my local dir I was actually installing the upstream broken bot... >.<
It works great, now to see if I can get it running as an extension in the text-gen-ui

@Phixia that's kinda my fault too, i forgot to update the readme... either way, glad to help!


text:
node 0.12.0 — Wintersmith does not install cleanly

18:22:40 $ npm install wintersmith -g
npm WARN engine npm@1.3.26: wanted: {"node":">=0.6","npm":"1"} (current: {"node":"0.12.0","npm":"2.5.1"})
npm WARN engine hawk@0.10.2: wanted: {"node":"0.8.x"} (current: {"node":"0.12.0","npm":"2.5.1"})

> fsevents@0.2.1 install /usr/local/lib/node_modules/wintersmith/node_modules/chokidar/node_modules/fsevents
> node-gyp rebuild

child_process: customFds option is deprecated, use stdio instead.
  CXX(target) Release/obj.target/fse/fsevents.o
In file included from ../fsevents.cc:6:
../node_modules/nan/nan.h:339:13: error: no member named 'New' in 'v8::String'
    return  _NAN_ERROR(v8::Exception::Error, errmsg);
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../node_modules/nan/nan.h:319:50: note: expanded from macro '_NAN_ERROR'
# define _NAN_ERROR(fun, errmsg) fun(v8::String::New(errmsg))
                                     ~~~~~~~~~~~~^
../node_modules/nan/nan.h:343:5: error: no member named 'ThrowException' in
      namespace 'v8'
    _NAN_THROW_ERROR(v8::Exception::Error, errmsg);
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../node_modules/nan/nan.h:324:11: note: expanded from macro '_NAN_THROW_ERROR'
      v8::ThrowException(_NAN_ERROR(fun, errmsg));                             \
      ~~~~^
../node_modules/nan/nan.h:343:5: error: no member named 'New' in 'v8::String'
    _NAN_THROW_ERROR(v8::Exception::Error, errmsg);
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../node_modules/nan/nan.h:324:26: note: expanded from macro '_NAN_THROW_ERROR'
      v8::ThrowException(_NAN_ERROR(fun, errmsg));                             \
                         ^~~~~~~~~~~~~~~~~~~~~~~
../node_modules/nan/nan.h:319:50: note: expanded from macro '_NAN_ERROR'
# define _NAN_ERROR(fun, errmsg) fun(v8::String::New(errmsg))
                                     ~~~~~~~~~~~~^
../node_modules/nan/nan.h:348:9: error: no type named 'ThrowException' in
      namespace 'v8'
    v8::ThrowException(error);
    ~~~~^
../node_modules/nan/nan.h:355:65: error: no member named 'New' in 'v8::String'
    v8::Local<v8::Value> err = v8::Exception::Error(v8::String::New(msg));
                                                    ~~~~~~~~~~~~^
../node_modules/nan/nan.h:357:26: error: no member named 'New' in 'v8::String'
    obj->Set(v8::String::New("code"), v8::Int32::New(errorNumber));
             ~~~~~~~~~~~~^
../node_modules/nan/nan.h:369:12: error: no member named 'New' in 'v8::String'
    return _NAN_ERROR(v8::Exception::TypeError, errmsg);
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../node_modules/nan/nan.h:319:50: note: expanded from macro '_NAN_ERROR'
# define _NAN_ERROR(fun, errmsg) fun(v8::String::New(errmsg))
                                     ~~~~~~~~~~~~^
../node_modules/nan/nan.h:373:5: error: no member named 'ThrowException' in
      namespace 'v8'
    _NAN_THROW_ERROR(v8::Exception::TypeError, errmsg);
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../node_modules/nan/nan.h:324:11: note: expanded from macro '_NAN_THROW_ERROR'
      v8::ThrowException(_NAN_ERROR(fun, errmsg));                             \
      ~~~~^
../node_modules/nan/nan.h:373:5: error: no member named 'New' in 'v8::String'
    _NAN_THROW_ERROR(v8::Exception::TypeError, errmsg);
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../node_modules/nan/nan.h:324:26: note: expanded from macro '_NAN_THROW_ERROR'
      v8::ThrowException(_NAN_ERROR(fun, errmsg));                             \
                         ^~~~~~~~~~~~~~~~~~~~~~~
../node_modules/nan/nan.h:319:50: note: expanded from macro '_NAN_ERROR'
# define _NAN_ERROR(fun, errmsg) fun(v8::String::New(errmsg))
                                     ~~~~~~~~~~~~^
../node_modules/nan/nan.h:377:12: error: no member named 'New' in 'v8::String'
    return _NAN_ERROR(v8::Exception::RangeError, errmsg);
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../node_modules/nan/nan.h:319:50: note: expanded from macro '_NAN_ERROR'
# define _NAN_ERROR(fun, errmsg) fun(v8::String::New(errmsg))
                                     ~~~~~~~~~~~~^
../node_modules/nan/nan.h:381:5: error: no member named 'ThrowException' in
      namespace 'v8'
    _NAN_THROW_ERROR(v8::Exception::RangeError, errmsg);
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../node_modules/nan/nan.h:324:11: note: expanded from macro '_NAN_THROW_ERROR'
      v8::ThrowException(_NAN_ERROR(fun, errmsg));                             \
      ~~~~^
../node_modules/nan/nan.h:381:5: error: no member named 'New' in 'v8::String'
    _NAN_THROW_ERROR(v8::Exception::RangeError, errmsg);
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../node_modules/nan/nan.h:324:26: note: expanded from macro '_NAN_THROW_ERROR'
      v8::ThrowException(_NAN_ERROR(fun, errmsg));                             \
                         ^~~~~~~~~~~~~~~~~~~~~~~
../node_modules/nan/nan.h:319:50: note: expanded from macro '_NAN_ERROR'
# define _NAN_ERROR(fun, errmsg) fun(v8::String::New(errmsg))
                                     ~~~~~~~~~~~~^
../node_modules/nan/nan.h:727:49: error: too few arguments to function call,
      single argument 'isolate' was not specified
    v8::Local<v8::Object> obj = v8::Object::New();
                                ~~~~~~~~~~~~~~~ ^
/Users/mitchell/.node-gyp/0.12.0/deps/v8/include/v8.h:2388:3: note: 'New'
      declared here
  static Local<Object> New(Isolate* isolate);
  ^
In file included from ../fsevents.cc:6:
../node_modules/nan/nan.h:733:49: error: too few arguments to function call,
      single argument 'isolate' was not specified
    v8::Local<v8::Object> obj = v8::Object::New();
                                ~~~~~~~~~~~~~~~ ^
/Users/mitchell/.node-gyp/0.12.0/deps/v8/include/v8.h:2388:3: note: 'New'
      declared here
  static Local<Object> New(Isolate* isolate);
  ^
In file included from ../fsevents.cc:6:
../node_modules/nan/nan.h:740:12: error: no member named 'Dispose' in
      'v8::Persistent<v8::Object, v8::NonCopyablePersistentTraits<v8::Object> >'
    handle.Dispose();
    ~~~~~~ ^
../node_modules/nan/nan.h:741:12: error: no member named 'Clear' in
      'v8::Persistent<v8::Object, v8::NonCopyablePersistentTraits<v8::Object> >'
    handle.Clear();
    ~~~~~~ ^
../node_modules/nan/nan.h:746:39: error: no member named 'NewSymbol' in
      'v8::String'; did you mean 'IsSymbol'?
    NanPersistentToLocal(handle)->Set(NanSymbol("callback"), fn);
                                      ^~~~~~~~~~~~~~~~~~~~~
../node_modules/nan/nan.h:181:38: note: expanded from macro 'NanSymbol'
#define NanSymbol(value) v8::String::NewSymbol(value)
                         ~~~~~~~~~~~~^
/Users/mitchell/.node-gyp/0.12.0/deps/v8/include/v8.h:1379:8: note: 'IsSymbol'
      declared here
  bool IsSymbol() const;
       ^
In file included from ../fsevents.cc:6:
../node_modules/nan/nan.h:746:39: error: call to non-static member function
      without an object argument
    NanPersistentToLocal(handle)->Set(NanSymbol("callback"), fn);
                                      ^~~~~~~~~~~~~~~~~~~~~
../node_modules/nan/nan.h:181:38: note: expanded from macro 'NanSymbol'
#define NanSymbol(value) v8::String::NewSymbol(value)
                         ~~~~~~~~~~~~^~~~~~~~~
../node_modules/nan/nan.h:750:46: error: no member named 'NewSymbol' in
      'v8::String'; did you mean 'IsSymbol'?
    return NanPersistentToLocal(handle)->Get(NanSymbol("callback"))
                                             ^~~~~~~~~~~~~~~~~~~~~
../node_modules/nan/nan.h:181:38: note: expanded from macro 'NanSymbol'
#define NanSymbol(value) v8::String::NewSymbol(value)
                         ~~~~~~~~~~~~^
/Users/mitchell/.node-gyp/0.12.0/deps/v8/include/v8.h:1379:8: note: 'IsSymbol'
      declared here
  bool IsSymbol() const;
       ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make: *** [Release/obj.target/fse/fsevents.o] Error 1
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:267:23)
gyp ERR! stack     at ChildProcess.emit (events.js:110:17)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:1067:12)
gyp ERR! System Darwin 14.3.0
gyp ERR! command "node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /usr/local/lib/node_modules/wintersmith/node_modules/chokidar/node_modules/fsevents
gyp ERR! node -v v0.12.0
gyp ERR! node-gyp -v v1.0.2
gyp ERR! not ok
npm WARN engine boom@0.3.8: wanted: {"node":"0.8.x"} (current: {"node":"0.12.0","npm":"2.5.1"})
npm WARN engine cryptiles@0.1.3: wanted: {"node":"0.8.x"} (current: {"node":"0.12.0","npm":"2.5.1"})
npm WARN engine hoek@0.7.6: wanted: {"node":"0.8.x"} (current: {"node":"0.12.0","npm":"2.5.1"})
npm WARN engine sntp@0.1.4: wanted: {"node":"0.8.x"} (current: {"node":"0.12.0","npm":"2.5.1"})
npm WARN package.json github-url-from-git@1.1.1 No repository field.
npm WARN optional dep failed, continuing fsevents@0.2.1
/usr/local/bin/wintersmith -> /usr/local/lib/node_modules/wintersmith/bin/wintersmith
wintersmith@2.1.0 /usr/local/lib/node_modules/wintersmith
├── server-destroy@1.0.0
├── slugg@0.1.2
├── rimraf@2.2.8
├── colors@0.6.2
├── ncp@0.5.1
├── mime@1.2.11
├── async@0.2.10
├── mkdirp@0.3.5
├── marked@0.3.3
├── minimatch@0.2.14 (sigmund@1.0.0, lru-cache@2.5.0)
├── optimist@0.6.1 (wordwrap@0.0.2, minimist@0.0.10)
├── coffee-script@1.6.3
├── highlight.js@8.0.0
├── winston@0.7.3 (cycle@1.0.3, stack-trace@0.0.9, eyes@0.1.8, pkginfo@0.3.0, request@2.16.6)
├── js-yaml@3.0.2 (argparse@0.1.16, esprima@1.0.4)
├── jade@1.1.5 (character-parser@1.2.0, commander@2.1.0, monocle@1.1.51, with@2.0.0, constantinople@1.0.2, transformers@2.1.0)
├── chokidar@0.8.4 (recursive-readdir@0.0.2)
└── npm@1.3.26 (normalize-package-data@1.0.3)

https://github.com/strongloop/fsevents/issues/43
seems to be related to an existing bug with python support for Gyp

Reverted to node 0.10.36 and it worked. Hope everything will get smoothed out for 0.12 soon!

It looks like the bug in fsevents occurs in the chokidar module, according to this line:
> fsevents@0.2.1 install /usr/local/lib/node_modules/wintersmith/node_modules/chokidar/node_modules/fsevents

Chokidar has been updated, so Wintersmith is still using an older version. It looks like this PR (https://github.com/jnordberg/wintersmith/pull/280) proposes bumping Chokidar to the latest version. I tried this change myself on a fork (https://github.com/louh/wintersmith) and it appears to fix the install problem.

Thanks @louh, using your branch fixes the problem for me
I'm using:
$ npm --version
2.7.5
$ node --version
v0.12.2

Could this be brought into Wintersmith master please?

Just published 2.2.0, should work with 0.12. :beers:

Thanks @jnordberg -- it's great to see development pick back up!

Thanks @jnordberg! This is working for me now too.

authors: bmcminn gavD jnordberg louh mitchchn

repo: jnordberg/wintersmith


text:
🛑 CEI Sales Wiki is down

In 4afa5b8, CEI Sales Wiki (https://wiki.ceisales.com/login) was down:

HTTP code: 0
Response time: 0 ms

Resolved: CEI Sales Wiki is back up in 6d20b98 after 17 minutes.


text:
🛑 CEI Sales is down

In 07101d8, CEI Sales (https://ceisales.com) was down:

HTTP code: 0
Response time: 0 ms

Resolved: CEI Sales is back up in 52ed702 after 18 minutes.


text:
🛑 RoNet is down

In 15a272d, RoNet (https://ronet.xtelecom.ro/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: RoNet is back up in bcf48c6.


text:
Error compiling libraries

Hi
I am following lg library installation instructions, but when running "make", I get many errors as below. Am I missing something in the installation. Thanks.

Did you manage to build it?

Looks like you have kernel before v5.10, when gpiochip API v2 was introduced.
Actually dropping gpiochip API v1 from lgpio v0.2 it's a problem, becouse a lot of embedded systems use LTS kernel before v5.10.
I make openembedded/yocto recipe for lgpio, and forced to drop last commit before v0.2 becouse of this :(

authors: alainguima mauricio-bv ramok

license: Unlicense


text:
Informational  Query:  Expected CPU loading when PiGPIOd should be effectively idle?

Informational  Query:  Expected CPU loading when PiGPIOd should be effectively idle?  I am seeing CPU loading between 6 and 9 % when the PiGPIOd process should be effectively idle.  Could you provide some insight as to why or how this is the case?  Not an issue per se, but seeking understanding on how or why this is the case?

The daemon is sampling the levels of GPIO 0-31 two hundred thousand times a second (default values).  The background loading is the time taken to go through those levels to see if anything has changed.
http://abyz.me.uk/rpi/pigpio/cif.html#gpioCfgClock

Ah, thanks.  This is great information.

license: unlicense


text:
Performance

Improve performance of company page
containing:
/public/company/{slug}/
/public/company/{slug}/interview/
/public/company/{slug}/review/
/public/company/{slug}/salary/
/public/company/{slug}/questions/

hello guys
any special reason for this line?
https://github.com/jobguywork/backend/blob/e88b6e6173a00524a80f35ddcb3537f4de7bd89f/company/views.py#L421

@MAM-SYS that was redundant, i removed it in #45

authors: MAM-SYS sbabashahi

repo: jobguywork/backend


text:
Image Center

@CodingSpecies & @AvidCoder101 please review.

Perhaps you could do:

Perhaps you could do:

This would work

Are you sure? can you please check my branch and see changes.

My branch: https://github.com/jobream/List-of-Learning-Resources/tree/MRslimcoder-patch-1

Guy's adding more issues which I found in this project.

repo: jobream/List-of-Learning-Resources


text:
Error setting up entry Windcentrale for windcentrale

Checklist

[X] I'm running the latest version of the Windcentrale integration.
[X] I checked if there is not a duplicate issue with the same question.
[X] I have read the README.md page.
[X] This issue is a bug related to the Windcentrale integration.
[X] This issue only contains 1 issue (if you have multiple issues, open one issue for each issue).
[X] I have filled out the issue template to the best of my ability.

The problem
I just installed the beta version, but got:
Logger: homeassistant.config_entries
Source: custom_components/windcentrale/wind.py:26
Integration: Windcentrale (documentation, issues)
First occurred: 22:31:05 (1 occurrences)
Last logged: 22:31:05
Error setting up entry Windcentrale for windcentrale
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 387, in async_setup
result = await component.async_setup_entry(hass, self)
File "/config/custom_components/windcentrale/init.py", line 19, in async_setup_entry
hass.data[DOMAIN][entry.entry_id] = wind.Wind(hass, entry)
File "/config/custom_components/windcentrale/wind.py", line 26, in init
self.credentialsapi = Credentials(self.hass, self.config_entry.data[CONF_EMAIL], self.config_entry.data[CONF_PASSWORD], self.config_entry.data[CONF_PLATFORM])
KeyError: 'platform'
What is version of Home Assistant Core did you recieve the bug?
2023.5.4
What is version of Home Assistant Supervisor did you recieve the bug?
2023.04.1
What is version of Home Assistant Supervisor?
2023.04.1
What is version of the Windcentrale integration?
0.2.7-Beta
Example Code snippet
No response
Anything in the logs that might be useful for us?
No response
Additional information
It looks like it is related to the latest changes in platform webhook. For an other configuration, I needed to add '      allowed_methods:
- POST
'.

Yeah it's a beta. For people using https://winddelen.nl/ look at https://github.com/jobvk/Home-Assistant-Windcentrale/discussions/95.
For you, reinstall the component it should still work or just go back to 0.2.6

I did a reinstall and everythings works again. I will ignore the beta versions in the future!

authors: Xorfor jobvk

repo: jobvk/Home-Assistant-Windcentrale


text:
Implement Websocket Ping

Since browser clients do not implement websocket control frames, the ws ping/pong mechanism is unavailable. it is left to the client/server protocol vendors to develop their own solution. To facilitate a healthcheck mechanism we should implement this so that browser clients such as Tricordarr and maybe a future web UI can utilize it for socket aliveness checking.

I am going to close this until a more concrete need comes up. The implementation code is in the linked PR.

repo: jocosocial/swiftarr


text:
Some words can remove

This ranges from a university undergraduate science student in which their curriculum includes electron microscopy (EM),
The length or distance of a ”pixel” by which the probe is moved or deflected to when raster scanning the surface of a sample
This section provides the assumptions, instance models, theoretical models, general definitions, and the data constraints.

Thanks!

authors: KarenKarenWang joedf


text:
[Questions]: How can get cookie which is set in webview in react-native?

I am trying to retrieve user entered zipcode which is added to the cookie in the webview. How do I get it? I have tried react-native-cookies which is getting an empty object not the user entered zipcode. When pass useWebKit to true and CookieManager.get('https://www.example.com', true) getting error RNCookieManagerIOS.get was called with 2 arguments but expects 1 arguments
import CookieManager from 'react-native-cookies';

componentWillMount() {
    CookieManager.get('https://www.example.com', true)
// when pass true getting error RNCookieManagerIOS.get was called with 2 arguments but expects 1 arguments
    .then((res) => {
      console.log('CookieManager.get from webkit-view =>', res);
    });
  }
}

<WebView
  style={styles.webview}
  source={{ uri: 'https://www.example.com' }}
  injectedJavaScript={INJECTED_JAVASCRIPT}
  mixedContentMode="compatibility"
  javaScriptEnabled
  domStorageEnabled
  thirdPartyCookiesEnabled
  sharedCookiesEnabled
  useWebKit
  originWhitelist={['*']}
/>

Versions
"react": "16.8.3",
"react-native": "0.59.9",
"react-native-cookies": "3.3.0"

Why are you providing the "true" , is it the value for "WebKit" ? In this case you might confused with React-Native-Cookies and React-Native-Cookie

Yes, I am using the true for useWebKit: bool.
Well I tried two approaches:
First:
import CookieManager from 'react-native-cookies';

componentWillMount() {
    CookieManager.get('https://www.example.com')
    .then((res) => {
      console.log('CookieManager.get from webkit-view =>', res);
// this gives me an object with the server sent cookies but not the user set zipcode
    });
  }
}

<WebView
  style={styles.webview}
  source={{ uri: 'https://www.example.com' }}
  injectedJavaScript={INJECTED_JAVASCRIPT}
  mixedContentMode="compatibility"
  javaScriptEnabled
  domStorageEnabled
  thirdPartyCookiesEnabled
  sharedCookiesEnabled
  originWhitelist={['*']}
/>

Second:
import CookieManager from 'react-native-cookies';
componentWillMount() {
CookieManager.get('https://www.example.com', true)
// when pass true getting error RNCookieManagerIOS.get was called with 2 arguments but expects 1 arguments
.then((res) => {
console.log('CookieManager.get from webkit-view =>', res);
});
}
}
<WebView
style={styles.webview}
source={{ uri: 'https://www.example.com' }}
injectedJavaScript={INJECTED_JAVASCRIPT}
mixedContentMode="compatibility"
javaScriptEnabled
domStorageEnabled
thirdPartyCookiesEnabled
sharedCookiesEnabled
useWebKit
originWhitelist={['*']}
/>
According to https://github.com/joeferraro/react-native-cookies#webkit-support-ios-only, it does say to pass a bool with the url to use the webkit support.

I have forked the repo here: https://github.com/safaiyeh/react-native-cookie-store
We can create issues and PRs there to continue the development of the project.

authors: keyneslim safaiyeh subhendukundu

repo: joeferraro/react-native-cookies


text:
Deprecate extractor

Check List:

Fixes #1348
Unit tests : YES
Javadoc with a code example (API only) : NA

I was not sure whether you want to completely remove all places where Extractor is being used. For example from Extractors, make ThrowingExtractor extend Function and whether you want to keep tests with Extractor. I have no problem in completely removing all places that use that.

I'm fine with replacing Extractor by Function when possible.
Thanks for this refactoring!

I've replaced the Extractor in all places from the production code. I've left some usages in the tests so we can make sure that it works in a backwards compatible way.

Integrated thanks @filiphr!

authors: filiphr joel-costigliola

repo: joel-costigliola/assertj-core


text:
Add method to use SoftAssertions with any custom Assertions

Add static assertSoftly method to be able to use  any common and custom assertion side by side within on assertSoftly call/scope e.g.
        SoftAssertions.assertSoftly(
                () -> Assertions.assertThat("test1").isEqualTo("bar"),
                () -> GuavaAssertions.assertThat(...).contains(...),
                () -> MyAssertion.assertThat(...).contains(...)
        );

Check List:

Unit tests : NO
Javadoc with a code example (API only) : NO

I will review this PR shortly, a quick look shows that it lacks tests but I need to look first at the problem you are trying to solve.

I will add tests and inline docuu if you approve this idea.
On Fri, 8 Mar 2019, 11:13 Joel Costigliola, notifications@github.com
wrote:

I will review this PR shortly, a quick look shows that it lacks tests but
I need to look first at the problem you are trying to solve.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/joel-costigliola/assertj-core/pull/1460#issuecomment-470876840,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ADx6Ak7ESM1D1O-F7rEJk87CxUFgPeIOks5vUjfRgaJpZM4bih_g
.

I've updated my initial description as well as simplify my implementation

Just had an idea for a better more generic approach
        SoftAssertions softly = new SoftAssertions();
        softly.assertThat( () -> MyAssertion.assertThat(...).contains(...) );

@qoomon sorry for the long delay, I'm sympathetic to the idea.
I'm not too sure about using $ because it won't be clear what it does when discovering with code completion. I haven't a clear way of naming that I was thinking of run, execute or check, I'm putting all my suggestions below to get a more visual idea of it looks like:
SoftAssertions softly = new SoftAssertions();
softly.check( () -> MyAssertions.assertThat(...).contains(...) );
softly.run( () -> MyAssertions.assertThat(...).contains(...) );
softly.execute( () -> MyAssertions.assertThat(...).contains(...) );

check has my preference at the moment.

just brain storming...
SoftAssertions softly = new SoftAssertions();
softly.perform( () -> assertThat(...).contains(...) );
softly.handle( () -> assertThat(...).contains(...) );
softly.run( () -> assertThat(...).contains(...) );
softly.assertAll();

SoftAssertions assertionGroup = new SoftAssertions();
assertionGroup.add( () -> assertThat(...).contains(...) );
assertionGroup.assertAll();

Maybe we should use an own interface instead of runnable, that allows throwing exceptions on run method call.

like this one?  https://github.com/joel-costigliola/assertj-core/blob/b82b86b2c54bb33c09103744ea0d7af4b37b4dee/src/main/java/org/assertj/core/api/ThrowableAssert.java#L32

exactly

@qoomon sorry for the long delay, I'm happy with the idea and adding a check method.Can you add tests for it ?

sure I will do it during the week.

I've just had an other idea for the method name, what about?
softly.defer( () -> assertThat(...).contains(...) );

test is added aw well

Sweet, I'll have a look at it shortly.
defer feels to me like something that is going to be computed at some point in the future but you don't know when, I still prefer check that is more obvious to me.

I agree, last naming idea :-) what about just softly.test(...) because it's like a sub test, and I think it's easier to understand what test does in an testing class than a new wording like check .

IMO it is likely that what you put in softly.test(...) is only the assertion part of a test (the THEN part of a GIVEN WHEN THEN test) that's why I think it's more a check (or verify) than a test.

Okay You convinced me, check is probably the best wording

I've changed method name to test

One more method name idea :-D
softly.validate(() -> assertThat(...));
softly.validate(() -> assertThat(...));

What about softly.declare(() -> assertThat(...).contains(...)), actually I don't know why but I don't like check as method name, maybe because check is just a synonym for test

or softly.assertion(() -> assertThat(...).contains(...))

or softly.handle(() -> assertThat(...).contains(...))

declare : well it's not a declaration, so nope
assertion: not elegant as assert appears twice (assertion and assertThat)
handle : not intention revealing, too generic

check is more specific than test IMO, it still has me preference.
I'm waiting for your next suggestions if you haven't exhausted all of them yet ;-)

Okay let's stick to test 😁

Sure
On Tue, 4 Jun 2019, 11:15 Joel Costigliola, notifications@github.com
wrote:

you meant check I guess
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/joel-costigliola/assertj-core/pull/1460?email_source=notifications&email_token=AA6HUATY7ZC3OWP5MMUVCQ3PYYXCJA5CNFSM4G4KD7QKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODW36KTQ#issuecomment-498591054,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AA6HUASZ6ZEGL6BGW5DGWG3PYYXCJANCNFSM4G4KD7QA
.

Thanks @qoomon, I have finished commenting your PR.

Rethrow exceptions and usage example added

Integrated thanks @qoomon !

authors: joel-costigliola qoomon


text:
Extra Keywords

I've took the liberty of adding two keywords: error , to and let that I find particularly useful.

Thanks for the contribution, hope you find the plug-in useful  :)👍

@joelbeedle thanks for merging the PR, it's a handy plugin and I use it frequently.

authors: joelbeedle konradzdeb

repo: joelbeedle/pseudo-syntax


text:
[Ruby] Add BuiltinPackageDownloader scraper

This PR:

Scrape rubydoc to generate a NamespaceTypeMap for builtin ruby packages
Generate .zip folder with MessagePack files for each of the gems to be re-used
Write to JSON for sanity checking (to be removed)

@AndreiDreyer I've merged the GH actions, you may want to rebase this PR with that to make sure it passes

authors: AndreiDreyer DavidBakerEffendi

repo: joernio/joern-type-stubs


text:
joern Python

Somehow it seems I can't get joern work for python source code. It only generates empty graphs even if I use the test case from https://github.com/joernio/joern/blob/master/tests/code/pythonsrc/simple.py
I'm using the joern interactive mode. What is wrong?

Thank you!

Did you put you code in a folder and import that folder?

Hello @billquan,
it works doing it this way:

authors: Liyw979 billquan itsacoderepo

repo: joernio/joern


text:
[feat] Extended Type Annotations for TimeStep

Extend the Type Generics for TimeStep so that one is allowed by the type-checker to create transformations of other TimeStep objects.
Example behaviour,

# Or just step: TimeStep without annotations
step: TimeStep[jax.Array] = ...

new_step: TimeStep[tuple[int]] = jax.tree_map(jnp.shape, step)

At the moment this is only possible for the Observation field.

This would be solved by https://peps.python.org/pep-0696/

For now I will simply extend the TimeStep with Generics for all fields and bound them with their current type and the PyTree type from jaxtyping

This problem is tracked further in #28


text:
Feature request: allow to disable lazy load per image or dom container

Use case: Image slider. Its ugly if you swipe to the next image, but the image is not loaded yet.
Disabling lazy load for the whole page is not desireable because there could be content below the viewport which should still lazy load.

Doesn't the .offset property help with this use case?

authors: joeyvandijk klemens-u

repo: joeyvandijk/rimg


text:
Call bot with "Relevant xkcd: {number}"

Add the ability to call the bot by commenting:
Relevant xkcd: {number}
Example comment:
Relevant xkcd: 327
The two streams that are currently being analyzed are:

Comments in /r/xkcd
Inbox items (username mentions, private messages)

This change will require analyzing comments from outside /r/xkcd which is currently not implemented. It will also require a new matching pattern.

I submitted a pull request for this issue. I am new to contributing to open source projects, so please let me know if I am doing something wrong.

Thanks for the contribution! Before I merge this, would you be able to implement some tests to ensure there are no obvious issues?

There's a PR for this at #25.

Closed by #25

authors: HaydoMaydo joeyvanlierop sadoe

repo: joeyvanlierop/xkcdbot


text:
adapting the concept to interface with Flutter

I am using grpc with dart alot and flutter.
I also use this code and gropherjs.
But i am finding flutter a compelling solution where web just does not cut it.
so  I am playing around with ideas for codegen from the protobufs all the way up to lots of client code.
I am not asking for this, but more raising the aspect that doing a similar thing with Flutter is a really good fit. For example. Flutter heavily uses the Reflux pattern to get stuff done.
Here is a really good boiler plate to show what i mean:
https://github.com/FranPitri/flutter_redux_boilerplate
Here is the codegen approach:
https://github.com/davidmarne/built_redux
BTW built IS the default way of naming stuff in the dart world that is used for codegen.
NONE of the above are hooked up with GRPC YET !
https://github.com/grpc/grpc-dart
Getting golang and dart / flutter talking over pure GRPC is really easy. Been doing that for a while.
Its just the normal protoc calls and your flying.

Hi! Thanks for your suggestion.
I admit I don't really understand what you mean. Is flutter a web framework? How would this project interface with Flutter? Is Dart able to run in the backend? This project should work with any gRPC server exposed behind the gRPC-Web proxy. Could you expand a little on what it would mean for this project?

sure. Thanks for taking an interest.
I was skeptical at first but got grpc between golang and dart going in about 10 minutes. I was knd of stunned how easy it was.
what is Flutter ?
https://github.com/flutter/flutter
Show me the Money ?? I want demos :)
https://play.google.com/store/apps/details?id=io.flutter.demo.gallery
https://play.google.com/store/apps/details?id=de.aaronoe.moviesflutter
It allows you to build Apps for Mobiles ( and desktops) using only Dart.
Its the basis of google maybe next OS called Fuschia.
https://9to5google.com/2018/03/02/fuchsia-friday-first-fuchsia-app/
It supports plugins and you can write them in golang too .
https://github.com/flutter/plugins
Most pakcages are here:
https://pub.dartlang.org/
even GRPC :)
https://pub.dartlang.org/packages/grpc
It has zero dependency on the Native GUi controls. Its actually built on top of skai which is what Google Chome and Xamarim ( spelling) is also build on ironically
Its taking off big time IMHO.
Its so easy to write and publish mobiles apps.
YES Dart can run Server side. It can also run on embedded and desktops.
I got it running on a Rasp PI3.
Yes you can use GRPC between golang and dart easily.
Check out my hacky GRPC golang to DART make file.
# Get golang server and dart client talking over grpc.

# dart Walkthrough : https://grpc.io/docs/tutorials/basic/dart.html
# go equivalent: https://github.com/grpc/grpc-go/tree/master/examples/route_guide

DART_LIBPATH=github.com/grpc/grpc-dart
DART_LIBGOPATH=$(GOPATH)/src/$(DART_LIBPATH)

GO_LIBPATH=google.golang.org/grpc
GO_LIBGOPATH=$(GOPATH)/src/$(GO_LIBPATH)

print:
	@echo
	@echo DART_LIBPATH $(DART_LIBPATH)
	@echo DART_LIBGOPATH $(DART_LIBGOPATH)
	@echo
	@echo GO_LIBPATH $(GO_LIBPATH)
	@echo GO_LIBGOPATH $(GO_LIBGOPATH)

dep-os:
	#go get golang.org/x/mobile/cmd/gomobile
	#gomobile init # it might take a few minutes

	# get the dart protoc plugin
	pub global activate protoc_plugin

dep:
	go get -u $(GO_LIBPATH)
	go get -u $(DART_LIBPATH)

dep-clean:
	rm -rf $(DART_LIBGOPATH)
	rm -rf $(GO_LIBGOPATH)

## Golang stuff

go-open-code:
	code $(GO_LIBGOPATH)/examples/route_guide

go-build:
	#cd $(GO_LIBGOPATH)/examples/route_guide && protoc -I protos/ routeguide/route_guide.proto --go_out=grpc:routeguide/generated

	cd $(GO_LIBGOPATH)/examples/route_guide/server && go generate

go-run-server:
	cd $(GO_LIBGOPATH)/examples/route_guide/server && go run server.go -json_db_file $(GO_LIBGOPATH)/examples/route_guide/testdata/route_guide_db.json -port 8080 -tls=true

go-run-client:
	cd $(GO_LIBGOPATH)/examples/route_guide/client && go run client.go -server_addr 127.0.0.1:8080 -tls=true

## Flutter stuff

dart-open-code:
	code $(DART_LIBGOPATH)

dart-build:
	cd $(DART_LIBGOPATH)/example/route_guide && pub get

	# gen dart server
	cd $(DART_LIBGOPATH)/example/route_guide && protoc -I protos/ protos/route_guide.proto --dart_out=grpc:lib/src/generated

	# gen golang server
	#cd $(DART_LIBGOPATH)/example/route_guide && protoc -I protos/ protos/route_guide.proto --go_out=grpc:go/generated

dart-run-server:
	# run server
	cd $(DART_LIBGOPATH)/example/route_guide && dart bin/server.dart

dart-run-client:
	# run server
	cd $(DART_LIBGOPATH)/example/route_guide && dart bin/client.dart -tls=true

ft-build-ios:
	# do this to bootstrap IOS befroe you start coding.
	cd caddy/example && flutter build ios --no-codesign

ft-open-ios:
	# open xcode proj.
	open caddy/example/ios/Runner.xcworkspace

ft-run-ios:
	cd caddy/example && flutter run

What i mean for this project ?
Its more about reusing the Protobufs. You know how other got gopherjs working on top of this ?
Well i think the same can be done with Dart / Flutter. Specifically Dart.
Like the guy in London did:
https://github.com/myitcv/react/wiki/Creating-a-GopherJS-React-app
He boot strapped on top of the generated types agian :)
Because Reflux is pretty much THE way to manage state on Flutter apps there is good synergy.
There are a couple of ways to skin this cat, but i see pretty amazing potential
Ways to skin it:

You can do golang to gomobile over GPRC and then protobufs from the gomobile into Dart and manage all the reflxu at the gomobile level. But thats crazy ?? Well maybe not because you can leverage the same code for web or other things too.

this one gets you client side DB using badger or bolt.

Just golang to Dart over GRPC. Sure thats easy one and pretty cool.

a few other ways i am sure you might think up..

anyway sorry about the Rant.
I am playing around with 1 and 2 above and its been pretty nice experience.
Its very very early days and this is only being done at nights for me.
Feel free to ask a ton if questions..

I admit I'm still confused exactly what you're proposing here.

Its more about reusing the Protobufs. You know how other got gopherjs working on top of this?

I don't understand. Are you saying I should generate other types? Do you think you could write a concrete proposal? What does this have to do with GopherJS?

Its got nothing to do with gopherjs.  Its replacing it with dart / flutter

repo: johanbrandhorst/protobuf


text:
Feature request: CreditCardFieldFormatter attributes

Requesting the card number attribute from https://developers.google.com/web/updates/2015/06/checkout-faster-with-autofill be added to the credit card field - namely "autocomplete="cc-number"

Fixed in 2.0.0.beta1. Re-open if not working as expected.


text:
Message list overflow not working on Firefox

I think this is a known bug of Firefox: when you use a flexbox with column-reverse or row-reverse, the overflow doesn't work.
In this case the message list will expand outside the container div, because messega bubbles are inside a column-reverse flexbox
Here is a screenshot of the demo application

With overflow working properly the scrollbar would be inside the bubbles container, not at the edge of the page.
Is there a workaround to make it work even on Firefox?

Same problem here,
but instead, I receive a list that does not enter the render but has the scroll to see, when I send a new message, it expands all messages list and also the text area imput

So overflow will be fixed, in next release, but there is a bigger problem.
https://bugzilla.mozilla.org/show_bug.cgi?id=1042151
firefox has a bug with scrolling 'flex-direction: collumn-reverse' so scroll is not working :(

Given the issue has been outstanding in the Mozilla community for so long, I don't expect a fix will be rolled out any time soon. @johniak, I've found a way around the scrolling bug in Firefox and IE, by separating out the div containers using the column-reverse. Here is the change I made (please be kind, I'm only a newbie 😄 ):
`#WebScrollView.js L19 onwards.
render() {
const {
ListHeaderComponent,
ListFooterComponent,
data,
inverted,
} = this.props;
let messages = data;
if (!inverted) {
messages = data.slice().reverse();
}
return (

{ListHeaderComponent()}
{messages.map(this.renderItem)}
{ListFooterComponent()}

);
}
}
const styles = {
container: {
height: '100%',
minHeight: '100%',
width: '100%',
overflow: 'auto',
transform: 'rotateX(180deg)',
},
innerContainer: {
width: '100%',
display: 'flex',
flexDirection: 'column-reverse',
flex: 1,
alignItems: 'stretch',
transform: 'rotateX(180deg)',
},
};`
If a PR is appropriate, please let me know and I'll make one.
I had a couple of issues during compiling, which meant my load more button failed to build correctly, but I believe this was my build environment. I also noticed was that the fix had undone the reverse scroll of the chat window- so apologies for the gnarly 360 in the elements, I'm sure there's a cleaner way to do this, and it is unnecessary.

authors: atomicacorn carrizo88 johniak selyon

repo: johniak/react-web-gifted-chat


text:
Gemfile installation requires require

I had to use gem 'naturalsort', require: 'natural_sort' to get it working.
Not sure if having a naturalsort.rb that just does require 'natural_sort' is the best way to address this or if there's something better.

Yeah I think we need to add naturalsort.rb as you say. Can you raise a PR?

Sure.

Strange, I cannot reproduce the issue with a Gemfile that points to a local copy of the gem.

authors: johnnyshields jpmoral

repo: johnnyshields/naturalsort


text:
Service (factory) naming inconsistencies

I would expect a consistent naming usage in the examples instead of a mix, ex: 'test', 'testservice', 'testService'. Are such inconsistencies acceptable, on even intended?

logger: y010
dataservice: y033
dataService: y052
creditService: y035
showServiceError: y035
exception: y111
movieService: y081
moviesPrepService:  y081
storage: y010
storageService: y100
localstorage: y152
avengerService: y100

I hate camelCase in JavaScript. but it exists.
Feel free to PR the casing if you like

I think in the end it's up to the developer to determine a consistent naming convention from the suggestions provided in the style guide.  Many online examples I've seen seem to lack consistency.
I've adopted these conventions:
// modules
videoApp

// controllers
VideoListCtrl as video_list_ctrl
VideoCtrl
EditVideoCtrl

// services
Videos

// directives
videoList

// constants - uppercase from my PHP background
VIDEO_API_URL

Yes, in the end developer consistency is what's important. I think it would be ideal to be a good example by being consistent in the guide as well. I'll clean the usage up and submit a PR at which time more discussion can take place if needed.

naming conventions are in the style guide already. Feel free to use those and clean up any inconsistencies you see.

addressed with #476 to fix the oddities.
services that are clear should omit service as a suffix. Often these are verbs. Services that are nouns and could be confused with models (i.e. customers vs customersService) should have a suffix.
exception and showCreditError and some others were inline functions, not anything angular related.

authors: ciwchris johnpapa robrothedev

repo: johnpapa/angular-styleguide