Undefined references in gcc 6.3.0 (Failed to compile)

Hello, I've successfully crossed compiled gcc 6.3.0 and its relative binutils, gdb and sysroot for the roborio (This version upgrade isn't necessary but I perceive it to be a greater issue). Everything works fine until I attempt to compile cscore (As being in conjunction with allwpilib). I get a undefined reference error (see below) to a function in HttpUtil.cpp. I was receiving the same error for a native build (Using gcc 6.2.0). I am curious to hear back from you guys. I don't know the code layout and am wondering if there is a version check define somewhere where the preprocessor removes those functions -- Or this could just an absurd single instanced error... :neutral_face:
:cscoreSourceZip
:build
:outputVersions
:arm:compileJava
Download http://first.wpi.edu/FRC/roborio/maven/development/org/opencv/opencv-ja
va/3.1.0/opencv-java-3.1.0.pom
Download http://first.wpi.edu/FRC/roborio/maven/development/org/opencv/opencv-ja
va/3.1.0/opencv-java-3.1.0.jar
Download https://repo1.maven.org/maven2/com/google/errorprone/error_prone_core/2
.0.9/error_prone_core-2.0.9.pom
Download https://repo1.maven.org/maven2/com/google/errorprone/error_prone_parent
/2.0.9/error_prone_parent-2.0.9.pom
Download https://repo1.maven.org/maven2/org/sonatype/oss/oss-parent/7/oss-parent
-7.pom
Download https://repo1.maven.org/maven2/com/google/errorprone/error_prone_annota
tion/2.0.9/error_prone_annotation-2.0.9.pom
Download https://repo1.maven.org/maven2/com/github/stephenc/jcip/jcip-annotation
s/1.0-1/jcip-annotations-1.0-1.pom
Download https://repo1.maven.org/maven2/org/pcollections/pcollections/2.1.2/pcol
lections-2.1.2.pom
Download https://repo1.maven.org/maven2/com/google/guava/guava/19.0/guava-19.0.p
om
Download https://repo1.maven.org/maven2/com/google/guava/guava-parent/19.0/guava
-parent-19.0.pom
Download https://repo1.maven.org/maven2/com/google/code/findbugs/jFormatString/3
.0.0/jFormatString-3.0.0.pom
Download https://repo1.maven.org/maven2/com/google/code/findbugs/jsr305/3.0.0/js
r305-3.0.0.pom
Download https://repo1.maven.org/maven2/org/checkerframework/dataflow/1.8.10/dat
aflow-1.8.10.pom
Download https://repo1.maven.org/maven2/com/google/errorprone/javac/1.9.0-dev-r2
973-2/javac-1.9.0-dev-r2973-2.pom
Download https://repo1.maven.org/maven2/com/google/errorprone/error_prone_annota
tions/2.0.9/error_prone_annotations-2.0.9.pom
Download https://repo1.maven.org/maven2/org/checkerframework/javacutil/1.8.10/ja
vacutil-1.8.10.pom
Download https://repo1.maven.org/maven2/com/google/errorprone/error_prone_core/2
.0.9/error_prone_core-2.0.9.jar
Download https://repo1.maven.org/maven2/com/google/errorprone/error_prone_annota
tion/2.0.9/error_prone_annotation-2.0.9.jar
Download https://repo1.maven.org/maven2/com/github/stephenc/jcip/jcip-annotation
s/1.0-1/jcip-annotations-1.0-1.jar
Download https://repo1.maven.org/maven2/org/pcollections/pcollections/2.1.2/pcol
lections-2.1.2.jar
Download https://repo1.maven.org/maven2/com/google/guava/guava/19.0/guava-19.0.j
ar
Download https://repo1.maven.org/maven2/com/google/code/findbugs/jFormatString/3
.0.0/jFormatString-3.0.0.jar
Download https://repo1.maven.org/maven2/com/google/code/findbugs/jsr305/3.0.0/js
r305-3.0.0.jar
Download https://repo1.maven.org/maven2/org/checkerframework/dataflow/1.8.10/dat
aflow-1.8.10.jar
Download https://repo1.maven.org/maven2/com/google/errorprone/javac/1.9.0-dev-r2
973-2/javac-1.9.0-dev-r2973-2.jar
Download https://repo1.maven.org/maven2/com/google/errorprone/error_prone_annota
tions/2.0.9/error_prone_annotations-2.0.9.jar
Download https://repo1.maven.org/maven2/org/checkerframework/javacutil/1.8.10/ja
vacutil-1.8.10.jar
:arm:processResources UP-TO-DATE
:arm:classes
:arm:jniHeadersCscore
:downloadOpenCvHeaders
Download http://first.wpi.edu/FRC/roborio/maven/development/org/opencv/opencv-he
aders/3.1.0/opencv-headers-3.1.0.pom
Download http://first.wpi.edu/FRC/roborio/maven/development/org/opencv/opencv-he
aders/3.1.0/opencv-headers-3.1.0.jar
:arm:unzipOpenCvHeaders
:arm:downloadOpenCvJni_linux-arm
Download http://first.wpi.edu/FRC/roborio/maven/development/org/opencv/opencv-jn
i/3.1.0/opencv-jni-3.1.0.pom
Download http://first.wpi.edu/FRC/roborio/maven/development/org/opencv/opencv-jn
i/3.1.0/opencv-jni-3.1.0-linux-arm.jar
:arm:unzipOpenCvJni_linux-arm
:arm:downloadOpenCvNatives_linux-arm
Download http://first.wpi.edu/FRC/roborio/maven/development/org/opencv/opencv-na
tives/3.1.0/opencv-natives-3.1.0.pom
Download http://first.wpi.edu/FRC/roborio/maven/development/org/opencv/opencv-na
tives/3.1.0/opencv-natives-3.1.0-linux-arm.jar
:arm:unzipOpenCvNatives_linux-arm
:arm:downloadWpiUtil
Download http://first.wpi.edu/FRC/roborio/maven/development/edu/wpi/first/wpilib
/wpiutil/1.0.2-20170209040313-1-ge665632/wpiutil-1.0.2-20170209040313-1-ge665632
.pom
Download http://first.wpi.edu/FRC/roborio/maven/development/edu/wpi/first/wpilib
/wpiutil/1.0.2-20170209040313-1-ge665632/wpiutil-1.0.2-20170209040313-1-ge665632
-arm.zip
:arm:unzipWpiUtil
:arm:compileCscoreSharedLibraryCscoreCpp
:arm:linkCscoreSharedLibrary
:arm:cscoreSharedLibrary
:arm:assembleDependentsCscoreSharedLibrary
:arm:compileEnum_usbExecutableEnum_usbCpp
:arm:compileCscoreStaticLibraryCscoreCpp
:arm:createCscoreStaticLibrary
:arm:cscoreStaticLibrary
:arm:linkEnum_usbExecutable
C:\Users\USER\Desktop\cscore\cscore\arm\build\libs\cscore\static\libcscore.a(Ht
tpUtil.o): In function cs::HttpRequest::SetAuth(cs::HttpLocation const&):
C:\Users\USER\Desktop\cscore\cscore\src/HttpUtil.cpp:305: undefined reference t
o wpi::Base64Encode(llvm::StringRef, std::__cxx11::basic_string<char, std::char
_traits<char>, std::allocator<char> >*)
collect2.exe: error: ld returned 1 exit status

:arm:linkEnum_usbExecutable FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task :arm:linkEnum_usbExecutable.
> A build operation failed.
      Linker failed while linking enum_usb.

Regards, David Smerkous

This happens because of the new string implementation in GCC 5 and above.  The reason that error is happening is because it is attempting to get wpiutil from our server, which is built with GCC 4.
The solution to this is to run a full publish build of ntcore, which will build wpiutil in a way that cscore can see it. cscore build should then work.

Sorry, but I'm having the same issue. Could you please explain in greater detail how this could be solved?? Iḿ kind of new to all of this and I didn't understand completely how to fix this.

Clone the ntcore repository, run ./gradlew -PmakeDesktop publish on it, and then try building cscore.

Note you will likely run into issues linking with the NI libraries as well if you're targeting the roboRio.  The NI libraries are built against the 4.X ABI.

I'm just building it for native, but it still wont compile after doing the full publish build on ntcore.

Nevermind, I cloned the cscore repository again and it Gradlew managed to build it :D

We've migrated to all 5.x compilers (including the roborio) for 2018, so this should no longer be an issue.


Crash if you dont have any wsl installed.

2024-11-03 08:36:54.402 INFO [main #0] Recording logs to  C:\Users\User\AppData\Roaming\extratermqt\Config\extraterm.log
2024-11-03 08:36:54.499 INFO [main #0] User extension directory is: C:\Users\User\AppData\Roaming\extratermqt\Config\extensions
2024-11-03 08:36:54.499 INFO [ExtensionManager #0] Scanning 'C:\Users\User\Downloads\extratermqt-0.79.0-windows-x64\extensions' for extensions.
2024-11-03 08:36:54.503 INFO [ExtensionManager #0] Read extension metadata from 'C:\Users\User\Downloads\extratermqt-0.79.0-windows-x64\extensions\About'.
2024-11-03 08:36:54.505 INFO [ExtensionManager #0] Read extension metadata from 'C:\Users\User\Downloads\extratermqt-0.79.0-windows-x64\extensions\Autocomplete'.
2024-11-03 08:36:54.506 INFO [ExtensionManager #0] Read extension metadata from 'C:\Users\User\Downloads\extratermqt-0.79.0-windows-x64\extensions\Autolink'.
2024-11-03 08:36:54.507 INFO [ExtensionManager #0] Read extension metadata from 'C:\Users\User\Downloads\extratermqt-0.79.0-windows-x64\extensions\Colorizer'.
2024-11-03 08:36:54.508 INFO [ExtensionManager #0] Read extension metadata from 'C:\Users\User\Downloads\extratermqt-0.79.0-windows-x64\extensions\CommunityTerminalThemes'.
2024-11-03 08:36:54.509 INFO [ExtensionManager #0] Read extension metadata from 'C:\Users\User\Downloads\extratermqt-0.79.0-windows-x64\extensions\CopyBlock'.
2024-11-03 08:36:54.510 INFO [ExtensionManager #0] Read extension metadata from 'C:\Users\User\Downloads\extratermqt-0.79.0-windows-x64\extensions\CopyLink'.
2024-11-03 08:36:54.510 INFO [ExtensionManager #0] Read extension metadata from 'C:\Users\User\Downloads\extratermqt-0.79.0-windows-x64\extensions\DefaultKeybindings'.
2024-11-03 08:36:54.511 INFO [ExtensionManager #0] Read extension metadata from 'C:\Users\User\Downloads\extratermqt-0.79.0-windows-x64\extensions\DefaultTerminalTheme'.
2024-11-03 08:36:54.512 INFO [ExtensionManager #0] Read extension metadata from 'C:\Users\User\Downloads\extratermqt-0.79.0-windows-x64\extensions\DirectoryCommands'.
2024-11-03 08:36:54.513 INFO [ExtensionManager #0] Read extension metadata from 'C:\Users\User\Downloads\extratermqt-0.79.0-windows-x64\extensions\DownloadBlock'.
2024-11-03 08:36:54.514 INFO [ExtensionManager #0] Read extension metadata from 'C:\Users\User\Downloads\extratermqt-0.79.0-windows-x64\extensions\Find'.
2024-11-03 08:36:54.515 INFO [ExtensionManager #0] Read extension metadata from 'C:\Users\User\Downloads\extratermqt-0.79.0-windows-x64\extensions\ImageBlock'.
2024-11-03 08:36:54.516 INFO [ExtensionManager #0] Read extension metadata from 'C:\Users\User\Downloads\extratermqt-0.79.0-windows-x64\extensions\InjectShellIntegration'.
2024-11-03 08:36:54.517 INFO [ExtensionManager #0] Read extension metadata from 'C:\Users\User\Downloads\extratermqt-0.79.0-windows-x64\extensions\InsertEmoji'.
2024-11-03 08:36:54.520 INFO [ExtensionManager #0] Read extension metadata from 'C:\Users\User\Downloads\extratermqt-0.79.0-windows-x64\extensions\InternalCommands'.
2024-11-03 08:36:54.520 INFO [ExtensionManager #0] Read extension metadata from 'C:\Users\User\Downloads\extratermqt-0.79.0-windows-x64\extensions\ITermColorsTerminalThemeProvider'.
2024-11-03 08:36:54.521 INFO [ExtensionManager #0] Read extension metadata from 'C:\Users\User\Downloads\extratermqt-0.79.0-windows-x64\extensions\OpenLink'.
2024-11-03 08:36:54.522 INFO [ExtensionManager #0] Read extension metadata from 'C:\Users\User\Downloads\extratermqt-0.79.0-windows-x64\extensions\ProxySessionBackend'.
2024-11-03 08:36:54.522 INFO [ExtensionManager #0] Read extension metadata from 'C:\Users\User\Downloads\extratermqt-0.79.0-windows-x64\extensions\ProxySessionEditor'.
2024-11-03 08:36:54.523 INFO [ExtensionManager #0] Read extension metadata from 'C:\Users\User\Downloads\extratermqt-0.79.0-windows-x64\extensions\SSHQuickOpen'.
2024-11-03 08:36:54.524 INFO [ExtensionManager #0] Read extension metadata from 'C:\Users\User\Downloads\extratermqt-0.79.0-windows-x64\extensions\SSHSessionBackend'.
2024-11-03 08:36:54.524 INFO [ExtensionManager #0] Read extension metadata from 'C:\Users\User\Downloads\extratermqt-0.79.0-windows-x64\extensions\SSHSessionEditor'.
2024-11-03 08:36:54.525 INFO [ExtensionManager #0] Read extension metadata from 'C:\Users\User\Downloads\extratermqt-0.79.0-windows-x64\extensions\TerminalTitle'.
2024-11-03 08:36:54.526 INFO [ExtensionManager #0] Read extension metadata from 'C:\Users\User\Downloads\extratermqt-0.79.0-windows-x64\extensions\Tips'.
2024-11-03 08:36:54.526 INFO [ExtensionManager #0] Read extension metadata from 'C:\Users\User\Downloads\extratermqt-0.79.0-windows-x64\extensions\TLDRPages'.
2024-11-03 08:36:54.527 INFO [ExtensionManager #0] Read extension metadata from 'C:\Users\User\Downloads\extratermqt-0.79.0-windows-x64\extensions\UpdateChecker'.
2024-11-03 08:36:54.527 INFO [ExtensionManager #0] Read extension metadata from 'C:\Users\User\Downloads\extratermqt-0.79.0-windows-x64\extensions\WindowsConsoleSessionBackend'.
2024-11-03 08:36:54.528 INFO [ExtensionManager #0] Read extension metadata from 'C:\Users\User\Downloads\extratermqt-0.79.0-windows-x64\extensions\WindowsConsoleSessionEditor'.
2024-11-03 08:36:54.528 INFO [ExtensionManager #0] Starting extension 'about'
2024-11-03 08:36:54.545 INFO [ExtensionManager #0] Starting extension 'autocomplete'
2024-11-03 08:36:54.547 INFO [ExtensionManager #0] Starting extension 'autolink'
2024-11-03 08:36:54.549 INFO [ExtensionManager #0] Starting extension 'colorizer'
2024-11-03 08:36:54.555 INFO [ExtensionManager #0] Starting extension 'community-terminal-themes'
2024-11-03 08:36:54.555 INFO [ExtensionManager #0] Starting extension 'copy-block'
2024-11-03 08:36:54.558 INFO [ExtensionManager #0] Starting extension 'copy-link'
2024-11-03 08:36:54.559 INFO [ExtensionManager #0] Starting extension 'default-keybindings'
2024-11-03 08:36:54.559 INFO [ExtensionManager #0] Starting extension 'default-terminal-theme'
2024-11-03 08:36:54.560 INFO [ExtensionManager #0] Starting extension 'directory-commands'
2024-11-03 08:36:54.561 INFO [ExtensionManager #0] Starting extension 'download-block'
2024-11-03 08:36:54.571 INFO [ExtensionManager #0] Starting extension 'find'
2024-11-03 08:36:54.576 INFO [ExtensionManager #0] Starting extension 'image-block'
2024-11-03 08:36:54.579 INFO [ExtensionManager #0] Starting extension 'inject-shell-integration'
2024-11-03 08:36:54.579 INFO [ExtensionManager #0] Starting extension 'insert-emoji'
2024-11-03 08:36:54.586 INFO [ExtensionManager #0] Starting extension 'internal-commands'
2024-11-03 08:36:54.586 INFO [ExtensionManager #0] Starting extension 'itermcolors-terminal-theme-provider'
2024-11-03 08:36:54.595 DEBUG [itermcolors-terminal-theme-provider] ITermColorTerminalThemeProvider activating
2024-11-03 08:36:54.595 INFO [ExtensionManager #0] Starting extension 'open-link'
2024-11-03 08:36:54.597 INFO [ExtensionManager #0] Starting extension 'proxy-session-backend'
2024-11-03 08:36:54.643 INFO [ExtensionManager #0] Starting extension 'proxy-session-editor'
2024-11-03 08:36:54.646 INFO [proxy-session-editor] ProxySessionEditorExtension activate
2024-11-03 08:36:54.650 INFO [ExtensionManager #0] Starting extension 'ssh-quick-open'
2024-11-03 08:36:54.651 INFO [ExtensionManager #0] Starting extension 'ssh-session-backend'
2024-11-03 08:36:54.702 INFO [ExtensionManager #0] Starting extension 'ssh-session-editor'
2024-11-03 08:36:54.705 INFO [ExtensionManager #0] Starting extension 'terminal-title'
2024-11-03 08:36:54.715 INFO [ExtensionManager #0] Starting extension 'tips'
2024-11-03 08:36:54.718 INFO [ExtensionManager #0] Starting extension 'tldr-pages'
2024-11-03 08:36:54.720 INFO [ExtensionManager #0] Starting extension 'update-checker'
2024-11-03 08:36:54.723 INFO [ExtensionManager #0] Starting extension 'windows-console-session-backend'
2024-11-03 08:36:54.733 INFO [ExtensionManager #0] Starting extension 'windows-console-session-editor'
2024-11-03 08:36:54.746 WARN [ConfigDatabase #0] Unable to find config for key  system
2024-11-03 08:36:54.913 INFO [LocalHttpServer #0] Local HTTP IPC server running on http://<IP_ADDRESS>:53649/42e404306f3632e08703697fe0f32645
2024-11-03 08:36:55.236 WARN [proxy-session-backend] 'wsl.exe pwd' returned status code<PHONE_NUMBER> and stdout 'W i n d o w s   S u b s y s t e m   f o r   L i n u x   h a s   n o   i n s t a l l e d   d i s t r i b u t i o n s .

  I hope you come up with a solution so I don't have to install wsl for this kind of thing.

#344 is related to this.


command: Add helper methods for building flags

SpongeAPI | SpongeCommon
I found using the full builder a bit verbose to make simple flags -- this should be a touch shorter.

ab52841cf


use policyv1 for PodDisruptionBudget for Kubernetes 1.25+

In Kubernetes 1.25+ PodDisruptionBudget beta1 is getting dropped and this is relevant because we currently use it in our codebase.
To solve this issue we can choose between:

Create betav1policyv1 if kubernetes versions is 1.19 or 1.20. This perhaps will require introducing in our codebase a Kubernetes version getter and parser just like we do for Postgres.
Drop the support for 1.19 and 1.20 and update to policyv1

Feel free to suggest any other option available to us

Is there any news on this? I just upgraded to 1.25 and now my cnpg-operator is crashing :)


sst start: allow specify the S3 bucket name in the debug stack

This is to help people with many S3 buckets to get around the bucket limit.

Requests:

Danny Rivadeneira https://serverless-stack.slack.com/archives/C01JG3B20RY/p1639158814196100?thread_ts=1639147880.195000&cid=C01JG3B20RY

This can now be done in v0.65.6:
export function debugApp(app) {
  new DebugStack(app, "debug-stack", {
    payloadBucketArn: "arn:aws:s3:::my-bucket",
  });
}


Fixed bug where new sound instances aren't kept

When sound.positional is set by the developer, the new instances created are no longer kept in slot.instances. This means that the sound is audible but the slot.isPlaying property is false because it has no instances and the developer can no longer stop the sound.
Reproduced in: https://playcanvas.com/project/747427/overview/sound-positional-issues
Open up dev console in the browser
Press 1 to play the sound, 4 to toggle positional property.
Notice that isPlaying is false in the console (press 3) and that pressing 2 to stop the sound doesn't stop the sound.
I confirm I have signed the Contributor License Agreement.

Let me know if I'm wrong but it seems to me that the old code should work if you just reverse the loop? Which might avoid creating a new array? Although it probably will still splice instances from the old array and then resize it to the old size again so not sure if it's better.

Let me know if I'm wrong but it seems to me that the old code should work if you just reverse the loop? Which might avoid creating a new array? Although it probably will still splice instances from the old array and then resize it to the old size again so not sure if it's better.

I can give it a try but I think we get the same issue as on stop, the instance is spliced out of the array. The test above is with one sound instance so reversing and going forward would be the same thing in this case :)

Oh, I did think about pushing the new instances to the end of the array and doing something to ensure that only the old ones are removed but it didn't seem as clear for something that is probably done rarely for the sake of not allocating a new array.

@vkalpias I've got an idea on how to avoid creating a new array if you would like me to implement that instead? It will make the logic a bit harder to follow though 😅

@vkalpias I've got an idea on how to avoid creating a new array if you would like me to implement that instead? It will make the logic a bit harder to follow though 😅

I've updated the PR to avoid the array allocation as Vaios mentioned above.

I've updated the PR to avoid the array allocation as Vaios mentioned above.


addNewForm is not working

Hello, I have an object dossier which is mapped to many other objects such as

societe
associe

This function i have learned from your youtube tutorial is here, is it working with more than one property assocition!
It is written in associe.html.twig

here is the function, i have just modified from yours:

i have just changed the variables, according to the second one "associe" as follow :
var $object_list = $('#associe_list');
    var $addNewItem = $('  Ajouter une associe');

var associe_newForm = prototype;

var $associe_panel = $('

');

But it display nothing for the second mapped object Associe! I still don't know what i have missed!

After some modification, when i execute the second collectionHolder, i haven't found the addNewItem button of the first one! Where i have missed to differciate the addNewButton? where did i missed ? tahnk your help!

Hello there, i think the problem is in the name of the $addNewItem, i just did some testing and it seems like to fix this you need to give them different names and not just one name, let me explain :
in your societe.html.twig
var $addNewItemSociete = $(' Ajouter une société');

in your operation.html.twig
var $addNewItemOperation = $(' Ajouter une opération');

Now the reason you were only getting the operation button is because when your js was executed societe buttom was being overwritten by the operation sub-view because each one of them had their own js within the view.
i just tried it and it's working, please let me know if you need any further help with this :)

I have modified the variable names as follow
- var collectionoHolder1, collectionHolder2 ;
- var $addNewOperation = $(' Ajouter une opération');
- var $addNewSociete = $(' Ajouter une société');

But still it's working for the société. I have put the full source code as below:
Operation.html.twig

Societe.html.twig

One more thing, is that you should pass the addNewItemButton to the addCollection function like this
function addCollection($object_list, $addNewItem) {
    // get the collectionHolder, initilize the var by getting the list;
    $collectionHolder = $($object_list);

    // append the add new item link to the collectionHolder
    $collectionHolder.append($addNewItem);

    // add an index property to the collectionHolder which helps track the count of forms we have in the list
    $collectionHolder.data('index', $collectionHolder.find('.panel').length);

    // finds all the panels in the list and foreach one of them we add a remove button to it
    // add remove button to existing items
    $collectionHolder.find('.panel').each(function () {
        // $(this) means the current panel that we are at
        // which means we pass the panel to the addRemoveButton function
        // inside the function we create a footer and remove link and append them to the panel
        // more informations in the function inside
        addRemoveButton($(this));

    });
    console.log($addNewItem)
    // handle the click event for addNewItem
    $addNewItem.click(function (e) {
        console.log("clicked the button inserted via js");
        // preventDefault() is your  homework if you don't know what it is
        // also look up preventPropagation both are usefull
        e.preventDefault();
        // create a new form and append it to the collectionHolder
        // and by form we mean a new panel which contains the form
        addNewForm($collectionHolder, $addNewItem);
    });
}

/*
 * creates a new form and appends it to the collectionHolder
 */
function addNewForm($collectionHolder, $addNewItem) {
    // getting the prototype
    // the prototype is the form itself, plain html
    var prototype = $collectionHolder.data('prototype');
    // get the index
    // this is the index we set when the document was ready, look above for more info
    var index = $collectionHolder.data('index');
    // create the form
    var newForm = prototype;
    // replace the __name__ string in the html using a regular expression with the index value
    newForm = newForm.replace(/__name__/g, index);
    // incrementing the index data and setting it again to the collectionHolder
    $collectionHolder.data('index', index + 1);
    // create the panel
    // this is the panel that will be appending to the collectionHolder
    var $panel = $('

');
    // create the panel-body and append the form to it
    var $panelBody = $('

').append(newForm);
    // append the body to the panel
    $panel.append($panelBody);
    // append the removebutton to the new panel
    addRemoveButton($panel);
    // append the panel to the addNewItem
    // we are doing it this way to that the link is always at the bottom of the collectionHolder
    $addNewItem.before($panel);
}

function addRemoveButton($panel) {
    // create remove button
    var $removeButton = $('  Supprimer');

    // appending the removebutton to the panel footer
    var $panelFooter = $('

').append($removeButton);

    // handle the click event of the remove button
    $removeButton.click(function (e) {
        e.preventDefault();
        // gets the parent of the button that we clicked on "the panel" and animates it
        // after the animation is done the element (the panel) is removed from the html
        $(e.target).parents('.panel').slideUp(1000, function () {
            $(this).remove();
        });
    });
    // append the footer to the panel
    $panel.append($panelFooter);
}

in your societe,html.twig just pass the addNewSociete to the function like this
addCollection('#societe_id', $addNewSociete)

I have modified and copied the addNewForm Function. And now i cud see the buttons are displaying ofr the both collection.
When i click the button, i am getting this error , my console pops:
clicked the button inserted via js
dossier.js:67 Uncaught TypeError: Cannot read property 'before' of undefined
    at addNewForm (dossier.js:67)
    at HTMLAnchorElement.<anonymous> (dossier.js:35)
    at HTMLAnchorElement.dispatch (jquery.min.js:3)
    at HTMLAnchorElement.r.handle (jquery.min.js:3)
addNewForm @ dossier.js:67
(anonymous) @ dossier.js:35
dispatch @ jquery.min.js:3
r.handle @ jquery.min.js:3

The source code where called the function:

alright here are all the changes that i made
societe.html.twig:
var $addNewItemSociete = $(' Ajouter une société');

    $(document).ready(function () {
        addCollection('#societe_list', $addNewItemSociete);

        function noResultsButtonClicked() {
            alert('You clicked the "No Result Found" button.');
        }
    });

operation.html.twig:
var $addNewItemOperation = $(' Ajouter une opération');

    $(document).ready(function () {
        addCollection("#operation_list", $addNewItemOperation);
    });

    function noResultsButtonClicked() {
        alert('You clicked the "No Result Found" button.');
    }

dossier.js:
function addCollection($object_list, $addNewItem) {
    console.log($object_list);
    // get the collectionHolder, initilize the var by getting the list;
    $collectionHolder = $($object_list);

    // append the add new item link to the collectionHolder
    $collectionHolder.append($addNewItem);

    // add an index property to the collectionHolder which helps track the count of forms we have in the list
    $collectionHolder.data('index', $collectionHolder.find('.panel').length);

    // finds all the panels in the list and foreach one of them we add a remove button to it
    // add remove button to existing items
    $collectionHolder.find('.panel').each(function () {
        // $(this) means the current panel that we are at
        // which means we pass the panel to the addRemoveButton function
        // inside the function we create a footer and remove link and append them to the panel
        // more informations in the function inside
        addRemoveButton($(this));

    });
    console.log($addNewItem)
    // handle the click event for addNewItem
    $addNewItem.click(function (e) {
        console.log("clicked the button inserted via js");
        // preventDefault() is your  homework if you don't know what it is
        // also look up preventPropagation both are usefull
        e.preventDefault();
        // create a new form and append it to the collectionHolder
        // and by form we mean a new panel which contains the form
        addNewForm($collectionHolder, $addNewItem);
    });
}

/*
 * creates a new form and appends it to the collectionHolder
 */
function addNewForm($collectionHolder, $addNewItem) {
    // getting the prototype
    // the prototype is the form itself, plain html
    var prototype = $collectionHolder.data('prototype');
    // get the index
    // this is the index we set when the document was ready, look above for more info
    var index = $collectionHolder.data('index');
    // create the form
    var newForm = prototype;
    // replace the __name__ string in the html using a regular expression with the index value
    newForm = newForm.replace(/__name__/g, index);
    // incrementing the index data and setting it again to the collectionHolder
    $collectionHolder.data('index', index + 1);
    // create the panel
    // this is the panel that will be appending to the collectionHolder
    var $panel = $('

');
    // create the panel-body and append the form to it
    var $panelBody = $('

').append(newForm);
    // append the body to the panel
    $panel.append($panelBody);
    // append the removebutton to the new panel
    addRemoveButton($panel);
    // append the panel to the addNewItem
    // we are doing it this way to that the link is always at the bottom of the collectionHolder
    $addNewItem.before($panel);
}

function addRemoveButton($panel) {
    // create remove button
    var $removeButton = $('  Supprimer');

    // appending the removebutton to the panel footer
    var $panelFooter = $('

').append($removeButton);

    // handle the click event of the remove button
    $removeButton.click(function (e) {
        e.preventDefault();
        // gets the parent of the button that we clicked on "the panel" and animates it
        // after the animation is done the element (the panel) is removed from the html
        $(e.target).parents('.panel').slideUp(1000, function () {
            $(this).remove();
        });
    });
    // append the footer to the panel
    $panel.append($panelFooter);
}

If this does not work for you i will send you the entire project files.

Thanks so much for your guidance on this! I have found all the add buttons displaying. And facing this issue.
step 1 : Societe
when i click on addNewItemSociete, it add a collectionHolder of operation.So I have renamed also the index variable name of societe as rowSociete, which hold the attributes "rowSociete.nom"
step 2 : Operation
when i click on addNewItemOperation, it add a collectionHolder of operation. Because, in the stepper, it holds many collectionHolders(that's my objective)
it displays only the attributes of the last(latest called) collectionHolder called was "#operation_list". if i put the societe as sécond, it will definitely call societe_list instead fof operation_list.
Note :  i have modified also the collectionHolders as "collectionHolder1" , "collectionHolder2"
How to fix it ? is there any problem with index in JS part? on INDEX?

Oh that is indeed the case i actually didn't pay attention to the forms not being different, i will let you once once i fix it :) sorry about this .

NOTE: if you don't like this this solution and manage to come up with something better please let me know or open a pull request with complete code so that we can update the repository :)
Aight so i might have found a "way" to make this work, the idea is just to save all the collectionHolders in someplace (array in my case) and just get the correct value when we try to use, so here are the changes that i made to the functions.
addCollection
    // this is where we save the collectionHolder in the array, just declare at the top of the file
   $collectionHolder = $($object_list);

    collectionsArray.push({
        collectionHolder: $collectionHolder,
        addNewItem: $addNewItem
    });

    // removed some code just to keep this short and simple

        // this code is inside the addNewItem.click () function
        let value = collectionsArray.find(item => {
            return (item.addNewItem[0] === $(this)[0])
        })

        e.preventDefault();
        addNewForm(value.collectionHolder, value.addNewItem);

value in this case will be the object that holds both the collectionHolder that we want along with the button that that is used to insert the new form.
Now here's the entire file so that you can just copy it and replace your file with it:
var collectionsArray = [];

function addCollection($object_list, $addNewItem) {
    // get the collectionHolder, initilize the var by getting the list;
    $collectionHolder = $($object_list);
    // save the collection holder and the button in an array for future access
    collectionsArray.push({
        collectionHolder: $collectionHolder,
        addNewItem: $addNewItem
    });

    // append the add new item link to the collectionHolder
    $collectionHolder.append($addNewItem);

    // add an index property to the collectionHolder which helps track the count of forms we have in the list
    $collectionHolder.data('index', $collectionHolder.find('.panel').length);

    // finds all the panels in the list and foreach one of them we add a remove button to it
    // add remove button to existing items
    $collectionHolder.find('.panel').each(function () {
        // $(this) means the current panel that we are at
        // which means we pass the panel to the addRemoveButton function
        // inside the function we create a footer and remove link and append them to the panel
        // more information in the function inside
        addRemoveButton($(this));
    });
    // handle the click event for addNewItem
    $addNewItem.click(function (e) {
        let value = collectionsArray.find(item => {
            return (item.addNewItem[0] === $(this)[0])
        })
        // preventDefault() is your  homework if you don't know what it is
        // also look up preventPropagation both are usefull
        e.preventDefault();
        // create a new form and append it to the collectionHolder
        // and by form we mean a new panel which contains the form
        addNewForm(value.collectionHolder, value.addNewItem);
    });
}

/*
 * creates a new form and appends it to the collectionHolder
 */
function addNewForm($collectionHolder, $addNewItem) {
    console.log($collectionHolder)
    // getting the prototype
    // the prototype is the form itself, plain html
    var prototype = $collectionHolder.data('prototype');
    // console.log($addNewItem);
    // console.log(collectionsArray);
    // get the index
    // this is the index we set when the document was ready, look above for more info
    var index = $collectionHolder.data('index');
    // create the form
    var newForm = prototype;
    // replace the __name__ string in the html using a regular expression with the index value
    newForm = newForm.replace(/__name__/g, index);
    // incrementing the index data and setting it again to the collectionHolder
    $collectionHolder.data('index', index + 1);
    // create the panel
    // this is the panel that will be appending to the collectionHolder
    var $panel = $('

');
    // create the panel-body and append the form to it
    var $panelBody = $('

').append(newForm);
    // append the body to the panel
    $panel.append($panelBody);
    // append the removebutton to the new panel
    addRemoveButton($panel);
    // append the panel to the addNewItem
    // we are doing it this way to that the link is always at the bottom of the collectionHolder
    $addNewItem.before($panel);
}

function addRemoveButton($panel) {
    // create remove button
    var $removeButton = $('  Supprimer');

    // appending the removebutton to the panel footer
    var $panelFooter = $('

').append($removeButton);

    // handle the click event of the remove button
    $removeButton.click(function (e) {
        e.preventDefault();
        // gets the parent of the button that we clicked on "the panel" and animates it
        // after the animation is done the element (the panel) is removed from the html
        $(e.target).parents('.panel').slideUp(1000, function () {
            $(this).remove();
        });
    });
    // append the footer to the panel
    $panel.append($panelFooter);
}

Aight i think this thread could be closed now as it answers the original problem.
Will reopen if anything pops up :)


^@ signs in JetpackStaus

Showed in platform ubuntu20.04 and windows10 ,  maybe it is caused by git command
Only showed in Already up to date. lines

I can confirm this on arch linux + NVIM v0.7.2 as well

repeated when set g:jetpack_download_method = curl

also wget

Thank you for inspecting this issue. This is caused by null characters. I hope that this issue is closed now. Please check the latest commit. Cheers.

fixed in https://github.com/tani/vim-jetpack/commit/ef583aea8518bbcc1b92ab08a6be1749fac5ac0f


python311Packages.google-cloud-texttospeech: 2.15.1 -> 2.16.0

Changelog: https://github.com/googleapis/google-cloud-python/blob/google-cloud-texttospeech-v2.16.0/packages/google-cloud-texttospeech/CHANGELOG.md
Description of changes

Things done

Built on platform(s)

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

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

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

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

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

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

[ ] Fits CONTRIBUTING.md.

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

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

2 packages built:

python311Packages.google-cloud-texttospeech
python311Packages.google-cloud-texttospeech.dist


There is something wrong  happened in version 3.4.2 when I opened jar  files

Using "File" menu to open a jar file , this application which version is 3.4.2  will exit   and restart  suddenly. Plese review this issus.

Thank you for reporting the issue.However, the problem doesn't occur on my computer.
Please describe the problem in detail,such as your system(e.g. Windows10) and your jre version
Please go to %UserProfile%\Appdata\Local\FernflowerUI and send me a screenshot of that.
The folder should be like this

Thank you for your support.

Runing enviroment :
1.os :windows10 64 bits
2.jre :1.6.0-45
Problem:
1.This application (V3.4.2) will  exit and restart .
Problem occured conditions :
1.Have decomplied a jar file successed .
2. Using "File" menu  to reopen  another  jar file .
Screensshots:
1: Fernflower jar file directory
2.Application  directory

Problem Screenshoots

------------------ 原始邮件 ------------------
发件人<EMAIL_ADDRESS>发送时间: 2019年6月14日(星期五) 上午6:49
收件人<EMAIL_ADDRESS>抄送: "廉政"337546141<EMAIL_ADDRESS>主题: Re: [6168218c/FernflowerUI] There is something wrong  happened inversion 3.4.2 when I opened jar  files (#13)
Thank you for reporting the issue.However, the problem doesn't occur on my computer.
Please describe the problem in detail,such as your system(e.g. Windows10) and your jre version
Please go to %UserProfile%\Appdata\Local\FernflowerUI and send me a screenshot of that.
The folder should be like this
Thank you for your support.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.

Thanks for reply , the screenshots are in  mail that  have  sended  to you.
Runing enviroment :
1.os :windows10 64 bits
2.jre :1.6.0-45
Problem:
1.This application (V3.4.2) will  exit and restart .
Problem occured conditions :
1.Have decomplied a jar file successed .
2. Using "File" menu  to reopen  another  jar file .

Sorry,Maybe I forgot whether I had fixed this because the code was written 3 months ago.
But this still doesn't happen on my machine.
Maybe you can try the binary file attached.
FernFlowerUI3.4.2+.zip

Yeah，the  application  contained  by "FernFlowerUI3.4.2+.zip" has no this issue  .Thanks!


Update guestbook example to use replication controller instead of a naked pod.

Bunch of changes in addition and also to make the change work:

Added redis-master-controller.json that replaces redis-master.json.
Removed HostPort from resources in the json files.
Expanded README.md to include 6th step that sets up service for frontend.
Reexecuted commands from the example and pasted up to date output.
Bunch of changes in test files that were relying on redis-master.json file that generated pod resource. I've updated the relevant calls to use replication controller resource.

Tests failed with:
F0210 00:53:56.836262   14857 create.go:79] the path "examples/guestbook/redis-master.json" does not exist

Thanks @rsokolowski! @ddysher could you take a look?

Sure, I'll take a look.

@rsokolowski Thanks!
I haven't looked at kubectl unittest yet.  But I think you'll also need to fix guestbook.sh in e2e-suite.  Can you fix it, rebase/squash?

Thanks for comments @ddysher. PTAL.

Looks good, some minor comments.  Need a rebase.

Thanks for comments @ddysher . Applied them and rebased/squashed. I also fixed hack/test-cmd.sh which was broken.

Ping, I again synced to head.

Have you ran e2e test?  Just for precaution even though this is an example update.  I believe a some places in e2e touches the directory.
You seem to touch very hot files.

The relevant e2e tests are passing. There is not that much dependency on examples/guestbook: mainly test-cmd.sh and guestbook.sh

Have you commented on this?
https://github.com/GoogleCloudPlatform/kubernetes/pull/4267#discussion_r24452889

Oops, I've missed the comment - replied.

This LGTM, but deferring to @ddysher for final.
(I was mainly butting my head in here because it was referenced by #4588.)

LGTM, will merge after final rebase.  N.B. can you put a comment on the conflict part so I don't have to go through the whole commit, thx.

Thanks for review @ddysher . Rebased, resolved conflict and added comment as requested.


Implement NewSHAX and one-shot SHAX

This PR implements NewSHA1, NewSHA224, NewSHA256, NewSHA384, NewSHA512, and their corresponding one-shot versions.
It is a clean port from Microsoft repo, which is built on top of RedHat implementation, with the following changes:

Remove all legacy SHA OpenSSL functions and objects (SHA512_CTX, SHA384_Init(), SHA512_Update(), etc.) and use only the EVP interface (EVP_MD_PTR, EVP_DigestInit, EVP_DigestUpdate, etc.).
Support UnmarshalBinary and MarshalBinary for OpenSSL 3, which stores the sha state in a different place than OpenSSL 1.x.

This time I'll wait for a +1 from @ueno 😄

I always cringe when I see software depending on being able to preserve partial states of a digest (the whole copy business), but this implementation looks quite sane to me.

PTAL @ueno


add ND for item_metrics

In this PR we compute ND for item_metrics, as currently it is only available for aggregated metrics.

@melopeo just a note: the value of this metric (like others I believe) may be nan or inf if the target is zero

@lostella that's correct. It is expected that several metrics have this behaviour in that case.


Run?

How can I simply run this?

You'll need to sign up for a partner ID on http://shopsense.shopstyle.com/
Then you need to clone the repository and go to that directory on the command line to run git submodule update --init
Open POPSUGARShopSense.xcworkspace
Replace <#Partner ID#> with your partner ID.


No explanation of the left side panel in the console

Page Affected: https://developers.google.com/web/tools/chrome-devtools/console/
What needs to be done?
Add an explanation of this and especially how to open/close it.

[ ] Appropriate type-something label has been added.
[ ] Appropriate section-something label has been added.

Note to self: Can possibly be updated at the same time as #6684


Better handling of remember me token when login across devices is disabled

The specific bug addressed by this fix is that when you logged out from a non-persistent session (you did NOT check the remember checkbox) and login across devices is disabled, you will not the less invalidate all remember me token for this user.
Parent issue
Fixes #9794

Still need to review a bit of doc

Reviewed the relevant doc for this PR. It looks OK and there isn't any obvious improvement I would make at this stage.
https://github.com/silverstripe/silverstripe-framework/blob/21129b1624b21c95d51e1cb79e394d1030baf4a5/docs/en/02_Developer_Guides/09_Security/00_Member.md#L137-L142

Merge on green


Formatting numerical output

A cosmetic suggestion regarding the format of numbers outputted in the estimated stanza: use either commas for better readability or use M or B or T etc. suffixes and some sci notation.
Currently:
% wireguard-vanity-address bunny
searching for 'bunny' in pubkey[0..10], one of every 5592405 keys should match

Looks much nicer as:
searching for 'bunny' in pubkey[0..10], one of every 5,592,405 keys should match

Or as:
searching for 'bunny' in pubkey[0..10], one of every 5.59 M keys should match

good idea.. does anybody have a favorite crate for doing this formatting?

Been a while on this.  Did you have any ideas/time?


Scheduled job runs at incorrect time

Hey Heptio Team,
My scheduled job configuration looks like this :
NAME                STATUS    CREATED                         SCHEDULE    BACKUP TTL   LAST BACKUP   SELECTOR
kubernetes-backup   Enabled   2017-08-09 14:58:47 +0000 UTC   0 9 * * *   24h0m0s      58m ago       <none>

So it should run 1 time per day ,at 9 AM , right ? https://crontab.guru/#0_9___*
However, I get backups every hour, when minute is equal to 9 :
NAME                               STATUS      CREATED                         EXPIRES   SELECTOR
kubernetes-backup-20170810130905   Completed   2017-08-10 13:09:05 +0000 UTC   23h       <none>
kubernetes-backup-20170810120905   Completed   2017-08-10 12:09:05 +0000 UTC   22h       <none>
kubernetes-backup-20170810110905   Completed   2017-08-10 11:09:05 +0000 UTC   21h       <none>
kubernetes-backup-20170810100905   Completed   2017-08-10 10:09:05 +0000 UTC   20h       <none>
kubernetes-backup-20170810090905   Completed   2017-08-10 09:09:05 +0000 UTC   19h       <none>
kubernetes-backup-20170810080905   Completed   2017-08-10 08:09:05 +0000 UTC   18h       <none>
kubernetes-backup-20170810070905   Completed   2017-08-10 07:09:05 +0000 UTC   17h       <none>
kubernetes-backup-20170810060905   Completed   2017-08-10 06:09:05 +0000 UTC   16h       <none>
kubernetes-backup-20170810050905   Completed   2017-08-10 05:09:05 +0000 UTC   15h       <none>
kubernetes-backup-20170810040905   Completed   2017-08-10 04:09:05 +0000 UTC   14h       <none>
kubernetes-backup-20170810030905   Completed   2017-08-10 03:09:05 +0000 UTC   13h       <none>
kubernetes-backup-20170810020905   Completed   2017-08-10 02:09:05 +0000 UTC   12h       <none>
kubernetes-backup-20170810010905   Completed   2017-08-10 01:09:05 +0000 UTC   11h       <none>
kubernetes-backup-20170810000905   Completed   2017-08-10 00:09:05 +0000 UTC   10h       <none>
kubernetes-backup-20170809230905   Completed   2017-08-09 23:09:05 +0000 UTC   9h        <none>
kubernetes-backup-20170809220905   Completed   2017-08-09 22:09:05 +0000 UTC   8h        <none>
kubernetes-backup-20170809210905   Completed   2017-08-09 21:09:05 +0000 UTC   7h        <none>
kubernetes-backup-20170809200905   Completed   2017-08-09 20:09:05 +0000 UTC   6h        <none>
kubernetes-backup-20170809190905   Completed   2017-08-09 19:09:05 +0000 UTC   5h        <none>
kubernetes-backup-20170809180905   Completed   2017-08-09 18:09:05 +0000 UTC   4h        <none>
kubernetes-backup-20170809170905   Completed   2017-08-09 17:09:05 +0000 UTC   3h        <none>
kubernetes-backup-20170809160905   Completed   2017-08-09 16:09:05 +0000 UTC   2h        <none>
kubernetes-backup-20170809150905   Completed   2017-08-09 15:09:05 +0000 UTC   1h        <none>
kubernetes-backup-20170809145847   Completed   2017-08-09 14:58:47 +0000 UTC   56m       <none>

Issue is my configuration or a bug? :)
Thanks!

Hi @evaldasou, thanks for the report. I'll look into this now and get back to you asap.

@evaldasou I've figured this out - we're currently using a cron parser that expects the first field to be seconds (ouch!). I think we should adjust it so we don't handle seconds and we use the format that most people expect. WDYT? cc @skriss @abiogenesis-now
For now, just add another 0 up front: 0 0 9 * * *

@ncdc that makes sense! in the meantime, do you want me to patch the docs here (https://github.com/heptio/ark/blob/master/docs/use-cases.md) or will you be able to get a fix out soon?

big thanks @ncdc !

Let's leave it open because we're going to change it to remove the seconds field.


WMT en-fr training corpus filename change

giga-fren.release2.fr.gz file has been renamed to giga-fren.release2.fixed.fr.gz

Can one of the admins verify this patch?

Ah, reported already. Closing.


<EMAIL_ADDRESS>download via aria2 failed

wiztree: 4.02 -> 4.03
WARN  Scoop uses 'aria2c' for multi-connection downloads.
WARN  Should it cause issues, run 'scoop config aria2-enabled false' to disable it.
Updating one outdated app:
Updating 'wiztree' (4.02 -> 4.03)
Downloading new version
Starting download with aria2 ...
Download: 09/23 10:58:55 [ERROR] CUID#8 - Download aborted. URI=https://www.diskanalyzer.com/files/wiztree_4_03_portableDownload: Exception: [AbstractCommand.cc:351] errorCode=1 URI=https://www.diskanalyzer.com/files/wiztree_4_03_portable.zDownload:   -> [SocketCore.cc:1018] errorCode=1 SSL/TLS handshake failure: Error: An existing connection was forcibly clDownload: Download Results:
Download: gid   |stat|avg speed  |path/URI
Download: ======+====+===========+=======================================================
Download: 2ac478|ERR |       0B/s|C:/Users/ozzy/scoop/cache/wiztree#4.03#https_www.diskanalyzer.com_files_wiztree_4_03_portable.zip
Download: Status Legend:
Download: (ERR):error occurred.
Download: aria2 will resume download if the transfer is restarted.
Download: If there are any errors, then see the log file. See '-l' option in help/man page for details.

ERROR Download failed! (Error 1) An unknown error occurred
ERROR https://www.diskanalyzer.com/files/wiztree_4_03_portable.zip
    referer=https://www.diskanalyzer.com/files/
    dir=C:\Users\ozzy\scoop\cache
    out=wiztree#4.03#https_www.diskanalyzer.com_files_wiztree_4_03_portable.zip

ERROR & 'C:\Users\ozzy\scoop\apps\aria2\current\aria2c.exe' --input-file='C:\Users\ozzy\scoop\cache\wiztree.txt' --user-agent='Scoop/1.0 (+http://scoop.sh/) PowerShell/7.1 (Windows NT 10.0; Win64; x64; Core)' --allow-overwrite=true --auto-file-renaming=false --retry-wait=2 --split=5 --max-connection-per-server=5 --min-split-size=5M --console-log-level=warn --enable-color=false --no-conf=true --follow-metalink=true --metalink-preferred-protocol=https --min-tls-version=TLSv1.2 --stop-with-process=8248 --continue --summary-interval 0

Actually it seems to be working now. Website just seems slow.


feat: handle SIGTERM gracefully

Acceptance Criteria

When receiving a SIGTERM, the application should:

Wait for any current tx being mined, while refusing new ones
Ask all the connected miners to disconnect and reconnect, using the client.reconnect of the Stratum protocol
Refuse new connections from miners

Github actions should run tests in all PRs (not just the ones with dev or master as base)

Motivation
It's common in many systems, like container orchestrators, to send a SIGTERM signal to warn the application about an iminent SIGKILL, so it has time to finish whatever it needs, like closing connections or finishing jobs.
Notes
We should also set the --retry-pause option in our miners to a lower value than default, which is 30 seconds, to make them reconnect faster after the connection is closed. Maybe 1s is a better value for this.
~I tested sending the waittime parameter described in https://en.bitcoin.it/wiki/Stratum_mining_protocol#client.reconnect, to make the miners wait a few seconds before reconnecting (which would give time for the new container to start), but it seems our miners don't really implement this.~ This was not needed after all, they reconnect instantly.
TODO

[ ] Make sure cpuminer obeys the client.reconnectmessage if we send no host/port
[ ] Make sure ccminer obeys the client.reconnectmessage if we send no host/port
[x] Make sure cgminer obeys the client.reconnectmessage if we send no host/port

I just noticed that we "Wait for any current tx being mined, while refusing new ones". I don't think this is particularly bad, but it could make the time it takes from the SIGTERM being received to the process exiting vary a lot.
I don't think this is blocking or that it even goes against any official recommendation, but usually processes will try to exit much faster when receiving a SIGTERM. I think this is mostly only relevant in the context of Kuberenetes, which is what I think originated this PR. I would imagine Kubernetes has a timeout strategy of sending a SIGKILL after a while of sending a SIGTERM if the process is still running, it could be that it sends more than one SIGTERM.
My only concern is if this plays well with whatever strategy Kubernetes uses.
Either way the current implementation is definitely progress in the sense that if there is any downside of taking too long to exist, it's probably rare. So if any of my concerns does not have a trivial answer, I'd rather have an issue to investigate it later.

In Kubernetes context we are safe with this implementation. The process of releasing a new version and replacing the old pod is this:

A new pod is created and starts receiving new requests.
The old pod is sent a SIGTERM, it will be able to respond pending requests and close connections
After 30s (by default) the old pod is sent a SIGKILL if it has not stopped yet

So we already have a new pod serving requests by the time the old pod receives the SIGTERM. (unless someone explicitly kills a pod, or it dies for any other reason, like being OOM killed, but these are edge cases)
There is no problem if the SIGTERM handling time varies from time to time.
But are you concerned only with Kubernetes, or with other environments as well?

So we already have a new pod serving requests by the time the old pod receives the SIGTERM. (unless someone explicitly kills a pod, or it dies for any other reason, like being OOM killed, but these are edge cases)
There is no problem if the SIGTERM handling time varies from time to time.

Thanks!

But are you concerned only with Kubernetes, or with other environments as well?

Yes. Because it's what we will use it's basically the only environment that matters right now.


About LIBERO configs and transforms

Hi! Thanks for your work.
I am actually doing finetuning on LIBERO dataset as well but the result was not as good as yours even with your modified RLDS dataset. I  think it should be the difference between the definition for LIBERO dataset in
openvla/prismatic/vla/datasets/rlds/oxe/configs.py and openvla/prismatic/vla/datasets/rlds/oxe/transforms.py
can you kindly provide the corresponding code for LIBERO dataset in these files? Or probably you should consider pushing the modified files for LIBERO onto the repo so that everyone can try to finetun themselves.
Thanks a lot.

Hi @object814,
Sure, we can provide that! We just pushed the configs/transforms to the main branch. See the changes here: https://github.com/openvla/openvla/commit/7a359de9bb8be6fd3c232d189784920dbc93391c
This is only lightly tested since I am traveling now, so please let me know if you run into any issues such as runtime errors!
-Moo Jin

Great thanks a lot!

Hi I encountered some error after I changed the config and transform, which was raised at:
trajectory["observation"]["EEF_state"] = trajectory["observation"]["state"][:, :6]
trajectory["observation"]["gripper_state"] = trajectory["observation"]["state"][:, -2:]  # 2D gripper state

inside transforms.py
I printed out the RLDS dataset you provided for LIBERO and didn't found "state" key under rlds_data["observation"], the codebase is quite complex and to be honest I did quite a few changes here and there so I am not 100% sure if this is caused by me or is that we are missing some changes for LIBERO
Nonetheless my current solution is just to comment the two lines above inside transforms.py, and it did not raise any further probelm because I believe inside RLDS dataset handling it actually did not use ['state'] afterall.
Again, this is just a reminder, if the fresh codebase does not encounter this problem, its perfect.


Preprocessing pipeline

I have been trying to use your pipleine preprocessing on the OASIS3 dataset (Tw1).
But nothing seems to happen. May you please guide me on how to properly use it.

Hi, the way to use the pipeline.sh through terminal can be found from the line 86 in pipeline.py, as below
call('bash pipeline.sh ' + path + ' ' + name + ' ' + root_folder + ' ' + step_7_f + ' ' + step_7_g, shell=True)
Comparing with your command, the missing parts are the argument "step_7_f" and "step_7_g". It should be helpful to refer to pipeline.py for more details of using it. The python script is just a for loop wrapper of the bash call to process all files from your data folder.


remove units sp option, add vent status and SP

The changes have been checked. There were two issues:

The emulator wasn't working. But it seems to be a legacy issue and not newly introduced. @rerpha will check it as a separate work item.
There was an extra "%" hardcoded after the label "Effort". This has been fixed on the fly.


Cluster Freeze Issue

Hi I am using Carto library in my Android project .  I tried like 5 different phone and emulator but every device getting same result. If I dont use ClusteredVectorLayer but just VectorLayer than everything work perfectly and its not freeze  but I need to use cluster.What is this problem , can you help me ?
PS: I make bitmap and other things and I am doing same way with the docs .

Which SDK version are you using? A small demo that demonstrates the freezing would be helpful, otherwise we are really in the dark.

Closing the issue, it was not really SDK related. This has been solved through official CARTO support channel.


Query on minicom exit after loading buildroot Linux

Please recommend the best way to exit minicom. Can I just leave with command ctrl + a + x or need to properly shut down by typing command poweroff first?

I already got the answer on this issue. I will close it.


precision (maximum length) of a string (MAX) column in ResultSetMetaData is always zero

this issue relates to #65
the original issue seems to have been fixed for the most part. precision (maximum length) for most string columns are being reported accurately within ResultSetMetaData
However, string(max) columns still have some issues, in which they are reported to have a display size of 50 and precision of 0 within ResultSetMetaData
version: 1.0.8

this was using quoted table names

Fixed for version 1.0.9.


How to use join

Hey guys,
I'm trying to figure out how to use inner join but I'm not sure what args it's expecting and can't see an example of it's use -
(t Term) InnerJoin(args ...interface{}) Term

To explain simply, I have a struct
type Sprite struct {
  Id string
  X int
  Y int
}

And I want to do a single query that given a Sprite.Id returns all Sprites in the same table within some radius of the given Sprite. (I assume InnerJoin would do this? Is there a better option?).
I can of course do this in two steps, but then I can't do a .Changes() which .. would be a bit unfortunate ..

Hey,
It's straight forward like js-driver: https://rethinkdb.com/api/javascript/eq_join
first example converts to golang:
r.Table("players").InnerJoin("gameId", r.Table("games"))


chore(masthead-v2): integrate main changes into v2 dev

Related Ticket(s)
Description
This PR gets changes from main in feat/masthead-v2-dev. This notably includes updates to node 18 that are required to continue working on v2 masthead features.
Changelog
New
Changed
Removed

Already merged manually


Regression Dataloaders

Primate reaching:
Standardize output to 3D version, 2D version corresponds to lookback window of 1 timestep, this makes it consistent to the NeuroBench standard of (batch, number of steps, *).
MackeyGlass:
Augment dataloader with lookback window functionality, similar to primate reaching
@jasonlyik @dlits21 @denkle @YounesBouhadjar
Test compatibility with existing models, update if necessary.

@YounesBouhadjar @denkle
The lookback window we are discussing in the email thread corresponds to the primate reaching "3D" mode, which formats data batches with dimensions (# predictions to make, bin_width, feature). No history (only one sample given), as currently implemented by the MG dataloader, would here correspond to (# samples, 1, value), which is still different from what you were mentioning in #78 @YounesBouhadjar.
I think we should update both the MG and primate reaching dataloaders to follow a consistent parameterization of bin_width, rather than mode = 2D / 3D, where bin_width refers to number of input points per prediction, and is 1 for the 2d mode

Changed for MG in #104, will be done for primate reaching in #88


How event communication between sub-applications

Hello!
E.g：
app1 Have login

app2 How to call app1 login？

How to declare global variables  (How to declare global variables for multiple items )?

Can you give a simple example in the project？

Reading the source code is clearer and more intuitive than the documentation, thank you！

app2 How to call app1 login？

Applications can communicate with each other by importing each other. See https://single-spa.js.org/docs/recommended-setup#inter-app-communication

How to declare global variables (How to declare global variables for multiple items )?

window.thing = 'value'

Can you give a simple example in the project？

There are a lot of examples at https://single-spa.js.org/docs/recommended-setup#inter-app-communication and https://single-spa.js.org/docs/examples


Create ConfigMap for EDP consumption

This is just a draft. Will need a lot of polishing before merging.

Example ConfigMap:
[ihrachys@ansible-fx2-6 ovn-operator]$ oc get configmap -o yaml ovn-controller-config
apiVersion: v1
data:
  ovn-encap-type: geneve
  ovn-of-probe-interval: "60000"
  ovn-remote: tcp:<IP_ADDRESS>:6642
  ovn-remote-probe-interval: "60000"
kind: ConfigMap
metadata:
  creationTimestamp: "2023-08-01T15:36:41Z"
  labels:
    ovn-controller.openstack.org/name: ovncontroller-sample
    ovn-controller.openstack.org/namespace: openstack-operators
    ovn-controller.openstack.org/uid: ab904250-0a32-4db6-9ce9-7ceea1499d17
  name: ovn-controller-config
  namespace: openstack-operators
  ownerReferences:
  - apiVersion: ovn.openstack.org/v1beta1
    blockOwnerDeletion: true
    controller: true
    kind: OVNController
    name: ovncontroller-sample
    uid: ab904250-0a32-4db6-9ce9-7ceea1499d17
  resourceVersion: "395243"
  uid: 9fa794ac-e6f0-4154-9a49-6fc195d73bf5

This is largely complete, only kuttl tests are missing. I will add them after I have it tested end-to-end with edpm-ansible.

/test all

This should be ready for review. I left some todos to consider for reviewers but these may be followed up later if needed.

/test ovn-operator-build-deploy-kuttl

/test ovn-operator-build-deploy-kuttl

/lgtm for me if tests will pass but I think that ovn-operator-build-deploy-kuttl job's failure isn't related to this PR

/test ovn-operator-build-deploy-kuttl

Changes:

remove timeout values from configmap
change format to yaml, edpm will load it as facts


Improve error message layout for wheel-build failures

I find pip's error messages here much cleaner:

Whereas we have:

We should add some indentation, clearer sections, the exit code, etc.

I prefer the non-indented version. We should add the exit code though.

@charliermarsh is this sufficient with @konstin change?


Minor bug in VHDL file generation (csr_*_ren signal)

Hi!
First of all, thank you a lot for this project, it is so convenient!
I faced a small bug in the VHDL generator - the signal csr_REGNAME_ren was not generated in one of the registers but was used inside the generated VHDL file. The problem appears in "wo" fields with the hardware attribute set to "oa". Basically, the generated VHDL file is lacking the following:
--- a/bug_test.vhd
+++ b/bug_test.vhd
@@ -75,6 +75,7 @@ signal axil_rvalid_int : std_logic;

 signal csr_reg1_rdata : std_logic_vector(31 downto 0);
 signal csr_reg1_wen : std_logic;
+signal csr_reg1_ren : std_logic;
 signal csr_reg1_field1_ff : std_logic_vector(15 downto 0);
 signal csr_reg1_field2_ff : std_logic_vector(15 downto 0);

@@ -170,6 +171,7 @@ end process;
 --------------------------------------------------------------------------------

 csr_reg1_wen <= wen when (waddr = "000000000000") else '0'; -- 0x0
+csr_reg1_ren <= ren when (waddr = "000000000000") else '0'; -- 0x0

 -----------------------

I am using v1.0.2 installed by pip. Here are my corsair configs to reproduce the problem:

csrconfig
[globcfg]
data_width = 32
address_width = 12
register_reset = sync_neg

[vhdl_entity]
generator = Vhdl
interface = axil
path = bug_test.vhd

regs.yml
regmap:
  - name: peak
    description: None
    address: 0x0
    bitfields:
    - {name: field1, reset: 0, width: 16, lsb: 0,  access: wo, hardware: oa, description: None}
    - {name: field2, reset: 0, width: 16, lsb: 16, access: wo, hardware: oa, description: None}

Could it be that using two bitfields in one register with a hardware attribute set to "oa"  cause some kind of collision?

I have fixed my problem with changing the fields type from "wo" to "rw".

Thanks for your feedback! I'm super happy that this tool is useful for you.
Actually, it is an intended behaviour. It is assumed that for "wo" mode read is a "don' care" operation.
You are right in the end, you have to use "rw" to get both "ren" and "wen" signals.

Sounds reasonable. I added a small disclaimer, so this behaviour would be reflected by documentation.

Okay, so we have not understood each other correctly. There is a compilation error in generated VHDL file when using wo and a in one bitfield. The expected behavior is:
rw + a  gives you ren & wen output ports
wo + a gives you wen output port
ro + a gives you ren output port

same bug for verilog file generation

i think this might be fixed with PR https://github.com/esynr3z/corsair/pull/27

@v0lker thanks a lot for your work!


TS2322 type error using HooksProvider together with immer-reducer

@epeli Thanks for this an immer-reducer. The combination looks great and I hope for it to be able to reduce the boilerplate we have in a lot of our code.
I was trying this out today on a simple example, and I keep getting a TS2322 error on the line:
const store = createMyStore();   // Simple store with a single ImmerReducer-created render function

const renderApp = () => (
  <HookesProvider store={store}>    // <-- error here!!
    <MyStateUsingComponent />
  </HooksProvider>
);

The createMyStore function looks like this:
import {createUseMapState} from "@epeli/redux-hooks";
import { createStore } from "redux";
import { ProcedureSearchState, reducerFunction } from "./state";

export const useSearchState = createUseMapState<ProcedureSearchState>();

export const createSearchStore = () => createStore(reducerFunction);

The renderFunction and ProcedureSearchState look like this:
import { createActionCreators, createReducerFunction, ImmerReducer } from "immer-reducer";

export interface Procedure {
    readonly id: string;
    readonly name: string;
}

export interface ProcedureSearchState {
    readonly loading: boolean;
    readonly procedures: Procedure[];
    readonly query: string;
}

export const initialState: ProcedureSearchState = {
    loading: false,
    procedures: [],
    query: "",
};

export class ProcedureSearchReducer extends ImmerReducer<ProcedureSearchState> {
    public setQuery(query: string) {
        this.draftState.query = query;
    }

    public loadProcedures() {
        this.draftState.loading = true;
    }

    public receiveProcedures(procedures: Procedure[]) {
        this.draftState.procedures = procedures || [];
        this.draftState.loading = false;
    }
}

export const ActionCreators = createActionCreators(ProcedureSearchReducer);
export const reducerFunction = createReducerFunction(ProcedureSearchReducer, initialState);

The full error message is:
src/index.tsx:9:20 - error TS2322: Type 'Store<ProcedureSearchState, { type: "setQuery"; payload: string; } | { type: "loadProcedures"; payload: []; } | { type: "receiveProcedures"; payload: Procedure[]; }>' is not assignable to type 'Store<any, AnyAction>'.
  Types of property 'dispatch' are incompatible.
    Type 'Dispatch<{ type: "setQuery"; payload: string; } | { type: "loadProcedures"; payload: []; } | { type: "receiveProcedures"; payload: Procedure[]; }>' is not assignable to type 'Dispatch<AnyAction>'.
      Type 'AnyAction' is not assignable to type '{ type: "setQuery"; payload: string; } | { type: loadProcedures"; payload: []; } | { type: "receiveProcedures"; payload: Procedure[]; }'.
        Type 'AnyAction' is not assignable to type '{ type: "receiveProcedures"; payload: Procedure[]; }'.

9     <HooksProvider store={store}>
                     ~~~~~

  node_modules/immer-reducer/lib/immer-reducer.d.ts:50:9
    50         payload: FirstOrAll<Payload>;
               ~~~~~~~
    'payload' is declared here.
  node_modules/@epeli/redux-hooks/lib/redux-hooks.d.ts:18:5
    18     store: Store;
           ~~~~~
    The expected type comes from property 'store' which is declared here on type 'IntrinsicAttributes & { store: Store<any, AnyAction>; children: ReactNode; }'

I tried created a CodeSandox showing the error, but of course I don't get an error there.
I made sure I had the same tsconfig.json as your example here, but it made no difference. I still get the compiler error.
What am I doing wrong? What other information do you need to help me debug this?
The demos and the description of this look really great, and I would really like to try it out on a more substantial example once I get the very basics working.

Just an update. I can remove the compiler error by changing my createSearchStore() function to be:
import { Store } from "redux";
...
export const createSearchStore = () => createStore(reducerFunction) as unknown as Store;

but you don't do this in your example, unless your composeReducers ends up having this effect?

Interesting. The store prop is just the Store type from Redux:
https://github.com/epeli/redux-hooks/blob/8c76fa3b2c3ef442e0b87798436a57706cd7333a/src/redux-hooks.tsx#L96
But I guess we just loosen that type a bit since here's no need infer state or actions from it.

Loosened the store requirements in 0.5.1. Does it fix it for you?

Yes it does. Thank you. Upgraded to 0.5.2 and I was able to remove the 'as unknown as Store' type assertion.
Thanks.


Club Penguin Atake Online Services Maintenance

We're bringing down Club Penguin Atake to perform planned maintenance.

Maintenance extended. We apologise for all issues.

This maintenance will now cover Antique CDN, Legacy CDN, Vanilla CDN and Club Penguin Atake Labs/Public Quality Assurance service. We apologise for the inconvenience.


MRC captures no holograms

MRC captures no holograms
unity2020.3.34 with openXR, the video recorded with mrc has no hologram.
To reproduce
Steps to reproduce the behavior:

create a base project with unity2020.3.34, MRTK v2.8.2 and openXR.
create a script (Test_MRC) the code copied form https://docs.microsoft.com/zh-cn/windows/mixed-reality/develop/unity/locatable-camera-in-unity (video part only)
add two buttons to the scene, and bind Test_MRC method "StartRecord" and "StopRecord"(Maybe the method name isn't this, but it doesn't matter)
build project and deploy to hololens2
run app, click startRecord button and watch arround any cube in scene, then click stopRecord button
download video by windows device portal. the video just have webcamera image, you cannot see any cube or button.

Expected behavior
Hope the holographic image is superimposed on the webcamera image, like the recording function in the start menu
Screenshots
I paste my code, any other settings are default

Your setup (please complete the following information)

Unity Version [e.g. 2020.3.34f1c2]
MRTK Version [e.g. v2.8.2]

Target platform (please complete the following information)

HoloLens 2

sorry, I found the reason，I ignored the first parameter "VideoCapture.CreateAsync(false, OnVideoCaptureCreated)".


QueueInput/input_queue: Skipping cancelled dequeue attempt with queue not closed

Hi,
I'm not sure - what does it mean?
[1212 13:42:36 @base.py:218] Initializing the session ...
[1212 13:42:36 @base.py:225] Graph Finalized.
[1212 13:42:38 @concurrency.py:36] Starting EnqueueThread QueueInput/input_queue ...
2017-12-12 13:42:38.576804: W tensorflow/core/kernels/queue_base.cc:285] _0_QueueInput/input_queue: Skipping cancelled dequeue attempt with queue not closed
After this it goes well. But can you explain please?
I used:
launch_train_with_config(config, QueueInputTrainer()) with one GPU (1 tower)
def get_data():
train = TFRecordData(train_tfrecords_file, size=hm_train_tfrecords, compress=True)
train = BatchData(train, batch_size, remainder=False)

It tries to clear the queue. It does not hurt but I'll see if I can get rid of this annoying message.

Thank you.


Fix(avax): Only read type 7 when burning

Pull request related to this trello task

:tada: This PR is included in version 1.6.1 :tada:
The release is available on npm package (@latest dist-tag)
Your semantic-release bot :package::rocket:


Introduce VectorClockId and use it in rebaser-server

Introduce VectorClockId to separate ChangeSetPointers from VectorClocks. This will make the behavior of the rebaser-server easier to understand because, as it stands today, VectorClockIds are just ChangeSetPointerIds. They share the same ULID. That might not always be the case either, so this change has domain-driven benefits too.
Use the new VectorClockId in rebaser-server and change "updates and conflicts" detection to actually perform as intended. As a result, detection no longer requires ChangeSetPointers directly and only requires VectorClockIds.
Ensure the ChangeSetMessage reflects the new VectorClockId changes. The fields now use "to_rebase" and "onto" prefixes to help imply how to prepare the payload.
Add ChangeSetLoopError to differentiate errors in the rebaser-server outer loop to the inner loop(s).

Cherry-picking...


Data Abstraction in C++

Description 📜
Data Abstraction in C++ with appropriate example
Fixes #4855

Type of change 📝

[x] Documentation (Content Creation in the form of codes or tutorials)

Domain of Contribution 📊

[x] C/CPP

Checklist ✅

[x] I follow Contributing Guidelines & Code of conduct of this project.
[x] I have performed a self-review of my own code or work.
[x] I have commented my code, particularly in hard-to-understand areas.
[x] My changes generates no new warnings.
[x] I'm GWOC'21 contributor

@sakshi168 Seriously?

Plagiarised form here :
https://www.javatpoint.com/data-abstraction-in-cpp


Update datastructure.py

I think MultiDict.lists()'s docstring contain a mistake, origin it say "Return a list of (key, values) pairs", but not true, and not consistent with .values(), listvalues()

CI looks broken, I just change the docstring.


Evaluate phi expressions and save them to test files in advance.

[ ] Only run EO on normalized phi expression.
[ ] Add to README

  - Don't forget to update the generated phi expressions when using a newer EO version.
  - Note down the EO version

We need to run all stages in the pipeline to simulate the actual usage scenario. So, we shouldn't run tests only on normalized PHI programs. Additionally, saving PHI tests won't speed up pipelines by very much.
So, closing this as not planned.


Update CPDM

Please approve. I've updated social media details @keone
First PR #11304
Update PR #11353
Thank You.

merged
as a professional token submitter, you should at least squash your commits before opening PRs (talking about #11304)

okay bro I will do that
Thank You For Your Advice


removes ingesting (legacy) contact-info from incoming pull-requests

Problem
Gossip values should be propagated through push messages and pull responses.
We should not rely on pull requests to propagate gossip data.
Summary of Changes
Removed ingesting (legacy) contact-info from incoming pull-requests.

hey wondering if this PR is an issue since mainnet is still not fully off of 1.18.26. v1.18.26 unstaked validators need to send their LegacyContactInfo via PullRequest to join and stay in the network. this may cause master to become incompatible with mainnet (v1.18.26), at least until everyone upgrades to v2.0.14

hey wondering if this PR is an issue since mainnet is still not fully off of 1.18.26. v1.18.26 unstaked validators need to send their LegacyContactInfo via PullRequest to join and stay in the network. this may cause master to become incompatible with mainnet (v1.18.26), at least until everyone upgrades to v2.0.14

I think as long not a significant amount of stake run this code it is fine. They don't have much impact on propagating LegacyContactInfo from PullRequest because the rest of the cluster propagates those.
You can still run master on mainnet. Again, it will not have noticeable impact on gossip propagation.


Order of applying sql changes does not prevent wrong scripts applying

Environment
Linux 4.15.0-66-generic #75-Ubuntu SMP Tue Oct 1 05:24:09 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
Liquibase Version:
3.8.0
Liquibase Integration & Version: <Pick one: CLI, maven, gradle, spring boot, servlet, etc.>
Maven
Database Vendor & Version:
MySql
Operating System Type & Version:
Ubuntu 18LTS
Description
Want to apply changes - adding a new column and column renaming within the same changelog file.
The changelog file does not contain id attribute for DATABASECHANGELOG table.
When liquibase is triggered, it applies changes, described in the change log: one column is added, another one is renamed correctly.
But it cannot insert a record into DATABASECHANGELOG, cause id is absent in the changelog.
Fixing this script by adding id attribute - does help much, cause now I need somehow restore a previous status of the database.
Steps To Reproduce
Please see a description
Actual Behavior
Please see a description
Expected/Desired Behavior
I see 2 independent solutions:

before the changes are applied, first insert a record into DATABASECHANGELOG. cause it might be not successful. If a record inserting is failed then do not apply changes, until it is not fixed.

In general the current order might leave a database in the state, when you cannot simply resolve it via only changelog script changes.

why id field is mandatory? As a script owner, I do not want to know about the previous id in the DATABASECHANGELOG. I only specify order of scripts in the master log, and liquiabase, in case if id is necessary, should be able to generate a new one by itself. For instance how JPA works: I create an entity with some fields, and do not set manually id. It is generated implicitly from either a sequence, or a special table, or based on GUID (id generation is configurable based on a generation strategy). Consumer does not set it explicitly. The same option would help a lot with liquibase.

┆Issue is synchronized with this Jira Bug by Unito

Thanks @AlexandrSokolov for this suggestion of generating a id if their is not one.   Do you have a sample changeset that you are using that shows the issue?  Are you manually updating the DATABASECHANGELOG table outside of liquibase?  Have you tried using the changeLogSync command after you have added an id to the changelog file? (https://docs.liquibase.com/tools-integrations/ant/commands/changelogsync.html?Highlight=changeLogSync)

Hello, I've attached examples. Please remove txt extension, to be able to use them. Comments in the db.add.user.yml file clearly describes the issue.
Regarding to your last 2 questions: in dev environment I could just drop everything and recreated it, in order to save time.
If you do not want/cannot change the order and first add a record into the DATABASECHANGELOG table, then you can add a validation of data, required for this table. Now id and I suppose auther are required fields.
And still hope, that id field will be generated by liquiabe. YOu could, for instance, make it configurable, via change log files, for instance globally in  db.changelog-master, or programmatically via LiquibaseIdGeneration annotation, for instance.
db.add.user.yml.txt
db.changelog-master.yml.txt
db.init.changelog.yml.txt


Align fatal error

Version 2.1.0
In preview mode
$$
\begin{align*}
x = \frac{1}{2}\\\
&=
\end{align*}
$$

Putting the cursor after &= in the second line of the align block and pressing Space completely block obsidian and send the CPU to 100% load (it could be an infinite loop). After that I am not even able to close the app or interact with it in any way.
Even just by doing
$$
\\

$$

as soon as I press the Space key in the new line it breaks, but if I put a space after the \\  it works fine.
The error does not occur in legacy mode.
Hope this can be useful.
Thanks for the live preview update.

thank you, thank you so much! I resolved it with update v2.1.1  @Nemoos-0


Allow hevc config version to be 0 or 1

If you are handling version 0, you'd better limit the configurationVersion to be 0 or 1, rather than not checking
Like this
https://chromium.googlesource.com/chromium/src/media/+/master/formats/mp4/hevc.cc#167

Merged, thanks!


copyTo "File does not exist"

Does gridFS not support the copyTo option? I always get

(STDERR) ufs: cannot copy file "4Ra9AM3fkaCCWAgzj" (File does not exist)

The id does exist in collection uploadfs.files
_id	:	4Ra9AM3fkaCCWAgzj
filename	:	4Ra9AM3fkaCCWAgzj
contentType	:	image/png
length	:	32358
chunkSize	:	261120
uploadDate	:	2016-08-10 12:12:56
aliases	:	null
metadata	:	null
md5	:	1592f38d5e1f8da15783b899d6c72305

And delivers the wanted file.
https://github.com/jalik/jalik-ufs/blob/master/ufs-store.js#L147
But catches the error when store.write is executed.
https://github.com/jalik/jalik-ufs/blob/master/ufs-store.js#L174
It works when using the local addon. What do I miss?
Meteor.photos = new Mongo.Collection('photos')
Meteor.thumbnails128 = new Mongo.Collection('thumbnails-128')
Meteor.thumbnails64 = new Mongo.Collection('thumbnails-64')

Meteor.thumbnail128Store = new UploadFS.store.GridFS({
  collection: Meteor.thumbnails128,
  name: 'thumbnails-128',
  chunkSize: 1024 * 255,
  transformWrite: function(readStream, writeStream, fileId, file) {
    let gm = Npm.require('gm')
    if (gm) {
      gm(readStream)
        .resize(128, 128)
        .gravity('Center')
        .extent(128, 128)
        .quality(75)
        .stream().pipe(writeStream)
    } else {
      console.error("gm is not available", file)
    }
  }
})

Meteor.thumbnail64Store = new UploadFS.store.GridFS({
  collection: Meteor.thumbnails64,
  name: 'thumbnails-64',
  chunkSize: 1024 * 255,
  transformWrite: function(readStream, writeStream, fileId, file) {
    let gm = Npm.require('gm')
    if (gm) {
      gm(readStream)
        .resize(64, 64)
        .gravity('Center')
        .extent(64, 64)
        .quality(75)
        .stream().pipe(writeStream)
    } else {
      console.error("gm is not available", file)
    }
  }
})

Meteor.photosStore = new UploadFS.store.GridFS({
  collection: Meteor.photos,
  name: 'photos',
  chunkSize: 1024 * 255,
  filter: new UploadFS.Filter({
    minSize: 1,
    maxSize: 1024 * 1000, // 1MB,
    contentTypes: ['image/*']
  }),
  copyTo: [
    Meteor.thumbnail128Store,
    Meteor.thumbnail64Store
  ]
})

Hi @saschb2b , I'll do some tests to see what is the problem.

Hi @saschb2b, sorry for the late answer, after some tests I had no problem using your code, it's working fine, no errors. Is it still an issue or did you figured out yourself what was wrong ?

try to install GraphicsMagick.

@igor90007 I think that's the problem, I'll add some instructions in the doc because it seems not obvious for people to install libs they are using...


Android: Story saved on Android and unsaved on Web still shows up as saved on Android

This has been a problem for a long time now, the way to reproduce is:

save a story on android
unsave it on web
open saved stories on android
-> story still shows up in saved stories list on android
So apparently the App knows that some stories got unsaved, but are still wrongly retained in the actual list.

However, the counter has been reduced appropriately so there will be more stories in the saved story view than the number in the overview screen. Every time I unsave a story on Web that I saved before on Android, I have to unsave on Android again. This problem reoccurs after reinstalling (even though the current wrongly saved stories disappear).

Fixed via https://github.com/samuelclay/NewsBlur/issues/1367


Fix: Ensure correct hexadecimal representation for .toString('hex') and .toString(16) methods

Fixes #60
Root Cause
The original implementation of the toString method was designed to only handle numerical base representations. When a string-based representation like 'hex' was passed to the method, it was not recognized or processed, and the method defaulted to returning the decimal string representation of the number (base = 10)
Summary:

Enhanced the toString method to correctly handle string-based base representations, ensuring that .toString('hex') and .toString(16) return the expected hexadecimal format of the number.
Added a test case to validate the correct conversion of numbers to hexadecimal.

Hey, thanks for your PR this looks good!


Remove version: Microsoft.Edge.Dev version 114.0.1788.0

[Automated] It returns code over 400 in all urls
Microsoft Reviewers: Open in CodeFlow

For moderators
This account is automated by Github Actions and the source code was created by CoolPlayLin. If you have any questions about any pull request, don't hesitate to ping @Exorcism0666, I'll get a notification.

[!important]
Please carefully review these Pull Request before merging. If it is a Pull Request for removing incorrect content and the URLs are issue, free upon manual checking, please close this Pull Request directly. (It is best to inform Exorcism0666 of the closure.)

良い一日をお過ごしください！


Feature request: browser version breakdown over time

In https://github.com/web-platform-dx/feature-set/issues/190#issuecomment-1566918805 and https://github.com/rum-archive/rum-archive/issues/16 I wrote some queries about the browser version data, but I'm not very good at it.
It would be a fantastic service to the community to do this processing and make the results available in its own table, or CSV/JSON file download. What I have in mind would be something similar to https://github.com/dfabulich/baseline-calculator/blob/main/historical-browser-data.json which @dfabulich built from the caniuse data, which I think comes from statcounter.
Having additional data sources to compare and contrast would be great. While the data is already in rumarchive, the ease of access matters.

Interesting idea @foolip!
We've started to pre-generate some datasets for inclusion in the new RUM Insights section of the site:
https://rumarchive.com/insights/
It's still a work in progress, but data is being generated to here:
https://github.com/rum-archive/rum-insights-data/tree/insights_v1/data-output
Maybe we could add a generic browser-verison query to the data?
CC @rmarx

Hey both,
This was something that @bluesmoon also suggested internally and I am definitely planning to look into it for the next iteration of RUM Insights. For a non-table visualization I need to improve my stacked-histogram implementation, but that should be possible :P
That will then automatically also make a public JSON available that others can use to visualise/consume the data on their own.

That sounds really good @rmarx, appreciate anything you're able to share!

Hello @foolip,
This is now available as a diagram on our Insights page at: https://rumarchive.com/insights/#ua-version-marketshare
The raw query data from bigquery (and all other details) are also available at https://github.com/rum-archive/rum-insights-data (the query is called useragentversion_useragentfamily_devicetype, the bigquery results are in data-cache and the processed results used on the website are in data-output. I'm saying this mainly because the results on the website are filtered to the most popular browsers and only show percentages; if you want raw counts or more browsers, you can use the JSON files yourself :)
Feedback definitely welcome!


Add Status section to MachineHealthCheck object

This is a port of https://github.com/openshift/machine-api-operator/pull/329
I plan to add unittests for MachineHealthCheck status section in following commits. I'll also add more information about unhealthy machines into status.

srry you will need to rebase:(

I've tested it in a KNI cluster. In order to make MHC controller able to update MHC status, I also had to update rules (commit https://github.com/kubevirt/machine-remediation-operator/pull/46/commits/7b9733fda7ca0991002eadae876f5a15f6dec402)

/lgtm
/approve

@ondrejmular Great job!


Remove Children component when calling despawn_descendants

Objective
Fix #8474

Should this get a regression test?

I would like to see a regression test, yeah :)


Replicating Table 4, Image folder error

Hi,
I am trying to replicate the numbers in the Table 4, using ImageNet dataset. However, I am seeing this error, for the val/ data folder.
 raise FileNotFoundError(f"Couldn't find any class folder in {directory}.")
I saw online that the val/ folder should be of the structure:
val
----
  |-- label_class_0
         |-- image1.JPEG
         |-- image2.JPEG
.....

However, using the imageget website dataset ILSVRC2012, I am not sure how to unzip into label/image.JPEG format automatically. Could you please provide some guidance on how to set up the ImageNet dataset properly?
Thank you very much!

Hi,
Our dataset was downloaded many years ago, and our validation images are sorted into class-specific folders by default. We are not sure what the file structure looks like right now. Do you have any file like val_annotations.txt that details which image belongs to which class? If yes, then you can use that to reconstruct your val/. We also found https://gist.github.com/antoinebrl/7d00d5cb6c95ef194c737392ef7e476a  and  https://github.com/DoranLyong/ImageNet2012-download, which have data preparation scripts that might help.


Android demo GPU: updating dependencies and migration to Android X

Aligning Android demo GPU with the tutorial:
https://www.tensorflow.org/lite/performance/gpu#android_with_android_studio

Updating dependencies to the most actual ones
Migration to AndroidX

The app is tested and working as expected.

@xunkai55 could you review this PR?

@applikationsprogramvara Can you please sign CLA. Thanks!

I've signed the CLA under https://cla.developers.google.com/clas

@lintian06

(1) Conflicting files: tensorflow/lite/java/demo/app/build.gradle, tensorflow/lite/java/demo/build.gradle

Conflict has been resolved. I took the version from master.

(2) The bazel BUILD error for //tensorflow/lite/java/demo/app/src/main:TfLiteCameraDemo

I don't really understand what this bazel BUILD is doing. Probably it should be also somehow tuned. The change I did is working all right when I import demo app in Android studio. The app is also building and running all right on a real device.
Could you give some advice what bazel BUILD is doing and how build issue can be resolved?

Bazel is a build tool similar to make/maven etc, and supports cross-language compilation and resolves dependencies. TensorFlow uses it to build all projects, and the build rule is BUILD file related to the path.
You can install bazelisk that determines the bazel version smartly.
alias bazel='path/to/bazelisk or bazel'

bazel build //tensorflow/lite/java/demo/app/src/main:TfLiteCameraDemo  # to build this demo target.

@lintian06 thank you for the explanation. I used Bazel all right for building TFLite libraries for Android and iOS.
But the current usage of building (?) the Android app in Bazel is puzzling me. What is the purpose? To get a complete APK or a Bundle?
Actually if try to build TfLiteCameraDemo using Bazel using the command:
bazel build //tensorflow/lite/java/demo/app/src/main:TfLiteCameraDemo

I get the following error:
ERROR: /Users/user/tensorflow/tensorflow/lite/java/demo/app/src/main/BUILD:8:15: no such package<EMAIL_ADDRESS>BUILD file not found in directory 'com.android.support' of external repository @androidsdk. Add a BUILD file to a directory to mark it as a package. and referenced by '//tensorflow/lite/java/demo/app/src/main:TfLiteCameraDemo'
This can be partially understandable, because we changed com.android.support package to androidx.appcompat in https://github.com/tensorflow/tensorflow/pull/48577/commits/06ae16ee03613e285d666d7c88956780c492c826.
I have pretty much the same error if I run the same command in the master branch. Which means that I am still missing some build configuration. And yes, I have my ANDROID_SDK and ANDROID_NDK set and run ./confugure before the build. I don't think that these paths are critical, because Gradle saves androidx.appcompat to a separate cache directory.
I am just wondering how @xunkai55 managed to build it when he made his changes recently: https://github.com/tensorflow/tensorflow/commit/0a1f70f80d1308d388ed9c1d40d246a57104ff74. Can we ask him about it?

Hi,
Sorry for the late reply. That commit 0a1f70f was mainly about doc change and gradle change, so the bazel part was untouched in that CL.
To build master, you need to run ./configure as you mentioned and correctly configure the Android part. I'd recommend
SDK=23, build_tool_version=28.0.0, NDK=r19c. You might need to install them locally using Android tools.
To resolve the build failure, it's a different story, because it seems that "androidx.compat" is not yet a dependency of TensorFlow.

@applikationsprogramvara Can you please check @xunkai55's comments and keep us posted ? Thanks!

@gbaned I am confused by the comment https://github.com/tensorflow/tensorflow/pull/48577#issuecomment-856185077 , because in the current commit mainly build.gradle was changed and Bazel part stayed untouched.
Anyway the logic behind this PR is totally different: it is not about  building the app in some testing environment, but to let the developers use the latest version of Android framework available and not update it manually after pulling the repository.
I would suggest to close the PR without merging on the ground of that testing environment does not support the latest Android framework.

@applikationsprogramvara Shall we close the PR then, please confirm. Thank you.


systemd-failed-units doesn't update

I've been having issues with the systemd-failed-units module not updating. If I login with a failed unit then it will successfully report that failed unit. However, if I then restart that unit and it is no longer failing, the waybar module will not reflect this change until I next login (or restart waybar).
I'm not too familiar with the way the modules are implemented but I noticed that in the src for systemd-failed-units it doesn't implement the interval option. I have tried setting both interval and restart-interval and neither has made a difference. Based on this I assume that the module is supposed to continuously check the units without exiting.
Has anyone else had this issue? I have installed waybar via nixpkgs (unstable).

Just tried it out and fixed a system error, the module was updated right away. It does so by handling DBus signals. No intervals needed. The module hasn't really changed since its inception. Theoretically nixpgks could have patched it, but I doubt it. So I'm probably using the same code.
The best idea I can offer for troubleshooting is to look at Waybar's output, see if there are any error messages.


DMP-3991: Hide "File deletion" screen when manual deletion is not enabled

Jira link
See DMP-3991
Change description
Hide "File deletion" screen when manual deletion is not enabled
Checklist

[x] commit messages are meaningful and follow good commit message guidelines
[x] tests have been updated / new tests has been added (if needed)

Would like to see the disabled case in the functional tests if possible.
cy.intercept() can be used in cypress to to override the response from the config endpoint to return a mock object with the feature flag set to false.


Custom Configuration Help Needed

I have a situation in which myself and a couple of coworkers are unable to access a website when using our Verizon Personal Hotspots for internet access.  (Which we do often when traveling) I can access the website just fine from my home network.  I own a couple of domain names and thought I could possibly use Nginx Proxy Manager to act as a transparent proxy while connected to the Verizon Hotspot.  I can't for the life of me figure out how to properly configure Nginx Proxy Manager.
Here is the intent:
When away from the house and on my Verizon Hotspot, I want to be able to point my web browser at one of my domain names and have the proxy server which is located on my home network forward and rewrite the URL to the external website which we normally can't reach from the Verizon Hotspot.
Hopefully someone can point me in the right direction.

I am not sure if I completely understand your usecase.
What's wrong with just SSHing into your local home network and setup an local tunnel?
This way you can forward the traffic from wherever you want through your home network.


Update to rp2040-hal 0.3.0 crates.io release

Update to the released HAL so users don't have to use cargo.toml patches to use ws2812-pio-rs

This change was committed as part of 80da3dd9827927915b7029426f073f9b3c47bd37, closing this as a duplicate