text:
Let's Encrypt: Internal Error

I used the hassio addon for quite some time now. Today I tried to migrate the proxy manager to my synology. For that I use the synology docker manager and this docker image.
So I installed the latest version (1.7.0) and configured my port forwarding. The only issue I had was with the lets encrypt certificate. When I tried to request a certificate, I got an "Internal error":

This is the content in the /config/log/letsencrypt/letsencrypt.log:
2020-03-18 17:02:07,145:DEBUG:certbot.main:certbot version: 0.30.2
2020-03-18 17:02:07,147:DEBUG:certbot.main:Arguments: ['--non-interactive', '--config', '/etc/letsencrypt.ini', '--cert-name', 'npm-15', '--agree-tos', '--email', 'mail@zoker.me', '--preferred-challenges', 'dns,http', '--webroot', '--domains', 'wg.zkr.io']
2020-03-18 17:02:07,150:DEBUG:certbot.main:Discovered plugins: PluginsRegistry(PluginEntryPoint#manual,PluginEntryPoint#null,PluginEntryPoint#standalone,PluginEntryPoint#webroot)
2020-03-18 17:02:07,202:DEBUG:certbot.log:Root logging level set at 20
2020-03-18 17:02:07,204:INFO:certbot.log:Saving debug log to /config/log/letsencrypt/letsencrypt.log
2020-03-18 17:02:07,206:DEBUG:certbot.plugins.selection:Requested authenticator webroot and installer None
2020-03-18 17:02:07,220:DEBUG:certbot.plugins.selection:Single candidate plugin: * webroot
Description: Place files in webroot directory
Interfaces: IAuthenticator, IPlugin
Entry point: webroot = certbot.plugins.webroot:Authenticator
Initialized: <certbot.plugins.webroot.Authenticator object at 0x7fded3100a90>
Prep: True
2020-03-18 17:02:07,223:DEBUG:certbot.plugins.selection:Selected authenticator <certbot.plugins.webroot.Authenticator object at 0x7fded3100a90> and installer None
2020-03-18 17:02:07,224:INFO:certbot.plugins.selection:Plugins selected: Authenticator webroot, Installer None
2020-03-18 17:02:07,320:DEBUG:acme.client:Sending GET request to https://acme-v02.api.letsencrypt.org/directory.
2020-03-18 17:02:07,326:DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): acme-v02.api.letsencrypt.org
2020-03-18 17:02:12,333:DEBUG:certbot.log:Exiting abnormally:
Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/urllib3/connection.py", line 141, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3.6/site-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Try again

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3.6/site-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3.6/site-packages/urllib3/connectionpool.py", line 850, in _validate_conn
    conn.connect()
  File "/usr/lib/python3.6/site-packages/urllib3/connection.py", line 284, in connect
    conn = self._new_conn()
  File "/usr/lib/python3.6/site-packages/urllib3/connection.py", line 150, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fded3046d30>: Failed to establish a new connection: [Errno -3] Try again

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/requests/adapters.py", line 445, in send
    timeout=timeout
  File "/usr/lib/python3.6/site-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3.6/site-packages/urllib3/util/retry.py", line 388, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='acme-v02.api.letsencrypt.org', port=443): Max retries exceeded with url: /directory (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fded3046d30>: Failed to establish a new connection: [Errno -3] Try again',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/bin/certbot", line 11, in <module>
    load_entry_point('certbot==0.30.2', 'console_scripts', 'certbot')()
  File "/usr/lib/python3.6/site-packages/certbot/main.py", line 1364, in main
    return config.func(config, plugins)
  File "/usr/lib/python3.6/site-packages/certbot/main.py", line 1233, in certonly
    le_client = _init_le_client(config, auth, installer)
  File "/usr/lib/python3.6/site-packages/certbot/main.py", line 604, in _init_le_client
    acc, acme = _determine_account(config)
  File "/usr/lib/python3.6/site-packages/certbot/main.py", line 521, in _determine_account
    config, account_storage, tos_cb=_tos_cb)
  File "/usr/lib/python3.6/site-packages/certbot/client.py", line 181, in register
    acme = acme_from_config_key(config, key)
  File "/usr/lib/python3.6/site-packages/certbot/client.py", line 51, in acme_from_config_key
    return acme_client.BackwardsCompatibleClientV2(net, key, config.server)
  File "/usr/lib/python3.6/site-packages/acme/client.py", line 814, in __init__
    directory = messages.Directory.from_json(net.get(server).json())
  File "/usr/lib/python3.6/site-packages/acme/client.py", line 1152, in get
    self._send_request('GET', url, **kwargs), content_type=content_type)
  File "/usr/lib/python3.6/site-packages/acme/client.py", line 1101, in _send_request
    response = self.session.request(method, url, *args, **kwargs)
  File "/usr/lib/python3.6/site-packages/requests/sessions.py", line 512, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3.6/site-packages/requests/sessions.py", line 622, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3.6/site-packages/requests/adapters.py", line 513, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='acme-v02.api.letsencrypt.org', port=443): Max retries exceeded with url: /directory (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fded3046d30>: Failed to establish a new connection: [Errno -3] Try again',))
2020-03-18 17:02:12,340:ERROR:certbot.log:An unexpected error occurred:

Is this an issue with this image or with the base image or is my configuration wrong?
Is this issue related?
https://github.com/jc21/nginx-proxy-manager/issues/180#issuecomment-599278001
Thank you!
Edit:
A little bit more information: I also tried version 1.6.0, but it has the same issue.
For both version: Connecting to my devices trough the manager using port 80 works fine. Connecting to them via 443 leads to a empty response.

Looks like the container is not able to reach the LetEncrypt server.
Can you try:
docker exec <container name> ping acme-v02.api.letsencrypt.org

Hmm yes, something does not seem right:

When I try the same with my AdGuard container it works:

AdGuard is running in host mode, while ProxyManager is running in bridge mode. But bridge mode should work as well, right?
Do you have any idea, how I can fix that?

Are you using AdGuard as your DNS server ?  If yes. this may be the cause of the issue.
Are you able to ping acme-v02.api.letsencrypt.org from your Synology ?

Yes I'm using it as my DNS server.
Yes the ping from synology itself works:

Is this DNS server also used by you Synology?  You can try to run the following command on your Synology: nslookup acme-v02.api.letsencrypt.org <DNS server IP>.
Also, can you confirm that this DNS server used by the container:
docker exec <container name> cat /etc/resolv.conf

I am having the same internal error message. I use dnsimple and I do have a certificate on my account for my domain. Pinging the address you said above is successful.

If your container accessible from the internet on port 80 ?  You can check with https://www.yougetsignal.com/tools/open-ports/

Same issue here. I am able to ping with:
docker exec  ping acme-v02.api.letsencrypt.org
No internal DNS beyond a redirect to an external PiHole server. I tried both requesting a new cert (internal error) and creating my own via a LetsEncrypt container. Both no dice.

Make sure the container is reachable from the internet on port 80.  You can check with https://www.yougetsignal.com/tools/open-ports/

Morning. Port shows as not reachable but both my router settings and the use of the proxy manager is present over port 80. If I use the IP:80 I go directly to where I set redirect to.

443 shows open and listening. Could I just direct through that? 80 is still working fine, It appears my isp blocks port 80, though I can go it via both directly through the IP and via my duckdns dyndns.

If your ISP blocks port 80, then I guess your cannot use Nginx Proxy Manager with automatic certificate generation from LetsEncrypt.  Port 80 is required.  This is how LetsEncrypt validates that your are the owner of the DNS name.

Odd given I can use port 80 for the hosts from Nginx Proxy Manager. I'll do some more research and report back on a fix for future reference.

authors: TheZoker bookandrelease jlesage mdisieno


text:
[WIP] A Proposal For Testing Things

As we talked about in https://github.com/jlord/git-it-electron/pull/178#issuecomment-270530180, it'd be nice to be able to run the verify tests automagically. This PR is my attempt to tackle the problem, which required some refactoring of how the verify scripts work.
Current Limitations
A couple of issues that I've had to work through:

verify scripts touch the DOM as part of rendering the results - I've attempted to move this code back up to the challenge script, but it's only done for one verify script so far (the repository tests).
some verify scripts are written as if they are blocking but due to using exec they need to be asynchronous - we need a way to inspect the results, so I've introduced a callback that takes an array of results. Maybe you have other ideas in mind.

How This Works
We're using tape to run scripts (I'm more familiar with mocha, so I'm open to other ways to get the best out of the tape API), but here's a simple test:
test('verifies the hello world repository', function (t) {
  var folder = helper.extractFixture('hello-world')
  verify(folder, function (result) {
    var expected = 'This is a Git repository!'
    var first = result[0]

    t.ok(first.result)
    t.equal(expected, first.message)
    t.end()
  })
})

For scenarios where we need the repository to be in a certain state, we can splat the folders onto disk under the tests/fixtures folder - and then extract them to a temporary folder when running the tests. To get this working, you can just rename the .git folder to _git and the repository state is then version-controllable.
The other notable change here is that we have a callback to poke at the results from the verify script (because exec is asynchronous), to ensure we're getting the expected results. I'm using the same shape of "message is a string" and "result is a boolean" that the existing verify scripts use.
To get this working in a test harness, I needed to move the code for addToList and challengeIncomplete/markChallengeCompleted out from the verify script to where the verify method is invoked. A partial implementation of this in challenge.js works for the repository script, but it definitely needs more work and testing as I might not be understanding it correctly.
What's Left To Do?
A rough list:

[ ] get feedback on this approach
[ ] sketch out the changes to test a path-less script, update challenge.js to handle this
[ ] propose a way to test request invocations (nock? something else?)
[ ] ???

verify scripts touch the DOM as part of rendering the results

Yeah, this is something I've wanted to improve; to separate these concerns. Which is probably a big enough project in itself to be a different PR and a thing to figure out before this?
I haven't gone through all this with a fine tooth comb but in general I feel like it's what I've been thinking! 👍
I have a couple things left to clean up, cause I don't think master is quite stable right now but then I'll pick up from what you've started here in moving out the DOM touching stuff and I'll get a PR going for that.
✨

:cool:

Which is probably a big enough project in itself to be a different PR and a thing to figure out before this?

Up to you - if you feel confident enough to do that refactoring before introducing tests then :thumbsup:

source: gharchive/pull-request

authors: jlord shiftkey

repo: jlord/git-it-electron

license_type: permissive

license_source: github-api


text:
View not being update with angular-cache with localStorage

I'm building an Ionic app the uses angular-cache to leverage data persistence. This data is displayed in a ng-repeat list. Either by user interaction (in another view!) or new data being loaded in the background, I need the view to update to reflect this.
When developing my app everything works perfectly, however, as soon as I start using angular-cache with localStorage, views stop being updated. When I turn off localStorage (but still use in memory caching from angular-cache) everything works as expected: the data updates and so is the DOM.
I was able to reproduce the issue with this CodePen http://codepen.io/anon/pen/qdayMW. To demonstrate the issue you switch tabs (from home to about). If you look in the console you can see that new items are being added to the localStorage cache. However the homescreen doesn't update. If you then refresh the page (within the 10 second cache magAge) the page shows the correct list of items...
However, if we comment out line 81, the caching is no longer persistent after a refresh, however the new items are added to the DOM every time the view changes.
Note: I also posted this issue to the Ionic forum as I'm not sure which exactly is the root of the problem: http://forum.ionicframework.com/t/view-not-being-update-with-angular-cache-with-localstorage/25236

This must be something weird with ionic. I've been playing with your codepen, and as I click between the home and about tabs, the home controller code is only executed once at the very beginning, so while more items are being added to the cache, the resolve code that would get the latest items isn't run again.

The latest ionic implemented view caching (which is causing your "bug"), which you have to disable: http://ionicframework.com/docs/nightly/api/directive/ionNavView/

source: gharchive/issue

authors: danielcha jmdobry

repo: jmdobry/angular-cache

license: mit

license_source: bigquery


text:
[Bug] Kitsu anime tracking not working

Device information

Tachiyomi version: Latest stable and preview version
Android version: 10
Device: Oneplus 5T

The kitsu anime tracking only shows the manga's and not the anime.
Checked it with myanimelist but that one does work, but it's not the site I use to keep my library updated.
Would be awesome if it can be fixed.

Keep up the great work!

forgot to close. was fixed with https://github.com/jmir1/aniyomi/commit/9e2db50b77fdd99578eddc55d07cc343bacb049b.


text:
error loading model: unexpectedly reached end of file

On a couple of models I am receiving this error:
llama.cpp: loading model from /Users/REDACTED/.ollama/models/blobs/sha256:d1735b93e1dc503f1045ccd6c8bd73277b18ba892befd1dc29e9b9a7822ed998
error loading model: unexpectedly reached end of file
llama_load_model_from_file: failed to load model
This happens with a couple of the larger models:
nous-hermes:latest
llama2:13b
If I do ollama pull against them, the manifests match up and it doesn't re-pull anything.  Since this looks like docker under the hood, are the models corrupt? or?
Any thoughts?  FWIW, llama2:latest and wizard-vicuna:latest work fine.
M2 Macbook Pro 32 Gigs of ram.

Thanks @bkruger99, will check out why this is happening

Let me know if you need any additional debugging data from my side.  You'll have to tell me how to enable other than running server via cli :)

Great! @bkruger99 is this on Mac? Thanks!

Yes!
Hardware:
Model Name: MacBook Pro
Model Identifier: Mac14,10
Model Number: Z174000EBLL/A
Chip: Apple M2 Pro
Total Number of Cores: 12 (8 performance and 4 efficiency)
Memory: 32 GB
OS:   Ventura 13.4.1 (c)

@bkruger99 can you run:
sha2 -256 ~/.ollama/models/blobs/sha256:d1735b93e1dc503f1045ccd6c8bd73277b18ba892befd1dc29e9b9a7822ed998

Check to see that sha sum matches, and if it doesn't you can
rm ~/.ollama/models/blobs/sha256:d1735b93e1dc503f1045ccd6c8bd73277b18ba892befd1dc29e9b9a7822ed998

and then re-pull the image. There's a fix that I think was just merged that will make certain the sha sum is verified correctly when you're pulling the layers.

Yeah. there's something w/ manifest not verifying the sha256 when pulling.  These two models did have a network interruption as the laptop went to sleep.
❯ shasum -a 256 sha256:d1735b93e1dc503f1045ccd6c8bd73277b18ba892befd1dc29e9b9a7822ed998
f2a1788633ddf3edef0ee4d9d4e93c399bfeeeb7363015d7c1b630ff268cdcf5  sha256:d1735b93e1dc503f1045ccd6c8bd73277b18ba892befd1dc29e9b9a7822ed998
I re-pulled llama2:12b and it's happy, I'll do the same with the rest of 'em.

The next version will check the SHAs; the re-pull is pretty tolerant of network interruptions, but wondering if the buffer wrote garbage onto the end of the partial file somehow. I haven't (yet) tested with sleeping the machine though, so that could have been the reason.
I'm going to go ahead and close the issue. Feel free to re-open it though.

authors: bkruger99 jmorganca pdevine

repo: jmorganca/ollama

license: MIT


text:
Raise ArgumentError when passing invalid keys to has_selector?

It's a relatively common misconception that you can use :content as a key - e.g.
has_selector?('h1', :content=>'wooo!')

which would silently pass, even when 'wooo!' is nowhere to be found.  This change should make that error much more obvious.
Related issues : https://github.com/jnicklas/capybara/issues/525
It would be nice to raise an error on passing a block in - eg
@session.should have_selector("//p") do |p_tag|
  p_tag.should have_selector("//a")
end

which seems to be a common error on people switching to capybara via webrat.  However, that's a bit more tricky and would probably need fixing at the rspec-matcher level, since the block doesn't make it as far as has_selector? and gets silently discarded.

ValidKeys on Selector could be replaced with something like this :
diff --git a/lib/capybara/selector.rb b/lib/capybara/selector.rb
index 1bff91d..0b85a04 100644
--- a/lib/capybara/selector.rb
+++ b/lib/capybara/selector.rb
@@ -15,6 +15,10 @@ module Capybara
       def remove(name)
         all.delete(name.to_sym)
       end
+
+      def valid_keys
+        all.map{|selector| selector.custom_filters.keys}.flatten.uniq
+      end
     end

     def initialize(name, &block)

?
I'm not sure what you mean about the implementation for checking query keys, though.  There's 3 places that keys passed to has_selector?() are used - node/matchers.rb, query.rb, and selector.rb.  Whichever one is responsible for checking the keys will have to also check the keys of the other 2.  I could move assert_valid_options to a class method to Query if you like?

Closing this pull request, we already have an open issue for this in #525, and I don't like this implementation

authors: jdelStrother jnicklas

repo: jnicklas/capybara


text:
🛑 MegaConstruct is down

In 8d9ab08, MegaConstruct (https://www.megaconstruct.ro) was down:

HTTP code: 0
Response time: 0 ms

Resolved: MegaConstruct is back up in edc67a4.


text:
🛑 CEI Sales Wiki is down

In 8230d21, 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 2b0ac7d after 14 minutes.


text:
🛑 Laravel Enso is down

In c645c42, Laravel Enso (https://laravel-enso.com) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Laravel Enso is back up in fa7077b after 22 minutes.


text:
🛑 CEI Sales App is down

In 83575f8, CEI Sales App (https://app.ceisales.com/login) was down:

HTTP code: 0
Response time: 0 ms

Resolved: CEI Sales App is back up in 2091cef after 20 minutes.


text:
🛑 Laravel Enso is down

In 8a5476a, Laravel Enso (https://laravel-enso.com) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Laravel Enso is back up in 654d5f1.


text:
[Feature Request] Change blue loading and badge accent colors in Midnight Dusk theme to something similar to J2K Midnight Dusk?

Why/User Benefit/User Problem
Improves the theme by keeping the color scheme.
What/Requirements
The blue accent (and possibly black background on loading) would be changed to better fit the Midnight Dusk theme.
SY Midnight Dusk

J2K Midnight Dusk

Why/User Benefit/User Problem
Improves the theme by keeping the color scheme.
What/Requirements
The blue accent would be changed to better fit the Midnight Dusk theme.

Someone can do that for the other themes too and why the text in black-red are red instead of white ? I think its better to just replace everything that blue to red and change the colour of the download badge to one that look good for each theme

Already addressed by main tachi

authors: CaptainHalflife ImRyley jobobby04


text:
async requests

Is any chance an option to use async requests? like asp.net core rc2 standard template
    public async Task<IActionResult> Index()
    {
        return View(await _context.Reason.ToListAsync());
    }

_context.Reason.ToPagedList(0, DefaultPageSize) does not have ToListAsync method

honestly PagedList is a completely separate thing from the pagertaghelper, pagertaghelper does not depend on PagedList and really the only reason pagedlist exists in this library is because it was based on Martijn Boland's MVCPaging project and it had a pagedlist which I copied. PagedList is kind of a hack for when you are retrieving more than a page of data but want to do paging against the result set.
I don't use PagedList at all myself and don't really care to try to support it or update it. There are other implementations of PagedList out there that anyone could also use, so it is completely independent from the pagertaghelper. From a brief search I found this pagedlist which has async support, but not sure it has a compatible nuget for aspnetcore rc2. But you can search and maybe find a better compatible one, I did not spend much time looking. Or if anyone is interested in implementing that and submitting a pull request I'm open to that as well.
I do async methods to get data in my own use of pagertaghelper, and I just return one page of data at a time from the database so I don't need any pagedlist.
maybe could do it like this:
public async Task<IActionResult> Index()
{
    var data = await _context.Reason.ToListAsync();
    return View(data.ToPagedList(0, DefaultPageSize));
}

but again that looks like it returns more than a page of data and then uses pagedlist to page over it which is what PagedList is for but also why PagedList is a hack compared to just return a page of data from the database using .Skip .Take etc

only thing I've ever used PagedList for is the demo pages because it was convenient to make a demo without any database, and much of the demo code was also copied from Martijn's project and that is how PagedList ended up in this project. I never use that PagedList in my own projects, I only use the taghelpers

hm, sorry I a bit confused here. if you dont use PagedList what you use in your Pagination project? I mean then you retrieve data from DB.

you can see an example here a controller which has methods for user admin and paging of users with search, and the corresponding partial view here
as I said the use of PagedList in the pager demo pages was mainly because I copied existing demo pages and that makes it easy to have demo without any db, you just make a big list of data and use pagedlist to page over it. but again PagedList is only for if you already retrieved (or created as in the demo code) more than a page of data and now you want to page over that data. It is much better to not use PagedList and only retrieve data one page at a time from the db. PageTagHelper doesn't know about PagedList at all.

not that in the example I linked, you will see model.Paging.* properties being set, in that model Paging is an instance of PaginationSettings it is simply a model to pass settings on to the pagertaghelper

this makes me think I should get rid of PagedList and not use it in the demos because it makes people think they need to use that when in fact it is best not to

fyi, I've reworked the demo app and removed all use of PagedList from the demo so as not to encourage use of that

Many tnks. checking

authors: dvdobrovolskiy joeaudette


text:
Multiple connections to the same instance with different DBs not working

Hello,
I'm try to run the docker container with the REDIS_HOSTS env variable witch looks like this:
REDIS_HOSTS='dev:redis:6379:0,test:redis:6379:10'

but it seems that the given database is ignored, since the UI shows me for both connections the database 0. This leads to an instable system, since after you click on one of the two connections the the view stucks on "loading ...." instead of showing the connection parameters.

I also tried to configure multiple connections via REDIS_HOSTS environment variable. No luck for me too.
The undefined entries at the bottom are also a bit irritating.

@hirnschmalz You are right, i've seen this too but i forgot to mentioned the undifined fields

@tburschka The latest image solved this issue

@joeferner This issue is back in the latest docker image. 👎
Seems to be an issue with the with the change of the namespace @awearsolutions/redis-commander. It's a bit annoying to create a PR to fix a problem which is back one version later.

Should be working with latest github/docker versions. At least we use it without any problem...
Can issue be closed?

This problem should be fixed in current version.
If you think its not feel free to reopen issue with updated informations based on latest version.

authors: hirnschmalz sseide tburschka

repo: joeferner/redis-commander


text:
Docker Container image for PytaskIO

Make a PyTaskIO Docker image available to download from the  Docker registry.

Also update the README with the docker registry install details.

repo: joegasewicz/pytask-io


text:
v0.30.1 won't publish - issue with dependency

When running cargo publish, the pin-project fails to build, because of some issue with a macro:
error[E0659]: `parse_quote_spanned` is ambiguous (`macro_rules` vs non-`macro_rules` from other module)
   --> /Users/joep/.cargo/registry/src/github.com-1ecc6299db9ec823/pin-project-internal-0.4.23/src/pin_project/derive.rs:859:67
    |
859 |                 proj_generics.make_where_clause().predicates.push(parse_quote_spanned! { span =>
    |                                                                   ^^^^^^^^^^^^^^^^^^^ ambiguous name
    |
note: `parse_quote_spanned` could refer to the macro defined here
   --> /Users/joep/.cargo/registry/src/github.com-1ecc6299db9ec823/pin-project-internal-0.4.23/src/utils.rs:22:1
    |
22  | / macro_rules! parse_quote_spanned {
23  | |     ($span:expr => $($tt:tt)*) => {
24  | |         syn::parse2(quote::quote_spanned!($span => $($tt)*)).unwrap_or_else(|e| panic!("{}", e))
25  | |     };
26  | | }
    | |_^
note: `parse_quote_spanned` could also refer to the macro imported here
   --> /Users/joep/.cargo/registry/src/github.com-1ecc6299db9ec823/pin-project-internal-0.4.23/src/pin_project/derive.rs:7:5
    |
7   |     *,
    |     ^
    = help: use `self::parse_quote_spanned` to refer to this macro unambiguously

error[E0659]: `parse_quote_spanned` is ambiguous (`macro_rules` vs non-`macro_rules` from other module)
   --> /Users/joep/.cargo/registry/src/github.com-1ecc6299db9ec823/pin-project-internal-0.4.23/src/pinned_drop.rs:108:21
    |
108 |             *path = parse_quote_spanned! { path.span() =>
    |                     ^^^^^^^^^^^^^^^^^^^ ambiguous name
    |
note: `parse_quote_spanned` could refer to the macro defined here
   --> /Users/joep/.cargo/registry/src/github.com-1ecc6299db9ec823/pin-project-internal-0.4.23/src/utils.rs:22:1
    |
22  | / macro_rules! parse_quote_spanned {
23  | |     ($span:expr => $($tt:tt)*) => {
24  | |         syn::parse2(quote::quote_spanned!($span => $($tt)*)).unwrap_or_else(|e| panic!("{}", e))
25  | |     };
26  | | }
    | |_^
note: `parse_quote_spanned` could also refer to the macro imported here
   --> /Users/joep/.cargo/registry/src/github.com-1ecc6299db9ec823/pin-project-internal-0.4.23/src/pinned_drop.rs:3:50
    |
3   | use syn::{spanned::Spanned, visit_mut::VisitMut, *};
    |                                                  ^
    = help: use `self::parse_quote_spanned` to refer to this macro unambiguously

For more information about this error, try `rustc --explain E0659`.
error: could not compile `pin-project-internal` due to 2 previous errors
warning: build failed, waiting for other jobs to finish...
error: failed to verify package tarball

This seems to be caused by this: https://github.com/taiki-e/pin-project/blob/eedd0885afc4bebad728f0adb1acffaaaed0d31a/pin-project-internal/src/pin_project/derive.rs
Which seems to have been changed just days ago: https://github.com/taiki-e/pin-project/commit/ba7d5fd13f81092e64c04a30fd0dd7dd70cb87a8
And was mentioned in this issue: https://github.com/taiki-e/pin-project/issues/337

cargo update did not work.
cargo publish --lockfile dit not work.
I don't know what I can try next.

Removing Cargo.lockl and running publish again worked.

repo: joepio/atomic-data-rust


text:
Getting this error with my rogue...

Frames [Load]: @(10/07/16 20:39:20) - ...ace\AddOns\SVUI_UnitFrames\class_resources\rogue.lua:124: attempt to index field '?' (a nil value)

Ok. Will look into it (will be later this evening as I'm out and about at
present :))
--
Joe Vaughan
On 8 October 2016 at 03:41:10, lkj61 (notifications@github.com) wrote:

Frames [Load]: @(10/07/16 20:39:20) -
...ace\AddOns\SVUI_UnitFrames\class_resources\rogue.lua:124: attempt to
index field '?' (a nil value)
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/joev/SVUI-Temp/issues/80, or mute the thread
https://github.com/notifications/unsubscribe-auth/AATrWRguVwSt-gouFgw6WMK71PE4WqrFks5qxvS2gaJpZM4KRlUg
.

Thanks!  Much appreciate all the work you are doing for us fans of SVUI. 😀
On Saturday, October 8, 2016, Joe Vaughan notifications@github.com wrote:

Ok. Will look into it (will be later this evening as I'm out and about at
present :))
--
Joe Vaughan
On 8 October 2016 at 03:41:10, lkj61 (notifications@github.com
<javascript:_e(%7B%7D,'cvml','notifications@github.com');>) wrote:

Frames [Load]: @(10/07/16 20:39:20) -
...ace\AddOns\SVUI_UnitFrames\class_resources\rogue.lua:124: attempt to
index field '?' (a nil value)
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/joev/SVUI-Temp/issues/80, or mute the thread
<https://github.com/notifications/unsubscribe-auth/AATrWRguVwSt-
gouFgw6WMK71PE4WqrFks5qxvS2gaJpZM4KRlUg>
.

—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/joev/SVUI-Temp/issues/80#issuecomment-252416152, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AJEkVZg5YQOMoY-j_UDeUkY3O-EwXyhGks5qx2q4gaJpZM4KRlUg
.

repo: joev/SVUI-Temp


text:
🛑 dr.veoj.me (my gaming persona) is down

In 777b0d1, dr.veoj.me (my gaming persona) (https://dr.veoj.me) was down:

HTTP code: 0
Response time: 0 ms

Resolved: dr.veoj.me (my gaming persona) is back up in 71fff75.

repo: joevaughan/upptime


text:
[BUG] No up-to-date light and temperature values in Homebridge anymore

Describe the bug
Temperature and light don't get updated in Homebridge and Home app anymore, although http://<PIR-IP>/api/v1/sensors shows up-to-date temperature and light values.
To Reproduce
Steps to reproduce the behavior:

In the Homebridge GUI navigate to Accessories
Light will have an old value
Open http://<PIR-IP>/api/v1/sensors in browser
Light value will be different, but correct

Expected behavior
The light and temperature values in Homebridge should have the same values as the ones provided by the API.
Plugin environment:

myStrom PIR Firmware Version: 3.8.2
Homebridge Server: Raspberry Pi 4
Plugin Version: 1.8.0
Node.js Version: 14.15.1
Homebridge Version: 1.1.6

Additional context
The issue appears only after some time. Upon re-starting Homebridge it works again, but will stop working after a couple of hours.

The change related to reachability (73298a58f2cfbf3dff2a12e146ab1d137b2aac64) introduced in v1.8.0 seems to break quite a few things, but only after some time running. 🤦 A downgrade to v1.7.1 should work around this while I work on a fix.

I've released homebridge-dingz@1.8.3-nightly.0 (homebridge-dingz@nightly) and am running it now. If you want to help with testing, feel free to install it and report back.

the nightly reverts some of the changes that might have caused some of the problems encountered here and elsewhere 🤕🤒

I've installed 1.8.3 nightly and will report back 👍

In the meantime I've worked on a v2.0.0-nightly of the plug-in. If you reinstall the nightly w/ homebridge-dingz@nightly you should be upgraded to this version.
The functionality remains largely the same but the code is less cluttered and better structured so should generally run better. There might be bugs though but you can always downgrade to v1.8.3-nightly (although I think the newest nightlies are much more robust).
I've had it running over longer periods of time now on my production dingz. So far I could not observe any problems with temperature/brightness values not updating.
(The easiest way to test if it still works after a few hours is to use your phone's flashlight to illuminate or your hand to darken the illumination: the LUX value should change significantly 😄)

It's apparently still not fixed though. 🤦 😞 But I now have a clue where it happened (unreleased mutex locks on the request queue) in the code. :octocat:
https://github.com/johannrichard/homebridge-dingz/blob/dee30b26ab348adb4db62c7f90f47c4ae107b684/src/dingzAccessory.ts#L1585-L1597

So far v2.0.0-nightly is working for me, but it has been running less than 24 hours.

repo: johannrichard/homebridge-dingz


text:
Warning in Google Chrome console when generating pdf/excel document

There is a warning in Google Chrome console when generating document: Resource interpreted as Document but transferred with MIME type application/pdf.
Request Headers:
Accept:text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,/;q=0.8
Accept-Encoding:gzip, deflate
Accept-Language:en-US,en;q=0.8,ru;q=0.6
Cache-Control:max-age=0
Connection:keep-alive
Content-Length:305
Content-Type:application/x-www-form-urlencoded
User-Agent:Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.81 Safari/537.36
Response Headers:
Content-Disposition:attachment; filename=report.pdf
Content-Type:application/pdf;charset=windows-1251
Date:Tue, 02 Jun 2015 13:43:47 GMT
Expires:Thu, 02 Jun 2016 06:50:44 GMT
Server:Apache-Coyote/1.1
Transfer-Encoding:chunked

Yeah I get that too, it still works though so I think its okay IMO

I get this error also for PDF's. But it will not even try to download. I change the file to download to something else (a non-pdf) but get the error and it still downloads.
Also do you know of a way to suppress this error. I would like to not put the download URL out in the open.

This isn't a warning in chrome its logged at info. If you are worried about your download URL being logged that's not good because anyone can view it in the chrome debugger or by monitoring http traffic. Would suggest using single use url/token/cookie if you are concerned about URL re-use. The web is not inherently secure: http://johnculviner.com/dont-trust-the-client/

understandable that there will always be a way to view the url, but I just dont want to hand it to them, would rather make them work just a little. If you have any thoughts as to suppress it that would be great.
But there was still the issue of pdf's not downloading. do you happen to get this in your last push of the script?
On your dont trust the client. Believe me I do not really. I treat the client as if they have some knowledge on web development so I close those holes when I can. But then I am not a security expert and cannot get everything. Though that would be nice.
BTW I am in chrome.

authors: johnculviner mike192020 shustinho


text:
Errors Installing

I have Python2.7.11 for Windows x86/x64 installed on Windows 7 x64.  When I run npm install lite-server --save-dev, I get the following errors:
TypeError: Request path contains unescaped characters.
And a few 404 status codes downloading 32-bit node.libs.

anyone else on windows able to test this?

moving to https://github.com/johnpapa/lite-server/issues/54

authors: billfranklin johnpapa

repo: johnpapa/lite-server


text:
feat(bin): added run time option to config file path and name

Hey, It would be really good to have an option for custom path to configuration
especially if you hate dozen of files in your project root folder (like me)
or have to run different configuration for different needs
Thanks in advance
Regards, Dima

@johnpapa please review

i like the idea. @cgmartin is this how you would like to do it? i prefer yargs myself.

This looks good to me. I like the fact that it matches names with the browsersync --config option.
Yargs is what I'm most comfortable with, but minimist is fine. There are several popular args modules out there that all score pretty high. What we're doing here is pretty simple/straightforward in terms of arg options. Easy to replace if need be.
@johnpapa good to merge? Thanks for the PR @valorkin !

i havent had a chance to test it ... have you Chris? If so, Im cool with it as long as it ups the version number by a minor.

Tested it, works fine. Merging and bumping minor version.

Since it changes the API (not breaking), Shouldn't this be a minor bump to 2.1.0 ? (not a patch)

i bumped it to 2.1.0 and published

yes, minor, I fubar. Thanks for fix

no worries. thanks for testing

authors: cgmartin johnpapa valorkin


text:
Disable automatic quotation marks for attrs

I would like to an option in settings to disable automatic quotation marks - we use ' but it keeps putting " and it just grinds our gears :)

Duplicate of #840 and #917.
Try it with HTML: Auto Create Quotes disabled.

authors: JTinkers yaegassy

repo: johnsoncodehk/volar


text:
Type narrowing not working in templates with union types

v-if is not narrowing union types.
<template>
  ({{ user.id }})
</template>

Property 'id' does not exist on type 'string | User'
See demo on stackblitz here.

That's just how TS works here, here's the same code on TS playground, raising the same errors:
https://www.typescriptlang.org/play?#code/C4TwDgpgBAqgzhATlAvFA3gKClAlgEwC4oA7AVwFsAjJbKCCgQ1wBti5hFcSBzTAX0yYWEYFDIJE7Ttx5QAPrEmoMeIlADkBDVEGZcAMygAKCUgB0BAJQY6AYwD2JOA5HmWDnqcmX8VgUA
This, however, would work:
type User = {
  id: number
  email: string
}

let user: string | User = { id: 'id' }

if (isObj(user)) {
  console.log(user.id)
}

function isObj(obj: any): obj is Record<string, any> {
  return typeof obj === 'object'
}

https://www.typescriptlang.org/play?#code/C4TwDgpgBAqgzhATlAvFA3gKClAlgEwC4oA7AVwFsAjJbKCCgQ1wBti5hFcSBzTAX0yYWEYFDIJE7Ttx5QAPrEmoMeIlADkBDVEGZcAMygAKXHADyVAFbGJSAJT2MdAMYB7EnDciAdCzc8tpI+BPYCQgZkJC7AuB54FtbGbtbEjCQg9sQpVglQAEoQ7oj4ADwcXLwANFDpIAB8zjiIomSIJFCgkG5GOagoaBo5RcAaAkA

Try typeof user === 'object' or 'id' in user.

authors: LinusBorg austin-agronick johnsoncodehk


text:
Absolute import

i've seen that there has been an issue marked as resolved but it might have broke again because it doesn't seems to work for me.
when volar auto-import a component, it's always using the relative path
my config :
tsconfig.json
{
  "compilerOptions": {
    "baseUrl": ".",
    "esModuleInterop": true,
    "experimentalDecorators": true,
    "jsx": "preserve",
    "lib": ["esnext", "dom"],
    "module": "esnext",
    "moduleResolution": "node",
    "paths": {
      "@/*": ["src/*"],
      "~/*": ["src/components/*"]
    },
    "resolveJsonModule": true,
    "sourceMap": true,
    "strict": true,
    "target": "esnext",
    "useDefineForClassFields": false,
    "types": ["quasar"]
  },
  "exclude": ["node_modules"],
  "include": ["src/**/*.ts", "src/**/*.d.ts", "src/**/*.tsx", "src/**/*.vue"]
}

vite.config.ts
import { quasar, transformAssetUrls } from '@quasar/vite-plugin';
import vue from '@vitejs/plugin-vue';
import { resolve } from 'path';
import { defineConfig } from 'vite';

// https://vitejs.dev/config/
export default defineConfig({
  server: {
    fs: {
      allow: ['.'],
    },
  },
  resolve: {
    alias: [
      {
        find: '@',
        replacement: resolve(__dirname, './src'),
      },
      {
        find: '~',
        replacement: resolve(__dirname, './src/components'),
      },
    ],
  },
  plugins: [
    vue({
      template: { transformAssetUrls },
    }),
    quasar({
      autoImportComponentCase: 'pascal',
      sassVariables: 'src/assets/scss/variable.scss',
    }),
  ],
});

Versions :
"typescript": "^4.3.2",
"vite": "^2.5.4",
"vue-tsc": "^0.29.0",

"Volar extension": "v0.29.8"

You can config "typescript.preferences.importModuleSpecifier": "non-relative" in vscode.

that already what i did, both in user and workspace settings, and it's still not importing using non-relative path, with or without the built-in typescript extension enabled

I have the same problem, also type hinting is not working in VS Code when using an absolute import.

authors: Zenthae johnsoncodehk wendyprogramic


text:
Update balance UI

Updates the balance text a bit to more closely resemble the screens in Figma and the Bitcoin Design guidelines on units and symbols and on protecting a wallet.
Basically, I turned on some font features according to the Figma designs and added a better symbol for when the balance is hidden.
It's not perfect yet, I also want to add:

The possibility to cycle through states (BTC, sats, hidden) by clicking on a balance. For that we need some global state and I didn't want to touch that quite yet.
Formatting based on the user’s locale. Currently I hardcoded the BTC symbol to be prefixed to the number (as it is done in the U.S. with USD amounts. However, I didn't know what to do with the sats symbol as it looked strange when prefixed to a number so I kept it as a postfix. Open for suggestions on this one!

For a first version it should be fine though. Let me know what you think!
Not sure how we want to organize custom CSS going forward. I used a CSS Module but am open to do it differently or just add everything to index.css for now.
📸

See also https://github.com/joinmarket-webui/joinmarket-webui/issues/19.

Wonderful!
Regarding the sat symbol: so far most interfaces still use "sat" or "sats," i.e. no symbol at all. Thunderhub—which looks quite neat in general I have to say—uses the sat symbol, and simply puts it at the end using a slightly dimmer font color:

Most other interfaces, including bitcoin and lightning wallets, simply use "sat" or "sats" either before or after the number (usually after).
1ML:

LightningNetwork.plus:

Updated to use the sat symbol (resolves #19).
The bitcoin design guidelines don't really use a specific sat symbol so maybe we should let the user pick if they want a symbol or just "sat(s)" in the upcoming settings page. Maybe @GBKS has some input on that? For now, I'd say let's keep it simple and just go with the symbol.
I also added digit groups using Intl.NumberFormat as suggested by the design guides. For now I hardcoded the formatting to the en-US locale but we could do more location specific things in the future.
Regarding browser compatibility of Intl.NumberFormat: It should be available on all somewhat modern browsers. Does someone have any experience with that? And a more broad question: What browser compatibility are we targeting in general?

Great! Let's keep it as is for now. We can do some polishing for v4 later on, I'm sure we can improve things here and there. Different font color for the symbol would also be easier on the eyes, for example.

authors: dergigi dnlggr

repo: joinmarket-webui/joinmarket-webui


text:
Add support for nullable property

Other way for #21
WDYT @sagikazarmark ?

How do you know if a multiple type is nullable?

It's done in the ObjectGuesser

I don't see any change in denormalization. You use isset in denormalization, but that won't work with null values.

Right, should be good now

Looks good to me. Although it lacks tests, doesn't it?

Yes will add a better test system following this

Cool.

authors: joelwurtz sagikazarmark

repo: jolicode/jane


text:
[MCU Tray] MKS Skipr

Made an MKS Skipr tray for my personal use, but wanted to share with the community. I hope this can make it into the project.
MCU Tray - MKS Skipr - Heatserts.zip

I made a total hash of merging this PR to the right branch, so I just cherry-picked the commits to 0.9.9-unstable instead.
Let me know how the fit goes. Thanks!

authors: Killajoedotcom jon-harper

repo: jon-harper/OmniBox


text:
TLS v1.2 for KitKat (and below?)

With GitHub having removed support for TLS v1.0 and v1.1, ForkHub no longer works, it gives an error toast (Loading account & organizations failed).
https://stackoverflow.com/questions/28943660/how-to-enable-tls-1-2-support-in-an-android-application-running-on-android-4-1 shows how to enable TLS v1.2 support for pre-Lollipop. There must be something working, since I can access GitHub on both Chrome Mobile and Lightning Browser.
In the meantime,  if anyone can direct me to how to get the "News" look for an arbitrary repo via web browser, I'd appreciate it. The closest I can find is Insights, but that doesn't list individual comments.

square/okhttp#2372 may be instructive here.

Noting also, this affects the version of Forkhub found in the Blackberry World App store, which is an Android app, I think maybe v1.2.0 (tagged release of apk), and the Android runtime provided in BB10 is 4.x era.  It was a sad day when I opened the app and found that I couldn't get in.  I will give a compliment, and say this is THE best performing Android app in terms of speed that I've found on the Blackberry BB10 platform.

I'm willing to dig in here and help find a work around, maybe submit a pull request, since I don't have the option to upgrade my Android runtime, and find Forkhub to be essential to my daily work and my ability to be away from my desk but deal with the number of projects and companies I work with that have their stuff on GH.

authors: Matrixcoffee goldfndr truedat101

repo: jonan/ForkHub


text:
same scoreboard for all players....

sry but a new problem.
I have made a scoreboard with placeholders and for me it works.

BUT my friend joined and has MY scoreboard, my name in scoreboard, my ranks, my money....not his own.

sry this is a discord screenshot

Ok, I have released a new version. Could you check out if the issue is still present there?

no the bug isn fixed.
NOW a new player joined the game, he has his own scoreboard but NOW I see his scoreboard

iam xinaru he is Zeus
or must i delete the old config?

okay the bug isn fixed
i have delete the old config and add the lines new.
but the scoreboard dont show the own scoreboard always.

Ok, I believe it has to do with the order the players join. I will have another look at it

Alright, I have updated some logic concerning the buffering of scoreboards. In addition, this version will log if placeholder usage is detected. You should not need to delete the config file. If the issue persists, please check in the server logs if it is says "Detected use of placeholders" or "Detected no use of placeholders"
EasyScoreboard-2.5.3.jar.zip

sry but the problem ist there with the new version too.
08.07 17:27:59 [Server] Server thread/ERROR [Sponge]: The Scheduler tried to run the task de_yottaflops_easyscoreboard-S-3 owned by Plugin{id=de_yottaflops_easyscoreboard, name=EasyScoreboards, version=2.5.3, description=A plugin to easily create scoreboards for lobbys, etc., authors=[YottaFLOPS], source=./mods/EasyScoreboard-2.5.3.jar}, but an error occured.

now the plugin is crashed

Ok, this was probably due to another change I made. I apologize. Try with this version, if you could.
EasyScoreboard-2.5.3.jar.zip

ähm...i use 2.5.3?
you have uplöoad this above? this version i use and the error comes

It should be a new build with the same version number

ah okay i try it

okay tried.
scoreboard there but my fried has MY scoreboard

08.07 19:52:04 [Server] Server thread/INFO [EasyScoreboard: Config]: Detected use of placeholders

I believe that I have finally fixed the problem and in my testing it worked. Let me know if the problem persists for you.
EasyScoreboard-2.5.3-2.jar.zip

This time it looks like it's finally going to work.
Just a friend and I on the server, everyone had their own sb. we are both separately leased and jointed it was still each his own sb.
the only thing i forgot to test is the /esb reload command.

Amazing. Thanks for your help debugging this issue and your patience. I have created a new release here but it should be identical (apart from the version number) to the .jar posted above. Thanks again

authors: XiNaru jonas-peeters

repo: jonas-peeters/EasyScoreboards


text:
Serialize Unit variant to/form string

Closes #115
Todo

[ ] Add test case

bors r+


text:
Navigating to New Product Details Page with Different Product ID Fails to Load New Data

Question
I am developing an e-commerce app using Flutter with GetX for state management. I have a ProductDetailsView that displays product details using a named route and arguments. In the ProductDetailsController, I load product details based on the product ID passed through arguments.
Here is my controller code:
import 'package:e_commerce/api/send_request.dart';
import 'package:e_commerce/app/data/color_collections.dart';
import 'package:e_commerce/app/widgets/theme_mode.dart';
import 'package:get/get.dart';
import 'package:webview_flutter/webview_flutter.dart';

class ProductDetailsController extends GetxController {
  WebViewController? webViewController;
  var webViewHeight = 100.0.obs;
  var productDetailsLoading = true.obs;
  var productDetails = <String, dynamic>{}.obs;
  var productId = 0.obs;

  @override
  void onInit() {
    super.onInit();
    productId.value = Get.arguments['product_id'];
    loadPage();
  }

  @override
  void onClose() {
    super.onClose();
    productId.close();
  }

  void loadPage() async {
    productDetailsLoading.value = true;
    var resp = await SendRequest("/Products/Manager/CRUD/GetProductDetails", data: {
      "product_id": productId.value,
    });

    productDetails.value = resp["product_details"];
    productDetailsLoading.value = false;

    if (webViewController == null) {
      webViewController = WebViewController()
        ..setJavaScriptMode(JavaScriptMode.unrestricted)
        ..setBackgroundColor(isDarkMode()
            ? DynamicColorsCollection.backgroundColorDark
            : DynamicColorsCollection.backgroundColorLight)
        ..setNavigationDelegate(
          NavigationDelegate(
            onProgress: (int progress) {},
            onPageStarted: (String url) {},
            onPageFinished: (String url) async {
              final result = await webViewController?.runJavaScriptReturningResult(
                  "document.documentElement.scrollHeight.toString();");
              String heightStr = result as String;
              double height = double.parse(heightStr.replaceAll('"', ''));
              updateHeight(height);
            },
            onHttpError: (HttpResponseError error) {},
            onWebResourceError: (WebResourceError error) {},
            onNavigationRequest: (NavigationRequest request) {
              if (request.url.startsWith('https://www.youtube.com/')) {
                return NavigationDecision.navigate;
              }
              return NavigationDecision.prevent;
            },
          ),
        )
        ..loadRequest(Uri.parse(
            "http://some-domain.com/products/description/${resp["product_details"]["product_url"]}"));
    } else {
      webViewController?.loadRequest(Uri.parse(
          "http://some-domain.com/products/description/${resp["product_details"]["product_url"]}"));
    }
  }

  void updateHeight(double height) {
    webViewHeight.value = height;
  }
}

Here is the start of my view code:
class ProductDetailsView extends GetView<ProductDetailsController> {
  const ProductDetailsView({Key? key}) : super(key: key);
  @override
  Widget build(BuildContext context) {
    Get.create<ProductDetailsController>(() => ProductDetailsController());
    return Obx(() {
      if (controller.productDetailsLoading.value) {
        return Material(
          color: isDarkMode()
              ? DynamicColorsCollection.backgroundColorSecondaryDark
              : DynamicColorsCollection.backgroundColorSecondaryLight,
          child: LoadingShimmer(),
        );
      }
      return CustomScaffold(
        backgroundColor: isDarkMode()
            ? DynamicColorsCollection.backgroundColorDark
            : DynamicColorsCollection.backgroundColorLight,

The issue arises when I navigate to a new product details page from the current product details page using a button. The button's code is as follows:
Get.toNamed(
  Routes.PRODUCT_DETAILS,
  arguments: {
    "product_id": id,
  },
  preventDuplicates: false,
);

When I navigate like this, the new product details page does not load the new product data. Instead, it shows the data of the previous product.
How can I ensure that navigating to a new product details page with a different product ID loads the new product's data correctly?
I tried navigating to the new product details page from the current product details page by using the Get.toNamed method with the new product ID as an argument. I expected the new product details page to load and display the details of the new product corresponding to the new product ID. However, instead of loading the new product's data, the page continued to display the data of the previously viewed product. I expected the ProductDetailsController to fetch and show the details of the new product based on the updated product ID passed in the arguments, but this did not happen.

Because onInit olny called once, Mayby you can use GetBuilder and create new controller instance each the page is called

try add global: false, to the GetBuilder

Thanks, That worked 👍🏻👍🏻👍🏻👍🏻👍🏻🔥🔥🔥🔥🔥🔥🔥🔥

repo: jonataslaw/getx


text:
Abort search when pressing escape, but accept search/input when escap…

…e+enter has been pressed.

Codecov Report

Merging #629 into master will increase coverage by <.01%.
The diff coverage is 100%.

@@            Coverage Diff            @@
##           master    #629      +/-   ##
=========================================
+ Coverage    71.3%   71.3%   +<.01%
=========================================
  Files         135     135
  Lines       12709   12711       +2
=========================================
+ Hits         9062    9064       +2
  Misses       3647    3647

Impacted Files
Coverage Δ

prompt_toolkit/key_binding/bindings/vi.py
57.73% <100%> (+0.05%)
:arrow_up:

prompt_toolkit/key_binding/bindings/emacs.py
82.46% <100%> (+0.11%)
:arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 677190f...eb90798. Read the comment docs.

authors: codecov-io jonathanslenders

repo: jonathanslenders/python-prompt-toolkit


text:
No way to remove handles or update their color position in code

This is a request to add support for removing handles and/or updating their position in code with a color value

Added PR #57

authors: chrisCGL tache

repo: joncardasis/ChromaColorPicker


text:
Added state to the model type and updated the language docs

Closes #189 by added a state item to the model type in the core AaC specification.  Also started to fill in information about the AaC language in the docs by describing the model type and the data items within it.  Specifically there is not a brief description of the model state and the intended utilization of state in modeling a system.

Just as a side note, I was able to successfully exercise this change through the CLI in a GitPod environment but I got all sorts of errors when I tried to do it locally.  I put this here for awareness that it is apparently not difficult to break or misconfigure the local development environment.  I've not been able to figure out what's gone wrong yet but I'm sure it is something I've done to pollute my local environment.  All in all, this has highlighted the value of strict control of the developer space for a project as it is through our GitPod configuration.

repo: jondavid-black/AaC


text:
prerelease 0.4

This will be a prerelease to help troubleshoot any GUI installation issues. The plan will be to make the full release right before the workshop at Biomag.

I guess the linkcheck is going to fail for
https://jonescompneurolab.github.io/hnn-core/stable/governance.html

Since this is a new file that doesn't exist on the stable docs yet...

What about including #860  ?

@kmilo9999 I'll plan to review it so it can be included in the release before the biomag conference, but for right now I want to get this pip installable so we can test the current changes.

This isn't on the release steps doc but I think @jasmainak mentioned we need to also add to doc/_templates/navbar.html. This is for the dropdown that lets you switch between docs by release version.

note to self, we need to update the picture on the front page!

Woohoo! v0.4! Thanks to all the contributors!

@gtdang there's a slight issue with #865
The image shows up in the readme but not in the built docs, do you mind taking a look?

If it calls for a different PR we can just rename this one...

Are you pushing to pypi also? I see that it shows 0.3 ...

I was going to until I caught the docs error,...
It seemed like the image work with a local make html build but when I viewed it through circleCI the image was missing

authors: gtdang jasmainak kmilo9999 ntolley

repo: jonescompneurolab/hnn-core


text:
🛑 HR - Croatia is down

In ad2ae6d, HR - Croatia (https://www.skyshowtime.com/hr/help/) was down:

HTTP code: 404
Response time: 774 ms

Resolved: HR - Croatia is back up in 2acbcd2 after 10 minutes.

repo: jonesyriffic/gsp-sst


text:
이정안님 개인 프로젝트 리뷰 1, offline 9 책전달+저녁식사, 2025-01-06

용산역 근처, 오후 6시 30분

가족 여행 일정이 길어져서 그 다음주인 13일로 변경 요청

repo: jongfeel/Activity


text:
How I can show the side menu without segue?

New Issue Checklist

I have read the guidelines for contributing and I understand:

[x] My issue is happening in the latest version of SideMenu.
[x] My issue was not solved in the README.
[x] My issue can not be answered on stackoverflow.com.
[x] My issue is not a request for new functionality that I am unwilling to build and contribute with a pull request.
[ ] My issue is reproducible in the demo project.

Issue Description

I do something like this
let VC1: SideMenuTableViewController = SideMenuTableViewController()         let menuLeftNavigationController = UISideMenuNavigationController(rootViewController: VC1)         SideMenuManager.menuLeftNavigationController = menuLeftNavigationController)         self.viewController.present(SideMenuManager.menuLeftNavigationController!, animated: true, completion: nil)
but doesn't work, I follow the instructions in the description of side menu but does't work, any idea?

You're not following the README correctly.

authors: MervinFlores jonkykong

repo: jonkykong/SideMenu


text:
Events not unbound when re-initialising tree

I'm using the treeview control in a popup dialog representing a gallery selector, the treeview being the basis for the folder listing. Now, upon changing the scope of my dialog, I effectively get a new set of folders, so I need to rebuild the tree. Looking through the source, if I call .treeview({...}) on a control that has previously been initialised, it chains to Tree::_init -> Tree::_destroy().
The problem I am finding, is I rebind the onNodeSelected event when I rebuild the tree, but, the original event function is fired, and then the new event function:
http://jsfiddle.net/ML5WX/1/
It seems the original events are not being removed, so the number of events that get fired per node increases with each rebind.

Good spot @Antaris, thanks @Feoni4 for sharing!

authors: Antaris jonmiles

repo: jonmiles/bootstrap-treeview


text:
Q: Updating via Web Sockets

If I define my data statically in a page and call $('#treeview1').treeview({ data: dataToUse }); such as in your examples, the tree works fine, but when I try to update the tree's data in an "onmessage" function in web sockets by invoking $('#treeview1').treeview({ data: dataToUse }); again with the new data, the tree does not update.  Any suggestions?

Sounds like an issue with your implementation, not the treeview.
I would suggest debugging your code, perhaps take a look at the context it's running in and/or verify the data being returned is the correct format.
Check the console for errors, ask a question on stackoverflow.

Yes, my fault.  The data I sent to the page was very subtly malformed.  Thanks.

hiee  i also have same issue...when i use the data being returned (that i printed on console and i copied it) it works fine...but when i return data from any function the tree does not update. Any suggestions?

authors: BioCompDevSvcs jonmiles vivek144


text:
Swap @if burguers statement into a @mixins

Hello, nice burguers 👍 🍔  !
Usually each project has just one burguer.
And of course we can go into the files and comment the @import, but this means touching files in node_modules ( that problably will rely on a problem if we try a package version update ) 😢 .
Wouldn't be a better approach just have @mixins for each burguer ( and have them listed in the DOC) so i can @include just the one that i want ?
Keeping your files clean 😃.

@HectorLS Hey Hector, thanks!
This was designed in a way that you won’t have to mess with anything in node_modules and also include just the ones you want.
In the Customization section of the README.md there are instructions on how to do so.
In short, you basically take the $hamburger-types map, remove all the ones you don’t want and just leave the ones that you want included. For example, if you only want the squeeze variant, you would put the following in your settings file or one of your .scss files for your project:
$hamburgers-types: (
  squeeze
);

When the CSS is compiled, only that type will be included.
Hope that helps.

authors: HectorLS jonsuh

repo: jonsuh/hamburgers


text:
fixed relative url to http url

Github markdown treated the url without the http prefix as a relative link. Added the http prefix.

Thanks very much for this, it was fixed on the develop branch a couple of weeks ago (236f082 Documentation Tweaks) and is now in master.

authors: Nzen jorabin


text:
'Command failed' in Electron app

Hello and thanks for a great library!
I´ve got a problem with starting and stopping my local mysql process from my electron app.
( I am on macOS Catalina and mysql.server is set in my $PATH)
I can do it with both child_process spawn and child_process exec like this:
exec("sudo mysql.server start", (error, stdout, stderr) => {
  if (error) {
    console.log("error: " + error);
    console.log("stderr: " + stderr);
  }
  console.log("stdout: " + stdout);
});

and:
const child = spawn('sudo', ['mysql.server', 'start']);

child.on("exit", code => {
  console.log(`Child process exited with code ${code}`);
});
child.stdout.on("data", data => {
  console.log(`stdout: ${data}`);
});
child.stderr.on("data", data => {
  console.log(`stderr: ${data}`);
});

They both give me the sudo password prompt in my terminal though, so its not working when building the app.
So I try to do it with sudo-prompt like this:
sudo.exec("mysql.server start", { name: "My App" }, (error, stdout, stderr) => {
  if (error) {
    console.log("error: " + error);
    console.log("stderr: " + stderr);
  }
  console.log("stdout: " + stdout);
});

I get the prompt dialog like expected, but then the command fails and gives me  Error: Command failed: mysql.server start in the terminal.
The strange thing is that when I run apachectl start with sudo-prompt, it works like a charm!
Any thoughts on what could cause this issue?
Thanks in advance!

@DavidForss thanks for opening this.
Did you get this working?
If not, the issue might be this: mysql.server is set in my $PATH) since sudo-prompt needs you to be explicit with environment variables, because of the difficulties of making this work cross-platform.

authors: DavidForss jorangreef

repo: jorangreef/sudo-prompt


text:
Add SHA commit to page footer

use the drone sha commit to view on the webpage footer

https://docs.drone.io/pipeline/environment/reference/
Good starting point

repo: jordanopensource/community-web


text:
Document keyboard shortcuts

Is your feature request related to a problem? Please describe.
Just lost my position in a lecture recording as a result of using the cmd+1 keyboard shortcut (i'm on a mac, so i guess the linux/windows equivalents would be different).
The shortcuts cmd+n (with $n \in \{1, 2, ..., 8\}$) in Chrome will usually switch to the n-th tab from the left, but it seems like the video player overrides these commands to jump to different sections of a video. However, this is not documented anywhere.
Describe the solution you'd like
Document the keyboard commands.
Many web-based applications (such as e.g. Gmail or GitHub) are using the shift+? keyboard shortcut to present an overlay/menu listing all possible keyboard shortcuts, so this might be a good thing to do as well.
Documenting the commands would:

make it clearer what they do exactly (i'm still not sure what exactly the overwritten cmd+n commands do. do they always jump in 14-minute intervals, or do they jump to 1/10-of-the-whole-video timestamps?)
make the commands more discoverable. (after realising that the cmd+n commands exist i continued to press some random buttons, and it seems like j, k, l, m, z, and x also are mapped to certain actions, but then again it is impossible to easily know what they do exactly, without delving into the source code of the website)

Describe alternatives you've considered

Just not do anything and leave it as-is
Add a section listing all available keyboard shortcuts somewhere else (e.g. in the settings page)
Have some kind of questionmark-button at the bottom right of the video player, next to the camera mode and feedback buttons

Yeah, good point with both documentation and the player stealing the alt+n/cmd+n shortcuts!
About the documentation: basically, these are 1:1 YouTube's shortcuts where those made sense in TUM-Live (see #476 and YouTube docs). I think I could add something to document them, probably building on #489. I wasn't aware how many sites had keyboard shortcuts until I tried shift+? on them :)
The issue with stolen shortcuts should be easy to fix by checking that the alt modifier is not pressed. Probably checking the control key makes sense too, but not shift, otherwise shortcuts that require shift won't work anymore :( I'm not aware how to solve this issue in full generality so that shortcuts are never stolen.

@just-max  Is this issue solved by #587?
If not why did you not mark this as a resolving PR?

To anyone reading this issue: the bug of stealing shortcuts is resolved in #587 but the enhancement of documenting shortcuts is not. Therefore the issue remains open for now.

authors: CommanderStorm just-max lukaskollmer

repo: joschahenningsen/TUM-Live


text:
mediapipe fails to install on Apple Silicon

When I do:
python -m pip install .

I get:
Processing /Users/chanana/code/investigations/webcam2
  Preparing metadata (setup.py) ... done
Collecting numpy~=1.20
  Using cached numpy-1.23.3-cp39-cp39-macosx_11_0_arm64.whl (13.4 MB)
Collecting opencv-contrib-python~=4.5.4
  Using cached opencv_contrib_python-4.5.5.64-cp37-abi3-macosx_11_0_arm64.whl (38.7 MB)
ERROR: Could not find a version that satisfies the requirement mediapipe~=0.8 (from matrix-webcam) (from versions: none)
ERROR: No matching distribution found for mediapipe~=0.8

My machine is an M1 MacBookPro with macOS 12.6

I tried the following and it worked for me:
Change line 36 of setup.py to:
'mediapipe~=0.8; platform_system != "Darwin" and platform.machine != "arm64"',

It's directly from this issue.
After this, doing python -m pip install . as given in instructions works!

actually that was fixed this morning in version 0.4.1 :) Try pip install matrix-webcam --upgrade

just guessing here, but this would break on a let's say a Raspberry/Linux arm64 machine

check v0.4.2

I'm getting this crash after running matrix-webcam v0.4.2 on M1 Pro:
objc[25534]: Class CaptureDelegate is implemented in both /opt/homebrew/lib/python3.10/site-packages/cv2/cv2.abi3.so (0x1057ee490) and /opt/homebrew/lib/python3.10/site-packages/mediapipe/.dylibs/libopencv_videoio.3.4.16.dylib (0x10901c860). One of the two will be used. Which one is undefined.
objc[25534]: Class CVWindow is implemented in both /opt/homebrew/lib/python3.10/site-packages/cv2/cv2.abi3.so (0x1057ee4e0) and /opt/homebrew/lib/python3.10/site-packages/mediapipe/.dylibs/libopencv_highgui.3.4.16.dylib (0x108048a68). One of the two will be used. Which one is undefined.
objc[25534]: Class CVView is implemented in both /opt/homebrew/lib/python3.10/site-packages/cv2/cv2.abi3.so (0x1057ee508) and /opt/homebrew/lib/python3.10/site-packages/mediapipe/.dylibs/libopencv_highgui.3.4.16.dylib (0x108048a90). One of the two will be used. Which one is undefined.
objc[25534]: Class CVSlider is implemented in both /opt/homebrew/lib/python3.10/site-packages/cv2/cv2.abi3.so (0x1057ee530) and /opt/homebrew/lib/python3.10/site-packages/mediapipe/.dylibs/libopencv_highgui.3.4.16.dylib (0x108048ab8). One of the two will be used. Which one is undefined.
Add a python dependency on "@com_google_protobuf//:protobuf_python"
Traceback (most recent call last):
  File "/opt/homebrew/lib/python3.10/site-packages/google/protobuf/descriptor.py", line 47, in <module>
    from google.protobuf.pyext import _message
ImportError: dlopen(/opt/homebrew/lib/python3.10/site-packages/google/protobuf/pyext/_message.cpython-310-darwin.so, 0x0002): symbol not found in flat namespace (__ZN6google8protobuf15FieldDescriptor12TypeOnceInitEPKS1_)
Traceback (most recent call last):
  File "/opt/homebrew/bin/matrix-webcam", line 5, in <module>
    from matrix_webcam.__main__ import main
  File "/opt/homebrew/lib/python3.10/site-packages/matrix_webcam/__main__.py", line 13, in <module>
    from mediapipe.python.solutions.selfie_segmentation import SelfieSegmentation
  File "/opt/homebrew/lib/python3.10/site-packages/mediapipe/__init__.py", line 16, in <module>
    from mediapipe.python import *
  File "/opt/homebrew/lib/python3.10/site-packages/mediapipe/python/__init__.py", line 28, in <module>
    import mediapipe.python.packet_getter
  File "/opt/homebrew/lib/python3.10/site-packages/mediapipe/python/packet_getter.py", line 20, in <module>
    from google.protobuf import symbol_database
  File "/opt/homebrew/lib/python3.10/site-packages/google/protobuf/symbol_database.py", line 62, in <module>
    from google.protobuf import descriptor_pool
  File "/opt/homebrew/lib/python3.10/site-packages/google/protobuf/descriptor_pool.py", line 63, in <module>
    from google.protobuf import descriptor
  File "/opt/homebrew/lib/python3.10/site-packages/google/protobuf/descriptor.py", line 47, in <module>
    from google.protobuf.pyext import _message
ImportError: dlopen(/opt/homebrew/lib/python3.10/site-packages/google/protobuf/pyext/_message.cpython-310-darwin.so, 0x0002): symbol not found in flat namespace (__ZN6google8protobuf15FieldDescriptor12TypeOnceInitEPKS1_)

Could you help me with it?

What were your steps to set it up? It seems like you're using python3.10, perhaps you could try 3.9.13 instead and see if it still fails? I think using an older version of the protobuf library (by using py3.9) might help but that's just a guess

@chanana Thanks! python 3.9.13 helps me.

authors: anikitin-intermedia chanana joschuck

repo: joschuck/matrix-webcam


text:
Bower support

Please add this cool jQuery plugin to the Bower.

My Fork is available as package jquery-colpick. All versions 2.* are identical to those here.

@mrgrain Thank you very much!

authors: mrgrain radekdostal

repo: josedvq/colpick-jQuery-Color-Picker


text:
update to handlebars v5

updates handlebars to 5.1.1
version 5 simplified some lifetimes and introduced the use of RenderErrorReason to create RenderError. RenderError::new and other functions have been deprecated.

Looks like GHA failed at the build dev image step

repo: josh-project/josh


text:
Test RFID

Use test code for RFID
Wire RFID to raspberry pi
Test if the RFID and tag is working

The RFID code has been made and tested.
The output: The RFID reader and tag works


text:
GSD Request

--- GSD JSON ---
{
  "vendor_name": "Linux",
  "product_name": "Kernel",
  "product_version": "versions from  to before v4.19.231",
  "vulnerability_type": "unspecified",
  "affected_component": "unspecified",
  "attack_vector": "unspecified",
  "impact": "unspecified",
  "credit": "",
  "references": [
    "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=6312f6a53fd3ea38125dcaca5e3c9aa7d8a60cf7"
  ],
  "extended_references": [
    {
      "type": "commit",
      "value": "6312f6a53fd3ea38125dcaca5e3c9aa7d8a60cf7",
      "note": "fixed"
    }
  ],
  "reporter": "joshbressers",
  "reporter_id": 1692786,
  "notes": "",
  "description": "net: ieee802154: at86rf230: Stop leaking skb's\n\nThis is an automated ID intended to aid in discovery of potential security vulnerabilities. The actual impact and attack plausibility have not yet been proven.\nThis ID is fixed in Linux Kernel version v4.19.231 by commit 6312f6a53fd3ea38125dcaca5e3c9aa7d8a60cf7. For more details please see the references link."
}
--- GSD JSON ---

This issue has been assigned GSD-2022-1000325

repo: joshbressers/gsd-database


text:
ActionType mismatch

Hi!
I've been fiddling a bit with cycle.js and cycle-fire recently and I couldn't seem to get the first example (sourcing and sinking a number) in your readme to work! The sourcing went fine, and manual changes to the database through the Firebase console got reflected immediately. Sinking, on the other hand, didn't propagate to Firebase. The number did not change, and no errors showed up.
Pardon my debugging, since my TypeScript skills are next to none. What I did was to augment both of the addListener calls in driver.js (yes, the generated JS file) like this (and I'm guessing there's a much better way of doing this...):
        ....addListener({
            complete: function () {},
            error: function (x) { console.error('ERROR', x) },
            next: function () {},
        });

When then clicking on the shuffle button, to trigger the set action, I got a message like the following:
{
    code: "auth/argument-error",
    message: "confirmPasswordReset failed: First argument "code" must be a valid string."
}

Looking at the enums and the ActionType declaration, I found that they share number designations:
    AuthActionType[AuthActionType["ApplyActionCode"] = 0] = "ApplyActionCode";
    AuthActionType[AuthActionType["CheckActionCode"] = 1] = "CheckActionCode";
    AuthActionType[AuthActionType["ConfirmPasswordReset"] = 2] = "ConfirmPasswordReset";
    ...
    ReferenceActionType[ReferenceActionType["Push"] = 0] = "Push";
    ReferenceActionType[ReferenceActionType["Remove"] = 1] = "Remove";
    ReferenceActionType[ReferenceActionType["Set"] = 2] = "Set";

Just changing these manually so that each number is unique fixes the issue and everything works as expected! Like I said, my TypeScript foo sucks, so I'm unable to provide you with a PR, but hopefully this will guide you in the right direction.
Looking forward to hearing from you!

Hey, thanks a ton for the investigation. I've gone back and forth with how to type the actions properly, and made some assumptions about how TS transpiles union enums which have turned out to be incorrect. You stumbled upon the problem in a way I probably should have.
Anyway, I'll be trying some conversions and see which method actually works as I've intended and give updates here. Thanks again.

Alright, so I just renamed the base TS ActionTypes and collapsed them into a single enum to fix the problem in v2.3.0. Arguably a tad messier, but it fixes the problem.
Thanks again for the research and issue.

Sweet, works now!

authors: joshforisha khueue

repo: joshforisha/cycle-fire


text:
Add a removeAll method to the ToastManager to allow dismissing all active toasts

This is useful for things like top level navigation or a big change in what is on screen where the toasts that might still be up pending a timer no longer make sense. If you save a resource and then navigate away to a totally different section of the app, the toast might be on top of something very different and weird. So, its handy to have an imperative way to just dismiss everything to make sure users don't get that dissonance.

ping @jossmac any chance we could get this in & released?

ping @jossmac ?

@airhorns good idea, seems like it should live in "consumer land" though. I think this will be easier now with hooks:
const { removeToast, toasts } = useToasts()
const removeAllToasts = () => toasts.forEach(({ id }) => removeToast(id))

authors: airhorns jossmac

repo: jossmac/react-toast-notifications


text:
Fix some problems in current implementation of public API

Code repetition is reduced

Access control is lifted for /v1/comments/x/y. Other routes are still restricted. That's nice.

(the embed still works cross-domain)

With this implementation, we will have to do 2 queries for each GET request. For each POST request, we also query the same document twice (the page, once to check whether it exists and once to get the auto-approve configuration). Quite wasteful.
For CORS, it would be better if we use dynamic origin, by attaching the origin after we query the page to check whether it exists. Not very sure whether this is necessary though.

For CORS, it would be better if we use dynamic origin, by attaching the origin after we query the page to check whether it exists. Not very sure whether this is necessary though.

Since the API is intended to be used everywhere, I think allowing all origins in all cases should be preferred.

The (old) boilerplate implementation only executes 1 query on each request to the public API, but I have to copy the code, which is not a good practice.
I will probably fix that using higher-order functions, for example:
const createComment = createCommentWith((t, pageRef) => getDocumentInTransaction<Page>(t, pageRef));
const publicCreateComment = createCommentWith((t, pageRef, siteId) => getPageInTransactionWithSiteId(t, pageRef, siteId));

@VietAnh1010 Wait, but doesn’t that mean /api/pages/:pid/comments (from which this code is written) is inefficient too? It is used as the GET route in the embed page so it will be used a lot more than this public API. I suggest fixing that too.

@joulev I should have elaborated that query here is the number of request we send to Firebase.
/api/pages/:pid/comments is efficient, as we only send 1 request to Firebase to get the comments.
For the public API, the current implementation send 2 requests, one to check whether the page exists and one to get the comments. If I use Transaction, then I can group the two read operations together into 1 request, and it should improve the API's performance.

repo: joulev/ezkomment


text:
Keep getting "'final_response' must be set" when testing Google Assistant

I got through the Hello World tutorial just fine, and thought I'd give the AdventureGame one a try. I'm using Google Assistant only (not Alexa) and have everything set up (at least well enough for the HelloWorld example to work!) but now whenever I try to use the Google Assistant simulator, I just get the response "My test app isn't responding right now. Try again soon."
and error message (under Validation Errors):
'final_response' must be set

Am I missing something? I have set up my BlueDoorIntent and RedDoorIntent as instructed, have the NodeJS server up and running, ngrok proxy URL put into the Fulfillment section on DialogFlow, set Fulfillment to "use webhook" on each Intent, etc.

Hi! Could you enable logging in the app configuration and tell me what the logs say? Also, is there any stack trace you could share with us? Thanks!

I'm not sure how to enable logging in the app configuration?
There is nothing going on in the app itself (the NodeJS part). Everything works as expected, including responding when I type in the "Try it now" section of DialogFlow. It's only when in Google Assistant simulator that I get this problem.

Hmm, yes, I've been running in this issue sometimes, that the Simulator isn't working as expected. It might be, for example, that another Action is still enabled for testing. You could also try to fix it be setting an invocation name for your app by filling out the draft information (it shows an error if you don't fill out all the information, but it should still save the invocation name)

Ahhhh... The invocation naming worked perfectly.

Perfect!

Thank you!

No problem! Feel free to join our community, if you have more questions: www.jovo.tech/slack

I'm getting the same error. can you tell me how to set invocation name?

authors: anselanza jankoenig reeju10

repo: jovotech/jovo-framework-nodejs


text:
Bravo ! 👍

Bonjour,
Un grand bravo pour ce plugin ! 👍 C'est exactement ce qui nous manquait pour palier l'absence de compatibilité entre la (très) mauvaise appli Aldes Connect et HomeKit...
Une question tout de même... :) J'ai eu beau fouiller dans les fichiers, je n'ai pas vu s'il y avait une possibilité de passer les thermostats en OFF via l'API Aldes. J'ai l'impression que l'option OFF d'un thermostat via l'appli Maison coupe intégralement le T.One.
Ce serait top afin de pouvoir ensuite le lier avec un capteur d'ouverture de fenêtre pour faire des coupures de clim/chauffage à l'aération des pièces par exemple.
Du coup pour palier ce "manque", j'ai modifié les thermostats afin que l'on puisse les régler jusqu'à 31 par exemple. Ainsi, je peux monter le thermostat à 31 pour couper la clim dans une pièce (il faudra juste penser à modifier l'automatisation en hiver haha).
Par contre si je souhaite lier à un capteur d'ouverture, c'est OK pour monter le thermostat à l'ouverture d'une fenêtre et ainsi couper la clim, mais je n'ai pas la mémoire de la précédente température programmée pour remettre la clim à la fermeture de la fenêtre.
Si jamais il existe une solution à ça, je suis preneur à 100%.
Et je te renouvelle une fois de plus mes remerciements pour ce plugin qui m'est très utile au quotidien !
Bonne journée !
Sylvain

Merci pour le retour 😁 content de voir que c'est utile
L'action d'éteindre dans le thermostat de home trigger le mode A qui éteint le chauffage/climatisation du T.one
Idem via la "multiprise" que j'ai aussi rajouté et qui permet de gérer plus finement les modes (cool boost, comfort prog ABCD,...) qui correspondent aux différentes programmations chauffage et climatisation
Chez moi j'ai un capteur d'ouverture de baies vitrées et quand c'est ouvert alors je trigger le bouton labellisé off sur la multiprise et ça éteint chauffage ou climatisation

Bonjour Jean-Philippe,
Afin de permettre une plage de 16 à 30 degrés sur les thermostats (pour couper la clim dans une pièce en passant le thermostat à 30), j'avais modifié le fichier dist/ThermostatAccessory.js, ligne 25 en modifiant la valeur "maxValue" à 30.
Malheureusement, je paramétrage ne fonctionne plus aujourd'hui. J'ai de nouveau modifié le fichier mais la valeur max du thermostat sur l'appli Maison reste 26.
J'ai pourtant bien redémarré pour RPI et le service Homebridge pour que la modif soit bien prise en compte.
J'ai surement oublié quelque chose, mais je ne vois pas.
As-tu une idée ?
Merci beaucoup et bonne journée !
Sylvain

repo: jp-gouin/aldes-homebridge-plugin


text:
HTML

User Story
As a bootcamp student
I want the prework notes to be structured on a webpage
so that I can easily find and read information
##Acceptance Criteria
GIVEN a Prework Study Guide website
WHEN I visit the website in my browser
THEN I see four boxes titles HTML, CSS, GIT, and JavaScript with associated notes listed

Able to merge updated section of code.


text:
Add support for Umami Analytics

This commit adds support for Umami Analytics :sparkles:
As discussed and approved in #829 I'm sending you a small modification to the layouts/partials/analytics.html file that introduces support for Umami Analytics.
Umami Analytics ( https://umami.is ) is another analytics service that allows you to manage up to three domains and up to 10,000 hits per month for free.
To enable this feature, you have to add this parameter to your config file:
[umamiAnalytics]
  site = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
  region = "eu"  # can be either "eu" or "us"

(Usually, the file you need to modify is located under config/_default/params.toml)
I will edit Congo documentation to add further information about using this feature by Sunday evening, March 16th.

Thanks for the PR, @fmaida! I'm happy to merge this in.

authors: fmaida jpanther

repo: jpanther/congo


text:
Ability to push static DNS servers to containers?

Much like how the IP and GW are able to be defined, can the same be accomplished with DNS servers?
I am running pipework and a container on top of unRAID and use it to provide static IPs to my containers.  However, these containers also acquire their DNS servers from br0 (bridge on unRAID) which I have configured to use Google's DNS servers.
I would like a handful of my containers to use my VPN providers DNS servers instead otherwise I am vulnerable to DNS leaks.  My workaround for now is to have unRAID use my VPN providers DNS servers but I would prefer to not do this.

NM...can do this with the Docker run line.

repo: jpetazzo/pipework


text:
What values would you suggest to match randomColor.js?

Hi, this looks like a cool library - I found it after searching for Ruby alternatives to randomColour.js, and think it could just hit the spot for what I need.. although I'm looking for a little guidance.
The readme says I can specify the saturation and lightness I want for generating the colours, and looking at what the randomColour.js readme says:

...randomColor produces bright colors with a reasonably high saturation.

...suggests I should be able to set similar results from this library if I use the correct values - but I'm not sure which values I should be using when I instantiate the object.
I'm very new to playing with colours, so am actually a little confused by some of the terms used, so apologies if I'm asking silly questions.
Thank you.

The values go from 0 to 1, so the highest saturation is 1.0. It's worth learning more about colorspaces, especially HSV and HSL. In HSV, if you set :value to 1.0 you may still get a dark color (e.g. pure blue #0000ff is not light). So, I recommend using HSL with :lightness.

Hi, thank you for your help. I spent a bit of time playing with it last night, and was quite happy with the following:
ColorGenerator.new(saturation: 0.75, lightness: 0.4)

authors: LimeBlast jpmckinney

repo: jpmckinney/color-generator


text:
DN0032-BG: Optimize process order

手順の流れを最適化。

いまのところ、これでよし

repo: jpskenn/Nora


text:
make error

Hi,
I got the following error when executing make. Looks like the thread directory does not exist in Kaldi any more. Could you fix it? Thanks.

make -C bin
make[1]: Entering directory /home/ubuntu/kaldi-decoders/bin' g++ -std=c++11 -I.. -I/home/ubuntu/kaldi/tools/openfst/include -Wno-sign-compare -Wno-unused-variable -I/home/ubuntu/kaldi/src -Wall -Wno-sign-compare -Wno-unused-local-typedefs -Wno-deprecated-declarations -Winit-self -DKALDI_DOUBLEPRECISION=0 -DHAVE_EXECINFO_H=1 -DHAVE_CXXABI_H -DHAVE_ATLAS -I/home/ubuntu/kaldi/tools/ATLAS_headers/include -msse -msse2 -pthread -g  -fPIC -DHAVE_CUDA -I/usr/local/cuda/include -DKALDI_NO_EXPF   -c -o decode-lazylm-faster-mapped.o decode-lazylm-faster-mapped.cc g++  -Wl,-rpath=/home/ubuntu/kaldi/tools/openfst/lib  -rdynamic -Wl,-rpath=/home/ubuntu/kaldi/src/lib  decode-lazylm-faster-mapped.o   /home/ubuntu/kaldi/src/decoder/libkaldi-decoder.so  /home/ubuntu/kaldi/src/lat/libkaldi-lat.so  /home/ubuntu/kaldi/src/fstext/libkaldi-fstext.so  /home/ubuntu/kaldi/src/hmm/libkaldi-hmm.so  /home/ubuntu/kaldi/src/tree/libkaldi-tree.so  /home/ubuntu/kaldi/src/util/libkaldi-util.so  /home/ubuntu/kaldi/src/matrix/libkaldi-matrix.so  /home/ubuntu/kaldi/src/base/libkaldi-base.so /home/ubuntu/kaldi/tools/openfst/lib/libfst.so /usr/lib/libatlas.so.3 /usr/lib/libf77blas.so.3 /usr/lib/libcblas.so.3 /usr/lib/liblapack_atlas.so.3 -lm -lpthread -ldl -o decode-lazylm-faster-mapped g++ -std=c++11 -I.. -I/home/ubuntu/kaldi/tools/openfst/include -Wno-sign-compare -Wno-unused-variable -I/home/ubuntu/kaldi/src -Wall -Wno-sign-compare -Wno-unused-local-typedefs -Wno-deprecated-declarations -Winit-self -DKALDI_DOUBLEPRECISION=0 -DHAVE_EXECINFO_H=1 -DHAVE_CXXABI_H -DHAVE_ATLAS -I/home/ubuntu/kaldi/tools/ATLAS_headers/include -msse -msse2 -pthread -g  -fPIC -DHAVE_CUDA -I/usr/local/cuda/include -DKALDI_NO_EXPF   -c -o latgen-lazylm-faster-mapped.o latgen-lazylm-faster-mapped.cc g++  -Wl,-rpath=/home/ubuntu/kaldi/tools/openfst/lib  -rdynamic -Wl,-rpath=/home/ubuntu/kaldi/src/lib  latgen-lazylm-faster-mapped.o   /home/ubuntu/kaldi/src/decoder/libkaldi-decoder.so  /home/ubuntu/kaldi/src/lat/libkaldi-lat.so  /home/ubuntu/kaldi/src/fstext/libkaldi-fstext.so  /home/ubuntu/kaldi/src/hmm/libkaldi-hmm.so  /home/ubuntu/kaldi/src/tree/libkaldi-tree.so  /home/ubuntu/kaldi/src/util/libkaldi-util.so  /home/ubuntu/kaldi/src/matrix/libkaldi-matrix.so  /home/ubuntu/kaldi/src/base/libkaldi-base.so /home/ubuntu/kaldi/tools/openfst/lib/libfst.so /usr/lib/libatlas.so.3 /usr/lib/libf77blas.so.3 /usr/lib/libcblas.so.3 /usr/lib/liblapack_atlas.so.3 -lm -lpthread -ldl -o latgen-lazylm-faster-mapped make[1]: Leaving directory /home/ubuntu/kaldi-decoders/bin'
make -C gmmbin
make[1]: Entering directory /home/ubuntu/kaldi-decoders/gmmbin' g++ -std=c++11 -I.. -I/home/ubuntu/kaldi/tools/openfst/include -Wno-sign-compare -Wno-unused-variable -I/home/ubuntu/kaldi/src -Wall -Wno-sign-compare -Wno-unused-local-typedefs -Wno-deprecated-declarations -Winit-self -DKALDI_DOUBLEPRECISION=0 -DHAVE_EXECINFO_H=1 -DHAVE_CXXABI_H -DHAVE_ATLAS -I/home/ubuntu/kaldi/tools/ATLAS_headers/include -msse -msse2 -pthread -g  -fPIC -DHAVE_CUDA -I/usr/local/cuda/include -DKALDI_NO_EXPF   -c -o gmm-decode-lazylm-faster.o gmm-decode-lazylm-faster.cc g++  -Wl,-rpath=/home/ubuntu/kaldi/tools/openfst/lib  -rdynamic -Wl,-rpath=/home/ubuntu/kaldi/src/lib  gmm-decode-lazylm-faster.o   /home/ubuntu/kaldi/src/decoder/libkaldi-decoder.so  /home/ubuntu/kaldi/src/lat/libkaldi-lat.so  /home/ubuntu/kaldi/src/fstext/libkaldi-fstext.so  /home/ubuntu/kaldi/src/hmm/libkaldi-hmm.so  /home/ubuntu/kaldi/src/feat/libkaldi-feat.so  /home/ubuntu/kaldi/src/transform/libkaldi-transform.so  /home/ubuntu/kaldi/src/gmm/libkaldi-gmm.so  /home/ubuntu/kaldi/src/tree/libkaldi-tree.so  /home/ubuntu/kaldi/src/util/libkaldi-util.so  /home/ubuntu/kaldi/src/matrix/libkaldi-matrix.so  /home/ubuntu/kaldi/src/thread/libkaldi-thread.so  /home/ubuntu/kaldi/src/base/libkaldi-base.so /home/ubuntu/kaldi/tools/openfst/lib/libfst.so /usr/lib/libatlas.so.3 /usr/lib/libf77blas.so.3 /usr/lib/libcblas.so.3 /usr/lib/liblapack_atlas.so.3 -lm -lpthread -ldl -o gmm-decode-lazylm-faster g++: error: /home/ubuntu/kaldi/src/thread/libkaldi-thread.so: No such file or directory make[1]: *** [gmm-decode-lazylm-faster] Error 1 make[1]: Leaving directory /home/ubuntu/kaldi-decoders/gmmbin'
make: *** [gmmbin] Error 2

Commit 088a6a9 should fix this. Thanks for reporting!

authors: jpuigcerver yanyufish

repo: jpuigcerver/kaldi-decoders


text:
android引入报错

import io.dcloud.common.DHInterface.IWebview;
import io.dcloud.common.DHInterface.StandardFeature;
import io.dcloud.common.util.JSUtil;
这三个类hbuilder引入报错

这三个类是 Hbuilder 类，属于 libs/pdr.jar，建议检查下是否引入成功。非 JPush 问题关闭。

repo: jpush/jpush-hbuilder-demo


text:
Uppercase Text measures wrong

Plugin doesn't work properly when using uppercase text.

Actually, he is right. I am using uppercase text (css-transformed) and I run into the same issue. If I turn off the uppercase style it fits perfectly. If I don't, it doesn't fit.

authors: BabyDead renestalder

repo: jquery-textfill/jquery-textfill


text:
"Required" message persists for date field

Checklist for this issue
If someone would forget to put in the date and then click submit we would get "Date of Visit is required" as expected, but then after the date is populated the "required" message doesn't disappear as it does with every other field. I can still click submit and it works fine but the project owner feels this may confuse people and wants it to disappear as it is supposed to when the field is filled out properly. I have 1.16 of jQuery.Validation in my NuGet packages, there are no updates.
The form validates and continues on even though this warning is there.
Subject of the issue
Required text does not disappear after field has been validated.
Your environment

1.16 (the latest that is in NuGet)
I can duplicate it on IE 11 and Chrome

Steps to reproduce
In my view I have this:
<div class="form-group">
    @Html.LabelFor(m => m.DateOfVisit, new { @class = "form-label" })
    @Html.TextBoxFor(m => m.DateOfVisit, new { @class = "form-control", type = "Date", placeholder = "MM/DD/YYYY", @Value = "" })
    @Html.ValidationMessageFor(m => m.DateOfVisit, string.Empty, new { @class = "text-danger" })
</div>

In my model I have this
[Required(ErrorMessage = "Date of Visit is required")]
[DataType(DataType.Date)]
[Display(Name = "Date of Visit")]
public DateTime DateOfVisit { get; set; }

Expected behaviour
I expect after I type in the value that the "required" message goes away like it does with every other field.
Actual behaviour
The "required" message persists even after the field is filled.

This appears to be with the HTML5 date field. When using standard text type this validation works.

in firefox  no matter what you enter it always says "Please enter a valid date."

even i have no required and date: true applied on field

Thank you xiano8494, I kind of guessed that was the case after I did my workaround. I just added in some jQuery to hide the empty warning if the field is not empty.
If I change it to a text field instead of date does jquery validate have some sort of date picker or would we have to get a separate component for that?

in firefox it was a "date" class  on input field which was triggering the date rule

repo: jquery-validation/jquery-validation


text:
No option to disable default error labels

There is no option to disable default error labels and use the existing ones present in forms.
Issue 1:
If I change errorElement to span, it does not pick existing error elements that are already there in form. For example: If I already have a span error label like below:
<input type="text" name="someName" />

In validate configuration:
$(form).validate({
    ...
    errorElement: 'span'
});

It only works if errorElement is  and the one present in DOM has a for= attribute.
<input type="text" name="someName" />

In validate configuration:
$(form).validate({
    ...
    errorElement: 'label' // <-- This is default in plugin and works as expected
});

Issue 2
Alternatively, i would like to disable the default error labels feature, and toggle existing labels with the help of highlight and unhighlight callbacks. The only option that worked for me was to pass errorPlacement option with an empty function which again didn't work properly when existing error elements were s with for= attribute.
$(form).validate({
    ...
    errorPlacement: function () {}  // Seems like a hack to me
});

I hope I have made the descriptions clear to understand.
Thanks in Advance!
Sachin

Can please someone address to this thread?

Hi @scssyworks,
Sorry about that. I will reopen the issue and come back to you when I get some free time.

authors: Arkni scssyworks


text:
Doesn't push to Boxcar

I compiled and installed the module on my vps (centos 5) and configured it.
I got a notification in boxcar once that znc was added to my services.
However mentions / private messages don't get pushed to boxcar.
I didn't set "secret" because i couldn't find it on the boxcar website and the readme shows to use subscribe instead. Do i have to set this too?

Hello,
I am trying to get this working with boxcar and I'm running into an issue.  The steps I used were:
/msg *push set debug on
/msg *push set service boxcar
/msg *push set username myemail@domain.tld
/msg *push subscribe
When I try to subscribe I get a 403 Forbidden error.
I have tried both the email I signed up for boxcar with, as well as the notification email from boxcar settings and neither worked.
What am I missing?
Thanks!

It's possible that Boxcar has changed their API.  I don't have a good way to test this service though, so I can't really help track down the solution.  Sorry.

I left the 'username' and 'secret' field blank for BoxCar. But when I try to issue /msg *push subscribe it tells me "Error: username not set". What username am I supposed to put in? In BoxCar's app there is no username for me to fill in.

http://help.boxcar.io/support/solutions/articles/6000004813-how-to-send-a-notification-to-boxcar-for-ios-users
jreese that is their API guide. I guess that you have to use the API key from the app to auth now. Should not be so hard to implement this change?

authors: Bensge DataRepository bhaap jreese jruels

repo: jreese/znc-push


text:
Add Zip extension method

#31 Add Zip method.
Hi @jreina,
Please review !
Your repo is quite fun and interesting ! I will keep contributing.

Thank you! Looking at this implementation, it looks like you've implemented the normal zip the way it is implemented in Lodash, but the System.Linq implementation implements it as Zip<T, U, V>(vals: Array<U>, ((x: T, y: U) => V)): Array<V>; which is more like _.zipWith in Lodash.
Can you implement the System.Linq version? It would be nice to have the current implementation as an overload if possible.

@mahasak Any word on this? If you would like to implement it per the spec I can be patient, otherwise, I would like to free this up for other potential contributors.

authors: jreina mahasak