Google 500 Error

Xamarin.Auth Issue
"Google

That's an error.

There was an error. Please try again later. That's all we know."
This is the screen that comes up now on my iPhone. This app has been working perfectly for the last 6 months and all of a sudden over the last 3 days this is all it produces.
This is specifically with Google sign in. Facebook and linkedin are working fine.
Version

[ x ] nuget version = <IP_ADDRESS>

[ ] sample

Steps to reproduce
protected void ButtonGoogle_Clicked(object sender, EventArgs e)
       {
           provider = "Google";
           authenticator
                = new Xamarin.Auth.OAuth2Authenticator
                (
                    clientId:
                        new Func<string>
                           (
                               () =>
                               {
                                   string retval_client_id = "oops something is wrong!";

                                   // some people are sending the same AppID for google and other providers
                                   // not sure, but google (and others) might check AppID for Native/Installed apps
                                   // Android and iOS against UserAgent in request from
                                   // CustomTabs and SFSafariViewContorller
                                   // TODO: send deliberately wrong AppID and note behaviour for the future
                                   // fitbit does not care - server side setup is quite liberal
                                   switch (Xamarin.Forms.Device.RuntimePlatform)
                                   {
                                       case "Android":
                                           retval_client_id = "xxxxxx";
                                           break;
                                       case "iOS":
   		                   retval_client_id = "xxxxxxx";
                                           break;
                                       case "Windows":
                                           retval_client_id = "xxxxxxxxx";
                                           break;
                                   }
                                   return retval_client_id;
                               }
                          ).Invoke(),
                   clientSecret: null,
                   authorizeUrl: new Uri("https://accounts.google.com/o/oauth2/auth"),
                   accessTokenUrl: new Uri("https://accounts.google.com/o/oauth2/token"),
                   redirectUrl:
                       new Func<Uri>
                           (
                               () =>
                               {

                                   string uri = null;

                                   // some people are sending the same AppID for google and other providers
                                   // not sure, but google (and others) might check AppID for Native/Installed apps
                                   // Android and iOS against UserAgent in request from
                                   // CustomTabs and SFSafariViewContorller
                                   // TODO: send deliberately wrong AppID and note behaviour for the future
                                   // fitbit does not care - server side setup is quite liberal
                                   switch (Xamarin.Forms.Device.RuntimePlatform)
                                   {
                                       case "Android":
                                           uri =
                                               "com.xxxxxx:/oauth2redirect";
                                           break;
                                       case "iOS":
                                           uri =
                                               "com.xxxxx:xamarin-auth";
                                           break;
                                       case "Windows":
                                           uri =
                                               "com.xamarin.auth.windows:/oauth2redirect";
                                           break;
                                   }

                                   return new Uri(uri);
                               }
                            ).Invoke(),
                     scope: "email",
                    getUsernameAsync: null,
                    isUsingNativeUI: true
                )
                {
                    AllowCancel = true,
                };

           authenticator.Completed += OnAuthCompleted;

           authenticator.Error += OnAuthError;

           // after initialization (creation and event subscribing) exposing local object
           AuthenticationState.Authenticator = authenticator;

           PresentUILoginScreen(authenticator);

           return;
       }

Platform:

[] .NET version =

Expected behaviour
It should give me an option to log into my google account
Actual behaviour
As said above on the actual behaviour.

That's an error.
There was an error. Please try again later. That's all we know."

This means server side error. Please checvk logs on server side.

This app has been working perfectly for the last 6 months and all of a sudden over the last 3 days this is all it produces.

OAuth service providers like google constantly change OAuth implementation, so something might have changed.
Did you change nuget versions in your app?

This is specifically with Google sign in. Facebook and linkedin are working fine.

This is proof that most likely Xamarin.Auth is not the issue here.
Please close this issue if it is not possible to provide more info or answer is satisfying.

@moljac
Thank you for taking the time to reply. I don't believe the there is any proof that Xamarin Auth is not the issue. The actual issue is that due to the fact that Google Sign in requires native UI. On loading said native UI the error occurs. LinkedIn and Facebook both use separate web views. However using just the safari app on the iPhone the issue does not occur.
I have not changed nuget versions of the app and I have checked everything on Google's side and everything seems to be completely fine.

I'm really starting to get desperate here. There is absolutely no information on this error or how to fix it. I've tried different API Keys and on different accounts, different phones etc etc but to no success. Has anyone come accross this issue and managed to fix it?

@Jamesmallon1
Can you provide me a minimal repro sample, pleas?
In some private repo, or in priave chat in Xamarin community slack team...

In our case it seems to work again. We did not publish any updates in this time frame so I think Google was the culprit here.


Vim: Caught deadly signal SEGV

when add include <list> to any .cc or *.cpp file, got :Vim: Caught deadly signal SEGV(but its ok if save as not a cpp file)
example:
tt.cc
#include <list>
int main() {
}

build:
./configure --with-features=huge
--enable-multibyte
--enable-rubyinterp
--enable-pythoninterp
--with-python-config-dir=/usr/lib/python2.7/config
--enable-perlinterp
--enable-luainterp
--enable-gui=gtk2 --enable-cscope --prefix=/usr
branch:master
system:ubuntu 16.04 lts
my vimrc:
vimrc.txt

Which version on which OS?
Does it occur without plugins? (vim -N -u NONE)
Please consider getting a stacktrace: https://github.com/vim/vim/issues/851#issuecomment-225160476

the plugins syntastic got the vim issue

Am 2016-06-14 06:28, schrieb leihuxi:

Closed #866 [1].

Could you please nevertheless post an stacktrace.
In any case, Vim shouldn't segfault

Dear,
I've got a nice  surprise for  you,  I think you'll love it! Just take a look http://opt.peacesystems.com/e4aazkim
Cheers, paul


[WIP] Bhard/data upload

Sweet!  I'll review as soon as I'm back from lunch.
On Wednesday, April 22, 2015, Brittain Hard<EMAIL_ADDRESS>wrote:

You can view, comment on, or merge this pull request online at:
https://github.com/memex-explorer/memex-explorer/pull/449
Commit Summary

Uploading zip files now works.
Reorganized task manager app.

File Changes

M source/base/forms.py
https://github.com/memex-explorer/memex-explorer/pull/449/files#diff-0
(2)
M source/base/models.py
https://github.com/memex-explorer/memex-explorer/pull/449/files#diff-1
(13)
M source/base/templates/base/base.html
https://github.com/memex-explorer/memex-explorer/pull/449/files#diff-2
(4)
M source/memex/settings.py
https://github.com/memex-explorer/memex-explorer/pull/449/files#diff-3
(4)
R source/task_manager/init.py
https://github.com/memex-explorer/memex-explorer/pull/449/files#diff-4
(0)
R source/task_manager/crawl_tasks.py
https://github.com/memex-explorer/memex-explorer/pull/449/files#diff-5
(2)
A source/task_manager/file_tasks.py
https://github.com/memex-explorer/memex-explorer/pull/449/files#diff-6
(2)
R source/task_manager/models.py
https://github.com/memex-explorer/memex-explorer/pull/449/files#diff-7
(0)
A source/task_manager/tasks.py
https://github.com/memex-explorer/memex-explorer/pull/449/files#diff-8
(2)
R source/task_manager/tests.py
https://github.com/memex-explorer/memex-explorer/pull/449/files#diff-9
(0)

Patch Links:

https://github.com/memex-explorer/memex-explorer/pull/449.patch
https://github.com/memex-explorer/memex-explorer/pull/449.diff

—
Reply to this email directly or view it on GitHub
https://github.com/memex-explorer/memex-explorer/pull/449.

Still a work in progress @ahmadia. Almost done with the unzip function.

@ahmadia this is ready to review. The only things left are to add testing and fix currently broken tests.

Visual inspection all seems reasonable.

While we were reviewing this we identified a problem with passing file objects to Celery through Django.  We're going to use a file name instead, since there's no reason to pass an open file handle to the Celery task manager.  cc: @amfarrell @brittainhard

I'm going to try and figure out what's broken in the tests.

@brittainhard and I decided to set the failing tests as expected failures for now, and to raise an issue to go back and look at them later.  This completes the "upload" step.  We now need to implement the tika pipeline and the visualization with kibana.


Automatic Reconnect

Is there a way for the client to detect a network loss and reconnect?
I tried .wait() then I tried with a .wait(seconds=15) and then look at the .connected probably and it is always true. I would get the app up and running and then pull the network cable for about a minute. The connected property always said true and even after plugging it back in, nothing happened. It was pretty much dead.
Am I doing something wrong? Any examples with auto reconnect? I see that it is suppose to send a ping on another thread. Maybe that isn't bubbling back up to me? Should that cause the wait method to unblock and exit or at least throw while I'm "wait"ing?
This was with v0.6.5

same issue @randellhodges  did you find any answer?

Have you tried the latest release?
https://pypi.python.org/pypi/socketIO-client/0.7.2
Auto reconnect should work. I don't remember having issues with it.
from socketIO_client import SocketIO, BaseNamespace

class Namespace(BaseNamespace):

    def on_connect(self):
        print('[Connected]')

    def on_reconnect(self):
        print('[Reconnected]')

    def on_disconnect(self):
        print('[Disconnected]')

socketIO = SocketIO('localhost', 8000, Namespace)
socketIO.wait(seconds=1)

You might want to try a variation of the code snippet above to see what is happening.

I was on 0.6.5. The latest versions didn't work with the SocketIO server I was connect to. I did a variation of the above, and it would reconnect. I was basically timing the pings and if I missed a ping, I would reconnect.
It is probably not how I should do it, and I am new to python.
I capture the current time in _on_socket_pong and I also get the ping timeout from socketIO in the connect. When wait stops blocking, I look to see if we missed a scheduled pong, and if so, I let the loop exit and it reconnects. I run this in it's own thread.
I know it breaks a few rules regarding encapsulation and the disclaimer is, it works for me, on the server I was hitting and for the version I was using.
`
def _on_socket_connect(self, socket):
    # We will try to see what our ping check should be. It does use _variables, so
    # we'll have a fallback value
    try:
        interval = socket._engineIO_session.ping_interval
        if timeout > 0:
            self.ping_interval = interval
    except:
        pass

    try:
        timeout = socket._engineIO_session.ping_timeout
        if timeout > 0:
            self.ping_timeout = timeout
    except:
        pass

    self.last_pong = time.time()

def _on_socket_pong(self, data):
    self.last_pong = time.time()

def _on_socket_response(self, *args):
    self.last_pong = time.time()

 def _run(self):

    while not self.stopped.isSet():

        _LOGGER.error('Connecting')

        try:
            with self.SocketIO(STREAM_URL, params=self.params) as socket:

                socket.on('connect', lambda: self._on_socket_connect(socket))
                socket.on('pong', self._on_socket_pong)

                # Note: ping_timeout and ping_interval may adjust after the initial connection
                while not self.stopped.isSet():

                    # We need to wait for at least our ping interval, otherwise the wait will
                    # trigger a ping itself.
                    socket.wait(seconds=self.ping_timeout)

                    # Check that we have gotten pongs or data sometime in
                    # the last XX seconds. If not, we are going to assume we need
                    # to reconnect
                    now = time.time()
                    diff = int(now - (self.last_pong or now))

                    if diff > self.ping_interval:
                        break

        except (TimeoutError, ConnectionError, ConnectionResetError):
            # We are going to ignore these and go back thru the loop
            time.sleep(5)

`

@invisibleroads do you have time for this issue?


restore() should accept ForeignKey parameters in a Djangoesque way

At the moment it works like this:
obj.restore(fk_field_name=foreign_object_pk)

But it should really work like everywhere else with Django Models:
obj.restore(fk_field_name=foreign_object_instance)

and
fk_column = fk_field_name + '_id'
obj.restore(fk_column=foreign_object_pk)

done


Update sha2, ed25519 and curve25519-dalek dependencies

Updates sha2, ed25519, curve25519-dalek dependencies to latest crates.
Temporarily patched curve25519-dalek pending https://github.com/mobilecoinfoundation/curve25519-dalek/pull/2
Also fixes a warning in tests/ed25519.
Supports https://github.com/mobilecoinfoundation/mobilecoin/issues/1326

PTAL, I've updated the patched curve dep to use the MCF fork.

PTAL, I had to rebase the commits to sign them.


Improve stats parsing

Create one function for each extra parseable type to make it clear there are different types in the stats response, and to stop wasting memory on making several lambdas that all do the same thing.
Also improve test coverage of the parsing.

Could we improve the naming a little? A part from that, this is good 👍 will merge once names are updated.


Improvement for compatibility

Fixed a bug retrieving the protocol version to not fail with older versions of MongoDB
Fixed a bug retrieving the type of the collections (it doesn’t appear in older versions of MongoDB)

Codecov Report

Merging #155 into devel will increase coverage by 0.01%.
The diff coverage is 0%.

@@             Coverage Diff              @@
##              devel     #155      +/-   ##
============================================
+ Coverage     18.22%   18.24%   +0.01%
- Complexity     1505     1506       +1
============================================
  Files           735      735
  Lines         26436    26436
  Branches       2322     2322
============================================
+ Hits           4819     4822       +3
+ Misses        21314    21312       -2
+ Partials        303      302       -1

Impacted Files
Coverage Δ
Complexity Δ

...s/signatures/internal/ReplSetHeartbeatCommand.java
0% <ø> (ø)
0 <ø> (ø)
:x:

...mands/signatures/admin/ListCollectionsCommand.java
0% <ø> (ø)
0 <ø> (ø)
:x:

...m/torodb/mongodb/commands/pojos/HeartbeatInfo.java
0% <ø> (ø)
0 <ø> (ø)
:x:

...orodb/mongodb/commands/pojos/ReplicaSetConfig.java
0% <ø> (ø)
0 <ø> (ø)
:x:

...ongodb/repl/topology/TopologyHeartbeatHandler.java
18.06% <ø> (+0.64%)
6% <ø> (ø)
:x:

...repl/oplogreplier/fetcher/LimitedOplogFetcher.java
61.11% <ø> (+11.11%)
5% <ø> (+1%)
:white_check_mark:

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 6bcb6bd...e716b76. Read the comment docs.


Fix startup issue

On my system when I turn on my laptop, the sensors -j does not return coretemp-isa-0000 key as expected (After I log in I can see that it returns the data as expected). Which results in a failed service and it stays failed unless I restart the service manually. This change will resolve this issue by early returning from the updateTemperature function if the desired output was not captured.

Thanks !


Treat UNSET_TREATMENT resource_name_type as STATIC_TYPES

And if not STATIC_TYPES, then VALIDATE if possible.
After this, we can remove all resource_name_type values in existing GAPIC configs if we want.

PTAL


Better support for caching / checkpointing development workflow - umbrella issue

Is your feature request related to a problem? Please describe.
We need a simpler caching & checkpointing story that has full service visibility into what's going on.
Describe the solution you'd like

Checkpointing -- i.e. cache outputs and restart from the latest point.
Intelligent Caching -- i.e. cache nodes and only rerun things if code or data has changed.

These should come with the ability to:

visualize what is going on when using them.
work in a notebook / cli / library context
extend how to hash data & where to store it

Prior art

You do it yourself outside of Hamilton and use the overrides argument in .execute/.materialize(..., overrides={...}) to inject pre-computed values into the graph.  TODO: show example.
You use the data savers & data loaders. This is similar to the above, but instead you use the Data Savers & Data Loaders (i.e. materializers) to save & then load and inject data in. TODO: show example.
You use the CachingGraphAdapter, which requires you to tag functions to cache along with the serialization format.
You use the DiskCacheAdapter, which uses the diskcache library to store the results on disk.

Could use https://books.ropensci.org/targets/walkthrough.html#change-code as inspiration.
Additional context
Slack threads:

https://hamilton-opensource.slack.com/archives/C03M33QB4M8/p1717602458129939

Next steps:
TODO: write up tasks in this issue into smaller and manageable chunks.

I took one of the targets examples and transferred it one-to-one to hamilton to see how the concepts compare. Both workflows are implemented in modules and make use of helper functions from a separate module. Then both are started interactively from quarto documents and their results and graphs visualized in the rendered output of said notebooks: http://jmbuhr.de/targets-hamilton-comparison/ (source code: https://github.com/jmbuhr/targets-hamilton-comparison)
Again, this is for exploration of possibilities, not to impose paradigms on you :)
In this first pass I noticed two things I was missing in hamilton compared to targets when it comes to caching:

changing a function that is used by a node, but is not itself a node, should also invalidated the cache of the node
loading the cached result from any node independently of the dr.execute run as with tar_load(<name of node>) (https://docs.ropensci.org/targets/reference/tar_load.html)  is super helpful for interactively picking up where you left of with a workflow and working on different parts of it.

For inspiration, the developer documentation of how targets does caching might come in handy: https://books.ropensci.org/targets-design/data.html#skipping-up-to-date-targets

Update - we've got a candidate API:
c = CacheStore() # this could house various strategies, e.g. basic checkpointing, to more sophisticated fingerprinting.
dr = driver.Builder()...with_cache(c, **kwargs).build()

# first run -- nothing cached
dr.execute([output1], inputs=A)

# change some code -- any code: upstream or downstream of what was run before
# rebuild driver
dr = driver.Builder()...with_cache(c, **kwargs).build()
# this should recompute as needed -- and recompute downstream as needed
dr.execute([output2], inputs=A)

# no-op if run again
dr.execute([output2], inputs=A)

# should only recompute what inputs impact -- going downstream as needed.
dr.execute([output2], inputs=A')

Updates:
.with_cache() will just be about fingerprinting caching strategy.
.with_checkpointing() will just be about checkpointing.

Hi everyone! We just merged #1104 which introduces caching as a core Hamilton feature.
We invite you to try it via Google Colab and review the docs!

CC @jmbuhr

Very cool, excited to try it!


HTTPS error 50001 / http:500 / internal server error

Sorry if this is due to my ignorance, but I can't be sorting out a small issue:
I set up everything and ntfy is listening on ports 80 http and 444 https (have another server running using port 443 on same machine).
I can connect to both servers from the android app, no issue. Systemctl shows all correctly, running and listening to the right ports.

Nevertheless, the notifications do work. I receive them in the app in both groups, the one connected to http as well as the one connected to https.
When only using http. I get a feedback after sending the command containing the sent message, which is kind of nice to have.
So everything works, but I can't get {"code":50001,"http":500,"error":"internal server error"} away.
Anyone would happen to have some hints?
Thank you !!!!

Turn on logging in your server.yml file to see what's going on. "debug" is probably enough, but you could also do "trace"

Hi Wunter,
have done so. I see an error about writing permissions to a  DB:
INFO Connection closed with HTTP 500 (ntfy error 50001) (error=attempt to write a readonly database, http_method=POST
ntfy.log
ntfyhttps.log
I also tried the same now only enabling https, commented out http.  See log attached.
At the beginning I used to get a message that I was trying to send a message to a https server using http (with curl). This though disappeared.
Thanks.

Sorry, update:
I did comment out http, which was wrong. After putting http to "" instead of commenting it out, I get the following:
root@vps2432639:/var# curl -d "test" x.x.x.x/alerts
Client sent an HTTP request to an HTTPS server.
I also changed server.yml cache db entry to a different file name hoping it would be recreated, maybe with right permissions. Didn't work.
Thanks.

I guess I solved it doing a chown ntfy on the cache db file... is that a good thing?
:-)

It makes sense that chown on the cache.db file fixed things. You could still send and receive messages (as you saw) without a working cache.
Did you get the http and https stuff figured out? If so, I think we can probably close this!

Yes, it can all be closed. I figured pretty much everything out, it really works like a charm. To be honest, one of the most useful discoveries I've made in years. In my case (home lab / hobby guy) I extremely appreciate being able to get notification from Cron when a job did run etc. I truthfully am delighted by this solution, and havn't explored even 1% of its capabilites. A big THANKS.

FWIW, I noticed the same error message.  In my case, the server flipped the bit from read / write file system to read only.  (Close ticket, but for others who search for the ticket, it could be another debugging technique to check.)


feature: search quotes

Summary

Adds .envrc and ./ideato .gitignore
Adds a searchQuotes controller. Url example: http://localhost:4001/search/love?limit=3&skip=2
Should resolve to 3 quotes whose content includes love
Uses the same regex as listQuotes controller

Some improvements that can be made:

order results by relevance
include authors and tags in the resultset

Thanks for submitting a PR! I definitely like the idea of adding a search endpoint. I'll take a look at this tonight.

In terms of the API for this feature, I'd like to make a few small changes...
Ultimately, my plan is to have two search endpoints, one for authors and one for quotes. So was thinking each one would have a separate endpoint:

/search/quotes
/search/authors

Also, I'd prefer to have the search input be a query param instead of a path param.
GET /search/quotes/?query=love

Implementation
Another possibility would be to use text search.  This would support some of the additional features you mentioned:

Search multiple fields (ie content, author,tags)
Sort search results by score

const { query: searchString } = req.query
let { limit, skip = 0 } = req.query
// Searches all fields that have a text index (@see src/models/Quote.js)
const filter = { $text: { $search: searchString } }
// The `score` field is used to sort results by relevance
// TODO: The `score` field should not be included in the API response.
const projection = { score: { $meta: 'textScore' } }

limit = clamp(parseInt(limit), 1, 50) || 20
skip = parseInt(skip) || 0

const [results, totalCount] = await Promise.all([
  Quotes.find(filter, projection)
    .sort({ score: { $meta: 'textScore' } })
    .limit(limit)
    .skip(skip)
    .select('-__v -authorId'),

  Quotes.countDocuments(filter),
])

There is already a text index on the content and author fields. If we wanted the search to include tags as well, we could update that.
Let me know what you think!

I just opened an issue for this as well (#31)

Thanks for getting back to this. Agreed on all points. text search looks neat. I'll try to find the bandwidth to work on this, looking forward to it.

OK sounds good!

@mitramejia If you OK with you, I'm going to make a couple of small changes and then merge this.

@lukePeavey go for it 👍

👀  This is just what I need, is it documented?
Usage like this?
GET /search/quotes/?query=love

Thanks all for the work, great project!

@homerjam The search API is not included in the docs yet since its still a work in progress. However, it should be fine to start using this now.
Yes, thats the correct usage:
Currently, it takes a single search parameter (query) and searches quotes by content and author. The results are sorted based on text matching score.
Examples
Search by keyword (try in browser)
GET /search/quotes/?query=love

Search for a quote or phrase (try in browser)
GET /search/quotes/?query=a house divided

Search for quotes by author name (try in browser)
GET /search/quotes/?query=Lincoln


Workaround for https://github.com/fastlane/fastlane/issues/5163

This looks like a good workaround to me.

I've got the same issue, and this change fix the issue for me using Xcode 8 beta 4 👍
I hope this will be approved and released soon 🚀

Very interesting approach, definitely something we could try 👍

I'm hitting this problem in my project, but with clean added to this command, if I run it 10 times:
/Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild clean -showBuildSettings -workspace Sensorama.xcworkspace -scheme SensoramaTests

It still hangs sometimes.

So it seems like this doesn't actually fix the issue 😢

Going to close this in favor of https://github.com/fastlane/fastlane/pull/5188

This was supposed to fix #5163 (always hangs with Xcode 8), not #4059 (sometimes hangs with Xcode < 8).

I support with @IngmarStein, #5188 seems to have nothing to do with this "always hangs with Xcode 8".
I'm using his fix and it's working very well for this particular issue

@ohwutup the underlying bug hasn't been fixed in Xcode 8 Beta 6, but the @tokorom's fix still works.

@ohwutup Petitioning for reopening. :)

+1

@IngmarStein thanks for sharing, will try it

It worked the first 2 times and then failed (by hanging again)

Interesting. With my Core Data based project, I can easily run xcodebuild clean -showBuildSettingsmany times without hang (e.g. for f in {1..20}; do xcodebuild clean -showBuildSettings > /dev/null 2>&1; done).
Without the clean parameter, xcodebuild from Xcode 8 always hangs.

I have this running behind Jenkins, that may be the added variable.

@lyndsey-ferguson is it possible that you're running into #4059 then? A combination of this PR and #5188 may be required for a complete fix.

@IngmarStein Thanks for investigating and putting this together 👍
I'm going to take this as-is, but do a follow-up to put this behavior behind a feature switch so that people can opt-in to the change. ✅

Seems to work in my projects and Xcode 7.3.1. Thanks.

@IngmarStein the commit made by @fcy works for me. I put this in my Gemfile:
gem 'fastlane', :git => 'https://github.com/fcy/fastlane.git', :branch => 'fcy/fix-xcodebuild-show-settings'

After talking with @KrauseFx, we decided not to put this workaround behind a feature switch. It'll go out live for everyone by default with the next release. 👍

@lyndsey-ferguson Thanks for chiming in with your test results. 👍  We'll work on merging a retry solution next!

Hi all, this has been released as part of fastlane_core 0.51.0 🚀
The retry solution from #5188 is also a part of that release.
Thanks very much for your help! Please let us know how it looks 👍

To test the latest release, please run [sudo] gem update fastlane_core or if you have a Gemfile bundle update.
Please let us know if that fixes the issue for you, so we can push new releases for gym and scan 🚀

Hi all, gym 1.9.0 💪 and scan 0.12.0 🔍 have been released to pick up these fastlane_core improvements.
To get updated and try them out, please run [sudo] gem update gym scan :rocket:

Doesn't this ignore the -clean parameter, and break incremental builds?

@jacobjennings Could you submit a new issue for this? 👍


Escape markup characters in dwl/window

Without this, markup characters like [&><] will be injected directly into the Label. Escaping them makes sure that the values will be printed exactly as they appear in the window title or layout symbol.

Thanks!


Empty struct as component

Couldn't find an issue about this, and I can't quite figure out what's happening.

Reproducible

Why does  this work..
static entt::registry World;
struct Renderable { bool tag; };

int main() {
  World.view<Renderable>().each([=](auto& renderable) {
     // Do things
  });
}

But not this..
static entt::registry World;
struct Renderable {};  // Empty struct!

int main() {
  World.view<Renderable>().each([=](auto& renderable) {
     // Do things
  });
}

Note the empty Renderable {}.
Error
$ g++ -pthread -std=c++17 -o main main.cpp
$ chmod +x main
$ ./main

entt.h: In instantiation of 'entt::basic_view<Entity, Component>::each(Func) const [with Func = main()::<lambda(auto:80&)>; Entity = entt::entity; Component = Renderable]::<lambda(auto:23)> mutable [with auto:23 = entt::entity]':
/usr/local/include/c++/8.1.0/bits/stl_algo.h:3882:5:   required from '_Funct std::for_each(_IIter, _IIter, _Funct) [with _IIter = entt::sparse_set<entt::entity>::iterator; _Funct = entt::basic_view<Entity, Component>::each(Func) const [with Func = main()::<lambda(auto:80&)>; Entity = entt::entity; Component = Renderable]::<lambda(auto:23)>]'
entt.h:7150:30:   required from 'void entt::basic_view<Entity, Component>::each(Func) const [with Func = main()::<lambda(auto:80&)>; Entity = entt::entity; Component = Renderable]'
main.cpp:9:4:   required from here
entt.h:7151:25: error: no match for call to '(main()::<lambda(auto:80&)>) (const entt::entity&, entt::basic_storage<entt::entity, Renderable, void>::iterator::reference)'
                     func(entt, *(raw++));
                     ~~~~^~~~~~~~~~~~~~~~
main.cpp:7:53: note: candidate: 'template<class auto:80> main()::<lambda(auto:80&)>'
   World.view<Renderable>().each([=](auto& renderable) {
                                                     ^
main.cpp:7:53: note:   template argument deduction/substitution failed:
In file included from main.cpp:1:
entt.h:7151:25: note:   candidate expects 1 argument, 2 provided
                     func(entt, *(raw++));
                     ~~~~^~~~~~~~~~~~~~~~

You miss entity as first parameters of your lambda

[](auto&& entity, auto&& renderable)()

No @Milerius entity is optional, if you don't need it, don't require it, it's faster.
At a first glance, the problem is auto &. Empty types aren't created to save space in the pool, so temporaries are returned. It should be either auto or const auto &. Otherwise use less instead of each. It doesn't return empty components and thus it's slightly faster. Take a look at the doc for the details. :)

Thanks guys.
Would it make sense to make this information available in the error message? At least in a debug build. Right now, it's a bit cryptic IMO.

@alanjfs that's a deduction error, I don't really know how to prevent it and return a meaningful message. Probably the best we can do is to test if the function is invocable and notify the user if it's not, but we cannot easily tell the reason without actually invoking it.
Do you have any suggestion?

Hm, not sure. But if it's about special treatment of empty structs in favour of performance, then perhaps it could make sense to have a flag of sorts?

I want great error messages
I want great performance

E.g.
#define ENTT_NICE_ERRORS true
#include "entt.hpp"
...

Not sure. From a user perspective, I would have liked something to save the time it took to encounter, narrow down and converse about the problem. But at the very least there's now an issue about it users are able to search for next time it happens.

For EnTT v4 (C++20) you could use [[no_unique_address]] to maximise performance and maintain API consistency.

Well @alanjfs the thing is documented afaik and you're right in saying that there is now an issue for newcomers. Unfortunately, the nice errors flag has the same problem I mentioned above: I've no idea about how to intercept this situation. The only thing we can do is to instantiate empty components to get rid of the error but it ruins a bit the performance, so it doesn't worth it imho.

Cool, no problem on my end. Welcome to close this.

Ran into this again, in a different spot, with a different (equally cryptic) error message. :( From a user perspective, I would happily trade consistency and stability over performance. Maybe there's a way of making this work, whether a struct is empty or not, with an option to make it run "fast" afterwards?
struct Empty {};
void Func(entt::entity ent, entt:registry& reg, Empty& comp) {}
registry.on_construct<Empty>().connect<&Func>();

  c:\project\entt\entt\signal\delegate.hpp(127,28): error C2607:
 static assertion failed (compiling source file src\main.cpp) [c:\project
\application\application.vcxproj]
  c:\project\entt\entt\signal\delegate.hpp(133,29): error C2672:
 'std::invoke': no matching overloaded function found (compiling source file src\main.cpp) [C:\Users\marc
us\Dropbox\dev\toy\vs\cargame\application\application.vcxproj]
  c:\project\entt\entt\signal\delegate.hpp(126,1): error C2893:
Failed to specialize function template 'unknown-type std::invoke(_Callable &&,_Types &&...) noexcept(<exp
r>)' (compiling source file src\main.cpp) [c:\project\application\applica
tion.vcxproj]

A bit out of scope but do you know that you can attach listeners with a shorter list of parameters?
In you case, these are valid as well:
void Func(entt::entity ent, entt:registry& reg) {}

void Func(entt::entity ent) {}

void Func() {}

If you don't need the component (and you don't need it because it's empty probably) just don't get it. :wink:

do you know that you can attach listeners with a list of parameters that is shorter than that of the signal?

I did not! Thanks :) The docs could use some refinement on this.

Actually, to paint a better picture on this; I do need the struct, just not yet. I'm working iteratively, and wanted to get a placeholder struct to hook things up before I started filling things in. The idea was that once I got EnTT to play nice, I'd add data and logic to those parts. In this case, I never got that far, because this connection didn't work for some unknown reason.

I've thought about this though.
I think it's not that hard to disable the empty type optimization by means of a macro and therefore to treat all the types as if they were non-empty ones.
Feel free to open an issue for that. I'll look into it further.
This fits your idea of having consistency initially and enabling optimizations in release mode only if needed.

Nice one!

Feel free to open an issue for that. I'll look into it further.

Maybe we could re-open this one? That way, we get to keep the conversation around the issue intact.

It makes sense actually. :+1:
Could you do that? I'm from mobile and I've still to figure out where the re-open button is buried. :smile:

I can't actually :S I think it's restricted to you. The button is typically next to the Comment button at the bottom, but on mobile I'm not sure.

Thanks for addressing this, however! This doesn't actually fix the issue IMO.
The problem was getting this error and not understanding why, because of a cryptic error message. The solution added doesn't solve this, because it is opt-in; which means past-me would still run into this issue. Like before, I could have solved it if I knew about it, by e.g. adding const to the each() function, but I didn't know. Likewise, with this flag, past-me and others like me will continue to run into this issue.
Instead, I would suggest making the solution opt-out; as in, have a flag to explicitly enable the optimisation. That way:

Beginners won't have a problem, but will "suffer" from poor performance (except they will have bigger problems, such as learning the library)
Those wanting more performance (once familiar and committed) can learn about and use the flag.

Win-win.
For clarity, here's what I would suggest.
// #define ENTT_DISABLE_ETO // Before
#define ENTT_ENABLE_ETO     // After

[*] start fair enough mode [OK]

Honestly, 99% of the times you don't want to disable the empty type optimization and surely that's not something I want in my own code. Similarly, I don't want to define the ENTT_ENABLE_ETO all around, especially in already existing code or already released projects where suddenly empty components would be instantiated.
That's more or less why it's an opt-in solution rather than an opt-out macro.

[*] stop fair enough mode [OK]


[auto-merge] branch-23.12 to branch-24.02 [skip ci] [bot]

auto-merge triggered by github actions on branch-23.12 to create a PR keeping branch-24.02 up-to-date. If this PR is unable to be merged due to conflicts, it will remain open until manually fix.

SUCCESS - auto-merge


Mypy typing

GitHub is acting up. This branch is showing conflicts with master even after they have been resolved. Closing to open a new PR


feat: use Bitnami Postgres chart and add CI

This PR wraps up several changes with the goal adding CI, which in turn requires that the chart deploy all its resources successfully with only a helm install run against the default values.yaml. The individual commits separate the discrete parts.

Postgres
Removes the bespoke Postgres templates in favor of a subchart using the Bitnami chart, to remove the need to build out Postgres features and to remove the need for prep work before deploying the chart.
I'm not 100% sure what the expected prep work was previously, but DB-backed applications didn't have credential Secrets in place currently:
$ kubectl describe po smd-74989f59f4-vc45x | grep Warning
  Warning  Failed     9s (x7 over 79s)  kubelet            Error: secret "postgres-creds" not found

This now creates random credentials automatically. It does not yet add functionality for bringing your own Postgres instance and credentials. We'll want this eventually, but this PR was already large enough and adding that capability would need some significant changes to how we handle container environment generation.
lighttpd
Removes lighttpd. Per conversation with @bcfriesen this was previously added for testing, and is no longer used. It was broken (the image was missing) and preventing tests from passing.
CI testing
Add CI using chart-testing. chart-testing confirms that the default values.yaml successfully deploys and meets the Helm --wait readiness criteria and that resources with the test hook annotation pass. This confirms (often, but not always) that changes in a PR do not break the chart.
Adds tests that confirm the SMD and BSS APIs can respond to requests. This is quite basic, but I wasn't aware of any more complex workflows we can try at present.
This does not test template paths not covered by the default values.yaml. For that we'd probably want smaller reduced scope tests for template output, such as https://github.com/helm-unittest/helm-unittest

Some extra bits that I didn't think were important enough to stick in the OP:
Tests will run automatically on any PR that modifies the chart directory, but are not required for merging a PR. This is in part because I don't have permissions to set required checks, but more because GitHub Actions doesn't provide a good means of making checks that are only sometimes required. We'd need to either run them on PRs to the quadlets half also (they'd probably succeed, but would waste time) or create a separate chart-specific repository; I'd lean towards the latter.
chart-testing output is unfortunately not my favorite thing in the world. It doesn't do a great job of isolating the actual failure reason in text output and combines all resource logs/events into a single log file. It's readily available though :shrug: Perhaps I should try and edit the action code to separate the outputs into file artifacts.

My earlier work adding the Bitnami used separate Postgres instances for each application. The Bitnami chart has the ability to provision users and databases automatically, but only for a single user/database per release. Combining multiple databases in a single release requires a custom init script.
This topology is arguably more like a production environment (it's what we have in our active CSM clusters), but I kept the single instance, as it seemed better for the quickstart demo environments--I figure an actual production environment will be using externally-managed Postgres anyway, so having the demo remain compact seemed better despite the (sort of--the multiple releases are a bit messy to manage) extra template work needed.
If it's of interest, https://github.com/rainest/ochami-deployment-recipes/pull/5 contains a copy of the split Postgres setup.


Fails to use node binary in Windows.

Following code breaks windows path like C:\\Program Files (x86)\\Nodist\\v-x64\\8.2.1\\node.exe.
https://github.com/okonet/lint-staged/blob/58ea81805272acd89bf23c98b8c1a88ad343456d/src/findBin.js#L35

Hey @Ailrun, could you please share your lint-staged config?

@sudo-suhas Actually, it occurs when I try to run https://github.com/kentcdodds/kcd-scripts

I have not used kcd-scripts before and am not clear on how you would use it. Could you please share your package.json? I might be able to help you so that lint-staged runs okay.

@sudo-suhas I try to contribute https://github.com/paypal/glamorous, which use kcd-scripts, which use lint-staged, ...

I followed the linked issue and took a look at this - https://github.com/kentcdodds/kcd-scripts/blob/master/src/config/lintstagedrc.js. I think this issue can be fixed with a path.isAbsolute(cmd) check. @okonet What do you think?

I try to contribute https://github.com/paypal/glamorous, which use kcd-scripts, which use lint-staged, ...

I am on windows too and being able to test our changes against a package helps.

@sudo-suhas Hm... I will try to make an example repo, if time allows..

@Ailrun No need, I can use https://github.com/paypal/glamorous.

Continuing this discussion in https://github.com/kentcdodds/kcd-scripts as it is not a lint-staged issue as far as I can tell.


2.0.8 vue-template-compiler breaks scoped css

When using vue-class-component library with vue-router in 2.0.8, dom elements are not being id'd and therefore the 'scoped' css is broken.
To replicate, simply install VueRouter in a test project that exports using the js like:
// hello.vue
...
<script>
import Component from 'vue-class-component'

@Component export default class Login {
  name = 'hello'
  msg = 'Welcome to Your Vue.js App'
}
</script>
...

// app.js
import Vue from 'vue'
import App from './App'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

/* eslint-disable no-new */
new Vue({
  el: '#app',
  template: '<App/>',
  components: { App }
})

"vue": "^2.0.8",
"vue-class-component": "^4.3.1",
"vue-router": "^2.0.3"
I also find it impossible to roll back vue (i want to roll back to 2.0.7) because the vue-loader library which is a dependancy of vue has a subdependancy of<EMAIL_ADDRESS>which will then just install the latest, and throw a version mismatch error. It would be nice to be able to lock to an older version

If this only happens with vue-class-component, please open an issue in that repo.

the issue is with view-template-compiler tho, so i moved the bug here

Here is an example repro
https://github.com/tonypee/vue-issue-4266

Haven't looked into the details but I suspect it may have to do with vue-class-component not handling _scopeId properly. I don't see anything between 2.0.7 and 2.0.8 that could cause this problem.

I'll look into it.


can mac installed docker use this repo accomplish the labs locally?

thanks for your job (the local shark machine public to other students not in CMU)

I think you can. I used Mac to do this myself. But iirc there is one lab that you need to do some hack to make it work. Cannot remember it clearly now. Lmk if it does not work.


chore(deps): upgrade dev dependencies

Upgrades project dependencies. See details in workflow run.

Automatically created by projen via the "upgrade-dev-dependencies-2.x" workflow

⚪ Backport skipped
The pull request was not backported as there were no branches to backport to. If this is a mistake, please apply the desired version labels or run the backport tool manually.
Manual backport
To create the backport manually run:
backport --pr 2963

Questions ?
Please refer to the Backport tool documentation


Rule proposal - Readability (Maintainablility) rule - Report assignments in condition expressions

To carry on the side topic at http://stylecop.codeplex.com/discussions/252502...
StyleCop does not currently complain about either of the following code patterns. Where bb and cc are bools:
if (bb = cc)
{
    // ...
}

while (bb = cc)
{
    // ...
}

if ((a = b) > 3)
{
    // ...
}

while ((a = b) < 4)
{
    // ...
}

switch (bb = cc)
{
    case true:
    default:
}

I believe the pattern shown by the first two assignments-inside-conditionals can sometimes be a typo/mistake, and if not by a mistake the coder, could easily get mistaken by maintainers scanning over it as a comparison operator. Fortunately this isn't a very common problem since it generally only applies to bools. However, all of these examples have more straight-forward, logical implementations by pulling the assignments into their own lines of code. The "shortcuts" being employed by allowing the assignment to be within conditionals are unnecessary and I think we should provide a rule to call this out.
Originally proposed by Andy Reeves: http://stylecop.codeplex.com/workitem/6893

follow up discussion:
xanatos wrote Nov 7, 2011 at 11:38 AM
This is usable:
while ((a = b) < 4)
{
    // ...
}

I often use it for:
int count;
while ((count = myStream.Read(buffer, 0, buffer.Length)) > 0)
{
    mySecondStream.Write(buffer, 0, count);
}

The alternatives are all quite ugly:
This moves away from the while the exit logic:
while (true)
{
    int count = myStream.Read(buffer, 0, buffer.Length);
    if (count == 0)
    {
        break;
    }

    mySecondStream.Write(buffer, 0, count);
}

or
This is even worse, because it repeats twice the Read line (so the two Reads could become different)
int count = myStream.Read(buffer, 0, buffer.Length);
while (count > 0)
{
    mySecondStream.Write(buffer, 0, count);
    count = myStream.Read(buffer, 0, buffer.Length);
}

Idiom cited in comments is quite established today. Another rewrite can be to use do..while loop:
int count;
do
{
    count = myStream.Read(buffer, 0, buffer.Length);
    if (count > 0)
    {
        // do stuff
    }
}
while (count > 0)

So maybe it would be better to limit this rule to simple assignments.
Another thought - Complement rule could be "Don't use mutating syntax in complex expressions". With the exception of mentioned idiom, mixing assignments, ++ and -- with other kinds of expressions should be reported. I personally hate deciphering nested ++ and -- with both pre and post flavors to grasp the expression. This reminds me old C days. Today few locals more would not hurt but readability of such beasts can be greatly improved
Having all this in mind - there are probably more established idioms. These rules feel like gray area to me

I lean towards yes on this one, but I need to think about it a bit more.

While I personally disapprove of any assignment in conditionals, I can understand the argument made by xanatos.
All the (bb = cc) cases written up by andyr should definitely be flagged by a rule as they are most likely programming errors, there might be some valid cases, but they seem undesirable anyway.

Superseded by #862.


Create Open Source project for C# AudioGraph Opus Codec

This would be amazing in so many way.
A great example of how to do a low latency codec in C#.
A great low latency codec to have in your pocket.
Might could be used to help with streaming.
I'm sure there are more benefits here.

Oh here is the url for Opus Codec/
http://www.opus-codec.org/

Also it would probably be best to actually somehow use as much of the c\c++ from the original project and have a combination C#\C++ project.  That way you can push changes back to the original project that help it integration better with the AudioGraph API.


Please add navigator.share

AFAICT at the end of 2016 it was announced. only chrome will probably support it for now.

i.e. the Web Share API

https://www.chromestatus.com/feature/5668769141620736
https://webkit.org/status/#feature-web-share
https://bugzilla.mozilla.org/show_bug.cgi?id=1312422
https://bugs.webkit.org/show_bug.cgi?id=171100

+1

+1
Feature with Share UI was added in Chrome 61 for Android:
https://blog.chromium.org/2017/08/chrome-61-beta-javascript-modules.html

+1

I already have a PR that's merged
https://github.com/Fyrd/caniuse/blob/1be885f9cffc6e4d2944847ef537de890709bbf2/features-json/web-share.json
Don't know why this ain't showing up

The data is still pending review by Fyrd, per the label on your PR.

Now available at https://caniuse.com/#feat=web-share


Automated cherry pick of #6839: scheduler: fix memory over committed

Cherry pick of #6839 on release/3.2.
#6839: scheduler: fix memory over committed

Codecov Report

Merging #6841 into release/3.2 will increase coverage by 0.00%.
The diff coverage is 10.52%.

@@             Coverage Diff              @@
##           release/3.2    #6841   +/-   ##
============================================
  Coverage         6.71%    6.71%
============================================
  Files              665      665
  Lines           118971   118977    +6
============================================
+ Hits              7983     7986    +3
- Misses          110378   110382    +4
+ Partials           610      609    -1

Flag
Coverage Δ

#aFlag
6.71% <10.52%> (+<0.01%)
:arrow_up:

Impacted Files
Coverage Δ

pkg/compute/models/loadbalancerlisteners.go
1.26% <0.00%> (-0.01%)
:arrow_down:

pkg/scheduler/models/pending_usage.go
21.91% <11.76%> (+0.05%)
:arrow_up:

pkg/appsrv/response.go
69.11% <0.00%> (+2.94%)
: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 bf2d727...a957815. Read the comment docs.


I got There was an error while trying to load the gem 'textris'. (Bundler::GemRequireError)

Hi,
I am trying to use textris on my rails app. But I got "There was an error while trying to load the gem 'textris'. (Bundler::GemRequireError)" error.
This is the full error:
Colins-MacBook-Pro:rentlord Ryzal$ rails s
/Library/Ruby/Gems/2.0.0/gems/bundler-1.11.2/lib/bundler/runtime.rb:80:in `rescue in block (2 levels) in require': There was an error while trying to load the gem 'textris'. (Bundler::GemRequireError)
    from /Library/Ruby/Gems/2.0.0/gems/bundler-1.11.2/lib/bundler/runtime.rb:76:in `block (2 levels) in require'
    from /Library/Ruby/Gems/2.0.0/gems/bundler-1.11.2/lib/bundler/runtime.rb:72:in `each'
    from /Library/Ruby/Gems/2.0.0/gems/bundler-1.11.2/lib/bundler/runtime.rb:72:in `block in require'
    from /Library/Ruby/Gems/2.0.0/gems/bundler-1.11.2/lib/bundler/runtime.rb:61:in `each'
    from /Library/Ruby/Gems/2.0.0/gems/bundler-1.11.2/lib/bundler/runtime.rb:61:in `require'
    from /Library/Ruby/Gems/2.0.0/gems/bundler-1.11.2/lib/bundler.rb:99:in `require'
    from /Users/Ryzal/Desktop/Sites/rentlord/config/application.rb:8:in `<top (required)>'
    from /Library/Ruby/Gems/2.0.0/gems/railties-4.2.3/lib/rails/commands/commands_tasks.rb:78:in `require'
    from /Library/Ruby/Gems/2.0.0/gems/railties-4.2.3/lib/rails/commands/commands_tasks.rb:78:in `block in server'
    from /Library/Ruby/Gems/2.0.0/gems/railties-4.2.3/lib/rails/commands/commands_tasks.rb:75:in `tap'
    from /Library/Ruby/Gems/2.0.0/gems/railties-4.2.3/lib/rails/commands/commands_tasks.rb:75:in `server'
    from /Library/Ruby/Gems/2.0.0/gems/railties-4.2.3/lib/rails/commands/commands_tasks.rb:39:in `run_command!'
    from /Library/Ruby/Gems/2.0.0/gems/railties-4.2.3/lib/rails/commands.rb:17:in `<top (required)>'
    from bin/rails:4:in `require'
    from bin/rails:4:in `<main>'

Any help? Thanks!

Hey @ryzalyusoff do you still need help with that? what's your ruby & rails version?

Hi,
I am receiving this error also in a Windows x64 environment.
rake aborted!
Bundler::GemRequireError: There was an error while trying to load the gem 'textris'.
Gem Load Error is: uninitialized constant FILE
Backtrace for gem load error is:
C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/libxml-ruby-3.0.0-x64-mingw32/lib/libxml.rb:2:in <top (required)>' C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/twilio-ruby-5.4.5/lib/twilio-ruby.rb:3:in <top (required)>'
C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/textris-0.4.4/lib/textris.rb:7:in <top (required)>' C:/Ruby23-x64/lib/ruby/site_ruby/2.3.0/bundler/runtime.rb:81:in require'
C:/Ruby23-x64/lib/ruby/site_ruby/2.3.0/bundler/runtime.rb:81:in block (2 levels) in require' C:/Ruby23-x64/lib/ruby/site_ruby/2.3.0/bundler/runtime.rb:76:in each'
C:/Ruby23-x64/lib/ruby/site_ruby/2.3.0/bundler/runtime.rb:76:in block in require' C:/Ruby23-x64/lib/ruby/site_ruby/2.3.0/bundler/runtime.rb:65:in each'
C:/Ruby23-x64/lib/ruby/site_ruby/2.3.0/bundler/runtime.rb:65:in require' C:/Ruby23-x64/lib/ruby/site_ruby/2.3.0/bundler.rb:114:in require'

Is this still an issue for any of the Windows users? We haven't seen much of activity here, so considering to close the issue.

Since there is no activity I'm closing this issue.


Update link_microsoft_low_reputation.yml

Was firing on invalid URL's in body links. Also added negations for office365.com sending addresses.

/mql-mimic-exempt: 308820, 315818
these are not regressions. The EML's are too large to be processed.


[4.0] Install allows a short password so that the login isn't possible after

Describe your problem
In the installation, the password for the admin is used without checking the length. This cause a login problem later because the login checks for a minimum length
Steps to reproduce the problem

Install bludit and choose password "admin"
Try to log in into admin area with password "admin"
Login will fail

Bludit version
4.0 (master)
Hosting or Webserver name
nginx
PHP version
any version

Passwort length check:
bl-kernel/login.class.php#116


Date picker item's text doesn't change if we change date by external means

Hi,
date picker item doesn't change it's display text if we change the date value by external means. in my case when the next day or previous day buttons are clicked.
i think it's because of using _getFormattedDate(date, placeholder, locale) function which doesn't get called when the date changes.
possible fix :
have an extra formattedDate property computed from date property and data bind that property to paper-item-body

it does update the text. my mistake!


fix: silently ignore ResizeObserver errors

Description
This will cause all ResizeObserver errors to get swallowed by the window's custom error handler. These events are harmless and have been leading to issues.
Task Item
close #8361

Coverage increased (+0.001%) to 55.761% when pulling 0c308e0a9bb6335562cd91293e378c9571f76a48 on beyackle/ignoreResizeErrors into 6761f1615ddd589b7d814b2515ec1d3b43fc88a2 on main.


Daily index date is based on local date rather than UTC

Hi,
Because the reporter assumes that the date used in the index is the local date, rather than UTC (which ES presumes) we find that our metrics are being split over two indices (we are storing metrics in daily indices and are in CET (GMT+1) Timezone).
From the code I see that the reporter derives the index name from a Date object, and the SimpleDateFormat uses the local Timezone by default.
This means that at midnight Jan 25 CET the reporter send metrics to a new Jan 25 index, whereas the metrics are still timestamped Jan 24 UTC.
Setting the Timezone of the SimpleDateFormat resolves the problem.  The following snippet hopefully helps to explain.
  long timestamp =<PHONE_NUMBER>; // Wed Jan 25 00:00:00 CET 2017 / Wed Jan 24 23:00:00 UTC 2017

  System.out.println("timestamp = "+timestamp*1000);
  // timestamp =<PHONE_NUMBER>000

  System.out.println("Date = " + new Date(timestamp*1000));
  // Date = Wed Jan 25 00:00:00 CET 2017

  String currentIndexName = "metrics";
  SimpleDateFormat indexDateFormat = new SimpleDateFormat("yyyy.MM.dd");
  currentIndexName += "-" + indexDateFormat.format(new Date(timestamp * 1000));
  System.out.println("currentIndexName (CET) = " + currentIndexName);
  // currentIndexName (CET) = metrics-2017.01.25

  currentIndexName = "metrics";
  indexDateFormat.setTimeZone(TimeZone.getTimeZone("UTC"));
  currentIndexName += "-" + indexDateFormat.format(new Date(timestamp * 1000));
  System.out.println("currentIndexName (UTC) = " + currentIndexName);
  // currentIndexName (UTC) = metrics-2017.01.24

To clarify why this is a problem for us (besides the ES indexes being UTC oriented), we run an aggregator on each index and then can simply delete the entire index. As it stands, an hours worth of values from the next day are missing, and are then bundled into the subsequent run.  Furthermore, the logic in this reporter does not match how logstash allocates documents to indices, i.e. 00:00->23:59 UTC in one index.
Changing the behaviour of the reporter now might not be desirable, but adding the option to choose between UTC index dates or local would be very useful, or at least mentioning it in the documentation might help, in case it trips someone else up.
I'll happily create a Pull Request if you wish.

I just noticed this bug as well. It is quite pronounced for us because Canberra is UTC + 11. I came in to work this morning (1st of Nov) and couldn't find any errors to indicate why all of the analytics systems showed no data, but it is because so far this morning all of the metrics are still recorded with a @timestamp of 31st of Oct in UTC. However the reporter is writing them into the 2018-11 index because it is choosing the index name based on local time instead of UTC time.
The 'bug' is that it should align the timezones with the indexes they are put into, instead of writing October timestamps into the November index.


Fix tooltip only showing once

I was trying to write a dynamic tooltip for UPowerWidget and noticed the tooltip was only showing up once. I figured out that it was because self._tooltip_timer still had a value in _start_tooltip, which requires it to be falsey. I have updated _stop_tooltip to explicitly set _tooltip_timer to None.

Thanks for this. Fix looks good.
I need to do a bit of work to fix the tests as some updates to qtile need to be reflected here. Once that's done we can run the tests (although none of my tests will be impacted by your change!)

Right. I've fixed the other issues.
Can you rebase onto latest main and then do a force push to resubmit this.


Style: What order functions have in file's layout?

Besides categories I do not see much

There's no hard rule.  I just organize things in whatever way I think will be easier for the user to browse.
For Turtle.Prelude specifically I just organize things from simpler types to more complex types, with the exception of the chmod section which I put at the bottom since it's very large and would obstruct more important utilities if I put it near the top.


Discuss: Directory Provider for panda

Currently Hyperion makes the panda folder and updates the panda directory provider. This makes a lot of assumptions that hyperion has permissions etc. We should come up with a plan for what this looks like long term, likely in discussion with @DiamondJoseph,  @callumforrester etc.

Is the idea that the provider should be able to verify those assumptions for itself?

Not sure how much of this is already covered by the upcoming changes to the DirectoryProvider in ophyd-async that plays nicely with the AreaDetector FilePlugin create-dir-depth
https://github.com/bluesky/ophyd-async/blob/6155efe8b2b02c246c2b4e712e77b36eae3a499f/src/ophyd_async/core/_providers.py#L30

Re: Files though: AreaDetectors with the file plugin/the PandA IOC will (if they are creating the folder themself) need to be running as a user that can create said folders: which is fine, as they are running as a user that can create files in the visit directories. We don't want blueapi running as a privileged user at all.

implementation doesn't ever call os.createdir() that's ideal.

More than ideal, it's critical

I think we need another broad discussion on how we want hyperion to handle file/folder writing. There are a number of factors:

It is a user requirement to put data in subfolders in the visit directory
Historically controls have not been keen for odin to make folders (though this may have changed @GDYendell?)
We have other metadata that we would like to save with the data:

Snapshot images
Nexus files

For MXB this may go away anyway, the plan here is probably that hyperion will have write access for the APS side then the data transfer service will have the specific permissions for DLS
There may be an argument that hyperion is itself a locked down service, no user should be able to inject code into it, therefore does it matter that it has access across all visits?

There may be an argument that hyperion is itself a locked down service, no user should be able to inject code into it, therefore does it matter that it has access across all visits?

I think that's fine, as long as you can't inject code. It's not ideal, the ideal is to make the smallest possible code base run with write permissions. Could have a tiny service/python IOC to actually do it, but I'm happy enough with the final bullet point.

It's not ideal, the ideal is to make the smallest possible code base run with write permissions.

I agree with this as a goal but I think we need to think about it practically and how much complexity it might add.

PandA output directory creation looks to be being resolved, what's the folder structure intended to look like?
https://github.com/PandABlocks/PandABlocks-ioc/pull/102

what's the folder structure intended to look like?

Undetermined, probably something like:

data_dir

data_00001.h5
data.nxs
panda

data_panda.h5

snapshots

data_snapshot.jpg

Where data_dir is user defined

Historically controls have not been keen for odin to make folders (though this may have changed @GDYendell?)

We just copied areaDetector at the time, which now does support creating directories. It is more complicated in Odin given the multiple writers on different nodes, but I expect it can be done.
I do think it is not ideal that, if hyperion runs a scan with an areaDetector, PandA and Odin detector writing to a directory, they are all going to have to individually check and create the directory with their own implementation of the same logic.

@GDYendell if supergraph goes ahead, this logic could live there, what do you think?

Yep could do. I think we probably need to go with everything being able to create directories for now?


Can I use the multisig address generated by Safe to stake in the launchpad?

I stake ETH in launchpad using MetaMask, and I want to know if I can use the multisig address generated by Safe to stake in the launchpad.
I don't find some information in the FAQ.
Thanks.

what are you trying to do?
if I'm reading you correctly, you used metamask to author a deposit transaction and you are asking if you can also use metamask (or some wallet) to author a deposit transaction from a gnosis safe?


az webapps deploy issue

This is autogenerated. Please review and update as needed.
Describe the bug
Command Name
az webapp deploy
Errors:
The command failed with an unexpected error. Here is the traceback:
HTTPSConnectionPool(host='vtsjboj01.scm.ase-middleware.appserviceenvironment.net', port=443): Max retries exceeded with url: /api/publish?type=war (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f35c565d4e0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Traceback (most recent call last):
  File "/usr/lib64/az/lib/python3.6/site-packages/urllib3/connection.py", line 175, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/usr/lib64/az/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib64/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib64/az/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/usr/lib64/az/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/usr/lib64/az/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/usr/lib64/az/lib/python3.6/site-packages/urllib3/connection.py", line 358, in connect
    conn = self._new_conn()
  File "/usr/lib64/az/lib/python3.6/site-packages/urllib3/connection.py", line 187, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f35c565d4e0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib64/az/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib64/az/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/usr/lib64/az/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='vtsjboj01.scm.ase-middleware.appserviceenvironment.net', port=443): Max retries exceeded with url: /api/publish?type=war (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f35c565d4e0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib64/az/lib/python3.6/site-packages/knack/cli.py", line 231, in invoke
    cmd_result = self.invocation.execute(args)
  File "/usr/lib64/az/lib/python3.6/site-packages/azure/cli/core/commands/__init__.py", line 663, in execute
    raise ex
  File "/usr/lib64/az/lib/python3.6/site-packages/azure/cli/core/commands/__init__.py", line 726, in _run_jobs_serially
    results.append(self._run_job(expanded_arg, cmd_copy))
  File "/usr/lib64/az/lib/python3.6/site-packages/azure/cli/core/commands/__init__.py", line 697, in _run_job
    result = cmd_copy(params)
  File "/usr/lib64/az/lib/python3.6/site-packages/azure/cli/core/commands/__init__.py", line 333, in __call__
    return self.handler(*args, **kwargs)
  File "/usr/lib64/az/lib/python3.6/site-packages/azure/cli/core/commands/command_operation.py", line 121, in handler
    return op(**command_args)
  File "/usr/lib64/az/lib/python3.6/site-packages/azure/cli/command_modules/appservice/custom.py", line 4605, in perform_onedeploy
    return _perform_onedeploy_internal(params)
  File "/usr/lib64/az/lib/python3.6/site-packages/azure/cli/command_modules/appservice/custom.py", line 4771, in _perform_onedeploy_internal
    response = _make_onedeploy_request(params)
  File "/usr/lib64/az/lib/python3.6/site-packages/azure/cli/command_modules/appservice/custom.py", line 4731, in _make_onedeploy_request
    response = requests.post(deploy_url, data=body, headers=headers, verify=not should_disable_connection_verify())
  File "/usr/lib64/az/lib/python3.6/site-packages/requests/api.py", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib64/az/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib64/az/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib64/az/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib64/az/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='vtsjboj01.scm.ase-middleware.appserviceenvironment.net', port=443): Max retries exceeded with url: /api/publish?type=war (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f35c565d4e0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

To Reproduce:
Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.

Put any pre-requisite steps here...
az webapp deploy --resource-group {} --name {} --src-url {} --type {}

Expected Behavior
Environment Summary
Linux-4.18.0-193.75.1.el8_2.x86_64-x86_64-with-redhat-8.2-Ootpa, Red Hat Enterprise Linux 8.2 (Ootpa)
Python 3.6.8
Installer: RPM

azure-cli 2.37.0 *

Additional Context

Hello, anyone have an idea what could be wrong? command is:
az webapp deploy --resource-group rg-middleware --name vtsjboj01 --src-url https://savtspocmiddleware.file.core.windows.net/jboss/SampleWebApp.war --type war

route to CXP team

@bgz78 The error suggests a failed DNS resolution for the hostname. Make sure you are running this command from the right network and/or with right DNS server that can resolve the hostname.


[efr32] Enhancements to EFR32MG21 radio

When working on a recent Frame Pending issue observed with BRD4180A, it was observed that the radio implementation for efr32mg21 misses several enhancements, which were added to the efr32mg1x parts. We need to make sure that the supported features in radio.c align across all parts.
The following GitHub PRs captures these:
https://github.com/openthread/openthread/pull/4482
https://github.com/openthread/openthread/pull/4484
https://github.com/openthread/openthread/pull/4506

Hi, please also check #4586, I don't know if you've already considered it.

Marked this as a work-in-progress as there are some things we need to address including the point that @dismirlian made with regards to needing to include PR #4586.


can i use wand to convert pdf to images?

now i am use imagemagick command line to convert pdf. i want to know if i can to this in wand.

How would one combine multiple images into a single pdf?
I'm currently doing it via a subprocess call:
convert [img1.jpg, img2.jpg img3...] combined.pdf

@cballenar

How would one combine multiple images into a single pdf?

from wand.image import Image

pages = ['img1.jpg', 'img2.jpg', 'img3.jpg', 'img4.jpg']

with Image() as wand:
   for filepath in pages:
      with Image(filename=filepath) as page:
          wand.sequence.append(page)
   wand.save(filename='document.pdf')

Awesome! Thanks!


Any update on a stable release and 0.14 support?

I'm having issues getting the latest react-grid-layout to work properly.  I've tested React 0.13.3 and 0.14, both have the same issue (although 0.14 has additional warnings).  I'm using:

<EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS>
Resizing GridItems is buggy, the initial drag causes the width to jump to around 2x the GridItem width.  I've tried a few different versions back of both react-resizable and react-draggable but can't find a working combo.

+1
I am having same problem.

Same here.

+1
Same Here

It's coming along. Been very busy with other projects. Both Draggable and
Resizable are about 80 percent through a rewrite. I'll prioritize this
soon, I want to get RGL in a production app by the end of the month.
Sorry for the delay - this has had to take the back burner to some other
projects.
On Oct 21, 2015 8:36 PM, "pvw87"<EMAIL_ADDRESS>wrote:

+1
Same Here
—
Reply to this email directly or view it on GitHub
https://github.com/STRML/react-grid-layout/issues/113#issuecomment-150063642
.

No worries, completely understand.  Anything in particular that needs assistance?

Aside from the rewrite, can you point us in the right direction to fix this bug?
If it helps, setting useCSSTransforms={true} gets rid of any dragging related problem I had. The remaining one is with resizing.
When resizing, even dragging a little causes a big jump in size.
If instead of making the grid item bigger, I resize by dragging to the top left corner of the client, so that clientX and clientY are both zero; no jump. I can then continue dragging until clientX and  clientY are 20 (so about 20 pixels from the top left) and the grid item resizes to add about 20 pixels to the height and width.
Is there a translate or an offeset that's not triggering to take into consideration that resize started from the bottom left of the grid item?
I compared my local version's behaviour to your live demo and in the resizeHandler var position = ref.position behaves differently between the two.
In your live demo top and left always refer to the distance in pixels from where I started dragging. In the local version that I'm running (after upgrading to react 0.15) top and left refer to distance from the client's top/left corner.
I can't see if this is a draggable, resizable, or rgl bug in order to try to fix it.

ok, I dug deeper. There are a couple of things going on but one of them is that the state is not being set for offsetX and offsetY in dragable.
    // Initiate dragging. Set the current x and y as offsets
    // so we know how much we've moved during the drag. This allows us
    // to drag elements around even if they have been moved, without issue.
    this.setState({
      dragging: true,
      offsetX: dragPoint.clientX - this.state.clientX,
      offsetY: dragPoint.clientY - this.state.clientY,
      scrollX: document.body.scrollLeft,
      scrollY: document.body.scrollTop
    });

I added a global variable and referenced that instead of state and it kind of works but is still a jumpy:
    offsetX = dragPoint.clientX - this.state.clientX;
    offsetY = dragPoint.clientY - this.state.clientY;

Is there anything we can do to lend a hand with the last 20% of the rewrite?

+1 - react 0.14 incompatible with dependencies from react-grid-layout: 0.8.5

@STRML you may want to consider finding some additional devs to add as collaborators to help you with the workload for this project, since it's quite popular.

What can I do to help?
There are some forks which provide 0.14 support.
Are there any plans to merge them?

@STRML Please tell us at least approximately when to expect a new release?

@NeXTs I'm working on it in the next branch. This is a complicated transition and I'm perpetually short on time. The magic of open source is, anyone can help out.

@STRML Regarding the help. What was done in the next branch at this moment and what should be done to finish the transition?

+1
Same here

+1

0.10.2 is out and stable. Please open new issues if you have any.


ERR_SSL_PROTOCOL_ERROR

Your environment.

Version: latest
Browser: chrome
Other Information - None

What did you do?

git clone  <GIT_LINK>
added env variables
What did you expect?
When I access the domain it says ERR_SSL_PROTOCOL_ERROR
What happened?

Change the documentation, please.
The Master branch has lots of issues.
Ask the developers to get the release version if you are using it for production.

Thank for your advise :)
v0.3.0 worked.


knife should use Chef::REST or Chef::ServerAPI correctly

It would be beneficial to certain customers if knife (including number of sub-commands e.g., ssl fetch, etc.), would respect HTTP/HTTPS proxy when such is present and set.
This is a feature request driven by questions from our customers who have heavily policed network environments (i.e., enterprises, banks, etc.).

we see this problem as well, the rest seems to respect proxy settings

Some of this may have been fixed in the last proxy overhaul, but some knife commands are probably not using Chef::REST / Chef::ServerAPI correctly.

Thank you @lamont-granquist :+1:


Broken links in vGPU.md

https://github.com/Open-ForBC/OpenForBC/blob/main/docs/nvidia/vGPU.md#configuring-mig-backed-vgpus
https://github.com/Open-ForBC/OpenForBC/blob/main/docs/nvidia/mig.md
https://github.com/Open-ForBC/OpenForBC/blob/main/docs/nvidia/vGPU.md#time-sliced-vgpu-scheduling-bahevior
https://github.com/Open-ForBC/OpenForBC/blob/main/docs/nvidia/mig.md#mig-gpu-instance

ok, let's leave it open until vGPU doc is fixed, so that I remember to check it

This should be fixed now.

link is not existing because Daniele still needs to understand how it works

fixed to nVIdia link: https://docs.nvidia.com/grid/13.0/grid-vgpu-user-guide/index.html#changing-vgpu-scheduling-policy


Github icon updated

Closes
Closes #issue_number

Description

Screenshots

Note to reviewers

Checklist:

[x] I have linked the PR to the correct issue.
[x] I have read the Contribution Guidelines
[ ] I have built and tested the changes, and they do not break or show any errors.

github logo updated here is screenshot


Any suggestion?

I love you

I love you

I don't know why it didn't work for me.
Here's my app.js:
const NodeMediaServer = require('node-media-server');

const config = {
  rtmp: {
    port: 1935,
    chunk_size: 60000,
    gop_cache: true,
    ping: 30,
    ping_timeout: 60,
    trans: {
    ffmpeg: '/usr/bin/ffmpeg',
    tasks: [
    {
      app: 'live',
      ac: 'aac',
      hls: true,
      hlsFlags: '[hls_time=2:hls_list_size=3:hls_flags=delete_segments]',
      dash: true,
      dashFlags: '[f=dash:window_size=3:extra_window_size=5]'
    }
  ]
}
  },
  http: {
    port: 8000,
    mediaroot: './media',
    webroot: './www',
    allow_origin: '*'
  }
};

var nms = new NodeMediaServer(config)
nms.run();

I am using Linux Mint, which is based on Ubuntu. I correctly installed ffmpeg.

Good evening, I wanted to ask the link hls that would be "http:localhost:8000/live/USER_NAME " does not work when viewing the transmission but the rtmp link does allow viewing smoothly I have been looking for a solution but I have not found it, Previously it worked fine, this is my code
`
const config = {
rtmp: {
port: 1935,
chunk_size: 60000,
gop_cache: true,
ping: 30,
ping_timeout: 60
},
http: {
port: 8000,
allow_origin: '*'
},
trans: {
ffmpeg: '../ffmpeg/bin/fmpeg',
tasks: [
{
app: 'live',
hls: true,
hlsFlags: '[hls_time=2:hls_list_size=3:hls_flags=delete_segments]',
hlsKeep: true, // to prevent hls file delete after end the stream
dash: true,
dashFlags: '[f=dash:window_size=3:extra_window_size=5]',
dashKeep: true // to prevent dash file delete after end the stream
}
]
}
};
`

Good evening, I wanted to ask the link hls that would be "http:localhost:8000/live/USER_NAME " does not work when viewing the transmission but the rtmp link does allow viewing smoothly I have been looking for a solution but I have not found it, Previously it worked fine, this is my code const config = {     rtmp: {         port: 1935,         chunk_size: 60000,         gop_cache: true,         ping: 30,         ping_timeout: 60     },     http: {         port: 8000,         allow_origin: '*'     },     trans: {         ffmpeg: '../ffmpeg/bin/fmpeg',         tasks: [             {                 app: 'live',                 hls: true,                 hlsFlags: '[hls_time=2:hls_list_size=3:hls_flags=delete_segments]',                 hlsKeep: true, // to prevent hls file delete after end the stream                 dash: true,                 dashFlags: '[f=dash:window_size=3:extra_window_size=5]',                 dashKeep: true // to prevent dash file delete after end the stream             }         ]     } };

Good Evening, I don't know if anyone can help me, the HLS link that would be 'http//localhost:8000/live/USER_NAME' doesn't work anymore, the RTMP link works normally and fluently, but in the project I'm working on I need the HLS link I have looked for an answer to this but I can't find it I hope you can help me thank you very much, this is my code
 const config = {     rtmp: {         port: 1935,         chunk_size: 60000,         gop_cache: true,         ping: 30,         ping_timeout: 60     },     http: {         port: 8000,         allow_origin: '*'     },     trans: {         ffmpeg: '../ffmpeg/bin/fmpeg',         tasks: [             {                 app: 'live',                 hls: true,                 hlsFlags: '[hls_time=2:hls_list_size=3:hls_flags=delete_segments]',                 hlsKeep: true, // to prevent hls file delete after end the stream                 dash: true,                 dashFlags: '[f=dash:window_size=3:extra_window_size=5]',                 dashKeep: true // to prevent dash file delete after end the stream             }         ]     } };


Custom Tab

The custom tab includes entry for "Custom Numeric Field" and "Custom Text Field" but not one for "Custom Date Field".

Will be added

implemented and available in new version


autoloading of files

A basic way of implementing issue #10
If no argument is given we check for the existence of a
levant.nomad jobfile.
If no -var-file is given we check for the existence of a
levant.tf variable file.
This "standardizes" the use of named files and makes pipelines
clean in command usage.

Thanks for all this work @dropje86 I appreciate it. In regards to this one I have a couple of thoughts I would like to discuss:

I would prefer that the default loaded variables file is levant.yaml as I use yaml by default so this is a selfish one.
When auto-loading the template, I think it would be better to search for *.nomad files in the current working directory and then continue on from there rather than use a card coded levant.nomad job name.

Happy to discuss the points...

Hi @jrasell
Sure, we could also try both yaml (yml) and tf in that order. Regarding the nomad files, what do you suggest? Run every .nomad file in the working directory and loop through it?

Yeah; looking for either variable file would be perfect.
I would say for the job file that Levant would only run without an explicit template on the CLI if there is only one job file in the current directory; not sure what you think about that?

So here's a commit which implements that. Please let me know if you agree with putting these into the helper pkg, if not feel free to relocate them or let me know.

@ericwestfall as you requested this feature I would appreciate your feedback on the implementation.

Looks lovely @dropje86!


Problems with Page title

I have a strange problem with the predefined title, which the clipper applet suggests:
If I leave the suggested e.g. "2024-09-06 18:52:11" it leads to an error, I see in the console log, that silverbullet/JS is not able to write to the file.
This does not happen, if I change the title to e.g. "Test" or even "2024-09-06 1852"
As I'm running it on a windows machine, I suggest, it has some problems with the ":" in the name.
So my wish is to have some other options for the suggested values...
Thanks a lot!

What browser are you using?

SilverBullet now uses dashes as the separator for time instead of colons. I've updated SilverBullet Clipper (v1.2.1) to do the same. Hopefully this will fix your issue.


Balance accuracy problem

First of all, thank you for your project.
I am using a newer version (bitcoin-core 0.18.0 for windows, haha), but it's chainstate seems compatible. I got own balances file through your tool, but some addresses have a little different balance, for example, after
cut -d';' -f3,4 cs.out | \
    sort | \
    awk -F ';' '{ if ($1 != cur) { if (cur != "") { printf "%s;%.0f\n", cur, sum }; sum = 0; cur = $1 }; sum += $2 } END { printf "%s;%.0f\n", cur, sum }' | \
    sort -t ';' -k 2 -g -r > ${BALANCES_FILE}

and head balances-* | grep "3Nxwenay9Z8Lc9JBiywExpnEFiLp6Afp8v\|1FeexV6bAHb8ybZjqQMjJrcCrHGW9sb6uF\|3D2oetdNuZUqQHPJmcMDDHYoqkyNVsFk9r" I received this:
3Nxwenay9Z8Lc9JBiywExpnEFiLp6Afp8v;10784828923592
1FeexV6bAHb8ybZjqQMjJrcCrHGW9sb6uF;7995720060915
3D2oetdNuZUqQHPJmcMDDHYoqkyNVsFk9r;7689307218486

But it's balances are 107848289_03408_, 79957200_36267_ and 7689307_172632_.
My BitcoinCore was correctly synced, state directory size:<PHONE_NUMBER>, blocks:<PHONE_NUMBER>15, uname -a: Linux 388e60c19d8b 4.9.13-moby #1 SMP Tue Mar 21 21:21:05 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
Do you have any ideas? Can you reproduce the issue?
Now I am syncing 0.15.0 version to try it's chainstate, but it takes time a little.

Hello,
how do you compare balances ? What is your reference ?
If you are using any online explorer, be aware they are not using the same datasource: Most of them are using the sum of received & spent coin, while chainstate is using the spendable transactions only (which makes more sense IMO).
Some transactions are unspendable in the blockchain, due to bugs, tests, etc. and Bitcoin Core considers them unspendable; Therefore they are not in the chainstate DB (and not reported in the computed balance) while shown in the explorers.
Also, as it takes some time for balances to compute, a new block might have been generated & balances might have already change, especially for those accounts that are owned by exchanges and have a lot of activity in it: Their balances change at every block received.
I don't close the issue, and I may take a look at it if a find some free time. Thanks

Thanks for the disclosure, I didn't know such nuances.
You are right, I used online explorers as reference. I think, provided addresses doesn't have a lot of activity (1-2 hundreds of transactions for 2/3 addresses, one per few days), and two of them have last transactions in July:
https://www.blockchain.com/ru/btc/address/3Nxwenay9Z8Lc9JBiywExpnEFiLp6Afp8v
https://www.blockchain.com/ru/btc/address/1FeexV6bAHb8ybZjqQMjJrcCrHGW9sb6uF
https://www.blockchain.com/ru/btc/address/3D2oetdNuZUqQHPJmcMDDHYoqkyNVsFk9r

hello @hioma - I detected & fixed a problem in number conversions that should fix some accuracy problems especially in big numbers like the one you are describing in the issue. The fix was commited and pushed: https://github.com/mycroft/chainstate/commit/77b1158fb13e732aebab4c276a14bb466120902c.
I'm now closing the issue, feel free someday to have a look if you still want to. Thanks!


change route guard to meta tags

hey @danielyannarek could you please also update the README.md for new implementation instructions...


Add toasts

Addresses issue #17 for file uploads, deletions, and renames.

Looks good to me, thank you!


convert vendor folder to godep and update all packages

remove vendor folder from govendor
use godep
bump all packages to the latest version
replace github.com/Sirupsen/logrus with github.com/sirupsen/logrus

Can one of the admins verify this patch?

Closing in favour of #43


Pagination: Next & Previous buttons on content pages

a new PR of https://github.com/carbon-design-system/carbon-website/pull/371 with v10 compatible code :)
this is a WIP PR, updates incoming!
closes https://github.com/carbon-design-system/carbon-website/issues/305

is this ready for review or still WIP @lovemecomputer ?

This is looking great!! couple things

[ ] Need to add to the homepage
[ ] Need it to loop (so need a link on homepage to link back to the last page and from last page to homepage

I have some suggestions to update the grid code I'll add

@alisonjoseph thanks, i pushed a commit fixing these!

@alisonjoseph on it! @asudoh thanks!
looking at these today

cool, review issues have been addressed and this component is re-ready for review!


issue with babel compiled source and jsdom 7.0.1

I'm trying to upgrade jsdom to 7.0.1 and I bisected a big issue to https://github.com/tmpvar/jsdom/commit/2c8933905e9b81436843fe8d429918876a277e54 although I'm not exactly sure why things are going wrong given that this change was so large.
Here is a repro for open source:
git clone https://github.com/facebook/relay.git
cd scripts/babel-relay-plugin
npm install
# cd into `node_modules/jest-cli`, edit the package.json to jsdom 7.0.1 and run npm update
npm test

test output: https://gist.github.com/cpojer/b15a99a7939cfe79c2f4
with jsdom 6.5 we didn't have any of these issues. At FB I have about 70 failing tests because of this, unfortunately.

https://github.com/tmpvar/jsdom/commit/2c8933905e9b81436843fe8d429918876a277e54#diff-d2945e8f0e1420500da68155ca6a49f0R179 is at fault. We mustn't leak our own globals into the sandbox, that can't end well.
We'll need to rewrite the XHR patch to always access window.{ArrayBuffer|Uint8Array|...}, instead of the ones in the current global. We should also add a readme note that users do have to provide these special instances to the APIs instead of the node-native ones. (We could add a conversion convenience function for that though.)

Just as additional info: The real problem is, that RegExps can be created by either constructing them, or just by using their literal. When overwriting the constructor, the literal will create a different object than the constructor which causes a lot of havoc.
Attached a PR to fix this for now.

This fails the build; fix that and it LGTM.

We can't remove all *Array and ArrayBuffer shimming, since createContext doesn't insert those.

This isn't actually true. I think the reason they were added is that sometimes jsdom code creates outside-sandbox arrays/arraybuffers/etc., and then code inside the sandbox does instanceof ArrayBuffer and it fails. This was causing some web-platform-tests failures.
The correct longer-term fix, I believe, is to try to always create those instances inside the sandbox.

The correct longer-term fix, I believe, is to try to always create those instances inside the sandbox.

Right, I tried that first but did a thing wrong:
vm = require("vm");
ctx = {};
vm.createContext(ctx);
ctx.ArrayBuffer // undefined
vm.runInContext("this", ctx).ArrayBuffer // ArrayBuffer

I only checked ctx.ArrayBuffer and was confused when that was undefined. We'll probably have to major the strict distinction change. :confused:

Merged as 3f1a82baacb6b56920a34b8380bc40a4230509a1 and 2b4a5fc7b4c61d353c7853e5ff95142a4a6ad81c. 7.0.2 coming out shortly!

thank you!


Application window does not display correctly on weston

Hello.
I'm using RPi4 and flutter-elinux 3.10.6.
When I launch an application with -f option on weston, the window does not display correctly as shown below.

(This is the default application created by flutter-elinux create.)
Is there any solution to this problem?
I think #336 is related.
flutter-elinux 3.10.6
weston 9.0.0
Linux raspberrypi 6.1.21-v8+ #1642 SMP PREEMPT Mon Apr  3 17:24:16 BST 2023 aarch64 GNU/Linux

Can you please inform me of some more information?

Reproduce rate
Can it be reproduced even using Sway?
Did old flutter-elinux versions work fine?

Thank you for your reply.

Reproduce rate
Reproduce rate is 47/50

Can it be reproduced even using Sway?
Yes. Reproduce rate is 47/50

Did old flutter-elinux versions work fine?
3.7.10 : It works fine.
3.7.11 : It does not work fine.

Can you please get trace level logs?

Hello.
I could not get FLUTTER_LOG_LEVELS=TRACE log because it only occurs in the release version,
but I could get WAYLAND_DEBUG=1 log instead.(ok_log.txt and ng_log.txt)
flutter-elinux version is 3.10.6 and I got this log on RPi4.
ok_log.txt
ng_log.txt

I built libflutter_elinux_wayland.so with -DENABLE_ELINUX_EMBEDDER_LOG=ON -DFLUTTER_RELEASE=ON and I got trace level log.
The log is the same whether the phenomenon occurs or not.
trace_log.txt

Thanks. #350 should fix this issue. Can you please check it? I'm little concerning about degradation.

Thank you for the patch.
I tried it and it works fine, but "xdg_surface has never been configured" occurred.(Same as #330)
I tried the following patch and it worked.
diff --git a/src/flutter/shell/platform/linux_embedded/window/elinux_window_wayland.cc b/src/flutter/shell/platform/linux_embedded/window/elinux_window_wayland.cc
index 8a84022..64b72e4 100644
--- a/src/flutter/shell/platform/linux_embedded/window/elinux_window_wayland.cc
+++ b/src/flutter/shell/platform/linux_embedded/window/elinux_window_wayland.cc
@@ -86,6 +86,7 @@ const xdg_surface_listener ELinuxWindowWayland::kXdgSurfaceListener = {
           if (self->wait_for_configure_) {
             self->wait_for_configure_ = false;
           }
+          self->request_redraw_ = true;
         },
 };

I see. Can you please create a change and send it to the PR?


Scrip Launcher issue

I'm having trouble using the script launcher.
The biggest problem is that I can't find a FAQ, help or description about it.
I have a working bash script.
I created a symlink in the script folder from Maraschino.
I tested the symlink: /bin/sh /path/to/marachino/scripts/my_bash.sh and this works.
When I click the link nothing happens. The log reports only an INFO SCRIPT_LAUNCHER::/path/to/marachino/scripts/my_bash.sh
I have no command parameters.

closing this, because there will never be a solution this way.


Errors thrown reducing the RECEIVE_TYPE action using useFetcher are swallowed.

React version (e.g., 16.8.5) 16/17
Concurrent mode no
Rest Hooks version (e.g., 4.5.9) 5.0.0-k.*
Describe the bug
If an error occurs while processing the RECEIVE_TYPE action type the promise returned by useFetcher is not rejected. An example of how this could occur would be an updater function that throws an error.
Interestingly it looks like there's already a question in the code on whether this bug occurs. Errors are caught, but they're returned, not thrown, by the reducer.
To Reproduce

Load up https://codesandbox.io/s/modest-cache-m2frd?file=/src/App.js
Click the "add" button and note that a new entry is added to the list.
Uncomment the error on line 8 (// throw new Error("oh no");) and reload.
Click the "add" button and note that the server request succeeds, but nothing is appended to the list, and no error is thrown.

Expected behavior
Some sort of error should be observable, ideally by having the useFetcher promise reject.
Additional context
We discovered this bug as a cross browser issue (object.fromEntities does not exist in Safari 11 and we were baffled by items not being added to our lists along with there being no errors), but were able to create a more generic reproduction that could occur with any code base.

Thanks for the report and detailed description!

Thanks for the report and detailed description!

The design here seems related to #458. So we can probably resolve these together.
The handling of errors on reducer that you linked to places them inside the state.  (You can observe this by inspecting the state.) For declarative binds, this means the components would find the error (https://github.com/coinbase/rest-hooks/blob/master/packages/core/src/react-integration/hooks/useError.ts).
So essentially there is currently a distinction between fully processing on the promise returned from these promises. In #458 this means we didn't run all the denormalization stuff, and in this case we didn't handle errors from the reducer.
It looks like probably the best design is for the promises instead of focusing on resolving the fetch, they resolve the entire update into the store.
In this case, we would want to await the promise returned from dispatch() (which means react updated), then look for errors (to handle this issue), and also resolve if none are found to handle #458

The design here seems related to #458. So we can probably resolve these together.
The handling of errors on reducer that you linked to places them inside the state.  (You can observe this by inspecting the state.) For declarative binds, this means the components would find the error (https://github.com/coinbase/rest-hooks/blob/master/packages/core/src/react-integration/hooks/useError.ts).
So essentially there is currently a distinction between fully processing on the promise returned from these promises. In #458 this means we didn't run all the denormalization stuff, and in this case we didn't handle errors from the reducer.
It looks like probably the best design is for the promises instead of focusing on resolving the fetch, they resolve the entire update into the store.
In this case, we would want to await the promise returned from dispatch() (which means react updated), then look for errors (to handle this issue), and also resolve if none are found to handle #458

Sounds good to me. We've also seen the behaviour described in #458 (returning a POJO) and assumed it was by design, so I'll be following along there too.

Sounds good to me. We've also seen the behaviour described in #458 (returning a POJO) and assumed it was by design, so I'll be following along there too.

Tracking solution in https://github.com/coinbase/rest-hooks/issues/760


Create LinuxMain.swift

Heroku will not compile without it.

I think the Heroku problem is that I do not have a Swift 5.3 Dyno.

I think the Heroku problem is that I do not have a Swift 5.3 Dyno.