Uncensored models can't be customised

Hi! Thanks for the cool tool:)
Tried to customize:
-llama2 - customisable
-llama2-uncensored - no result
-nous-hermes - customisable
-wizard-vicuna-uncensored - no result
-wizardlm-uncensored - no result
The system msg used:
FROM wizardlm-uncensored
SYSTEM """
You are the Geralt of Rivia from the Witcher. Act like Geralt, be him.
"""
Is that intentional not to let customize uncensored models or a bug?

Hi @Cabuxos will look into this!

I just tried creating this Modelfile
FROM wizardlm-uncensored

SYSTEM """
You are the Geralt of Rivia from the Witcher. Act like Geralt, be him.
"""

And then ran ollama create testwizard while in the directory with that Modelfile. Then ran this:
ollama run testwizard
>>> what is the first thing to look for in a new town
 As Geralt of Rivia, I would typically look for the local tavern or inn, as it's often a
gathering place for travelers and a good spot to hear about any rumors or local news.
Additionally, I might visit the town's marketplace to see what kind of goods are available
and get a sense of the economy and culture of the place. If there is a notice board or town
crier, I would also pay attention to any postings or announcements that may provide clues
about potential quests or jobs. Finally, I might introduce myself to the local authorities or
influential figures in the town to see if they have any work for me or information that could
be useful.

Then tried updating the modelfile to use llama2-uncensored and it didn't work. Meta recommended removing the system prompt from the template so we did. But I tried this Modelfile:
FROM llama2-uncensored

PARAMETER stop "### HUMAN:"
TEMPLATE """
### HUMAN:
{{ .System }} - {{ .Prompt }}

### RESPONSE: """

SYSTEM """
You are the Geralt of Rivia from the Witcher. Act like Geralt, be him.
"""

and then received this
>>> how do you recommend I fight a demon

When facing a demon, it's important to remember that they are immune to physical attacks and have strong magical abilities as well. The best way to defeat a demon is to use magic spells or weapons that can overcome their invulnerability, such as silver swords or magic wards. Additionally, focusing on evasion and mobility can be effective in avoiding the demon's attacks while seeking opportunities to strike back. Finally, it may also be helpful to study the demon's weaknesses, which could include a particular magical attribute or vulnerability to certain elements.

From inside any model you can run /show template. That will show you how we use the SYSTEM prompt.

If you have any further problems, re open this issue but I think its done so I will close it now


ARROW-5224: [Java] Add APIs for supporting directly serialize/deserialize ValueVector

related to ARROW-5224.
There is no API to directly serialize/deserialize ValueVector. The only way to implement this is to put a single FieldVector in VectorSchemaRoot and convert it to ArrowRecordBatch, and the deserialize process is as well.
Provide a utility class to implement this may be better, I know all serializations should follow IPC format so that data can be shared between different Arrow implementations. But for users who only use Java API and want to do some further optimization, this seem to be no problem and we could provide them a more option.
This may take some benefits for Java user who only use ValueVector rather than IPC series classes such as ArrowReordBatch:
We could do some shuffle optimization such as compression and some encoding algorithm for numerical type which could greatly improve performance.
Do serialize/deserialize with the actual buffer size within vector since the buffer size is power of 2 which is actually bigger than it really need.
Reduce data conversion(VectorSchemaRoot, ArrowRecordBatch etc) to make it user-friendly.

cc @BryanCutler , could you please take a look? thanks

I should be more specific.  There shouldn't be a Java only serialization format, as that is against the arrow philosophy if a new communication protocol is desired it should get consensus from the broader community (via a mailing list discussion) that we want to support it across all languages.

@emkornfield Thanks very much for your comments. I know this is not not conforming to Arrow standard format as I described in ARROW-5224. The inspiration for this comes from our usage of JAVA API, so we would like to provide another option for user to implement this (not in MessageSerializer).
Absolutely it's better to make it a new communication protocol and support all languages, but since it's not very complete for all types and maybe it's hard to add a communication. So before doing this, maybe we could provide a tricky utility in Java which not affect the Arrow standard format. What do you think? Could I resolve the comments mentioned above? Thanks very much.

Note: https://issues.apache.org/jira/browse/ARROW-300 covers doing compression on buffers, maybe you can propose something there?

@emkornfield Got it, thanks for your kind reminder.


Bug with the settings page

The SD Automatic-111 displays the actual settings, not the default settings.
For example: I have set all the checkboxes to off, but after the reboot the default settings are displayed. Is this how it should be or is it a bug?

Thx, waiting for update


docs: add Shoutify project

(learned a pro move from @KyleTryon - more about it on defaang's discord)


Create java assessment test

updated java assessment

The program works but it replaces the entire word with one #. What we need to do is to replace each character in the word with #. If the search phrase is "the" and the sentence is "the quick brown fox jumps over the lazy dog". The result should be "### quick brown fox jumps over ### lazy dog"


Correct capitalization of GitHub

Github -> GitHub in Chris Wanstrath's bio.

Now that I look more closely at this, I realize that bios are rendered as uppercase. In that case, never mind.

:) Nice catch though!


Nep VIIR PC get VR events texts

Hello!!! I was reading this two Issues (#16 and #17) because i want translate the VR events of Nep: VIIR, i compiled your tool and i get some texts but i cant found the dialogs of the VR events. I checked the EXE in case was there but not, you will have already been able to check some CL3 gives an error like: "MAIN.DAT no found" i know that error is beacuse it dont have any text but someone CL3's have text but it give this error:

when it have text

But also I haven't found any of the dialogs of the VR events with your program and in hex. I also see many gbin's, it only extracts an EOF but I think that doesnt matter.
I would appreciate your help and see if we can find those texts.
some cl3's with text:
GxArchivedFile063.dat.zip

I've checked that "You've cleared the game!" in 03350.cl3, does it change if you change it with a hex editor?
Also pushed a commit to no longer require a gbnl when exporting to lua. However, the lua files won't be pretty.

Well I haven't seen it, I'm still thinking about translating the full game so i dont check that. So my main question I already solved it
the subtitles of the vr events are those .TEX (03892.tex - 05456.tex), so i think we can close this issues also and I don't know if you accept suggestions but it would be fine if you supported generating the strings in .po format because it would be easier to upload to a translation platform.
thank you very much for your help.

The output is currently is either what the old strtool or what used, or the custom lua, but at it's current form it's probably more suited for debugging than actual usage. I don't think PO files would be a good choice, because after importing old text entries are lost, so you wouldn't be able to match up the original strings with the translations in a second import. Some other format that use keys instead of strings would be better, but I don't know any widespread format of this kind. Plus this project is pretty much on life support right now, so don't expect any big developments.


🐛 fix(tabs): fonts weight glitches

Current Behavior
Currently the Meta Navigation is growing due to the fact of "morphing" from weight 400 to 700. With this transition, the text group is growing and visually jumping.
Can we improve this?
https://user-images.githubusercontent.com/62377419/188452845-b08a01a2-b701-4c0c-bbdd-520066544b11.mov
Expected Behavior
Idee:
https://css-tricks.com/bold-on-hover-without-the-layout-shift/
Steps to Reproduce

Version
12
Browsers
No response
Device
No response
Code Reproduction URL
No response
Additional Information
No response
Code of Conduct

[X] I agree to follow this project's Code of Conduct

This variant is only used on the website, which reloads the browser with any tab change so we won't do it


Tests don't complete with 3.12

It appears that this change in the behavior of 3.12 is causing problems. My understanding of asyncio is limited, but it appears that the reader and/or writer need to be closed so wait_for_closed will complete and that's causing the tests to timeout

Thank you, I never tested with python 12 before.
I plan to fix this bug in this weekend.
Thank you

I was able to figure out the fix and added it to #11


Use proxy_cookie_flags instead of hacked proxy_cookie_path

Describe the bug
The documentation recommends the use of proxy_cookie_path for setting cookie flags. Since nginx 1.19.3 the new configuration key proxy_cookie_flags exists that is meant or setting cookie flags. I don't know if we should migrate now since 1.19.3 is a relatively new version and people probably still use 1.18 / 1.17.

We should probably document both, since the new behaviour will be the right way going forward but we'll have adopters on the old version for a very long time still.

Pull request #2942 has essentially fixed this, but left a comment for older versions we should remove eventually. My suggestion is to remove it in the Opencast 12 documentation, leaving adopters about another year to upgrade. Let's leave this open to remind us.


Add workload-identity-bindings-patch.yaml

Use KFP built-in TFX sample to verify permissions, it should be able to write to GCS
We need this for all apps, otherwise it might not work: https://cloud.google.com/kubernetes-engine/docs/how-to/workload-identity#authenticating_to. profile controller not workiing

Validated that KFP and profiler are working correctly with workload identity


-target in build.ps1

https://github.com/cake-build/example/blob/0a34b48b8b8b3b4ac946f0915c2d62fdb51191ea/build.ps1#L222
Shouldn't this be changed because of the new version 1.0.0? from -target to --target
https://cakebuild.net/docs/getting-started/upgrade#cake-cli-updates

Hi! Yes, it should - well spotted. Are you in a position to send a pull request?

yes sure, I'll do it later today.

Excellent 👍

#57 merged


rotation_degrees range is from -1080 do 1080

Godot version:
a1fcac640
Issue description:
The edit range from rotation_degrees in the inspector is from -1080 do 1080, but should be -360 to 360 for better usability (dragging the value just makes the node spin like crazy).

Nah, -180 to 180 is absolutely normal. The "spin like crazy" is resulting from a mathematical problem called "gimbal lock". You should probably use quaternions for the issue you're facing.

What @Jummit meant is that the rotation_degrees range should be reduced, so that it's easier to drag it with the mouse. I think -360..360 would make for a good default range. However, larger/smaller values should still be enterable by adding or_greater,or_lesser to the property hint string.

ah, sorry I missunderstood it then

May I take this issue? I'm new to the repository and this seems simple enough to start contributing

@AbnerSantos Sure :slightly_smiling_face:
Note that there are quite a lot of rotation_degrees properties out there. Make sure to change the hints everywhere for consistency.

I asked @akien-mga about this a few months ago, here was the response:

@aaronfranke This is what the or_greater,or_greater links would allow (by manually entering the value) :slightly_smiling_face:


Update to Sequel 5.0.0

Since Sequel 5 immediately attempts to connect to the configured database, the development DB sequel_rails_test_storage_dev needs to be created, too.
Adding the following two lines to .travis.yml will hopefully fix most of the failed tests:
- mysql -e 'create database sequel_rails_test_storage_dev;'
- psql -c 'create database sequel_rails_test_storage_dev;' -U postgres

The sqlite3 tests are failing because SequelRails::DbConfig#build_url converts a relative path into an absolute path. Combined with the fact, that Sequel 5 is now eagerly trying to connect to a DB, the test fails.
To fix the test, it might be enough to replace the relative with an absolute path in the Rakefile:
diff --git a/Rakefile b/Rakefile
index 5d991e4..995ab3a 100644
--- a/Rakefile
+++ b/Rakefile
@@ -30,7 +30,7 @@ begin

     configs = {
       'postgresql' => { 'TEST_ENCODING' => 'unicode' },
-      'sqlite3'    => { 'TEST_DATABASE' => 'db/database.sqlite3' },
+      'sqlite3'    => { 'TEST_DATABASE' => File.join(File.expand_path("."), "spec/internal/db/database.sqlite3") },
     }

@JonathanTron @JosephHalter  I think PR ready for review =)

@Jesterovskiy Thanks a lot for the amazing work!
I'll take some time to review and merge in the next couple of days.

Thanks @Jesterovskiy for the good work, I'll merge the request and change the dependencies to deps to work with Sequel < 6.0 as @bgentry suggested.

@JonathanTron Thank you! Now you can release this, right?


Unable to open Code in Admin permission if already open without admin permission

Issue Type: Bug
I am working on project that needs some things done with admin permission and some thing without admin permission,
Howerver if i have opened code without admin permission then it is not allowing to open with admin permission with message saying that colse other instance of Code and then retry. I want to open code in both mode admin as well as non admin.
VS Code version: Code 1.38.1 (b37e54c98e1a74ba89e03073e5a3761284e3ffb0, 2019-09-11T13:35:15.005Z)
OS version: Windows_NT x64 10.0.17134

As a workaround you can have two VS Code installs and run the independently.

/duplicate of #6560


Better ways to pass arguments

Passing arguments to tasks via a hashtable can be a pain, especially when you have to pass the hashtable as a string to psake.cmd/.bat. Instead, declare a [string[]] parameter with the ParameterAttribute.ValueFromRemainingArguments field set.
Loop through the arguments and assign to a hashtable (keys begin with '-' while their values don't, for example) and then splat the hashtable to the task for use as parameters to the task.
There's a few ways you could do this for a better command line syntax. This would enable passing parameters easily to psake like so:
psake compile -version <IP_ADDRESS> -ignoresomething

I'm just poking through Psake's backlog, and I think you could accomplish this quite handily with dynamic parameters.  The dynamicparam block of Invoke-Psake would parse the specified file to determine what its properties are named, and add parameters with those names.  No need to do your own parsing, or use ValueFromRemainingArguments.

what about leveraging a json formatted string and then just parsing as needed inside the tasks?

My scripts have become far less than ideal because I try to avoid using properties for arguments. I end up creating tasks that are very specific.
For example:
Task DeployStaging {
    Some-Function "Arg1" "Arg2"
}

Task DeployProd {
   Some-Function "Arg3" "Arg4"
}

I'd love to be able to specify args directly at the Task level instead of properties so I could do this:
Task Deploy {
    param($p1, $p2)
    Some-Function $p1 $p2
}

I no longer use psake and if no new features are being added, I'll close this. Thanks for considering.

New features ARE being added now. I'm reopening this as I think it's a good idea. I personally find the difference between properties and parameters in psake to be confusing and would like to see passing parameters to tasks become a thing.

I did some minor hacking and was able to get parameters hooked up.
Here's the task:
Task PTest {
    param($p1, $p2, $p3, $p4)
    "p1 is $p1"
    "p2 is $p2"
    "p3 is $p3"
    "p4 is $p4"
}

This is the call:
>dg ptest -p1=hi -p2=\"hello world\" -p3
-------------------------[ptest]-------------------------
p1 is hi
p2 is hello world
p3 is True
p4 is

Build Succeeded!

-------------------------[Build Time Report]-------------------------
Name   Duration
----   --------
PTest  00:00:00.066
Total: 00:00:00.158

(dg is my build batch script that calls PS and imports psake.psm1 and invokes psake).
This was a very rough hack that I have to polish. Somethings that speed bumps:

invoking multiple tasks (this isn't a problem for me as I only invoke one task at a time and prefer having argument override at the task level)
need to escape quotes when sending quoted parameters from command prompt (batch)


[WIP] Fixes #339 - Print source file and line number in alloc_pool leak backtraces automatically

Test this by deliberately causing leaks, then start and stop router
void qd_dealloc(qd_alloc_type_desc_t *desc, qd_alloc_pool_t **tpool, char *p)
{
    return;

This produces for me
Leak: 2022-04-15 19:03:59.018928 +0200 type: qd_log_entry_t address: 0x61d000090710
   /lib64/libasan.so.6(+0x44701) [0x7f4a4814a701]
#1 qd_alloc /home/jdanek/repos/skupper-router/src/alloc_pool.c:369
#2 qd_vlog_impl /home/jdanek/repos/skupper-router/src/log.c:64
#3 qd_log_impl /home/jdanek/repos/skupper-router/src/log.c:465
#4 qdr_modules_finalize /home/jdanek/repos/skupper-router/src/router_core/router_core_thread.c:149
#5 qdr_core_free /home/jdanek/repos/skupper-router/src/router_core/router_core.c:236
#6 qd_router_free /home/jdanek/repos/skupper-router/src/router_node.c:2096
#7 (??) /home/jdanek/repos/skupper-router/src/dispatch.c:359
#8 (??) /home/jdanek/repos/skupper-router/router/src/main.c:111
#9 main /home/jdanek/repos/skupper-router/router/src/main.c:359

alloc.c: Items of type 'qd_iterator_t' remain allocated at shutdown: 37 (SUPPRESSED)
alloc.c: Items of type 'qd_hash_item_t' remain allocated at shutdown: 15
Leak: 2022-04-15 19:03:57.773083 +0200 type: qd_hash_item_t address: 0x611000006c50
   /lib64/libasan.so.6(+0x44701) [0x7f4a4814a701]
#1 qd_alloc /home/jdanek/repos/skupper-router/src/alloc_pool.c:434
#2 (??) /home/jdanek/repos/skupper-router/src/hash.c:38
#3 qd_hash_insert /home/jdanek/repos/skupper-router/src/hash.c:222
#4 qd_container_register_node_type /home/jdanek/repos/skupper-router/src/container.c:821
#5 qd_router /home/jdanek/repos/skupper-router/src/router_node.c:1565
#6 qd_dispatch_prepare /home/jdanek/repos/skupper-router/src/dispatch.c:318
   /lib64/libffi.so.6(ffi_call_unix64+0x4c) [0x7f4a43a31c04]
   /lib64/libffi.so.6(ffi_call+0x1d8) [0x7f4a43a31108]
   /usr/lib64/python3.10/lib-dynload/_ctypes.cpython-310-x86_64-linux-gnu.so(+0x1224a) [0x7f4a43a6224a]

(full log in attachment: 339_skrouterd_symbolized_leaks.txt)
TODO

[ ] depend on -lbfd only when QD_MEMORY_DEBUG is defined
[ ] add the linked libraries better, maybe find_library
[ ] find out what I depend on, the slides on the issue say I need all of -lbfd -liberty -ldl -lz
[ ] decide what to do if binutils-devel is not installed; I am inclined on making package mandatory when QD_MEMORY_DEBUG is set
[ ] depend on static versions of libs if possible; this does not matter so much since this is not in production build
[ ] finish the unittest for this; use the a_calls_b functions, ..., to get sample stacktrace, use __LINE__ to check correct line; this will only work for debug and relwithdebinfo build (needs debug symbols)
[ ] add some more error handling and reporting, to diagnose problems should they occur in the future

Immediate TODO

[ ] There are two versions of the libbfd API. Notice that current PR builds on Fedora, but not on Ubuntu and CentOS. This will have to be resolved, somehow.

e.g. bfd_vma vma = bfd_section_vma(section); is new API, and bfd_vma vma = bfd_get_section_vma(abfd, section); in the old.

https://wiki.gentoo.org/wiki/Project:Toolchain/Binutils_2.34_porting_notes/undefined_reference_to_bfd_get_section_*
https://lore.kernel.org/lkml/20200129075829.GB1256499@krava/T/
This looks reasonable, ugly but reasonable. It is necessary to support both versions of API.

Current status of this is that libdwarf2 will leak memory if qdrouterd is compiled without debuginfo. Either I am ignoring some error code and continuing past point of no (unleaky) return (maybe when I grab symbols from binary...) or there is something else wrong.

My system addr2line leaks too!
% PATH=/usr/bin:$PATH valgrind -s --leak-check=full -- addr2line --exe cant_symbolize_this<PHONE_NUMBER>81e0a0
==3492922== Memcheck, a memory error detector
==3492922== Copyright (C) 2002-2022, and GNU GPL'd, by Julian Seward et al.
==3492922== Using Valgrind-3.19.0 and LibVEX; rerun with -h for copyright info
==3492922== Command: addr2line --exe cant_symbolize_this<PHONE_NUMBER>81e0a0
==3492922==
/home/jdanek/repos/skupper-router/tests/c_unittests/test_connection_manager_static.cpp:124
==3492922==
==3492922== HEAP SUMMARY:
==3492922==     in use at exit: 282,005 bytes in 29 blocks
==3492922==   total heap usage: 20,178 allocs, 20,149 frees, 22,039,244 bytes allocated
==3492922==
==3492922== 2,352 bytes in 28 blocks are definitely lost in loss record 1 of 2
==3492922==    at 0x484586F: malloc (vg_replace_malloc.c:381)
==3492922==    by 0x4A7557D: strdup (strdup.c:42)
==3492922==    by 0x491D375: UnknownInlinedFun (dwarf2.c:3548)
==3492922==    by 0x491D375: comp_unit_maybe_decode_line_info.lto_priv.0 (dwarf2.c:3939)
==3492922==    by 0x491D595: comp_unit_find_nearest_line (dwarf2.c:3898)
==3492922==    by 0x491F78B: _bfd_dwarf2_find_nearest_line (dwarf2.c:5158)
==3492922==    by 0x48F24D3: _bfd_elf_find_nearest_line (elf.c:9206)
==3492922==    by 0x403977: UnknownInlinedFun (addr2line.c:196)
==3492922==    by 0x403977: find_address_in_section (addr2line.c:176)
==3492922==    by 0x48C65A6: bfd_map_over_sections (section.c:1383)
==3492922==    by 0x4032A0: UnknownInlinedFun (addr2line.c:274)
==3492922==    by 0x4032A0: UnknownInlinedFun (addr2line.c:410)
==3492922==    by 0x4032A0: main (addr2line.c:519)
==3492922==
==3492922== 279,653 bytes in 1 blocks are definitely lost in loss record 2 of 2
==3492922==    at 0x484586F: malloc (vg_replace_malloc.c:381)
==3492922==    by 0x4919263: UnknownInlinedFun (libbfd.c:289)
==3492922==    by 0x4919263: read_section.lto_priv.0 (dwarf2.c:578)
==3492922==    by 0x4919746: UnknownInlinedFun (dwarf2.c:2591)
==3492922==    by 0x4919746: read_rnglists.lto_priv.0 (dwarf2.c:3143)
==3492922==    by 0x491EB59: UnknownInlinedFun (dwarf2.c:3218)
==3492922==    by 0x491EB59: UnknownInlinedFun (dwarf2.c:3805)
==3492922==    by 0x491EB59: stash_comp_unit.lto_priv.0 (dwarf2.c:4835)
==3492922==    by 0x491F73A: _bfd_dwarf2_find_nearest_line (dwarf2.c:5142)
==3492922==    by 0x48F24D3: _bfd_elf_find_nearest_line (elf.c:9206)
==3492922==    by 0x403977: UnknownInlinedFun (addr2line.c:196)
==3492922==    by 0x403977: find_address_in_section (addr2line.c:176)
==3492922==    by 0x48C65A6: bfd_map_over_sections (section.c:1383)
==3492922==    by 0x4032A0: UnknownInlinedFun (addr2line.c:274)
==3492922==    by 0x4032A0: UnknownInlinedFun (addr2line.c:410)
==3492922==    by 0x4032A0: main (addr2line.c:519)
==3492922==
==3492922== LEAK SUMMARY:
==3492922==    definitely lost: 282,005 bytes in 29 blocks
==3492922==    indirectly lost: 0 bytes in 0 blocks
==3492922==      possibly lost: 0 bytes in 0 blocks
==3492922==    still reachable: 0 bytes in 0 blocks
==3492922==         suppressed: 0 bytes in 0 blocks
==3492922==
==3492922== ERROR SUMMARY: 2 errors from 2 contexts (suppressed: 0 from 0)

Fedora issue reported at https://bugzilla.redhat.com/show_bug.cgi?id=2116147

I'm not going to wait for upstream bugfix for the leak and I don't want to add suppression because of this. I'm going to try with a different library instead.


Wrong Results Under Debug x64 Mode

There are different behaviors between debug x64 and release x64 modes for the precompiled windows package version 2.0. For example, suppose you want to evaluate sin(1.0) using DA method and the codes are as follows:
#include
#include "stdafx.h"
#include <DA/dace.h>
using namespace std;
using namespace DACE;
int main(void)
{
DA::init(24, 1);
DA x = DA(1);
DA f = sin(x);

double y = f.evalScalar(1.0);

cout << "DA result is: " << y << endl;
cout << "Exact value is: " << sin(1.0) << endl;

return 0;

}
Suppose the Visual Studio 2017 is used, after compiling and linking, the variable y will have the wrong value 0 under debug x64 mode while it will have the right value of about 0.841471 under the release x64 mode.

I finally tried to have a look at this bug. I'm not very familiar with building on Windows, but I believe this is due to the subtleties of C++ DLLs in Windows.
How the DACE DLL is built (Release/RelWithDebInfo or Debug), determines which executables can link with it. This seems to be due to the passing of std:: classes between the DLL and the executable.
With a Debug package installed, building your code from the command line using cl /I "C:\Program Files\DACE 2.0\headers\include" test.cpp "C:\Program Files\DACE 2.0\lib\dace.lib", i.e. with release settings, causes the executable to crash with an out of bounds error inside the evalScalar() call. Debugging it, the problem is that the C++ interface between the code in the executable (evalScalar(), instantiated from a template), and the code in the DLL (eval()) don't seem to use the same interface. In the executable, a temporary std::vector objects created has the correct size (1), but once passed to the DLL, the DLL inside eval() sees them as size 0 and consequently crashes.
When compiling the executable with the same debug parameters as the Debug DLL
cl /I "C:\Program Files\DACE 2.0\headers\include" test.cpp "C:\Program Files\DACE 2.0\lib\dace.lib" /EHsc /Zi /RTC1 /MDd the code runs fine and produces the correct result.
Your problem is the inverse: When the DLL is built as Release, but the executable is built as debug, (as above), the error you describe happens. It is less obvious (as it doesn't crash), but I'm sure the problem stems from the same issue.
I played around a bit, and it seems the exact switch that breaks it is /MDd (something about multithreaded debugging). Compiling the executable without that, but the other debug switches mentioned above, yields correct results when linking with a non-debug DACE DLL.
In short, on Windows it seems the safest way to ensure correct results is to ensure the DACE DLL is only ever linked to the same build type used when building the DLL.
I don't know enough about Windows debug details to suggest a fix for this, although it seems many Windows system libraries come in different versions for the various debug options.

Whoops, didn't mean to close this issue, but for the time being I don't think we'll have a solution.


Pre-migrate Hook

We have a custom command we run in every Terraform project directory before running any other Terraform command which generates some custom Terraform configuration in that specific directory. Specifically, this command generates the backend configuration automatically, amongst other functionality it uses the relative path in the Git Repo to set the path in S3 for the state store for example.
Without these generated files we wouldn't be able to do state migrations/imports in our projects so ideally We'd want to run this command in each directory affected by tfmigrate. When doing migrations manually that'd work, but we'd want to integrate this into Atlantis and then we'd have to either run the command into every directory in the repository to generate the configuration everywhere possible just in case or we would have to parse all migrations to see which directories are affected by the currently unapplied migrations.
I was thinking a solution for this would either be a hook to specify this command and have tfmigrate automatically run the command or perhaps simply a subcommand for tfmigrate which outputs all the directories the currently unapplied migrations are expecting to touch.

Ahh sorry, just noticed this is a duplicate of #20


rename *Exception to *Error

Whoops. #215 merged to the wrong branch again.

Merging since #215 was already 👍


Twitter links are marked as "Invalid URL"

This is probably an issue due to the latest API changes from twitter.
This is fixed in the latest yt-dlp. Would it be possible to update the bot with the latest version of yt-dlp?

just updated yt-dlp, nothing changed, I'm sorry

Hi,
Sorry it was a misunderstanding on my side. The issue is that a Twitter account is required.
I was able to use yt-dlp after providing cookies (through txt file orusing the --cookies-from-browser option)
OR
by providing twitter username & password.
Is there a possibility for you to create a dummy account for this bot,
or
give us an option to enter our own username & pass?


Missing "NET symbol

Section: How to specify a target framework
Last paragraph: The complete list of preprocessor symbols for .NET target frameworks is:
Symbol NET is missing in the table for .NET 5 Target framework. Only NET5_0 is present.
NET is listed in See section / Target framework names in .NET 5 document.

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

ID: 49205137-dcec-a120-e5e7-1b9c79cdafbb
Version Independent ID: 4352856b-5ccf-8e62-48b4-3151340cac56
Content: Target frameworks in SDK-style projects - .NET
Content Source: docs/standard/frameworks.md
Product: dotnet
Technology: dotnet-standard
GitHub Login: @gewarren
Microsoft Alias: gewarren

Thank you for opening this issue. I'll add it to the backlog. If you would like to contribute, you can submit a fix by editing the original article. Click on the Content Source link at the bottom of your original comment. To learn how to edit, see the Editing files in a repository article from GitHub.
Thanks again!

Thank you for your fast response. PR #21556 is created.


WIP: Add C++11 array

Adds the std::array interface. Requires C++11 to use. Not sure how this is handled currently.
EDIT: Currently blocked waiting for #426.

While I'd love to see this work, I think there's a big problem.  Currently(and AFAIK), Cython's compiler/code generator does not support non-type template parameters such as the size_t.

I was also wondering about this issue of templates with non-type parameters. Oh well, I guess I can leave it here for someone to work on once that changes. Is there an issue already open for this enhancement?

Yes, pull request #426, but it is failing tests right now.

Also, your tests will fail as written, even if the type could compile.  You need to provide the size_t for the calls to begin, end, etc,. too, as each different size_t would be a different std::array.

You need to provide the size_t for the calls to begin, end, etc,. too, as each different size_t would be a different std::array.

By this, I am assuming you mean the type used to store these variables; not that the methods themselves needed to be templated in some fashion. This has been addressed.
Based on the discussion in the linked PR, it sounds like the manner in which templating of this nature may occur is still under active discussion. I'll revisit this once that gets settled and merged.

That's right--the new tests have the correct syntax.

Hi, Any progress here ?
I would love this


how to deal with video，which has 5min length

Maybe you're looking for ViViT https://github.com/rishikksh20/ViViT-pytorch?


Revamp TPU internals to be more efficient

Revamp TPU internals
What does this add?

Make prepare_model use MpModelWrapper to distribute the model across all devices efficiently when used
Changes prepare_dataloader to create an MpDeviceLoader allowing for the dataloaders to be more efficient.
Changes DataLoaderShard to no longer do xm.mark_step, MpDeviceLoader will handle this for us. Instead if on TPU we set the device as None in prepare_dataloader letting MpDeviceLoader take over with the device when needed.

Who is it for?

Users of TPUs

Why is it needed?
We currently have a number of "bad practices" in TPU handling due to improvements in the xla API. Here are some benchmarks I ran on a high-memory colab TPU instance with the nlp example script:
Baseline:

Post warmup: 56 seconds

W/ MpModelWrapper and MpDeviceLoader:

Post warmup: 48 seconds

W/ previous and default_tensor_type change:

Post warmup: 34 to 36 seconds

Roughly a 40% boost to speed once this is all done. I also saw some speed increases on the initial launch as well anecdotally, but I did not time them.
About default_tensor_type:
Though we do set the device to bf16 which helps with automatically converting the tensors to the right types, if we add torch.set_default_tensor_type('torch.FloatTensor') there is a considerable speedup when it comes to training TPUs.
I'm a bit unsure as to where it would be best to put this, as either something hidden when we initialize the Accelerator or as a util that should get called when you are training on TPUs, open to ideas
Anticipated maintenance burden? (What will happen in say, 3 months if something changes)
This is pretty stable and considered as "good practices" when running on TPUs w/ XLA, so it's unlikely these will change. However after this PR a subsequent PR will be opened to change the nlp_example and cv_example notebook, as another best practice is to declare the model outside of xm.spawn. This includes the internals to make the model as memory efficient as we can, so that will be the last stage needed.

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint.

Thanks for fixing up the TPU support with best practices! Looks great to me! 🔥

@sgugger this PR also modifies the TPU selection in AcceleratorState to actually use mixed precision types.

FP16 Support
BF16 Support

We're passing 😄


[Feat]: Redirect to Profile on Member's Name Click

What feature?
Firstly, I must say that this is a great codebase you're working and maintaining and I appreciate your contribution to the open source domain.
I visited the website and found out that there is a separate  tag that redirects a viewer to the member's profile (Github), which I believe can be improved for better user experience.
Rather than having a separate segment, why don't we just click the name of the member which redirects to their respective profile?
I believe the screenshot attached to this issue makes more sense than these lines tho.
If you find this issue to be helpful, please assign it to me so that I can proceed ahead with the same.
Thanks :)

Add screenshots
Add screenshots
Code of Conduct

[X] I agree to follow this project's Code of Conduct

oddly enough I thought the same thing and created a PR implementing it two days ago doing this.
Still waiting for feedback on it though

@hiferli Thanks for opening the issue, but @trp02 has already raised a PR for it so I am assigning this to @trp02.
@trp02 Always open issue if you working on something,

@shyamtawli
if you are fine with the implementation in #612 should I remove the view profile button on the right? Or would you rather keep both and give the user the option to click on either one?

@trp02 Let it be now. PR is closed.


cli command: deck -> use

Not implemented: unikube package use
Compare to unikube orga use

implemented by PR #23


Experimental template highlighting

I have improved the regex for the experimental template highlighting.
It now uses simpler regex, and does recursion on templates. This means it is faster than my previous commit and more complete. I have added additional tests. They are rather difficult tests.
Note: this is not yet correct. It fails some of the test cases.

Thanks!

Also see #30


[SPIKE] Investigate ways to improve performance of collections page as number of collections grow

Need
As we've seen in the staging env, as the number of collections grows the performance/user experience of the collections page degrades.  Explore different options to improve the performance of the page and estimate the amount of work needed to implement them.
Possible Approaches

pagination
From @tihuan If we want UI to be more performant dealing with ~1000 items, FE can do virtual scrolling, so BE can continue to return all collections and FE will only render the items that need to be in the viewport for both homepage and my collections page

Thanks so much for creating the ticket, Madison!
FE virtual scrolling will only improve browser rendering elements on the page, but if the bottleneck is actually waiting for BE response, then we'd need BE pagination 👌

Closing as performance issues have been addressed.


POST /api/$spreadsheet-id/formatter/*/format

This api supports a web browser or similar client requesting the server to format values using the given formatter and pattern.

REQUEST
[
  {
    formatter-selector
    value
  }
]

RESPONSE
[
    TextNode,
    TextNode
}

needs a List of TextNode


[PrintAsObjC] Fix handling of swift_name and swift_newtype

A typedef with the swift_newtype attribute is imported as a struct wrapping the underlying type instead of just a typealias. If the underlying type is a bridged type (like String), the newtype struct is bridged as well. However, we don't want to use that type when bridging back to Objective-C, because

Objective-C header generation is done too late to fill out the _ObjectiveCBridgeable conformance for the type, so if it wasn't type-checked then the conformance won't have the original type in it.
There's a perfectly good typedef we should be using anyway.

Just use the type as written in Objective-C (instead of crashing).
Also, make sure we use the C name for the type rather than the Swift name. Previously this part of the compiler assumed that any imported struct or enum would have the same name as it does in C, which is no longer true.
rdar://problem/26372925

Before merging this pull request to apple/swift repository:

[ ] Test pull request on Swift continuous integration.

Triggering Swift CI
The swift-ci is triggered by writing a comment on this PR addressed to the GitHub user @swift-ci. Different tests will run depending on the specific comment that you use. The currently available comments are:
Smoke Testing
    Platform     | Comment
    ------------ | -------------
    All supported platforms     | @swift-ci Please smoke test
    All supported platforms     | @swift-ci Please smoke test and merge
    OS X platform               | @swift-ci Please smoke test OS X platform
    Linux platform              | @swift-ci Please smoke test Linux platform

Validation Testing
    Platform     | Comment
    ------------ | -------------
    All supported platforms     | @swift-ci Please test
    All supported platforms     | @swift-ci Please test and merge
    OS X platform               | @swift-ci Please test OS X platform
    OS X platform               | @swift-ci Please benchmark
    Linux platform              | @swift-ci Please test Linux platform

Lint Testing
    Language     | Comment
    ------------ | -------------
    Python       | @swift-ci Please Python lint

Note: Only members of the Apple organization can trigger swift-ci.

@swift-ci Please test

Linux failures unrelated, merging.

@milseman, @DougGregor, or @rjmccall, would you mind reviewing for the preview branch?


Raise community contribution as PR

Feature described here and implementation here

superseded by https://github.com/canonical/upload-charm-docs/pull/161


Make script Python executable

This PR turns the safaribooks.py script running into a full fledged CLI that can be pip installed and runs with safaribooks sans the .py at the end.
I needed to:

Turn this into a Python module.
Introduce setup.py to make it installable.
Refactor the location of the CLI code into a callable method.
Updated docs with the new way to run it.

This also helps start moving towards refactoring, adding tests, etc as this becomes a Python module.

Could you try to merge with #137?

That PR just makes the Python script executable, this is a larger change to make it pip installable.

@lorenzodifuccia so it looks like a whooole bunch of code changed in the past couple weeks and it'll take some time to merge that code back in.
Are you still interested in this change? If so, I'll take the time to re-build what I did with the latest code base. Thanks!

Closing this PR because old. If you want, adapt your changes to the new version of the code and create another PR.
Cheers 🍻


Use standardized (JSON, table-like, etc.) output

Instead of leaving all output to the mercy of Microsoft Windows, we should use proper information extraction and output things in a format more machine-and-human-readable.

Currently, we are using various PowerShell-based commands and will generate output in a format that's both readable by human and (slightly) by machine. We will design a structured format (probably "JSON that looks like a bunch of lists") and all data fields will be in English.


Think about to fix the issues found by adapter checker

I am an automatic service that looks for possible errors in ioBroker and creates an issue for it. The link below leads directly to the test:
https://adapter-check.iobroker.in/?q=https://raw.githubusercontent.com/jjqoie/iobroker.nctalk

[x] [E003] Repository must have name ioBroker.adaptername, but now io"b"roker is in lowercase
[x] [E004] No adapter name found in URL: https://raw.githubusercontent.com/jjqoie/iobroker.nctalk/main
[x] [E020] Name of adapter in package.json must be lowercase and be equal to "iobroker.". Now is "undefined"
[x] [E019] Invalid repository URL: https://github.com/jjqoie/ioBroker.nctalk. Expected: git+https://github.com/jjqoie/iobroker.nctalk.git
[x] [E103] common.name in io-package.json must be equal to "". Now is nctalk
[x] [E200] Not found on npm. Please publish
[x] [E802] No topics found in the repository. Please go to "https://github.com/jjqoie/iobroker.nctalk", press the settings button beside the about title and add some topics.
[x] [E605] No actual year found in copyright. Please add "Copyright (c) 2022 Jochen Gerster<EMAIL_ADDRESS>at the end of README.md
[x] [E701] No actual year found in LICENSE. Please add "Copyright (c) 2022 Jochen Gerster<EMAIL_ADDRESS>at the start of LICENSE

I have also found warnings that may be fixed if possible.

[ ] [W400] Cannot find "" in latest repository
[x] [W801] .npmignore not found

Thanks,
your automatic adapter checker.
P.S.: There is a community in Github, which supports the maintenance and further development of adapters. There you will find many experienced developers who are always ready to assist anyone. New developers are always welcome there. For more informations visit: https://github.com/iobroker-community-adapters/info

[E201] Bluefox was not found in the collaborators on NPM!. Please execute in adapter directory: "npm owner add bluefox iobroker.nctalk"
1
[W171] "common.title" is deprecated in io-package.json
1
[W170] "common.keywords" should not contain "iobroker, adapter, smart home" io-package.json
2
[W156] Adapter should support admin 5 UI (jsonConfig)
3
[W400] Cannot find "nctalk" in latest repository
4
[W513] "gulpfile.js" found in repo! Think about migrating to @iobroker/adapter-dev package

Thanks, that all bugs have been fixed.


Support --disable-gpu flag

Description
Electron is using the discrete, high-performance GPU in very simple webapps. I think it would be nice to support a flag that uses the integrated, power-efficient Intel one for simple apps. This issue was mentioned in #312, but we never found a solution. In https://github.com/aluxian/Messenger-for-Desktop/pull/1184/commits/bedec614dabce14df3ef86c4a190be10e70e7410, the fix seems to be app.disableHardwareAcceleration().
Please add CLI argument --force-integrated-gpu that invokes the electron --force-integrated-gpu flag for apps that will knowingly not require any intensive GPU processing.
Steps to Reproduce Issue
Run:
nativefier drive.google.com -n "Google Drive"
Open and inspect in activity monitor:

Specifications

Version of Nativefier (run $ nativefier --version): v7.3.1
Version of Node.js (run $ node --version): v7.9.0
OS: MacOS 10.12.4
Architecture x64

MacBook Pro Retina 15" w/ touch bar, Radeon Pro 460 / 4 GB

@kevinschaich thanks for the feedback! One thing, though:

"Electron is using the high-performance GPU..."

Yes.

... "which is both a drain on processing power and battery"

You lost me here; all other things equal, GPU usage saves power and battery as compared to doing everything on the CPU. Looking at the title, I think I understand you want to force Electron to use the integrated (Intel, power-efficient) GPU, but Electron has no such feature as far as I know.
The request for a --disable-gpu flag remains valid (could be useful e.g. to work around crashy GPU drivers), so renaming the issue and leaving open as feature request.

@ronjouch Thanks for the correction in terminology. As a revised problem statement, I think it would be helpful to have a --disable-gpu flag that uses the Intel integrated, power efficient GPU. Check out this API doc for electron:
https://github.com/electron/electron/blob/master/docs/api/app.md#appdisablehardwareacceleration
I believe if you call app.disableHardwareAcceleration() in app/src/main.js, it will work as expected.

@kevinschaich thanks for the fast reponse 👍, that's clearer: you're asking for a --force-integrated-gpu / --forbid-discrete-gpu flag. Would be super neat, agreed, but that doesn't seem likely for now:

Reading Electron docs / app.disableHardwareAcceleration(), I'm not sure your reading is correct. The doc states it "disables hardware acceleration for current app", which to me reads any kind of HW acceleration, including your Intel chip. Said differently, it looks like the programmatic equivalent to Chromium flag --disable-gpu, which will force all computation to your CPU, ignoring your Intel chip. Tests/contradictions welcome, though!
Reading https://github.com/electron/electron/issues/4380 , it still looks like no such switching feature is exposed by Electron. Commenters seem to be pointing towards helper tools such as gfxCardStatus, mentioned in the Messenger-for-Desktop issue.

@ronjouch perhaps this could still be useful for the prior issue you mentioned (e.g. to work around crashy GPU drivers), and perhaps we rename it either to --disable-hardware-acceleration or --disable-gpu as originally suggested?

@kevinschaich yup, leaving the issue open as is, asking for a --disable-gpu flag that disables acceleration altogether 👍.


Fix version of auditlog

Fix dependency hell by upgrading only django-auditlog.
django-auditlog fixed dateutil to a specific version which has introduced a "dependency hell".
A more recent version (1.0a1) fixes that (only require dateutil >=2.6.0). https://github.com/jazzband/django-auditlog/commit/33fa2490714954b189e24963e4586f86ce4f99c2
ERROR: Cannot install -r ./requirements.txt (line 8) and python-dateutil==2.8.1 because these package versions have conflicting dependencies.

The conflict is caused by:
    The user requested python-dateutil==2.8.1
    django-auditlog 0.4.7 depends on python-dateutil==2.6.0

To fix this you could try to:
1. loosen the range of package versions you've specified
2. remove package versions to allow pip attempt to solve the dependency conflict

that is an alpha version so let's not use that.

that is an alpha version so let's not use that.

I've been watching this lib for their imminent release that would allow us to use the new pip builder. If they don't release in the next few weeks, we'll have to make our own fork that just updates that dependency thing.
The audit log is already a performance hog so I wouldn't want to go with an alpha version.

I've been watching this lib for their imminent release that would allow us to use the new pip builder. If they don't release in the next few weeks, we'll have to make our own fork that just updates that dependency thing.
The audit log is already a performance hog so I wouldn't want to go with an alpha version.

Converting to a draft, waiting for fixed version

Converting to a draft, waiting for fixed version

@valentijnscholten I made some research on this package before pushing this PR. This package is now managed by a collective. It's not a one-person project anymore. I saw some quality work pushed since version 0.4.7 (the version we use) but I agree I will wait before pushing again this one.

@valentijnscholten I made some research on this package before pushing this PR. This package is now managed by a collective. It's not a one-person project anymore. I saw some quality work pushed since version 0.4.7 (the version we use) but I agree I will wait before pushing again this one.

That collective is usually used for packages that otherwise would get abandoned. So I wouldn't trust that it's a good sign, usually they are just saved from abandonment. I do see some commits around ci/cd, but nothing much around the actual audit log functionality.
Having said that, that might be a good sign as 1.0a1 is almost identical to 0.4.7 apart from dropping python2 and some small changes: https://github.com/jazzband/django-auditlog/compare/ee8a700b1b97e405638af5f9f9369651e8601583..565239180e2cc386156e80c98566df2c77f55463
I suggest we merge after releasing 1.12.0 so can get some mileage on dev before 1.13.0.

That collective is usually used for packages that otherwise would get abandoned. So I wouldn't trust that it's a good sign, usually they are just saved from abandonment. I do see some commits around ci/cd, but nothing much around the actual audit log functionality.
Having said that, that might be a good sign as 1.0a1 is almost identical to 0.4.7 apart from dropping python2 and some small changes: https://github.com/jazzband/django-auditlog/compare/ee8a700b1b97e405638af5f9f9369651e8601583..565239180e2cc386156e80c98566df2c77f55463
I suggest we merge after releasing 1.12.0 so can get some mileage on dev before 1.13.0.

@valentijnscholten that's sound like a plan

@valentijnscholten that's sound like a plan


Remove unrequired cfg any directive

What type of PR is this?
/kind failing-test
What this PR does / why we need it:
Clippy complains about this on main.
Which issue(s) this PR fixes:

None
Special notes for your reviewer:
None
Does this PR introduce a user-facing change?

None

/lgtm


First iteration on the private-wiki support

It works, but lacks some features still, mostly related to error handling and handling of situations when our session expired. Will add them in the next iteration.
We'd need to set up a superuser for each of those private wikis we wanna support.
Bug: https://phabricator.wikimedia.org/T137140
cc @wikimedia/services

Coverage increased (+0.3%) to 93.714% when pulling c92e8bdaeae1405348dd37d3690f5f0dc45dafa7 on Pchelolo:login into ffd7a02e45839efef7216d133c99f40939b090b7 on wikimedia:master.

I wanna put this one on hold. I've discovered an alternative way to authenticate a bot on wiki which might be a better way forward here. See https://phabricator.wikimedia.org/T137140#2700822


IFile.Create has different return type than File.Create

Describe the bug
The IFile.Create() method returns a Stream, but the "original" File.Create() returns a FileStream. This is important, because the FileStream contains the Name-property with the files name.
Expected behavior
IFile.Create() returns a FileStream.

This is more or less by design, because FileStream relies on the real file system.
We could return a custom subclass of Stream that adds the Name property.
What do you think about this?

That would be great, especially for people like me, that move to Abstractions with existing code.

Cool, so let's make this as ready and discuss details in a PR, once somebody finds the time to work on this 👍

I think this issue can be closed, as the FileSystemStream was implemented in #906 ...
Do you agree, @Heldenkrieger01 ?

I'm closing this. Feel free to reopen if needed!


fix: add pdfjs worker

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Add server_side_encryption option for createMultipartUpload.ServerSideEncryption

Thanks for this library, I've added the ability to specify the option server_side_encryption which maps to ServerSideEncryption on createMultipartUpload.

Coverage remained the same at 100.0% when pulling 5264cbba8e08b1ca9e1932b8a577b4bc85c09b41 on hutchy2570:sse into 00908a9025635cad7d220b9c7da45eb2e892fcfd on Zooz:master.

Hi, sorry for the delay. I will review in a bit.
Thanks!


Select icons

Describe the requested icon
It would be cool if there are some select icons in this library.
Screenshots
https://materialdesignicons.com/icon/select-off
https://materialdesignicons.com/icon/select
https://materialdesignicons.com/icon/select-inverse
https://materialdesignicons.com/icon/select-all
Additional context
I'm switching from materialdesignicons to phosphor because I like the light icons :)

Glad you like them, @CodeDoctorDE!
selection, selection-all, selection-background, selection-foreground, selection-inverse, selection-plus, and selection-slash were just added in v1.3.1. hope you've got enough to choose from :)


Jest CLI not working with custom file path

./index.js
test('example', () => {
  expect(true).toBe(true)
})

./test.js
test('example', () => {
  expect(true).toBe(true)
})

./packge.json
{
  "scripts": {
    "works": "jest ./test.js",
    "fails": "jest ./index.js"
  },
  "devDependencies": {
    "jest": "^22.4.0"
  }
}

Output
➜  jest-example git:(master) ✗ npm run works

> @ works /Users/treggi/Desktop/jest-example
> jest ./test.js

 PASS  ./test.js
  ✓ example (2ms)

Test Suites: 1 passed, 1 total
Tests:       1 passed, 1 total
Snapshots:   0 total
Time:        4.383s, estimated 5s
Ran all test suites matching /.\/test.js/i.
➜  jest-example git:(master) ✗ npm run fails

> @ fails /Users/treggi/Desktop/jest-example
> jest ./index.js

No tests found
In /Users/treggi/Desktop/jest-example
  4 files checked.
  testMatch: **/__tests__/**/*.js?(x),**/?(*.)(spec|test).js?(x) - 1 match
  testPathIgnorePatterns: /node_modules/ - 4 matches
Pattern: ./index.js - 0 matches
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @ fails: `jest ./index.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @ fails script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR!      /Users/treggi/.npm/_logs/2018-02-22T20_11_52_425Z-debug.log

Hey @reggi, thanks for using Jest
The issue is that index.js does not match any of the default matchers but ./test.js does
To test index.js you'll need to configure the matchers to allow it
You can see this in the output via:
No tests found
  testMatch: **/__tests__/**/*.js?(x),**/?(*.)(spec|test).js?(x) - 1 match

@rickhanlonii
Not sure if this is optimized but this works.
{
  "scripts": {
    "works": "jest ./test.js",
    "fails": "jest ./index.js"
  },
  "devDependencies": {
    "jest": "^22.4.0"
  },
  "jest": {
    "testMatch": [ "**/__tests__/**/*.js?(x)", "**/?(*.)(spec|test).js?(x)", "<rootDir>/*" ]
  }
}

@reggi yeah I would expect that to work and, in general, I would try to be as specific as possible


E2E tracing From a non-spring application to a spring/sleuth one: Need some validation

Hi
I have a non spring application (an ESB indeed) which has its own trace mechanism (w/traceid and spanid ;) ).
This application writes to a kafka topic consumed by a regular spring stream/sleuth microservice. I added simili sleuth headers to this topic (spanTraceId=myTraceId, spanId=myTopicId, aso ...) in order to get E2E tracing mechanism and leverage sleuth implementation where it's available.
This seems to work, sleuth recognize my headers and create new spans attached to my own trace.
Question is, do you think this approach is a good one or should I use another mechanism ?
Thank you for your help.

Yeah it seems like a good idea. If you create on this topic messages that Sleuth Stream understands then it's perfectly fine

Hi Marcin
Great. Thank you. No specific format to respect anyway ?

These are the headers we expect in terms of passing of tracing information in messages - https://github.com/spring-cloud/spring-cloud-sleuth/blob/master/spring-cloud-sleuth-core/src/main/java/org/springframework/cloud/sleuth/instrument/messaging/TraceMessageHeaders.java#L29-L35 .
This is how a Span message should look like if you want to send it to a Sleuth Stream Collector - https://github.com/spring-cloud/spring-cloud-sleuth/blob/master/spring-cloud-sleuth-stream/src/main/java/org/springframework/cloud/sleuth/stream/Spans.java

Perfect, will keep same formats then.
Thx

If one is using a languages that has http://opentracing.io supported libraries, should not one use that instead?

You can check out this issue https://github.com/spring-cloud/spring-cloud-sleuth/issues/253 for more info about this. We've initially decided to pick a different transport format for sending spans via messaging and currently the plan to change it is low in terms of priority. You can always run our collector and store spans to the same DB as other collectors.

Hi
@ashwgupt: not in our use case: we already use Sleuth tracing mechanism within our Spring Cloud applications but upstream and downstream we use components that don't rely on Spring (WSO2 ESB e.g.).
In order to get E2E tracing, we had to find a bi-directional solution which propagates Sleuth headers from and to these components.

BTW let's differentiate 2 things here - one is tracing headers in messages and the other format of spans. Tracing headers in messaging can't be zipkin compatible since they are invalid for JMS (you can't have hyphens in header names).


w-9537427 avoid use of implicit headings

Critical Changes
GUS W-9537427
Updated :

CustomLabels.labels-meta.xml : Label RD2_EnablementMigrationCompleteMessage is modified with h4 heading tag for 'Upgrade process complete!' heading.
batchProgress.html : 'Data Migration Run' heading is surrounded by h2 heading tag.

Changes
Issues Closed
Community Ideas Delivered
Features Intended for Future Release
Features for Elevate Customers
New Metadata
Deleted Metadata

@ptewson-sfdo should we close this PR ?


Publish as docker package

Publishing this tool as a docker package will help in using this tool docker-compose, kubernetes etc
How to do it?

We use go releaser for publication of artifacts which you can see in the github releases

Refer https://goreleaser.com/customization/docker/
For an example you can checkout this repo

KO seems to be the best option for building multi platform docker images for golang. And go releaser supports it


Add option to run events and path in parallel

An option should be added to allow events and the path to run in parallel.
Consider the following case, assuming a robot with a long boom-like arm:

A mid-path stop point with "closeGripper" and "pivotHome" events is created
When the robot arrives at this stop point, it has its arm in a ground pickup position
Due to mechanical specifics, attempting to pivot the arm without retracting the boom may cause damage from this position
"pivotHome" is a sequential command group where the boom is retracted a certain amount before the arm pivots

As it currently stands, the robot waits for the "pivotHome" event to finish before continuing with the path. This takes many seconds. Having the option (a checkbox under "Execution Behavior"?) to tell PathPlanner to run the events and the path in parallel would be great.
For a specific implementation that might be ideal:

wrapper ParallelCommandGroup

PathPlanner followTrajectory
User event commands

A couple of options here without changing anything.
Use a marker event at position x.01 instead of a stop point event. where x in the point number on the path.
or
Create a dummy command that lasts only for 0.1 of a second and then use a parallel deadline at the stop point with this event as the first event in the parallel group.  Then it will move off as soon as the deadline event is finished.


Reading float32 introduces extra precision

I am not sure if this is a bug
var f = 1.23;
var l = Uint8List(4);
l.buffer.asByteData().setFloat32(0, f);
var v = l.buffer.asByteData().getFloat32(0);
print("f: $f, v: $v");

Output: f: 1.23, v: 1.2300000190734863
I thought this might be a bug because float32 supports 8 digit fraction but the fraction continues after 8th digit (I mean this part: 190734863), but float32 should not support(?) those values. So, If I read a float32 I should not be getting float64.

Dart SDK Version: Dart SDK version: 3.1.0 (stable) (Tue Aug 15 21:33:36 2023 +0000) on "windows_x64"

I opened the same issue on https://github.com/dart-lang/typed_data/issues/71 but I realized it is related to core library so creating also here

That is the intended, and indeed required, behavior.
There is no double with the numerical value 1.23. The closest double has the precise value
1.229999999999999982236431605997495353221893310546875
(Exactly 0x13ae147ae147ae / 2^52, a number with 53 bits of precision)
The double.toString conveniently displays that number as 1.23, the shortest numeral which is closer to the exact value than to any other double value.
When you then convert that to a Float32, which only has 24 bits of precision, it's rounded to
0x13ae1480000000 / 2^52, aka 1.230000019073486328125
Then you read that Float32 value back out and convert it back to a double, which doesn't require any rounding at all,
so it's still 0x13ae1480000000 / 2^52.
That's a different number from the one you started with, so it has a different toString result.
The toString has as many digits as are needed to ensure that its values is closer to this number, than to, e.g.,
0x13ae1480000001 / 2^52 or 0x13ae147fffffff / 2^52.
All is working precisely according to specification for floating point numbers.


Docs for typed endpoint functions

Docs API reference for:

https://github.com/liveblocks/liveblocks/pull/1283

TODO

[x] Rooms
[x] Storage
[x] Yjs
[x] Schema validation
[ ] Check for any API changes in other PR after it's finished

Thank you for doing this @CTNicholas !!!


Cannot download a google drive file with the correct filename

I've been digging around on the internet for some time now for a solution to my problem. My issue is that I cannot for the life of me figure out how to download files using the API with the correct filename. So far I have not been able to solve it (but I'm really close). My solution right now is to use Drive API v2 and get a downloadUrl, but right now it is giving me a 403 error when I visit the link. That's a whole separate issue and I won't need help with it as I have pinpointed the cause. My main problem is that I'd rather use Drive API v3, even if not now I will eventually need to when v2 is deprecated. Drive API v3 does provide a way to download files using an authenticated request, obviously. Unfortunately these downloaded files are renamed to just the file id and nothing else. I don't want to have my user's manually rename the files, since most of them will probably think it's a virus or not have a clue what to do with them. Is there a way to have it download with the correct file name, maybe via a name="file.zip" parameter or something tacked onto the request? There are other ways which I've found to get around this, but they either use my server bandwidth or use blobs. Neither of which I would like to use. I saw on some other Stack Overflow topic that the OP was able to download files with the correct name using the same exact method as I am. And even I found a website which is somehow able to accomplish this, albeit most likely with API v2. The website actually works and I am dumbfounded as to how they did it. Am I just unlucky, or is there a brilliant solution out there? Please, anyone, help me out with this if you can. It's bugging me so much.

Hi,
I'm not sure to understand what you are exactly looking for, and what you do not want as a solution (you should have formatted nicely your question, as a 20 lines paragraph is rather unpleasant to read).
To get files and set the name, I get the binary data :
$psr7_response = $service->files->export($fileid, $mimeType);
if ( $psr7_response->getStatusCode() == 200 )
	$body = (string) $psr7_response->getBody();
else
        die('Error');

and then I output the body to stdout with the right headers to provide a filename to browser downloaded content :
header("Content-Type: $mimeType");
die($body);

Of course, the file payload first goes from Google servers to my host, in the $body var, and then the payload is sent to the client browser. This is not really smart, as it doesn't save bandwith and take twice more time as if the payload could be directly downloaded from the client browser.
The only way the client browser could download the files directly from Google servers (saving your host bandwith) would be to set the files as public (or semi-public, with a sharing link) ; then, any browser client could click on the sharing link and download the file (the filename would be automatically set).
If your files are private, with no sharing link, I don't think you can't go around PHP download to your host and then sending data to browser, as I do.

My files are indeed public. I'm also trying to not use my server bandwidth if that's possible. I've used this Google API link to download the public files: https://www.googleapis.com/drive/v3/files/file-id?alt=media&access_token={access-token}, but the file name comes out to be just the file id. The sharing link you get by setting the files as public is not ideal if the files are bigger than 25mb. Google shows a virus scan warning page if that is so.

Since the API doesn't provide any means of setting the filename when using the public download link, there may be no solution to what you intend to do... Sorry.

I realize that the API provides no means for setting the filename, but people have done this before and they didn't need to set the filename. It just worked right off the bat for them. I can even give you a website as a working example to prove that it is possible.

I am trying to do almost the same, could you solve it?

Just to add to what @net-tools said, it looks like you are looking for the Content-Disposition header:
https://stackoverflow.com/a/3102276

Precisely (I didn't mentionned the Content-Disposition header, as I assumed it should be known by any webmaster).
However, the header can only be used in the process I described, but @chadismydad  is looking for a way to do this directly through the API, saving his server bandwidth.

I solved it by downloading the file, cached and getting the data it gives me.

I was never able to solve this problem. @matiasgq Could you explain your solution a little more in depth for me? Are you using your server bandwidth at all, or are you using blobs?

I am not sure what you need the API for at all then. Upload a file, click on Get sharable link (chain icon in top right). You're done.

I need the API because I want to create truly direct download links for any file size. The shareable link only works for up to 25mb sized files, and then there is an intermediate virus scan page. I'd like to use wget or 'cURL' to download drive files directly.

@chadismydad Sure. Look what I do is try to download the file with curl and get the temporary url that drive gives you, that is to say first you need to have the temporary url that gives you the download button that has drive. Once I have obtained the url that will be something like this https://drive.google.com/uc?export=download&id=$id&confirm=$confirm, I enter by means of curl and get the header location that this url generates for me. And that location, I use it to download. Sorry if you don't understand, I'm using the translator.

I've tried this before and it didn't work. I think it may have something to do with the cookies. Is there a way I can do this in PHP to automate the process? I need to be able to hand out one link to a group of people and have it work without any fuss.

It doesn't sound like your problem fits a intended use case of Google Drive. Happily, there is an upgrade. Please check out https://cloud.google.com/storage/ to get all the bells and whistles!

Is there any solutions for direct downloads via curl with correct Content-Disposition?


ENYO-1492: Allow for dynamic changing of the enableBackHistoryAPI property

Issue
There are cases where we would like to dynamically enable/disable the back history API. Currently this is set to a default of true and is updated accordingly based on an application flag.
Fix
We implement a change handler for the enableBackHistoryAPI property.
Enyo-DCO-1.1-Signed-off-by: Aaron Tam<EMAIL_ADDRESS>

Closing in favor of https://github.com/enyojs/moonstone/pull/2102.


🧹 [CHORE]: FE - refactor CSS themeing

Summary
Remove unused color variables, create names for element color properties, and move element-specific styles back into their [component].css files.
Tasks

[x] #691
[x] take before snapshots
[x] create names for the various use cases
[x] move component-specific rules in theme.css to their component css file
[x] refactor theme.css with new color variable names, applying dark/light in their browser matcher rulesets
[x] vis reg
[x] fix and adjust
[x] take after snapshots

closed with #939


app: boards: add mks_canable_v20

A new affordable board supporting CANnectvity

A new affordable board supporting CANnectvity

Also, please change the Git commit log to something else. This board is not new, and "affordable" is very subjective.

A new affordable board supporting CANnectvity

Also, please change the Git commit log to something else. This board is not new, and "affordable" is very subjective.

Done. I've just followed similiar commits from your PR's for other boards now

@henrikbrixandersen Thank you as always for very fast and confident review. I've made all the changes requested. Only one comment I would like to leave in place. Please take a look.

@KozhinovAlexander Hey, please let the reviewer (in this case me) resolve the comments. It is up to the reviewer (not the author) to determine, if their review comment was resolved.
This is good practice in general, not just in CANnectivity.
Thanks.

@KozhinovAlexander Hey, please let the reviewer (in this case me) resolve the comments. It is up to the reviewer (not the author) to determine, if their review comment was resolved.
This is good practice in general, not just in CANnectivity.
Thanks.

@KozhinovAlexander Hey, please let the reviewer (in this case me) resolve the comments. It is up to the reviewer (not the author) to determine, if their review comment was resolved.
This is good practice in general, not just in CANnectivity.
Thanks.

Oh. Sure. I see. Of course will do always from now on. Shall I unresolve then?

Oh. Sure. I see. Of course will do always from now on. Shall I unresolve then?

No need, I unresolved them.

Looks good, thanks! One small nit:

Thank you too a lot. Wish you merry christmas.

Wait, you've used the GitHub web UI for applying a fix. Please pull the branch, squash the two commits, and force-push.

Done

Wait, you've used the GitHub web UI for applying a fix. Please pull the branch, squash the two commits, and force-push.

Done

Thanks. Happy holidays!


App.tsx replace Switch   with  Routes

Hello @shivam-sharma7, is this issue still available?

yes

@shivam-sharma7, kindly need some more context to this issue?

@shivam-sharma7 this issue looks like a duplicate of https://github.com/Hyperfoil/Horreum/issues/419?


error:0906D06C:PEM routines:PEM_read_bio:no start line when openin file 164.cert.pem

I am getting a strange bug when opening a certificate with sTunnel:
2016.10.21 03:04:43 LOG3[main]: error queue: 140DC009: error:140DC009:SSL routines:SSL_CTX_use_certificate_chain_file:PEM lib
2016.10.21 03:04:43 LOG3[main]: SSL_CTX_use_certificate_chain_file: 906D06C: error:0906D06C:PEM routines:PEM_read_bio:no start line
2016.10.21 03:04:43 LOG3[main]: Service [certificate-based server]: Failed to initialize SSL context
2016.10.21 03:04:43 LOG3[main]: Failed to reload the configuration file

I think this bug is in the SSL library. I am trying to open a file called 164.cert.pem. If I change it to certfile.cert.pem it does work. The error message is misleading.

Can you use strace or similar to confirm that the application is actually opening the 164.cert.pem file and not some other file?

No response from reporter to earlier question from @kaduk. Closing.


Fix bug with sorting by nil school name

Who is this PR for?
NB project leads
What problem does this PR fix?
bug in https://github.com/studentinsights/studentinsights/pull/1577, can't sort arrays that contain different types (eg, string vs. nil)

selfie


Strange TV loss

What is the purpose of defining the TV loss as the absolute difference between the Total Variations of predicted tensor and the target one? Usually, TV used as a regularizer applied only to the predicted tensor.
I can make a pull request with the correction.

Hi!
Yes, it's a good point. I made TVLoss to be compatible with other full-reference methods, that's why it takes 2 inputs.  But a fast google search showed, that it's not common to use it this way.
So you are welcome to change it. Please also change the README file description  and tests

Nice, got it!

Closed with #58


Adding CodeQL workflow on PRs and on a schedule

Using OpenSSF scorecard, ActiveMQ currently gets 0 for SAST:
| 0 / 10  | SAST                   | SAST tool is not run on all    | https://github.com/ossf/scorecard/blob/27cfe92ed356fdb5a398c919ad480817ea907808/docs/checks.md#sast                   |
|         |                        | commits -- score normalized to |                                                                                |
|         |                        | 0                              |                                                                                |

FAO @jbonofre

@mattrpav Not that I'm aware of, I don't see anything here at any rate https://cwiki.apache.org/confluence/display/INFRA/Git+-+.asf.yaml+features#Git.asf.yamlfeatures-GitHubsettings
I have generally migrated over to github actions as I find it's simpler and we can control everything via yaml in our codebases rather than relying on ASF infra.

I propose to enable this when fully moving to GitHub Action.


[BUG] Remove Startup Toasts - Error: Meta was not found

Describe the bug
Error Message: Meta was not found
To Reproduce
Steps to reproduce the behavior:
Dropping the file into the plugins directory
Expected behavior
Not to receive an error.
Screenshots

Details (please complete the following information):

Addon Name: ZZRemoveStartupToasts.plugin.js
Addon Version: N/A
Discord Release Channel: Stable

Additional context
N/A

Can't reproduce, sounds like the file you are trying to load is something other than a plugin, perhaps you did right-click -> save as... on an html page instead of a raw plugin file.


Added statusbar to github download

#3
Added progress bar to download of Install-BicepCLI.
The download now fetches latest path from Github API, and downloads file asynchronous.

Thank you for your valuable contribution to the 💩ep module @bjompen!

Thank you for your valuable contribution to the 💩ep module @bjompen!


occasional Buffer overflow

Sometimes is get the below error
Assertion failed: coeff % quant == 0, file D:\Work\OpenSource\guetzli-cuda-opencl\guetzli\output_image.cc, line 629
In the below change there is a buffer overflow fix (mixed in with some other stuff)
https://github.com/winsoft666/guetzli-cuda-opencl/commit/6b5a607a91150c6fe7310f5518012b8a78ef3f04#diff-7ae0466468c37e899127f650d1fc3e774ad635659403f406fabd10715f6d729e
Any chance its a potentional fix and fix so any chance of merging it and compiling a new verison (I've tried but I've never been able to sucessfully compile a cuda-opelcl build of this :(  )

@crass00 provided link still not working, you can add your solution below and I will analyze it.

sorry i didn't have a copy of the code before winsoft666 took down the repo :(


When exporting multiple tables to JSON files, file names won't be replaced by table names

System information:

Operating system (distribution) and version: Windows 10
DBeaver version: <IP_ADDRESS>206051253

Connection specification:

Database name and version: MySQL 8.0.29

Describe the problem you're observing:
As the image below,
the table variable in file name pattern won't be replaced correctly if there are more than one table to export as JSON files,
and this feature was working on DBeaver version <IP_ADDRESS>103021012.

Steps to reproduce, if exist:

Select two or more tables
Right click and export data
Choose format as JSON files
Fill ${table} in the file name pattern in "Output" section
Preview the result in "Confirm" section

Thanks for the report @fdj184
We are planning to fix this issue in this ticket soon https://github.com/dbeaver/dbeaver/issues/15695


Add unit tests for critical components season

Duck season

Flaky Test
Failure Summary
Logs

[chromium] should return list of users correctly.
The API call to get the list of users failed with a 404 Not Found error.
Logs ↗

[chromium] should load the v1 homepage correctly.
The test timed out waiting for the expected text "Real SaaS App" and the "Homepage" heading to be visible on the page.
Logs ↗

[chromium] should login with credentials correctly correctly.
The login request to the server failed with a 404 Not Found error.
Logs ↗

[chromium] should display error message for invalid login correctly.
The expected HTTP status code 401 was not received, instead a function was returned.
Logs ↗

... and 2 more

View Full Report ↗ ⋅ Docs

Flaky Test
Failure Summary
Logs

[chromium] should return list of users correctly.
The API call to get the list of users failed with a 404 Not Found error.
Logs ↗

[chromium] should load the v1 homepage correctly.
The test timed out waiting for the expected text "Real SaaS App" and the "Homepage" heading to be visible on the page.
Logs ↗

[chromium] should login with credentials correctly correctly.
The login request to the server failed with a 404 Not Found error.
Logs ↗

[chromium] should display error message for invalid login correctly.
The expected HTTP status code 401 was not received, instead a function was returned.
Logs ↗

... and 2 more

View Full Report ↗ ⋅ Docs


[SupplementaryOutputs][NFC] Simplify boilerplate output checks.

Reduce some boilerplate code to check if supplementary outputs exist.

@swift-ci please smoke test


src/server: log.debug config path on start-up

Feels like "where/which config file does my lounge instance use?" questions are quite common, this hopefully makes things clearer.

I don't see a reason why this can't be info level. Also probably better after version line.

I don't see a reason why this can't be info level. Also probably better after version line.

I was a bit conflicted about which one to use. I'll switch to info and put it after the version line. Wording was made in a hurry and is a bit sloppy imo, suggestions are welcomed


delete rolebindings when namespace is moved to none

https://github.com/rancher/rancher/issues/13193

LGTM


Diffie Hellman Parameters

I like that this supports generating 4096 bit RSA keys. It would be good if the scripts could be enhanced to also generate new 4096 DH parameters. I'm not sure how to incorporate this into the scripts, but the OpenSSL command would be: openssl dhparam 4096 -out pki/dh.pem.
For now, my work around is to generate these manually after running ovpn_copy_server_files on my private CA box.
By the way, thanks for the great image and good documentation!

Disregard. Just realized this is already handled.


Fixed spelling mistake

Changed transfering to transferring in 3rd paragraph.

[x] I have read freeCodeCamp's contribution guidelines.
[x] My pull request has a descriptive title (not a vague title like Update index.md)
[x] My pull request targets the master branch of freeCodeCamp.
[x] None of my changes are plagiarized from another source without proper attribution.
[x] My article does not contain shortened URLs or affiliate links.

If your pull request closes a GitHub issue, replace the XXXXX below with the issue number.
Closes #XXXXX

Thank you @Web-Dev-Rich for your contribution and congratulations on your first PR merge to this repo! 🎉


bulk addition of custom rules

I've added several sites that should all be working well.  A few changes will be made in the future, but nothing major.

Is there anything I can do on my end to resolve the failed test?  It appears to be some sort of time issue.  Thanks for the help.

The failing test case is not related to your pull-request.
Thanks.


ValueError: result_folder: /data1/maoyuning/NetShare-master/results/test_caida/models/chunkid-1/sample_len-100 not found in configs!

I follow the instructions and run the scrip driver.py. The configuration is as follows:
{
    "global_config": {
        "original_data_file": "../traces/caida/raw.pcap",
        "dataset_type": "pcap",
        "n_chunks": 5,
        "dp": false
    },
    "model":{
        "class": "DoppelGANgerTFModel",
        "config": {
            "iteration": 10,
            "extra_checkpoint_freq": 5,
            "epoch_checkpoint_freq": 2
        }
    },
    "default": "pcap.json"
}

Here is the error message:
Traceback (most recent call last):
  File "driver.py", line 16, in <module>
    generator.train_and_generate(work_folder='/data1/maoyuning/NetShare-master/results/test_caida')
  File "/data1/maoyuning/NetShare-master/netshare/generators/generator.py", line 205, in train_and_generate
    if not self.generate(work_folder):
  File "/data1/maoyuning/NetShare-master/netshare/generators/generator.py", line 176, in generate
    work_folder)):
  File "/data1/maoyuning/NetShare-master/netshare/generators/generator.py", line 110, in _post_process
    log_folder=log_folder)
  File "/data1/maoyuning/NetShare-master/netshare/pre_post_processors/pre_post_processor.py", line 38, in post_process
    log_folder=log_folder)
  File "/data1/maoyuning/NetShare-master/netshare/pre_post_processors/netshare/netshare_pre_post_processor.py", line 500, in _post_process
    configs)
  File "/data1/maoyuning/NetShare-master/netshare/pre_post_processors/netshare/util.py", line 503, in _recalulate_config_ids_in_each_config_group
    config["result_folder"]))
  File "/data1/maoyuning/NetShare-master/netshare/model_managers/netshare_manager/netshare_util.py", line 77, in get_configid_from_kv
    raise ValueError("{}: {} not found in configs!".format(k, v))
ValueError: result_folder: /data1/maoyuning/NetShare-master/results/test_caida/models/chunkid-1/sample_len-100 not found in configs!

Could you please share the driver code and the environment you are using as well? (operating system, cloud/single machine, with or w/o Ray) Thanks

I'm running on a single machine(Ubuntu 16.04.3 LTS (GNU/Linux 4.4.0-148-generic x86_64) ) and turn Ray on.
The driver.py looks:
import netshare.ray as ray
from netshare import Generator

if __name__ == '__main__':
    # Change to False if you would not like to use Ray
    ray.config.enabled = True
    ray.init(address="auto")

    # configuration file
    generator = Generator(config="pcap/config_example_pcap_nodp_caida.json")

    # `work_folder` should not exist o/w an overwrite error will be thrown.
    # Please set the `worker_folder` as *absolute path*
    # if you are using Ray with multi-machine setup
    # since Ray has bugs when dealing with relative paths.
    generator.train_and_generate(work_folder='/data1/maoyuning/NetShare-master/results/test_caida')

    ray.shutdown()

Thanks. We will take a look and get back to you soon.

Feel free to try the latest refactored PyTorch version which includes the updated examples and reopen this issue if the bug persists.


Still has the issue about creating Window in Sierra 10.12.4

Just run the simple code provided on the official site
I have tried download the latest version from GitHub, and compiled locally, but seems still has the same problem. I run the code on Xcode:
#include <GLFW/glfw3.h>

int main(void)
{
    GLFWwindow* window;

    /* Initialize the library */
    if (!glfwInit())
        return -1;

    glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 3);
    glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 2);
    glfwWindowHint(GLFW_OPENGL_FORWARD_COMPAT, GL_TRUE);
    glfwWindowHint(GLFW_OPENGL_PROFILE, GLFW_OPENGL_CORE_PROFILE);

    /* Create a windowed mode window and its OpenGL context */
    window = glfwCreateWindow(640, 480, "Hello World", NULL, NULL);
    if (!window)
    {
        glfwTerminate();
        return -1;
    }

    /* Make the window's context current */
    glfwMakeContextCurrent(window);

    /* Loop until the user closes the window */
    while (!glfwWindowShouldClose(window))
    {
        /* Render here */
        glClear(GL_COLOR_BUFFER_BIT);

        /* Swap front and back buffers */
        glfwSwapBuffers(window);

        /* Poll for and process events */
        glfwPollEvents();
    }

    glfwTerminate();
    return 0;
}

The results shows:
2017-05-03 19:52:39.874168-0700 learnOpenGL[5286:355180] [General] ERROR: Setting <GLFWContentView: 0x10060b640> as the first responder for window <GLFWWindow: 0x100418110>, but it is in a different window ((null))! This would eventually crash when the view is freed. The first responder will be set to nil.
(
	0   AppKit                              0x00007fffa7d65a3f -[NSWindow _validateFirstResponder:] + 557
	1   AppKit                              0x00007fffa74e0b1c -[NSWindow _setFirstResponder:] + 31
	2   AppKit                              0x00007fffa7588d9e -[NSWindow _realMakeFirstResponder:] + 406
	3   AppKit                              0x00007fffa7588bb4 -[NSWindow makeFirstResponder:] + 123
	4   libglfw.3.dylib                     0x00000001000bd86e createNativeWindow + 1230
	5   libglfw.3.dylib                     0x00000001000bd14f _glfwPlatformCreateWindow + 63
	6   libglfw.3.dylib                     0x00000001000b59c7 glfwCreateWindow + 887
	7   learnOpenGL                         0x0000000100000e87 main + 135
	8   libdyld.dylib                       0x00007fffbf134235 start + 1
)

I used glfwGetVersionString()
and got:
3.2.1 Cocoa NSGL chdir menubar retina dynamic
I did downloaded the latest code from GitHub, and use cmake, make, and sudo make install to compile it. But why it is still 3.2.1? instead of 3.3 which seems possible to solve the problem

Would anyone please tell me how to compile the latest version from GitHub? I think I did missed some command

If you didn't install GLFW 3.2.1 the same way as 3.3 then it may be in a another directory with a higher priority in the linker's list of directories. If you installed it with a package manager then uninstall it using that tool. If not, just search your system for anything "libglfw*".

@elmindreda I searched "libglfw*", found that in:
/usr/local/lib, there is libglfw.3.2.dylib
but libglfw.3.3.dylib does not exist.
I installed glfw3.2 using cmake, and uninstall it, then install the GitHub version, there is still no libglfw.3.3.dylib generated in /usr/local/lib,  Although there also generated .h files in /usr/local/include
The command I used for installing is:
cd <glfw-root-dir>
cmake .
mkdir glfw-build
cd glfw-build
cmake <glfw-root-dir>

And I plused:
sudo make install
I used the same command for both glfw 3.2.1 and glfw-master
But the first one generated dylib in /usr/local/lib, which can be added into Xcode,
While the second master version cannot generate the dylib. Which cause the link error.
So, would anybody tell me what's the right way to install it, so that I can use Xcode to run it
I would really appreciate it!

@kesperado Yay! Closing this now then.


[azopenai] Generating 2024-07 API

Current commit: 5ffa400989e78c6969b6cd88cc7e76f092c4de1c

[ ] BUG: typespec-autorest crashes: (https://github.com/Azure/typespec-azure/issues/1292)

Is this what will allow the golang sdk for openai to support JSON schemas?

Reference in new issue

Not as part of this PR, unfortunately. I don't have a date for when we're adding support, but it is planned.

Is this what will allow the golang sdk for openai to support JSON schemas?

@rockwotj, this is available now in the latest azopenai package. I've got some examples that'll get merged in if you want to see how to use it:

Using tools: https://github.com/Azure/azure-sdk-for-go/pull/23653/files#diff-ac62dbee8ef42dc54757710d5c56c902cb5724fc8bf884a5e6be5b671fa2a0b2R404
Using JSON schema with a response format: https://github.com/Azure/azure-sdk-for-go/pull/23653/files#diff-ac62dbee8ef42dc54757710d5c56c902cb5724fc8bf884a5e6be5b671fa2a0b2R567

(closing this issue as the previous release was completed some time ago)


Changed .complete() to .predict() function in generate_qa_embedding_pairs api

Summary of Change:
This PR addresses a bug in version 0.9.1.post1 related to the .complete() function call in generate_qa_embedding_pairs. The update ensures that regardless of LLM wrapper the generate_qa_embedding_pairs doesn't raise any error.
Context and Motivation:
The fix was motivated by the inconsistency and unexpected behavior encountered in the application when using LLMPredictor or LangChainInterface classes. This change ensures adherence to the intended behaviour of the LLM which also holds for the OpenAI and other LLM's as .predict() function is used globally.
Dependencies:
No additional dependencies are introduced with this change.
Fixes #9784
Type of Change
Please delete options that are not relevant.

[x] Bug fix (non-breaking change which fixes an issue)

How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

[ ] Added new unit/integration tests
[ ] Added new notebook (that tests end-to-end)
[x] I stared at the code and made sure it makes sense

Suggested Checklist:

[x] I have performed a self-review of my own code
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[ ] I have added Google Colab support for the newly added notebooks.
[x] My changes generate no new warnings
[ ] I have added tests that prove my fix is effective or that my feature works
[ ] New and existing unit tests pass locally with my changes
[ ] I ran make format; make lint to appease the lint gods

What is LangChainInterface ?
While I'm not opposed to this change, a few notes

LLMPredictor is deprecated
Any LLM from langchain can be used with llama-index, but you need to wrap it with the LangChainLLM class

from llama_index.llms import LangChainLLM
lc_llm = <your langchain llm>
llm = LangChainLLM(lc_llm)

This change also creates a linting error, as predict is expected to be used with prompt templates.
Really, the solution here is wrap your langchain stuff with the wrapper class, and it will work fine

Thanks understood, yes wrapping the llm with LangChainLLM class, resolves the issue.


update installer_config.yaml to contain full config options with instructions

update the installer_config.yaml shipped with DoltLab to contain the all config options, just commented out.

Supported in v2.1.6.


Add cut/copy/paste functionality to readline & block editor

Key
Action
Scope
Direction

Ctrl-d
Delete
the character
underneath the cursor

Ctrl-u
Delete
everything
⇤ from the cursor back to the line start

Ctrl-k
Delete
everything
⇥ from the cursor to the end of the line

Alt-d
Delete
word
⇨ until before the next word boundary

Ctrl-w
Delete
word
⇦ until after the previous word boundary

Ctrl-y
Yank/Paste
prev. killed text
at the cursor position

Alt-y
Yank/Paste
prev. prev. killed text
at the cursor position

Ctrl-t
Transpose/drag
char. before the cursor
↷ over the character at the cursor

Alt-t
Transpose/drag
word before the cursor
↷ over the word at/after the cursor

http://www.bigsmoke.us/readline/shortcuts

Still TODO:

Key
Action
Scope
Direction

Alt-d
Delete
word
⇨ until before the next word boundary

Alt-y
Yank/Paste
prev. prev. killed text
at the cursor position

Alt-t
Transpose/drag
word before the cursor
↷ over the word at/after the cursor


Merge blackHole with devMerge

Merge blackHole commits with dev commits through intermidiate branch devMerge

Pull Request Test Coverage Report for Build<PHONE_NUMBER>
Details

172 of 172 (100.0%)  changed or added relevant lines in 5 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 100.0%

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
228

Relevant Lines:
228

💛  - Coveralls


Fix the config of the dependenda bot

          @utam0k It seems that `update-type` strictly requires an array, so check is failing on master : https://github.com/containers/youki/runs/18288323874

Originally posted by @YJDoc2 in https://github.com/containers/youki/issues/2496#issuecomment-1790152216

Codecov Report

Merging #2502 (33c3026) into main (2826920) will decrease coverage by 0.02%.
The diff coverage is n/a.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2502      +/-   ##
==========================================
- Coverage   65.88%   65.87%   -0.02%
==========================================
  Files         133      133
  Lines       16868    16868
==========================================
- Hits        11114    11111       -3
- Misses       5754     5757       +3


invite feature

user A can invite user B, user B is set into 'undeclared' status with respect to an event, they also get a crafted email

depends on https://github.com/Vandivier/welephant/issues/5


New post: Symbolic operators and type classes for Cats

Original author: @non
Source: https://gist.github.com/non/3abdb35a72c39276d3d9

The second and final one. @non, I hope I didn't destroy the narrative structure of your posts.

loooks good to me :+1:

@S11001001 @non 2c55fb1


Upload files and upload a JSON？

Sorry, I use okHttp and need in the upload file and upload a JSON, uh, similar to the file description or information, but did not find corresponding method, did not see the Google may is my question, but could not tell me?

Please ask questions on stack overflow.


2024/10/31

💻 变更类型 | Change Type

[ ] feat
[ ] fix
[ ] refactor
[ ] perf
[ ] style
[ ] test
[ ] docs
[ ] ci
[ ] chore
[ ] build

🔀 变更说明 | Description of Change

📝 补充信息 | Additional Information

Summary by CodeRabbit

New Features

Updated the sidebar header to reflect new branding: "ChatGPT - version: cher112" and "Build your own Chatgpt assistant."
Changed the default synchronization provider to UpStash, enhancing cloud sync capabilities.

Bug Fixes

Adjusted migration logic to ensure compatibility with previous versions during state migration.

Chores

Updated repository references in GitHub Actions workflows for Docker image publishing and syncing upstream changes.

@cher112 请不要把自己定制的需求往主项目提pr


Fix typo

Coverage remained the same at 65.035% when pulling a2dd706222bedd32ce0b1a19706ffa4757ef576e on mre:patch-1 into fe234d9fd281c572ee11443033277c606ffecd48 on trivago:master.

Thx @mre


CSRMM Library Node

@alexnick83 cuSPARSE breaks when using the "+ beta * C" part and pure lacks the "transpose B" part. Other than that, it should be good

@alexnick83 cuSPARSE breaks when using the "+ beta * C" part and pure lacks the "transpose B" part. Other than that, it should be good

Is it a cuSPARSE issue or is our code broken?

@alexnick83 cuSPARSE breaks when using the "+ beta * C" part and pure lacks the "transpose B" part. Other than that, it should be good

Is it a cuSPARSE issue or is our code broken?

No, it's the "in" connector that is not handled for cuSPARSE. When we create the device-arrays for GPU in the nested SDFG, "in" is not created. I tried to add this but then in the cusparse code, we need to change the buffer to cin for Mat C. If I do so, the result is written to cin and I don't know what would be the smartest way to copy this back to "cout"/"c"


Fix unique snapshot consumption with GMM

We had tests that proved this worked without GMM, so the only possible explanation is usage of GMM.
Note that the fix is for consumption. The produced metadata is correct.

Note that the fix is for consumption. The produced metadata is correct.

Yes. I just wanted to double check if in the original issue GMM was consumed.


How to use custom autorization without nuxt/auth module?

Hi
Thanks for your good package, I'm using laravel as backend API (with passport package) and I have some issues with your package, please help me to solve this. let me explain it to you:
I have laravel as backend in the localhost:8000 domain and have a nuxtJS project in the localhost:3000. I'm making a login request from nuxt application to laravel with Axios and save user tokens in cookies.
now when I want to subscribe to private or presence channel I get 401 and it's because of that I cannot set the header for broadcasting/auth endpoint. remember I saved user token in browser cookies.
in nuxt.config.js file i have these options for echo:
echo: {
    broadcaster: 'pusher',
    host: '<IP_ADDRESS>:6001',
    wsHost: '<IP_ADDRESS>',
    wsPort: 6001,
    key: process.env.MIX_PUSHER_APP_KEY,
    cluster: 'mt1',
    forceTLS: false,
    encrypted: false,
    disableStats: true,
    authEndpoint: 'http://<IP_ADDRESS>:8000/broadcasting/auth',
    auth: {
       headers: {
            Authorization: `Bearer ${cookies.get('user_token')}`           // i'm using js-cookie package to works with cookies
       }
    }
  },

And in Laravel:
in BroadcastServiceProvider:
 public function boot()
    {
        Broadcast::routes(['middleware' => 'auth:api']);

        require base_path('routes/channels.php');
    }

in my event file:
public function broadcastOn()
    {
        return new PresenceChannel('user.messages.chat.' . $this->user_id);
    }

in controller file:
broadcast(new ApplicationChatMessage(json_encode($message), auth('api')->id()))->toOthers();

in routes/channel.php:
Broadcast::channel(
    'user.messages.{id}', //parameter 1
    function ($user, $id) {      //parameter 2
        return (int)$user->id === (int)$id;
    });

But it's RETURN 401.
are you can help me to solve this issue?

Same here


Skype4Py does not work on http request while working from command line

i have a python script  myscript.py  which working fine from http request from another server or that current server browser and from command line. it is windows system.
when a update it with Skype4Py code it is working fine from command line but if i run this through http request it doesn't work and raise   <class 'Skype4Py.errors.SkypeAPIError'>: Skype attach timeout
args = ('Skype attach timeout',)
message = 'Skype attach timeout'
error  while working fine from command line

can anyone help me or anyone faced this problem

You run the script when a HTTP request hits your server?
Is skype running on the server? As the webserver user?