"Can't send lightning payments yet"

I deposited some bitcoin to my wallet and then tried to pay a lightning invoice, and I got the error "Can't send Lightning payments yet because first you need to receive at least 0 sat to make some space for sending". What does this mean? Does this wallet not support using bitcoin to send payments across the lightning network?

Have you deposited funds as a chain transaction?  If yes that would explain it since SBW has two wallets inside: a regular chain wallet which can only do regular chain transactions and a Lightning wallet which can only do Lightning payments.
If you want to use SBW specifically as Lightning wallet then current options are:

Send a chain transaction into SBW (that is supposedly done already) and then use those funds to open an LN channel (for example by scanning some node QR at 1ml.com).
Or get an incoming channel from services like lnbig.com and then send an LN payment into wallet.
Or send an LN payment into default hosted channel present in a wallet, but be warned that it is a custodial type of channel (you can swipe hosted channel card and remove it if it's not your thing).

Can't send Lightning payments yet because first you need to receive at least 0 sat to make some space for sending

What is happening here is that I assume you have a single default hosted channel in a wallet with a zero balance, so app is asking you to send an LN payment in to get some spendable LN balance.
A message is not too clear though and I think it's worth to improve it, thanks for reporting this.

yeah I just started reading about channels before you posted. I was just using the default channel. But thanks for all of this information, the app (and LN in general) is starting to make sense now.
To be honest all I wanted to do was try some web service that took accepted LN payments, I had no idea it was this complicated. It's not like other cryptos where I can just convert on an exchange or swap using a DEX. Not only do I have to choose a channel, it seems like I have to choose multiple, and I can't just choose the most popular ones. 90% of the "beginner" articles explain how lightning network works, and don't explain how to actually use it. https://1ml.com seems like the main resource people use to find channels but it reads like a stock market display with cryptic numbers and hashes everywhere. It makes me wonder what Lightning Network was designed for, since it's clearly not designed for the general public to just be able to pay each other.
But anyways sorry for my off-topic ramble. I think the error message could use some fixing up but other than that I think the issue was mainly my misunderstanding. Thanks for the help.


Expose mount/unmount to the oz cli client.

Right now the mount/unmount commands are only exposed on the socket and used by the extension, they should be made available from the oz cli as well.

work in progress here:
https://github.com/david415/oz/tree/30.add_cli_mount_umount.0

my implementation needs code review. i've tested it:
https://github.com/subgraph/oz/pull/63

resolved here:
https://github.com/subgraph/oz/commit/faa6adc68d68f0ab719f386faeb86c09c2d5d345
this ticket should be closed


Authentication

How do I go about authenticating through backbonefire? I have a JWT that I would like to authenticate with?

This is a subject that probably not the best format on GitHub. Adding an authentication example would be idea though. Can you try adding a question on Stackoverflow with some of the code you have written so far?

I think i'll try to send a pull request tomorrow with the code I got to work instead. :-)


ACME certificates command column too narrow, os-theme-cicada & os-theme-rebellion

Important notices
Before you add a new report, we ask you kindly to acknowledge the following:

[x] I have read the contributing guide lines at https://github.com/opnsense/plugins/blob/master/CONTRIBUTING.md
[x] I have searched the existing issues, open and closed, and I'm convinced that mine is new.
[x] The title contains the plugin to which this issue belongs

Describe the bug
The two themes, cicada and rebellion, do not format the command column in ACME certificates, and it's too narrow to easily use the final commands. For the standard opnsense theme it's fine
I think it would be great if throughout the OPNsense GUI that columns could simply be adjustable and re-ordered as often even removing a column ends up with the wrong ones getting re-sized, which is the case for the one I'm reporting. Perhaps a future enhancement, but for now simply being able to quickly tap the delete icon would be great, as trying to move the mouse to just the right part of the "..." is tricky.
To Reproduce
Steps to reproduce the behavior:

Change theme to either cicada or rebellion
Go to ACME, Certificates
Final commands column is truncated

Expected behavior
Format the commands column like the opnsense theme
Screenshots

Relevant log files
n/a
Additional context
I'm normally using Brave browser, but Edge does the same.
Environment
OPNsense 24.1.1-amd64
FreeBSD 13.2-RELEASE-p9
OpenSSL 3.0.13

maybe we can change the width to auto? its hardcoded in the main opnsense html structure.
other way would be to make a seperate class for th#commands with "width:auto;"
don´t know whats the best way to fix this.

@marjohn56
ok found the problem. I compared the working main.css from opnsense/vicuna theme with the main.css from cicada and found the problem.
problem:

fix:

.btn-xs, .btn-group-xs > .btn {
padding: 1px 4px; }
on every other theme i made there are no problems. (tukan, vicuna)

@marjohn56 if you want, i can fix it for theme rebellion too.

@marjohn56 i fixed it for theme rebellion too.

Hi,
Just about to do it this morning and then I read your email!
Thank you very much.😊
KR
Martin
From: René @.>
Sent: 23 February 2024 21:57
To: opnsense/plugins @.>
Cc: Martin Wasley @.>; Mention @.>
Subject: Re: [opnsense/plugins] ACME certificates command column too narrow, os-theme-cicada & os-theme-rebellion (Issue #3816)
@marjohn56https://github.com/marjohn56 i fixed it for theme rebellion too.
—
Reply to this email directly, view it on GitHubhttps://github.com/opnsense/plugins/issues/3816#issuecomment-1962055056, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AEJBPJSOZTLVLLGEX4OP5Y3YVEGDLAVCNFSM6AAAAABDEXW4SSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNRSGA2TKMBVGY.
You are receiving this because you were mentioned.Message ID<EMAIL_ADDRESS>

https://github.com/opnsense/plugins/pull/3839


set previewwindow doesn't work for popup window

Vim: 8.1.1517
System: Debian 9
Reproduce
let winid = popup_create([], {"minwidth": 40, "minheight": 15})
call win_execute(winid, "set previewwindow")
pedit /etc/hosts

Expecting result:
Command pedit should open /etc/hosts in a window with a non-zero &previewwindow. As we already set previewwindow for the new popup window, the file should be previewed in the popup.
Actuall result:
previewwindow in the popup is totally ignored and pedit open another preview window.

Or, can there be a way to display a part of a file in the popup window ??

Or, can there be a way to display a part of a file in the popup window ??

The preview window is an existing concept, I don't plan to change that.
You can easily create a popup showing file content:
let winid = popup_create(readfile('yourfile.txt'), {})

Although it is probably more useful to show only part of a file.
--
hundred-and-one symptoms of being an internet addict:
155.
/// Bram Moolenaar --<EMAIL_ADDRESS>-- http://www.Moolenaar.net   \
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \
\\  an exciting new programming language -- http://www.Zimbu.org        ///
\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

It would be convenient if readfile has additional arguments to specify a line range. useful for big files.

Although it is probably more useful to show only part of a file.

This might be a problem because syntax highlighting might not work on a partial file

This might be a problem because syntax highlighting might not work on a partial file

It is possible to apply syntax highlighting on a partial file, see:
:h syn-sync

It would be convenient if readfile has additional arguments to specify a line range. useful for big files.

readfile returns a list, you can give additional list indices to limit what will be returned. Or are you worried, that this will take too much memory? Than you might need to pre-process the file first.

It is possible to apply syntax highlighting on a partial file, see:
:h syn-sync

True.. but isn't it simpler to just display part of an existing buffer?  Similarly, I can imagine someone would want to do :ptag in a popup window at the cursor.

It is possible to apply syntax highlighting on a partial file, see:
:h syn-sync

True.. but isn't it simpler to just display part of an existing
buffer?  Similarly, I can imagine someone would want to do :ptag in
a popup window at the cursor.

It's easy to specify the first line to display in the popup, I'll add a
property for that.
--
You're as much use as a condom machine at the Vatican.
-- Rimmer to Holly in Red Dwarf 'Queeg'
/// Bram Moolenaar --<EMAIL_ADDRESS>-- http://www.Moolenaar.net   \
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \
\\  an exciting new programming language -- http://www.Zimbu.org        ///
\\            help me help AIDS victims -- http://ICCF-Holland.org    ///


After writing code, the highlight is coming off on the viewer

After writing code in a editor like below

If I press any key on the next line, The highlight is coming off on the viewer

@bumhyunkim I can't reproduce, can you explain in more detail? It's hard to see the problem just by looking at this now.

@bumhyunkim I can't reproduce, can you explain in more detail? It's hard to see the problem just by looking at this now.

Here's an example.

@bumhyunkim
I don't see the issue either!
Did you get that error here?
https://nhn.github.io/tui.editor/latest/tutorial-example08-editor-with-code-syntax-highlight-plugin


Power BI filters not applying to Attribute Slicers

When I apply a power BI visual filter using, say, the shape map filter. It does not filter down the attribute slicers. E.g. I filter the shape map on CA and it should show only the west region option in my "region" attribute slicer filter (as other regions are not relevant for CA). It was working this way before. It works in power BI desktop just not when a report is published to power BI service.

OK, after some investigation, this looks like it may be a PowerBI issue.  I've created a reproduction here: https://msit.powerbi.com/view?r=eyJrIjoiMjhkM2M1ZDgtOGQ1MS00NjkzLWI3ODItZjljMmI4MmE0MDYyIiwidCI6IjcyZjk4OGJmLTg2ZjEtNDFhZi05MWFiLTJkN2NkMDExZGI0NyIsImMiOjV9
You'll notice if you click any of the bars in the graph on the left, that only the Table visual will filter.  The attribute slicer and the regular slicer remain unfiltered.
I will pass this onto the PowerBI team.  Thanks.

I've received word that they have fixed the issue and it will be released by the end of next week.


⚠ ClamAV has degraded performance

In a5e0c4e, ClamAV (https://spamassassin.apache.org/) experienced degraded performance:

HTTP code: 200
Response time: 54 ms

Resolved: ClamAV performance has improved in 59d6723.


[errors] Add role=alert

Signed-off-by: r.lysov<EMAIL_ADDRESS>Added support a11y for Error component
Description

Add role=alert for component
Add test env for normal passing screenshot tests
Add secure schema for the link with illustrations
Update documentation

Motivation and Context
The component becomes accessible 💪
How has this been tested?
Turn on the screen reader and listen to how it reads error alerts.
Screenshots (if appropriate):
Types of changes

[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist:

[x] My code follows the code style of this project.
[x] My change requires a change to the documentation.
[x] I have updated the documentation accordingly.

Pull request should be split at least into two ones

I would not like to breed bureaucracy and make several merge requests about one component.


"Who's on call" returns separate messages for each result

We have 15+ rotations, so the script sends many messages at once which kills Hubot because of Slack rate-limiting. It'd be great if it sent all of the rotations in one message.

This is tangentially related to https://github.com/hubot-scripts/hubot-pager-me/issues/46 for not returning all results.

I think you mean #43. I'll close this since they seem somewhat duplicated.


Pagination is not working

I don't why but pagination is not working. I have used your example-regions.json to bind data with input picker. Input picker is showing the all 17 records on page 1. Pagination is working. Please solve my problem I will be very thankful to you.
$('#test').inputpicker({
            url: './example-regions.json',
            fields: ['id', 'name', 'hasc'],
            fieldText: 'name',
            fieldValue: 'id',
            pagination: true,
            pageMode: '',
            pageField: 'p',
            pageLimitField: 'per_page',
            limit: 5,
            pageCurrent: 1,
        });

I have also follow below link
http://www.wangshui.com/www/  (JSON - Remote Search with Pagination)
I have attached a photo also. I am working on asp.net web forms

Hi @OsamaMunawar ,
For the pagination from the remote URL, please ignore the parameter "limit" and use the following parameters posting to the remote server to limit the result data:
per_page=5 // limit 5 records per page
p = 1 // the current page
Please check the below URL as the reference as the structure of the returned data:
http://inputpicker.com/www/example-json.php?q=&limit=1&fieldValue=id&fieldText=name&value=&p=1&per_page=5

Sir sorry but please tell how can I set or restrict per_page=5 and p=1 in javascript

Hi @OsamaMunawar ,
Sorry that so far the plugin does not support paginating data from the static JSON file like your scenario. If you want the pagination feature you have to handle data in the dynamic script on the server.

First I try it from my server. Input picker "url" property is not hitting my server method that will return the data from my server. I think that I can make the call wrong to server method and then cross verify by making ajax call to that server that ant it return data from my server method. But in ur case it is not working when I give server's method.
$('#test').inputpicker({
url: 'PDCAddUpdate.aspx/GetCustomers',
//url: './example-regions.json',
                fields: ['value', 'text', 'description'],
                fieldText: 'text',
                fieldValue: 'value',
                pagination: true,
                pageMode: '',
                pageField: 'p',
                pageLimitField: 'per_page',
                limit:1,
                pageCurrent: 1,

});
This is not getting the data. PDCAddUpdate is the page and getcustomers is the webmethod

Hi @OsamaMunawar ,
Sorry that I have no idea the reason for your issue, can you please post your server script source code and the error which you get from the console of the web browser?

The problem is it is not redirecting to my Method GetCustomers when I give url property like
url: 'PDCAddUpdate.aspx\GetCustomers '
but When I give url property like this
url: 'PDCAddUpdate.aspx'
os it my page load event of page PDCAddUpdate executes only and in web forms page load event cannot return any data so this input picket cannot be bind. Please check why this url property it not executing why I give method name also

Hi ukalpa
Now I have successfully bind input picker from remote url. we are getting this data from remote URL
$('#test').inputpicker({
url: 'http://localhost:30819/UI/Pages/Welcome/Popupdata.aspx',
            fields: ['id', 'region_id', 'name', 'hasc', 'region_name'],
            fieldText: 'name',
            fieldValue: 'id',
            pagination: true,
            pageMode: '',
            pageField: 'p',
            pageLimitField: 'per_page',
            limit:1,
            pageCurrent: 1,
        });

In this scenario pagination is not working. I have also attached a snapshot of network request per_page =1. If I have to change per page so please tell me that how can I change.

Hi @OsamaMunawar ,
You need to handle the pagination logic in the script http://localhost:30819/UI/Pages/Welcome/Popupdata.aspx, as we can see, although you set per_page=1, your script still outputs all data in the response, this is why it shows all data in the front end.

Thanks ukalpa for support. It is just a request to provide pagination option mai other examples also.


CSS-style "IMPORT" tag to include external RANT code files

I've been craving something that would be useful for longer-form procedural generation.
From the commandline, the -file="xxx" argument makes RantConsole.exe use the RANT code stored in a textfile.
I was wondering how possible it would be to reference/include other text files containing RANT code into the code -- sort of like a CSS import statement. The imported files could be referenced as either absolute or relative to the current file.
Ideally, the import procedure would be recursive, permitting the rapid generation of large, widely-varied sets of RANT code from multiple small blocks of imported code. As well, variables defined in an imported piece would be available to the larger generated RANT code as a whole.
Example:
{
	{
		I'm going to tell you a story.
		|
		Let me share an experience of mine.
	}\n
	{
		[import story/genre/pirate.RANT]
		|
		[import story/genre/romance.RANT]
		|
		[import story/genre/adventure.RANT]
	}
}

And then one of the story/genre files could subsequently be like:
#Pirate.RANT
## Set-up
{
	[import pirate/character-gen.RANT]
}
## Intro and conflict
{
	[import pirate/intro-type1.RANT]
	|
	[import pirate/intro-type2.RANT]
}
## Conflict
{
	[import pirate/conflict-type1.RANT]
	|[import pirate/conflict-type2.RANT]
	|[import pirate/conflict-type3.RANT]
}
## Etc etc

I've been accomplishing this with shell scripts but it's complicated and doesn't reach the power of what a real import method could achieve.

This would be simple enough to implement. My main concern would be creating recursion in the VM, but I can probably mitigate that by just loading the final RantAction straight into the VM itself.

Added in cc8085c6f5da3ae0105d3ad649f87f41108c4e3b.

This is my first chance to check in since yesterday morning and... it's added in cc8085c!!? amaze. Thanks, I can't wait to play with it!


add contact form

👷 Deploy Preview for luxury-sherbet-3b08a4 processing.

Name
Link

🔨 Latest commit
b920b987cb546fc8a0f7c9497a802d696094c8b7

🔍 Latest deploy log
https://app.netlify.com/sites/luxury-sherbet-3b08a4/deploys/65c145fc4dde51000891f969


Add tests

for node and browser

Halfway there, but need test libraries etc. Can be demo'ed over at daq-proc.


Update Windows support

ungoogled-chromium version: 68.0.3440.106-1
Configuration and/or platform(s): Windows x64
Problem description
I'm assuming Windows is not supported yet on version 68.0.3440.106-1.
The build instructions seem outdated: trying to adapt the ones from other platforms (get_package.py windows build/src/ungoogled_packaging) leads to the files build.bat and package.bat.in being created in the build/src/ungoogled_packaging directory. However the build.bat script doesn't seem to be updated to version 68 as it expects the Chromium source files to be already downloaded.
Looking at the other platforms' build scripts I assume the Windows one should handle everything from source downloading to packaging as well.

With 7c2d1b8a216f7e9dacc1d6a78d0a6a4f98076f5f, the scripts have been rewritten in Python (but they haven't been tested). Patches haven't been touched and still need to be updated.

Sorry for the delay.
I just tested the new scripts and this is what I get when running py ungoogled_packaging\build.py:
https://paste.debian.net/plainh/a61acaac
It also doesn't seem clear which python version is supposed to run which script: they all have #!/usr/bin/env python3 above the license header, however build.py does some version checks against python 2.7.
Specifying the python version as an argument to py (e.g. py -2) in the instructions might be a good idea.

That's interesting... you were able to use get_package.py, but you couldn't use build.py? Both use Python 3-only syntax, so it's surprising to see one work but not another, especially since the py command reads the shebang line in all of the files to determine which Python interpreter to use (and they're all python3)
Maybe you're using an old Python 3? buildkit uses additional unpacking generalization (PEP 448), which was added in 3.5.
If that doesn't work for some reason, you can also use py -3 to force usage of Python 3.

Ah, I see, I thought py was included in both python versions. As to why I ran build.py with python instead of py: running the script with py gave me build.py: error: Unable to find pypiwin32 in Python 2 installation., so I assumed it was supposed to be ran with python 2.7 (the instructions also specify pip install pypiwin32 for python2.7.
Assuming all ungoogled-chromium scripts should be ran with python 3.7, does this mean that pypiwin32 is needed for python 3.7 as well? I tried running pip install pypiwin32 with the python 3.7 pip executable but I still get the same error as above (build.py: error: Unable to find pypiwin32 in Python 2 installation.).

At some point in time, Chromium's Python 2 scripts used pypiwin32, hence the requirement. None of my scripts require that.
I've now enforced it in 366b1eed5ce975ab537bbd3062b77a0bb5e3064f

Tested the the scripts on the latest commit and build.py still seems to check for pypiwin32 in lines 85-87. After commenting these out I get the following:
https://paste.debian.net/plainh/cc66f445

Tested the the scripts on the latest commit and build.py still seems to check for pypiwin32 in lines 85-87

Is the check not working? What happens if you launch Python 2 and import pypiwin32?

My bad, I assumed the script was looking for pypiwin32 in the python3 installation, I should've taken a look at the code.
Apparently the check is not working even though I did install pypiwin32 through pip (pip install pypiwin32). If I run import pypiwin32 in a Python 2 shell I get ImportError: No module named pypiwin32.
From what I can see it seems like pypiwin32 is not supposed to be imported with its name, but with import win32api.
Maybe line 85 should be changed to
result = subprocess.run((python2_exe, '-c', 'import win32api'))
After this change the script works, until, while applying patches, I get this:
https://paste.debian.net/plainh/155d21b4

My bad, I assumed the script was looking for pypiwin32 in the python3 installation, I should've taken a look at the code.

I'm guessing the build instructions were confusing to you, because the exact steps to take are all there. Could you tell me what confused you, or submit a PR with fixes?

From what I can see it seems like pypiwin32 is not supposed to be imported with its name, but with import win32api.

Fixed with #488. Thanks for letting me know regardless.

After this change the script works, until, while applying patches, I get this:

That's expected. The patches haven't been updated yet. I might have an opportunity to update them this and/or next week, but I can't guarantee anything.

I'm guessing the build instructions were confusing to you, because the exact steps to take are all there. Could you tell me what confused you, or submit a PR with fixes?

Actually the instructions are just fine, the only thing that confused me was that the build.py script was checking for a Python 2 module while being ran with Python 3: I assumed that it was looking for the module in the Python 3 installation, which in turn made me assume that either the check was not needed or that pypiwin32 was needed in Python 3 as well.
That was all caused by the check not passing even though pypiwin32 was installed correctly (and by me not actually checking the code!), but now that it's fixed with https://github.com/Eloston/ungoogled-chromium/pull/488 I doubt that it'll be a problem for anyone else.

That's expected. The patches haven't been updated yet. I might have an opportunity to update them this and/or next week, but I can't guarantee anything.

I see, no worries. I'll proceed to building and submitting the binaries when the patches are ready.

@92847586 Yeah, development on 68 has ended ever since xsmile's update to 69 was merged.

c1a95aa5c50924e96ef51ab8c3b937fc4a764a2f has the existing patches refresh with moderate guessing involved. I have not tested anything yet.

 E:\work\github\Eloston\ungoogled-chromium\build\src>

['ninja', '-C', gn_build_dir, 'gn', '-w', 'dupbuild=err']

The fourth parameter 'gn' probably needs to be 'gn.exe'

E:\work\github\Eloston\ungoogled-chromium\build\src>"C:\Python27\python.EXE" "tools\gn\bootstrap\bootstrap.py" "-oout\Default\gn.exe"

Look like I forgot a comma in the build script. The last argument is wrong, but it still worked I guess...
I have no clue why the "gn" target doesn't exist. It looks like a bug in bootstrap.py

I tried building the GN manually
However, in the Japanese version of the compiler has failed
FAILED: tools/gn/command_gen.obj
ninja -t msvc -- cl.exe /nologo /showIncludes /FC @tools/gn/command_gen.obj.rsp /c E:\work\github\Eloston\ungoogled-chromium\build\src\tools\gn\tools/gn/command_gen.cc /Fotools/gn/command_gen.obj
e:\work\github\eloston\ungoogled-chromium\build\src\tools\gn\tools\gn\command_gen.cc: error C2220: 警告をエラーとして扱いました。'object' ファイルは生成されません。
e:\work\github\eloston\ungoogled-chromium\build\src\tools\gn\tools\gn\command_gen.cc: warning C4819: ファイルは、現在のコード ページ (932) で表示できない文字を含んでいます。データの損失を防ぐために、ファイルを Unicode 形式で保存してください。

error C2220: 警告をエラーとして扱いました。'object' ファイルは生成されません。

error C2220: warning treated as error - no 'object' file generated

warning C4819: ファイルは、現在のコード ページ (932) で表示できない文字を含んでいます。データの損失を防ぐために、ファイルを Unicode 形式で保存してください。

warning C4819: The file contains a character that cannot be represented in the current code page (936). Save the file in Unicode format to prevent data loss
Adding the /utf-8 parameter to cl.exe solves it
--- a/tools/gn/build/build_win.ninja.template
+++ b/tools/gn/build/build_win.ninja.template
@@ -1,12 +1,12 @@
 rule cc
-  command = ninja -t msvc -- $cc /nologo /showIncludes /FC @${out}.rsp /c ${in} /Fo${out}
+  command = ninja -t msvc -- $cc /utf-8 /nologo /showIncludes /FC @${out}.rsp /c ${in} /Fo${out}
   description = CC ${out}
   rspfile = ${out}.rsp
   rspfile_content = ${defines} ${includes} ${cflags} ${cflags_c}
   deps = msvc

 rule cxx
-  command = ninja -t msvc -- $cxx /nologo /showIncludes /FC @${out}.rsp /c ${in} /Fo${out}
+  command = ninja -t msvc -- $cxx /utf-8 /nologo /showIncludes /FC @${out}.rsp /c ${in} /Fo${out}
   description = CXX ${out}
   rspfile = ${out}.rsp
   rspfile_content = ${defines} ${includes} ${cflags} ${cflags_cc}

Just started testing, there's a problem with this line, the $ character should be a %, like in the other URLs.
After this change I get this error:
https://paste.debian.net/plainh/442baf75

@Wyse- Strange, I didn't change anything from when @shiromichi ran the script in that area. I noticed your current working directory is changing between vcvars64.bat and bootstrap.py. I don't know what is happening there...

@Wyse- I tried to build d307bb0, but failed to download LLVM(HTTP Error 404: Not Found)
So, I'm downloading "LLVM" manually and building d307bb0
However, on my side, "can not open file" error did not occur...
Please make sure chromium-69.0.3497.92.tar.xz is extracted correctly
E:\work\github\Eloston\ungoogled-chromium\build\src>call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvars64.bat" >nul

E:\work\github\Eloston\ungoogled-chromium\build\src>"C:\Python27\python.EXE" "tools\gn\bootstrap\bootstrap.py" "-o" "out\Default\gn.exe"
ninja: Entering directory `E:\work\github\Eloston\ungoogled-chromium\build\src\out\Release\gn_build'
ninja: error: unknown target 'gn'
Traceback (most recent call last):
  File "tools\gn\bootstrap\bootstrap.py", line 92, in <module>
    sys.exit(main(sys.argv[1:]))
  File "tools\gn\bootstrap\bootstrap.py", line 87, in main
    ['ninja', '-C', gn_build_dir, 'gn', '-w', 'dupbuild=err'])
  File "C:\Python27\lib\subprocess.py", line 190, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['ninja', '-C', 'E:\\work\\github\\Eloston\\ungoogled-chromium\\build\\src\\out\\Release\\gn_build', 'gn', '-w', 'dupbuild=err']' returned non-zero exit status 1

E:\work\github\Eloston\ungoogled-chromium\build\src>exit
Traceback (most recent call last):
  File "ungoogled_packaging\build.py", line 186, in <module>
    main()
  File "ungoogled_packaging\build.py", line 175, in main
    shutil.which('python'), 'tools\\gn\\bootstrap\\bootstrap.py', '-o', 'out\\Default\\gn.exe')
  File "ungoogled_packaging\build.py", line 65, in _run_build_process
    **kwargs)
  File "C:\Users\TEST\AppData\Local\Programs\Python\Python37\lib\subprocess.py", line 468, in run
    output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '('cmd.exe', '/k')' returned non-zero exit status 1.

Full(Expiration 90days):
https://paste.debian.net/plain/1042283

@shiromichi

@Wyse- I tried to build d307bb0, but failed to download LLVM(HTTP Error 404: Not Found)

Yes, that's what I meant with

there's a problem with this line, the $ character should be a %, like in the other URLs.

The version number is not getting properly replaced in the URL and the script is calling
https://prereleases.llvm.org/win-snapshots/LLVM-$(version)s-win64.exe
which delivers a 404, instead of
https://prereleases.llvm.org/win-snapshots/LLVM-8.0.0-r339319-win64.exe
which properly downloads LLVM
The corrected line would be
url = https://prereleases.llvm.org/win-snapshots/LLVM-%(version)s-win64.exe
@Eloston

I noticed your current working directory is changing between vcvars64.bat and bootstrap.py

You're correct, I believe the script is switching directory after executing vcvars64.bat, C:\Users\Wyse\source is a Visual Studio related directory. vcvars64.bat behaves the same way when called manually:
https://paste.debian.net/plainh/ccad1c34
The fixes I'm testing on Wyse-/ungoogled-chromium seem to be working for me, however I now get the same issue as @shiromichi:
https://paste.debian.net/plainh/ad3e9a70

The latest fix (https://github.com/Eloston/ungoogled-chromium/commit/dc456c6943bb9fcf025705c6b25dfd40a3b45afb) worked for me, however I now get this:
https://paste.debian.net/plainh/a30ba8c5

It fails on my end too, using the "master" repo to get the latest fixes Windows:
https://paste.ee/p/0QlCw

@Eloston I also tried to build a release on my side by fixing patches and also in a Python script but I'm encountering a strange error now : #598


feat: port Topology.Algebra.Order.LeftRightLim

[ ] depends on: #2144

This PR/issue depends on:

leanprover-community/mathlib4#2144
By Dependent Issues (🤖). Happy coding!


Hardocde list of well know peers

Do you think it would be valuable for the node to have a list of addresses of well-known peers to connect to?
Probably this is not necessary with a good peer discovery, but as long as it's not yet a feature, it would be nice for clients making use of this project to not be forced to provide peers' addresses when starting the node.

You need to know which node serves compact block filters, not sure this can be discovered?
I would prefer to not advertise public nodes (ours?) in a public repo TBH (blockstream.info may be well known). Maybe just a constant to be exported by this package


Create a page for the Project Affiliation

Add all the projects in the internship program as affiliated
reference: https://numfocus.org/sponsored-projects/affiliated-projects

@xmnlab  I want to contribute to this project can you assign me some task

@Tyagiquamar thanks for your interest in this project.
Question: Are you also looking for the internship program?
If so, @EverVino is the mentor for this project under the internship program. So you can contact him for more info and tasks.
If not, I would be glad to share with you some tasks that would be really helpful :)

I am doing it via #101


give better (fqdn) domain names to services rancher controls

Seen this a couple times where there would be a service resolving to 'master' in an environment preventing ranchers k8s stack to launch.
this might apply to more than ranchers k8s. can system templates use fqdn's like blah.rancher.internal, to avoid these potential traps.

Targeting this for rancher 1.2.0 and kubernetes 1.4+. All future fixes are going there, as there is no concept/support of rolling back.

This isn't resolved yet, there are kubernetes template changes and kubernetes image changes dependent on the cattle PR just recently merged.

Tested with Rancher Version: v1.2.0-pre4-rc3 and
K8s 1.4 version from - https://github.com/rancher/infra-catalog
K8s templates dont have referrances to http://master  like before. Instead we have  referrances to
http://kubernetes.kubernetes.rancher.internal .
We should be able to remove the dependency of having to name the stack as "kubernetes" which is tracked in https://github.com/rancher/rancher/issues/6300


Update policy server security context.

Updates the code where the policy server is created to configure the securityContext of the Policy Server container. The process cannot run in a privileged container, cannot run with root user, can run on a read only file system and all the capabilities are dropped.
 I wonder if we have to do some changes to our container image of the policy-server to make it work.

Yes. I have. The only failing tests are the secure supply chain ones. But they are failing even with the released container image. Thus, it is not related to this change. I believe it is a test issue.


tests: add cmd/search integration test

[x] Have you followed the guidelines in our Contributing document?
[x] Have you checked to ensure there aren't other open Pull Requests for the same change?
[x] Have you added an explanation of what your changes do and why you'd like us to include them?
[ ] Have you written new tests for your changes? Here's an example.
[x] Have you successfully run brew tests with your changes locally?

This change adds test coverage to cmd/search.rb (though coverage isn't yet complete).
I'm having trouble understanding how to test these lines in search.rb... not as straightforward as I'd assumed, but I'll try again tomorrow.
Re: testing for the --macports, --fink, etc. flags
The URLs are long enough to need wrapping. But separating strings with \ and a newline seems to raise an error (due to the indentation on the newline). String concatenation doesn't seem ideal, either. Is there a better way? And would it be better to bypass the hash iteration and just have an assertion for each flag?

Gah... I just noticed that I forgot to remove some commented code that I'd added while following along with the changes in this pull request. Should have checked git diff before committing!
I've run brew update on my branch to try to resolve this, but wasn't able to squash the commits.

I've run brew update on my branch to try to resolve this, but wasn't able to squash the commits.

What you want to do to resolve this:
cd "$(brew --repository)"
git checkout add-cmd-search-test
git rebase -s recursive -X ours master
git push --force-with-lease

The git rebase will take your branch and rebase it on top of an up-to-date master. The options help to make sure that conflicting parts are dropped in favor of the code in master, so that the spurious changes to test_log are simply discarded and only test_search remains. Once this finishes, your branch should be one commit ahead of master.
You can check what the history of all local branches looks like after that (and maybe before, too) by running git log --graph --decorate --date-order --oneline --all or a graphical Git interface of your choice. (Feel free to ping me on Slack if there's any trouble or the result isn't as you expected it to be.)

I'm having trouble understanding how to test these lines in search.rb... not as straightforward as I'd assumed, but I'll try again tomorrow.

This is indeed a bit tricky. It is definitely doable and there are multiple approaches I can think of, but all of them involve some non-trivial adjustments to the overall test infrastructure. I think it's not as important to cover these cases, so I'd move this to the “nice to have” part of your to do list and revisit it after you had more time poke and understand the test infrastructure (by writing other tests).

The URLs are long enough to need wrapping. But separating strings with \ and a newline seems to raise an error (due to the indentation on the newline). String concatenation doesn't seem ideal, either. Is there a better way? And would it be better to bypass the hash iteration and just have an assertion for each flag?

What is the error you are seeing? Here's an example that worked for me (maybe this is already enough to spot the difference between what you tried and what it should have looked like):
single_line = "This is a short string."
multi_line = "This is a very long string that won't quite fit " \
  "on a single line without making UniqMartin comment on that."

That said, this is an example where the end of the string isn't as important and I wouldn't mind if it was kept on a single line. With one URL per line this could actually improve code readability.

Thanks @UniqMartin!! I've pushed a new commit.

The git rebase will take your branch and rebase it on top of an up-to-date master. The options help to make sure that conflicting parts are dropped in favor of the code in master, so that the spurious changes to test_log are simply discarded and only test_search remains. Once this finishes, your branch should be one commit ahead of master.
You can check what the history of all local branches looks like after that (and maybe before, too) by running git log --graph --decorate --date-order --oneline --all or a graphical Git interface of your choice.

Thank you, this all seemed to work smoothly. I checked Git documentation to get a better idea of what git rebase -s recursive -X ours master does, and although I didn't understand 100% of the documentation, your explanation told me what I needed to know, anyway.

You can omit the curly braces. Trailing arguments of the form key => value are automatically collected in a Hash that is passed to the method that is being invoked as its last argument.

You could even consider keeping HOMEBREW_CACHE/"desc_cache.json" in a local variable as it is used multiple times throughout this test.

test_desc also uses HOMEBREW_CACHE/"desc_cache.json" multiple times and there are also some extra curly braces in test_home... would it be worthwhile to perhaps submit another pull request to refactor/edit those two tests?

What is the error you are seeing? Here's an example that worked for me (maybe this is already enough to spot the difference between what you tried and what it should have looked like):
single_line = "This is a short string."
multi_line = "This is a very long string that won't quite fit " \
  "on a single line without making UniqMartin comment on that."

😆  Right! I think the error came from writing the equivalent of:
multi_line = "This is a very long string that won't quite fit \
  on a single line without making UniqMartin comment on that."

I'll keep this in mind for future reference.

test_desc also uses HOMEBREW_CACHE/"desc_cache.json" multiple times and there are also some extra curly braces in test_home... would it be worthwhile to perhaps submit another pull request to refactor/edit those two tests?

Seems like a good idea. Any place there's identical or near-identical code in 3+ places it's worth pulling them into a method.
This looks good to me, as-is, though 👍. @UniqMartin any final thoughts?

Thank you, this all seemed to work smoothly.

I'm glad it worked! Once you understand the core data structure of a Git repository (a directed acyclic graph) and get somewhat comfortable with it, it loses a lot of its scariness. Then your only task tends to be to hunt down the command that performs the manipulation on that graph that you have in mind. 😸

test_desc also uses HOMEBREW_CACHE/"desc_cache.json" multiple times and there are also some extra curly braces in test_home... would it be worthwhile to perhaps submit another pull request to refactor/edit those two tests?

We have a lot of code that doesn't adhere to a certain style we tend to use for new code. Because we haven't managed to clean that up yet, we can't currently run style checks on our CI to check for style violations in a somewhat automated fashion. However, what you can do is run brew style <file> on the modified file and check what it suggests and if any of the suggestions are about the newly added code.
What helps me is that I have editor integration for RuboCop, that is internally used by brew style, so style violations get automatically highlighted while I'm editing the code. Might be worth checking if there's something similar for the editor you're using. (I'm using Sublime Text.)

Sorry, I hit the “Comment” button too early …

This looks good to me, as-is, though 👍. @UniqMartin any final thoughts?

Have commented on some style nits, but no more thoughts on the code as such. Looks good to me!

We have a lot of code that doesn't adhere to a certain style we tend to use for new code. Because we haven't managed to clean that up yet, we can't currently run style checks on our CI to check for style violations in a somewhat automated fashion. However, what you can do is run brew style <file> on the modified file and check what it suggests and if any of the suggestions are about the newly added code.
What helps me is that I have editor integration for RuboCop, that is internally used by brew style, so style violations get automatically highlighted while I'm editing the code. Might be worth checking if there's something similar for the editor you're using. (I'm using Sublime Text.)

Good to know, thanks @UniqMartin! I also use Sublime Text and recently installed a linter as suggested by @MikeMcQuaid. I'll get familiar with using brew style. A friend suggested that I use RuboCop a while back; I'll check it out!

I also use Sublime Text and […]

FWIW, I'm using the SublimeLinter plugin with the SublimeLinter-rubocop plugin to interface with RuboCop. As soon as it can find RuboCop in the PATH, it will just work. The configuration is automatically picked up from the project directory, just like it would be if you invoke rubocop from the command line (though we wrapped that in brew style, mostly to make checking individual formulae a bit easier).

Thanks again @eirinikos!

An unfortunate side effect of these tests seems to be that we get spurious build failures on Travis due to hitting the GitHub rate limit for unauthenticated API requests, e.g.:

https://travis-ci.org/Homebrew/brew/builds/138773499
https://travis-ci.org/Homebrew/brew/builds/138775328
https://travis-ci.org/Homebrew/brew/builds/138777530

Any ideas how to deal with that? Approaches I can think of:

Generate an access token and use it in our Travis test runs.
Skip tests that require talking to the GitHub API.
Mock the GitHub module to provide canned responses instead of actually making an API call.

Not sure what is best. The first option seems to be the easiest. The last one feels like the cleanest and most robust solution to me and would even allow testing these parts without a network connection.

We do actually already do this.

We were only doing this for the homebrew-core and legacy-homebrew repositories, but not for the brew repository. I used the token from the former two and added it to the Travis CI configuration of brew.

I'm happy with either here but rather than mocking the whole module I'd rather see us mock just the curl call.

Thanks for phrasing it correctly! That's what I meant to say, but failed to express. Not sure though, if or when I find time to look into the latter (mocking the curl calls).

We were only doing this for the homebrew-core and legacy-homebrew repositories, but not for the brew repository. I used the token from the former two and added it to the Travis CI configuration of brew.

Ah, nice 👍

Thanks for phrasing it correctly! That's what I meant to say, but failed to express. Not sure though, if or when I find time to look into the latter (mocking the curl calls).

👍


events.py: enhance efficiency of clear() by eliminating full dictionary rebuild

The current clear() method rebuilds the entire dictionary from the keys in EVENTS on each call, resulting in inefficient performance. For example, in selfdrived,  clear() is among the top five most time-consuming operations, with its execution time just behind  SelfdriveD.publish_selfdriveState(self, CS), which is unreasonable:

     5000    0.192    0.000    0.467    0.000 selfdrived.py:415(publish_selfdriveState)
     5000    0.042    0.000    0.324    0.000 events.py:68(clear)

After this PR, the execution time of clear() has been reduced from 0.324  to 0.0311, making it approximately 10 times faster. This improvement should enhance the runtime efficiency of both selfdrived and card.
Changes:

Added self.prev_event_set to track previously active events.
Refactored clear() to use set operations for efficient counter reset instead of rebuilding the entire dictionary.
Updated add() method to increment event counters directly.

Using defaultdict is more appropriate in the Events class. This is because Events() might be created and returned in various functions, such as create_common_events(). Initializing the counters  from the keys in EVENTS  in the init method offers no real benefit other than wasting CPU time.  defaultdict simplifies the process and avoids unnecessary initialization.

trigger-jenkins


fix icon on close pane

Resolved / Related Issues
Items resolved / related issues by this PR.

Closes #8466

Details of Changes
Add details of changes here.

Fixed close icon in context menu

Validation
How did you test these changes?

[ ] Built and ran the app
[ ] Tested the changes for accessibility

Screenshots (optional)
Add screenshots here.

@bebeyaco thank you!


fireqos: add state directory

If the state directory (/var/run/fireqos) exists when ran, it allows other tools like netdata to auto-detect and report QoS metrics.
Description of changes
Add a tmpfiles rule to automatically create a state directory.
Things done

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
23.11 Release Notes (or backporting 23.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[x] Fits CONTRIBUTING.md.

Why a tmpfiles rule rather than adding RuntimeDirectory or StateDirectory to the service definition?

Thanks for the question and apologies for the very delayed response. (Runtime|State)Directory don't allow absolute paths and they'd exist somewhere in /var/lib. Unfortunately, fireqos's default directory is /run/fireqos and overriding it would require multiple fixes to both fireqos and netdata in order for the magic behind the scenes to work.


arkGameUserSettingsIniFile / arkGameIniFile not working

Just saw some amazing new config options.
Unfortunately I can't seem to get them to work.
I put arkGameUserSettingsIniFile and arkGameIniFile in each of my .config since I couldn't figure out where /path/to/instance was supposed to be.
But when I start my instances the config files are not being replaced at all.
arkmanager --version:
Version: 1.6
Channel: master
Commit: 36b8a3e
Release Tag: v1.6.49

The commit this was added in hasn't been put into a release yet.  It'll be in v1.6.50

ok. thx!


lenovo-legion: 0.0.12 -> 0.0.18 with patches in master

Things done

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[x] Tested basic functionality of all binary files (usually in ./result/bin/)
24.11 Release Notes (or backporting 23.11 and 24.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[x] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

Is there a reason we don't use 0.0.18 tag and then apply the patches instead of pointing at the commit?

I first tried version string 0.0.18-e9c1d8 and it failed to compile (the version string is written into setup.cfg and then makes it fail to compile). After that, I leave 0.0.18.
Commits between current master (e9c1d81) and 0.0.18 are simply some document change and the patch for kernel 6.11. Manually applying the patch needs several additional lines of nix code, and just gives nearly identical code comparing to current master. I think it might be not worth to make the nix code complex.

Is there a reason we don't use 0.0.18 tag and then apply the patches instead of pointing at the commit? I can't remember what is preferable but it seems wrong to say that it's 0.0.18 when it's not

yes, i agree, this is what I initially did...though I probably did something wrong with my patch (locally)

Result of nixpkgs-review pr 348417 run on x86_64-linux 1

6 packages marked as broken and skipped:

linuxKernel.packages.linux_5_10.lenovo-legion-module
linuxKernel.packages.linux_5_10_hardened.lenovo-legion-module
linuxKernel.packages.linux_5_4.lenovo-legion-module
linuxKernel.packages.linux_5_4_hardened.lenovo-legion-module
linuxPackages_5_10_hardened.lenovo-legion-module
linuxPackages_5_4_hardened.lenovo-legion-module

2 packages failed to build:

lenovo-legion
lenovo-legion.dist

14 packages built:

linuxKernel.packages.linux_5_15.lenovo-legion-module
linuxPackages_5_15_hardened.lenovo-legion-module (linuxKernel.packages.linux_5_15_hardened.lenovo-legion-module)
linuxKernel.packages.linux_6_1.lenovo-legion-module
linuxKernel.packages.linux_6_10.lenovo-legion-module
linuxPackages_latest.lenovo-legion-module (linuxKernel.packages.linux_6_11.lenovo-legion-module)
linuxPackages_6_1_hardened.lenovo-legion-module (linuxKernel.packages.linux_6_1_hardened.lenovo-legion-module)
linuxPackages.lenovo-legion-module (linuxKernel.packages.linux_6_6.lenovo-legion-module)
linuxPackages_hardened.lenovo-legion-module (linuxPackages_6_6_hardened.lenovo-legion-module)
linuxPackages_latest-libre.lenovo-legion-module (linuxKernel.packages.linux_latest_libre.lenovo-legion-module)
linuxPackages-libre.lenovo-legion-module (linuxKernel.packages.linux_libre.lenovo-legion-module)
linuxPackages_lqx.lenovo-legion-module (linuxKernel.packages.linux_lqx.lenovo-legion-module)
linuxPackages_xanmod.lenovo-legion-module (linuxKernel.packages.linux_xanmod.lenovo-legion-module)
linuxPackages_xanmod_latest.lenovo-legion-module (linuxKernel.packages.linux_xanmod_latest.lenovo-legion-module ,linuxPackages_xanmod_stable.lenovo-legion-module)
linuxPackages_zen.lenovo-legion-module (linuxKernel.packages.linux_zen.lenovo-legion-module)

2 packages failed to build:
* lenovo-legion

* lenovo-legion.dist

But it built just well on my machine. Build log:

Sourcing python-remove-tests-dir-hook
Sourcing python-catch-conflicts-hook.sh
Sourcing python-remove-bin-bytecode-hook.sh
Sourcing setuptools-build-hook
Using setuptoolsBuildPhase
Sourcing pypa-install-hook
Using pypaInstallPhase
Sourcing python-imports-check-hook.sh
Using pythonImportsCheckPhase
Sourcing python-namespaces-hook
Sourcing python-catch-conflicts-hook.sh
Running phase: qtPreHook
@nix { "action": "setPhase", "phase": "qtPreHook" }
Running phase: unpackPhase
@nix { "action": "setPhase", "phase": "unpackPhase" }
unpacking source archive /nix/store/gxprayzqiqikai10iw9zhlggja4pb5da-source
source root is source/python/legion_linux
setting SOURCE_DATE_EPOCH to timestamp 315619200 of file source/python/legion_linux/setup.py
Running phase: patchPhase
@nix { "action": "setPhase", "phase": "patchPhase" }
Running phase: updateAutotoolsGnuConfigScriptsPhase
@nix { "action": "setPhase", "phase": "updateAutotoolsGnuConfigScriptsPhase" }
Running phase: configurePhase
@nix { "action": "setPhase", "phase": "configurePhase" }
no configure script, doing nothing
Running phase: buildPhase
@nix { "action": "setPhase", "phase": "buildPhase" }
Executing setuptoolsBuildPhase
running bdist_wheel
running build
running build_py
creating build
creating build/lib
creating build/lib/legion_linux
copying legion_linux/__init__.py -> build/lib/legion_linux
copying legion_linux/legion.py -> build/lib/legion_linux
copying legion_linux/legion_cli.py -> build/lib/legion_linux
copying legion_linux/legion_gui.py -> build/lib/legion_linux
copying legion_linux/legion_logo.png -> build/lib/legion_linux
copying legion_linux/legion_logo_light.png -> build/lib/legion_linux
copying legion_linux/legion_logo_dark.png -> build/lib/legion_linux
/nix/store/hsidk8mv1c7pl3bn6b1g20a3nws36v7q-python3.12-setuptools-72.1.0/lib/python3.12/site-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated.
!!

        ********************************************************************************
        Please avoid running ``setup.py`` directly.
        Instead, use pypa/build, pypa/installer or other
        standards-based tools.

        See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details.
        ********************************************************************************

!!
  self.initialize_options()
installing to build/bdist.linux-x86_64/wheel
running install
running install_lib
creating build/bdist.linux-x86_64
creating build/bdist.linux-x86_64/wheel
creating build/bdist.linux-x86_64/wheel/legion_linux
copying build/lib/legion_linux/__init__.py -> build/bdist.linux-x86_64/wheel/legion_linux
copying build/lib/legion_linux/legion.py -> build/bdist.linux-x86_64/wheel/legion_linux
copying build/lib/legion_linux/legion_cli.py -> build/bdist.linux-x86_64/wheel/legion_linux
copying build/lib/legion_linux/legion_gui.py -> build/bdist.linux-x86_64/wheel/legion_linux
copying build/lib/legion_linux/legion_logo.png -> build/bdist.linux-x86_64/wheel/legion_linux
copying build/lib/legion_linux/legion_logo_light.png -> build/bdist.linux-x86_64/wheel/legion_linux
copying build/lib/legion_linux/legion_logo_dark.png -> build/bdist.linux-x86_64/wheel/legion_linux
running install_data
creating build/bdist.linux-x86_64/wheel/legion_linux-0.0.18.data
creating build/bdist.linux-x86_64/wheel/legion_linux-0.0.18.data/data
creating build/bdist.linux-x86_64/wheel/legion_linux-0.0.18.data/data/share
creating build/bdist.linux-x86_64/wheel/legion_linux-0.0.18.data/data/share/pixmaps
copying legion_linux/legion_logo.png -> build/bdist.linux-x86_64/wheel/legion_linux-0.0.18.data/data/share/pixmaps/
copying legion_linux/legion_logo_light.png -> build/bdist.linux-x86_64/wheel/legion_linux-0.0.18.data/data/share/pixmaps/
copying legion_linux/legion_logo_dark.png -> build/bdist.linux-x86_64/wheel/legion_linux-0.0.18.data/data/share/pixmaps/
creating build/bdist.linux-x86_64/wheel/legion_linux-0.0.18.data/data/share/applications
copying legion_linux/legion_gui.desktop -> build/bdist.linux-x86_64/wheel/legion_linux-0.0.18.data/data/share/applications/
creating build/bdist.linux-x86_64/wheel/legion_linux-0.0.18.data/data/share/polkit-1
creating build/bdist.linux-x86_64/wheel/legion_linux-0.0.18.data/data/share/polkit-1/actions
copying legion_linux/legion_cli.policy -> build/bdist.linux-x86_64/wheel/legion_linux-0.0.18.data/data/share/polkit-1/actions/
copying legion_linux/legion_gui.policy -> build/bdist.linux-x86_64/wheel/legion_linux-0.0.18.data/data/share/polkit-1/actions/
creating build/bdist.linux-x86_64/wheel/legion_linux-0.0.18.data/data/share/legion_linux
copying legion_linux/extra/service/legiond.ini -> build/bdist.linux-x86_64/wheel/legion_linux-0.0.18.data/data/share/legion_linux/
copying legion_linux/extra/service/profiles/balanced-ac.yaml -> build/bdist.linux-x86_64/wheel/legion_linux-0.0.18.data/data/share/legion_linux/
copying legion_linux/extra/service/profiles/balanced-battery.yaml -> build/bdist.linux-x86_64/wheel/legion_linux-0.0.18.data/data/share/legion_linux/
copying legion_linux/extra/service/profiles/balanced-performance-ac.yaml -> build/bdist.linux-x86_64/wheel/legion_linux-0.0.18.data/data/share/legion_linux/
copying legion_linux/extra/service/profiles/balanced-performance-battery.yaml -> build/bdist.linux-x86_64/wheel/legion_linux-0.0.18.data/data/share/legion_linux/
copying legion_linux/extra/service/profiles/performance-ac.yaml -> build/bdist.linux-x86_64/wheel/legion_linux-0.0.18.data/data/share/legion_linux/
copying legion_linux/extra/service/profiles/performance-battery.yaml -> build/bdist.linux-x86_64/wheel/legion_linux-0.0.18.data/data/share/legion_linux/
copying legion_linux/extra/service/profiles/quiet-ac.yaml -> build/bdist.linux-x86_64/wheel/legion_linux-0.0.18.data/data/share/legion_linux/
copying legion_linux/extra/service/profiles/quiet-battery.yaml -> build/bdist.linux-x86_64/wheel/legion_linux-0.0.18.data/data/share/legion_linux/
running install_egg_info
running egg_info
creating legion_linux.egg-info
writing legion_linux.egg-info/PKG-INFO
writing dependency_links to legion_linux.egg-info/dependency_links.txt
writing entry points to legion_linux.egg-info/entry_points.txt
writing requirements to legion_linux.egg-info/requires.txt
writing top-level names to legion_linux.egg-info/top_level.txt
writing manifest file 'legion_linux.egg-info/SOURCES.txt'
reading manifest file 'legion_linux.egg-info/SOURCES.txt'
writing manifest file 'legion_linux.egg-info/SOURCES.txt'
Copying legion_linux.egg-info to build/bdist.linux-x86_64/wheel/legion_linux-0.0.18-py3.12.egg-info
running install_scripts
creating build/bdist.linux-x86_64/wheel/legion_linux-0.0.18.dist-info/WHEEL
creating 'dist/legion_linux-0.0.18-py3-none-any.whl' and adding 'build/bdist.linux-x86_64/wheel' to it
adding 'legion_linux/__init__.py'
adding 'legion_linux/legion.py'
adding 'legion_linux/legion_cli.py'
adding 'legion_linux/legion_gui.py'
adding 'legion_linux/legion_logo.png'
adding 'legion_linux/legion_logo_dark.png'
adding 'legion_linux/legion_logo_light.png'
adding 'legion_linux-0.0.18.data/data/share/applications/legion_gui.desktop'
adding 'legion_linux-0.0.18.data/data/share/legion_linux/balanced-ac.yaml'
adding 'legion_linux-0.0.18.data/data/share/legion_linux/balanced-battery.yaml'
adding 'legion_linux-0.0.18.data/data/share/legion_linux/balanced-performance-ac.yaml'
adding 'legion_linux-0.0.18.data/data/share/legion_linux/balanced-performance-battery.yaml'
adding 'legion_linux-0.0.18.data/data/share/legion_linux/legiond.ini'
adding 'legion_linux-0.0.18.data/data/share/legion_linux/performance-ac.yaml'
adding 'legion_linux-0.0.18.data/data/share/legion_linux/performance-battery.yaml'
adding 'legion_linux-0.0.18.data/data/share/legion_linux/quiet-ac.yaml'
adding 'legion_linux-0.0.18.data/data/share/legion_linux/quiet-battery.yaml'
adding 'legion_linux-0.0.18.data/data/share/pixmaps/legion_logo.png'
adding 'legion_linux-0.0.18.data/data/share/pixmaps/legion_logo_dark.png'
adding 'legion_linux-0.0.18.data/data/share/pixmaps/legion_logo_light.png'
adding 'legion_linux-0.0.18.data/data/share/polkit-1/actions/legion_cli.policy'
adding 'legion_linux-0.0.18.data/data/share/polkit-1/actions/legion_gui.policy'
adding 'legion_linux-0.0.18.dist-info/METADATA'
adding 'legion_linux-0.0.18.dist-info/WHEEL'
adding 'legion_linux-0.0.18.dist-info/entry_points.txt'
adding 'legion_linux-0.0.18.dist-info/top_level.txt'
adding 'legion_linux-0.0.18.dist-info/RECORD'
removing build/bdist.linux-x86_64/wheel
Finished executing setuptoolsBuildPhase
Running phase: glibPreInstallPhase
@nix { "action": "setPhase", "phase": "glibPreInstallPhase" }
Running phase: glibPreInstallPhase
@nix { "action": "setPhase", "phase": "glibPreInstallPhase" }
Running phase: installPhase
@nix { "action": "setPhase", "phase": "installPhase" }
Executing pypaInstallPhase
Successfully installed legion_linux-0.0.18-py3-none-any.whl
Finished executing pypaInstallPhase
Running phase: pythonOutputDistPhase
@nix { "action": "setPhase", "phase": "pythonOutputDistPhase" }
Executing pythonOutputDistPhase
Finished executing pythonOutputDistPhase
Running phase: qtOwnPathsHook
@nix { "action": "setPhase", "phase": "qtOwnPathsHook" }
Running phase: glibPreFixupPhase
@nix { "action": "setPhase", "phase": "glibPreFixupPhase" }
Running phase: glibPreFixupPhase
@nix { "action": "setPhase", "phase": "glibPreFixupPhase" }
Running phase: fixupPhase
@nix { "action": "setPhase", "phase": "fixupPhase" }
shrinking RPATHs of ELF executables and libraries in /nix/store/4680670kj841jvdj65z69f5krrizyhzr-lenovo-legion-app-0.0.18
checking for references to /build/ in /nix/store/4680670kj841jvdj65z69f5krrizyhzr-lenovo-legion-app-0.0.18...
patching script interpreter paths in /nix/store/4680670kj841jvdj65z69f5krrizyhzr-lenovo-legion-app-0.0.18
stripping (with command strip and flags -S -p) in  /nix/store/4680670kj841jvdj65z69f5krrizyhzr-lenovo-legion-app-0.0.18/lib /nix/store/4680670kj841jvdj65z69f5krrizyhzr-lenovo-legion-app-0.0.18/bin
shrinking RPATHs of ELF executables and libraries in /nix/store/197vgsbp7q7w76w2sq8c8pq8ahaqwj1q-lenovo-legion-app-0.0.18-dist
checking for references to /build/ in /nix/store/197vgsbp7q7w76w2sq8c8pq8ahaqwj1q-lenovo-legion-app-0.0.18-dist...
patching script interpreter paths in /nix/store/197vgsbp7q7w76w2sq8c8pq8ahaqwj1q-lenovo-legion-app-0.0.18-dist
Rewriting #!/nix/store/l6z671x7a5sf5r5z6rfp9fn0vpl9k5d4-python3-3.12.5/bin/python3.12 to #!/nix/store/l6z671x7a5sf5r5z6rfp9fn0vpl9k5d4-python3-3.12.5
wrapping `/nix/store/4680670kj841jvdj65z69f5krrizyhzr-lenovo-legion-app-0.0.18/bin/legion_cli'...
Rewriting #!/nix/store/l6z671x7a5sf5r5z6rfp9fn0vpl9k5d4-python3-3.12.5/bin/python3.12 to #!/nix/store/l6z671x7a5sf5r5z6rfp9fn0vpl9k5d4-python3-3.12.5
wrapping `/nix/store/4680670kj841jvdj65z69f5krrizyhzr-lenovo-legion-app-0.0.18/bin/legion_gui'...
Executing pythonRemoveTestsDir
Finished executing pythonRemoveTestsDir
Running phase: installCheckPhase
@nix { "action": "setPhase", "phase": "installCheckPhase" }
no Makefile or custom installCheckPhase, doing nothing
Running phase: pythonCatchConflictsPhase
@nix { "action": "setPhase", "phase": "pythonCatchConflictsPhase" }
Running phase: pythonRemoveBinBytecodePhase
@nix { "action": "setPhase", "phase": "pythonRemoveBinBytecodePhase" }
Running phase: pythonImportsCheckPhase
@nix { "action": "setPhase", "phase": "pythonImportsCheckPhase" }
Executing pythonImportsCheckPhase
Running phase: postPatchMkspecs
@nix { "action": "setPhase", "phase": "postPatchMkspecs" }

https://stridbot.strid.ninja/nixpkgs-review/348417
This link might be broken in a couple of hours but shows the issue now. If you think it's a flakyness bug I could run it again.

If you think it's a flakyness bug I could run it again.

Build log shows the error is in python-pyqt6, not lenovo-legion. Maybe we should wait several hours or days for fixing on python-pyqt6 in current master, or we may run build test against current nixos-unstable?

If you think it's a flakyness bug I could run it again.

Build log shows the error is in python-pyqt6, not lenovo-legion. Maybe we should wait several hours or days for fixing on python-pyqt6 in current master, or we may run build test against current nixos-unstable?

Seems like pyqt6 is incompatible with qt 6.8 which is in master. Either we push for upstream to move to pyside or we wait for pyqt6 to release a compatible version, it looks like it's closed source so not easily fixed from our side.
I made a PR upgrading pyqt to 6.7.1 which is the latest but it's still broken: https://github.com/NixOS/nixpkgs/pull/348697

I'm not sure what is the best course of action here, this PR is likely fine but we're broken by a dependency that is broken on master.

from the upstream tags page, it seems like the switch from pyqt5 to pyqt6 happened at 0.0.16. Perhaps for the time being we could bump it form 0.0.12 to 0.0.15? [Assuming pyqt5 isn't broken]

from the upstream tags page, it seems like the switch from pyqt5 to pyqt6 happened at 0.0.16. Perhaps for the time being we could bump it form 0.0.12 to 0.0.15? [Assuming pyqt5 isn't broken].

I think it's just they forgot to remove pyqt5 from the list of dependencies. The actual codebase switched to pyqt6 happened much earlier in  https://github.com/johnfanv2/LenovoLegionLinux/commit/f5cf184d5faf80a26bb9d430df0d1a2cf2563c10
Rebasing this PR and the pyqt 6.8 update PR on top of master, I could successfully build lenovo-legion, so it seems to me that we just need to wait until that's merged.
Also, we should probably switch to building this using qt6 and remove the dependency on qt5 and pyqt5.

Rebasing this PR and the pyqt 6.8 update PR on top of master, I could successfully build lenovo-legion, so it seems to me that we just need to wait until that's merged.

That's great. but yeah I got the thing working with pyqt5 with the following
https://gist.github.com/Rexcrazy804/192aaf6673f89b624c6997f7ba9e4e08
it builds and runs successfully*

* I am currently not on my legion system so I can't see if the the program is able to read the data, but the gui stuff looks alright.

I think it's just they forgot to remove pyqt5 from the list of dependencies. The actual codebase switch to pyqt6 happened much earlier in https://github.com/johnfanv2/LenovoLegionLinux/commit/f5cf184d5faf80a26bb9d430df0d1a2cf2563c10

yeah its mostly just changes to the deploy/ folders that contained instructions for build dependencies for the other distros and some minor changes to the gui.py file. We could make an inverse patch to get it working.

Although patching will work, I think keeping pyqt5 will only increase the maintenance effort, considering that upstream has switched to pyqt6, which means we might have to patch even more things in the future. Also, we'll eventually have to do the switch as qt5 becomes deprecated.

Thank you to all the reviewers. I will solve all the mentioned issues tomorrow.

With pyqt6 update merged this builds okay. Are you okay with this @eljamm ?

Also @realsnick

Yes, we just need to address the commit convention and remove the dependency on pyqt5 and I think this would be good to merge.


TypeError: Failed to execute 'createObjectURL' on 'URL': No function was found that matched the signature provided.

Hi,
this error happen when i try to access the camera, my code file was same like the example.
I'm still beginner, so i hope you guys can help me.
Thanks

Yes me 2

i have this problem too

me too

https://github.com/zxing-js/library I found this library, great library for QR code and barcode scanner

It seems that this project is stopped.
I fixed bug at my fork and published with new package name on npm.
My fork: https://github.com/fabionaspolini/react-instascan
To install new packages:
npm install react-instascan-new instascan-umd-new --save

Fix:
Attach your stream directly to srcObject property instead of using URL.createObjectURL function.
recomendation: https://developer.mozilla.org/en-US/docs/Web/API/URL/createObjectURL#Using_object_URLs_for_media_streams
const instascan = require('instascan');

const args = { video: document.getElementById('preview') };

window.URL.createObjectURL = (stream) => {
            args.video.srcObject = stream;
            return stream;
};

const scanner = new instascan.Scanner(args);

...


Problem displaying videos

Hi, since yesterday we've had an error message when displaying the training pages 👍
An error occurred while processing your request.
Reference #30.3ff63717.1706189248.2a194666

I can't find the explanation for the error code.
Do you have the same problem? Have you been able to solve it and if so, how?
Thank you in advance for your help.

@moca-dev this is a duplicate of #767. Please keep an eye on that issue when the issue is resolved. Closing this one as a duplicate


source has tiles could not get url

when source like this:
srouces:{
     test:{
          type:'vector',
         tiles:['http://localhost/test/{x}/{y}/{z}.pbf','http://localhost/test/{x}/{y}/{z}.pbf']
        }
}

app.jsx
the function fetchSources()    'url is undefined'
i think you can fix it .

Hey @wxqqq does this break the editor? It needs fixing either way, I'm just trying to work out how urgent it is.

Ok yeah this is my fault. I fixed autocomplete for openmaptiles only. You can see the code that broke it here https://github.com/maputnik/editor/pull/196/files. I see why @lukasmartinelli implemented it that way now...

There is a temporary fix in #236. You can see a build at https://209-84182601-gh.circle-artifacts.com/0/tmp/circle-artifacts.ERE7w6P/build/index.html. @wxqqq would you mind verifying it solves your issue?
NOTE: You won't get autocompleting layers for you sources at this time. That'll come in another pull request.

it don't break the editor;
#236 can avoid it.

NOTE: You won't get autocompleting layers for you sources at this time. That'll come in another pull request.

@orangemug maybe I'm misunderstanding why this issue is still open, but I think you can't get autocompleting layers for sources with only tile endpoints (XYZ URLs) because then there is no TileJSON which could contain the layer metadata.
Please correct me if I'm wrong.


output samtools bai to aligner subdir of results

passing/failing bams do have the bais. no reason to deal with intermediate bam.


bug: Unable to Pass Multiple Arrays to Struct in Cairo Args Runner

Description
There is an issue with Cairo Args Runner when trying to pass multiple arrays to a struct. While it works fine with single array or (multiple) values, the runner throws an error when multiple arrays are passed. This issue is particularly noticeable in the e4_struct_with_arrays example, where instead of the expected output, an error is encountered.
Steps to Reproduce
To reproduce this issue, follow these steps:

Clone the repository:git clone https://github.com/neotheprogramist/cairo-args-runner

Checkout:git checkout passing-more-than-one-array-issue

Build the program (optional - only need if any changes):cd examples/e4_struct_with_arrays/
scarb build

Run the program with two arrays:echo "[[1, 2, 3], [1, 3, 9]]" | cargo run --release -- examples/e4_struct_with_arrays/target/dev/e4_struct_with_arrays.sierra.json

Expected Result: [6, 13]
Actual Result: Error message:ArgumentsSizeMismatch { expected: 1, actual: 2 }
Error: RunError(FailedRunning)

Expected Behavior
The runner should correctly process the input of multiple arrays in a struct and provide the expected output without errors.
Actual Behavior
When passing more than one array to the struct, the runner throws an ArgumentsSizeMismatch error and fails to execute the program correctly.
Additional Context
The issue seems to arise specifically in the context of struct handling with multiple arrays. This is critical for the usability of the runner in more complex Cairo programs.
Repository Link
GitHub Repository - cairo-args-runner

The runner only supports flat information, which may include some arrays.
In your case, I have no idea how you actually pass the data into this object.
The runner only supports two types of params - which your actual param does not match:

A simple flat struct (this will also include felt252, u8, u16 and so on)
An array of flat objects.

@orizi
The way I pass arguments in code is here.
There are no nested arrays, and the arguments are just vector of Arg enum called WrappedArgs.
The thing is that, I was wondering how structs are serialized, and as expected they are just a series of felts that are casted to the specific type.
Such example works well Cairo Code and I pass to sierra simply a vec![Arg::Value(1), Arg::Value(2), Arg::Value(3)] e1_struct_with_values
Passing many arrays (without wrapping them inside struct) works as well.
Example Code
e2_arrays
Following the pattern I wanted to do similar thing with arrays in this example. Now the input struct has array members instead of felts.
In my opinion passing vec![Arg::Array(vec![1, 2, 3]), Arg::Array(vec![1, 3, 9])] should result in working example e4_struct_with_arrays but it panics.

Do note this isn't serialization - this is the actual represenstation when runner the CairoVM for Cairo level objects.
This entire structure was only designed to run our tests - therefore only passing flat structs, and arrays of flat args are supported.
Of course other things are possible - but this isn't part of the scope.

Found something simple to allow support for this. Linked PR.


Document .override (old: ...)

.override for packages has 2 forms: .override {} and .override (old: {}).
These aren't properly documented in the nixpkgs manual, especially not the latter.
I think it's extra important to document what old contains in this case, because it has supriring behaviour:
It lacks e.g. defaulted boolean (enableX ? true) flags.
For example for curl, https://github.com/NixOS/nixpkgs/blob/f4af5f389925364f05e78445441dd17ef1ba567a/pkgs/tools/networking/curl/default.nix#L5
When you use curl.override (old: builtins.trace old.zlibSupport ...) it complains that zlibSupport does not exist on old. However old.zlib exists.
I suspect that what's happening is that only those things are in old that were passed from outside, and that ? defaultvalue arguments are not in there.
This badly surprised me here and probably also @oxij here.
We should document how it works, and recommend how to handle such cases (e.g. using old.enableX or true if the default value in the package is ? true), or "fix" the fact that default values are not present.

Alternatively, we can fix it to do the unsurprising thing. A quick hack that seems to work (a bit ugly, but a noop change that keeps all of nixpkgs evaluating)
diff --git a/lib/customisation.nix b/lib/customisation.nix
index aaaaaaaaaaa..bbbbbbbbbbb 100644
--- a/lib/customisation.nix
+++ b/lib/customisation.nix
@@ -67,7 +67,8 @@ rec {
   makeOverridable = f: origArgs:
     let
       ff = f origArgs;
-      overrideWith = newArgs: origArgs // (if lib.isFunction newArgs then newArgs origArgs else newArgs);
+      # builtins.isFunction is important here, one can't apply lib.functionArgs to things with `__functor`
+      overrideWith = newArgs: origArgs // (if lib.isFunction newArgs then newArgs (if builtins.isFunction f then lib.functionArgs f // origArgs else origArgs) else newArgs);
     in
       if builtins.isAttrs ff then (ff // {
         override = newArgs: makeOverridable f (overrideWith newArgs);

with the above the desired
+      gssSupport = !stdenv.isDarwin && old.gssSupport;

from the other PR evaluates as expected.
On to the issue of handling __functors I tried adding
+  extractFunction = f:
+    if builtins.isFunction f then f
+    else if f ? __functor then extractFunction (f.__functor f)
+    else throw "not a function";

near isFunction in lib/trivial.nix and doing this instead of the above
-      overrideWith = newArgs: origArgs // (if lib.isFunction newArgs then newArgs (if builtins.isFunction f then lib.functionArgs f // origArgs else origArgs) else newArgs);
+      overrideWith = newArgs: origArgs // (if lib.isFunction newArgs then newArgs (if lib.isFunction f then lib.functionArgs (lib.extractFunction f) // origArgs else origArgs) else newArgs);

but then something in the Haskell infra stops evaluating for mysterious reasons...

Alternatively, we can fix it to do the unsurprising thing

:+1: @oxij I'm not familiar enough with this to judge your fix, do you want to post it as a PR to get proper scrutiny, and perhaps some contributed fixes for the Haskell infra?

still important to me

still important to me


Install and Set Up the Desktop Agent 3

Tutorials: https://developers.sap.com/tutorials/spa-setup-desktop-3-0-agent.html
Hello , I'm going through your tutorial  and successfully completed the first four steps. However, I've encountered an issue in the final step – I'm unable to locate the "Agent Management" feature in the build lobby.
Details Requested:
Landscape: SAP Internal BTP Canary Account
Let me know if you need more details from my end !!
Feel free to contact me directly on teams or email<EMAIL_ADDRESS>I would greatly appreciate any assistance you can provide.
Thank you!

Issue solved today


Enables support for distributing Bluebird as a binary library

This fixes #8 and adds a different solution for #6.
Solution
To allow frameworks to be used by multiple Swift version, we need to set:
BUILD_LIBRARY_FOR_DISTRIBUTION = YES

This isn't necessary for a Swift package (since they are build from source), but it's useful for Carthage or other means of distributing binary frameworks.
The workaround is to use an xcconfig file and pass that as an argument to generate-xcodeproj.
It was discovered that the Bluebird_Info.plist file is ovewritten when running generate-xcodeproj. This means we cannot manually set the CFBundleVersion there. The solution was to also add CURRENT_PROJECT_VERSION to the xcconfig file.
Testing
I built Bluebird.framework in Xcode 11.3.1. Then in Xcode 11.4 I created a test project and linked to the generated project. It built and linked successfully.

Similar to #7:
$ carthage update Bluebird.swift --platform ios
*** Fetching Bluebird.swift
*** Checking out Bluebird.swift at "fef09003119237aaf04af1c200b7fce8b8092cb8"
*** xcodebuild output can be found in /var/folders/g9/jdfcs9qd33x9btw291m5dly40000gp/T/carthage-xcodebuild.rygqWn.log
*** Building scheme "Bluebird-Package" in Bluebird.xcodeproj

$ plutil -convert xml1 Carthage/Build/iOS/Bluebird.framework/Info.plist -o ~/Desktop/Bluebird_Info.plist

$ grep "CFBundleVersion" ~/Desktop/Bluebird_Info.plist
	<key>CFBundleVersion</key>

Great looks good, thank you!


Add a link to the password reset message

From a user:

I was not able to sign in with the temporary password in time, so I am now locked out of the account. I cannot find the link to reset my password. How do I go about resetting it and accessing the account?

This happens occasionally with the sandbox and we could solve it by just having a link in the email we send out.

ah okay. yeah.


SendGrid integration is deprecated

Just like #1956 . Somehow I can't reopen the old issue.
I can work on fixing this, but would appreciate some pointers as to how the config files work exactly.

The contribution/bugfix is appreciated
What is/are your question(s) about config files?

I was under the impression the config worked in a far more complicated manner. Please see PR #2715 . Let me know if any changes need to be done :)


Ship metrics to InfluxDB

Send server statistic information such as runtime memory and DHCP lease information to an influxdb server.

Application metrics are exposed through the /api/status route. Metrics can be shipped to whatever system is needed.


Added Advanced Visualizations to forex model

I have added following visualisations to forex model("Hedging-of-Financial-Derivatives/forex /forex.ipynb").
1.Visualize Training and Validation Losses
2.Visualize Predictions vs. Actual Values
3.Detailed Comparison of Predictions
4.Error Analysis
5.Distribution of Errors
6.Interactive Visualizations

Hi @Akshat111111 , Please assign labels GSSOC and level 3 to this PR else it wont update in Leader board as mentioned in latest GSSOC guidelines.
Resolves #200.

The model is so poorly documented the contributor hasn't even written the Title of the model in the work.
No documentation comments etc.are included for anything in this work. I needed to look at the data headers closely to figure out what  this model is trying to predict. Documentation is really important so people who are going to be working on this project after you knows what is and is not implemented or what this model does or does not do currently.
A model for exchange rate prediction already exists the only new feature implemented by this model is using yahoof api for live predictions which could have been implemented on the original model itself or atleast this could be moved to the dir. that contains the original model for exchange predictions so that everything is organised.
Also if I am understanding the goal of this work correctly it was to predict forex but nowhere in the work is predicted forex returned as a value(this would involve converting the data to original value as you have used min max scaler and then output that as the predicted value)
Hope @Akshat111111 acknowledges.
@FreeSpirit11 you can always go through other works of this repo to familiarise yourself with the documentation and discription standards of this project. And I have noticed the corrections discussed for crude oil forecasting have still not been implemented if you're facing any difficulties doing that feel free to contact the mentors :)

The model is so poorly documented the contributor hasn't even written the Title of the model in the work.
No documentation comments etc.are included for anything in this work. I needed to look at the data headers closely to figure out what this model is trying to predict. Documentation is really important so people who are going to be working on this project after you knows what is and is not implemented or what this model does or does not do currently.
A model for exchange rate prediction already exists the only new feature implemented by this model is using yahoof api for live predictions which could have been implemented on the original model itself or atleast this could be moved to the dir. that contains the original model for exchange predictions so that everything is organised.
Also if I am understanding the goal of this work correctly it was to predict forex but nowhere in the work is predicted forex returned as a value(this would involve converting the data to original value as you have used min max scaler and then output that as the predicted value)
Hope @Akshat111111 acknowledges. @FreeSpirit11 you can always go through other works of this repo to familiarise yourself with the documentation and discription standards of this project. And I have noticed the corrections discussed for crude oil forecasting have still not been implemented if you're facing any difficulties doing that feel free to contact the mentors :)

Thankyou for guiding @FreeSpirit11 .I hope she will update it too by making a new PR

Hi @Akshat111111, I have added advanced visualizations as outlined in issue #200. You may proceed to close this issue. I will create a new issue to address the changes suggested by amishaa.

Hi @Akshat111111, I have added advanced visualizations as outlined in issue #200. You may proceed to close this issue. I will create a new issue to address the changes suggested by amishaa.

okay

Why is this assigned a level 3 ?

Why is this assigned a level 3 ?

Its by mistake.Now I have updated it.


Javascript Files Getting Skipped

Why is this plugin skipping all the "hoisted.12345.js" files that Astro creates?

Maybe they're already compressed at their maximum limit and couldn't be compressed more. We check for that and if the file has a larger file size after compression we don't write to it.

https://github.com/PlayForm/Compress/blob/dcce142835a5b12483f79e89e9186ffeea1cdae9/Source/Variable/Option.ts#L34-L35

Thank you. I think that is the case after spending more time with this ... files are silently excluded from the log output if they're already at maximum compression.


feat: add profile for FBW A380X

This PR adds a profile for the FlyByWire A380X.
Since this is my first time creating an aircraft profile, I’d appreciate any feedback you have, as I may not have done everything the right way.

I think at least two batteries is needed to power up this big bird, so ess
alone will not be enough. If this is the case then we need to count the
available batteries and return true if the count is >= 2
No need to check the apu battery at all :)
Sent from mobile device / Mobil cihaz ile gönderildi
12 Kas 2024 Sal 20:35 tarihinde Nabeel S. @.***> şunu
yazdı:

@.**** commented on this pull request.
In src/aircraft/FlyByWireA380X.ts
https://github.com/phpvms/acars-config/pull/2#discussion_r1838516098:

}

wingLights(value: number): FeatureState {

   return value === 1;

}

taxiLights(value: number): FeatureState {

   return value === 0 || value === 1;

}

APU(mastersw: number, startsw: number): FeatureState {

   return mastersw === 1 && startsw === 1;

}

battery(bat1: number, bat2: number, ess: number, apu: number): FeatureState {

   return bat1 === 1 || bat2 === 1 || ess === 1 || apu === 1

Would (batt1 && batt2) || ess make sense?
—
Reply to this email directly, view it on GitHub
https://github.com/phpvms/acars-config/pull/2#discussion_r1838516098,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ARXKVMKIO75DFX5QRMTJFLT2AI34RAVCNFSM6AAAAABRPEKTVSVHI2DSMVQWIX3LMV43YUDVNRWFEZLROVSXG5CSMV3GSZLXHMZDIMZQGI4DGOBRG4
.
You are receiving this because you commented.Message ID:
@.***>


Ruleset

@kblok  added changes for CA1304 kindly review

@kblok any suggestions u the two checks failed? Is it due to my changes ?


Added pipenv for packages management and removed requirements.txt

Removed requirements.txt file
Modified Dockerfile files to use pipenv for packages management
Generated Pipfile with list of packages

At the moment we cannot generate a Pipfile.lock since we are using some unreleased packages (ex. eth-keys = "==0.1.0b4")

Also removed cache_pip_wheels.sh file since we do no longer use pip.cache

I made a few changes.

Reduced the number of dependencies explicitly specified in the Pipfile
Generate a Pipfile.lock from within the dev container
Utilize old pip caching approach, updated for pipenv
Updated pylint, fixed resulting issues


detail identifiers in public APIs could say implementation_defined

For example here
template<class CharSet>
detail::pct_encoded_bnf<CharSet>
pct_encoded_bnf(
    CharSet const& cs,
    pct_encoded_str& t) noexcept;

Currently the workaround is to write
template<class CharSet>
#ifdef BOOST_URL_DOCS
__implementation_defined__
#else
detail::pct_encoded_bnf<CharSet>
#endif
pct_encoded_bnf(
    CharSet const& cs,
    pct_encoded_str& t) noexcept;

Are there any existing examples of this workaround in the URL library? (I'm not finding any.) That's fine if not, but if we do have existing examples, they would serve as good test cases for me.


allow range for require argument in prompts.choice

Hi, can you assign me to this issue? I have read the documentation and this project is very interesting and I would like to contribute but can you tell me more about the problem?


Setup CI

Actions?

This ticket is here just to sort of keep track of the fact that I, on a whim, setup an Action for CI, and it was silly simple, and just works, and I like that.


Unable to handle errors with preloadFonts

In
  me.preloadFonts = function (fonts, next) {

I am unable to handle thrown errors from invalid font names fetched....


Relax numpy version requirements

Hi
Currently opencv-python requires numpy >=1.11.3 to be installed despite requirements.txt and .travis.yml specifying >= 1.11.1.
We want to use this with Anaconda 4.1.1, which installs numpy 1.11.1.
Would it be possible to relax these dependencies, and install/test/publish with version 1.11.1?

There are no numpy 1.11.1 builds for Python 3.6. If you are using older Python version than 3.6 it is possible to relax the version requirement.
A proper fix for the numpy requirement is to parameterize the numpy version for each build separately in the matrices to lowest possible version to maintain ABI compatibility. For Travis it should be implemented like this: https://github.com/MacPython/astropy-wheels/blob/master/.travis.yml and for Appveyor in similar way. This means also that the numpy requirement has to be removed from requirements.txt.

I did a test here: https://github.com/skvark/opencv-python/pull/30
And saw that it breaks on Windows.
If I made a patch, like what you describe above, would you merge it?

Yes, I would merge it. I'm finishing currently contrib modules support in another branch so if it's done within a week or the fix be available in the next release.

I'll give it a try, thanks


Improve log output on boot

This is a high-level polish issue - it might get more generic before we get to it - this issue is a result of me having a genuine attempt at using ghost-cli to run a production blog 😁
On boot, Ghost outputs a set of messages to the console. This tell you that Ghost has started, how long it took and what URL to use to access it.
However, when running Ghost in production mode with ghost-cli, you'll never see these messages that are sent to the console and there is no equivalent output sent to the logger. This means that, unless there is a migration to run, Ghost will not have any log content on start.
In my experience, logging on start is extremely useful for debugging, detecting crashes, etc. Recommended information to output includes:

how long it took Ghost to boot
what port it is running on
the configured URL.

This information is particularly useful when debugging wider issues with nginx or systemd.

IMO this issue is needed for 1.0. It's super weird to get no log output saying whether or not Ghost started. I use this output, which exists in LTS, for debugging a lot in production.


Error: global leak detected: tvt

I'm creating the issue after searching google for similar issue w/o any results.
Two issues here:

Each time this exception is raised somewhere else; meaning, test A can fail now - and after a refresh test B will fail with the exact same traceback.

There's nothing called tvt not via the API results which I'm testing or any JS script in the entire directory/files ... including the npm directories

It only happens in Chrome ( everytime ), Firefox/Safari - this exception never raised

Before "ignoring" this issue - I want to understand "who" is creating this variable
Error: global leak detected: tvt
    at Runner.checkGlobals (js/qa/mocha.js:4773:21)
    at Runner.<anonymous> (js/qa/mocha.js:4648:44)
    at Runner.EventEmitter.emit (js/qa/mocha.js:616:20)
    at js/qa/mocha.js:5077:14
    at done (js/qa/mocha.js:4518:5)
    at js/qa/mocha.js:4538:9
    at qa/api.js:77:13
    at p.callback (js/qa/superagent.min.js:1:9482)
    at p.<anonymous> (js/qa/superagent.min.js:1:6403)
    at p.n.emit (js/qa/superagent.min.js:1:4073)

And the row is:
it('test A', function(done) {
  ...... testing .....

   done();               <= this is where it raises the exception
}
it('test B', function(done) {
  ...... testing .....

   done();               <= this is where it raises the exception
}

Do this:
Object.defineProperty(window, 'tvt', {
  set() {throw new Error("naughty global set")},
}):

That will give you a sensible stack trace when something tries to write that global.
I doubt this is an issue with Mocha, though.

There's nothing called tvt not via the API results which I'm testing or any JS script in the entire directory/files ... including the npm directories

Grepping source isn't going to be bulletproof with JS, of course.
Are there plugins running in Chrome that might be doing this?
@Slayer95 is correct though; this is Mocha simply reporting a leak in the code & envrionment which it was handed.  This is not a bug, and is intended behavior.  If you wish to disable the global leak checks, you can do (assuming browser context):
mocha.setup({
  ignoreLeaks: true
});

Then why there's no leak in Firefox / Safari ?
The leak is only when using Chrome ?!


[Feat]: I want to add Some Under Rated Job Portal Websites in Job Portal Section

Is your feature request related to a problem? Please describe.
List of Job Portal Websites

Instahyre : https://www.instahyre.com/
Naukri.com : https://www.naukri.com/
LinkedIn : https://in.linkedin.com/

Describe the solution you'd like.

Just Follow above Lines of Issues.

Describe alternatives you've considered.
No response
Additional context.

These 3 Websites are Widely used for Remote Jobs most effectively.

Show us the magic with screenshots
1. Naukri.com

2. Instahyre

Checklist

[X] I have checked the existing issues
[X] I have read the Contributing Guidelines
[X] I want to work on this issue. (optional)
[X] I am a GSSoC'23 contributor

Hi @AnirudhPanda . Please Review on this Issue as soon as Possible. Thank You !


Feature requirement: Support IOS 10.x

My company works with ipads 4th gen :(
latest ios is 10.3 :(
Is there a way to support ios 10?

SwiftUI is supported only on iOS 13 and higher. So there is no way to run it on iOS 10.


nixos/sudo: fix security.sudo.package

Description of changes
Fix buggy handling of security.sudo.package, where the specified package would be used for
the suid wrappers (sudo and sudoedit) but not for systemPackages, causing pkgs' sudo
to be used instead for many executables (incl. visudo), the manpages, etc.
This bug has been present since the introduction of that option in d2dc0ae2033d1655a2011fc932bca5cd9c7bfe5b (Oct 2020)
Things done

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux

[x] Tested, as applicable:

NixOS test sudo

[x] Fits CONTRIBUTING.md.

Possibly we can also remove line 9 inherit of the sudo package. I did just a short scroll over the file, but it looked quite unused now (which is good 😊).