Bot only moves and doing nothing after some time

Expected Behavior
Bot collects Pokemon and spins Pokestops correctly.
Actual Behavior
It only works for a while (like ten minutes) then it hangs and always tries to approach forts. Logs are looking like:
2016-08-07 17:00:10,207 [  SpinFort] [INFO] [pokestop_searching_too_often] Possibly searching too often, take a rest.
2016-08-07 17:00:10,208 [CatchLuredPokemon] [INFO] [lured_pokemon_found] Lured pokemon at fort Olmec Head (7d2c87fd6e3140d7b675393cc3166098.16)
2016-08-07 17:00:15,989 [MoveToFort] [INFO] [moving_to_lured_fort] Moving towards pokestop New York Times Time Capsule - 0.06km (attraction of lure 0.06km)
2016-08-07 17:00:18,610 [CatchLuredPokemon] [INFO] [lured_pokemon_found] Lured pokemon at fort Megaloceros (caafeea89acf44d59291129613a18c12.16)
2016-08-07 17:00:24,117 [MoveToFort] [INFO] [moving_to_lured_fort] Moving towards pokestop New York Times Time Capsule - 0.05km (attraction of lure 0.05km)
2016-08-07 17:00:27,890 [  SpinFort] [INFO] [pokestop_out_of_range] Pokestop New York Times Time Capsule out of range.
2016-08-07 17:00:27,890 [  SpinFort] [INFO] [pokestop_searching_too_often] Possibly searching too often, take a rest.
2016-08-07 17:00:27,892 [CatchLuredPokemon] [INFO] [lured_pokemon_found] Lured pokemon at fort Megaloceros (caafeea89acf44d59291129613a18c12.16)
2016-08-07 17:00:33,267 [MoveToFort] [INFO] [moving_to_lured_fort] Moving towards pokestop The Galactic Armillary - 0.06km (attraction of lure 0.06km)
2016-08-07 17:00:36,158 [CatchLuredPokemon] [INFO] [lured_pokemon_found] Lured pokemon at fort New York Times Time Capsule (ed20ad2072fd4345825207b8879b0eb8.12)
2016-08-07 17:00:41,547 [MoveToFort] [INFO] [moving_to_lured_fort] Moving towards pokestop The Galactic Armillary - 0.05km (attraction of lure 0.05km)
2016-08-07 17:00:44,572 [  SpinFort] [INFO] [pokestop_out_of_range] Pokestop The Galactic Armillary out of range.
2016-08-07 17:00:44,572 [  SpinFort] [INFO] [pokestop_searching_too_often] Possibly searching too often, take a rest.
2016-08-07 17:00:44,574 [CatchLuredPokemon] [INFO] [lured_pokemon_found] Lured pokemon at fort New York Times Time Capsule (ed20ad2072fd4345825207b8879b0eb8.12)
2016-08-07 17:00:49,948 [MoveToFort] [INFO] [moving_to_lured_fort] Moving towards pokestop Theodore Roosevelt Park West Side Entrance - 0.08km (attraction of lure 0.08km)
2016-08-07 17:00:52,720 [CatchLuredPokemon] [INFO] [lured_pokemon_found] Lured pokemon at fort New York Times Time Capsule (ed20ad2072fd4345825207b8879b0eb8.12)
2016-08-07 17:00:58,090 [MoveToFort] [INFO] [moving_to_lured_fort] Moving towards pokestop Theodore Roosevelt Park West Side Entrance - 0.07km (attraction of lure 0.07km)
2016-08-07 17:01:01,976 [CatchLuredPokemon] [INFO] [lured_pokemon_found] Lured pokemon at fort New York Times Time Capsule (ed20ad2072fd4345825207b8879b0eb8.12)
2016-08-07 17:01:07,363 [MoveToFort] [INFO] [moving_to_lured_fort] Moving towards pokestop Theodore Roosevelt Park West Side Entrance - 0.06km (attraction of lure 0.06km)
2016-08-07 17:01:10,206 [CatchLuredPokemon] [INFO] [lured_pokemon_found] Lured pokemon at fort The Galactic Armillary (9836322a9da64e6ea0501d1895d96d25.16)
2016-08-07 17:01:15,575 [MoveToFort] [INFO] [moving_to_lured_fort] Moving towards pokestop Theodore Roosevelt Park West Side Entrance - 0.04km (attraction of lure 0.04km)
2016-08-07 17:01:18,699 [  SpinFort] [INFO] [pokestop_out_of_range] Pokestop Theodore Roosevelt Park West Side Entrance out of range.
2016-08-07 17:01:18,699 [  SpinFort] [INFO] [pokestop_searching_too_often] Possibly searching too often, take a rest.
2016-08-07 17:01:18,700 [CatchLuredPokemon] [INFO] [lured_pokemon_found] Lured pokemon at fort Theodore Roosevelt Park West Side Entrance (f7b823423fa14d2689722784290d9df4.16)
2016-08-07 17:01:24,083 [MoveToFort] [INFO] [moving_to_lured_fort] Moving towards pokestop Arthur Ross Terrace - 0.08km (attraction of lure 0.09km)
2016-08-07 17:01:26,472 [CatchLuredPokemon] [INFO] [lured_pokemon_found] Lured pokemon at fort The Galactic Armillary (9836322a9da64e6ea0501d1895d96d25.16)
2016-08-07 17:01:31,823 [MoveToFort] [INFO] [moving_to_lured_fort] Moving towards pokestop Arthur Ross Terrace - 0.07km (attraction of lure 0.08km)
2016-08-07 17:01:35,032 [CatchLuredPokemon] [INFO] [lured_pokemon_found] Lured pokemon at fort The Galactic Armillary (9836322a9da64e6ea0501d1895d96d25.16)
2016-08-07 17:01:40,410 [MoveToFort] [INFO] [moving_to_lured_fort] Moving towards pokestop Arthur Ross Terrace - 0.05km (attraction of lure 0.07km)
2016-08-07 17:01:43,403 [  SpinFort] [INFO] [pokestop_out_of_range] Pokestop Arthur Ross Terrace out of range.
2016-08-07 17:01:43,403 [  SpinFort] [INFO] [pokestop_searching_too_often] Possibly searching too often, take a rest.
2016-08-07 17:01:43,404 [CatchLuredPokemon] [INFO] [lured_pokemon_found] Lured pokemon at fort The Galactic Armillary (9836322a9da64e6ea0501d1895d96d25.16)
2016-08-07 17:01:48,840 [MoveToFort] [INFO] [moving_to_lured_fort] Moving towards pokestop AMNH - The Educational Travel - 0.06km (attraction of lure 0.06km)
2016-08-07 17:01:51,641 [CatchLuredPokemon] [INFO] [lured_pokemon_found] Lured pokemon at fort The Galactic Armillary (9836322a9da64e6ea0501d1895d96d25.16)
2016-08-07 17:01:56,986 [MoveToFort] [INFO] [moving_to_lured_fort] Moving towards pokestop AMNH - The Educational Travel - 0.04km (attraction of lure 0.04km)
2016-08-07 17:02:00,245 [  SpinFort] [INFO] [pokestop_out_of_range] Pokestop AMNH - The Educational Travel out of range.
2016-08-07 17:02:00,245 [  SpinFort] [INFO] [pokestop_searching_too_often] Possibly searching too often, take a rest.

Steps to Reproduce
Part of config.json is like:
"location": "40.782735, -73.965763",
"tasks": [
{
"type": "HandleSoftBan"
},
{
"type": "CollectLevelUpReward"
},
{
"type": "IncubateEggs",
"config": {
"longer_eggs_first": true
}
},
{
"type": "TransferPokemon"
},
{
"type": "EvolvePokemon",
"config": {
"evolve_all": "none",
"first_evolve_by": "cp",
"evolve_above_cp": 500,
"evolve_above_iv": 0.8,
"logic": "or",
"evolve_speed": 20,
"use_lucky_egg": true
}
},
{
"type": "RecycleItems",
"config": {
"item_filter": {
"Pokeball":       { "keep" : 200 },
"Potion":         { "keep" : 1 },
"Super Potion":   { "keep" : 1 },
"Hyper Potion":   { "keep" : 30 },
"Revive":         { "keep" : 1 },
"Razz Berry":     { "keep" : 50 }
}
}
},
{
"type": "CatchVisiblePokemon"
},
{
"type": "SpinFort"
},
{
"type": "CatchLuredPokemon"
},
{
"type": "MoveToFort"
},
{
"type": "FollowSpiral",
"config": {
"diameter": 4,
"step_size": 70
}
}
],
"map_object_cache_time": 5,
"forts": {
"avoid_circles": true,
"max_circle_size": 50
},
Other Information
OS:  OSX
Git Commit: 5941cd76fcc498c061ea47d13c365da0c86109b6
Python Version: 2.7

Same here, restart fixes it temporarily.

There seems to be something crashing which creates this ...
2016-08-07 15:01:01,978 [PokemonCatchWorker] [INFO] [pokemon_appeared] A wild Poliwag appeared! [CP 436] [Potential 0.38] [S/A/D 4/8/5]
2016-08-07 15:01:05,608 [PokemonCatchWorker] [INFO] [threw_pokeball] Used Greatball, with chance 42.96 (1 left)
2016-08-07 15:01:06,356 [PokemonCatchWorker] [INFO] [pokemon_caught] Captured Poliwag! [CP 436] [Potential 0.38] [4/8/5] [+210 exp]
2016-08-07 15:01:11,745 [  SpinFort] [INFO] [spun_pokestop] Spun pokestop Lincolnshire Echo. Experience awarded: 100. Items awarded: {u'Razz Berry': 1, u'Potion': 1, u'Pokeball': 3, u'Revive': 2}
2016-08-07 15:01:14,138 [MoveToFort] [INFO] [moving_to_lured_fort] Moving towards pokestop Brayford's Wildlife - 0.04km (attraction of lure 0.11km)
Traceback (most recent call last):
  File "/usr/lib/python2.7/logging/__init__.py", line 861, in emit
    msg = self.format(record)
  File "/usr/lib/python2.7/logging/__init__.py", line 734, in format
    return fmt.format(record)
  File "/usr/lib/python2.7/logging/__init__.py", line 465, in format
    record.message = record.getMessage()
  File "/usr/lib/python2.7/logging/__init__.py", line 329, in getMessage
    msg = msg % self.args
TypeError: not all arguments converted during string formatting
Logged from file __init__.py, line 550
2016-08-07 15:01:21,886 [PokemonGoBot] [INFO] [login_started] Login procedure started.
2016-08-07 15:01:23,533 [PokemonGoBot] [INFO] [login_successful] Login successful.
2016-08-07 15:01:23,535 [IncubateEggs] [INFO] [next_egg_incubates] Next egg incubates in 1.53 km
2016-08-07 15:01:23,935 [TransferPokemon] [INFO] [keep_best_release] Keeping best 2 Poliwag, based on cp and iv
2016-08-07 15:01:24,352 [TransferPokemon] [INFO] [pokemon_release] Exchanged Poliwag [CP 436] [IV 0.38] for candy.
2016-08-07 15:01:27,557 [RecycleItems] [INFO] [item_discarded] Discarded 3x Pokeball (maximum 50).
2016-08-07 15:01:27,913 [RecycleItems] [INFO] [item_discarded] Discarded 1x Potion (maximum 5).
2016-08-07 15:01:28,314 [RecycleItems] [INFO] [item_discarded] Discarded 2x Revive (maximum 5).
2016-08-07 15:01:28,680 [  SpinFort] [INFO] [pokestop_out_of_range] Pokestop Brayford's Wildlife out of range.
2016-08-07 15:01:28,680 [  SpinFort] [INFO] [pokestop_searching_too_often] Possibly searching too often, take a rest.
2016-08-07 15:01:29,000 [MoveToFort] [INFO] [moving_to_lured_fort] Moving towards pokestop Brayford Waterfront - 0.10km (attraction of lure 0.10km)
2016-08-07 15:01:31,266 [MoveToFort] [INFO] [moving_to_lured_fort] Moving towards pokestop Brayford Waterfront - 0.08km (attraction of lure 0.08km)
2016-08-07 15:01:33,482 [MoveToFort] [INFO] [moving_to_lured_fort] Moving towards pokestop Brayford Waterfront - 0.06km (attraction of lure 0.06km)
2016-08-07 15:01:36,106 [CatchLuredPokemon] [INFO] [lured_pokemon_found] Lured pokemon at fort Brayford Waterfront (c3e8f778dd5647ffbebfe8e5957b5e5e.16)
2016-08-07 15:01:41,492 [MoveToFort] [INFO] [moving_to_lured_fort] Moving towards pokestop Brayford Waterfront - 0.04km (attraction of lure 0.04km)
2016-08-07 15:01:44,003 [CatchLuredPokemon] [INFO] [lured_pokemon_found] Lured pokemon at fort Brayford Waterfront (c3e8f778dd5647ffbebfe8e5957b5e5e.16)
2016-08-07 15:01:50,008 [  SpinFort] [INFO] [pokestop_out_of_range] Pokestop Brayford Waterfront out of range.
2016-08-07 15:01:50,008 [  SpinFort] [INFO] [pokestop_searching_too_often] Possibly searching too often, take a rest.
2016-08-07 15:01:50,435 [MoveToFort] [INFO] [moving_to_lured_fort] Moving towards pokestop Brayford Pool Maps - 0.10km (attraction of lure 0.10km)

similar issue i have set these values like so but it still hasnt made a difference and it still does nothing after about 4 minutes
"type": "MoveToFort",         "config": {             "lure_attraction": false,             "lure_max_distance": 0

That config is not working, since usage is commented in code.

Should be fixed now

What was the fix??
I've had a look through what was going on, and I've a sneaky suspicion it's related to #2720??

for me, the fix was editing init.py, Find this line: "self.login()"
Then add this below:
self.api.activate_signature("encrypt.so") (or path to wherever your encrypt file is)

Fixed in latest developments.

Dev. Damn auto correct

@brantje is the latest fix in dev supposed to place the encrypt.so file in the bot root directory as well? If so then it doesn't do it for me. When launching just gives:
2016-08-07 19:18:52,264 [PokemonGoBot] [ERROR] encrypt.so is not found! Please place it in the bots root directory.
The fix is obvious but just wondering if it should be doing it or not.

@scarfield Which instance of "self.login()"?
The first one is:
        if remaining_time < 60:
            self.logger.info("Session stale, re-logging in", 'yellow')
            position = self.position
            self.api = ApiWrapper()
            self.position = position
            self.login()

And the second one is:
    # provide player position on the earth
    self._set_starting_position()

    self.login()

First one. Mine is:
if remaining_time < 60:                 self.logger.info("Session stale, re-logging in", 'yellow')                 position = self.position                 self.api = ApiWrapper()                 self.position = position                 self.login()                 self.api.activate_signature("encrypt.so")

Thank you, I just started it back up. I'll update this post if it works or not.

I'm running on dev now for about 15 minutes, so far working fine. No luredfort errors or anything. Will update if i catch an error or in about an hour if all good.

@oalmali For me this works perfectly fine now after pulling the dev branch and setting it up properly. Imo could close this.

@firzzen is the bot also catching pokemons?

@sinthu94 yes all works fine after i cloned the latest dev.

@firzzen sorry for late response I was traveling. I am executing script with the latest version dev branch, going to update issue soon.

@oalmali no need to be sorry for anything. All working well for me now after pulling latest dev.


cool!

looks like a nice tool, congrats!
but in the README, under "Requirement" section, Capstone is missing?
cheers.

Capstone is in the requirements.txt file, I forgot to add it in the Readme.
An update of the Readme with up-to-date screenshot of the interface (with the addition of capstone disassembly) will be done tomorrow, I will add it at the same time.

great! linked to your tool from our website now: http://www.capstone-engine.org/showcase.html
keep it up, cheers.

Thank you for the link.
I just update the Readme.


Xaml Islands issue on drag and drop / reorder

Describe the bug
Trying to drag and drop a TreeViewItem or ListViewItem has an offset on drop prosition.
Steps to reproduce the bug
https://github.com/nbkalex/Xaml-Islands/tree/main
Has been reproduced on Windows 11 23H2

Build and run the application from repo above
Try to drag and drop an item from the tree

Expected behavior
The drop position should be the cursor position
Screenshots

NuGet package version
WinUI 3 - Windows App SDK 1.5.1: 1.5.240311000
Windows version
No response
Additional context
No response

After some investigations found out that the issue doesn't reproduce on dpi 100%.
On my machine I can reproduce on resolution 3840 x 2160 with dpi 150%

I fixed the issue. The problem was that I was setting the dpi awareness programmatically and not in the manifest file


Review IEventStore API for v4

Look for opportunities to move "special" event store functionality to just use the Linq mechanisms
Add Linq support for StreamState

I'm saying this just isn't that important, and it can slide until later.

Just not changing:)


Improve terminal handling

For writing LinuxKit tests we would like to redirect the output of the VM to a file (or pipe to grep). This was not possible since the stdio backend in hyperkit (-l comZ,stdio) expects to run on a terminal.
This PR mainly checks if run against a terminal, and if not, uses the PTY backend (-l comX,autopty=...). Then we use a go routing to copy the VMs output to stdout. This way the terminal emulation code gets a PTY and we can redirect.
This PR also copies some small pieces of code from containerd to facilitate the Terminal handling and also renames the package to github.com/moby/hyperkit

Fixed some of the comments. What's your preference regarding erroring out if there is a error on opening the tty file?

Looks like an error returned at that point would be propagated all the way back out through Run or Start as needed already (maybe I'm confused though since you seemed to think not), so I think I'd prefer to return errors other than ENOEXIST (which should loop, ideally there would be a timeout, but no biggie).

I may also be confused...the code is executed in a go routine and I frankly don't know how a return would be handled/propagated (need to read up on Go a bit more)

the code is executed in a go routine

Ah that does complicate things somewhat! You'd need to do something with cancellable contexts and/or chan error type things I think. Almost certainly not worth the effort to rearchitect at this point. Although I should note that if a long running daemon were to use this code it could potentially leak goroutines until it exhausted some resource or other, but that's an even bigger contextification job.

I have no other comments so LGTM now.

thanks for the review. I'll merge this now. I think some of the conditionals in the check can and probably should be streamlined. I may do a separate PR for that


Correct the precedence of operators

Reference: https://github.com/apache/groovy/blob/master/src/main/org/codehaus/groovy/antlr/groovy.g#L2276
// expressions
// Note that most of these expressions follow the pattern
//   thisLevelExpression :
//         nextHigherPrecedenceExpression
//                 (OPERATOR nextHigherPrecedenceExpression)*
// which is a standard recursive definition for a parsing an expression.
// The operators have the following precedences:
//      lowest  ( 15)  = **= *= /= %= += -= <<= >>= >>>= &= ^= |= (assignments)
//              ( 14)  ?: (conditional expression and elvis)
//              ( 13)  || (logical or)
//              ( 12)  && (logical and)
//              ( 11)  | ()binary or
//              ( 10)  ^ (binary xor)
//              (  9)  & (binary and)
//              (8.5)  =~ ==~ (regex find/match)
//              (  8)  == != <=> === !== (equals, not equals, compareTo)
//              (  7)  < <= > >= instanceof as in (relational, in, instanceof, type coercion)
//              (  6)  << >> >>> .. ..< (shift, range)
//              (  5)  + - (addition, subtraction)
//              (  4)  * / % (multiply div modulo)
//              (  3)  ++ -- + - (pre dec/increment, unary signs)
//              (  2)  ** (power)
//              (  1)  ~ ! $ (type) (negate, not, typecast)
//                     ?. * *. *: (safe dereference, spread, spread-dot, spread-map)
//                     . .& .@ (member access, method closure, field/attribute access)
//                     [] ++ -- (list/map/array index, post inc/decrement)
//                     () {} [] (method call, closableBlock, list/map literal)
//                     new () (object creation, explicit parenthesis)
//
// the last two are not usually on a precedence chart; I put them in
// to point out that new has a higher precedence than '.', so you
// can validly use
//       new Frame().show()
//
// Note that the above precedence levels map to the rules below...
// Once you have a precedence chart, writing the appropriate rules as below
// is usually very straightforward

Looks like the list I took from http://groovy-lang.org/operators.html - Should be the same list

@jespersm
The original implementation can not handle ternary expression properly.
Fixed by: https://github.com/jespersm/groovy/commit/bf01fac58c588cbe06c2b625a5e939bbf2bad98c

The list might not have been updated correctly. I would suggest writing test clarifying the precedence rules for each operator, and then ensure both parsers behave equal.

I see. Thanks for your suggestion.

I see. Thanks for your suggestion.


Restoring oil_field province modifier

Upon changing the ownership of a province with "oil_field" modifier (provinces like Trondheim or Riyadh) this modifier should be restored.
In my game (NET->XEU) inheriting Norway caused small problems with supply of oil because of this.

This is a generic issue with any province modifier (they are lost with changed ownership). The corrective action is to make a "reoccurring" check for all province modifiers.  Or better to let the original event re-fire. Will correct oil fields.


US 01.05.01

As an organizer, I want to track real-time attendance and receive alerts for important milestones.
Acceptance Criteria

[x] The system updates the attendance count in real-time as attendees check in.

[x] Organizers can set specific attendance milestones (e.g., 50, 100 attendees) for each event.

[x] The system sends alerts to the organizer when attendance milestones are reached.

[x] A dashboard or similar interface displays the current attendance count and milestones to the organizer.

[x] In case of issues with attendance tracking, the system provides clear notifications and suggestions for resolution.

Completed


Add Skinner House by LIL SKIBIDI JR

Song Name
Skinner House
Artist Name
LIL SKIBIDI JR
Source
Youtube
Youtube Link
QSS9FHw1aZA
Direct File Link
No response
Song ID
945695
Start Offset [ms]
35.1
Extra
Created from Auto Nong.
Created for level: 75408107
Downloaded: Yes

accept

Hi

accept


Rename repo everywhere

Overview
Re-names the repository everywhere.
Other changes

Upgrade dependencies
Adding support for more fine-grained dataset statistics, like avg/tokens per document

This is being blocked by an issue with poetry. I am going to track it in #169. It appears only to be an issue on the SLURM cluster, as the CI is running fine.


Large scale project in github using Laravel modules

Hello,
Looking for Large scale project in github using Laravel modules  to inspire the structure
Also if there is project using Metronic theme with Laravel Modules
Waiting for your answers

Maybe I am wrong but https://github.com/bagisto/bagisto it seems to use a tweaked version for "modules" (packages).
Each package has a structure almost identical to the one provided with "laravel-modules"


fix: discriminators when the query result is an array

If a query returns an array, each document can have a different schema thanks to mongoose discriminators.
By checking if the result is an array before calling attachVirtuals, every document is checked individually and different schemas can be used.
Resolves #36

Thanks for the great work and for pointing out this issue. Unfortunately I couldn't merge your PR directly because there were a lot of merge conflicts with #35 and c725269. However, I'll note your contribution in our changelog. Thanks for your patience and your work! :+1:


Search bar is not distinguishable from result cards

When scrolling, the search bar floats so that you don't have to scroll to the top to interact with it. However, the cards have the same background color as the search bar, making it difficult to tell them apart. This is a bad UX.

Potential fixes

Give the search bar a box shadow

not preferable, too many floating elements with the header there as well

create a white background for search bar, just like header

some difficulties: pagecontainer has padding, so would need to do some hacky stuff

do not float the search bar

least ideal and only as a last resort, search bar floating is good for user

Right now, the search bar is no longer sticky. Will have to explore all potential fixes still.


⚠ Bofrost.lu has degraded performance

In b7cf436, Bofrost.lu (https://www.bofrost.lu) experienced degraded performance:

HTTP code: 200
Response time: 1470 ms

Resolved: Bofrost.lu performance has improved in 8ac69b5 after 6 minutes.


compilation issue on raspberry pi

ieven@pi30:~/workspace/serial2mqtt $ make -f serial2mqtt.mk
/usr/bin/g++  -c  "Serial2Mqtt.cpp" -g -O0 -Wall -std=c++0x  -o ./Debug/Serial2Mqtt.cpp.o -I. -I. -I../Common -I../ArduinoJson/src -I../paho.mqtt.c/src
In file included from /usr/include/c++/8/bits/stl_algobase.h:64,
                 from /usr/include/c++/8/vector:60,
                 from Serial2Mqtt.h:10,
                 from Serial2Mqtt.cpp:2:
/usr/include/c++/8/bits/stl_pair.h: In instantiation of ‘struct std::pair<const std::__cxx11::basic_string<char>, Bytes>’:
Serial2Mqtt.cpp:615:124:   required from here
/usr/include/c++/8/bits/stl_pair.h:303:17: error: ‘constexpr std::pair<_T1, _T2>::pair(const std::pair<_T1, _T2>&) [with _T1 = const std::__cxx11::basic_string<char>; _T2 = Bytes]’ declared to take const reference, but implicit declaration would take non-const
       constexpr pair(const pair&) = default;
                 ^~~~
make: *** [serial2mqtt.mk:102: Debug/Serial2Mqtt.cpp.o] Error 1

Compiler raspberry pi
lieven@pi30:~/workspace/serial2mqtt $ g++ --version
g++ (Raspbian 8.3.0-6+rpi1) 8.3.0
Copyright (C) 2018 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Compiler PC ( no issue )
lieven@pcdell:~/workspace/serial2mqtt$ g++ --version
g++ (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0
Copyright (C) 2019 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

/ArduinoJson/ ...

There are at least 4 common libraries for that.
In the example files for Arduino you are including Arduino_JSON, now I see the other.
Which one is the right one?

is it possible you are using 2 different types of this library for Arduino and for the gateway?

Your question is not related to the issue at hand.
I don't use Arduino IDE.
I just clone bblanchon/ArduinoJson

@halfbakery  I had to comment some lines out, as they didn't compile on a raspberry pi. Can you have a look ?
	for (map<string, Bytes>::iterator lpmi = _mqttLocalPersistenceMessages.begin(); lpmi != _mqttLocalPersistenceMessages.end(); ++lpmi)
	{
		serialPublish(PUBLISH, lpmi->first, lpmi->second, 0, true);
	}

Thanks.

Your question is not related to the issue at hand.

Sorry and Thank you!
That means I've picked the wrong lib...
bblanchon is the 2th one. I've installed the 1th.
...anyway it seems you did not upgrade from version 5 to version 6...
  static void handleLine(String& line) {
    StaticJsonBuffer<200> jsonBuffer;

Error:
StaticJsonBuffer is a class from ArduinoJson 5.`
Please see arduinojson.org/upgrade to learn how to upgrade your program to ArduinoJson version 6

After fix:
  static void handleLine(String& line) {
    StaticJsonDocument<200> jsonBuffer;
    deserializeJson(root, line);
...

I don't use Arduino IDE.
What dev. env. are you using? How else do you upload your code to an Arduino?

https://platformio.org/install/ide?install=vscode
Or just VSCode

@halfbakery I had to comment some lines out, as they didn't compile on a raspberry pi. I cannot figure out why it fails, plenty of articles on the internet on this. The code should work , but with this version of compiler it fails.
Can you have a look ?
	for (map<string, Bytes>::iterator lpmi = _mqttLocalPersistenceMessages.begin(); lpmi != _mqttLocalPersistenceMessages.end(); ++lpmi)
	{
		serialPublish(PUBLISH, lpmi->first, lpmi->second, 0, true);
	}

Thanks.

I'll look into this.

@halfbakery I had to comment some lines out, as they didn't compile on a raspberry pi. I cannot figure out why it fails, plenty of articles on the internet on this. The code should work , but with this version of compiler it fails.
Can you have a look ?
	for (map<string, Bytes>::iterator lpmi = _mqttLocalPersistenceMessages.begin(); lpmi != _mqttLocalPersistenceMessages.end(); ++lpmi)
	{
		serialPublish(PUBLISH, lpmi->first, lpmi->second, 0, true);
	}

Thanks.

I'll look into this.

Here's the fix for the map<string, Bytes> problem, please apply to the Common library:
diff --git a/Bytes.cpp b/Bytes.cpp
index 9a0f01e..7b1cb02 100644
--- a/Bytes.cpp
+++ b/Bytes.cpp
@@ -70,7 +70,7 @@ Bytes::~Bytes() {
         if (_start)
             free(_start);
 }
-Bytes::Bytes(Bytes& src) {
+Bytes::Bytes(const Bytes& src) {
     _start = (uint8_t*)malloc(src._capacity);
     _offset = 0;
     _limit = src._limit;
diff --git a/Bytes.h b/Bytes.h
index 8a3b2c8..12e707b 100644
--- a/Bytes.h
+++ b/Bytes.h
@@ -25,7 +25,7 @@ class Bytes {
     Bytes(uint32_t size);
     Bytes(uint8_t* start, uint32_t size);
     Bytes& map(uint8_t* start, uint32_t size);
-    Bytes(Bytes& in);
+    Bytes(const Bytes& in);
     ~Bytes();
     Bytes& clone(Bytes& src);
     //    void map(uint8_t *start, uint32_t size);

Here's the fix for the map<string, Bytes> problem, please apply to the Common library:
diff --git a/Bytes.cpp b/Bytes.cpp
index 9a0f01e..7b1cb02 100644
--- a/Bytes.cpp
+++ b/Bytes.cpp
@@ -70,7 +70,7 @@ Bytes::~Bytes() {
         if (_start)
             free(_start);
 }
-Bytes::Bytes(Bytes& src) {
+Bytes::Bytes(const Bytes& src) {
     _start = (uint8_t*)malloc(src._capacity);
     _offset = 0;
     _limit = src._limit;
diff --git a/Bytes.h b/Bytes.h
index 8a3b2c8..12e707b 100644
--- a/Bytes.h
+++ b/Bytes.h
@@ -25,7 +25,7 @@ class Bytes {
     Bytes(uint32_t size);
     Bytes(uint8_t* start, uint32_t size);
     Bytes& map(uint8_t* start, uint32_t size);
-    Bytes(Bytes& in);
+    Bytes(const Bytes& in);
     ~Bytes();
     Bytes& clone(Bytes& src);
     //    void map(uint8_t *start, uint32_t size);

@halfbakery  thanks ! I will merge and test it.

@halfbakery  thanks ! I will merge and test it.

Compilation on raspberry pi showed successful. Thanks !
I removed the #ifndef for arm

Compilation on raspberry pi showed successful. Thanks !
I removed the #ifndef for arm


Update README.rst

Adding installation instruction for Mac osx

I'm not a Mac OSX user, but I believe pip is also available for Mac, so the general pip installation is sufficient.
And the PR should be created against develop branch


add test case for https://github.com/facebook/jest/pull/6075

Summary
This is mainly add test case to avoid similar issue appear again. Related issue: https://github.com/facebook/react-native/issues/19120.
Test plan
pass current test

Hm, but the Intro is not mocked with jest.mock, so I guess that's not a sufficient test case. I'd rather see this as an extra test case in existing integration test: https://github.com/facebook/jest/tree/master/integration-tests/babel-plugin-jest-hoist

Okay, but this test case is still import. If you have other thought, please include this test case.


Cannot connect to the Docker daemon at unix:///var/run/docker.sock

I am trying to run Azure Cli in GitHub Selfhosted agent which is provisioned in AKS Cluster.
As AKS has restriction to mount docker.sock, containerd.sock mounted already in self-hosted pod.
But Azure Cli expecting docker.sock mounted in pod.
Starting script execution via docker image mcr.microsoft.com/azure-cli:2.31.0
Error: Error: docker: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?.
See 'docker run --help'.

cleaning up container...
Warning: Error: The process '/usr/bin/docker' failed with exit code 1
Warning: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?

(node:13057) UnhandledPromiseRejectionWarning: Error: docker: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?.
See 'docker run --help'.

any feedback on this issue please?

Hi @prabhu-mns @GopikaV24 👋 as we are specifically running a docker command in order to run the container this is an expected error.  Are you still facing this issue?
A solution for this issue can be adding support for containerd in the action but that can take some time.

Hi @prabhu-mns Please reopen the issue if you are still facing this issue.


escape * chars in bolded strings

Some String (such as the commit's subject) are generated with wrapping * characters to make them appear in bold in JIRA comments.
Unfortunately, it the commit's subject contains a * the bold ends somewhere in the middle of the commit's subject, the * in the subject is not visible and an * appears at the end of the title.
For example, the commit's subject SFD-408 Published\* class must all inherit from PublishedEntity for consistency is displayed as follow :

To fix this issue, * in bolded strings should be escaped with a \.

PR #46 merged by @jcgay, closing this issue as fixed


TVDB ID ignored on manual run

hen trying to specify a TVDB for a series it is ignored and gets the incorrect tags. If I enter this tag manually when it asks (ie without -a) it will retrieve the correct details
Command and output:
 python manual.py -i ~/Movies/ATLANTA -tv 313999 -a
Manual processor started.
/usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python
Please install QTFastStart via PIP, relocate_moov will be disabled without this module.
64bit Python.
Processing file /Users/Mike/Movies/ATLANTA/ATLANTA - S01 E01 - The Big Bang (720p Web-DL).mp4
Matched movie title as: Atlanta 2007-05-09

The TV show override works fine when guessit still detects the file as a TV show (even when it guesses the wrong TV show) but would fail if it thought the file was a movie
This is fixed now.
Additionally, the reason manual.py was failing to recognize this as a TV show is because you put it in a folder named "Movies". If you continue to run into guessing errors, set fullpathguess in autoprocess.ini to False and it will ignore the directory and only look at the file name and fix this problem 99% of time. But the command line parameter override should work now as well


can't validate ticket form due_date

I'm using USE_L10N = True and there is an issue with due date. The TicketForm uses DateTimeField and django can't validate the due_date in any way. I've fixed this issue adding: input_formats=['%d/%m/%Y', '%m/%d/%Y', ]
due_date = forms.DateTimeField(
    widget=extras.SelectDateWidget,
        input_formats=['%d/%m/%Y', '%m/%d/%Y', ],
        required=False,
        label=_('Due on'),
)

Hi, I can only confirm, that this fixes the issue (branch develop in the helpdesk/forms.py
when you do not have any input_format set, new ticket is not created when due_date form field is submitted

Thanks, I merged a partial fix in #757. However it still hardcodes a few choices. It feels to me like a real solution must check internationalization/language libraries and pick the default for that language/county but I'm not sure how to do that just yet. I'll leave this ticket open as we explore full solutions.


Redis >= 4

We are experiencing issues addressed with the following commit:
https://github.com/basecamp/easymon/commit/9472135b012972f664439d737874e41f6a0cc48b#diff-5892261b17dbd431a67ac4302cb920ca
Wondering if you would be able to release a new version to ruby gems when you have a moment.
Thanks.

So sorry about this taking so long!
I've pushed v1.4!


Explain Usage - perhaps a Jupyter Notebook can help

I am not sure how to train the model. Please provide more information, I think a Colab Jupyter notebook would really help

Maybe I'm mistaken and the code wasn't even written yet. Anyway for future usage, some form of documentation can help

+1 a step by step guide would really help !
On Tue, 31 Jan 2023, 10:33 pm Daniel Shemesh, @.***>
wrote:

Maybe I'm mistaken and the code wasn't even written yet. Anyway for future
usage, some form of documentation can help
—
Reply to this email directly, view it on GitHub
https://github.com/lucidrains/musiclm-pytorch/issues/6#issuecomment-1410748987,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ADRLL6CKKFA2D7MQYASRDX3WVFAXHANCNFSM6AAAAAAUMV2OXA
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>


Add IrrevocableIO subclass of DecoupledIO

… that promises not to change the contents of .bits on a cycle after .valid is high and .ready is low. This is useful for detecting whether queues have been correctly inserted in front of modules that require these additional semantics.

There's also the constraint that valid will stay high once it's asserted, right? Should probably be pedantic about the description in the comment.

The subclasses seems improper since the subclassing contract fails, for example, when this is used for 'enqueue' sides of Modules. The underling issue is that IrrevocableIO is indicating (via subclassing) that it can be used any time you expect a DecoupledIO.
This is fine for a producer dequeue side: A Module that can consume a DecoupledIO can easily consume an IrrevocableIO.
This is not fine for a consumer enqueue side. You may have a function (or class, etc.) that takes as input a consumer port and connects a producer to it. Since IrrevocableIO <: DecoupledIO, you are allowed to give it an IrrevocableIO. However, the function thinks it has a DecoupledIO and will not be bound to the same contract.
class SensitiveSink extends Module {
  val io = IO(new Bundle {
    val enq = Flipped(IrrevocableIO(UInt(16)))
  })
  // do something
}

def driveFromUnreliableSource(enq: DecoupledIO[UInt]) = {
  val parity = Reg(init = false.asBool)
  val bits = Reg(init = 1.asUInt(16))
  enq.valid := parity
  enq.bits := Mux(parity, bits, 0.asUInt)
  when(enq.valid && enq.ready) { bits := bits +% 1.asUInt }
}

class Test extends BasicTester {
  val sink = Module(new SensitiveSink)
  driveFromUnreliableSource(sink.io.enq) // will compile and elaborate fine
}

Is your proposal to not make it descend from DecoupledIO but instead be a separate part of the type hierarchy?

Yes
On Tue, Sep 6, 2016 at 10:10 PM, Andrew Waterman<EMAIL_ADDRESS>wrote:

Is your proposal to not make it descend from DecoupledIO but instead be a
separate part of the type hierarchy?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/ucb-bar/chisel3/pull/274#issuecomment-245176832, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AA9_-CUdGEEPI-qhjLqiRBohf9RaQxirks5qnkdagaJpZM4J2dc7
.

I totally see your point. I was scared of making backwards-incompatible changes to QueueIO, but it looks like there are only 3 breakages in current RocketChip, one of which will be fixed by adding another factory apply method to Queue.

I think this is ok now


[Request]: Please add rubyinstaller 2.7.7-1 (x64/x86) to the existing ruby27 package

Prerequisites

[X] I have searched all issues/PRs to ensure it has not already been reported or fixed.

Criteria

[X] English interface (or at least English documentation)
[X] Alternative, forked or prerelease version of an existing package
[X] Fairly standard install (e.g. no elaborate pre/post install scripts)

Name
ruby27
Description
Please add rubyinstaller 2.7.7-1 (x64/x86) to the existing ruby27 package.
I noticed that the auto-update was removed from the ruby27 package and may need to be manually added.
Homepage
https://rubyinstaller.org
Download Link(s)
https://github.com/oneclick/rubyinstaller2/releases/download/RubyInstaller-2.7.7-1/rubyinstaller-2.7.7-1-x64.7z https://github.com/oneclick/rubyinstaller2/releases/download/RubyInstaller-2.7.7-1/rubyinstaller-2.7.7-1-x86.7z
Corresponding package
Bucket: "versions", Package Name: "ruby27"
Some Indication of Popularity/Repute
No response

Thank you, @niheaven! It's greatly appreciated!


Make error with exact algorithm

I get this error:
/bin/bash ../libtool  --tag=CC   --mode=link gcc  -g -O2   -o op-solver op_solver-op-solver.o cmd/op_solver-opt.o libopsolver.la -lm
libtool: link: gcc -g -O2 -o .libs/op-solver op_solver-op-solver.o cmd/op_solver-opt.o  ./.libs/libopsolver.so -lm
/usr/bin/ld: ./.libs/libopsolver.so: undefined reference to `dlsym'
/usr/bin/ld: ./.libs/libopsolver.so: undefined reference to `dlerror'
/usr/bin/ld: ./.libs/libopsolver.so: undefined reference to `dladdr'
/usr/bin/ld: ./.libs/libopsolver.so: undefined reference to `dlopen'
/usr/bin/ld: ./.libs/libopsolver.so: undefined reference to `dlclose'
collect2: error: ld returned 1 exit status

Like the previous issue which is similar to this one, I changed the filename on line 74 as you suggested, but I still got this

Does adding -ldl  in the following line fix the issue?
https://github.com/gkobeaga/op-solver/blob/ee574ce79d62077a88222a5f38ffdeb9d0c2020c/src/Makefile.am#L26

Yes that fixed it. Thank you !


align by device clauses are not supported in grafana plugin

Describe the bug
grafana下query中control设置 align by device执行报错，提示align by device clauses are not supported.
Screenshots

Desktop (please complete the following information):

OS: win11
Browser  chrome102
grafana 9
iotdb 13

Additional context
Add any other context about the problem here.

Hi, this is a known issue, we will solve it in v0.14.
您好，这是一个已知问题，我们将会在0.14版本里解决


MAC Client not launching

MAC client will either just sit on the bar and 'bounce' or it will open the client but stay stuck at 0%.

I managed to successfully run it from thedmg and pulling from the latest master.
My mac is running macOS Sierra v10.12.6 (If that helps)

Closing in favour of https://github.com/runelite/launcher/issues/17

I don't know if you are still having this problem, but I just the same thing. Run the exec inside of the dmg and it was because I didn't have OpenGL installed.
For a quick way to get it, open your terminal and install homebrew (https://brew.sh/)
and then type:
brew install glfw3
brew install glew
Should run fine after that.

The solution of @miratepuffin worked like a charm.  The client didn't launch on OS X 10.13.4 (17E199)

Glad to here it helped :)

Still doesn't work with version 10.13.6 (17G65). Even after the @miratepuffin fix.

https://github.com/runelite/runelite/wiki/Troubleshooting-problems-with-the-client

I don't know if you are still having this problem, but I just the same thing. Ran the exec inside of the dmg to see what the error was and I didn't have OpenGL installed. (I assume not included in a fresh MacOS install)
For a quick way to get it, open your terminal and install homebrew (https://brew.sh/)
and then type:
brew install glfw3
brew install glew
Should run fine after that.

Hey this fixed my problem immediately to run Runelite, however I am now no longer able to run youtube videos properly across multiple browsers and with a steady internet connection. I have next to zero computer programming knowledge so I am wondering if you have any suggestions as to how I should proceed?

https://github.com/runelite/runelite/wiki/Disable-Hardware-Acceleration try this as alternative

https://github.com/runelite/runelite/wiki/Disable-Hardware-Acceleration try this as alternative

No dice man but I appreciate your help!

Hi @tripleee12 apologies for the slow reply! Without seeing the machine for myself I can't really make suggestions for why this would be occurring, though I would be surprised if openGL was the cause. Have you installed anything else recently which could have caused it?


Replace images with functional examples

In the documentation, it would be nice to have functional examples.

Totally agreed! I will change the demo with functional examples as soon as possible.


orders with paypal and bank transfer cancelled by Mollie

Hello Team,
Since yesterday and just after the message "Mollie should be upgraded" displayed on the BO modules page, orders with paypal or by bank transfer methods are cancelled by Mollie a little while later.
This was the case until the upgrade to version Mollie 4.2.0.
How can this be prevented in the future?
It's very annoying because Paypal orders are accepted then cancelled, credit notes have to be made, customers are not happy.
Expected behavior
The status of Paypal and bank transfer orders should not be affected by Mollie.
Actual behavior
The paypal order is passed, payment confirmed. Then the status becomes cancelled. In the left column on the Back office order page, the icon is "m", the icon of Mollie.
The bank transfer order is passed, awaiting payment. Then the status becomes cancelled. In the left column on the Back office order page, the icon is "m", the icon of Mollie.

Steps to reproduce the behavior
A message was displayed in back office on 20/01/21 5:30pm, saying that Mollie should be upgraded. From this time, all the orders with Paypal and bank transfer are cancelled by Mollie. Until this morning the upgrade to 4.20.
Environment

PrestaShop version: <IP_ADDRESS>
Mollie module version: 4.1.3
PHP version: 7.2

Thanks for your return,
Regards,
Denis

Sorry, it is still happening, despite the upgrade to 4.2.0.
Please help :(

Sorry, it is still happening, despite the upgrade to 4.2.0.
Please help :(

Hello, and thank you for your message.
Just to clarify, only when the message to update Mollie version appeared this started happening? You didn't upgrade to 4.2.0 version, right? Were there any other changes made or updates? Or absolutely nothing was changed?
Looking forward to your reply!
Best regards,
Invertus Support team

Hello, and thank you for your message.
Just to clarify, only when the message to update Mollie version appeared this started happening? You didn't upgrade to 4.2.0 version, right? Were there any other changes made or updates? Or absolutely nothing was changed?
Looking forward to your reply!
Best regards,
Invertus Support team

Hello Team,
Yes. I've just noticed the message yesterday but I didn't have time to upgrade.
No changes or no updates, since this morning and the upgrade to 4.2.0.
Meanwhile the orders have been cancelled automatically.
Example :
The latest paypal order created at 9:19am today has been cancelled 10:12.

Since then, there have been no cancelled orders. I will keep you update.
Best regards,
Denis

Hello Team,
Yes. I've just noticed the message yesterday but I didn't have time to upgrade.
No changes or no updates, since this morning and the upgrade to 4.2.0.
Meanwhile the orders have been cancelled automatically.
Example :
The latest paypal order created at 9:19am today has been cancelled 10:12.

Since then, there have been no cancelled orders. I will keep you update.
Best regards,
Denis

Thank you for the clarification,
Would you be able to send us your front office / back office / FTP credentials, and full steps on how to reproduce the issue  to -<EMAIL_ADDRESS>for further investigation?
Looking forward to your reply!
Best regards,
Invertus Support team

Thank you for the clarification,
Would you be able to send us your front office / back office / FTP credentials, and full steps on how to reproduce the issue  to -<EMAIL_ADDRESS>for further investigation?
Looking forward to your reply!
Best regards,
Invertus Support team

ok, done.
Thanks and regards
Denis

ok, done.
Thanks and regards
Denis

Hello @Ditwo ,
In this picture, it seems that Paypal itself canceled the order. Because mollie cant change the status of other payments statuses, because mollie module cancels the order by transaction or order id it depends which API you are using which is unique for every payment/order and it is created only then when payment/order is created with mollie module. So mollie couldn’t cancel the order in prestashop without having a transaction/order id.

From this picture i can tell that only order status picture is bugged. Because mollie doesn’t even have “CANCEL” status. This could happen after upgrading module version. but it seems that now the problem isn’t appearing now.

And I think that provided account doesn’t have all permissions, because it seems that with the provided account we can’t check the mollie module configurations.
And here’s a link to check when mollie cancels payments on specific payment method
https://docs.mollie.com/payments/status-changes
Let us know if it's possible to grant further permissions to the given account!
Best regards,
Invertus Support team

Hello @Ditwo ,
In this picture, it seems that Paypal itself canceled the order. Because mollie cant change the status of other payments statuses, because mollie module cancels the order by transaction or order id it depends which API you are using which is unique for every payment/order and it is created only then when payment/order is created with mollie module. So mollie couldn’t cancel the order in prestashop without having a transaction/order id.

From this picture i can tell that only order status picture is bugged. Because mollie doesn’t even have “CANCEL” status. This could happen after upgrading module version. but it seems that now the problem isn’t appearing now.

And I think that provided account doesn’t have all permissions, because it seems that with the provided account we can’t check the mollie module configurations.
And here’s a link to check when mollie cancels payments on specific payment method
https://docs.mollie.com/payments/status-changes
Let us know if it's possible to grant further permissions to the given account!
Best regards,
Invertus Support team

Hello and thank you for this return.
You should now be able to configure Mollie module.
I can understand your reply that cancelllation of orders is not due to Mollie. Please let me explain the context and I hope it will be clearer. The fact is that between 17 :30pm to 9 :15am today, no payment with Mollie was available. During this time, many clients had been trying to pay with Mollie. Because it didn't work, they paid with other independant methods like bankwire and Paypal. And these bankwire and paypal orders have been automatically cancelled some minutes later. Which has never happened for years. And since the mollie upgrade this morning, everything has been fine...
So I searched for details into log files, Mollie dashboard, and Prestashop BO. Here is my analysis.
Example order 80408 ref FUSSEHUAT.

Paid with Mollie at 00:28. On Mollie dashboard we can see it, dated at that time. In log file :[21/Jan/2021:00:28:30 +0100] "GET /fr/module/mollie/ajax?ajax=1&action=getTotalCartPrice HTTP/1.1" 200 515

But it fails, error 500.  log: [21/Jan/2021:00:28:41 +0100] "POST /fr/module/mollie/payment?method=creditcard HTTP/1.1" 500 9476

The user tried to pay by bankwire at 0:32. [21/Jan/2021:00:32:18 +0100] "POST /fr/module/ps_wirepayment/validation HTTP/1.1" 302

Order #80408 is created on Prestashop. log [21/Jan/2021:00:32:19 +0100] "GET /fr/index.php?controller=order-confirmation?id_cart=216030&id_module=30&id_order=80408

The order is automatically cancelled at 00:46, which is the time of "expired" on Mollie dashboard. In the log we can see [21/Jan/2021:00:46:04 +0100] "POST /fr/module/mollie/webhook HTTP/1.1" 200 7482 "-" "Mollie HTTP client/1.0"
On Mollie dashboard page, this is the time of expiration :

In PS BO :

So in a certain way, we can say that Mollie has cancelled orders paid with a second method (paypal or bankwire).
It is the consequence of the Mollie failure (eror 500). I don't know if it can be reproduced, but at least this is the explanation.
Thanks and regards
Denis

Hello and thank you for this return.
You should now be able to configure Mollie module.
I can understand your reply that cancelllation of orders is not due to Mollie. Please let me explain the context and I hope it will be clearer. The fact is that between 17 :30pm to 9 :15am today, no payment with Mollie was available. During this time, many clients had been trying to pay with Mollie. Because it didn't work, they paid with other independant methods like bankwire and Paypal. And these bankwire and paypal orders have been automatically cancelled some minutes later. Which has never happened for years. And since the mollie upgrade this morning, everything has been fine...
So I searched for details into log files, Mollie dashboard, and Prestashop BO. Here is my analysis.
Example order 80408 ref FUSSEHUAT.

Paid with Mollie at 00:28. On Mollie dashboard we can see it, dated at that time. In log file :[21/Jan/2021:00:28:30 +0100] "GET /fr/module/mollie/ajax?ajax=1&action=getTotalCartPrice HTTP/1.1" 200 515

But it fails, error 500.  log: [21/Jan/2021:00:28:41 +0100] "POST /fr/module/mollie/payment?method=creditcard HTTP/1.1" 500 9476

The user tried to pay by bankwire at 0:32. [21/Jan/2021:00:32:18 +0100] "POST /fr/module/ps_wirepayment/validation HTTP/1.1" 302

Order #80408 is created on Prestashop. log [21/Jan/2021:00:32:19 +0100] "GET /fr/index.php?controller=order-confirmation?id_cart=216030&id_module=30&id_order=80408

The order is automatically cancelled at 00:46, which is the time of "expired" on Mollie dashboard. In the log we can see [21/Jan/2021:00:46:04 +0100] "POST /fr/module/mollie/webhook HTTP/1.1" 200 7482 "-" "Mollie HTTP client/1.0"
On Mollie dashboard page, this is the time of expiration :

In PS BO :

So in a certain way, we can say that Mollie has cancelled orders paid with a second method (paypal or bankwire).
It is the consequence of the Mollie failure (eror 500). I don't know if it can be reproduced, but at least this is the explanation.
Thanks and regards
Denis

Hello @Ditwo , thank you for your analysis, it's definitely helpful!
Could you also clarify if granting further permissions is an issue or not? As we can't check Mollie settings due to a lack of permissions.
Looking forward to your reply!
Best regards,
Invertus Support team

Hello @Ditwo , thank you for your analysis, it's definitely helpful!
Could you also clarify if granting further permissions is an issue or not? As we can't check Mollie settings due to a lack of permissions.
Looking forward to your reply!
Best regards,
Invertus Support team

Hello,
I extended the authorisations yesterday and I've just checked now. It's OK.
Could you try again?
Yours sincerely
Denis

Hello,
I extended the authorisations yesterday and I've just checked now. It's OK.
Could you try again?
Yours sincerely
Denis

@Ditwo yes, once the developers going to look it over, I will get back to you!
Best regards,
Invertus Support team

@Ditwo yes, once the developers going to look it over, I will get back to you!
Best regards,
Invertus Support team

Hello @Ditwo,
Have you managed to try out the new version, and clarify if the issue persists?
Looking forward to your reply!
Best regards,
Invertus Support team

Hello,
Yes I installed it last friday. There is no error 500 anymore. So it's fine ;)
Except there are split orders sometimes, but doesn't seem to be related to Mollie.
Best regards,
Denis

Nice, glad that it's good now!
I will close this issue for now, if you will encounter any further errors, please let me know!
--
Best regards,
Invertus Support team


Optimize images

I noticed one of the images in a post is 1.74 MB (oops). We could manually optimize them then re-save them in the project or maybe gatsby has a plugin to re-size.

Please invite me + veiko as admins to the netlifly setup.
In Netlifly they have a setting to auto-optimize assets

@fabioelia I tried adding you but it said it cost $15 a month to add more people :(
However I found the setting and enabled the compress image setting.
I also found a guide that might work to transfer the netlify account to your account. Should I work on that today?

I think the netlify optimization is working - see screenshot of image size. Closing but feel free to re-open if any concerns @fabioelia


FailsafeCall micro refactoring, plus World-Wide Nr.1 duplicated utility method for OkHttp

As you can see here:
https://github.com/magicprinc/failsafe/commit/c517e3ef01aec35cd6b6aaa23779873f8e89ffab
FailsafeCall micro refactoring:

AtomicBoolean fields are final

lambda expression instead of code block

World-Wide Nr.1 duplicated utility method for OkHttp
`/** [OkHttp Callback to JDK CompletableFuture]
Helps eliminate dozens of utility classes World-wide with exactly this same method.
Can be the first small step towards FailSafe.
Returns normal JDK {@link CompletableFuture} without FailSafe policies.
*/

public static CompletableFuture asPromise (okhttp3.Call call)`
All around the World, people write this method again and again. I have done it too.
We really need "The Chosen One". I recommend you to be this one :-)
If you like it, I will send it as PR.

AtomicBoolean fields are final

OK

lambda expression instead of code block

Aren't those braces ignored, anyway? It's just a single expression. (The indenting of the modified code is off, btw.)

All around the World, people write this method again and again. I have done it too. We really need "The Chosen One". I recommend you to be this one :-)

Does this utility belong in FailsafeCall.java? If included at all, wouldn't it be better as a single static method in a utility class?

Aren't those braces ignored, anyway? It's just a single expression. (The indenting of the modified code is off, btw.)

IntelliJ IDEA's work :-)
As I know, the resulting byte code is the same.

Does this utility belong in FailsafeCall.java? If included at all, wouldn't it be better as a single static method in a utility class?

To be honest, not 100%... but I really want to drop such "one method utility class" in my code base.
And I don't like dependencies. So Failsafe have managed it after long testing etc.

Your wish is my command. Tell me if I should send an PR.

Not up to me.


adapter new xcode & remove annotation

adapter new xcode & remove annotation,
change MetalKit, MPS to optional and change metal compile language to metal1.0.

 Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.liuqingcan seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.You have signed the CLA already but the status is still pending? Let us recheck it.


Alerts bound to apps not teams

Instead of alert rules by team use alert routing to keep the alerts bound to apps not  teams.
Problem:
We have alerts based on team names. Whenever we change the ownership of a component or a team name we now have to change the team label in the app and also the alert rule.
It would be much better if we can route the alert based on the team and keep the rules more generic or rather specific to an app.
Example:
    - alert: ManagementClusterContainerIsRestartingTooFrequentlyAWS
      expr: increase(kube_pod_container_status_restarts_total{label_application_giantswarm_io_team="phoenix"}[1h]) > 6
      for: 5m
      labels:
        area: kaas
        severity: page
        team: phoenix

The above alert rule can imo be provider independent if we define it like this:
    - alert: ManagementClusterContainerIsRestartingTooFrequently
      expr: increase(kube_pod_container_status_restarts_total[1h]) > 6
      for: 5m
      labels:
        area: kaas
        severity: page
        team: {{ $labels.label_application_giantswarm_io_team }}

I haven't tested this but imo the solution should be possible in a similar fashion.
We can still build alert rules that are more specific to certain aspects (like container names or other labels) but those should be based on apps and not on teams. The lifecycle of an alert rule is bound to an application or component, but not to the lifecycle of our teams.
Slack: https://gigantic.slack.com/archives/C04TGHDEF/p1666272777347089

@TheoBrigitte I had this discussion before with Ross and we never managed to change the alert rules towards apps and not teams. I think the described way above should work and would save us a lot of work in the future. It isn't super important but a good thing to try out and if it works we should explain this to the other teams. Our rules would be much cleaner and easier to maintain.


Set up the admin panel options

In admin panel we need to register our models with out own custom options:
This means you have to implement fields for these models:

Order
Food
Category
Table
User

Each has their own attributes (beside fields):
Order

in order details, user has to be able to see it's OrderItems
Filters:

Today orders
orders that are not paid yet

Order by date created and modified
search using phone, order item, status

Food

Search for foods in their name, category
Filter to see inactive foods (Not implemented yet, add it to the Food model)
order foods by their name

Category

Search in their names
Filter to see categories without any foods
In the details page, see the foods in the category

Table

see the order of the table in the details page

User

Search in first_name,last_name,phone
filter to see if they are staff, and if they are not
filter to see active/inactive users
filter to see superusers

completed in #127


No way to get ref to root of  in a

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

Expected Behaviour
<Input> outputs a <div> root that wraps the accents and the input. It should be possible to attach a ref to this input. And it should be possible to do this from a <TextField />.
Current Behaviour
Input only passes {...other} to the <div>
Context
I needed to attach a Popper based menu to the bottom of a TextField, but I need it to open lined up with the whole <Input>, not the <input> (then it's inset by the inputAdornment) and not the <FormControl> (then when the menu is above the input it will appear above the label instead of overlapping the label).

@dantman have you tried <TextField InputProps={{ref: c => this.input = c}} />?

@jedwards1211 Yeah, it works. It'll be using that as a workaround for now. But it should be possible to do this without the discouraged findDOMNode.

@dantman have you tried <TextField InputProps={{ref: c => this.inputDiv = findDOMNode(c)}} />? (not sure if it works)

@jedwards1211 Yes, it's the encouraging approach to solve the issue until React proposes a better solution. #10825 Won't help for this issue as it targets higher-order components, exposing a rootRef property to all the component doesn't scale.

Other MUI components already have an equivalent. e.g. ButtonBase has a ref={buttonRef} on the root element it outputs.
And I doubt that React is going to propose an alternative. Adding ref={rootRef} where it makes sense sounds perfectly reasonable, it's the same level of effort as adding {...other} to those same nodes as you already do.

@dantman We do provide a buttonRef and inputRef properties for the DOM elements people are most likely to need (button & input). By the way, we exposes a RootRef component for this use case.

Another way to do it which is questionable but avoids findDOMNode: inputRef={c => this.inputDiv = c.parentElement}

RootRef is just findDOMNode in disguise. And it doesn't work in this use case because <TextField /> is in charge of adding the <Input /> I would need to wrap with RootRe.

@dantman for advanced use cases, I encourage people to break the TextField abstraction. You can use the lower level components.


Return empty array if variant matched w/o product

Fixes #205
matchExistingElement for Commerce Products has the following problem:
If you have the unique identifier set as a Variant attribute, it searches for a Variant with that attribute, and if it finds a variant, it grabs the variant's Product and attaches that ID to the criteria. This is good.
The problem is, if we haven't found a variant, that means we have no matches, and we need to return []. There might be a better way to do this rather than returning an empty array - I'm not sure. But if you don't attach anything to the criteria, it is just returning everything. This seems to solve the problem.

Thanks for putting this together, you're absolutely right in this case, and certainly not correct behaviour.
Closing this for now, as this change is bundled into the latest master along with several other improvements.


Cloud Config writing Deis units to /.deis

On install via our contrib/ user-data, the deisctl cloud config unit installs unit files to the root filesystem at /.deis. These units serve no purpose there and shouldnt be written.
This might be due to $HOME not being set during the unit run. If run manually from a tty, units end up in the correct place (~/.deis).

We could solve this by adding User=core to the installation unit, but I think that would fail because the Core user won't have permission to drop in the deisctl binary.
We should fix this, but it may involve an update to the unit which performs the install and then changes permissions.

core@deis-01 ~ $ curl -sSL --retry 5 --retry-delay 2 http://deis.io/deisctl/install.sh | sh -s 1.11.1
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 2610k  100 2610k    0     0  2683k      0 --:--:-- --:--:-- --:--:-- 2742k
Creating directory /opt/bin
Verifying archive integrity... All good.
Uncompressing Deis Control Utility  100%  Extraction failed.
sh: line 32:  1183 Terminated              sh /tmp/$DEIS_INSTALLER $INSTALLER_OPTS

This is not something we'll be able to get to for the LTS release (#4776), and provisioning Deis v2 is done through installing a vanilla kubernetes cluster so I'm going to go ahead and close this.


refactor(sensor): new channels for thermocouple

New sensor channels are introduced to be used for measuring the temperature and cold-junction temeprature of thermocouples.

I am able to reproduce the issue in your PR and getting green on main, so at least we know it's something on the PR side

looking at the logs it seems that "device" is disconnecting before the test ends.
DEBUG   - PYTEST: -------------------------------- live log setup --------------------------------
DEBUG   - PYTEST: DEBUG: Running command: /home/maciej/zephyrproject/zephyr/twister-out/native_posix/samples/sensor/sensor_shell/sample.sensor.shell.pytest/zephyr/zephyr.exe
DEBUG   - PYTEST: DEBUG: Found matching key: CONFIG_SHELL_PROMPT_UART="uart:~$ "
DEBUG   - PYTEST: INFO: Wait for prompt
DEBUG   - PYTEST: DEBUG: Got prompt
DEBUG   - PYTEST: -------------------------------- live log call ---------------------------------
DEBUG   - PYTEST: INFO: send "sensor get" command
DEBUG   - PYTEST: DEBUG: #: uart:~$ sensor get sensor@0 voltage
DEBUG   - PYTEST: ERROR: No connection to the device and no more data to read.
DEBUG   - PYTEST: FAILED
maybe this command breaks the execution "sensor get sensor@0 voltage"?

locally I get segmentation fault where running this command. You can debug by running twister with -v -v. It will give you all commands that are called during the test. Look for DEBUG   - PYTEST: DEBUG: Running command: /home/maciej/zephyrproject/zephyr/twister-out/native_posix/samples/sensor/sensor_shell/sample.sensor.shell.pytest/zephyr/zephyr.exe within pytest output. this command will start the simulator with your build


Variable named as NaN cannot be resolved

Describe the bug
Variable NaN is incorrectly renamed.
Input code
{
    let NaN = 1;
    console.log(NaN);
}

Config
{
  "jsc": {
    "minify": {
      "compress": false
    },
    "parser": {
      "syntax": "ecmascript"
    },
    "target": "es2022"
  }
}

Playground link
playground
Expected behavior
The output should be exactly the same as the input.
Actual behavior
{
    let NaN1 = 1;
    console.log(NaN);
}

Version
1.3.70
Additional context

#4596
#7684

No response

https://github.com/swc-project/swc/blob/549e138443101a5cf837cdd7357e41123d700640/crates/swc_ecma_transforms_base/src/resolver/mod.rs#L272-L275
I don't think this is true.

Ah...
{
    let NaN = 1;
    console.log(NaN);
}

prints 1
and

{
    var NaN = 1;
    console.log(NaN);
}

prints NaN, so yeah, the code is wrong.

NaN can be shadowed in non strict mode, but cannot be overridden.


Fix esp32 ci build

I filed #292 to add a community build for esp32.
When the ci script runs it fails.  Currently the error output can be seen here:
https://github.com/mocleiri/tflite-micro/actions/runs/1040366564
@vikramdattu you fixed it last time (https://github.com/tensorflow/tensorflow/pull/45334) could you take a look?

#292 has been merged.
The latest failure log is here: https://github.com/tensorflow/tflite-micro/runs/3109849276?check_suite_focus=true

I took an attempt to fix the test_esp32.sh script.  The person detection one is too complicated for me at the moment so I commented it out.  The script can generate the hello world and micro-speech and then build both.
I can see its possible to have the script called from within a docker container so I will figure out that part as it should save quite a bit of download time to just the espressif/idf:v4.3 container instead of cloning the idf and all of its sub modules.
https://github.com/mocleiri/tflite-micro/commit/4d0dd9d35c0b36231d899d5d40cb880b3fd0349c

Please find this comment as well: https://github.com/tensorflow/tflite-micro/issues/292#issuecomment-883043276
It could help to fix person detection example if you want to revisit.

I would recommend not creating a docker container at this time. This workflow will run nightly and the total time is less of a concern.
Note that in the next 6 months, we expect to remove project generation support from the TFLM makefile and the recommended path would need for integrations like esp32 and Arduino to have their own GitHub repositories.
That would be a good point in time to optimize the esp32 workflow with a docker container.

Because the espressif idf image is public it was a one liner to switch to building inside of that container.  I just copied what the xtensa f1 build was doing and it worked.
I tried to change person detection based on @vikramdattu's previous commit but I got other errors.
The other target's seem to be just building the tensorflow-microlite.a instead of the examples so I also added a build for that.
Since you say that the examples will be externalized I think the person detection can be fixed later when that occurs in what ever repo they end up in.
I verified in my fork that the pull request I just made worked:
https://github.com/mocleiri/tflite-micro/runs/3130621531?check_suite_focus=true

I didn't know that a public docker image already existed. Your solution sounds good to me.


Issue with "Bonfire: Pairwise". Test wrong?

I was going to do this bonfire, and, after a time thinking about how to do it, I noticed this test:
expect(pairwise([0, 0, 0, 0, 1, 1], 1)).to.equal(10);
expected 1 to equal 10

That's arr[0] + arr[4] = 0+4 = 4
And arr[1] + arr[5] = 1 + 5 = 6
6 + 4 = 10
These are [0,1] pairs, repeated.
Well, the explanation of this bonfire says this:

Bla bla bla
If multiple sums are possible, return the smallest sum. Once an element has been used, it cannot be reused to pair with another.

So, if you get the same pair, Only use the smallest sum of indexes, right?
This test breaks this condition. With this, I don't know if even I can trust in the exercise description. I don't know if the exercise is wrong, if the description is misleading or if only the test is wrong, but something seems to be wrong.

I believe I see what you are saying... where the first and 4th test are expecting the sum of all the indices that can be paired to add to the 2 param.  But if the description say to only return the smallest sum then test one expect(pairwise([1, 4, 2, 3, 0, 5], 7)).to.equal(11) should equal 4 (from the 4 and 3 being added) and the 4th test (the one you mentioned) should be 4?

No, @natac13 , because there arent repeated pairs. I mean. In the test I said, they get the pairs:
[0, 1] and [0, 1]. It's the same sum. So, you are supposed to only keep the smallest one sum of indexes for that specific combination of numbers that sums 1.
In case of test first, it's OK, because you have:
[4, 3], [2, 5] that have indexes 1 + 2 + 3 + 5 that equals to 11. That's fine. The case I mentioned, I believed not.

Fair enough I am just going of the if there are multiple sums then return the smallest sum... so because there are two different sum that equal 7 for the first test I though it should only return the sum of [4, 3] being index 1 + 3 to equal 4... I apologize for misunderstanding your inquire

@soulchainer I've often thought this exercise and its description caused more confusion than it was worth.
I believe the test is ok, though. It only says once an element has been used it can't be re-used... it doesn't say, once an integer has been used. It also asks for the sum of all indices that can be paired. The test provides multiple elements with the same value for the purpose of checking if the provided solution can detect the lowest possible combination. Possible answers include:
[0, 0, 0, 0, 1, 1]
Indices: 0 + 4, 1 + 5 = 10
Indices: 1 + 4, 2 + 5 = 12
Indices: 2 + 4, 3 + 5 = 14

So the test is required to ensure that the solution has correctly picked the lowest sum.

Oh. I see. That makes sense, @richchurcher :).
Thanks. Description limits itself to the most simple cases and there you have no confusion, till you see the test cases.

Closing this issue as resolved. Feel free to follow up if you still have concerns with this bonfire.
Thanks and happy coding!

Hi , I am sorry to reopen this issue but I am currently trying to find the solution of this bonfire and I am really confused. I am a bit relieved that I don't seem to be the only one but even after reading the previous messages, I still can't wrap my head around this problem.
Why does test 1 return 11 ?
Return the sum of all indices of elements of 'arr' that can be paired with one other element to form a sum that equals the value in the second argument 'arg'. If multiple sums are possible(Which sum are you talking about?), return the smallest sum. Once an element has been used, it cannot be reused to pair with another.

In the explanation above you are talking about sums but which one are you talking about? The sums of the indices of the elements or sums of the the elements of the array, both? I don't want to be nitpicking but, FreeCodeCamp is an international community and many campers picked up English as a second language. I have been living in an english speaking country for at least 4 years now and I have been told repeatedly that my english skills are quite good but even I got confused by this exercise.  If I got confused , then it is a bad sign because that means that all those people with lower English skills will struggle even more.
Take the first example:
( [ 1, 4, 2, 3, 0, 5], 7 )
In this case arr[1] + arr[3] = 7     sumIndices1 = 4
and   arr[2] + arr[5] = 7      sumIndices2 = 7
If I follow the instructions correctly,  the test should return the smallest sum of indices from a pair. In this case it should be 4. Why does the solution ask us to add sumIndices1 and sumIndices2 . Nowhere in the description is it written that in case of multiple pairs  of elements , we should return the total sum of all the indices.
I believe you should provide more examples and/or explain in better way how you are supposed to find the expected results.
Thank You.

I don't understand.
The problem clearly says If multiple pairs are possible that have the same numeric elements but different indexes, return the smallest sum of indexes.
So for test case:
[0, 0, 0, 0, 1, 1] Indexes: [0,4], [1,5] Values: [0,1],[0,1]
The indexes 1+5 should be not included, hence the answer should be 0+4 = 4, right?

I don't understand.
The problem clearly says If multiple pairs are possible that have the same numeric elements but different indexes, return the smallest sum of indexes.
So for test case:
[0, 0, 0, 0, 1, 1] Indexes: [0,4], [1,5] Values: [0,1],[0,1]
The indexes 1+5 should be not included, hence the answer should be 0+4 = 4, right?


What does fintune mean?

Thanks for your contributions.
'For CelebA Dataset, train the model for 350,000 iterations and finetune for 150,000 iterations. (500,000 in total)'
I want to know what's the meaning of finetune in the same dataset.
According to the code, when finetuning,  parameters of BatchNorm2d will be fixed and the lr will change from 2e-4 to 5e-5.
Do I ignore some other operations ?

Your understanding regrading fine-tuning is completely correct. In fact, the main purpose of fine-tuning here is to stabilize the batch normalization layers which is not stable in inpainting tasks, due to the unpredictable mask shape and region. Without this procedure, the image color might be distorted.

You might refer to #33 to see what do the images look like before freezing the batch normalization.


The entire editor breaks when a UI theme's ui-variables.less causes the Less compiler to error

Prerequisites

[ ] Put an X between the brackets on this line if you have done all of the following:

Reproduced the problem in Safe Mode: http://flight-manual.atom.io/hacking-atom/sections/debugging/#using-safe-mode
Followed all applicable steps in the debugging guide: http://flight-manual.atom.io/hacking-atom/sections/debugging/
Checked the FAQs on the message board for common solutions: https://discuss.atom.io/c/faq
Checked that your issue isn't already filed: https://github.com/issues?utf8=✓&q=is%3Aissue+user%3Aatom
Checked that there is not already an Atom package that provides the described functionality: https://atom.io/packages

The problem cannot be reproduced in safe mode, as safe mode does not load packages and themes. I recognise that the problem is caused by a package external to Atom. I believe that this is a valid issue despite this. I have met the other prerequisites.
Description
When a UI theme is selected with a styles/ui-variables.less file which would cause the Less compiler to error, and Atom is reloaded, the editor fails to load, and the window remains an empty white box.
Steps to Reproduce

Clone atom-community/ui-theme-template.
Append # on a new line to styles/ui-variables.less. Alternatively, @foo: @bar; can be appended, where @bar is undefined. This also reproduces the issue.
Run apm link --dev in the root of the repository.
Open Atom in developer mode (atom --dev), navigate to the themes section of the settings screen, and select "Ui Theme Template" from the UI themes dropdown list.
Reload Atom in developer mode (I tried both ctrl + alt + r, and simply closing Atom and re-opening it with atom --dev).

I have only reproduced the problem in developer mode. I have not attempted to reproduce the problem in Atom's normal mode, as I fear being unable to reverse it.
Expected behavior: The editor loads.
Actual behavior: The editor does not load, and the window remains an empty white box. The Chromium developer tools automatically open to the console.
Reproduces how often: Every time.
Versions
Atom    : 1.12.9
Electron: 1.3.13
Chrome  : 52.0.2743.82
Node    : 6.5.0
apm  1.12.9
npm  3.10.5
node 4.4.5
python 3.6.0
git 2.11.0.windows.1
visual studio
Microsoft Windows [Version 10.0.14393]
Additional Information
Here is the stack trace:
index.js:61 Error
    at new Parser (C:\Users\Matt\AppData\Local\atom\app-1.12.9\resources\app.asar\node_modules\less\lib\less\parser.js:333:27)
    at LessCache.module.exports.LessCache.parseLess (C:\Users\Matt\AppData\Local\atom\app-1.12.9\resources\app.asar\node_modules\less-cache\lib\less-cache.js:255:16)
    at LessCache.module.exports.LessCache.cssForFile (C:\Users\Matt\AppData\Local\atom\app-1.12.9\resources\app.asar\node_modules\less-cache\lib\less-cache.js:286:20)
    at LessCache.module.exports.LessCache.readFileSync (C:\Users\Matt\AppData\Local\atom\app-1.12.9\resources\app.asar\node_modules\less-cache\lib\less-cache.js:274:19)
    at LessCompileCache.module.exports.LessCompileCache.read (C:\Users\Matt\AppData\Local\atom\app-1.12.9\resources\app.asar\src\less-compile-cache.js:36:25)
    at ThemeManager.module.exports.ThemeManager.loadLessStylesheet (C:\Users\Matt\AppData\Local\atom\app-1.12.9\resources\app.asar\src\theme-manager.js:280:33)
    at ThemeManager.module.exports.ThemeManager.loadStylesheet (C:\Users\Matt\AppData\Local\atom\app-1.12.9\resources\app.asar\src\theme-manager.js:256:21)
    at ThemeManager.module.exports.ThemeManager.requireStylesheet (C:\Users\Matt\AppData\Local\atom\app-1.12.9\resources\app.asar\src\theme-manager.js:174:24)
    at ThemeManager.module.exports.ThemeManager.reloadBaseStylesheets (C:\Users\Matt\AppData\Local\atom\app-1.12.9\resources\app.asar\src\theme-manager.js:236:12)
    at ThemeManager.module.exports.ThemeManager.loadBaseStylesheets (C:\Users\Matt\AppData\Local\atom\app-1.12.9\resources\app.asar\src\theme-manager.js:231:19)
    at new AtomEnvironment (C:\Users\Matt\AppData\Local\atom\app-1.12.9\resources\app.asar\src\atom-environment.js:272:19)
    at module.exports (C:\Users\Matt\AppData\Local\atom\app-1.12.9\resources\app.asar\src\initialize-application-window.js:26:19)
    at setupWindow (file:///C:/Users/Matt/AppData/Local/atom/app-1.12.9/resources/app.asar/static/index.js:81:12)
    at window.onload (file:///C:/Users/Matt/AppData/Local/atom/app-1.12.9/resources/app.asar/static/index.js:41:9)

I've attempted to do some investigating and I think I have traced the error to this line. When a theme's Less file errors, the error is caught and a notification is given, but the error is re-thrown. I imagine when Atom is loaded and functional, this does not cause problems. However, Atom loads the selected UI theme's ui-variables.less to try and adapt its own styling to the selected theme, and it seems to do this as part of the start-up process. Here, the error halts the start-up process, and it remains uncaught until the very top.
The obvious fix would be to just not re-throw the error, but I'm not sure if there would be repercussions to that.

This behaviour I identified of re-throwing the error is the source of an uncaught exception I was experiencing with atom/dev-live-reload, and trying to debug it made me realise what the problem is here: the selected theme's ui-variables.less is imported directly by static/atom.less, so if ui-variables.less fails to parse, then static/atom.less fails to parse, leading to the behaviour this issue highlights.
I think the ideal fix would be an import option in Less that silently skips over the file if it fails to parse, but Less currently does not have such functionality.

This behaviour is also experienced when the selected syntax theme's syntax-variables.less fails to parse. This makes sense as it is imported in the same manner as ui-variables.less in static/atom.less.


[SPARK-49456][DOCS] Fix hash fragment scrolling behavior on versioned Spark documentation

Why are the changes needed?
Spark docs have always incorrectly scrolled to the right place when a hash fragment is specified in the URL:

We have a 12-year-old hack to fix this with Javascript, but this isn't the right solution for 2024. Most browsers now support scroll-margin-top, which allows you to specify a margin that the browser will keep between the top of the element and the top-border of the viewport.
If a user's browser doesn't support this, their hyperlinks will be off by about ~80 pixels, which is no worse than the UX today.
You can play with the live changes here.
Does this PR introduce any user-facing change?
Yes. When they click/visit Spark links, the page will actually scroll where they want to go.
How was this patch tested?
I tested this on Chromium 128.0.6613.85, and Safari 17.4.1.
Was this patch authored or co-authored using generative AI tooling?
No.

I have tested PR locally, and it looks good to me.
BTW, can we streamline the PR description a bit? Then, we can keep the git log concise after merging. Thank you @neilramaswamy

PR description adjusted. Thanks for the review @yaooqinn.

Merged to master.


Question: Can NPT simulations be used to get IFCs in TDEP

This is a question on the TDEP method itself, and might not be applicable to the tdep code. But I thought this might be a good place to ask this question. Please let me know if it not.
I was wondering whether NPT simulations, where the volumes are fluctuating can be used to fit the IFCs. I noticed that the TDEP formalism is developed for constant volume simulations. And in the publications generally several NVT simulations at different volumes are done to obtain the pressure and thereby the Gibbs Free energy. For example, it is mentioned in this publication that,

Though it is possible to carry out simulations in the NPT ensemble, they are currently not well suited for use with the TDEP method because the underlying formalism assumes a constant volume when fitting results of the MD simulation to obtain the force-constant matrix

Is this the only way to compute the Gibbs Free energy? Is there any alternative to this method if I only have NPT simulations? Any information regarding this would be useful. Thanks.

Hi Rashid,
no - in a word. Olle convinced me there are some pretty fundamental issues
which impose using NVT simulations for TDEP, and it's best to do several
different volume NVTs rather than mess with the NPT. The indexing of the
atoms and the reference positions are not well defined, so the
displacements to match the forces and stress are not uniquely defined
either.
What we do is NPT to get equilibrated volumes for the T we want, then stop
and run an NVT from a well thermalized starting point. This is all easier
with an MLIP of course, with explicit DFT you are better off doing
canonical configurations, then adjusting the full Free energy in the V-T
space to find the equilibrium volume etc. You can get Gibbs from F or H
doing the appropriate thermodynamic transforms.
Best
Matthieu
On Thu, Jun 27, 2024 at 1:10 PM Rashid Rafeek @.***>
wrote:

This is a question on the TDEP method itself, and might not be applicable
to the tdep code. But I thought this might be a good place to ask this
question. Please let me know if it not.
I was wondering whether NPT simulations, where the volumes are fluctuating
can be used to fit the IFCs. I noticed that the TDEP formalism is developed
for constant volume simulations. And in the publications generally several
NVT simulations at different volumes are done to obtain the pressure and
thereby the Gibbs Free energy. For example, it is mentioned in this
publication https://pubs.acs.org/doi/full/10.1021/acs.jpca.6b08633 that,
Though it is possible to carry out simulations in the NPT ensemble, they
are currently not well suited for use with the TDEP method because the
underlying formalism assumes a constant volume when fitting results of the
MD simulation to obtain the force-constant matrix
Is this the only way to compute the Gibbs Free energy? Is there any
alternative to this method if I only have NPT simulations? Any information
regarding this would be useful. Thanks.
—
Reply to this email directly, view it on GitHub
https://github.com/tdep-developers/tdep/issues/73, or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABWOT35QPQYB4DCJMDP3Y2TZJPXKVAVCNFSM6AAAAABJ7WIEXCVHI2DSMVQWIX3LMV43ASLTON2WKOZSGM3TOOBWGA4DCNQ
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>

--
Professor Matthieu J Verstraete
Fellow, American Physical Society
Chair, Steering Committee, European Theoretical Spectroscopy Facility
www.etsf.eu
Alumnus Fellow, Young Academy of Europe  yacadeuro.org

Institute for Theoretical Physics (ITP) Department of Physics
Buys Ballot Gebouw/Building, Princetonplein 5, office
University of Utrecht,  3584 CC Utrecht
ITP Secretariat: +31 30 253 5928 E-mail<EMAIL_ADDRESS>
Group web page (Liège): http://www.nanomat.ulg.ac.be/

Nanomat lab, Q-Mat center, Université de Liège
Département de Physique, Bat. B5a, 4/50
Allée du 6 août, 19 B-4000 Sart Tilman, Liège Belgium
Phone : +32 4 366 90 17

European Theoretical Spectroscopy Facility (ETSF)

Mail<EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS>

Hi Matthieu,
That makes sense. As we have built MLIPs for the system, I think it would be possible to do NVT simulations using the equilibrium volume. I was wondering whether I can use some of the AIMD NPT simulations we already have for the calculations. Seems not. Thank you very much for letting me know.
Regards,
Rashid.


install if not there.

SO when a user calls for naabu, we check if its installed and if not, install it, and then let the original call to naabu through.
The below Makefile works btw, but I was thinking we should codify it into pdtm as golang code.

OS_GO_BIN_NAME=go
ifeq ($(shell uname),Windows)
	OS_GO_BIN_NAME=go.exe
endif

OS_GO_OS=$(shell $(OS_GO_BIN_NAME) env GOOS)
BIN_PDTM_NAME=pdtm
ifeq ($(OS_GO_OS),windows)
	BIN_PDTM_NAME=pdtm.exe
endif
BIN_PDTM_WHICH=$(shell which $(BIN_PDTM_NAME))

BIN_NAAABU_NAME=naabu
ifeq ($(OS_GO_OS),windows)
	BIN_NAAABU_NAME=naabu.exe
endif
BIN_NAAABU_WHICH=$(shell which $(BIN_NAAABU_NAME))

naabu-init:
	@echo "checking ..."
ifeq ($(BIN_NAAABU_WHICH),)
	$(BIN_PDTM_NAME) -install naabu
endif
naabu: naabu-init
	$(BIN_NAAABU_NAME)

@gedw99,

SO when a user calls for naabu, we check if its installed and is not, instal it, and then let the original call to naabu through.

We're installing the given tool programmatically if it's already not installed. Is this what you were aiming? See
https://github.com/projectdiscovery/pdtm/blob/main/internal/runner/runner.go#L98

Thanks but on a Mac if does not work in that if the naabu is not installed then the call to naabu fails.

Also the code uses go install to do the install I think ?
so we could also make it install off the GitHub binaries eventually. A env toggle could then determine what me hanism it uses.
The reason of course being that not all users have golang installed.

No, it depends on the tool's installation type, if it is binary, it tries binary install, then go install if the binary install is not successful.
go install: https://github.com/projectdiscovery/pdtm/blob/main/internal/runner/runner.go#L106
binary install: https://github.com/projectdiscovery/pdtm/blob/main/internal/runner/runner.go#L113

Thanks. I think we can close this and I can reopen if I need to later


Impossible to load irrlicht device

Hi @prashanthr05, I have tried to run the docker image on my laptop (MacOS 11.3.1), but I am getting a Segmentation Fault with the following error displayed

I am not sure if it corresponds to the "known issue" mentioned in the readme, and in case what is your suggestion?

Ciao @lrapetti! Thanks for reporting this error in an issue. yes, this is exactly the same thing that corresponds to the known issue mentioned in the README.
For this what I did was not run Docker Desktop GUI,
Instead, I ran the docker Daemon on Linux using sudo to give root privileges. (Could you report the equivalent mac commands so I can update the README)
sudo dockerd

and then I ran the docker run command also using sudo.
sudo docker run -it --net=host --env="DISPLAY=$DISPLAY"  --volume="/tmp/.X11-unix:/tmp/.X11-unix" ghcr.io/ami-iit/human-base-estimation-docker:latest

I

@lrapetti can you try to install xquartz and launch it?
An alternative may be to avoid use a irrlicht device that uses the xserver, @prashanthr05 here for what you are using irrlicht? Saving images to a file/movie?

It's for visualizing the output trajectory using iDynTree Visualizer.

@lrapetti some references:

https://gist.github.com/cschiewek/246a244ba23da8b9f0e7b11a68bf3285
http://mamykin.com/posts/running-x-apps-on-mac-with-docker/

In general, I would first try glxgears to check if it is working, and once that is working I would try the irrlicht visualizer.

I try to document here for reference what I have tested:

I tried to update XQuartz and re-launch it
I tried to follow https://gist.github.com/cschiewek/246a244ba23da8b9f0e7b11a68bf3285 by running:xhost +localhost
docker run -it --net=host --env="DISPLAY=localhost:0"  --volume="/tmp/.X11-unix:/tmp/.X11-unix" ghcr.io/ami-iit/human-base-estimation-docker:latest

orxhost +localhost
docker run -it --net=host --env="DISPLAY=host.docker.internal:0"  --volume="/tmp/.X11-unix:/tmp/.X11-unix" ghcr.io/ami-iit/human-base-estimation-docker:latest

(note that the difference is in the DISPLAY variable)

But nothing worked out

I don't have a solution for this at the moment. I would suggest following the manual instructions below forgoing the Docker-based launching, and instead preparing the environment in the host system itself.

Install tmuxinator to manage multiple shell sessions

brew install tmuxinator
# in linux, run
# sudo apt install tmuxinator

Install Mambaforge and run init to add conda and mambaforge to the path by automatically applying changes to the .bashrc equivalent (Please ignore this step if you already have Mambaforge setup in your system),

# Download
curl -LO https://github.com/conda-forge/miniforge/releases/latest/download/Mambaforge-$(uname)-$(uname -m).sh

# Install with default options
sh ./Mambaforge-$(uname)-$(uname -m).sh -b

# init conda and mambaforge
~/mambaforge/condabin/conda init
~/mambaforge/condabin/mamba init

Create a virtual environment

mamba create -n humanoids22 python=3.8

Clone this repository  in a workspace folder of your choice and install dependencies from the deps/robotology-deps.yml into the virtual environment and copy the tmux config file and datasets to given locations,

git clone https://github.com/ami-iit/paper_ramadoss_2022_humanoids_human-base-estimation
cd paper_ramadoss_2022_humanoids_human-base-estimation

# update the virtual environment and remove unwanted files to keep the size small
mamba env update --name humanoids22 --file deps/robotology-deps.yml && \
mamba clean --tarballs --index-cache --packages --yes && \
find ${CONDA_DIR} -follow -type f -name '*.pyc' -delete && \
mamba clean --all --yes

# activate environment
mamba activate humanoids22

# copy the tmuxinator config (create the .config/tmuxinator folder in home if it is not created automatically)
cp conf/tmux-humanoids.yml ~/.config/tmuxinator/humanoids22.yml

Clone KinDynFusion repo in desired location and install

git clone https://github.com/ami-iit/kindynfusion
git fetch origin humanoids2022:humanoids2022
git checkout humanoids2022
cd kindynfusion/src/
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=Release \
      -DALLOW_IDL_GENERATION=ON \
      -DCMAKE_INSTALL_PREFIX=<where-you-want-to-install> ..
make && make install

Add KinDynFusion library and binaries to path

export KinDynFusion_DIR=<where-you-installed-kindynfusion>
export YARP_DATA_DIRS=${YARP_DATA_DIRS}:${KinDynFusion_DIR}/share/yarp
export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${KinDynFusion_DIR}/lib

# to check if correctly, installed run
yarpdev --list | grep WholeBodyKinematics

# this should print
#[INFO] |yarp.dev.Drivers| Device "WholeBodyKinematicsDevice", available on request (found in <where-you-installed-kindynfusion>/lib/yarp/WholeBodyKinematicsDevice.so library).
#[INFO] |yarp.dev.Drivers| Device "WholeBodyKinematicsLogger", available on request (found in <where-you-installed-kindynfusion>/lib/yarp/WholeBodyKinematicsLogger.so library).
#[INFO] |yarp.dev.Drivers| Device "WholeBodyKinematicsRemapper", available on request (found in <where-you-installed-kindynfusion>/lib/yarp/WholeBodyKinematicsRemapper.so library).
#[INFO] |yarp.dev.Drivers| Device "WholeBodyKinematicsVisualizerDevice", available on request (found in <where-you-installed-kindynfusion>/lib/yarp/WholeBodyKinematicsVisualizerDevice.so library).

# Also add `yarp` and `human-gazebo` to YARP_DATA_DIRS
export YARP_DATA_DIRS=${YARP_DATA_DIRS}:~/conda/envs/humanoids22/share/yarp:~/conda/envs/humanoids22/share/human-gazebo

Change the paths in the humanoids22.yml, change <path-to-paper-repo> and <paper-to-kindynfusion-repo> with correct paths.

name: humanoids22
root: ~

windows:
  - server-and-player:
      layout: main-vertical
      panes:
        - sleep 3; yarp wait /HDE/WholeBodyKinematicsWrapper/state:o; yarprobotinterface --config wbkvisualizer_humanoids2022.xml
        - yarp server --write
        - sleep 3; yarp wait /yarpdataplayer/rpc:i; echo "load <path-to-paper-repo>/dataset/walk2" | yarp rpc /yarpdataplayer/rpc:i; yarp wait /HDE/WholeBodyKinematicsWrapper/state:o; echo "play" | yarp rpc /yarpdataplayer/rpc:i; echo "pause" | yarp rpc "/yarpdataplayer/rpc:i"
        - sleep 3; yarp wait /iFeelSuit1/WearableData/data:o; yarprobotinterface --config humanoids2022.xml
        - sleep 3; yarp wait /robot; yarpdev --device transformServer --ROS::enable_ros_publisher 0 --ROS::enable_ros_subscriber 0
        - sleep 3; yarp wait /robot; yarpdataplayer-console --withExtraTimeCol 2
        - sleep 3; yarp wait /WholeBodyKinematicsDevice/rpc:i; sleep 5; bash <path-to-kindynfusion-repo>/src/scripts/TPoseCalibrationAndInitBaseEKF.sh; echo "play" | yarp rpc /yarpdataplayer/rpc:i; sleep 20; tmux kill-session

In a humanoids22 mamba-activated terminal, set the yarp namespace and launch the tmux session,

yarp namespace /robot
tmuxinator start humanoids22

Everything will launch automatically and the session will close at the end of the experiment.


Does not support Python3.10

Background explanation

During installation I used python3.10. I got an error
ERROR: Package 'lang-sam' requires a different Python: 3.11.5 not in '<3.11,>=3.8'

Full runnable code or full changes you made:

I changed the dependency in the environment.yml file. I used the following

python=3.10.12=h955ad1f_0

instead of python3.8

What exact command you run:

pip install -U git+https://github.com/luca-medeiros/lang-segment-anything.git

I have python 3.7.9 and I got the error
ERROR: Package 'lang-sam' requires a different Python: 3.7.9 not in '>=3.8,<3.11'

make sure your python is 3.8~3.10.


Swarming stats should list time in local time

Right now it appears to be using UTC which is a pain to keep converting to my
local time.

Original issue reported on code.google.com by<EMAIL_ADDRESS>on 7 Aug 2014 at 4:08

@cyberstip disagrees.

For web UIs it seems reasonable to convert to local time and it's pretty easy to do. If we're not actively against having this I'd be interested in adding it.

I'm fine with with adding it via javascript.

Please use moment.js (http://momentjs.com/) if you are going to do timezone stuff in javascript.


New script via right-click context menu is broken inside a folder

When you have one or more folders in your Project - General tab and try to create a new script inside a folder by right-clicking the desired folder and selecting the Create SQL Script option, DBeaver prompts you the DB connection dialog, however no new script is created after selecting the connection for the script.
Using the standard New script button in the top toolbar works normally.

Fixed.
Will be included in 3.5.2.


WIP Updating the clients to enable fee estimation

@rlkelly rough draft, don't be alarmed :) Needs clean up for code redundancy but just wanted to share initial draft. Will clean up along with commit history


[OpenGL/Vulkan]Z-Buffer Does Not Working Properly

What is an issue?

Let's assume there are three textures 1, 2, 3. And their z-value is 0.0, 1.0, 0.5 each. When 2 and 3 textures overlap, texture 3's background(alpha = 1.0) is filled with background color.
Expected Causes
Using Alpha Blending and Depth Testing at the same time seems the problem.
As the second texture is rendered, pixels with a depth value of 1.0 are recorded in the Depth Buffer. When the third texture is rendered, a depth test is performed on the overlapping areas with the second texture. Since the third texture has a depth value of 0.5, it should pass the depth test. However, if the corresponding pixel in the second texture is transparent, the background behind it becomes visible, causing the third texture not to be rendered. Instead, the background is shown.
Expected Solutions

Disable Alpha Blending or Depth Testing -> Rendering order is always fixed so that cannot be dynamically changed based on z-value.
Sort Buffers by Z-Value -> More load on CPU.

https://www.khronos.org/opengl/wiki/Transparency_Sorting
if (texture(tex[f_matrix[inIndex].texIndex], i_uv).a < 0.5)
    discard;

Writing this code on fragment shader fixed the problem without sideffects.
With this shader, you don't need to change the depth buffer parameters or order you render anything. This will cause any fragment that got a texel alpha of 0.5 to be culled.

    vec4 texColor = mix(i_col, texture(tex[f_matrix[inIndex].texIndex], i_uv), inIsTex);

    if (texColor.a < 0.5) {
        discard;
    }
    fragmentColor = i_col * texColor;

Changed to this code since
if (texture(tex[f_matrix[inIndex].texIndex], i_uv).a < 0.5)
    discard;

this code still had texture issues.