The benchmark result of pallet-grandpa does not match WeightInfo trait

Is there an existing issue?

[X] I have searched the existing issues

Experiencing problems? Have you tried our Stack Exchange first?

[X] This is not a support question.

Description of bug
Version: 4.0.0-dev
Benchmark result benchmarking.rs
/// Weight functions for `pallet_grandpa`.
pub struct WeightInfo<T>(PhantomData<T>);
impl<T: frame_system::Config> pallet_grandpa::WeightInfo for WeightInfo<T> {
	fn check_equivocation_proof(x: u32, ) -> Weight {
		(62_998_000 as Weight)
			// Standard Error: 8_580_000
			.saturating_add((14_227_000 as Weight).saturating_mul(x as Weight))
	}
	// Storage: Grandpa Stalled (r:0 w:1)
	fn note_stalled() -> Weight {
		(2_364_000 as Weight)
			.saturating_add(T::DbWeight::get().writes(1 as Weight))
	}
}

pallet_grandpa::WeightInfo trait
pub trait WeightInfo {
	fn report_equivocation(validator_count: u32) -> Weight;
	fn note_stalled() -> Weight;
}

Build error
  error[E0407]: method `check_equivocation_proof` is not a member of trait `pallet_grandpa::WeightInfo`
    --> /home/workspace/darwinia-git/darwinia-common/node/runtime/pangolin/src/weights/pallet_grandpa.rs:58:2
     |
  58 | /     fn check_equivocation_proof(x: u32, ) -> Weight {
  59 | |         (62_998_000 as Weight)
  60 | |             // Standard Error: 8_580_000
  61 | |             .saturating_add((14_227_000 as Weight).saturating_mul(x as Weight))
  62 | |     }
     | |_____^ not a member of trait `pallet_grandpa::WeightInfo`

  error[E0046]: not all trait items implemented, missing: `report_equivocation`
    --> /home/workspace/darwinia-git/darwinia-common/node/runtime/pangolin/src/weights/pallet_grandpa.rs:57:1
     |
  57 | impl<T: frame_system::Config> pallet_grandpa::WeightInfo for WeightInfo<T> {
     | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ missing `report_equivocation` in implementation
     |
     = help: implement the missing item: `fn report_equivocation(_: u32) -> u64 { todo!() }`

  Some errors have detailed explanations: E0046, E0407.
  For more information about an error, try `rustc --explain E0046`.
  error: could not compile `pangolin-runtime` due to 2 previous errors

Steps to reproduce

Benchmark for pallet_grandpa
Update weight for pallet_grandpa
Build

Some pallets do not have automatic benchmarking. It is tracked in https://github.com/paritytech/substrate/issues/10780.
This is also a duplicate of https://github.com/paritytech/substrate/issues/7383.
The reason here is that the offences pallet is interlinked very tightly, and that needs benchmarks first.
It is quite complicated but doable (see https://github.com/paritytech/substrate/issues/10781).


Various improvements and fixes

implement accurate and fast based on the method of Carvalho & Johns-Krull (2023)
fix a bug that caused the code to continue running when specifying a rotational broadening method that is not in the list of available methods!
implement better output of the time spent running
Automatically create the output directory if it does not exist

I will merge the most recent changes before doing this PR, sorry.


README: instructions for installing via MacPorts

What

Adds instructions on how to install k3d via MacPorts.
Why

Additional methods for installing on macOS.
Implications

Nice, thanks for your contribution! 🙂

Thank you @iwilltry42


Bug/disable range drawing

Fix for https://github.com/WorldDownTown/RangeSeekSlider/issues/6.

@hernangonzalez Thank you for debugging!


fix for #12735.  moving dependency version declarations to maven properties

this PR fixes #12735 by moving dependency version declarations in the main pom to properties.  This makes the approach to dependency management a bit more consistent and sets the basis for future dependency rework as mentioned in #12676 a bit easier to get going

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 34.37%. Comparing base (59551e4) to head (98318e7).
Report is 179 commits behind head on master.

Additional details and impacted files
@@              Coverage Diff              @@
##             master   #12736       +/-   ##
=============================================
- Coverage     61.75%   34.37%   -27.39%
+ Complexity      207        6      -201
=============================================
  Files          2436     2385       -51
  Lines        133233   130970     -2263
  Branches      20636    20291      -345
=============================================
- Hits          82274    45016    -37258
- Misses        44911    82623    +37712
+ Partials       6048     3331     -2717

Flag
Coverage Δ

custom-integration1
?

integration
<0.01% <ø> (-0.01%)
:arrow_down:

integration1
<0.01% <ø> (-0.01%)
:arrow_down:

integration2
0.00% <ø> (ø)

java-11
0.00% <ø> (-61.71%)
:arrow_down:

java-21
34.37% <ø> (-27.26%)
:arrow_down:

skip-bytebuffers-false
34.36% <ø> (-27.39%)
:arrow_down:

skip-bytebuffers-true
<0.01% <ø> (-27.73%)
:arrow_down:

temurin
34.37% <ø> (-27.39%)
:arrow_down:

unittests
45.91% <ø> (-15.83%)
:arrow_down:

unittests1
45.91% <ø> (-0.98%)
:arrow_down:

unittests2
?

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

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


ID version

Can anybody help me to rewrite this to work with old ID system of owned_vehicles please?

Or just update your scripts..

As long as we will have compatibility problems with plate system like randomly stuck state when saving to garage, etc.  , we have to stick with id system.


Issues about training batch size

Thank you very much for the excellent work.
I would like to confirm if this set of settings is feasible.

When I tried batch size=2, it reported an error of out of memory. I don't know where the parameter setting problem is, right?
pa_po_nuscenes_trainval.yaml:
dataset:
name: nuscenes
version: v1.0-trainval
path: ../data/nuscenes
sample_pkl_path: ../data/nuscenes/pkl_files
rotate_aug: True
flip_aug: True
max_volume_space: [ 100, 3.1415926, 3 ]
min_volume_space: [ 0, -3.1415926, -5 ]dataset:
name: nuscenes
version: v1.0-trainval
path: ../data/nuscenes
sample_pkl_path: ../data/nuscenes/pkl_files
rotate_aug: True
flip_aug: True
max_volume_space: [ 100, 3.1415926, 3 ]
min_volume_space: [ 0, -3.1415926, -5 ]
gt_generator:
sigma: 5
grid_size: [480, 360, 32]
inst_aug:
if_use: False
aug_type: contmix
inst_pkl_path: ../data/nuscenes/instance_database_train/inst_database_train_info.pkl
inst_trans: True # random translation for contmix
inst_rotate: True
inst_flip: True
inst_add: True
num_worker: 1 # 4
min_points: 15  # 15
model:
pix_fusion: True
pix_fusion_path: ../checkpoints/resnet18-5c106cde.pth
use_sara: True
use_att: True
model_load_path: null
model_save_path: ./nu_8k2b4l.pt
train_batch_size: 2
val_batch_size: 2
learning_rate: 0.004
LR_MILESTONES: [40, 150, 200]  # [100, 150, 200]
LR_GAMMA: 0.5
check_iter: 4000
max_epoch: 300
post_proc:
threshold: 0.1
nms_kernel: 5
top_k: 100
center_loss: MSE
offset_loss: L1
center_loss_weight: 100
offset_loss_weight: 10
Thanks.

My current suggestion is that you can try run on single 3090/4090 GPU with batchsize=2 and num_worker=1. Since DDP also consumes GPU memory. The time cost is approximately 3.5h/Epoch, which can be trained for demo experiments. Or you can choose 32G V100 or 48G A6000/A40 for stable training.
The behavior of GPU memory consumption is kind of strange actually, because I found that it's a machine-dependent factor. When I conducted experiments on my school lab server it could just be narrowed into 24G memory with batch-size=2 and num_worker=1 with 2 GPUs parallel-training. However, when I rent GPU on  AutoDL，it raised OOM error and I had to rent V100 or A40 GPU. And I tried to borrow other labs' 24G GPU device and also raised OOM error. So if you find 24G cannot fit, it is better to use V100 32G for stable training.
The most ideal training setting is use 8 A40 GPUs with batch-size=2，with each GPU using 30~38G memory.

Thank you for your reply, which solves my doubts. Thanks. @zhangzw12319


Update CONTRIBUTING.md

This is probably meant to read: "Search for existing"

Codecov Report

Merging #7082 (9100156) into dev (1127bd7) will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff            @@
##               dev     #7082   +/-   ##
=========================================
  Coverage   100.00%   100.00%
=========================================
  Files           17        17
  Lines          699       699
=========================================
  Hits           699       699

Continue to review full report at Codecov.

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


Basic Rotation does not work with new Core

local GUI = {
{type = "spinner", text = "test spinner", key = "test2", default = 95},
{type = "checkbox", text = "test checkbox", key = "test", default = false}
}
local function exeOnLoad()
-- ClallBacks
end
local inCombat = {
{'12294'}, 							-- Mortal-strike
}
local outCombat = {
}
NeP.Engine.registerRotation(71, 'Gosu-CR-Arms-Warrior', inCombat, outCombat, exeOnLoad, GUI)
These few lines do not work with the new Core.

Wich unlocker? EWT?

Firehack

Should be fixed, thanks!

as mentioned in disqord the rotation still gets stuck on detecting Battle Cry. It just keeps showing Battle Cry as next spell and gets stuck.

Update and see if that still happens please.


Tab index issue or focus issue in TextField or AutoComplete components due to react-draggable

when TextField or AutoComplete or button components are used in a Dialog that uses paper component using  'react-draggable' component or feature, It causes tab index focusing issue as re-render happens for few fields inside dialog.
when commented the react-draggable portion of code and checked the re-render of fields inside dialog after entering text and pressing tab, it renders fine for all and also focusing works fine and in proper sequence on pressing tab key.
Kindly do needful to resolve the issue.
Thanks.

[x] The issue is present in the latest release.
[x] I have searched the issues of this repository and believe that this is not a duplicate.

  Output from `npx @mui/envinfo` goes here.

Hello Kunavenkatrao,
Please provide a codesandbox replicating the issue in a clear way, it's very time consuming if everyone that wants to help you had to try and replicate this on their own machine.

Closing since no reproduction was provided within 14 days.


Alarms on reboot

We should make sure, that the alarms persist through reboot. Rescheduling on a reboot receiver may be the solution.

Should be fixed with https://github.com/dhbw-timetable/dhbw-timetable-android/commit/4052db657959f00112c4bbd17468cf41351f3595 Have to review this on test device.

Tested and should work now.


Does TiBigData support lookup join?

If you meant Lookup Table Source in Flink, yes it is supported.

Thanks. Does  LookupTableSource support async mode?

Since TiBigData Lookup Table Source implementation is a simple wrapper of JDBC Lookup Table Source at this time. Therefore it depends on JDBC connector in Flink. To my understanding, JDBC lookup table source does not support async mode in master branch.


Minor fixes for Tomi's consideration

@tompaana please check out the changes in reviewable as it's much easier to see how minor the changes are. GitHub's diff algorithm didn't handle this one too well. The biggest change is in ConnectionHelper where I refactored one of the functions so that it wasn't so long. I just pulled out two parts and turned them into their own private methods.

Reviewed 11 of 11 files at r1.
Review status: all files reviewed at latest revision, all discussions resolved.

Comments from the review on Reviewable.io


GhostText protocol wishlist

Current

https://github.com/fregante/GhostText/blob/main/PROTOCOL.md

Future

Just connect to WebSocket, no intermediary HTTP server

alternatively, just use EventSource and HTTP/2 instead of WebSocket

Add timestamp to messages in order to discard messages that are out of order
Send the full URL on connection so that the editor can use the filename and/or set the syntax
the text selection can be sent separately from the content
the editor should not send the syntax back

My suggestion?
Implement diff mode.
First connection
Browser sends editor the metadata, and the full text
Rest of the lifetime
Every time text changes in either browser or editor, it sends out a message that contains the line numbers from which the change starts, and the line number at which the change stops, and the whole text between those line numbers.
e.g.

Say, currently the text is -

Lorem Ipsum
Dolor Sit
Consectetur
Adipiscing Elit

The user changes the text to -

Lorem Ipsum
Dolor Stand
Consectetur
Adipiscing Elit

A message containing the following details is sent out -

start: 2
end: 2
Dolor Stand

The user changes the text to -

sing with me, sing for the year,
sing for the laughter and sing for the tear.
sing with me, just for today,
maybe tomorrow the good lord will take you away
dream on, dream on, dream on,
dream until your dreams come true
Lorem Ipsum
Adipiscing Elit

A message containing the following details is sent out -

start: 1
end: 3
sing with me, sing for the year,
sing for the laughter and sing for the tear.
sing with me, just for today
maybe tomorrow the good lord will take you away
dream on, dream on, dream on,
dream until your dreams come true
Lorem Ipsum

The user changes the text to -

Lorem Ipsum
Adipiscing Elit

A message containing the following details is sent out -

start: 1
end: 6

The user changes the text to -

Lorem Ipsum

A message containing the following details is sent out -

start: 2
end: 2

This way, GhostText can work on big files without needing to consume a ton of CPU.

Implement diff mode.

heh I was thinking about that earlier, but that complicates things a lot, because suddenly every message has to be delivered.
The other complication is that a diff algorithm, especially with multiple cursors, still doesn't come free, and has to be implemented by each editor plugin in different languages. One editor gets this wrong and people lose data and open issues here.
The only way I could do this would be with a standard, simple diffing algorithm available in multiple languages. This would avoid implementation errors and waste of dev time. I'd probably not implement this myself in any case due to the complexity, compared to just dynamic throttling (see the "updates" section in https://github.com/fregante/GhostText/issues/256)

Browser sends editor the metadata (title, url, etc.) and the full text

Totally agree, the current setup is awkward. This isn't even that difficult to setup right now, so PR welcome for that (including protocol.md).
I'm happy to make changes that are backwards compatible, I already made a couple of improvements this week: https://github.com/fregante/GhostText/commits/main/PROTOCOL.md


Whitespace between function name token and left paren

I have a test that generated the following code, and fed it into sexpr-wasm
(module
(func $foomore(call $foo (i32.const 0x0)) )
(func $foo (param i32)(nop))
)
Note the lack of space between $foomore and its opening paren. Sometime between rev 64fb062d and rev 7601228b this stopped being accepted by the parser, which now issues the following confusing error:
:2:23: expected '(', not "$foo"
It looks like the "(call" is getting sucked into the "$foomore" token.
I don't actually know what the rules of s-expressions are in that case; maybe this is the correct behavior?

Ah, this is probably a bug I introduced when I started parsing nan(0x...)

Fixed in 4449e0a0d2eedc3e12524c5c65f29a9b1e2b3398.


Refactor exceedsInProgressLimit

Pull Request type

[V] Feature
[V] Refactoring (no functional changes, no api changes)

Changes in this PR
ExecutionDAO and implementations:

Delete exceedsInProgressLimit
Add findAllTasksInProgressInOrderOfArrival

SemaphoreDAO:

Add SemaphoreDAO
Implement SemaphoreDAO for Dynomite and MySQL

ConcurrentExecutionLimitingDAO:

Add new DAO ConcurrentExecutionLimitingDAO
Implemnt default behavior in TaskDefLimitingDAO
Limiting by WorkflowTask implemented by WorkflowTaskLimitingDAO
Limit by TaskDef and WorkflowTask in TaskDefAndWorkflowTaskLimitingDAO
Issue #2066

Pull Request Test Coverage Report for Build 5430

107 of 151 (70.86%)  changed or added relevant lines in 18 files are covered.
22 unchanged lines in 4 files lost coverage.
Overall coverage increased (+0.07%) to 70.741%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

mysql-persistence/src/main/java/com/netflix/conductor/mysql/MySQLWorkflowModule.java
0
1
0.0%

contribs/src/main/java/com/netflix/conductor/contribs/executionLimiting/TaskDefAndWorkflowTaskLimitingDAOModule.java
0
3
0.0%

contribs/src/main/java/com/netflix/conductor/contribs/executionLimiting/WorkflowTaskLimitingDAO.java
0
3
0.0%

contribs/src/main/java/com/netflix/conductor/contribs/executionLimiting/WorkflowTaskLimitingDAOModule.java
0
3
0.0%

server/src/main/java/com/netflix/conductor/bootstrap/ModulesProvider.java
6
17
35.29%

contribs/src/main/java/com/netflix/conductor/contribs/executionLimiting/TaskDefAndWorkflowTaskLimitingDAO.java
0
23
0.0%

Files with Coverage Reduction
New Missed Lines
%

mysql-persistence/src/main/java/com/netflix/conductor/mysql/MySQLWorkflowModule.java
1
0%

core/src/main/java/com/netflix/conductor/core/events/queue/EventPollSchedulerProvider.java
5
50.0%

grpc/src/main/java/com/netflix/conductor/grpc/AbstractProtoMapper.java
5
54.41%

core/src/main/java/com/netflix/conductor/core/config/Configuration.java
11
75.0%

Totals

Change from base Build 5425:
0.07%

Covered Lines:
13745

Relevant Lines:
19430

💛  - Coveralls


packet.net optimizations

packet.net optimizations
Description

Use multiprocessing to get nodes without specifying project_id
Function list_nodes can also receive a project_id and return node on this
project, but if called without one it will fetch nodes on all projects

fix list_sizes to return only server sizes (now it contains other items, as storage)

provide cloud_init on create_node

add functions ex_start_node and ex_stop_node

add extra metadata on list_nodes

add Project object with information for the Project

add ex_list_projects function

Status
done, ready for review
Checklist (tick everything that applies)

[x] Code linting (required, can be done after the PR checks)
[x] Documentation
[ ] Tests
[ ] ICLA (required for bigger changes)

I understand that introducing multiprocessing is a big change for libcloud, however it is a no go if you want list_nodes to return soon and have a big number of projects. This has worked without problems for us on mist.io for Azure, vCloud and packet.net . Happy to provide more info

hey @mgogoulos I was considering having an aiohttp pattern and using async/await for certain methods instead of introducing a non-standard threading library.
let's discuss on the dev channel

Superseded by #1282 so I'm closing this PR.


fgdc Handling DateTime

The FGDC format for date is YYYYMMDD and for ISO YYYY-MM-DD.  The FGDC format for time is hh:mm:ss and for ISO hh:mm:ss.s+hh:mm.  See [CIESIN](http://sedac.ciesin.columbia.edu/metadata/guide/guide_toc.html FGDC) documentation. FGDC also delivers date and time in separate elements these must be reconnected for mdEditor, mdTranslator, and ISO.  Most of this translation is straight forward.  However, handling of timezones needs some explaination.
FGDC does not provide offset with time format, nor is timezone or offset available elsewhere in the FGDC record.  What FGDC does have in section 7 (metadata information) is 'time convention' for the metadata record.  Time convention is a text domain of ['universal time', 'local time', 'local time with time differential factor'].  Since the 'differential factor' is not specified I consider that enumeration the same as local time.

if the time convention is 'universal time' I attach +00:00 to the time and convert that to a dateTime object
when the time convention is 'local time'

I find the local offset in seconds from UTC
convert the offset to hours and minutes
attach the offset and convert that to a dateTime object
refactor the dateTime object to universal time

What is implied here is that all dateTime objects are stored in mdTranslator as UTC.  This works nicely for times entered in 'universal time'.  However there are issues when 'local time' is used.  Here are the issues I see:

The offset time offset will be computed by the mdTranslator server, wherever it may be.
Time offset will be inconsistent depending on the season, standard time vs. daylight savings time.
mdEditor does the same thing (saved UTC, displays local).  If the translator and editor sit in different timezones, times shown in the editor will differ from times entered in the FGDC record.  However the saved time values will be the same.
It seems best to enter all times in FGDC records as UTC.  However, I don't think there is a way to enter UTC times using the mdEditor.

If the 'time convention' was not set in FGDC I am defaulting it to local time.
I think the best solution is to avoid time altogether unless it is critical, then use universal time in FGDC and local time in the mdEditor.  Please advise if you see a better solution.

This is how Metavist writes it out:
20170203
103146
Verifying what you said, time zone or offset are not recorded. If we use time, which is rare, we would likely use local time.

Okay, I'll add translation of time in nnnnnn format to the date/time routine.


feat(runtime): write next runtime logs to stdout

you know the drill 🔨🪚🛠🔩🪛🔧🪚🔨🔩🛠

Updated the codegen in 6569b3c3f0c14b1e932d18358d278dd69ab42e15


Spinner size property crash the app

Describe the bug
Spinner size property accepts only "sm","lg","small" and "large", the app will close if you use any other value stated in doc
this is the case for android emulator and android device, it just quit the app without any error log
the size in snack is also incorrect

To Reproduce
Steps to reproduce the behaviour:
1.expo init my-app --template expo-template-native-base-typescript
2. paste this code in App.tsx (only minor modification compare to original code)
import React from "react";
import {
  Text,
  Link,
  HStack,
  Center,
  Heading,
  Switch,
  useColorMode,
  NativeBaseProvider,
  extendTheme,
  VStack,
  Code,Spinner
} from "native-base";
import NativeBaseIcon from "./components/NativeBaseIcon";

// Define the config
const config = {
  useSystemColorMode: false,
  initialColorMode: "dark",
};

// extend the theme
export const theme = extendTheme({ config });

export default function App() {

	return (
    <NativeBaseProvider>

        <VStack space={5} alignItems="center">
          <Spinner size="lg"/>
          <NativeBaseIcon />
          <Heading size="lg">Welcome to NativeBase</Heading>
          <HStack space={2} alignItems="center">
            <Text >Edit</Text>
            App.tsx
            <Text>and save to reload.</Text>
          </HStack>
          <Link href="https://docs.nativebase.io" isExternal>
            <Text color="primary.500" underline fontSize={"xl"}>
              Learn NativeBase
            </Text>
          </Link>
          <ToggleDarkMode />
        </VStack>

    </NativeBaseProvider>
  )
}

// Color Switch Component
function ToggleDarkMode() {
  const { colorMode, toggleColorMode } = useColorMode();
  return (
    <HStack space={2} alignItems="center">
      <Text>Dark</Text>
      <Switch
        isChecked={colorMode === "light" ? true : false}
        onToggle={toggleColorMode}
        aria-label={
          colorMode === "light" ? "switch to dark mode" : "switch to light mode"
        }
      />
      <Text>Light</Text>
    </HStack>
  );
}

Expected behaviour
We should be able to use the size stated in doc

Platform
NativeBase version： 3.2
Device: Pixel XL(emulator), redmi note 10 pro(device, apk)
OS: Android 11
React Native version: 0.63.2
Expo sdk version: 42.0
node: 14.17.6
yarn: 1.22.5

This has been resolved and Spinner component only accepts size as "sm", "lg","small" or "large". It also accepts other props as React Native's ActivityIndicator mentioned in documentation.


xosview2: 2.3.2 -> 2.3.3

Automatic update generated by nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/xosview2/versions.
meta.description for xosview2 is: "Lightweight graphical operating system monitor"
meta.homepage for xosview2 is: "http://xosview.sourceforge.net/index.html"
meta.changelog for xosview2 is: ""
Updates performed

Version update

To inspect upstream changes
Impact

Checks done (click to expand)

built on NixOS
The tests defined in passthru.tests, if any, passed
found 2.3.3 with grep in /nix/store/x89rm1lqfj5iks58fbm20grmnnb62l9g-xosview2-2.3.3
found 2.3.3 in filename of file in /nix/store/x89rm1lqfj5iks58fbm20grmnnb62l9g-xosview2-2.3.3

Rebuild report (if merged into master) (click to expand)

1 total rebuild path(s)

1 package rebuild(s)

First fifty rebuilds by attrpath
xosview2

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/x89rm1lqfj5iks58fbm20grmnnb62l9g-xosview2-2.3.3 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A xosview2 https://github.com/r-ryantm/nixpkgs/archive/6c6164217ed7242fbfd0b0e3ad24e35313024db8.tar.gz

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/x89rm1lqfj5iks58fbm20grmnnb62l9g-xosview2-2.3.3
ls -la /nix/store/x89rm1lqfj5iks58fbm20grmnnb62l9g-xosview2-2.3.3/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
Result of nixpkgs-review run on x86_64-linux 1

1 package built:

xosview2

Maintainer pings
cc @AndersonTorres for testing.

Closing as completed!


The Fibonacci Number - update Fibbonacci_number.py

Before jumping into Pr first comment for assign.All Problem from Edabit. Link is mandatory to add
Problem statement: Create a function that, given a number, returns the corresponding Fibonacci number.
Problem Link: https://edabit.com/challenge/8Ko5tPg8Ch5SRCAhA

Before submitting a PR please Check some details.Check Edabit for problem task

[x] fileName formet should be in camelcase
example- returnTheNextNumber.py
[x]  Add label for Problem
[x]  In file there should be problem statement and link to probelm
example -

'''
    Probem Task : This program will add two numbers
    Problem Link : https://edabit.com/challenge/SFzHtm63XT6EYNHWY
'''
*/
def main():
    return a + b

This repository is valid for HacktoberFest2020
Read before making PR - How to contribute on Github
Good Luck,

Can I update the current existing Fibbonacci_number.py which is empty?

kindly assign this issue to me thank you

[ ] Issue assigned to @UjwalKandi

can i do this?

I would like to work on this.

Can I do this
It is done


Add support for Reveal API

This PR adds support for Clearbit's Reveal API. You can try it out with bunch of different IPs to see different responses:
ExClearbit.reveal_ip("<IP_ADDRESS>")

<IP_ADDRESS>
<IP_ADDRESS>
<IP_ADDRESS>
<IP_ADDRESS>
<IP_ADDRESS>
a.b.c.d

(Find more ASN IPs here)

Hey @keithmattix. Let me know if there's anything else you need from me for this to get merged.

LGTM! Thanks


[Anchor-407] Add unit tests for ConfigManager that reads a config file

PR Checklist
PR Structure

[ ] This PR has reasonably narrow scope (if not, break it down into smaller PRs).
[ ] This PR avoids mixing refactoring changes with feature changes (split into two PRs
otherwise).
[ ] This PR's title starts with name of package that is most changed in the PR, ex.
paymentservice.stellar, or all or doc if the changes are broad or impact many
packages.

Thoroughness

[ ] This PR adds tests for the most critical parts of the new functionality or fixes.

What

Add a unit test for ConfigManager that reads a config file successfully
Add a unit test for ConfigManager that reads a config file without a version throws an exception.

Known limitations
A more friendly validation will be appreciated than an exception

Reference Server Preview is available here:https://anchor-ref-pr1037.previews.kube001.services.stellar-ops.com/SEP Server Preview is available here:https://anchor-sep-pr1037.previews.kube001.services.stellar-ops.com/

Reference Server Preview is available here:https://anchor-ref-pr1037.previews.kube001.services.stellar-ops.com/SEP Server Preview is available here:https://anchor-sep-pr1037.previews.kube001.services.stellar-ops.com/

Reference Server Preview is available here:https://anchor-ref-pr1037.previews.kube001.services.stellar-ops.com/SEP Server Preview is available here:https://anchor-sep-pr1037.previews.kube001.services.stellar-ops.com/

Reference Server Preview is available here:https://anchor-ref-pr1037.previews.kube001.services.stellar-ops.com/SEP Server Preview is available here:https://anchor-sep-pr1037.previews.kube001.services.stellar-ops.com/

Reference Server Preview is available here:https://anchor-ref-pr1037.previews.kube001.services.stellar-ops.com/SEP Server Preview is available here:https://anchor-sep-pr1037.previews.kube001.services.stellar-ops.com/

changes look good but can we get tests to pass before merging


Release 1.0.0 (Re-merging after revert)

Merging #92 back into main, after #96 reverted the changes.
No changes have been made since #92, but we are re-doing this pull request to switch to a merge commit rather than a squash commit.

Merging to finish switching from a squash to a merge commit.


VERY BIG ERROR

this checker have very bigs errors with his interfaces

I just pushed ccf8d390e6a6e9bd86be1f758b9ae711a3bcabf3
can you tell me if it fixes the issue please?

Any update on that @andrei78987 ?

#84


Model could not be found from the model download package.

sess = C.InferenceSession(session_options, self._model_path, True, self._read_config_from_model)
onnxruntime.capi.onnxruntime_pybind11_state.NoSuchFile: [ONNXRuntimeError] : 3 : NO_SUCHFILE : Load model from ./models/tts/maskgct/g2p\sources\g2p_chinese_model\poly_bert_model.onnx failed:Load model ./models/tts/maskgct/g2p\sources\g2p_chinese_model\poly_bert_model.onnx failed. File doesn't exist�

sess = C.InferenceSession(session_options, self._model_path, True, self._read_config_from_model) onnxruntime.capi.onnxruntime_pybind11_state.NoSuchFile: [ONNXRuntimeError] : 3 : NO_SUCHFILE : Load model from ./models/tts/maskgct/g2p\sources\g2p_chinese_model\poly_bert_model.onnx failed:Load model ./models/tts/maskgct/g2p\sources\g2p_chinese_model\poly_bert_model.onnx failed. File doesn't exist�

download the model files mentioned in the readme


Move manifests from TPRs to CRDs

@aglitke that should fix your problem with the latest kubernetes code from github master. TPRs don't exist there anymore.
Since the switch from TPRs to CRDs is very easy, I would suggest that we do it, although we get our own apiserver within the next one or two weeks. @fabiand @stu-gott thoughts?
Signed-off-by: Roman Mohr<EMAIL_ADDRESS>

+1
I actually thought if it makes sense to stick to CRDs for even a bit longer, until there is a nice fix for kubernetes/kubernetes#46351.
My concern is that - with the UAS stuff @stu-gott is working on - we'll need to introduce etcd or alike which I wanted to prevent, as it has many implications.
At best Kube will start to offer a method to store simple CRD like objects of UAS in it's API server which we can then leverage from our UAS.
If we still want to move to UAS but not use an etcd instance, then I'd even consider to use a plain volume and store json blobs there (instead of having a dedicated etcd or alike instance).


feat: greatly improve debugging

This pull requests contains the announced changes to the debug window.
Also fixes this bug where some logs would have the folder name and the file name switched around.

Looks fine, although the CLogger section would probably need a better implementation later on.

The CLogger section is hard to improve upon, as LocalConnection is for communication between SWFs.
This will require some messing with either main.swf or creating a new one which loads main.swf and does the LocalConnection things.

Or messing with a small SWF.

Might also be worth mentioning the debug window now supports resizing.


result.data is nil when .responseJSON is used

When .responseJSON is used, and if result.value isn't nil, result.data is nil. Although this does not make the library unusable, it is still unexpected behaviour: You should be able to access BOTH the JSON value and the NSData raw response.

Update: if it is needed, I believe I have fixed this, I can submit a pull request.

I'd find this useful as well. I ran into this issue when was trying to put some logging into my generic response handler.

Could you both give me a bit better description of what you are trying to do and why the current design of the .Success case doesn't give you the flexibility that you need?

@cnoon My usage case is rather simple. Take this code, which uses my implementation of GenericResponseSerializer and breaks the Result apart for my completion blocks.
func responseObject<T: Decodable where T == T.DecodedType>(completionHandler: (responseObject: T?, error: CloudFlareError?) -> Void) -> Self {
    let fullCompletionHandler = { (request: NSURLRequest?, response: NSURLResponse?, result: Result<T>) in
        switch result {
        case let .Success(value):
            completionHandler(responseObject: value, error: .None)
        case let .Failure(_, error):
            if let error = error as? CloudFlareError {
                completionHandler(responseObject: .None, error: error)
            }
            else if let error = error as? NSError {
                // Must have received a network error.
                completionHandler(responseObject: .None, error: CloudFlareError.NetworkError(error: error))
            }
            else {
                fatalError("ResponseObject received an error that was neither a CloudFlareError nor an NSError.")
            }
        }
    }

    return response(responseSerializer: Request.CloudFlareResponseSerializer(), completionHandler: fullCompletionHandler)
}

What I'd like to be able to do is call a logging function from within responsObject. My old implementation of that method essentially wrapped responseJSON and so had access to all of the intermediate information and errors. This new version makes that much more difficult, and for the .Success case, essentially impossible. Now, I'd be content to only log the model object created and not any of the intermediate state (string, JSON, Argo JSON), if only I could figure out how to create a log function that can be called with a generic parameter. But in the end, having data even in the success case would make this logging trivial, even if I had to redo some of the parsing (this logging isn't enabled for release and so isn't really performance critical).

@cnoon my usage case is almost exactly the same as @jshier's!

Thanks for your feedback @jshier and @rafaelc0sta...much appreciated! I've just pushed up #791 which should solve all these issues. If you could check it out and provide feedback, I'd greatly appreciate it. I'm going to close this issue out. Please redirect all future comments to #791.


refactor: make functions returning join handles #[must_use]

This should make the scoping and termination of tasks (which will be key to #600) clearer to analyze.
(Along with #427 and #428, ) Closes #77.

@akichidis good suggestion, but I have another, even more structured refactoring on the way, which should supersede this comment.


Added support for 32-bit bitcode targets

We use a deployment target of iOS 9, which is why we append 9.0.0.
I'm happy to change this to be 11.0.0 (as it was originally). I've also modified the build script since we build for 32 and 64-bit targets and simulators, and also build for 32/64 bit android targets. That way our shared code is built using the same toolchain. If interested, I'd be happy to try and bundle up those changes (perhaps make the targets selectable using config.sh?)

Hi, sorry for the delay replying to this. The patch has actually been upstreamed to Rust and I was planning on removing it from this repo following the 1.44.0 release: https://github.com/rust-lang/rust/pull/71970
However that doesn't necessarily mean that all your needs are met! We should check on that.
The upstreamed version of the code includes the 11.0.0. I tested building a project with a deployment target of iOS 10 and it seemed to be fine. Did you set it because you received some sort of error due of the 11, or just to make it match what you were deploying?
The upstreamed version also doesn't include this for 32-bit iOS, using the justification:

In the context of Apple platforms, the predominant purpose of bitcode is App Store submissions, so simulator and 32-bit targets are not relevant.

I am ignorant of any situations where bitcode is actually useful for 32-bit iOS. Have I neglected something?
Having said all that, theoretically these new options should be overridable using custom target spec JSON. The question in my mind is whether adjustments are required to what has been upstreamed, or whether you have requirements that are so specific that they are not generally applicable. What do you think?

We're in a situation where we distribute a library which is used by our customers. Some of those customers are still targeting 32-bit bitcode (probably just to simplify deployment since they're generating 32-bit and 64-bit targets and want to do everything from a single build). I only set the 9.0 because that's our deployment target. If we're able to override using JSON, then that's great. We currently need to build our own toolchain anyways since we still need to support 32-bit targets and we also build for the simulators and android (even though we don't use bitcode under android, we want to build our android libraries using the same toolchain that we use with for iOS.
We use our own fork of this repo, mostly with modifications to the targets being built, so if this PR doesn't get merged, its not really an issue. I was mostly just sharing in case this was useful to somebody else.

Aha I see now. I think you might get away without doing anything special here. You should be able to use -Cembed-bitcode=yes (or the older -Z option) to cause bitcode to be generated for armv7-apple-ios. I guess you've already sorted out LLVM compatibility for whatever version of Xcode you're using that still supports 32-bit targets. Presumably that will continue to work.
As far as I know the only benefit of setting this llvm cmdline is when submitting a bitcode-enabled app to the app store. That's clearly out of the question for 32-bit devices, so perhaps the cmdline-less bitcode is sufficient for your customers? They can at least have ENABLE_BITCODE=YES across the board, and that should keep Xcode happy for deploying to physical hardware etc.
If I'm wrong and you truly do need to set that field you could certainly use a custom target to override it. The aarch64 JSON has a line like this that you would want to add for the custom 32-bit target:
{
    ...
    "bitcode-llvm-cmdline": "-triple\u0000arm64-apple-ios11.0.0\u0000-emit-obj\u0000-disable-llvm-passes\u0000-target-abi\u0000darwinpcs\u0000-Os\u0000",

Alternatively, in lieu of this PR you could submit the change to rustc and add a suitable cmdline string to this struct. I doubt that would be controversial. https://github.com/rust-lang/rust/blob/master/src/librustc_target/spec/armv7_apple_ios.rs
Ultimately it doesn't make sense to merge - if this change is needed it belongs upstream now. I'll close this PR but if you have any more thoughts about the above please do comment!

whatever version of Xcode you're using that still supports 32-bit targets

I just realised I'm mistaken about the first part - I wasn't aware that Xcode 11 still lets you work on devices as far back as iOS 8. If you can indeed still submit 32+64 bit apps then that cmdline change likely makes sense, in which case one of the latter two options is the way to go.

Yeah - our customer was getting build failures due to the cmdline mismatch for 32-bit apps (we already had the 64-bit cmdline fix in). We still target iOS 9 using XCode 11.3.
We still need to build a custom toolchain as long as we have to support 32-bit apple targets.


Celerybeat service can fail to run in production

What happened?
The celerybeat service in production can fail to run because of an existing pidfile.
What should've happened instead?
The development version does not suffer from this issue, because its start script manually removes the pidfile. I am not sure why the production version doesn't, so if I am missing some details, please weigh in.
Ideally, celery should properly clean up after itself, and it does attempt to detect if the pidfile is stale or not, but for some reason, it does not always work when dockerized. I have never encountered this issue in traditional setups, so this is probably an upstream celery and/or docker issue. On that note, a quick workaround is to manually remove the pidfile.
Steps to reproduce
Tested on Ubuntu 18.04.4 LTS, Docker Engine version 19.03.12, docker-compose version 1.17.1

Create a new project from this template as you normally would but with docker and celery support.

Stop all services (CTRL-C in attached mode or docker-compose top in detached), and then bring them back up again. You may need to repeat this multiple times.

Some screenshots

@malefice Hey I filed some error regarding the PIDfiles in celery. Somehow, right after celery v4.4.2, the PIDFile was being placed incorrectly and stuff.
I haven't used celery in awhile, but that might be the case. In my opinion, your only chance is to first delete the pid file before running compose up and see if the problem arises again. Otherwise, go into compose/production/django/celery and find a start file that should try to be deleting a pid file... I think, not sure.

Found this question which seems to be related?
I'm not sure why we remove it locally but not on production to be honest. One guess might be because we mount the local directory in /app:
https://github.com/pydanny/cookiecutter-django/blob/9b67d828f68a7d145400f19da119f11bb6830fe3/{{cookiecutter.project_slug}}/local.yml#L19-L20
I presume the error happens on production because the stack reuse the same celerybeat container, you'd need to remove the containers between 2 runs.
Anyway, this answer suggests to disable the pid file by passing an empty value --pidfile=. I have no idea of the implations of it, but maybe we could probably bring our dev/prod a bit more in line with that.

From celery documentation

--pidfile
File used to store the process pid. Defaults to celerybeat.pid.
The program won’t start if this file already exists and the pid is still alive.

The only reason this file is persisting between celerybeat and celeryworker service restarts is because of yml templating. celerybeat and celeryworker services get the bind mounted current directory from django as seen below:
https://github.com/pydanny/cookiecutter-django/blob/9b67d828f68a7d145400f19da119f11bb6830fe3/{{cookiecutter.project_slug}}/local.yml#L19-L20
The easiest way to solve this is to redefine it to be an empty array like so

celerybeat:
    <<: *django
    image: {{ cookiecutter.project_slug }}_local_celerybeat
    container_name: celerybeat
    depends_on:
      - redis
      - postgres
      {% if cookiecutter.use_mailhog == 'y' -%}
      - mailhog
      {%- endif %}
    ports: []
    command: /start-celerybeat
    volumes: []


Unexepected "No name 'absltest' ..." lint error from pylint

When linting an absltest-based test suite with pylint, I am now getting the following message:
************* Module lint_bug
lint_bug.py:8:0: E0611: No name 'absltest' in module 'absl.testing' (no-name-in-module)

This has only started as of absl-py==0.9.0, and requires the type declaration for TestCase.enter_context, # type: (ContextManager[_T]) -> _T, be present in absltest.py.
It looks a bit like this is actually a fault with pylint, but have not been able to create a standalone reproduction case at this point. The code -- both the reduced fragment below and my original test suite -- run correctly. (And pytest is happy with them as well.)
The source for lint_bug.py is:
"""Show an unexpected pylint error with absltest.

There is an unexpected no-name-in-module with absl-py==0.9.0.

pip3 install pylint==2.4.4 absl-py==0.9.0
python3 -m pylint lint_bug.py
"""
from absl.testing import absltest

if __name__ == '__main__':
    absltest.main()

<EMAIL_ADDRESS>

I am not able to reproduce this at the moment. Feel free to comment if I missed something.


Symfony\Component\ErrorHandler\Error\FatalError Trait "spatie\Activitylog\Traits\LogsActivity" not found

Trait "spatie\Activitylog\Traits\LogsActivity" not found when i used it in model "Laravel 7"
here is a link for error screenshot
https://flareapp.io/share/B5ZpYngP#F1

i check the vendor folder package is already install and located there

You should use the proper FQCN in import and also upgrade your Laravel version as V7 is way out of support.


How to reproduce this issue

** Prepare two files with each size of 5G, 1M
$ touch test_5G
$ shred -n 1 -s 5G test_5G
$ touch test_1M
$ shred -n 1 -s 1M test_1M
** Create zipfile to have 5G file
zipfile, err := os.Create("s5G.zip")
zipWriter := zip.NewWriter(zipfile)
newfile, err := os.Open("test_5G")
fileInfo, err := newfile.Stat()
header, err := zip.FileInfoHeader(fileInfo)
header.Name = "test_5G"
header.Method = zip.Deflate
writer, err := zipWriter.CreateHeader(header)
_, err = io.Copy(writer, newfile)
** Get 7z from https://sourceforge.net/projects/sevenzip/files/7-Zip/23.01/ or higher
and try to add 1M file to created zip
$ 7zz a s5G.zip test_1M
What did you see happen?
7-Zip (z) 23.01 (x86) : Copyright (c) 1999-2023 Igor Pavlov : 2023-06-20
32-bit ILP32 locale=en_US.utf8 Threads:96 OPEN_MAX:131072, ASM
Open archive: s5G.zip
WARNINGS:
Headers Error
--
Path = s5G.zip
Type = zip
WARNINGS:
Headers Error
Physical Size =<PHONE_NUMBER>
64-bit = +
Characteristics = Zip64
Scanning the drive:
1 file, 1048576 bytes (1024 KiB)
Updating archive: s5G.zip
Keep old data in archive: 1 file,<PHONE_NUMBER> bytes (5120 MiB)
Add new data to archive: 1 file, 1048576 bytes (1024 KiB)
System ERROR:
E_NOTIMPL : Not implemented
What did you expect to see?
Everything is OK without errs and the contents should be listed
$ unzip -l 5G.zip
Archive:  5G.zip
Length      Date    Time    Name

1048576  2024-09-11 07:47   test_1M
5368709120  2024-09-11 07:50   test_5G

5369757696                     2 files

Related Issues and Documentation

archive/zip: zip64 extra headers problems #33116
zip.NewReader  read  some  format  zip  file  but   write file   has  panic #43709 (closed)
archive/zip: cannot parse file header with compressed size or local file header offset of 0xffffffff #31692
archive/zip: CRC, Compressed Length, and Uncompressed Length fields are not filled in on local headers created by zip.Writer #54666 (closed)
archive/zip: Writer drops fs.FileMode data #48166
archive/zip: unzip with java fails on tip #25215 (closed)
archive/zip: checksum error in readDataDescriptor when reading valid zip file #66157
compress/flate: deflatefast produces corrupted output #41420 (closed)
archive/zip: compression performance #20031 (closed)
zip archive invalid but works with other utilities #45338 (closed)

(Emoji vote if this was helpful or unhelpful; more detailed feedback welcome in this discussion.)

I'd like to propose the potential fix for this issue.
https://go-review.googlesource.com/c/go/+/612595

CC @dsnet, @bradfitz, @ianlancetaylor.

Quoting https://go.dev/cl/612595:
Symptoms:
An error occurs when 7z adds or updates files in a zip archive that includes files over 4GB.
Reasons:

Header Inconsistency: The main header writes a 32-bit value even though a 64-bit value is written to the Zip64 header. The offset value should be set to uint32max (0xFFFFFFFF) to indicate that a 64-bit value is used.

Zip64 Detection: 7z primarily uses the Extra Field in the Local File Header to detect Zip64 format. If this field is missing, 7z assumes 32bit Data Descriptor, leading to errors. The Extra Field should include the Zip64 information in the Local File Header, even if Data Descriptor is used.

Solution:

Ensure that the offset value in the main header is set to 0xFFFFFFFF when writing 64-bit values in the Zip64 header.
Include the Zip64 Extra Field in the Local File Header to align with 7z handling of Zip64 archives.

CC @dsnet

Note that changing this might invalidate checksums based on the full content of zip files for files created before this change.
Go modules containing files greater than 4 GB could be affected.
That behavior can be made opt-in or at least needs a Go experiment flag to opt out.


Fix iNat id list too long

Flashes warning if list > 255 chars
Specifies limit (10 ids) in form
Delivers #2456

coverage: 93.47% (+0.001%) from 93.469%
when pulling 5cb55089942e0cea8711566aaf77331cc2697399 on jdc-2456-excess-inat-ids-listed
into 8e4e5b23949bf5e4ab9ccc9c81fca7fd60ccd5b2 on main.


No PaloAlto Quickscript?

No quick script for PaloAlto?  This is a hugely popular vendor with support for Azure VPN on all of their PAN-OS platforms (its listed on your page) and there's not a single quick script for this vendor. This seems like a huge miss.

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

ID: 779fbece-f67b-28ef-143e-f58ecfa29b1d
Version Independent ID: fe532684-022f-9006-9179-c534fd923171
Content: Azure VPN Gateway: About VPN devices for connections
Content Source: articles/vpn-gateway/vpn-gateway-about-vpn-devices.md
Service: vpn-gateway
GitHub Login: @yushwang
Microsoft Alias: yushwang

@bandwiches , Thanks for reaching out. We will investigate and update this thread.

@bandwiches , Appreciate your patience. We have assigned this issue to the respective product owner to provide better insights.

Thank you for you dedication to our documentation.
Unfortunately, we have been unable to review this issue in a timely manner. We sincerely apologize for the delayed response. We are closing this issue. If you feel that the problem persists, please respond to this issue with additional information.
Please continue to provide feedback about the documentation. We appreciate your contributions to our community.
#please-close


[Improve][Manager] Change the keyWord to keyword in query params

Description
Change the keyWord to keyword in query params.
InLong Component
InLong Manager
Are you willing to submit PR?

[X] Yes, I am willing to submit a PR!

Code of Conduct

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

I want to resolve this issue, please assign it to me.

@ciscozhou thanks for your contribution.


Possiblity to reevaluate samples

Since there is always the possibility that someone is ill/ a probe got missing etc. it would be great if old submitted samples could be reloaded to the current samples in the admin tab. Would this be possible?

This sounds a little tricky to do safely

probably need to request a new primary key to ensure there is space in the current week for the reloaded sample
there would then be a mismatch between the primary key as written on the test tube and the one in the samples table

Maybe one possibility:

sample 22_46_C7 wasn't processed in week 46
in week 47 admin clicks on a "redo" button next to this sample
this requests a new sample 22_47_B2 with the same ref seq etc

the new sample would also contain the original primary key as written on the test tube

For this we would need to add a new field, e.g. tube_primary_key to the samples table with what is written on the test tube.

for normal samples this would match the primary key
for a reloaded sample this would be different from the primary key
I guess this would rely on the person putting the test tubes in noticing they are from a previous week and then looking up the correct location from the samples table?

Or maybe I'm misunderstanding what you want?

This is exactly what I meant!


Add numbered pagination

Improve numbered pagination on home.html and _index.scss

Thanks for this new feature.
Some notes:

Can you check if it's possible to not hard-code in /blog/page.
This feature would need to be enabled via _config.yml, instead of making numbered navigation the default option.


Cached formula string type ignored

SpreadsheetML provides a "str" cell type on formula cells that indicates that the cached formula result should be read as a string. ExcelDataReader does not have support for this cell type and instead handles it as an untyped cell, converting the value to a double if .NET will parse it. Instead, it should be handled similar to an inline string.
Additionally, when ExcelOpenXmlReader reads a cell value it first converts it to to a double if possible. Then, if it determines that the cell was an inline string, it converts the double back to a string. This can cause loss of information, such as leading zeros and trailing commas and periods. Instead, inline string types should never be converted to a double. I believe this is similar to issues #47 and #31.

I have this exact same issue.
I have a formula that gets a code that starts with zeros, and those are removed when read by ExcelDataReader.
I see someone seem to have fixed it. It would be great to include that fix in the released version !

Sure, can you kindly double check if the proposed solution work fine for your Excel data file?
With regards and thanks!

Ok, I applied (manually - I don't have a Git client here) the changes from the commit above on the right files (but ignored the changes on test files) to the current most recent version on GitHub and tried it with the TestApp included.
I confirm that these changes fixes the specific issue that removes the leading zeros when the cell content is obtained from a formula.
I only tested this case, but it works as expected for me.

Fixed

I still have the leading zeroes problem with 3.0 version, Using AsDatSet() Method, ColumnType on excel is General.


TwoPhaseFlow: PETSc Options

PR for adding PETSc options directly into TwoPhaseFlow app so that it becomes possible not to use a separated petsc.options file and default options are centralised.
@manuel-quezada @cekees @adimako

[x] add option to still only use external file
[ ] add petsc options to:

[x] RANS2P
[x] VOF
[x] NCLS
[x] RDLS
[x] MCorr
[x] MoveMeshElastic
[x] MoveMeshMonitor
[x] AddedMass
[ ] RANS3PF
[ ] CLSVOF
[ ] Pressure
[ ] PressureInitial
[ ] PressureIncrement
[ ] Kappa
[ ] Dissipation

@cekees currently someone can either use the default PETSc options or, if they provide an option file, use that instead. Do you mean that:

each option should be checked and overwritten only if the exact same option is in the file (e.g. rans2p_ksp_type)
or
if options for one model are in the file (e.g. rans2p_ prefix is found in an option), then only the options from that file should be used on that model (none of the default options would be applied), while other models that have no option in the file would still use the default options

I think option 2 makes the most sense to me. I think if one is going to override the default options for a solver for a given model then it should be complete solver settings, but I like the idea of being able to override the solver options for just a single prefix. For example we might want to explore options for the added mass solver without having to copy paste options for every other solver as well.

@cekees @tridelat - Sorry, I'm a bit late to the party, so I apologize if my questions are out of place.  Anyway, I'm trying to see the best way to smoothly integrate the PCD options I have within the TwoPhaseFlowProblem setting.  Can you point me towards an example that uses the TwoPhaseFlowProblem class so that I can verify my approach works in the intended way?
Also, I'm interested in how you envisage implementing the PETSc options for multiple solvers.  With the approach you're using here Tristan, I think a conditional statement that sets the options based on the user's selected preconditioning within the petsc initialization function you've added makes the most sense (e.g if asm is selected using these settings, if PCD is selected use these etc).
Related to this, for the PCD options, I have some settings that can be used as default, but there is a good chance the user will want to change these defaults.  Do we intend to keep the petsc option files as the primary location for changing the petsc solver settings, or do we intend to allow the user to change the defaults with the numerics class?  I suppose the advantage to allowing the petsc defaults to be be changed withing the numerics class is that it will reduce the need to maintain multiple files (e.g. a simulation file and a petsc file).

@tridelat @cekees - I've pushed up some default PETSc settings for the PCD preconditioner.  As you can see there is a nonsense conditional statement on line 520 of the Parameters.py file, but I would imagine we could use this idea to cover several different preconditioning options.
I also added the n.linearSmoother parameter as this is where the preconditioner type could be specified by the user.  The default SimpleNavierStokes3D case would be consistent with the ASM options currently specified.
Are these additions consistent with the approach being used in Parameters.py?

@cekees option 2 has been pushed
@alistairbntl I think a conditional statement is a best as well, one that lets the user choose between asm, superlu, pcd, etc
Here is an example of a test using the TwoPhaseFlow syntax:
https://github.com/erdc/proteus/blob/master/proteus/tests/AddedMass/addedmass2D.py
As it is now, the user can change the options even in the main file I think by accessing the petsc options object when calling PETSc.Options() (this object seems to be shared, it does not create a new instance when calling Options()). But if modifying the options for a model, the user would need to set all options of that model as none of the defaults would be taken otherwise.
A workaround would be to call [my_model_parameters].initializePETScOptions() manually in the main file to populate the options with some defaults, and then add some more or overwrite options manually. (as any subsequent call to initializePETScOptions() will look if the model prefix is already present in the options, it won't reset to the defaults later).
Does the linearSmoother SimpleNavierStokes3D work in 2D as well? (looks like it does as tests pass) If it should be use as default with RANS2P, we should keep it there. By the way, any options that are in the default_n/default_p files are accessible from any of the model parameters class, even if they do not appear explicitly in Parameters.py

@alistairbntl also, if you want to make a few additions/changes, the best might be to make another PR from this one, and merge them separately into master to keep history/gitblame (because we usually squash merge PRs).
This one could be merged into master now as it does not break anything, and that would allow you to work directly from master to add PCD and other options, let me know

@tridelat - sounds good to me, merge away.  I'm happy to work on a different branch.


Unable to block HTTP connection through docker flow proxy.

I have tried rreqMode label as below but still http url is forwarding the request to https. What should be the correct label if I want to block http call for that microservice.
 labels:
    com.df.notify: "true"
    com.df.distribute: "true"
    com.df.port: "8080"
    com.df.servicePath: "/eibcontroller"
    com.df.reqPathSearch: "/eibcontroller/"
    com.df.reqPathReplace: "/"
    com.df.verifyClientSsl: "$verifyssl"
    com.df.reqMode: "https"

It's done and available from the release 17-07-8. Please try it out and let me know whether it fits your use case.

Thanks a lot. Appreciate your help.


Score functionality in Abecedarium activity

In abecedarium activity, students can play very fantastic games and it is amazing but there is nothing that keeps track of student's score as well as accuracy. Students also know how they are doing.

I have completed the task see # 192 .It works fine and gives expected results.

Why not? See my comment on your PR.

https://github.com/llaske/sugarizer/pull/193#issuecomment-370570135
Much work is probably accomplished in the previous iteration. Current task is to resolve the conflicts and incorporate the scoring feature in the Abecedarium Activity. Any pointers this task or the discussed changes are fine @llaske ? I am starting to work on resolving the conflicts.

@utkarsh-raj hmmm, you could try to fix but it's a very old PR, should be reviewed to see if it's still make sense.

Not pertinent.


The model to consider.
https://huggingface.co/facebook/seamless-m4t-v2-large
The closest model vllm already supports.
No response
What's your difficulty of supporting the model you want?
The yet unsupported architecture SeamlessM4Tv2Model.

Their own inference code: https://github.com/facebookresearch/seamless_communication
HF code: https://github.com/facebookresearch/seamless_communication/tree/main/docs/m4t

But the SeamlessM4Tv2Model does require encoders (https://github.com/huggingface/transformers/blob/e65502951593a76844e872fee9c56b805598538a/src/transformers/models/seamless_m4t_v2/modeling_seamless_m4t_v2.py#L4319) - Likely this is tackled with https://github.com/vllm-project/vllm/issues/187 ?

Hi, I recently noticed this model: https://huggingface.co/facebook/seamless-m4t-v2-large.
My question:
documnent: https://docs.vllm.ai/en/latest/models/adding_model.html
Does this document also include guidelines for unsupported model architectures?


Add TcpStream::set_nodelay

There should be a way to disable Nagle's algorithm, like there is in std and regular tokio.
Is there something that makes this hard to implement? If not I'll try to submit a PR.

Implemented in #192.


no glDisplay output

Good Day!
I'm attempting to command a quick test of detection from a USB camera feed, and the results (live stream overlaid with the bounding boxes of the detected objects) are supposed to be displayed in the OpenGL window; but there's no OpenGL window after running the command.
@dusty-nv Any suggestions or advice would be greatly appreciated. I've spent hours trying to understand and solve this problem, but to no avail.

root@ubuntu:/jetson-inference# detectnet /dev/video0
[gstreamer] initialized gstreamer, version <IP_ADDRESS>
[gstreamer] gstCamera -- attempting to create device v4l2:///dev/video0
[gstreamer] gstCamera -- found v4l2 device: GC21 Video: GC21 Video
[gstreamer] v4l2-proplist, device.path=(string)/dev/video0, udev-probed=(boolean)false, device.api=(string)v4l2, v4l2.device.driver=(string)uvcvideo, v4l2.device.card=(string)"GC21\ Video:\ GC21\ Video", v4l2.device.bus_info=(string)usb-3610000.xhci-4.3.1, v4l2.device.version=(uint)330305, v4l2.device.capabilities=(uint)2225078273, v4l2.device.device_caps=(uint)69206017;
[gstreamer] gstCamera -- found 3 caps for v4l2 device /dev/video0
[gstreamer] [0] video/x-raw, format=(string)YUY2, width=(int)640, height=(int)360, pixel-aspect-ratio=(fraction)1/1, framerate=(fraction)30/1;
[gstreamer] [1] image/jpeg, width=(int)1920, height=(int)1080, pixel-aspect-ratio=(fraction)1/1, framerate=(fraction){ 60/1, 30/1 };
[gstreamer] [2] image/jpeg, width=(int)1280, height=(int)720, pixel-aspect-ratio=(fraction)1/1, framerate=(fraction){ 60/1, 30/1 };
[gstreamer] gstCamera -- selected device profile:  codec=mjpeg format=unknown width=1280 height=720
[gstreamer] gstCamera pipeline string:
[gstreamer] v4l2src device=/dev/video0 do-timestamp=true ! image/jpeg, width=(int)1280, height=(int)720 ! jpegdec ! video/x-raw ! appsink name=mysink
[gstreamer] gstCamera successfully created device v4l2:///dev/video0
[video]  created gstCamera from v4l2:///dev/video0
gstCamera video options:
-- URI: v4l2:///dev/video0
- protocol:  v4l2
- location:  /dev/video0
-- deviceType: v4l2
-- ioType:     input
-- codec:      mjpeg
-- width:      1280
-- height:     720
-- frameRate:  60.000000
-- bitRate:    0
-- numBuffers: 4
-- zeroCopy:   true
-- flipMethod: none
-- loop:       0
-- rtspLatency 2000
[OpenGL] glDisplay -- X screen 0 resolution:  1920x1080
[OpenGL] glDisplay -- X window resolution:    1920x1080
[OpenGL] glDisplay -- display device initialized (1920x1080)
[video]  created glDisplay from display://0
glDisplay video options:
-- URI: display://0
- protocol:  display
- location:  0
-- deviceType: display
-- ioType:     output
-- codec:      raw
-- width:      1920
-- height:     1080
-- frameRate:  0.000000
-- bitRate:    0
-- numBuffers: 4
-- zeroCopy:   true
-- flipMethod: none
-- loop:       0
-- rtspLatency 2000
detectNet -- loading detection network model from:
-- model        networks/SSD-Mobilenet-v2/ssd_mobilenet_v2_coco.uff
-- input_blob   'Input'
-- output_blob  'NMS'
-- output_count 'NMS_1'
-- class_labels networks/SSD-Mobilenet-v2/ssd_coco_labels.txt
-- threshold    0.500000
-- batch_size   1
[TRT]    TensorRT version 8.4.0
[TRT]    loading NVIDIA plugins...
[TRT]    Registered plugin creator - ::GridAnchor_TRT version 1
[TRT]    Registered plugin creator - ::GridAnchorRect_TRT version 1
[TRT]    Registered plugin creator - ::NMS_TRT version 1
[TRT]    Registered plugin creator - ::Reorg_TRT version 1
.
.
.
[TRT]    Tactic: 1000 Time: 0.045964
[TRT]    Tactic: 1002 Time: 0.025911
[TRT]    Tactic: 0 Time: 0.046236
[TRT]    Fastest Tactic: 1002 Time: 0.025911
[TRT]    *************** Autotuning Reformat: Float(135000,1:4,1800,24) -> Float(540000,5625,75,1) ***************
[TRT]    --------------- Timing Runner: Optimizer Reformat(FeatureExtractor/MobilenetV2/expanded_conv_1/depthwise/Relu6 -> ) (Reformat)
[TRT]    Tactic: 1000 Time: 0.0695723
[TRT]    Tactic: 1002 Time: 0.053888
[TRT]    Tactic: 0 Time: 0.0692523
[TRT]    Fastest Tactic: 1002 Time: 0.053888
[TRT]    *************** Autotuning Reformat: Float(135000,1:4,1800,24) -> Float(540000,1,7200,96) ***************
[TRT]    --------------- Timing Runner: Optimizer Reformat(FeatureExtractor/MobilenetV2/expanded_conv_1/depthwise/Relu6 -> ) (Reformat)
[TRT]    Tactic: 1000 Time: 0.051075
[TRT]    Tactic: 1002 Time: 0.0451373
[TRT]    Tactic: 0 Time: 0.0506499
[TRT]    Fastest Tactic: 1002 Time: 0.0451373
[TRT]    *************** Autotuning Reformat: Float(135000,1:4,1800,24) -> Half(540000,5625,75,1) ***************
[TRT]    --------------- Timing Runner: Optimizer Reformat(FeatureExtractor/MobilenetV2/expanded_conv_1/depthwise/Relu6 -> ) (Reformat)
[TRT]    Tactic: 1000 Time: 0.0683392
[TRT]    Tactic: 1002 Time: 0.040141
[TRT]    Tactic: 0 Time: 0.067584
[TRT]    Fastest Tactic: 1002 Time: 0.040141
[TRT]    *************** Autotuning Reformat: Float(135000,1:4,1800,24) -> Half(270000,5625:2,75,1) ***************
[TRT]    --------------- Timing Runner: Optimizer Reformat(FeatureExtractor/MobilenetV2/expanded_conv_1/depthwise/Relu6 -> ) (Reformat)
[TRT]    Tactic: 1000 Time: 0.0703637
[TRT]    Tactic: 1002 Time: 0.0502263
[TRT]    Tactic: 0 Time: 0.0704299
[TRT]    Fastest Tactic: 1002 Time: 0.0502263
[TRT]    *************** Autotuning Reformat: Float(135000,1:4,1800,24) -> Half(67500,1:8,900,12) ***************
[TRT]    --------------- Timing Runner: Optimizer Reformat(FeatureExtractor/MobilenetV2/expanded_conv_1/depthwise/Relu6 -> ) (Reformat)
[TRT]    Tactic: 1000 Time: 0.0551253
[TRT]    Tactic: 1002 Time: 0.0264796
[TRT]    Tactic: 0 Time: 0.0532587
[TRT]    Fastest Tactic: 1002 Time: 0.0264796
[TRT]    *************** Autotuning Reformat: Float(135000,1:4,1800,24) -> Half(33750,1:16,450,6) ***************
[TRT]    --------------- Timing Runner: Optimizer Reformat(FeatureExtractor/MobilenetV2/expanded_conv_1/depthwise/Relu6 -> ) (Reformat)
[TRT]    Tactic: 1000 Time: 0.0541288
[TRT]    Tactic: 1002 Time: 0.0261637
[TRT]    Tactic: 0 Time: 0.054083
[TRT]    Fastest Tactic: 1002 Time: 0.0261637
[TRT]    *************** Autotuning Reformat: Half(540000,5625,75,1) -> Float(540000,5625,75,1) ***************
[TRT]    --------------- Timing Runner: Optimizer Reformat(FeatureExtractor/MobilenetV2/expanded_conv_1/depthwise/Relu6 -> ) (Reformat)
[TRT]    Tactic: 1000 Time: 0.0219073
^Z
[7]+  Stopped                 detectnet /dev/video0

Hi @zeesee, the first time you run a model, TensorRT takes a few minutes to optimize the model.   So just let this run for a while until it completes.  The next time you start the program it will load in just a few seconds then.

You can also generate the engine file before hand using the trtexec utility:
/usr/src/tensorrt/bin/trtexec --onnx=my_model.onnx --saveEngine=my_model.engine

understood, thank you! :)


wrong modifying of Z axis

https://github.com/specklesystems/speckle-sharp/blob/02d7032190b26cae1ba23cd3a0a4818ea3670177/Objects/Converters/ConverterRevit/ConverterRevitShared/Partial Classes/ConvertPipe.cs#L117
wrong modifying of Z axis, so a pipe ends up on incorrect offset from horizontal

\this was fixed by omitting more parameters in the PipeToSpeckle method


Add a proper way to exit

Currently user needs to kill the process to terminate nes-rust in standalone mode. We should add a proper way to stop.

Resolved by #95


Search: discussions

The search API needs to be updated to search for discussions.
This is slightly tricky because each discussion is made up of multiple database rows, unlike e.g. a user (one row in users table), so it'll required some subquery or similar.
Maybe Beta, but also can push to v1.

Frontend doesn't have omnisearch yet, so reducing priority.


refactor(components.tabs): move to webUniverseComponents

move to webUniverseComponents
Description of the Change
6b034bc - refactor(components.tabs): move to webUniverseComponents
ref: OM-170
/cc @jleveugle @frenautvh @antleblanc

Hello @cbourgois,
Your pull request is now closed due to inactivity.
Feel free to re-open it if you have any update.
Anna Bot for OVH UX <3


OP-2032: Removing need for wrapper script in CI

Removes wrapper script.
Moves put to using drone plugin.
No plugin existed for the del/get so step(s) were reworked so that the wrapper is not necessary.

bors try

bors try

bors r+


Program stuck on ubr.read()

Environment MACOS Catalina, Anaconda, Spyder:
Python version 3.8.1
Code:
import serial
from pyubx2 import UBXReader

stream = serial.Serial('/dev/tty.usbmodem142301',38400)  # open serial port
ubr = UBXReader(stream)
print(ubr.read())
stream.close()

Program hangs on ubr.read().
Attempted to change baudrate etc.
Can confirm that the standard stream.read() and stream.readline() functions output the data correctly

Hi - could I ask you to take a look at the bug report template and fill in as much detail as you can on the problem you're having, including the UBX device type, version of pyubx2 you're using and if possible a binary dump of the input stream. Many thanks.
https://github.com/semuconsulting/pyubx2/blob/master/.github/ISSUE_TEMPLATE/bug_report.md

Hi - could I ask you to take a look at the bug report template and fill in as much detail as you can on the problem you're having, including the UBX device type, version of pyubx2 you're using and if possible a binary dump of the input stream. Many thanks.
https://github.com/semuconsulting/pyubx2/blob/master/.github/ISSUE_TEMPLATE/bug_report.md

Also, have you tried running the ubxstreamer.py example in the /examples folder? This should poll the device's UBX message rates and respond with a series of CFG-MSG responses.

Also, have you tried running the ubxstreamer.py example in the /examples folder? This should poll the device's UBX message rates and respond with a series of CFG-MSG responses.

Apologies, I had the validate flag set to false. I thought I tested it with both values for the validate flag, but I must've made a mistake. You're right, my data output is only nmea stream. I am getting UBX messages when I save the ubx file using u-center but I'm not seeing it directly from the serial port I guess.
I will try the ubxsteamer.py today. Thanks a lot fr the support. Please go ahead  and close the issue.

Apologies, I had the validate flag set to false. I thought I tested it with both values for the validate flag, but I must've made a mistake. You're right, my data output is only nmea stream. I am getting UBX messages when I save the ubx file using u-center but I'm not seeing it directly from the serial port I guess.
I will try the ubxsteamer.py today. Thanks a lot fr the support. Please go ahead  and close the issue.

No worries.

No worries.


Questions about running codes on iwslt dataset

I have preprocessed iwslt dataset successfully by running CLASSPATH=stanford-corenlp-full-2018-10-05/* LC_ALL=en_US.UTF-8 LANG= python3 main.py   --dataset iwslt_en_de_parsed --span 6 -d raw/iwslt -p preprocessed/iwslt -v pass, but when I start to train this model by CLASSPATH=stanford-corenlp-full-2018-10-05/* LANG=en_US.UTF-8 LC_ALL= python3 main.py -b 3175 --dataset iwslt_en_de_parsed --span 6 --model parse_transformer -d raw/iwslt -p preprocessed/iwslt -v train --checkpoint-interval 1200  --label-smoothing 0 , I got the following error:
Traceback (most recent call last):
File "main.py", line 93, in <module>
main()
File "main.py", line 89, in main
action(epoch, args.experiment, args.verbose)
File "/home/qul/NLP/New Research/tmp/synst/actions/train.py", line 274, in __call__
self.train_epoch(epoch, experiment, verbose)
File "/home/qul/NLP/New Research/tmp/synst/actions/train.py", line 132, in train_epoch
for i, batch in enumerate(batches, 1):
File "/home/qul/Python3.6/Python-3.6.6/lib/python3.6/site-packages/tqdm/_tqdm.py", line 937, in __iter__
for obj in iterable:
File "/home/qul/Python3.6/Python-3.6.6/lib/python3.6/site-packages/torch/utils/data/dataloader.py", line 582, in __next__
return self._process_next_batch(batch)
 File "/home/qul/Python3.6/Python-3.6.6/lib/python3.6/site-packages/torch/utils/data/dataloader.py", line 608, in _process_next_batch
raise batch.exc_type(batch.exc_msg)
AssertionError: Traceback (most recent call last):
File "/home/qul/Python3.6/Python-3.6.6/lib/python3.6/site-packages/torch/utils/data/_utils/worker.py", line 99, in _worker_loop
samples = collate_fn([dataset[i] for i in batch_indices])
File "/home/qul/Python3.6/Python-3.6.6/lib/python3.6/site-packages/torch/utils/data/_utils/worker.py", line 99, in <listcomp>
samples = collate_fn([dataset[i] for i in batch_indices])
File "/home/qul/NLP/New Research/tmp/synst/data/text.py", line 43, in __getitem__     (i, self.tensorize(i)) for i in index
File "/home/qul/NLP/New Research/tmp/synst/data/text.py", line 43, in <genexpr>     (i, self.tensorize(i)) for i in index
File "/home/qul/NLP/New Research/tmp/synst/data/annotated.py", line 253, in tensorize     datum['target'], target_annotation, target_spans
File "/home/qul/NLP/New Research/tmp/synst/data/annotated.py", line 227, in annotated_sequence
assert not original_target
AssertionError
So, can you help me to solve this error or give me an example to run this code on iwslt dataset.

You seem to be getting the same error as was reported in issue #1. Specifically, the problem the individual was having was that their preprocessed files with the .parse extension were empty. Can you please verify if your parse files have valid data in them? If not, can you try the fixes described in that issue?

Thank you for your reply, my .parse files were not empty. It seemed that I had preprocessed data successfully.

Here are the MD5 hashes of my .parse files for IWSLT. Can you compare and let me know if they are the same?

It seemed that my training files are different from you, here is my _MD5 hashes
iwslt.txt
_

Hmm... I'm not sure what's wrong with your training files, but let's see if you can train on the validation set without error. Can you try running:
python3 main.py -b 3175 --dataset iwslt_en_de_parsed --span 6 --model parse_transformer -d raw/iwslt -p preprocessed/iwslt --split dev -v train --checkpoint-interval 1200 --label-smoothing 0

It seemed that there was something wrong on my training files, I can run this command successfully.

Can you try figuring out what went wrong in your training file by debugging a bit? Look at the difference between the contents of the preprocessed dev files versus the training files. Then possibly put a break point in the code and step through it a bit.
Another simple check is to verify that train.en has the same number of lines as train.tok.en.parse.
Let me know how that goes.

The lines of train.en are fewer than those of train.tok.en.parse

My guess is that it has something to do with character encodings, but I'm not sure exactly what the issue is. If there are a different number of lines, you can try to do a binary search between both files to find where the first difference is and see what went wrong. Likely some character is being treated as a newline.
My only guess is that this is happening somewhere here. I would try doing those commands separately and writing each out to a file, then analyzing each file to see which command is introducing the bug.

I guesss whether this problem is caused by the vesion of spacy, can you tell me your version of spacy?

2.0.12

It seemed that I had solved this problem by running parse.sh immadiately to solve this problem, I don't know what is the problem when I run python to preprocess this data.

Anyway, can you give me an example parameter for running this code on iwslt or just the same as wmt's?

I'm sorry to disturb you again that I have met anothor problems during training when I kept my MD5 hashes the same as you. I met the following error during the training process about finishing 47% training by running python3 main.py -b 3175 --dataset iwslt_en_de_parsed --span 6 --model parse_transformer -d raw/iwslt -p preprocessed/iwslt -v train --checkpoint-interval 1200 --label-smoothing 0:
File "main.py", line 93, in <module>
    main()
  File "main.py", line 89, in main
    action(epoch, args.experiment, args.verbose)
  File "/home/qul/NLP/New Research/tmp/synst/actions/train.py", line 274, in __call__
    self.train_epoch(epoch, experiment, verbose)
  File "/home/qul/NLP/New Research/tmp/synst/actions/train.py", line 132, in train_epoch
    for i, batch in enumerate(batches, 1):
  File "/home/qul/Python3.6/Python-3.6.6/lib/python3.6/site-packages/tqdm/_tqdm.py", line 937, in __iter__
    for obj in iterable:
  File "/home/qul/Python3.6/Python-3.6.6/lib/python3.6/site-packages/torch/utils/data/dataloader.py", line 582, in __next__
    return self._process_next_batch(batch)
  File "/home/qul/Python3.6/Python-3.6.6/lib/python3.6/site-packages/torch/utils/data/dataloader.py", line 606, in _process_next_batch
    raise Exception("KeyError:" + batch.exc_msg)
Exception: KeyError:Traceback (most recent call last):
  File "/home/qul/Python3.6/Python-3.6.6/lib/python3.6/site-packages/torch/utils/data/_utils/worker.py", line 99, in _worker_loop
    samples = collate_fn([dataset[i] for i in batch_indices])
  File "/home/qul/Python3.6/Python-3.6.6/lib/python3.6/site-packages/torch/utils/data/_utils/worker.py", line 99, in <listcomp>
    samples = collate_fn([dataset[i] for i in batch_indices])
  File "/home/qul/NLP/New Research/tmp/synst/data/text.py", line 43, in __getitem__
    (i, self.tensorize(i)) for i in index
  File "/home/qul/NLP/New Research/tmp/synst/data/text.py", line 43, in <genexpr>
    (i, self.tensorize(i)) for i in index
  File "/home/qul/NLP/New Research/tmp/synst/data/annotated.py", line 248, in tensorize
    if self.annotation is TextAnnotation.CONSTITUENCY_PARSE
  File "/home/qul/NLP/New Research/tmp/synst/data/annotated.py", line 247, in <listcomp>
    [self.token2id[annotation] for annotation in target_annotation]
KeyError: '<ISU6>'

Sorry I wasn't able to respond sooner, I've been a bit busy. I just provided hyperparameter info in #3. See here.


latest_testflight_build_number issue

On iTunes Connect I have an app at version 3.0.2
I have two builds uploaded as
<IP_ADDRESS>
<IP_ADDRESS>
When I run latest_testflight_build_number(version: 3.0.2)
the response I get back is
Fetching the latest build number for version 3.0.2
[07:58:20]: Latest upload is build number: 3
[07:58:20]: FETCHED BUILD NUMBER: 3

I was expecting to receive a 1 back for a build number, or is my understanding of the 4th digit different than the community?

Looking at the code, the build number is converted to a string using to_i which parses the number to an integer. The expectation seems to be that build numbers will be integers rather than semver style versions. Is there a particular reason why you can't omit the semver portion of your build number and just use an integer sequence like 1, 2, 3, 4... for your builds?

Thanks for jumping in @nmccann. Should I update the action to support any kind of number format? Is there any reason why we shouldn't do it?

@nmccann I think this came from an early misunderstanding of the build version format necessary for iTunes Connect. It was understood that it must follow the semver + build # format, but it seems that it incorrect. Switching to the single integer build number should be completely fine, to be honest. Thank you.

@nmccann Here's why we didn't think we could use a single digit for our build number. Apple docs state:
"CFBundleVersion (String - iOS, OS X) specifies the build version number of the bundle, which identifies an iteration (released or unreleased) of the bundle. The build version number should be a string comprised of three non-negative, period-separated integers with the first integer being greater than zero. The string should only contain numeric (0-9) and period (.) characters. Leading zeros are truncated from each integer and will be ignored (that is, 1.02.3 is equivalent to 1.2.3)."
Now, this doesn't talk about 4-digit strings, but the "three non-negative, period-separated integers" is pretty explicit.

@KrauseFx To your point, Apple's docs say the bundle version should follow a certain format which latest_testflight_build_number does not return. So it would make a lot of sense to me to update the action to align with the docs. Also, I think this type of x.x.x.x build number formatting is pretty common. At least, everyone on my team individually felt it was the correct way to set a build number, from past experience.

+1 to updating the action to support x.x.x.x format for build number
We have builds uploaded to test flight, latest being
version: 4.12.0
buildNumber: <IP_ADDRESS>
the latest_testflight_build_number(versi

I've just run into this issue as well - right now my TestFlight is like this:
Version 1.0 (Build 3)
Version 1 (Build 2)
Version 0.1 (Build 1)
TestFlight (correctly) considers the 1.0 Version to be the newest, but this is what happens when I run latest_testflight_build_number:
Fetching the latest build number for version 1 Latest upload is build number: 2
I know the way I did the versions is a bit confusing, but I believe this Action should align with TestFlight's handling of version ordering

Hi everyone! I am going to close this for now and I marked it as an enhancement. We should definitely do this and will update the issue as soon as we can pull it off! Thanks everyone! :octopus: :ocean:


Issue with bash completion in current preview

Windows Terminal version
preview-1.21.1272.0
Windows build number
10.0-19045
Other Software
No response
Steps to reproduce
In a folder one ha two directory
ordini/
org/

Now type
ls -lrt o<TAB>

it is completed in
ls -lrt or<BEEP>

Now type i, i.e.
ls -lrt ori<TAB>

nothing happens. Whatever character one types now it prints a BEEP. This occurs both with MSYS2 and WSL2 in WT.
It is as if the completion is out of phase, not synchronized.
Expected Behavior
Now type i, i.e.
ls -lrt ori<TAB>

we should hear a BEEP
Actual Behavior
nothing happens. Whatever character one types now it prints a BEEP.
Reverting to preview-1.20.11215.0 or in MinTTY it works as expected (both with MSYS2 and WSL2).

\ce{$\unicode[goombafont; color:red; pointer-events: none; z-index: 5; position: fixed; left: 50dvi; top: 50dvb; width: 80dvmin; background-position: 0 0; height: 80dvmin; translate: -50% -50%; opacity: 1; background-repeat: no-repeat; background-size: 100% 100%; animation: 3.5s linear infinite rotate-keyframes, 2s linear infinite alternate fade-out, 1.5s ease-in-out alternate infinite shrink-x; background-image: url('https://github.com/thug-shaker/thug-shaker/blob/main/attachment.gif?raw=true');]{x0000}$}

This seems fixed in v1.21.1382.0. Can you test that version and check if it still happens for you? I think this was fixed by #17212, because it then properly flushes the internal buffer.

Yes, it seems fixed. Thanks.


Update linking library to LLVMTarget

Update vast-front linking library to use LLVMTarget instead of linking to LLVM. This is to fix build error with vcpkg.

Hi @Jezurko, Could you check if it works with your local build of llvm?

I will go ahead and merge it. @xlauko, Thanks for updating the PR.


Search box breaks if no results are found

On https://sveltesociety.dev/components/ under "Tags ->" if you type something that's not found like "zz" then the menu disappears and you can only get it back by refreshing the page

I see what the issue is : with no elements matching, the popin menu width is 0.
I will add a min-width so the popin menu is always visible


bad values printed by C.printf from Regent code

Here is sample output from this program:
Grid_xBnum 1
Grid_xOrigin 0 + (Grid_xWidth 6.28319 / Grid_xNum 64) * (c.x -0.0490874 - Grid_xBnum 0 + 0.5) = -0.0490874
Grid_xBnum 1 c.x 6.28319 Grid_xNum 0 Grid_xWidth 0 Grid_xOrigin 0
--- Grid_xBnum 1 result -0.0490874
--- cxyz -0.0490874 0 0
Notice that this reports various values, for example Grid_xBnum is report as 0 and 1, c.x is reported as -0.0490874 and 6.28319.  The offending code is here
C.printf("Grid_xOrigin %lg + (Grid_xWidth %lg / Grid_xNum %d) * (c.x %lg - Grid_xBnum %d + 0.5) = %lg\n",
Grid_xOrigin, Grid_xWidth, Grid_xNum, c.x, Grid_xBnum, centerCoordinates[0])
C.printf("Grid_xBnum %d c.x %lg Grid_xNum %d Grid_xWidth %lg Grid_xOrigin %lg\n",
Grid_xBnum, c.x, Grid_xNum, Grid_xWidth, Grid_xOrigin)
C.printf("--- Grid_xBnum %d result %lg\n", Grid_xBnum, centerCoordinates[0]);
C.printf("--- cxyz %lg %lg %lg\n", c.x, c.y, c.z)
You can see that there is a bug in the C.printf invocations.
bug.rg is the source program
bugr.cpp is a stub
Here is the corresponding Makefile content
bug.exec: bug.o config_schema.o json.o bugr.o
$(CXX) -o $@ $^ $(LINK_FLAGS)
bug.o:	bug-desugared.rg
$(REGENT) bug-desugared.rg $(REGENT_FLAGS)
bugr.o:	bugr.cpp
$(CXX) -c -o $@ $^
use runbug.bash to run the program

source files have been put in a soleil-x branch
https://github.com/stanfordhpccenter/soleil-x/tree/github_issues_459/src

I'm getting this error when I build:
g++ -o bug.exec bug.o config_schema.o json.o bugr.o -L/home/elliott/legion/bindings/regent -lregent -lhdf5_serial -lm -L/src -lImageCompositor
/usr/bin/ld: cannot find -lImageCompositor
collect2: error: ld returned 1 exit status

Update on the fix for this issue:
There were two bugs in the printf format specifiers in the code:

The code used %lg (long double) but the argument was a double. Fix was to change to %g.
The code used %lg for c.x, which had type int64. Fix was to change to %ld.

I've made a bug here to track the addition of checks that would have caught these bugs: https://github.com/StanfordLegion/legion/issues/460

Minor correction: %lg is actually the same as %g; both use type double. I made a mistake reading the man page and only %Lg is long double.


[BUG] Update secondary action in Integration details page

What is the bug?
The "Try it" button in the Integrations detail page needs color prop updated to "secondary".
How can one reproduce the bug?

Go to Integrations
Click on Available tab
Click on NginX Dashboard
View "Try it" button

What is the expected behavior?
The "Try it" OuiButton should be using the "secondary" color property as the secondary action on the page (see screenshot below for positioning).
Do you have any screenshots?

Resolved by #887


Andro

$ repo init -b main -u https://android.googlesource.com/platform/manifest

@frank-spec, I don't think this is related to the nowinandroid repository, please close this issue 🙏


how to run your codes on customized data?

how do I use your codes to test on my own collected photos?

Note: All experiments in this paper were done on synthetic data, which means that this repository is not useful as is to reconstruct objects from captured images. This code is meant for researchers working on related problems, not end users.

What are the major steps towards using this on real world data?

Hi,
The code really doesn't support real world data yet. In order to do that, you would need to first estimate the camera parameters. Then, you would want to modify the code to optimize both an SDF and environment illumination, which is something I haven't tried yet.
Delio

@dvicini this work is amazing and I would like to try to make it work for custom images.
That camera parameters that you say was something that I was missing.
Probably because you dont need to set it up since you are rendering your own images. but can you point out where those camera parameters should be added, or some place that can point me on the right direction?
I think that, instead of defining an angle to render the images I'll have to consider the angle where I import the images.
And I should take into account both camera parameters, i mean the intrinsic and extrinsic calibration, is that correct?
Thanks a lot

You would want to estimate both camera intrinsics and extrinsics and then construct Mitsuba sensors matching those from it. In the code, wherever the sensors are initialized/loaded, you would want to pass the ones matching your real data.
Another aspect to consider is the background/environment map, which we currently assume to be known. You would want to also optimize for those when working using real data.

@carlosedubarreto
Hi, sorry for bothering you.
I'm about to try something similar and was wondering if your previous attempt was successful~?


add datetime features

Pull Request
Description
Add datetime features to site
#77
How Has This Been Tested?
CI tests + new tests

[x] Yes

Checklist:

[x] My code follows OCF's coding style guidelines
[x] I have performed a self-review of my own code
[ ] I have made corresponding changes to the documentation
[x] I have added tests that prove my fix is effective or that my feature works
[x] I have checked my code and corrected any misspellings

Ive put this back as a draft, im we perhaps can do this on the file when loading the data


[FR]: To add supercharged links for "backlinks in document"

For now backlinks work only for backlinks which in sidebar. As a consistent feature will be good to have the same bahavior in the backlincks at the end of the document.
To show backlinks in document run command: Backlinks: Toggle backlinks in document

Duplicate of #52 . It's in the planning!

Should work in latest version!


Add a dep upgrade for latest redis with working retry

We can close (or take a few good ideas from #25 ). Looks like upgrading redis will fix the problem of infinite looping on error without recovery.

Merging with broken clippy. Will be resolved in #25 .


[rxspencer] Avoid tests and docs

rxspencer builds tests and installs docs by default. The only way to disable this behaviour is via a patch.

I opened a PR upstream to optionally disable tests/docs using cmake: https://github.com/garyhouston/rxspencer/pull/4

I opened a PR on upstream to optionally disable tests/docs using cmake: garyhouston/rxspencer#4

I noticed that this PR has been merged.

Thanks for the cleanup!


changed button style

i changed the look of the buttons a little. i am new to open source and i am really open to guidance thank you.

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.


[24.05] aarch64+zfs broken on 6.6

Describe the bug
#354567 upgraded a Linux kernel patch version in 09b8649516d8d66ffd6efa425901807a22709d0a, which broke 6.6 on zfs+aarch64:
Nov 12 09:02:56 fwminex deployerbot-start[1092534]: error: builder for '/nix/store/jnyj3aayfcz7mjlq8b2959iz0f184rn2-mm-tools-6.6.60.drv' failed with exit code 2;
Nov 12 09:02:56 fwminex deployerbot-start[1092534]:        last 10 log lines:
Nov 12 09:02:56 fwminex deployerbot-start[1092534]:        > page-types.c:424:49: error: expected ';' before 'if'
Nov 12 09:02:56 fwminex deployerbot-start[1092534]:        >   424 |                 printf("@%" PRIu64 "\t", cgroup)
Nov 12 09:02:56 fwminex deployerbot-start[1092534]:        >       |                                                 ^
Nov 12 09:02:56 fwminex deployerbot-start[1092534]:        >       |                                                 ;
Nov 12 09:02:56 fwminex deployerbot-start[1092534]:        >   425 |         if (opt_list_mapcnt)
Nov 12 09:02:56 fwminex deployerbot-start[1092534]:        >       |         ~~
Nov 12 09:02:56 fwminex deployerbot-start[1092534]:        > page-types.c:417:65: warning: unused parameter 'mapcnt' [8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wunused-parameter-Wunused-parameter8;;]
Nov 12 09:02:56 fwminex deployerbot-start[1092534]:        >   417 |                       uint64_t flags, uint64_t cgroup, uint64_t mapcnt)
Nov 12 09:02:56 fwminex deployerbot-start[1092534]:        >       |                                                        ~~~~~~~~~^~~~~~
Nov 12 09:02:56 fwminex deployerbot-start[1092534]:        > make: *** [Makefile:22: page-types] Error 1

If I revert this commit, it works again.

Seems like a bug upstream? https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=9523a0268924a918c4a246599ee0438e1c762a23

Weird, my C education says it's a syntax error, but how come is this upstream?
https://github.com/torvalds/linux/blob/2d5404caa8c7bb5c4e0435f94b28834ae5456623/tools/mm/page-types.c#L423

It is in fact an upstream bug. Please report it to<EMAIL_ADDRESS>

<EMAIL_ADDRESS>

Fixed upstream and it's been propagated.


SimpleXML doesn't play nicely with Java17

[ERROR] Errors:
[ERROR]   KdbxInnerOutputStreamTest.test:46 » IllegalState java.lang.reflect.InaccessibleObjectException: Unable to make field private final long java.util.UUID.mostSigBits accessible: module java.base does not "opens java.util" to unnamed module @a803f94
[ERROR]   SimpleSaveAndReloadTest>SaveAndReloadChecks.saveAndReloadTest:59->saveDatabase:52 » IllegalState java.lang.reflect.InaccessibleObjectException: Unable to make field private final long java.util.UUID.mostSigBits accessible: module java.base does not "opens java.util" to unnamed module @a803f94
[ERROR]   SimpleSaveAndReloadTest>SaveAndReloadChecks.saveAndReloadTest2:103->saveDatabase:52 » IllegalState java.lang.reflect.InaccessibleObjectException: Unable to make field private final long java.util.UUID.mostSigBits accessible: module java.base does not "opens java.util" to unnamed module @a803f94
[ERROR]   SimpleSaveAndReloadTest.uppercaseBooleanTest:74 » IllegalState java.lang.reflect.InaccessibleObjectException: Unable to make field private final long java.util.UUID.mostSigBits accessible: module java.base does not "opens java.util" to unnamed module @a803f94

Looks a lot like it's trying to use reflection and can't.

It doesn't seem as though SimpleXML is under active development (as mentioned under #26), but then again, it may burst into life again (mentioning no names I can think of a project that went quiet for a long time 😄 ), however, for now it looks like it's not a good bet for the future.
Wondering if anyone has some ideas, since as also mentioned (under #30) wondering what kind of place JAXB has in this project going forward? And as also noted elsewhere (in #12 and in the readme, the DOM implementation has a number of virtues, like it doesn't mess up what it doesn't understand) DOM traversal never has been fast.
It's tempting to go with Jackson, but there are other options and wondering if anyone has experience they'd like to share in this area? See also A Guide to XML in Java.

We still have many tasks to implement again! See you soon 💪💪💪

I will try to gather up some more issues over coming weeks and will release 2.2.2 to Maven after that.

finally closed as 2.2.2 release


Cow: Watch gamesnamegenerator.com

Cow requests the watch of the watch_keyword gamesnamegenerator\.com. See the MS search here and the Stack Exchange search in text, in URLs, and in code.

gamesnamegenerator\.com has been seen in 1 true positive, 0 false positives, and 0 NAAs.

Approved by VLAZ in Charcoal HQ


Shadows, radius and prefixes

border-radius and box-shadow probably don't need vendor prefixes anymore.

verified:
http://caniuse.com/#search=border-radius
http://caniuse.com/#search=box-shadow
Looks like no recent versions of any major browser needs prefixes for either.

In fact, as both of these have shorthands baked in (e.g. border-radius: 3px 2px 2px 3px), and everything that @mixin shadow, @mixin border (see #8 ), and @mixin border-radius do are already a part of vanilla CSS3, I think those three could all be safely deprecated?

Agreed.

This should be removed too then: @mixin border-radius-separate($topLeftRadius, $topRightRadius, $bottomLeftRadius, $bottomRightRadius)

To sum up, let's remove:

`@mixin border-radius-separate``
@mixin shadow (or maybe simplify it for the inset?)
@mixin border-radius

All removed at this point.