Is this API still working for you ?

Hey i wanted to work with this api but this look like nothing work.
When im trying basic tests from the API, nothing work...
I just got Invalid Argument error with nothing else.
When I'm trying to do make my own functions, that give me error from TikTikAPI class.
Im alone to have this problem ?
Thanks in advance

same

I have certificate problem
WARNING:urllib3.connection:Certificate did not match expected hostname: tiktok.com. Certificate:

Same even I can start it.Some JSON error showing.

Released a new version.
Adapted to all changes from Tiktok.
Please run
pip install PyTikTokAPI --upgrade

Also please checkout new README to add your cookie parameters

Released a new version.
Adapted to all changes from Tiktok.
Please run
pip install PyTikTokAPI --upgrade

Also please checkout new README to add your cookie parameters


AXI generator clean up

A few small issues were brought up that should be addressed. I find it helpful to keep these all in one place.

[ ] Reduce code duplication by refactoring where appropriate.
[x] Closed by #1867. As mentioned here, in our channels we create base_addr and curr_addr registers. The naming is a bit vague and base_addr should be changed to something that reflects that this goes to our byte-addressed AXI addresses, while curr_addr should be changed to reflect that it indexes into our internal calyx memories based on the memories indexing.
[x] Closed by #1867. Assert in build that our yxi is well formed. i.e, powers of 2, width is byte aligned, etc.
[x] Closed by #1867. Talked about this synchronously with @sampsyo and have had a few more thoughts since then:
Reevaluate xVALID_was_high signals based on our in sync discussion. In general the point of this is to denote we are not in the first "raising of xVALID" cycle and that a handshake has occurred. We need this because we want to ensure that in a single servicing of a transfer xVALID is only asserted once. Because we have no guarantees on when the servicing group will terminate, we look to xVALID_was_high to ensure xVALID is only high once. When we discussed this in person we assumed this would be in the first cycle, but I think this should be generalized to denote when a handshake_occurred. More concretely if we are in the group that services a transfer I believe we want the following (being a bit sloppy with notation):

//we are not currently in a handshake and haven't been high before
xVALID.in = !(xVALID & xREADY) & !(handshake_occurred) ? 1'b1;
//negate the above. Key point is that `handshake_occurred` stays high.
xVALID.in = (xVALID & xREADY) | handshake_occurred ? 1'b0;
xVALID..write_en = 1'b1;

//left side of `|` is a handshake, useful for when xVALID is high and xREADY is low
//right hand side is preemptive handshake when xREADY is high and we are about to drive xVALID high. Saves a cycle?
// actually might not be that useful                                            //guard for xVALID.in = 1'b1
handshake_occurred.in = (xVALID & xREADY) | (xREADY & (!(xVALID & xREADY) & !(handshake_occurred)))? 1'b1;
// okay to write to this as long as it is 0
handshake_occurred.write_en =  !(handshake_occurred) ? 1'b1;

I think we can also make
handshake_occurred.in = (xVALID & xREADY) | (xREADY & (!(xVALID & xREADY) & !(handshake_occurred)))? 1'b1;

simpler and just do
handshake_occurred.in = (xVALID & xREADY) ? 1'b1

because even if there is a cycle delay by the time we are worried about xVALID being set high again happening handshake_occurred will be high in that cycle and prevent a toggling of xVALID

This sounds perfect. That new definition for handshake_occurred crystalizes what's going on here: we want to keep track of the moment when the handshake happened, by that natural "valid && ready" definition, and use that to suppress future handshakes.

Closing this for now, leaving the refactoring item open as something that can be done with a later issue.


search-results: add DuckDuckGo and Brave .onion

Added DuckDuckGo and Brave .onion addresses

@JohnyP36 In my opinion the search-results list should remain one. A list for only two .onion domains is a little short in my opinion.

Thanks for jumping into this @BPower0036. I agree that it makes sense to keep it in the same template. Merging your PR as is would increase the number of rules we generate (and the computing cost to load these on browser startup), but won't affect the performance when loading the websites, as the rules are scoped to a domain.
If we don't want to double the rules for a pretty small portion of users, I suggest adding a sub-option like we currently have for the other ddg flavors.

This way, it's a no-op for people who don't use the onion websites. WDYT?

@xvello I agree on making a suboption.

@xvello It looks like the GitHub-actions fail, because it can't verify the .onion addresses.

FYI, I added https://github.com/letsblockit/letsblockit/commit/d5a722ce7a955d03bb5474288f3e5c63e6eec4f9: a DB migration to not mark the template updated for these new options. As they are sub-options, it will be confusing to users that don't had DDG/brave enabled already, as the sub-options won't show up in the form.


Don't append additional arguments in jest-each titles

I found it confusing that values not used in the test table were appended to my template:
In my case, I needed some extra logic to determine my title, so I did this:
const table = testFiles.map(testFile => {
  const shouldPass = SHOULD_NOT_PASS_IN_JEST.has(testFile);
  const expectation = `${testFile} ${shouldPass ? 'errors' : 'passes'}`;
  const testName = `${expectation} when not in erroOnDeprecated mode`;
  return [testName, shouldPass, testFile];
});

test.each(table)('%s', (testName, shouldPass, testFile) => {
  const result = runJest('error-on-deprecated', [testFile]);
  expect(result.status).toBe(shouldPass ? 1 : 0);
});

And ended up with titles like this:
  ✓ fail.test.js errors when not in erroOnDeprecated mode true fail.test.js (541ms)
  ✓ jasmine.addMatchers.test.js passes when not in erroOnDeprecated mode false jasmine.addMatchers.test.js (526ms)
  ✓ jasmine.any.test.js passes when not in erroOnDeprecated mode false jasmine.any.test.js (527ms)
  ✓ jasmine.anything.test.js passes when not in erroOnDeprecated mode false jasmine.anything.test.js (519ms)
  ✓ jasmine.arrayContaining.test.js passes when not in erroOnDeprecated mode false jasmine.arrayContaining.test.js (521ms)
  ✓ jasmine.createSpy.test.js passes when not in erroOnDeprecated mode false jasmine.createSpy.test.js (553ms)
  ✓ jasmine.objectContaining.test.js passes when not in erroOnDeprecated mode false jasmine.objectContaining.test.js (536ms)
  ✓ jasmine.stringMatching.test.js passes when not in erroOnDeprecated mode false jasmine.stringMatching.test.js (506ms)
  ✓ pending.test.js passes when not in erroOnDeprecated mode false pending.test.js (509ms)
  ✓ spyOn.test.js passes when not in erroOnDeprecated mode false spyOn.test.js (551ms)
  ✓ spyOnProperty.test.js errors when not in erroOnDeprecated mode true spyOnProperty.test.js (537ms)
  ✓ DEFAULT_TIMEOUT_INTERVAL.test.js passes when not in erroOnDeprecated mode false DEFAULT_TIMEOUT_INTERVAL.test.js (531ms)

It was surprising to me that the unused arguments were appended. Could get extra confusing if the extra values were not easily serializable.
@mattphillips

Pending: https://github.com/facebook/jest/pull/6346

Ah, should have searched!
Closing as dupe of https://github.com/facebook/jest/issues/6342


Attempted to invoke 3 (method ID) on UIManager (NativeModule name) with an invalid bridge.

有很多警告，然后不能坐任何事，能告诉我为什么会有这警告吗

I have same issues.

I am also facing same issues here

same issue here

same issue

same here..


Crash in 0.31.0 in compactor: panic: cannot call histogramIterator.

Thanos, Prometheus and Golang version used:
thanos --version
thanos, version 0.32.0-dev (branch: main, revision: 6d838e7142d97cce81bcaada932992a4c40a5d80)
build user:       root@buildkitsandbox
build date:       20230421-19:15:42
go version:       go1.20.3
platform:         linux/amd64
tags:             netgo
Prometheus:
prometheus, version 2.41.0 (branch: HEAD, revision: c0d8a56c69014279464c0e15d8bfb0e153af0dab)
build user:       root@d20a03e77067
build date:       20221220-10:40:45
go version:       go1.19.4
platform:         linux/amd64

Object Storage Provider:
Filesystem
What happened:
Crash in compactor at the end of a downsample run.
What you expected to happen:
No crash
How to reproduce it (as minimally and precisely as possible):
run a downsample
Full logs to relevant components:
level=info ts=2023-12-15T19:37:19.907809472Z caller=fetcher.go:478 component=block.BaseFetcher msg="successfully synchronized block metadata" duration=11.963259ms duration_ms=11 cached=8 returned=8 partial=0
level=info ts=2023-12-15T19:37:20.186688717Z caller=streamed_block_writer.go:178 msg="finalized downsampled block" mint=1702425600000 maxt=1702598400000 ulid=01HHQFH4BT2G108491WMY9FV0J resolution=300000
panic: cannot call histogramIterator.At
goroutine 799 [running]:
github.com/prometheus/prometheus/tsdb/chunkenc.(*histogramIterator).At(0xc000ccdb80?)
/go/pkg/mod/github.com/prometheus/prometheus@v0.43.1-0.20230414053501-7309ac272195/tsdb/chunkenc/histogram.go:662 +0x27
github.com/thanos-io/thanos/pkg/compact/downsample.expandChunkIterator({0x2b7d690, 0xc000ccdb80}, 0xc0048ef7f8)
/go/src/github.com/thanos-io/thanos/pkg/compact/downsample/downsample.go:473 +0x62
github.com/thanos-io/thanos/pkg/compact/downsample.Downsample({0x2b562a0, 0xc0008d2190}, 0xc0002450e0, {0x2b72da0, 0xc000ab5b80}, {0xc00050a880, 0x1e}, 0x493e0)
/go/src/github.com/thanos-io/thanos/pkg/compact/downsample/downsample.go:153 +0x11b8
main.processDownsampling({0x2b6f060, 0xc000aebd60}, {0x2b562a0, 0xc0008d2190}, {0x2b83968, 0xc000a48c20}, 0xc0002450e0, {0xc00050a880, 0x1e}, 0x493e0, ...)
/go/src/github.com/thanos-io/thanos/cmd/thanos/downsample.go:377 +0x707
main.downsampleBucket.func3()
/go/src/github.com/thanos-io/thanos/cmd/thanos/downsample.go:258 +0x207
created by main.downsampleBucket
/go/src/github.com/thanos-io/thanos/cmd/thanos/downsample.go:249 +0xa5c

Anything else we need to know:

Downsample native histogram is not supported if I understand correctly. @rabenhorst

how do I disable it then?

You have to upgrade your Thanos Compactor to latest main to include https://github.com/thanos-io/thanos/pull/6893 and upload a no downsample marker.

Oh. I'll have to switch to a minio bucket. We can't retain enough data without downsampling. Thanks for the update.

Downsample native histogram is not supported if I understand correctly. @rabenhorst @fpetkovski

That's right. There is a PR #6350, but it's not ready yet and we have to see if that is the right approach.

We are seeing this crash after a couple of hours of ingesting data in the compactor in a setup where native histograms are not activated.
Here's the full configuration and crash log for reference:
Image: thanosio/thanos:v0.36.1
Command: compact --log.level=info --log.format=logfmt --http-address=<IP_ADDRESS>:10902 --data-dir=/data --retention.resolution-raw=14d --retention.resolution-5m=30d --retention.resolution-1h=10y --consistency-delay=30m --objstore.config-file=/conf/objstore.yml --wait
ts=2024-11-14T10:37:45.603451922Z caller=fetcher.go:623 level=info component=block.BaseFetcher msg="successfully synchronized block metadata" duration=395.67226ms duration_ms=395 cached=103 returned=8 partial=0
ts=2024-11-14T10:38:00.6246465Z caller=downsample.go:364 level=info msg="downloaded block" id=01JCMK7Y4QC0ABD0TTMC1HX87D duration=15.020585853s duration_ms=15020
ts=2024-11-14T10:38:25.539572628Z caller=streamed_block_writer.go:178 level=info msg="finalized downsampled block" mint=1730952873701 maxt=1731103200000 ulid=01JCN41EGW8N1PFB69ZNWZP20J resolution=300000
panic: cannot call histogramIterator.At

goroutine 1535 [running]:
github.com/prometheus/prometheus/tsdb/chunkenc.(*histogramIterator).At(0xc001662160?)
/go/pkg/mod/github.com/prometheus/prometheus@v0.52.2-0.20240614130246-4c1e71fa0b3d/tsdb/chunkenc/histogram.go:780 +0x25
github.com/thanos-io/thanos/pkg/compact/downsample.expandChunkIterator({0x38e7608, 0xc001662160}, 0xc0011e9380)
/app/pkg/compact/downsample/downsample.go:484 +0x5b
github.com/thanos-io/thanos/pkg/compact/downsample.Downsample({0x38db3b0, 0xc000da9e50}, {0x38b9f40, 0xc000ca1ac0}, 0xc0013b8b40, {0x38ddaf0, 0xc001662420}, {0xc000c115a0, 0x10}, 0x493e0)
/app/pkg/compact/downsample/downsample.go:155 +0x1154
main.processDownsampling({0x38db3b0, 0xc000da9e50}, {0x38b9f40, 0xc000ca1ac0}, {0x38f2518, 0xc0011256c0}, 0xc0013b8b40, {0xc000c115a0, 0x10}, 0x493e0, ...)
/app/cmd/thanos/downsample.go:385 +0x89e
main.downsampleBucket.func3()
/app/cmd/thanos/downsample.go:265 +0x21b
created by main.downsampleBucket in goroutine 202
/app/cmd/thanos/downsample.go:256 +0xa70

Prometheus
Image: quay.io/prometheus/prometheus:v2.55.1
Command: --web.console.templates=/etc/prometheus/consoles --web.console.libraries=/etc/prometheus/console_libraries --config.file=/etc/prometheus/config_out/prometheus.env.yaml --web.enable-lifecycle --web.enable-remote-write-receiver --web.external-url=http://prometheus.service.dev.internal.calida.digital/ --web.route-prefix=/ --storage.tsdb.retention.time=10d --storage.tsdb.path=/prometheus --storage.tsdb.wal-compression --web.config.file=/etc/prometheus/web_config/web-config.yaml --storage.tsdb.max-block-duration=2h --storage.tsdb.min-block-duration=2h
Prometheus Thanos Sidecar
Image: thanosio/thanos:v0.36.1
Command: sidecar --prometheus.url=http://localhost:9090/ --grpc-address=:10901 --http-address=:10902 --objstore.config=$(OBJSTORE_CONFIG) --tsdb.path=/prometheus --log.level=info --log.format=logfmt --prometheus.http-client-file=/etc/thanos/config/prometheus.http-client-file.yaml
Is this an incompatibility with recent versions of Prometheus, or is there something in our configuration that we need missed?


littlefs don't read config information from the superblock

When mount existing filesystem littlefs library assumes that block size and block count is given during configuration time. Block size  and number of blocks are stored in the superblock and when existing filesystem is mounted config should  be updated from the super block structure instead of use default values from the config struct. config block_size blocks_count should be only used only when the blocks_size and count isn't know for example when  lfs_format is used

This is something that's been looked at, but it's a bit more complicated than it first appears: https://github.com/littlefs-project/littlefs/issues/349
There's a sort of chicken-and-egg problem where littlefs needs to know the block_size in order to read the superblock. So reading the block_size requires knowing the block_size, which is a bit of a problem. There's some ideas around scanning the block device to find a valid superblock, but the problem there is that such a scan may have to read the entire disk if lfs_mount fails.
The block_count, on the other hand, is pretty easy to read, it just hasn't been a priority since usually block_count is provided by partition information anyways.


tests: Bluetooth: change host/adv/resume scan params

When running with the Softdevice Controller, the controller is extremely unlucky and doesn't see any of the advertising packets.
Use a smaller window & interval to work around that (test IUT is not controller implementation, rather the host).

putting in DNM until I figure out what causes this


more efficient & effective CI

during CI:

no need to build & run in debug mode (it's for developers' hands); -O2/3 with assertion (no -g, no -DNDEBUG) in CI is closer to productional env;
every feasible event engine should be tested for each UT;

Closed by https://github.com/alibaba/PhotonLibOS/pull/273


Google Ads

🆒 Your use case
I use Google Ads to track conversions
🆕 The solution you'd like
Something similar to Facebook Pixel or Google Tag Manager
🔍 Alternatives you've considered
No response
ℹ Additional info
Site: ads.google.com

Can you link docs for the tracker?

Hello, maybe it will not be necessary to add a different lib, because it seems to be the case that google is saying to just use the tag manager to track events from AdWords for example, I will link a few pages just in case.
GoogleAds 1
GoogleAds 2
GoogleAds 3
GoogleAds 4
Stackoverflow about google ads
It seems they are saying to using something like
gtag('event',  'conversion',  {
    'send_to': 'AW-CONVERSION_ID/AW-CONVERSION_LABEL',
    'value': 1.0,
    'currency': 'USD'
});

Instead of
<!-- Put this script in your <head> -->
<script type="text/javascript" src="http://www.googleadservices.com/pagead/conversion_async.js" charset="utf-8"></script>

<!-- the rest of your web page as usual etc -->

<!-- Call this function when the form submits -->
<script type="text/javascript">
/* <![CDATA[ */
window.google_trackConversion({
    google_conversion_id: 123456789,
    google_conversion_label: abcdefghijkl,  // if provided, remove this line if not provided
    google_conversion_value: 0,  // or the dollar value of this conversion, e.g. 100 etc.
    google_remarketing_only: false
});
//]]>

But, to be honest, I am still confused if they are the same thing

Closing this


[FEATURE REQUEST] Bandwith control for download

Please confirm these before moving forward.

[X] I have searched for my feature proposal and have not found a work-in-progress/duplicate/resolved/discarded issue.
[X] This proposal is a completely new feature. If you want to suggest an improvement or an enhancement, please use this template.

Describe the new feature
I want to suggest an option to control the maximum bandwith for a download. Unfortunately not all people do have fast internet. Having the option to limit the bandwith would be great as it could better run in the background.
Describe how this new feature could help users
users with limited bandwith

This is not possible, UniGetUI does not directly handle the download process.


Disable more videos

How to disable more video options while in full screen? Or how to disable click?

Same issue facing, need an answer?


Slow internet speed

Not sure if this is specific to linux or Arch but putting here anyway.
Recently my internet was upgraded to fibre and should be getting gigabit internet speeds over Ethernet.
However, my max download speed is capped at 34 Mbps on my Linux desktop with B450 MOBO but am getting well over 100 Mbps on my windows laptop using the same Ethernet connection
Have googled around and tried a few things but nothing seems to be working.
Can someone please help ?!
ethtool:
Settings for enp34s0:
Supported ports: [ TP	MII ]
Supported link modes:   10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
Supported pause frame use: Symmetric Receive-only
Supports auto-negotiation: Yes
Supported FEC modes: Not reported
Advertised link modes:  10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
Advertised pause frame use: Symmetric Receive-only
Advertised auto-negotiation: No
Advertised FEC modes: Not reported
Speed: 1000Mb/s
Duplex: Full
Auto-negotiation: off
master-slave cfg: preferred slave
master-slave status: master
Port: Twisted Pair
PHYAD: 0
Transceiver: external
MDI-X: Unknown
Supports Wake-on: pumbg
Wake-on: d
Link detected: yes
Driver:
[    7.035609] r8169 0000:22:00.0 eth0: RTL8168h/8111h, 00:d8:61:a2:fe:51, XID 541, IRQ 77
[    7.035616] r8169 0000:22:00.0 eth0: jumbo features [frames: 9194 bytes, tx checksumming: ko]
[    7.064206] r8169 0000:22:00.0 enp34s0: renamed from eth0
[    8.053366] Generic FE-GE Realtek PHY r8169-0-2200:00: attached PHY driver (mii_bus:phy_addr=r8169-0-2200:00, irq=MAC)
[    8.200581] r8169 0000:22:00.0 enp34s0: Link is Down
[   92.287313] r8169 0000:22:00.0 enp34s0: Link is Up - 1Gbps/Full - flow control rx/tx
[   92.288596] r8169 0000:22:00.0 enp34s0: Link is Up - 1Gbps/Full - flow control off
[   92.288665] r8169 0000:22:00.0 enp34s0: Link is Down
[   95.340693] r8169 0000:22:00.0 enp34s0: Link is Up - 1Gbps/Full - flow control off
[ 7167.732814] r8169 0000:22:00.0 enp34s0: Link is Down
[ 7170.138358] r8169 0000:22:00.0 enp34s0: Link is Up - 100Mbps/Unknown - flow control off
[ 7192.553834] r8169 0000:22:00.0 enp34s0: Link is Down
[ 7195.595467] r8169 0000:22:00.0 enp34s0: Link is Up - 1Gbps/Full - flow control rx/tx
[ 7392.281030] r8169 0000:22:00.0 enp34s0: Link is Down
[ 7398.283226] r8169 0000:22:00.0 enp34s0: Link is Down
[ 7401.305041] r8169 0000:22:00.0 enp34s0: Link is Up - 1Gbps/Full - flow control rx/tx
[ 7401.306691] r8169 0000:22:00.0 enp34s0: Link is Up - 1Gbps/Full - flow control rx/tx
[ 7461.274452] r8169 0000:22:00.0 enp34s0: Link is Up - 1Gbps/Full - flow control off
[ 7461.274518] r8169 0000:22:00.0 enp34s0: Link is Down
[ 7463.797046] r8169 0000:22:00.0 enp34s0: Link is Up - 1Gbps/Full - flow control off

So i was fiddling with my network configuration files and somehow broke my system a nd couldnt recover from a timeshift snapshot or access my data from a live session. (getting corrupted block errors)
Spent the weekend re-installing ArchTitus and setting up my configurations and stuff.
However upon testing the network, I'm now getting full gigabit speeds so happy days i suppose.


TypeError: Cannot set property 'apex' of undefined

TypeError: Cannot set property 'apex' of undefined

you need to set up the MonacoWebpackPlugin, I put mine in vue.config.js
const MonacoWebpackPlugin = require('monaco-editor-webpack-plugin');

module.exports = {
  configureWebpack: {
    plugins: [
      new MonacoWebpackPlugin({
        languages: ['javascript']
      })
    ]
  }
}

Thank you，but this doesn't work for me
Here i am
languages: ['javascript', 'css', 'html', 'typescript']

But again "Cannot set property 'css' of undefined”

@Wjinlei How do you solve "Cannot set property 'css' of undefined” ?

@Wjinlei How do you solve "Cannot set property 'css' of undefined” ?

我并没有解决这个问题，我换codemirror了


Use POST for changes of page state

I think this is a halfway house between doing nothing at all and doing it really properly, but I think it's an improvement on what we have and so worth getting in as an "incremental improvement".  You may disagree.
The publisher buttons to change the state of a measure page all now POST to the edit_measure endpoint that the form they are embedded in submits to.  This endpoint now checks if there was a "measure-action"
on the button that was pressed, and if so redirects to the relevant measure action endpoint.
So we do achieve a POST-and-redirect flow of pages, which is a win of sorts.
The drawback is that the state changes themselves still happen in the GETtable routes, and these URLs can still potentially be GOT when they shouldn't be.
So I think the gold-plated solution to this would be to get rid of the /publish, /send-to-review, /reject, /unpublish, routes altogether and replace them with internal methods _publish(), _send_to_review(), etc. that get called from edit_measure and then return a redirect to the .../edit page.
But I'm not going to be able to do that before Christmas now, so propose this for the time being. See what you think.

We should definitely do the full version "soon".  Because having GET requests to do these state changes is bad.


emails: Fix some css not being applied to emails.

This commit places the email CSS into the style tag located in the head section. This resolves the issue of being unable to apply certain CSS styles that cannot be inlined, such as media queries and pseudo-classes.

Merged, thanks @shameondev!
Probably the next thing we should do if we want to make this system nicer and more readable is splitting email.css into a few CSS files -- and for example, only import the digest email specific styles in the digest email template.


Read tumbprint from CircleCI OIDC endpoint TLS certificate instead of hardcoding it.

Does what it says on the tin.
Thanks for making this module!

Thank you for the kind words and for your contribution!
Because the thumbprint is a key part of establishing the chain of trust between AWS and whatever server is claiming to be CircleCI I'm a bit wary of exclusively supporting a trust-on-first-use mechanism. This is a case where I personally prefer an out of band confirmation. However, I understand the convenience of trust-on-first-use, and It's Probably Fine™.
Would you be willing to tweak this so that if the thumbprint_list variable is null then the module falls back on reading the value from the TLS certificate chain? That would allow paranoid people like me to continue using an out of band method (and prevent this from being a breaking change!) while also supporting trust-on-first-use for those who prefer the convenience. I'd happily merge that enhancement 👍

Thanks @TonyLovesDevOps!
I'll include a special thanks to you in the changelog -- would you like that to link to your GitHub profile, a homepage, LinkedIn, or something else?

Thanks @TonyLovesDevOps!
I'll include a special thanks to you in the changelog -- would you like that to link to your GitHub profile, a homepage, LinkedIn, or something else?

Thank you! A link to my GitHub profile would be much appreciated.

0.1.2 has now shipped with your contribution 🎉


No slave found for 'mymaster' in E2E tests with test_lmcache_redis_sentinel

When running test_lmcache_redis_sentinel in test/tests.py, there is an error message after issusing a new request (driver.py:118). Then OpenAI request failed: peer closed connection without sending complete message body (incomplete chunked read.
I checked the stderr log of the port. The error message is No slave found for 'mymaster'. The whole related error message is as followed:
ERROR LMCache: Engine background task failed [2024-10-14 20:58:55,943.943] [line: 188] [file: vllm_injection.py]
Traceback (most recent call last):
  File "/local/shaotingf/anaconda3/envs/lmcache1/lib/python3.10/site-packages/vllm/worker/model_runner_base.py", line 112, in _wrapper
    return func(*args, **kwargs)
  File "/local/shaotingf/lmcache1/lmcache-vllm/lmcache_vllm/vllm_injection.py", line 32, in new_execute_model
    model_input = lmcache_retrieve_kv(self.model, model_input, kv_caches)
  File "/local/shaotingf/anaconda3/envs/lmcache1/lib/python3.10/site-packages/nvtx/nvtx.py", line 116, in inner
    result = func(*args, **kwargs)
  File "/local/shaotingf/lmcache1/lmcache-vllm/lmcache_vllm/vllm_adapter.py", line 278, in lmcache_retrieve_kv
    kv_tuple, num_computed_tokens = engine.retrieve(current_tokens)
  File "/local/shaotingf/anaconda3/envs/lmcache1/lib/python3.10/site-packages/nvtx/nvtx.py", line 116, in inner
    result = func(*args, **kwargs)
  File "/local/shaotingf/anaconda3/envs/lmcache1/lib/python3.10/site-packages/torch/utils/_contextlib.py", line 116, in decorate_context
    return func(*args, **kwargs)
  File "/local/shaotingf/lmcache1/LMCache/lmcache/cache_engine.py", line 319, in retrieve
    for chunk in retrival_iterator:
  File "/local/shaotingf/lmcache1/LMCache/lmcache/storage_backend/abstract_backend.py", line 110, in batched_get
    if self.contains(key):  # Jiayi: This seems to be redundant?
  File "/local/shaotingf/lmcache1/LMCache/lmcache/storage_backend/remote_backend.py", line 114, in contains
    flag = self.connection.exists(self._combine_key(key))
  File "/local/shaotingf/lmcache1/LMCache/lmcache/storage_backend/connector/base_connector.py", line 81, in exists
    return self.connector.exists(key)
  File "/local/shaotingf/lmcache1/LMCache/lmcache/storage_backend/connector/redis_connector.py", line 98, in exists
    return self.slave.exists(key)
  File "/local/shaotingf/anaconda3/envs/lmcache1/lib/python3.10/site-packages/redis/commands/core.py", line 1729, in exists
    return self.execute_command("EXISTS", *names, keys=names)
  File "/local/shaotingf/anaconda3/envs/lmcache1/lib/python3.10/site-packages/redis/client.py", line 559, in execute_command
    return self._execute_command(*args, **options)
  File "/local/shaotingf/anaconda3/envs/lmcache1/lib/python3.10/site-packages/redis/client.py", line 565, in _execute_command
    conn = self.connection or pool.get_connection(command_name, **options)
  File "/local/shaotingf/anaconda3/envs/lmcache1/lib/python3.10/site-packages/redis/connection.py", line 1423, in get_connection
    connection.connect()
  File "/local/shaotingf/anaconda3/envs/lmcache1/lib/python3.10/site-packages/redis/sentinel.py", line 58, in connect
    return self.retry.call_with_retry(self._connect_retry, lambda error: None)
  File "/local/shaotingf/anaconda3/envs/lmcache1/lib/python3.10/site-packages/redis/retry.py", line 67, in call_with_retry
    raise error
  File "/local/shaotingf/anaconda3/envs/lmcache1/lib/python3.10/site-packages/redis/retry.py", line 62, in call_with_retry
    return do()
  File "/local/shaotingf/anaconda3/envs/lmcache1/lib/python3.10/site-packages/redis/sentinel.py", line 50, in _connect_retry
    for slave in self.connection_pool.rotate_slaves():
  File "/local/shaotingf/anaconda3/envs/lmcache1/lib/python3.10/site-packages/redis/sentinel.py", line 134, in rotate_slaves
    raise SlaveNotFoundError(f"No slave found for {self.service_name!r}")
redis.sentinel.SlaveNotFoundError: No slave found for 'mymaster'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/local/shaotingf/lmcache1/lmcache-vllm/lmcache_vllm/vllm_injection.py", line 177, in new_log_task_completion
    return_value = task.result()
  File "/local/shaotingf/anaconda3/envs/lmcache1/lib/python3.10/site-packages/vllm/engine/async_llm_engine.py", line 733, in run_engine_loop
    result = task.result()
  File "/local/shaotingf/anaconda3/envs/lmcache1/lib/python3.10/site-packages/vllm/engine/async_llm_engine.py", line 673, in engine_step
    request_outputs = await self.engine.step_async(virtual_engine)
  File "/local/shaotingf/anaconda3/envs/lmcache1/lib/python3.10/site-packages/vllm/engine/async_llm_engine.py", line 340, in step_async
    outputs = await self.model_executor.execute_model_async(
  File "/local/shaotingf/anaconda3/envs/lmcache1/lib/python3.10/site-packages/vllm/executor/gpu_executor.py", line 185, in execute_model_async
    output = await make_async(self.driver_worker.execute_model
  File "/local/shaotingf/anaconda3/envs/lmcache1/lib/python3.10/concurrent/futures/thread.py", line 58, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/local/shaotingf/anaconda3/envs/lmcache1/lib/python3.10/site-packages/vllm/worker/worker_base.py", line 327, in execute_model
    output = self.model_runner.execute_model(
  File "/local/shaotingf/anaconda3/envs/lmcache1/lib/python3.10/site-packages/torch/utils/_contextlib.py", line 116, in decorate_context
    return func(*args, **kwargs)
  File "/local/shaotingf/anaconda3/envs/lmcache1/lib/python3.10/site-packages/vllm/worker/model_runner_base.py", line 125, in _wrapper
    pickle.dump(dumped_inputs, filep)
  File "/local/shaotingf/anaconda3/envs/lmcache1/lib/python3.10/site-packages/vllm/engine/llm_engine.py", line 563, in __reduce__
    raise RuntimeError("LLMEngine should not be pickled!")
RuntimeError: LLMEngine should not be pickled!

Check docker/redis-sentinel


fix: image datasource image type typo

What does this fix or implement?

Checklist

[ ] PR name added as appropriate (e.g. feat:/fix:/doc:/test:/refactor:)
[ ] Tests added or updated
[ ] Documentation updated
[ ] Changelog updated and version incremented (label: upcoming release)
[ ] Github Issue linked if any
[ ] Jira task updated

@gabi-ionos there is one more license_type in docs/resources/dbaas_mongo_cluster.md.


WSL (Ubuntu 22.04) build fails due to HDFS not supporting clang++-16

What's wrong
Clean build on wsl (Ubuntu 22.04.1 LTS) fails. First there is an issue with pthread.
I resolved it by adding
set(CMAKE_THREAD_LIBS_INIT "-lpthread")
set(CMAKE_HAVE_THREADS_LIBRARY 1)
set(CMAKE_USE_WIN32_THREADS_INIT 0)
set(CMAKE_USE_PTHREADS_INIT 1)
set(THREADS_PREFER_PTHREAD_FLAG ON)

to the top level CMakeLists.txt
Then the build failed due to HDFS not supporting clang++-16.
How to reproduce
git clone --recurse-submodules git@github.com:timeplus-io/proton.git
# -- Edit CMakeLists.txt as described if necessary
cd proton
mkdir build
cd build
cmake ..

Error message
-- Enable kerberos for HDFS
CMake Error at contrib/libhdfs3-cmake/CMake/Platform.cmake:40 (MESSAGE):
  Unsupported compiler: "/usr/bin/clang++-16"
Call Stack (most recent call first):
  contrib/libhdfs3-cmake/CMakeLists.txt:26 (include)

-- Configuring incomplete, errors occurred!

Before we fix this, you can try
mkdir release_build
cd release_build
bash ../build.sh

building Proton is taking quite a bit of time, sorry about this.
I'm planning to set up my WSL to give it a try.  the HDFS can be disable directly -DENABLE_HDFS=OFF or use the build.sh mentioned above.
we shall not encounter the issue with Pthread, anyway, I'm going to give the build a shot today on WSL 2204.

WSL is slower than I expected, and I encounter OOM (Out of Memory) errors many times. I eventually succeeded in building the project using ../build.sh with the commit ad3dc2b.
I used clang-17, but it didn't make much difference.
The only strange issue I faced was the threads library missing error. I encountered this as well, but it was resolved after cleaning the folder and trying again.

I tried https://github.com/timeplus-io/proton/pull/797,
I ran into the following error:
In file included from /mnt/c/Users/k.veschgini/Documents/kambis/src/proton/contrib/muduo/muduo/net/EventLoop.cc:9:
In file included from /mnt/c/Users/k.veschgini/Documents/kambis/src/proton/contrib/muduo/muduo/net/EventLoop.h:14:
In file included from /mnt/c/Users/k.veschgini/Documents/kambis/src/proton/contrib/llvm-project/libcxx/include/atomic:526:
In file included from /mnt/c/Users/k.veschgini/Documents/kambis/src/proton/contrib/llvm-project/libcxx/include/__thread/timed_backoff_policy.h:17:
In file included from /mnt/c/Users/k.veschgini/Documents/kambis/src/proton/contrib/llvm-project/libcxx/include/__threading_support:35:
In file included from /mnt/c/Users/k.veschgini/Documents/kambis/src/proton/cmake/linux/../../contrib/sysroot/linux-x86_64/x86_64-linux-gnu/libc/usr/include/pthread.h:22:
/mnt/c/Users/k.veschgini/Documents/kambis/src/proton/contrib/muduo/muduo/net/endian.h:51:10: error: use of undeclared identifier 'htobe64'
  return htobe64(host64);
         ^
/mnt/c/Users/k.veschgini/Documents/kambis/src/proton/contrib/muduo/muduo/net/endian.h:56:10: error: use of undeclared identifier 'htobe32'
  return htobe32(host32);
         ^
/mnt/c/Users/k.veschgini/Documents/kambis/src/proton/contrib/muduo/muduo/net/endian.h:61:10: error: use of undeclared identifier 'htobe16'
  return htobe16(host16);
         ^
/mnt/c/Users/k.veschgini/Documents/kambis/src/proton/contrib/muduo/muduo/net/endian.h:66:10: error: use of undeclared identifier 'be64toh'
  return be64toh(net64);
         ^
/mnt/c/Users/k.veschgini/Documents/kambis/src/proton/contrib/muduo/muduo/net/endian.h:71:10: error: use of undeclared identifier 'be32toh'
  return be32toh(net32);
         ^
/mnt/c/Users/k.veschgini/Documents/kambis/src/proton/contrib/muduo/muduo/net/endian.h:76:10: error: use of undeclared identifier 'be16toh'
  return be16toh(net16);
         ^
6 errors generated.
ninja: build stopped: subcommand failed.

The issue with muduo arises because the /mnt/c/ directory is accessed in a case-insensitive way, leading the #include <endian.h> directive to incorrectly include the Endian.h file from muduo instead. I resolved this by turning on case sensitivity in that specific folder.

Thanks. Not sure whether you can send out a PR to improve this

splendid :) thanks


Add preliminary test suite

Includes the following fixes uncovered while writing tests:

Fix an issue where ChromaLocation.get_offsets would throw an error on 4:4:4 subsampling
Fix an issue where scale_value could return values outside a valid range when converting to float
Fix an issue where scale_value was returning floats for integer sample type outputs

All right, cool, thanks. I can undo those changes and adjust the tests accordingly then.

@LightArrowsEXE Reminder to take a look when you have a moment. Thanks. 🙂

It looked good to me glossing over it. Waiting for @emotion3459 to let me know if he spots any remaining issues before merging, but I'm happy to merge if it's all good.


[api] Adding support for VM suspend action

Enabling suspend action on VM collection and resources
Adding suspend_resource_vms method
Adding specs for Vm suspend

https://trello.com/c/jRyHMgjs

Updated as per others, now async. @Fryguy please review.

@Fryguy rebased/repushed, please review/merge. Thanks.


Number of usages not aligned in Service catalog list view

Description:

In the service catalog page, when you click on the list view, the number of usages is not aligned.

Steps to reproduce:
Create some service catalog entries and watch the list view.
Affected Product Version:

wso2am-4.00-beta

duplicate https://github.com/wso2/product-apim/issues/10826


Documentation dump is semi finalized and needed to be sent to main.

JC uploaded documentations to the dump and is needed to be transfered to main

Pulled to main


Issue with similar unicode characters : é and e , ŧ and t, ø and o

[x] I have read through the manual page (man fzf)
[x] I have the latest version of fzf
[x] I have searched through the existing issues

Info

OS

[x] Linux
[ ] Mac OS X
[ ] Windows
[ ] Etc.

Shell

[x] bash
[ ] zsh
[ ] fish

Problem / Steps to reproduce
FZF_DEFAULT_OPTS="" fzf <<<$'abc\ndef\néŧø'

Search for "eto" : that works (it returns the éŧø item)
Search for "éto" : that doesn't work. (it returns no item)
It seems that if there is one character that is matching exactly, all other characters need to match as well.
Maybe that is expected though.

This seems to be actually wanted :
- Smart match of accented characters
    - An unaccented character in the query string will match both accented and
      unaccented characters, while an accented character will only match
      accented characters. This is similar to how "smart-case" match works.

https://github.com/junegunn/fzf/commit/f092e4038fd1344bcd0a7c11f7ab7355734f7275
Maybe adding an option to disable smart-match for accented characters.

There is the --litteral flag that will do the equivalent as the +i flag (case sensitive flag).
So what I'm looking for is the opposite of --litteral basically.


Add support for spf13/cobra

This will add support for spf13/cobra and streamline the CLI with all our other projects.

ping @giantswarm/team-core

@denderello LGTM, I'll merge this PR to add some major changes in a different one.

Great, thanks!


If Then

According to the text If has a Then but the sample code doesn't.
So which is correct?

Then is redundant. Removed.


FEAT-#6913: support sqlalchemy connectables in read_sql by getting connection url

What do these changes do?
As outlined in the issue, these changes allow passing SQLAlchemy connection objects to read_sql by using the same workaround that is used for to_sql.

[x] first commit message and PR title follow format outlined here

NOTE:  If you edit the PR title to match this format, you need to add another commit (even if it's empty) or amend your last commit for the CI job that checks the PR title to pick up the new PR title.

[x] passes flake8 modin/ asv_bench/benchmarks scripts/doc_checker.py
[x] passes black --check modin/ asv_bench/benchmarks scripts/doc_checker.py
[x] signed commit with git commit -s
[x] Resolves #6913
[x] tests added and passing
[x] module layout described at docs/development/architecture.rst is up-to-date

@tochigiv thanks for the contribution! Could you also add a test?

@tochigiv thanks for the contribution! Could you also add a test?

Is it not already covered by a test? https://github.com/modin-project/modin/blob/a96a9a94ea20deb8f5ebcb54819d90756c54a33e/modin/pandas/test/test_io.py#L2508-L2524

@tochigiv thanks for the contribution! Could you also add a test?

Is it not already covered by a test?
https://github.com/modin-project/modin/blob/a96a9a94ea20deb8f5ebcb54819d90756c54a33e/modin/pandas/test/test_io.py#L2508-L2524

Hm, looks like that.


License

I'm looking for a tool to support user needs analysis in Wardley Mapping, and I would like to explore Maslow. Before doing so, it would be sensible to understand the license this repository is using. Can anyone confirm?
https://community.wardleymaps.com/t/a-potential-tool-to-capture-user-needs/120

Hi @jhngrant, I've added a license (MIT).
That said, I suspect it's unlikely that Maslow will suit your needs. It's a very specific tool that publishes the user need on the GOV.UK /info pages like https://www.gov.uk/info/benefits-calculators. It doesn't have many features besides the publishing.


The new HTTP client still makes real requests when faked

Laravel Version: 7.0
PHP Version: not relevant
Database Driver & Version: none

Description:
The new HTTP client added in https://github.com/laravel/framework/pull/31449 still makes real requests when faked. After the real call is done it returns a stubbed response.
Steps To Reproduce:
Fake the HTTP client, make a request:
function testItStubsResponses()
{
    $factory = new Factory();

    $factory->fake([
        '*' => Factory::response('Hallo', 200),
    ]);

    // This website has a 5 second delay
    $response = $factory->get('http://slowwly.robertomurray.co.uk/delay/5000/url/http://laravel.com');

    $this->assertSame('Hallo', $response->body());
}

The test above takes 5+ seconds to complete, because it makes a real request to the given url.

I tried to fix this myself, but I couldn't figure out how the PendingRequest class works.
Just my 2 cents, but Guzzle has a built-in solution for mocking responses. It takes less than 5 lines of code to implement. It might be a good idea for future maintainability to use the default Guzzle way, instead of the current complicated custom solution.

Fixed.


make: use cd instead of '--directory' option of cpio

Due to the option '--directory' just added from 'cpio' v2.12, so the
osbuilder will failed with old version 'cpio' before v2.12, such as in
Centos 7 with v2.11.
Fix it by replacing this option with '(cd ...; cat ...)'.
Fixes: #384
Signed-off-by: Shile Zhang<EMAIL_ADDRESS>

/test


Enhancment: Middle Scroll (but more information is added(when i say more i mean only one sentence more))

The title speaks for itself: add a Middle Scroll option (only boyfriend arrows on the middle), but make it work that you can tweak how transparent the notes of your opponent are on your row so you will still be able to see them.
Originally posted by @NukeThief in https://github.com/KadeDev/Kade-Engine/issues/1405
I know that optimizations does this, but it sends you to fawking darkness, and i don't want that.
(currently im not home and i can't give concept images, but when i will be back i will give some)

HOW CAN I ADD A ENHANCMENT LABEL AFTER I POSTED THE ISSUE ON MOBILE HELP

The title speaks for itself: add a Middle Scroll option (only boyfriend arrows on the middle), but make it work that you can tweak how transparent the notes of your opponent are on your row so you will still be able to see them.
Originally posted by @NukeThief in #1405
I know that optimizations does this, but it sends you to fawking darkness, and i don't want that.
(currently im not home and i can't give concept images, but when i will be back i will give some)

if i remember correctly kade said on a closed enhancement that you can use modcharts for middlescroll

how can i do it??

how can i do it??

kade has a modchart tutorial here.

Im too lazy read the entire tutorial AND it will be just easier for a lot of people

i figured out the modchart


the hls.js version in package.json should be update.

Now the latest version of hls.js is v0.8.9, but this package is dependent on hls.js v0.6.21.
hls.js v0.6.21 not work well with android 4.4, so it need update to version v0.8.9 to fix it.

I have just synced this repo with the latest production code.

@tri170391  you are so efficient!


Modding

Hey man sorry to bother you again but what do we do after we build it? Do we like modify any files like unpacking then repacking them so the game can read them or something? Again so sorry for bothering you. Just want to edit weapon stats so the game can read them when I get done

You can edit the files here


GSD Request

--- GSD JSON ---
{
  "vendor_name": "Linux",
  "product_name": "Kernel",
  "product_version": "versions from v4.16 to before v5.15.19",
  "vulnerability_type": "unspecified",
  "affected_component": "unspecified",
  "attack_vector": "unspecified",
  "impact": "unspecified",
  "credit": "",
  "references": [
    "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=bafbdd527d569c8200521f2f7579f65a044271be",
    "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=aefaccd19379d6c4620269a162bfb88ff687f289"
  ],
  "extended_references": [
    {
      "type": "commit",
      "value": "bafbdd527d569c8200521f2f7579f65a044271be",
      "note": "introduced"
    },
    {
      "type": "commit",
      "value": "aefaccd19379d6c4620269a162bfb88ff687f289",
      "note": "fixed"
    }
  ],
  "reporter": "joshbressers",
  "reporter_id": 1692786,
  "notes": "",
  "description": "phylib: fix potential use-after-free\n\nThis is an automated ID intended to aid in discovery of potential security vulnerabilities. The actual impact and attack plausibility have not yet been proven.\nThis ID is fixed in Linux Kernel version v5.15.19 by commit aefaccd19379d6c4620269a162bfb88ff687f289, it was introduced in version v4.16 by commit bafbdd527d569c8200521f2f7579f65a044271be. For more details please see the references link."
}
--- GSD JSON ---

This issue has been assigned GSD-2022-1000262


Run bcbio on multiple queues of the same Sun Grid Engine cluster?

Is it possible to run bcbio on multiple queues of the same Sun Grid Engine cluster?
I currently run bcbio on one queue:
bcbio_nextgen.py ../config/freebayes.yaml -t ipython -n 500 -s sge -q main
and wonder if it is possible to run bcbio on multiple queues. If I currently try
bcbio_nextgen.py ../config/freebayes.yaml -t ipython -n 1000 -s sge -q main,main2
only the second queue specified, main2 is used for submitting jobs to.
I think this is something that the underlying  qsub from the sun grid engine supports.

Hi @WimS83,
We don't currently have support for specifying multiple queues-- it might be possible to implement, but it might not be too useful. There is an assumption in the code that the compute that is available on a queue is fairly homogeneous. For example, we connect to a machine via the queue, determine what is available in terms of resources, make the assumption that the machines on the queue generally look like that and then scale resource requests based on that information. If the two queues have very different looking machines we'll end up being incorrect.
How does the multiple queues work with the parallel environments? Do you have to specify one for each queue or something like that? Do you have an example SBATCH script that works?

Hi @roryk
Google and qstat -pe my_pe tell me that you can have a PE over multiple queues.
By default if you don't specify a queue, SGE qsub will submit your job to any queue that can process it.
I thought that the node / job specification was picked up from galaxy/bcbio_system.yaml ? I did not know that there is some auto detection involved?
In my case I have two queues. One queue with regular machines and one with large machines that have more cpu and memory and a better mem / cpu ratio.
The current job sizes (cpu and mem) that I specified in bcbio_system.yaml fit both the machines in the normal queue and in the large queue.
I don't know what the auto detection involves but maybe you could also take the machines from the first queue as the minimal machine size and then also try to submit that size of jobs to the second queue? This is the case that a second queue is specified.
I don't know what a SBATCH script is.

While I cannot offer a direct solution I'd like to add some notes that may be of help for devising a solution. We circumvent (or better, hack) a problem similar to yours by hard-patching cluster_helper.cluster. For instance, for us it is crucial that the bcbio ipython controller job runs on a queue different from the queue for the ipython engine jobs due to the long run time of the former and the the fact that we would like to ensure that the controller is run on an queue just for AWS on-demand nodes rather than on a queue for spot nodes that distributes the engines. So you may have similar luck by just modifying the cluster_helper package in your installation and add the PBS flags that you were detailing to the corresponding SGE function there. Bcbio will then blindly use that.
In case that breaks the cluster discovery @roryk mentioned you can just add a file to your working directory at provenance/ipython-QUEUENAME.yaml I believe. Once you conducted a bcbio run via bcbio_bextgen.py this file will be created; you can modify it at will and copy it into the analogous directory for another bcbio run. If existing, bcbio will take the node resource information from that file when it is started without trying to discover the node resources again. In that manner you can simulate arbitrary node resources to bcbio, which can make sense if you have an heterogeneous cluster (like you may have due to multiple queues, and as we have due to the use of an AWS auto-scaling spot-cluster).

Hi @WimS83,
It picks up the resources from the bcbio_system.yaml file but it needs to figure out how many jobs it can submit to each machine. So if the machine has 64 cores but only 40 GB of memory, and the bcbio_system.yaml file is set up to take 16 cores per job and each job will take 20 GB of memory, it will only stick two jobs on that one machine. If the machines are super different across the two queues we'll end up making some bad calculations.
@schelhorn, I'd be super interested in adding support for your hack to ipython-cluster-helper. A patch maybe if github won't work?

@schelhorn Thanks for your tip! I'll have a go at using that for our situation.
@roryk Thanks for your answer. I would like to understand better why you choose to detect node size in the cluster and to reuse jobs/slots on machines in the cluster.
In my previous experience with cluster computing  I just made jobs  of a certain size (cpu +mem) so that every node could run one or more of those jobs. I subsequently submit all those thousands of those jobs to SGE and let the SGE scheduler figure out when and how many of those jobs to run on which nodes.
Something like this for thousands of jobs:
qsub -hard -q main,main2,mainx,mainy -pe my_pe 16 -l h_vmem=20G,vf=20G
If there is  no machine in any queue that is large enough to run this type of job SGE returns a warning. For the rest SGE figures out the scheduling.
Seems to me that your are now doing something similar in your own scheduler.
I am interested in knowing why you did not take the SGE scheduler approach but the one you currently do. I suspect there are many good reasons but I am just curious. Thanks.

Bcbio uses ipython parallel as a meta-scheduler; that has a couple of advantages like pipelining jobs, handling node-local resources that span multiple jobs, and real time logging. SGE only sees one controller job and a couple of engine jobs, the latter of which do the actual work and are renewed based on the parallel environment that the workflow uses in a particular stage. It's a little complicated and somewhat of an internal black box that isn't exposed to the end user, but what it comes down to is that cluster_helper is the interface between ipython and your SGE, and that it basically has one python class for controller and engines each, and that these classes issue PBS commands. So you could just hard code your second queue in there for the engine and you should be good to go. Ask engines and the controller have to end up in the same subnet though I believe, so you have your nodes set up to assure that.

Thianks @schelhorn and @WimS83. @schelhorn nailed it, http://ipython.org/ipython-doc/dev/parallel/ has a more in depth description of how the parallelization works. We're hoping that at some point we won't have to do any of that anymore and have a company or another project handle the parallelization backend and just write bcbio-nextgen to use the CWL: https://github.com/common-workflow-language/common-workflow-language but none of that stuff is ready to go yet.

Thanks @roryk  and @schelhorn . I appreciate very much the functionality already available in bcbio and will try to use the second queue in the way @schelhorn suggested.

Sweet, let us know if you run into any other troubles, closing out this issue for now.


How to create bar chart for Feature Widget in hygieia

I need to implement Stacked bar chart in Widget Feature, Please provide me code

https://github.com/capitalone/Hygieia/issues/1593


[BUG] Read-only admin: Kubernetes ISOs are not forbidden

Describe the bug
Even when logged in as read-only admin (with allowed only list* actions in the role), you're still able to enable/disable a Kubernetes ISO.
To Reproduce
Steps to reproduce the behavior:

Login as read-only admin user (admin role with only list* actions allowed).
Go to Images > Kubernetes ISOs. Now you can add a new ISO.
Click on ISO. The 'Update' and 'Delete' operations are also allowed.

Expected behavior
Read-only admin should not be allowed to add, edit or delete Kubernetes ISOs.
Screenshots
None.
Desktop (please complete the following information):

OS: Ubuntu 18.04 LTS
Browser: Chrome
Version: 83.0.4103.61 (Official Build) (64-bit)

Additional context
None.

Not reproducible

Ideally, the readonly admin rules must be :

The issue can come if there is no default deny all rule *


Mudblazor Table Row Click

Bug type
Component
Component name
MudTable
What happened?

My requirement was edit the record only when edit button was clicked and not on rowclick. I tried that. Im facing issue with that Row Click.
Lets say I have 3 rows in Table. I'm randomly clicking the 3rd row and then I click on 2nd row Edit icon (for editing the row). When I place the cursor on textbox it automatically closing. Sometimes it is duplicating the value

Expected behavior
Expected is it should allow me to edit even though I clicked on random rows it should not have the reference of that row
Reproduction link
https://github.com/Pavithra1062/Blazor/blob/3ab24cc67e256128d82b41f5995f039f05f80900/Index.razor
Reproduction steps

Create MudTable with Readonly as True.
Enable Row edit during add or edit icon click
Make ReadOnly False based on Row edit
Keep track of item being edited
click on random row and click on edit icon of another row and try to edit
Place the cursor on Textbox

Relevant log output
No response
Version (bug)
5.1.5
Version (working)
No response
What browsers are you seeing the problem on?
Chrome, Microsoft Edge
On what operating system are you experiencing the issue?
Windows
Pull Request

[ ] I would like to do a Pull Request

Code of Conduct

[X] I agree to follow this project's Code of Conduct

Can you share a sample code showing the issue in https://try.mudblazor.com , please?

Please access url mentioned in Reproduction link

Im unable to run this code in trymudblazor.

Can you share a sample code showing the issue in https://try.mudblazor.com , please?

Can you share a sample code showing the issue in https://try.mudblazor.com , please?

please check url mentioned in reproduction link.

I've created a try.mudblazor based on you link to start an investigation:
https://try.mudblazor.com/snippet/cumllQvvqqcPPhDK
I'll take a look as soon as I can.

I'm seeing the same thing. I think what's happening here is the the RowClick event is executing some Javascript which immedately removes the focus from a row in the table. This has two side-effects:

If you put an edit box in a MudTd in the table, when you click on it to edit the text, the row click-handler immediately removes focus from that edit box.
If a user tries to select the text in a cell to copy to the clipboard, as soon as they release the mouse, the onclick event fires, removing focus from the table. It's incredibly frustrating.

If I open developer tools and disable/remove the onclick handler for the generated TR, the problem is solved. This also used to work when I first implemented my MudTable last year - it's only recently that it's broken.
I'm going to look into a workaround to stop the click handler firing, but in the meantime I thought this info might be helpful.

v6.1.6 fixes this, MudTable now has a SelectOnRowClick bool property.

v6.1.6 fixes this, MudTable now has a SelectOnRowClick bool property.

Do I understand correctly that this issue can be closed?

v6.1.6 fixes this, MudTable now has a SelectOnRowClick bool property.

Do I understand correctly that this issue can be closed?

Re-reading the lot again, I think I mentioned the SelectOnRowClick parameter as a hint to possibly solve this issue.
Only @Pavithra1062 can give us a conclusive answer.

I will close the issue. @Pavithra1062 let me know if the issue is still present for MudBlazor v6+ and there is no workaround for it, I will reopen.


Prefixes are not necessarily at the beginning of the string

We could have something like:
@Directive({
  selector: 'template[myFoo]`
})

That won't work even if it has the correct prefix.

As a bonus, it doesn't think it is an attribute directive.

This is duplication of https://github.com/mgechev/codelyzer/issues/15. Currently we support only basic selectors but this is in the roadmap for sure.

Welp, I swear I looked.

Haha, no worries!


Fix EMA when using tensorflow backend

Currently, the initial state of _model_variables_moving_average is INCORRECT when using tensorflow backend with run_eagerly=False.
This PR fixes the bug by using tf.cond internally in TFOptimizer.
The new test test_ema_with_model_fit can only be passed after this PR.
Actually, the bug was identified during the implementation of the idea proposed in #18949

Codecov Report
Attention: 14 lines in your changes are missing coverage. Please review.

Comparison is base (4a4a139) 79.64% compared to head (a7fd412) 55.97%.

Files
Patch %
Lines

keras/backend/tensorflow/optimizer.py
0.00%
9 Missing :warning:

keras/optimizers/base_optimizer.py
16.66%
4 Missing and 1 partial :warning:

Additional details and impacted files
@@             Coverage Diff             @@
##           master   #18972       +/-   ##
===========================================
- Coverage   79.64%   55.97%   -23.67%
===========================================
  Files         338      338
  Lines       35215    35229       +14
  Branches     6916     6920        +4
===========================================
- Hits        28048    19721     -8327
- Misses       5585    14039     +8454
+ Partials     1582     1469      -113

Flag
Coverage Δ

keras
55.97% <6.66%> (-23.53%)
:arrow_down:

keras-jax
?

keras-numpy
55.97% <6.66%> (-0.04%)
:arrow_down:

keras-tensorflow
?

keras-torch
?

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

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

Hi @fchollet
Would you mind reverting the EMA implementation to this commit?
Currently, it failed when using CUDA and jit_compile=True in tensorflow backend
I suspect it is impossible to lift the variable in self.add_variable_from_reference when using XLA and tensorflow. In fact, I have no idea how to fix it.


Bug: Timestamp difference between Time and Time::createFromTimestamp

PHP Version
7.4
CodeIgniter4 Version
4.1.7
CodeIgniter4 Installation Method
Composer (using codeigniter4/appstarter)
Which operating systems have you tested for this bug?
Linux
Which server did you use?
fpm-fcgi
Database
MySQL 5.7.36
What happened?
Time and Time::createFromTimestamp produce differing results:

2022-01-17 13:57:53
2022-01-17 19:57:53

Steps to Reproduce
 namespace App\Controllers;
 use CodeIgniter\I18n\Time;
 class Timetest extends BaseController
 {
    public function index()
    {
        $now = new Time('now', 'America/Chicago', 'en_US');
        $new_now = Time::createFromTimestamp($now->timestamp, 'America/Chicago', 'en_US');

        print $now;
        echo "<br>\n";
        print $new_now;
    }
}

Expected Output
I expect the timestamps to match.
Anything else?
Submitting this issue because of the forum thread here

@JamesShaver thanks for the report. Can you check if this will be fixed by #5588 ?

Thanks @paulbalandan, I did search for the issue but missed this.  We can close my report.


CI on ARM Mac

Some of our Python optional extensions (the ldpc python package) seem to fail to install on some mac systems. Adding CI for mac on x64 and arm.
@amicciche

@amicciche , could you copy paste in a code block the entire stack trace for the installation failure you get on an ARM mac?
E.g. the result of
julia +1.10 --project=some_new_folder -tauto
] add QuantumClifford PyQDecoders
using QuantumClifford, PyQDecoders
versioninfo(verbose=true)

@amicciche , could you copy paste in a code block the entire stack trace for the installation failure you get on an ARM mac?
E.g. the result of
julia +1.10 --project=some_new_folder -tauto
] add QuantumClifford PyQDecoders
using QuantumClifford, PyQDecoders
versioninfo(verbose=true)

After executing
julia +1.10 --project=some_new_folder -tauto
] add QuantumClifford PyQDecoders

I got the following output:
micciche@vl965-172-31-45-184 some_new_folder % julia +1.10 --project=. -tauto

               _
   _       _ _(_)_     |  Documentation: https://docs.julialang.org
  (_)     | (_) (_)    |
   _ _   _| |_  __ _   |  Type "?" for help, "]?" for Pkg help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 1.10.2 (2024-03-01)
 _/ |\__'_|_|_|\__'_|  |  Official https://julialang.org/ release
|__/                   |

(some_new_folder) pkg> add QuantumClifford PyQDecoders
    Updating registry at `~/.julia/registries/General.toml`
   Resolving package versions...
   Installed Nemo ─ v0.43.3
    Updating `~/Research/QuantumInfo23/JuliaProjects/some_new_folder/Project.toml`
  [17f5de1a] + PyQDecoders v0.2.0
  [0525e862] + QuantumClifford v0.9.3
    Updating `~/Research/QuantumInfo23/JuliaProjects/some_new_folder/Manifest.toml`
⌅ [c3fe647b] + AbstractAlgebra v0.40.9
  [ec485272] + ArnoldiMethod v0.4.0
  [62783981] + BitTwiddlingConvenienceFunctions v0.1.5
  [861a8166] + Combinatorics v1.0.2
  [34da2185] + Compat v4.14.0
  [992eb4ea] + CondaPkg v0.2.22
  [9a962f9c] + DataAPI v1.16.0
  [864edb3b] + DataStructures v0.18.20
  [e2d170a0] + DataValueInterfaces v1.0.0
  [ffbed154] + DocStringExtensions v0.9.3
  [86223c79] + Graphs v1.10.0
  [3e5b6fbb] + HostCPUFeatures v0.1.16
  [2cd5bd5f] + ILog2 v0.2.4
  [615f187c] + IfElse v0.1.1
  [d25df0c9] + Inflate v0.1.4
  [82899510] + IteratorInterfaceExtensions v1.0.0
  [692b3bcd] + JLLWrappers v1.5.0
  [0f8b85d8] + JSON3 v1.14.0
  [1914dd2f] + MacroTools v0.5.13
  [0b3b1443] + MicroMamba v0.1.14
  [2edaba10] + Nemo v0.43.3
  [bac558e1] + OrderedCollections v1.6.3
  [69de0a69] + Parsers v2.8.1
  [fa939f87] + Pidfile v1.3.0
  [aea7be01] + PrecompileTools v1.2.1
  [21216c6a] + Preferences v1.4.3
  [17f5de1a] + PyQDecoders v0.2.0
  [6099a3de] + PythonCall v0.9.19
  [0525e862] + QuantumClifford v0.9.3
  [5717a53b] + QuantumInterface v0.3.4
  [fb686558] + RandomExtensions v0.4.4
  [ae029012] + Requires v1.3.0
  [fdea26ae] + SIMD v3.4.6
  [6c6a2e73] + Scratch v1.2.1
  [699a6c99] + SimpleTraits v0.9.4
  [aedffcd0] + Static v0.8.10
  [90137ffa] + StaticArrays v1.9.3
  [1e83bf80] + StaticArraysCore v1.4.2
  [856f2bd8] + StructTypes v1.10.0
  [8e1ec7a9] + SumTypes v0.5.6
  [3783bdb8] + TableTraits v1.0.1
  [bd369af6] + Tables v1.11.1
  [e17b2a0c] + UnsafePointers v1.0.0
  [e21ec000] + Antic_jll v0.201.500+0
  [d9960996] + Arb_jll v200.2300.0+0
  [fcfa6d1b] + Calcium_jll v0.401.100+0
⌅ [e134572f] + FLINT_jll v200.900.9+0
⌅ [656ef2d0] + OpenBLAS32_jll v0.3.24+0
  [f8abcde7] + micromamba_jll v1.5.8+0
  [0dad84c5] + ArgTools v1.1.1
  [56f22d72] + Artifacts
  [2a0f44e3] + Base64
  [ade2ca70] + Dates
  [8ba89e20] + Distributed
  [f43a241f] + Downloads v1.6.0
  [7b1f6079] + FileWatching
  [b77e0a4c] + InteractiveUtils
  [4af54fe1] + LazyArtifacts
  [b27032c2] + LibCURL v0.6.4
  [76f85450] + LibGit2
  [8f399da3] + Libdl
  [37e2e46d] + LinearAlgebra
  [56ddb016] + Logging
  [d6f4376e] + Markdown
  [a63ad114] + Mmap
  [ca575930] + NetworkOptions v1.2.0
  [44cfe95a] + Pkg v1.10.0
  [de0858da] + Printf
  [3fa0cd96] + REPL
  [9a3f8284] + Random
  [ea8e919c] + SHA v0.7.0
  [9e88b42a] + Serialization
  [1a1011a3] + SharedArrays
  [6462fe0b] + Sockets
  [2f01184e] + SparseArrays v1.10.0
  [10745b16] + Statistics v1.10.0
  [fa267f1f] + TOML v1.0.3
  [a4e569a6] + Tar v1.10.0
  [8dfed614] + Test
  [cf7118a7] + UUIDs
  [4ec0a83e] + Unicode
  [e66e0078] + CompilerSupportLibraries_jll v1.1.0+0
  [781609d7] + GMP_jll v6.2.1+6
  [deac9b47] + LibCURL_jll v8.4.0+0
  [e37daf67] + LibGit2_jll v1.6.4+0
  [29816b5a] + LibSSH2_jll v1.11.0+1
  [3a97d323] + MPFR_jll v4.2.0+1
  [c8ffd9c3] + MbedTLS_jll v2.28.2+1
  [14a3606d] + MozillaCACerts_jll v2023.1.10
  [4536629a] + OpenBLAS_jll v0.3.23+4
  [bea87d4a] + SuiteSparse_jll v7.2.1+1
  [83775a58] + Zlib_jll v1.2.13+1
  [8e850b90] + libblastrampoline_jll v5.8.0+1
  [8e850ede] + nghttp2_jll v1.52.0+1
  [3f19e933] + p7zip_jll v17.4.0+2
        Info Packages marked with ⌅ have new versions available but compatibility constraints restrict them from upgrading. To see why use `status --outdated -m`
Precompiling project...
  ✗ PyQDecoders
  ✗ QuantumClifford → QuantumCliffordPyQDecodersExt
  2 dependencies successfully precompiled in 103 seconds. 59 already precompiled.
  2 dependencies errored.
  For a report of the errors see `julia> err`. To retry use `pkg> precompile`

(some_new_folder) pkg> err
ERROR: `err` is not a recognized command. Type ? for help with available commands

julia> err
PkgPrecompileError: The following 1 direct dependency failed to precompile:

PyQDecoders [17f5de1a-9b79-4409-a58d-4d45812840f7]

Failed to precompile PyQDecoders [17f5de1a-9b79-4409-a58d-4d45812840f7] to "/Users/micciche/.julia/compiled/v1.10/PyQDecoders/jl_sFtNFz".
    CondaPkg Found dependencies: /Users/micciche/.julia/packages/PythonCall/bb3ax/CondaPkg.toml
    CondaPkg Found dependencies: /Users/micciche/.julia/packages/PyQDecoders/nk69c/CondaPkg.toml
    CondaPkg Resolving changes
             + ldpc (pip)
             + numpy (pip)
             + pip
             + pymatching (pip)
             + python
             + scipy (pip)
    CondaPkg Creating environment
             │ /Users/micciche/.julia/artifacts/98aba21a6802e06a5d2e7c48633d7dc1c3d4a749/bin/micromamba
             │ -r /Users/micciche/.julia/scratchspaces/0b3b1443-0f03-428d-bdfb-f27f9c1191ea/root
             │ create
             │ -y
             │ -p /Users/micciche/Research/QuantumInfo23/JuliaProjects/some_new_folder/.CondaPkg/env
             │ --override-channels
             │ --no-channel-priority
             │ pip[version='>=22.0.0']
             │ python[version='>=3.7,<4',channel='conda-forge',build='*cpython*']
             └ -c conda-forge

Transaction

  Prefix: /Users/micciche/Research/QuantumInfo23/JuliaProjects/some_new_folder/.CondaPkg/env

  Updating specs:

   - pip[version='>=22.0.0']
   - conda-forge::python[version='>=3.7,<4',build=*cpython*]

  Package                 Version  Build               Channel           Size
───────────────────────────────────────────────────────────────────────────────
  Install:
───────────────────────────────────────────────────────────────────────────────

  + xz                      5.2.6  h57fd34a_0          conda-forge     Cached
  + libexpat                2.6.2  hebf3989_0          conda-forge     Cached
  + ncurses          6.4.20240210  h078ce10_0          conda-forge     Cached
  + bzip2                   1.0.8  h93a5062_5          conda-forge     Cached
  + libffi                  3.4.2  h3422bc3_5          conda-forge     Cached
  + libzlib                1.2.13  h53f4e23_5          conda-forge     Cached
  + ca-certificates      2024.2.2  hf0a4a13_0          conda-forge     Cached
  + readline                  8.2  h92ec313_1          conda-forge     Cached
  + tk                     8.6.13  h5083fa2_1          conda-forge     Cached
  + libsqlite              3.45.3  h091b4b1_0          conda-forge     Cached
  + openssl                 3.2.1  h0d3ecfb_1          conda-forge     Cached
  + tzdata                  2024a  h0c530f3_0          conda-forge     Cached
  + python                 3.12.3  h4a7b5fc_0_cpython  conda-forge     Cached
  + pip                      24.0  pyhd8ed1ab_0        conda-forge     Cached
  + setuptools             69.5.1  pyhd8ed1ab_0        conda-forge     Cached
  + wheel                  0.43.0  pyhd8ed1ab_1        conda-forge     Cached

  Summary:

  Install: 16 packages

  Total download: 0 B

───────────────────────────────────────────────────────────────────────────────

Transaction starting
Linking xz-5.2.6-h57fd34a_0
Linking libexpat-2.6.2-hebf3989_0
Linking ncurses-6.4.20240210-h078ce10_0
Linking bzip2-1.0.8-h93a5062_5
Linking libffi-3.4.2-h3422bc3_5
Linking libzlib-1.2.13-h53f4e23_5
Linking ca-certificates-2024.2.2-hf0a4a13_0
Linking readline-8.2-h92ec313_1
Linking tk-8.6.13-h5083fa2_1
Linking libsqlite-3.45.3-h091b4b1_0
Linking openssl-3.2.1-h0d3ecfb_1
Linking tzdata-2024a-h0c530f3_0
Linking python-3.12.3-h4a7b5fc_0_cpython
Linking pip-24.0-pyhd8ed1ab_0
Linking setuptools-69.5.1-pyhd8ed1ab_0
Linking wheel-0.43.0-pyhd8ed1ab_1

Transaction finished

To activate this environment, use:

    micromamba activate /Users/micciche/Research/QuantumInfo23/JuliaProjects/some_new_folder/.CondaPkg/env

Or to execute a single command in this environment, use:

    micromamba run -p /Users/micciche/Research/QuantumInfo23/JuliaProjects/some_new_folder/.CondaPkg/env mycommand

    CondaPkg Installing Pip packages
             │ /Users/micciche/Research/QuantumInfo23/JuliaProjects/some_new_folder/.CondaPkg/env/bin/pip
             │ install
             │ ldpc
             │ numpy
             │ pymatching
             └ scipy
Collecting ldpc
  Using cached ldpc-0.1.51.tar.gz (367 kB)
  Installing build dependencies: started
  Installing build dependencies: finished with status 'done'
  Getting requirements to build wheel: started
  Getting requirements to build wheel: finished with status 'done'
  Installing backend dependencies: started
  Installing backend dependencies: finished with status 'done'
  Preparing metadata (pyproject.toml): started
  Preparing metadata (pyproject.toml): finished with status 'done'
Collecting numpy
  Using cached numpy-1.26.4-cp312-cp312-macosx_11_0_arm64.whl.metadata (61 kB)
Collecting pymatching
  Using cached PyMatching-2.2.0-cp312-cp312-macosx_11_0_arm64.whl.metadata (16 kB)
Collecting scipy
  Using cached scipy-1.13.0-cp312-cp312-macosx_12_0_arm64.whl.metadata (60 kB)
Collecting tqdm (from ldpc)
  Using cached tqdm-4.66.2-py3-none-any.whl.metadata (57 kB)
Collecting networkx (from pymatching)
  Using cached networkx-3.3-py3-none-any.whl.metadata (5.1 kB)
Collecting matplotlib (from pymatching)
  Using cached matplotlib-3.8.4-cp312-cp312-macosx_11_0_arm64.whl.metadata (5.8 kB)
Collecting contourpy>=1.0.1 (from matplotlib->pymatching)
  Using cached contourpy-1.2.1-cp312-cp312-macosx_11_0_arm64.whl.metadata (5.8 kB)
Collecting cycler>=0.10 (from matplotlib->pymatching)
  Using cached cycler-0.12.1-py3-none-any.whl.metadata (3.8 kB)
Collecting fonttools>=4.22.0 (from matplotlib->pymatching)
  Using cached fonttools-4.51.0-cp312-cp312-macosx_10_9_universal2.whl.metadata (159 kB)
Collecting kiwisolver>=1.3.1 (from matplotlib->pymatching)
  Using cached kiwisolver-1.4.5-cp312-cp312-macosx_11_0_arm64.whl.metadata (6.4 kB)
Collecting packaging>=20.0 (from matplotlib->pymatching)
  Using cached packaging-24.0-py3-none-any.whl.metadata (3.2 kB)
Collecting pillow>=8 (from matplotlib->pymatching)
  Using cached pillow-10.3.0-cp312-cp312-macosx_11_0_arm64.whl.metadata (9.2 kB)
Collecting pyparsing>=2.3.1 (from matplotlib->pymatching)
  Using cached pyparsing-3.1.2-py3-none-any.whl.metadata (5.1 kB)
Collecting python-dateutil>=2.7 (from matplotlib->pymatching)
  Using cached python_dateutil-2.9.0.post0-py2.py3-none-any.whl.metadata (8.4 kB)
Collecting six>=1.5 (from python-dateutil>=2.7->matplotlib->pymatching)
  Using cached six-1.16.0-py2.py3-none-any.whl.metadata (1.8 kB)
Using cached numpy-1.26.4-cp312-cp312-macosx_11_0_arm64.whl (13.7 MB)
Using cached PyMatching-2.2.0-cp312-cp312-macosx_11_0_arm64.whl (365 kB)
Using cached scipy-1.13.0-cp312-cp312-macosx_12_0_arm64.whl (30.4 MB)
Using cached matplotlib-3.8.4-cp312-cp312-macosx_11_0_arm64.whl (7.5 MB)
Using cached networkx-3.3-py3-none-any.whl (1.7 MB)
Using cached tqdm-4.66.2-py3-none-any.whl (78 kB)
Using cached contourpy-1.2.1-cp312-cp312-macosx_11_0_arm64.whl (245 kB)
Using cached cycler-0.12.1-py3-none-any.whl (8.3 kB)
Using cached fonttools-4.51.0-cp312-cp312-macosx_10_9_universal2.whl (2.8 MB)
Using cached kiwisolver-1.4.5-cp312-cp312-macosx_11_0_arm64.whl (64 kB)
Using cached packaging-24.0-py3-none-any.whl (53 kB)
Using cached pillow-10.3.0-cp312-cp312-macosx_11_0_arm64.whl (3.4 MB)
Using cached pyparsing-3.1.2-py3-none-any.whl (103 kB)
Using cached python_dateutil-2.9.0.post0-py2.py3-none-any.whl (229 kB)
Using cached six-1.16.0-py2.py3-none-any.whl (11 kB)
Building wheels for collected packages: ldpc
  Building wheel for ldpc (pyproject.toml): started
  Building wheel for ldpc (pyproject.toml): finished with status 'error'
  error: subprocess-exited-with-error

  × Building wheel for ldpc (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [85 lines of output]
      running bdist_wheel
      running build
      running build_py
      creating build
      creating build/lib.macosx-11.0-arm64-cpython-312
      creating build/lib.macosx-11.0-arm64-cpython-312/ldpc
      copying src/ldpc/codes.py -> build/lib.macosx-11.0-arm64-cpython-312/ldpc
      copying src/ldpc/protograph.py -> build/lib.macosx-11.0-arm64-cpython-312/ldpc
      copying src/ldpc/__init__.py -> build/lib.macosx-11.0-arm64-cpython-312/ldpc
      copying src/ldpc/mod2.py -> build/lib.macosx-11.0-arm64-cpython-312/ldpc
      copying src/ldpc/code_util.py -> build/lib.macosx-11.0-arm64-cpython-312/ldpc
      copying src/ldpc/alist.py -> build/lib.macosx-11.0-arm64-cpython-312/ldpc
      copying src/ldpc/bp_decode_sim.py -> build/lib.macosx-11.0-arm64-cpython-312/ldpc
      creating build/lib.macosx-11.0-arm64-cpython-312/ldpc/tests
      copying src/ldpc/tests/test_ring_of_circulants_f2.py -> build/lib.macosx-11.0-arm64-cpython-312/ldpc/tests
      copying src/ldpc/tests/test_protograph.py -> build/lib.macosx-11.0-arm64-cpython-312/ldpc/tests
      running egg_info
      writing src/ldpc.egg-info/PKG-INFO
      writing dependency_links to src/ldpc.egg-info/dependency_links.txt
      writing requirements to src/ldpc.egg-info/requires.txt
      writing top-level names to src/ldpc.egg-info/top_level.txt
      dependency /private/var/folders/w2/fgml03ld4zg98n4p23qrvzcc0000gn/T/pip-build-env-am32y042/overlay/lib/python3.12/site-packages/numpy/core/include/numpy/arrayobject.h won't be automatically included in the manifest: the path must be relative
      dependency /private/var/folders/w2/fgml03ld4zg98n4p23qrvzcc0000gn/T/pip-build-env-am32y042/overlay/lib/python3.12/site-packages/numpy/core/include/numpy/arrayscalars.h won't be automatically included in the manifest: the path must be relative
      dependency /private/var/folders/w2/fgml03ld4zg98n4p23qrvzcc0000gn/T/pip-build-env-am32y042/overlay/lib/python3.12/site-packages/numpy/core/include/numpy/ndarrayobject.h won't be automatically included in the manifest: the path must be relative
      dependency /private/var/folders/w2/fgml03ld4zg98n4p23qrvzcc0000gn/T/pip-build-env-am32y042/overlay/lib/python3.12/site-packages/numpy/core/include/numpy/ndarraytypes.h won't be automatically included in the manifest: the path must be relative
      dependency /private/var/folders/w2/fgml03ld4zg98n4p23qrvzcc0000gn/T/pip-build-env-am32y042/overlay/lib/python3.12/site-packages/numpy/core/include/numpy/ufuncobject.h won't be automatically included in the manifest: the path must be relative
      dependency /private/var/folders/w2/fgml03ld4zg98n4p23qrvzcc0000gn/T/pip-build-env-am32y042/overlay/lib/python3.12/site-packages/numpy/core/include/numpy/arrayobject.h won't be automatically included in the manifest: the path must be relative
      dependency /private/var/folders/w2/fgml03ld4zg98n4p23qrvzcc0000gn/T/pip-build-env-am32y042/overlay/lib/python3.12/site-packages/numpy/core/include/numpy/arrayscalars.h won't be automatically included in the manifest: the path must be relative
      dependency /private/var/folders/w2/fgml03ld4zg98n4p23qrvzcc0000gn/T/pip-build-env-am32y042/overlay/lib/python3.12/site-packages/numpy/core/include/numpy/ndarrayobject.h won't be automatically included in the manifest: the path must be relative
      dependency /private/var/folders/w2/fgml03ld4zg98n4p23qrvzcc0000gn/T/pip-build-env-am32y042/overlay/lib/python3.12/site-packages/numpy/core/include/numpy/ndarraytypes.h won't be automatically included in the manifest: the path must be relative
      dependency /private/var/folders/w2/fgml03ld4zg98n4p23qrvzcc0000gn/T/pip-build-env-am32y042/overlay/lib/python3.12/site-packages/numpy/core/include/numpy/ufuncobject.h won't be automatically included in the manifest: the path must be relative
      dependency /private/var/folders/w2/fgml03ld4zg98n4p23qrvzcc0000gn/T/pip-build-env-am32y042/overlay/lib/python3.12/site-packages/numpy/core/include/numpy/arrayobject.h won't be automatically included in the manifest: the path must be relative
      dependency /private/var/folders/w2/fgml03ld4zg98n4p23qrvzcc0000gn/T/pip-build-env-am32y042/overlay/lib/python3.12/site-packages/numpy/core/include/numpy/arrayscalars.h won't be automatically included in the manifest: the path must be relative
      dependency /private/var/folders/w2/fgml03ld4zg98n4p23qrvzcc0000gn/T/pip-build-env-am32y042/overlay/lib/python3.12/site-packages/numpy/core/include/numpy/ndarrayobject.h won't be automatically included in the manifest: the path must be relative
      dependency /private/var/folders/w2/fgml03ld4zg98n4p23qrvzcc0000gn/T/pip-build-env-am32y042/overlay/lib/python3.12/site-packages/numpy/core/include/numpy/ndarraytypes.h won't be automatically included in the manifest: the path must be relative
      dependency /private/var/folders/w2/fgml03ld4zg98n4p23qrvzcc0000gn/T/pip-build-env-am32y042/overlay/lib/python3.12/site-packages/numpy/core/include/numpy/ufuncobject.h won't be automatically included in the manifest: the path must be relative
      dependency /private/var/folders/w2/fgml03ld4zg98n4p23qrvzcc0000gn/T/pip-build-env-am32y042/overlay/lib/python3.12/site-packages/numpy/core/include/numpy/arrayobject.h won't be automatically included in the manifest: the path must be relative
      dependency /private/var/folders/w2/fgml03ld4zg98n4p23qrvzcc0000gn/T/pip-build-env-am32y042/overlay/lib/python3.12/site-packages/numpy/core/include/numpy/arrayscalars.h won't be automatically included in the manifest: the path must be relative
      dependency /private/var/folders/w2/fgml03ld4zg98n4p23qrvzcc0000gn/T/pip-build-env-am32y042/overlay/lib/python3.12/site-packages/numpy/core/include/numpy/ndarrayobject.h won't be automatically included in the manifest: the path must be relative
      dependency /private/var/folders/w2/fgml03ld4zg98n4p23qrvzcc0000gn/T/pip-build-env-am32y042/overlay/lib/python3.12/site-packages/numpy/core/include/numpy/ndarraytypes.h won't be automatically included in the manifest: the path must be relative
      dependency /private/var/folders/w2/fgml03ld4zg98n4p23qrvzcc0000gn/T/pip-build-env-am32y042/overlay/lib/python3.12/site-packages/numpy/core/include/numpy/ufuncobject.h won't be automatically included in the manifest: the path must be relative
      reading manifest file 'src/ldpc.egg-info/SOURCES.txt'
      reading manifest template 'MANIFEST.in'
      warning: no files found matching 'src/ldpc/README.md'
      warning: no files found matching 'src/ldpc/LICENSE'
      adding license file 'LICENSE'
      writing manifest file 'src/ldpc.egg-info/SOURCES.txt'
      copying src/ldpc/VERSION -> build/lib.macosx-11.0-arm64-cpython-312/ldpc
      copying src/ldpc/__init__.pxd -> build/lib.macosx-11.0-arm64-cpython-312/ldpc
      copying src/ldpc/bp_decoder.c -> build/lib.macosx-11.0-arm64-cpython-312/ldpc
      copying src/ldpc/bp_decoder.pxd -> build/lib.macosx-11.0-arm64-cpython-312/ldpc
      copying src/ldpc/bp_decoder.pyx -> build/lib.macosx-11.0-arm64-cpython-312/ldpc
      copying src/ldpc/c_util.c -> build/lib.macosx-11.0-arm64-cpython-312/ldpc
      copying src/ldpc/c_util.pxd -> build/lib.macosx-11.0-arm64-cpython-312/ldpc
      copying src/ldpc/c_util.pyx -> build/lib.macosx-11.0-arm64-cpython-312/ldpc
      copying src/ldpc/mod2sparse.c -> build/lib.macosx-11.0-arm64-cpython-312/ldpc
      copying src/ldpc/mod2sparse.pxd -> build/lib.macosx-11.0-arm64-cpython-312/ldpc
      copying src/ldpc/mod2sparse.pyx -> build/lib.macosx-11.0-arm64-cpython-312/ldpc
      copying src/ldpc/osd.c -> build/lib.macosx-11.0-arm64-cpython-312/ldpc
      copying src/ldpc/osd.pxd -> build/lib.macosx-11.0-arm64-cpython-312/ldpc
      copying src/ldpc/osd.pyx -> build/lib.macosx-11.0-arm64-cpython-312/ldpc
      creating build/lib.macosx-11.0-arm64-cpython-312/ldpc/include
      copying src/ldpc/include/COPYRIGHT -> build/lib.macosx-11.0-arm64-cpython-312/ldpc/include
      copying src/ldpc/include/README.md -> build/lib.macosx-11.0-arm64-cpython-312/ldpc/include
      copying src/ldpc/include/binary_char.c -> build/lib.macosx-11.0-arm64-cpython-312/ldpc/include
      copying src/ldpc/include/binary_char.h -> build/lib.macosx-11.0-arm64-cpython-312/ldpc/include
      copying src/ldpc/include/mod2sparse.c -> build/lib.macosx-11.0-arm64-cpython-312/ldpc/include
      copying src/ldpc/include/mod2sparse.h -> build/lib.macosx-11.0-arm64-cpython-312/ldpc/include
      copying src/ldpc/include/mod2sparse_extra.c -> build/lib.macosx-11.0-arm64-cpython-312/ldpc/include
      copying src/ldpc/include/mod2sparse_extra.h -> build/lib.macosx-11.0-arm64-cpython-312/ldpc/include
      copying src/ldpc/include/sort.c -> build/lib.macosx-11.0-arm64-cpython-312/ldpc/include
      copying src/ldpc/include/sort.h -> build/lib.macosx-11.0-arm64-cpython-312/ldpc/include
      running build_ext
      building 'ldpc.bp_decoder' extension
      creating build/temp.macosx-11.0-arm64-cpython-312
      creating build/temp.macosx-11.0-arm64-cpython-312/src
      creating build/temp.macosx-11.0-arm64-cpython-312/src/ldpc
      creating build/temp.macosx-11.0-arm64-cpython-312/src/ldpc/include
      /usr/local/opt/llvm/bin/clang -fno-strict-overflow -DNDEBUG -O2 -Wall -fPIC -O2 -isystem /Users/micciche/Research/QuantumInfo23/JuliaProjects/some_new_folder/.CondaPkg/env/include -arch arm64 -fPIC -O2 -isystem /Users/micciche/Research/QuantumInfo23/JuliaProjects/some_new_folder/.CondaPkg/env/include -arch arm64 -I/usr/local/opt/llvm/include -I/private/var/folders/w2/fgml03ld4zg98n4p23qrvzcc0000gn/T/pip-build-env-am32y042/overlay/lib/python3.12/site-packages/numpy/core/include -Isrc/ldpc/include -I/Users/micciche/Research/QuantumInfo23/JuliaProjects/some_new_folder/.CondaPkg/env/include/python3.12 -c src/ldpc/bp_decoder.c -o build/temp.macosx-11.0-arm64-cpython-312/src/ldpc/bp_decoder.o -std=c11
      In file included from src/ldpc/bp_decoder.c:47:
      /Users/micciche/Research/QuantumInfo23/JuliaProjects/some_new_folder/.CondaPkg/env/include/python3.12/Python.h:23:12: fatal error: 'stdlib.h' file not found
      #  include <stdlib.h>
                 ^~~~~~~~~~
      1 error generated.
      error: command '/usr/local/opt/llvm/bin/clang' failed with exit code 1
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
   The Python ldpc package requires a complete set of library headers. See for more info here: https://developer.apple.com/forums/thread/104296
The gist of it is:

do xcode-select --install
then manually also install this system-provided package with legacy headers /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg (I do not know why python wants the legacy headers, probably just something outdated in the python package)


Outlook scraping is fragile

Does not use XPaths for the UI elements, breaks if 2fa is not required

XPaths added in #6


Not able to build the code

When i try to build the code an error arises in file "DCTrack+CoreDataProperties.h" saying "Type arguments cannot be applied to non parameterised class 'NSFetchRequest'". I have set the Base SDK to 9.2 and Deployment Target as 7.0. Also i have followed the same steps as in Documentation. Also my xcode version is 7.2.1. Would you brief me the steps to build the app if the code is fine?

Hello @thomsonraj The code is fine. You can try to regenerate class and extension for DCTrack entity in main_2. 3.xcdatamodel


IPLT-5303 transferred grid from gnui

I have moved grid story from the GNUI design system

@arkniazi a few questions regarding react-awesome-styled-grid

is it still active Grid solution or is it deprecated?
is void 0 === i && (i = global); change in node_modules really necessary? (I don't like manual changes inside of node_modules, except is is really only option left)

@arkniazi a few questions regarding react-awesome-styled-grid

is it still active Grid solution or is it deprecated?
is void 0 === i && (i = global); change in node_modules really necessary? (I don't like manual changes inside of node_modules, except is is really only option left)

I didn't need to apply any changes in the node_modules to make this library work in here.
And you are right we shouldn't be making any changes to the node_modules.  I'll check what's the patch about.

Ok, yeah please check - because I was confused as I was reading through Foundations/Grid story seeing "deprecated" and manual node_modules changes.
We can keep react-awesome-styled-grid if it is in good place and functional, but if not - there are many alternatives out there: react-grid-system, react-grid

Also, instead of just having story which describes npm usage - why don't we make a Grid component (by utilizing that npm package) which will show all it's props (inherited from the npm package).
What do you think @arkniazi ?

ping @arkniazi - how are things coming along? any blockers/updates?

ping @arkniazi - how are things coming along? any blockers/updates?

Sorry I just checked your message now. No blockers I couldn't any issue reported on the github repo. So we can just update this documentation accordingly.


docs: rephrasing the hubble intro doc

Please ensure your pull request adheres to the following guidelines:

[ ] For first time contributors, read Submitting a pull request
[ ] All code is covered by unit and/or runtime tests where feasible.
[ ] All commits contain a well written commit description including a title,
description and a Fixes: #XXX line if the commit addresses a particular
GitHub issue.
[ ] If your commit description contains a Fixes: <commit-id> tag, then
please add the commit author[s] as reviewer[s] to this issue.
[ ] All commits are signed off. See the section Developer’s Certificate of Origin
[ ] Provide a title or release-note blurb suitable for the release notes.
[ ] Are you a user of Cilium? Please add yourself to the Users doc
[ ] Thanks for contributing!

Rephrasing the doc to make sure to avoid duplication
Fixes: #14587

@joestringer can you take a look at this when you have time.

@vipul-21 I don't review all PRs, GitHub has assigned CODEOWNERS for the relevant areas to review. As @cilium/tophat for the week I'll trigger CI for you :+1:

/test


Fog

The current fog system is quite limited, ugly and not intuitive with the fogdomecommands. I suggest the following change:

A fog material. This wouldn't technically be a material, but for the editor it would act like that: Select a certain amount of space, type /fog (or /fog2, /fog3 etc), and in that area a haze/mist/fog dome or whatever it is called gets visible. The editor will have commands at his disposal to tweak those hazes, like /fogcolour, /fog3density, /fog2fade (the amount of distance you have to walk into the haze to reach the maximum fog density) etc.

A new version of the old /fog command, /ambientfog or something. It would basically act like a combined version of the current /fog and /fogdome: render a haze in a circle around the player, just like now, but make the skybox misty at the same time too. Commands like /ambientfogheight, /ambientfogmax, /ambientfogdistance etc should be available.

I am not sure if all this is technically doable, but it would give the map maker even more possibilities to give his map a great atmospheric feel.

+1, the second part is quite easily to achieve, just a simple modification of the fogshader, it has not even an impact on the rendertimes. (I actually have it on my todolist already, but its good to have an issue for that too) :)
part 1: thats far more complex (and probably just looks good in combination with volumetric lighting)

What about switching to exponential, round fog? Like the one found in Tesseract. This greatly improves visuals of foggy maps, since the fog no longer turns with you.

Exponential fog sounds cool and should be easy. Please move to another ticket though :)


Height of modal being ignored by android

Hey @maxs15!
Thank you for building such an amazing component.
It's working perfectly on iOS right now. For some strange reason, it's not working on android though. Specifically, it's just ignoring the heights and filling the screen no matter what.
I've tried adding and removing flexes, widths, heights, margins, but nothing seems to work at all.
Here is what it looks right now on both devices.

It seems that if I remove the flex and try and just add margin, then it just ignores it on the right and bottom. Any idea why this might be?
Here is my code:
const FilterModal = ({ visible, valueChange, falseSwitchIsOn, onClosed }) => {
  return (
      <Modal
        isOpen={visible}
        backdropPressToClose
        entry={'top'}
        style={styles.containerStyle}
        onClosed={onClosed}
      >
        <View style={styles.modalTitle}>
          <Text style={styles.titleStyle}>Filter Feed</Text>
        </View>
        <TopicList />
        <View style={styles.uniButtonContainer}>
          <Text style={styles.uniTextStyle}>
            Just my university?
          </Text>
          <Switch
            onValueChange={valueChange}
            value={falseSwitchIsOn}
            style={{ marginLeft: 7 }}
          />
        </View>
      </Modal>
  );
};

const styles = {
  containerStyle: {
    flex: 1,
    backgroundColor: 'white',
    borderRadius: 6,
    flexDirection: 'column',
    justifyContent: 'space-between',
    width: Dimensions.get('window').width * 0.95,
    marginBottom: 40,
    elevation: 5
  },
  uniButtonContainer: {
    backgroundColor: 'white',
    height: 60,
    borderTopWidth: 1,
    borderBottomLeftRadius: 6,
    borderBottomRightRadius: 6,
    borderColor: '#D8D8D8',
    alignItems: 'center',
    justifyContent: 'center',
    flexDirection: 'row',
    elevation: 1
  },
  uniTextStyle: {
    color: Colors.mainDarkText,
    fontFamily: medium,
    fontSize: fontSize.eighteen,
    marginRight: 7
  },
  modalTitle: {
    backgroundColor: 'white',
    height: 60,
    borderTopLeftRadius: 6,
    borderTopRightRadius: 6,
    borderBottomWidth: 1,
    borderColor: '#D8D8D8',
    alignItems: 'center',
    justifyContent: 'center',
    flexDirection: 'row',
    elevation: 1
  },
  titleStyle: {
    color: Colors.mainPurple,
    fontFamily: demiBold,
    paddingTop: 7,
    fontSize: fontSize.twenty
  }
};

Thank you!

Hey @judgejab, I'm going to check and enhance the support for android very soon.
In the meantime, I don't have much time, the easiest would be to directly dig into the code of the module, check the values returned by the onLayout event.
It could be caused by many things, maybe something related to your code.
And if you find the bug, send a PR :)

Set the modal style with flex: 1. It worked for me.