Fix config issues

Fix issues when submit on the snippet config page

Thanks for the pull request.
For the record, can you please clarify what "issues" you are fixing ?

When you submit on the snippets' config page. It will get error below:
'Argument 2 passed to gpc_get_string_array() must be of the type array, string given, called in root\to\base\plugins\Snippets\pages\config.php on line 19 and defined' in 'root\to\base\core\gpc_api.php' line 246

I would use the following comment message.  The first line will be the title, and the rest is the commit message body.
"Fix php error in config page
Don't pass a string as default value for an array to fix the following error:
'Argument 2 passed to gpc_get_string_array() must be of the type array, string given, called in root\to\base\plugins\Snippets\pages\config.php on line 19 and defined' in 'root\to\base\core\gpc_api.php' line 246"
Once you apply these two fixes, please force push to the pull request, and we will merge.
Thanks.

@dregad , @vboctor I have fix the changes, please confirm

Thanks @lukelee1124 -- merged.


ETA of Near-realtime as GA

Does Near-Realtime Alert will be GA within this June?
I believe Classic Alert will be retire soon.
Does customer have to use the feature in preview?
Thanks,
-Keiro
Classic alerts in Azure Monitor to retire in June 2019
https://azure.microsoft.com/en-us/updates/classic-alerting-monitoring-retirement/

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: ffeb598c-ebe8-fc02-df12-309e87115200
Version Independent ID: db0d409b-574e-5243-8ef8-d7aad27aae87
Content: Send alerts from Azure Application Insights
Content Source: articles/azure-monitor/learn/tutorial-alert.md
Service: application-insights
GitHub Login: @mrbullwinkle
Microsoft Alias: mbullwin

Thank you for reaching out. We are investigating this and get back to you shortly.

@KeiroKamioka0000 Good news! We reached out to the Product team and it seems that the Application Insight Alerts will go GA this week.
We will now close the issue . Should you have any query with Specific Document please open a new ticket providing the reference to the document and tag me on the same and we will help you further on the same.


Merge pull request #1 from conda-forge/master

sync with upstream repo

Checklist

[ ] Used a fork of the feedstock to propose changes
[ ] Bumped the build number (if the version is unchanged)
[ ] Reset the build number to 0 (if the version changed)
[ ] Re-rendered with the latest conda-smithy (Use the phrase @conda-forge-admin, please rerender in a comment in this PR for automated rerendering)
[ ] Ensured the license file is being packaged.

Hi! This is the friendly automated conda-forge-linting service.
I just wanted to let you know that I linted all conda-recipes in your PR (recipe) and found it was in an excellent condition.


Authentication stopped working

I'm using Azure Mobile Apps with the .NET SDK as a backend for my iOS app. The authentication done via Facebook. Yesterday out of nowhere (no code changes either on backend or app) the authentication with Facebook failed. The login inside the iOS client app is done via
self.client?.login(withProvider:"facebook", token: ["access_token" : FBSDKAccessToken.current().tokenString] ){ (user, error) in }
By calling this function I'm getting the following result, on the client.
Error Domain=com.Microsoft.MicrosoftAzureMobile.ErrorDomain Code=-1302 "You do not have permission to view this directory or page."
By inspecting the streaming logs of Azure Mobile Apps, I found out that the backend gets an Unauthorized 401.71 return back from calling the Facebook Graph API.
Streaming Log:
Microsoft.Azure.AppService.Authentication Verbose: 0 : Received request: POST https://XXXXXXXXXX.azurewebsites.net/.auth/login/facebook
'w3wp.exe' (CLR v4.0.30319: DefaultDomain): Loaded 'D:\Windows\Microsoft.Net\assembly\GAC_MSIL\SMDiagnostics\v4.0_<IP_ADDRESS>__b77a5c561934e089\SMDiagnostics.dll'. Skipped loading symbols.
'w3wp.exe' (CLR v4.0.30319: DefaultDomain): Loaded 'D:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.ServiceModel.Internals\v4.0_<IP_ADDRESS>__31bf3856ad364e35\System.ServiceModel.Internals.dll'. Skipped loading symbols.
Microsoft.Azure.AppService.Authentication Verbose: 0 : Calling into external HTTP endpoint GET https://graph.facebook.com/oauth/access_token.
Microsoft.Azure.AppService.Authentication Information: 0 : Sending response: 401.71 Unauthorized

I already tried cloning the Mobile App in Azure and creating a new Facebook App, without success.
I have opened a new Thread on StackOverflow in order to get some kind of information on how to fix this. It seems that something in Azure Mobile Apps got changed which causes the broken authentication. I can just report from an [iOS - Facebook] perspective, but other users are reporting the same behavior (see links at the end of this post). I hope to get some kind of info on this ASAP - users on production are unable to login at the moment.
StackOverflow Thread
Post in MSDN Forums

This issue should already been fixed by App Service a few days ago. For more information, please refer to this MSDN forum thread. Close it.


Can. not download YT video

I tried recently, not work for yt download. Can you help to look at.

Hi @knight2010,
Firstly, I appreciate your engagement with the project and your commitment to providing feedback. I noticed that you recently raised an issue on GitHub regarding difficulties with YouTube downloads.
I apologize for any inconvenience you may have experienced, and I would be more than happy to help resolve this matter. However, in order to assist you effectively, I kindly request that you provide more detailed information about the issue you encountered. Please consider including the following details:

The steps you followed to reproduce the problem.
Any error messages or warnings you received during the process.
Screenshots, if possible, to help visualize the issue.
The version of the application or tool you are using.
Any additional context or specific scenarios where you encountered the problem.

By providing this information, you will greatly assist me in identifying and addressing the root cause of the issue. Rest assured, I am committed to ensuring that the app functions as intended and providing a seamless experience for all users.
If you could submit the requested details within the next 15 days, it would greatly aid in expediting the resolution process. However, if the issue has been resolved on your end or if you encounter any challenges in providing the information, please feel free to let me know.
Thank you for your collaboration and understanding. I look forward to working together to ensure the tool meets your expectations.


Waterways T3 pricecheck wrong results

🐞 bug report
Describe the bug

Price checking the map in the screenshot gives wrong results. When I directly mark the name it works. Should the Overlay automatically recognize which map is getting checked?
To Reproduce

Use Ctrl-D on the Map in the screenshot without selecting anything else.
Expected behavior

Other maps give only results for that map and the correct tier, so I assume that this should also be done with the Waterways map.
Screenshots

🌍  Your Environment

OS:  Windows 10 x64 1909
Version:  0.6.9 installed
PoE:  Steam 3.10.0/e English

Ctrl-C results:
Rarity: Magic
Ceremonial Waterways Map
Map Tier: 3
Atlas Region: Tirn's End
Item Quantity: +10% (augmented)
Item Rarity: +6% (augmented)
Monster Pack Size: +4% (augmented)
Item Level: 74
Area contains many Totems
Travel to this Map by using it in a personal Map Device. Maps can only be used once.

Hi, thanks for creating an issue. I assume you have disabled the Item Type and therefore the type is not selected at the dialog. This results in a query just searching for items with base type map. I think this is wrong and i'll add flasks and maps as items where the item type is mandatory for it's price.

You are right. I now enabled item type. I was puzzled because normal maps it is not possible to select the map name.

0.6.10 (2020-03-22)

update always use the item type of maps and flasks as query param (#433)


Resource priority amidst contention: async image pull or on-demand fetch

If during async background image pull, another pod starts or has an on-demand image fetch call, is the resource priority (for IO, CPU) higher for the async pull process or the on-demand fetch call?

I don't think we have QoS or priority control at present. All we have done is to throttle bandwidth of background downloading.

I don't think we have QoS or priority control at present. All we have done is to throttle the bandwidth of background downloading. As throttling can be taken as a basic form of (lowering) priority, what is your opinion in the implementation perspective view?


Use the overwrite flag instead of deleting the directory by default in workflows

Description
In all the workflow functions we're still using rmtree to delete the output directory instead of actually using the overwrite flag. This code makes sure we actually use the overwrite flag.
Todos
Notable points that this PR has either accomplished or will accomplish.

[x] update all three workflows

Questions

[ ] the shared default is False, which will change the behavior from what you've been using. if we don't want that, we can make the defaults in the small_scale and large_scale workflows to have it be True.

Status

[x] Ready to go

Developers certificate of origin

[x] I certify that this contribution is covered by the MIT license as defined in our LICENSE and adheres to the Developer Certificate of Origin.

Codecov Report

Merging #693 (a8a7667) into main (fb6251a) will increase coverage by 28.71%.
The diff coverage is n/a.

Additional details and impacted files

@JenkeScheen @hmacdope @chrisiacovella could you sign off on this?

Oops. Yes, of course!

@apayne97 tests are failing, can you address and then I will re-review?

@hmacdope ok I think i'm finally ready for a re-review

@apayne97 just ping here when tested 😸


ODocument.fromJSON strange behaviour

Guys,
I found quite strange behaviours of fromJSON() method. Might be that are not bugs and that are working as expected, but at leasts more documentantation (Java Docs as min) will be really appreciated.

fromJSON might return other object than "this". (ODocument doc2 = doc.fromJSON(json); doc2!=doc).
if needReload specified it doesn't preserve "loaded" version from DB and finally it leads to versions collisions. I guess it works not as expected for needReload=true.
fromJSON(InputStream inputStream) returns this in any case, but "this" might not be equal to document returned by internal fromJSON(String) (see p.1)

Please let me know what is bug and what is not a bug: I might try to fix that by myself.

No, it always return the same document
What do you mean?
always current document is returned

The issue has been closed because no response has been received after a while. In case the issue is still valid, please reopen it or write a comment that explains why it's still valid and a way to reproduce it. Thank you.

@lvca let me disagree with you on points 1 and 3. On first level in ODocument and ORecord yes - you are right that "this" can be only returned. But if you take a look into ORecordSerializerJSON.fromString - you will see that there are several places when iRecord can be recreated for json currently used.

needReload - that's a parameter of ORecordSerializerJSON.fromString and sometimes it's being used. And if it set to true - you will see mentioned effect.


[Feature Request] README

Please provide a README explaining the purpose of this service, how it works and how to test it.

Also interested in some basic (ELI5) build and install instructions to generate the .apk for "dummies" :wink:


Improved expand/collapse performance

When expanding/collapsing a group of list items, notifyDataSetChanged is called multiple times. It would perform better if notifyDataSetChanged was just called once after all of the items were expanded/collapsed.

Resolved in 2.1.0.


fix: Add net.peer.name to ethon

The ethon instrumentation did not include the net.peer.name attribute like other HTTP instrumentations and was not ported from ddtrace-rb: https://github.com/DataDog/dd-trace-rb/blob/master/lib/datadog/tracing/contrib/ethon/easy_patch.rb#L159
This attribute is important to GitHub because we base the peer.service extracting the subdomain and host information from net.peer.name.
In order to avoid parsing the URL multiple times, I inlined the common gem cleanse_url function and plan to open a separate PR adding a feature to support returing URI objects instead of Strings.

cc: @lauraway this is fix we need. Releases are blocked by failing builds but I have a fix for that pending review https://github.com/open-telemetry/opentelemetry-ruby-contrib/pull/1006


[FR]: Option for (1) default filename for new row and (2) hide filename management from user

Contact Details
No response
Present your request
When entering a new row, we are prompted for a filename.
At least in my use-case, I think the filename itself is unimportant, as long as it is unique? Just like a primary key number or something. It's quite a bit of friction to come up with a unique filename every time, when it is so unimportant for the content.
Would it be possible to have an option such that DbFolder generates an automatic unique filename at least as the default value? Something like YYYYMMDDHHmmss-dbname.data.md etc. should be globally unique, but of course this can also be a template the user provides.
Taking it one step further, maybe given the above, the user can choose to not even see/care the filename during record creation?
For which platform do you request this request??
Desktop

Could be a nice QoL adition , sure!


Remove redundant temp folder and unused imports

Description of the changes being introduced by the pull request:
In many of the tests classes, we are creating two
temporary directories: one with the name "temp_<random_string>"
and inside it, we generate a new directory for each test with the name
Test<Class_Name>_<random_string>.
I think we don't need the "temp_<random_string>" directory.
The only benefit I can think of is that it could contain multiple
temp folders from failing tests from a particular test run.
But even then, this is not a big bonus because the name
temp_<random_string> is not really descriptive from which test
run this directory was created.
PS: Thanks to Jussi Kukkonen who noticed we are using two temp
folders per class in our tests.
Signed-off-by: Martin Vrachev<EMAIL_ADDRESS>Please verify and check that the pull request fulfills the following
requirements:

[ ] The code follows the Code Style Guidelines
[ ] Tests have been added for the bug fix or new feature
[ ] Docs have been added for the bug fix or new feature

Addressed all of @joshuagl comments and:

Replaced import tuf.unittest_toolbox as unittest_toolbox with from tuf import unittest_toolbox in all of our test files.
Removed the comments I have added such as We are inheriting from custom class. from all of the tests.
Replaced all unittest_toolbox.Modified_TestCase.function(self) calls with super().function() in all of our tests.

It seems like because we are supporting Python 2 we have a problem with
super().function() which I used because in Python2  it is super(self).function()

Ah, yes. The syntax changed for super() between Python 2 and Python 3. Let's leave it as is for now and we can fix this later when we've purged Python 2 from our codebase.

Would be good to get this cleanup landed. @MVrachev could you revert back to unittest_toolbox.Modified_TestCase.function(self) when you have some cycles? Thank you.

Would be good to get this cleanup landed. @MVrachev could you revert back to unittest_toolbox.Modified_TestCase.function(self) when you have some cycles? Thank you.

I'm a bit worried about

using os.getcwd() for the location where temp dirs are created
the fact that sometimes temp dirs are not cleaned up (is this only when test run is cancelled? not sure)
after this PR probably creating more temp dirs in current dir (one per instance instead of one per class I guess?)

So I wonder if this should only be done if we also start creating the temp dirs somewhere more reasonable?
Does anyone know when the temp dirs are not being removed?

I'm a bit worried about

using os.getcwd() for the location where temp dirs are created
the fact that sometimes temp dirs are not cleaned up (is this only when test run is cancelled? not sure)
after this PR probably creating more temp dirs in current dir (one per instance instead of one per class I guess?)

So I wonder if this should only be done if we also start creating the temp dirs somewhere more reasonable?
Does anyone know when the temp dirs are not being removed?

Does anyone know when the temp dirs are not being removed?

Besides the expected case when tearDown is not called due to some error, I've noticed temp dirs not being removed on Windows with "being used by another process" error. Unfortunately, I can say which is the process and I haven't observed this consistently in other environments.

Does anyone know when the temp dirs are not being removed?

Besides the expected case when tearDown is not called due to some error, I've noticed temp dirs not being removed on Windows with "being used by another process" error. Unfortunately, I can say which is the process and I haven't observed this consistently in other environments.

So I wonder if this should only be done if we also start creating the temp dirs somewhere more reasonable?

I would vote for that if possible. Polluting the tests source code dir on a failure is not particularly harmful but ... unpleasant

So I wonder if this should only be done if we also start creating the temp dirs somewhere more reasonable?

I would vote for that if possible. Polluting the tests source code dir on a failure is not particularly harmful but ... unpleasant

I'm a bit worried about

using os.getcwd() for the location where temp dirs are created

the fact that sometimes temp dirs are not cleaned up (is this only when test run is cancelled? not sure)

after this PR probably creating more temp dirs in current dir (one per instance instead of one per class I guess?)

Yes, the side effect is that it will create one temp dir per class instance.

So I wonder if this should only be done if we also start creating the temp dirs somewhere more reasonable?

As I understand it, the idea is to have those temp files available for you on test failure for analysis.
Probably it will be better to choose a deterministic path where they can be found, but where should that be?
Maybe ~/tmp?

Does anyone know when the temp dirs are not being removed?

The doc says:
tearDown:
Method called immediately after the test method has been called and the result recorded.
This is called even if the test method raised an exception, so the implementation
in subclasses may need to be particularly careful about checking the internal state.
...
This method will only be called if the setUp() succeeds, regardless of the outcome
of the test method.

Again from the doc for tearDownClass:
If an exception is raised during a setUpClass then the tests in the class are not run and
the tearDownClass is not run.

Also again in the doc
Skipped tests will not have setUp() or tearDown() run around them.
Skipped classes will not have setUpClass() or tearDownClass() run.

I'm a bit worried about

using os.getcwd() for the location where temp dirs are created

the fact that sometimes temp dirs are not cleaned up (is this only when test run is cancelled? not sure)

after this PR probably creating more temp dirs in current dir (one per instance instead of one per class I guess?)

Yes, the side effect is that it will create one temp dir per class instance.

So I wonder if this should only be done if we also start creating the temp dirs somewhere more reasonable?

As I understand it, the idea is to have those temp files available for you on test failure for analysis.
Probably it will be better to choose a deterministic path where they can be found, but where should that be?
Maybe ~/tmp?

Does anyone know when the temp dirs are not being removed?

The doc says:
tearDown:
Method called immediately after the test method has been called and the result recorded.
This is called even if the test method raised an exception, so the implementation
in subclasses may need to be particularly careful about checking the internal state.
...
This method will only be called if the setUp() succeeds, regardless of the outcome
of the test method.

Again from the doc for tearDownClass:
If an exception is raised during a setUpClass then the tests in the class are not run and
the tearDownClass is not run.

Also again in the doc
Skipped tests will not have setUp() or tearDown() run around them.
Skipped classes will not have setUpClass() or tearDownClass() run.

As I understand it, the idea is to have those temp files available for you on test failure for analysis.
Probably it will be better to choose a deterministic path where they can be found, but where should that be?
Maybe ~/tmp?

Python has a function to get an OS appropriate, administrator configurable, temporary directory tempfile.gettempdir(). As well as providing functions to create directories within that host appropriate location: tempfile.mkdtemp(), and tempfile.TemporaryFile().

As I understand it, the idea is to have those temp files available for you on test failure for analysis.
Probably it will be better to choose a deterministic path where they can be found, but where should that be?
Maybe ~/tmp?

Python has a function to get an OS appropriate, administrator configurable, temporary directory tempfile.gettempdir(). As well as providing functions to create directories within that host appropriate location: tempfile.mkdtemp(), and tempfile.TemporaryFile().

Does anyone know when the temp dirs are not being removed?

Besides the expected case when tearDown is not called due to some error, I've noticed temp dirs not being removed on Windows with "being used by another process" error. Unfortunately, I can't say which is the process and I haven't observed this consistently in other environments.

Sorry for giving you a bit random hints and not direct answers but in the Windows case temporary files created by unittest_toolbox.Modified_TestCase.make_temp_data_file cannot be cleaned due to
PermissionError(13, 'This process cannot access the file because it is being used by another process').
But this is a Windows VM so it can be something specific to this case ...

Does anyone know when the temp dirs are not being removed?

Besides the expected case when tearDown is not called due to some error, I've noticed temp dirs not being removed on Windows with "being used by another process" error. Unfortunately, I can't say which is the process and I haven't observed this consistently in other environments.

Sorry for giving you a bit random hints and not direct answers but in the Windows case temporary files created by unittest_toolbox.Modified_TestCase.make_temp_data_file cannot be cleaned due to
PermissionError(13, 'This process cannot access the file because it is being used by another process').
But this is a Windows VM so it can be something specific to this case ...

Blocked, until we remove Python2 from our tests as Joshua has mentioned.
https://github.com/theupdateframework/tuf/pull/1224#issuecomment-738333840

After the removal of python2 test cases in https://github.com/theupdateframework/tuf/commit/13b085712f2b4b83fc2e7014c34016d55061ab7f
I rebased and updated this pr.

Honestly, I am wondering about this change.
On one hand, on a successful test run, we had generated multiple additional folders for each test class,
on another hand, on an error probably we will end up with many folders for each test class that failed, right?

I might have broken this PR quite badly with a recent bug fix (moved chained up teardown calls to the correct place in #1346 to fix issues found in another PR). Sorry about that -- I did not remember this one.
I think that PR also makes this one a bit less needed: at least in the tests that I touched I made sure that we only try to remove the "topmost" directory (because that will remove every other directory inside it). In some cases there might still be unneeded temp directories.
Let's discuss when you are back.

As I said before, I don't feel so confident about this change anymore.
I will just close it for now and if somebody complains about it in the future, I will reopen or push another one.


secrets and keys

Hi Ed,
So I got consumer secret etc from https://dev.twitter.com/apps/new correctly set up. I assumed that I just put these into twarc.py at lines 33-36, but when I run it, I still get the error message from lines 39-41. So, not being overly familiar with python, can you talk me through putting these into my environment? Mac, PC, as I'd like to get my students exploring the possibilities and I have to be able to talk them through both.
Thanks!

I normally do this by putting them in a env.sh file like this:
export CONSUMER_KEY="CONSUMERKEY"
export CONSUMER_SECRET="CONSUMERSECRET"
export ACCESS_TOKEN="ACCESS-TOKEN"
export ACCESS_TOKEN_SECRET="ACCESSTOKENSECRET"

and then:
source env.sh

to get them into the environment...

that totally worked. thank you! I would not have stumbled over that solution. this is awesome

Nice! Sometimes I think twarc.py should just take those as command line arguments. But it seems to be a familiar pattern that other tools use.


Add a campaign chart

Part of https://github.com/gratipay/inside.gratipay.com/issues/1160.

Closing in favor of https://github.com/gratipay/gratipay.com/pull/4650.


WIP: Generator

Okay, this basically works and is able to generate hello-world.
There are some issues around with the code, which I will open some tickets for.


Donation Option

Thank you for creating this, I looked around but could not find any paypal / buy coffee / beer options
I had bought over 20x of these units with wifi , but could NEVER get their damn software to work
as I am monitoring every single battery cell this works out good for me as I can just use my esp32 to collect the data and send it right to "Home Assistant"
can you verify
" Home Assistant you should replace the mqtt: component with the native api:"
does this mean
mqtt:
broker: !secret mqtt_host
username: !secret mqtt_username
password: !secret mqtt_password
id: mqtt_client
gets changed to
api:
broker: !secret HA_host
username: !secret HA_username
password: !secret HA_password
id: HA_client

Thank you for creating this, I looked around but could not find any paypal / buy coffee / beer options

You can find a buymeacoffee.com button at the top of the README.md: https://www.buymeacoffee.com/syssi
To use the api component instead of mqtt you have to replace this section:
mqtt:
  broker: !secret mqtt_host
  username: !secret mqtt_username
  password: !secret mqtt_password
  id: mqtt_client

with
api:

See https://esphome.io/components/api.html
Feel free to ask further questions if you have trouble to use this component.

You can find a buymeacoffee.com button at the top of the README.md: https://www.buymeacoffee.com/syssi

I know I'm blind but I can still not find any links on the README.md page

Thanks for your donation! I will enjoy the ☕!


MultiWorkerMirroredStrategy assign a wrong device

Please make sure that this is a bug. As per our
GitHub Policy,
we only address code/doc bugs, performance issues, feature requests and
build/installation issues on GitHub. tag:bug_template
System information

Have I written custom code (as opposed to using a stock example script provided in TensorFlow): yes
OS Platform and Distribution (e.g., Linux Ubuntu 16.04):  CentOS Linux release 7
Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on mobile device: nan
TensorFlow installed from (source or binary): binary
TensorFlow version (use command below): v2.1.0-rc2-17-ge5bf8de 2.1.0
Python version: 3.6.10
Bazel version (if compiling from source): nan
GCC/Compiler version (if compiling from source): nan
CUDA/cuDNN version: 10.1
GPU model and memory: nan

You can collect some of this information using our environment capture
script
You can also obtain the TensorFlow version with:

TF 1.0: python -c "import tensorflow as tf; print(tf.GIT_VERSION, tf.VERSION)"
TF 2.0: python -c "import tensorflow as tf; print(tf.version.GIT_VERSION, tf.version.VERSION)"

Describe the current behavior
Use distribution strategy MultiWorkerMirroredStrategy in graph mode, throw an error
tensorflow.python.framework.errors_impl.InvalidArgumentError: Cannot assign a device for operation metrics/auc/Identity: {{node metrics/auc/Identity}} was explicitly assigned to /replica:0/task:0/device:CPU:0 but available devices are [ /job:worker/replica:0/task:1/device:CPU:0, /job:worker/replica:0/task:1/device:GPU:0, /job:worker/replica:0/task:1/device:XLA_CPU:0, /job:worker/replica:0/task:1/device:XLA_GPU:0 ]. Make sure the device specification refers to a valid device.
assign a wrong device which is /replica:0/task:0/device:CPU:0 on task1
Describe the expected behavior
train normly
Standalone code to reproduce the issue
Provide a reproducible test case that is the bare minimum necessary to generate
the problem. If possible, please share a link to Colab/Jupyter/any notebook.
# file demo.py
import sys
import numpy as np
import tensorflow as tf

strategy = tf.distribute.experimental.MultiWorkerMirroredStrategy()
graph_context = tf.Graph().as_default()
strategy_context = strategy.scope()

with graph_context:
    with strategy_context:
        ip = tf.keras.layers.Input([2])
        h = tf.keras.layers.Dense(10, activation='relu', input_dim=2)(ip)
        out = tf.keras.layers.Dense(2, activation='softmax')(h)
        model = tf.keras.models.Model(inputs=[ip], outputs=[out])

        model.compile(optimizer='Adam',
                loss='categorical_crossentropy',
                metrics=[tf.keras.metrics.AUC(num_thresholds=100)])

    x = np.random.randn(100, 2)
    y = (x[:, 0] * x[:, 1]) > 0
    model.fit(x, tf.keras.utils.to_categorical(y), epochs=1)

run above script command:
TF_CONFIG='{"cluster":{"worker":["localhost:2222","localhost:2223"]},"task":{"type":"worker","index":0}}' CUDA_VISIBLE_DEVICES=0 python demo.py
TF_CONFIG='{"cluster":{"worker":["localhost:2222","localhost:2223"]},"task":{"type":"worker","index":1}}' CUDA_VISIBLE_DEVICES=1 python demo.py

Other info / logs Include any logs or source code that would be helpful to
diagnose the problem. If including tracebacks, please include the full
traceback. Large logs and files should be attached.
Traceback (most recent call last):
  File "/usr/local/anaconda3/lib/python3.6/site-packages/tensorflow_core/python/client/session.py", line 1367, in _do_call
    return fn(*args)
  File "/usr/local/anaconda3/lib/python3.6/site-packages/tensorflow_core/python/client/session.py", line 1350, in _run_fn
    self._extend_graph()
  File "/usr/local/anaconda3/lib/python3.6/site-packages/tensorflow_core/python/client/session.py", line 1390, in _extend_graph
    tf_session.ExtendSession(self._session)
tensorflow.python.framework.errors_impl.InvalidArgumentError: Cannot assign a device for operation metrics/auc/Identity: {{node metrics/auc/Identity}} was explicitly assigned to /replica:0/task:0/device:CPU:0 but available devices are [ /job:worker/replica:0/task:1/device:CPU:0, /job:worker/replica:0/task:1/device:GPU:0, /job:worker/replica:0/task:1/device:XLA_CPU:0, /job:worker/replica:0/task:1/device:XLA_GPU:0 ]. Make sure the device specification refers to a valid device.
         [[metrics/auc/Identity]]

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "../x.py", line 22, in <module>
    model.fit(x, tf.keras.utils.to_categorical(y), epochs=1)
  File "/usr/local/anaconda3/lib/python3.6/site-packages/tensorflow_core/python/keras/engine/training.py", line 819, in fit
    use_multiprocessing=use_multiprocessing)
  File "/usr/local/anaconda3/lib/python3.6/site-packages/tensorflow_core/python/keras/engine/training_distributed.py", line 790, in fit
    *args, **kwargs)
  File "/usr/local/anaconda3/lib/python3.6/site-packages/tensorflow_core/python/keras/engine/training_distributed.py", line 777, in wrapper
    mode=dc.CoordinatorMode.INDEPENDENT_WORKER)
  File "/usr/local/anaconda3/lib/python3.6/site-packages/tensorflow_core/python/distribute/distribute_coordinator.py", line 853, in run_distribute_coordinator
    task_id, session_config, rpc_layer)
  File "/usr/local/anaconda3/lib/python3.6/site-packages/tensorflow_core/python/distribute/distribute_coordinator.py", line 360, in _run_single_worker
    return worker_fn(strategy)
  File "/usr/local/anaconda3/lib/python3.6/site-packages/tensorflow_core/python/keras/engine/training_distributed.py", line 772, in _worker_fn
    return method(model, **kwargs)
  File "/usr/local/anaconda3/lib/python3.6/site-packages/tensorflow_core/python/keras/engine/training_distributed.py", line 619, in fit
    epochs=epochs)
  File "/usr/local/anaconda3/lib/python3.6/site-packages/tensorflow_core/python/keras/engine/training.py", line 2200, in _distribution_standardize_user_data
    session = K.get_session()
  File "/usr/local/anaconda3/lib/python3.6/site-packages/tensorflow_core/python/keras/backend.py", line 496, in get_session
    _initialize_variables(session)
  File "/usr/local/anaconda3/lib/python3.6/site-packages/tensorflow_core/python/keras/backend.py", line 911, in _initialize_variables
    [variables_module.is_variable_initialized(v) for v in candidate_vars])
  File "/usr/local/anaconda3/lib/python3.6/site-packages/tensorflow_core/python/client/session.py", line 960, in run
    run_metadata_ptr)
  File "/usr/local/anaconda3/lib/python3.6/site-packages/tensorflow_core/python/client/session.py", line 1183, in _run
    feed_dict_tensor, options, run_metadata)
  File "/usr/local/anaconda3/lib/python3.6/site-packages/tensorflow_core/python/client/session.py", line 1361, in _do_run
    run_metadata)
  File "/usr/local/anaconda3/lib/python3.6/site-packages/tensorflow_core/python/client/session.py", line 1386, in _do_call
    raise type(e)(node_def, op, message)
tensorflow.python.framework.errors_impl.InvalidArgumentError: Cannot assign a device for operation metrics/auc/Identity: node metrics/auc/Identity (defined at ../x.py:18)  was explicitly assigned to /replica:0/task:0/device:CPU:0 but available devices are [ /job:worker/replica:0/task:1/device:CPU:0, /job:worker/replica:0/task:1/device:GPU:0, /job:worker/replica:0/task:1/device:XLA_CPU:0, /job:worker/replica:0/task:1/device:XLA_GPU:0 ]. Make sure the device specification refers to a valid device.
         [[metrics/auc/Identity]]

@Hacky-DH
I ran your code on tf 2.1 and do  not face any error as reported by you, please refer to this gist here

@Saduf2019 use following commands to run the code
TF_CONFIG='{"cluster":{"worker":["localhost:2222","localhost:2223"]},"task":{"type":"worker","index":0}}' CUDA_VISIBLE_DEVICES=0 python demo.py
TF_CONFIG='{"cluster":{"worker":["localhost:2222","localhost:2223"]},"task":{"type":"worker","index":1}}' CUDA_VISIBLE_DEVICES=1 python demo.py

Just running python demo.py is one worker trainning, not multi worker

If you want to run with graph mode in TF2, please try the following and let us know if the issue is still there:
import tensorflow.compat.v1 as tf
tf.disable_v2_behavior()

strategy = tf.distribute.experimental.MultiWorkerMirroredStrategy()

with strategy.scope():
  model = .... # rest of your code as-is.

@guptapriya
I modify code as you say, an error occurs:
Traceback (most recent call last):
  File "demo.py", line 14, in <module>
    h = tf.keras.layers.Dense(10, activation='relu', input_dim=2)(ip)
  File "/usr/local/anaconda3/lib/python3.6/site-packages/tensorflow_core/python/keras/engine/base_layer.py", line 748, in __call__
    self._maybe_build(inputs)
  File "/usr/local/anaconda3/lib/python3.6/site-packages/tensorflow_core/python/keras/engine/base_layer.py", line 2116, in _maybe_build
    self.build(input_shapes)
  File "/usr/local/anaconda3/lib/python3.6/site-packages/tensorflow_core/python/keras/layers/core.py", line 1113, in build
    trainable=True)
  File "/usr/local/anaconda3/lib/python3.6/site-packages/tensorflow_core/python/keras/engine/base_layer.py", line 446, in add_weight
    caching_device=caching_device)
  File "/usr/local/anaconda3/lib/python3.6/site-packages/tensorflow_core/python/training/tracking/base.py", line 744, in _add_variable_with_custom_getter
    **kwargs_for_getter)
  File "/usr/local/anaconda3/lib/python3.6/site-packages/tensorflow_core/python/keras/engine/base_layer_utils.py", line 142, in make_variable
    shape=variable_shape if variable_shape else None)
  File "/usr/local/anaconda3/lib/python3.6/site-packages/tensorflow_core/python/ops/variables.py", line 258, in __call__
    return cls._variable_v1_call(*args, **kwargs)
  File "/usr/local/anaconda3/lib/python3.6/site-packages/tensorflow_core/python/ops/variables.py", line 219, in _variable_v1_call
    shape=shape)
  File "/usr/local/anaconda3/lib/python3.6/site-packages/tensorflow_core/python/ops/variables.py", line 65, in getter
    return captured_getter(captured_previous, **kwargs)
  File "/usr/local/anaconda3/lib/python3.6/site-packages/tensorflow_core/python/distribute/distribute_lib.py", line 1319, in creator_with_resource_vars
    _require_strategy_scope_extended(self)
  File "/usr/local/anaconda3/lib/python3.6/site-packages/tensorflow_core/python/distribute/distribute_lib.py", line 253, in _require_strategy_scope_extended
    _wrong_strategy_scope(strategy, context)
  File "/usr/local/anaconda3/lib/python3.6/site-packages/tensorflow_core/python/distribute/distribute_lib.py", line 218, in _wrong_strategy_scope
    (strategy,))
RuntimeError: Need to be inside "with strategy.scope()" for <tensorflow.python.distribute.collective_all_reduce_strategy.CollectiveAllReduceStrategyV1 object at 0x7fcd8459c208>

Can you please provide the complete code you tried? from the error message it seems that it thinks you're no longer in the scope of the strategy.
BTW do you need to use graph mode? Can you use TF2 without graph mode instead? We have done a lot more testing and improvements for MultiWorkerMirroredStrategy in TF2.

@guptapriya here is full code that I modified
# file demo.py
import sys
import numpy as np
import tensorflow.compat.v1 as tf
tf.disable_v2_behavior()

strategy = tf.distribute.experimental.MultiWorkerMirroredStrategy()
graph_context = tf.Graph().as_default()
strategy_context = strategy.scope()

with graph_context:
    with strategy_context:
        ip = tf.keras.layers.Input([2])
        h = tf.keras.layers.Dense(10, activation='relu', input_dim=2)(ip)
        out = tf.keras.layers.Dense(2, activation='softmax')(h)
        model = tf.keras.models.Model(inputs=[ip], outputs=[out])

        model.compile(optimizer='Adam',
                loss='categorical_crossentropy',
                metrics=[tf.keras.metrics.AUC(num_thresholds=100)])

    x = np.random.randn(100, 2)
    y = (x[:, 0] * x[:, 1]) > 0
    model.fit(x, tf.keras.utils.to_categorical(y), epochs=1)

you can start with cmds:
TF_CONFIG='{"cluster":{"worker":["localhost:2222","localhost:2223"]},"task":{"type":"worker","index":0}}' CUDA_VISIBLE_DEVICES=0 python demo.py
TF_CONFIG='{"cluster":{"worker":["localhost:2222","localhost:2223"]},"task":{"type":"worker","index":1}}' CUDA_VISIBLE_DEVICES=1 python demo.py

I tried to run without graph context, it works, but a warning message occurs
W tensorflow/core/grappler/optimizers/data/auto_shard.cc:428] In AUTO-mode, and switching to DATA-based sharding, instead of FILE-based sharding as we cannot find appropriate reader dataset op(s) to shard. Error: Found an unshardable source dataset: name: "TensorSliceDataset/_2"

How to fix this?
BTW, what are differences between with graph and without graph context using distribute strategy e.g. MultiWorkerMirroredStrategy or MirroredStrategy?
Thanks

You don't need the graph context, I think make a separate graph is probably causing the problem you saw earlier. So running without that is the right thing to do.
Regarding that warning: when using model.fit with MultiWorkerMirroredStrategy, we try to shard your data across workers by sharding the files across them. but when the dataset doesn't read from files like in this case, we cannot do that, and that's all that warning means. I am guessing this is a toy example, you should not see it with a realistic dataset that reads from files.
You can read more about this:
https://www.tensorflow.org/tutorials/distribute/multi_worker_with_keras#dataset_sharding_and_batch_size
https://www.tensorflow.org/api_docs/python/tf/distribute/Strategy?version=nightly#experimental_distribute_dataset

I had another question: is keras model run in eager mode without graph context in MultiWorkerMirroredStrategy scope? if not, is it run in tf.function?
Do I need pass run_eagerly=False to model.compile function?

In TF2, keras model.fit uses tf.function under the hood automatically. So you don't need to pass run_eagerly=False, it is False by default. run_eagerly is only needed if you actually need op by op execution.
High level question: why are you trying to use TF1 / legacy graph mode instead of just TF2 default?

Thank you very much!
I heard that it is much slower in eager mode than graph mode in TF2. So I put model.compile and dataset construction forcely in graph context.
As you said I will try remove the graph context in TF2.


[Style Fix] Multi-Select - State Selector hover styling issue

Info on this issue

Adding myself to this for next sprint.


fixes

make default width and aspect ratio references (avoids hard-coding constants);
rename TERM_DEBUG_ON to DEBUG_ON, defaults to false for the end user;
term_theme is now uppercase (consistency with globals naming conventions);
grid is now exported;
rename int to rint (int is confusing), to go with fint and cint;
add Measures.default_size() to avoid hard-coded placeholder size;
calc_nrows_ncols now defaults to aspect = nothing and is more clever for fitting (check best between unit ar and default ar, which is set to 4:3);
rewrite runtests.jl for clarity and flexibility;
better 09_test_layout.jl testing;
a few syntax / cosmetic fixes.

I think it 4:3 is the best choice since terminals seem to respect a 4:3 aspect ratio.

Codecov Report

Merging #110 (328c36e) into master (31c0a73) will increase coverage by 0.33%.
The diff coverage is 89.24%.

@@            Coverage Diff             @@
##           master     #110      +/-   ##
==========================================
+ Coverage   90.50%   90.83%   +0.33%
==========================================
  Files          32       32
  Lines        1895     1888       -7
==========================================
  Hits         1715     1715
+ Misses        180      173       -7

Impacted Files
Coverage Δ

src/Term.jl
100.00% <ø> (ø)

src/boxes.jl
98.21% <ø> (ø)

src/introspection.jl
83.33% <ø> (ø)

src/markdown.jl
90.32% <ø> (ø)

src/panels.jl
95.77% <ø> (ø)

src/renderables.jl
84.84% <0.00%> (+4.84%)
:arrow_up:

src/tables.jl
98.82% <ø> (ø)

src/theme.jl
0.00% <0.00%> (ø)

src/progress.jl
88.51% <42.85%> (+0.59%)
:arrow_up:

src/trees.jl
92.10% <80.00%> (ø)

... and 10 more

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 31c0a73...328c36e. Read the comment docs.

Looks great again! Awesome work.
What's .default_size()  for?

What's .default_size() for?

It's used to compute the default PlaceHolder size when using grid without any renderables.
Aside from this,
style_sub_types and style_super_types in src/_inspect.jl seem unused and I can't find an example how to use these (for testing / coverage): do you have an example, or should we remove these if obsolete ?

you're right they're obsolete. They were used by the older inspect function but this has now been replaced by the much improved termshow - they can go 👋🏻

good to merge?

Yes.


Fixed compression formats

Fixed compression formats and password protected zip

:white_check_mark: Build windows-openstack-imaging-tools 1.0.63 completed (commit https://github.com/cloudbase/windows-openstack-imaging-tools/commit/d3bd66277d by @gluka-CBS)

Hello, can you explain what your fix does?
Also, please remove any tabs from the indentation to keep consistency.

:white_check_mark: Build windows-openstack-imaging-tools 1.0.64 completed (commit https://github.com/cloudbase/windows-openstack-imaging-tools/commit/e7256739db by @gluka-CBS)

:white_check_mark: Build windows-openstack-imaging-tools 1.0.65 completed (commit https://github.com/cloudbase/windows-openstack-imaging-tools/commit/ba52bc0892 by @gluka-CBS)

:white_check_mark: Build windows-openstack-imaging-tools 1.0.66 completed (commit https://github.com/cloudbase/windows-openstack-imaging-tools/commit/26372ca0fe by @gluka-CBS)

:white_check_mark: Build windows-openstack-imaging-tools 1.0.67 completed (commit https://github.com/cloudbase/windows-openstack-imaging-tools/commit/e04bbfb42f by @gluka-CBS)

:white_check_mark: Build windows-openstack-imaging-tools 1.0.68 completed (commit https://github.com/cloudbase/windows-openstack-imaging-tools/commit/346bd2c782 by @gluka-CBS)

:white_check_mark: Build windows-openstack-imaging-tools 1.0.69 completed (commit https://github.com/cloudbase/windows-openstack-imaging-tools/commit/ebff4f9434 by @gluka-CBS)

I do not know that this patch does the right thing, I have revise all the workflow, document and see the missing links. I am sure this patch does not solve all the issues that are there and it probably makes the workflow more complicated or incomplete.


Cannot evict service from eureka.

Hello,
I am using it with a .net framework project and everything including the service discovery, consume and zuul is fine. The problem is when  I stop my service, the published service stays as registered on the eureka like forever. I wait 5 minutes and it still remains. So  I turned off the self preservation of eureka and the service still remains. Unless I restart the eureka server the service stays registered. I don't think there is something wrong with eureka because my java project works fine. Is there anything wrong?
thanks!

That does sound unusual, have you tried setting your own value for eureka:instance:leaseExpirationDurationInSeconds? By default, your app should stay registered for 90 seconds - you could lower that and eureka:instance:leaseRenewalIntervalInSeconds to see if anything changes.

#39 should resolve this issue (thanks @kimbell!) -- That pull request was included in the 2.1.0 release of Steeltoe, please try the updated package and see if that resolves the issue for you!


Add iOS Security Class and Obj-C command line obfuscator

Project URL
#1277
#1276
Description
https://github.com/karek314/awesome-ios/commit/c2c415c89b4d04ebbf2f33da61378b6b85619f7e
Why it should be included to awesome-ios (optional)
Refer to
#1277
#1276
Checklist

[ ] Only one project/change is in this pull request
[X] Addition in chronological order (bottom of category)
[X] Supports iOS 9 or later
[ ] Supports Swift 3
[X] Has a commit from less than 2 years ago
[X] Has a clear README in English

          1 Error

:no_entry_sign:
Found 1 link issue

          1 Warning

:warning:
Too many changes (when adding, please keep it to one project per Pull Request)

Link issue by awesome_bot

Line
Status
Link

987
301
https://github.com/alvinvarghese/EasyIAPs redirects tohttps://github.com/aaalveee/EasyIAPs

  Generated by :no_entry_sign: danger

Hey @karek314, thanks for contributing!
Your libraries are awesome but they need some work before I can add it to AwesomeiOS.
As you can see above, I already opened an issue on iOS App Security Class.
Regarding Objective-C-CLI-Obfuscator, I'd ask you to fix the Git repository and transform into an actual repository instead of being a fork. I'd ask you to improve the README as well.

@karek314 now we're just missing the README changes on Objective-C-CLI-Obfuscator!

@lfarah Hello, It has been updated recently.
https://github.com/karek314/Objective-C-CLI-Obfuscator

I'm worried about the Apple Review thing because some users may not know that there's a special branch. @dkhamsing what do you think?

Apple reviews issue is not so good ..

@lfarah - i've added direct url to that branch in description.
@dkhamsing  - not sure what do you mean ?

I mean that is a problem and maybe we should not add this project to the list
I will let @lfarah decide

@dkhamsing As i've said, it happens sometimes. Developer agreement have couple weird conflicting rules about this, from my understanding it should be allowed by apple, it seems there is some confusing among apple reviewers, anyway i've mentioned about possible outcome of usage, Apple store is not only one possible distribution of apps, might be helpful for some people.

I would agree with @karek314 if this repository was not iOS-centric.
Given the App Store is the only official distribution method for both business and public apps, I also think we should not add this project to the list.
@lfarah its up to you.

@victorgama Apps can be also signed with special distribution certificate and distributed from website, it's official afaik. unofficial is cydia and some other stores form pangu etc.
Im still standing on my position that it's useful to add. Branch apple-review-safe is safe for submission. If not, it's not problem, obfuscation can be easily removed by simply deleting symbols header and restoring storyboards, apple will not suspend developer account for that, they will just ask to remove obfuscation in case they don't like it.

I'm sorry @karek314, but I agree with @dkhamsing and @victorgama.
Can you please remove Objective-C-CLI-Obfuscator from the PR?

Ok, fair enough. Removed obfuscator.


Added BTCKeychainTests.swift

@oleganza hi, just checking in about the PR's status.

Did you have Swift compiler crashes with "Segmentation fault: 11" when building swift tests?

@rsmoz please see the comments "Crashes Xcode 7.1.1" https://github.com/oleganza/CoreBitcoin/commit/6691ce22c64249ffd61179545d70cf9038ef3785#diff-d0b138a739f62d4d01f790dbee73c6e1
Can you reproduce the "segmentation fault: 11" when you uncomment and try to build and run the tests?

Yep, it crashes.


IE8 problem: uglified version

Hi, I'm using Reflux for a project that requires support for IE8. The non-minified and minified-with-names-not-mangled versions work fine, but not if the uglifier mangles names as well.
I could track this problem down to line 54 of lib/createAction.js:
    var functor = function functor() {

Which differs from src/createAction.js:
    var functor = function() {

I'm not sure why in the lib version is different from the src version, but it seems to be too much for IE8 with mangled names. Restoring the src line inside lib/createAction.js makes Reflux work with IE8 in my case.
I appreciate you may not be interested in supporting IE8, but still, is this something that could be 'fixed'?

The lib and src versions differ due to babel.  If this is something that the reflux project cares about, it seems this could be alleviated with the jscript transformer: https://babeljs.io/docs/plugins/transform-jscript/.
I'd personally opt to not worry about IE8, given that IE users are being nagged to upgrade as of last week.  Maybe a note could be made in the readme for steps to compile reflux-core in an IE8-compatible way.  Worth noting that IE8 is not ES5-compatible.

Considering my time with maintaining the project is very limited and <IE10 are now unsupported browsers, I'm not likely going to work on this issue until much much later. Help from community is greatly appreciated.

I understand completely the focus on modern browsers! Wish I was there...
It seems that if the original code has a name for the function (src/createAction.js):
    var functor = function _functor () {

The babel-compiled version keeps both different names, and prevents the apparent name collision in the minimized version that breaks on IE8.
 Probably babel can be configured to solve the problem but haven't looked into that...
See: https://github.com/reflux/reflux-core/pull/20


CLI:Error Utility Name Empty when try to use backup gem

What went wrong?
When I try to execute some backup commands I am receiving CLI Error.
What steps did you follow?
[root@ models]# backup check
[2017/07/06 12:41:44][error] CLI::Error
[2017/07/06 12:41:44][error] --- Wrapped Exception ---
[2017/07/06 12:41:44][error] Utilities::Error: Utility Name Empty
[2017/07/06 12:41:44][error] Configuration Check Failed.

[root@ models]# /usr/local/bin/backup perform --trigger sql --tmp-path /home/tmp/
[2017/07/06 12:43:34][error] CLI::Error
[2017/07/06 12:43:34][error] --- Wrapped Exception ---
[2017/07/06 12:43:34][error] Utilities::Error: Utility Name Empty

How is your copy of backup configured?
I already tried new (from zero) config.rb file. I already tried create new models (follow official documentation). If I put the model name, I get error. If I do not write, it will fail (as we expect).
[root@wither models]# /usr/local/bin/backup perform --trigger
No value provided for option '--trigger'

[root@wither models]# /usr/local/bin/backup perform --trigger sql
[2017/07/06 12:46:42][error] CLI::Error
[2017/07/06 12:46:42][error] --- Wrapped Exception ---
[2017/07/06 12:46:42][error] Utilities::Error: Utility Name Empty

Tell us about the computer that runs the backup gem
[root@ models]# mysql --version
mysql  Ver 15.1 Distrib 5.5.52-MariaDB, for Linux (x86_64) using readline 5.1

Linux wither 4.12.0-1.el7.elrepo.x86_64 #1 SMP Sun Jul 2 20:38:48 EDT 2017 x86_64 x86_64 x86_64 GNU/Linux

[root@ ~]# cat /etc/issue
CentOS Linux release 7.3.1611 (Core)

[root@ ~]# rpm -qa | egrep -i ruby
rubygem-io-console-0.4.2-29.el7.x86_64
rubygem-psych-2.0.0-29.el7.x86_64
ruby-libs-<IP_ADDRESS>8-29.el7.x86_64
rubygem-json-1.7.7-29.el7.x86_64
rubygem-rdoc-4.0.0-29.el7.noarch
ruby-<IP_ADDRESS>8-29.el7.x86_64
rubygems-<IP_ADDRESS>-29.el7.noarch
ruby-devel-<IP_ADDRESS>8-29.el7.x86_64
rubygem-bigdecimal-1.2.0-29.el7.x86_64
ruby-irb-<IP_ADDRESS>8-29.el7.noarch
rubygems-devel-<IP_ADDRESS>-29.el7.noarch

[root@wither models]# backup version
Backup 4.4.0

[root@wither models]# gem list backup
*** LOCAL GEMS ***
backup (4.4.0)

I already tried remove backup gem and reinstall from zero without success.

Hello franciscopaniskaseker,
OK, please which can you double-check that mysqldump is installed and where it should be? e.g.:
which mysqldump

Next, please can you post an example of the config and model files as a gist? I can then investigate further with you.

[root@ ~]# whereis mysqldump
mysqldump: /usr/bin/mysqldump /usr/share/man/man1/mysqldump.1.gz

[root@ ~]# mysqldump
Usage: mysqldump [OPTIONS] database [tables]
OR     mysqldump [OPTIONS] --databases [OPTIONS] DB1 [DB2 DB3...]
OR     mysqldump [OPTIONS] --all-databases [OPTIONS]
For more options, use mysqldump --help

[root@ ~]# which mysqldump
/usr/bin/mysqldump

Now a SQL backup example:
Model.new(:sql, 'dump sql') do

        database MySQL do |db|
                db.name         = :all
                db.username     = "root"
                db.password     = "*******"
                db.host         = "localhost"
                db.port         = "3306"
                db.socket       = "/var/lib/mysql/mysql.sock"
                db.prepare_backup       =       true
                db.additional_options   =       ["--quick", "--single-transaction"]
        end

        #compress_with Gzip

        compress_with Custom do |compression|
                compression.command = 'pxz -k -6 -T2'
                compression.extension = '.xz'
        end

        store_with Local do |local|
                local.path = '/backup/sql'
                local.keep = 160
        end

        Logger.configure do
                logfile.enabled   = true
                logfile.log_path  = 'log'
                logfile.max_bytes = 500_000
        end
end

We used this script since 2017 January without changes. Backup stopped since 9th June.

OK, thank you. Have you tried without the custom compression? That could also raise the "Utility Name Empty" error.

I removed custom compression and I get same error. I have others servers using same version without problem even with CentOS x86_64 7.3.1611.
I compared ruby version and gems and they use same versions. I wondering if I have some environment variable causing this.
I am not expert with ruby on rails environment, but If reinstall ruby and backup gem (config from zero, ie, without reuse config files) did not work, probably I have environment issues.


post_up and post_down commands

Proposed Changes
For POSTROUTING to work, MASQUERADE on main network interface have set, which is eth0 (at least on RPi). To use wireguard to access other nodes on same local network, forwarding on wg0 interface is set.
Related Issues
https://github.com/bigmoby/addon-wireguard-client/issues/4

Wireguard will expand it to the name of the WG interface. I have that same two lines in my client's /etc/wireguard/wg0.conf and it works.

@vtanjga thanks for this PR but I released a new version of this plugin so you could specify the post_up and post_down commands. Anyway I'm pretty sure that, unless a your peculiar corner case, you cannot solve with
post_down="iptables -D FORWARD -i %i -j ACCEPT; iptables -D FORWARD -o %i -j ACCEPT; iptables -t nat -D POSTROUTING -o eth0 -j MASQUERADE"```

Enjoy the new version 👍😉

I like your parameterized solution more, better than hardcode it. We'll see if this will solve my problem. Thanks!


examples: Switch docker-compose -> docker compose

spot the difference!

switch to docker compose / buildkit
fix flaky/sleeps
assorted cleanups

Commit Message:
Additional Description:
Risk Level:
Testing:
Docs Changes:
Release Notes:
Platform Specific Features:
[Optional Runtime guard:]
[Optional Fixes #Issue]
[Optional Fixes commit #PR or SHA]
[Optional Deprecated:]
[Optional API Considerations:]

this may cause a few flakes as it works differently to previously - ive fixed a few so hopefully it will be good
this will finally fix the issues that so many people have in #20915 once and for all!

/docs

@mattklein123 this will most likely conflict with other examples PRs i have open
This one is defo the priority as it has quite a few benefits, and unblocks other moves.
There are quite a lot of followups/cleanups i would like to make to both docs and examples, but i think this already has quite a lot of change

i think this should also fix a few flakes - like this one https://dev.azure.com/cncf/envoy/_build/results?buildId=130154&view=logs&j=f1a49366-51c0-540f-0294-f73c2bb311a9&t=7fd036c9-61ec-5b59-3645-e90950dc67a6&l=16129


Can I use this with TB-RK3399ProD

I wish to use libOpenVX.so with RK3399PRo (Toybrick),
I see rknpu/drivers
having  galcore_rk3399pro-npu.ko  dependencies for NPU support. Please let me know how can i use it.
I wish to flash it, Please provide me guideline how to ?
Regards,
Harsh

Same question.
In addition, what these galcoreXX.ko use for?

galcore.ko
galcore_fedora.ko
galcore_puma.ko
galcore_puma_tb.ko
galcore_rk1806.ko
galcore_rk3399pro-npu-pcie.ko
galcore_rk3399pro-npu.ko

You can look at this rule: SDKROOT/buildroot/package/rockchip/rknpu/rknpu.mk


Navbar dropdown not working on mobile

Default Bulma provides no way for mobile devices to trigger :hover effects. This was fixed for most things in https://github.com/UWCS/uwcs-dextre/blob/df57acee7fc79a3517b102c148c077fc31d04877/static/js/core.js but navbar dropdown were missed. This makes accessing profile and logout options hard as the user dropdown doesn't trigger.
Steps to reproduce: open website on touchscreen device that doesn't emulate :hover (e.g. iOS/Android) while logged in. Click username in navbar.
Expected behaviour: menu should appear to display logout and profile options.
Observed behaviour: nothing happens
Tested on: iPad Air (3rd generation) running iOS 14.5

Thanks for reporting! I've fixed this locally, and once my exam tomorrow is out of the way I'm hoping to deploy the fix this week. :)


nvcc fatal   : Unsupported gpu architecture 'compute_75'

Same problem with you Q-Q. My deploy is RTX2060 with Cuda 9.2 , torch 1.5.1 and so on as provided in readme.

i use the RTX3090 ,cuda 11.3 ,torch 1.9 ,i have same problem

没，我打算重做系统了

在 2021年10月8日，20:34，20孙瑞琦 @.***> 写道：

i use the RTX3090 ,cuda 11.3 ,torch 1.9 ,i have same problem
你好，请问你解决了吗？
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.

Keep ‘nvcc’ in line with ‘cat /usr/local/cuda/version.txt’.
updata nvcc path：
export PATH=/usr/local/cuda/bin:$PATH
export LD_LIBRARY_PATH=/usr/local/cuda/lib64:$LD_LIBRARY_PATH


An option to pin / favorize recently opened projects

I usually have to open many different projects in vscode. And some of them less frequent than the others. Whenever I go File -> Recently Opened (on Windows) to find the project that I need, it looks very messy and it is difficult to find my main one, because it goes down in the list or sometimes even gets lost completely. I would appreciate having an option right in Recently Opened near the project paths to prioritize some of them so they are always staying at the top.

Did you try pinning VS Code to your Task Bar, then pinning selected recent entries to that icon's popup menu?

That's a good workaround, thanks. At least for windows. Not sure about the other OSs.


Add assets for map stories

When migrating branches from mapveu to this repo, some static assets were missed. This PR adds them.

This would resolve most of issues that mapveu in this repo currently experiences, e.g., no legend, etc. I will update a small fix for margin issue after this PR is approved

This would resolve most of issues that mapveu in this repo currently experiences, e.g., no legend, etc. I will update a small fix for margin issue after this PR is approved

Since this is the one I need to add a fix for margin issue, I have added the fix in this PR too.

Since this is the one I need to add a fix for margin issue, I have added the fix in this PR too.

Thanks, @moontrip! I will go ahead and merge this.

Thanks, @moontrip! I will go ahead and merge this.


STT0073: LLM-Based Correction of Inference Transcriptions Using Claude AI

Description:
Develop a process that uses Claude AI to automatically correct inference transcriptions by aligning them with a verified final transcription. This process will involve feeding both the initial inference transcription and the accurate final transcription into Claude AI to identify and make necessary adjustments, improving the quality and accuracy of the initial transcription.
Completion Criteria:

Claude AI successfully corrects the inference transcription based on the final transcription.
Output is validated for accuracy and matches the final transcription's content and phrasing.

Subtasks:

[x] Gather both inference and final transcriptions needed for testing and corrections.
[x] Develop and test a prompt for Claude AI to align the inference transcription with the final one.
[ ] Implement the correction process in Claude AI using the final transcription as a reference.
[ ] Review Claude’s output for accuracy and make prompt adjustments as needed.

API account has insufficient credit to access the Claude API.


Can't bind to 'options' since it isn't a known property of 'input' Angular 4

I am using Angular 4 with CLI, and i am recieving this issue.
Can't bind to 'options' since it isn't a known property of 'input'. ("                 type="file"                              ngFileSelect                              [ERROR ->][options]="options"                              (onUpload)="handleUpload($event)"                   "): ng:///UIModule/CreateChannelModalCmpt.html@64:29 ; Zone: <root> ; Task: Promise.then ; Value: Error: Template parse errors: Can't bind to 'options' since it isn't a known property of 'input'. ("                 type="file"                              ngFileSelect                              [ERROR ->][options]="options"                              (onUpload)="handleUpload($event)"

make sure you have included NgUploaderModule.

Didnt work know i am implenting the new version of the api, so im closing this issue


Feature - front end connection to database

closes #9

Implemented a similar page as for the ERD
Made a button to fetch all quizzes for the topic - front-end connection to database using the $elemMatch operator mentioned in the requirements
the user can see the complete and incomplete quizzes
added more dummy data through a script, using the same user as before
modified the schema.js to insert the dummy data when initializing a new database
added indexes to the schema.js, because it's in the requirements

I think this one is copying some code over from #14 so until that one is merged it's hard to tell what the actual diff looks like. Holding off review until then.

Looks like we have some conflicts now.
I'm not sure if it was you or somebody else that was worried about conflicts yesterday, so I'll just leave it out here:
Fixing conflicts on feature branch
You can do it through GitHub but the interface is not very good. Possibly the easiest way is locally:
# while you are on the feature branch
git pull origin main

Git will cry about conflicts and put you in a MERGING state
Simply open VSCode which has a nice interface for conflict resolution. You can see all conflicts in the "Source Control" tab and decide what to do with them via a GUI. "Accept incoming" overwrites your branch with main. "Accept current" does the opposite. For more complex conflicts, manually moving the code around may be required.
After you've fixed the code and verified everything is working as intended:
git add .

# no message required, it will be automatically provided by Git
git commit

Now you will be sent to your default code editor, likely vim or nano to edit the default commit message.

If vim write :wq and press ENTER:
If nano press CTRL + X

You are done; a new merge commit has been added, just push it into your branch.

should I fix the conflicts and merge this one? @Roman-Octavian

should I fix the conflicts and merge this one? @Roman-Octavian

Let's ask simona on discord. I can do it instead. Or maybe what we can do is that you finish this one and I'll review it, and I'll finish Robert's and you can review that one, so that we have at least 1 objective reviewer each


[Bug]: App delay and crash on second launch using geolocator package

Please check the following before submitting a new issue.

[X] I have searched the existing issues.
[X] I have carefully read the documentation and verified I have added the required platform specific configuration.

Please select affected platform(s)

[X] Android
[ ] iOS
[ ] Linux
[ ] macOS
[ ] Web
[ ] Windows

Steps to reproduce
Add the geolocator package to your Flutter project (version 13.0.1).
Implement location permission requests and retrieval in your main app file, as shown in the code sample.
Run the app on an Android device (Android 14 or others).
On the first launch, the location request works as expected.
Close the app completely (kill the process) and relaunch it.
Observe that on the second launch, the app either takes a long time to load or crashes.
Expected results
The app should retrieve the location data and proceed to the home screen within a reasonable time on all launches, including subsequent launches after being killed.
Actual results
On the second launch (after killing the app):
The app often takes a long time to retrieve location data and load the home screen, or
The app sometimes crashes, failing to load at all.
Code sample
Code sample
import 'package:flutter/material.dart';
import 'location_info.dart';

void main() async {
  WidgetsFlutterBinding.ensureInitialized();
  await _checkLocationPermissions();
  runApp(MyApp());
}

Future<void> _checkLocationPermissions() async {
  try {
    if (await LocationInfo.checkAndRequestLocationPermission()) {
      if (!await LocationInfo.isLocationServicesOn() && !locationServicesOffNotified) {
        Get.rawSnackbar(message: LocaleKeys.location_services_are_off.tr);
        locationServicesOffNotified = true;
      }
    }
  } catch (e) {
    debugPrint("Error checking location permissions: $e");
  }
}

Code sample
import 'package:abs/config/environment_args.dart';
import 'package:flutter/material.dart';
import 'package:geocoding/geocoding.dart';
import 'package:geolocator/geolocator.dart';

class LocationInfo {
  static Future<String?> getISOCountryCode() async {
    if (EnvironmentArgs.isAutomationTestModeEnabled) return null;

    try {
      // Check permission and services before attempting to get location
      if (!await checkAndRequestLocationPermission()) {
        debugPrint("Permission not granted for accessing location.");
        return null;
      }

      if (!await isLocationServicesOn()) {
        debugPrint("Location services are not enabled.");
        return null;
      }

      final position = await getCurrentLocation();
      return position != null ? _getISOCountryCodeFromPosition(position) : null;
    } catch (e) {
      debugPrint("Failed to get ISOCountryCode: $e");
      return null;
    }
  }

  static Future<bool> checkAndRequestLocationPermission() async {
    try {
      final _geolocatorPlatform = GeolocatorPlatform.instance;
      var permission = await _geolocatorPlatform.checkPermission();

      if (permission == LocationPermission.denied) {
        permission = await _geolocatorPlatform.requestPermission();
        if (permission == LocationPermission.denied) {
          debugPrint('Country config: location permission was denied');
          return false;
        }
      }

      if (permission == LocationPermission.deniedForever) {
        debugPrint('Country config: location services were permanently denied');
        return false;
      }

      return permission == LocationPermission.whileInUse || permission == LocationPermission.always;
    } catch (e) {
      debugPrint('Error in checkAndRequestLocationPermission: $e');
      return false;
    }
  }

  static Future<bool> isLocationServicesOn() async {
    try {
      final _geolocatorPlatform = GeolocatorPlatform.instance;
      return await _geolocatorPlatform.isLocationServiceEnabled();
    } catch (e) {
      debugPrint("Error checking location service status: $e");
      return false;
    }
  }

  static Future<Position?> getCurrentLocation() async {
    try {
      final _geolocatorPlatform = GeolocatorPlatform.instance;
      if (!await _handlePermission(_geolocatorPlatform)) {
        debugPrint("Insufficient permissions or location services are off.");
        return null;
      }
      return await _geolocatorPlatform.getCurrentPosition();
    } catch (e) {
      debugPrint("Failed to get current location: $e");
      return null;
    }
  }

  static Future<bool> _handlePermission(GeolocatorPlatform _geolocatorPlatform) async {
    try {
      if (!await _geolocatorPlatform.isLocationServiceEnabled()) {
        debugPrint('Location services are not enabled');
        return false;
      }

      var permission = await _geolocatorPlatform.checkPermission();
      if (permission == LocationPermission.denied) {
        permission = await _geolocatorPlatform.requestPermission();
        if (permission == LocationPermission.denied) {
          debugPrint('Location permission was denied');
          return false;
        }
      }

      if (permission == LocationPermission.deniedForever) {
        debugPrint('Location services were permanently denied');
        return false;
      }

      return true;
    } catch (e) {
      debugPrint("Error handling permissions: $e");
      return false;
    }
  }

  static Future<String?> _getISOCountryCodeFromPosition(Position _currentPosition) async {
    try {
      var placemarks = await placemarkFromCoordinates(_currentPosition.latitude, _currentPosition.longitude);
      return placemarks.isNotEmpty ? placemarks[0].isoCountryCode : null;
    } catch (e) {
      debugPrint('Error getting ISO country code from position: $e');
      return null;
    }
  }
}

Screenshots or video

Screenshots or video demonstration
[Upload media here]

Version
Geolocator Package Version: 13.0.1 play-services-location Version: 21.1.0
Flutter Doctor output
Doctor output
[✓] Flutter (Channel stable, 3.24.3, on macOS 14.4.1 23E224 darwin-arm64, locale en-IN)
    • Flutter version 3.24.3 on channel stable at /Users/jaimis/Developer/flutter-sdk/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 2663184aa7 (9 weeks ago), 2024-09-11 16:27:48 -0500
    • Engine revision 36335019a8
    • Dart version 3.5.3
    • DevTools version 2.37.3

[✓] Android toolchain - develop for Android devices (Android SDK version 35.0.0)
    • Android SDK at /Users/jaimis/Library/Android/sdk
    • Platform android-35, build-tools 35.0.0
    • ANDROID_HOME = /Users/jaimis/Library/Android/sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 17.0.10+0-17.0.10b1087.21-11572160)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 15.3)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 15E204a
    • CocoaPods version 1.16.2

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2023.3)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 17.0.10+0-17.0.10b1087.21-11572160)

[✓] Connected device (1 available)
    • sdk gphone64 arm64 (mobile)     • emulator-5554             • android-arm64  • Android 13 (API 33) (emulator)

[✓] Network resources
    • All expected network resources are available.

Dear @jaimisdomadiya,
It is possible that it takes some time to retrieve your location. Do you have a crashlog that we can take a look at?
Kind regards,

Hi team,
Thank you for your response. Here’s a detailed update regarding the issue:
Current Issue and Behavior
First Launch:
On the first launch, the app behaves as expected:
It prompts the user for location permissions.
The location is retrieved smoothly, and there’s no delay or crash.
Second Launch (App Relaunch After Forced Kill):
After closing (killing) the app and reopening it, the following behavior is observed:
The app displays the splash screen but hangs there for over 20 seconds.
The app ultimately crashes, without reaching the main screen.
Terminal Logs
Below are the logs captured when the app is reopened after being killed:
D/FlutterGeolocator(15165): Flutter engine disconnected. Connected engine count 0 E/FlutterGeolocator(15165): Geolocator position updates stopped D/FlutterGeolocator(15165): Stopping location service. D/FlutterGeolocator(15165): Unbinding from location service. D/FlutterGeolocator(15165): Destroying location service. D/FlutterGeolocator(15165): Stopping location service. D/FlutterGeolocator(15165): Destroyed location service. D/FlutterGeolocator(15814): Creating service. D/FlutterGeolocator(15814): Binding to location service. D/FlutterGeolocator(15814): Flutter engine connected. Connected engine count 1 I/flutter (15814): Failed to source SIM carrier country code

The same thing happens to me, it works fine the first time, then you close the app and go back in and that's when it takes about 20 seconds or the app breaks.
The problem always occurs after accepting the location permissions and it only happens on Android
geolocator: ^13.0.2

+1


Add command to remove dropping/dropped collection meta

Add remove collection-drop command to clean dropping/dropped collection/channel meta
/kind improvement

/lgtm


Upgrade to jasmine 4

Hi @sindresorhus,
Would you be interested in a PR to migrate to Jasmine 4?
If you're ok, I can work on this and submit a PR, otherwise no worries 😉
Thanks!

👍

If anyone wants to work on this, see the initial attemp in https://github.com/sindresorhus/gulp-jasmine/pull/106


crypak / p4k file / zip64

So, I realize this isn't in the realm of responsibility for a zip archive library, but I am trying to open a p4k file (from star citizen) using your lib and getting an unexpected header. My research indicates (even from cryengine's own developer docs) that a crypak/p4k file should just be a zip with some zstd or deflate compression and some files encrypted while others are not even compressed. From what I have been able to find, I should be able to just list the files with standard zip capability, and yet I am getting this unexpected header before I even try to extract.
    Finished dev [unoptimized + debuginfo] target(s) in 4.70s
     Running `target\debug\scprospector.exe`
[src\lib.rs:6] &file = tokio::fs::File {
    std: File {
        handle: 0x00000000000000dc,
        path: "\\\\?\\C:\\Users\\David\\repos\\scprospector\\Data.p4k",
    },
}
file open; trying to open as zip
Error: Encountered an unexpected header (actual: 0x99df8764, expected: 0x2014b50).
error: process didn't exit successfully: `target\debug\scprospector.exe` (exit code: 1)

Looking at some other open source code that successfully opens the file in dotnet and another in python, those authors have some kind of encryption key they seem to open it with. Maybe this is happening because async_zip doesn't support encryption yet? I'm trying to find out what kind of encryption it is. Maybe ZipCrypt, but I'm not sure.
Obviously this isn't something I expect you to solve, but I wondered if you have any insight into why this might happen. If not, that is ok too. Thanks!

Would you be comfortable sending over the p4k file you're using so I could have a quick look? Obviously don't bother if it's got anything personal in it.
Having a good look as well there's not really a clear answer. It's definitely using the ZIP format so it should be possible, but it's not clear if the encryption is on the whole archive or just individual files. If it is just individual files, you shouldn't be getting that specific unexpected header error so it could equally be a bug.

Howdy. The Data.p4k in question is from the Star Citizen game client. I've uploaded a copy to share a link to OneDrive since it's about 77GB (huge!). I wasn't sure github could handle it. Obviously if you have SC you can just look at it directly, but I'll send the link as soon as the upload is done. I'll be planning to remove it after you get a copy since I'm not sure about public distribution beyond CIG's client.

@Majored Here's the link to my problematic Data.p4k, https://1drv.ms/u/s!AidfnSaORZHWnP0hDue-xEeMGYB_wQ?e=d6Y01s
Again, no rush or expectations, but it would be cool for your lib to open this. Or at least for me to learn a bit about it.

All downloaded, thanks.
Will look into it in a few hours.

Some minimal forensics I've tried to do:
Reading the cryengine docs on crypak, which I believe the p4k file is, this should just be a standard zip file with its contents stored in deflate, zstd, or STORED, and sometimes encrypted with crypak standard key.
However, when I use several freely available zip programs to view or analyze the file, I get one of the following:
with p4k extension, it opens and displays 1 folder and 5 files, all related to a starfarer crash
with .zip extension it fails to open entirely
examining with 7z t as a p4k file it claims the type is zip but that it has extra data after the end of the archive
examining with the same command as zip extension claims it is not an archive
The zipdetails command on linux returns the following with either extension:
0000000000 00FFFFFFFF ...         PREFIX DATA
Unexpecded END at offset FFFFFFFF, value 99DF8764
Done
Looking at the file in HxD shows offset FFFFFFFF at around 5-10% of the total file.

It's using the ZIP64 spec extension so that would explain the 0xFFFF....'s, since the spec sets the unused fields in the end of central directory header to that. So the first step would be supporting ZIP64 in the first place for this crate, which doesn't seem too bad honestly.
The one thing I am confused about with that p4k file is why the local file headers are using 0x14034B50 as the signature and not 0x04034B50. I assume it's to signify the difference between a normal vs zip64 header, but I can't see any mention of it in the spec - so not sure if that's specific to p4k files or not.

I don't suppose you'd mind explaining how you figured out it's zip64? :D I'm new to zip file internals and am just figuring it out.
I'm not sure about the signature, to be honest. And, please, don't let other work on your library suffer for my questions. I'm patient, and what I want to do with this is not a huge priority as some C# tools already exist to open this.
I do want to eventually open it in rust, but low priority. I suppose if I really want to learn about zip, I need to begin by reading the spec. I'll get on that.

Just from looking at the end of the file and noticing that there were two PK zip signatures when a normal ZIP would only have one (the end of central directory header): https://gyazo.com/8ff274844a672fcb368bfb0466ebad67
Searching the signature up (converted from little to big endianness), the first one relates to the zip64 end of central directory locator.
https://github.com/Majored/rs-async-zip/blob/main/SPECIFICATION.md#4315
And you're all good regarding questions. I'm happy to help plus I definitely want to support ZIP64 down the line so doing a bit of digging now doesn't hurt.

Holy cow. Your markdown version is so much easier to read than the official pkware APPNOTE.txt file. I'mma use this as my learning reference.

Just want to note that I've started working on implementing Zip64 reading and writing.

I'll go ahead and close this as a majority of the Zip64 implementation has been added. I assume there might be a few rough areas or improvements that can be made so it'll be best to open any separate issues for those.
Thanks again for your work on this @skairunner.


Add support for https

The metrics reporter should support exposing the metrics endpoint via https.

I do not want to reject this, but I think we should think about the prioritizations. Strimzi itself does not support HTTPS for metrics and there does not seem to be any issue with it. So I wonder if this should be postponed to see:

If the metric reporter actually catches up and gets used
If there is any demand

In all regulated industries, encrypting all communication links is mandatory. But even for other users, HTTPS support is kind of expected nowadays for any project. For example jmx_exporter supports HTTPS since last year, so this will likely be needed for anyone wanting to switch over.
This project is expected to be usable outside of Strimzi. Waiting for users to adopt the reporter before adding "standard" features is a bit of a chicken vs egg.
Implementing this feature should not impact the integration work with the operator, and the operator does not need to use that feature.
Maybe we should discuss the roadmap in an upcoming Strimzi community call. In my mind this and the allowlist reconfiguration support (https://github.com/strimzi/metrics-reporter/issues/55) were great features to push for the 0.2.0 release. Not a feature per-se but adding integration tests (and potentially performance tests too, as one of the key motivation is to scale better than jmx_exporter) should also be a priority, so we ensure new features don't break anything.
Then for 0.3.0, I was considering adding support for KIP-714.
I should add that I'm willing to work on these items, I'm not opening issues demanding new features.

Strimzi does not support TLS on metrics and so far there has been only very little demand for it. With pull-based metrics, it is also very hard to implement on the practical level as you need server certificates with the right SANs that are trusted etc. This will be even more of an issue outside of Strimzi than in Strimzi. So I definitely don't think this is a standard feature that would block adoption.

Triaged on 28/11/2024: we agreed this is not higher priority but we can take it open and makes sense to implement when there is time for it.


Lab Setup added to Lab 2 AK

Module/Lab: 00
Exercise: 00
Fixes # .
Changes proposed in this pull request:
"Lab Setup" added to Lab 2 AK

Relevant Issues link

Update to lab 2 - lab setup information added to the LAK


Provide an absolute path to the router for the PHP CLI server to fix "No such file or directory" error

In PHP source commit: https://github.com/php/php-src/commit/816758eda2bcdd69ba505fb6bbb79124a7bf2254 made to fix #75287, there is a change to how the router argument is passed in. Previously, the CLI accepted relative paths (to the current working directory) for the router argument. After this change, it either uses an absolute path, or concatenates the server docroot and the router if an absolute path is not provided. This causes the error seen in #39.
While normally this would be fixed by just changing the router argument to index.php, it breaks compatibility with PHP version 7.1.11 and below as those versions expect an absolute path. Thus, this fix involves getting the absolute path to the router file and passing that in instead.
I have tested this on both 7.1.11 and 7.1.12 and it works.

I can reproduce this as well, any chance we can merge this once we fix coding standards?

👍  we're also affected by this

Maybe we should fix tests to in order to increase chances of seeing this merge in.

Ok I fixed tests and CS on #41 @lstrojny could we merge this one in if tests are OK?

@lstrojny thank you for merging #41 ! We can close this one as #41 contains it.


Add ability to define custom Github URL

Right now the Github API Urls are hard coded for public Github.
It would be nice to be able to define a custom Github API Url for consumers using Github Enterprise.

Afaict github.com is hardcoded in calls to Github's API and in the git url.
Calls to Github's API
https://github.com/sqren/backport/blob/493aefbdee393a05ac3e22e9aceea127f1637de5/src/services/github.ts#L46-L49
Calls to the API are prefixed with https://api.github.com/. Would it be sufficient to just being able to replace the hostname part: https://api.${githubHost}/ where githubHost defaults to github.com ?
Git url
https://github.com/sqren/backport/blob/fce7a4f4f3737cd63214813749398de8fe4415fe/src/services/git.ts#L42-L52
The git remote url currently looks like<EMAIL_ADDRESS>Would this be sufficient:
<EMAIL_ADDRESS>

@sqren This looks like exactly what I was thinking. More than happy to submit a PR

PRs are very welcome.

Resolved in https://github.com/sqren/backport/pull/129


Unable to define allowed_instance_types when defining a launch_template

Description
Please provide a clear and concise description of the issue you are encountering, and a reproduction of your configuration (see the examples/* directory for references that you can copy+paste and tailor to match your configs if you are unable to copy your exact configuration). The reproduction MUST be executable by running terraform init && terraform apply without any further changes.
If your request is for a new feature, please use the Feature request template.

[x] ✋ I have searched the open/closed issues and my issue is not listed.

⚠ Note
Before you submit an issue, please perform the following first:

Remove the local .terraform directory (! ONLY if state is stored remotely, which hopefully you are following that best practice!): rm -rf .terraform/
Re-initialize the project root to pull down modules: terraform init
Re-attempt your terraform plan or apply and check if the issue still persists

Versions

Module version [Required]: 7.4.1

Terraform version: v1.8.0

Provider version(s):

hashicorp/aws: 5.45.0

Reproduction Code [Required]
module "asg" {
  source = "terraform-aws-modules/autoscaling/aws"
  version = "7.4.1"

  name                   = "example"
  autoscaling_group_tags = local.cluster_tags
  update_default_version = true

  create_launch_template = true
  image_id               = local.image_id
  launch_template_name   = local.cluster_name
  user_data              = base64encode(local.user_data)

  security_groups = local.security_groups
  vpc_zone_identifier = data.aws_subnets.private_subnets.ids

  default_cooldown      = 10
  max_size              = 1
  min_size              = 1

  health_check_type         = "EC2"
  health_check_grace_period = 600

  use_mixed_instances_policy = true
  instance_requirements = {
    allowed_instance_types = ["t3.micro", "t2.micro"]
    burstable_performance  = "included"

    memory_mib = {
      min = 256
      max = 8388608
    }

    vcpu_count = {
      min = 1
      max = 8096
    }
  }
}

Steps to reproduce the behavior:
terraform apply

Expected behavior

When running terraform apply my expectation is that the list provided for instance_requirements.allowed_instance_types gets populated within the EC2 launch template when it get created.
I expected it to be populated in the same way that it does when using mixed_instances_policy.override. However, when using this method, the allowed_instance_types get added to the autoscaling group instead of the launch template (this is expected).
Code like shown here:
  mixed_instances_policy = {
    override = [
      {
        instance_requirements = {
          allowed_instance_types = ["t3.micro", "t2.micro"]
        }
      }
    ]
  }

Actual behavior

The launch template is created but the list provided for instance_requirements.allowed_instance_types doesn't get populated into the created launch template.
Terminal Output Screenshot(s)

Additional context

I at the source and found that the problem is due to a missing line of code.
When looking at main.tf:769, I found that allowed_instance_types is utilized within the override block. However, I would expect to find the same logic on main.tf:182, but don't. I have not verified this theory, yet, but adding the following line at main.tf:182 should remedy the issue I'm experiencing:
allowed_instance_types = try(instance_requirements.value.allowed_instance_types, null)

Testing revealed that my solution will work, but also that main.tf:194 will need to be changed to:
      excluded_instance_types = try(instance_requirements.value.excluded_instance_types, null)

I came to the same conclusion, tested the proposed fix and it works.
Will submit a PR shortly.

This issue has been resolved in version 7.5.0 :tada:


Bump to 34.0.137 of the .NET 8 Android workload

Changes: https://github.com/dotnet/android/compare/34.0.113...b0fd011
.NET 8 changelog:

[Mono.Android] AndroidMessageHandler should follow HTTP-308 redirects
[ci] Fix android source path for MAUI test job
[ci] Update checkout path for nightly build
[Mono.Android-Tests] Fix repo URL in redirect tests
[Xamarin.Android.Build.Tasks] Support VS "Build Acceleration"
[xaprepare] Always use release mono bundle
[ci] Update sdk-insertions trigger to manual only
Bump to dotnet/runtime/release/8.0@4a37e7305c 8.0.8
Bump to dotnet/installer/release/8.0.2xx@b638a84fba 8.0.205-servicing.24212.27
[ci] Disable CodeQL on macOS, Linux, non-main jobs
[ci] Use DotNetCoreCLI to sign macOS files
[tests] fix InvalidTargetPlatformVersion for net8.0
[ci] Run "Push Internal" job on AzurePipelines-EO pool
Bump to dotnet/runtime/release/8.0@2d5c0b720c 8.0.8
[Mono.Android] Data sharing and Close() overrides
[Xamarin.Android.Build.Tasks] fix Inputs for _Generate*Java* targets
Bump to xamarin/monodroid@e6a7cf474a
[release/8.0.4xx] Backport maestro and artifact drop infra improvements
Bump to dotnet/runtime/release/8.0@62f69f1e86 8.0.9
Bump to dotnet/runtime/release/8.0@ed13b35174 8.0.9
[build] Update package metadata
[Xamarin.Android.Build.Tasks] Rethink default property values
[Xamarin.Android.Build.Tasks] Fix an issue with incremental builds
[ci] Improve push_signed_nugets job condition

Hmm, this does cause the MAUI integration lane to fail with:
Workload installation failed: Version 34.0.137 of package microsoft.android.sdk.windows is not found in NuGet feeds...

Hmm, this does cause the MAUI integration lane to fail with:
Workload installation failed: Version 34.0.137 of package microsoft.android.sdk.windows is not found in NuGet feeds...

Maybe this is acceptable until their side is able to merge the corresponding change? Otherwise I guess we'll need to inject a step to try to merge our nuget config files or something along those lines


file existence check

Check the file existence while loading the learn_base_nn_file.

I think we should throw an exception rather than just return?
try this
throw std::runtime_error("Could not open xxx file");

lgtm


seperate client as a single package to avoid  fvm-replace package

make client generated become a seperate package, becase there are many package to be replaced, so if client use this replace, maybe project which refer this client maybe inconvience, so make it a single package and no replace package

cannt resolve problem completely,
client -> contract,
client package unable to avoid replace library


Can bun auto generate migrateions?

Hello! Can bun auto generate migrateions?
I build web app using django before, I can migrate database table by :
python manage.py makemigrations
python manage.py migrate

When I read bun's document about migrations, I was confused:
Are files like<PHONE_NUMBER>0026_test_migration.go  auto generated? If so, how can I do that?
Thanks for your reply.

After I Read some examples:
I find this example: https://github.com/uptrace/bun/tree/master/example/migrate
I try to migrate database table by following these steps:

I created a cmd and init file of migrations

run cmd

go run .\bin\bun\main.go db create_go init_user

I successfully  create<PHONE_NUMBER>4734_init_user.go

I find the BUG why step 5 did not create table users.
I run go run .\bin\bun\main.go db migrate for the first time, actually I get
[bun]  20:09:36.790   INSERT                5.283ms  INSERT INTO bun_migration_locks ("id", "table_name") VALUES (DEFAULT, 'bun_migrations') RETURNING "id"
[bun]  20:09:36.791   SELECT                1.067ms  SELECT * FROM bun_migrations
rated_at") VALUES (DEFAULT, '20220313120145', 1, DEFAULT) RETURNING "id", "migrated_at"
 [up migration] for user model
[bun]  20:09:36.795   CREATE TABLE          2.615ms  CREATE TABLE "users" ("id" BIGSERIAL NOT NULL, "name" uuid DEFAULT uuid_generate_v4(), "avatar" VARCHAR, "bio" VARCHAR, "score" BIGINT DEFAULT 0, "flag" BIGINT DEFAULT 0, "is_admin" BOOLEAN DEFAULT true, "email" VARCHAR, "password" VARCHAR, "phone" VARCHAR, "created_at" TIMESTAMPTZ DEFAULT current_timestamp, "updated_at" TIMESTAMPTZ DEFAULT current_timestamp, "deleted_at" TIMESTAMPTZ, PRIMARY KEY ("id"))          pgdriver.Error: ERROR: function uuid_generate_v4() does not exist (SQLSTATE=42883)
_migrations')
panic: ERROR: function uuid_generate_v4() does not exist (SQLSTATE=42883)

After I remove  uuid_generate_v4() from filed ID        int64 bun:"id,pk,autoincrement, default: uuid_generate_v4()"``
I got
[bun]  20:10:48.657   INSERT                 3.72ms  INSERT INTO bun_migration_locks ("id", "table_name") VALUES (DEFAULT, 'bun_migrations') RETURNING "id"
[bun]  20:10:48.659   SELECT                2.159ms  SELECT * FROM bun_migrations
[bun]  20:10:48.662   DELETE                2.646ms  DELETE FROM bun_migration_locks WHERE ("table_name" = 'bun_migrations')
there are no new migrations to run (database is up to date)

The migrator should verify migrate action, if there is no err, a migrate record can insert.

The migrator always marks the migration as applied so you can run db rollback to cleanup the database and then re-apply the migration.

Are files like<PHONE_NUMBER>0026_test_migration.go auto generated?

No, you write migrations manually.

I've updated the docs to mention this - https://bun.uptrace.dev/guide/migrations.html#migration-names


Space Browser designs

Here are the browser designs https://www.dropbox.com/sh/l4oby8qv58aom6w/AABNKpT_AqopP-1QoQgb9bKda?dl=0
The main problem comes from accessing linked objects. With this design, when you click a link it will create a new table to the right of the link you clicked. This will allow data to be traversed infinitely.
We need to see what this feels like, with general json data samples like an actual request from the foursquare api, or anything more complex.
The prototype and experience are the most important at this stage vs being fully integrated with Realm

@GreatApe 's WIP is now here: https://github.com/realm/realm-cocoa/tree/gk-new-browser

See also #1828.

This issue was moved to realm/realm-browser#9


Revert "skip tests for pypi release"

Reverts acryldata/datahub#138

@anshbansal why'd we revert this? Did it cause issues somewhere?

@hsheth2
yes it caused some codegen to not be there. So this probably needs more work. Try installing v<IP_ADDRESS>rc3 and use it to get version and you'll see the error.
One great things was this. It only took ~2mins to get the rc release done without the tests rather than ~26 mins. So if someone gets chance to work on this it can improve the CLI release time.

Got it - I think we just need to make sure ./gradlew :metadata-ingestion:codegen runs prior to the release
Likely won't be 2 minutes, but we can probably get it down to ~10