text:
NTP Unavailable

Is the Time Server in OPNSense supposed to be able to be used as a regular time server for clients or just DHCP's Option 42?
I tried to get to mine:
ntpdate -q 10.0.1.1
server 10.0.1.1, stratum 16, offset -0.224538, delay 0.02814
9 Dec 19:55:25 ntpdate[81504]: no server suitable for synchronization found
The service is running.  I have LAN highlighted as the interface to listen on:

ntpdate won't sync, because it does not consider your server to be reliable (stratum 16).
http://serverfault.com/questions/277375/ntpdate-d-server-dropped-strata-too-high
The topic suggest that "restrict default" in the ntpd.conf may be causing clients not to sync. On the road at the moment, can provide a patch later.
http://www.linuxquestions.org/questions/linux-server-73/ntpdate-no-server-suitable-for-synchronization-found-931430/
This topic suggest that ntpd does not have a valid (reachable) upstream server set.
Hope that helps,
Franco

I can confirm your findings:
$ ntpdate -d 192.168.56.2
10 Dec 16:07:15 ntpdate[24019]: ntpdate 4.2.6@1.2089-o Fri May 28 01:20:57 UTC 2010 (1)
Looking for host 192.168.56.2 and service ntp
host found : 192.168.56.2
transmit(192.168.56.2)
receive(192.168.56.2)
transmit(192.168.56.2)
receive(192.168.56.2)
transmit(192.168.56.2)
transmit(192.168.56.2)
transmit(192.168.56.2)
192.168.56.2: Server dropped: strata too high
server 192.168.56.2, port 123
stratum 16, precision -6, leap 11, trust 000
refid [192.168.56.2], delay 0.02684, dispersion 24.05402
transmitted 4, in filter 4
reference time:    00000000.00000000  Mon, Jan  1 1900  1:00:00.000
originate timestamp: da1413a4.13e3c105  Thu, Dec 10 2015 16:07:16.077
transmit timestamp:  da1413a5.12ccb3a2  Thu, Dec 10 2015 16:07:17.073
filter delay:  0.02684  0.04147  0.00000  0.00000
0.00000  0.00000  0.00000  0.00000
filter offset: 0.107932 -0.00011 0.000000 0.000000
0.000000 0.000000 0.000000 0.000000
delay 0.02684, dispersion 24.05402
offset 0.107932
10 Dec 16:07:18 ntpdate[24019]: no server suitable for synchronization found

I think that disabling Access Restrictions setting "Deny mode 6 control message trap service (default: enabled)." fixes this (Network Time: Settings).
Can you confirm?

Disbling is not making a difference for me, if I use the default ntp servers directly on my client, I get stratums of 2 or 3.  But when used via OPNSense I'm up at 16.
ntpdate -q 0.nl.pool.ntp.org
server 178.21.23.127, stratum 3, offset -1.460397, delay 0.15919
server 87.195.109.106, stratum 2, offset -1.456223, delay 0.14459
server 141.138.142.81, stratum 2, offset -1.454538, delay 0.15300
server 213.154.236.182, stratum 2, offset -1.458007, delay 0.15610
10 Dec 17:41:56 ntpdate[77923]: step time server 87.195.109.106 offset -1.456223 sec
ntpdate -q 10.0.1.1
server 10.0.1.1, stratum 16, offset -1.453388, delay 0.02795
10 Dec 17:42:55 ntpdate[78135]: no server suitable for synchronization found

It is working now, but for me it was turning off the "kiss-o-death" packets that did it.  My "deny mode 6" is enabled and working. Maybe some of these should be disabled by default if only using on LAN?
Either way, I now know a lot more about NTP then I did yesterday, and that's good! Thank you!

You and me both. :) It's a bit of black magic, better not touch these values. They might break other setups.

authors: fichtner majorsl


text:
lobby: modern dashboard replacement development

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

[x] I have read the contributing guide lines at https://github.com/opnsense/core/blob/master/CONTRIBUTING.md
[x] I am convinced that my issue is new after having checked both open and closed issues at https://github.com/opnsense/core/issues?q=is%3Aissue

Is your feature request related to a problem? Please describe.
The dashboard needs a modern replacement with better sandboxing and all widgets either need to be compatible or rewritten (also the ones in plugins).
Describe the solution you like
Develop a secondary dashboard in the development version to try these ideas. Most likely this will remain hidden in the development version when 24.7 comes out.
Current list of work items:
Missing functionality

[x] Add widget button
[x] replace getTranslations() and api binding of canAccessEndpoints() with metadata (xml) files
[x] investigate unix domain socket connection limit. socket connections seem to be no issue, instead the GUI will lock up with sufficient keep-alive connections. Cause unknown at the moment but it seems to be related to the socket open handling on the PHP side as both scaling up the lighty workers does not affect the result and the configd backend is still reachable in a locked state.
[x] investigate themeability. Most of the styling is done properly through CSS, although there is some scripted styling to facilitate animations.

Widgets

[x] System Information (static section)
[x] CPU usage
[x] Memory usage
[x] Traffic Graph
[x] Interfaces
[x] Interface statistics
[x] Firewall state table size
[x] MBUF usage
[x] SWAP usage
[x] Disk usage
[x] CARP statistics
[x] Gateway statistics
[x] Firewall log
[x] Monit checks
[ ] Static picture?
[x] RSS feed ? (Announcements)
[x] System log
[x] Thermal sensors
[x] IPsec tunnel statistics
[ ] OpenVPN tunnel statistics
[x] Wireguard peers
[ ] Services
[ ] Deciso hardware widget
[x] ETPro telemetry

Describe alternatives you considered
N/A
Additional context
N/A

added progress / todo items in the ticket.

@AdSchellevis the update to RC2 make the dashboard wonky for many and a nice observation was made here:
https://www.reddit.com/r/opnsense/comments/1e71y4g/comment/ldyiwxt/

(my browser's cached copy of /ui/js/widgets/BaseWidget.js did not have the isConfigurable() function, causing all the widget rendering calls to fail.)

It appears that there is an apparent lack of cache_safe() relevant usage. I also don't know how things like this can be made cache safe when embedded into JS pages:
import BaseWidget from "./BaseWidget.js";

Our CMS does it like
<link rel="stylesheet" type="text/css" media="all and (min-width: 1265px)" href="[css/page.css?d=202109070922](view-source:/css/page.css?d=202109070922)">
So it adds a date to the link of the file so it's reloaded if you use a newer version.
I don't know if this works inside JS to load a JS and it's more work if you change a file.

@Tragen yes we do have a similar construct:
https://github.com/opnsense/core/blob/821de0a9b1b461b144a1dc43d1450f38be201cb1/src/www/guiconfig.inc#L62
Need to look into how the JS files are imported by one another or if the page needs to define their presence anyway (best case).

@fichtner as far as I know you can't use similar trickery on js import statements. This likely needs to be taken care of on the server end (lighttpd)

@fichtner this https://github.com/opnsense/core/commit/314d975679afc9cf750a405c143495d551221b0a might help, but only for new cases.

https://github.com/opnsense/core/commit/36560aa67933631eca5bf62a9af985b0809abfbc should make the imports cache safe

source: gharchive/issue

authors: AdSchellevis Tragen fichtner swhite2

repo: opnsense/core

license_type: permissive

license_source: github-api


text:
Add a special case for /31 networks to openvpn_get_interface_ip() (another instance of #2529)

Finally, I've fixed it in the place where I originally intended to fix it (#2529).
This time I've verified that it works, thanks to people on the IRC who explained me how to restart the web GUI properly.

Merged, thanks!

source: gharchive/pull-request

authors: dmbaturin fichtner


text:
Fix checking empty string.

If string is "0,1,2,3" result is "01,2,3"
empty($row[$fieldname]) return true if $row[$fieldname] is "0"

@kekek2 thanks


text:
Update interfaces.lib.inc

Quick fix ( maybe ) for GUA addresses in wrong order on widgets and Interface Info.

@marjohn56 isn't that the sort that's already there?

The issue here is we already established we can't trust the ordering of the data, so reordering it to fit our needs will just introduce bugs elsewhere that relies on a certain ordering already short of the spots that we just fixed. :)

I think I see what you mean, but if that's the issue, it's likely easier to capture the order when parsing and sort in one pass using link-local, capture order next. now it only guarantees link local is bottom. If you want a proposal, just let me know.

@AdSchellevis I wasn't arguing for it, I was arguing against changing this at all actually. the side effect is unpredictable.

@fichtner I know, we partly trust on ordering at the moment indeed, but only to detect if link-local is the only address if I'm not mistaken. Just saying that if we need to know the original position in ifconfig, we might as well add it as an attribute (and use it in sorting).  I don't think ifconfig itself knows the concept of primary, but I might be mistaken there.

That's indeed the issue, the primary is removed and readded, but ifconfig decides to make a VIP alias the primary. It might be that this is dhcp6c's fault for adding an alias, but it's unreliable to fix that (if indeed the case) because other services might do it differently or more or less correct depending on the situation.

I totally agree, primary in this context only means first existing (which doesn't help if you're looking for an entry that's gone ;) ).

That's indeed the issue, the primary is removed and readded, but ifconfig decides to make a VIP alias the primary. It might be that this is dhcp6c's fault for adding an alias, but it's unreliable to fix that (if indeed the case) because other services might do it differently or more or less correct depending on the situation.

dhcp6c does not add the alias, the alias is there either before dhcp6c adds the address or its left there when dhcp6c updates and removes the GUA before adding the new one. That's why un my original patch I removed the aliases before dhcp6c assigned the GUA, then put them back.

Alias here means just an additional address, not the primary one like you assign statically. If dhcp6c adds the primary IP as an alias (ifconfig alias notation) as well ifconfig is confused because there is no notion of a primary IP anywhere so the ordering is just random as we are seeing.

Maybe to illustrate: IPv4 DHCP doesn't have this odd behaviour it seems and the primary IP assigned is not flushed out by additional aliases.

If you manually add a v6 alias, which is the same as add, then remove the GUA, then put back the GUA, you'll find the GUA is at the bottom of the listed addresses when you do ifconfig, so it's just FreeBSD is agnostic about the order of addresses on the interfaces. Do the same thing with an IPv4 address and the same thing happens, add a new address, remove the old address, put back the old address  and it's bottom of the list.

Interestingly they have the same problem over the road, and have had for several years.
https://redmine.pfsense.org/issues/5999

d3b5d9ede21b64 might just do the trick for the interface stats

authors: AdSchellevis fichtner marjohn56


text:
Wireguard, show Timestamp in UI under "VPN/Wireguard/Handshakes"

The Information about the handshakes of Wireguard Endpoints can be found under "VPN/Wirguard/Handshhakes". The information displayed there is pretty raw.
The Minimum to adjust is to at format the unix timestamp to a more common time format.
The best option would be that also Alias/Endpoint names are shown instead of keys (only)

After recent update to 2.0, the handshake page is replaced by diagnostics. I like that change!
The only thing I'm missing is the "latest handshake" time. It 's very useful to see if the VPN is in use on that moment...

@hvdort I think this is what you’re looking for : https://github.com/opnsense/plugins/commit/7e42d0b5542c1b1b54cb304e740b8f865b300d23

authors: AdSchellevis NightDragon1 hvdort

repo: opnsense/plugins


text:
Force the locale of a running Program to be UTF-8

Work around the problem that some VMs (ie that used by Docker-for-Mac) don't seem to carry a modern locale, resulting in crashing programs if anyone outputs a character greater than \xFF. Jeesh.
This was motivated by a user of publsh encountering a commitAndReleaseBuffer: invalid argument (invalid character) crash when having the temerity to try rendering a document that had a unicode character in it. See https://github.com/oprdyn/publish/issues/32. They're specific setup was running under Docker-for-Mac; I infer that VM doesn't have a proper Unicode locale present.
This patch fixes a Program by forcing the locale to UTF-8 when execute is first called.

@carlosdagos I'd welcome your thoughts on this! Specifically,
a) doing this globally rather than having to do hSetEncoding everytime you call withFile?, and
b) doing it in unbeliever as a part of initializing the Program monad
See the linked issue if you're unsure why I'm suggesting this...
AfC

I applied the workaround of manually setting utf8 in a test branch of publish and built it locally for @certifiedwaif to test. He reports that the "new version" does indeed work.

Hi @afcowie.

doing it in unbeliever as a part of initializing the Program monad

Do you mean doing it in executeWith context program? If so then I think that is rather reasonable.
If someone needs a different locale on a specific file then they can do as you pointed out
withFile target WriteMode $ \handle -> do
  hSetEncoding handle utf8

I would agree with this overall as you get a sensible default out of the box, and can override it where appropriate.

@carlosdagos yes, I mean doing it as part of (by default) program setup, right after setting the number of cores (er HECs). You're right, someone can always override it back to something other than utf8. I just wanted to make sure setting it early woudn't crash a Program running on Mac OS X. Thanks for checking!

authors: afcowie carlosdagos

repo: oprdyn/unbeliever

license: MIT


text:
Be able to use OpsGenie-plugin behind a proxy.

This PR adds the ability to use this plugin behind a proxy. The proxy-configuration will be taken from Jenkins configuration.
This will solve issue https://github.com/opsgenie/opsgenie-jenkins-plugin/issues/4.

I also created a PR here: https://github.com/jenkinsci/opsgenie-plugin/pull/5
If one of them is not required please close the unnecessary one.

Hi, thanks for the request. I have tested the code and come up with 400 Bad request error. I verified that the request does not arrive the proxy server that I configured. Additionally, the proxy scheme is configured as http. Is it intended behavior? HttpHost proxyHost = new HttpHost(proxy.name, proxy.port); this line configures the HttpHost object with default http schema(3. parameter is not used in the constructor).
And finally, this version of the plugin is outdated. Can you please create a new pull request for this repository:  https://github.com/jenkinsci/opsgenie-plugin

authors: ErenKizilay cbickel

repo: opsgenie/opsgenie-jenkins-plugin


text:
deployment.yaml: treat DRUID_EXPORTER_PORT as string

Currently, the default value on DRUID_EXPORTER_PORT is throwing an
error:

helm upgrade --install druid-exporter druid/druid-exporter/helm/
--namespace druid

Release "druid-exporter" does not exist. Installing it
now.  Error: Deployment in version "v1" cannot be handled as a
Deployment: v1.Deployment.Spec: v1.DeploymentSpec.Template:
v1.PodTemplateSpec.Spec: v1.PodSpec.Containers: []v1.Container:
v1.Container.Env: []v1.EnvVar: v1.EnvVar.Value: ReadString: expects " or
n, but found 8, error found in #10 byte of ...|,"value":8080},{"nam|...,
bigger context
...|elabs.in"},{"name":"DRUID_EXPORTER_PORT","value":8080},{"name":"LOG_LEVEL","value":"info"},{"name":"|...
This is due to the ENV variable for port not being quoted, as
recommended [1]
[1] https://v2.helm.sh/docs/developing_charts/#quote-strings-don-t-quote-integers
Signed-off-by: Alejandro del Castillo alejandro.delcastillo@ni.com

Thanks for your contribution!!

authors: adelcast iamabhishek-dubey

repo: opstree/druid-exporter


text:
🛑 API Server is down

In 42c6a4a, API Server (https://api.optbp.com/hangfire) was down:

HTTP code: 0
Response time: 0 ms

Resolved: API Server is back up in 0ff0a67.

repo: optbp-monitor/optbp-monitor


text:
fix: re-implements Plated.transformOf

#1318

@GreyPlane nice work

authors: GreyPlane julien-truffaut

repo: optics-dev/Monocle


text:
fix: use custom table name in indexQuery

Use custom table name in the indexQuery.  Previously was not and throws error.

Hey! This issue was addressed in version 2.1.0 already. Thanks!

authors: Tarpsvo jgile

repo: optimistdigital/nova-page-manager


text:
Update service configuration file fix

Update service configuration file, parse out the transport from OsRegistry and set it in the update config

This PR has been superseded by https://github.com/oracle-cne/ocne/pull/19

authors: dkrasins shihchang

repo: oracle-cne/ocne


text:
Added mounts Corelens module module

These changes add a new module called 'mounts' to corelens, that displays all mountinfo from the given vmcore.

I have changed the membership in oracle-samples from private to public, but it was after I created this PR. Please let me know if I need to close this and create a new PR.

I will close this PR and create a new one.

repo: oracle-samples/drgn-tools


text:
Support For Synchronous Requests

This plugin apparently does not support synchronous XHRequests.
Is this planned to be implemented?
I depend on a third party library which is using following synchronous Request:
var req = new XMLHttpRequest;
req.addEventListener("load", function(r) {
    ...
});
t.addEventListener("error", function(t) {
    ...
});
t.open("GET", url, false); // false is for async boolean

Or any hints how to do this?

The following plugin has done the trick for me (I do synchronous requests for local resources):
https://github.com/TheMattRay/cordova-plugin-wkwebviewxhrfix
I hope this helps.

Hello, thanks for the answer. We finally finished with the same fork as you mentioned. Hopefully it helps others to find it quicker.

@AareFabrik We don't have any plan to support synchronous requests for local resources in near future considering Synchronous XHR is now in deprecation state.

authors: AareFabrik facetbarcelona manish2788


text:
OracleConnectionManager fails with tee: /tmp/orod.log: Permission denied

Steps followed:
cd ~/OracleDatabase/RAC/OracleConnectionManager/dockerfiles
cp ~/LINUX.X64_193000_client.zip 19.3.0/
./buildContainerImage.sh -v 19.3.0
docker network create --driver=bridge --subnet=172.16.1.0/24 rac_pub1_nw
docker run -d --hostname racnode-cman1 --dns-search=altitude-dashboard.com \
--network=rac_pub1_nw --ip=172.16.1.15 \
-e DOMAIN=altitude-dashboard.com -e PUBLIC_IP=172.16.1.15 \
-e PUBLIC_HOSTNAME=racnode-cman1 -e SCAN_NAME=racnode-scan \
-e SCAN_IP=172.16.1.70 --privileged=true \
-p 1521:1521 --name racnode-cman oracle/client-cman:19.3.0
docker logs -f racnode-cman

result:
04-18-2022 12:23:28 UTC :  : Creating /tmp/orod.log
tee: /tmp/orod.log: Permission denied
04-18-2022 12:23:28 UTC :  : Domain is defined to altitude-dashboard.com
tee: /tmp/orod.log: Permission denied
04-18-2022 12:23:28 UTC :  : PORT is not defined. Setting PORT to '1521'
tee: /tmp/orod.log: Permission denied
04-18-2022 12:23:28 UTC :  : Public IP is set to 172.16.1.15
tee: /tmp/orod.log: Permission denied
04-18-2022 12:23:28 UTC :  : RAC Node PUBLIC Hostname is set to racnode-cman1
tee: /tmp/orod.log: Permission denied
04-18-2022 12:23:28 UTC :  : SCAN_NAME name is racnode-scan
tee: /tmp/orod.log: Permission denied
04-18-2022 12:23:28 UTC :  : SCAN_IP name is 172.16.1.70
tee: /tmp/orod.log: Permission denied
04-18-2022 12:23:28 UTC :  : Generating CMAN file
tee: /tmp/orod.log: Permission denied
04-18-2022 12:23:28 UTC :  : Copying CMAN file to /u01/app/oracle/product/19.3.0/client_1/network/admin
tee: /tmp/orod.log: Permission denied
04-18-2022 12:23:29 UTC :  : Starting CMAN

CMCTL for Linux: Version 19.0.0.0.0 - Production on 18-APR-2022 12:23:29

Copyright (c) 1996, 2019, Oracle.  All rights reserved.

Current instance CMAN_racnode-cman1.altitude-dashboard.com is not yet started
Connecting to (DESCRIPTION=(address=(protocol=tcp)(host=racnode-cman1.altitude-dashboard.com)(port=1521)))
Starting Oracle Connection Manager instance CMAN_racnode-cman1.altitude-dashboard.com. Please wait...
CMAN for Linux: Version 19.0.0.0.0 - Production
Status of the Instance
----------------------
Instance name             cman_racnode-cman1.altitude-dashboard.com
Version                   CMAN for Linux: Version 19.0.0.0.0 - Production
Start date                18-APR-2022 12:23:29
Uptime                    0 days 0 hr. 0 min. 9 sec
Num of gateways started   2
Average Load level        0
Log Level                 USER
Trace Level               USER
Instance Config file      /u01/app/oracle/product/19.3.0/client_1/network/admin/cman.ora
Instance Log directory    /u01/app/oracle/diag/netcman/racnode-cman1/cman_racnode-cman1.altitude-dashboard.com/alert
Instance Trace directory  /u01/app/oracle/diag/netcman/racnode-cman1/cman_racnode-cman1.altitude-dashboard.com/trace
The command completed successfully.
04-18-2022 12:23:38 UTC :  : Checking CMAN Status
tee: /tmp/orod.log: Permission denied

CMCTL for Linux: Version 19.0.0.0.0 - Production on 18-APR-2022 12:23:38

Copyright (c) 1996, 2019, Oracle.  All rights reserved.

Current instance CMAN_racnode-cman1.altitude-dashboard.com is already started
Connecting to (DESCRIPTION=(address=(protocol=tcp)(host=racnode-cman1.altitude-dashboard.com)(port=1521)))
Services Summary...
Proxy service "cmgw" has 1 instance(s).
  Instance "cman", status READY, has 2 handler(s) for this service...
    Handler(s):
      "cmgw001" established:0 refused:0 current:0 max:256 state:ready
         <machine: localhost, pid: 71>
         (ADDRESS=(PROTOCOL=ipc)(KEY=#71.1)(KEYPATH=/var/tmp/.oracle_5432100))
      "cmgw000" established:0 refused:0 current:0 max:256 state:ready
         <machine: localhost, pid: 69>
         (ADDRESS=(PROTOCOL=ipc)(KEY=#69.1)(KEYPATH=/var/tmp/.oracle_5432100))
Service "cmon" has 1 instance(s).
  Instance "cman", status READY, has 1 handler(s) for this service...
    Handler(s):
      "cmon" established:2 refused:0 current:1 max:4 state:ready
         <machine: localhost, pid: 63>
         (ADDRESS=(PROTOCOL=ipc)(KEY=#63.1)(KEYPATH=/var/tmp/.oracle_5432100))
The command completed successfully.
tee: /tmp/orod.log: Permission denied
04-18-2022 12:23:38 UTC :  : cman started sucessfully
tee: /tmp/orod.log: Permission denied
04-18-2022 12:23:38 UTC :  : ################################################
tee: /tmp/orod.log: Permission denied
04-18-2022 12:23:38 UTC :  :  CONNECTION MANAGER IS READY TO USE!
tee: /tmp/orod.log: Permission denied
04-18-2022 12:23:38 UTC :  : ################################################
04-18-2022 12:23:38 UTC : : Cman startup failed!

I was able to resolve the error by entering a new line (chmod 777 /tmp && ) here:
    chown -R oracle:oinstall $SCRIPT_DIR && \
    chmod 755 $SCRIPT_DIR/*.sh && \
    chmod 666 $SCRIPT_DIR/*.ora && \
    chmod 777 /tmp && \
    sync

in the Dockerfile.

@Altitude-Dashboard I'm not following this issue but the command chmod 777 /tmp caught my eye.  If this is really needed, you should probably do chmod 1777 /tmp

authors: Altitude-Dashboard cjbj

repo: oracle/docker-images


text:
Oracle GoldenGate 23c

In version 23c, the Service Manager is a first-class service. Instead of modifying internal data files, use the REST API to adjust the network settings for Service Manager.

Hi @Djelibeybi ,
We are gearing up for support for OGG 23c in the coming months. It's been a while, so if there is someone else who should be reviewing pull requests, please let me know!

Steve

We are gearing up for support for OGG 23c in the coming months. It's been a while, so if there is someone else who should be reviewing pull requests, please let me know!

If you add two or more people to the CODEOWNERS file for your content, then they become the reviewers. I'm only required for content that hasn't been claimed using that method.

authors: Djelibeybi sbalousek


text:
RestClient with Exception Mapper is not working as expected...

DailyApiExceptionMapper is my Exception Mapper defined to handle my application level Exception (DailyApiException).
I have my method like the below,
public void create(Country country) throws DailyApiException {
        if (country.getCode() == null || country.getCode().isEmpty()) {
            throw new DailyApiException(400, "Country code should not be empty");
        }
}

My unit test:
I have created my RestClient like the following,
RestClientBuilder.newBuilder()
                .baseUri(new URI(HOST))
                .register(DailyApiExceptionMapper.class)
                .build(ICountryApi.class);

   @Test
    @DisplayName("Method to test create() without country code")
    public void testCreateWithoutCode() {
        final Country country = new Country("", "Test", "Test Capital");
        try {
            countryApi.create(country);
        } catch (DailyApiException e) {
            assertEquals(400, e.getCode(), "Country code should be given");
        }
    }

But my test fails with the following error. I am not be able to get the proper exception in my unit test. How can I get the proper exception in my unit test?
Result from unit test:
javax.ws.rs.WebApplicationException: Unknown error, status code 400
	at org.glassfish.jersey.microprofile.restclient.DefaultResponseExceptionMapper.toThrowable(DefaultResponseExceptionMapper.java:32)
	at org.glassfish.jersey.microprofile.restclient.MethodModel.evaluateResponse

Any clue?

@zarub2k Would it be possible for you to share some runnable code? Perhaps a Github link?

@zarub2k Any update on that runnable code? If I don't hear back, I'll assume you've resolved the issue and close it.

@zarub2k Please re-open if this is still an issue.

I am sorry. I was on travel so I couldn't get time to look into this issue. Please find the required details.
Mapper class:
@Provider
@Produces(MediaType.APPLICATION_JSON)
public class DailyApiExceptionMapper implements ExceptionMapper {
@Override
public Response toResponse(DailyApiException e) {
Map<String, Object> entities = new HashMap<>();
entities.put("code", e.getCode());
entities.put("message", e.getMessage());
return Response
.status(e.getCode())
.entity(entities)
.build();
}
}
API class:
@Path("/users")
public interface IUserApi {
@POST
@Consumes(MediaType.APPLICATION_JSON)
Response create(JsonObject userJson) throws DailyApiException;
}
@RequestScoped
public class UserApi implements IUserApi {
@Inject UserManager userManager;
@Override
public Response create(JsonObject userJson) throws DailyApiException {
    userManager.create(userJson);

    return Response
            .status(Response.Status.CREATED)
            .build();
}

}
Junit:
@Test
public void testCreate() throws DailyApiException {
final JsonObject userJson = Json.createObjectBuilder()
.add("email", "test@gmail.com")
.add("password", "test123")
.build();
final Response response = userApi.create(userJson);
System.out.println(response.getStatus());
assertEquals(201, response.getStatus(), "Response code should be 201");
}
Failure result:
javax.ws.rs.WebApplicationException: Unknown error, status code 500
at org.glassfish.jersey.microprofile.restclient.DefaultResponseExceptionMapper.toThrowable(DefaultResponseExceptionMapper.java:32)
at org.glassfish.jersey.microprofile.restclient.MethodModel.evaluateResponse(MethodModel.java:437)
at org.glassfish.jersey.microprofile.restclient.MethodModel.synchronousCall(MethodModel.java:232)
at org.glassfish.jersey.microprofile.restclient.MethodModel.invokeMethod(MethodModel.java:202)
at org.glassfish.jersey.microprofile.restclient.InterceptorInvocationContext.proceed(InterceptorInvocationContext.java:110)
at org.glassfish.jersey.microprofile.restclient.RestClientModel.invokeMethod(RestClientModel.java:91)
at org.glassfish.jersey.microprofile.restclient.ProxyInvocationHandler.invoke(ProxyInvocationHandler.java:70)
at com.sun.proxy.$Proxy37.create(Unknown Source)
at com.hustlebar.dailyapi.api.user.UserApiTest.testCreate(UserApiTest.java:39)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at org.junit.platform.commons.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:436)
at org.junit.jupiter.engine.execution.ExecutableInvoker.invoke(ExecutableInvoker.java:115)
at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.lambda$invokeTestMethod$6(TestMethodTestDescriptor.java:170)
at org.junit.jupiter.engine.execution.ThrowableCollector.execute(ThrowableCollector.java:40)
at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.invokeTestMethod(TestMethodTestDescriptor.java:166)
at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.execute(TestMethodTestDescriptor.java:113)
at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.execute(TestMethodTestDescriptor.java:58)
at org.junit.platform.engine.support.hierarchical.HierarchicalTestExecutor$NodeExecutor.lambda$executeRecursively$3(HierarchicalTestExecutor.java:112)
at org.junit.platform.engine.support.hierarchical.SingleTestExecutor.executeSafely(SingleTestExecutor.java:66)
at org.junit.platform.engine.support.hierarchical.HierarchicalTestExecutor$NodeExecutor.executeRecursively(HierarchicalTestExecutor.java:108)
at org.junit.platform.engine.support.hierarchical.HierarchicalTestExecutor$NodeExecutor.execute(HierarchicalTestExecutor.java:79)
at org.junit.platform.engine.support.hierarchical.HierarchicalTestExecutor$NodeExecutor.lambda$executeRecursively$2(HierarchicalTestExecutor.java:120)
at java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:184)
at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:175)
at java.util.Iterator.forEachRemaining(Iterator.java:116)
at java.util.Spliterators$IteratorSpliterator.forEachRemaining(Spliterators.java:1801)
at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481)
at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471)
at java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:151)
at java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:174)
at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
at java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:418)
at org.junit.platform.engine.support.hierarchical.HierarchicalTestExecutor$NodeExecutor.lambda$executeRecursively$3(HierarchicalTestExecutor.java:120)
at org.junit.platform.engine.support.hierarchical.SingleTestExecutor.executeSafely(SingleTestExecutor.java:66)
at org.junit.platform.engine.support.hierarchical.HierarchicalTestExecutor$NodeExecutor.executeRecursively(HierarchicalTestExecutor.java:108)
at org.junit.platform.engine.support.hierarchical.HierarchicalTestExecutor$NodeExecutor.execute(HierarchicalTestExecutor.java:79)
at org.junit.platform.engine.support.hierarchical.HierarchicalTestExecutor$NodeExecutor.lambda$executeRecursively$2(HierarchicalTestExecutor.java:120)
at java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:184)
at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:175)
at java.util.Iterator.forEachRemaining(Iterator.java:116)
at java.util.Spliterators$IteratorSpliterator.forEachRemaining(Spliterators.java:1801)
at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481)
at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471)
at java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:151)
at java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:174)
at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
at java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:418)
at org.junit.platform.engine.support.hierarchical.HierarchicalTestExecutor$NodeExecutor.lambda$executeRecursively$3(HierarchicalTestExecutor.java:120)
at org.junit.platform.engine.support.hierarchical.SingleTestExecutor.executeSafely(SingleTestExecutor.java:66)
at org.junit.platform.engine.support.hierarchical.HierarchicalTestExecutor$NodeExecutor.executeRecursively(HierarchicalTestExecutor.java:108)
at org.junit.platform.engine.support.hierarchical.HierarchicalTestExecutor$NodeExecutor.execute(HierarchicalTestExecutor.java:79)
at org.junit.platform.engine.support.hierarchical.HierarchicalTestExecutor.execute(HierarchicalTestExecutor.java:55)
at org.junit.platform.engine.support.hierarchical.HierarchicalTestEngine.execute(HierarchicalTestEngine.java:43)
at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:170)
at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:154)
at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:90)
at com.intellij.junit5.JUnit5IdeaTestRunner.startRunnerWithArgs(JUnit5IdeaTestRunner.java:69)
at com.intellij.rt.junit.IdeaTestRunner$Repeater.startRunnerWithArgs(IdeaTestRunner.java:33)
at com.intellij.rt.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:230)
at com.intellij.rt.junit.JUnitStarter.main(JUnitStarter.java:58)

I am not able to open this issue...

This issue is tagged with 'cannot reproduce'. Are you still facing any trouble reproducing this problem?

@zarub2k No, we did not get to it yet. Will remove tag.

@zarub2k Looking at the additional code you provided, I think there may be a confusion here between client and server code. The type ExceptionMapper is only server side; the dual for the Rest Client API is called ResponseExceptionMapper. The former maps a server-side exception to a Response, the latter a Response received from the server to a client-side exception.
Despite seeing just pieces of your code, it seems from the original description of the problem that you want a client-side exception to be thrown, in which case you'd need to implement a ResponseExceptionMapper. Can you please check that?

@spericas I have already implemented the Exception Mapper in the server side. I would like to catch the exception even through the Client SDK. When I simulate the same scenario through Postman client, I am getting the proper exception based on the mapper i defined in the server side. I can open the complete code (permission to you) to you if you need more details. I believe I am missing some fundamental things in the code or configuration. Let me know how to take this forward.

@zarub2k Have you looked at ResponseExceptionMapper::toThrowable? You need an instance of that mapper in your client config to get an exception on the client. The registration of DailyApiExceptionMapper.class in RestClientBuilder has no effect. The server is going to return a 400 code, and you should map that to a DailyApiException on the client side in your ResponseExceptionMapper implementation.

I am extremely sorry for asking. I have no idea on this. Do you have any reference to enhance this? I thought adding the exception mapper into our client builder will internally handle this behavior.

See the section about ResponseExceptionMapper here:
https://download.eclipse.org/microprofile/microprofile-rest-client-1.0/microprofile-rest-client.pdf

I will look into this and try the steps in my client code.

Let me know how it goes, if there's an issue, we can re-open.

repo: oracle/helidon


text:
Refactoring of the class ClassPathContentHandler

Method doHandle in the class ClassPathContentHandler needs to be refactored. It uses java.nio.Path as path to content on classpath. When used on Windows it returns path with backward slash.

Duplicate of #298


text:
Clarify relation to CQ-4357471

The new AEMaaCS release notes for 18459 list the following fix:

CQ-4357471: Add support for i18n Dictionaries Translation in AEMaaCS

(https://experienceleague.adobe.com/en/docs/experience-manager-cloud-service/content/release-notes/maintenance/latest?lang=en)
Does this mean that this tool becomes obsolete?

The new feature introduced on the release 18459 only covers the dictionary translation through exports and imports of XLIFF  file format.
But this new tool does not expose any dictionary interface allowing the i18n translation management. I don't see it as a replacement to aem-dictionary-translator tool.
Some extra info:

The tool is accesible from: http://<hostname>:<port-number>/libs/cq/i18n/gui/translator.html
Servlet com.adobe.granite.i18n.impl.DictImportExportServlet that renders the dictionaries as XLIFF format contained in com.adobe.granite.i18n bundle: http://<hostname>:<port-number>/libs/granite/i18n/de.dict.xliff
The new dictionaries will be stored under /content/cq:i18n

The tool is also not yet linked from the tools section. Here is a screenshot of it:

There seem to be some kind of overlay mechanism introduced, so that dictionaries in /content/cq:i18n seem to take precedence over ones from /apps or /libs

Hmm, so does that mean there is a non-open source extension of the sling i18n resourcebundleprovider? Don't remember seeing any PR's about this :D

I dug a littlebit deeper, but haven't found any implementation which changes anything about the search order outlined in https://sling.apache.org/documentation/bundles/internationalization-support-i18n.html#resourcebundle-hierarchies. So in fact this feature doesn't seem to allow to overwrite an existing translation for the same locale from /apps in /content/cq:i18n, it only works for translations not yet existing for the key and locale in /apps or /libs.

OK good to know. I'll wait until the docs of AEM are updated before maybe updating the readme here to point to the difference

Next to documentation would also be good to add a button to easily provide a way to export in XLIFF format (next to CSV).

authors: jmagdrod kwin royteeuwen

repo: orbinson/aem-dictionary-translator


text:
Fix typos and links

Fixed a few typos and links as I was going through the docs. Thanks for the great guide.

@akegaviar Thank you for the PR, so many fixes! The community thanks you and welcomes you 😄

authors: akegaviar dzello

repo: orbit-love/orbit-model


text:
How to add Node.js modules to webpack

I'm very new to developing with node.js and webpack.
Currently, I've been working on a way to encrypt the peerID and keystore with a password.  This way it can act as a user's account.  I've got the encryption working and the serialization of the typed arrays, but what I need to do in to reconstruct Keystore passing it _storage.
Keystore, however, is not in scope in the browser example.  How do I add it to webpack so that I can use it in the client?

Adding libraries to web pack is described on its docs

Thanks @lukas2005. @willemneal hope that answered your question! :)

authors: RichardLitt lukas2005 willemneal

repo: orbitdb/orbit-db


text:
fix: Upgrade to styled-components v5, move font @import

Upgrading styled-components for Orca!

 Here is an overview of what got changed by this pull request:

Issues
======
- Added 2

See the complete overview on Codacy

authors: deividasm mariasereno-png

repo: orchestrated-io/orca-design-system


text:
Center and Zoom is not defined in Typescript mode

How to set up initial center and zoom for tsx file?
I couldn't find center and zoom on your HEREMapProps. Thank you

@ronyfhebrian you need to install the @types/heremaps package.

authors: arminrosu ronyfhebrian

repo: ordazgustavo/here-maps-react


text:
fixed wrong data-type in selector for copyright-page

Hi,
am just starting out with HTMLBook, using prince 11 to create PDF and without this change the page formatting is incorrect.
Btw. it would be good to have some information about the tooling you are using to process HTMLBooks. I am having trouble getting XSLT stylesheets to work and would be grateful for tips. (email contact is alex.voss@st-andrews.ac.uk)
Cheers,
Alex

Hi, thank you for this pull request. I’m sorry that it’s taken so long to get back to you about it. Because of the length of time that’s passed since O’Reilly has actively reviewed pull requests to this project from outside contributors, and because of the context lost in that time, we’re closing all stale pull requests.
If you still feel we should consider this pull request, please feel free to reopen, and we’ll review it in a timely manner. Thanks again!

authors: alexvoss hackermatthew

repo: oreillymedia/HTMLBook

license: mit

license_source: bigquery


text:
[news] 🇮🇹 Added italian translations for some past news

I'll continue to add some more past news until completed. Also to get the hang for terminology and such.

Thank you!

authors: biodranik lucaceccarini


text:
Back port bug fix to 2.0

This back ports the changes from #303 to the 2.0.x series.

This is actually not necessary. If you need this bug fix, you can upgrade to 2.1.3 from 2.0.x.

I yanked this version.
> bundle exec gem yank active_interaction -v '2.0.2'
Yanking gem from https://rubygems.org...
Successfully deleted gem: active_interaction (2.0.2)


text:
Show keygrips

Discussed in https://github.com/orhun/gpg-tui/discussions/48

Originally posted by dievilz October 12, 2022
I would love to see the keygrips inside the TUI. That way, I think this program would be even more efficient than already is, at least for me 🤘🏻. And include the respective setting in the config. file too.
I don't think this feature is implemented and I don't know if it is out of scope, but still I'll make the request 😅.
I would love to contribute and make a pull request but sadly I know nothing about Rust :c

I'll try picking this up soon :)

Hey @bsodmike! Are you still interested in working on this? I'm happy to guide with the implementation 🐻

Hey @bsodmike! Are you still interested in working on this? I'm happy to guide with the implementation 🐻

Hey, sure, please let me know what you have planned :)

Apparently a keygrip is:

This term is used by GnuPG to describe a 20 byte hash value used to identify a certain key without referencing to a concrete protocol. It is used internally to access a private key. Usually it is shown and entered as a 40 character hexadecimal formatted string.

The key grip is (as a first approximation) a hash of the public key material. This is different from the fingerprint, which is a hash of the public key material and some meta-data (in particular, the packet's version, and the key's creation time). This means that if two keys have the same public key material, but different meta-data, then they will have different fingerprints, but the same key grip. As I understand it, the key grip is a gpg invention, which has to do with how gpg-agent works. There's no standard, and no other OpenPGP implementation really uses it.

You can see an example here:
$ gpg -k --with-keygrip

pub   rsa4096 2023-09-28 [SC]
      7545E677A4449CD72A2E3F71930FCF192DECE98B
      Keygrip = FF886AD832FAC91A5AF498434C2DF0D3F8730E5A
uid           [ultimate] daktilo <ducktilo@proton.me>
sub   rsa4096 2023-09-28 [E]
      Keygrip = 5A16A03CAF1FDE48154F8FF7D9767C48F07A93F4

We can access these values via Subkey::keygrip function in Rust.
So the question is how should we display them?
Well, key fingerprint and keygrip has the same length so we can add a new command (e.g. keygrip) to show keygrips instead. Or we can show it in the 2nd detail level, somewhere.
You need to play around a bit to find out which one looks better :)

authors: bsodmike orhun

repo: orhun/gpg-tui


text:
Card Enhancements on Ability Cards

Maybe I missed how to do it. Is there are way to already to add +1, jumps, blesses, etc to ability cards? We started a game physically before the virus and had upgraded our cards. We love your tool but we can't easily leverage our upgrades.

Hi, glad you like our app.
Card enhancement is not currently implemented, but will be consider it soon.
Stay tuned ;)

authors: cchatham orichalque


text:
.NET driver

Hi Guys,
When are you planning to update the .NET driver? Since OrientDB version 3.0.32 I cannot use the driver anymore because with the TCP/IP connection the token-based sessions are required. Therefore I cannot use any of the version higher than 3.0.32 anymore for some time now. The last update to the .NET driver was 4+ years ago.
It is sad to see .NET community being left out of such a great database. I wanted to implement the token-based session by myself some time ago but the documentation of how to do it was back then non existent (some year or something ago).
Would it be possible to at least update the core of the .NET driver to handle the basic things like connections, SQL query executions and object serialization/deserialization? I don't mind writing text queries for the execution, so there is no need for now to add an abstraction layer for the SQL. I am anyway using custom queries or I generate some of them.
Thanks in advance and best regards
Tomaz

Hi @tomazk8, unfortunately, the .NET driver is not supported officially anymore. We're looking for some help from the community to make it compatible with the latest 3.x.

Hi @tomazk8, unfortunately, the .NET driver is not supported officially anymore. We're looking for some help from the community to make it compatible with the latest 3.x.

repo: orientechnologies/orientdb


text:
Languages in v1.0

In v1.0 I dearly miss the language option of the dictionary. Any chance that will return?

Internationalization will return, we're figuring out the best way to use an exiting package to achieve that

Great! Any clue about a timeframe? (don't want to be pushy, but I was about to release an app...)

It's a matter of testing out different packages out there, could you join in the hunt for the right package to use?

Messageformat is a possible https://atmospherejs.com/gadicohen/messageformat option http://messageformat.meteor.com/

In my view, there are so many aspects to true localisation and internationalisation, Orion will never solve them all adequately, for everyone. Think dates, numbers, text etc. The simple solution Orion provided in it's former life was a good start, and should even be used, in my view, for collections (previously entities). Maybe an extra option to it could be to allow only certain (text) fields to be 'translatable', and so prevent doubling everything.
My 2 cents... 😊
—
Sent from Mailbox
On Fri, May 1, 2015 at 6:32 PM, Timothy notifications@github.com wrote:

Messageformat is a possible https://atmospherejs.com/gadicohen/messageformat option http://messageformat.meteor.com/
Reply to this email directly or view it on GitHub:
https://github.com/orionjs/orion/issues/132#issuecomment-98173205

Hi Nicolas,
Any chance you could get your old Language features (in Dictionaries and possibly Collections & Pages) back in? So that a english and (in my case) dutch buttons appears above the AutoForms?
Would be grand!
Regards,
J*

Doing this is in the roadmap, but it has to be done the right way.
This features changes a lot of things from the inside, so we need to do it perfectly.

We will keep just #6

authors: jorisroling nicolaslopezj timfam

repo: orionjs/orion


text:
Creating Write Key

Issue:
we need to currently working on implementing a write key functionality. The write key should include information such as source, destination, and potentially other details. we need to find best practices how to effectively design and implement this feature.
Details:

Objective: Create a unique write key for Ormus CDP system.
Information to Include: The write key should encompass details such as source, destination, and any other relevant information.

Questions:

What information does the write key in Ormus typically contain?
How should the write key be encrypted to ensure security?
How can I ensure the uniqueness and security of the generated write keys in the context of Ormus?

In segment as far as i tested for two golang sources, write keys are completely different and more important they not depend on destination because at start we don't have any destination but we have the write key from start.

So it is not necessary for write keys to have special information inside?

I don't think so

In segment as far as i tested for two golang sources, write keys are completely different and more important they not depend on destination because at start we don't have any destination but we have the write key from start.
By the way i think segment use KSUID : segmentio/ksuid

So a write key is connected to for example a user id, not a source id, correct?

The problem that is bugging me is that we have to save the token or id in a sort of database.
The token I think is better to be sortable so we could shard our database in future if necessary.
So we have to choose if to continue with the segment library and skip the implementation or write it from scratch.
Please comment your idea and let me know.

write key generate per each source and each user can have multiple source aka multiple write keys.
if i get it right you are saying saving token can give us sort ability? ksuid also provide this feature

So from what you say If you create an account in Segment a write key would be generated for you? and you can use it in any source you created? this a little bit weird for me, I think generating write key, per source is more logical, IDK :)).

Think about writekey validation, One of our jobs is to validate the generate writekeys.
User cannot give a random string, and we store it as a writekey. So we should store every generated writekey in order of validation, correct?

And lastly from what I remember for optimizing our databases (Source DB) we may have to shard our database by writekeys, so I think it is better to have sortable tokens for further needs.
And yes I've read the ksuid docs and saw that it is sortable.

As far as I know, each write-key is unique for a single source and it isn't related to the user authentication token. Write-key can be any random enough long-length string that should be unique.
I am only concerned about the uniqueness-guarantee, especially in a distributed system that would be hard.

In segment as far as i tested for two golang sources, write keys are completely different and more important they not depend on destination because at start we don't have any destination but we have the write key from start.
By the way i think segment use KSUID : https://github.com/segmentio/ksuid

This is great option or at least great inspiration...

Hi again, I've researched about ULIDs and founded this library ULID-oklog.
Also I tried to decode the write-keys that I have obtained from segment.

jkg2bSc6UjDQjnoJupOd6Test7dAgdJv (go library)
IXn7WzRb84ZHYWHWVtybxnA6wH7ZP0ng (JS library)

(It is a little bit weird for me that the lengths are not equal)
But I could not decode it with neither a base-32 decoder (which ULID is based on) and nor the KSUID I even tried to divide tokens and extract the time stamp from the token.
Why?
I dug dip into both libraries KSUID and ULID both of them have some similarities in core concepts.

ULIDs are Ids that are constructed by a 48 bit timestamp and 80bit random data.
KSUIDs, as well have a similar structure with 32 bit timestamp (which by looking at the length I can say it is not nanosecond accurate like ULID) and 128bit random data.
also ULIDs are base32, meaning they are constructed by 28 capital letters of english and numbers 2-7, which on the other hand, KSUIDs are base62.
both of them are sortable.

### KSUID
> ksuid
2YzRR195l16ngj9gYXmTP1iM0Td

> ksuid -f inspect 2YzRR195l16ngj9gYXmTP1iM0Td

REPRESENTATION:

  String: 2YzRR195l16ngj9gYXmTP1iM0Td
     Raw: 11F8ED894A9979D35F602EF0482811D6EA770CDD

COMPONENTS:

       Time: 2023-12-02 17:43:29 +0330 +0330
  Timestamp: 301526409
    Payload: 4A9979D35F602EF0482811D6EA770CDD

### ULID
> ulid
01HGNEMMNVK915T1339P2FYH34

> ulid 01HGNEMMNVK915T1339P2FYH34
Sat Dec 02 14:24:08.891 UTC 2023

So to conclude, segment write-key is neither a ULID nor a KSUID, looking at their format I can say they are not GUIDs or UUIDs, or at least, segment is not sending the raw ULID or KSUID to the user for using as a write-key.
Questions:

Should we send which ever key that we generated(and stored in a database) to the user? Or should some how change the format like segment?
Do we need to embed user-id or something user data related to the ULID? Why?

Scenario 1: we use raw ULIDs as write-key and send it to user, when validating we should

get write-key from user
send to our manager service which is responsible for generating and validating write-key
manager validates it
finally send a response to user, that if the token is okay or not?

Scenario 2: we extend ULIDs length, embedding a crypto-graphed secret which we declared, and a user-id maybe, so we could decode it, instead of requesting the token status from manager service.

Hi again, I've researched about ULIDs and founded this library ULID-oklog. Also I tried to decode the write-keys that I have obtained from segment.

jkg2bSc6UjDQjnoJupOd6Test7dAgdJv (go library)

IXn7WzRb84ZHYWHWVtybxnA6wH7ZP0ng (JS library)

(It is a little bit weird for me that the lengths are not equal)

But I could not decode it with neither a base-32 decoder (which ULID is based on) and nor the KSUID I even tried to divide tokens and extract the time stamp from the token.

Why?

I dug dip into both libraries KSUID and ULID both of them have some similarities in core concepts.

ULIDs are Ids that are constructed by a 48 bit timestamp and 80bit random data.

KSUIDs, as well have a similar structure with 32 bit timestamp (which by looking at the length I can say it is not nanosecond accurate like ULID) and 128bit random data.

also ULIDs are base32, meaning they are constructed by 28 capital letters of english and numbers 2-7, which on the other hand, KSUIDs are base62.

both of them are sortable.

KSUID

ksuid

2YzRR195l16ngj9gYXmTP1iM0Td

ksuid -f inspect 2YzRR195l16ngj9gYXmTP1iM0Td

REPRESENTATION:

String: 2YzRR195l16ngj9gYXmTP1iM0Td

 Raw: 11F8ED894A9979D35F602EF0482811D6EA770CDD

COMPONENTS:

   Time: 2023-12-02 17:43:29 +0330 +0330

Timestamp: 301526409

Payload: 4A9979D35F602EF0482811D6EA770CDD

ULID

ulid

01HGNEMMNVK915T1339P2FYH34

ulid 01HGNEMMNVK915T1339P2FYH34

Sat Dec 02 14:24:08.891 UTC 2023

So to conclude, segment write-key is neither a ULID nor a KSUID, looking at their format I can say they are not GUIDs or UUIDs, or at least, segment is not sending the raw ULID or KSUID to the user for using as a write-key.

Questions:

Should we send which ever key that we generated(and stored in a database) to the user? Or should some how change the format like segment?

Do we need to embed user-id or something user data related to the ULID? Why?

Scenario 1: we use raw ULIDs as write-key and send it to user, when validating we should

get write-key from user

send to our manager service which is responsible for generating and validating write-key

manager validates it

finally send a response to user, that if the token is okay or not?

Scenario 2: we extend ULIDs length, embedding a crypto-graphed secret which we declared, and a user-id maybe, so we could decode it, instead of requesting the token status from manager service.

Thanks, Abtin jan for your great discovery. I guess we can use a customized algorithm to generate write-key if we want to consider security concerns. But we may lose the database performance gain for ordered IDs.

🙏🏻 I thaught about that, we can add 16 bits more in format of MD5 hash (secret + user_id + source_id (if needed)).
ULID + MD5
With this solution we can both have sorting functionality with ULID, and secure data protection for users, because we just need verificarion for the token not authorization.
But I dont know if MD5 is secure enough for this purpose, and other hashing algorithms like SHA family were too long I think.

MD5 is not secure enough.

authors: AmirAtashghah DOO-DEV abtinokhovat gohossein

repo: ormushq/ormus


text:
Дарует дополнительно 5% орн

Фигня
Плюсы

Дарует дополнительно 5% орн

Минусы

Снижает характеристики питомца на 10%

Дубль

repo: orna-memory-hunting/storage

license: Unlicense


text:
Schema update fail on install

I have a beautiful exception
[Doctrine\DBAL\DBALException]
  An exception occurred while executing 'CREATE TABLE oro_search_index_text (id INT AUTO_INCREMENT NOT NULL, item_id INT NOT NULL, field VARCHAR(250) NO
  T NULL, value LONGTEXT NOT NULL, INDEX IDX_A0243539126F525E (item_id), INDEX value (value), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE utf8_u
  nicode_ci ENGINE = MyISAM':
  SQLSTATE[42000]: Syntax error or access violation: 1170 BLOB/TEXT column 'value' used in key specification without a key length

PS:  I use oro crm-application v1.7.4.
Bouyaaaa =:

I'm getting this also.

What MySQL version are you using?

MariaDB 10.0.20 via Homebrew

For some reasons, instead of FULLTEXT index was added regular index on the LONG TEXT field which caused an exception because of MySQL limitations.

Works on pgsql btw. I've just installed it.

I am havind the same problem with mysql

Did you run oro:install or use doctrine:schema:create?

No more comments from any of the reporters so I am closing this for now. Feel free to reopen if the issue persists. Thank you.

authors: Shine-neko artml dutchiexl iklymenko orocrmdeployer rgrebenchuk tim-massey

repo: orocrm/platform


text:
博主朋友你的博客宕机了

https://www.orx.me/   你的博客打不开了......

把www.去掉，大吃货省电信可打开。
Sent from my iPhone
On Feb 28, 2016, at 16:20, 吴钧泽 notifications@github.com wrote:

https://www.orx.me/ 你的博客打不开了......
―
Reply to this email directly or view it on GitHub.

仍然打不开   可能是你博客的ip被墙了

可以打开，什么鬼，这个也发这里。。。

authors: orvice wtlusvm wujunze

repo: orvice/ss-panel


text:
无 index.php

运行环境

PHP Version /PHP版本: 5.6
ss-panel version/ ss-panel版本: 3.3.9
其他环境信息(Nginx,系统等): Ubuntu 14.04 LTS

Description of the problem / 问题描述
没有 index.php 文件？
在版本的分支里和 master 分支里都没有 index.php 啊。

哦我看错了，根目录要设成 /public。


text:
我装的是lamp环境，你的重写在apache里面该怎么写？

** 开issue前请确认: **

安装问题等错误请开启debug模式,并附上debug log
安全问题请发邮箱 sspanel#orx.me
未填写运行环境的issue将会被直接关闭
一个issue请只题一个问题,多个问题分多个issue开.

运行环境
php5.5
ss-panel3.0
apache 2.2
Description of the problem / 问题描述
我装的是lamp环境，你的重写在apache里面该怎么写？能不能告知我一下
nginx里面这么写
location / {
try_files $uri $uri/ /index.php$is_args$args;
}

apache 不需要重写。
public目录下有.htaccess文件。

我做的是虚拟主机开启了vhost功能
[Fri Jun 10 19:31:11 2016] [error] [client 103.212.33.61] File does not exist: /var/html/ss/public/auth, referer: http://ss.itman.win/
[Fri Jun 10 19:46:06 2016] [error] [client 103.212.33.61] File does not exist: /var/html/ss/public/code, referer: http://ss.itman.win/
[Fri Jun 10 20:00:51 2016] [error] [client 103.212.33.61] File does not exist: /var/html/ss/public/code, referer: http://ss.itman.win/
[Fri Jun 10 20:00:55 2016] [error] [client 103.212.33.61] File does not exist: /var/html/ss/public/auth, referer: http://ss.itman.win/
[Fri Jun 10 20:00:59 2016] [error] [client 103.212.33.61] File does not exist: /var/html/ss/public/auth, referer: http://ss.itman.win/
[Fri Jun 10 20:54:17 2016] [error] [client 103.212.33.61] File does not exist: /var/html/ss/public/code, referer: http://ss.itman.win/
我首页能访问ok  我的虚拟主机配置
<VirtualHost *:80>
ServerAdmin xxxxxxx
DocumentRoot "/var/html/ss/public"
ServerName ss.itman.win
RewriteEngine on
ErrorLog "|/usr/sbin/cronolog /application/apache/logs/ss_error_$(date +%w).log"
CustomLog "|/usr/sbin/cronolog /application/apache/logs/ss_access_$(date +%w).log" combined

好了，要开启重写功能  本来AllowOverride None的改了下就好了
<Directory "/usr/share/zabbix">
Options FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all

For more detailed information of how to enable AllowOverride for LAMP, or you have issues about Page NOT FOUND kind of error except the home page, please do the following instructions told as below.
https://www.digitalocean.com/community/tutorials/how-to-set-up-mod_rewrite-for-apache-on-ubuntu-14-04

authors: myfingerhurt orvice weiweimao1991


text:
add Chinese translation

Preflight checklist

[X] I could not find a solution in the existing issues, docs, nor discussions.
[X] I agree to follow this project's Code of Conduct.
[X] I have read and am following this repository's Contribution Guidelines.
[X] I have joined the Ory Community Slack.
[X] I am signed up to the Ory Security Patch Newsletter.

Ory Network Project
No response
Describe your problem
none
Describe your ideal solution
Add a Chinese translation to the local file cn.json
Workarounds or alternatives
none
Version
v0.5.0
Additional Context

In fact, I have already completed this function and still need to discuss it further

https://github.com/GWnbsp/elements/blob/main/src/locales/cn.json

repo: ory/elements


text:
devel: Add Makefile and Containerfile.hack

Two conveniences:

I commonly work on multiple projects in multiple languages and I find it very useful to have typing make do something useful by default.
This Containerfile.hack I found is a lot faster and more understandable for the case of just wanting to hack on the Go code including changes to osbuild/images versus what is in devel/Containerfile which is much more heavyweight and assumes we're also hacking on osbuild.

I am a big :100: on the Makefile, everytime I come to this repo, I type make and then remember I have to do ./build.sh

authors: cgwalters rhatdan

repo: osbuild/bootc-image-builder


text:
Merge cloud API into main binary

As discussed, we'd like to expose one endpoint on :443 with both the composer API (née "cloud", at /api/composer/v1) and the koji api (at /api/composer-koji/v1).
This is a draft, because it doesn't contain an integration test yet, because I don't want too many conflicts with #1016.

This is a draft, because it doesn't contain an integration test yet, because I don't want too many conflicts with #1016.

#1016 has landed and I've included an integration test that depends on it, based on the one @Gundersanne had put into aws.sh.
This is ready for review now.

Update: fix osbuild-auth-tests and change api.sh to make a RHEL image, because fedora-32 cannot be built on older systems because of https://bugzilla.redhat.com/show_bug.cgi?id=1777831.

Rebased to resolve conflicts and to switch api.sh to build fedora-31. This could be extended to other (or more) distros in the future, but it's not really what this script is testing. Instead, it's testing that the API works end-to-end.

Rebased to resolve conflicts and to switch api.sh to build fedora-31. This could be extended to other (or more) distros in the future, but it's not really what this script is testing. Instead, it's testing that the API works end-to-end.

And of course that didn't work, because we cannot build Fedora on RHEL (yay runners, @gicmo :wink:)
Added a commit which installs /usr/share/tests/osbuild-composer/repositories.json, meant to be used by all tests. api.sh uses it to build an image on the OS it's running on.

tools/deploy/test/files/etc/osbuild-composer/repositories
^ is this file good for anything?

^ is this file good for anything?

It is! It's a link in tools/deploy/test which makes sure that a local test run with tools/test-qemu includes those files as well.

All tests are green, but Jenkins failed after the pipline ran successfully with:
[2020-10-15T23:19:52.512Z] groovy.lang.MissingPropertyException: No such property: none for class: groovy.lang.Binding

#1032

authors: larskarlitski ondrejbudai

repo: osbuild/osbuild-composer


text:
Introduce Azure upload test

The test is very simple, it first upload a file with random content and then downloads it back and compare hashes.

This fails because the environment variables in CI are not available to forks.

It is ready to be merged. I made the test optional in case in has non of the configuration variables (like in case of running in Travis from a fork). It will run once it is merged into our main repo.


text:
Updating license file

Updating license file

Hi, I have reverted the pull request 4 with the comments and I'm not pretty sure if that's all or maybe I have to do something else

Hi, I have reverted the pull request 4 with the comments and I'm not pretty sure if that's all or maybe I have to do something else

Because I do not know how to merge the commit


text:
Attach coupon to customer

A callback to attach a coupon to a customer would be nice on:

Input passed on first creation of customer
Function on stripe_user that can be called manually

https://stripe.com/docs/billing/subscriptions/coupons?dashboard-or-api=api
https://stripe.com/docs/api/customers/update

Are you using the Stripe hosted Checkout? a customer can use coupon there when checking out.

repo: oscarychen/drf-stripe-subscription


text:
Use ansible.builtin.include_tasks instead of ansible.builtin.include

ansible.builtin.include is deprecated. Use ansible.builtin.include_tasks.

It´s done

authors: berendt ra-rau

repo: osism/ansible-collection-services


text:
Database Connection

I finished setting up the SQL database and added a new route to server.js to test and make sure it is running and our server is connected. Everything ran successfully.

Accidentally make request to main instead of dev.

repo: oslabs-beta/NotiKube


text:
Restyle node handles

Local nodes will have left and right handles (incoming edges from left, outgoing edges from right)
Root nodes will only have right handles (outgoing edges from right)
Third party nodes will only have left handles (incoming edges from left)

PR is very similar to PR #20 ...
Let's be sure to merge these in the order they were submitted.

repo: oslabs-beta/bev


text:
Frontier: Add Gravity Bridge Wrapped Bitcoin

Wrapped Bitcoin asset on Ethereum: https://etherscan.io/token/0x2260fac5e5542a773aa44fbcfedf7c193bc2c599
Wrapped Bitcoin on Gravity Bridge Chain is gravity0x2260fac5e5542a773aa44fbcfedf7c193bc2c599
Wrapped Bitcoin / ATOM pool on frontier: https://frontier.osmosis.zone/pool/694

I hope it would be OK to replace btc logo withh the wrapped btc logo? Seems more technically accurate, and therefore should use the wbtc coingecko id as well...

@JeremyParish69 I have resolved all of your comments.

repo: osmosis-labs/osmosis-frontend


text:
Add protocol cut of swapfees

A portion of swapfees should go to OSMO stakers.  Should be parametrizable on chain

Do you think this must be a launch feature? I'd prefer to have this as a v2 release.

No, this shouldn't be for launch.

So we need to decide if we want stakers to get x% of all swap fees, or stakers to take a minimum x% of all swap fee.

Probably minimum percent I think.

authors: ValarDragon dogemos sunnya97

repo: osmosis-labs/osmosis


text:
Metadata for denom uion, uosmo not registered

Expected behaviour

Query /cosmos/bank/v1beta1/denoms_metadata/uion should respond
Query /cosmos/bank/v1beta1/denoms_metadata/uosmo should respond

Actual behaviour

Query failed with (22): rpc error: code = NotFound desc = client metadata for denom uion: key not found
Query failed with (22): rpc error: code = NotFound desc = client metadata for denom uosmo: key not found

Oh yeah, yikes. I confirmed via the CLI.
I thought we fixed this for uion in one of the upgrades.
cc @mattverse can you guide @stackman27 re how to get this fixed / in the next upgrade handler?

OC! @stackman27 reach me out if you have any questions on getting a fix out! Also please feel free to assign me as reviewer once PR is r4r

sounds good, i'll let you know!

Closing, will get into next upgrade :)

authors: ValarDragon byeongsu-hong mattverse stackman27


text:
app/apptesting: Reduce memory allocations in KeeperTestHelper.Setup()

Closes: #2148
What is the purpose of the change
Memprofile KeeperTestHelper.Setup() and reduce memory allocs
Using Benchmark added in #2143
Steps Taken

[x] Cache encoding config in app/encoding.go

Initial benchmark:
   BenchmarkSetup-8             514           2258866 ns/op         1364230 B/op      17732 allocs/op
Benchmark after caching encoding config:
   BenchmarkSetup-8             534           1902947 ns/op         1077572 B/op      14312 allocs/op

[ ] modulemanager.InitGenesis
encoding/json.Unmarshal() takes too much resources and time to do its job. There are alternatives to json's Unmarshal(), one of which is jsoniter, which claims to be faster than encoding/json package
[ ] iavl.LoadVersion()
Starting up of archive nodes (improving performance of iavl.Load.Version()) is tackled in this PR: https://github.com/cosmos/iavl/pull/638

Documentation and Release Note

Does this pull request introduce a new feature or user-facing behavior changes? no
Is a relevant changelog entry added to the Unreleased section in CHANGELOG.md? no
How is the feature or change documented? no

Thanks for picking this up! Apologies though, having a hard time understanding the benchmark pasted.
Is that the output for a particular function?
We can see overall impact by doing
go test -benchmem -run=^$ -bench ^BenchmarkSetup$ github.com/osmosis-labs/osmosis/v13/app/apptesting before and after.
You'd get something like:
BenchmarkSetup-16    	     398	   2977221 ns/op	 1356578 B/op	   17590 allocs/op

And we should see both time & allocs/op go down

oh, it is from go tool pprof. Yes, you are right, it shows memory allocations for a particular function. I will rerun it the way you specified and add it here :)

This LGTM, nice! Other followups involve work in other repos, so I recommend marking this ready for review, and we get this merged?

authors: RusAkh ValarDragon


text:
fix: Remove Denom metadata check upon CL Pool creation

Closes: #XXX
What is the purpose of the change
Currently we have a check in the CreatePool in the CL msg server, where we check if the given denom0 and denom1's denom meta data exists on chain.
Unfortunately, we do not have all the denom metadata of ibc tokens registered on chain, thus this check needs to be removed.
Brief Changelog

Remove Denom metadata check upon CL Pool Creation

Testing and Verifying
Deletes existing tests
Documentation and Release Note

Does this pull request introduce a new feature or user-facing behavior changes? (yes / no)
Is a relevant changelog entry added to the Unreleased section in CHANGELOG.md? (yes / no)
How is the feature or change documented? (not applicable   /   specification (x/<module>/spec/)  /  Osmosis docs repo   /   not documented)

By any chance, do we know which denom meta data do not exist on chain? If not, do we have a ballpark estimate? I was under the impression the only one that didn't exist on chain was for native denoms of osmo and ion (could be wrong though)

@czarcas7icA Actually, none of the IBC denoms are, IIRC only uosmo and uion


text:
fix: superfluid error log suppression

Closes: #XXX
What is the purpose of the change
There was likely an issue with mergify, we got rid of the nil return in the sf epoch hook that silences the error logs and instead emits a debug log.
It is in main, however, due to a different fix that Dev merged.

Note I don't think the backport to v22.x label will work here


text:
Add linux aarch64 wheel support

Added linux aarch64 wheel support.
Related to #53. @bstellato Could you please review this PR..

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

@bstellato, could you please review this PR? Thanks.

@bstellato, could you please review this PR? Thanks.

@bstellato, could you please have a look at this PR? Thanks in advance.

@bstellato, could you please have a look at this PR? Thanks in advance.

@bstellato, could you please have a look at this PR?

@vineetbansal, could you please review this PR? Thanks in advance.

I'm curious why the commit been reverted? I couldn't find any detail in the revert commit message either.

authors: CLAassistant odidev snadampal

repo: osqp/osqp-python


text:
Create a dedicated ORT server with backend and frontend

In addition to the existing CLI, the idea is to create a whole new alternative way to run and orchestrate ORT via a dedicated backend (providing a REST API) and a web frontend to operate the backend.
This epic is to collect related tasks:

Backend

[x] #4687
[x] #4870

Frontend

[ ] Evaluate frameworks for an ORT server frontend

#4870

While strictly speaking the item

Evaluate frameworks for an ORT server frontend

is not resolved yet, now that the ORT Server has been announced as part of the Eclipse Overlay project proposal, it feels more appropriate to discuss the matter as part of that new project.

For reference: By now, the ort-server project has been published at https://github.com/eclipse-apoapsis/ort-server.

repo: oss-review-toolkit/ort


text:
fix(fossid-webapp): Handle breaking change in the delete scan function

FossID version 2023.1 and onward introduced a breaking change in the delete scan function. The function returned before:
data: 522415
It now returns:
data: {
		"process_id": "522415"
}

This is because this operation is now running asynchronously. Usually, such breaking changes are handled by creating a new FossIdServiceWithVersion instance.
However, in this case ORT does not use the return value of the delete scan function. Hence, this commit addresses the breaking change by modifying the JSON parser to extract the integer value from the map.
Please ensure that your pull request adheres to our contribution guidelines. Thank you!

Test failures are unrelated as they are from getVulnerabilitiesXXX functions.

This has already been fixed, please rebase.

authors: nnobelis sschuberth


text:
Add job

This pull request allows user to post a new job offer
How ?
fill the form
verify and conform the job information
go to page to process payment

This PR also fix the number of fetched rating of 10 when the filters change which is open with #427

For the linter to work, you need to type this:
yarn lint
yarn lintfix

repo: osscameroon/jobsika


text:
BUG: Checks using ListMergedPRs() need hardening

ListMergedPRs() lists the last 30 or so PRs in a repo. Imagine the following scenario:

Repo owners using PRs and review their code, etc
They stop using PRs and only commit directly to head

IIUC, Scorecard will be looking at old PRs, e.g. in the Code-Review check, and conclude that reviews are done on the repo, even though it's not the case.
We need to harden all the checks that list PRs and compare their MergeCommit to the ones returned by ListCommits().
Could we do this within the repo interface implementation, in order to avoid making mistakes in check implementations. For example, shall we make ListMergedPRs() return only the PRs that are in the ListCommits()? Something along these lines. Note: we'd need to be able to differentiate between "n PRs" only are available for this repo and "n PRs out of last m commits"

cc @azeemsgoogle

I wonder if #575 can solve this. Basically, if Scorecard knows that it is evaluating commitSHA X and looks at the last N commits before X (currently N is 30), this should solve the problem you are talking about?

yes that would solve it, but most checks don't work based on a commit: we cannot get settings for a certain commit, for example.
We can easily fix the problem inside the checks by calling ListCommits() and comparing them to ListMergedPRs() for now.
Let's have it inside the repo interface in the second iteration. This is a problem we should fix ASAP.

Makes sense. +1 to solving it within the RepoClient interface itself so that the checks don't need to be updated separately.
What do you think about asking Rohan to work on this? It might be a good starter issue for him. @asraa fyi.

yes that would solve it, but most checks don't work based on a commit: we cannot get settings for a certain commit, for example.

Let's discuss this in our sync.

@laurentsimon do you mind if I gave this a shot? Working on #1543 gave me an idea about how to improve the behavior here.

repo: ossf/scorecard


text:
:bug: Refactor Dockerfile validation code to handle here-documents

What kind of change does this PR introduce?
bug fix

[x] PR title follows the guidelines defined in our pull request documentation

What is the current behavior?
The Pinned-Dependencies check fails on Dockerfiles that use here-documents.
RUN <<EOT1 <<EOT2
	pip install --no-deps -e git+https://github.com/username/repo.git@v1.0#egg=package
EOT1
	curl bla | bash
EOT2

=>
Error: check runtime error: Pinned-Dependencies: internal error: error parsing shell code: Dockerfile:1:1: unclosed here-document 'EOF'
2024/01/06 17:55:47 error during command execution: check runtime error: Pinned-Dependencies: internal error: error parsing shell code: Dockerfile:1:1: unclosed here-document 'EOF'

What is the new behavior (if this is a feature change)?
Dockerfiles containing here-documents don't cause failures and the pin-status of the dependencies is correctly extracted.

[x] Tests for the changes have been added (for bug fixes/features)

Which issue(s) this PR fixes
Fixes https://github.com/ossf/scorecard/issues/3335
Special notes for your reviewer
Does this PR introduce a user-facing change?
NONE

The other two missed branches (1 new, 1 old) are actually hard to trigger - at least I couldn't come up with something that triggers a parser error.
In the old code, the here-docs triggered that case (and raised a sh level error).  But that doesn't occur anymore with the fix.

/scdiff generate Pinned-Dependencies

authors: jkreileder spencerschrock


text:
:seedling: Add probe registration mechanism

What kind of change does this PR introduce?
refactor

[X] PR title follows the guidelines defined in our pull request documentation

What is the current behavior?
A list of probes and their mappings (name to runner func, which raw data it needs, ect) are maintained away from the probe code. This makes is easy for people to forget to update
What is the new behavior (if this is a feature change)?**
The probes define it in their init block. Unfortunately, due to the fact that init is only executed when something imports it, we need to add the probes in the entries.go file anyway.

[ ] Tests for the changes have been added (for bug fixes/features)

Which issue(s) this PR fixes
NONE

Special notes for your reviewer
Does this PR introduce a user-facing change?
For user-facing changes, please add a concise, human-readable release note to
the release-note
(In particular, describe what changes users might need to make in their
application as a result of this pull request.)

NONE

Leaving as a draft to revisit tomorrow one last time. Not sure if this is noticably better than what we have now.
I think it's slightly more structured and defined closer to the probe which is nice, but setting the raw data is still a little messy


text:
fix SrsSessionInfo about copy assignment operator  and comparison operator.

fix SrsSessionInfo about copy assignment operator  and comparison operator.

Merged 7c1d3edd3

authors: johzzy winlinvip

repo: ossrs/srs


text:
keywords/views.py에서 topics type이 list로 나오는 에러

위와 같은 에러가 있습니다. 수정해주세요.

deveop #13 에서해결되었습니다


text:
Is any method implemented in ott to help reduce memory overhead? (Update: I found batch-sizeoption)

Hi,
In our ML tasks, the problem of scale is often defined by num_of_training_samples by num_of_validation_samples. Our GPUs currently has 40~80 GB memory per card, which could handle problem of sizes around 350k by 10k. This is fine for classic datasets such as CIFAR-10, but is still away from million scales for modern datasets (or billion scales for language corpus). Is there any standard approach to reduce memory overhead? Is there any approximation method or batch-wise methods provided in the package that help with memory usage?
Thanks!
Update: I found batch-sizeoption for the online cost computation, which looks highly relevant!

Hi @feiyang-k !!
Indeed, scalability will be an important issue for OT tasks. There are two possible workarounds at the moment:

the batch_size option when creating a geometry object. This ensures the num_train x num_val matrix you mentioned is not materialized.
the low rank approach. In that case you would need to run a LR sinkhorn solver. Those scale much better usually. A very basic tutorial can be seen here

Thanks @! These methods are marvelous! It works like magic.  I had been having some vague ideas on improving the efficiency of the OT solution. The moment I saw the idea of these methods, I finally understood what ideas are about :)
The batch-size works smoothly. I'm very interested in this 'low-rank' method. It seems to me it implements the idea similar to clustering, which has been seen as an effort to improve the scalability for computing distributional divergence metrics, but in a much more natural and elegant way. I really enjoyed reading this!
I read through the reference paper as well as the documentation.
Different from regular 'Sinkhorn' algorithm that approaches the dual problem, which is the same as other OT solvers, LRSinkhorn directly performs the low-rank factorization to the coupling matrix, which solves the primal problem. The results are given in q, r, g, where the products will give the transport plan.
Interestingly, I'm interested in the dual solutions more than the primal. I need the derivatives to perform some exploration into the corresponding practical problem. Directly recovering the dual solution from the primal can be tricky due to numerical issues. In this case, do you have any idea what will be a good way to obtain the dual solutions?
I also tried using the auto-differentiation in JAX for that, where the dual solutions will be the derivative of the marginals a and b, but I ran into memory issues immediately. I saw similar issues in another post. But the difference here is it seems I cannot use danskin for LRSinkhorn, is it?
More interesting, I saw it in the source code and some part of the document that there is the attribute for use_danskin, but setting it to True does not seem to make any difference. Is this a usable function?

Thanks @! These methods are marvelous! It works like magic.  I had been having some vague ideas on improving the efficiency of the OT solution. The moment I saw the idea of these methods, I finally understood what ideas are about :)
The batch-size works smoothly. I'm very interested in this 'low-rank' method. It seems to me it implements the idea similar to clustering, which has been seen as an effort to improve the scalability for computing distributional divergence metrics, but in a much more natural and elegant way. I really enjoyed reading this!
I read through the reference paper as well as the documentation.
Different from regular 'Sinkhorn' algorithm that approaches the dual problem, which is the same as other OT solvers, LRSinkhorn directly performs the low-rank factorization to the coupling matrix, which solves the primal problem. The results are given in q, r, g, where the products will give the transport plan.

Interestingly, I'm interested in the dual solutions more than the primal. I need the derivatives to perform some exploration into the corresponding practical problem. Directly recovering the dual solution from the primal can be tricky due to numerical issues. In this case, do you have any idea what will be a good way to obtain the dual solutions?

I also tried using the auto-differentiation in JAX for that, where the dual solutions will be the derivative of the marginals a and b, but I ran into memory issues immediately. I saw similar issues in another post. But the difference here is it seems I cannot use danskin for LRSinkhorn, is it?

More interesting, I saw it in the source code and some part of the document that there is the attribute for use_danskin, but setting it to True does not seem to make any difference. Is this a usable function?

Thanks a lot!

authors: feiyang-k marcocuturi

repo: ott-jax/ott


text:
Bump nokogiri from 1.11.4 to 1.13.4

Bumps nokogiri from 1.11.4 to 1.13.4.

Release notes
Changelog
Commits

updated-dependencies:

dependency-name: nokogiri
dependency-type: indirect
...

Signed-off-by: dependabot[bot] support@github.com

hello

:)


text:
QR scanner banner starts halfway across the page

must have had a regression sometime in the past.
also, I just noticed it is inverting camera colors on dark mode, could you take a look at that as well? :)

Yes, fortunately there is a "no dark mode" class name we can use.

repo: otterscan/otterscan


text:
Add instructions for running on a Flask server

This shows an easy way to run a production build without Docker. For a full production environment you should have a production WSGI server running too, but this is sufficient for a modest number of users.
Closes #555

going through old PRs... do you think this is still relevant? if so, I think we can add it to some section in the new docs page I'm thinking about (outside this github repo)).

I think it's important that we support a lightweight way for users to run an Otterscan production build without needing to run Docker or even nginx. This solution is still relevant, though we might instruct users to run it via gunicorn, a lightweight WSGI server, to improve performance.

let's put this one on hold then, so we have less work migrating all docs to the new repo.
I'm doing that slowly as a side task, trying to write all docs from scratch and rethinking the docs structure.


text:
Translated Names property problem Power BI Desktop

Hi!
I know this is not supported by Power BI Desktop, but I am using it anyway to create measures in a much faster way. By doing this I found that the "Translated Names" property for each measure need to be blank in order to work fine in Power BI Desktop. I found these issues so far:

Different measures names in modeling view and in report view
Can not rename a measure
Not allowing me to delete a table

Based on this, is there a way to do something like:  AllMeasures.TranslatedNames  = "" ;  ?

You almost nailed the script. Use this code:
Model.AllMeasures.ForEach(m => m.TranslatedNames.Reset());

Daniel,
I have tried your code several times: Model.AllMeasures.ForEach(m => m.TranslatedNames.Reset());
But it is giving me the error you see in the photo. I am using windows 10, regional settings from Chile (español).
Hope you give us some guide about how to make it run. It would be so useful to solve this issue for our work.

@varayalagos - I get the same error when trying to follow this step and have made a separate issue #474 perhaps we're trying to do the same thing?

Sorry - there was an error in the script I provided. Here's a version that works:
Model.AllMeasures.ToList().ForEach(m => m.TranslatedNames.Reset());

authors: BM4291 otykier varayalagos

repo: otykier/TabularEditor


text:
关于多用户和任务审核问题

首先挺喜欢这个工具的，最近安装试了试，觉得有几个想要的功能，不知道是我没有找到用法，还是本来就没有这个功能，所以前来咨询一下。
1.就是在任务节点关于多用户管理问题，就是任务节点可以切换用户身份吗?
2.在发布任务的时候，任务不会立即生效，会走到高级权限用户那里进行审核，审核通过任务才生效
ps.请问有QQ或者微信交流群吗？

@icoolyy 我目前正在实现这方面的功能，可以关注 https://github.com/betterde/ects，
欢迎加入ECTS，群聊号码：872799101，希望一起讨论需求

authors: Jinrenjie icoolyy

repo: ouqiang/gocron


text:
With one item in list, the drop down isn't visible when open.

Can't reproduce

Validate the height is 100%

repo: outbrain/Leonardo


text:
Update README.md

修改  [overtrue/pinyin] 的错误链接。

❤

authors: OranTing overtrue

repo: overtrue/pinyin-resources


text:
feat: ✨ Add rancher demo

Add a demo for Rancher.
For this first demo, leep it simple :

MKS creation (link to the existing demo Create a MKS cluster with Terraform
add the steps to add the created MKS in Rancher

PR #47
:-)

authors: philippart-s scraly

repo: ovh/public-cloud-examples


text:
ci: cap gentx amount

@anilCSE @jackzampolin

Thanks @boz .
One concern I have is we should ask everyone to update their repos with ovrclk/net:master if we want to validate their PRs via  CI. Another way is, we can just merge all these PRs and run the check in a loop
We can merge this anyway as it helps future PRs to be valid.

@anilCSE no problem we can just run it against all the gentxs before we merge them.
for file in akashnet-1/gentxs/*.json; do
  ./scripts/check-gentx-amount.sh "$file"
done

btw I made a mistake when modifying the check script, it'll never fail anyways :joy:

Oops, I only tested it against my PR and merged! Thanks @boz

@anilCSE I totally misread your comment and said the same thing you did :joy:
Feel free to take it out of the check if you think it's better that way.

authors: anilCSE boz

repo: ovrclk/net


text:
rockchip docu

I edited the rockchip docu adding jellyfin packages links.

It's clear I don't understand how any of this works at all.
I asked

If somebody were to buy an Orange Pi, does the copy of ffmpeg that comes with it have h264_rkmpp built-in?

And you replied:

yes

But now you're saying the user needs to download some Jellyfin package? This is getting confusing. What does Jellyfin have to do with anything?

I assumed you were referring to the ffmpeg binaries offered by the jellyfin project, those binaries bring support for rockchip, that's why I posted the link.

authors: ZiTAL gabek


text:
add pt-BR translation for the Quickstart

As requested in: owncast/owncast#1430

I have moved the base branch so this PR does not merge my changes.

authors: jeyemwey vinicio


text:
New flake structure breaks dependent flakes

error:
       … while calling the 'derivationStrict' builtin

         at //builtin/derivation.nix:9:12: (source not available)

       … while evaluating derivation 'nixos-system-host-23.05.20230416.f294325'
         whose name attribute is located at /nix/store/s4p87579bdd76ig36jlywil
0i8nc0qbd-source/pkgs/stdenv/generic/make-derivation.nix:302:7

       … while evaluating attribute 'activationScript' of derivation 'nixos-sy
stem-host-23.05.20230416.f294325'

         at /nix/store/s4p87579bdd76ig36jlywil0i8nc0qbd-source/nixos/modules/s
ystem/activation/top-level.nix:110:5:

          109|     installBootLoader = config.system.build.installBootLoader;
          110|     activationScript = config.system.activationScripts.script;
             |     ^
          111|     dryActivationScript = config.system.dryActivationScript;

       (stack trace truncated; use '--show-trace' to show the full trace)

       error: cannot fetch input 'path:./systems.nix?lastModified=1&narHash=sh
a256-cyfZqnwhPNzdfQnmUUUVK5fon88TSm/0CwgE7Lf%2BLDU%3D' because it uses a relat
ive path

That's unfortunate. I reverted #124 for now.
Though I think transitive relative path inputs are still pure.

Yeah, they should definitely count as pure, but unfortunately nix doesn't seem to support them at the moment.

A possible (albeit gross) workaround might be to have another branch of the repository for storing the systems for now?

authors: dnaq emilazy oxalica

repo: oxalica/rust-overlay


text:
clippy from 1.59.0-beta.8-2022-02-13 is broken on x86_64-darwin

install_name_tool failed to add correct RPATH to clippy-driver due to insufficient Mach-O header space.
I have no darwin devices and are not familiar with darwin platform. If anyone has ideas to fix this, PR is welcome.
CI log.
building '/nix/store/yxfzm26344rhqmf7q546v0wi36p3qikr-clippy-preview-1.59.0-beta.8-2022-02-13-x86_64-apple-darwin.drv'...
unpacking sources
unpacking source archive /nix/store/qk2gfnhypdxp431m130pylx6142a85gk-clippy-beta-x86_64-apple-darwin.tar.xz
source root is clippy-beta-x86_64-apple-darwin
setting SOURCE_DATE_EPOCH to timestamp 1644701173 of file clippy-beta-x86_64-apple-darwin/version
patching sources
installing
Installing component clippy-preview
post-installation fixup
patching script interpreter paths in /nix/store/m2h1g2zspsgmb80rmbsf138qfv0zgg2i-clippy-preview-1.59.0-beta.8-2022-02-13-x86_64-apple-darwin
error: install_name_tool: changing install names or rpaths can't be redone for: /nix/store/m2h1g2zspsgmb80rmbsf138qfv0zgg2i-clippy-preview-1.59.0-beta.8-2022-02-13-x86_64-apple-darwin/bin/clippy-driver (for architecture x86_64) because larger updated load commands do not fit (the program must be relinked, and you may need to use -headerpad or -headerpad_max_install_names)

The issue disappears since 1.60.0-beta.1 in 87fec8d51f87b2b5cf7f6a7ffda4f46218e6a3c7


text:
@oxc-project/runtime NPM package

We currently use @babel/runtime for helper functions used in transformer.
Should we publish our own @oxc-project/runtime NPM package and use that instead?
Initially, it could just re-export from @babel/runtime, but I can see various advantages of having our own package:

@babel/runtime may be updated and break our transforms at any time. We can lock the version of @babel/runtime used in @oxc-project/runtime to prevent that.
We have decided to diverge from Babel where we can produce better output, or need to do things differently because Rust. We may want to alter some of the helpers too.
We only use a fraction of the helpers because we're only supporting transform down to ES6. Our package can be much smaller than @babel/runtime.
It's just weird to tell users to install @babel/runtime as a dependency in their project to use Oxc.

Error [ERR_MODULE_NOT_FOUND]: Cannot find package '@babel/runtime' imported from ...

authors: Boshen overlookmotel

repo: oxc-project/oxc


text:
feat(ast)!: add JSXElementName::IdentifierReference and JSXMemberExpressionObject::IdentifierReference

close: #3528
part of #4746

#5223  👈
main

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @Dunqing and the rest of your teammates on  Graphite

If we want to really go to town, we should also add a This(ThisExpression) variant to JSXElementName.
Probably there are lint rules which check "does this function contain this?" and that won't work for <this /> (weird syntax, but legal).

I plan to do that in the follow-up PR

The wasm generated types incorrectly caused by https://github.com/madonoharu/tsify/issues/43

@overlookmotel quit farting around and review this!

Something has gone wrong in the process of keeping this PR in sync with main. It looks like unrelated changes have got included in some places which revert other PRs. e.g. the changes to crates/oxc_semantic/src/scope.rs seem to be reverting #5262, changes to crates/oxc_wasm/src/lib.rs seem to be reverting #5264.
But I'm not sure if that's purely what happened or if, amongst the "reversion" diffs there are also some actual intentional changes related to this PR. This makes it a bit difficult to review at present.
Sorry - this probably wouldn't have happened if I'd reviewed it originally when you asked me to.

Sorry - this probably wouldn't have happened if I'd reviewed it originally when you asked me to.

No worries! Just my Git skill is poor! I don't know what happened here. I had reverted unrelated files. Please review again

You've reviewed this massive PR seriously! I'm sure you know something about this JSX stuff! Would you like to try supporting JSXElementName::ThisExpression?

You've reviewed this massive PR seriously! I'm sure you know something about this JSX stuff! Would you like to try supporting JSXElementName::ThisExpression?

Sorry I missed this comment before. Yes, I'd be happy to do JSXElementName::ThisExpression.

authors: Dunqing overlookmotel


text:
feat(ast): add ContentHash trait; remove noop Hash implementation from Span

closes #5283
Also removes the noop Hash implementation on Span in favor of a real implementation.

I'll test this in Rolldown before merging.

authors: Boshen rzvxa


text:
fix(types): move @oxc-project/types to dependencies

Hotfix. NPM doesn't install devDependencies automatically, so types were missing.

#6909  👈
main

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @ottomated and the rest of your teammates on  Graphite

Merge activity

Oct 25, 10:25 PM EDT: The merge label '0-merge' was detected. This PR will be added to the Graphite merge queue once it meets the requirements.

authors: Boshen ottomated


text:
chore(main): release bombastic-monorepo 0.0.0

:robot: I have created a release beep boop
0.0.0 (2024-02-16)
Features

add basic module CLI to build as executable (ab54f20)
add React, create renderer (4bdb0e2)
bombastic: implement Renderer and HTMLRenderer (c32cfe9)
bombastic: multiple BOMObject related features (aa2b021)
bombastic: refactor Renderer, implement HTML document template (7d93e30)
config repository workflows (#3) (2d530dd)
create BOMGenerator, read IFCs from file (d4c19c1)
implement BOMObject, add tests (f8466ef)

Bug Fixes

adapt testsuite to Bun limitations related to mocking (a68b12a)
create empty .release-please-manifest.json, fix root package symbol (adec3c2)
remove deprecated config from release-please workflow (#6) (68ee51a)

Miscellaneous Chores

prepare initial release 0.0.0 (e628743)

This PR was generated with Release Please. See documentation.

:robot: Release is at https://github.com/oxcabe/bombastic/releases/tag/untagged-9306638f1995f385f6fa :sunflower:

repo: oxcabe/bombastic


text:
Updating Problem Matrices via Mex Interface

I have successfully managed to run OSQP on Matlab for my problem. After performing code generation on the previously working problem setup, i obtained a MEX file. This  file gives me access to functionalities that help me solving problems, updating the limits, cost and problem matrices. I am able to update everything but the problem matrices (P and A). Matlab doesn't log an error but crashes. I am following the syntax given on the website. Kindly advice

Here is a sample script which crashes Matlab. I have provided the necessary data in a zip file.
`%Test Mex function
load('oldDAT.mat')
% Setting up osqp
prob = osqp;
prob.setup(2*sparse(Px), q, sparse(Ax), low, upp, 'verbose', 0,'eps_rel',1e-8,'eps_abs',1e-8); %Problem setup
%Code Generation
prob.codegen('code', 'parameters', 'matrices', 'mexname', 'emosqp'); % Generates a MEX-FILE emosqp
load('newDAT.mat')
%Updating the MEX file
emosqp('update_lin_cost', q)
emosqp('update_bounds', low, upp);
%Crashes after this
emosqp('update_A', nonzeros(Ax), [], 0);
emosqp('update_P', nonzeros(triu(Px)),[],0);`
OSQP.zip

I have tested @imciner2's fix and confirm that it works for me.

It works for me as well thanks!

repo: oxfordcontrol/osqp