One subnet per availability zone

There is an option to limit the amount of nat gateways to the availability zones.
It would be cool if the amount of subnets could be limited in the same way.
I think it would be useful to avoid accidentaly creating too many (like have..)

hello @tomasbackman - this is something that is already available today. the number of subnets is based off the number of availability zones and CIDR blocks passed in to azs and xxx_subnets respectively:
To create 3 subnets (each) spread across 3 availability zones (full module definition not shown for brevity):
module "vpc" {
  source = "terraform-aws-modules/vpc/aws"

  azs                 = ["eu-west-1a", "eu-west-1b", "eu-west-1c"]
  private_subnets     = ["<IP_ADDRESS>/24", "<IP_ADDRESS>/24", "<IP_ADDRESS>/24"]
  public_subnets      = ["<IP_ADDRESS>/24", "<IP_ADDRESS>/24", "<IP_ADDRESS>/24"]
}

To create 1 subnet (each) in 1 availability zone (full module definition not shown for brevity):
module "vpc" {
  source = "terraform-aws-modules/vpc/aws"

  azs                 = ["eu-west-1a"]
  private_subnets     = ["<IP_ADDRESS>/24"]
  public_subnets      = ["<IP_ADDRESS>/24"]
}


Benchmark: Fix Keccak benchmark, remove all other

The Keccak benchmark was broken (the ASM could not be parsed). I re-ran the Keccak test and copied in the compiled PIL.
I also removed the other benchmarks, as at least for me they are way too noisy to be useful.

Is it possible to generate the pil file at the start of the benchmark? I.e. not as part of the individual runs, but is part of a setup (maybe build script)?

True, much better this way!


Add scrollbar to metrics menu

Unable to reach some of the menu item - (when the list is too long).
Before

After

       $(document).ready(()=>
         {
             $( window ).on("load", function() {
                 $('.dropdown-menu').css('max-height', window.innerHeight - 80);
             });

             $( window ).on("resize", function() {
                 $('.dropdown-menu').css('max-height', window.innerHeight - 80);
             });
         });

.dropdown-menu {
...
...
//Add
    overflow: auto
}

Hi,
Your fix gets removed by the build process, so it will not work in the release (minified/combined) version of the app.
You can observe this yourself by running grunt serve:dist.
Please fix this and make another pull request.

I created a new marge request:
https://github.com/Recognos/Metrics.NET.FlotVisualization/pull/3
You can run  grunt serve:dist -force .
I verified it works ,you can minimize the screen and look on the Health status it should have a scroll bar.

Awesome, thanks!
I've updated the visualization app in version 0.5.3-pre, and it seems to be working correctly.

Hi,
I started using and It working great.
Can you create a release version ?
thanks.

@EranOfer i've just pushed release version v0.5.3


Failed when building docker image: libgnutls30

When building a docker image using the provided Dockerfile it failed to find the package libgnutls30=3.7.3-4ubuntu1.4.
It might be a typo as it works when I changed the version number to libgnutls30=3.7.3-4ubuntu1.5, which is the version used in jammy-updates.
https://packages.ubuntu.com/jammy-updates/libgnutls30

Good catch @yf-chau, and yes it's a typo.


[bugfix]: fix sync optimizer compatibility with pai-tf

fix sync optimizer compatibility with pai-tf

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.


Drill down doesn't work as expected in api v1.4

Hi guys.
I am having some issues with custom visual (api v1,4) related to drill down.
https://app.powerbi.com/view?r=eyJrIjoiNjc3NDg1NTUtMzJlMC00MWUwLTg1NzYtMGU4OTQzNDM2NThjIiwidCI6IjAyOWI2YjIzLWZhMDctNDhiYS05NjM5LTcyYWYwYTY3MzcyOSIsImMiOjEwfQ%3D%3D
As you can see from the link, both charts use the same data set. However, in custom visual only one button is working. (which is "Go next level in hierarchy"). All other buttons do not trigger any events in the code.
Am I missing something or it is a known bug?
Thanks
Nick

this should be fixed  now in the latest PBI desktop and service.


feat: Migrate the service call tracing to use otlphttp or `otlpgrpc…

…` for reporting.
Migrate the service call tracing to use otlphttp or otlpgrpc for reporting.

Codecov Report
All modified lines are covered by tests :white_check_mark:

Comparison is base (00e83fe) 77.31% compared to head (04c076b) 77.39%.

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3001      +/-   ##
==========================================
+ Coverage   77.31%   77.39%   +0.08%
==========================================
  Files         645      638       -7
  Lines       54347    54040     -307
==========================================
- Hits        42019    41825     -194
+ Misses      10217    10127      -90
+ Partials     2111     2088      -23

Flag
Coverage Δ

go-1.18-386
77.39% <ø> (+<0.01%)
:arrow_up:

go-1.18-amd64
?

go-1.19-amd64
?

go-1.20-386
?

go-1.20-amd64
?

go-1.21-386
?

go-1.21-amd64
?

Flags with carried forward coverage won't be shown. Click here to find out more.
see 14 files with indirect coverage changes

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


Feature request: Short urls that you can write by hand.

Hi,
I love the idea of tip-cards, but instead of pre-printing th QR codes, I want to print blank cards saying:
  Hey, you got a tip of ~$_____ 🎉
  Redeem at https://tipcards.io/______

Then, when I sit in a restaurant and want to leave tip, take one of the blank cards, go to tipcards.io on my phone, generate a new card number (i.e. "12345678"), fund it (i.e. with ~$2), fill the missing details in the card ("... a tip of ~$2 ... Redeem at https://tipcards.io/12345678") and leave it on the table.
I can pre-print many of these blank cards and teach other Bitcoiners how to use them (without them suspecting that I copied the QR cords), or even design new cards myself with no special integration.
I know that these short-url can be brute-forced, so I recommend adding some Captcha service to prevent bots from trying all the numbers.
Second, for beginners that want to get their first lightning payment, I always recommend https://ln.tips if they have Telegram. Yes, it's a custodial service and linked to your Telegram account, but for small amounts like tips they don't even need to bother downloading a new app.
Thanks!
P.S. It wasn't trivial to find this github page because it's not published in your homepage.

I really like the idea, because the problem actually applies to myself (as I don't have a printer at home).
We would need to be quite careful about where to put these features in the UI in order to keep it straight and simple. I already gave this a lot of thoughts but will still need some more time.
Also, there are a few other features planned that we would like to implement first, especially a login functionality via LNURL-auth to allow storing sets on the server (making it possible to access them across devices) and some other features. Currently the issues for those are still in our private Gitlab.

I know that these short-url can be brute-forced, so I recommend adding some Captcha service to prevent bots from trying all the numbers.

I would really like to avoid using an external service (for the Captcha). If you have (or if anyone has) alternative elegant ideas on how to prevent brute-force attempts, let's hear them.

Second, for beginners that want to get their first lightning payment, I always recommend https://ln.tips/ if they have Telegram. Yes, it's a custodial service and linked to your Telegram account, but for small amounts like tips they don't even need to bother downloading a new app.
Yep, will look into adding it to the recommended wallets.

P.S. It wasn't trivial to find this github page because it's not published in your homepage.
Now it is, on the "About" page :)

I would really like to avoid using an external service. If you have (or if anyone has) alternative elegant ideas on how to prevent brute-force attempts, let's hear them.

Run the instance yourself. "Nobody" knows you're hosting tipcards on your domain and bruteforcing someones private instance is most likely a net loss. Not really security, but the incentive to attack is extremely small this way.

I think what you want is working already (always has?). Just go to https://tipcards.io/funding/1234 and fund the card. Then send the user to https://tipcards.io/landing/1234
Use on own responsibility ;-)


Variables declared inside loop does not respect lexical scope

What reproduces the bug? Provide code if possible.
#!/usr/bin/env bpftrace

BEGIN {
        $i = 0;
        while ($i < 1) {
                $j = 0;
                $i++;
        }

        print($j);
        exit();
}

$ $ sudo ./build/src/bpftrace ~/scratch/loop_var.bt
Attaching 1 probe...
0

I expect to see some error about $j being undefined.
bpftrace --info output
$ sudo ./build/src/bpftrace --info
System
  OS: Linux 6.7.3-arch1-2 #1 SMP PREEMPT_DYNAMIC Fri, 02 Feb 2024 17:03:55 +0000
  Arch: x86_64

Build
  version: v0.20.0-43-g6d9d8
  LLVM: 16.0.6
  unsafe probe: no
  bfd: yes
  libdw (DWARF support): yes

Kernel helpers
  probe_read: yes
  probe_read_str: yes
  probe_read_user: yes
  probe_read_user_str: yes
  probe_read_kernel: yes
  probe_read_kernel_str: yes
  get_current_cgroup_id: yes
  send_signal: yes
  override_return: yes
  get_boot_ns: yes
  dpath: yes
  skboutput: yes
  get_tai_ns: yes
  get_func_ip: yes
  jiffies64: yes

Kernel features
  Instruction limit: 1000000
  Loop support: yes
  btf: yes
  module btf: yes
  map batch: yes
  uprobe refcount (depends on Build:bcc bpf_attach_uprobe refcount): yes

Map types
  hash: yes
  percpu hash: yes
  array: yes
  percpu array: yes
  stack_trace: yes
  perf_event_array: yes
  ringbuf: yes

Probe types
  kprobe: yes
  tracepoint: yes
  perf_event: yes
  kfunc: yes
  kprobe_multi: yes
  uprobe_multi: no
  raw_tp_special: yes
  iter: yes

If-statements as well 😢
$ sudo bpftrace -e 'BEGIN { if (0) { $var = 1; } print($var) }'
Attaching 1 probe...
0
^C

Fixing this would technically be backwards incompatible. But surely nobody is relying on this buggy behavior, right?

Right, we shouldn't maintain backwards compatibility of an obviously buggy behaviour.

See also #686

Man, I really licked this cookie. I'm gonna try to focus on all the half finished stuff I've got. So other folks should feel free to pick this up

I'll take it. Sounds like fun :)

Is having all variables probe scoped really that bad? Saying that
BEGIN {
        $i = 0;
        while ($i < 1) {
                $j = 0;
                $i++;
        }

is converted(hoisted) into:
BEGIN {
        var $i, $j; // not real syntax

        $i = 0;
        while ($i < 1) {
                $j = 0;
                $i++;
        }

Doesn't seem that terrible to me. In a way its similar to python where if/for also do not start new scopes.
$ cat test.py
def something():
    for x in [1,2,3]:
        if x == 3:
            y = 5
        print(x)

    print(x)
    print(y)

something()

/tmp $ python3 test.py
1
2
3
3
5

I don't think python does hoisting. My understanding (which could be wrong) is that it just does dynamic lookups. Eg:
>>> for i in range(5):
...     if i == 3:
...             j = True
...
>>> print(j)
True

>>> for i in range(5):
...     if i == 6:
...             k = True
...
>>> print(k)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
NameError: name 'k' is not defined

All variables being probe scoped is an interesting idea. I hadn't considered that nor thought to describe the current behavior that way.

I don't think python does hoisting. My understanding (which could be wrong) is that it just does dynamic lookups. Eg:
...
If python hoists, then you'd expect k to be 0, right?

Inded. Afaik for and if  don't start a new block/scope so its all the same scope. i and jj are both bound. The 2nd example shows the 'line by line' nature of python, k` is unknown because the line is never evaluated.
Javascript (which does hoisting) is quite weird (who guessed?) in that var hoists, even outside if, but let` doesn't:
function bla() {
  var x = 1;
  console.log(x);

  if (true) {
    var y = 1;
    let yy = 1;
    console.log(y, yy);
  }

  console.log(y, yy);
}

bla()

1
1 1
/private/tmp/test.js:11
  console.log(y, yy);
                 ^

ReferenceError: yy is not defined

While I think looking at other languages is useful to see what's been done and how it played out, I think we should be careful to start from first principles here, as we are somewhat in language design. Contrasted to syntax where I think it's less important to innovate.
What are our goals with this change? Is it to make the language more terse for one-liners? To prevent programming errors? To back out of a dead-end design choice (accidental or otherwise)? Something else? And what are the relative priorities?
I think I initially opened this issue b/c I got bit by a correctness bug in one of my scripts. The original intent was to block scope only, but it turns out there are tools that take advantage of probe scoping with initialization in both branches of if/else. So we considered doing a hoist if a variable is initialized in both branches.
It would be great if we could build some consensus about our language design goals so we can properly evaluate this issue against them and come up with a acceptable long term solution.

On a technical level, default initialization could be a bit tricky b/c we have so many custom types in the type system. For example, what do we default initialize a timestamp, cgroup path, usym, or ksym to? Forcing initialization side steps this problem.

It would be great if we could build some consensus about our language design goals so we can properly evaluate this issue against them and come up with a acceptable long term solution.

Yes, very much agree with coming up with a larger set of language design goals.

Is having all variables probe scoped really that bad?

@fbs Makes a good point here. My gut says that the majority of bpftrace programs don't have an issue with only probe/sub-prog scoping but as they get larger/more-complicated I think we want to push toward more expected behavior (with regards to the current most used programming languages). I think simple block scoping (without hoisting) is probably the least surprising and comes with the fewest gotchas. So I think this change falls into the "To prevent programming errors?" bucket. That being said, because this breaks backward compat (for even vetted scripts inside this repo), maybe we should hold off on this change until we can provide variable declarations so we don't have to resort to things like hoisting or default initialization.

maybe we should hold off on this change until we can provide variable declarations so we don't have to resort to things like hoisting or default initialization.

Declarations imply no initialization, so a declaration would be require default values. We can already do initialization like:
$v = 123;
if (@condition) {
  $v = 0;
}

So if we stick to simple block scoping we would have to modify (for example) tcpconnect.bt from:
    if ($inet_family == AF_INET) {
      $daddr = ntop($sk->__sk_common.skc_daddr);
      $saddr = ntop($sk->__sk_common.skc_rcv_saddr);
    } else {
      $daddr = ntop($sk->__sk_common.skc_v6_daddr.in6_u.u6_addr8);
      $saddr = ntop($sk->__sk_common.skc_v6_rcv_saddr.in6_u.u6_addr8);
    }

to
    $daddr = ntop($sk->__sk_common.skc_v6_daddr.in6_u.u6_addr8);
    $saddr = ntop($sk->__sk_common.skc_v6_rcv_saddr.in6_u.u6_addr8);
    if ($inet_family == AF_INET) {
      $daddr = ntop($sk->__sk_common.skc_daddr);
      $saddr = ntop($sk->__sk_common.skc_rcv_saddr);
    }

Which is somewhat inefficient. But at least correct.

@danobi I guess I was thinking that we could attempt to statically analyze (without condition evaluation) if a variable was used before it was initialized. But maybe that also moves us back into tricky/unexpected territory e.g.
int32 $var;
while (condition that will never be true) {
  $var = 1;
}
print(($var)):

We could limit it to cases where we know for sure and error out otherwise. Maybe under the hood this still requires default values but I was hoping we could avoid junk/un-optimal initializations.

While I think looking at other languages is useful to see what's been done and how it played out, I think we should be careful to start from first principles here, as we are somewhat in language design. Contrasted to syntax where I think it's less important to innovate.

My point with the python example was more that if/for/ not 'starting' a new scope isn't entirely weird and imo works quite well, in a dynamic language at least.  I think that, with some form of hoisting, it could work well for bpftrace as well.

It would be great if we could build some consensus about our language design goals so we can properly evaluate this issue against them and come up with a acceptable long term solution.

👍 . A direction/scope of the language and what it tries to solve as a guideline will be really helpful.

https://github.com/bpftrace/bpftrace/pull/3367


fix #310 Kotlin generator versions

This should fix #310

@fredriv Thanks a lot for your help. The light-bot is our answer to microservices as some of our customers must update hundreds of services for some of the releases and traditional CI/CD tools are not working with multiple repositories.


nm compatibility Ubuntu bash for windows

Very unlikely case., I might be the only one to use this but might report it anyway :)
-m doesn't seem to be supported on nm on ubuntu bash for windows

It's really weird because I can't find a man page that references the -m option :/ @jgigault ?

After further research, the -m option is only available on Darwin based computers


Fix license + css file name

Headings for licenses.
Write unminified css file as max.css (instead of amp.css) in the zip file

@ericlindley-g - we might have to add some more wordings on How it works since we now have unminified CSS

Gotcha — what's changed about what they need to do? Do they now always need to minify after modifying, or are we providing minified as well? And do the files all fit under the 50K limit anyway?


Fix tests failing because of http vs https

It looks like https://github.com/arachnys/cabot/commit/b84c524753d612b277c5287487a7e1da8c38c7d3 changed the HipChat tests to reference https://localhost/service/1/ rather than http://localhost/service/1/, but on Travis and my local machine using https makes the tests fail. This PR switches the tests back to http, which makes them pass.

 Merging this back in.


Sections with missing or null values hide subsequent variables

Sections with missing or null values should not hide subsequent variables.
Actual
> m = require "mustache"
> m("{{#a}}{{/a}}{{b}}",{b='b'})

> m("{{#a}}{{/a}}{{b}}",{a=nil,b='b'})

> m("{{#a}}{{/a}}{{b}}",{a=false,b='b'})
b

Expected
> m = require "mustache"
> m("{{#a}}{{/a}}{{b}}",{b='b'})
b
> m("{{#a}}{{/a}}{{b}}",{a=nil,b='b'})
b
> m("{{#a}}{{/a}}{{b}}",{a=false,b='b'})
b

Resolved with pull request https://github.com/greg-mcmann/mustache/pull/6. The lookup of the section was nil, and it isn't possible to add nil to a table. This was causing the closing tag to clear out the stack so that the interpolated variable could not be found.


RTL and localization

Is there any support for localization, especially for RTL language. it seems ,it doesn't respect to the default RTL support of iOS, how can I use it for multiple language and RTL?

What do you exactly want?
On Tue, Dec 11, 2018 at 4:28 PM Hamid Shahsavari<EMAIL_ADDRESS>wrote:

Is there any support for localization, especially for RTL language. it
seems ,it doesn't respect to the default RTL support of iOS, how can I use
it for multiple language and RTL?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/maxep/MXSegmentedPager/issues/226, or mute the thread
https://github.com/notifications/unsubscribe-auth/AQFR11enbEuP3s52u52mqT1gXFeFcNUIks5u36v1gaJpZM4ZNWsn
.

for example, I have 3 tabs , I want it to be like this:
tab1  tab2  tab3 --> in English
tab3 tab2  tab1  --> in Persian
but now it is like this:
tab1  tab2  tab3 --> in English and Persian

you should transform it

I tried to but i didn't get any success

It's not just the order of the tabs, it's also the alignment. In the attached screenshots you will see how our Android app handles this correctly using native controls and how the iOS app version looks like.

Please re-open, the issue still stands

Any update on this ? This was closed automatically without any response


setSimpleFullScreen not available in version 5.1.1

[x] I have read the contribution documentation for this project.
[x] I agree to follow the code of conduct that this project follows, as appropriate.
[x] I have searched the issue tracker for an issue that matches the one I want to file, without success.

Please describe your issue:
I am trying to use simpleFullScreen on OSX and when I enable it in the BrowserWindow simpleFullScreen: true and then call setSimpleFullScreen(true) an error is thrown:
Uncaught Exception:
TypeError: mainWindow.setSimpleFullScreen is not a function
    at WebContents.mainWindow.webContents.on (/Users/franco/app/src/index.ts:113:20)
    at emitOne (events.js:96:13)
    at WebContents.emit (events.js:188:7)

Console output when you run electron-forge with the environment variable DEBUG=electron-forge:*. (Instructions on how to do so here). Please include the stack trace if one exists.
WARNING: DEBUG environment variable detected.  Progress indicators will be sent over electron-forge:lifecycle
  electron-forge:lifecycle Process Started: Checking your system +0ms
  electron-forge:lifecycle Process Succeeded: Checking your system +300ms
  electron-forge:runtime-config setting key: verbose to value: false +0ms
WARNING: DEBUG environment variable detected.  Progress indicators will be sent over electron-forge:lifecycle
  electron-forge:lifecycle Process Started: Locating Application +0ms
  electron-forge:project-resolver searching for project in: /Users/franco/ABYACast-Desktop-OSX +0ms
  electron-forge:project-resolver electron-forge compatible package.json found in /Users/franco/ABYACast-Desktop-OSX/package.json +5ms
  electron-forge:lifecycle Process Succeeded: Locating Application +8ms
  electron-forge:lifecycle Process Started: Preparing native dependencies +7ms
  electron-forge:lifecycle Process Succeeded: Preparing native dependencies +333ms
  electron-forge:hook could not find hook: generateAssets +0ms
  electron-forge:lifecycle Process Started: Launching Application +1ms
  electron-forge:lifecycle Process Succeeded: Launching Application +4ms

What command line arguments are you passing?
start

What does your config.forge data in package.json look like?
"forge": {
      "make_targets": {
        "win32": [
          "squirrel"
        ],
        "darwin": [
          "dmg"
        ],
        "linux": [
          "deb",
          "rpm",
          "electron-forge-maker-appimage"
        ]
      },
      "electronPackagerConfig": {
        "asar": false,
        "icon": "src/assets/logo.ico",
        "win32metadata": {
          "ProductName": "app",
          "CompanyName": "app"
        }
      },
      "electronWinstallerConfig": {
      },
      "electronInstallerDebian": {},
      "electronInstallerRedhat": {},
      "electronInstallerDMG": {
        "icon": "src/assets/logo.icns"
      },
      "github_repository": {
        "owner": "",
        "name": ""
      },
      "windowsStoreConfig": {
        "packageName": "app",
        "name": "app"
      }
    }

Please provide either a failing minimal testcase (with a link to the code) or detailed steps to
reproduce your problem. Using electron-forge init is a good starting point, if that is not the
source of your problem.
Create empty project and then create a new BrowserWindow with the option SimpleFullScree: true and show: false.
on dom-ready call setSimpleFullScreen(true) and show(true).

This is a question about using Electron, and not about using Electron Forge. You should ask your question in one of the community forums instead.

Thanks. Already solved it. Updated electron-prebuilt-compile on my packages.json to 3.0.0.


complete bones of profile-form

Created bare bones of profile form--still missing 'put'

robyn!!! good job :)

This is fine.


 I removed many .sh files in /scripts.d/ directory with unused libs for my app. However it ignores my changes and build a heavy FFmpeg as with all default libs included in gpl-shared variant. What am I doing wrong?

You probably forgot to build a new image. If you only run build.sh, it'll download the latest image from github with everything in it.

Many thanks for your quick response and great support! You're right. I'll try tomorrow.

If you only modified scripts, and not the core-image, you can also export QUICKBUILD=1 before making the new image. It'll download the base images from github then, and only build your local scripts.

Thanks for the advice with export QUICKBUILD=1
I added this line to my .sh script before the makeimage command.
Is there a way to determine which lib from the /scripts.d directory is required? I removed about 30 libs to build tiny FFmpeg. And when I tried to create a new image, I was missing freetype, then libvmaf, etc.

Nothing from there is strictly required, except for maybe the very basic mingw stuff at the lowest numbers.
There are complex inter-dependencies though, and if you remove something from a number below 50, you can expect something from a higher number to fail.
FFmpeg itself will happily build without any of it though.

I tried to build an image for original scripts (not modified) and got this error:
=> [layer-50-libjxl 2/3] RUN --mount=src=scripts.d/50-libjxl/45-lcms2.sh,dst=/stage.sh --mount=src=.cache/dow  1043.6s
WARNING: local cache import at .cache/ghcr.io/btbn/ffmpeg-builds/win64-lgpl-shared-6.1_latest not found due to err: could not read .cache/ghcr.io/btbn/ffmpeg-builds/win64-lgpl-shared-6.1_latest/index.json: open .cache/ghcr.io/btbn/ffmpeg-builds/win64-lgpl-shared-6.1_latest/index.json: no such file or directory
ERROR: failed to receive status: rpc error: code = Unavailable desc = error reading from server: EOF
+ rm -f /tmp/tmp.lVHpIarWvU.toml

export QUICKBUILD=1
./makeimage.sh win64 lgpl-shared 6.1
FFmpeg-Builds-latest.zip was downloaded on June 13rd.
Ubuntu 24.04 on WSL2

That looks to me like a network issue or temporary outage of something.
It should not be talking to Github at that point, so probably some internal issue of Docker?
Make sure your docker installation is intact and up to date.

Thanks for your support!
I recently downloaded Docker for WSL2 from Microsoft Store.
I'll try with native Ubuntu without WSL2.

I never used the store version.
I usually just install docker proper on WSL these days, since that works just fine if systemd is enabled.

I reinstalled Ubuntu 24.04 on WSL2 and installed docker from the console (not Docker Desktop). The same problem.
Is it possible to disable use of cache for docker in your script?

It has nothing to do with any caching. The cache warning is normal if there is no cache yet.
Building works perfectly fine for me, so I have no idea what causes this for you.

Hello. I had a similar experience and solved it.
The problem in my environment was that the memory and swapzone on the wsl side was not set properly with the .wslconfig settings.
I had previously had a wsl2 side error, so I had put a limit on memory usage in .wslconfig and had swap set to 0.
Due to this issue, during the docker image creation, cache, etc. was not created properly due to insufficient memory and the script crashed and terminated without a proper error message.
I have since reset the wslconfig settings to allow enough memory and swap and the issue was resolved.
It would be nice if you could include a warning for users on the WSL side to prevent unfortunate situations like mine.

Thanks for your advice! I'll try again to build a custom build.

Many thanks for your advice! I successfully created custom build for FFmpeg.
I removed some unused libs to build a tiny FFmpeg custom build. My script:
export QUICKBUILD=1
./makeimage.sh win64 gpl-shared 6.1
./build.sh win64 gpl-shared 6.1

I created in a new file .wslconfig in C:\Users<MyUserProfile>.wslconfig
[wsl2]
memory=7GB
swap=0

Then Docker worked correctly, BtbN's scripts produced custom image and then custom build for FFmpeg.


[CLIENT-6489] Use enableRingingState

Update the quickstart to support the ringing state by default.

Looks good - thanks for this update!


TypeScript compilation errors in backend environment

Confirm this is a Node library issue and not an underlying OpenAI API issue

[X] This is an issue with the Node library

Describe the bug
Hello,
I recently encountered several TypeScript compilation errors when using this library in a backend project.
The issue primarily seems related to missing DOM types.
Here are the errors I encountered when I run tsc command:
../../node_modules/openai/src/core.ts:39:15 - error TS2304: Cannot find name 'AbortController'.

39   controller: AbortController;
                 ~~~~~~~~~~~~~~~

../../node_modules/openai/src/core.ts:252:18 - error TS2304: Cannot find name 'TextEncoder'.

252       if (typeof TextEncoder !== 'undefined') {
                     ~~~~~~~~~~~

../../node_modules/openai/src/core.ts:253:29 - error TS2304: Cannot find name 'TextEncoder'.

253         const encoder = new TextEncoder();
                                ~~~~~~~~~~~

../../node_modules/openai/src/core.ts:377:28 - error TS2304: Cannot find name 'AbortController'.

377     const controller = new AbortController();
                               ~~~~~~~~~~~~~~~

../../node_modules/openai/src/core.ts:424:13 - error TS2304: Cannot find name 'URL'.

424         new URL(path)
                ~~~

../../node_modules/openai/src/core.ts:425:13 - error TS2304: Cannot find name 'URL'.

425       : new URL(this.baseURL + (this.baseURL.endsWith('/') && path.startsWith('/') ? path.slice(1) : path));
                ~~~

../../node_modules/openai/src/core.ts:460:17 - error TS2304: Cannot find name 'AbortController'.

460     controller: AbortController,
                    ~~~~~~~~~~~~~~~

../../node_modules/openai/src/core.ts:580:31 - error TS2304: Cannot find name 'URL'.

580 export type PageInfo = { url: URL } | { params: Record<string, unknown> | null };
                                  ~~~

../../node_modules/openai/src/core.ts:727:12 - error TS2304: Cannot find name 'AbortSignal'.

727   signal?: AbortSignal | undefined | null;
               ~~~~~~~~~~~

../../node_modules/openai/src/core.ts:1083:14 - error TS2304: Cannot find name 'btoa'.

1083   if (typeof btoa !== 'undefined') {
                  ~~~~

../../node_modules/openai/src/core.ts:1084:12 - error TS2304: Cannot find name 'btoa'.

1084     return btoa(str);
                ~~~~

../../node_modules/openai/src/streaming.ts:13:15 - error TS2304: Cannot find name 'AbortController'.

13   controller: AbortController;
                 ~~~~~~~~~~~~~~~

../../node_modules/openai/src/streaming.ts:18:47 - error TS2304: Cannot find name 'AbortController'.

18   constructor(response: Response, controller: AbortController) {
                                                 ~~~~~~~~~~~~~~~

../../node_modules/openai/src/streaming.ts:208:16 - error TS2304: Cannot find name 'TextDecoder'.

208     if (typeof TextDecoder !== 'undefined') {
                   ~~~~~~~~~~~

../../node_modules/openai/src/streaming.ts:210:34 - error TS2304: Cannot find name 'TextDecoder'.

210         this.textDecoder ??= new TextDecoder('utf8');
                                     ~~~~~~~~~~~

../../node_modules/openai/src/uploads.ts:112:18 - error TS2304: Cannot find name 'URL'.

112     name ||= new URL(value.url).pathname.split(/[\\/]/).pop() ?? 'unknown_file';
                     ~~~

Found 16 errors in 3 files.

Errors  Files
    11  ../../node_modules/openai/src/core.ts:39
     4  ../../node_modules/openai/src/streaming.ts:13
     1  ../../node_modules/openai/src/uploads.ts:112

For reference, my tsconfig.json is as follows:
{
  "extends": "../../tsconfig.base.json",
  "compilerOptions": {
    "target": "ES2020",
    "module": "commonjs",
    "outDir": "./dist",
    "lib": ["es2020"],
    "typeRoots": ["./node_modules/@types", "./types"],
    "baseUrl": ".",
    "resolveJsonModule": true
  },
  "exclude": ["cdk.out", "node_modules"]
}

While adding the dom library to lib of my tsconfig.json does seem to resolve these errors, it causes references in other parts of the code to inadvertently change, leading to build failures. Furthermore, I believe that adding the dom library to a backend codebase isn't appropriate.
I've verified that the problem is not related to React's StrictMode. Upon checking the openai library's tsconfig.json, I noticed it uses the skipLibCheck option, but adding that to my project's configuration did not resolve the issue.
I wanted to raise this issue here to check if it's a known issue, or if there are any recommended workarounds. Any assistance or guidance would be appreciated.
Thank you.
To Reproduce

yarn add openai
run tsc on my repository
See error

Code snippets
No response
OS
macOS
Node version
Node v18.4.0
Library version
openai v4.8.0

Is your code importing like import OpenAI from 'openai' or like import OpenAI from 'openai/src'? Or not at all? The src directory within our package isn't intended to be imported or typechecked, it's only there for reference.
I haven't checked this, but you might need "exclude": ["cdk.out", "node_modules", "../../node_modules"] – it's surprising that you're excluding node_modules from being checked and still getting errors there.

@rattrayalex I just tried your suggestion and am getting the same error unforunately.

Hm. This sounds like a problem with your TS setup. Can you share your base tsconfig as well? You may need to restart your TS LSP as well to see the fixes come through.
Can you confirm whether and how you are importing openai?

Hmm, const { OpenAIApi } = require('openai'); is not correct, try const { OpenAI } = require('openai');?
Can you try "moduleResolution": "NodeNext"?

Yeah my bad, main point is requiring works (since it's not going through the type files).
No, moduleResolution didn't work

Hmm, it's quite surprising to me that require would work where import would not…
Could you share a StackBlitz repo that reproduces the error?

@rattrayalex
Thank you for the confirmation.
My tsconfig.base.json is as follows:
{
  "compilerOptions": {
    "strict": true,
    "skipLibCheck": true,
    "esModuleInterop": true,
    "allowSyntheticDefaultImports": true,
    "noErrorTruncation": true,
    "noUncheckedIndexedAccess": true,
    "noImplicitAny": false
  },
  "exclude": ["node_modules"]
}

By the way, I'm using a monorepo setup. Because I've listed openai in the dependencies of the root's package.json, openai is placed in the root's node_modules.
As you suggested, I added ../../node_modules to the exclude of /packages/backend/tsconfig.json, but I still get the same error.
"exclude": ["cdk.out", "node_modules", "../../node_modules"]

Also, even when I added "skipLibCheck": true to /packages/backend/tsconfig.json, the result is the same.

Is your code importing like import OpenAI from 'openai' or like import OpenAI from 'openai/src'? Or not at all? The src directory within our package isn't intended to be imported or typechecked, it's only there for reference in sourcemaps.

I'm importing in the code like this: import { OpenAI } from 'openai';.
However, in certain parts, I want to use a specific type, so I'm importing it as import { ChatCompletionMessageParam } from 'openai/src/resources/chat/completions';.
However, even after removing all of these references and running tsc, I still encountered the same error.

Ah. Hmm. You don't want to import from 'openai/src…', it's good you removed src/ from that.
Could you have the openai dependency live in packages/backend instead of the root, if you're using it in that package?

I'm going to close this because I suspect it's due to an idiosyncratic package setup, but please feel free to upvote or comment if it continues to be an issue.


runtime: TestDebugCallUnsafePoint failures with <nil> instead of error on noopt builder since 2022-09-05

greplogs -l -e 'FAIL: TestDebugCallUnsafePoint.*(?:\n\s+.*)got .*\<nil\>' --since=2022-01-01
2022-09-06T12:35:13-8a32354/linux-amd64-noopt
2022-09-06T11:14:09-1c50484/linux-amd64-noopt
2022-09-05T21:39:28-4c1ca42/linux-amd64-noopt
2022-09-05T21:39:15-e2e69ec/linux-amd64-noopt
2022-09-05T08:28:34-bd5595d/linux-amd64-noopt
2022-09-05T08:12:37-67e6542/linux-amd64-noopt
2022-09-05T08:10:03-40ced0c/linux-amd64-noopt
2022-09-05T08:08:24-af7f417/linux-amd64-noopt
2022-09-05T08:08:18-4ad55cd/linux-amd64-noopt
2022-09-05T08:08:09-02700e5/linux-amd64-noopt
2022-09-05T08:07:56-7d83d32/linux-amd64-noopt
2022-09-05T08:07:47-357b922/linux-amd64-noopt
See previously #36110.

@golang/runtime, it looks like this may have been fixed around Sept. 7, but I can't find an obvious fix CL. Do we know for certain that this is fixed?

I think this causes by https://go-review.googlesource.com/c/go/+/427135, the CL then be reverted.


MehakBhatia.md

Please add me to the Interested-2024-Technical-Writer

@MehakBhatia27  I see you are facing issues majorly in making proper pr ,
Step 1: Fork the repo after that Clone the repo
Step 2: Open in code editor , make .md file with your name and then add details of your CV, Portfolio and then stage the changes and commit the changes .
Step 3 :  push the changes and then raise the pr .
Hope it will help you !!.
Thanks

Hi @MehakBhatia27 -- I'm closing this as there have been no updates for two weeks. Feel free to reopen and make the requested changes. Thank you!


Bus error when testing

When I type test, the CPU usage goes up and nothing happens for about a minute, then a message appears about a bus error. Could this have to do with image size (1500x1500)?
INF [ Trainer::Epoch(156) ] Epoch: 99, it: 500, bsize: 16, current lr: 2.33894e-06
.....10%.....20%.....30%.....40%.....50%.....60%.....70%.....80%.....90%....
DBG [ Trainer::Epoch(221) ] Training, sps: 8628.59
DBG [ Trainer::Epoch(226) ] Training, tps: 115.894 us
DBG [ Trainer::Epoch(232) ] Training, GB/s   up: 0.000128576
DBG [ Trainer::Epoch(233) ] Training, GB/s down: 0.000128576
INF [ Trainer::Epoch(241) ] Training (Epoch 99, node 0) Square Loss Layer (Weight: 1) lps: 0.138364
INF [ Trainer::Epoch(243) ] Training (Epoch 99) aggregate lps: 0.138364
RESULT --- Training  - Epoch 99 - F1 : 12.6683% (t=-1)
RESULT --- Training  - Epoch 99 - ACC: 6.7625%
RESULT --- Training  - Epoch 99 - PRE: 6.7625%
RESULT --- Training  - Epoch 99 - REC: 100%
RESULT --- Training  - Epoch 99 - FPR: 100%
RESULT --- Training  - Epoch 99 - FNR: 0%
DBG [ Trainer::Reset(80) ] Resetting Trainer state
INF [ NetGraph&, Conv::NetGraph&, Conv::Trainer&, Conv::Trainer&, bool, std::string&)(296) ] Training complete.
 > test

DBG [ Trainer::Reset(80) ] Resetting Trainer state
DBG [ DatasetInputLayer::SetTestingMode(242) ] Enabled testing mode.
DBG [ Trainer::Test(90) ] ./trainnet.sh: line 3: 20806 Bus error               (core dumped) /home/ubuntu/cn24/build/trainNetwork -v /home/ubuntu/data/config.set /home/ubuntu/data/arch.net

Hi,
it could. Could you attach a stack trace?

This is a "no clBLAS" output, so closing.

Confirmed that it has to do with test set size. Well, I guess one just has to use small sets for testing.

Just for reference, we have no problems using >70GB datasets without any special measures. You may want to check your system configuration because CN24 does not do anything out of the ordinary in terms of system calls.

@clrokr What kind of hardware (in terms of main and GPU memory) do you use for those datasets?

Training usually takes place on a Xeon E3-1231v3 workstation with 16GB main memory and an R9 290X with 4GB of VRAM.


Rollup: Bundler error when installing packages via npm that contain react package

Steps to reproduce
Clone repo: https://github.com/paulm17/charizardxx-app

npm i
npm run dev

Current behavior
The error:

Uncaught Error: @pigment-css/react: You were trying to call "css" function without configuring your bundler. Make sure to install the bundler specific plugin and use it. @pigment-css/vite-plugin for Vite integration or @pigment-css/nextjs-plugin for Next.js integration.

Despite it being in use.
Remove the "charizardxx" UI lib and pigment-css will continue to operate just fine.  The issue is for whatever reason, the pigment-css/react page is perhaps running before the vite-plugin package?
I have also tested this with nextjs and I have the same issue.  (can create next repo, if requested)
Expected behavior
There should be no bundler error.
Context
I have built a custom UI library to be built installed via npm.
A minimal production of the UI library using pigment-css is here:

https://github.com/paulm17/charizardxx

Edit: I suspect this is due to rollup.  As I didn't have this issue when I was using tsup.
I'm not using tsup, as in a vite app it throws up errors such as:
16:11:10 [vite] Error when evaluating SSR module<EMAIL_ADDRESS>failed to import "react-remove-scroll"
|- /Users/paul/development/src/github/stylefusion/node_modules/.pnpm/react-remove-scroll@2.6.0_@types+react@18.3.11_react@18.3.1/node_modules/react-remove-scroll/dist/es2015/index.js:1
import RemoveScroll from './Combination';
^^^^^^

SyntaxError: Cannot use import statement outside a module

Search keywords: rollup, build process

I moved over to using tsup.  I still get the same issue.
Btw, for my UI lib.  I'm using yarn workspace:

Here is moving to a pnpm workspace:

Here is using a basic vite app via npmjs modules.

I've reached an impasse here.

After trying all day.  I decided to clone the mantine repo.  Pair it down to the essentials and take 1 component and convert it to pigment-css.
d

I built the packages and put on NPM.  Here is the result.
2 different repos, 2 different package managers, 2 different bundlers.  Same result.  There is definitely an issue here.  It's not possible to bundle pigment-css in a UI lib.

Just tried with the latest version v0.0.27.  Going to take a step back from this.  I'm just not able to solve it or debug this at all.

If using a Pigment CSS package in your library, you need to tell pigment to transform code from node_modules for you library. By default, any code from node_modules is ignored -
pigment({
  theme,
  transformLibraries: ["@charizardxx/core"],
})


A way to view older docs

Guys,
Thanks for the library. It's great.
I built my site using 0.13.0. I'm launching next week. There's no way I can change everything now to use the new namespacing in 0.14.0 (among any other changes), so it would be great if I could somehow still view the docs for 0.13.0. I (and surely others) really need to be able to reference the old docs.
Is there a way to do this? Even if there's a way I can download them locally and run them on a local web server -- that's great too.

Okay, I found a way:

Clone the repository: git@github.com:angular-ui/bootstrap.git
Switch to the "gh-pages" branch.
View the git log to find the branch version corresponding to 0.13.0 (which happens to be 5495d6b1d04888692b10121a8acb565c69a865b2).
Checkout that commit.
Run servedir (or whatever server).

So that works. But I do recommend you all implement a way to view docs for previous version of this library.

Let's continue in #4565. We are lacking the manpower to do every possible chore. This is a good thing to have, but we have other priorities for the time being.

Looks like this is in place on the site now via a navbar option -- thank you!


[Feature Request]: Creating docker containerization for agrotech frontend and backend

Is there an existing issue for this?

[X] I have searched the existing issues

Feature Description
Creating docker containerization for agrotech frontend and backend
Use Case
To setup and run the project on other systems easily.
Benefits
Dockerizaization is essential to run the project on other systems easily.
Add ScreenShots
No response
Priority
High
Record

[X] I have read the Contributing Guidelines
[X] I'm a GSSOC'24 contributor
[X] I have starred the repository

This is saved for future!

hey @manikumarreddyu can I take this issue?

@manikumarreddyu sir, please assign me this issue.


Merge release into master

PR Checklist

[ ] No API changes were made (or the changes have been approved)
[ ] No major design changes were made (or the changes have been approved)
[ ] Added test (or behavior not changed)
[ ] Updated API documentation (or API not changed)
[ ] Added license to new files (if any)
[ ] Added Python wrapping to new files (if any) as described in ITK Software Guide Section 9.5
[ ] Added ITK examples for all new major features (if any)

Refer to the ITK Software Guide for
further development details if necessary.

I don't know what GitHub would produce, so I did this merge manually. Then GitHub correctly registered this PR as merged.


Add a footer to this web app

Hello, I would like to work on it, assign it to me!

Have an issue?
Contact me @stupid_kid_af(Telegram) or comment here.

yess, still figuring out. How urgently do you need this?

No problem 👍
Any time

see my pull req.


feat(preview): add figma support to storybook [CSS-284]

CSS-284

Description
Add support for Figma design links in Spectrum CSS storybook. Note: this does not add the actual design links to the stories but sets up the infrastructure to do so.
To-do list

[x] If my change impacts other components, I have tested to make sure they don't break.
[ ] If my change impacts documentation, I have updated the documentation accordingly. (@todo)
[x] I have read the CONTRIBUTING document.
[ ] This pull request is ready to merge.

This is pretty cool!

@pfulton It will be so awesome if it would actually work! I follow the log in steps and it returns, refreshes, and then asks me to log in again. whomp whomp


cli chmod hack deleted

@ailisp I checked the docs on this, the only thing we need to do is to add it to bin in package.json. TS CLI file does not need to be 755, and the JS CLI file is already 755 and it stays 755 after we make changes to TS one and yarn build.
chmod works only on UNIX systems, so it's better if we will not use it.


137 -> v1-release Button|  Tweak Margin of Icon Containers

:tada: This PR is included in version 1.0.0-v1-release.20 :tada:
The release is available on:

npm package (@v1-release dist-tag)
GitHub release

Your semantic-release bot :package::rocket:

:tada: This PR is included in version 1.0.0 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Creep shoving to prefer to avoid reservedCoords

use existing reservedCoords value of roomManager
scale based on type of reservedCoord

Provided solution
            // If the coord is reserved, increase score porportional to importance of reservation
            const reservationType = this.room.roomManager.reservedCoords.get(packedCoord)
            if (reservationType) score += 1 + reservationType

lower score is preferred, so creeps will be coerced to avoid this coordinate
reservation types range from 0-5 depending on importance, with higher value being more important

@pieterbrandsen is this what you were looking for?


WinAnsi cannot encode "ő" (0x0151), "ű" (0x0171)

It seems that Strings may contain characters that cannot be encoded.
In my case it's Hungarian, and two common characters.
Is there any way around this?
Thank you, ...

Hello @LaKing!
There is indeed a way around this error. Please see https://github.com/Hopding/pdf-lib#fonts-and-unicode.

No worries! Good luck with your project 😄


why deadlock?

What version of Go are you using (go version)?

$ go version

go version go1.11.4 linux/amd64
Does this issue reproduce with the latest release?
yes
What operating system and processor architecture are you using (go env)?
ubuntu18.04 amd64
go env Output
$ go env

GOARCH="amd64"
GOBIN="/home/robin/go/bin"
GOCACHE="/root/.cache/go-build"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/home/go"
GOPROXY=""
GORACE=""
GOROOT="/home/robin/go"
GOTMPDIR=""
GOTOOLDIR="/home/robin/go/pkg/tool/linux_amd64"
GCCGO="gccgo"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD=""
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build746074640=/tmp/go-build -gno-record-gcc-switches"
What did you do?
I run the following code:
package main

import (
	"fmt"
	"runtime"
	"time"
)

func main() {
	go func() {
		for {
		}
	}()
	go func() {
		cnt := 1
		for {
			time.Sleep(100 * time.Millisecond)
			cnt = cnt + 1
			fmt.Println(cnt)
			if cnt == 10 {
				runtime.GC()
			}
		}
	}()
	ch := make(chan struct{})
	<-ch
}

What did you expect to see?
I hope to see the number of non-stop output increases.
What did you see instead?
When cnt is 10, the program will be deadlock
my confusion
Why do infinite loops and gc lead to deadlocks, and can't the dead loop be seized?

The following code will still be deadlock:
package main

import (
	"fmt"
	"runtime"
	"time"
)

func main() {
	go func() {
		cnt := 1
		for {
			cnt++
		}
	}()
	go func() {
		cnt := 1
		for {
			time.Sleep(100 * time.Millisecond)
			cnt = cnt + 1
			fmt.Println(cnt)
			if cnt == 10 {
				runtime.GC()
			}
		}
	}()
	ch := make(chan struct{})
	<-ch
}

The following code will not:
package main

import (
	"encoding/base64"
	"fmt"
	"runtime"
	"time"
)

func main() {
	go func() {
		for {
			base64.StdEncoding.EncodeToString([]byte("a"))
		}
	}()
	go func() {
		cnt := 1
		for {
			time.Sleep(100 * time.Millisecond)
			cnt = cnt + 1
			fmt.Println(cnt)
			if cnt == 10 {
				runtime.GC()
			}
		}
	}()
	ch := make(chan struct{})
	<-ch
}

According to the phenomenon, the goroutine that call other packages will be preempted. why? Is it a deliberate design or a bug?

See the discussion in #10958.

@ianlancetaylor  thank you


[cluster-test] Added twin test back to pre-release suite

Motivation
Added twin test back to pre-release suite
Have you read the Contributing Guidelines on pull requests?
(Write your answer here.)
Test Plan
./scripts/cti --pr 5222 --run twin
Related PRs
(If this PR adds or changes functionality, please take some time to update the docs at https://github.com/libra/website, and link to your PR here.)

:hourglass: Testing commit 485b3e6abce4383348182fb82c77400f5a39a23b with merge 5ee47c1fcef2773f7a0c2a95aec4da8ff7bb3afa...

:sunny: Test successful - checks-actions_land_blocking_test, checks-circle_commit_workflow
Approved by: andll
Pushing 5ee47c1fcef2773f7a0c2a95aec4da8ff7bb3afa to master...


Feature: List of recommended debugging tools added to Contributing.md

Is your feature request related to a problem? Please describe.
Not a problem, just a simple piece of feedback that could help with future contributions and contributors.
Describe the solution you'd like
Having a list of tools you’d like contributors to use to help with debugging code and communicating findings with you (as the maintainer) would be a nice addition. These don’t have to be a hard requirement but would be useful nonetheless. So far, communication has been wonderful in the short time I’ve been here, but I’d definitely use a list like this and learn the tools where needed.
Describe alternatives you've considered
Open to alternatives. Not sure what would be a different way to improve this aspect.
Additional context
Communication is always big for me. Having simple accessible documentation related to it can make a difference with contributions.

Here's my current main toolset:

debugging: valgrind, gdb, ldd, nm, and readelf for checking binaries and libraries for inconsistencies (most are built into FreeBSD)
code editing: neovim (custom fork of vim with a heavy focus on performance and improved scripting and plugin support) with some light lsp's running (language server protocol - some of them are ported from Visual Studio Code)
firefox - for obsessively reading documentation and googling

My background is graphics design but I've been actively involved in the Linux and BSD spheres for about 15 years now and have been running a hobbyist BSD server cluster for about 4. Not a professional in any fields but know how to script, work with build tools, and work with various graphics software. Programming and debugging code are not my main forte but I have always had a desire to port software, especially in the game development sphere, so continuing working on this would be a pleasure.

I'm using QtCreator on all platforms and never thought about tool sets =)


chore(deps): update all lint related packages

Description:
Updates all lint related packages.
Motivation and Context:
To keep our dependency set up to date and benefit from bug fixes and improvements from the wider open source community.
How Has This Been Tested?
Ran all lint related npm scripts and verify lint passes.
Types of changes:
Devops tooling update
Checklist:

[x] My code follows the code style of this project.
[x] I have reviewed and updated the documentation accordingly.
[x] I have read the CONTRIBUTING document.
[x] I have added tests to cover my changes where needed.
[x] All new and existing tests passed.
[x] My commits have been squashed into a concise set of changes.

Coverage remained the same at 15.758% when pulling 92d34cde9cd91f458754c82bcfcdd0f776fe0a12 on mrfelton:chore/update-deps-lint into 2931effec4b07ecb4bbbd115cf28cd2572bc1810 on LN-Zap:master.

@mrfelton can you rebase this?

Rebased


[1.16] Animal Feeder

Industrial Foregoing Version: 3.1.1-a834e76
Titanium Version: 3.1.0
The animal feeder doesn't seem to be feeding animals - or at least not wheat to cows. Tested with all other mods stripped out on a fresh world with both forge 34.1.16 and 34.1.19.
https://media.discordapp.net/attachments/357597633566605315/766222684723871755/2020-10-15_04.54.17.png?width=1242&height=677
https://media.discordapp.net/attachments/357597633566605315/766222694093160468/2020-10-15_04.54.21.png?width=1242&height=677

I also can't get the animal feeder to feed cows. Haven't tested it on anything else. It has power and wheat and there's only like 5 cows in the pen so I really do agree that it's bugged.

I cannot reproduce this in dev.
Are you sure that there are no hidden animals near the pen or the cows are on their breeding cd? Maybe some other mod is messing with the valid breeding items?

I have this issue too. Also industrial-foregoing-1.16.3-3.1.1-a834e76.jar but on ATM6 1.1.5

Same issue 1.16.3, only a couple of cows in front, tried a few different things, cant get it to work

I cannot reproduce this in dev.
Are you sure that there are no hidden animals near the pen or the cows are on their breeding cd? Maybe some other mod is messing with the valid breeding items?
I made this video of me reproducing it, which was not hard to do, it really just does not work as you can see. I had no other mods, the cows were breedable by hand, etc etc. After I recorded I tested with other mobs and it doesn't work with any of them, so its definitely bugged. Hopefully I can post a video here.

https://www.youtube.com/watch?v=cDpmZ_v7eSM

Oh yes this is reproducible with just Forge 34.1.23, Titanium 3.1.0 & IF 3.1.1.

I did some digging.
The Animal Feeder checks a few things:

!animalEntity.isChild()
animalEntity.getGrowingAge() == 0
animalEntity.canBreed()
!animalEntity.isInLove()
!getFeedingItem(animalEntity).isEmpty()

When the player tries to breed an animal this is checked:

this.isBreedingItem(heldItemstack)
this.isBreedingItem(itemstack)
this.getGrowingAge() == 0
this.canBreed()

Which is basically the same, except for the baby check (it's included in getGrowingAge()) and the in love check (it's included in canBreed()).
But the problem lies in animalEntity.canBreed() which returns false for the Animal Feeder. Everything else passes with true.
Internally (for basic animals) canBreed() checks if the in-love-timer is <= 0 and isInLove() returns if he timer is > 0.
So theoretically !canBreed() and isInLove() should return the same result... BUT THEY DO NOT. WTF?

With some debug logging:
[Server thread/INFO] [AnimalFeederTile/]: Starting work tick
[Server thread/INFO] [AnimalFeederTile/]: Found 2 animals in working area
[Server thread/INFO] [AnimalFeederTile/]: Removing unbreedable animals in working area
[Server thread/INFO] [AnimalFeederTile/]: CowEntity['Cow'/11, l='ServerLevel[New World]', x=-33.50, y=64.00, z=205.50] from net.minecraft.entity.passive.CowEntity: inLoveTime=0, growingAge=0, feedingItem=32 wheat, isChild=false, growingAgeNot0=false, cannotBreed=true, inLove=false, noFeedingItem=false
[Server thread/INFO] [AnimalFeederTile/]: animalEntity.inLove = 0
[Server thread/INFO] [AnimalFeederTile/]: animalEntity.canBreed() = false
[Server thread/INFO] [AnimalFeederTile/]: animalEntity.isInLove() = false
[Server thread/INFO] [AnimalFeederTile/]: {
  Brain: {
    memories: {}
  },
  HurtByTimestamp: 0,
  ForgeData: {},
  Attributes: [
    {
      Base: 0.20000000298023224d,
      Name: "minecraft:generic.movement_speed"
    },
    {
      Base: 16.0d,
      Modifiers: [
        {
          Amount: 0.024509712605415d,
          Operation: 1,
          UUID: [I;<PHONE_NUMBER>,<PHONE_NUMBER>, -1928417617,<PHONE_NUMBER>],
          Name: "Random spawn bonus"
        }
      ],
      Name: "minecraft:generic.follow_range"
    },
    {
      Base: 0.08d,
      Name: "forge:entity_gravity"
    }
  ],
  Invulnerable: 0b,
  FallFlying: 0b,
  ForcedAge: 0,
  PortalCooldown: 0,
  AbsorptionAmount: 0.0f,
  FallDistance: 0.0f,
  InLove: 0,
  CanUpdate: 1b,
  DeathTime: 0s,
  HandDropChances: [0.085f, 0.085f],
  PersistenceRequired: 0b,
  id: "minecraft:cow",
  UUID: [I; -498894578, -1845408403, -1504730014, 620697675],
  Age: 0,
  Motion: [0.0d, -0.0784000015258789d, 0.0d],
  Health: 10.0f,
  LeftHanded: 0b,
  Air: 300s,
  OnGround: 1b,
  Rotation: [8.042057f, 0.0f],
  HandItems: [
    {},
    {}
  ],
  ArmorDropChances: [0.085f, 0.085f, 0.085f, 0.085f],
  Pos: [-33.5d, 64.0d, 205.5d],
  Fire: -1s,
  ArmorItems: [
    {},
    {},
    {},
    {}
  ],
  CanPickUpLoot: 0b,
  HurtTime: 0s
}
[Server thread/INFO] [AnimalFeederTile/]: CowEntity['Cow'/12, l='ServerLevel[New World]', x=-36.08, y=64.00, z=202.53] from net.minecraft.entity.passive.CowEntity: inLoveTime=0, growingAge=0, feedingItem=32 wheat, isChild=false, growingAgeNot0=false, cannotBreed=true, inLove=false, noFeedingItem=false
[Server thread/INFO] [AnimalFeederTile/]: animalEntity.inLove = 0
[Server thread/INFO] [AnimalFeederTile/]: animalEntity.canBreed() = false
[Server thread/INFO] [AnimalFeederTile/]: animalEntity.isInLove() = false
[Server thread/INFO] [AnimalFeederTile/]: {
  Brain: {
    memories: {}
  },
  HurtByTimestamp: 0,
  ForgeData: {},
  Attributes: [
    {
      Base: 0.20000000298023224d,
      Name: "minecraft:generic.movement_speed"
    },
    {
      Base: 16.0d,
      Modifiers: [
        {
          Amount: -0.04274048136542697d,
          Operation: 1,
          UUID: [I; -1040883999,<PHONE_NUMBER>, -1734661354,<PHONE_NUMBER>],
          Name: "Random spawn bonus"
        }
      ],
      Name: "minecraft:generic.follow_range"
    },
    {
      Base: 0.08d,
      Name: "forge:entity_gravity"
    }
  ],
  Invulnerable: 0b,
  FallFlying: 0b,
  ForcedAge: 0,
  PortalCooldown: 0,
  AbsorptionAmount: 0.0f,
  FallDistance: 0.0f,
  InLove: 0,
  CanUpdate: 1b,
  DeathTime: 0s,
  HandDropChances: [0.085f, 0.085f],
  PersistenceRequired: 0b,
  id: "minecraft:cow",
  UUID: [I;<PHONE_NUMBER>,<PHONE_NUMBER>, -1244548436, -119568201],
  Age: 0,
  Motion: [-0.04704271895612535d, -0.0784000015258789d, -0.0014967420382314303d],
  Health: 10.0f,
  LeftHanded: 0b,
  Air: 300s,
  OnGround: 1b,
  Rotation: [94.01227f, -3.6522388f],
  HandItems: [
    {},
    {}
  ],
  ArmorDropChances: [0.085f, 0.085f, 0.085f, 0.085f],
  Pos: [-36.07532043904621d, 64.0d,<PHONE_NUMBER>0726866d],
  Fire: -1s,
  ArmorItems: [
    {},
    {},
    {},
    {}
  ],
  CanPickUpLoot: 0b,
  HurtTime: 0s
}
[Server thread/INFO] [AnimalFeederTile/]: Reduced to 0 breedable animals in working area
[Server thread/INFO] [AnimalFeederTile/]: Did not find two valid animals to breed

I think this might be a Forge bug

Forge replaces the method AnimalEntity.canFallInLove() (func_204701_dC) with AgeableEntity.canBreed() (func_204701_dC).
In the dev environment every usage of canFallInLove is correctly replaced with canBreed. But in a normal install the vanilla code uses canFallInLove (which has the correct logic). The AnimalFeeder uses canBreed, as its the only available method. It always returns false in a normal install.
So I think we have to move this over to the Forge issue tracker.

Confirmed MCP issue by Lex

Fixed in MinecraftForge/MinecraftForge#7424 I will integrate this into #858

I'm going to leave this open for a bit because I know that people will open a new issue for a while.
Thanks @iTitus for looking into it

So do we just download the latest forge 1.16.3-34.1.25 (didnt fix the issue) or is there another patch as such we have to download?

You need the latest Forge (34.1.25) AND a new build of Industrial Foregoing with #858 merged. Stay patient, it will come soon ;)

I think I am still seeing this issue. Only about 8 cows and they aren't being fed.
Forge 34.1.42
Titanium 3.2
IF: 3.1.1

You need atleast version 3.2.0 of IF.

Updated Valhelsia 3 and directly copied my save over. It works now. Thank you.

Having the same issue in 1.16.5

forgeVersion, 36.2.39
industrial-foregoing-1.16.5-<IP_ADDRESS>-16
titanium-1.16.5-<IP_ADDRESS>-22

Running on a local server, is there anything I can share so that you get a bit more info ? (custom modpack)


Changing run script phase to prevent Csound framework linking issue

In the pull request I fully replaced current run script phase. But if I add my changes to already existing script:
EXECFILE=${BUILT_PRODUCTS_DIR}/${EXECUTABLE_PATH}
LIBPATH=${BUILT_PRODUCTS_DIR}/${PRODUCT_NAME}".app/Contents/Frameworks/CsoundLib64.framework/Versions/6.0"
<EMAIL_ADDRESS>
# space separated list of libraries
TARGETS="CsoundLib64"
for TARGET in ${TARGETS} ; do
LIBFILE=${LIBPATH}/${TARGET}
TARGETID=`otool -DX "${LIBPATH}/$TARGET"`
NEWTARGETID=${NEWLIBPATH}/${TARGET}
install_name_tool -id "${NEWTARGETID}" "${LIBFILE}"
install_name_tool -change "${TARGETID}" "${NEWTARGETID}" "${EXECFILE}"
install_name_tool -change CsoundLib64.framework/Versions/6.0/CsoundLib64 @executable_path/../Frameworks/CsoundLib64.framework/Versions/6.0/CsoundLib64 $TARGET_BUILD_DIR/$EXECUTABLE_PATH
done

It also works.

It's amazing that you got it down to one line and it seems to work.  I'll update the web site also. Thanks!


20170919

https://design-tips.caneco.xyz/20170919
there is a scrollbar issue

Hello,
Can you help me a bit?
Can you point me out the resolution where the issue is found?
– Thanks

1920x1080

so?

Do you mean the page is scrollable until the tweet toast show up?

here's what's up


FAILURE: Build failed with an exception.

**What went wrong:
Could not determine the dependencies of task ':app:compileDebugJavaWithJavac'.
> In project 'app' a resolved Google Play services library dependency depends on another at an exact version (e.g. "[19.0.
  2]", but isn't being resolved to that version. Behavior exhibited by the library will be unknown.

  Dependency failing: com.google.android.gms:play-services-vision:20.0.0 -> com.google.android.gms:play-services-vision-co
<EMAIL_ADDRESS>but play-services-vision-common version was 19.1.0.

  The following dependencies are project dependencies that are direct or have transitive dependencies that lead to the art
  ifact with the issue.
  -- Project 'app' depends onto com.google.firebase:firebase-ml-vision@{strictly 24.1.0}
  -- Project 'app' depends onto com.google.android.gms:play-services-vision-face-contour-internal@{strictly 16.0.0}
  -- Project 'app' depends on project 'firebase_ml_vision' which depends onto<EMAIL_ADDRESS>  0
  -- Project 'app' depends onto com.google.android.gms:play-services-vision-common@{strictly 19.1.0}
  -- Project 'app' depends onto com.google.firebase:firebase-bom@{strictly 25.12.0}
  -- Project 'app' depends onto com.google.firebase:firebase-ml-vision-face-model@{strictly 20.0.2}
  -- Project 'app' depends onto<EMAIL_ADDRESS>  -- Project 'app' depends onto com.google.android.gms:play-services-vision-image-label@{strictly 18.0.4}
  -- Project 'app' depends onto com.google.android.gms:play-services-vision@{strictly 20.0.0}
  -- Project 'app' depends onto<EMAIL_ADDRESS>
  For extended debugging info execute Gradle from the command line with ./gradlew --info :app:assembleDebug to see the dep
  endency paths to the artifact. This error message came from the google-services Gradle plugin, report issues at https://
  github.com/google/play-services-plugins and disable by adding "googleServices { disableVersionCheck = true }" to your bu
  ild.gradle file.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 36s
Exception: Gradle task assembleDebug failed with exit code 1
**

I have followed all the steps to add the package.
My pubspec.yaml
name: biotest
description: A new Flutter project.

publish_to: 'none' # Remove this line if you wish to publish to pub.dev

version: 1.0.0+1

environment:
  sdk: ">=2.7.0 <3.0.0"

dependencies:
  flutter:
    sdk: flutter

  # The following adds the Cupertino Icons font to your application.
  # Use with the CupertinoIcons class for iOS style icons.
  cupertino_icons: ^0.1.3
  local_auth: ^0.6.3+2
  firebase_auth:
  firebase_database:
  fluttertoast: ^7.1.1
  firebase_storage:
  image: ^2.1.14
  path_provider: ^1.6.11
  intl:
  provider:
  table_calendar:
  flutter_local_notifications:
  device_info:
  bottom_navy_bar: ^5.6.0
  imei_plugin: ^1.2.0
  firebase_ml_vision: ^0.9.6+2

dev_dependencies:
  flutter_test:
    sdk: flutter

flutter:

  uses-material-design: true

  assets:
    - assets/

My Flutter Doctor
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel beta, 1.24.0-10.2.pre, on Microsoft Windows [Version 10.0.18363.1316], locale en-IN)
[√] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
[√] Chrome - develop for the web
[√] Android Studio (version 3.6)
[√] IntelliJ IDEA Community Edition (version 2020.3)
[√] VS Code (version 1.52.1)
[√] Connected device (4 available)

Hi @deveshgarg-max
Could you please provide your flutter pub deps -- --style=compact?
 Define location with flutter.sdk in the local.properties file.")
}
def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
if (flutterVersionCode == null) {
flutterVersionCode = '1'
}
def flutterVersionName = localProperties.getProperty('flutter.versionName')
if (flutterVersionName == null) {
flutterVersionName = '1.0'
}
apply plugin: 'com.android.application'
apply plugin: 'com.google.gms.google-services'
apply plugin: 'kotlin-android'
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
android {
dependencies {
// ...
   api 'com.google.firebase:firebase-ml-vision-face-model:17.0.2'
}

compileSdkVersion 29

sourceSets {
    main.java.srcDirs += 'src/main/kotlin'
}

lintOptions {
    disable 'InvalidPackage'
}

defaultConfig {
    // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
    applicationId "com.example.biotest"
    minSdkVersion 23
    targetSdkVersion 29
    versionCode flutterVersionCode.toInteger()
    versionName flutterVersionName
}

buildTypes {
    release {
        // TODO: Add your own signing config for the release build.
        // Signing with the debug keys for now, so `flutter run --release` works.
        signingConfig signingConfigs.debug
    }
}

}
flutter {
source '../..'
}
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
implementation 'com.google.firebase:firebase-analytics-ktx'
implementation platform('com.google.firebase:firebase-bom:26.4.0')
}


SILGen: Account for abstraction differences when assigning in key path setters

Resolves #63682

@swift-ci please smoke test macOS

@swift-ci please smoke test macOS

@slavapestov ping
I’m hoping for this to board the release if possible.

@swift-ci please smoke test

@swift-ci please test source compatibility

Much obliged!


data_collator error: Could not find response key in token IDs tensor

Hello everyone,
I am currently fine tuning Llama2 on a my own dataset and using DataCollatorForCompletionOnlyLM.
the structure of my text column is:
<s>[INST] <<SYS>> Please select the correct answer from the given multiple Options based on the given Context: <</SYS>> Context: Geology is the study of the Earths solid material and structures and the processes that create them. Some ideas geologists might consider include how rocks and landforms are created or the composition of rocks, minerals, or various landforms. Geologists consider how natural processes create and destroy materials on Earth, and how humans can use Earth materials as resources, among other topics. Geologists study rocks in the field to learn what they can from them. Question: Earth science is the study of Options:(A) solid Earth (B) Earths oceans (C) Earths atmosphere (D) all of the above Answer: [/INST] D </s>
My formatting function is:
def format(sample):
    s_prompt="Please select the correct answer from the given multiple Options based on the given Context:"
    system_prompt = f"<s>[INST] <<SYS>>\n {s_prompt}\n<</SYS>>\n\n"
    user_prompt = f"{sample['prompt']}"
    model_answer = f"\n[/INST] {sample['response']} </s>"

    # join all the parts together
    prompt = "".join([i for i in [system_prompt, user_prompt, model_answer] if i is not None])
    return prompt

My Training code:
# Trainer (Fine-tuning)
trainer = SFTTrainer(
    model=model,
    train_dataset=train_dataset,
    eval_dataset=val_dataset,
    peft_config=peft_config,
    dataset_text_field="text",
    max_seq_length=max_seq_length,
    tokenizer=tokenizer,
    args=training_arguments,
    packing=packing,
    data_collator=DataCollatorForCompletionOnlyLM("[/INST]", tokenizer=tokenizer),
)
trainer.train()
trainer.model.save_pretrained(output_dir)

I have tried multiple response templates but always get the error:
RuntimeError: Could not find response key [835, 4007, 22137, 29901] in token IDs tensor([ 1, 835, ...])
Can you please guide me to the correct one?

Hi @Sosycs
Thanks a lot for the issue, sometimes you need also to pre-pend \n, can you try to pass "\n[/INST]" in the datacollator?
Optionally you can also directly pass the ids directly to the collator - please have a look at this section of the docs: https://huggingface.co/docs/trl/sft_trainer#using-tokenids-directly-for-responsetemplate and let me know if this is any of help to you

closed to be discussed in https://github.com/huggingface/trl/issues/989


Deep Linking Fails with Empty Referring Parameters

Describe the bug
  BranchDeepLinks.addListener('init', (event: BranchInitEvent) => {
        alert(JSON.stringify(event.referringParams))

     //referringParams are empty
   })

here is how i generate a shortUrl that contains token
  async generateBranchLink() {
    try {
      let user = await this.storageService.get('user');

      var properties = {
        $match_duration: 2000,
        custom_string: 'data',
        custom_boolean: true,
        $custom_data: JSON.stringify({token: user.share_token}),
      };

      let res = await BranchDeepLinks.generateShortUrl({properties});
      return res.url;
    } catch (err) {
      console.error('Error generating Branch link:', err);
      throw err;
    }
  }

Steps to reproduce
1.Implement capacitor-branch-deep-links as per the documentation
2.Generate a deep link with custom user share token
3.Attempt to open the app through the generated deep link.
Expected behavior
The app opens via the deep link, but all parameters that were appended to the deep link URL are received as empty. This behavior is consistent across different devices and platforms.
SDK Version
7.1.0
Make and Model
Iphone 12 Pro
OS
iOS 17.3.1
Additional Information/Context
No response

the same problem on ios only, android works fine
💊   Capacitor Doctor  💊

Latest Dependencies:

  @capacitor/cli: 5.7.4
  @capacitor/core: 5.7.4
  @capacitor/android: 5.7.4
  @capacitor/ios: 5.7.4

Installed Dependencies:

  @capacitor/cli: 5.7.4
  @capacitor/core: 5.7.4
  @capacitor/android: 5.7.4
  @capacitor/ios: 5.7.4

package.json
"capacitor-branch-deep-links": "^7.1.0",

Debug log
[BranchSDK][Debug][BNCServerInterface preparePostRequest:url:key:retryNumber:] Body: {
    "anon_id" = "3413F720-B88C-4B7E-9AA7-416C23156S9E";
    "app_version" = "3.4.0";
    "apple_testflight" = 1;
    "branch_key" = "key_test_XXXXXXXXXXXXXXXXXXXXX";
    brand = Apple;
    build = 21E236;
    "connection_type" = wifi;
    country = RU;
    "cpu_type" = 16777228;
    debug = 0;
    environment = "FULL_APP";
    "first_install_time" =<PHONE_NUMBER>003;
    "hardware_id" = "60DCA66B-7F35-4F10-8A63-C3XX6C4CFC08";
    "hardware_id_type" = "vendor_id";
    "ios_bundle_id" = "xx.xxx.xxxxxxxxx";
    "ios_vendor_id" = "60DCA66B-7F35-4F10-8A63-C3XX6C4CFC08";
    "is_hardware_id_real" = 1;
    language = en;
    "lastest_update_time" =<PHONE_NUMBER>000;
    "latest_install_time" =<PHONE_NUMBER>308;
    "local_ip" = "xxx.xxx.xxx.xxx";
    locale = "en_001@rg=ruzzzz";
    metadata =     {
        "skan_time_window" = "5184000.000000";
    };
    model = "iPhone13,1";
    "opted_in_status" = "not_determined";
    os = iOS;
    "os_version" = "17.4.1";
    "plugin_name" = Capacitor;
    "plugin_version" = "7.0.0";
    "screen_dpi" = 3;
    "screen_height" = 2436;
    "screen_width" = 1125;
    sdk = "ios3.3.0";
    update = 0;
    "uri_scheme" = xxxxxxxxx;
    "user_agent" = "Mozilla/5.0 (iPhone; CPU iPhone OS 17_4_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148";
}

@metinjakupi have you found solution?

@qliqdev It worked once only, but now it stopped again so i dont know what

@metinjakupi
Could you open a support ticket for this?
https://help.branch.io/using-branch/page/submit-a-ticket
The github issues page has much longer response times than support tickets.
For this particular issue, I suspect there is a configuration issue with the entitlements file. The one time success could have been due to a deferred deeplink rather than correct Universal Link setup.

For us everything was working fine including deferred deep links using IOS Native Solution until IOS15 but deferred deep linking broke since IOS 16, seeing similar issue, during App install we can see from branch debug log that link is coming through but in the branch init listener which starts listening after App install, referringParams are coming empty

If I disable Private Relay in my iPhone(iOS 17) , I am getting this allow paste prompt, and after hitting allow deferred deep link is working.
however as per below two blogs from branch, this should have been supported and deferred deep link should work without having to disable private relay?
https://www.branch.io/resources/blog/nativelink-solution-to-challenges-caused-by-ios-15/
https://www.branch.io/resources/blog/everything-you-need-to-know-about-ios-16-and-pasteboard-opt-ins/
Here is what we have from podlock and logs PODS:

BranchSDK (3.4.3)
Capacitor (5.7.2):

CapacitorCordova

CapacitorApp (5.0.7):

Capacitor

CapacitorBranchDeepLinks (7.1.0):

BranchSDK
Capacitor

And these are the logs I see related to branch from Xcode, still not getting referringparams after install
[BranchSDK][Debug][Branch initializeSessionAndCallCallback:sceneIdentifier:urlString:] Request <BranchInstallRequest: 0x303d0a7a0> callback <NSMallocBlock: 0x302c5d4c0> link (null)
[BranchSDK][Debug][BNCServerInterface preparePostRequest:url:key:retryNumber:] <NSMutableURLRequest: 0x303b18310> { URL: https://api3.branch.io/v1/install }
Headers {
"Content-Length" = 1688;
"Content-Type" = "application/json";
}
Body {
"anon_id" : "719_________________A41",
"app_version" : "._.",
"apple_attribution_token" : "",
"apple_testflight" : true,
"branch_key" : "key_live__",
"brand" : "Apple",
"build" : "",
"connection_type" : "wifi",
"country" : "US",
"cpu_type" : "16777228",
"debug" : false,
"environment" : "FULL_APP",
"first_install_time" :<PHONE_NUMBER>000,
"hardware_id" : "",
"hardware_id_type" : "vendor_id",
"ios_bundle_id" : "",
"ios_vendor_id" : "",
"is_hardware_id_real" : true,
"language" : "en",
"lastest_update_time" :<PHONE_NUMBER>000,
"latest_install_time" :<PHONE_NUMBER>219,
"local_ip" : "",
"locale" : "en_US",
"metadata" : {
"skan_time_window" : "5184000.000000"
},
"model" : "",
"opted_in_status" : "denied",
"os" : "iOS",
"os_version" : "17.4.1",
"plugin_name" : "Capacitor",
"plugin_version" : "7.0.0",
"retryNumber" : 0,
"screen_dpi" : 3,
"screen_height" : 2556,
"screen_width" : 1179,
"sdk" : "ios3.4.3",
"update" : 0,
"uri_scheme" : "____",
"user_agent" : "Mozilla/5.0 (iPhone; CPU iPhone OS 17_4_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148"
}
Failed to request allowed query parameters from WebPrivacy.
⚡  To Native ->  BranchDeepLinks addListener 98742127
⚡  To Native ->  BranchDeepLinks addListener 98742128
[BranchSDK][Debug][BNCServerInterface processServerResponse:data:error:] <NSHTTPURLResponse: 0x303937100> { URL: https://api3.branch.io/v1/install } { Status Code: 200, Headers {
"Access-Control-Allow-Origin" =     (
"*"
);
"Content-Length" =     (
283
);
"Content-Type" =     (
"application/json; charset=utf-8"
);
Date =     (
"Fri, 26 Apr 2024 13:36:17 GMT"
);
"Strict-Transport-Security" =     (
"max-age=31536000; includeSubDomains"
);
Via =     (
"1.1 a147f9c60c162e36df3586fdd9c01478.cloudfront.net (CloudFront)"
);
"x-amz-cf-id" =     (
"gz-=="
);
"x-amz-cf-pop" =     (
"PHL51-P1"
);
"x-branch-request-id" =     (
""
);
"x-cache" =     (
"Miss from cloudfront"
);
"x-powered-by" =     (
Branch
);
} }
Body {
"data" : "{"+clicked_branch_link":false,"+is_first_session":true}",
"link" : "https://.app.link?%24randomized_bundle_token=",
"randomized_bundle_token" : "",
"randomized_device_token" : "",
"session_id" : "1312399193406720942"
}
Branch initSession, got params - :
["+clicked_branch_link": 0, "+is_first_session": 1]
⚡  [log] -  APP COMP - initExternalLinks - BranchDeepLinks init got event:  {"referringParams":{}}


Compile Typescript via gulp

drops grunt for gulp
removes old coffeescript linting and such
brings back automatic running through NPM hopefully via the correct command for windows/unix
removed build-models.js this was replaced in node-client.

Looks good

@david-driscoll I had to revert this branch I'm afraid... https://travis-ci.org/OmniSharp/omnisharp-atom/builds/62014600
I restored the compile-ts branch


Include response headers in real sat response

Hi there! This project looks extremely promising.
I was trying out sat and got quite confused about why calls to resp::set_header didn't seem to have any effect - my HTTP headers were not showing up on the response. On looking into it, I see they do get added to the CoordinatedResponse structure, but the RespHeaders here are simply ignored by handler.go and hence they don't end up in the real HTTP response.
Fortunately it's very easy to add the headers to the real HTTP response as per this PR. If there is some reason why it's intentional that the response headers should be discarded then I apologise (though it would be great if you could clarify why). Thanks!

Amazing! Thanks for doing this, and sorry for the delay in reviewing :)

Thanks for the info. As requested, I've filed https://github.com/suborbital/sat/issues/47 and https://github.com/suborbital/sat/issues/48 to represent these suggestions.

Much appreciated!


Scripted Installer - Option input processing, ensure all are case-insensitive

Ensure that the reading of all input values are case-insensitive.

Verifided

Verified


[CT-2483] Use depends_on.add_node instead of depends_on.nodes.append

In some circumstances we end up with multiple duplicated unique_ids in depends_on.nodes. Switch to using "add_node" instead of append so that duplicates are avoided. Fix the artifacts tests...
The place that needs to be fixed is in core/dbt/parser/manifest.py at the end of "_process_refs_for_node"

Ooh! Might this also fix https://github.com/dbt-labs/dbt-core/issues/5877?


Remove dacpac references baseline

I ended up not adding a dacpac references baseline file in this PR #10684 to add dacpac references functionality, but forgot to remove this so some tests were failing because this file couldn't be found. I'll add the test for this back after I fix the test to work for both windows and mac.

Coverage decreased (-0.1%) to 34.211% when pulling 5f10b0759d872a7c402a0e3a9828239ea2c2bd1a on kisantia/fixSqlProjectTests into 75e3e4c8c9010bd41e8d7c05a109afaa39a3e959 on master.


How to "un-register" a webhook

The docs doesn't mention anything about it, but it seems pretty basic to me, that in some point you would like to remove a webhooks from a shop.
Or, having somekind of "opposite" action to the Shopify.Webhooks.Registry.register function.
Is there such a way? or how should we handle those scenarios?

I'm also really curious about this, been playing with webhooks and I get hundred of emails after I stop my test server. I hope there's no negative consequence to let them expire.

Not possible at the moment. You need to write your own deletion logic https://stackoverflow.com/a/23631865/6110804
However, it would be nice to call Shopify.Webhooks.Registry.unregisterAll()

@doneumark I support this ticket. 👍🏻
I my case, I created an app with a custom authentication page, I don't want to register the webhooks on installation, I prefer doing it on successful authentication. The same applies when the user logs out from the app and does not uninstall the app completely, I want to be able to un-register or delete the webhook for that store.

I'm reading the code right now and it seems that not only the webhook keeps registered on Shopify, but also after the customer uninstalls the app, his "WebhookRegistryEntry" keeps stored inside the app, and is never deleted.
Doesn't this lead to memory leaks?

I created a helper function written in js.
This function retrieves the webhook for the topic, ORDERS_PAID, ORDERS_FULFILLED and then delete them.
Note, that first and topic parameters in webhookSubscriptions are hardcoded for now, feel free to edit.
Also, I have no idea if first should be the exact number of topics, because Shopify.Webhooks.Registry.register and Shopify.Webhooks.Registry.registerAll prevent multiple webhooks created for the same topic if I understand it correctly.
export const unregisterWebhooks = (session) => {
	return new Promise(async (resolve, reject) => {
	  try {
		const client = new Shopify.Clients.Graphql(
		  session.shop,
		  session.accessToken
		);

		// Retrieve the webhook for the topic
		const getWebhooksResponse = await client
		  .query({
			data: `{
			webhookSubscriptions(first: 10, topics: [ORDERS_PAID, ORDERS_FULFILLED]) { // <--- TODO: This is hardcoded, should be passed in as a parameter
			  edges {
				node {
				  id,
				  topic
				}
			  }
			}
		  }`,
		  })
		  .catch((error) => {
			console.log(error);
		  });

		if (getWebhooksResponse) {
		  for (const webhook of getWebhooksResponse.body.data.webhookSubscriptions.edges) {
			console.log(`Unregistering webhook: with id: ${webhook.node.id} and topic: ${webhook.node.topic}`);
			// Delete the webhook
			const deleteWebhookResponse = await client
			  .query({
				data: `mutation {
				  webhookSubscriptionDelete(id: "${webhook.node.id}") {
					deletedWebhookSubscriptionId
					userErrors {
					  field
					  message
					}
				  }
				}`,
			  })
			  .catch((error) => {
				console.log(error);
			  });

			if (deleteWebhookResponse) {
			  if(deleteWebhookResponse.body.data.webhookSubscriptionDelete.userErrors.length > 0) {
				console.log(`Failed to unregister webhook: with id: ${webhook.node.id} and topic: ${webhook.node.topic} for shop: ${session.shop}`);
				console.log("webhookSubscriptionDelete.userErrors:");
				for (const userError of deleteWebhookResponse.body.data.webhookSubscriptionDelete.userErrors) {
				  console.log(`\tField: ${userError.field}\tMessage: ${userError.message}`);
				}
			  }else{
				console.log(
				  `Successfully unregistered webhook: with id: ${webhook.node.id} and topic: ${webhook.node.topic} for shop: ${session.shop}`
				);
			  }
			}
		  }
		}
		resolve();
	  } catch (error) {
		reject(error);
	  }
	});
  };

Hey folks, thanks for this! Starting in v6, the way we register webhooks has changed: we now go over the configured handlers, and make sure that they are the final set created for the app - so it will add, delete or update handlers as necessary.
Please see the webhooks guide for more information on setting up handlers with the new version.

@molotow11 You can also do the same with GraphQL also
https://shopify.dev/docs/api/admin-graphql/2023-04/mutations/webhookSubscriptionDelete

Sorry, it was a question about how to use Shopify.Webhooks.Registry not calling API directly.


fix: close code fragment tag before Demo header

Fix next typo

Why don't you want to accept such a small fix or do it yourself?)


MEN-1221: Fix incorrect ECDSA key generation arguments.

Technically the first key generated is valid, but Go refuses to parse
one that has a parameter section, so get rid of that using the second
line.
Signed-off-by: Kristian Amlie<EMAIL_ADDRESS>

Acked-by: Drew Moseley<EMAIL_ADDRESS>

Cherry-picked to 1.1.x as well.


Query regarding ibm-cos-sdk computeChecksum implementation

I have used ibm-cos-sdk node package to upload files.
"ibm-cos-sdk": "^1.12.2"
This is how we are initializing ibm cos sdk. Here we do have option to enable computeChecksums.
import { S3 } from 'ibm-cos-sdk';
S3({
endpoint: '"',
apiKeyId: '',
serviceInstanceId: '',
computeChecksums: true
})
We are not sure where the computed check sum is stored and how we can access it.
Please provide the information on how to access calculated checksum for the uploaded object.
KA
Kumar A
Additional comments•2023-01-30 08:25:293h ago
Hi Jiang Lu,
In the below example computeChecksums set it to false.
import { S3 } from 'ibm-cos-sdk';
S3({
endpoint: '"',
apiKeyId: '',
serviceInstanceId: '',
computeChecksums: false
});
To upload file using node js ibm-cos-sdk
cos.upload({
Bucket: BUCKET_NAME,
Key: "TEST.PDF",
Body: req,
ContentMD5: md5Hash
});
Could you provide me the steps how ContentMD5 will be validated in the ibm cos.
Thank you.
Regards,
Gary S.
ACS-Storage Support Lead
IBM Cloud Support

case was closed by customer. this issue can be closed accordingly


[Bug]: database field definitions for integer with length = 0 are not created as integer

Apache Hop version?
2.9
Java version?
17
Operating system
Linux
What happened?
There is a logical mistake in the conditions of several implementations of getFieldDefinition() from Interface org.apache.hop.core.database.IDatabase. This leads to Integer fields being generated as a different data type, usually double precision float, when no length is set. Looks like the code section containing this bug has been copy&pasted to many different database implementations inside Hop.
This bug affects components "down the line", compare e.g. #4174
Issue Priority
Priority: 2
Issue Component
Component: Database

.take-issue

@hansva The code handling the creation of integer and floating point fields seems inconsistent between different database systems in Hop.
If I am going to touch these code paths, I would try to make this more consistent.
My suggestion is:
everything with a length > 18 -> Decimal type or, if not available, largest of the Floating types
Integer type, precision = 0 -> one of the Integer types
Integer type, precision > 0 -> one of the Integer types (effectively ignore the precision...)
Floating point type, precision = 0 -> Decimal type or, if not available, one of the Integer types
Floating point type, precision > 0 -> Decimal type or, if not available, one of the Floating types
What do you think?

that sounds right.
I have looked at PostgreSqlDatabaseMeta and length 0 is indeed a case that is not handled correctly.


test

foo

recheck

I have read Gradle Enterprise Terms Of Service and I hereby accept the Terms

I have read Gradle Enterprise Terms Of Service and I hereby accept the Terms


SmartEnergy broken

Hi everyone,
unfortunately i have not yet been able to pinpoint the exact cause, but i have not been getting any data in homeassistant for the smartenergy source since july 19th 06:00. this is the error i am getting:
Logger: custom_components.epex_spot_sensor.binary_sensor
Source: custom_components/epex_spot_sensor/binary_sensor.py:387
integration: EPEX Spot Sensor ([documentation](https://github.com/mampfes/ha_epex_spot_sensor), [issues](https://github.com/mampfes/ha_epex_spot_sensor/issues))
First occurred: July 19, 2024 at 8:00:46 AM (1450 occurrences)
Last logged: 8:05:00 AM
Invalid price sensor "sensor.epex_spot_data_net_price" selected for EPEX Spot Sensor "EPEX cheapest price": "'data' missing in sensor attributes"

tried awattar for testing purposes and it worked right away. Does anybode else has the same problem?

same problem since Friday

Their API doesn't return any data, so I guess there's not much the addon can do

seems like the API from smartenergy is actual broken because https://apis.smartenergy.at/market/v1/price does not reply anything

Maybe it is "CrowdStrike" related?

seems like the API from smartenergy is actual broken because https://apis.smartenergy.at/market/v1/price does not reply anything
EDIT: @olvrlrnz mentioned already at the same time

the API seems to be back online. everything working as usual in home assistant :-)

Thanks for your information! Everything OK

is it possible that its down again?
i dont have any values since 5th of october.

Yes it is broken again.
There where also no Charts on the web page.
Today there a Charts again on the web page. So we can hope that it will work tomorrow.

it's up again for me :-)

And now something (not totally) different: The new data for the next day should be available at 17:00. But it only appears on the webpage not in the interface. There it is delayed. Does someone have the same "expirience"?


Implementation of SeekingFilter, CfCqSliceFilter and CfCqSliceSeekingFilter

OK let's try this again. Right bug id this time.
Implementation for ACCUMULO-3961 including a filter which behaves similarly to the existing ColumnSliceFilter but can seek to the next potential match instead of explicitly rejecting every KV pair that falls outside the slice. Probably faster for small slices on large rows.
Christopher switched the fix version to 1.8, I guess because adding new functionality should go into a minor release. So I'm targeting this against the master branch, because it doesn't look like a 1.8 branch exists yet.
I know you guys require this to be rebased into a single commit. Is that something I can do on my side (I'm concerned about rebasing after I've pushed this to a public repo) or is that something you can do when you receive the pull request?

OK the failure on PR #132 seems to be down to Jenkins not being able to grab a jar from repo.maven.apache.org. Pretty sure it's not related to the code. Any way to give Jenkins a kick and try again?
[ERROR] Failed to execute goal net.revelc.code:apilyzer-maven-plugin:1.0.1:analyze (apilyzer) on project accumulo-core: Execution apilyzer of goal net.revelc.code:apilyzer-maven-plugin:1.0.1:analyze failed: Plugin net.revelc.code:apilyzer-maven-plugin:1.0.1 or one of its dependencies could not be resolved: Failed to collect dependencies at net.revelc.code:apilyzer-maven-plugin:jar:1.0.1 -> org.apache.maven:maven-core:jar:3.2.2: Failed to read artifact descriptor for org.apache.maven:maven-core:jar:3.2.2: Could not transfer artifact org.apache.maven:maven-core:pom:3.2.2 from/to central (http://repo.maven.apache.org/maven2): Connection reset -> [Help 1]

I create a PR against this PR.

@rweeks Looking at the code coverage of the unit test I found a few interesting places that were not covered.  Would you like me to annotate these on the PR?  Did not want to do that if you were not interested in seeing it or would rather run CC tool yourself.

I know you guys require this to be rebased into a single commit. Is that something I can do on my side (I'm concerned about rebasing after I've pushed this to a public repo) or is that something you can do when you receive the pull request?

I am not sure Accumulo has a consensus on this.   Personally, I would rebase the branch into one commit after the the review is complete.

@keith-turner by all means, I'd love to see the code coverage results! Happy to extend the unit tests to cover anything that's missing.

:+1: this looks really good, Russ! Left a couple of comments in the code, but they were mainly stylistic than issues. I would love to also see an integration test that uses this iterator in a "real" environment, but that can be done as a follow-on. Your unit tests exercise this code very well already.

Christopher switched the fix version to 1.8, I guess because adding new functionality should go into a minor release.

Yeah, this is something we're trying to stick to. Adding this wouldn't be expressly prohibited from older branches because the o.a.a.core.iterators package (and its sub-packages) aren't covered in our public API definition. If you have strong feelings that this should show up in 1.6 or 1.7 too, make your argument (JIRA is probably better than here though).

So I'm targeting this against the master branch, because it doesn't look like a 1.8 branch exists yet.

1.8 is the current "latest" so it lives in "master". A 1.8 branch will likely only show up after a 1.8.0 release.

Thanks very much for your feedback, @joshelser  and @keith-turner. If you think it's ready to be merged in, just let me know what I should do on my side to collapse it into one commit.


ObjectAnimator doesn't work from xml

The FloatingActionButton cannot be animated using ObjectAnimator when the animation is loaded from a xml file.

Do you try to add the animation to a FAB inside FloatingActionsMenu or a "standalone" FAB?

No response, closing.


chore(deps): Bump github.com/stackrox/scanner

Description
Bump stackrox/scanner dependency to the latest. The aims to help remove the RocksDB dependencies.
github.com/docker/distribution v2.8.3 deprecated all use of the reference package in favor of github.com/distribution/reference, so all uses of this had to be switched. Similarly, the oras.land/oras-go v1.2.4 package used this, so we needed to bump this dependency, too
Checklist

[x] Investigated and inspected CI test results
~[ ] Unit test and regression tests added~
~[ ] Evaluated and added CHANGELOG entry if required~
~[ ] Determined and documented upgrade steps~
~[ ] Documented user facing changes (create PR based on openshift/openshift-docs and merge into rhacs-docs)~

Testing Performed
Here I tell how I validated my change
If it builds, it builds.
Reminder for reviewers
In addition to reviewing code here, reviewers must also review testing and request further testing in case the
performed one does not seem sufficient. As a reviewer, you must not approve the change until you understand the
performed testing and you are satisfied with it.

/retest

/retest