Modulo

Description

It would be nice to have the modulo operator between two measures like we have m["m1"] * m["m2"], it could be useful to have m["m1"] % m["m2"]
I know it would be feasible via / and // operators, but it is still making it more complicated.
Context

A measure needed to divide by the number of days present in the AsOfDate year, therefore either divide by 365 or by 366.
Other information (if relevant)
Algorithm:

If the year is evenly divisible by 4, go to step 2. Otherwise, go to step 5.
If the year is evenly divisible by 100, go to step 3. Otherwise, go to step 5.
If the year is evenly divisible by 400, go to step 4. Otherwise, go to step 5.
The year is a leap year (it has 366 days).
The year is not a leap year (it has 365 days).

I like the idea of adding the modulo operator and it seems to be possible to override.
For this usecase of leap year can you add a store with the number of day per year and join it on the year field ?

2 notes about modulo:

it can be done with number which are decimals or negative
it does not returns the same result in Java and Python:

in Java (modulo of absolute values with the sign of the first one):
> 5 % 3
2
> 5 % -3
2
> -5 % -3
-2
> -5 % 3
-2

in Python
>>> 5 % 3
2
>>> 5 % -3
-1
>>> -5 % -3
-2
>>> -5 % 3
1

I think we should do it the Python way


Upgrade ng-bootstrap to 5.1.0

Related to https://github.com/jhipster/generator-jhipster/issues/10209

@vishal423 : if you want, I can do a release today, with this upgrade.
Just ping me


[1.19.2] Server crash when player enters portal

Server crash report: https://pastebin.com/V836B7Gu
Not much else to go off of other than the player reporting that every time he entered a specific portal by his base the server crashed.,

https://www.curseforge.com/minecraft/mc-mods/xl-packets-fabric
Please try installing this mod (both on the client and server) and let me know if the problem persists!

I use connectivity which expands packets just like XL Packets. Plus more.
On Wed, Feb 1, 2023, 10:04 AM Dominik Ziętko @.***>
wrote:

https://www.curseforge.com/minecraft/mc-mods/xl-packets-fabric
Please try installing this mod (both on the client and server) and let me
know if the problem persists!
—
Reply to this email directly, view it on GitHub
https://github.com/mim1q/MineCells/issues/25#issuecomment-1412496625,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AIL5CKGNYEYDYZZ5N6P5GX3WVKQS3ANCNFSM6AAAAAAUOAIRLI
.
You are receiving this because you authored the thread.Message ID:
@.***>

Having the same issue in single player, here is my log
https://mclo.gs/1c54t1Q

@itsdinkd I think that issue is probably related to Cardinal Components in some way. No idea how to get around it :/
@DanMeadWasTaken this is a different crash, actually. Had this reported once before - seems to only happen on Quilt, so it might have something to do with their implementation of Fabric API

@mim1q ah- alright, sorry for any confusion, is there anything i can do on my end? I'd like to use the mod, but don't wanna crash again lol - pretty much only using quilt bc one single mod which is quilt only and no fabric alternative to it.

@DanMeadWasTaken I released version 1.3.4 today - please check out if it changes anything

Well, this seems to fix it! thank you so much

Unfortunately, after the server updated to 1.3.4 version of mine cells, the server would still crash as soon as anyone entered a prison gate (The mod pack the server is using is Medieval MC (Fabric))

https://github.com/iPortalTeam/ImmersivePortalsMod/pull/705
This seems to be a possible solution, I'll try that out

@RCertainty I just released 1.3.5. Let me know if that fixes the crash!

Another player has confirmed that this issue should no longer be happening as of 1.3.5! Closing, let me know if the issue still persists in any way :)


Error: CreationErrors([NoAvailablePixelFormat, NoAvailablePixelFormat]) bug when compiling 0.8.7 in Windows Subsystem for Linux Ubuntu 20.04

In WSL2 Ubuntu, for some reason, when I compile and run the following main.rs (basic setup from the book)
use bracket_lib::prelude::*;

struct State {}

impl GameState for State {
    fn tick( &mut self, ctx: &mut BTerm ) {
	ctx.cls();
	ctx.print( 1, 1, "Hello, Bracket Terminal!" );
    }
}

fn main() -> BError{
    let context = BTermBuilder::simple80x50()
	.with_title( "Flappy Dragon" )
	.build()?;

    main_loop( context, State{} )
}

with an older Cargo.lock file, it runs just fine without errors.  However, with the latest version of Bracket-lib 0.8.7.  I get the following error:

Error: CreationErrors([NoAvailablePixelFormat, NoAvailablePixelFormat])

It is only when I substitute any new project with an older the Cargo.lock file that book code works again.  Can you please look into this problem as anyone buying the book lately and walking through the examples, may be running into this issue?
I only encountered this because I had some old compiled versions lying around from my first walk through of the text.  Hope this helps others out there!  I will continue copying over my lock file until this issue is resolved.

Hmm, WSL2 isn't an environment I typically test; I usually just either boot to Windows or Linux (it's working well on my native Windows setup). NoAvailablePixelFormat usually means that the driver isn't cooperating; maybe try installing Mesa?
I'll try and get a WSL setup going to test this.


Compatibility

Hi Thomas,
Could you list browser compatibility in the README.md?
Also, I noticed that you are using MicroLib-Utils you were very careful to define methods that allowed very good compatibility with IE.
Now, you have ES6 class without any built in compatibility polyfile for the class in MicroLib-Utils. Is that something that you are considering?
Thanks,
Bill

http://jscc.info/
is a good compatibility checker what would be worth running

I have not tested browser compatibility, but is something I would like to do, thank you for the link I'll give it a go.
The use of Es6 is entirely optional, if you have your own transpiler then you can use the Es6 code in your project. Otherwise, there is a compiled version in the dist folder.
The standalone versions include the utility methods from MicroLib-Utils while the files without standalone does not.


Improvement/add bitcoin chart sample

Should be merged into #1793

@imaNNeo this branch is now merged into #1793. You can delete it :)


Separate Windows and Unix deps | remove dependency on deprecated time crate

This might be a bit controversial wrt the separation of unix and windows deps. I'm not entirely sure what the intended behaviors are supposed to be.  But the net effect of this commit is that when you compile on Linux, it doesn't pull down or compile any of the windows based crates, this speeds things up and avoids potential snafus.

To fully realize the dependency splitting, this also relies on https://github.com/rust-lang-nursery/net2-rs/pull/33

Merged. Thanks.


PERF: Use ctable.resize to speed up BcolzMinuteBarWriter.truncate

This is significantly faster than the previous approach of writing a new
ctable with a slice of the existing table.

Coverage increased (+0.02%) to 87.014% when pulling a62982092723f182f17b421c47bf16877dea4be0 on speed-up-minute-bar-truncate into c89c618ccf25b552063e3b3b533eff8065806fc1 on master.


Static path to linked bins

index.js line 20 hard codes the path to binaries as .bin, which is the directory which contains linked binaries. If npm install is executed with the --no-bin-links option, gulp-protractor will fail to locate the binary files.

We need to find a dynamic approach for this... The Windows binary is always linked to node_modules/.bin so removing that reference is not an option. Probably something that looks in the node_modules/.bin first, and falls back to node_modules/protractor/bin if it can't find what it needs.


No functional channel service provider found. Try adding a dependency on the grpc-okhttp or grpc-netty artifact

Added:
implementation 'com.google.photos.library:google-photos-library-client:1.1.0'
Trying to exexecute this code:
PhotosLibrarySettings settings =
PhotosLibrarySettings.newBuilder()
.setCredentialsProvider(
FixedCredentialsProvider.create(UserCredentials.newBuilder()
.setClientId(GOOGLE_CLIENT_ID)
.setClientSecret(GOOGLE_CLIENT_SECRET)
.setAccessToken(new AccessToken("my access token", null))
.build()))
.build();
        PhotosLibraryClient photosLibraryClient =
                PhotosLibraryClient.initialize(settings);

Getting this error:
io.grpc.ManagedChannelProvider$ProviderNotFoundException: No functional channel service provider found. Try adding a dependency on the grpc-okhttp or grpc-netty artifact
Please help. What should I do to fix this issue

I was cut off using of this "shi..." library from my project.
And reimplemented all work with direct REST calls. "Thank you"
So question is not actual.

I have the same issue and cannot find any workaround.
Any idea how this can be solved?

I have the same issue and cannot find any workaround.
Any idea how this can be solved?
I fixed it like this way, pls see code below:
BUT! many fllowing issues I can not resolve, here is no supporting :( .
And I advice to reimplement Your code to direct REST calls - I already did it.

implementation ('io.grpc:grpc-protobuf:1.10.1'){
exclude group: 'org.apache.httpcomponents', module:'httpclient'
}
implementation ('io.grpc:grpc-stub:1.10.1'){
exclude group: 'org.apache.httpcomponents', module:'httpclient'
}
implementation ('com.google.api:gax:1.29.0'){
exclude group: 'org.apache.httpcomponents', module:'httpclient'
}
implementation ('io.grpc:grpc-okhttp:1.10.1'){
exclude group: 'org.apache.httpcomponents', module:'httpclient'
}
implementation ('com.google.photos.library:google-photos-library-client:1.1.0'){
exclude group: 'org.apache.httpcomponents', module:'httpclient'
}
implementation 'org.apache.httpcomponents:httpclient-android:<IP_ADDRESS>'

Thank you!
I tried the following dependencies and it works for me.  I have seen this problem and upon investigation, the code is internally trying to load android Application class with class.forName and if successful, it treats it as android and otherwise it is non android.
problem I saw was because some dependency I had android jar into my classpath (google guava android or so) so excluded that dependency and it worked pretty fine.
I think the error message should be improved and give more meaningful message than asking to add grpc-netty, because the error can happen even with grpc-netty in classpath.

@hmallepally Could you share some more details about the dependency issue? It would be great if you can share the exact dependency that's causing the problem. What did you have to exclude? Was this just grpc-netty?
(Note that this library is not tested/supported on Android yet. I believe some of our dependencies have Android-specific versions that may help address some of these issues too, otherwise this is something we may have to take further upstream.)

    implementation 'io.grpc:grpc-android:1.28.1'
    implementation 'io.grpc:grpc-okhttp:1.28.1'


Publishers in Python Nodes Should Be Asyncronous

swri_transfrom_util initializat_origin.py needs to be updated for this.
See http://wiki.ros.org/rospy/Overview/Publishers and Subscribers#queue_size:_publish.28.29_behavior_and_queuing

Both of the publishers in there look to me like they're already being initialized with a queue_size, which, according to the documentation, should make them asynchronous.  Are you seeing different behavior?

It looks like @elliotjo sneakily fixed it in 407916b14ba4c7d551987cfc1e47185b39cbb7b1


The new 'Methods per project phase' does not match the old page; the new page contains misplaced methods.

Some examples:

Ethical Check is placed in the 'Problem Definition' column. While it misses in the 'Evaluation' column.
A/B testing is placed in the 'Problem Definition' column. While it misses in the 'Realisation' column.
etc

Is this intentional? Or a bug.

@jovabel Thanks! Wasn't aware of that. You can change it in the MD files: https://github.com/HBO-i/ictresearchmethods.nl/tree/master/src/content/methods/text


[Violet Rails CI] Fix brakeman scan

Addresses: https://github.com/restarone/violet_rails/issues/1263

@donrestarone Shall I enable brakemann CI?

@alis-khadka you can turn brakeman on, since it's fixed now

I have enabled it. The brakemann CI will fail for other PRs since this has not been merged.


Update BYOC tests now that ingestion information is returned

in a recent update they now return additional information about BYOC tiles, the tests have been updated to reflect that.

Codecov Report
Base: 89.58% // Head: 89.82% // Increases project coverage by +0.24% :tada:

Coverage data is based on head (b53c449) compared to base (bd7f659).
Patch coverage: 100.00% of modified lines in pull request are covered.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop     #342      +/-   ##
===========================================
+ Coverage    89.58%   89.82%   +0.24%
===========================================
  Files           47       46       -1
  Lines         4415     4385      -30
===========================================
- Hits          3955     3939      -16
+ Misses         460      446      -14

Impacted Files
Coverage Δ

sentinelhub/api/ogc.py
93.82% <100.00%> (ø)

sentinelhub/aws/data.py
92.35% <100.00%> (ø)

sentinelhub/download/models.py
96.61% <100.00%> (ø)

sentinelhub/io_utils.py
85.96% <100.00%> (+7.58%)
:arrow_up:

sentinelhub/data_collections.py
96.38% <0.00%> (-0.46%)
:arrow_down:

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.


Feat/list routesets in adlib actions

Based off https://github.com/bbc/sofie-core/pull/18, only the last commit is relevant to this feature

Merged via upstream https://github.com/nrkno/sofie-core/pull/1301


fix(integration): unknown pytest.mark.volume_backup_restore

/usr/local/lib/python3.9/site-packages/_pytest/mark/structures.py:323
  /usr/local/lib/python3.9/site-packages/_pytest/mark/structures.py:323: PytestUnknownMarkWarning: Unknown pytest.mark.volume_backup_restore - is this a typo?  You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/latest/mark.html
    warnings.warn(

@mergify backport v1.5.x


hirak/prestissimo functionality was lost in v1.10.0

Describe the bug
The composer caching speedup of hirak/prestissimo seems to have been lost in v1.10.0
It should be restored...
To Reproduce
Steps to reproduce the behavior:

Go to '...'
Click on '....'
Scroll down to '....'
See error

Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Version and configuration information (please complete the following information):

Host computer OS and Version: [e.g. Windows 10, macOS High Sierra]
Docker version information (use docker version) and insert it here.
ddev version information (use ddev version)
config.yaml contents for the misbehaving project
Do you have any custom configuration (nginx, php, mysql) in the .ddev folder? If so, have you tried without them?

Additional context
Add any other context about the problem here. Thanks!

Nobody seems to mind that this went away. Closing.


INNER JOIN doesnt seem to like grouping parantheses

The following query parses fine:
SELECT * FROM table1 INNER JOIN table ON table1.column_name = table2.column_name WHERE table1.column_name=1

But this one doesn't:
SELECT * FROM table1 INNER JOIN (table) ON (table1.column_name = table2.column_name) WHERE table1.column_name=1

Which is however accepted by mysql.

Looks like this is the general FROM expression which doesn't seem to like parentheses:
SELECT * FROM (tab)

fails with the same problem.

	at net.sf.jsqlparser.parser.CCJSqlParser.generateParseException(CCJSqlParser.java:16869)
	at net.sf.jsqlparser.parser.CCJSqlParser.jj_consume_token(CCJSqlParser.java:16722)
	at net.sf.jsqlparser.parser.CCJSqlParser.FromItem(CCJSqlParser.java:3752)
	at net.sf.jsqlparser.parser.CCJSqlParser.JoinerExpression(CCJSqlParser.java:4298)
	at net.sf.jsqlparser.parser.CCJSqlParser.JoinsList(CCJSqlParser.java:4177)
	at net.sf.jsqlparser.parser.CCJSqlParser.PlainSelect(CCJSqlParser.java:2682)

this is also valid:
select * from ((TABLE_A), (TABLE_b as b));

lets see if i manage to teach javacc that nesting ;)

Looked not yet into it. Keep an eye on performance. Regarding this parenthesis processing is very problematic.

@wumpz i think you fixed this!


An asp.net core web api application, using "UseWindowsService", reports an error “System.NotSupportedException: The content root changed. Changing the host configuration is not supported ” when starting the service

System

Provider

[ Name]  .NET Runtime

EventID 1026

[ Qualifiers]  0
Version 0
Level 2
Task 0
Opcode 0
Keywords 0x80000000000000

TimeCreated

[ SystemTime]  2021-09-26T05:59:39.0432975Z
EventRecordID 14008
Correlation

Execution

[ ProcessID]  0
[ ThreadID]  0
Channel Application
Computer USER-20210710BJ
Security

EventData
Application: ZhaoyangParking.exe CoreCLR Version: <IP_ADDRESS>113 .NET Version: 6.0.0-rc.1.21451.13 Description: The process was terminated due to an unhandled exception. Exception Info: System.NotSupportedException: The content root changed. Changing the host configuration is not supported at Microsoft.AspNetCore.Builder.ConfigureHostBuilder.ConfigureHostConfiguration(Action1 configureDelegate) at Microsoft.Extensions.Hosting.HostingHostBuilderExtensions.UseContentRoot(IHostBuilder , String ) at Microsoft.Extensions.Hosting.WindowsServiceLifetimeHostBuilderExtensions.UseWindowsService(IHostBuilder hostBuilder, Action1 configure) at Microsoft.Extensions.Hosting.WindowsServiceLifetimeHostBuilderExtensions.UseWindowsService(IHostBuilder hostBuilder) at Program.$(String[] args) in E:\Learn\ZhaoyangParking\ZhaoyangParking\Program.cs:line 20

But There is nothing wrong with the program in .NET Version: 6.0.0-preview.7.21377.19

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

ID: b0bd8cb8-7e28-8c4d-a550-3aea8f3ab4dd
Version Independent ID: 4b60d24e-ef05-15e5-10b4-483094081bf3
Content: Host ASP.NET Core in a Windows Service
Content Source: aspnetcore/host-and-deploy/windows-service.md
Product: aspnet-core
Technology: aspnetcore-hostdeploy
GitHub Login: @Rick-Anderson
Microsoft Alias: riande

We need to update the windows service hosting document https://docs.microsoft.com/en-us/aspnet/core/host-and-deploy/windows-service?view=aspnetcore-5.0&tabs=visual-studio to mention that the service should be created passing the --contentRoot argument.
We might want to do the same here for good measure:
https://docs.microsoft.com/en-us/dotnet/core/extensions/windows-service#create-the-windows-service cc @IEvangelist

We need to update the windows service hosting document https://docs.microsoft.com/en-us/aspnet/core/host-and-deploy/windows-service?view=aspnetcore-5.0&tabs=visual-studio to mention that the service should be created passing the --contentRoot argument.
We might want to do the same here for good measure:
https://docs.microsoft.com/en-us/dotnet/core/extensions/windows-service#create-the-windows-service cc @IEvangelist

Thanks for the heads up @davidfowl - see https://github.com/dotnet/docs/issues/26274

See Create the Windows Service
https://github.com/dotnet/docs/pull/26372/files:

[!TIP]
If you need to change the content root of the host configuration, you can pass it as a command-line argument when specifying the binpath:
sc.exe create "Svc Name" binpath="C:\Path\To\App.exe --contentRoot C:\Other\Path"

Yes, we plan to make this a bit more seamless so nothing has to be changed by default.

I am trying to create my service with the new --contentRoot argument but am experiencing this issue where the argument isn't accepting a space character:
sc.exe create Diagnostics binPath="C:\Program Files\Diagnostics\Diagnostics.exe --contentRoot C:\Program Files\Diagnostics"
Application: Diagnostics.exe
CoreCLR Version: 6.0.322.12309
.NET Version: 6.0.3
Description: The process was terminated due to an unhandled exception.
Exception Info: System.IO.DirectoryNotFoundException: C:\Program\

@DapperDeer .exe path should be quoted ref

In my case it works with:
sc create MyApp binpath="C:\Program Files\Contoso\MyApp\bin\MyApp.exe --contentRoot C:\Program Files\Contoso\MyApp\bin\"

2 years later, we still face the same issue
@davidfowl can you tell me if there is a reason to set the ContentRootPath only when the application run as a Windows service ?

ContentRootPath = WindowsServiceHelpers.IsWindowsService() ? AppContext.BaseDirectory : default

also if this is still considered as a workaround, is there a cleaner way to start a Krestrel as a Windows service ?

What version of .NET are you running?

net6.0 LTS

It's fixed in .NET 7+

Thanks for the update, i will check that with incoming net8.0 upgrade

Apologies for digging up an old thread, but I'm unable to set the content root path, no matter what I do. My application is self-contained, single executable, and I want to host it as a Windows Service. I applied the above snippet and tried to create the service with --contentRoot, but it just doesn't do anything and my Content Root is always pointing to a folder in Windows. The target framework is .NET 6. Any ideas how I can fix it?

@davidfowl answer solved the issue on my side for my .net 6 version
https://github.com/dotnet/AspNetCore.Docs/issues/23387#issuecomment-927317675
if it's not your case, try to reproduce your issue with minimal code and post it here so we can help you solve your problem


Bolding

Know.
Pt., 9.12.2022, 18:44 użytkownik Dontrell Henry @.***>
napisał:

—
Reply to this email directly, view it on GitHub
https://github.com/FrederikBolding/chainlist/issues/23, or unsubscribe
https://github.com/notifications/unsubscribe-auth/ASNUMR7OAOXYH2PQU56Q5VLWMNVYFANCNFSM6AAAAAASZS4LTE
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>


Update bootstrap.sh

fix nest cmake with specific checkout (line 111 in boostrap.sh).

merged with your requested changes.


Enable TCP

So I got some problems getting answer from my VPS for domains like images.apple.com (and several others). Dig said:
dig images.apple.com
;; Truncated, retrying in TCP mode.
;; Connection to ***.***.***.*** #53(***.***.***.***) for images.apple.com failed: connection refused.

So I enabled TCP by adding following rules to iptables:
sudo iptables -t nat -A PREROUTING -i ${IFACE} -p tcp --dport 53 -j REDIRECT --to-port 5353 && \
sudo iptables -A INPUT -p tcp -m tcp --dport 5353 -j ACCEPT && \
sudo iptables -A INPUT -p tcp -m tcp --dport 53 -j ACCEPT && \

Inserted them on position INPUT 6 and INPUT 8 respectively.
And then enabled TCP port 53 for the bind container by adding following in docker-compose/netflix-proxy.yaml.template:
    - "53:53/tcp"

Now everything works like a charm. Is there anything that I might have missed out on? Anything that makes this insecure regarding DDoS etc?

Is there any reason you want to run DNS over TCP rather than default (and arguably faster) UDP?

Yes, as I wrote in my first post: When querying the server for some particular adresses (i.e. images.apple.com), I get no answer because of the size of the message. Or have I missed something?

Do you get the same when you dig images.apple.com @<IP_ADDRESS>?

No, <IP_ADDRESS> does answer correctly.

 Could there be something between your client and the proxy fiddling with network traffic, like a (miss-configured?) firewall?
-- ab1

Hmm, that's strange. I don't think there's any firewall in between. Anyway, it doesn't really matter if some queries once in a while are handled with TCP. But back on topic, is there anything that makes this insecure regarding DDoS etc?

Well, you've opened an extra ports, so the attack surface increased. Something to thing about. Also, DNS TCP is used for zone transfers. Make sure you can not do a zone transfer from an unauthorised IP, just to be sure. Lookup how to do it with dig.

Zone transfers seems to be blocked. This is the output:
$ dig axfr @xx.xx.xx.xx svtplay.se +tcp

; <<>> DiG 9.9.5-9+deb8u9-Debian <<>> axfr @xx.xx.xx.xx svtplay.se +tcp
; (1 server found)
;; global options: +cmd
; Transfer failed.

Looks good then.

Perfect! Thanks! Let's close this issue then.


OCPInit doc

@PierreMartinon missing info in doc towards OCPInit

See https://github.com/control-toolbox/CTBase.jl/pull/157.


[BUG] selinux RPM installation issues from copr

What happened:
SELINUX rpm is not working
What you expected to happen:
semodule --list | grep microshift to show microshift rules installed
How to reproduce it (as minimally and precisely as possible):
sudo dnf module -y enable cri-o:1.21
sudo dnf copr enable -y @redhat-et/microshift
sudo dnf install -y microshift firewalld
sudo systemctl enable crio --now
sudo systemctl enable microshift --now
Anything else we need to know?:
n/A
Environment:

Microshift version (use microshift version): 4.8.0-0.okd-2021-10-10-030117
Hardware configuration: amd 64
OS (e.g: cat /etc/os-release): RHEL 8.4
Kernel (e.g. uname -a):
Others:

Relevant Logs
  Preparing        :                                                                                1/1
  Reinstalling     : microshift-selinux-4.8.0-2021_11_19_125431.el8.noarch                                                                                1/2
  Running scriptlet: microshift-selinux-4.8.0-2021_11_19_125431.el8.noarch                                                                                1/2
libsemanage.semanage_pipe_data: Child process /usr/libexec/selinux/hll/pp failed with code: 255. (No such file or directory).
microshift: libsepol.policydb_read: policydb module version 20 does not match my version range 4-19
microshift: libsepol.sepol_module_package_read: invalid module in module package (at section 0)
microshift: Failed to read policy package
libsemanage.semanage_direct_commit: Failed to compile hll files into cil files.
 (No such file or directory).
/usr/sbin/semodule:  Failed!

We need to build the RPM from a system that has an libsepol version that works with Fedora and RHEL

Hmmm, nice, I wonder why the EL8 builder uses a newer version. May be we can force the version down to <=19 on the BuildRequires?
May be we should run a dnf update on the RHEL8.4 host?
@cooktheryan did you try something like that?

Thanks for finding this and reporting

Centos 8 stream is facing this as well
libsemanage.semanage_pipe_data: Child process /usr/libexec/selinux/hll/pp failed with code: 255. (No such file or directory).
microshift: libsepol.policydb_read: policydb module version 20 does not match my version range 4-19
microshift: libsepol.sepol_module_package_read: invalid module in module package (at section 0)
microshift: Failed to read policy package
libsemanage.semanage_direct_commit: Failed to compile hll files into cil files.
 (No such file or directory).
/usr/sbin/semodule:  Failed!

https://github.com/containers/container-selinux/blob/main/contrib/container-selinux.spec


pip installation on OSX

Installation
pip install lutorpy

won't install unless you
export CC=gcc-6
export CXX=g++-6

This is because
 clang -fno-strict-aliasing -fno-common -dynamic -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DLUA_COMPAT_ALL -I/Users/atcold/torch/install/include -I/Users/atcold/torch/install/include/TH -I/usr/local/lib/python2.7/site-packages/numpy/core/include -I/usr/lo
cal/include -I/usr/local/opt/openssl/include -I/usr/local/opt/sqlite/include -I/usr/local/Cellar/python/2.7.12_1/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c lutorpy/_lupa.c -o build/temp.macosx-10.11-x86_64-2.7/lutorpy/_lupa.o -std=c++0x -Wno-unused-func
tion -Wno-unreachable-code -Wno-strict-prototypes
  error: invalid argument '-std=c++0x' not allowed with 'C/ObjC'
  error: command 'clang' failed with exit status 1

Importing
After having it installed, it won't import in python, and produces the following error
In [1]: import lutorpy as lua
---------------------------------------------------------------------------
LuaError                                  Traceback (most recent call last)
<ipython-input-1-ab626d710fb4> in <module>()
----> 1 import lutorpy as lua

/usr/local/lib/python2.7/site-packages/lutorpy/__init__.pyc in <module>()
     72     return luaRuntime
     73
---> 74 LuaRuntime()
     75
     76 class global_injector:

/usr/local/lib/python2.7/site-packages/lutorpy/__init__.pyc in LuaRuntime(*args, **kwargs)
     69     if not 'zero_based_index' in kwargs:
     70         kwargs['zero_based_index']=True
---> 71     luaRuntime = lutorpy._lupa.LuaRuntime(*args, **kwargs)
     72     return luaRuntime
     73

lutorpy/_lupa.pyx in lutorpy._lupa.LuaRuntime.__cinit__ (lutorpy/_lupa.c:4642)()

LuaError: Failed to initialise Lua runtime

Alright, tried to import lupa and I get an ImportError: No module named lupa. So, I guess there are missing dependencies in the pip installation procedure.
pip install lupa

Now lupa imports just fine, but importing lutorpy as lua gives Segmentation fault: 11.
 Different bug while doing the same thing.
In [1]: import lupa

In [2]: import lutorpy
PANIC: unprotected error in call to Lua API (attempt to index a nil value)
Abort trap: 6

And even more variety
In [1]: import lutorpy
---------------------------------------------------------------------------
LuaError                                  Traceback (most recent call last)
<ipython-input-1-db94a7dcb3df> in <module>()
----> 1 import lutorpy

/usr/local/lib/python2.7/site-packages/lutorpy/__init__.pyc in <module>()
     72     return luaRuntime
     73
---> 74 LuaRuntime()
     75
     76 class global_injector:

/usr/local/lib/python2.7/site-packages/lutorpy/__init__.pyc in LuaRuntime(*args, **kwargs)
     69     if not 'zero_based_index' in kwargs:
     70         kwargs['zero_based_index']=True
---> 71     luaRuntime = lutorpy._lupa.LuaRuntime(*args, **kwargs)
     72     return luaRuntime
     73

lutorpy/_lupa.pyx in lutorpy._lupa.LuaRuntime.__cinit__ (lutorpy/_lupa.c:4642)()

LuaError: Failed to initialise Lua runtime

In [2]: import lutorpy
---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
<ipython-input-2-db94a7dcb3df> in <module>()
----> 1 import lutorpy

/usr/local/lib/python2.7/site-packages/lutorpy/__init__.py in <module>()
     10 assert not os.path.exists('./lutorpy/_lupa.pyx'), 'PLEASE DO NOT IMPORT LUTORPY FROM SOURCE CODE FOLDER.'
     11
---> 12 from lutorpy import torch_path
     13
     14 TorchInstallPath = torch_path.__torch_path__

ImportError: cannot import name torch_path

duplicate of #13

@oeway, this issue is unrelated from #13.
Here I am using python2. In #13 python3 is used instead.
Here I can install with pip just fine, in #13 the code has to be installed from source.

Hi @Atcold ,
It is related because we haven't figure out how to compile lutorpy(or lupa) with the torch luajit on OSX. You can check my comments in #13, I was actually trying with python2.7.
I will give another try and let you know if it works.

@Atcold
I haven't figure out how to solve it, I have some trouble to load library.
Could you please try to reinstall torch with Lua 5.2 instead of LuaJIT?
You can find how to do it here: http://torch.ch/docs/getting-started.html
You need to remove lutorpy and torch completely, if you installed lua with homebrew for example, you should also remove it.
Then you install torch with Lua 5.2, followed by lutorpy with pip.
Then try to import lutorpy and use 'nn' module for example.
Thank you.

OK, thank you for getting back to me.
I'll give it a try. But on my Ubuntu box everything works just fine with LuaJIT.
I'm wondering where I specify which torch installation to use for lupa and lutorpy. Is there a config file somewhere?


Autocompletion for transform doesn't suggest origin

Godot version:
ae42cb7
Issue description:

not only origin it doesn't suggest for every builtin property


Feature/ui update import tool

What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)
Small UI/style updates to get the Import journey and single import page looking a bit nicer, easier to read, and some visual updates like a global UI button overhaul and some visual/animation updates to the single import page loader-bar to make users feel like something is happening.

What is the current behavior? (You can also link to an open issue here)
Currently the button styles are the default ones from the framework css included in the assets folder, there are a few style issues that I have picked up just RE: alignment, information hierarchy etc and the loader-bar in the single import page was a bit stale/potentially frustrating for users doing slow and long imports. The new animation should help it feel a bit faster ;)

What is the new behavior (if this is a feature change)?
No behavioural/functional changes, just UI/visual and copy updates.

Apologies for the delay, have been traveling a lot. I am loving the changes, thanks :)

No worries, I made another PR as well with UI updates and issue fixes to the Roundtrip UI as well.


Celluloid::Future explicit signalling issue

I'm having troubles with the usage of Celluloid::Future to allow awaiting on the result of a Celluloid workload.
Psudocode:
future = Celluloid::Future.new
future.signal(1234)
future.value #=> NoMethodError: undefined method `value' for 1234:Fixnum

A workaround:
future = Celluloid::Future.new
future.signal(Struct.new(:value).new(1234))
future.value #=> 1234

What am I doing wrong?  Must futures be invoked as a method enhancement (actor.future.method_name) or with a block (Celluloid::Future.new { do_work })? Or should they be able to be used explicitly as indicated above?

@stavro are you trying to signal the Future above? Maybe describe what you expect?

I would expect calling .value on a Celluloid::Future to either block the calling thread or return the final value immediately .. instead I see a NoMethodError

Well yeah, value is being called on 1234 ... that's a NoMethodError caused at Result#value not Future#value

You shouldn't use Celluloid::Future like that directly. You either need to give it a block, or call the #future method on an actor proxy

https://github.com/celluloid/celluloid/blob/master/lib/celluloid/future.rb#L102
https://github.com/celluloid/celluloid/blob/master/lib/celluloid/future.rb#L137

Please let us know if you have any problems. So far celluloid is behaving properly and you're getting NoMethodError from Celluloid::Future::Result as designed.


[#DEV-6320] Fixes MemeLeaks

Cullsettings being allocated each camera cullvisits
CullingSet stack reserve "cursor" wasn't rersetted to 0
Those were the last vec2/3/4 & Matrix Leaks during render loop.
/!\ changes in polytope/planes

very cool to eliminate leak

@jtorresfabra there is some changes in CullSettings/Polytope/Planes you might want to check

@Kuranes I will do it, thanks for the advice.


Added uncharged subtext for sang staff/scythe vitur

Description:

added unchargd to the uncharged versions of sanguinesti staff & Scythe of vitur.

Changes:
Other checks:

[ ] I have tested all my changes thoroughly.

@LuxrayElite how's this?

@TastyPumPum ty SO very much for what you did! for real

@themrrobert can you look at this & merge it if all checks out?


LTI tool launch with Docker, Mysql support

LTI launch with Docker setup connecting to MySQL Database. The LTI Library supports Multi-tenent so you can configure from any platform. I tried to add documentation and bare minimum.
LTI registration from Django Admin view(LTI Tool)

LTI configuration from Canvas(Platform): look for the example setup in lti-redirect-pu and add the LTI tool to a course or account level. get the deployment ID and added to LTI tool
This is a bare minimum setup more work to come

CSP configuration, adding logging
Registing the LTI user to Django auth_user table mostly what MyLA does after user launches the tool
Make an API call to Maizey endpoint

I will merge the PR if no more objection

:shipit:


cocomac: Blacklist slot[\W_]*online

cocomac requests the blacklist of the keyword slot[\W_]*online. See the MS search here and the Stack Exchange search in text, in URLs, and in code.

slot[\W_]*online has been seen in 122 true positives, 0 false positives, and 0 NAAs.

Approved by cigien in Charcoal HQ


Adding path to native dll search paths

At this moment I can use
[DllImport("kernel32.dll", CharSet = CharSet.Ansi, SetLastError = true)]
public static extern bool SetDllDirectory(string lpPathName);

This works in windows, naturally not in another platform, is there any api to use to put search path  native dll load?

@andrew-vandenbrink this sounds like a general .NET question so I recommend asking on https://github.com/dotnet/coreclr/. However, the short answer as far as I know is that there's no automatic way. Instead you can have different sets of DllImports and use the right one based on runtime OS detection. As far as changing the search paths, I'm really not sure and you'd need to ask the .NET / CoreCLR folks.
You can see some patterns that ASP.NET uses in Kestrel:

https://github.com/aspnet/KestrelHttpServer/blob/00b8a13b5526bad646e35da64c00c176a942f057/src/Microsoft.AspNetCore.Server.Kestrel/Networking/Libuv.cs
https://github.com/aspnet/KestrelHttpServer/blob/b062f851dcb1fc9013952fe72e9a087ae36323fe/src/Microsoft.AspNetCore.Server.Kestrel/Networking/PlatformApis.cs


Sending commands to jasper from another python script

Is this possible with a module or a terminal command? Im not talking about the running it with the local flag but rather have other programs interact with jasper by sending it a text string and have jasper execute the action as if it heard it and translated it to text.

Currently, there is not proper way to do that, although you can write your own notifier (in client/notifier.py).


Need URLs differentiated by language

If a bibitem has two URLs, that are differentiated by language, add "language" as an attribute to them alongside "type", so that I can select as appropriate. This is the same behaviour already implemented for bibitem titles.
Needed for https://github.com/metanorma/bipm-si-brochure/issues/192

Languages are added to the URLs
https://github.com/relaton/relaton-data-bipm/blob/6267fb5b243853114459f3578dfec5ca9058e58f/data/cctf/meeting/5.yaml#L19-L23

The good news is that you've implemented this. The bad news is... I'm not at all convinced you've got the right URLs in there:
  <uri type="src">https://www.bipm.org/en/committees/ci/cipm/42-1948</uri>
  <uri type="pdf">https://www.bipm.org/documents/20126/59880031/CIPM1948.pdf/d48b0007-6e43-bc7f-f80a-2489784c1471</uri>
  <uri type="src" language="en" script="Latn">https://raw.githubusercontent.com/metanorma/bipm-data-outcomes/main/cipm/meetings-en/meeting-42.yml</uri>
  <uri type="src" language="fr" script="Latn">https://raw.githubusercontent.com/metanorma/bipm-data-outcomes/main/cipm/meetings-fr/meeting-42.yml</uri>

What is required is an alternation between https://www.bipm.org/en/committees/ci/cipm/42-1948 and https://www.bipm.org/fr/committees/ci/cipm/42-1948 . The two provided links to https://raw.githubusercontent.com/metanorma/bipm-data-outcomes/main/cipm/meetings-en/meeting-42.yml and https://raw.githubusercontent.com/metanorma/bipm-data-outcomes/main/cipm/meetings-fr/meeting-42.yml cannot be inserted into the brochure as links.
The expectation in Metanorma is that any URI to be used to link from a bibliographic citation. So I expect to see:
  <uri type="citation" lang="en">https://www.bipm.org/en/committees/ci/cipm/42-1948</uri>
  <uri type="citation" lang="fr">https://www.bipm.org/fr/committees/ci/cipm/42-1948</uri>
  <uri type="pdf">https://www.bipm.org/documents/20126/59880031/CIPM1948.pdf/d48b0007-6e43-bc7f-f80a-2489784c1471</uri>
  <uri type="src" language="en" script="Latn">https://raw.githubusercontent.com/metanorma/bipm-data-outcomes/main/cipm/meetings-en/meeting-42.yml</uri>
  <uri type="src" language="fr" script="Latn">https://raw.githubusercontent.com/metanorma/bipm-data-outcomes/main/cipm/meetings-fr/meeting-42.yml</uri>

@opoudjis is correct here, we need the correct URIs for the original pages at bipm.org:
This is the English page:
https://github.com/relaton/relaton-data-bipm/blob/6267fb5b243853114459f3578dfec5ca9058e58f/data/cctf/meeting/5.yaml#L17-L18
The corresponding French link is missing (they are available at bipm-data-outcomes).

@andrew2net the implementation here is incomplete, we also need the "other" URL to be in French:
https://github.com/relaton/relaton-data-bipm/blob/6267fb5b243853114459f3578dfec5ca9058e58f/data/cctf/meeting/5.yaml#L17-L18

fixed in v 1.13.11 https://github.com/relaton/relaton-data-bipm/blob/e0a4b88fb376b4ab8f93b7dd2c640fee6fbf00c1/data/cctf/meeting/5.yaml#L17-L24

Note that in
https://github.com/relaton/relaton-data-bipm/blob/e0a4b88fb376b4ab8f93b7dd2c640fee6fbf00c1/data/cctf/meeting/5.yaml#L17-L24
- content: https://www.bipm.org/en/committees/cc/cctf/5-1970
  type: citation
  language: en
  script: Latn
- content: https://www.bipm.org/en/committees/cc/cctf/5-1970
  type: citation
  language: fr
  script: Latn

the second link is meant to be https://www.bipm.org/en/committees/cc/cctf/5-1970 !! Please double check.

@opoudjis it seems the source has the wrong link https://github.com/metanorma/bipm-data-outcomes/blob/55bba1f2de0e4fce665dcd3cfc341db5ca879f38/cctf/meetings-fr/meeting-5.yml#L7
Do you want me to solve the issue using a hardcode?

@andrew2net we need to fix the data.

fixed https://github.com/relaton/relaton-data-bipm/blob/a136990076c8f8fcaa3c62a0286deb21e48f5f5c/data/cctf/meeting/5.yaml#L21


addChild() convenience suggestion

Phaser provides us with the addChild() and addChildAt() methods for Phaser.Sprite. This adds them to an array of Sprites, called children in the parent Sprite. However, working with indexes can be tricky and a bit difficult. If you need to attach a lot of child Sprites to another Sprite and then manipulate them, you need to know at which index they're located.
My suggestion is to add an additional argument to addChild() and get the following:
var myParent = game.add.sprite(0, 0, 'image'),
    myChild = game.add.sprite(0, 0, 'image2');

myParent.addChild(myChild, 'myChlidName');
myParent.children.myChildName.alpha = 0.5; // or something else

If the second argument is not given, the function could work like it does now - assign an incrementing number as the key. For example:
var myParent = game.add.sprite(0, 0, 'image'),
    myFirstChild = game.add.sprite(0, 0, 'image2'),
    mySecondChild = game.add.sprite(0, 0, 'image2'),
    myThirdChild = game.add.sprite(0, 0, 'image2');

myParent.addChild(myFirstChild);
myParent.addChild(mySecondChild, 'myChlidName');
myParent.addChild(myThirdChild);

myParent.children.myChildName // references mySecondChild
myParent.children[0] // references myFirstChild
myParent.children[1] // references myThirdChild

Currently, I'm using this way to provide easier access to the child:
var myParent = game.add.sprite(0, 0, 'image'),
    myChild = game.add.sprite(0, 0, 'image2');

myParent.addChild(myChild);
myParent.ref_myChild = myChild;
myParent.ref_myChild.alpha = 0.5;

And I find this pretty annoying, especially when I have lots of child Sprites.
Implementing this would require the children property of Phaser.Sprite to be an Object, instead of an Array, I think. However, if it causes no significant difficulties for the engine, things my become a lot easier, in my opinion.

You can extend Sprite and them over ride the addChild method to accept this
parameter and search the children for you.
On Jul 8, 2016 2:44 PM, "Hristiyan Dodov"<EMAIL_ADDRESS>wrote:

Phaser provides us with the addChild() and addChildAt() methods for
Phaser.Sprite. This adds them to an array of Sprites, called children in
the parent Sprite. However, working with indexes can be tricky and a bit
difficult. If you need to attach a lot of child Sprites to another Sprite
and then manipulate them, you need to know at which index they're located.
My suggestion is to add an additional argument to addChild() and get the
following:
var myParent = game.add.sprite(0, 0, 'image'),
myChild = game.add.sprite(0, 0, 'image2');
myParent.addChild(myChild, 'myChlidName');
myParent.children.myChildName.alpha = 0.5; // or something else
If the second argument is not given, the function could work like it does
now - assign an incrementing number as the name.
Currently, I'm using this way to provide easier access to the child:
var myParent = game.add.sprite(0, 0, 'image'),
myChild = game.add.sprite(0, 0, 'image2');
myParent.addChild(myChild);
myParent.ref_myChild = myChild;
myParent.ref_myChild.alpha = 0.5;
And I find this pretty annoying, especially when I have lots of child
Sprites.
Implementing this would require the children property of Phaser.Sprite to
be an Object, instead of an Array, I think. However, if it causes no
significant difficulties for the engine, things my become a lot easier, in
my opinion.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/photonstorm/phaser/issues/2608, or mute the thread
https://github.com/notifications/unsubscribe/ABB3pwkUvbqqFGcdcibit12uOVvtP00lks5qTpp_gaJpZM4JISvN
.

Yep, I know. But it would be nice if people can have it without writing it themselves. An engine's job is to make things as easier as it can.

I don't disagree but you said your current approach was frustrating -- so you can always wrap things to make them easier. :(

You can just do
sprite.aChild = sprite.addChild(…);
// or even
sprite.children.aChild = sprite.addChild(…);

Thank you for taking the time to open this issue. However, official support for Phaser 2 has now ended as we focus on preparing Phaser 3 for beta release. In a bid to keep the project tidy, and avoid confusion, we are closing all v2 related issues.
This does not mean your issue won't be looked-at. In November 2016 the Phaser CE (Community Edition) project began. The aim of Phaser CE was to allow the community to continue v2 development. Since then it has gained significant traction, with many updates and releases.
If you are still interested in having your issue investigated we strongly recommend testing the latest Phaser CE release. And only if the problem persists, opening an issue on the Phaser CE repo.


Se actualiza version de cache de librerias circleci e imagen docker p…

…ara deploy

Codecov Report

Merging #5 into develop will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff            @@
##           develop       #5   +/-   ##
========================================
  Coverage    68.04%   68.04%
========================================
  Files            4        4
  Lines           97       97
  Branches        11       11
========================================
  Hits            66       66
  Misses          31       31

Continue to review full report at Codecov.

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


Glad someone made this but, how do I start it?

IDK if I'm dumb or something but I can't for the life of me find a way to actually start this thing as its own programme.
I've gone through every file I could open and there's no .exe or .bat files that could start it. Tried opening a few of the files that would open in Visual Studio Code but the most I've used VSC for is making simple html websites for school so I'd have no idea how to start it from there if that's even possible.
Maybe you could add some instructions to the readme?

It's okay. It is also my bad to not include some instructions on how to get started using this program.
Here's the way to download and use it...

Download the package from the releases page. Most likely your system will work with RecipeMechanic_win-x64.zip.
Run RecipeMechanic.exe. If it doesn't run, try installing .NET 6.0 desktop runtime.
Click File and then Open. Navigate to Scrap Mechanic's executable (ScrapMechanic.exe). Most likely your executable location is C:\Program Files (x86)\Steam\steamapps\common\Scrap Mechanic\Release
Select a recipe file to edit, once done then click File and then Save and you're done!

Note: It is recommended to backup the game first before starting, so in the program, click Game and then Steam Backup Wizard and proceed with the instructions given by the wizard.

I tried to explain it as simple as possible. If there's any further questions, ask right away.
And also, it's been awhile since I've updated this program. You can create a new issue regarding any problems with the program and I will try to resolve it as soon as possible.

Thank you so much! I don't use GitHub so I don't even know how to navigate to the releases page lol.
This makes so much more sense than what I had downloaded earlier.
Thank you for the speedy response too, very cool!


Skipping endWindow and operator is shutdown prematurely

If an operator is terminated prematurely by the engine in case such as upstream partitioning calling endWindow can lead to wrong results, for example if the operator is a db operator committing transactions in endWindow. This fixes this case. Additional work needs to be done to notify the operator of such situations such as by using a listener callback which will be done in future.
@tweise  please see

We talked about this. This is causing a bug right now with the operators. Many operators assume that the endWindow callback is always called at the end of processing all the tuples in the window and do some persistent processing, e.g., database operators commit transactions in endWindow and ignore the data for those windows in replay and would result in wrong results, idempotent operators write persistent state in endWindow. Immaterial of what the original intent was it is currently being interpreted as being called after all tuples in window are processed. Hence the change. There will be additional work to notify the operator via a listener callback if it was terminated prematurely by the system. That is coming. Doing it as a listener avoids having to change endWindow semantics and cause backwards incompatibility.

+1 for making this change. It's a bug that breaks processing guarantees. @PramodSSImmaneni Can you please create an APEX JIRA.

Sorry for not including the JIRA number APEX-58

Please add JIRA reference to commit message.

Addressed comments


feat: add dot language parser

What was a problem
Could not handle assets written in dot language.
How this PR fixes the problem
By parsing the dot language and converting it to the AST format, the assets of the dot language can be handled programmatically.

Since the parser is provided by the following library, related functions have been deleted.
https://github.com/ts-graphviz/parser


[Update] Update image versions

Automated changes by create-pull-request GitHub action

Codecov Report
Base: 83.14% // Head: 82.81% // Decreases project coverage by -0.32% :warning:

Coverage data is based on head (eab00b0) compared to base (11caf3d).
Patch has no changes to coverable lines.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop     #152      +/-   ##
===========================================
- Coverage    83.14%   82.81%   -0.33%
===========================================
  Files           38       38
  Lines         2426     2426
===========================================
- Hits          2017     2009       -8
- Misses         323      329       +6
- Partials        86       88       +2

Flag
Coverage Δ

unittests
82.81% <ø> (-0.33%)
:arrow_down:

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

Impacted Files
Coverage Δ

cli/cli_utils.go
86.95% <0.00%> (-3.87%)
:arrow_down:

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.


FreeBSD: IPsec raw ESP is not working?

It appears IPsec raw ESP (using IP protocol num.50) is not working on FreeBSD.
I'm not sure this is the limitation of BSD os or not. Just for the record.
NOTE: I haven't tested it on Linux yet.
Prerequisites

[x] Can you reproduce?
[x] Are you running the latest version of SoftEtherVPN?

SoftEther version: 5.01.9674
Component: Server
Operating system: FreeBSD 12-STABLE
Architecture: amd64
Processor: Intel(R) Core(TM) i7-3770 CPU @ 3.40GHz
Description
If the client doesn't support IPsec NAT-T, in other words, both of the following capabilities are false,

caps.NatTraversalDraftIetf
caps.NatTraversalRfc3947

The code reaches here: https://github.com/SoftEtherVPN/SoftEtherVPN/blob/488eb06d64df8cb9e020efd338b437d1268bc3ac/src/Cedar/Proto_IKE.c#L3167-L3175
This fact implies IsUdpPortOpened(ike->IPsec->UdpListener, &p->DstIP, IPSEC_PORT_IPSEC_ESP_RAW))  returns false, SoftEther is not listening on raw ESP.
https://github.com/SoftEtherVPN/SoftEtherVPN/blob/488eb06d64df8cb9e020efd338b437d1268bc3ac/src/Cedar/Proto_IKE.c#L3100
Expected behavior:
SoftEther properly listens on raw ESP socket and accepts connections from NAT-T uncapable clients.
Actual behavior:
The following logs are recorded.
2020-08-15 23:59:23.515 IPsec Client 87541 (MASKED::260:b9ff:fe47:f488:500 -> MASKED::82ee:73ff:fe41:9af3:500): The connection cannot be accepted because this VPN client is not compatible with IPsec NAT Traversal (RFC 3947 Negotiation of NAT-Traversal in the IKE or draft-ietf-ipsec-nat-t-ike).
2020-08-15 23:59:33.517 IPsec Client 87542 (MASKED::260:b9ff:fe47:f488:500 -> MASKED::82ee:73ff:fe41:9af3:500): The connection cannot be accepted because this VPN client is not compatible with IPsec NAT Traversal (RFC 3947 Negotiation of NAT-Traversal in the IKE or draft-ietf-ipsec-nat-t-ike).
2020-08-15 23:59:43.515 IPsec Client 87543 (MASKED::260:b9ff:fe47:f488:500 -> MASKED::82ee:73ff:fe41:9af3:500): The connection cannot be accepted because this VPN client is not compatible with IPsec NAT Traversal (RFC 3947 Negotiation of NAT-Traversal in the IKE or draft-ietf-ipsec-nat-t-ike).
2020-08-15 23:59:53.525 IPsec Client 87544 (MASKED::260:b9ff:fe47:f488:500 -> MASKED::82ee:73ff:fe41:9af3:500): The connection cannot be accepted because this VPN client is not compatible with IPsec NAT Traversal (RFC 3947 Negotiation of NAT-Traversal in the IKE or draft-ietf-ipsec-nat-t-ike).

Steps to reproduce

Setup SoftEther with L2TP/IPsec
Connect from NAT-T uncapable clients

I did some test and found that FreeBSD does not allow binding raw sockets with a non-zero port number, which is allowed by Linux.
In NewUDP6() function from Network.c, change
	if (port == 0)
	{
		addr.sin6_port = 0;
	}

into
	if (port == 0 || IS_SPECIAL_PORT(port))
	{
		addr.sin6_port = 0;
	}

restores the ESP listener properly.
However, the problem is not solved. In FreeBSD the connection sticks after two IPsec SAs are established. It never shows IKE_CLIENT xxx: L2TP Server Started. which is shown in Linux connections.
By the way, this change does not impact Linux connectivity.
@davidebeatrici Do you have any idea what also might need to be changed?

It seems that the raw socket can't receive ESP packet. I can see the incoming ESP packets with tcpdump on the server but recvfrom just got nothing. I have no idea how to proceed.

Thanks for the investigation. I will have some research on ESP on FreeBSD.

It seems that the raw socket can't receive ESP packet. I can see the incoming ESP packets with tcpdump on the server but recvfrom just got nothing. I have no idea how to proceed.

Same problem in Windows. It only works in Linux currently...

I tested in Windows and got something very interesting.
Dev edition server in Windows can't receive ESP packets as well. But standard edition works fine.
The interesting thing is, after uninstalling the standard edition and reinstalling the dev one, it works fine too.
Here's the procedure.

Prepare a new VM in Windows and create a snapshot
Install dev edition server from nightly build
Run test: connect from Windows L2TP client over IPv6 (failed, ESP no response)
Uninstall dev edition and install standard edition
Run test (OK)
Uninstall standard edition and install dev edition
Run test (OK)

In Wireshark I saw the same pattern as in FreeBSD. That is the initial communication over UDP port 500 works but once the client enters the 2nd phase and sends ESP to the server it never gets back anything.
I have tested multiple times with the help of snapshots and also in both win 10 and win 2019 so this isn't random.
It looks like something has fundamentally changed when standard edition is installed. That something allows dev edition server to work even after standard edition is removed.
At first I thought the issue is firewall but it turned out that disabling firewall doesn't help anything.
@davidebeatrici Any thought?

I suspect something is wrong with WFP but I have no evidence.😂

Good news! I have found the problem for Windows server.
In open source builds, WFP driver (pxwfp.sys) is not included. Without the driver the server can't receive ESP packets since they are filtered by the system.
Once a standard edition is installed, the driver can be passed on to the dev edition even after the software is uninstalled.
I still don't know what happens in FreeBSD but if taking a wild guess it might also be some kernel behavior that filters out the ESP packets.


[meta] Idea for passing scope for structs and unions

All structs should have been defined by the time their scope exits, so I only have to worry about structs at global scope. The lib.rs function waits for all declarations in a program before generating code. So I should be able to rewrite the structs in https://github.com/jyn514/rcc/blob/master/src/lib.rs#L82 to be anonymous instead of named before they are passed to the IR module. All I need to do is add a get_current_scope() function to Parser.
This would fix https://github.com/jyn514/rcc/issues/53 and https://github.com/jyn514/rcc/issues/44.
I'm still not very happy with this because copying the StructTypes sounds expensive. Maybe use Rcs? Or go back to my idea of a global type cache? Let's get this working first and then I'll make it nice.

Implemented (partially) in https://github.com/jyn514/rcc/commit/056cdcd61b7aab29461d4e8d8c567812628121c5. Does not deal with unions/structs defined in a non-global scope, though.

Ok another half fleshed out idea. Flatten scopes in tag_scope during leave_scope(), have an index for each struct. Then to look up a struct you just need to know its index, not it's original scope.

Collecting things in one place here:
I'm trying to implement structs and unions, things like
struct s {
    union { int i; float f; } u;
    int num;
};

I'm parsing them fine, the issue is that I have to pass them to the backend somehow.
C has a concept of a 'tag scope', where struct s refers to the entire type I just defined above. This wouldn't be a problem except it also allows forward declarations, things like
struct s my_s;
struct s {
    union { int i; float f; } u;
    int num;
};

the way I've done this so far is have structs be either Anonymous or Named, where named structs have an identifier that I then lookup in a symbol table
the problem is I don't know how to pass the symbol table to the backend. I've done the naive way which is parse everything and send a reference to the scope. that doesn't work because it only sees the types in the global scope (because rcc works on functions as the unit of declaration, there's no way to stop parsing halfway through). Consider:
struct s { int i; int j; } s1;
int main() {
    struct s { float f; float g; } s2;
}

I had the thought to turn all Named structs into Anonymous structs before I pass them to the backend, which wouldn't be too expensive if I used an Rc, but that doesn't work for self referential structs:
struct p {
    int i;
    struct p *q;
} my_p;
int main() {
    my_p.q = &my_p;
    return my_p.q->q->q->i = 1;
}

Just special casing when the type is Self (using an Option or something) doesn't work, because you can have mutual recursion:
struct s {
    struct t {
        struct s *p;
        int i;
    } t;
    int j;
};

so I really do need some form of indirection.

iFollowing up on

Flatten scopes in tag_scope
What if instead of destroying the scope after it's been exited, we still store it? That shouldn't be terribly expensive since most people don't declare many structs in an inner scope, we can ignore scopes that are empty.
This would need some sort of custom data structure that lets us start at the leaves instead of the roots of the tree, and also change the idea of the 'current' node. I was thinking about a heap, maybe? Although Rust's heap doesn't let you associate an item with a parent or child manually.

https://doc.rust-lang.org/std/collections/struct.BTreeMap.html is very similar to what I want but doesn't allow controlling which children belong to which parent (or any of the parent/child API, really)

Ok @hdamron17 let me know I was being silly about this and I should just have a global TYPES array. This can be reused even across multiple source files because if a struct is included in multiple translation units there's no reason not to use the same data structure internally.
I think I'll use the get_or_intern API used by StringInterner

Still doesn't work, types need to be mutable so I can have forward declaratins.

actually hold on, does it need to be &'static? I might be able to add an update() API that changes the TYPE_INDEX hashmap


fix typo in fast-follow link example

Not sure though if the example is really valid as this part of the link is what podnews is using https://podnews.net/podcast/i8xe9
Also tried as an alternative without luck https://curiocaster.com/#fastfollow-podcast:396d9ae0-da7e-5557-b894-b606231fa3ea

I'll merge this (there was a buggy pull request a while ago which added linebreaks all over the place)
I do wonder whether the fast-follow idea should be removed from the specs, given it isn't supported by anyone. (Podnews no longer supports it in those QR codes).


feature: add install_repo property to draw-zmk.yml

Facilitates testing keymap-drawer PRs from a fork.

I was not able to see a way to automatically determine the host repo of the draw-zmk.yml workflow. At runtime, the github context is for e.g. the zmk-config repo it is running against. So you could do something hacky like use ${{ github.repository_owner }}, but that would not be as flexible as the install_repo property solution here (and is aesthetically ugly IMO).

Updated and successfully tested from my fork.


Editor's freelook_base_speed setting does not update unless freelook_speed_zoom_link is active ('On')

Godot version:
3.1.2-stable
3.2.2-stable
3.2.3-beta1
4.0.dev.calinou.de465c41d ( @Calinou Is there a quick way to check what commit a build is from? )
OS/device including version:
Windows 10, 64bit
Issue description:
Unless 'Freelook Speed Zoom Link' setting is active, modifying 'Freelook Base Speed' has no effect, that is, changing it does not actually change the base speed of freelook. This doesn't seem intended because 'Freelook Base Speed' matters even if 'Freelook Speed Zoom Link' is off, and off is its default value.
Steps to reproduce:
Starting from defaults:

Turn 'Freelook Speed Zoom Link' on and change 'Freelook Base Speed' to 0 (zero).
Close the settings panel, now you won't be able to move in freelook.
Turn 'Freelook Speed Zoom Link' off (default) and change 'Freelook Base Speed' to 5 (default).
You still won't be able move.

Alternatively, starting from defaults:

Change 'Freelook Base Speed' to 0 (zero).
Nothing changes, the speed is the same.

4.0.dev.calinou.de465c41d ( @Calinou Is there a quick way to check what commit a build is from? )

You can check the JSON manifest for each file (like the one for the 64-bit Windows ZIP).

4.0.dev.calinou.de465c41d ( @Calinou Is there a quick way to check what commit a build is from? )

You can check the JSON manifest for each file (like the one for the 64-bit Windows ZIP). The manifest's contents will change every time a new build is uploaded.

Thank you.

Does this also occur with #39743? It changes some of this code so it's possible, though I don't have particularly high confidence.

My speed never resets. It just slows down over time to 0.01 and  stays there until I nuke the project folder from my AppData/Roaming/Godot/ This is an issue with 3.2.4 beta 3 specifically.


Factor out Usernames component for formatting lists of users

This component handles italicizing your own username and coloring broken usernames in a consistent manner (for use in displaying TLFs, titles, etc).
:eyeglasses: @keybase/react-hackers

Can one of the admins verify this patch?

:mag_right: :zap: These commits introduced some visual changes:

Changed: Files-Popup_Public (before) (after)

Changed: Files-Popup_Private (before) (after)

Changed: Files-Normal_Public (before) (after)

Changed: Files-Normal_Private (before) (after)

:+1: % c

:mag_right: :zap: These commits introduced some visual changes:

Changed: Files-Popup_Public (before) (after)

Changed: Files-Popup_Private (before) (after)

Changed: Files-Normal_Public (before) (after)

Changed: Files-Normal_Private (before) (after)

:mag_right: :zap: These commits introduced some visual changes:

Changed: Menubar-Truncated (before) (after)

Changed: Menubar-Normal (before) (after)

Changed: Folders_TLF-Normal (before) (after)

Changed: Files-Popup_Public (before) (after)

Changed: Files-Popup_Private (before) (after)

Changed: Files-Normal_Public (before) (after)

Changed: Files-Normal_Private (before) (after)


New version: Telerik.Fiddler.Everywhere.Insiders version 5.0.1-insiders

Pull request has been created with WinGet Automation :rocket:
Microsoft Reviewers: Open in CodeFlow

Automatic Validation ended with:


Update index.js

Object.keys(obj) will fail in IE with "Object.keys: argument is not an Object" if "obj" is a string

Thank you for your pull requests. Merged in v0.0.3


URL

First, I’m very interested in this library for an app I’ve been developing.

Is there a way to get the URL of the created PDF?
Where is the PDF located and with what name?
Can you give the PDF a different name?
Also, I like the table example, the only thing is I’m a junior dev. How could I use that with a Swift Data object that is called a program and has multiple songs per program.

‘anyway, I’d love to hear your thoughts or when this library might be out of beta.

renderPDF() returns the pdf as an in-memory Data type. From there, you can persist the data if you like using Data.writeTo and give it whatever name or url you like.
The Table block operates on an array of a single data type and not with nested data as you describe. If you need to produce a report on a single program, pass program.songs as the data array for Table.  If you need to produce a report on several programs, you would need to "flatten your data first".  e.g:
Program Name; Program Year Released; Song Number; Song Name
Prog Name 1.   2024  1 Song Name 1
Prog Name 1.   2024  2 Song Name 2
Prog Name 1.   2024  3 Song Name 3
Prog Name 2.   2020  1 Song Name 1
Prog Name 2.   2020  2 Song Name 2
Prog Name 2.   2020  3 Song Name 3
I don't think I have implemented it yet, but at some point, a Table will be able to be nested within another Table and you would be able to pass [programs] to the outer table and program.songs to the inner table...
I hope this is enough info to help you get started.
I have not been actively working on this for several months. The soonest I foresee this coming out of beta would be a year from now.

Since this is in beta, would it be safe to use this in my project?-Mark/Mark J PerrymanApple Product @.** Nov 13, 2024, at 18:27, David Yowell @.***> wrote:
renderPDF() returns the pdf as an in-memory Data type. From there, you can persist the data if you like using Data.writeTo and give it whatever name or url you like.
The Table block operates on an array of a single data type and not with nested data as you describe. If you need to produce a report on a single program, pass program.songs as the data array for Table.  If you need to produce a report on several programs, you would need to "flatten your data first".  e.g:
Program Name; Program Year Released; Song Number; Song Name
Prog Name 1.   2024  1 Song Name 1
Prog Name 1.   2024  2 Song Name 2
Prog Name 1.   2024  3 Song Name 3
Prog Name 2.   2020  1 Song Name 1
Prog Name 2.   2020  2 Song Name 2
Prog Name 2.   2020  3 Song Name 3
I don't think I have implemented it yet, but at some point, a Table will be able to be nested within another Table and you would be able to pass [programs] to the outer table and program.songs to the inner table...
I hope this is enough info to help you get started.
I have not been actively working on this for several months. The soonest I foresee this coming out of beta would be a year from now.
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: @.***>

I would not use it in an app you plan to submit to the AppStore, but it is safe for personal projects.


Split flutter integration packages

Hey @autopilot It depends on you whether you can continue to complete it.


Using stopPlaying() while a video directly streamed from ytdl is playing causes a crash

The crash report:
/home/miras/Projects/lethe/node_modules/discord.js/lib/Voice/VoiceConnection.js:71
			this.instream.destroy();
			              ^

TypeError: this.instream.destroy is not a function
    at VoiceConnection.stopPlaying (/home/miras/Projects/lethe/node_modules/discord.js/lib/Voice/VoiceConnection.js:71:18)
    at playStopped (/home/miras/Projects/lethe/lethe.js:303:72)
    at Client.<anonymous> (/home/miras/Projects/lethe/lethe.js:71:5)
    at emitOne (events.js:77:13)
    at Client.emit (events.js:169:7)
    at WebSocket.websocket.onmessage (/home/miras/Projects/lethe/node_modules/discord.js/lib/Client/InternalClient.js:1056:14)
    at WebSocket.onMessage (/home/miras/Projects/lethe/node_modules/ws/lib/WebSocket.js:414:14)
    at emitTwo (events.js:92:20)
    at WebSocket.emit (events.js:172:7)
    at Receiver.ontext (/home/miras/Projects/lethe/node_modules/ws/lib/WebSocket.js:797:10)

Offending lines of code:
https://github.com/meew0/Lethe/blob/adcf966759bc685e9d38ddf6a57af49b3bb34685/lethe.js#L303 (stream is stopped)
https://github.com/meew0/Lethe/blob/adcf966759bc685e9d38ddf6a57af49b3bb34685/lib/youtube-stream.js#L11 (stream is requested)
https://github.com/fent/node-ytdl-core/blob/master/lib/index.js#L26 (stream is created)

the destroy() method is not standardised and only works for file stream.


Convert and Clear buttons give error

Your scripts assume the Administrator path is /admin, so on a site where this has been changed, to say "/panel", the script button actions are not found (cause 500 error).
An alternate admin path also appears to affect saving/loading the plugin parameters.

Hello @beejay41,
I've checked how the plugin works with the changed urls for the admin panel: https://learn.getgrav.org/17/admin-panel/faq#custom-admin-url.
I didn't notice the problems You described.
The plugin refers to urls starting with /admin but handling the request on the PHP side doesn't matter the url of the admin panel: https://github.com/greenrivers/grav-plugin-webp/blob/master/webp.php#L76.
Can you provide more details:

PHP version
Grav version
logs
example image You are trying to convert

Regards

OK so this is only failing on 1 of 3 websites, I've tested.
On clicking "Convert", I'm seeing:
Grav\Plugin\Webp\Webp::process(): Argument #1 ($totalImages) must be of type array, null given, called in /srv/www/.../grav/user/plugins/webp/webp.php on line 89
On "Clear All", I'm seeing:
The "user/webp" directory does not exist.
Apologies, nothing to do with "/admin", I was mislead by the 500 error.

Hi @beejay41,
Unfortunately I can't reproduce this error, all I can do is to analyse working of conversion.
It looks like a problem with set/get session parameters.

When you click the Convert button, the array of images to be converted is saved in the session.

https://github.com/greenrivers/grav-plugin-webp/blob/master/webp.php#L116
The images array will always be an array, return type hinting in the function is responsible for this.
https://github.com/greenrivers/grav-plugin-webp/blob/master/classes/Webp.php#L54
2 Then the conversion is handled by retrieving the previously saved images array from the session.
https://github.com/greenrivers/grav-plugin-webp/blob/master/webp.php#L85
The error regarding the Clear button occurs because a folder with webp files hasn't been created, due to an earlier error for the Convert button.
Please let me know if you have any further questions.

It has been over month since last activity in this topic, so I close this issue.
Reopen or create new ticket if You need more explanations, please. :)


Detecting illegal jalr

RISC-V defines that funct3 for JALR == 3'b000.  In our decoder, we did not make this assertion and just checked the opcode.
      `RV64_JALR_OP :
        begin
          decode.pipe_ctrl_v = 1'b1;
          decode.irf_w_v    = 1'b1;
          decode.fu_op      = e_ctrl_op_jalr;
          decode.baddr_sel  = e_baddr_is_rs1;
        end

Fixes #497 , test added

Are there any more cases of these checks that we might have missed? It seems a bit odd that JALR is a special case.

It's the only one I can find, because it's the only opcode with exactly 1 valid subopcode.  #500 is a related case I found when looking through, though

Do we throw an exception on instructions with invalid subopcodes though? Even if they have multiple possible valid values.

Yes
On Thu, May 14, 2020 at 5:53 PM Farzam Gilani<EMAIL_ADDRESS>wrote:

Do we throw an exception on instructions with invalid subopcodes though?
Even if they have multiple possible valid values.
—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub
https://github.com/black-parrot/black-parrot/pull/499#issuecomment-628906009,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AARW6WSRDL6MIHGHMEMEY23RRRR4BANCNFSM4NBANN5Q
.


Cannot read properties of undefined (reading sybstring) at risco ...

Hi
i rebooted my HassOS, and i noticed your addon was in a stopped state, sorry, i only have a screenshot of the issue, nog log .txt file
i think this one is related to your add-on?
sorry for creating so many issues, but just posting issues/errors i have, i think its usefull for later when more and more people are using it

happened again, little bit different :
6:29:08 PM RiscoCloud Socket Timeout.
TCP Socket Disconnected
Socket Error : Error [ERR_STREAM_WRITE_AFTER_END]: write after end
RiscoCloud Socket Error : Destroy RiscoCloud Socket due to Panel Socket Error
RiscoCloud Socket Closed.
/usr/src/app/node_modules/@vanackej/risco-lan-bridge/lib/RiscoChannels.js:885
                                if (!this.Socket.destroyed) {
                                                 ^
TypeError: Cannot read properties of undefined (reading 'destroyed')
    at Socket.<anonymous> (/usr/src/app/node_modules/@vanackej/risco-lan-bridge/lib/RiscoChannels.js:885:50)
    at Socket.emit (node:events:390:28)
    at TCP.<anonymous> (node:net:687:12)

i see a watchdog config option, what is it used for?
thnx

I just released a new version with improved Timeout management, Please try it and let me know if you still have problems with it

is this also related to this issue? will it restart the service?
https://github.com/TJForc/risco-lan-bridge/issues/14
https://github.com/TJForc/risco-lan-bridge/issues/13
because it happens for me 1 time a day, then the panel is offline
gonna update it later and keep you posted

It could/should improve reconnection when the panel is
disconnected/reconnected. But for the proxy mode I don't really know as I
don't use it and can't debug it.
Le sam. 4 déc. 2021 à 15:08, pergolafabio @.***> a
écrit :

is this also related to this issue? will it restart the service?
TJForc/risco-lan-bridge#14
https://github.com/TJForc/risco-lan-bridge/issues/14
TJForc/risco-lan-bridge#13
https://github.com/TJForc/risco-lan-bridge/issues/13
because it happens for me 1 time a day, then the panel is offline
gonna update it later and keep you posted
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
https://github.com/vanackej/risco-mqtt-local/issues/4#issuecomment-986033857,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAECPHLRDOJP4OU7ML7ZKU3UPIOFBANCNFSM5JGYNE2Q
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

ok, updated , lets see what happens

thnx!! :-)

hmm, doesnt help for the socket :-(
if i stop and restart the docker for a second time, it fails with below
the problem is that it stays in that state forever ...
is there a way to trigger a restart when that happens? because my panels drops from the cloud at this moment
if i do a 3th restart , when i wait for like 2-3 minutes, then it succeeds again
12/4/2021, 3:16:03 PM [info] Connecting to mqtt server: mqtt://localhost:1883
12/4/2021, 3:16:03 PM [info] Listening on IP :: and Port 33000
12/4/2021, 3:16:03 PM [info] Connected on mqtt server: mqtt://localhost:1883
12/4/2021, 3:16:45 PM [error] Socket Closed.
12/4/2021, 3:16:45 PM [error] TCP Socket Disconnected
12/4/2021, 3:16:55 PM [info] Listening on IP :: and Port 33000
12/4/2021, 3:17:04 PM [error] Command[01] Socket Destroyed while using it.

hey @vanackej  , the docker crashed again :-(
can you have a look at it?
12/5/2021, 9:48:40 AM [info] [Panel => MQTT] Published sensor status 0 on zone Keuken
12/5/2021, 9:48:40 AM [error] 9:48:40 AM RiscoCloud Socket Timeout.
12/5/2021, 9:48:40 AM [error] TCP Socket Disconnected
12/5/2021, 9:48:40 AM [error] Socket Error : Error [ERR_STREAM_WRITE_AFTER_END]: write after end
12/5/2021, 9:48:40 AM [error] RiscoCloud Socket Error : Destroy RiscoCloud Socket due to Panel Socket Error
12/5/2021, 9:48:40 AM [error] RiscoCloud Socket Closed.
/usr/src/app/node_modules/@vanackej/risco-lan-bridge/lib/RiscoChannels.js:888
                                if (!this.Socket.destroyed) {
                                                 ^
TypeError: Cannot read properties of undefined (reading 'destroyed')
    at Socket.<anonymous> (/usr/src/app/node_modules/@vanackej/risco-lan-bridge/lib/RiscoChannels.js:888:50)
    at Socket.emit (node:events:390:28)
    at TCP.<anonymous> (node:net:687:12)

I just published a new version that should fix the crash (but not the original disconnection issue)

ah cool! alltough it didnt happen that frequently
isnt there a way to implement in the addon some restart error of the service, when this error occurs?
https://github.com/TJForc/risco-lan-bridge/issues/13
or
https://github.com/TJForc/risco-lan-bridge/issues/14
Already enabled the watchdog, but seems the docker doesnt crash
i think its better todo restart based on those error events?
i think it it will stay happening when using proxy, maybe its cloud related, but it must be possible to intercept those exceotions? otherwise the panel is complete offline in HA  , not a good solution then :-)

I don't know why, but TJFrog choose to link Cloud socket and Panel socket lifecycle. I didn't read the full code for proxy mode, but I plan to rewrite it another way one day (no time for it at the moment). Hard to test for me again as I don't use proxy mode...

Oh ok, ...
You didn't pay anymore for the cloud?

No, I don't want to pay for the cloud, and given the lack of security I
discovered (virtually anyone can hijack communications between the panel
and the cloud), I really prefer to disable it completely.
Le jeu. 9 déc. 2021 à 17:48, pergolafabio @.***> a
écrit :

Oh ok, ...
You didn't pay anymore for the cloud?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/vanackej/risco-mqtt-local/issues/4#issuecomment-990029184,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAECPHPQMLAN2N7ZKI7G52DUQDMVFANCNFSM5JGYNE2Q
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

Ah ok, it's not as easy as search for that specific error in the script, and on that error do a restart :-)


Exception if unable to get http proxy settings in Dev3.0.0

We run into the following unhandled exception:
Calling Add-AnalyzedResultInformation: Http Proxy Setting

Errors that occurred that wasn't handled
You cannot call a method on a null-valued expression.
At C:\Users\administrator.EXCHANGELABS\Desktop\HealthChecker-ServerMaintenanceAdd\HealthChecker.ps1:3068 char:13
+         if (!($AnalyzedInformation.DisplayResults.ContainsKey($Displa ...
+             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

We hit this if Get-HttpProxySetting doesn't return <None> which is the case when we can't connect to the remote server. In this case httpProxy32 and httpProxy64 are empty and so we return an empty value instead of <None>.
In line 3516 we check for <None> value and if it's not equal <None>, we call Add-AnalyzedResultInformation with DisplayTestingValue parameter with ($osInformation.NetworkInformation.HttpProxy) which is empty in this case:
    if ($osInformation.NetworkInformation.HttpProxy -eq "<None>")
    {
        $analyzedResults = Add-AnalyzedResultInformation -Name "Http Proxy Setting" -Details ($osInformation.NetworkInformation.HttpProxy) `
            -DisplayGroupingKey $keyOSInformation `
            -HtmlDetailsCustomValue "None" `
            -AnalyzedInformation $analyzedResults
    }
    else
    {
        $displayValue = "{0} --- Warning this can cause client connectivity issues." -f $osInformation.NetworkInformation.HttpProxy
        $analyzedResults = Add-AnalyzedResultInformation -Name "Http Proxy Setting" -Details $displayValue `
            -DisplayGroupingKey $keyOSInformation `
            -DisplayWriteType "Yellow" `
            -DisplayTestingValue ($osInformation.NetworkInformation.HttpProxy)
            -AnalyzedInformation $analyzedResults
    }

i always seem to forget that ` mark at the end of the line. Missing it for this line:
-DisplayTestingValue ($osInformation.NetworkInformation.HttpProxy)

@lusassl-msft this should be good now, if it isn't reopen this bug.


Fix Chunking / Hilbert Curve

Easy
Instead of saving pixels to a nested vecs, just add more indices to your keys and normalize the pixel structure. Then use start and end bounds to look up individual chunks.
 CHUNKS.save(deps.storage, (chunk_x, chunk_y, y, x), &PixelInfo {
     color,
     painter: Some(info.sender.clone()),
 })?;

Hard
Space filling curves enable one to convey two dimensional space via one dimensional points. Thus, it is a very efficient way to achieve the same functionality currently offered by chunking, but with a simple stream of integers rather than coordinates. Then you can simply paginate through a list of pixels that are already chunked, without the chunks. This also enables you to easily look up any given pixel's color.
 CHUNKS.save(deps.storage, hilbert, &PixelInfo {
     color,
     painter: Some(info.sender.clone()),
 })?;

rust hilbert curve library https://docs.rs/fast_hilbert/latest/fast_hilbert/index.html
resources: https://en.wikipedia.org/wiki/Space-filling_curve, https://www.youtube.com/watch?v=3s7h2MHQtxc
Other
Not sure why the painter is being saved. It is expensive to store and load, and this information could be queried from an archive node. Some queries were running out of gas in my experience.

will look into pixel store rewrite for v3


Fix bug with combining AuthorizeFilter + IPolicyProvider

New test depends on https://github.com/aspnet/Security/pull/1766 to pass.
Adds coverage for: https://github.com/aspnet/Mvc/issues/7809
cc @javiercn @Tratcher

Wait a bit before reviewing this, so it looks like there's more complex scenarios around combining authorize filters with providers that requires a larger fix to this method and needs a few more tests.

So there was a bug in AuthorizeFilter as well, Combine was never using the policy provider + authorize data, it was only looking at the explicit policy.
So I added a few more variations of the test that combined a mix of explicit policy, policy provider with multiple authorize attributes, and a 3rd with a different policy provider instance.

So there was a bug in AuthorizeFilter as well, Combine was never using the policy provider + authorize data, it was only looking at the explicit policy.

Shouldn't this be a separate PR / patch ask?
I was looking at your PR and I was struggling for a bit to understand what was going on.
(In fact, I don't quite grasp the change to canCache)

There's a PR per repo...  The security one is safe and more or less unrelated.  This one fixes the authorize filter issue irrespective of the security fix (as the changes here also avoid the null ref issue), we don't need to patch the security PR as a result.

Yeah I didn't write the caching logic in MVC originally but it looks like its trying to only compute the effectivePolicy once IFF the default policy provider is used.  Whenever a custom policy provider is used, caching must not occur as there's no guarantee that the same authZ policy will be returned for the same name, it must always call through.  This is now more complex since when combining filters, now its if ANY filter has a custom policy, you can't cache the combination...

So I think the Security PR can just be a normal 2.2 change (if we want to do it at all) since its no longer critical once we fix AuthorizeFilter here.

LGTM. cc @javiercn

Good to go on this PR @kichalla @javiercn ?

@HaoK Sorry, it fell out of my radar. Let me take a look at it tomorrow.

So there was a bug in AuthorizeFilter as well, Combine was never using the policy provider + authorize data, it was only looking at the explicit policy.
So I added a few more variations of the test that combined a mix of explicit policy, policy provider with multiple authorize attributes, and a 3rd with a different policy provider instance.

Do you mean https://github.com/aspnet/Mvc/blob/dev/src/Microsoft.AspNetCore.Mvc.Core/Internal/AuthorizationApplicationModelProvider.cs#L64

I believe this was decided not to be patch worthy already since the workaround is just to turn off the option

@javiercn Yeah, AuthorizationFilterCombinesMultipleFiltersWithDifferentPolicyProvider covers one of the scenarios that was broken.  Its possible that there are still similar bugs in other places where a similar pattern/code was used.

@HaoK Can you take a deeper look? Id rather have us fix all of them at once that just half of them.

They should all be fixed assuming AuthorizeFilter is the only place that's doing evaluation/combination of policies.  I didn't see any when I was looking through the code.  There's no other caching going on anywhere else right?

Replaced by https://github.com/aspnet/Mvc/pull/8068 which is targeting release/2.2


Fix kani test

Recently (in #2379) we patched the ParseAmountError but we don't check kani code on every pull request so we broke it.
Fix kani test to use the new OutOfRangeError.
Close: #2424

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

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

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
19328

Relevant Lines:
22969

💛  - Coveralls

BTW there's a new feature in kani that allows splitting up the proofs by specifying pre and post conditions of functions. We should check if we can use it somehow.

BTW there's a new feature in kani that allows splitting up the proofs by specifying pre and post conditions of functions. We should check if we can use it somehow.

Added to my todo list

I guess you mean #2370, not #2379.


New test cases on UIcommandBox

Coverage increased (+1.3%) to 87.689% when pulling 0f373e5c55dfbc640407a1b0bc25f37ddcf928b8 on lproperty:master into c0a2379cd227f9576e66914755290e62ca81fdc6 on CS2103JAN2017-T15-B3:master.


Search optimization

Description of what has changed
Changed fields of flex search and removed line to create just one index
Issues addressed by pull request
Addresses #167 and #187

Closing this pull request in favor of #388


TTNN sub and mul ops - incomplete/inconsistent documentation

For the following TTNN tensor binary logical ops:

sub, mul
The documentation does not cover supported data types (BFLOAT16/BFLOAT8_B) neither the supported layouts (ROW_MAJOR/TILE).

However, it seems that these ops actually support BFLOAT8_B in practice and do not support ROW_MAJOR.

Will revisit this task and update it after migration task

Merged to main, hence closing


Bug with exe64 only

version <IP_ADDRESS>3

Looks to be the same issue as:
https://github.com/fdorg/flashdevelop/issues/2973

will be fixed today, im sorry ;)


ARROW-4897: [Rust] [DataFusion] Improve rustdocs

Also removes dead code and changes the visibility on some structs.

@paddyhoran Good feedback. Thanks. I updated.


Feature Request: log DOM elements directly

https://github.com/PageModifiedOfficial/Check-My-Links/blob/122928e87f2bb18f65af8903c373f5e9222bc224/functions.js#L156-L190
It would be really convenient if, when CML logs errors to console.log, it called console.log directly on the relevent DOM elements. Chrome's rich console means that you can use that to navigate directly to the faulty DOM element.

I like this.


Nan data will incorrectly assign zero distance from the ball

This messes up the distance from the ball stats and messes up how we calculate who hit the ball

https://cdn.discordapp.com/attachments/412423088521740288/492985921155891200/5CAFB07745EBB494E66758B2ABC1E464.replay
This is the replay with bad data


User Models Callbacks for Handling Soft Delete

To be reviewed later...
http://api.rubyonrails.org/classes/ActiveRecord/Callbacks.html

Will Not be implemented. If was going to, then the following logic would apply:
Frontend: Request for deletion would come in, and a dependency check would make sure that there is none. If there is none, deletion would be allowed (and voting records for inner comment/comment would be deleted as well without affecting user reputation.)
Depedencies:
">" = Cannot be deleted if it contains
Tag > Post > Comment > Inner Comment
User > Post
User > Comment
User >  Inner Comment


Landing Page

Froyok was suggeting a landing page
showing off the gp-direct and a little prosa about our server.
I think that's a cool idea.

Implemented in commit 4baa5e8f64c58e597d5df2174e0bdd3115f10963


Optimisations and modifications

I make some optimisations in HTTP and Structures part :

Remove global usage of Lodash : In that case, if we don't use validate part and we use babel-plugin-lodash, the final vendor bundle load only lodash modules in use and no all lodash functions. The gain is significant

I edit the delete() save() and fetch() functions to override and add specifics query params and/or headers :
this.collection.page(1).fetch({
    params : {
        param1 : "test",
        // ...
    }
});

For the selective importing, I'd reference how Vuetify recommends handling their A La Carte feature. They use the transform-imports package. From the transform-imports README, they use the config:
{
    "plugins": [
        ["transform-imports", {
            "lodash": {
                "transform": "lodash/${member}",
                "preventFullImport": true
            }
        }]
    ]
}

I close that and open new issue with only delete() save() and fetch() functions to override and add specifics query params and/or headers


USB audio headset not working

http://alsa.opensrc.org/Usb-audio
http://alsa.opensrc.org/MultipleCards

Using pavucontrol and pluseaudio-alsa solved the issues.


Twitch Video don't fire onError when video is unavailable

The onError method doesn't fire when the Twitch video is unavailable (expired) and ReactPlayer.canPlay(url) return true.
Tested with this url: https://www.twitch.tv/videos/5502156413386
Thanks for your time

Annoyingly, there is no error event for interactive twitch embeds. Until they add one, there's nothing that we can listen for.


mmap() failed: Cannot allocate memory size:<PHONE_NUMBER> offset: 0

Fatal error: 'try!' expression unexpectedly raised an error: Error Domain=io.realm Code=9 "mmap() failed: Cannot allocate memory size:<PHONE_NUMBER> offset: 0" UserInfo={NSLocalizedDescription=mmap() failed: Cannot allocate memory size:<PHONE_NUMBER> offset: 0, Error Code=9}:
RealmSwift framework version: 3.18.0
Xcode version: 11.1
iOS/OSX version: 12.2.0

I’m also seeing a similar error message when viewing traces for a crash that is affecting a subset of our users (but not all).  It only started occurring after we upgraded to Realm-Cocoa 3.14, and has continued to occur with each subsequent release.  The crash is extremely hard to reproduce, and seems to occur basically randomly.  I’ve seen error messages like the one above, where the offset Realm is attempting to read from is 0, and another kind where the offset is greater than the memory size itself.  We’re using Realm with objc.
Is this by chance related to/fixed by #5309?

@WWDGitHup Please provide more details (as the issue template describes). In this case in particular, how big the Realm file is.

➤ Jason Flax commented:
Closing as this has been several months.


Mark the maven plugin threadSafe to support maven multi thread build

From a quick look at the source, I think this plugin is threadsafe.

PR is at #459


Document trick with slash in scope names

The documentation for tf.name_scope is rather ambiguous on what happens if the scope name ends with '/', merely stating what happens if it doesn't end with a '/'. The fact that the behavior is different, specifically that ending with a '/' does not result in automatically uniqueifying the scope name, is very important and useful, because sometimes one wants to reenter a previously created scope. This possibility is only alluded to when describing recapturing scope variables, but the functionality is more general than that.

Does the code with scope name ends with '/' run ?

@alquraishi does this issue still look relevant?

Nagging Awaiting Response: It has been 14 days with no activityand the awaiting response label was assigned. Is this still an issue?

Nagging Awaiting Response: It has been 14 days with no activityand the awaiting response label was assigned. Is this still an issue?

It has been 14 days with no activity and the awaiting response label was assigned. Is this still an issue?

It has been 29 days with no activity and the awaiting response label was assigned. Is this still an issue?

Automatically closing due to lack of recent activity. Please update the issue when new information becomes available, and we will reopen the issue. Thanks!


Settings: unable to change local repository into shared repository

In a local repository, the repository settings grays out the "Remote URL", so the local repository cannot be connected to a remote one.
If this is not desired behavior, we need to provide a tip there.

I believe this feature was blocked by the necessity to have sanity checks that would prevent accidentally leaking confidential data by adding a shared (but non-public) repo, creating a private local copy and then sharing it as a public repo. It would be too easy.
I suspect (maybe I’m wrong) that this doesn’t have to be a failproof access control measure—it only needs to make it extremely unlikely to do by accident with confidential repos, but without obstructing sharing non-confidential repos. With that in mind, a reasonable way of introducing such checks could be via a hidden object within the original repository that instructs Paneron to disallow re-sharing. It could be set via GUI at repository creation time and not be exposed in the GUI thereafter.

To me it is awkward and unnecessary to force an artificial separation of "local" vs "remote" since it is the same thing underneath.
When a user created a local repo, but then have no way to convert it into a shared repo, that's a problem. This issue is for resolving this problem.