VHI Asset export Stats

VHI Asset export Stats
Currently we only store to DRIVE exports in https://github.com/swisstopo/topo-satromo/blob/main/tools/completed_tasks.csv for VHI, but not the export to ASSETS,  ( EECU about ~6500  for each of VEGETATION and FOREST), so per month it adds up about 100 hours of EECU.
Describe the solution you'd like
When running publisher, when processing the VHI, also check for  the ASSET export stats ( might be done in a similar was as the chekc for the s2-sr export) so we allways have ALL stats in the completed_tasks.csv
Describe alternatives you've considered

we just estimate additional 100 hours for each month for the VHI

Additional context
Optional for V2: we do all calculus in python and not GEE for VHI, then we also get rid of the cost...

won't fix


Orphans

This PR fixes the issue with orphan fixup commits being merged without a warning. The fix conducts a check for orphan fixups between rebase and checkup; in case one or more orphan fixups detected, a warning is raised and no merge is made. Fixes #37.

Just a drive-by, but something went wrong with the Git history of your branch, these commits shouldn't be there:


[backport] Record Cython build version

Backport of #4164

[automatic post] Jenkins, test this please.

Jenkins CI test (for commit d85e4397243f83a6bfc27df048abd17895d5aac5, target branch v8) succeeded!

PTAL

pfnCI, test this please.

Jenkins CI test (for commit 77526f8feab82cb1a269e9ed41e8f5f352dfdb91, target branch v8) succeeded!

Jenkins CI test (for commit 77526f8feab82cb1a269e9ed41e8f5f352dfdb91, target branch v8) failed with status FAILURE.


D2-543 - Smart Art Basic XML Access

There is a lot going on here.  I'll try to give a basic run down but I honestly don't have a completely understanding of everything.
Smart Art objects are held in a Graphic Frame just like Charts and Tables.  Like Charts, the smart art contents are stored in a different, related xml file.  Unlike charts, this is actually 5 different XML files.  4 of those are referenced directly by the slide while the 5th (diagram.xml) is referenced from within the data.xml file.
My basic approach here was to get enough implementation that I could basically dump each of those 5 files into a string and then reproduce them with the batch tester.  Ultimately, it worked pretty smoothly once I got it all worked out.
The most complicated part was retrieving and updating the reference to diagram.xml from within data.xml but I eventually got it.
This is also built so that it can work with D2-523 which makes it work with the slide importer.

Just as a heads up, I ran a medium batch on our current Deckbot develop branch using this branch of python-pptx and we are good to release this without requiring a deckbot release.  They can be done independently, this just needs to be done before the SmartArt component of the importer.


Nasty error loop if used together with PySide6's snake_case feature

When using qasync together with the snake_case feature of PySide6 the following messages will be printed every few milliseconds:

Traceback (most recent call last):
File "REDACTED/.venv/lib/python3.10/site-packages/qasync/init.py", line 287, in timerEvent
self.killTimer(timerid)
Traceback (most recent call last):
File "REDACTED/.venv/lib/python3.10/site-packages/qasync/init.py", line 285, in timerEvent
del self.__callbacks[timerid]
KeyError: 1

The base issue is that snake_case causes PySide to export all methods in snake_case instead of camelCase.
A fix would be for qasync to check for the existence of the expected method and otherwise assume snake_case:
class _SimpleTimer(QtCore.QObject):
    def __killTimer(self, timerId):
        try:
          self.killTimer(timerId)
        except AttributeError:
          self.kill_timer(timerId)

snake_case is one of the new features added in PySide6 which cane be user enabled but affect the whole runtime.
true_property would be another which replaces the .getXY() and .xy pairs with real assignable object properties.
Both of them can be enabled like this:
import PySide6
from __feature__ import (snake_case, true_property)

Would be quite a change to add support for this, at least snake_case and true_property would have to be separate PRs. I am not able to even run a basic app:
Traceback (most recent call last):
  File "E:\qasync\qasync\__init__.py", line 347, in __init__
    signaller.signal.connect(lambda callback, args: self.call_soon(callback, *args))
AttributeError: 'Signaller' object has no attribute 'disconnectNotify'

Is there anything special about installing pyside6 with snake_case enabled? If we could pick-up which features are enabled and use different variants based on that, instead of a bunch of try/excepts, I could look into it.

Is there anything special about installing pyside6 with snake_case enabled? If we could pick-up which features are enabled and use different variants based on that, instead of a bunch of try/excepts, I could look into it.

Sadly, no.
Both are features you can enable at runtime and part of the normal PySide6 as is available from PyPi.
And sadly no way I know off to test in a module like qasync if the parent module has them enabled outside of inspecting a "known good" class like QObject.
>>> import PySide6
>>> from PySide6.QtCore import QObject

>>> hasattr(QObject, 'objectName')
True

>>> hasattr(QObject, 'setObjectName')
True

>>> hasattr(QObject, 'object_name')
False

>>> from __feature__ import(snake_case, true_property)

>>> hasattr(QObject, 'objectName')
False

>>> hasattr(QObject, 'setObjectName')
False

>>> hasattr(QObject, 'object_name')
True

Something like this would work to check the current state:
from PySide6.QtCore import QObject

def is_snake_case_enabled() -> bool:
    return hasattr(QObject, 'object_name')

def is_true_property_enabled() -> bool:
    return hasattr(QObject, 'setObjectName') == False


Subnet overlaps

Consider adding feature to allow testing one range against another.
Useful for testing for subnet overlaps (i.e. if one range is contained in another)

fixed in commit 4490a960b826d0292dce9ac477bdbadcf7e61d66


Hi, seanchas116, and all.
I rebuild this SimpleDALPlugin under os 10.15 with Xcode 12.0 and the result is good that can be found by QuickTime as an input camera.
What I really want is I can use this plugin under mac 10.14 also.
What I did ...
(1):
I want to share this plugin file to another mac laptop with os version 10.14, but after moving this file to /Library/CoreMediaIO/Plug-Ins/DAL/, it is not listed as a Quicktime input camera. (Log as below)
(2:)
I rebuild this project on that 10.14 laptop with Xcode 10.1 and still get the same load failed result.(Same Log as below)
(I change a few swift code and Xcode target from 10.15 to 10.14 to get build pass only.)
Seems like the error keeps showing:  "dependent dylib<EMAIL_ADDRESS>not found for..."
Any suggestion will be a big help :)
Thanks.
Log from console:
default	10:56:26.571525 -0500	QuickTime Player	Error loading /Library/CoreMediaIO/Plug-Ins/DAL/SimpleDALPlugin.plugin/Contents/MacOS/SimpleDALPlugin:  dlopen(/Library/CoreMediaIO/Plug-Ins/DAL/SimpleDALPlugin.plugin/Contents/MacOS/SimpleDALPlugin, 0x0106): dependent dylib<EMAIL_ADDRESS>not found for '/Library/CoreMediaIO/Plug-Ins/DAL/SimpleDALPlugin.plugin/Contents/MacOS/SimpleDALPlugin'
default	10:56:26.571578 -0500	QuickTime Player	Cannot find function pointer simpleDALPluginMain for factory <CFUUID 0x6000014073a0> 25EBE7ED-3E65-4ACF-8DBD-3ABABBF9C161 in CFBundle/CFPlugIn 0x7fb478d29460 </Library/CoreMediaIO/Plug-Ins/DAL/SimpleDALPlugin.plugin> (bundle, not loaded)

Updated for who hit this issue.
I solved it by setting "Always Embed Swift Standard Libraries = YES" in the Xcode project setting -> build option.
Solved.


V0.0.4

@andrewilyas it seems that all the commits in this PR are already in the v0.0.1 branch. Can you confirm and close this PR if that's the case. (I think we should skip v0.0.4 and just go straight to v1.0.0)

Good idea, closing this.


can't support  .19041.1682

[+] Select option 1, install...
[*] Installing...
[+] termsrv.dll 10.0.19041.1682
[-] Not support the version of termsrv, please contact author to update.

termsrv.txt
rename to .dll

hi, you can download SuperRDP2 to open AutoSupport.


feat: write test function for get_matching_column_names

I keep running into the error ModuleNotFoundError: No module named features_creator when running pytest. I found a workaround by creating conftest.py in the src folder and deleting __init__.py from src/features_creator. I really don't think that this is what I'm supposed to do.
I'll try to go to office hours tomorrow to see if I can find a better solution.

I solved my pytest issue - it boiled down to the fact that my virtual environment was using a different python version.


Fix all dataflow tests and make them mandatory.

A number of the cloud and bucket tests are failing on google dataflow.  These need to be fixed.
#750 is a pre-requisite.
Once the tests are fixed we should make these tests mandatory.

As @droazen was saying in #656 16 days ago, this is becoming urgent.
It appears this problem has prevented us from noticing a big regression in the Hellbender code that broke  BaseRecalibratorDataflow (possibly because it broke the BAM reader)

I just tried gradle testAll on the master branch and I see RefAPISourceUnitTest failing.
These regressions make progress a lot harder, and unfairly shift effort from those not writing cloud code to those who are.
What I suggest we do is that instead of having just "bucket" and "cloud" groups, we split into "bucket", "cloud", "bucket_todo" and "cloud_todo".
We make "bucket" and "cloud" mandatory right now.
The tests that don't pass, we move to the "_todo" categories. This way the tests that work now will keep on working - otherwise we'll never get out of this mess. Then we can track the number of _todo tests left and make sure they go down.

#823 is making good progress in this direction.

With #825 we're now at 12 passing cloud tests (mandatory), and 7 todos.

This issue was moved to broadinstitute/hellbender-dataflow#19


pac data - allow setting number of input threads

Hi PAC CLI Team,
the CMT has an undocumenten parameter called "numberofinputthreads". In past, when you downloaded the CMT it was set to 5. In PAC CLI, it seems that this param is set to 1, which highly slow down the import speed.
It would be great, if we can specifiy the numberofinputthreads param via pac cli. for example pac data - import --numberofinputthreads 20 -d "importpath"
numberofinputthreads set to 19 in app.config

CMT Desktop Verison will use 19 Threads

pac cli data import only uses 1 Thread in default configuration

I was also curious about this setting yesterday, and couldn't find any documentation for it as well...
Does it effect the speed of the import when you where using CMT with 19 instead of 5?
Will it have any effect on the Export as well?
Did you try changing the setting for the PAC CLI?


libmysofa: 1.3.2 -> 1.3.3

Changes: https://github.com/hoene/libmysofa/releases/tag/latest

Things done

Built on platform(s)

[x] 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.11 Release Notes (or backporting 23.11 and 24.05 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

[x] Fits CONTRIBUTING.md.

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

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:
https://discourse.nixos.org/t/prs-ready-for-review/3032/4862

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:
https://discourse.nixos.org/t/prs-ready-for-review/3032/4909


Can't compare nested elements from json

Hi,
I use package 1.4.1 comparing two json files to find differencies ignoring some dynamic data fields (e.g Id)
Having the following json files, I want to ignore only Data.Id and Note fields
JSON_1:
{
"Data": [
{
"Id": 7353,
"Name": null,
"Type": null,
"Note": "Transfer test",
"DocumentType": null
}
],
"Id": 356,
"IsSuccess": true,
"ErrorReason": "None",
"ErrorCode": "None"
}
JSON_2:
{
"Data": [
{
"Id": 6563,
"Name": null,
"Type": null,
"Note": "Transfer test attachment",
"DocumentType": null
}
],
"Id": 245,
"IsSuccess": true,
"ErrorReason": "None",
"ErrorCode": "None"
}
I use code from Example 3:
var ignoredValues = new List { "Data.Id", "Note" };
CompareJsonFiles(ignoredValues);
private void CompareJsonFiles(List ignoredFields = null)
{
var jsonExpected = JsonConvert.DeserializeObject(File.ReadAllText(pathToJSON_1));
var jsonActual = JsonConvert.DeserializeObject(File.ReadAllText(pathToJSON_2));
var comparer = new Comparer();

if (ignoredFields != null)
    foreach (var field in ignoredFields)
        comparer.AddComparerOverride(field, DoNotCompareValueComparer.Instance);

comparer.Compare(jsonExpected, jsonActual, out IEnumerable<Difference> differences);

}
I expect having diff only for Id but in the result have difference for Id and Data.Id. If I specify CompareJsonFiles("Id", "Note"), it will ignore all Id, nested and non-nested ones.
Could you please help me with ignoring nested elements as in this case? Seems that indexing by dot (Data.Id) doesn't work

@4yck, you are right. Comparer doesn't support memberName with dots.
As a workaround, you can  compare objects then filter differences by MemberPath
Does that work for you?

I guess it will be ok for me, thank you @ValeraT1982 !


Ctrlclick buttons

We can yes

quick verify using only anchor tag will translate it to this?

    Contribute on Github

There's a lot of buttons being used where it should be anchors, so it would be best to go through every usage of  and see if its well used

it may be wiser to make a component for this, so we can easily implement this behaviour at more places?

I recommend against this. You will likely run into the problem where the abstraction you create is more limiting than helping. Given that they are relatively simple navigation elements, a regular  should suffice.

i fail to properly allign the text with the icons, if i change the icon padding-top it makes the icon smaller ?! weird... if someone has a suggestion on how to allign this. Shoot!

I think you can use flexbox and align-items: center for that: https://stackoverflow.com/a/489394

I think you can use flexbox and align-items: center for that: https://stackoverflow.com/a/489394

i thought because it was allready being used by the parent that the child (icon and text) inherent this properties, but this what not the case. thanks for the suggestion

Thanks!


[Possible improvement] firstOrCreate method not working with translations relation.

Hello!
I'm currently running into a limitation of the Translatable module which causes me to write more code than necessary - to my understanding. It's not really a big issue since the 'issue' can be easily circumenvented, but it's forcing me to execute more queries than necessary, which causes extra wasted time (which adds up on processing thousands of resources).
Currently when I'm trying to use the firstOrCreate() method from Laravel it causes the following QueryException:
Illuminate\Database\QueryException with message 'SQLSTATE[42S22]: Column not found: 1054 Unknown column 'nl' in 'where clause' (SQL: select * from `features` where (`nl` = test) and `features`.`deleted_at` is null limit 1)'`.

The code that causes this error is as follows;
        $_cCategory = \App\Category::firstOrCreate([
            $sLocale => [
                'name'          => $sName,
                'description'   => $sDescription
            ]
        ]);

(The $sLocale variable would in this case be equal to 'nl'.)
A way to circumenvent this issue using the Translatable module is by refactoring the code into this;
        // Prepare an Eloquent statement.
        $_eQuery = \App\CategoryTranslation::where('name', $sName)
            ->where('locale', $sLocale);

        // Check if the Category Translation exists.
        if ($_eQuery->exists()) {
            // Retrieve the corresponding Category Resource.
            $_cCategory = \App\Category::findOrFail($_eQuery->firstOrFail()->category_id);

            // And return it to the caller.
            return $_cCategory;
        }

        // Create a new Category with
        // it's translation data.
        $_cCategory = \App\Category::create([
            $sLocale => [
                'name'          => $sName,
                'description'   => $sDescription,
            ]
        ]);

        // Return the base Category resource.
        return $_cCategory;

As you can see it requires a few more steps and possibly a few more queries compared to the firstOrCreate() method - adding up time if you need to process thousands of resources.
Consider this 'issue' as a Quality of Code improvement to allow for cleaner - and possibly faster - code.

Even this could be reduced to two queries, the same findOrCreate() produces.
try {
    return Category::whereHas('translations', function(Builder $query) use ($name, $locale) {
        $query->where('name', $name)->where('locale', $locale);
    })->firstOrFail();
} catch(ModelNotFoundException $e) {
    return Category::create([
        $locale => [
            'name' => $name,
            'description' => $description,
        ],
    ]);
}

To solve this in the package in a dynamic way it would produce tons of more code and reduces performance a lot. The following things have to be done in the package:

detect if it's a translatable attribute
get locale and attribute name
put it into a structured array
create the query

Cause of the fact that it could be solved in 5 lines and two queries (same as internal laravel logic) by your own I recommend to create your own method like findOrCreateByTranslation.


How could I use this with ember-elsewhere?

I'm wondering how hard it would be to set this component up inside an ember-elsewhere container that is rendered in place as opposed to the way the docs currently state to set it up?
I would like to be able to have this button to toggle a menu:
    <button
      class="global-navigation__button global-navigation__main-menu"
      data-test-main-menu-button=true
      {{action (toggle 'showMainMenu' this)}}
    >
      {{font-icon 'bars'}}
    </button>

{{#if showMainMenu}}
  {{to-elsewhere
    named='slideout-menu'
    send=(hash
      component=(component 'to-elsewhere/mobile-nav')
      isOpen=showMainMenu
      onClose=(toggle 'showMainMenu' this)
  )}}
{{/if}}

Using my elsewhere container:
{{#from-elsewhere name="slideout-menu" as |elsewhere|}}
  {{#if elsewhere}}
    {{#burger-menu as |burger|}}
      {{#burger.menu itemTagName="li" as |menu|}}
        <button {{action burger.state.actions.close}}>Close</button>
        {{elsewhere.component}}
      {{/burger.menu}}
    {{/burger-menu}}
  {{/if}}
{{/from-elsewhere}}

This is much more ideal because I can render a menu in-place from different parts of the app (I have different menu use-cases for certain things)
Does anyone know if this is possible w/current set up?
Thanks

went with another solution that supports ^^, thanks


Issue with migration

I could not migrate without renaming migration class to "CreateCredentialsTable". Don't know if this bug is just for me or for everyone. I have Laravel v8. Please check it out. I think it is because migration name, and class differance.
BTW Great Package. Thank you.

#11 fixes this.


Emit detailed compiler trace under -Yprofile

Suitable for viewing directly in chrome://tracing, or manipulation
with the underlying tooling at:
https://github.com/catapult-project/catapult/tree/master/tracing

Time spent completing lazy types is excluded from the callsite,
and instead attributed to the symbol being completed itself.
The top-most implicit search is tracked.
macro expansions are tracked the trace

How to test this yourself:
Publish this PR locally
$ sbt
> set scala.build.ScriptCommands.enableOptimizer ++ scala.build.ScriptCommands.noDocs ++ ((baseVersionSuffix in Global := "SHA"):: Nil)
[info] Defining */*:baseVersionSuffix, {.}/compile:packageDoc::publishArtifact, {.}/compile:scalacOptions
[info] The new values will be used by */*:versionProperties, bootstrap/*:artifacts and 33 others.
[info] 	Run `last` for details.
[info] Reapplying settings...
[info] *** Welcome to the sbt build definition for Scala! ***
[info] Check README.md for more information.
> publishLocal

...
[info] 	published scala-compiler to /Users/jz/.ivy2/local/org.scala-lang/scala-compiler/2.12.8-bin-4c77697/jars/scala-compiler.jar
[info] 	published ivy to /Users/jz/.ivy2/local/org.scala-lang/scala-compiler/2.12.8-bin-4c77697/ivys/ivy.xml

Modify a project to add the compiler options and to depend on this version:
/code/guardian-frontend on master*
$ git diff head -U2
diff --git a/project/ProjectSettings.scala b/project/ProjectSettings.scala
index f8ffd13797..cf823f4443 100644
--- a/project/ProjectSettings.scala
+++ b/project/ProjectSettings.scala
@@ -26,5 +26,5 @@ object ProjectSettings {
     sources in (Compile,doc) := Seq.empty,
     doc in Compile := target.map(_ / "none").value,
-    scalaVersion := "2.12.7",
+    scalaVersion := "2.12.8-bin-4c77697",
     initialize := {
       val _ = initialize.value
@@ -36,4 +36,6 @@ object ProjectSettings {
       clean.all(allProjects)
     }.value
+  ) ++ Seq(Compile, Test).map(config =>
+    scalacOptions in config := List("-Yprofile-enabled", "-Yprofile-destination", target.value / config.toString + ".csv")
   )

Build
$ sbt -J-Xmx1G clean test:compile clean test:compile
...
Trace file: /Users/jz/code/guardian-frontend/sport/target/test.trace
[info] Done compiling.
Trace file: /Users/jz/code/guardian-frontend/applications/target/test.trace
[info] Done compiling.
[success] Total time: 65 s, completed 05/10/2018 2:19:11 PM

Sample .trace files
View in Chrome
Enter chrome://tracing, and open a .trace file.
Combine Trace Files (optional)
$ (echo '{"traceEvents": [ {"name": "process_name", "ph": "M", "pid": -1, "tid": 2347,"args": {"name": "dummy"}}'; (for f in $(find . -name '*.trace'); do cat $f | perl -pne 's/{"traceEvents": \[\n/,/' |  perl -pne 's/]}//'; done) | egrep -v '^,$'; echo ']}') > /tmp/combined.trace

Generates combined.trace.zip

I'm working on the post-processing tool https://github.com/retronym/chrome-trace-to-flamegraph
This tool should be able:

Split traces that span a stop-the-world GC event into a pre- and post- span that exclude the time that the JVM was inactive.
When a type completor starts: stop the in-progress span and pretend that the recursive frames of the completer where the base of the stack. When we pop out of the completion, re-start the stopped enclosing frame.
output to a compressed Chrome Trace format, collapsing begin/end events into complete events for compression, and maybe further compressing by symbolizing stack trace elements
output Flamegraph collapsed stack format
output speedscope format

I've made a bit of progress in the post-processing tool. Here's the latest output:
https://drive.google.com/drive/folders/1EJJb7Yy52gpu6wNjOgPfh39D4V2MOihC?usp=sharing

Moved to https://github.com/scala/scala/pull/7364


Qusetion: Which mobile device is used? How can I run it on that phone?

Google Pixel?

Hey! Currently on a paper we do have an arm-v7 support, but I have't tested it on a real device yet, and I think it's require some more adaptations for a specific SoC to run on it. Current target is QEMU :)

Got it, I'm looking forward to seeing it running on the device.


403: access_denied

got this error when authenticating: Access blocked: icitry/YoutubeCLI has not completed the Google verification process.
icitry/YoutubeCLI has not completed the Google verification process. The app is currently being tested, and can only be accessed by developer-approved testers. If you think you should have access, contact the developer.
If you are a developer of icitry/YoutubeCLI, see error details.
Error 403: access_denied

nvm


Various HGS improvements by other EURO-NeurIPS teams

While OptiML was the clear winner for the static VRPTW, several other teams made improvements to the static HGS solver for the EURO Meets NeurIPS 2022 competition. We could see if we could benefit from them (or invite them to contribute to this repo?):
Kleopatra (https://github.com/tumBAIS/euro-meets-neurips-2022 not yet available):

Persist unchanged routes (LocalSearch::lastModified) across local searches as SREX does keep some routes unchanged, checking these again after crossover is useless
Don't shuffle correlated neighbours as they introduce bad arcs with limited runtimes (I think we do the same in keeping the order fixed, but they are ordered by index rather than proximity, while this team suggests ordering them by proximity yields faster improvement)?
Reduce iterations until restart because less shuffling causes less randomness in the search

Team SB (https://github.com/yd-kwon/NeurIPS-2022-VRPTW-Competition):

Generalize binary to k-ary tournament to focus more on higher fitness individuals (this gave most performance improvement)
Always remove individuals after number of offspring to encourage diversity (small but significant improvement)
Restart mechanism uses warm start from previous population (rather than completely random)

MTGBWS (https://github.com/steveharenberg/sas-euro-neurips-vrp-2022):

Corrected problematic bugs, integer overflow, division by zero, looping order-sensitive over unordered set (I assume these have all been fixed here as well?)
Rewrite recursive calls that were not inlined (5-10% improvement)
Swap data structures, remove o(n) search by o(1) lookup (not sure what is meant exactly, maybe searching for the first empty route in local search?)
Matrix in 2D array implementation with contiguous memory -> 10% speedup

I do not know about the functional enhancements, but re. fixing existing implementation:

Corrected problematic bugs, integer overflow, division by zero, looping order-sensitive over unordered set (I assume these have all been fixed here as well?)

I'm pretty sure we have fixed most of these along the way as well. To really make sure we need a bit more detail, but Valgrind is happy (other than the case in #113). We use an unordered set only in SREX, and then just for membership tests - not for iteration. So I think we do not have these problems any more.

Rewrite recursive calls that were not inlined (5-10% improvement)

I cannot quickly think of a place where we use recursion, other than in TWS::merge at compile-time. @wouterkool @leonlan do you know other cases?

Swap data structures, remove o(n) search by o(1) lookup (not sure what is meant exactly, maybe searching for the first empty route in local search?)

I think this one relates to their changes in Individual: they switched the proximity structure from a std::map to a std::unordered_map. But that's from logarithmic to constant time, not lineaar to constant. We currently have something that's basically logarithmic for the proximity structure.
If it's that change in Individual, then this is part of something that currently takes <0.5% of runtime in PyVRP, and is probably not worth tinkering with.

Matrix in 2D array implementation with contiguous memory -> 10% speedup

We should try this; it would basically be a free performance improvement if it works as advertised.

@wouterkool do you know when Kleopatra's code is going to be made available?

@wouterkool @leonlan is there anything in this list that we (a) do not yet have, and (b) actually want to have? If so, I propose we split those items off into separate issues and close this one.

None from my side!

I think these contain some nice ideas that could improve performance but if we do not consider that a priority I do not see it happening anytime soon. Maybe an issue is not the place for it but would it be nice to keep somewhere a list of ideas for potential performance improvements?

Except maybe the 2D matrix, if the claim is correct that seems relatively simple yet significant so it may be worth implementing anyway.


LANG-1638: Added docs regarding week year support

Added documentation indicating that DateFormatUtils does not support week year format YYYY like in java.util.Calendar, and it will default to yyyy current year format.

Codecov Report

Merging #924 (bbeb3f4) into master (e0818e3) will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff            @@
##             master     #924   +/-   ##
=========================================
  Coverage     91.70%   91.70%
  Complexity     7415     7415
=========================================
  Files           188      188
  Lines         15893    15893
  Branches       2976     2976
=========================================
  Hits          14574    14574
  Misses          727      727
  Partials        592      592

Impacted Files
Coverage Δ

...org/apache/commons/lang3/time/DateFormatUtils.java
95.55% <ø> (ø)

Continue to review full report at Codecov.

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

https://issues.apache.org/jira/browse/LANG-1638

Hello community. Would someone review this, please?

Should the comment be at the class level instead of duplicated all over? A link to the class comment could also be used.

It looks OK to me, but the text could be improved, I think. Maybe add an example of what's an YYYY and an yyyy expected to match against?

Thank you for the review. I have added a link tag to the Javadoc of GregorianCalendar which contains an explanation of week year. Hopefully that should work. I will add more if required.

Should the comment be at the class level instead of duplicated all over? A link to the class comment could also be used.

Thank you for the suggestion. I agree, and I have moved all the method level docs up to the class level.


Help/Inputs Needed :For executing this example in server less (like AWS lambda)

i am checking and studying the example to run in the server less environment like AWS lambda..
If there is any inputs/guidance please let me know.

You may want to look at using the Actions on Google Node.js library.

Thanks nick for the info!

Can we use actionssdk for smart home control also?
Are all the functions in the smarthome sample shall we implement using
actionssdk?

On Sat, 10 Nov 2018, 01:39 Nick<EMAIL_ADDRESS>wrote:

You may want to look at using the Actions on Google Node.js library
https://github.com/actions-on-google/actions-on-google-nodejs.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/actions-on-google/smart-home-nodejs/issues/197#issuecomment-437480778,
or mute the thread
https://github.com/notifications/unsubscribe-auth/Ad-rX0XKtgv8S0Evucpe3yVZLTcOF125ks5uteEOgaJpZM4YWClq
.

No, you cannot use Actions SDK for smart home. Also, you can't use Dialogflow. Smart home is independent of either tool, as the grammars are predefined. You would be using the smarthome service.

Thanks!

I have studied the interface for smarthome what is mentioned..I need more
information on how to do account linking using oauth using smart home
interfaces?
On Mon, 12 Nov 2018, 02:34 Nick<EMAIL_ADDRESS>wrote:

No, you cannot use Actions SDK for smart home. Also, you can't use
Dialogflow. Smart home is independent of either tool, as the grammars are
predefined. You would be using the smarthome
https://actions-on-google.github.io/actions-on-google-nodejs/interfaces/smarthome.smarthomeapp.html
service.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/actions-on-google/smart-home-nodejs/issues/197#issuecomment-437704799,
or mute the thread
https://github.com/notifications/unsubscribe-auth/Ad-rXwmL8cvzE4_XCKMLEQVCUFn9oT6Uks5uuJD2gaJpZM4YWClq
.

I have studied the interface for smarthome what is mentioned..I need more
information on how to do account linking using oauth using smart home
interfaces?

Ok. Thanks for the info!


docs(ce/admin-api) turn off table of contents

The formatting is incorrect for the table of contents.

NOTE: Please read the CONTRIBUTING.md guidelines before submitting your patch,
and ensure you followed them all:
https://github.com/Kong/docs.konghq.com/blob/master/CONTRIBUTING.md
Summary
SUMMARY_GOES_HERE
Full changelog

[Edited docs to ...]
[Added cool new feature ...]
...

Issues resolved
Fix #XXX

Checklist:

[ ] Commit message & atomicity checked
[ ] Documentation
[ ] Spellchecked my updates
[ ] Ready to be merged

@levfishbluefish I'll do it by main section headings.


Bug: Migration regress on a particular module

PHP Version
7.3, 7.4, 8.0, 8.1
CodeIgniter4 Version
4.1.4, 4.1.5, 4.1.6, 4.1.7
CodeIgniter4 Installation Method
Manual (zip or tar.gz)
Which operating systems have you tested for this bug?
Windows, Linux
Which server did you use?
apache
Database
Mysql
What happened?
The migration regress function is not working fine. I want to regress() on a particular module migration files but not working.
I called the module db migration batch which is 2 it reject the module migration files then regress on modules batch <> 2.
Please explain more on this on how to regress on the particular module without regressing other modules or fix this if is bug.
Thanks
Steps to Reproduce
$module_namespace = 'ShopCart';
$migrate->setNamespace($module_namespace)->regress(2);

Expected Output
I am expecting it to delete the ShopCart migration table
Anything else?
No response

I want to regress() on a particular module migration files

In my understand, the CI4's migration does not work like that.
regress() takes the target batch number, and it has nothing to do with namespaces.
https://codeigniter4.github.io/CodeIgniter4/dbmgmt/migration.html#regress

okay but this feature will be fine and I know they will be other developers who will need this

@ChibuezeAgwuDennis I don't get what you want exactly. You can regress to the batch number in any namespace now.

@kenjis On which version of codeigniter 4

@ChibuezeAgwuDennis What do you mean not working? I can't see your screen, so I don't get what really happened.
What did you do? What did you get? The exact error message?
And can you show us the output php spark migrate:status?

I have extended the MigrationRunner class to do what I want to do with a particular module migration. I think is working fine now to what I want.
@kenjis thanks a lot okay


cFE Integration candidate: 2021-05-25

Context
Testing
Description
PR #1524
Fix #1522, add printf format casts
PR  #1520
Fix #1505, accept "NULL" as entry point
PR #1549
Fix #1538, add capability to generate multiple tables
Authors

@jphickey looks like 1549 broke SCH_LAB, see https://github.com/nasa/cFS/runs/2658714501?check_suite_focus=true

I will check into it

@astrogeco  - Corrected as hotfix in commit d7073fa2.
I had originally patched my build to use the correct app names in the sch_lab and to_lab table builds.  When I set the name back it caused no table file to be built.  Fixed in the above commit by referencing the original list variable in that case.

Also worth noting, I submitted nasa/sch_lab#80 to correct for the infinite loop observed here.  Missing a table file is a condition that should cause SCH_LAB to simply exit with an error - not a continuous spew of error events.


Flutter Web issues after 2.5.0

Details
I'm developing web application in flutter (and vscode) and following problems are observed after upgrading flutter

whenever i save the code it automatically opens random files (eg. binding.dart, matrix4.dart, etc)
whenever i save code changes does not get updated on background i have to focus my chrome tab and then it refreshes and update
i used shimmer animation in my application and the animation is breaking in iOS device (flutter web, iPhone 7 plus) but working perfectly on chrome, firefox and android device

Target Platform: Android, iOS, Web (windows, ubuntu)
Target OS version/browser: latest
Devices: one plus nord, iPhone 7 plus, pc (8 gb ram, intel i3 8th gen)
error logs while scrolling
Please see main.dart i have provided default scroll physics
main.dart
import 'dart:io';
import 'package:nested/nested.dart';
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:url_strategy/url_strategy.dart';

void main() {
  setPathUrlStrategy();
  runApp();
}

class Admin extends StatefulWidget {
  const Admin({Key? key}) : super(key: key);

  @override
  _AdminState createState() => _AdminState();
}

class _AdminState extends State<Admin> {
List<String> items = List<String>.generate(10000, (i) => 'Item $i');
  @override
  Widget build(BuildContext context) {
    return  MaterialApp(
          title: "Admin",
          home: Scaffold(
body: ListView.builder(
itemCount: items.length,
          itemBuilder: (context, index) {
            return ListTile(
              title: Text(items[index]),
            );
          },
),
),
          scrollBehavior: scrollBehavior,
        );
  }

  ScrollBehavior get scrollBehavior => ScrollBehavior().copyWith(
        physics: BouncingScrollPhysics(),
      );
}

Logs

Logs

Analyzing admin_app...

warning • The include file 'package:flutter_lints/flutter.yaml' in
       '/home/pr47h4m/Documents/Projects/inventory-paas/admin_app/analysis_options.yaml' can't be found when analyzing
       '/home/pr47h4m/Documents/Projects/inventory-paas/admin_app' • analysis_options.yaml:10:10 •
       include_file_not_found
   info • The operand can't be null, so the condition is always true • lib/views/products/addProduct.dart:401:25 •
          unnecessary_null_comparison
   info • 'accentColor' is deprecated and shouldn't be used. Use colorScheme.secondary instead. For more information,
          consult the migration guide at
          https://flutter.dev/docs/release/breaking-changes/theme-data-accent-properties#migration-guide. This feature
          was deprecated after v2.3.0-0.1.pre. • lib/views/wrappers/widgets/appDrawer.dart:200:44 •
          deprecated_member_use

3 issues found. (ran in 18.4s)

[✓] Flutter (Channel stable, 2.5.1, on Ubuntu 20.04.3 LTS 5.11.0-34-generic, locale en_IN)
    • Flutter version 2.5.1 at /home/pr47h4m/snap/flutter/common/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision ffb2ecea52 (35 hours ago), 2021-09-17 15:26:33 -0400
    • Engine revision b3af521a05
    • Dart version 2.14.2

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
    • Android SDK at /home/pr47h4m/Android/Sdk
    • Platform android-30, build-tools 30.0.3
    • Java binary at: /home/pr47h4m/android-studio/jre/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.8+0-b944-P17168821)
    • All Android licenses accepted.

[✓] Chrome - develop for the web
    • Chrome at google-chrome

[✓] Android Studio (version 4.2)
    • Android Studio at /home/pr47h4m/android-studio
    • Flutter plugin version 57.0.2
    • Dart plugin version 202.8488
    • Java version OpenJDK Runtime Environment (build 11.0.8+0-b944-P17168821)

[✓] IntelliJ IDEA Community Edition (version 2021.2)
    • IntelliJ at /home/pr47h4m/intellij
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart

[✓] VS Code (version 1.60.1)
    • VS Code at /usr/share/code
    • Flutter extension version 3.26.0

[✓] Connected device (2 available)
    • vivo 1820 (mobile) • M7O789USNVS8ORKF • android-arm64  • Android 8.1.0 (API 27)
    • Chrome (web)       • chrome           • web-javascript • Google Chrome 93.0.4577.82

• No issues found!

Hi @test-ipaas
You're describing multiple issues in one,

Doesn't reproduce for me
Does reproduce
Needs a new issue (please file a new issue and tag me)

Let me know if you agree and provide more details of issue 1


Fix the issue with irregular platform version

iOSPlatform version should be the semver form, like "4.4.0".
However, If the user add platform ios by using the directory name or git:// case, like
cordova platform add /Home/user/cordova/ios/cordova-ios4.4.0

The iOSPlatform version is Home/user/cordova/ios/cordova-ios4.4.0 not 4.4.0.
(See
https://github.com/apache/cordova-lib/blob/master/src/cordova/platform_metadata.js
and its comment above the getVersions method)
In such case, this plugin hook script does not work.
This pull request, the correct iOSPlatform version is obtained by accessing platform/ios/cordova/version file.

Hello,
Thanks for pointing this issue. I didn't test it but maybe you could use the getPlatVersionsFromFileSystem function instead of getVersions  in order to avoid the use of __non_webpack_require__ which is really Webpack specific. What do you think ?

Thanks you. As you say, getPlatVersionsFromFile is more suitable.
Now I will try to send pull request again.

I send new Pull Request https://github.com/akofman/cordova-plugin-add-swift-support/pull/36 .


Benchmarks

What

Added benchmarks
Optimized alphabet function

Why

Mesure performance
Achive O(n) for alphabet

How to run benchmarks
pip install asv
cd benchmarks
# For benchmark main branch
asv run NEW
# For benchmark local
asv run --python=same

## Compare

asv compare main {your commit}

Alphabet improvments
All benchmarks:

Change
Before [5345c810]
After [66d7a174]
Ratio
Benchmark (Parameter)

400k
400k
1.00
bench_alphabet.MemSuite.mem_alphabet_l

40.1k
40.1k
1.00
bench_alphabet.MemSuite.mem_alphabet_m

4.11k
4.11k
1.00
bench_alphabet.MemSuite.mem_alphabet_s

failed
4M
n/a
bench_alphabet.MemSuite.mem_alphabet_xl

512
512
1.00
bench_alphabet.MemSuite.mem_alphabet_xs

152
152
1.00
bench_alphabet.MemSuite.mem_alphabet_xxs

+
38.5M
43.9M
1.14
bench_alphabet.MemSuite.peakmem_alphabet_l

35.7M
36M
1.01
bench_alphabet.MemSuite.peakmem_alphabet_m

35.5M
35.6M
1.00
bench_alphabet.MemSuite.peakmem_alphabet_s

failed
115M
n/a
bench_alphabet.MemSuite.peakmem_alphabet_xl

35.6M
36.3M
1.02
bench_alphabet.MemSuite.peakmem_alphabet_xs

36M
35.9M
1.00
bench_alphabet.MemSuite.peakmem_alphabet_xxs

18.7±0.6s
12.3±0.2ms
~0.00
bench_alphabet.TimeSuite.time_alphabet_l

-
179±6ms
1.07±0.04ms
0.01
bench_alphabet.TimeSuite.time_alphabet_m

-
2.03±0.1ms
102±5μs
0.05
bench_alphabet.TimeSuite.time_alphabet_s

failed
153±1ms
n/a
bench_alphabet.TimeSuite.time_alphabet_xl

-
25.7±0.3μs
11.5±0.2μs
0.45
bench_alphabet.TimeSuite.time_alphabet_xs

+
2.03±0.1μs
2.36±0.04μs
1.17
bench_alphabet.TimeSuite.time_alphabet_xxs

Pull Request Test Coverage Report for Build<PHONE_NUMBER>
Details

5 of 5 (100.0%)  changed or added relevant lines in 1 file are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+0.02%) to 98.913%

Totals

Change from base Build<PHONE_NUMBER>:
0.02%

Covered Lines:
70

Relevant Lines:
71

💛  - Coveralls


Add tests for existing ansi_color functionality

ansi_color folder

I grabbed this issue and wanted to get some early feedback hence the draft PR.  It's usually easier in the PR format.  Please take a look as time allows.  No rush!

@trkelly23 Just assigned the issue to you. Thanks for sharing the draft PR. We will take a look at this week.


Creating a Release allowed to be created with a invalid tag name with spaces

Gitea version (or commit ref): 1.4
Git version: 2.15.1
Operating system: Centos7 amd64
Database (use [x]):

[x ] PostgreSQL 10
[ ] MySQL
[ ] MSSQL
[ ] SQLite

Can you reproduce the bug at https://try.gitea.io:

[ ] Yes (provide example URL)
[x ] No, URL returns error
[ ] Not relevant

Log gist:
DeleteReleaseByID: git tag -d: exec(18:DeleteReleaseByID (git tag -d): 3) failed: exit status 1() stdout: stderr: error: Tag '0.3 a' nicht gefunden. - error: Tag '0.3 a' nicht gefunden.

Description

Create a new release with a new tag and use a tag name with a space "0.3 a"
Now we have a release draft, based on a non existing tag, that can't be deleted.

Screenshots

When you try to release that tag, You get a 500 with an error message:
An error has occurred : exit status 128 - fatal: '0.3 a' ist kein gültiger Tagname.

Apparantly validation works, but not when creating a draft.

Okay, for the people running into the same problem, I found a solution:

Find the faulty release in the database ( in my case select * from release where tag_name='0.3 a' )
Change the tag_name to a allowed tagname ( 0.3a )
Edit the release draft
Save it
Now the tag has been created and you can delete the release

Regards
Schnuffle


[consensus] implement LeaderReputation

Motivation
We introduce a committed history based leader election implementation in this pr,
the heuristic is simple - if a author is active in the past a few
blocks, it gets higher chance to be elected again.
In case validators don't agree on the committed history, they'll timeout
and trigger a synchronization across board.
This PR only lays foundation of the impl without integrating with the
rest of consensus.
Have you read the Contributing Guidelines on pull requests?
Y
Test Plan
Added tests.
Related PRs
(If this PR adds or changes functionality, please take some time to update the docs at https://github.com/libra/website, and link to your PR here.)

:v: @zekun000 can now approve this pull request

@bors-libra r=aching

:pushpin: Commit 2f8029c has been approved by aching

:hourglass: Testing commit 2f8029cddf98483436958a243f747129af9140a3 with merge ea20e1f8e05eb310baa57d739692af4ec0a1c4dc...

:sunny: Test successful - checks-actions_land_blocking_test, checks-circle_commit_workflow
Approved by: aching
Pushing ea20e1f8e05eb310baa57d739692af4ec0a1c4dc to master...


minDate is not working on the fly.

Hi,
I have used two date picker to work as range picker. On change of first date picker I am setting minDate of second date picker, similarly for second datepicker on change action.
But it seems minDate does not work on the fly.
Thanks

I have also some strange behavior, when setting the minDate from the component class. When using the input bind variable (and yes it has a valid value), the minDate is not working.
// Working:
public minDate: Date;
ngOnInit() {
this.minDate = moment('01-01-2016', 'DD-MM-YYYY').toDate();
}
// Not working:
@Input() inputDate: string;
public minDate: Date;
ngOnInit() {
this.minDate = moment(this.inputDate, 'DD-MM-YYYY').toDate();
}
// Template:
<datepicker  [minDate]="minDate ">

@rvdmolen What should I do then. I am using behaviorsubject for setting up minDate on the fly.

To me it's not working on the fly minDate. What was the reason to close this issue? @erashu212


All apps show cannot be opened error

iPod Touch 1G running iPhoneOS 2.0.2 with mobileinstallation 2.0.2 installed. App Store no longer works on this version so ipa file of encrypted app taken from an iPhone 3GS (app supports 2.0) is installed with finder. But even when that is opened, the cannot be opened error reappears. here is an ipa I tried.
App.zip

Since the app is encrypted I've gone ahead and decrypted the app so it can work: https://cdn.discordapp.com/attachments/894234514136629298/1109582713385656330/com.shinmira.korebasilite-iOSnull-Clutch-2.0.4.ipa
That being said this app doesn't seem to work for me on iPhone OS 2.2.1 on my Touch 2, but let me know if it works for you anyways. (It is the case where the app immediately crashes when opened, I have no clue what causes this)
BTW, does this app work on the 3GS?

Also, let me know if any other apps work, such as this one which I know works for me: https://cdn.discordapp.com/attachments/733735735781359656/1109587260002795540/JellyCar_1.2_Decrypted.ipa

sure I will try the app ou have sent and I will notify you of any changes. thanks a lot

Also, let me know if any other apps work, such as this one which I know works for me: https://cdn.discordapp.com/attachments/733735735781359656/1109587260002795540/JellyCar_1.2_Decrypted.ipa

It requires a newer version of iOS. Probably supports 2.2.1 and up

Update on this (and apologies for the long delay, I've been busy). I now have a better understanding of the issue and a possible solution.
If you have filesystem access, there should be a file at /var/mobile/Library/Caches/ called com.apple.mobile.installation.composite_trust.plist. Does this file have Apple iPhone OS Application Signing set to true? (The composite_trust file should be around 85 bytes, not 42 bytes).
If not, and if you are still wanting to try to get the app working, try replacing it with this file: https://github.com/minif/iphoneos2-app-fixer/raw/master/com.apple.mobile.installation.composite_trust.plist

Depending on how you view .plist files it might look like this:

Thanks, I'll take a look at this. Surprised you even remembered this issue after a year : )


Full Can of Whoop Ass cannot be interacted with

I was missing the number of ranks; this has been fixed. Thank you!


Query: How to reverse map bias from ONNX to Keras?

During the conversion, LSTM bias is of dim [8] will be converted to [1, 16]. In this case wb [1,8] and rb[1,8] are initialized to zeros (if B is not passed) else B is assigned to wb.
Say, if I am doing some custom training on the ONNX model and generating the gradients for variables. I can map gradients back to Keras model with minor conversions (iofc to ifco etc). But how can I map the B's gradients? As they will split over the training and averaging the gradients of rb and wb is not same as the TF bias gradient for seq_len > 1.
I know it is a special case, just want to hear your thoughts here.

Are you suggestion ONNX should also something similar to keras's use_bias flag so that they could be converted into each other in your case?

@wenbingl yes. But I think we might need two flags:

a flag for 'wb' which points to 'use_bias' in Keras
another flag for 'rb'
Correct me if I am wrong.


Add Font Size for the UILabel

Allow user to customise the font of the UILabel. Just in case the user want to display a long string.

Thanks. :) But,
Swift 2.2 deprecates using strings for selectors and instead introduces new syntax: #selector.
Please use the #selector and re-PR.
😄

Fixed,
I don't know why my xcode revised the selector to string.

Thank you. 😄
You should update to Xcode version 7.3 upper.


Face Recognition Using Python

For Hacktoberfest 2022

is this official for hacktober fest 2022?
I would like to work on this? @shivamsdk

@shivamsdk @dheerajgajula02 you can also contribute to these repos for hacktoberfest2022 make sure you don't spam :)
https://github.com/dikshantrajput/hacktoberfest-2022-react
https://github.com/dikshantrajput/Hacktoberfest-accepted-2022

Hi @maheshjainckd . I am a newbie to this open source contest. I am looking forward to learn many new things. I am ready with the code. Can you plz assign me this under label"hacktoberfest22" .


Add missing test to anagram

"foo" is not an anagram of "Foo"

Looks good - but what's with that 'merge remote-tracking branch' commit?

Paging @spacebat !
See above comment...

Paging @spacebat !
See above comment...

This was rebased and merged as PR #136.


eclipse-java@2018-12: hash check failed

Failed when trying to install eclipse-java using scoop.
Outputs follows:
C:\src\java\ex02>scoop install eclipse-java
Installing 'eclipse-java' (2018-12) [64bit]
Downloading https://www.eclipse.org/downloads/download.php?r=1&file=/technology/epp/downloads/release/2018-12/R/eclipse-java-2018-12-win32-x86_64.zip (-1 B)...

Checking hash of download.php ... ERROR Hash check failed!
App:         extras/eclipse-java
URL:         https://www.eclipse.org/downloads/download.php?r=1&file=/technology/epp/downloads/release/2018-12/R/eclipse-java-2018-12-win32-x86_64.zip
First bytes: 3C 21 44 4F 43 54 59 50
Expected:    9dd7039d81e6f554d0b0da0f0930365ce2cdf3482461b7c49e14afbb53cb8764
Actual:      b211df5acf7a715bb5ac72b4f2650ca3d21099bd81e32b1746097c09782cd3e8

Please try again or create a new issue by using the following link and paste your console output:
https://github.com/lukesampson/scoop-extras/issues/new?title=eclipse-java%402018-12%3a+hash+check+failed

C:\src\java\ex02>

Actually the download link failed. If you click that link you'll find that the actual pages says that the file has been taken down.

The true link is https://www.eclipse.org/downloads/download.php?r=1&file=/technology/epp/downloads/release/2018-12/R/eclipse-java-2018-12-R-win32-x86_64.zip.


Complete contributing guide, shouldve committed sooner

Some recent changes in here are due to trying to run Omics Integrator 1. Unrelated to SPRAS cont. guide.

Closing this because it served its purpose for the summer 2024 introduction to SPRAS.


Batch without requests TypeError

When I programatically create a batch and add requests to it from a for loop, if I dont add any request, and try to launch the batch, I get an error:
 Uncaught TypeError: Cannot read property 'then' of null
Shouldn't it simply execute and return an empty result ?

Uncaught TypeError: Cannot read property 'then' of null


Fix typo

Github -> GitHub

@changeworld : Thanks for your contribution! The author, @PatrickFarley, has been notified to review your proposed change.


Fix misaligned chevron

If in Holy Grail demo you add dividerSize:30 for
<div ui-layout="{flow : 'column', dividerSize:30}">

you will see the chevrons are aligned to the left,
not centered.
This commit centers those chevrons.

Thanks for the PR!  I can no longer reproduce this issue, I'll gladly reopen if you have a repro.  Please note that the Holy Grail is using an old version of ui-layout.


Enforce experienced plans output in config

We suggest MC hard errors when a user specifies a config without the experienced plans being toggled on.
Requires the following addition to the planCalcScore config:
<module name="planCalcScore">
      <param name="writeExperiencedPlans" value="true" />

the autostep method now enforces this in bitsim.

don't want to force this in all configs - it may not be desired in all cases.
But agree it is worthy of a debug warning. So will loook to add when this functionality is next updated.


Add menu action to delete vscode cache and configuration

It would be great to have an option to complete factory reset VScode like Jetbrains IDEs does; sometimes you want to make a clean start and you have to search on google where does the configuration files are, etc....

I suggest to use --user-data-dir and or --portable options for this. Allowing to delete the VSCode data dir is dangerous as you might have unsaved files in there.

Yes, but having to use a flag from terminal is kinda quirky from a UX perspective; fwiw is not just allowing to hot delete the files. It should be something more safe ofc.
Maybe I explained it wrong since I don't know exactly what files matter for user configuration, maybe an option in the command palette to clean the user data dir? Right now at least to me, it feels weird when I want to clean VSCode (maybe I installed too many extension, maybe I'm paranoid of performance degrading due to a whole lot of extensions manipulation) I end up googling for "clean vscode uninstall" and end up digging posts in stackoverflow, etc, etc...


The addDocuments and updateDocuments methods should take a primary key as optional parameter

The addDocument and updateDocuments methods do not take any primary key as parameter, but they should.
Related docs:

https://docs.meilisearch.com/references/documents.html#add-or-replace-documents
https://docs.meilisearch.com/references/documents.html#add-or-update-documents

⚠ The primary key parameter should be optional!

[ ] add in the code base
[ ] add tests

Hey, It's me again, can I take this issue? @curquiza

Hello again! 😄
Of course you can! I assign you!

Also, can you add the same to updateDocuments? So sorry for this addition.
I've updated the issue description and title.

Ok, no problem. Can you explain to me more about how to pass that param or how to overwrite the primaryKey?

This is useful to pass the primary key as a query parameter the first time you add or update documents if the primary key has not been inferred or set before.
If you want to pass the primary key, just pass it as a query parameter:
$ curl
  -X POST 'http://localhost:7700/indexes/movies/documents?primaryKey=id
  --data '[{
      "id": 287947,
      "title": "Shazam",
      "poster": "https://image.tmdb.org/t/p/w1280/xnopI5Xtky18MPhK40cZAGAOVeV.jpg",
      "overview": "A boy is given the ability to become an adult superhero in times of need with a single magic word.",
      "release_date": "2019-03-23"
  }]'

If the primary-key has been already set/inferred, you can still pass it as a query parameter but the parameter will be just ignored. It's maybe not the perfect way to handle it, but MeiliSearch does not handle warnings for the moment.
So you don't need to check a primary key exists: just pass it to the MeiliSearch server, it will handle it.

Got it. But, I just testing and every time I made your example, it needs to match the query parameter with the id name something like your example, but if I do this:
  $ curl
    -X POST 'http://localhost:7700/indexes/movies/documents?primaryKey=id
      --data '[{
              "movie_id": 287947,
              "title": "Shazam",
      }]'

Notice that the query parameter is different from the data.
The document won't be created. So, if you have an idea of how to start this issue, let me know.

In your example, because the primary key is id, the document is not created because MeiliSearch does not find any id field in the document. For MeiliSearch, there is no primary key and it cannot add a document without it.
When getting the update status with this method, can you confirm the error you can see?
More about the document addition answer -> https://docs.meilisearch.com/faq/#i-did-a-call-to-an-api-route-and-i-only-got-an-updateid-as-a-response-what-does-it-mean

@curquiza Hello can I work on this issue? I'm investigating how these methods work.

Hello @OmarMorales71! Thanks for your involvement!
@JohanDelValleV seemed to want to do this issue: https://github.com/meilisearch/meilisearch-java/issues/78#issuecomment-742761443 . Maybe should you ask him before starting it!
However, if you want to do an issue, I've just opened this one #93 which is really important and useful for this repo 😄

Since this issue was inactive for more than 10 months, I took the liberty to send a PR for this, hope it's okay.
@curquiza


Hi here, after 140-150 km trip AZE0 triggered turtle and  gear has been turned over to N

... whereas the battery cells voltage is about 3.55 V per cell

Hi @dalathegreat , how did you solve issue ?
it looks like AZE0 has VCM counter spent power and it triggers "turtle" with following goes to the N  despite of spoofed (by can bridge) GIDs value and real cells voltage
I would appreciate for any hints

I did not solve this. This whole idea and repository was abandoned 4 years ago. Good luck!


Create endpoints via API?

Create endpoints via API?
Issue Type

[ ] Bug
[X] Enhancement

Description
I'd like to be able to create endpoints via DefectDojo's API and link them to their associated products. To be a bit more precise, I'd love to see all CRUD (create, read, update, delete) operations for endpoints.

@xthk Just curious, what's your use case for adding endpoints to the API?

Hi @aaronweaver,
we've just a large amount (1000+) of endpoints. We'd like to have them in DefectDojo, too. Due to the amount it is not an option to maintain the endpoint/project mapping by hand.

Completed


Add Gold codes and preferred pairs

Closes #384
Closes #386
Closes #274

Codecov Report
Attention: Patch coverage is 87.50000% with 15 lines in your changes missing coverage. Please review.

Project coverage is 79.59%. Comparing base (507c802) to head (9547ab2).

Files
Patch %
Lines

src/sdr/_sequence/_correlation.py
74.46%
12 Missing :warning:

src/sdr/_sequence/_maximum.py
96.82%
2 Missing :warning:

src/sdr/_sequence/_symbol_mapping.py
90.00%
1 Missing :warning:

Additional details and impacted files
@@                Coverage Diff                @@
##           release/0.0.x     #387      +/-   ##
=================================================
+ Coverage          79.41%   79.59%   +0.18%
=================================================
  Files                 63       63
  Lines               3842     3931      +89
=================================================
+ Hits                3051     3129      +78
- Misses               791      802      +11

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


Search icon size does not behave like other icons

When using a ui [size] icon, any other icon would behave as you'd expect - ui huge calendar icon displays a huge calendar icon, for example.
But when using a ui [size] search icon specifically, the size defined in the Icon component is overridden by CSS in the Search component that does not have any qualifying HTML container. Here is the offending code:
https://github.com/Semantic-Org/Semantic-UI/blob/master/src/definitions/modules/search.less#L410
Take, for example, this HTML
<i class="ui huge search icon"></i>

This should display a huge search icon (a magnifying glass), one would expect. Except it doesn't.
This CSS definition in the Search component, with no theme or site overrides, compiles to:
.ui.huge.search {
    font-size: 1.42857143em;
}

This is overridden by, and clashes with, a previously loaded definition:
i.huge.icon, i.huge.icons {
    line-height: 1;
    vertical-align: middle;
    font-size: 4em;
}

Chrome computes these definitions like so:

Notice the crossed out font-size: 4em; definition that is being overridden by the Search component.
This causes the search icon to render differently than other icons when used in a general context. Here is an example Plunker demonstrating this behavior.
I would also like to point out that yes, a possible solution is to simply not include the search component, but for those of us who either want to use the Icons and Search components, or simply prefer to compile and use Semantic in its entirety, that is not an option.
I believe the solution would be to qualify those Search size definitions with a container, though I don't know the right combination. Perhaps they need to be wrapped in a parent container called .ui.search or something similar?

The icon class does not need the ui class to work. Simply use huge search icon and there you go.

Thanks @philrykoff. Is this true anywhere, document-wide, or does that only apply if you are nested within any other .ui.* parent element?

I am currently on the go, but I dont remember the icon docs saying anything
about .ui - so imho it's true anywhere.
Jake Burgy<EMAIL_ADDRESS>schrieb am Di. 24. Jan. 2017 um 15:06:

Thanks @philrykoff https://github.com/philrykoff. Is this true
anywhere, document-wide, or does that only apply if you are nested within
any other .ui.* parent element?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/Semantic-Org/Semantic-UI/issues/4938#issuecomment-274811051,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABoa_8LuUKQHx3lbZA2xZVJqLNchFD73ks5rVgVQgaJpZM4Lrlqz
.

Awesome - thanks!


The model_name: altdiffusion-m18 is not be supported

System Info
flagai=1.6.2
python=3.8
Information

[X] The official example scripts
[ ] My own modified scripts

Tasks

[X] An officially supported task in the examples folder (such as T5/AltCLIP, ...)
[ ] My own task or dataset (give details below)

Reproduction
to generate image using altdiffusion-m18:
python generate.py
Expected behavior
generate image from the text

You can update to the latest version, it should have been fixed


5pm-c Course Occupancy by Division

This PR implements the "Course Occupancy By Undergraduate and Graduate" statistics page, where a user can select a start and end quarter along with the department and division (undergraduate/graduate) number of students enrolled, max enrollment, in each course across the selected department.
Closes #45
Before:

After:

40 pts


Expand Image class capability

Implement new features, such as:

loading multiple image file formats:

BMP
TGA
JPEG
PNG

saving images to files using formats:

BMP
TGA
possibly JPEG and PNG too

saving screenshots from applications

whole-screen screenshots
user-defined-rectangle screenshot

better API to work with Images
possibly some algorithms to work with images such as transform to grayscale, invert colors, detect eges etc.
scaling and resizing functionality
cropping functionality
and maybe more

[e9f61406d8b3ecc8c32aee31def966785eebb7bb] commit changes:

switched to exceptions for error handling in Images and Textures (to avoid creation of useless objects)
implemented load(width, height, bits, data pointer) method to load image from existing array.
changed default storage format for images and textures from BGR to RGB
implemented swapComponents(...) static method that swaps red and blue channels in image data (BGR<->RGB swap). Used internally on BMP and TGA files.


openFPGAloader support

I have purchased 5 of the QMTech boards for work purposes (arriving later this week), so should be able to use one to experiment with the open source flow.   I also have (limited) access to the Genesys2 board.
I would like to add support to openFPGAloader, but the QMTech board does not have a standard USB-JTAG solution on-board.
What JTAG solution is everyone using for the QMTech board?   It looked to me that the Digilent-HS2 might be a reasonable solution, or a Tigard perhaps.
If there is a popular choice, I would purchase and use that adapter and then contribute openFPGAloader for that board/adapter combination.

Hi, openFPGAloader
already supports the FPGA,
you can use any adapter openFPGAloader supports.
I personally use a cheap noname  $10 FT232H board.
I certainly can recommend the tigard,
which is a similar board (using the FT2232).

For example, in board.hpp, adding:
JTAG_BOARD("qmtechK7325T",    "xc7k325t", "<**what-would-be-best-here?**>",     0, 0, CABLE_DEFAULT),

Good question, hard to tell.
The cheapest are the generic ft232h boards but the ft2232h are very common too. I would probably go for the ft2232h, maybe.

I'm using an FT2232H recommended by @benitoss.
It is the first one pictured here https://github.com/benitoss/ColorLight_FPGA_boards
It can work as a Xilinx cable or as an USB blaster also for Altera boards, just changing it's firmware.

You can use OpenOCD to program the kintex7 QMTECH fpga, but writting the SPI Flash will not work.

Not even with spiOverJtag support?

OK, I've received my boards, and have built and flashed blinky.bit successfully with openFPGAloader.
Time to start researching how to create a spiOverJtag_xc7k325tffg676.bit file.
rwhitby@inxs iqmc510x_fw % openFPGALoader -c tigard --dump-flash foo.bin -v --fpga-part xc7k325t --file-size 0x1000
Jtag frequency : requested 6.00MHz   -> real 6.00MHz
found 1 devices
index 0:
	idcode 0x3651093
	manufacturer xilinx
	family kintex7
	model  xc7k325t
	irlength 6
File type : bin
use: /usr/local/Cellar/openfpgaloader/0.7.0/share/openFPGALoader/spiOverJtag_xc7k325t.bit.gz
Error: fail to open /usr/local/Cellar/openfpgaloader/0.7.0/share/openFPGALoader/spiOverJtag_xc7k325t.bit.gz
libc++abi: terminating with uncaught exception of type std::runtime_error: Error: fail to open /usr/local/Cellar/openfpgaloader/0.7.0/share/openFPGALoader/spiOverJtag_xc7k325t.bit.gz
zsh: abort      openFPGALoader -c tigard --dump-flash foo.bin -v --fpga-part xc7k325t  0x1000
rwhitby@inxs iqmc510x_fw % ls /usr/local/Cellar/openfpgaloader/0.7.0/share/openFPGALoader
spiOverJtag_10cl025256.rbf		spiOverJtag_xc6slx45csg324.bit		spiOverJtag_xc7a35tftg256.bit
spiOverJtag_5ce223.rbf			spiOverJtag_xc7a100tcsg324.bit		spiOverJtag_xc7a50tcpg236.bit
spiOverJtag_5ce423.rbf.gz		spiOverJtag_xc7a100tfgg484.bit		spiOverJtag_xc7a75tfgg484.bit
spiOverJtag_ep4ce1523.rbf.gz		spiOverJtag_xc7a200tsbg484.bit		spiOverJtag_xc7s25csga324.bit.gz
spiOverJtag_ep4ce2217.rbf		spiOverJtag_xc7a35tcpg236.bit		spiOverJtag_xc7s50csga324.bit.gz
spiOverJtag_xc6slx100fgg484.bit		spiOverJtag_xc7a35tcsg324.bit		test_sfl.svf
rwhitby@inxs iqmc510x_fw %

I've found xilinx_spiOverJtag.v and xilinx_spiOverJtag.tcl, and I'm wondering if the correct path is to use a Vivado license for the K7-325T to add that device to the tcl file and build a bitstream ...

Genesys2 does not require any adaptor, the Digilent USB2JTAG sub-module is on board already. RAM programming may readily be done with:
openFPGALoader --cable digilent --bitstream blinky.bit --ftdi-channel 1

Programming flash is done by reprogramming the FPGA as a flash programmer. I am not aware of whether there is an existing open source technique we can use for this

Genesys2 does not require any adaptor, the Digilent USB2JTAG sub-module is on board already. RAM programming may readily be done with:
openFPGALoader --cable digilent --bitstream blinky.bit --ftdi-channel 1

Programming flash is done by reprogramming the FPGA as a flash programmer. I am not aware of whether there is an existing open source technique we can use for this

I believe spiOverJtag as noted is that open source technique.

As an interim measure we could use a bitstream built with Vivado, but the end goal would be to build the bitstream with open source tools. This would make it compatible with Debian licensing where opaque binary blobs are discouraged.

Are the existing spiOverJtag bitstreams in openFPGAloader distributed on Debian? The intention is to continue to use the same spiOverJtag technique and bitstreams.

Some progress:
rwhitby@inxs build % ./openFPGALoader -b qmtechKintex7 -c tigard --dump-flash --file-size 0x1000 foo.bin
Board qmtechKintex7 has not default cable
Jtag frequency : requested 6.00MHz   -> real 6.00MHz
use: /usr/local/share/openFPGALoader/spiOverJtag_xc7k325t.bit.gz
load program
Flash SRAM: [==================================================] 100.00%
Done
Detail:
Jedec ID          : 01
memory type       : 60
memory capacity   : 19
EDID + CFD length : ff
EDID              : ffff
CFD               :
dump flash (May take time)
Open dump file DONE
Read flash : [==================================================] 100.00%
Done
rwhitby@inxs build % hexdump foo.bin
0000000 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
*
0000020 00 00 00 bb 11 22 00 44 ff ff ff ff ff ff ff ff
0000030 aa 99 55 66 20 00 00 00 30 03 e0 01 00 00 02 6b
0000040 30 00 80 01 00 00 00 12 20 00 00 00 30 02 20 01
0000050 00 00 00 00 30 02 00 01 00 00 00 00 30 00 80 01
0000060 00 00 00 00 20 00 00 00 30 00 80 01 00 00 00 07
0000070 20 00 00 00 20 00 00 00 30 02 60 01 00 00 00 00
0000080 30 01 20 01 02 00 3f e5 30 01 c0 01 00 00 00 00
0000090 30 01 80 01 03 65 10 93 30 00 80 01 00 00 00 09
00000a0 20 00 00 00 30 00 c0 01 00 00 04 01 30 00 a0 01
00000b0 00 00 05 01 30 00 c0 01 00 00 00 00 30 03 00 01
00000c0 00 00 00 00 20 00 00 00 20 00 00 00 20 00 00 00
00000d0 20 00 00 00 20 00 00 00 20 00 00 00 20 00 00 00
00000e0 20 00 00 00 30 00 20 01 00 00 00 00 30 00 80 01
00000f0 00 00 00 01 20 00 00 00 30 00 40 00 50 2b a5 20
0000100 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
*
0001000

Great work, I will try it. Excuse my ignorance, but how do you generate the MCS file without using Vivado?

Great work, I will try it. Excuse my ignorance, but how do you generate the MCS file without using Vivado?

At the moment, I'm using Vivado to generate the spiOverJtag bitstream (only has to be done once, and then submitted to openFPGAloader distribution) and also for the led_top.mcs (this is the software demo from the QMTech github repository).
I believe there is a way of generating MCS without requiring a Vivado license, but that's an item for further investigation.

Can someone check this addition to spiFlashdb.hpp against the data sheet to make sure I haven't made any mistakes?
https://www.infineon.com/dgdl/Infineon-S25FL256L_S25FL128L_256-MB_(32-MB)_128-MB_(16-MB)_3.0_V_FL-L_FLASH_MEMORY-DataSheet-v09_00-EN.pdf?fileId=8ac78c8c7d0d8da4017d0ed40e335224

I believe there is a way of generating MCS without requiring a Vivado license, but that's an item for further investigation.

@rwhitby @jrrk2: There is a report near the lower half of https://digilent.com/reference/learn/programmable-logic/tutorials/htsspisf/start on how to do this. However: why would I want to generate a MCS file which is specific to Xilinx? I would think that openFPGALoader can accept a BIN file?

However: why would I want to generate a MCS file which is specific to Xilinx? I would think that openFPGALoader can accept a BIN file?

Indeed it can:
rwhitby@inxs build % ./openFPGALoader -v -b qmtechKintex7 -c tigard --verify -f led_top.mcs
write to flash
Board qmtechKintex7 has not default cable
Jtag frequency : requested 6.00MHz   -> real 6.00MHz
found 1 devices
index 0:
	idcode 0x3651093
	manufacturer xilinx
	family kintex7
	model  xc7k325t
	irlength 6
File type : mcs
Open file DONE
Parse file DONE
use: /usr/local/share/openFPGALoader/spiOverJtag_xc7k325t.bit.gz
load program
Flash SRAM: [==================================================] 100.00%
Done
1 60 19 ff read 16019ff
Detected: spansion S25FL256L 512 sectors size: 256Mb
RDSR : 00
WIP  : 0
WEL  : 0
BP   : 0
TB   : 0
SRWD : 0
00000000 00000000 00000000 00
Erasing: [==================================================] 100.00%
Done
Writing: [==================================================] 100.00%
Done
Verifying write (May take time)
Read flash : [==================================================] 100.00%
Done

rwhitby@inxs build % ./openFPGALoader -v -b qmtechKintex7 -c tigard --dump-flash --file-size 0x1000000 flash.bin
Board qmtechKintex7 has not default cable
Jtag frequency : requested 6.00MHz   -> real 6.00MHz
found 1 devices
index 0:
	idcode 0x3651093
	manufacturer xilinx
	family kintex7
	model  xc7k325t
	irlength 6
File type : bin
use: /usr/local/share/openFPGALoader/spiOverJtag_xc7k325t.bit.gz
load program
Flash SRAM: [==================================================] 100.00%
Done
1 60 19 ff read 16019ff
Detected: spansion S25FL256L 512 sectors size: 256Mb
dump flash (May take time)
Open dump file DONE
Read flash : [==================================================] 100.00%
Done

rwhitby@inxs build % ./openFPGALoader -v -b qmtechKintex7 -c tigard --verify -f flash.bin
write to flash
Board qmtechKintex7 has not default cable
Jtag frequency : requested 6.00MHz   -> real 6.00MHz
found 1 devices
index 0:
	idcode 0x3651093
	manufacturer xilinx
	family kintex7
	model  xc7k325t
	irlength 6
File type : bin
Open file DONE
Parse file DONE
use: /usr/local/share/openFPGALoader/spiOverJtag_xc7k325t.bit.gz
load program
Flash SRAM: [==================================================] 100.00%
Done
1 60 19 ff read 16019ff
Detected: spansion S25FL256L 512 sectors size: 256Mb
RDSR : 00
WIP  : 0
WEL  : 0
BP   : 0
TB   : 0
SRWD : 0
00000000 00000000 00000000 00
Erasing: [==================================================] 100.00%
Done
Writing: [==================================================] 100.00%
Done
Verifying write (May take time)
Read flash : [==================================================] 100.00%
Done

Can someone check this addition to spiFlashdb.hpp against the data sheet to make sure I haven't made any mistakes?
https://www.infineon.com/dgdl/Infineon-S25FL256L_S25FL128L_256-MB_(32-MB)_128-MB_(16-MB)_3.0_V_FL-L_FLASH_MEMORY-DataSheet-v09_00-EN.pdf?fileId=8ac78c8c7d0d8da4017d0ed40e335224

You define the vendor ID as 0x016019. I suggest to use 0x00016019 to make it more explicit, cf. table 51 in the datasheet.
I'm not sure where/how to check the remaining information?

The previous two devices in the table have the same format, so I followed the existing style.

This is now available for testing at https://github.com/rwhitby/openFPGALoader/tree/qmtechKintex7

The previous two devices in the table have the same format, so I followed the existing style.

I understand. However, I have not been able to locate the bp/tb offsets in the datasheet. Did you adapt those from the other entries as well?

The previous two devices in the table have the same format, so I followed the existing style.

I understand. However, I have not been able to locate the bp/tb offsets in the datasheet. Did you adapt those from the other entries as well?

Support for qmtechKintex7 board is now upstreamed in openFPGALoader.

I tried your latest executable on Genesys2, and this is the result:
`
jonathan@nuc:~/xc7k325t-picosoc-nextpnr$ openFPGALoader --board qmtechKintex7 --cable digilent --bitstream picosoc.bit --ftdi-channel 1 -f
write to flash
Board qmtechKintex7 has not default cable
Jtag frequency : requested 6.00MHz   -> real 6.00MHz
Open file DONE
Parse file DONE
use: /usr/local/share/openFPGALoader/spiOverJtag_xc7k325tffg676.bit.gz
load program
Flash SRAM: [==================================================] 100.00%
Done
Detail:
Jedec ID          : 01
memory type       : 02
memory capacity   : 19
EDID + CFD length : 4d
EDID              : 8001
CFD               :
flash chip unknown: use basic protection detection
Erasing: [==================================================] 100.00%
Done
Writing: [==================================================] 100.00%
Done
jonathan@nuc:~/xc7k325t-picosoc-nextpnr$
After apparently succeeding the board powers uo and sits there for a more longer period than normal, before declaring the DONE signal. After that the LEDs flash and the picosoc boots up:
Command> Booting..
Press ENTER to continue..
Press ENTER to continue..
Press ENTER to continue..
Press ENTER to continue..

|  _ () ___ / |  ___  / |
| |) | |/ / _ _ \ / _ | |
|  __/| | (| () |) | () | |
||   ||__/__/ _/ _|
[9] Run simplistic benchmark
Command> 9
Cycles: 0x00161dd3
Instns: 0x0003df2d
Chksum: 0x5b8eb866
[9] Run simplistic benchmark
Command>
Command>
`
So it's life captain, but not as we know it. I'm quite happy to make any necessary changes to achieve optimum performance, given a bit of guidance from you. Given the above, I feel justified in reopening the issue as well as congratulating you for the bonus behaviour.

Yes, we'll need to add an entry for the SPI flash chip, as it is unrecognised.

Digilent's Genesys2 uses a xc7k325tffg900-2 with S25FL256S, cf. Section 6.2 of https://digilent.com/reference/_media/reference/programmable-logic/genesys-2/genesys2_rm.pdf
Datasheet for this SPI memory: https://www.infineon.com/dgdl/Infineon-S25FL128S_S25FL256S_128_Mb_(16_MB)256_Mb(32_MB)_3.0V_SPI_Flash_Memory-DataSheet-v18_00-EN.pdf?fileId=8ac78c8c7d0d8da4017d0ecfb6a64a17
I understand that a new entry needs to be added to spiFlashdb.hpp with the vendor ID that may be read from the table replicated below? However, I have yet to understand how to do this. @rwhitby can you help, please?

I have added this chip.
Now you will be able to have a correct display, but for basic usage (write somewhere into the flash) an entry is not really required.

I now have access to a Genesys2 board for a short time, so should be able to test this and also Makefile updates.

I put in a pull request that works on my board, did you see it yet?

I second jrrk's pull request for openFPGALoader. However, I notice that the bitstream is only configured as expected immediately after programming. The FPGA does not seem to load it from flash after power cycling. Are we missing something in the configuration of the memory?

How long did you wait?. The Vivado programming tool seems to generate a flash contents that take just a few seconds to configure, whereas openFPGAloader generated images take around 30s. That is a mystery, but it is an optimisation, not a failure (though I was taken by surprise the first time).

On kc705, I also have to wait around 30 seconds after powering on to load the image.

https://github.com/trabucayre/openFPGALoader/pull/180 has been merged. Hence, openFPGALoader now supports QMTech as well as Genesys2 boards.
Application examples for Genesys2

Load bitstream to SRAM: openFPGALoader -b genesys2 blinky.bit or openFPGALoader --cable digilent --ftdi-channel 1
Load bitstream to flash: openFPGALoader -b genesys2 --verify -f blinky.bit
Reset FPGA: openFPGALoader -b genesys2 -r


Inappropriate mean in loss_functional with rnn

When RNN is used, loss is averaged through (timestep, batchsize). However steps after terminate are masked by output_masks. Episode length must be arranged same length for using RNN.
pol_loss = torch.mean(pol_loss * out_masks)

We have to calculate this like below.
timestep = torch.sum(out_masks, dim=0)
pol_loss = torch.sum(pol_loss * out_masks) / (timestep * batchsize)

#198


added support for s3 files

This PR adds the remote_options parameter in necessary functions to be compatible with S3.

@martindurant It was in my local but I didn't push in the original mapping branch.


Cannot delete organization - violates foreign key constraint

Hi,
I want to delete an organization, but it does not allow me to delete. It says:

The organization only has one user (me) alone and I am the owner.
Do you have any idea why this is happening?

You have submitted a submission using your organization. I think if you delete that one, then you can delete the organization

emmm... I guess I cannot delete my submission (no such button in My Submissions), because that is the permission of the competition organizer. Does it mean that I can never delete the organization until the competition organizer delete my submission?

I think yes.

We are working on adding the possibility to let users delete their own submissions without being organizers (#713).
Not sure how we should handle this issue however.


Badge / Python 3 / update

Add a Travis CI build badge
Mention Python 3 compatibility
Update instructions

looks good, thanks!


Missing -version

Hi all,
With lots of virtualenvs and  envs sometimes is difficult to know which version I'm using.
And most  application have an -version option.
Can we have petrel -version?
Thanks.

Have you tried running "pip freeze"? I believe that'll tell you the versions of currently installed Python packages.

Or "pip show".
http://stackoverflow.com/questions/10214827/find-which-version-of-package-is-installed-with-pip

Or pip list.
Yes I can type pip freeze|grep petrel or
petrel -version isn't this better?

I'll look into it at some point -- it shouldn't be much work. Just wanted to provide you an alternative for now.

Hi Barry,
Something is wrong with Petrel 1.0.1. I have a topology that runs ok on later version, and don't start at 1.0.1. Perhaps  on Storm version 1.0.2 when you have a full patch version for the early problem, you can add the -v or -version. By the way how can I change the name of the GenericTopology?

What do you mean by "later version"? 1.0.1 is the latest.
Can you be more specific what you mean by changing the name?

Sorry earlier version!
petrel submit --config topology.yaml --venv self --logdir pwd
I always get a GenericTopology on the jar file. I want to change the name.

The file it creates is called topology.jar. Do you mean you want to change the name of the file or the Java class? Why is this important/useful?
Maybe it will help me understand if you can fill in the blanks below:
As a ______, I want to ______ so that I can ____.

When you run on 1.0.1, do you get any errors, either written to the console or the logs? Have you tried running the word count sample? I tested with that before uploading the latest version to Pypi.
Can you please create separate tickets for your requests? We are discussing three different questions here:

"-v" option
Topology not working in 1.0.1
Request for controlling topology name

BTW, you can specify the topology name on the Petrel command line. This is only applicable when submitting to a cluster, not when running in local mode. See the following code:
https://github.com/AirSage/Petrel/blob/master/petrel/petrel/cmdline.py#L91-L93

Hi Barry,
Let's see point by point. When I compile my topology for later submission;
petrel submit --config topology.yaml --venv self --logdir 'pwd'
$jar -xvf topology.jar |less
created: META-INF/
inflated: META-INF/MANIFEST.MF
created: storm/
created: storm/petrel/
inflated: storm/petrel/GenericTopology.class
I allway get a GenericTopology.class, and if I want to submit 2 topologies I cant because both have the same name. How can I change this name?

Hi allways submit my topology like this;
storm jar topology.jar storm.petrel.GenericTopology Generic -c strom.petrel.GenericTopology Generic -c nimbus.host=<IP_ADDRESS>

Also, you were saying your topology won't start on 1.0.1. I asked some questions above about that.

Hi Barry,
By mistake I was using my stom.yaml 0.1.0 on 1.0.1.
That's why topology never start and never log nothing! Solved.

Today I saw the warning;
622  [main] WARN  o.a.s.u.NimbusClient - Using deprecated config nimbus.host for backward compatibility. Please update your storm.yaml so it only has config nimbus.seeds

Cool, I'm glad you figured out the version issue. I created a new issue for the Storm setting: https://github.com/AirSage/Petrel/issues/78.


NETOBSERV-579 prefixing all metrics, add new ones

Allow to prefix operational metrics (it introduces a global settings
for metrics, which will probably be extended later)
Unify metrics usage across stages: e.g. channel size was tracked only
in netflow ingester; now they share a common struct that generate
metrics. More metrics now include the "stage" label.
Adding new gauges for tracking channel sizes
Some renaming
Updated metrics doc

Some refactoring to make doc generation work with metrics that are not defined as globals (need to decouple metrics definition from its instantiation in prom registry) . Update doc to include labels, and sort alphabetically.
Also I had to move health & operationalMetrics into the same package to avoid repetitions like operationalmetrics.Metrics , which resulted also in move health_test into the pipeline package (to avoid cycle)

Here's the details of the new metrics:
conntrack_input_records (unchanged)

Name
conntrack_input_records

Description
The total number of input records per classification.

Type
counter

Labels
classification

conntrack_memory_connections (unchanged)

Name
conntrack_memory_connections

Description
The total number of tracked connections in memory.

Type
gauge

Labels

conntrack_output_records (unchanged)

Name
conntrack_output_records

Description
The total number of output records.

Type
counter

Labels
type

encode_prom_errors (unchanged)

Name
encode_prom_errors

Description
Total errors during metrics generation

Type
counter

Labels
error, metric, key

ingest_flows_processed (renamed from "ingest_collector_flow_logs_processed", added stage label)

Name
ingest_flows_processed

Description
Number of flow logs processed by the ingester

Type
counter

Labels
stage

metrics_processed (renamed from "encode_prom_metrics_processed", added stage label)

Name
metrics_processed

Description
Number of metrics processed

Type
counter

Labels
stage

records_written (renamed from "loki_records_written", added stage label, now works also with kafka write)

Name
records_written

Description
Number of output records written

Type
counter

Labels
stage

stage_duration_ms (unchanged)

Name
stage_duration_ms

Description
Pipeline stage duration in milliseconds

Type
histogram

Labels
stage

stage_in_queue_size (renamed from ingest_collector_queue_length, generalized for all stages)

Name
stage_in_queue_size

Description
Pipeline stage input queue size (number of elements in queue)

Type
gauge

Labels
stage

stage_out_queue_size (new metric)

Name
stage_out_queue_size

Description
Pipeline stage output queue size (number of elements in queue)

Type
gauge

Labels
stage

Codecov Report

Merging #314 (08d3dbe) into main (d2d178b) will increase coverage by 0.46%.
The diff coverage is 73.72%.

@@            Coverage Diff             @@
##             main     #314      +/-   ##
==========================================
+ Coverage   69.65%   70.11%   +0.46%
==========================================
  Files          82       84       +2
  Lines        4729     4832     +103
==========================================
+ Hits         3294     3388      +94
+ Misses       1240     1229      -11
- Partials      195      215      +20

Flag
Coverage Δ

unittests
70.11% <73.72%> (+0.46%)
:arrow_up:

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

Impacted Files
Coverage Δ

cmd/confgenerator/main.go
0.00% <0.00%> (ø)

cmd/flowlogs-pipeline/main.go
0.00% <0.00%> (ø)

cmd/operationalmetricstodoc/main.go
0.00% <0.00%> (ø)

pkg/confgen/config.go
33.33% <ø> (ø)

pkg/config/config.go
50.00% <10.00%> (-13.64%)
:arrow_down:

pkg/operational/metrics.go
66.01% <66.01%> (ø)

pkg/pipeline/pipeline_builder.go
70.03% <70.58%> (-0.98%)
:arrow_down:

pkg/pipeline/write/write_loki.go
70.43% <75.00%> (-0.39%)
:arrow_down:

pkg/pipeline/encode/encode_prom.go
77.82% <80.00%> (+0.45%)
:arrow_up:

pkg/pipeline/encode/encode_kafka.go
69.86% <83.33%> (+0.84%)
:arrow_up:

... and 18 more

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


VC update API doc

Coverage remained the same at 51.762% when pulling c68dbe0bfdb8305c249ee11179f08bd825bd4ccd on zimiao/vc_update_api_doc into 97b82079780906a6f6eab4ef56bdfd88d47bcc6b on vc_update.

Coverage remained the same at 51.762% when pulling c68dbe0bfdb8305c249ee11179f08bd825bd4ccd on zimiao/vc_update_api_doc into 97b82079780906a6f6eab4ef56bdfd88d47bcc6b on vc_update.

Coverage remained the same at 51.762% when pulling c68dbe0bfdb8305c249ee11179f08bd825bd4ccd on zimiao/vc_update_api_doc into 97b82079780906a6f6eab4ef56bdfd88d47bcc6b on vc_update.

Coverage remained the same at 51.762% when pulling c68dbe0bfdb8305c249ee11179f08bd825bd4ccd on zimiao/vc_update_api_doc into 97b82079780906a6f6eab4ef56bdfd88d47bcc6b on vc_update.


diagram-generator tikz to png/svg

I am getting a strange result when I generate svg/png from tikz in markdown document.
I have this in my markdown:
\Tree [ .A {A and B} {\(\lambda \mathrm{x} \in \mathrm{D} . \text{x is tall}\)} ]

The result of $ pandoc --lua-filter=diagram-generator.lua --extract-media images -o test.docx test.md is a png where what should be a '.' is a small triangle.
The same thing happens when I make svg, but I can't attach svg to an issue.

I had better results adding --pdf-poppler to the Inkscape command.


Better type inference when not chaining (better interop with async/await)

This library is really helping us at work to make our code safer. However, we've noticed that readability can suffer when using .andThen/.orElse chains, especially when integrating with old async code that doesn't use neverthrow. On the other hand, if we don't chain functions, we get very unreadable return types.
Here's something we came up with to make migration easier (demo playground here):
export type ResultError<T> = T extends Result<infer _, infer E>
  ? E
  : T extends ResultAsync<infer _, infer E>
  ? E
  : never;

export type ResultValue<T> = T extends Result<infer V, infer _>
  ? V
  : T extends ResultAsync<infer V, infer _>
  ? V
  : never;

/**
 * Takes a function that returns a Promise<Result<>> and transforms its return type to ResultAsync<>.
 * Still works if fn returns something like Promise<Result<A, B> | Err<never, C>> - transforms return type to ResultAsync<A, B | C>
 */
export function toResultAsyncFn<
  TArgs extends any[],
  R extends Result<any, any>,
>(
  fn: (...args: [...TArgs]) => Promise<R>,
): (...args: [...TArgs]) => ResultAsync<ResultValue<R>, ResultError<R>> {
  return (...args: Parameters<typeof fn>) =>
    ResultAsync.fromSafePromise(fn(...args)).andThen((result) => {
      if (result.isOk()) return okAsync(result.value);
      else return errAsync(result.error);
    });
}

/**
 * Takes a function that returns a Promise<Result<>>, evaluates it, and returns a ResultAsync<>.
 * Still works if fn returns something like Promise<Result<A, B> | Err<never, C>> - returns a ResultAsync<A, B | C>
 */
export function makeResultAsync<R extends Result<any, any>>(
  fn: () => Promise<R>,
): ResultAsync<ResultValue<R>, ResultError<R>> {
  return ResultAsync.fromSafePromise(fn()).andThen((result) => {
    if (result.isOk()) return okAsync(result.value);
    else return errAsync(result.error);
  });
}

And here's what they look like in use:
// returns Promise<Ok<"ok", never> | Err<never, 1> | Ok<2, never> | Err<never, "err">>
async function returnsPromisedResult(str: Promise<string>) {
  const s = await str;
  if (s.length === 0) return ok("ok" as const);
  else if (s.length === 1) return err(1 as const);
  else if (s.length === 2) return ok(2 as const);
  else return err("err" as const);
}

// returns ResultAsync<"ok" | 2, 1 | "err">
function returnsResultAsync(str: string) {
  return makeResultAsync(async () => {
    const s = await Promise.resolve(str);
    if (s.length === 0) return ok("ok" as const);
    else if (s.length === 1) return err(1 as const);
    else if (s.length === 2) return ok(2 as const);
    else return err("err" as const);
  });
}

// (str: Promise<string>) => ResultAsync<"ok" | 2, 1 | "err">
const returnsResultAsync2 = toResultAsyncFn(returnsPromisedResult);

These functions would have saved us a lot of frustration if they were available to us from the start. Are there any issues with adding them to the library? I'm happy to do it if I can get sign-off. 🙂

Looks awesome. Totally feel like this is something that is needed.

I might be missing something but what does this achieve that .match() can’t ?

This would be a selling point because it allows the seamless integration of async/await code.

I had a problem with methods not correctly infering the value type on returned ResultAsync. In the following code, the type of result variables should have been the same after narrowing down with result.isErr() check, but's not the case:
const promise1 = async () => {
	const result = Math.random() > 0.5 ? ok(1) : err('error');
	if (result.isErr()) {
		return result; // const result: Err<never, string>
	}

	return ok('String only result');
};
const promise2 = async () => {
	const result = Math.random() > 0.5 ? await okAsync(1) : await errAsync('error');
	if (result.isErr()) {
		return result; // const result: Err<never, string> | Err<number, never>
	}
	return ok('String only result');
};

Even though type Result<T, E> = Ok<T, E> | Err<T, E> it seems returning A PromiseLike<Result<T, E>> breaks narrowing-down of the type. This became apparent to me when I tried to turn the Promise into a ResultAsync using the code from @bvisch
I have fixed it with replacing Result<T, E> with Ok<T, never> | Err<never, E> everywhere in ResultAsync types:
diff --git a/node_modules/neverthrow/dist/index.d.ts b/node_modules/neverthrow/dist/index.d.ts
index e542ecf..bd32b72 100644
--- a/node_modules/neverthrow/dist/index.d.ts
+++ b/node_modules/neverthrow/dist/index.d.ts
@@ -2,9 +2,9 @@ interface ErrorConfig {
     withStackTrace: boolean;
 }

-declare class ResultAsync<T, E> implements PromiseLike<Result<T, E>> {
+declare class ResultAsync<T, E> implements PromiseLike<Ok<T, never> | Err<never, E>> {
     private _promise;
-    constructor(res: Promise<Result<T, E>>);
+    constructor(res: Promise<Ok<T, never> | Err<never, E>>);
     static fromSafePromise<T, E = never>(promise: PromiseLike<T>): ResultAsync<T, E>;
     static fromPromise<T, E>(promise: PromiseLike<T>, errorFn: (e: unknown) => E): ResultAsync<T, E>;
     static combine<T extends readonly [ResultAsync<unknown, unknown>, ...ResultAsync<unknown, unknown>[]]>(asyncResultList: T): CombineResultAsyncs<T>;
@@ -25,7 +25,7 @@ declare class ResultAsync<T, E> implements PromiseLike<Result<T, E>> {
      * Emulates Rust's `?` operator in `safeTry`'s body. See also `safeTry`.
      */
     safeUnwrap(): AsyncGenerator<Err<never, E>, T>;
-    then<A, B>(successCallback?: (res: Result<T, E>) => A | PromiseLike<A>, failureCallback?: (reason: unknown) => B | PromiseLike<B>): PromiseLike<A | B>;
+    then<A, B>(successCallback?: (res: Ok<T, never> | Err<never, E>) => A | PromiseLike<A>, failureCallback?: (reason: unknown) => B | PromiseLike<B>): PromiseLike<A | B>;
 }
 declare const okAsync: <T, E = never>(value: T) => ResultAsync<T, E>;
 declare const errAsync: <T = never, E = unknown>(err: E) => ResultAsync<T, E>;


Update doesn't call failure()

On update, got back success() with a json error message as the responsebody - this should instead call failure in the callback.

this was fixed in https://github.com/stackmob/stackmob-java-client-sdk/commit/736dd99919475acc42c0663e4705c83aac3c6c41


User request: set volume for LT sounds

this.beep.play(volume) - defaults to 1
lt.speak('...',{ volume: ... }) - defaults to 0.7
where volume is between 0 and 1

Implemented in v2.3.168


What is the future of chakracore if edge moves to chromium

What is the future of chakracore if edge moves to chromium

Duplicate #5857

Please see the statement from https://github.com/Microsoft/ChakraCore/issues/5865 and feel free to ask us there if you have more questions.


Update readme and more GitHub pages setup

Description
This PR:

Includes the contributing.md file to be built as a webpage
Adds the hosted documentation link to the readme
Adds favicon

Issues Resolved
N/A
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

@kolchfa-aws can we have favicon.ico under assets?

Moved favicon. I don't think I can move any of the other files as Jekyll expects them to be there in the root directory. There is an option to publish off of a dedicated branch though. We'll just have to make sure that any changes to documentation are automatically merged into that branch.


Dashboard selection modal not showing after update to 0.2.4

After I updated to 0.2.4, the dashboard selection modal does not show up when pressing CTRL. I switched back to 0.2.3 and it works.

Hi torstenfeld, I effectively changed the ctrl key in the 0.2.4 version, I used rivetsjs to make the binding but I can't reproduce the error.  Can you please give me more information so I am able to reproduce it? I tried with Chrome 41 and Firefox 36 and got nothing. Waiting for answers or feedback!

@individuo7 checking right now. might be, that I missed some additional includes as I overwrote the base template.

as written on twitter, I missed the changed css as I overwrote dashing.css --> closed