Create HTTPs connections

Create an HTTPs certificate
Either integrate this HTTPs certificate in the broker (more complicated)
Or in the apache webserver (easier, but makes it more complicated for other people to setup freme with HTTPs)

I would try first to integrate it in the broker.

We received a free SSL certificate from GoDaddy. Next step is to implement this certificate in the broker to accept HTTPs connections. We could also implement it in the homepage to have encrypted API documentation.

See https://github.com/freme-project/Broker/issues/112

We cannot use the free certificate from GoDaddy because we need a certificate for the subdomain, not for freme-project.eu. Lets Encrypt is now in public beta so we could next try their certificate.


PusherConnection delegate crash

Hi, when following the standard getting started, calling pusher.connect() crashes on line 42 in PusherConnection.swift. Specifically, the line shown here crashes.
self.delegate?.debugLog?(message: "[PUSHER DEBUG] Network reachable")

I can track it back as far as line 171 in Reachability.swift:
self.reachabilityChanged()

My code:
let pusher = Pusher(key: PusherSwift.key, options: PusherClientOptions(host: .cluster(PusherSwift.cluster)))
let channel = pusher.subscribe("session-status-1")

let _ = channel.bind(eventName: "App\\Events\\SessionStatusUpdated") {
  guard let data = $0 as? [String: Any], let message = data["message"] as? String else { return }
  print(message)
}

pusher.connect()

My PusherSwift.swift:
enum PusherSwift {

  static var key: String {
    return "xxx"
  }

  static var cluster: String {
    return "eu"
  }
}

Any idea?

Do you have a stack trace or error message?

(lldb) bt
* thread #8: tid = 0x8f3d1e, 0x00000001039c349f libswiftCore.dylib`_swift_abortRetainUnowned + 15, queue = 'uk.co.ashleymills.reachability', stop reason = EXC_BREAKPOINT (code=EXC_I386_BPT, subcode=0x0)
  * frame #0: 0x00000001039c349f libswiftCore.dylib`_swift_abortRetainUnowned + 15
    frame #1: 0x00000001039d6ac1 libswiftCore.dylib`swift_unknownUnownedLoadStrong + 65
    frame #2: 0x0000000100b250ae PusherSwift`PusherConnection.(reachability=0x000060000009b300, self=0x000060000000d421).(closure #1).(closure #1) + 46 at PusherConnection.swift:42
    frame #3: 0x0000000100b25477 PusherSwift`thunk + 23 at PusherConnection.swift:0
    frame #4: 0x0000000100b27121 PusherSwift`partial apply for thunk + 81 at PusherConnection.swift:0
    frame #5: 0x0000000100b36d53 PusherSwift`Reachability.reachabilityChanged(self=0x000060000009b300) -> () + 307 at Reachability.swift:246
    frame #6: 0x0000000100b38535 PusherSwift`Reachability.(self=0x000060000009b300) throws -> ()).(closure #1) + 21 at Reachability.swift:171
    frame #7: 0x0000000100b1bd87 PusherSwift`thunk + 39 at PusherConnection.swift:0
    frame #8: 0x000000010515e980 libdispatch.dylib`_dispatch_call_block_and_release + 12
    frame #9: 0x00000001051880cd libdispatch.dylib`_dispatch_client_callout + 8
    frame #10: 0x0000000105165e6b libdispatch.dylib`_dispatch_queue_serial_drain + 236
    frame #11: 0x0000000105166b9f libdispatch.dylib`_dispatch_queue_invoke + 1073
    frame #12: 0x000000010516707f libdispatch.dylib`_dispatch_queue_override_invoke + 683
    frame #13: 0x00000001051693b7 libdispatch.dylib`_dispatch_root_queue_drain + 720
    frame #14: 0x000000010516908b libdispatch.dylib`_dispatch_worker_thread3 + 123
    frame #15: 0x0000000105537736 libsystem_pthread.dylib`_pthread_wqthread + 1299
    frame #16: 0x0000000105537211 libsystem_pthread.dylib`start_wqthread + 13
(lldb)

Hmmm, are you setting a breakpoint anywhere?
Also, where is that code that you pasted being run? In a ViewController?
Do you have a sample project / app that you could provide that exhibits the problem?
Thanks!

No, not using any breakpoints. The code runs in a ViewController, indeed. Not working from both  viewDidLoad and viewDidAppear. Let me post a sample project in a sec!

Hmm, can't reproduce in an empty project with the code used in the full project. Let me investigate further.

Strange - I can't seem to replicate this in an empty project. Let me close this for now and investigate further. Will reopen when I find something.

Seeing this one also, curious if you figured out the cause @BasThomas?

Haven't had time to look into it yet. Will update when I find something.

@ay8s do you have a sample app that reproduces this?
Are you getting the same error / stack trace?
Or if easier, could you share the code where you're doing Pusher-related things?
This sounds like a nasty crash so I'm keen to dig into it and fix it!

It's crashing in an empty project for me now as well. I'll create a repo.

https://github.com/BasThomas/PusherSwiftCrash

Thanks for the project - just been having a play and I think it's that the PusherConnection object is taken as unowned into the reachability closure but because you're not keeping a reference to the Pusher instance outside of the viewDidLoad function then the connection object gets cleaned up whereas the reachability object does not.
I'm not sure what the best solution is here.
Perhaps self could be weak instead of unowned?
Or maybe it's a question of making the expected usage clearer in the docs. In your example project I get the crash but even if you were to comment out all of the reachability code then I don't think the Pusher interactions would work as expected seeing as the objects would be being cleaned up as soon as the view loads.
WDYT?

Hmm, I see what the problem is. IIRC this was a problem with Apple's CLLocationManager as well.
I am not sure what the difference between weak and unowned is under the hood - but I do think the deallocation should be prevented on your end; the user shouldn't be forced to create a Pusher instance at file scope.

So @ay8s, if this is vague for you - if you declare:
var pusher: Pusher!

in your ViewController, then initialize it in you function, it should work.

As I understand it, unowned means that you're sure that the object that you're saying is unowned will not be nil when you reference it inside the closure, whereas weak means that it might be. It's a bit like using ! instead of ?. Using weak would mean that you wouldn't get the crash but it still means (I'm pretty sure) that the rest of the Pusher-related objects would get cleaned up.
I'm not sure if there's a way to stop the deallocation of the Pusher object when it's not referenced outside the scope of the viewDidLoad function. Even if there is, then I imagine it might lead to the opposite problem, where if someone already has a reference to it outside of the viewDidLoad function then you might end up with the retain count being 1 too high for those use cases.
And thanks for the code snippet explaining what I meant!

Would still be good to see what your setup is @ay8s, if you're cool with that

Right. Tricky issue. I think it'd be good to explicitly tell developers in the docs and code snippets, and explain why it is necessary.

I think I'll likely do a couple of things:

Make the code snippets / readme clearer about the need to retain the Pusher object
Change the unowned self in the capture list to weak self and then potentially log something out suggesting that the PusherConnection object (and therefore likely the Pusher object) has been deallocated when it shouldn't have been.

And like I said, I'll wait to see if Andy has anything to add before closing this.
Thanks for the input @BasThomas!

Yep, that seems like a great idea! And you're welcome on the input 🙂

I've gotten round to doing what I described above

Hey I'm facing this strange issue.
All works fine when app is in foreground. As soon as I put app in background and Lock the phone.
I see in Xcode logs I'm getting this error message with no Push notification for messages.
Your Pusher instance has probably become deallocated


Add caveats for comparing between schools

Pupils keen to compare energy use between schools, particularly the 'Recently your School used' figures, but site does not provide details of caveats which need to be taken into account, such as appreciating different sizes of schools, different methods of heating, different ages of building, different data availability date ranges. Could this be flagged up in some way? Is there a way to include some explanatory text with any data caveats for individual schools on their home page, eg data only available for certain parts of the school, or just to make pupils generally aware of the type of caveats they need to think about.

Y axis adjustments may resolve


Dataloader error

Thanks for your code, I was using the cityscape dataloader for training, but I met this error after I train some epoch. Traceback (most recent call last):
File "train.py", line 165, in
/nas/dataset/cityscape/leftImg8bit/train/dusseldorf/dusseldorf_000197_000019_leftImg8bit.png
train(args)
File "train.py", line 77, in train
for i, batch in enumerate(trainloader):
File "/home/lxt/anaconda3/lib/python3.6/site-packages/torch/utils/data/dataloader.py", line 281, in next
return self._process_next_batch(batch)
File "/home/lxt/anaconda3/lib/python3.6/site-packages/torch/utils/data/dataloader.py", line 301, in _process_next_batch
raise batch.exc_type(batch.exc_msg)
TypeError: Traceback (most recent call last):
File "/home/lxt/anaconda3/lib/python3.6/site-packages/torch/utils/data/dataloader.py", line 55, in _worker_loop
samples = collate_fn([dataset[i] for i in batch_indices])
File "/home/lxt/anaconda3/lib/python3.6/site-packages/torch/utils/data/dataloader.py", line 55, in
samples = collate_fn([dataset[i] for i in batch_indices])
File "/home/lxt/project/seg-pytorch/dataset/dataloader/cityscapes.py", line 100, in getitem
img = np.array(img, dtype=np.uint8)
TypeError: int() argument must be a string, a bytes-like object or a number, not 'PngImageFile'
Exception ignored in: <bound method DataLoaderIter.del of <torch.utils.data.dataloader.DataLoaderIter object at 0x7f7d486d2908>>
Traceback (most recent call last):
File "/home/lxt/anaconda3/lib/python3.6/site-packages/torch/utils/data/dataloader.py", line 333, in del
self._shutdown_workers()
File "/home/lxt/anaconda3/lib/python3.6/site-packages/torch/utils/data/dataloader.py", line 319, in _shutdown_workers
self.data_queue.get()
File "/home/lxt/anaconda3/lib/python3.6/multiprocessing/queues.py", line 337, in get
return _ForkingPickler.loads(res)
File "/home/lxt/anaconda3/lib/python3.6/site-packages/torch/multiprocessing/reductions.py", line 70, in rebuild_storage_fd
fd = df.detach()
File "/home/lxt/anaconda3/lib/python3.6/multiprocessing/resource_sharer.py", line 57, in detach
with _resource_sharer.get_connection(self._id) as conn:
File "/home/lxt/anaconda3/lib/python3.6/multiprocessing/resource_sharer.py", line 87, in get_connection
c = Client(address, authkey=process.current_process().authkey)
File "/home/lxt/anaconda3/lib/python3.6/multiprocessing/connection.py", line 487, in Client
c = SocketClient(address)
File "/home/lxt/anaconda3/lib/python3.6/multiprocessing/connection.py", line 614, in SocketClient
s.connect(address)
ConnectionRefusedError: [Errno 111] Connection refused
I have no idea how to fix it

I meet the same problem, can you give me some advice?

keep the right address of the image list when you load the data


Bus location not working and route 55 update

Cannot load routes or see bus locations.
Also the bus 55 route is different than shown on the east side of the route by the Gentilly wallyworld.

The app gets data from an API at bustime.norta.com which seems to have disappeared. It's possible they moved it or it's down temporarily. The DNS records are still there so the latter is more likely:
dig bustime.norta.com

; <<>> DiG 9.10.6 <<>> bustime.norta.com

;bustime.norta.com.		IN	A

;; ANSWER SECTION:
bustime.norta.com.	1277	IN	A	<IP_ADDRESS>

Can you explain what you mean by the second part?

Also the bus 55 route is different than shown on the east side of the route by the Gentilly wallyworld.

The bus down to the Gentilly walmart goes on the other side of the golf
course on Congress, on the way back it takes Press drive up to LC Simon.
On Sun, Oct 20, 2024, 7:37 PM Benjamin Eckel @.***>
wrote:

Can you explain what you mean by the second part?
Also the bus 55 route is different than shown on the east side of the
route by the Gentilly wallyworld.
—
Reply to this email directly, view it on GitHub
https://github.com/codefornola/nola-transit-map/issues/21#issuecomment-2425330659,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/BMI6OKEP77GHSL4VZ23MSEDZ4REERAVCNFSM6AAAAABQIZJMPSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMRVGMZTANRVHE
.
You are receiving this because you authored the thread.Message ID:
@.***>

Seems they brought it back online and should be working now.

The bus down to the Gentilly walmart goes on the other side of the golf
course on Congress, on the way back it takes Press drive up to LC Simon.

I see, yes the routes themselves are out of date. We don't have a process to keep them up to date. I have an issue open here if someone wants to work on it: https://github.com/codefornola/nola-transit-map/issues/23

Great news on it being up, appreciate you getting back and checking. I
would offer to help update the routes if I had any coding experience. The
website has been a life saver these past few months. Thanks to you and all
who help!
On Mon, Oct 21, 2024, 5:03 PM Benjamin Eckel @.***>
wrote:

Seems they brought it back online and should be working now.
The bus down to the Gentilly walmart goes on the other side of the golf
course on Congress, on the way back it takes Press drive up to LC Simon.
I see, yes the routes themselves are out of date. We don't have a process
to keep them up to date. I have an issue open here if someone wants to work
on it: #23 https://github.com/codefornola/nola-transit-map/issues/23
—
Reply to this email directly, view it on GitHub
https://github.com/codefornola/nola-transit-map/issues/21#issuecomment-2427824501,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/BMI6OKE4E6V6DT5VJCDVWA3Z4V23TAVCNFSM6AAAAABQIZJMPSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMRXHAZDINJQGE
.
You are receiving this because you authored the thread.Message ID:
@.***>


MaxListenersExceededWarning: Possible EventEmitter memory leak detected.

Does anyone has this? I tried to update nightmare version in package.json of x-ray-nightmare package, but no changes.
(node:55027) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 page listeners added. Use emitter.setMaxListeners() to increase limit
(node:55027) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 did-get-redirect-request listeners added. Use emitter.setMaxListeners() to increase limit
(node:55027) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 will-navigate listeners added. Use emitter.setMaxListeners() to increase limit
(node:55027) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 did-get-response-details listeners added. Use emitter.setMaxListeners() to increase limit
(node:55027) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 did-finish-load listeners added. Use emitter.setMaxListeners() to increase limit

PS: there are memory leak somewhere with original nightmare version. Have not tried with a fresh version yet.

To avoid it you can choose between:
require('events').EventEmitter.defaultMaxListeners = 0

and
 NightmareDriver()


log_txt_as_img() modified

#4

I noticed your documentation is very thorough, which is helpful for beginners.

I appreciate the effort you put into making your code readable and well-documented. It's refreshing to see.

This does not work.
txts = log_txt_as_img((256, 256), ["Hello World", "This will overlap"])
Image.fromarray((127.5*txts[0] + 127.5).astype("uint8")).show()
Image.fromarray((127.5*txts[1] + 127.5).astype("uint8")).show()

gives the following images:

You would need to reset the images after each generation. And if you do this, please test if this would actually speed this up significantly.
Also please avoid changing the return type.
I will be closing this for now, but feel free to reopen this, when it actually works and it is faster.


Added fixes to bug where Base Path was not defined in swagger docs

Previously when undefined in swagger docs, the base path would return null. I've changed this so it returns an empty string. Otherwise when exporting to sitemap/repeater/etc. all URLs would be prefixed with null (e.g. GET null/api/test HTTP/1.1).
Also I think VS code may have reformatted all of the code (sorry about that).

Thanks @swarley7 but this PR is no longer relevant due to the latest upgrade of Swurg also this ticket has been raised multiple times previously and I decided that rather than taking users by the hand, force them to provide a basePath (it litterally takes 2 sec to edit a JSON/YAML file). 😄


Add EntityLoader inheritance error message

Proposed change

Add an error message for backward incompatible inheritance use cases.
Type of change

[ ] New country/market holidays support (thank you!)
[ ] Supported country/market holidays update (calendar discrepancy fix, localization)
[x] Existing code/documentation/test/process quality improvement (best practice, cleanup, refactoring, optimization)
[ ] Dependency upgrade (version update)
[ ] Bugfix (non-breaking change which fixes an issue)
[ ] Breaking change (a code change causing existing functionality to break)
[ ] New feature (new python-holidays functionality in general)

Checklist

[x] I've followed the contributing guidelines
[x] This PR is filed against beta branch of the repository
[x] This PR doesn't contain any merge conflicts and has clean commit history
[x] The code style looks good: make pre-commit
[x] All tests pass locally: make test, make tox (we strongly encourage adding tests to your code)
[x] The related documentation has been added/updated (check off the box for free if no updates is required)

Coverage: 99.737% (+0.0002%) from 99.737% when pulling 34ea5aa5b61e8b2112fc8ede732419fbe5fe8e4b on arkid15r:handle-lazy-loading-issues into c548af93873a8ae81c4bf353a15e1ce3baec59bd on dr-prodigy:beta.


Fixing post-presubmit failures due to test timeouts. See https://gith…

…ub.com/istio/istio/issues/633
Release note:

This change is

It shouldn't take that much, and so I'm afraid that size="large" wouldn't solve the problem, anyways it would fail. Maybe it's some test flake. I'll check on my side.

@gnirodi: The following test failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

prow/mixer-e2e-smoketest.sh
4285716e0c9d51abb55812f6bcb289b1f493b8e2
link
/test mixer-e2e-smoketest

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

is there a medium ? why large ?

This PR is no longer required, given that the root cause for timeouts were due to a race condition that was fixed via https://github.com/istio/mixer/pull/1210


Docstrings on all components

Each component requires to have docstrings to document its behavior and also populate the Storybook view :

@telamonian left TODO at everyplace where docstrings are missing.

@telamonian left TODO at everyplace where docstrings are missing.

In every public interface that existed as of the middle of last week, at least.
@ostojics Going forward, there should be one docstring for each parameter of every interface, and one docstring for each exported function/class. When in doubt, add a docstring to it. Make this a priority, and get into the habit of always adding these to new code as you go. These will be extremely helpful to other devs as they onboard onto the project

PR: https://github.com/Quansight/conda-store-ui/pull/43


More static analysis

variable redeclaration
returns used outside functions

Coverage increased (+0.1%) to 84.768% when pulling 52ca3ba83c6c07313b5efb57adc91a64bd9329e9 on semantic-analysis into a52ebba6c12b309ccf3853a7f87c790c80ea22ac on master.


Fix abort to use Util.exit()

This fixes the bug where pressing esc would still execute a pending operator command.

ty!


Create a page in the docs to explain StreamYoink

Done and created: https://docs.superfluid.finance/docs/protocol/money-streaming/examples/example2#changing-the-images


feature: add offset property to the mini view

Did you check the docs?

[X] I have read all the noice.nvim docs

Is your feature request related to a problem? Please describe.
The mini view is rendered on top of the status line

Describe the solution you'd like
Be able to provide an offset so that the mini view would be located one row above the status line
Describe alternatives you've considered
Not that I can think of
Additional context
No response

Awesome, thanks!

stumbled over the same issue after I disabled the cmdline option.
set config.views.mini.positio.row to -2 fixed it
 opts = {
      cmdline = {
        enabled = false,
      },
      messages = {
        enabled = false,
      },
      views = {
        mini = {
          position = {
            row = -2,
          },
        },
      },


Remove unnecessary error when the one option and doc are inconsistent

Purpose
Error:  Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.319 s <<< FAILURE! - in org.apache.paimon.docs.configuration.ConfigOptionsDocsCompletenessITCase
Error:  org.apache.paimon.docs.configuration.ConfigOptionsDocsCompletenessITCase.testCompleteness  Time elapsed: 0.298 s  <<< FAILURE!
java.lang.AssertionError:
Documentation is outdated, please regenerate it according to the instructions in paimon-docs/README.md.
	Problems:
		Documentation of hadoop-conf-dir in HiveCatalogOptions is outdated. Expected: default=((none)) description=(File directory of the core-site.xml、hdfs-site.xml、yarn-site.xml、mapred-site.xml. Currently, only local file system paths are supported.
If not configured, try to load from 'HADOOP_CONF_DIR' or 'HADOOP_HOME' system environment.
Configure Priority: 1.from 'hadoop-conf-dir' 2.from HADOOP_CONF_DIR  3.from HADOOP_HOME/conf 4.HADOOP_HOME/etc/hadoop.).
		Documentation of hive-conf-dir in HiveCatalogOptions is outdated. Expected: default=((none)) description=(File directory of the hive-site.xml , used to create HiveMetastoreClient and security authentication, such as Kerberos, LDAP, Ranger and so on.
If not configured, try to load from 'HIVE_CONF_DIR' env.).
		Documented option hadoop-conf-dir does not exist.
		Documented option hive-conf-dir does not exist.

The error has ambiguity, when  both document  and ConfigOption exist, but the description or default value are not same.
Documented option hadoop-conf-dir does not exist.
    Documented option hive-conf-dir does not exist.

Is it feasible to add the following code?
We can remove the invalid error.

I cannot get this...
Can you add a case for this?

I cannot get this...
Can you add a case for this?

@JingsongLi , because the parameters of  doc and option class  are same, no error

I still can not get it, I am closing this, re-open if you think it is solid to describe the problem.

I still can not get it, I am closing this, re-open if you think it is solid to describe the problem.

Okay, this is not important


fix: change the screen unique id generation method

Description of changes:

change the screen unique id generation method

How did you test these changes?
(Please add a line here how the changes were tested)
Documentation update required?

[x] No
[ ] Yes (Please include a PR link for the documentation update)

General Checklist

[x] Added Unit Tests

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Codecov Report
Patch coverage: 100.00% and project coverage change: -0.01% :warning:

Comparison is base (ae5df3c) 86.59% compared to head (df7d414) 86.58%.

Additional details and impacted files
@@             Coverage Diff              @@
##               main      #36      +/-   ##
============================================
- Coverage     86.59%   86.58%   -0.01%
  Complexity      393      393
============================================
  Files            39       39
  Lines          1425     1424       -1
  Branches        125      125
============================================
- Hits           1234     1233       -1
  Misses          116      116
  Partials         75       75

Files Changed
Coverage Δ

...tion/clickstream/client/AutoRecordEventClient.java
99.08% <100.00%> (-0.01%)
:arrow_down:

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


{Network} network public-ip ddos-protection-statu: Deprecation pre-announcement

Related command

related to https://github.com/Azure/azure-cli/issues/29494
Description

Testing Guide

History Notes

[Component Name 1] BREAKING CHANGE: az command a: Make some customer-facing breaking change
[Component Name 2] az command b: Add some customer-facing feature

This checklist is used to make sure that common guidelines for a pull request are followed.

[ ] The PR title and description has followed the guideline in Submitting Pull Requests.

[ ] I adhere to the Command Guidelines.

[ ] I adhere to the Error Handling Guidelines.

Network


Rearchitect documentation generator from markdown

Describe what should be investigated or refactored
We have had issues with Docusaurus and would like to explore other options for hosting a documentation site.  This should explore:

If we can modify Docusaurus to fit our needs better
If another solution better meets our needs

This should not lose the following:

Search - including good index and offline support
Support for custom MDX syntax (notes and admonitions)
Configurability/themability

This will also need an ADR comparing different options and explaining why we went a particular direction.
Links to any relevant code
https://github.com/defenseunicorns/zarf/tree/main/docs-website
Additional context
This comes out of us looking at our docs and thinking about how we could incorporate them into Zarf to bring it along to the airgap.

relates to - https://github.com/defenseunicorns/zarf/issues/1278

also - https://github.com/defenseunicorns/UnicornUI/issues/86

We can also add DocsGPT support by training the model for Zarf , it can give better understanding to the  users and also handle most of the queries

Summarizing this thread (https://kubernetes.slack.com/archives/C03BP9Z3CMA/p1678915928812279):
I think this is a good place to build off from for an ADR I know @mike-winberry is working this: https://github.com/defenseunicorns/UnicornUI/issues/86 to see if docs can just be inside of Zarf and there are other options we should explore (including Kiwix which we experimented with a while back: https://github.com/defenseunicorns/zarf/tree/example/kiwix) in addition to the more traditional md to docs generators.
The biggest thing will be offline support most likely since our primary deploy persona (Ashton) is usually less tech savvy, and won't always have internet access.


Change publish branch for GitHub Action

Fix https://github.com/apache/incubator-apisix-dashboard/issues/215

@juzhiyuan Kindly review

Thanks!

Hi @Rapiz1 , not sure what happened... but after deployment, the commit removes most of the contents ...
https://github.com/apache/incubator-apisix-website/commit/bd6283d6b0864d25b7b172155534419e2d27ae24

This my Hugo version..

On my machine, hugo produces the same output as GitHub Action. It may be related to the version. I will look into it.

It looks better! but still has someting wrong 🤔

And this one https://apisix.apache.org/downloads/

Just created a PR here https://github.com/apache/incubator-apisix-dashboard/issues/216


Jupyter is not supported in Domain Joined HDInsight Cluster

@prashanthmadi : Thanks for your contribution! The author, @omidm1, has been notified to review your proposed change.

@prashanthmadi Thank you Prashanth!
#sign-off

@JennieHubbard: I'm sorry - only the author of this article, @omidm1, can sign off on your changes. But we do have an exception process - if you are on the Microsoft content or product team for this product area, you can ask the PR review team to review and merge it by sending mail to the techdocprs alias.

@prashanthmadi : Thanks for your contribution! The author, @omidm1, has been notified to review your proposed change.


[CARBONDATA-3381] Large response size Exception fix for index server

Issue: Response size from the server is being bloated up 10x because, hadoop RPC is writting class name for each array element that is returned as a response. This causes the RPC framework to throw Large response size exception.
Solution: Make a ExtendedBlockletWrapper and write the ExtendedBlocklets as List instead of array.
Be sure to do all of the following checklist to help us incorporate
your contribution quickly and easily:

[ ] Any interfaces changed?

[ ] Any backward compatibility impacted?

[ ] Document update required?

[ ] Testing done
Please provide details on
- Whether new unit test cases have been added or why no new tests are required?
- How it is tested? Please attach test report.
- Is it a performance related change? Please attach the performance test report.
- Any additional information to help reviewers in testing this change.

[ ] For large changes, please consider breaking it into sub-tasks under an umbrella JIRA.

Build Success with Spark 2.1.0, Please check CI http://<IP_ADDRESS>:8080/job/ApacheCarbonPRBuilder2.1/3178/

Build Success with Spark 2.3.2, Please check CI http://<IP_ADDRESS>:8080/job/carbondataprbuilder2.3/11443/

Build Success with Spark 2.2.1, Please check CI http://<IP_ADDRESS>:8080/job/ApacheCarbonPRBuilder1/3375/

LGTM

LGTM for the large response size fix

Build Failed  with Spark 2.1.0, Please check CI http://<IP_ADDRESS>:8080/job/ApacheCarbonPRBuilder2.1/3263/

Build Success with Spark 2.3.2, Please check CI http://<IP_ADDRESS>:8080/job/carbondataprbuilder2.3/11535/

retest this please

Build Success with Spark 2.1.0, Please check CI http://<IP_ADDRESS>:8080/job/ApacheCarbonPRBuilder2.1/3343/

Build Success with Spark 2.3.2, Please check CI http://<IP_ADDRESS>:8080/job/carbondataprbuilder2.3/11610/

Build Success with Spark 2.2.1, Please check CI http://<IP_ADDRESS>:8080/job/ApacheCarbonPRBuilder1/3544/

@kunal642 Please rebase it.


Update my maintainer email

The email in MAINTAINERS file already bounces: this one should work :)

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 98.175%

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
1346

Relevant Lines:
1362

💛  - Coveralls


[Checkout UI] Allow customers to opt-in to sms marketing on the thank you / order status pages

Please list the related package(s)
checkout-ui-extensions
If this related to specific APIs or components, please list them here
Allow customers to opt-in to sms marketing on the thank you / order status pages
https://shopify.dev/docs/api/checkout-ui-extensions/2024-01/components/forms/consentphonefield
Is your feature request related to a problem? Please describe.
Some merchants want to present the opt-in on the thank you page after purchase and not within the checkout flow.
Describe the changes you are looking for
Allow customers to opt-in to sms marketing on the thank you / order status pages

We need this for the mail marketing too.


#20 - per AdOps update random values to 1-100

AdOps would like to increase the randomness. Quick Edit to go from 1-20, to 1-100

2.2.10 https://www.youtube.com/watch?v=4dGOfFbzvq4


Fix the problem of InvokeTelnet that user use [invoke sayHello(xxx)] without executing the cd command first

What is the purpose of the change
If the user directly uses the invocation method without the service name prefix, that is, invoke sayHello (xxxx), and has not executed the cd xxx command beforehand, the NPE problem will occur

Codecov Report

Merging #9260 (3023aeb) into 3.0 (bfef39b) will decrease coverage by 0.36%.
The diff coverage is 100.00%.

@@             Coverage Diff              @@
##                3.0    #9260      +/-   ##
============================================
- Coverage     64.96%   64.59%   -0.37%
  Complexity      328      328
============================================
  Files          1206     1206
  Lines         51799    51810      +11
  Branches       7725     7687      -38
============================================
- Hits          33650    33469     -181
- Misses        14515    14716     +201
+ Partials       3634     3625       -9

Impacted Files
Coverage Δ

...rg/apache/dubbo/qos/command/impl/InvokeTelnet.java
71.12% <100.00%> (-0.31%)
:arrow_down:

...figcenter/file/FileSystemDynamicConfiguration.java
0.00% <0.00%> (-57.21%)
:arrow_down:

...fig/configcenter/TreePathDynamicConfiguration.java
60.00% <0.00%> (-25.72%)
:arrow_down:

...ache/dubbo/remoting/transport/AbstractChannel.java
75.00% <0.00%> (-12.50%)
:arrow_down:

...dubbo/common/status/support/LoadStatusChecker.java
50.00% <0.00%> (-11.54%)
:arrow_down:

...mmon/threadpool/support/fixed/FixedThreadPool.java
80.00% <0.00%> (-7.50%)
:arrow_down:

.../threadpool/support/limited/LimitedThreadPool.java
83.33% <0.00%> (-5.56%)
:arrow_down:

...o/rpc/protocol/injvm/DefaultParamDeepCopyUtil.java
57.89% <0.00%> (-5.27%)
:arrow_down:

...ache/dubbo/rpc/protocol/grpc/GrpcOptionsUtils.java
31.81% <0.00%> (-5.14%)
:arrow_down:

...apache/dubbo/rpc/protocol/tri/GrpcDataDecoder.java
80.00% <0.00%> (-4.45%)
:arrow_down:

... and 47 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 bfef39b...3023aeb. Read the comment docs.


Add move event emitting staking and rewards info during epoch change

This PR implements event emission during epoch changes.
One system level event SystemEpochInfo is emitted, and one validator level event ValidatorEpochInfo is emitted per validator.

addresses #6835

looks like tallying_rule_global_score is not implemented yet, assuming it will be done in a follow-up PR.
Yes, will be in this PR #7310


KYLIN-3336

When using diag.sh, got following exception:
2018-04-04 16:14:18,222 ERROR [pool-7-thread-3] tool.DiagnosisInfoCLI:171 : Error in export HBase usage.
java.lang.NoSuchMethodException: org.apache.kylin.tool.HBaseUsageExtractor.execute([Ljava.lang.String;)
at java.lang.Class.getDeclaredMethod(Class.java:2017)
at org.apache.kylin.tool.DiagnosisInfoCLI$3.run(DiagnosisInfoCLI.java:168)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1152)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:622)
at java.lang.Thread.run(Thread.java:745)
Because getDeclaredMethod(String name, Class<?>... parameterTypes) can not get the inherited methods

Can one of the admins verify this patch?

Pull Request Test Coverage Report for Build 3106

0 of 1 (0.0%) changed or added relevant line in 1 file are covered.
32 unchanged lines in 8 files lost coverage.
Overall coverage decreased (-0.05%) to 23.925%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

tool/src/main/java/org/apache/kylin/tool/DiagnosisInfoCLI.java
0
1
0.0%

Files with Coverage Reduction
New Missed Lines
%

server-base/src/main/java/org/apache/kylin/rest/util/QueryRequestLimits.java
1
47.62%

core-metadata/src/main/java/org/apache/kylin/source/datagen/ColumnGenerator.java
1
81.08%

core-metadata/src/main/java/org/apache/kylin/metadata/cachesync/Broadcaster.java
2
60.2%

core-cube/src/main/java/org/apache/kylin/cube/cuboid/TreeCuboidScheduler.java
2
68.46%

core-common/src/main/java/org/apache/kylin/common/KylinConfigCannotInitException.java
2
0.0%

core-common/src/main/java/org/apache/kylin/common/KylinConfig.java
4
33.19%

core-common/src/main/java/org/apache/kylin/common/KylinConfigBase.java
8
16.12%

storage-hbase/src/main/java/org/apache/kylin/storage/hbase/HBaseConnection.java
12
15.18%

Totals

Change from base Build 3104:
-0.05%

Covered Lines:
14337

Relevant Lines:
59926

💛  - Coveralls

Codecov Report

Merging #128 into master will decrease coverage by 0.05%.
The diff coverage is 0%.

@@             Coverage Diff              @@
##             master     #128      +/-   ##
============================================
- Coverage     21.93%   21.88%   -0.06%
+ Complexity     3895     3888       -7
============================================
  Files           993      993
  Lines         59926    59926
  Branches       8645     8645
============================================
- Hits          13146    13115      -31
- Misses        45559    45591      +32
+ Partials       1221     1220       -1

Impacted Files
Coverage Δ
Complexity Δ

...n/java/org/apache/kylin/tool/DiagnosisInfoCLI.java
0% <0%> (ø)
0 <0> (ø)
:arrow_down:

...e/kylin/common/KylinConfigCannotInitException.java
0% <0%> (-100%)
0% <0%> (-1%)

...rg/apache/kylin/storage/hbase/HBaseConnection.java
11.51% <0%> (-5.24%)
4% <0%> (-2%)

...org/apache/kylin/rest/util/QueryRequestLimits.java
35.71% <0%> (-4.77%)
5% <0%> (-1%)

.../apache/kylin/cube/cuboid/TreeCuboidScheduler.java
63.84% <0%> (-2.31%)
0% <0%> (ø)

...main/java/org/apache/kylin/common/KylinConfig.java
30.67% <0%> (-1.69%)
20% <0%> (-1%)

...g/apache/kylin/source/datagen/ColumnGenerator.java
70.94% <0%> (-1.36%)
8% <0%> (ø)

.../java/org/apache/kylin/common/KylinConfigBase.java
14.89% <0%> (-1.23%)
35% <0%> (-2%)

...g/apache/kylin/metadata/cachesync/Broadcaster.java
54.72% <0%> (-1%)
21% <0%> (ø)

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 2cda6c3...f790336. Read the comment docs.


[WASM] Add a script that compiles all wasms for WebLLM

This PR adds a script that compiles all WASMs for WebLLM. After preparations like prep_emcc_deps.sh, simply run python web/compile_wasm.py. Tested for the past two releases of WASMs (v0.2.48 and v0.2.43).

Close for now, will integrate it with mlc package later.


License of the pretrained models

I noticed that once from_pretrained is called, the library automatically downloads a pretrained model from a URL. However, I found no license included in the downloaded pretrained model file. What is the license of the pretrained models?

Just found it's under Apache v2 in the Google bert repo. Closing.


Fix Unable to parse embedding provider response message errors from Bedrock amazon.titan-embed-text-v2:0

What this PR does:
Fix Unable to parse embedding provider response message errors from Bedrock amazon.titan-embed-text-v2:0
The actual exception is from the deserialization due to the appearance of an unexpected embeddingsByType field in the response. Add  @JsonIgnoreProperties({ "embeddingsByType" }) to fix it
Which issue(s) this PR fixes:
Fixes #1486
Checklist

[x] Changes manually tested
[ ] Automated Tests added/updated
[ ] Documentation added/updated
[x] CLA Signed: DataStax CLA

That should work -- would there be any way to test this? I guess our manually run embedding provider test suite would do that?
I added one note on alternative handling; feel free to use or ignore whatever makes most sense.

Yes, the test suite covers that


[3.x] Add missing WIN32_LEAN_AND_MEAN

3.x version of https://github.com/godotengine/godot/pull/52963

Thanks!


move index page style block into stylus files

move interactive banner styles into new stylus file
add parameter to footer partial on homepage so it has a specific html class attribute and has specific css applied only on that page

Thanks!


Handling a worker / task that has failed

Is there an option to re-invoke worker if it has failed / crashed? Not too sure what WithPanicHandler() does.

There is no way to re-invoke a failed task, you can only call pool.Invoke() again.
PanicHandler prevents the process from crashing from one panic in a task.


feat: add labels with model and app ports

What does this PR do?
Adds labels to the application's pod giving the ports of the model and app, so the Environments manager can know them.
What issues does this PR fix or reference?
As part of #61
How to test this PR?
Start an application with ai-studio.yaml containing ports information for model and/or app, and check the labels exist in the pod

2 remarks:

if there are several ports we keep only the first one, we should store all of them and them ask the user to choose
what is the added value of having them from labels rather that info from pod ?


Tricky68k sources

Hi, sorry for my probably lame questions/requests, but i'm not working with xcode usually.
I'm working on an assembly project for old 68k based macintosh computers, and tricky68k is the perfect test platform for developing, the only thing i would like to add, is a bitmap, that is showing the content of the memory (1 pixel = 1 bit, 8 horizontal pixels = 1 byte). This is why i would like to edit the sources with xCode.
Could you point me how to compile tricky68k using xCode on my Mac OS X El Capitain? I downloaded the package, but when i'm trying to compile, it reports a lot of error (some missing file, and some syntax issues). I think there should be also some additional files to download.
Thanks!

Check that you also pulled all the submodules used by Tricky68k by using git pull --recurse-submodules.
Additionally, before the first build or after a clean, Xcode may report that there are errors due to the lack of some headers which are produced at compile time. These errors are false negatives; once you build Tricky68k for the first time they will disappear. When building, additional errors are reported by Xcode because when building the GNU linker it misinterprets the output of the makefile, but the build succeeds anyway. Again, on subsequent builds these errors will no longer be visible.
Apart from that, there are no special procedures to follow to build Tricky68k: just open the root workspace M68kSim.xcworkspace (not the xcodeproj files!) and then click the Build & Run toolbar button.
Good luck with your project!

Thank You!


HDDS-8790. Split EC acceptance tests

What changes were proposed in this pull request?
Extract EC-related tests into a separate acceptance check split.
Add unique name for the two repeated read.robot executions.
https://issues.apache.org/jira/browse/HDDS-8790
How was this patch tested?
Ran test-ec.sh locally.
CI:
https://github.com/adoroszlai/hadoop-ozone/actions/runs/5209512124/jobs/9399896144

Thanks @sodonnel for the review.

how the additional of the - EC line in the worflows/ci.yml file creates the extra split and knows to only execute this new test-ec.sh script.

Most test*.sh scripts have a #suite:X comment, where X defines which split to run it in.  Scripts without such comment are included in the misc split.
The Github workflow file makes the split name available in the OZONE_ACCEPTANCE_SUITE environment variable.  This is used for filtering when finding test scripts to run.


Add bookmarks

As a user of the application, I want to be able to bookmark pages in the application. These bookmarks should show up in the "saved" tab of the resources drawer in a searchable list.
Items in this list should have the following features:

link to go to the view/edit pages
link to view on the ATT&CK Website (see center-for-threat-informed-defense/federated-attack-editor#11)
Quick LinkByID access

Probably requires REST API/database support.


flutter_gallery_ios32__transition_perf 90th_percentile_frame_build_time_millis regressed

It increased from 7ms to 9ms from https://github.com/flutter/flutter/commit/a11d73148c90dd2980f0ab5a2d88159269937e3a
Similar benchmarks also regressed:

flutter_gallery__transition_perf 90th_percentile_frame_build_time_millis
flutter_gallery_ios__transition_perf 99th_percentile_frame_build_time_millis

CC @gspencergoog

I am suspicious of this benchmark change: Golem seems to think that this change also reduced the hello world application size by a lot (and I just can't see that being true), and improved some other things. See here.
I'm happy to revert this and see if it truly is problematic, however.

Note that if Golem is right, this is likely to cause a 3-5% increase in hello_world size, and a 15% reduction in velocity_tracker_bench_aot_frontend (Moto G4).

Thank you Greg for the quick reaction! Can you reproduce any performance regressions (90th build time, hello_world size, etc.) locally using either Moto G4 or iPhone 6S?

I've been trying to reproduce this on a Moto G4 and have been able to reproduce a smaller change (at least for flutter_gallery__transition_perf, both for the average and the 90th percentile), of about 7%.
I'm stepping through my changes to see what is causing the regression.

It's nice to hear that it can be reproduced. LGTM on the revert.

I recommend removing the TODAY status of this issue.  Reverting the change would cause more of a regression.

Hmm, actually I was reading the Golem results wrong (compile time will regress by 15%, not run time).  Proceeding with the revert.


Adjust the order of files in working directory.

Issue Type: Feature Request
If I have two file: "file5.lex" and "file5.1.lex", the order of the two file in working directory is:
"file5.1.lex"
"file5.lex"
But I want the file order is:
"file5.lex"
"file5.1.lex"
If I have two file: "file.lex" and "file-2.lex", I also want the order is:
file.lex
file-2.lex
VS Code version: Code 1.63.1 (fe719cd3e5825bf14e14182fddeb88ee8daf044f, 2021-12-14T02:13:54.292Z)
OS version: Windows_NT x64 10.0.19042
Restricted Mode: No

Duplicate #27286


Re-work VEP content

Fixes

Relevant for #287 #269 #281 #268

Issue

The main pipeline's annotation code doesn't work for the AIP use-case
The annotation code in cpg_workflows expects multiallelic data, such that each locus only appears once per dataset.
VEP is executed on multiallelic data, joined with Locus as the only common key, then the variants are split to have a different alt allele on each 'row'. Hail accurately partitions the VEP annotations corresponding to each alt allele.
AIP imports from this annotation library and allows for variant data to be annotated/re-annotated. As this data is (in our use-case) already split into individual alt alleles, the Locus-only join can cause problems where all alt alleles at the same locus will have the same annotation applied to each, e.g. in this situation, annotation from one of these variants would be wrongly applied to all 3:

chr1:12345 C>T
chr1:12345 C>TGAGTAGATC
chr1:12345 C>A

Proposed Changes
Takes all of the methods we use from the cpg_workflows library and duplicates into AIP with a few changes:

No VQSR data applied
VEP data is indexed and joined on both locus and alleles, meaning that it can safely annotate a split VCF/MT
None of the computed Hail scripts fields are handled (e.g. sortedTranscriptConsequences) because AIP doesn't use them. This should make the runtime and data footprint much smaller
No switches to enable running in dataproc, or sorting/tabix'ing an intermediate VCF

Being able to correctly annotate variants split out into individual alleles is a prerequisite for using the re-annotation feature, and for being able to generate new PM5/Annotated ClinVar datasets
Checklist

[x] Related Issue created
[ ] Tests covering new change
[ ] Linting checks pass

Does this mean we will still be using the VEP data from the prod pipeline if it is available or well we need to re-run VEP for each dataset?

Does this mean we will still be using the VEP data from the prod pipeline if it is available

Yup! The first pass through is fine because GATK calls in a multi-allelic way and the process is designed to complement that. The issue only crops up because the splitting is non-reversible, so any subsequent re-annotations are on differently formatted starting data.

To check that this annotation implementation works, I've taken a subset of the schr-neuro dataset (chr17 only)
The original whole genome results are here:
https://main-web.populationgenomics.org.au/schr-neuro/reanalysis/2023-03-13/summary_output.html
The subset results are here:
https://test-web.populationgenomics.org.au/schr-neuro/reanalysis/2023-05-03/summary_output.html
all chr17 variants are presented the same, with identical annotation. I'd also like to re-run the Clinvar annotation to check that the original issue is solved. There's tons of variants which share alleles in that dataset, so it should be a good test case. The only issue is how dodgy the ClinVar VCF formatting is...


Unable to retrieve latest Purpur build (got result of 0)

First it says:
Unable to retrieve latest Purpur build (got result of 0)
Then, it says:
Error: Unable to access jarfile /minecraft/purpur.jar
The second one makes sense given the first one. But, I am not sure what I need to do to make this work?
I did use this as a docker-compose.yml. Maybe that is the problem?
version: '3.3'
services:
    legendary-minecraft-purpur-geyser:
        volumes:
            - 'purpur-1.20-data:/minecraft'
        ports:
            - '25565:25565'
            - '19132:19132/udp'
            - '19132:19132'
        restart: unless-stopped
        image: '05jchambers/legendary-minecraft-purpur-geyser:latest'

volumes:
    purpur-1.20-data:
        external: true

I have the same problem because openssl fails on my side. Somehow, running openssl inside the container throws an error. I am trying to find a solution. In other containers running on the same host openssl works


CONNECT-153 Html in TableModule cells

Demo application: Remove unneccessary ng2-charts installation
TableModule: Allow html code in table cells
InfoPanelModule: Make image and imageClass inputs optional
NavigationBarModule: Remove obsolete flag

Question: Should this increment the version of wonka-ui to 1.0.2? @emmaLitzler @jihusby

Question: Should this increment the version of wonka-ui to 1.0.2? @emmaLitzler @jihusby

It depends whether we want to update the npm package with these changes.


Installing app on Android error (Ionic Framework)?

(Sorry if i don't mark this as a question, i'm new here)
By the way, i find that Asteroid is amazing! Good job!
So, i am currently developing a Ionic Framework App (Android), to communicate with a Meteor App (with it's own server), and i managed to succeed when testing in the browser (Google Chrome), but when i installed the app on a real Android device, it gave me an error...
WebSocket connection to 'ws://my.meteor.app.server' failed: Error during WebSocket handshake: Status line does not end with CRLF
It shows me that the error is on ddp.js, line 62. I have tried some things, like adding '\r' to the end of some variables, but i don't quite understand this WebSocket thing... Is there anyway someone can help me?

Hello there,
I'm afraid I don't have enough elements to pinpoint exactly what the problem is, but if I'd have to guess, I'd blame the android browser support for websockets (it may not be properly implemented).
Try to include in your app the sock.js library and see if it solves the problem (it would allow to fallback to http long polling).
If it doesn't solve the issue, share the code that's causing it if you can. Otherwise we can schedule a hangout to try to figure it out. :smiley:
Let me know
Cheers!

P.S. - don't worry about the labels thing, I was trying to label some issues as questions to transform them into "alternative documentation", but I'm not sure whether it's a good idea. :smiley:

Thank you for the reply Paolo, i have tried using the sock.js already, but i didn't succeed in 'configuring' it on the server-side. I installed the Phonegap plugin on the Ionic app, but with no success either. I am currently trying to use the socket.io library, but now my error is on CORS, wich i can't configure in the server-side to accept my connection...
Let me try to explain what i'm trying to do here...
1st - I want a Meteor application (in this case, it's running on the Cloud9 IDE, for lack of convenience) with its own server, MongoDB as a database, right?
2nd - I want a Ionic (Cordova/Phonegap) application for Android to connect with that Meteor app via DDP, or any other way i can manipulate the database with, either by calling methods on the Meteor side, or using your Asteroid library.
3rd - I want my .NET application to do the same thing the Ionic one does, connect via DDP or anything else i will be able to manipulate data.
The Meteor app is going to act more like a server than a client... What i really need is the intercommunication with the .NET and Ionic apps. And a database on the cloud. I tried a lot of alternatives, but i think that in this way, it will be easier for me, as i'm not quite an expert on programming actually.
I have an idea too, but i don't know if it's best... It would be like, make a Meteor app, like a website really. Host it, and then on the Ionic and .NET apps, i make like a WebView or something, to access that website... But i don't know if it would work pretty well... Anyway, i'm open for suggestions :-)
P.S. - Yes, i am the one who sent you an email about the promise thing on the login method, cause i really don't know how to get that 'callback' (the message that the login method returns) and display it on the client.
P.P.S (or P.S.S, i don't know) - As of a hangout, it could be a possibility, but it would have to be on a weekend, as most of the time i'm working... If you want, we could have one this Saturday, if i can't figure out anything by then.
Thank you so much Paolo, and sorry if i didn't make myself clear, my english is not the best ;-)

I found a 'angularDDP' library (https://github.com/afuggini/angular-ddp), been trying to use it, since SockJS was not a success (it uses HTTP, and i couldn't enable the 'Allow-Cross-Origin-Request' thingy on my server (the Meteor app)... But now, i can't use this new library either, it is kinda 'incomplete'. It says that the $q module is not avaiable... I'm stuck in this DDP thing for almost 3 days now, why does it work fine in the browser, but when i go to mobile it gives me a CRLF error??

If you want to see a bit of code, i asked the same question on StackOverflow. Here's the link:
http://stackoverflow.com/questions/28455004/websocket-handshake-error-on-ionic-app-status-line-does-not-end-with-crlf

@brunodb3 Did you ever manage to solve this?

@andreasbhansen
I've similar issue.
I can't get work this with Ionic framework...But after I've included SockJS
 <script src="lib/sockjs/sockjs-1.0.0.min"></script>

and add Crosswalk support
ionic browser add crosswalk

Everything works same as in browser emulator.
Hope it helps

Thanks, @polacekpavel.
I’ll try that :-)
—
Andreas Biørn-Hansen
M.Sc. in Applied Computer Science @ Westerdals Oslo ACT
On Sun, May 24, 2015 at 9:41 PM, polacekpavel<EMAIL_ADDRESS>wrote:

@andreasbhansen
I've similar issue.
I can't get work this with Ionic framework...But after I've included SockJS
 <script src="lib/sockjs/sockjs-1.0.0.min"></script>

and add Crosswalk support
ionic browser add crosswalk

Everything works same as in browser emulator.
Hope it helps
Reply to this email directly or view it on GitHub:
https://github.com/mondora/asteroid/issues/44#issuecomment-105056772

For the record, I'm using asteroid in ionic successfully. Are you sure you're correctly defining which server to connect to?

Had same problem. Did following to fix it.
bower install sockjs-client --save

Add following to index.html, at top
<script src="lib/sockjs-client/dist/sockjs-1.0.3.min.js"></script>

I did some experiment and found out the cause for this. In some hosting environment WebSocket is disabled. For example, in my case, my test server was behind CloudeFlare proxy, so WebSocket won't work with it. Hence Asteroid had to fall back to SockJs. For this reason including it solved the problem.


TypeError: object with buffer protocol required on widows

Hello,
I have an error when trying to testing this project. Can you help me how to solve this problem?

I test it in win 10 with thonny ver 4.0.0

You should run this code on Pi Pico, not your windows machine

Thank you, I waw


Postmix can get received further than the default gap limit

It left 30 empty spots, was able to see them by increasing the gap limit.
It could be caused by the bug that banned most UTXO form the coordinator.
Whirlpool allow to mix up to 70 UTXO at once, if the mix isn't done sequentially maybe that can leave a big gap in the address space.

Also noticed that there isn't two address used in a row,
Best case scenario it's skipping one.

It could be caused by the bug that banned most UTXO form the coordinator.

This is correct - although it isn't really a bug, but more a consequence of the way the coordinator works. The ZeroLink protocol requires coordinator to reject any "known" postmix address to preserve clients privacy. So, when the connection to the coordinator is lost because of an unstable network, the client must choose the next postmix address. This can cause some unused addresses - in this case a block that is larger than the gap limit.

Also noticed that there isn't two address used in a row,

This is to avoid conflict with the Samourai Android client. The Android client uses odd indexes, and all desktop Whirlpool clients (CLI and Sparrow) use even indexes.
Given the above, I think it makes sense to double the default postmix gap limit to 40. Implemented in https://github.com/sparrowwallet/drongo/commit/9a9a1b925461ee2a8ae7f6885309b0babd4b6767.


Validation of business entities

I want to use FV to validate entities (rather than user input) when they are created, updated and deleted. However I can't pass data into the validator.
So I've based my soution on this excellent idea which encapsulates the entity and contextual data:
class ValidationWrapper
{
  public IEntity Entity { get; set; }
  public PropertyValues OriginalValues { get; set; }   // for EF entity being updated/deleted
}

Suppose this entity as an example:
class Customer : IEntity
{
  public int Id { get; set; }
  public string Name { get; set; }
  public int OutstandingBalance { get; set; }
}

Then my validator:
public class CustomerValidator : AbstractValidator<ValidationWrapper<Customer>>
{

  CustomerValidator()
  {
    RuleSet("creating", Creating);
    RuleSet("updating", Updating);
    RuleSet("deleting", Deleting);
  }

  private void Creating()
  {
    RuleFor(r => r.Entity.Name)
      .NotNull()
      .Length(1, 20)
      .OverridePropertyName("Name");     // must override default of "Entity.Name"
  }

  private void Updating()
  {
    RuleFor(r => r.Entity.Active)
      .Equal(true)
      .When(r => r.OriginalValues.GetValue<OutstandingBalance>("OutstandingBalance") > 0)
      .OverridePropertyName("Active")
      .WithMessage("Can't deactivate customer {0} as he owes us money!", m=>m.Entity.Id);
    }

  private void Deleting()
  {
    // etc.
  }

}

And a unit test to show how it all wires up:
[Test]
public void cant_deactivate_a_customer_with_positive_balance()
{
  var customer = SomeService.GetCustomer(id:10);
  customer.OutstandingBalance = 1000;

  var originalValues = context.Entry(customer).OriginalValues;
  var model = new ValidationWrapper { Entity=customer, OriginalValues=originalValues };

  var validator = new CustomerValidator();
  var results = validator.Validate(model, ruleSet:"updating");

  // assert
  Assert.False(results.IsValid);
  Assert.Contains("Name", results.Errors.Select(x => x.PropertyName));
}

Everything works!
My question is whether I've broken FV's expression caching?
I've done two things that concern me:

split constructor into multiple methods (to keep it neat)
added contextual data within the model, which I then use in some validators - am I using the correct ones, or should I use the ones like "Custom()", etc.

Is there anything in my implementation which is not-ideal or should be reworked?

That's all fine. No issues there.

@JeremySkinner Thanks for looking into it!
BTW, I've seen in other threads how you've explained that FV is primarily for validating user input. But it's a great library, and I don't see why it should be thought of in that way. My code above shows it can be easily used for business entity validation, and it allows me to reuse a lot of validators between my frontend and backend validation.
Many thanks.

Dear reader, if you stumble across this thread and decide to implement my business entity validation approach, please report back here if you find a better/neater way to do it.
If I make any major changes or additions, I'll report back here too.


testcases to simulate hls_sponge

Who wants to simulate/check the available sponge modes ?

This pull request is also part of issues_340, so whenever issues_340 is promoted, this request can be dropped

part of issue_340


Rails logs to syslog

Will start working  on it once we confirm uniform approach here https://github.com/bigbinary/bigbinary-website/pull/386

Who needs to confirm.
Sent from my iPhone

On May 10, 2016, at 2:28 PM, Rahul Mahale<EMAIL_ADDRESS>wrote:
Will start working on it once we confirm uniform approach here bigbinary/bigbinary-website#386
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub

Waiting for Vipul and Ershad's thoughts on https://github.com/bigbinary/bigbinary-website/pull/386
As per your comment once they approve it there that will be same everywhere.

Closing! As we decided not to send logs to syslog.


go/types: investigate type T = interface{ f(T) }

cmd/compile rejects it as an invalid recursive type declaration; go/types accepts it (but T is an invalid type). Should it be valid?

cc @jimmyfrasche

If that is valid, then it seems like mutually-recursive aliases should be valid too.
(Consider https://play.golang.org/p/osIdGepuAc vs. https://play.golang.org/p/vs5gMnTe7P.)

@griesemer
If this were valid, would it makes sense for
type LL = struct {
  next *LL
}

to be valid as well?

@jimmyfrasche Indeed. It appears that go/types correctly types this unnamed linked list type, but there's an issue with interfaces.

gccgo also rejects this:
foo.go:3:6: error: invalid recursive alias ‘T’
 type T = interface{ f(T) }
      ^

The type alias proposal at https://github.com/golang/proposal/blob/master/design/18130-type-alias.md seems fairly clear that this is invalid.

Specifically https://github.com/golang/proposal/blob/master/design/18130-type-alias.md#type-cycles
Of those type T = *T is the only one that is objectively wrong.
The examples here could be given sensible meaning, though it wouldn't be possible to write out the equivalent literal type because infinity.
This came up in the context of #8082 which would require similar machinery to support self-referential interface definitions.

Of those type T = *T is the only one that is objectively wrong.

That one isn't obviously wrong either. The analogous declaration works with defined types: https://play.golang.org/p/ID9xg3BBtT

@bcmills it feels different than the case for defined types in some fundamental way but attempting to articulate why fails me in a way that makes me suspect that you're right. However, if later someone proves it wrong I reserve the right to say, "Aha!" :).

The justification given in the doc is that ‘aliases must be possible to “expand out”’.
Allowing recursive interfaces would mean that there exist type aliases for which there is no equivalent non-alias type literal. I'm ok with that philosophically, but it's certainly not a trivial property to introduce: it would mean, for example, that a function that prints out a Go type by traversing it recursively would have to break that recursion somehow.


cmd/update.sh: don't switch to master when updating to a tag

Fixes issues seen with the homebrew/brew:latest image where it doesn't have the stable branch setup so it does a detached 4.1.22 -> master -> stable. This PR avoids that intermediate master change by making that pull happen in the background to the working state.
The issues with homebrew/brew:latest will be fixed anyway with 4.1.23 when the vendored gems become a part of the tag, but this change is still worthwhile to prevent that class of issues in the future as downgrades generally don't work well with git and vendored gems. The checkout is also unnecessary I/O as we checkout stable immediately afterwards.
I will also look into fixing the branches in the Dockerfile (i.e. run brew update somewhere), which will also avoid the issue.

Thanks @Bo98. For this, Homebrew/install and Homebrew/actions/setup-homebrew: we should probably be avoiding checking out master ever, really, even as an intermediate step.

Yeah, this fixes brew update but Homebrew/install etc still do their own thing. Homebrew/install in particular is one that should probably change.

Homebrew/install in particular is one that should probably change since it almost always results in downgrades.

Agreed 👍🏻


dns domainMatcher won't be loaded

What version of V2Ray are you using?
v5.4.0
What's your scenario of using V2Ray?
Apple Platform Client based V2Ray-Core
What problems have you encountered?
dns domainMatcher won't be loaded
Please attach your configuration here
Client configuration:
{
    "outbounds": [
        {
            "protocol": "freedom"
        }
    ],
    "inbounds": [
        {
            "port": 30001,
            "protocol": "socks",
            "tag": "socks",
            "settings": {
                "udpEnabled": true,
                "packetEncoding": "Packet"
            }
        }
    ],
    "dns": {
        "nameServer": [
            {
                "address": {
                    "address": "<IP_ADDRESS>"
                }
            }
        ],
        "domainMatcher": "mph"
    },
    "log": {
        "error": {
            "level": "Debug",
            "type": "Console"
        },
        "access": {
            "level": "Debug",
            "type": "Console"
        }
    }
}

Please attach error logs here
Client error log:
V2Ray 5.4.0 (V2Fly, a community-driven edition of V2Ray.) Custom (go1.20.1 darwin/arm64)
A unified platform for anti-censorship.
2023/03/03 16:52:12 [Debug] app/log: Logger started
2023/03/03 16:52:12 [Debug] app/dns: New
2023/03/03 16:52:12 [Info] app/dns: DNS: created UDP client initialized for <IP_ADDRESS>:53
2023/03/03 16:52:12 [Debug] app/dns: establishDomainRules
2023/03/03 16:52:12 [Debug] app/dns: using default domain matcher
2023/03/03 16:52:12 [Debug] app/proxyman/inbound: creating stream worker on <IP_ADDRESS>:30001
2023/03/03 16:52:12 [Info] transport/internet/tcp: listening TCP on <IP_ADDRESS>:30001
2023/03/03 16:52:12 [Info] transport/internet/udp: listening UDP on <IP_ADDRESS>:30001
2023/03/03 16:52:12 [Warning] V2Ray 5.4.0 started

As the log shows, I set the dns domainMatcher to "mph", but it still uses  "default" domain matcher.
I inserted a log print at dns New function and establishDomainRules function, and I found that the config.DomainMatcher was empty.
I try to find the problematic code, but I'm new to golang and lack of knowledge about protobuf, then I'm failed.
Now I open an issue here.

Good catch.
fullConfig.DomainMatcher has been forgotten.
https://github.com/v2fly/v2ray-core/blob/aa32199bf31591315008bcb949d0d934ee1d6196/app/dns/dns.go#L468-L480

Adding DomainMatcher: simplifiedConfig.DomainMatcher in fullConfig should work. Would you mind creating a pull request?

OK, I'll try.

@mydogshitgold , I have submited a PR to fix it.


TensorFlow Lite Op Request

System information

OS Platform and Distribution: (macOS Mojave 10.14.4)
TensorFlow installed from: (pip3)
TensorFlow version (or github SHA if from source): '1.13.1'

Provide the text output from tflite_convert
Some of the operators in the model are not supported by the standard TensorFlow Lite runtime. If those are native TensorFlow operators, you might be able to use the extended runtime by passing --enable_select_tf_ops, or by setting target_ops=TFLITE_BUILTINS,SELECT_TF_OPS when calling tf.lite.TFLiteConverter(). Otherwise, if you have a custom implementation for them you can disable this error with --allow_custom_ops, or by setting allow_custom_ops=True when calling tf.lite.TFLiteConverter(). Here is a list of builtin operators you are using: ADD, CAST, CONCATENATION, CONV_2D, EXP, EXPAND_DIMS, FILL, GATHER, GREATER, LOGISTIC, MAX_POOL_2D, MUL, PACK, PAD, RELU, RESHAPE, RESIZE_BILINEAR, SHAPE, STRIDED_SLICE, SUB, TILE, TRANSPOSE. Here is a list of operators for which you will need custom implementations: GatherNd, NonMaxSuppressionV3, ScatterNd, Size, Where.
Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/3.6/bin/toco_from_protos", line 10, in <module>
    sys.exit(main())
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/tensorflow/lite/toco/python/toco_from_protos.py", line 59, in main
    app.run(main=execute, argv=[sys.argv[0]] + unparsed)
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/tensorflow/python/platform/app.py", line 125, in run
    _sys.exit(main(argv))
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/tensorflow/lite/toco/python/toco_from_protos.py", line 33, in execute
    output_str = tensorflow_wrap_toco.TocoConvert(model_str, toco_str, input_str)
Exception: We are continually in the process of adding support to TensorFlow Lite for more ops. It would be helpful if you could inform us of how this conversion went by opening a github issue at https://github.com/tensorflow/tensorflow/issues/new?template=40-tflite-op-request.md
 and pasting the following:

Some of the operators in the model are not supported by the standard TensorFlow Lite runtime. If those are native TensorFlow operators, you might be able to use the extended runtime by passing --enable_select_tf_ops, or by setting target_ops=TFLITE_BUILTINS,SELECT_TF_OPS when calling tf.lite.TFLiteConverter(). Otherwise, if you have a custom implementation for them you can disable this error with --allow_custom_ops, or by setting allow_custom_ops=True when calling tf.lite.TFLiteConverter(). Here is a list of builtin operators you are using: ADD, CAST, CONCATENATION, CONV_2D, EXP, EXPAND_DIMS, FILL, GATHER, GREATER, LOGISTIC, MAX_POOL_2D, MUL, PACK, PAD, RELU, RESHAPE, RESIZE_BILINEAR, SHAPE, STRIDED_SLICE, SUB, TILE, TRANSPOSE. Here is a list of operators for which you will need custom implementations: GatherNd, NonMaxSuppressionV3, ScatterNd, Size, Where.

Process finished with exit code 1

Also, please include a link to a GraphDef or the model if possible.
Any 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.

Please take a look at https://www.tensorflow.org/lite/guide/faq#models_operations to know more.

Could you provide more information about the model?
I saw NonMaxSuppressionV3, so it's likely a SSD model?
If that's the case, @achowdhery can comment more. Thanks

Yes, it is a Retinanet model for object detection. It is performed on all the detections to remove the repetitious detections. Do you need any other information for the model? Thanks!


mat-slide-toggle: does not always follow formGroup initialization state

Bug, feature request, or proposal:
Bug
What is the expected behavior?
Given I have a form group with a slide toggle set as disabled: true
When recreating the form group with the slide toggle set as disabled: false
Then the slide toggle should be enabled.
Given I have a form group with a slide toggle set as disabled: false
When recreating the form group with the slide toggle set as disabled: true
Then the slide toggle should be disabled.
What is the current behavior?
After first form group initialization, the slide toggle state isn't affected by the disabled setting in subsequent form group initialization.
What are the steps to reproduce?
In an Angular component, with a formGroup:
this.formGroup = this.formBuilder.group({
  input: [{value: '', disabled: false}],
  slideToggle: [{value: '', disabled: false}]
});

And a form template:
<form class="example-form" [formGroup]="formGroup">
  <input matInput formControlName="input" />
  <mat-slide-toggle formControlName="slideToggle">Slide Toggle</mat-slide-toggle>
</form>

At any point during the lifetime of the component, recreate the form group but with a different disabled state for the controls:
this.formGroup = this.formBuilder.group({
  input: [{value: '', disabled: true}],
  slideToggle: [{value: '', disabled: true}]
});

The input will have correctly changed disabled state, however the slide toggle will not.
https://stackblitz.com/edit/angular-material2-issue-slide-toggle
Which versions of Angular, Material, OS, TypeScript, browsers are affected?
Angular 4.4.6
Angular Material 2.0.0-beta.12
tested in Chrome
Is there anything else we should know?
Similar issues: #4774 (fix: #4797)

This issue is present for any custom form component in angular material.
Issue observed with:

checkbox,
datepicker,
radio button,
select,
slider,
slide toggle.

Stackblitz with all material form controls: https://stackblitz.com/edit/angular-material2-formgroup-issue

This sounds pretty similar to https://github.com/angular/material2/issues/6849. Note that using the .enable()/.disable() apis from FormControl do still work. The problem arises when you reassign the FormGroup.
I guess one of the differences is, in your all control example, the input/autocomplete/datepicker controls do get disabled, they just don't run change detection until you click on them. The other controls do not disable at all.

@tinayuangao can you investigate this? @kara should be able to help with forms-related questions

This is related to forms. The ControlValueAccessor's setDisabledState method is only called in initialization, or when the disabled value is changed to true in FormControl.
https://github.com/angular/angular/blob/a176cd646c63dd3cdbcb3b593e15da2d8b1bd975/packages/forms/src/directives/reactive_directives/form_control_directive.ts#L92
https://github.com/angular/angular/blob/b14c2d1568f9cc634c18fe1ee77a647aa57a012a/packages/forms/src/directives/reactive_directives/form_control_name.ts#L152

@tinayuangao is it working as intended, then?

Yes.
Disabling doesn't work yet with re-assigned form groups. Once forms support that our components implementing ControlValueAccessor will support it.
The input component support disabling because the input component read the disabled variable of ngControl.

Close this issue for now.
Please feel free to reopen when angular forms supports it.


Plot 1D cuts through 2D solutions

resolves #37
It works, but their still some TODO's:

[ ] Find a way to use multiple dispatch instead of defining plot2D_cut (@jkosata Can you maybe look at it?)
[ ] Clean up and documentation

Nice, looks like searchsortedfirst is what we needed here. I canl incorporate this into existing plotting. Some of the steps ('default' class behaviour, usage of is_labeled) are now copied here, in plot and in #80 , will make them into separate functions.

Ha yes good Idea! #80 is now updated and can be merged with #79 so you can implement it.

Resolved by #80


Difference of struct between ListProjectIssuesOptions and ListProjectMergeRequestsOptions

I've noticed a difference in the struct of ListProjectOptions for Issues and MergeRequests
 -type ListProjectIssuesOptions struct {
	ListOptions
	...
	Labels             Labels     `url:"labels,comma,omitempty" json:"labels,omitempty"`
	...
  }

 - type ListProjectMergeRequestsOptions struct {
	ListOptions
	...
	Labels          *Labels    `url:"labels,omitempty" json:"labels,omitempty"`
	...
   }

Nice catch. I guess the latter needs to be updated to make it work as expected.

looks related to https://github.com/xanzy/go-gitlab/pull/715


BUG

Describe the bug
A clear and concise description of what the bug is.
Reproduction steps
Steps to reproduce the behavior:
1.
2.
3.
4.
Expected behavior
A clear and concise description of what you expected to happen.
Additional context
Add any other context about the problem here.

Feel free to add more details and re-open


WAC SDK/BiitOps: new URLs

Description:
Based on the report in issue ticket #3506 (Page Not Found), the URLs in this page now redirect to only one of the intended pages (the site has been restructured and redesigned).
Thanks to Peter Van Eunen (@PeterVanEunen) for reporting the issue.
New links:

https://biitops.com/solutions (instead of "Products")
https://biitops.com/solutions/biitops-changes (instead of 'changes-for-wac')

Ticket closure or reference:
Closes #3506

@illfated : Thanks for your contribution! The author(s) have been notified to review your proposed change.

#sign-off

@illfated: I'm sorry - only the author of this article, @daniellee-msft, can sign off on your changes. But we do have an exception process - if you are on the Microsoft content or product team for this product area, you can ask the PR review team to review and merge it by sending mail to the techdocprs alias.


[doc] set taskmanager.numberOfTaskSlots: 10

(Please specify the module before the PR name: [core] ... or [flink] ...)
Purpose
flink test optimization.
taskmanager.numberOfTaskSlots: 10
Tests
(List UT and IT cases to verify this change)
API and Format
(Does this change affect API or storage format)
Documentation
(Does this change introduce a new feature)

Hi @liugddx , thanks for the contribution, Where is the enhancement?

Hi @liugddx , thanks for the contribution, Where is the enhancement?

I ran the test case, but the task could not run due to insufficient slots

Hi @liugddx , thanks for the contribution, Where is the enhancement?

I ran the test case, but the task could not run due to insufficient slots

I think our tests work fine now, we don't need to increase slots.


Support create table with varchar when hive table has a column with char

table in hive with column
col_char char(100) comment "column char"

we should support create external table with varchar(100) since we assume they are compatible in starrocks. And convert char to varchar will not loss precision.
create external table ext_test (
    ->  col_char varchar(100) comment "column char" )
    ->  ENGINE=hive
    ->  properties (
    ->   "resource" = "hive0",
    ->    "table" = "hive_test",
    ->     "database" = "starrocks_hive");

ERROR 1064 (HY000): can not convert hive column type [char(100)] to starrocks type [VARCHAR]

Next time, you'd better to relate issue by writing close #1199
Then when this PR is merged, the issue will be closed atomatically.

i think this pr may related with #1200 i would like to refactor this and find a more general solution to solve this problem


Improve the public API

We created the crypto crate as a container for cryptography modules with the idea that it may be split out into a separate crate. There is no reason for users of the lib to know about this module. Also, we have two taproot modules, one in crypto and one at the crate root, this makes for un-ergonomic usage of the lib.
Improve the public API by doing:

Make the crypto module private (pub(crate)).
Re-export crypto::taproot::Signature (and Error) from crate::taproot

Fix: #1668

Includes re-export of some secp types from taproot - this is in the name of "expose types that are used together from the same place".

Ok, the additional pub re-exports that were commented upon were a mistake by me because they are scope kreep and unrelated to this PR, my bad - all removed. This PR now does only what it claims to do. Good Tobin.


Guidelines difficult to read and gather all information quickly

Guidelines are difficult to find/read what you are looking for and get a complete picture of a topic without looking in multiple places(for example information about fields was in 3/4 different sub-sections) and so after conversations with @MarkMichaelis thought to try and move things into one section that has all the information needed on a topic so you only have to look in one place to get everything from suggestions to naming rules to guidelines, etc.. Miscellaneous might be able to be split up a bit more, and could be the next working piece.

Coding section could be eliminated in the future as well possibly

Going to reopen as I think the organization of the guidelines md is an ongoing conversation, especially as the 'miscellaneous' category probably has a lot more optimizing that can happen.


[Question] Laravel-AdminLTE menu

hi, I'm a little confused when I want to create a menu for a user, I want to know how to create a different menu for the admin and user roles.
can it be done in config?

Not so easy as just editing the configuration. This package offers next supports:

Support to Laravel's Gate with the can attributte of the menu items. Permissions should be configured with Laravel's Gate.
Support to custom filters over the menu. There is an example on how you can integrate Laratrust. Permissions are configured with the Laratrust package.
Support to create the menu dinamically (at run time). That way you can define your own logic to create the menu depending on the logged user.

Not so easy as just editing the configuration. This package offers next supports:
* Support to [Laravel's Gate](https://laravel.com/docs/8.x/authorization#gates) with the [can attributte](https://github.com/jeroennoten/Laravel-AdminLTE/wiki/Menu-Configuration#the-can-attribute) of the menu items. Permissions should be configured with Laravel's Gate.

* Support to [custom filters](https://github.com/jeroennoten/Laravel-AdminLTE/wiki/Menu-Configuration#custom-menu-filters) over the menu. There is an example on how you can integrate [Laratrust](https://laratrust.santigarcor.me/). Permissions are configured with the Laratrust package.

* Support to [create the menu dinamically](https://github.com/jeroennoten/Laravel-AdminLTE/wiki/Menu-Configuration#menu-configuration-at-runtime) (at run time). That way you can define your own logic to create the menu depending on the logged user.

thanks for the instructions

Not so easy as just editing the configuration. This package offers next supports:
* Support to [Laravel's Gate](https://laravel.com/docs/8.x/authorization#gates) with the [can attributte](https://github.com/jeroennoten/Laravel-AdminLTE/wiki/Menu-Configuration#the-can-attribute) of the menu items. Permissions should be configured with Laravel's Gate.

* Support to [custom filters](https://github.com/jeroennoten/Laravel-AdminLTE/wiki/Menu-Configuration#custom-menu-filters) over the menu. There is an example on how you can integrate [Laratrust](https://laratrust.santigarcor.me/). Permissions are configured with the Laratrust package.

* Support to [create the menu dinamically](https://github.com/jeroennoten/Laravel-AdminLTE/wiki/Menu-Configuration#menu-configuration-at-runtime) (at run time). That way you can define your own logic to create the menu depending on the logged user.

Thanks, Very helpful


exception: 'System.EntryPointNotFoundException: SwitchToThread

Issue in Mono build

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

ID: 978ca292-3e23-29fe-1ffc-3c2235ade37a
Version Independent ID: 764db72b-40c8-5f13-1941-b6c022f006f9
Content: Task Parallel Library (TPL)
Content Source: docs/standard/parallel-programming/task-parallel-library-tpl.md
Product: dotnet
GitHub Login: @rpetrusha
Microsoft Alias: ronpet

Thanks for the question. You'll probably get a faster answer on a support forum, such as Stack Overflow, or a support chat, such as Slack or Gitter. If you post the question elsewhere, please update this issue with the link.


Adding presto-pinot-driver module

Description
Move presto-pinot-driver module from presto codebase (https://github.com/prestodb/presto-pinot-driver)
Presto repo is still on java 8, so we need to build this module with jdk8:

Add a new profile to set jdk.version for all corresponding modules
Add grpc client configs for presto
Add helper functions for presto side to avoid dependency checks from class import

How to build:
So when we want to build presto-pinot-driver module, we need to first install two JDKs, e.g. JDK 8 and JDK 11 corresponding modules with JDK 8 lib.
Add profile presto-driver:
mvn clean install -DskipTests -Ppresto-driver -T 1C -pl ':presto-pinot-driver' -am

Upgrade Notes
Does this PR prevent a zero down-time upgrade? (Assume upgrade order: Controller, Broker, Server, Minion)

[ ] Yes (Please label as backward-incompat, and complete the section below on Release Notes)

Does this PR fix a zero-downtime upgrade introduced earlier?

[ ] Yes (Please label this as backward-incompat, and complete the section below on Release Notes)

Does this PR otherwise need attention when creating release notes? Things to consider:

New configuration options
Deprecation of configurations
Signature changes to public methods/interfaces
New plugins added or old plugins removed

[ ] Yes (Please label this PR as release-notes and complete the section on Release Notes)

Release Notes

Documentation

Codecov Report

Merging #7384 (a09371d) into master (d412ecf) will increase coverage by 40.62%.
The diff coverage is n/a.

@@              Coverage Diff              @@
##             master    #7384       +/-   ##
=============================================
+ Coverage     29.06%   69.68%   +40.62%
- Complexity       85     3256     +3171
=============================================
  Files          1506     1123      -383
  Lines         74664    52916    -21748
  Branches      10874     7963     -2911
=============================================
+ Hits          21702    36876    +15174
+ Misses        50993    13423    -37570
- Partials       1969     2617      +648

Flag
Coverage Δ

integration2
?

unittests1
69.68% <ø> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

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

Can you please elaborate more on why we need to replicate some of the classes in this new module? And how is the module going to be released?

Can you please elaborate more on why we need to replicate some of the classes in this new module? And how is the module going to be released?

removed duplicated classes.
For releases, need to update the release doc of using the maven toolchain plugin

Can you explain the purpose of this change?

Can you explain the purpose of this change?

Can you explain the purpose of this change?

presto is on jdk8 and pinot is on jdk 11, so we need to recompile all pinot dependencies jars for presto usage.

k. but then why there are other changes than the pom changes?

k. but then why there are other changes than the pom changes?

After chatted with Prestodb community, I think it's better to move presto-pinot-driver (https://github.com/prestodb/presto-pinot-driver) module in pinot codebase, then refer to this module in presto plugin directly.
Presto side has extra configs for grpc client and we expose the scatter-gather client, now we plan to own the

This will change our release pipeline steps when building an Apache release. It would be great if you can also update the documentation at https://cwiki.apache.org/confluence/display/PINOT/Creating+an+Apache+Release

will do

fyi: @highker


output logits not match. question about decoding when draft model and target model is the same.

In my opinion, the generation should be the same when draft model and target model is the same and temparature is 0.
But in this case, the output logits of draft model and target model have a bit difference. But the argmax result is the same.
THE QUESTION: why is the output logits difference when the draft and target is the same model.
reproduce:

change code as shown below: compare output's logits directly p[:, prefix_len + i - 1, j] == q[:, prefix_len + i - 1, j]

diff --git a/sampling/speculative_sampling.py b/sampling/speculative_sampling.py
index 48e1f8d..c2eed70 100644
--- a/sampling/speculative_sampling.py
+++ b/sampling/speculative_sampling.py
@@ -164,10 +164,12 @@ def speculative_sampling_v2(prefix : torch.Tensor, approx_model : torch.nn.Modul
                 r = torch.rand(1, device = p.device)
                 j = x[:, prefix_len + i]

-                if r < torch.min(torch.tensor([1], device=q.device), p[:, prefix_len + i - 1, j] / q[:, prefix_len + i - 1, j]):
+                if p[:, prefix_len + i - 1, j] == q[:, prefix_len + i - 1, j]:
                     # accept, and update n
                     n += 1
                 else:
+                    print(p[:, prefix_len + i - 1, j] - q[:, prefix_len + i - 1, j])
+                    print("unexpected reject!")
                     # reject
                     t = sample(max_fn(p[:, n, :] - q[:, n, :]))
                     is_all_accept = False

launch script:

python main.py \
    --input "One day, Lily met a Shoggoth." \
    --max_tokens 128 \
    --benchmark \
    --target_model_name nickypro/tinyllama-110M \
    --approx_model_name nickypro/tinyllama-110M \

"unexpected reject!" get print

speculative sampling:   0%|                                                                          | 0/141 [00:00<?, ?it/s]
tensor([[-5.2199e-05]], device='cuda:0')
unexpected reject!
tensor([[0.0019]], device='cuda:0')
unexpected reject!
speculative sampling:  19%|████████████▎                                                   | 27/141 [00:00<00:00, 205.92it/s]
tensor([[0.0006]], device='cuda:0')
unexpected reject!
tensor([[-0.0019]], device='cuda:0')
unexpected reject!
speculative sampling:  35%|██████████████████████▏                                         | 49/141 [00:00<00:00, 132.50it/s]
tensor([[0.0006]], device='cuda:0')
unexpected reject!
speculative sampling:  99%|███████████████████████████████████████████████████████████████▌| 140/141 [00:01<00:00, 98.67it/s]

After reading your comment, I find this phenomenon very interesting, so I try it just now and find that the output logits of the draft model and target model are indeed inconsistent. However, as long as the seed is consistent, the results will be the same every time. Therefore, I feel that this may be an error(bug) in hardware or code implementation, but the error is very small. I implement it as follows:

Thank you both for your careful observation; these details are very helpful.
I suggest whether it is possible to change the comparison of two float values with '==' to the diff of them less than a certain number, for example 1e-6?

that was a straightforward solution and I change == to torch.allclose, which have a default diff of 1e-05+-1e-08, the unexpected reject still happen.
def allclose(input: Tensor, other: Tensor, rtol: _float = 1e-05, atol: _float = 1e-08, equal_nan: _bool = False) -> _bool: ...

Thank you both for your careful observation; these details are very helpful.
I suggest whether it is possible to change the comparison of two float values with '==' to the diff of them less than a certain number, for example 1e-6?

that was a straightforward solution and I change == to torch.allclose, which have a default diff of 1e-05+-1e-08, the unexpected reject still happen.
def allclose(input: Tensor, other: Tensor, rtol: _float = 1e-05, atol: _float = 1e-08, equal_nan: _bool = False) -> _bool: ...

try it with "atol= 1e-03"? I think this is a hardware error.