CORE-32120 Added opt-in support.

Description
There's some verbiage that's a little weird here. The user can opt into all purposes or no purposes (later, we plan to support opting into specific purposes). Another way you could say that the user is opted into no purposes is that they've "opted out", but using the term "opted out" can be confusing because "opt out" is a separate effort/task/flag that is separate from opt-in. So, yeah.
Opt-in can currently be in one of three statuses:

The user's opt-in preferences are pending (we're waiting for the user to tell us what they're okay with).
The user has opted into all purposes.
The user has opted into no purposes.

Opt-in can be enabled by settings optInEnabled: true through the configure command. If opt-in is not enabled, then we assume that the user has opted into all purposes.
Our customers can set whether the user has opted into all purposes or no purposes as follows:
alloy("optIn", {
  purposes: "all"
});

or
alloy("optIn", {
  purposes: "none"
});

If the optIn command has not been called for the user, then whenever Alloy needs to do something that depends on the user having opted in (e.g., send data to the server), it will wait for the optIn command to be called before proceeding. If optIn is called with purposes: "all", then Alloy will proceed doing to the work that was previously queued. If optIn is called with purposes: "none", then Alloy will not proceed with the work that was previously queued and the promises returned from the prior commands will be rejected.
Once the optIn command has been called, the user's preferences will be stored in a cookie and used in perpetuity until the cookie expires or the optIn command is called again to change the user's preferences.
As far as architecture goes, I've added an optIn object that gets passed to all components. The components can use the whenOptedIn and isOptedIn methods on the optIn object to decision based on whether the user has opted into all purposes. See the documentation above each of the methods for more information and how they might change when we start supporting opting into individual purposes.
I've added a new component called Privacy. It is in charge of setting up the optIn object that handed to all the components. For example, it's in charge of telling the optIn object whether opt-in is enabled. It's also in charge of providing the optIn object with a cookie object that manages the privacy namespace in the alloy cookie. Because this setup needs to happen before components start calling whenOptedIn and isOptedIn, a function called enableOptIn is first passed to all component instances when they are created. The privacy component calls this enableOptIn function right away and should be the only component to call that function. Then, all components will receive the configured optIn object during onComponentsRegistered and therefore can start calling whenOptedIn and isOptedIn.
I think that covers the general design.
I did not add tests at the component level. There's a discussion that needs to happen as a team regarding (1) how we flush promises during tests and (2) what we want to unit test vs functional test. I'd like to see where that conversation goes before implementing such tests.

Related Issue
https://jira.corp.adobe.com/browse/CORE-32120

Motivation and Context
Users like privacy.

Screenshots (if appropriate):
Types of changes

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

Checklist:

[X] My change requires a change to the documentation.
[ ] I have updated the documentation accordingly.
[X] All tests pass and I've made any necessary test changes.
[X] I have run the Sandbox successfully.

I'm going to merge this. I brought up the optInEnabled thing on Slack to see what others think. I'll propose the shift in the test file organization in a separate PR.


if folder is named 'web3' - gives error

Can you please explain why it gives error in first case :
Case 1)  first created brownie project at location
/f/web3/brownie_simple_storage
brownie run scripts\deploy.py
throws error
ModuleNotFoundError: No module named 'web3.brownie_simple_storage'

Case 2) changed name of the folder from "web3" to "web3-projects"
/f/web3-projects/brownie_simple_storage
brownie run scripts\deploy.py
ALL WORKS FINE.
I wasted so much time on this, just found this by flook.
How does naming folder name to web3, cause problem ?????

web3 is a reserved word like saying int or for so brownie is going to freak out if you name it like that.
Better explanation: web3 does exists on your python installed  packages, and brownie does not now where is it if you use the exact same name on your project folder.

Understood. Thank you for info!


Add /points slash command to explain the points system in our server

Because

Users often ask what the points system is for, this command will explain the following:

Why we give points
How we give points
How not to use points

This PR

adds a /points slash command with an output as shown above

Issue

Closes #XXXXX
Additional Information

Pull Request Requirements

[x] I have thoroughly read and understand The Odin Project Contributing Guide

[x] The title of this PR follows the location of change: brief description of change format, e.g. Callbacks command: Update verbiage

[x] The Because section summarizes the reason for this PR

[x] The This PR section has a bullet point list describing the changes in this PR

[x] If this PR addresses an open issue, it is linked in the Issue section

[ ] If this PR adds new features or functionality, I have added new tests

[ ] If applicable, I have ensured all tests related to any command files included in this PR pass, and/or all snapshots are up to date

This has potential conflict with the already existing command !points, which is broken atm and I had an issue to fix it #356. One solution is I could change the !points command to !rank. I didn't want to put a PR before I get assigned the issue.

@Mclilzee Thanks for mentioning this! It shouldn't have for this is a slash command and the other one is the old style exclamation command.
I do like the idea of renaming it to rank for the ! command if that issue gets reviewed and opened for PR. But we can also consider renaming this one if needed, which is a small change :)

@ManonLef This one being /points makes perfect sense, I don't think you should change the name. !rank is more clear what the other command will be doing, which is to fetch someone's rank in the leaderboard and show which place they are in, showing the point in the same msg is just extra.
It is true that /points and !points will be treated as different commands, but i think for clarity sake its best that we keep this explanation as /points and the other one as !rank.
Great work on the embed! this embed looks awesome.


Added Admin Page for File Management and Operations

Adding an admin panel using laravel backpack.

Currently has a basic admin panel, but still needs to update the way some of the tables are. It also has backup capabilities, if an admin wishes to do that. We can also view the laravel logs. And maybe even the worker log

Removed backpack/backupmanager due to me not knowing how to get mysqldump into the docker image lol.

I have set the final CSS changes for now, I will be merging it so the changes will be reflected in the dev server.


fix: release

:tada: This PR is included in version 3.0.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


Updates for font name parsing and name generation.

Defines 'Symbols2' as the name for script key 'SYM2'
Supports 'ExtraCondensed' as a style name (for testing use)
Partial support for 'ExtraLight' as a weight name (for testing use)
Adds name entry for sans-zmth (no font yet)
Fixes two bugs in handling noto_names arguments

Oops, jumped the gun a bit there. Anyways, LGTM, hope this was ready for merging.

no problem


Alternative helpers for queues and stacks

The man page for bpf-helpers defines the following helper functions for map type queue and stack.
       long bpf_map_push_elem(struct bpf_map *map, const void *value,
       u64 flags)

              Description
                     Push an element value in map. flags is one of:

                     BPF_EXIST
                            If the queue/stack is full, the oldest
                            element is removed to make room for this.

              Return 0 on success, or a negative error in case of
                     failure.

       long bpf_map_pop_elem(struct bpf_map *map, void *value)

              Description
                     Pop an element from map.

              Return 0 on success, or a negative error in case of
                     failure.

       long bpf_map_peek_elem(struct bpf_map *map, void *value)

              Description
                     Get an element from map without removing it.

              Return 0 on success, or a negative error in case of
                     failure.

I believe this was fixed in PR #801
Feel free to reopen if there is anything remaining.


Uncaught APIError in exception_mapping_utils.py line 2049

Aider version: 0.62.1
Python version: 3.9.7
Platform: macOS-15.0.1-arm64-arm-64bit
Python implementation: CPython
Virtual environment: No
OS: Darwin 24.0.0 (64bit)
Git version: git version 2.39.5 (Apple Git-154)
An uncaught exception occurred:
Traceback (most recent call last):
  File "openai.py", line 854, in completion
    raise e
  File "openai.py", line 805, in completion
    return convert_to_model_response_object(
  File "convert_dict_to_response.py", line 289, in convert_to_model_response_object
    raise raised_exception
Exception

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "main.py", line 2168, in completion
    response = openai_chat_completions.completion(
  File "openai.py", line 864, in completion
    raise OpenAIError(
litellm.llms.OpenAI.openai.OpenAIError

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "aider", line 8, in <module>
    sys.exit(main())
  File "main.py", line 827, in main
    coder.run()
  File "base_coder.py", line 738, in run
    self.run_one(user_message, preproc)
  File "base_coder.py", line 781, in run_one
    list(self.send_message(message))
  File "base_coder.py", line 1278, in send_message
    saved_message = self.auto_commit(edited)
  File "base_coder.py", line 1979, in auto_commit
    res = self.repo.commit(fnames=edited, context=context, aider_edits=True)
  File "repo.py", line 110, in commit
    commit_message = self.get_commit_message(diffs, context)
  File "repo.py", line 195, in get_commit_message
    commit_message = simple_send_with_retries(
  File "sendchat.py", line 118, in simple_send_with_retries
    _hash, response = send_completion(**kwargs)
  File "sendchat.py", line 98, in send_completion
    res = litellm.completion(**kwargs)
  File "utils.py", line 1013, in wrapper
    raise e
  File "utils.py", line 903, in wrapper
    result = original_function(*args, **kwargs)
  File "main.py", line 2999, in completion
    raise exception_type(
  File "exception_mapping_utils.py", line 2116, in exception_type
    raise e
  File "exception_mapping_utils.py", line 2049, in exception_type
    raise APIError(
litellm.exceptions.APIError: litellm.APIError: APIError: OpenrouterException -

Thanks for trying aider and filing this issue.
This looks like a duplicate of #2267. Please see the comments there for more information, and feel free to continue the discussion within that issue.
I'm going to close this issue for now. But please let me know if you think this is actually a distinct issue and I will reopen this issue.


Modal appears behind header

The modal appears behind the react tab navigation header

Hello. If you want to have modal above navigation header, modal needs to be wrapped in react-native Modal component, please also use wrapInGestureHandlerRootView prop to SwipeModal if you use gesture.


xrdp at 100% CPU

Using the 0.9.2 release with xorgxrdp module
Sometime the process xrdp is taking 100% CPU
according to strace, something is wrong while reading the fd 12:
read(12, 0x194fcf3, 16709)              = -1 EAGAIN (Resource temporarily unavailable)
ls -l /proc/9028/fd |grep 12
lrwx------ 1 root root 64 avril  5 08:53 12 -> socket:[195436]
The process is a child of the first xrdp process and has started a Xorg session

Hmm, I have quick look at code see that g_file_read() directly calls read() and nothing else, but code which uses g_file_read() do not handle EINTR and EAGAIN. Is it normal?

No, errors should be handled in g_file_read().

This does not look like a file read.  socket means that it's a TCP or UDS connection.
Can you show the whole ls -l /proc/XXX/fd, I can make a reasonable guess what it is.

I've make PR about EINTR https://github.com/neutrinolabs/xrdp/pull/729
Not sure about EAGAIN, if this functions used on socket, and socket is in non-blocking mode, looping in g_file_read() while data not available is not good idea, it must be handled by g_file_read user.

Here another report for the 100% CPU:
ls -l /proc/20640/fd/
total 0
lrwx------ 1 root root 64 avril  6 22:52 0 -> /dev/null
lrwx------ 1 root root 64 avril  6 22:52 1 -> /dev/null
l-wx------ 1 root root 64 avril  6 22:52 10 -> pipe:[1387828]
lr-x------ 1 root root 64 avril  6 22:52 11 -> pipe:[1380325]
lrwx------ 1 root root 64 avril  6 22:52 12 -> socket:[1401289]
l-wx------ 1 root root 64 avril  6 22:52 13 -> pipe:[1380325]
lr-x------ 1 root root 64 avril  6 22:52 14 -> pipe:[1406296]
l-wx------ 1 root root 64 avril  6 22:52 15 -> pipe:[1406296]
lr-x------ 1 root root 64 avril  6 22:52 16 -> pipe:[1397577]
l-wx------ 1 root root 64 avril  6 22:52 17 -> pipe:[1397577]
lrwx------ 1 root root 64 avril  6 22:52 19 -> socket:[1392456]
lrwx------ 1 root root 64 avril  6 22:52 2 -> /dev/null
lrwx------ 1 root root 64 avril  6 22:52 20 -> socket:[1392457]
l-wx------ 1 root root 64 avril  6 22:52 3 -> /var/log/xrdp.log
lr-x------ 1 root root 64 avril  6 22:52 4 -> pipe:[1387829]
l-wx------ 1 root root 64 avril  6 22:52 5 -> pipe:[1387829]
lrwx------ 1 root root 64 avril  6 22:52 6 -> socket:[13447]
lr-x------ 1 root root 64 avril  6 22:52 7 -> pipe:[1387827]
l-wx------ 1 root root 64 avril  6 22:52 8 -> pipe:[1387827]
lr-x------ 1 root root 64 avril  6 22:52 9 -> pipe:[1387828]
The read is again on fd 12

Here the current backtrace from the process:
(gdb) bt
#0  0x00007eff30944df0 in __read_nocancel () at ../sysdeps/unix/syscall-template.S:81
#1  0x00007eff300e50dc in ?? () from /usr/lib/x86_64-linux-gnu/libcrypto.so.1.0.0
#2  0x00007eff300e30ec in BIO_read () from /usr/lib/x86_64-linux-gnu/libcrypto.so.1.0.0
#3  0x00007eff3040db44 in ?? () from /usr/lib/x86_64-linux-gnu/libssl.so.1.0.0
#4  0x00007eff3040ee6d in ?? () from /usr/lib/x86_64-linux-gnu/libssl.so.1.0.0
#5  0x00007eff3040bd08 in ?? () from /usr/lib/x86_64-linux-gnu/libssl.so.1.0.0
#6  0x00007eff310f2d9d in ssl_tls_disconnect (self=0x217a940) at ssl_calls.c:683
#7  0x00007eff310f3fc4 in trans_shutdown_tls_mode (self=<optimized out>) at trans.c:919
#8  0x00007eff30ed433e in close_rdp_socket (self=self@entry=0x217be50) at xrdp_mcs.c:1093
#9  0x00007eff30ed446b in xrdp_mcs_disconnect (self=0x217be50) at xrdp_mcs.c:1135
#10 0x00007eff30edfea9 in xrdp_sec_disconnect (self=<optimized out>) at xrdp_sec.c:2385
#11 0x00007eff30edcb59 in xrdp_rdp_disconnect (self=<optimized out>) at xrdp_rdp.c:1293
#12 0x00007eff30ec5bc9 in libxrdp_disconnect (session=<optimized out>) at libxrdp.c:70
#13 0x0000000000414a29 in xrdp_process_main_loop (self=self@entry=0x217a280) at xrdp_process.c:300
#14 0x000000000040adb7 in xrdp_process_run (in_val=in_val@entry=0x0) at xrdp_listen.c:146
#15 0x000000000040aed7 in xrdp_listen_fork (server_trans=0x217b3b0, self=<optimized out>) at xrdp_listen.c:288
#16 xrdp_listen_conn_in (self=<optimized out>, new_self=0x217b3b0) at xrdp_listen.c:312
#17 0x00007eff310f3763 in trans_check_wait_objs (self=0x217a660) at trans.c:337
#18 0x000000000040b3f1 in xrdp_listen_main_loop (self=0x217a600) at xrdp_listen.c:497
#19 0x00000000004043e5 in main (argc=<optimized out>, argv=<optimized out>) at xrdp.c:623

If I look for a new connexion at same date of the creation of the process, here some infos about SSL if related:
[20170406-21:54:23] [INFO ] Socket 12: AF_INET6 connection received from ::ffff:37.167.XXX.XXX port 12218
[20170406-21:54:23] [DEBUG] Closed socket 12 (AF_INET6 ::ffff:130.79.XXX.XXX port 3389)
[20170406-21:54:23] [DEBUG] Closed socket 11 (AF_INET6 :: port 3389)
[20170406-21:54:23] [INFO ] Using default X.509 certificate: /etc/xrdp/cert.pem
[20170406-21:54:23] [INFO ] Using default X.509 key file: /etc/xrdp/key.pem
[20170406-21:54:23] [DEBUG] Security layer: requested 11, selected 1
[20170406-21:54:23] [INFO ] connected client computer name: DESKTOP-GLFB3VU
[20170406-21:54:24] [INFO ] TLS connection established from ::ffff:37.167.XXX.XXX port 12218: TLSv1.2 with cipher AES256-GCM-SHA384
[20170406-21:54:25] [DEBUG] xrdp_000050a0_wm_login_mode_event_00000001
[20170406-21:54:25] [INFO ] Loading keymap file /etc/xrdp/km-0000040c.ini
[20170406-21:54:25] [WARN ] local keymap file for 0x0000040c found and doesn't match built in keymap, using local keymap file
[20170406-21:54:31] [DEBUG] xrdp_wm_log_msg: connecting to sesman ip <IP_ADDRESS> port 3350
[20170406-21:54:32] [INFO ] xrdp_wm_log_msg: sesman connect ok
[20170406-21:54:32] [DEBUG] xrdp_wm_log_msg: sending login info to session manager, please wait...
[20170406-21:54:32] [DEBUG] return value from xrdp_mm_connect 0
[20170406-21:54:32] [INFO ] xrdp_wm_log_msg: login successful for display 14
[20170406-21:54:32] [DEBUG] xrdp_wm_log_msg: started connecting
[20170406-21:54:32] [INFO ] lib_mod_log_peer: xrdp_pid=20640 connected to X11rdp_pid=14034 X11rdp_uid=66824 X11rdp_gid=115173 client_ip=::ffff:37.167.XXX.XXX client_port=12218
[20170406-21:54:32] [DEBUG] xrdp_wm_log_msg: connected ok
[20170406-21:54:32] [DEBUG] Closed socket 12 (AF_INET6 ::ffff:130.79.XXX.XXX port 3389)
[20170406-21:54:32] [DEBUG] xrdp_mm_module_cleanup
[20170406-21:54:32] [DEBUG] Closed socket 19 (AF_UNIX)
[20170406-21:54:32] [DEBUG] Closed socket 20 (AF_UNIX)
[20170406-21:54:32] [ERROR] Listening socket is in wrong state, terminating listener
[20170406-21:54:32] [CORE ] shutting down log subsystem...
[20170406-21:54:32] [DEBUG] xrdp_mm_connect_chansrv: chansrv connect successful
[20170406-21:54:32] [DEBUG] Closed socket 18 (AF_INET6 ::1 port 34475)
[20170406-21:54:32] [INFO ] The following channel is allowed: rdpdr (0)
[20170406-21:54:32] [INFO ] The following channel is allowed: rdpsnd (1)
[20170406-21:54:32] [INFO ] The following channel is allowed: cliprdr (2)
[20170406-21:54:32] [INFO ] The following channel is allowed: drdynvc (3)
[20170406-21:54:32] [DEBUG] The allow channel list now initialized for this session

Can not see errors in ssl_tls_disconnect->SSL_shutdown handling. I assume this is SSL lib or multi-thread bug.

I didn't saw this issue (100% CPU) in 0.9.1 release, nor in older versions. As there was some work on SSL, It could be related so I've added this backtrace.
According to related xrdp-sesman.log, the user has reconnected to an existing session

@moobyfr Can you please write the steps to reproduce it?
I can't see 100% CPU on my box.

Unfortunately, I have no known step to reproduce it. I'm just monitoring our xrdp servers and check the CPU % for xrdp

Hmmm, I have guess. Here libcrypto in call stack, old libcrypto versions is not thread safe by itself, we must provide locking callback to it manually using  CRYPTO_set_locking_callback. In new openssl versions CRYPTO_set_locking_callback is deprecated and have different thread handling. May be something with that. What openssl version you are using?

It's the default debian package, so according to the version: 1.0.1t-1+deb8u6

Yes, this is old version with CRYPTO_set_locking_callback approach. So, without some modifications it can't be thread safe in xrdp. Also note that this version already not officially supported upstream https://www.openssl.org/source/ and all new supported versions uses new threading approach.

It's not so hard to support old openssl, there already code sample in openssl-1.0.1t/crypto/threads/th-lock.c with CRYPTO_thread_setup function which sets needed callbacks using pthreads. We just must call this function on xrdp process init.

I can create PR on that, but currently waiting https://github.com/neutrinolabs/xrdp/pull/729 resolution. Is it possible to create second PR using single fork?

Yes, just create another branch
בתאריך יום ג׳, 25 באפר׳ 2017 ב-12:28 מאת Lion<EMAIL_ADDRESS>
I can create PR on that, but currently waiting #729
https://github.com/neutrinolabs/xrdp/pull/729 resolution. Is it
possible to create second PR using single fork?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/neutrinolabs/xrdp/issues/728#issuecomment-296972720,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ADTH1CInN3vVWkRus0ZH7no9fC7h_nJSks5rzbypgaJpZM4Mz1MD
.

--
Idan Freiberg
PGP FP: 8108 7EC9 806E 4980 75F2  72B3 8AD3 2D04 337B 1F18

@moobyfr Can you try this patch https://github.com/lieff/xrdp/commit/bdc068930fe193ebbf62bf0ef882f0cc84a6488b or this branch https://github.com/lieff/xrdp/commits/old_openssl ?

I've added the patch on one of our server, I'll monitor the usage.

humm, should give something like this WinAPIOverride with cpu utilization ratio :\ also for bughunting really well ..

I've applied the patch from the old_openssl branch, but I got again a process at 100% later.
I'm trying now the #729 patch

@blackcrack linux already have strace\ltrace and many other tracing utilities. Also note that utilities like WinAPIOverride uses hooks (or code re-translation like DrMemory), it can't catch real SDT kernel call like strace do. To catch SDT calls we need unofficial driver and hack patchguard.
@moobyfr Hmmm, may be built new openssl from source with --prefix=/not_system_openssl_path and build xrdp with it? If it continue to reproduce then it's unlikely openssl bug.

With the patch #729 (Handle EINTR), I don't see anymore 100% CPU

Wow, I told It's not safe to not handle EINTR, it seems reflected on openssl somehow. But things about old openssl and thread safety is true too (may work well with one client, but with many ssl clients current code not safe).

OK, we need to hanlde EINTR.

This does not make sense to me.  How can 100% CPU come from not handling EINTR.
I don't think this is fixes yet.

I was optimist and updated the issue too early: I had again a 100%CPU today, so #729 isnt' the solution :/

I have more accurate information about the problem:

The user1 start a session.
Something happens, he try to reconnect,
The reconnection fails, and the xrdp process start to get 100% CPU

Full pastebin:
https://framabin.org/?a59376f0a2e9ec36#FaIkm7wSqU1VcK24kXq/yqK1o8+zAIDa9MP+FSG4ujI=
Here the last part from the reconnection which is failing
May  5 16:19:42 xrdpserver1 xrdp[95629]: (95629)(140298000369792)[INFO ] lib_mod_log_peer: xrdp_pid=95629 connected to X11rdp_pid=91596 X11rdp_uid=92798 X11rdp_gid=115174 client_ip=::ffff:37.163.YYY.YYY client_port=61024
May  5 16:19:42 xrdpserver1 xrdp[95629]: (95629)(140298000369792)[DEBUG] xrdp_wm_log_msg: connected ok
May  5 16:19:46 xrdpserver1 xrdp[95629]: (95629)(140298000369792)[ERROR] xrdp_mm_connect_chansrv: connect failed trying again...
May  5 16:19:46 xrdpserver1 xrdp[95629]: (95629)(140298000369792)[DEBUG] Closed socket 20 (AF_UNIX)
May  5 16:19:50 xrdpserver1 xrdp[95629]: (95629)(140298000369792)[ERROR] xrdp_mm_connect_chansrv: connect failed trying again...
May  5 16:19:50 xrdpserver1 xrdp[95629]: (95629)(140298000369792)[DEBUG] Closed socket 20 (AF_UNIX)
May  5 16:19:54 xrdpserver1 xrdp[95629]: (95629)(140298000369792)[ERROR] xrdp_mm_connect_chansrv: connect failed trying again...
May  5 16:19:54 xrdpserver1 xrdp[95629]: (95629)(140298000369792)[DEBUG] Closed socket 20 (AF_UNIX)
May  5 16:19:58 xrdpserver1 xrdp[95629]: (95629)(140298000369792)[ERROR] xrdp_mm_connect_chansrv: connect failed trying again...
May  5 16:19:58 xrdpserver1 xrdp[95629]: (95629)(140298000369792)[ERROR] xrdp_mm_connect_chansrv: error in trans_connect chan
May  5 16:19:58 xrdpserver1 xrdp[95629]: (95629)(140298000369792)[DEBUG] Closed socket 18 (AF_INET6 ::1 port 38892)

This makes more sense.  I'll see if I can track it down.  I'll assume you are using TLS connections.

I think something like #747 might fix this.

I merged #747 I think this is fixed now.
I think we can also merge the EINTR fix.  It does not make anything worse.  As a rule we can handle EINTR in os_calls.c for all the functions that can return it.  We can not handle EAGAIN(and the like) in os_calls.c as the higher levels are expecting them.

After applying #747 , I don't have anymore servers showing 100% CPU for xrdp.


updating ginkgo test based on updated policy-template

Signed-off-by: Prateeknandle<EMAIL_ADDRESS>

hey @Prateeknandle rather than reducing the number of matched policies it'll be better if you can update the xx-least-functionality-execute-package-management-process-in-container.yaml under tests/recommend/res/out/wordpress-mysql-wordpress and tests/recommend/res/out/ubuntu-18-04 with this yaml
cc: @PrimalPimmy

@vishnusomank updated the pr

@vishnusomank can you check now if it's alright?

can we merge this?

can we merge this?

can you squash the commits?

can we merge this?

can you squash the commits?

done

@vishnusomank can we merge this, there are some prs depending on it.


Allow customization of the session key used to store the user data

This closes #1

Awesome!! Thanks for the quick update.


Docs/contribute.md

Hey @SID262000  i have added the contribute.md and also kept in mind the changes made by @Devansh-Singh-Parmar and @N3v1 in their discussion and also added the neccesary guidelines missing in their PR. #33

Cc: @Devansh-Singh-Parmar @N3v1 for feedback before accepting/discarding this PR

We are still adding more things in PR created by me, please wait
cc: @AryanGupta0007 @SID262000

I think since our Project has many contributors at the moment and many of them don't have Knowledge of git and also we are visited by many people through diff. Sources i feel it's waste to delay adding a contribute.md so i feel we should merge one PR if everything is right and gradually make changes in it to make it perfect as if we go for a perfect PR maybe it would take very long and i feel it's a waste of time considering the importance of contribute.md.
CC: @Devansh-Singh-Parmar @SID262000

It's right but we can just improve it a bit, already asked for a review from @SID262000

I would like to have a final go signal from @N3v1 once he is back, before I finally review and merge the Contribution.md.
It is indeed one of the most important file before even open sourcing it, as it stands as a first reference point for any contributor looking to contribute.
cc: @AryanGupta0007 @Devansh-Singh-Parmar

@AryanGupta0007 Please don't close any PR or Issue without confirmation, Thanks

Reopening PR

@SID262000 i have created a new PR INSTEAD OF THIS DUE TO SOME CHANGES IN IT

You can continue making modifications in a single PR multiple times even after creating one.
cc: @AryanGupta0007

@SID262000 ya i just googled it after making another PR. THANKS!

@SID262000 Please go on and merge


Safe option concern - save VS create

Continued from this #3412
This works
p = Person.new(name: "Tom")
p.with(write: {w: 0}).save

and doesn't trigger the getlasterror command
but this doesn't
Person.with(write: {w: 0}).create!(name: "John")

and still triggers the getlasterror command.
Tested against version 4.0.0

this should be fixed on latest master, see https://github.com/mongoid/mongoid/issues/3668#issuecomment-74548581 .
thanks


Support Crieto Benchmark for Decision Forest Classification

https://www.csie.ntu.edu.tw/~cjlin/libsvmtools/datasets/binary.html

Thank you!

With a V100 GPU, xgboost can train the whole training dataset in one day for a 1600-trees, depth-8 model. To train a 10-tree model takes only 23 minutes.
However, I found something strange, the labels of the test data set are all 0s and no 1s, while the training set has about 1/4 1s and 3/4 0s.


[BUILD] wrong bindings on npm rebuild with different platform or node api ver

There is an issue with the way you load and name bindings in the modules. You always use "binding.node".
Let me explain:

i build my app on my current node install version =>
noble-uwp build process finds that i can remote install using your releases in github
GREAT
I now rebuild my app for electron which uses a different version of node (we usually do this npm rebuild --runtime=electron --target=1.7.5 --arch=x64 --rebuild --update-binary)
node-pre-gyp checks if it needs to rebuild the noble-uwp modules bindings.
it sees that there are already ./lib/binding/binding.node so it thinks it's good and tells you it does not need to rebuild

But you end up with bindings built for the wrong version of node.
The issue is that in your modules package.json in the binary section, you dont use node_abi
here is a working example:
https://github.com/peterbraden/node-opencv/blob/master/package.json

Yes, I had noticed that problem recently. Your explanation helps me understand the issue better. I'll fix this soon. Thanks!

Fixed in noble-uwp 0.5.3

that was fast! Thanks


ARROW-16328: [Java] Proposal to upgrade Arrow Java project to JPMS Java Platform Module System

13072

 Quality gate: Failed
12 Issues

 1 Vulnerabilities
 11 Code issues

Details

 Quality gate: Failed
18 Issues

 1 Vulnerabilities
 11 Code issues
 6 Anti-patterns

Details


Remind user to cd to the submodule directory when running git go-patch rebase

If you're currently in the repo dir and run git go-patch rebase, it lets you start the rebase, but it might be very confusing that git rebase ... tells you there's no rebase in progress. git-go-patch knows the current directory and the submodule directory, so it could easily check if a cd is necessary and warn the user.

Been hit by this issue many times.


Enterprise distribution AppCenter DER sign help / documentation ?

We are doing an enterprise deployment and to do so on iOS 15 we need to sign the app with DER entitlements like shown here.
We have the build configured in AppCenter but how do we also sign it with the DER entitlements ?
Here is a solution we have used but it requires humans ...
https://stackoverflow.com/questions/68467306/the-code-signature-version-is-no-longer-supported
How do we configure the Build in AppCenter to DER sign our app on build ?

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

ID: 2cd709cc-3300-bc7e-558e-ff324c9f69c8
Version Independent ID: 30949e82-ac17-6d15-49c2-4318bf8e2ffe
Content: Build, test, and deploy Xcode apps - Azure Pipelines
Content Source: docs/pipelines/ecosystems/xcode.md
Product: devops
Technology: devops-cicd-ecosystems
GitHub Login: @vijayma
Microsoft Alias: vijayma

Hi @stephenhauck Thanks for your question. It looks like you're working through an issue with your scenario or implementation, rather than an issue with the documentation. Consider reaching out to the dev community. You can also create a feature request there, if your desired scenario is not supported.

If you document how to do it with the App Store why is t there documentation on how to do enterprise deployment … geeze

On Dec 6, 2021, at 4:45 PM, Tim Sherer @.***> wrote:

Hi @stephenhauck Thanks for your question. It looks like you're working through an issue with your scenario or implementation, rather than an issue with the documentation. Consider reaching out to the dev community. You can also create a feature request there, if your desired scenario is not supported.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.


[Show Username] Add setting to fully replace the nickname with the username

Add a setting that instead of appending the username to the nickname to parenthesis, just have the username show instead of nickname. Similar to one of the options from RemoveNicknames from BD.

This is a good idea!

added in 7609c77


Stream is not reaching EOF

I just tested the project, i couldn't see the context is getting Done and EOF condition is satisfied. Do you face similar issue?

I'm getting the same sort of thing as well.  But I'm getting where the context is closed.  Thoughts?

hm.
i just verified it works with the following
$ ./envoy --version
./envoy  version: d1d6be37c00e0be95b3a1c4cbfea441f1af88559/1.29.0-dev/Clean/RELEASE/BoringSSL

$ go version
go version go1.21.0 linux/amd64


Final redemption transaction on imported private key

Issue with final redemption transaction on imported private key - due to not being able to generate a change address

I think it's been resolved. Imported wallets don't have a change address as they only have a single key/address.


⚠ ClamAV has degraded performance

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

HTTP code: 200
Response time: 234 ms

Resolved: ClamAV performance has improved in b3fb6dd.


Remove Edge Show Password Icon

Describe the bug
There are two show-password icons.
What is the expected behavior?
There should only be one show-password icon.
What are the steps to reproduce?
Open authworkflow example in Edge
Enter a password on login and observe
Screenshots or links to minimum reproduction example

Environment
Windows, Edge
Anything else to add?
Reported by IPM

Recheck with React workflow.

If this is an issue on react, fix it there as well

Moving this issue to angular themes.


[Pickers] Add ability to pass props to the open picker button icon

[x] I have searched the issues of this repository and believe that this is not a duplicate.

Summary 💡
The only way to modify the look and feel of the open picker button icon is by adding custom styles through a class on any of the parent components of the icon. This is due to the lack of any props being passed down to the icon itself.
Examples 🌈
Code Example
Source Code
Motivation 🔦
I am trying to make the open picker button smaller. I can make the IconButton component small using the OpenPickerButtonProps, but I cannot change the font size (or any other property) of the icon except through manually styling the icon by using a CSS selector to get at the svg component with a MuiSvgIcon-root class.

Hello, could I try working on this issue?
It seems like a new OpenPickerIconProps prop could be added to date / time Picker-related components (DatePicker, DesktopDatePicker, MobileDatePicker, etc) and finally to the internal KeyboardDateInput component.
KeyboardDateInput can then be modified so that the OpenPickerIcon renders with this new prop:
   <IconButton
            edge={adornmentPosition}
            data-mui-test="open-picker-from-keyboard"
            disabled={other.disabled || other.readOnly}
            aria-label={getOpenDialogAriaText(other.rawValue, utils)}
            {...OpenPickerButtonProps}
            onClick={openPicker}
   >
            <OpenPickerIcon {...OpenPickerIconProps} />     // <----- modified line
   </IconButton>

Hello.
I also looked for ways to change OpenPickerIcon and OpenPickerIconProps.
My solution.
https://codesandbox.io/s/wild-lake-5lb29


Fix default company properties

What to do
The property types for the company model seems to be incorrect. This fixes them.
Apologies about messing up the other PR.
Background
For unclear reasons Hubspot uses strings for basically everything.
Here is an example for a response from them to confirm this:
{\"id\":\"15278289572\",\"properties\":{\"about_us\":null,\"address\":\"Am Mainufer\",\"address2\":null,\"annualrevenue\":null,\"city\":\"Frankfurt\",\"closedate\":null,\"country\":null,\"createdate\":\"2023-03-24T09:21:14.582Z\",\"days_to_close\":null,\"description\":null,\"domain\":\"piedpiper.finn.com\",\"engagements_last_meeting_booked\":null,\"engagements_last_meeting_booked_campaign\":null,\"engagements_last_meeting_booked_medium\":null,\"engagements_last_meeting_booked_source\":null,\"facebook_company_page\":null,\"facebookfans\":null,\"first_contact_createdate\":\"2020-10-17T15:04:23.187Z\",\"first_conversion_date\":\"2022-02-21T17:34:56.897Z\",\"first_conversion_event_name\":\"b2b: B2B Form\",\"first_deal_created_date\":\"2023-03-24T09:35:15.784Z\",\"founded_year\":null,\"googleplus_page\":null,\"hs_analytics_first_timestamp\":\"2020-10-17T15:04:23.176Z\",\"hs_analytics_first_touch_converting_campaign\":null,\"hs_analytics_first_visit_timestamp\":\"2022-02-22T13:39:05.891Z\",\"hs_analytics_last_timestamp\":\"2023-11-30T15:58:37.552Z\",\"hs_analytics_last_touch_converting_campaign\":null,\"hs_analytics_last_visit_timestamp\":\"2023-11-30T15:58:37.552Z\",\"hs_analytics_latest_source\":\"DIRECT_TRAFFIC\",\"hs_analytics_latest_source_data_1\":\"www.finn.com/de-de\",\"hs_analytics_latest_source_data_2\":\"\",\"hs_analytics_latest_source_timestamp\":\"2023-11-30T15:58:37.552Z\",\"hs_analytics_num_page_views\":\"4803\",\"hs_analytics_num_visits\":\"615\",\"hs_analytics_source\":\"OFFLINE\",\"hs_analytics_source_data_1\":\"SALES\",\"hs_analytics_source_data_2\":\"EMAIL_INTEGRATION\",\"hs_created_by_user_id\":\"25543598\",\"hs_createdate\":null,\"hs_ideal_customer_profile\":null,\"hs_is_target_account\":null,\"hs_last_booked_meeting_date\":\"2022-09-12T08:30:00Z\",\"hs_last_logged_call_date\":null,\"hs_last_open_task_date\":\"2023-04-13T06:00:00Z\",\"hs_last_sales_activity_timestamp\":null,\"hs_lastmodifieddate\":\"2023-12-07T15:36:30.343Z\",\"hs_lead_status\":null,\"hs_merged_object_ids\":null,\"hs_num_blockers\":\"0\",\"hs_num_child_companies\":\"0\",\"hs_num_contacts_with_buying_roles\":\"0\",\"hs_num_decision_makers\":\"0\",\"hs_num_open_deals\":\"2\",\"hs_object_id\":\"15278289572\",\"hs_parent_company_id\":\"\",\"hs_total_deal_value\":\"\",\"hubspot_owner_assigneddate\":\"2023-12-01T10:03:04.047Z\",\"hubspot_owner_id\":\"107981110\",\"hubspot_team_id\":\"586140\",\"industry\":null,\"is_public\":null,\"lifecyclestage\":\"lead\",\"linkedin_company_page\":null,\"linkedinbio\":null,\"name\":\"Pied Piper\",\"notes_last_contacted\":\"2023-10-10T11:44:00.592Z\",\"notes_last_updated\":\"2023-10-10T11:44:00.592Z\",\"notes_next_activity_date\":\"\",\"num_associated_contacts\":\"49\",\"num_associated_deals\":\"8\",\"num_contacted_notes\":\"27\",\"num_conversion_events\":\"53\",\"numberofemployees\":null,\"phone\":\"+4917634194402\",\"recent_conversion_date\":\"2023-10-16T13:29:33.228Z\",\"recent_conversion_event_name\":\"PDP: Coming Soon: Deal Creation Form\",\"recent_deal_amount\":null,\"recent_deal_close_date\":\"\",\"state\":null,\"timezone\":null,\"total_money_raised\":null,\"total_revenue\":\"\",\"twitterbio\":null,\"twitterfollowers\":null,\"twitterhandle\":null,\"type\":null,\"web_technologies\":null,\"website\":\"piedpiper.finn.com\",\"zip\":\"60321\"},\"createdAt\":\"2023-03-24T09:21:14.582Z\",\"updatedAt\":\"2023-12-07T15:36:30.343Z\",\"archived\":false}
Acceptance criteria
It's possible to request Companies data from the CRM endpoints.

@joidegn
Thank you for the pull request (2nd!), but since it's the end of the year, the review may be a little late, so please bear with me.
I'm thinking of using HsStr instead of HsInt, or using a format that can be marshaled to HsInt, but I'll check how it works.

Yeah no problem at all.
Im using this branch for now where I need this to work but you can of course use any other way to fix it and then I'll close this MR.

@joidegn
Sorry for late reply.
I used go-hubspot v0.7.0 to call the HubSpot Company API and confirmed that the unmarshal error recurs on my local machine.
I'm thinking of implementing UnmarshalJSON(b []byte) error in HsInt and starting a new pull request myself, but what do you think?

Yep that sounds good to me! Happy to close this one.


Next js Image problem

Description
Hi, the Zoom doesnt work with Image tag
Next js
Is it ok?
Thanks

<Image
alt="skksks"
src={item.image}
//loading="lazy"
className="product-image"
//aria-hidden="true"
/>

@leravalera4

Did you make sure to import the CSS file?
Can you please provide an example that demonstrates this not working?

Closing this due to lack of information.


Windows Fix

This will solve the Windows port issues:

[ ] Using io/fs relative paths, gradually updating the filepath calls
[ ] Handling user input paths on Windows, i.e env86 boot E:\MyVMs\alpine
[x] Updating home directory
[x] Fixing Makefile problems

[x] GOOS and GOARCH env variables
[x] Problem with assets directory for docker, has to be passed as .\assets:/dst

Looks good so far, but should I wait until the last bits are done? Just going by the checklist in the PR description.

So far, only the happy path is working. This should enable a user to "pull" an image and "boot" it, but other parts were on hold. I was waiting for an input to continue working on this.

Okay, can you make a link for any checklist items that have a separate issue? If I missed something, let me know what you need input on.

It's only these two that are not done:

Using io/fs relative paths, gradually updating the filepath calls (have to go through whole project and update them all)
Handling user input paths on Windows, i.e env86 boot E:\MyVMs\alpine (whenever there is a user input)

Tara told me that only "happy path" was necessary, so I fixed that initial stage and waited for an input on where to go from there.
I just saw your comment on #8 and that was the other one, and I'll leave that one. I believe that is a filesystem problem, because even if the extraction was successful with GNU tar all the links were broken.

Okay. Those last two seem like they would be good to do before we merge and test again, so you're not blocked to do them?

I'm not. I can start working on them and update the PR 👍🏼

Input paths are handled, these files have been updated:

pull.go
boot.go
create.go
prepare.go

These files either handle input paths correctly or don't have paths as inputs:

assets.go → Input is not a path.
network.go → No arguments used.
run.go → Immediately calls LoadImage, which handles paths correctly.
serve.go → Same as above.

Only these files left:

create.go: It works and does produce an output with "dir" arg, but "docker" argument and subsequently the "tar" problem stays here, so could not test it thoroughly.
v86util.go: This is only used in create.go, so can't test it yet.
tarfs/file.go and tarfs/fs.go: Same problem, related to "tar" so cannot test it yet. But usage of "filepath" is very minimal here, only used to split and join paths, so change would not be big at all. This can be handled with "tar" problem.

Another thing to report here is the osfs module from toolkit-go.
The object returned by osfs.New() is just an empty object and all implemented io/fs calls are wrappers around os functions, i.e. osfs.FS.Stat() calls the os.Stat() with a full OS native path. Now, this works, because paths that are passed to these specific FS object are paths that are, in fact, expected to be OS native paths. So at the current state, paths that are calculated using path/filepath do work here and "have to" be OS native paths. But I guess, breaks the rule of go's fs implementation, and I'm not sure where or if this would break somewhere.
One usage is here:
https://github.com/progrium/env86/blob/d2f218fb1ba26e4327774a02deab1837247456b0/assets/assets.go#L28
	if err := fsutil.CopyFS(Dir, "env86.js", osfs.New(), filepath.Join(tmpDir, "env86.js")); err != nil {
		return nil, err
	}
	if err := fsutil.CopyFS(Dir, "duplex.min.js", osfs.New(), filepath.Join(tmpDir, "duplex.min.js")); err != nil {
		return nil, err
	}

Other than these, the PR is ready for review.


Add game: Nintendo Switch™ Sports

I just realized the image has a bunch of whitespace because of how GitHub displays images. Sorry about the confusion and thanks for the contribution!


webots.min.js: Ambient occlusion

Aim: Find a simple way to add ambient occlusion in webots.min.js

[ ] Apply and improve #408
[ ] Log

threejs SAO and SSAO techniques are unfortunately much less advanced from our GTAO technique.
I can disable the occlusions on the background, but their is a halo effect I cannot remove. Here is an (exaggerated) illustration of the unwanted effect:

We should certainly go in the GTAO direction.
SAO and SSAO techniques are way more simplistic than GTAO (one shader vs four shaders with history management).
I would say that it will cost us at least 2 weeks of dev with lot of incertitude.

OK, let's go ahead with GTAO. It is certainly very important to have good ambient occlusion.

Analysis of GTAO rendering pipeline
Framebuffer outputs of the GTAO shaders in Webots

shader order
shader pass name
result

1
gtao.frag

2
gtao_spatial_denoise.frag

3
gtao_temporal_denoise.frag

4
gtao_combine.frag

Special shader pass inputs:

gtao.frag / inputTextures[2]:  (zoomed)  (original)

Wrong direction.


Showcase + Improve Homepage

Instead of the 10 items in "Jest's Testing Features" we should have screenshots and make it a product showcase. If we hold off on the website launch for another week, I can help do that.

The header should look more like the React site, too: https://facebook.github.io/react/
I have some ideas in my head.

For the three pillars on the website I think I'd like to drop one and add the watch mode instead (cc @rogeliog).

Instead of the current svg's in the pillars, we could maybe use Apple's emoji (are there svg versions of them available so that we can make sure they look the same on all platforms?)

I would also like to fix up the mobile menu. It is really ugly. We should simplify this.

We could really make it similar to what it is on React and RN

Yep, the React website is good and simple still. I think when the Jest website was redesigned, I should have pushed back more on the things I didn't want but I never had time to clean it up myself :(

Guess what 😄 https://github.com/facebook/react/pull/7870
I'll try to find some time to play with the site.

Oh man, you are awesome.

@cpojer: The header should look more like the React site, too: https://facebook.github.io/react/

Which specific part of the React header would you like to see in the Jest site? The main differences I can see, aside from the color scheme, are:

The React header is narrower due to the overall React site design
The React header has less text, with only two CTAs (Get Started and Take the Tutorial)
The navigation bar is laid out in a different order, with the external links to the right of the Algolia search bar
The navigation bar includes a link to the Tutorial

We can get any one of these, or all, implemented in the Jest website.

While we are at it, what do you think of using the same footer as React, React Native, and GraphQL? It's a dark, separate section with a greater selection of links - basically an expanded version of the navigation bar at the top of the site, along with some FB OSS branding.

I love your idea for the footer.
I think we should do something like this for the header:

Remove the excessive background color (only keep it in the top with the links).
Center "Jest" and add "🃏 Painless JavaScript Testing" below, just like on the React website. Remove the logo on the right that's shown on big screens.
Maybe remove the two lines about how it is used and the news section (I know you don't like it, so let's kill it).
Throw out "Fast and Sandboxed Also, maybe there is a better name for the "Turbocharged" section? Let's call one section "Instant Feedback" that points out how fast and awesome the watch mode is.
(Maybe:) Use Apple emoji for the three pillars instead of what we have currently (but put them into the website src so they work cross platform).

What do you think about this?
cc @thymikee who had thoughts about this.

Something like this would work?

Yes, exactly like this but I'd make it a lot smaller so that you can see the three pillars on the first screen.

Wouldn't the Joker be too tiny?

Move it to the same line as Jest?

I mean compress the whole thing to about the same height as now. It's ok if the joker is a bit smaller. It should stay on the tagline, that's how I've been doing it in talks.

I opened a few new issues based on the discussion here, hopefully this will make it easier to keep track of what is left to be done and who's working on it.

Gotta say, now that I'm used to #99424f as the new tint color, it's hard to look at the old jarring orange-red in the site :)

Yep, had the same reaction myself. Closing this issue in favor of all the small ones you created.


DirectoryInfo.EnumerateFiles Method

[Enter feedback here]
Hi All,
I use the following code, the first one is working fine, but the second one will throw exception.
It make me confused, please help.
DirectoryInfo tempdir = new DirectoryInfo(@"d:\WorkFloder\ABCD\Windows\Microsoft.NET\assembly\GAC_MSIL\Microsoft.Security.ApplicationId.Wizards.AutomaticRuleGenerationWizard.resources\v4.0_<IP_ADDRESS>_zh-HANS_31bf3856ad364e35");
// work fine
List tempfilesok = new List(tempdir.EnumerateFiles("*"));
// throw DirectoryNotFoundException
List tempfilesExp = new List(tempdir.EnumerateFiles(@"Microsoft.Security.ApplicationId.Wizards.AutomaticRuleGenerationWizard.resources.dll"));
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: a7c1e86f-031c-6ce6-5088-26a0cece9d90
Version Independent ID: 4cfebbe8-a6cc-970d-9983-ecbec07aa2a2
Content: DirectoryInfo.EnumerateFiles Method (System.IO)
Content Source: xml/System.IO/DirectoryInfo.xml
Product: .net
GitHub Login: @dotnet-bot
Microsoft Alias: dotnetcontent

Thanks for submitting your feedback, @seanxs. I can't reproduce your issue, though. I'm going to close this issue as not repo. If you're still having this issue, though, and can't diagnose its cause, it might be helpful to include a larger block of your code, including its exception handling.


[Task-06] Max Snischuk - Routing

Link to deployment
Acceptance criteria for 1

[x] Mentor is added to pr
[x] AC copied to pr description
[x] Link to deployed version is added to pr
[x] LayoutComponent with a static header and footer, and an Outlet for dynamic content, is added.
[x] Two routes, AboutPage and ProductsPage, are added.
[x] The AboutPage is set as the index route.
[x] A route for invalid pages is added, displaying Page not found with a link to the AboutPage.

Acceptance criteria for 1*

[x] The layout for ProductPage is added according to the design.
[x] An additional route for ProductPage with dynamic parameters :id is added.
[x] An additional request getProduct is implemented, using the product's id.

Now you have same ddos on the product item page please fix in the next pr


Request to Work on   Categories page and UI Enhancements

hey @ANSHIKA-26 I would like to take on the task of updating the Categories page. Additionally, I noticed a few areas where we can improve the user experience and would like to work on the following enhancements:
Steps to reproduce the current behavior:
1.Go to the website.
2.Navigate to the 'Categories' page.
3.Hover over the images.
Proposed improvements:

Update the hover effects on images and cards.
Introduce further enhancements to improve overall user experience and interactivity.

Please assign this task to me, So I can start working on it.
Make sure to add Lebels gssoc-ext, hactoberfest, and level1, level2, level3.

hover effect was added and removed 5 times from this page , right now it seems good as it is  ! so we dont need this thanks


Links and Sidekick names need to be converted to lower_case

Create two services with Upper case names. Say Stack: ST1, services S1, S2. Link S1->S2.
curl -H "Accept: application/json" <IP_ADDRESS>/latest/services/13/links
{"ST1/S2":"db"}

This link should be stored in lower case.
This same issue is applicable to a service with sidekicks started with Upper Case.
curl <IP_ADDRESS>/latest/services/14/sidekicks/0
S1SK1

Tested with rancher/metadata:v0.8.7.
Creates a service S1 with sidekick SK2 and SK3.
Create service - hello1 and link it to service S1.
links and sidekick metadata are presented in lowercase.
root@7ffb0f4d3f04:/# curl rancher-metadata/latest/services/hello/links
test4%2Fs1
root@7ffb0f4d3f04:/# curl rancher-metadata/latest/services/s1/sidekicks/1
sk3root@7ffb0f4d3f04:/#


  Add 'eval $(thefuck --alias)' to your bashrc

I add it in my bashrc and run 'source ~/.bashrc' but it still don't work

same as @yfxiongda have you fixed it？

Could you please share the contents of .bashrc?


ES3/IE8/WSH incompatibility in core compiler code

There is a delete member in one of the objects in createFileMap. See here:
https://github.com/Microsoft/TypeScript/commit/113b7ed13d26e246d25d76c9f65f9a15c4997322#diff-66cec844e251a1918deb897eabca206bR24
Delete is a keyword, not all JS engines can handle it. Specifically, ES3 spec seems to forbid it (ES5 being less strict).
Consider renaming to 'remove' and 'removeItem', plese.
Taking into account that this is the core of tsc, it's not good to limit the compatibility so. Compiler is still expected to work in ES3. IE8 fails to parse syntax { delete: deleteItem }, and so does Windows Script Host, which by the way is an official target for tsc to run on.
Here's a check page:
http://jsconsole.com/?var s %3D { delete%3A parseFloat }
Run on webpagetest:
http://www.webpagetest.org/result/150604_VP_CYC/

Out of curiosity, where/why are you executing the compiler in an ES3 environment?

That's fair. Before raising my voice to speak, I shoulda' got myself a Mac. Or Linux.
But my excuse is that my wife's become familiar with Windows, and don't want to migrate off.
What's yours?

That's fair. Before raising my voice to speak, I shoulda' got myself a Mac. Or Linux.

I think you are misunderstanding...  The question is why are you trying to compile TypeScript "within" IE8?  I think @danquirk is trying to figure out if there is a valid use case that he is missing as the compiler wasn't designed for that, but it can output code that works in an ES3 environment...

I am humbled by the honour of explaining the basics of how TypeScript compiler works to the members of the compiler team.
Look at the link I have put in my message. It points right to the crux of the deal.
When tsc.js starts, the very first thing it does is it detects the environment type. For reading command line and accessing filesystem you know. There are two of them supported: WSH and node.js.
The latter is well-known, it's based on the industry-leading scripting engine from Google and enhanced by Joyent and nunerous efforts of the Open Source community. Quite rightly most of the folks from the street conflate node.js and JavaScript. Why on earth would one want to run tsc on anything but node!
Now the other, WSH.
WSH. Wi-SH.
Windows Scripting Host. Wish. Very obscure, corner-case technology. Only ever used by that quirky subset of people still in possession of what 's called 'Windows'. Hence the name. Windows Scripting Host. Have you heard of it? Wish. No, probably not. It's lost in centuries passed. In a galaxy far far away. Unreachable even by Tardis.
We may muse how the support for such antique technology managed to survive in a little pocket of tsc. Digital Terra Australis if you will. I fancy thinking it's Anders's secret joke on simpletons like you and me, and @danquirk perhaps? You may venture a guess it's a political concession to some important boss from the OS division whose heart is eternally attached to WSH, and whose support TS leads needed in the early stage of the project. We will probably never know. Every knowledge of that power sharing deal has perished, buried deeper than FIFA secrets.
Back to the subject. TypeScript clearly is committed to supporting no-node hosts. Or is it? In fact I am not sure. Let's pretend I never asked.

WSH is not an officially-supported host and never has been. If you've seen this written in some documentation, please tell us where so we can fix it.
The compiler code refers to things that look like WSH objects in the non-node codepath because we used to run on a hacked-up version of WSH internally. Externally, people should be using node.js or tsc.exe (which loads tschost.dll, which implements a set of interfaces that look like WSH but aren't).
We don't officially support any hosts other than node/io and tschost. That said, we're open to take PRs to add support for new hosts (e.g. #1789).
In terms of adding a new supported host environment, though, I don't see us supporting any ES3 runtime. ES5 predates TypeScript by several years and there's a limit to how much backporting we're going to do as new work.

btw, the original issue was fixed yesterday in #3383

That's quite a lot more constructive, and VERY useful. Thanks a lot, @RyanCavanaugh for revealing this much detail, and @vladima for getting the project less wedded to a single platform.
ES3 compatibility did exist a while ago. Given that 99% of the code takes a great care avoiding anything smell8ng ES-like, it should be more or less mechanical to comb through the code and restore it to ES3 austere past. I hope I will find a few hours to play with that soon.
Besides, your explanation implies that tsc.exe lacks --watch support. I assume it's a historical flaw.

Re: --watch for tsc.exe, see #2375

Closing per @vladima 's comment in #3383 .

I am humbled by the honour of explaining the basics of how TypeScript compiler works to the members of the compiler team.

Are you always this awkward @mihailik, or are you having a particularly off day?

When I open an issue, I put in a good work to make it actionable and detailed. Deviations from this good will pattern are not appreciated.

Just for historical completeness.
Currently tsc.js does work on WSH at least on simple files. More to it, it indeed works in IE8, IE7 and IE6 -- so long as the filesystem access is emulated.


[BUG] HasMany relationship not stored in database when two relationship fields are on the same table

(A) what you did
I have a table with transactions (model FK, label, amount, type) in my database. They are linked to a model and can be of type 'income' or 'expense'.
I have the following relations on this model.
    public function incomes()
    {
        return $this->hasMany(Transaction::class)->ofType('income');
    }

    public function expenses()
    {
        return $this->hasMany(Transaction::class)->ofType('expense');
    }

where ofType is a query scope.
In the ModelCrudController I have one relationship field for the incomes and one for the expenses.
        CRUD::addField([
            'type'          => 'relationship',
            'name'          => 'incomes',
            'subfields'   => [
                [
                    'name' => 'label',
                    'type' => 'text',
                ],
                [
                    'name' => 'type',
                    'type' => 'hidden',
                    'value' => TransactionTypeEnum::INCOME->value,
                ],
                [
                    'name' => 'amount',
                    'type' => 'number',
                ],
            ],
        ]);

        CRUD::addField([
            'type'          => 'relationship',
            'name'          => 'expenses',
            'subfields'   => [
                [
                    'name' => 'label',
                    'type' => 'text',
                ],
                [
                    'name' => 'type',
                    'type' => 'hidden',
                    'value' => TransactionTypeEnum::EXPENSE->value,
                ],
                [
                    'name' => 'amount',
                    'type' => 'number',
                ],
            ],
        ]);

(B) what you expected to happen
Both incomes and expenses are stored in the database correctly
(C) what happened
When only incomes were entered and the expenses field was left empty. The incomes didn't get stored in the database.
(D) what have you already tried to fix it?
I found out the deletion happens in the attachManyRelation in the Create trait of the CrudPanel.
First the incomes are saved but after because the expenses field is empty the following code is triggered:
        if ($relationValues === null) {
            // the developer cleared the selection
            // we gonna clear all related values by setting up the value to the fallback id, to null or delete.
            $removedEntries = $modelInstance->where($relationForeignKey, $item->{$relationLocalKey});

            return $this->handleManyRelationItemRemoval($modelInstance, $removedEntries, $relationDetails, $relationForeignKey);
        }

The removed entries are solely defined by the foreign key, the type scope is neglected and all related records are deleted.
Could removed entries be altered to only clear the records of the relationship? I tested it like this
$removedEntries = $relation;
Or you could get the SQL from the relationship to execute directly on the database
$relation->getQuery()->toSql()

Hey @madriegh thanks for the report.
I am sure I haven't take this use-case into consideration when I built the functionality. Sorry 🙃
Will have a look at it and get back here with news.
Cheers

Hello @madriegh
Thanks again, I think I was able to reproduce your scenario and indeed we had a problem there.
One thing that I immediatelly thinked was using a polymorphic relation here, not sure but it seems it's the better fit here.
Anyway, I saw the PR you sent, thanks for that too 🙏
I've created a branch starting from it to include your commit and added a test for it too and some little fixes to make it easier for us to merge with confidence we are not breaking other stuff (🤞 🙃 )
I will be closing this and the PR, let's keep any further conversation on #4554 thread.
Cheers


Saved model without pretraining

Hello Yuanduo,
I think your achievement is really awesome. I am looking into your code and your model to develop more on it.
I was wondering whether the "best.pth" model is the trained model without Imagenet pre-training.
I remember I got the file from the google drive and it shows about 75.xx in validation set of Cityscapes.
Could you confirm it?

Hello Yuanduo,
I think your achievement is really awesome. I am looking into your code and your model to develop more on it.
I was wondering whether the "best.pth" model is the trained model without Imagenet pre-training.
I remember I got the file from the google drive and it shows about 75.xx in validation set of Cityscapes.
Could you confirm it?

All the models utilize the imagenet pre-training. 75.xx is abnormal. There are some third-party repos or papers reproducing my method and it is easy to achieve above 77% mIoU for ddrnet_23_slim. The model I provided should be 77.8.

Hello Yuanduo,
I think your achievement is really awesome. I am looking into your code and your model to develop more on it.
I was wondering whether the "best.pth" model is the trained model without Imagenet pre-training.
I remember I got the file from the google drive and it shows about 75.xx in validation set of Cityscapes.
Could you confirm it?

If you have some problems, you can refer to this repo.


Remove usage of ajaxDie

Questions
Answers

Description?
ajaxDie is deprecated and ajaxRender should be used instead. Related to https://github.com/PrestaShop/PrestaShop/pull/35283.

Type?
refactor

BC breaks?
no

Deprecations?
no

Fixed ticket?

Sponsor company

How to test?

Does not need any QA, the methods are the same.

@PrestaShop/qa-functional I don't think it requires functional QA; it's just a simple refactoring to use a new method instead of a deprecated one. Can we merge as is?


Adds dummy animation for the root scene node

🦟 Bug fix
Fixes #393
Summary
Adds dummy animation for the root scene.
Checklist

[X] Signed all commits for DCO
[ ] Added tests
[ ] Updated documentation (as needed)
[ ] Updated migration guide (as needed)
[ ] Consider updating Python bindings (if the library has them)
[ ] codecheck passed (See contributing)
[ ] All tests passed (See test coverage)
[ ] While waiting for a review on your PR, please help review another open pull request to support the maintainers

Note to maintainers: Remember to use Squash-Merge and edit the commit message to match the pull request summary while retaining Signed-off-by messages.

@luca-della-vedova would you be able to give this a look?

I can't remember the exact details of this PR but iirc it was to fix a corner case when parsing one specific collada actor with the Assimp loader, which in the end is also hidden behind a custom environment variable, we can revisit these corner cases if we were to remove our custom parser and just use assimp for every mesh, otherwise this is extremely niche and not sure about the implications on other models


Update Windows-WSL.md

Clarifying pip3 isn't the continuation of a long line wrapping and adding another line needed before my PC could install gcc.

Might be worth splitting these into different code-fences so it's clearer at a glance. IE:
The following commands enable cross-compile to 32Blit via ARM GCC:
(These are similar to the Linux requirements, see those for more details)
sudo apt update
sudo apt install gcc gcc-arm-none-eabi unzip cmake make python3 python3-pip

And you should also install the 32Blit tools:
pip3 install 32blit

(Note: "construct" and "bitstring" are automatically installed as part of "32blit" now so we can simplify that line)

So the Linux docs have a blank line between the two here, also doesn't apt update before the install... and has a separate bit for the unneeded deps. Guess there's more tidying to be done...

I think it's probably on us to grab the gist of this change and improve the documentation. Probably ties in with #691 and #692 but I pretty much ditched Windows so I'll have to provision a VM or something to kick the tyres on the docs and wrap these up.

Running a windows VM to test what is essentially a linux VM seems a bit silly. I have a windows setup handy... but I don't think I have WSL set up on it... Not sure how much this ties in with the other two, those are actually running on windows.
(These changes look reasonable, but we should maybe make the WSL docs as close to the linux ones as possible)


changes for filter list

Use eval to parse item from other blocks, use json.loads as failback.
remove duplicate feature (not equal => equal with opposite=True, not contains => contains with opposite=True)
Support basic lists [field required means that list must contain dict]
Use flip correctly (change search when opposite and not only add to return list)

Hehe shit, this was weird to validate after adding the "flip" part, but it seems to work. Well done, and thanks!

Hehe shit, this was weird to validate after adding the "flip" part, but it seems to work. Well done, and thanks!


Explore the GitHub APIs. Find best node.js GitHub API client.

I've used ajaxorg's github library before. It's reasonably usable.
That said, I don't know why we need/want to integrate with github's api. @indexzero do you remember why? This was a long time ago.

I'm going to close this issue because I'm not even sure where github integration would fit into the current incarnation of the docs.


New version: clawSoft.clawPDF version 0.9.3

- [X] Have you signed the Contributor License Agreement?

[ ] Have you checked that there aren't other open pull requests for the same manifest update/change?

[X] Does your manifest conform to the 1.4 schema?

Resolves #105588

[Policy] Dependencies

Need Required Winget 1.6 just able to work.

It look like there is new issue on winget-cli


[HUDI-716] Exception: Not an Avro data file when running HoodieCleanClient.runClean

What is the purpose of the pull request
More context, please go ahead with https://issues.apache.org/jira/browse/HUDI-716
Fix Not an avro data file ...
org.apache.spark.deploy.SparkSubmit$.main(SparkSubmit.scala:929) at org.apache.spark.deploy.SparkSubmit.main(SparkSubmit.scala)
Caused by: java.io.IOException: Not an Avro data file
  at org.apache.avro.file.DataFileReader.openReader(DataFileReader.java:50)
  at org.apache.hudi.common.util.AvroUtils.deserializeAvroMetadata(AvroUtils.java:147)
  at org.apache.hudi.common.util.CleanerUtils.getCleanerPlan(CleanerUtils.java:87)
  at org.apache.hudi.client.HoodieCleanClient.runClean(HoodieCleanClient.java:141) ... 24 more

With 0.5.1 onwards, hudi would first scan all files and store the plan (atomically) in .clean.requested and .clean.inflight before triggering the actual clean. If there are any intermittent failures, subsequent clean would read the cleaner plan again and retry.

Verify this pull request
This pull request is a trivial rework without any test coverage.
Committer checklist

[X] Has a corresponding JIRA in PR title & commit

[X] Commit message is descriptive of the change

[ ] CI is green

[ ] Necessary doc changes done or have another open PR

[ ] For large changes, please consider breaking it into sub-tasks under an umbrella JIRA.

hi @bvaradar, just LOG.warn when met exception, we can't be sure if zero byte files causes it every time.

can this go into 0.5.2 release?

@tooptoop4 unfortunately not... we froze code for 0.5.2 and been since only taking LICENSE/NOTICE related fixes..

hi @bvaradar, your suggestion is reasonable, all comments are addressed, thanks

@lamber-ken thanks for the changes, I have been running into the same issue and worked! 👍

@bhasudha pls include in 0.5.3

There was a follow on fix as well for this IIRC.. cc @lamber-ken @bvaradar


Custom headers

This PR allows for custom headers to be used when making the requests.

@laurengarcia This sounds like a useful feature. Do you have plans to incorporate these changes?

Custom headers are now an option in the latest version 3.0.1
https://www.npmjs.com/package/url-metadata


After upgrading to 1.0.2, images all return 404

/_cassette/file/ux/css/base/jquery-cnv-ui/images/ui-bg_flat_0_fef1ec_40x100_d4d3132654ae1b97bea57aa7f0feb6bca12fc4a9_png
Never had a problem with before upgrading..

Clearing the cache seems to fix this, but every time I make a change to a css file, it happens again, thus defeating one of the major purposes of cassette

This sounds a lot like issue #187

I'm looking into this. I'll find out what I broke in the update!
I assume you were on 1.0.1 before?

Cassette 1.1.0 is now available via nuget and should resolve this issue.


update github.io documentation to show new(track2) libraries first

Package indexes show a list of packages in random order, for example,  https://azure.github.io/azure-sdk-for-net/keyvault.html shows an older (track1) package first. We suggest

adding "latest" keyword to the new packages
sort packages on the page starting with the latest on top.
remove retired/ unsupported packages from the index on the left.

We held this one for a while so we could figure out how to prioritize this vs. docs.micorosft.com which is our preferred way for devs to find docs on our libraries.  For this issue, here's what's needed (following the numbering scheme above):

[do nothing] The latest version is already at the top of the lists and uncollapsed.  Adding the word "latest" to these versions as well will add clutter to the page with limited value (it's readily obvious that the highest/latest versions are the ones not collapsed.
This is what we want to fix with this issue.  The track 1 packages should separated from track 1 packages.  Let's list the track 2 packages alphabetically and have them listed before any track 1 packages.  Track 1 packages should be at the bottom of the page.  (Note: we may chose to hide the track 1 packages completely at some point in the future)
[do nothing] Knowing which packages are fully deprecated in the docs generation process is nearly impossible at this point.  So we're skipping this one for now.

I believe CSV metadata should have true in the New column for track 2 packages. Those could be sorted higher first.

Working on a fix for this.

It is currently listing in order, client, mgmt, track2, track1.

Merged the PR. Now it is sorting by track 2 first.

Closed the issue. Feel free to reopen if spots any other issue


首屏渲染报错（刷新浏览器首屏渲染报错） First screen rendering error (refresh browser first screen rendering error)

Environment
nuxt 3.10.3
Reproduction
.
Describe the bug
当浏览器首次进入页面或者在当前页面刷新浏览器时，报错了无法渲染导致项目出现致命，无法继续操作，如果是从别的页面跳转过来的却不会报错或者使用 '' 也能解决问题，但是是因为什么原因导致首屏或者是刷新浏览器的时候报错呢，如果使用ClientOnly  服务端渲染就会失效，或者说从别的页面跳转过来也不会报错是因为，首屏渲染才是使用服务端渲染，后续都是客户端渲染
When the browser enters the page for the first time or refreshes the browser on the current page, an error is reported and rendering is not possible, causing the project to become fatal and unable to continue operation. If it is redirected from another page without an error or using '' can also solve the problem. However, what causes the error to appear on the first screen or when refreshing the browser? If using the ClientOnly server for rendering, it will fail, Or to put it another way, jumping over from another page won't cause an error because the first screen rendering is done using server-side rendering, and subsequent rendering is done using client-side rendering

Additional context
No response
Logs
No response

If you delete the split where you use, the error also occur?

你的最后一句话其实是说对了的，刷新浏览器或者首次进入页面如果你只是用的$fetch会是在服务器端跟浏览器端发送请求的，大概率你这错是服务器端没拿到数据导致的，请求发送姿势问题

@1877666 Can you please provide a minimal reproduction? Otherwise, you could also try to seek help on discord (https://discord.com/invite/nuxt) as this does not look like an error with Nuxt, and more an error with data not being loaded.


Question about gradient calculation in the quantizer

I found that you have used "tf.stop_gradient()" to deal with the nondifferentiable properties of "tf.argmin()", "tf.round()". However, "tf.stop_gradient()" is used to ignore the gradient contirbution of present node, which means that your encoder network will not update its parameters since all the nodes before the quantizer (specifically the encoder network) will be ignored in the gradient calculation.

Are you tring to make the quantizer have a fixed gradient (such as "1") value at any time? If you are, I think you have to re-define the gradient of the quantizer rather than use "tf.stop_gradient()" .

I wonder how to deal with the gradient when I apply the operations such as "tf.round".  Will setting the gradient of these operation to be 1 help?  Could you offer some references? Thank you very much!

IIRC, I manually overrode the gradient so that it is just the identity -
this is the 'straight-through' estimator that works surprisingly well in
practice.
On Tue, May 25, 2021 at 12:29 PM sun107 @.***> wrote:

I wonder how to deal with the gradient when I apply the operations such as
"tf.round". Will setting the gradient of these operation to be 1 help?
Could you offer some references? Thank you very much!
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
https://github.com/Justin-Tan/generative-compression/issues/27#issuecomment-847483397,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AGRNY6GLUT5LV2GC6A74KQTTPMDSBANCNFSM4GSASWGA
.

Really thanks for your answer. I've got another problem.  I wonder how does batchsize affect the result.  Thanks for your reply again!

The batch size is limited by GPU memory. In recent papers about learned image compression the batch size is usually set to something low like 8 or 16, so I imagine that other hyperparameters would be more important to tune.


Fix handling of Link location descriptors

Fixes #2920

I think that's my fault...

It's an edge condition trade-off; I think we wanted to be able to merge location descriptor objects with the query/hash/state props, but that was probably before we had a full understanding of how useful location descriptor strings were.


Simplify and clarify gitops command family page

What does this PR do?
Improve readability and structure of the gitops command family overview.
What does it look like?

Screenshot

Any background context you can provide?
Just a general enhancement of some details.
What is needed from the reviewers?
Nothing special.
Have you maintained the front matter?
Yes

Update: screenshot is outdated. I modified the command names show under ### Subcommands to align with the canonical names which we use both in the sub menu and which are printed by kubectl-gs itself.


new_make_magic_plots.py fails on most current MagIC upload file

The measurement file says software version: pmagpy-4.2.24-1 which is a bit behind our current version, so maybe that is the problem?
new_make_magic_plots.py
-I- Using online data model
-I- Getting method codes from earthref.org
-I- Importing controlled vocabularies from https://earthref.org
working on:  Midway Atoll
-I- writing measurements records to /Users/njarboe/Dropbox/MagIC/testing/make_magic_plots/16656/data/tmp_measurements.txt
-I- 2374 records written to measurements file
-I- writing specimens records to /Users/njarboe/Dropbox/MagIC/testing/make_magic_plots/16656/data/tmp_specimens.txt
-I- 106 records written to specimens file
-I- writing samples records to /Users/njarboe/Dropbox/MagIC/testing/make_magic_plots/16656/data/tmp_samples.txt
-I- 106 records written to samples file
-I- writing sites records to /Users/njarboe/Dropbox/MagIC/testing/make_magic_plots/16656/data/tmp_sites.txt
-I- 106 records written to sites file
-I- writing locations records to /Users/njarboe/Dropbox/MagIC/testing/make_magic_plots/16656/data/tmp_locations.txt
-I- 1 records written to locations file
using specimen coordinates
working on plotting measurements data
ipmag.zeq_magic(crd=s, n_plots='all', contribution=<pmagpy.contribution_builder.Contribution object at 0x10e5f9828>, image_records=True)
Traceback (most recent call last):
File "/Users/njarboe/git/pmagpy/PmagPy/programs/new_make_magic_plots.py", line 517, in
main()
File "/Users/njarboe/git/pmagpy/PmagPy/programs/new_make_magic_plots.py", line 262, in main
contribution=con, image_records=True)
File "/Users/njarboe/git/pmagpy/PmagPy/pmagpy/ipmag.py", line 10701, in zeq_magic
ZED, interpretations = make_plots(s, cnt, meas_df, spec_container, samp_container)
File "/Users/njarboe/git/pmagpy/PmagPy/pmagpy/ipmag.py", line 10616, in make_plots
return plot_interpretations(ZED, spec_container, s, this_spec_meas_df, datablock, coord)
File "/Users/njarboe/git/pmagpy/PmagPy/pmagpy/ipmag.py", line 10455, in plot_interpretations
prior_specimen_interpretations.meas_step_min.values).tolist()
File "/Users/njarboe/anaconda3/envs/pmagpy/lib/python3.6/site-packages/pandas/core/generic.py", line 5067, in getattr
return object.getattribute(self, name)
AttributeError: 'DataFrame' object has no attribute 'meas_step_min'
magic_contribution_16656.txt
PmagPy version:
Current development version

Thanks, I will work on that asap.

It looks like this is happening because the specimens file uses the LP-DIR-T method code but doesn't actually have any directional data.  I can put in a workaround for this, but perhaps something is wrong with this specimen file?

If this specimen file was generated by PmagPy, maybe there is something additional that we need to fix.

The measurement table has "pmagpy-4.2.24-1" as the software used, so I would think the specimens table was also from pmagpy. I have asked the contributor to find out for sure.

@moonshoes87 Working is working. Will reopen if Bono get back to me and the specimens file was created by PmagPy.


chore: update local build doc

Description
What this PR does / why we need it:
Update local build steps for better contributing experience
Which issue(s) this PR fixes (optional, using fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when the PR gets merged):
Fixes #1048
Type of change
Please delete options that are not relevant.

[ X ] This change requires a documentation update

Checklist:

[ ] Does the affected code have corresponding tests?
[ ] Are the changes documented, not just with inline documentation, but also with conceptual documentation such as an overview of a new feature, or task-based documentation like a tutorial? Consider if this change should be announced on your project blog.
[ ] Does this introduce breaking changes that would require an announcement or bumping the major version?
[ ] Do all new files have appropriate license header?

Post Merge Requirements

[ ] MAINTAINERS: manually trigger the "Publish Package" workflow after merging any PR that indicates Helm Chart Change

We might be hitting the license/cla issue again, @junczhu  please rebase and see if license/cla is successful on retry


Application crashes after calling TraceLog(LOG_ERROR)

Please, before submitting a new issue verify and check:

[x] I tested it on latest raylib version from master branch
[x] I checked there is no similar issue already reported
[ ] My code has no errors or misuse of raylib

Issue description
Hello. I am trying this framework, and I came across one for me not quite understandable Matura.
When I call:
TraceLog (LOG_ERROR, ...); - application crashes with the return 1.
But when I call:
TraceLog (LOG_FATAL, ...); - program runs on as if nothing happened.
Maybe I'm wrong, but shouldn't it be the other way around?
Environment
Ubuntu 20 (LTS)

@colesnicov LOG_FATAL level was added later on so exit() was on LOG_ERROR, in any case, just reviewed it to exit() on LOG_FATAL.


In case you are useful

For a job of its own I had to make a new method that would return all the ids of a particular property of the model that is passed to the tree. Returned ids will meet the criteria of a delegated role.
I send you this code in case you want to add it to your pluggin.
Sorry for my english and thank you very much for your work.

getIdsByOwnPropertyData: function ($tree, property, delegateFunction, records, returnCollection) {
for (var i in records) {
if (records[i].hasOwnProperty("children") && records[i].children.length > 0) {
gj.tree.methods.getIdsByOwnPropertyData($tree, property, delegateFunction, records[i].children, returnCollection);
}
var node = records[i];
if (node != undefined && node.hasOwnProperty("data") && delegateFunction(node.data[property])) {
returnCollection.push(node.id);
}
}
return returnCollection;
},
/**
* Return ids by own property.
* @method
* @param {string} property - The property name of your own modelData
* @param {delegateFunction(valueParam)} reference to delegate function - delegate function that receives the property value and it must return a boolean.
* @return array[ids]
* @example sample
* Get Data
*
*
*
*/
self.getIdsByOwnPropertyData = function (property,delegateFunction) {
    return methods.getIdsByOwnPropertyData(this, property, delegateFunction, this.data('records'), new Array())
};

Thanks for the proposal. I will think about adding this in new versions.


Workaround Mmark's lack of support for TOC

FYI you've probably noticed Mmark deprecated as of Hugo 0.60:
gohugoio/hugo#6486

Closing as Hugo's v0.60 Markdown renderer, Goldmark, has better support for ToC than both Blackfriday and Mmark. Hence, resolving this issue.


transitionProperty and transitionTimingFunction not prefixed uniformly

Background: In plain CSS, transition-property and transition-timing-function are interdependent.
.myClass {
  transition-property: 'property-1, property2, property-3';
  transition-timing-function: 'function-1, function-2, function3';
}

function-1 applies to property-1, function-2 to property-2, function-3 to property-3.
This is interdependence is not respected by inline-style-prefixer.
Consider the following code:
import Prefixer from 'inline-style-prefixer'

const originalStyle = {
  transitionProperty: 'transform, opacity',
  transitionTimingFunction: 'ease, step-end'
}

const prefixer = new Prefixer()
const prefixedStyle = prefixer.prefix(originalStyle)

console.log(prefixedStyle);

Expectation: ease applies to the transform transition, step-end applies to opacity
Reality: In this above block of code, the stdout is
{
  transitionProperty: '-webkit-transform, transform, opacity',
  transitionTimingFunction: 'ease, step-end',
  WebkitTransitionProperty: '-webkit-transform, transform, opacity',
  MozTransitionProperty: 'transform, opacity'
}

In particular, notice that transitionProperty now has three list items, but transitionTimingFunction still has two.
If we applied this style object to a DOM node, ease would apply to -webkit-transform, step-end to transform, and no timing function would be applied to opacity.
This bug was surfaced in necolas/react-native-web#852

Oh wow, I didn't know about that! CSS I love you.
I'm not sure how to fix this dynamically, but I will try to find some time to debug it. Any help would be highly appreciated!

RNW is only using the static prefixer, might be easier to fix there first. It looks like not all the properties are being prefixed. If there's a MozTransitionProperty there should be a MozTransitionTimingFunction. At that point you should be check whether the transition properties are on the object, and if the transitionProperty value needs prefixed values, you can create new transitionTimingFunction values to match.

@jjjreisss has anyone at Twitter looked into patching this?


[FLINK-32759][doc] Remove the cluster.declarative-resource-management.enabled in doc

What is the purpose of the change
The cluster.declarative-resource-management.enabled was removed at FLINK-21095(https://github.com/apache/flink/pull/15838/files), so it doesn't work now.
However, the flink doc still have it.

Brief change log
[FLINK-32759][doc] Remove the cluster.declarative-resource-management.enabled in doc

Hi @zentol @RocMarshal , would you mind helping take a look this pr in your free time? Thanks


Validate compressionType needed when topics are created externally

Per title, is this relevant anymore? For situations where you don't create topics out of band, I would imagine this is useful.

https://newbedev.com/if-i-set-compression-type-at-topic-level-and-producer-level-which-takes-precedence
It looks like we'd want to set a sane default on the topic and ensure every client is capable of using it. CF did some benchmarking on types (https://blog.cloudflare.com/squeezing-the-firehose/) and seemed to like snappy for some record types, but maybe we can also do some benchmarking?


LogIn Verification through Email

Email Authentication

@NitinSigilipelli Assigned

here it was shown as no one assigned please check it once @Ijaiswalshivam

done

want anything else ?

@NitinSigilipelli For the time being that will be good to go


Write docs for vike-vue-pinia and vike-vue-query

New docs for vike-vue live at vike.dev, for example:

https://vike.dev/clientOnly#vue
https://vike.dev/bodyHtmlEnd
https://vike.dev/onBeforeRenderClient

But for vike-vue-pinia and vike-vue-query I think it's better we write the docs in the README.md file.
So far vike-vue-pinia and vike-vue-query don't have any documentation, contribution welcome to create some.

Done.


cask-repair fails to create a pull request

To start, #9, is still an issue. (TL;DR - Hotfix: git remote set-url <github_user> git@github.com:<github_user>/homebrew-cask.git)
hub issue creates a new remote to my fork set to https. Pulling from that fork (ie. cask-repair --pull origin --push JosephViolago adafruit-arduino) requires login (but no authentication code for MFA), and then fails. Changing that remote to ssh, fixes that problem.
But once I have access to push, I get walled off with this error:
Submitting…
On branch cask-repair_update-adafruit-arduino
nothing to commit, working directory clean
To git@github.com:JosephViolago/homebrew-cask.git
 ! [rejected]        cask-repair_update-adafruit-arduino -> cask-repair_update-adafruit-arduino (non-fast-forward)
error: failed to push some refs to 'git@github.com:JosephViolago/homebrew-cask.git'
hint: Updates were rejected because the tip of your current branch is behind
hint: its remote counterpart. Integrate the remote changes (e.g.
hint: 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.
Error creating pull request: Unprocessable Entity (HTTP 422)
Missing field: "head_sha"
Missing field: "base_sha"

Now this is an output after I've gotten my manually-produced PR accepted, so it is difficult for me to reproduce. But I think the interesting parts is how a PR is still being attempted even after some sort of failure in the prior command.
I'll try to reproduce and record that better.

Have you installed via homebrew? What’s the output of brew info cask-repair hub | grep -E '(cask-repair:|hub:)'?

$ brew info cask-repair hub | grep -E '(cask-repair:|hub:)'
vitorgalvao/tiny-scripts/cask-repair: stable 0.22.1
hub: stable 2.2.3 (bottled), HEAD

After investigating, I can see the error is from hub.
I’m doing some tests, but I’ll close this for now. I actually want to encourage more bug reports for this, so I can get further details. I have some ideas, but need people to actually stumble across the issue to diagnose (you have already fixed your case).
If you face it again, feel free to append to this one.

Hi vitorgalvao
brew info cask-repair hub | grep -E '(cask-repair:|hub:)'
vitorgalvao/tiny-scripts/cask-repair: stable 0.23.1
hub: stable 2.2.3 (bottled), HEAD
Is everything correct? You can also make further manual edits (y/n/e) y
Submitting…
To git@github.com:howie/homebrew-cask.git
! [rejected]        cask-repair_update-dbeaver-enterprise -> cask-repair_update-dbeaver-enterprise (non-fast-forward)
error: failed to push some refs to 'git@github.com:howie/homebrew-cask.git'
hint: Updates were rejected because the tip of your current branch is behind
hint: its remote counterpart. Integrate the remote changes (e.g.
hint: 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.
Error creating pull request: Unprocessable Entity (HTTP 422)
Missing field: "head_sha"
Missing field: "base_sha"
No commits between master and cask-repair_update-dbeaver-enterprise
Error creating pull request: Unprocessable Entity (HTTP 422)
Missing field: "head_sha"
Missing field: "base_sha"
No commits between master and cask-repair_update-dbeaver-enterprise

What happens if you try the command again now, right after it failed?
What’s the exact cask-repair command you ran?
In which directory are you? Are you right on the tap, or another directory?
What are the outputs of:

git diff --shortstat
git status --porcelain

HI
My  mistake ~ It' work after brew update
Thanks~

getting this error after a while a didn't use cask-repair
brew info cask-repair hub | grep -E '(cask-repair:|hub:)' vitorgalvao/tiny-scripts/cask-repair: stable 0.34.5 hub: stable 2.2.9 (bottled), devel 2.3.0-pre9, HEAD
Is everything correct? ([y]es / [n]o / [e]dit) y Submitting… Error creating pull request: Unauthorized (HTTP 401) Bad credentials Error creating pull request: Unauthorized (HTTP 401) Bad credentials
also tried running cask-repair -d and rerun

@OranShuster That’s a credentials issue, so it’s definitely not related to cask-repair, but hub (or your configuration of it).
Maybe you added 2FA or changed your password since the last time you used it.

i dont recall ever running/installing hub. i guess it's a prereq of cask-repair but i never knew it was used ( i just ran the commands from few posts up)

i guess it's a prereq of cask-repair

It is.

i guess it's a prereq of cask-repair

It is. Try deleting hub’s config (~/.config/hub) and try again.

Yep. now were golden


Do not change evens property of parent views

If you use decorator in a derived view, configuration will be added into parent events property. It can cause side-effects as described in the test.
But anyway, thanks for nice library! I started to use it in my project on it is going well.

Cool, thanks for the help!

@benmccormick just found that fixes haven't been released. Could you please make a release?

@just-boris will take a look at this this weekend.  Sorry for the inconvenience.

@just-boris release should be out now.

NPM says me that latest available version is 0.0.3, but it should be 0.0.4, right?

@just-boris sorry, newbie open source maintainer.  Thought npm picked up version bumps automatically.  Check again, should be ok now.

One more thing. You forgot to update files in the dist directory. That means that your users didn't get the update. Since you are pointing file from dist folder as an entry point of your application, you need to update this before release too.
So, now you need to commit latest actual built files from the dist, then bump the version and do release and publish again.
You possibly may want to automate that action. You can add the following "preversion" script into package.json: npm run build It will take care about building dist folder while you are doing a release. See npm docs for more information about module lifecycle and hooks.

Also maybe there is some guide with these basic information, but I got this on my own experience and just want to share it with you :)

@just-boris thanks.  I'm aware of some of that stuff, but I mostly started this as an experiment and am still not using it myself in production, so haven't gotten around to dealing with the tooling aspects yet.
Thanks for the tips.  Release should be ok now


react revert animation once it's finished

How do we do the animation again in the opposite direction once it's immediately finished? It works fine if I do this.setState({slideUp: !this.state.slideUp}); inside a click handler. It's just when setting the state in the animations rest function it doesn't work and I cannot figure out why.
i.e. slide down immediately when slideup has finished.
constructor(props)
{
    this.state = {
        slideUp: true
    }
}

_shuffleAnimationCallback = () => {
    ...
    this.setState({slideUp: !this.state.slideUp});
}

<Motion defaultStyle={{heightToInterpTo: 100}} style={{heightToInterpTo: spring(this.state.slideUp ? 0 : 100)}} onRest={() => this._shuffleAnimationCallback()}>
    {(values) => <ul style={{
              WebkitTransform: `translate3d(0, ${values.heightToInterpTo}%, 0)`,
              transform: `translate3d(0, ${values.heightToInterpTo}%, 0)`,}>
    {this.state.playlistComponent}
    </ul>}}
</Motion>

setTimeout( () => this.setState({slideUp: false}), 10 );` in the rest callback function works...
Does anyone know why I have to use setTimeout instead of doing it instantly?

Having the same issue...

See https://github.com/nkbt/react-motion-loop


Revert "build: Update gemspec"

Reverts readysettech/readyset-rails#21
Goofed up the merge order. PR #18 was supposed to be first.

 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.


Port HTML Files

Ported HTML files

WHEN REVIEWING PLEASE LOOK AT THE TOP FEW FILES AND THE BOTTOM FEW FILES. YOU CAN IGNORE THE FILES INBETWEEN.

LGTM

Good work !


VictoryCursorContainer stops updating while tapping and move out of the chart

Hi guys,
im trying to implement an area chart with cursor container, it works great (not super smooth but it works, I think for this the implementation should be changed and use react-native-gesture-handler #369).
Here the expo snack:
https://snack.expo.io/@outatime/ámbito-dólar-(rate-charts-with-victory)
and the capture in the real app:

but the PanResponder stops updating the cursor when outside of the container, is there any way to keep the cursor updating while tapping outside the container until the onTouchEnd occurs like apple stock app (for example).
any advice will be welcome, thanks !!!

BTW, tracing the code if found the following piece of code:
https://github.com/FormidableLabs/victory/blob/main/packages/victory-cursor-container/src/cursor-helpers.js#L36
the inBounds always return false when tapping / or keep tapping (without release) outside the chart area, if i comment previous line and set inBounds in true, works as it should.
what is the reason for that control? How could I modify its behavior without altering the domain of my chart?
Thanks

@boygirl any feedback?


⚠ API - Lens has degraded performance

In 59425e1, API - Lens ($LENS_API_URL) experienced degraded performance:

HTTP code: 502
Response time: 364 ms

Resolved: API - Lens performance has improved in fc58d57 after 6 minutes.