Property 'document' doesn't exist || Cannot read property 'useToaster' of undefined. React Native

I am trying to implement in my new project react-hot-toast and following the example in how implement in RN, I found this issue by simply add in a onPress a toast.
					<View style={tw`flex-1 justify-end bottom-5`}>
						<Button title="Login" isHighlight onPress={() => toast("hello!")} />
					</View>

I tried by using the useToaster() hook but have some type error that if I can ignore it, the document doesn't exists error shows up.

You can can try to import useToaster() from react-hot-toast/headless, which should not rely on `document.
import { useToaster } from "react-hot-toast/headless"

Oh yeah, you right, I could remove that error, however trying to adapt that example into my project, I can't see displayed any Toast.
here is the code snippet:

interface ToastPrimitiveProps2 {
	bgColor: Style
	onPress?: () => void
	text1: string
	text2: string
	t: ToastInterface
	offset: number
	updateHeight: (heightId: string, height: number) => void
}

const Message = ({
	text1,
	text2,
	textColorStyle
}: {
	text1: string
	text2: string
	textColorStyle: string
}) => (
	<View style={tw`flex flex-row justify-evenly`}>
		<Text
			style={tw`self-center font-sans text-base font-bold ${textColorStyle}`}>
			{text1}
		</Text>
		<Text style={tw`text-sm ${textColorStyle}`}>{text2}</Text>
	</View>
)

const ToastPrimitive2: FunctionComponent<ToastPrimitiveProps2> = ({
	bgColor,
	t,
	text1,
	text2,
	onPress,
	offset,
	updateHeight
}) => {
	// Animations for enter and exit
	const fadeAnim = useRef(new Animated.Value(0.5)).current
	const posAnim = useRef(new Animated.Value(-80)).current

	console.log("this is rendered")
	useEffect(() => {
		Animated.timing(fadeAnim, {
			toValue: t.visible ? 1 : 0,
			duration: 300,
			useNativeDriver: false
		}).start()
	}, [fadeAnim, t.visible])

	useEffect(() => {
		Animated.spring(posAnim, {
			toValue: t.visible ? offset : -80,
			useNativeDriver: false
		}).start()
	}, [posAnim, offset, t.visible])

	const textColorStyle =
		t.type !== "error" ? "text-petrol-100" : "text-petrol-900"
	return (
		<Animated.View
			style={tw.style(
				"flex flex-col w-full p-3 rounded-x ",
				bgColor,
				t.visible ? "z-[99999]" : undefined,
				` transform translate-y-[${posAnim}] opacity-[${fadeAnim}]`
			)}>
			<View
				style={tw`flex flex-col justify-evenly`}
				onLayout={(event) =>
					updateHeight("1", event.nativeEvent.layout.height)
				}>
				<Message text1={text1} text2={text2} textColorStyle={textColorStyle} />
				<Pressable
					style={tw`self-auto bg-transparent `}
					onPress={() => onPress?.()}>
					{t.type !== "success" ? (
						<IconAngleRight
							color={tw.color(
								t.type === "error" ? "bg-petrol-900" : "bg-petrol-100"
							)}
						/>
					) : (
						<IconClose color={tw.color("bg-petrol-100")} />
					)}
				</Pressable>
			</View>
		</Animated.View>
	)
}

export const ToastNotification = () => {
	const { toasts, handlers } = useToaster()

	return (
		<View style={tw`absolute top-0 bottom-0 left-0 right-0`}>
			{toasts.map((t) => (
				<ToastPrimitive2
					key={t.id}
					bgColor={tw.style({
						"bg-feedbackColors-success": t.type === "success",
						"bg-feedbackColors-error": t.type === "error",
						"bg-feedbackColors-warning": t.type === "blank"
					})}
					text1="hello"
					text2="description"
					t={t}
					updateHeight={(heightId, height) =>
						handlers.updateHeight(t.id, height)
					}
					offset={handlers.calculateOffset(t, {
						reverseOrder: false
					})}
				/>
			))}
		</View>
	)
}

When usage:
<View style={tw`flex-1 justify-end bottom-5`}>
						<Button
							title="Login"
							isHighlight
							onPress={() =>
								toast.success("hello", {
									position: "top-center"
								})
							}
						/>
					</View>

@CandresFelipe / @timolins did you ever fix this error? I have code which is used in an Electron app and React Native app. I previously had import toast from 'react-hot-toast' but React Native would not build with property 'document' doesn't exist. I changed to import toast from 'react-hot-toast/headless' and now React Native builds, but I can't see toasts in my Electron app.


make note doesn't work

hello,
https://1drv.ms/u/s!Aj16T_Ds0bkvzHUO-cNeHcdhLFId
thanks for this plugin :)
bests

ok, I understood how it works… sorry


Improve handling of JS environment detection under Browserify and browse...

Depending on the environment under which Dropbox-js is used,
there will be different ways to:

Access web APIs like XMLHttpRequest, base64 encoding, typed arrays
etc.
Export Dropbox functionality for use by other code - eg. via
module.exports or a property on window or self
Import functionality for use by Dropbox-js - eg. via require()

Previously there was an assumption that Dropbox-js was running
under one of three main types of environment - a browser, Node.js
or a web worker. The code first detected one of these types of
environment and set all of the above facets accordingly.
This broke apps in hybrid environments like Browserify which provide
both the window object but also a Node.js-like module environment for
example.
This commit refactors environment setup to deal with each of the facets
of the environment (web API access, module export, module import)
separately.
This fixes an issue where Dropbox-js did not work in a Browserify-like environment because it assumed it was running under Node.js. In Browserify this will use 'window' as the global (so we use native XHR + Dropbox' workarounds for various XHR quirks) but still export functionality via modules.export for use in other Browserify modules.

Sorry to keep pinging on this, but still hoping for a status update.

+1 lgtm

This also enables use of dropbox.js within react-native apps, once https://github.com/facebook/react-native/pull/892 lands

Thanks @joshzana - that could be very useful for a react-native project I have in mind.

+1

+1

maybe it helps someone else,
i build a Promise Wrapper for dropbox.js that uses a modified Version of dropbox.js (including this Patch) to enable compatibility with Browserify.
https://www.npmjs.com/package/drbx-js

So has anyone forked this yet to address this issue?

@developit This issue is a pull request, so it includes the code I wrote to fix the problem. If look at the bottom of this thread you'll see a link to my branch on GitHub. I've been using it "in production" for a year in Passcards. See this package.json file and the Makefile for the steps I use to include and build the fork.

Gotcha, for now I'm using robertknight/dropbox-js#5568865764d9deab69836569a69d72d200c88293.

:thumbsup: thanks!

:shipit:

Given that Dropbox now has an official JS SDK for its V2 API which supports use with module bundlers, I'm going to close this.


Example ROS bag data

Hello @heethesh , could you provide the  link for the rosbag files used?! it will help understand the process.

See #3

Thank you!


[Feature] Support for explicitly using the github API

Is this feature missing in the latest version?

[X] I'm using the latest release

Is your feature request related to a problem? Please describe.
We have a large codebase, a checked-out copy is around 4G. We have workflows that run on PRs as well as other events. Because of that, we check out the repo before using this action. We also sometimes fight with how much history to fetch to satisify some complicated PRs with merge commits. I'd love to be able to set an input specifying to use the GitHub API regardless of whether the repo is there. It looks like the action is smart enough to attempt to fetch additional history, but that's what we're trying to avoid.
Describe the solution you'd like?
An input that, when set to some known value, will result in the github API being used to get changed files. If there are reasons it can't be used (if it's not a PR, permissions issue, etc.) I think I'd prefer the job just fail.
Then we could set the appropriate input on PRs, and not set it on other events, and avoid fetching history to get changed files.
Describe alternatives you've considered?
It would be pretty cumbersome, but we could probably setup multiple workflows with the changed-files action before the checkout on PRs, and after it for other event types.
Anything else?
No response
Code of Conduct

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

Hi, @jceresini I believe Github API is already supported. To utilize Github API you just need to run on pull_request* events and exclude usage of the checkout action.
For more information on how to set things up see the docs.

Right, I understand that. But for example, if we do a shallow clone of the repo we'd like it to use the API for changed files rather than pull down the history.
If that's not a feature you're interested in implementing, though, we can find a solution. Thanks for this really useful action!

Is there a reason you want to do a shallow clone and use GitHub’s API in the same job?
Have you considered running the shallow clone and the changed-files action in different jobs?
name: CI

on:
  pull_request:
    branches:
      - main

jobs:
  changed_files:
    runs-on: ubuntu-latest
    outputs:
       changed_files: ${{ steps.changed-files.outputs.all_changed_files }}
    name: Test changed-files
    permissions:
      pull-requests: read

    steps:
      - name: Get changed files
        id: changed-files
        uses: tj-actions/changed-files@v37

      - name: List all changed files
        run: |
          for file in ${{ steps.changed-files.outputs.all_changed_files }}; do
            echo "$file was changed"
          done

  ci:
    runs-on: ubuntu-latest  # windows-latest || macos-latest
    needs: [changed_files]
     ...


problem with part1 homebrew

hi
firstly thank you very much for your guide. for a total noob like me its very helpful to have definite steps to follow.
so : THE STORY TILL NOW:
my 3ds was on ver 7.0.0 13-E
so i began with your update to 9.2 section
and i think it ran smoothly as the 3ds now shows 9.2..E
THEN i continued with part1-homebrew
and ran into a PROBLEM
when i run the browser exploit with the slider my 3ds crashes.
in different ways :
at first it showed a black screen on the upper and a red screen on the lower display after at first flashing different colours on the lower screen
as i kept on trying
now the lower screen flashes different colours and somewhere, the exact time keeps changing (sometimes it kicks me out immediatly without any colourflash at all), in that process it kicks me back to homescreen and gives an error message saying i should save my data and restart.
i retried it again and again but no luck
do you have any suggestions?
should i perhaps rerun rxtools and try it from the homemenu that allows me to run fbi?
could it be that the update to 9.2 didnt install properly ( i read somethin about partial updates somewhere)
please help me
i dont know what to do any more
greetings
Michael

oh yes i continued with part 1 after updating to 9.2
not part 3 is that an issue?

I remember having to try around 20 times when I was on 9.2. Just try clicking on the right side of the slider. And, if you haven't, click on the button to change theme for the Nintendo to create the files needed for menuhax.

Also, you must follow Part 1 and then Part 3 to 5.

thanks for the answer
i started with part 3
could that be why its not working?
i tried like 40 times already - well will keep on trying then

I have had this issue before this way don't work for all and sometimes it can take a lot of try's but I want you to try all 3of these a least 20 times each

Click the slider ONCE and DO NOT touch anything else until you boot into HB launcher
Click the slider ONCE and spam the a button until the HB launcher opens
Spam the slider Until it starts to load
To increase your chances for every time you do it initialize save data that's works for some people. I hope this helps!

On Jun 26, 2016, at 7:28 AM, githubba11<EMAIL_ADDRESS>wrote:
thanks for the answer
i started with part 3
could that be why its not working?
i tried like 40 times already - well will keep on trying then
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.

the farthest it gets is :
after cycling through several colours
on the upper screen some code is diplayed for a millisecond or two
and then the upper screen is black
the lower is red
and there it stays
no error message at all
the 3ds just freezes

Hmmm ok try this. Remove any payload files off your SD card then redownload  the HB starter kit it may of gotten corrupt. When that happens it works but it just doesn't load the boot.3dsx on the root of your sd card.

On Jun 26, 2016, at 7:59 AM, githubba11<EMAIL_ADDRESS>wrote:
the farthest it gets is :
after cycling through several colours
on the upper screen some code is diplayed for a millisecond or two
and then the upper screen is black
the lower is red
and there it stays
no error message at all
the 3ds just freezes
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.

what do you mean with payload files ?
just the starter folder?

with your tip to spam the a button im now getting the freeze on the black/red screens more often
i also made a screen shot of the computer code that is displayed right before that freeze
perhaps it is helpful

in the home menu my health and safety app /fbi app
is missing could that mean that something went wrong with my update from 7.0 to 9,2 (done with with rxtools3.0) ?

SOLVED IT!!!!
first THANK YOU for all your help
turns out that in the end it was a case of MY OWN STUPIDITY in not reading the guide correctly
i put the starter folder from smealums starter.zip in the root directory
instead of the contents of the starter folder
(facepalm facepalm facepalm)
read the guide again very carefully then put the contents of the folder in root and
IT WORKED
sorry guys for all the fuss
all my fault
but thank you again for your big willingness to help and your quick advice
so problem is CLOSED


There shouldn't be a default value for the "sample_lineage" workflow parameter; is this parameter necessary?

There should be no default set for the sample_lineage:
https://github.com/nhhaidee/scovtree/blob/fa18e8ed8f4538c5719a907ddce00c8f6a4fb3d7/nextflow_schema.json#L87-L93
I don't know if this should be a workflow parameter if Pangolin run on user input sequences to determine the lineages those samples belong to. There might be a use case where a user might want to show some GISAID sequences from a particular lineage in the tree along with sequences from the lineages  the user's sequences belong to.

At the beginning, I was thinking that filter_gisaid_sequences.py can be used in the case that user can specific lineage, country, region for filtering so sample_lineage is a parameter of script. For now, with this workflow it is unnecessary and it will be removed.

Fixed by PR https://github.com/nhhaidee/scovtree/pull/30


MarshalAs Incorrect Behavior

When working on a P/Invoke call that is declared as follows:
[DllImport("ManagedResourceLoader.dll")]
private static extern int GetManagedResource(
    [MarshalAs(UnmanagedType.LPWStr)] string dllName,
    [MarshalAs(UnmanagedType.LPWStr)] string resName,
    out IntPtr bufferPtr, out long bufferSize);

...it marshals the two string arguments as ASCII strings, not wchar_t strings, despite my MarshalAsAttribute stating otherwise. If I declare the strings as type LPCWSTR on the receiving end (in C++), I get strings of Chinese characters. If I declare them as LPCSTR, I get the correct values.

It is because of TODOs around custom marshaling in https://github.com/dotnet/corert/blob/master/src/Common/src/TypeSystem/IL/Stubs/PInvokeILEmitter.cs.
Fixing these TODOs is about reading the MarshalAs from metadata, and use it to control how the arguments get marshalled.
As workaround, you can use CharSet = CharSet.Unicode in DllImport. It causes string arguments to be marshalled as Unicode as well, and works in CoreRT today.

@shrah Would this be expected to work now? Can we close this?

Yes, this should work now. @MichalStrehovsky


modify postinstall for windows

Because it did not execute in the Windows environment, we responded.

@TE-yujianishiyama LGTM. Thanks!


i18n(es): Fix typo in i18n.mdx

What kind of changes does this PR include?

Minor content fixes (broken links, typos, etc.)

Description

What does this PR change? Give us a brief description.
The missing space has been added so that the text has the same formatting as the original page. The page where this happens is /es/guides/i18n/#configura-i18n.

Original Page

Page translated into Spanish

Before

Now

LGTM ✅


Add support for ODBC

@pacman82 wrote this amazing library https://github.com/pacman82/odbc-api that we should consider depending on for reading and writing from/to ODBC.
imo ODBC is quite central in data, which is why imo I think "this must live".
Question: should this live in arrow2 as optional (e.g. src/io/odbc/) or somewhere else?
Any thoughts @ritchie46 , @houqp , @pacman82, @sundy-li , @Dandandan?

Hi thanks @jorgecarleitao for promoting my library. I think the maintainers of this library a probably qualified best to decide wether or not an optional dependency is suitable here. I think the most important impact of this decision is wether or not we want the ODBC glue code to to share a CI and release cycle with the rest of arrow2odbc.
I am happy to help out either way.

Well, at least my naming scheme would not do well for an individual crate. arrow22odbc is just silly 😅 .

Just realized that I already renamed arrow2odbc into arrow-odbc. Seeing that now an arrow2 exists, I am really happy about doing that.

I do think there is some benefit in maintaining the dependency optionally in arrow2. I have heard several cases of users who use connector-x + polars rust don't realize that both should point to exactly the same arrow version to work. It is very easy to get out of sync unless we make sure that we distribute such a dependency through arrow.

I agree that sticking to one driver is a good idea.
Could we run them on docker, or you think it is an even worse requirement? Asking because it would also make it easier to boot the db

It is very easy to operate on CI. Here is how I spin up the DB to test the odbc2parquet tool.
https://github.com/pacman82/odbc2parquet/blob/eab372a9ad50ea065b461e41ee6e26d9fbc71097/.github/workflows/test.yml#L1

Closed by #849


Update cri plugin to v1.0.1.

Update cri plugin to v1.0.1 in release/1.1 branch.
I'm not sure why my vndr deleted some non-go files.
Release note: https://github.com/containerd/cri/releases/tag/v1.0.1
Signed-off-by: Lantao Liu<EMAIL_ADDRESS>

Codecov Report

Merging #2349 into release/1.1 will not change coverage.
The diff coverage is n/a.

@@             Coverage Diff              @@
##           release/1.1    #2349   +/-   ##
============================================
  Coverage        50.07%   50.07%
============================================
  Files               75       75
  Lines             7269     7269
============================================
  Hits              3640     3640
  Misses            2956     2956
  Partials           673      673

Flag
Coverage Δ

#linux
50.07% <ø> (ø)
:arrow_up:

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 01a0741...c0d46d3. Read the comment docs.

LGTM


weird and confusing error message in pdf-hs-driver

New summary of the problem
Reproducing the poor error message behavior (shell script)
cd YOURTOP/daedalus/pdf-cos/spec

# To avoid the need for primitives, here is my slightly cut down version of `TopDecl`:

cat > MyTestTopDecl.ddl <<HEREIS
import Stdlib
import PdfValue

def Main = TopDecl

-- TopDecl and TopDecDef as in PdfDecl.ddl:

def TopDecl = {
  ManyWS;          -- FIXME: would rather do in Haskell and provide warning when this occurs!
                   -- we cannot rely on the post token whitespace consumption because this is
                   -- usually called immediately upon "jumping" to a byte offset.
  id   = Token Natural;
  gen  = Token Natural;
  KW "obj";
  @val = Value;
  obj  = TopDeclDef val;
  Match "endobj";
}

def TopDeclDef (val : Value) = Choose1 {
  stream = Stream val;
  value  = ^ val
}

-- Truncating the 'Stream' parser to not depend on primitives:

def Stream (val : Value) = {
  header = val is dict;
  Match "stream";
  SimpleEOL;
  -- REMOVED-STUFF: ignoring stream body for tests
  KW "endstream";
}
HEREIS

# now sending some bad declarations to daedalus:

echo "3 0 obj endobj"                   | daedalus -i - MyTestTopDecl.ddl
echo " 3 0 obj endobj"                  | daedalus -i - MyTestTopDecl.ddl
echo " 3 0 obj a5000 endobj  "          | daedalus -i - MyTestTopDecl.ddl
echo " 3 0 obj <</A 5000 /B>> endobj  " | daedalus -i - MyTestTopDecl.ddl

Commentary
Currently I'm finding that every error that occurs in parsing or checking a PDF
TopDecl or its component Value always gives an error of this form:
...
--- Parse error:
[offset: 1]
  • byte '3' does not match (((byte 0x00), or ((byte 0x09), or (no byte))), or ((byte 0x0c), or (no byte))), or ((byte ' '), or (no byte))
  • see grammar at: ./Stdlib.ddl:164:42--164:50
  • context:
      • ./MyTestTopDecl.ddl:4:12--4:18: MyTestTopDecl.TopDecl
      • ./MyTestTopDecl.ddl:9:3--9:8: Stdlib._ManyWS
      • ./Stdlib.ddl:168:35--168:39: Stdlib._AnyWS
      • ./Stdlib.ddl:164:29--164:50: Stdlib._IgnoreResult
File context:
Length: 11 (0xb) bytes
0000:   20 33 20 30  20 6f 62 6a  20 3c 3c         3 0 obj <<

It gives an error that suggests that the very first byte of the TopDecl is incorrect (as if the ManyWS parser failed in TopDecl!)
This behavior is relatively new, due I think to

changes to error reporting
ManyWS newly added to TopDecl: required to be PDF compliant!

Old, Original Summary (Valid, but overly complex):
The file pdf-driver/pdf_tests/handcrafted_minimal/1_invalid_xref_trad-b.pdf is
1_valid_xref_trad.pdf but broken to have an incorrect object number (with respect to the xref entry):
- 11 0 obj
+ 23 0 obj
  999 % dead object<PHONE_NUMBER>0123456789)
  endobj

The object is valid and parsable, but the daedalus failure is occuring later, in this guard:
def CheckExpected (r : Ref) (d : TopDecl) = {
  GuardMsg ((d.id  == r.obj && d.gen == r.gen))
    "objid and gen don't match between xref table and the object definition";
  ^ d.obj;
}

But the error message does not say anything about the Guard failure, it somehow
has become a very odd message with parsing the object:
pdf_tests/handcrafted_minimal $ pdf-hs-driver 1_invalid_xref_trad-b.pdf
INFO - 1_invalid_xref_trad-b.pdf at 0 - Catalog (page tree) is OK
INFO - 1_invalid_xref_trad-b.pdf at 0 - (55us) OID 1 0 number parsed successfully
INFO - 1_invalid_xref_trad-b.pdf at 0 - (32us) OID 2 0 number parsed successfully
INFO - 1_invalid_xref_trad-b.pdf at 0 - (95us) OID 3 0 dict parsed successfully
INFO - 1_invalid_xref_trad-b.pdf at 0 - (207us) OID 4 0 dict parsed successfully
INFO - 1_invalid_xref_trad-b.pdf at 0 - (108us) OID 5 0 dict parsed successfully
INFO - 1_invalid_xref_trad-b.pdf at 0 - (109us) OID 6 0 stream parsed successfully
INFO - 1_invalid_xref_trad-b.pdf at 0 - (36us) OID 7 0 number parsed successfully
INFO - 1_invalid_xref_trad-b.pdf at 0 - (134us) OID 8 0 dict parsed successfully
INFO - 1_invalid_xref_trad-b.pdf at 0 - (108us) OID 9 0 dict parsed successfully
INFO - 1_invalid_xref_trad-b.pdf at 0 - (37us) OID 10 0 number parsed successfully
ERROR - 1_invalid_xref_trad-b.pdf at 0 - (67us) OID 11 0 byte offset: 698
ERROR - 1_invalid_xref_trad-b.pdf at 0 -                 error: byte '2' does not match (((byte 0x00), or (byte 0x09)), or (byte 0x0c)), or (byte ' ')
ERROR - 1_invalid_xref_trad-b.pdf at 0 -                 call stack:
ERROR - 1_invalid_xref_trad-b.pdf at 0 -                   Stdlib._AnyWS
ERROR - 1_invalid_xref_trad-b.pdf at 0 -                   Stdlib._ManyWS
ERROR - 1_invalid_xref_trad-b.pdf at 0 -                   PdfDecl.TopDecl
REJECT
SAFE

Sorry, but I've been unable to create smaller (non full PDF) examples of this behavior.

the fix is now on 'master', thanks @yav


Firebase Authentication Fails When Switching Between Two Targets

[REQUIRED] Step 1: Describe your environment

Xcode version: 11.7
Firebase SDK version: 6.31.1
Installation method: CocoaPods
Firebase Component: Auth, Core, Database, Firestore, Storage

[REQUIRED] Step 2: Describe the problem
When using an iOS project with two targets, both with their own associated GoogleService-Info.,plist files switching between the two targets either on an actual device or a simulator causes authentication to fail.
Steps to reproduce:
What happened? How can we make the problem occur?
This could be a description, log/console output, etc.
In order to reproduce try the following

Setup two different Firebase projects with their own database instance.
Create an iOS project with two targets each with their own GoogleService-Info.plist file
Try to login with a custom token via the Firebase SDK (1st target will work)
Switch to the second target in Xcode.

Observed Behavior:
Authentication will fail now when trying to use a custom token with the new second target.
The error noted in the debug console is as follows:
Error Domain=FIRAuthErrorDomain Code=17000 "The custom token format is incorrect. Please check the documentation." UserInfo={NSLocalizedDescription=The custom token format is incorrect. Please check the documentation., FIRAuthErrorUserInfoNameKey=ERROR_INVALID_CUSTOM_TOKEN}

If you switch back to the first target it will authenticate fine.   Also if you are on a simulator and "Reset Content and Settings" the authentication issue will resolve.  Likewise if you reset an actual physical device clearing out all content and settings it will resolve for the device as well.
Also in this new state after clearing settings if you choose the second target first it will authenticate fine but when going to the first target it will now fail.
Reference internal bug ID
http://b/177424672

Assigning to @malcolmdeck who is on call this week.

Assigning to @malcolmdeck who is on call this week.

Thanks for the report - I've filed b/178378423 to track this internally. I'll talk to our iOS lead to figure out what the semantics are for multi-app configurations and see if there's anything about custom auth that should/shouldn't work and isn't in this case.

Thanks for the report - I've filed b/178378423 to track this internally. I'll talk to our iOS lead to figure out what the semantics are for multi-app configurations and see if there's anything about custom auth that should/shouldn't work and isn't in this case.

Hey there, I have an update for you! It looks like out backend is seeing custom tokens that are missing the signature piece (Custom tokens are of the format {Header}.{Payload}.{Signature}). We also see some valid requests. In order to investigate further, we need to see this reproduced again, but as far as we can tell there's nothing on our end that would be causing the custom token to have an incorrect format.

Hi Malcolm,
Would be more than willing to try and debug this with you by sending requests.  How do you want to go about doing that?
Scott

On Feb 9, 2021, at 2:30 PM, Malcolm Deck<EMAIL_ADDRESS>wrote:
Hey there, I have an update for you! It looks like out backend is seeing custom tokens that are missing the signature piece (Custom tokens are of the format {Header}.{Payload}.{Signature}). We also see some valid requests. In order to investigate further, we need to see this reproduced again, but as far as we can tell there's nothing on our end that would be causing the custom token to have an incorrect format.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub https://github.com/firebase/firebase-ios-sdk/issues/7341#issuecomment-776185882, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASRPUQ4LFF23PH7IYIZULFDS6GENRANCNFSM4WM5HGQQ.

Just to be clear after diving into this more on our end, our use of a custom token to login initially does appear to be working or at least responds as such from the API without an error.  However I notice in the console log that we are seeing numerous messages being generated in FPersistentConnection complaining about the custom token being invalid and for the wrong project.   The line generating the error message is:
FFWarn(@"I-RDB034018", @"Authentication failed: %@ (%@)”, status, responseData);

On Feb 9, 2021, at 2:30 PM, Malcolm Deck<EMAIL_ADDRESS>wrote:
Hey there, I have an update for you! It looks like out backend is seeing custom tokens that are missing the signature piece (Custom tokens are of the format {Header}.{Payload}.{Signature}). We also see some valid requests. In order to investigate further, we need to see this reproduced again, but as far as we can tell there's nothing on our end that would be causing the custom token to have an incorrect format.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub https://github.com/firebase/firebase-ios-sdk/issues/7341#issuecomment-776185882, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASRPUQ4LFF23PH7IYIZULFDS6GENRANCNFSM4WM5HGQQ.

First of all, sorry for dropping off the face of the earth.
As for the error message, that appears to be part of FirebaseDatabase's auth management mechanism. I don't know why it would end up triggering anything about a custom token - theoretically, once a user logs in with a custom token, there shouldn't be any other custom token interactions (especially from non-Auth SDKs). Everything else deals with Firebase Auth tokens. It's unclear to me why that piece of code would trigger anything to do with your custom tokens. Rerouting to someone who may know more.

Hi @BosPrusin -- sorry you're experiencing this issue!
I want to make sure I understand the issue.

Just to be clear after diving into this more on our end, our use of a custom token to login initially does appear to be working or at least responds as such from the API without an error.  However I notice in the console log that we are seeing numerous messages being generated in FPersistentConnection complaining about the custom token being invalid and for the wrong project.   The line generating the error message is:
FFWarn(@"I-RDB034018", @"Authentication failed: %@ (%@)”, status, responseData);

Is this still after switching targets in Xcode? Or are you seeing a different issue now?

Yes the issue still occurs when switching between targets in Xcode.   What I noticed was that the authentication with the custom token was valid and returned successfully.  However the console log was throwing the error I listed above.  My suspicion all along has been the cached token used from the first target authentication given our use of persistence.

Hi @BosPrusin, can you provide some example code of how you are obtaining and sending your custom token? It does seem likely that the custom token for the wrong project is being sent to the backend after you switch targets in Xcode.

Turning on debug logging will tell you everything RTDB is doing. You should be able to see if it's still referencing the old token through the logs. A significant question here is: Does changing the target in XCode have anything to do with production environments? If not, it seems like the error is fairly superfluous, since clients wouldn't change out the database instance in mid flight.
Also, it's likely that the RTDB instance is cached as a singleton or similar under the hood, and reinitializing (calling initializeApp() again) would probably fix any token issues here. But I'm not sure how one purges the old instance effectively to avoid the error about calling initializeApp() twice. That might take some code hunting. I think you could use named apps/multiple project config to work around this:
// Configure an alternative FIRApp after switching environment
FirebaseApp.configure(name: "secondary", options: secondaryOptions)

// Retrieve a previous created named app.
guard let secondary = FirebaseApp.app(name: "secondary")
  else { assert(false, "Could not retrieve secondary app") }

// Retrieve a Real Time Database client configured against a specific app.
let secondaryDb = Database.database(app: secondary)

Closing for staleness. Please comment to reopen or create a new issue referencing this one.


Data mismatch in rivm_NL_covid19_province.csv

I see huge differences when comparing the data of 2020-05-03 and 2020-05-04. It looks like the updated numbers were mapped to the wrong provinces.
For example:

-
-
-

2020-05-03
Noord-Brabant
8404

2020-05-04
Noord-Brabant
2912

Resolved. The format of the PDF's is changing every day at the moment. It would be nice to have a test for this.


Big Fork.

Hi,
Thank for this project.

I forked your source for some changes, but I make a loooooooot of changes.
the final version should be a kind of pure typescript router (PAC + http-proxy + dhcp + dynamic public IP switch + live http blocking features)
on the dhcp server the change include:

Use async hook, so can use an external database to store lease.
Static lease are now reserved.
New free lease detection algorithm.
Project converted to Typescript.
Refactor configuration model.
Datastorage can be share and fill by an external live interface.
remove auto remove oldest lease.
Properly handle Offered lease as non validated lease (that expire within a couples of seconds)
Implement DHCPRELEASE
Implement DHCP renew
Speed improvement
Add Tag support (allow tagging Lease to add common options)

I think that this fork solve 3 of the current opened issue.

#2
#4
#25

special:

#33 I handle this case in production

Maybe we will be able to merge one day, but you will have to switch to typescript.
I plane to deploy a first version next week.
https://github.com/UrielCh/node-dhcp
give me your feedback

Hi,
thanks for your ping! Your changes look impressive! The time when I started this project, async code was not a thing. So I'm totally in favor of going a step forward.
I have to test your fork and look into the code in greater detail. But all your improvements are long-awaited and I would look forward integrating these features :) Did you make any cuts in terms of generalizability, which were only useful for your very use-case?
What would be your idea of integrating your fork into the main branch? Can it be seen as a full replacement? If not, would you like to work with me together on bringing these features into the main branch?
Robert

Why are you using a dual licence ?
a mix of 2 open licence is unusual.

I chose a dual license to match different requirements. Practically, it's MIT, but to embed it into an environment where GPL is used, you can use the GPL part.

Broken here when try test:
`Error: Cannot find module 'debounce'
Require stack:
- /lib/leaseStore/LeaseStoreFile.js
`

or?

extract from package.json:
  "dependencies": {
    "debounce": "^1.2.0",
    "fs-extra": "^8.1.0",
    "minimist": "*"
  }

debonce is here, so maybe you should make a new npm install.

I have just finish my heavy refactor.
Leases are now completely new, and leaseStatic support tags, like dnsmask.

anyone know how works Options id
150 151 159 160 ?
100 101 120 132 133 ?
I do not knows they types.
I can not find they configuration name.
I use this page to find some data:
https://www.iana.org/assignments/bootp-dhcp-parameters/bootp-dhcp-parameters.xhtml
But some optionId are vendor dependent ...
some more change and this project will be able to compete old school classic DHCP server.

I see it had still some typo but now got running. Tried with WinXP laptop and it has still failure to give correct DHCP Offer message so it fails.

Okey, you should wait some days, to let me finish my devs.

Sure! Sorry and thanks.

I have just setup the dhcp server, but It do not receved any unicast message.
How to be shure that the server listen to the proper network interface (I have 6 ethernet port on my server)
the mail UDP socket is initialied with:
const socket = createSocket({ type: "udp4", reuseAddr: true });
but there is no reference to an interface name.
I make all my developpement on a windows host, the production is is an ubuntu server.

As far as i know there is no specific interface and you need manually setup IP for that Ethernet port.
It listens <IP_ADDRESS> as to get messages which means all IPv4 messages on host machine... When i originally loaded project there was broken broadcast address which was not passed correctly to dhcp.js file which too made it not working.

Update: If I bind socket <IP_ADDRESS>, I receve all DHCP Discover....
My set is:
enp1s0 => local network <IP_ADDRESS>/16  IP <IP_ADDRESS>

enp2s0 => Internet service provider 1: (xDsl)
IP <IP_ADDRESS>
network <IP_ADDRESS>/16
gateway <IP_ADDRESS>
enp3s0 => Internet service provider 2: (coaxial operator)
IP <IP_ADDRESS>
network <IP_ADDRESS>/24
gateway <IP_ADDRESS>
enp4s0 => Internet service provider 3: not setup yet (will be 4G)
enp5s0 => Internet service provider 4: not setup yet (Will be fiber)
enp6s0 => Internet service provider 5: not setup yet (will be an other xDSL)

But I only want to reply to DHCP on enp1s0.
So... maybe I can try to guess the incomming interface for each UDP, in the last case I will filter that with an IPtables.
an Idea ?

update it's not multicast but broadcast.

Hi,
I found some time to resume my fork,
the news:

This server do not support binding a single interface, the issue #37 had never been implemented.
I have start a rebuild an ReactJS Backoffice ton configure the dhcp + HTTP Proxy + routing interface.

Any chances you will get this work completed and maybe make an npm package from it?

I need a to bind an UDP pour on a specific interface.
I tried with an iptables, but that a nightmare using this way.
I wish deno will support interface binding, so I will move to it.
for now I'm stuck.

@UrielCh You can use the setsockopt call for that on Unix-like systems, not sure about Windows.
Check out this stackoverflow thread and this package.

Thx for the link,
But for now, I'm switching from NodeJS to Deno, So can not check that.


Sharing code between main and renderer processes

Is your feature request related to a problem? Please describe.
This repository is posited as an alternative to electron-webpack as the library is now in "maintenance mode" as stated in readme.
In electron-webpack, is it possible to share resources between main and renderer processes.  This allows for best practices such as avoiding the hard-coding of event name strings for IPC communication via constants.  In this case, common code resources are located in a folder which is a sibling to main and renderer folders.
Describe the solution you'd like
This repo should include configuration that enables sharing of code between main and renderer builds.
Describe alternatives you've considered
I've attempted to use the solution posited in this issue but this causes typescript errors. Aliases present DX issues because one can't use regular import statements like in webpack and must resort to some kind of module resolver which is beyond the scope of someone who wants to get started on an electron project quickly and easily.
Another solution I've attempted: move index.html file directly inside packages folder, setting the PACKAGE_ROOT to be packages folder.   For renderer, main, and preload folders,  in vite config files,  change build.lib.entry value to be  "[folderName]/src/index.ts" and change index.html script src to be "./renderer/src/index.tsx". This does not fix the issue and the watch tasks errors out:
Error: Cannot find module '../../common/constants'
Require stack:
- /home/user/code/polyhedral-net-factory/packages/main/dist/index.cjs
- /home/user/code/polyhedral-net-factory/node_modules/electron/dist/resources/default_app.asar/main.js

You are right. Due to the fact that each package technically built independently, there can be difficulties to share modules. In fact, I was thinking about this problem. But I did not find a solution.
Technically you can import anything outside of the root directory. Example:
// packages/shared/constants.ts
export const FOO = 'bar'

// packages/renderer/src/App.vue
import {FOO} from '../../shared/constants'

This works for me, provided that the shared files are easily tree-shaken and have no side effects.
You must understand that such shared files will be imported and executed for each module independently.
And this imposes some limitation:

All distributed code will not be made into a common chunk. Instead, it will be duplicated in each package that imports it. Tree shaking will also work independently for each package.
Any calculations in runtime will be performed independently. Example:// shared/constants.ts
export const PARAM = Math.random()

// main/src/index.ts
import { PARAM } from '../../shared/constants
console.log(PARAM)

// preload/src/index.ts
import { PARAM } from '../../shared/constants
console.log(PARAM)

Will be compiled to:// main/dist/index.cjs
const PARAM = Math.random();
console.log(PARAM);

 // preload/dist/index.cjs
const PARAM = Math.random();
console.log(PARAM);

Note that Math.random(); is called separately for each package. Therefore, you cannot easily share one value between them.
You cannot share Symbol() between packages.
Side effects can lead to unpredictable behavior.

You could explore how this repo works. As far as I know, the author used a plugin-based approach. Maybe this will help you.

I'd just like to explain how I share type-safe IPC between render and main process.  Unfortunately, I don't have a nice template repo like this to share, so I'll just show code fragments.
First, I have a packages/api project which only contains type definitions, no code.  In the packages/api project, I define interfaces for the various things that will be sent between renderer and main and then define
type IpcRequestResponse =
  | { type: "FileAccess_OpenFile", request: null, response: TheFileData }
  | { type: "FileAccess_SaveFile", request: { data: TheFileData, saveAs: boolean }, response: { saveCanceled: boolean }
  | ...

Each request or response defines both the request type and the response type (TheFileData is an interface for the contents of the file.)
I then define
type MessageTypes<A> = A extends { type: infer T } ? T : never;
type IpcRequest<A, T> = A extends { type: T; request: infer R } ? R : never;
type IpcResponse<A, T> = A extends { type: T; response: infer R } ? R : never;

export type ProjectNameIpcMessageTypes = MessageTypes<IpcRequestResponse>;
export type ProjectNameIpcRequest<T extends BmsIpcMessageTypes> = IpcRequest<
  IpcRequestResponse,
  T
>;
export type ProjectNameIpcResponse<T extends BmsIpcMessageTypes> = IpcResponse<
  IpcRequestResponse,
  T
>;

This automatically pulls out the message types, the request type for a specific message, and the response type for a specific message.  You get compile errors if you try and get the request type of a message that does not exist.

In packages/main I define the handlers for each message as follows.  First, define
type MessageHandlers = {
  [key in ProjectNameIpcMessageTypes]: (
    window: BrowserWindow,
    request: ProjectNameIpcRequest<key>
  ) => Promise<ProjectNameIpcResponse<key>>;
};

const handlers: MessageHandlers = {
  FileAccess_OpenFile: async (window, req) => {
    const file = await dialog.showOpenDialog(window, { title: ..... });
    ...
    return { theFileData: ... }
  },
  FileAccess_SaveFile: async (window, req) => { ... },
  ...
}

What is nice is that you get a compile error if you forget one of the types (MessageHandlers specifies [key in ProjectNameIpcMessageTypes] which requires a key for each message.  Also, the type of the req parameter is automatically inferred and you get a compile error if you return the wrong response.  For large handlers, I move the handler function out into its own file and import it when creating the handlers object.

Since the handlers are in main instead of preload, I need to bridge main and preload which I do using MessageChannelMain.
In main, I have code like
  const window = new BrowserWindow(...);

  const { port1, port2 } = new MessageChannelMain();

  port1.on("message", (msgEvt) => {
    // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
    const message: { id: unknown; type: ProjectNameIpcMessageTypes; request: unknown } =
      msgEvt.data;
    // eslint-disable-next-line @typescript-eslint/no-unsafe-call, @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-member-access
    ((handlers as any)[message.type](window, message.request) as Promise<any>)
      .then((response) => {
        port1.postMessage({
          id: message.id,
          // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
          response: response,
        });
      })
      .catch((err) => {
        if (err instanceof Error) {
          err = err.message;
        }
        port1.postMessage({
          id: message.id,
          // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
          error: err,
        });
      });
  });
  port1.start();

  window.webContents.on("did-finish-load", () => {
    window.webContents.postMessage("projectname-init", "", [port2]);
  });

Each message is an object containing an id, the type, and the request.  We then lookup the handler in the handlers object, make the call, and send a response with the same id.
For port2, it is sent to the renderer process once the did-finish-load event occurs, which means the renderer has had time to attach an event handler for the projectname-init.

The preload script is very short because all the work is done in main and the renderer.  It just shuffles the projectnameInit message along to the renderer, passing along the port.  This is the entierty of my preload.js which I don't even bother to write in typescript or compile.
const { ipcRenderer } = require("electron");

ipcRenderer.once("projectname-init", (evt, msg) => {
  window.postMessage({ projectnameInit: true, msg }, "*", evt.ports);
});

Finally, the renderer contains code to send and receive messages over the port using the specific api types imported from packages/api.
// eslint-disable-next-line @typescript-eslint/no-explicit-any
const inFlight = new Map<number, (response: any) => void>();
let nextId = 0;

let resolvePort: (p: MessagePort) => void;
const portPromise: Promise<MessagePort> = new Promise((resolve) => (resolvePort = resolve));

function handleProjectInit(event: MessageEvent<{ projectnameInit: boolean; msg: string }>) {
  if (event.source === window && typeof event.data === "object" && event.data && event.data.projectnameInit) {
    resolvePort(event.ports[0]);
    event.ports[0].onmessage = (portMsg) => {
      const msg = portMsg.data;
      const handler = inFlight.get(msg.id);
      if (handler) {
        handler(msg);
      }
    };
    window.removeEventListener("message", handleProjectInit);
  }
}

window.addEventListener("message", handleProjectInit);

export function sendIpc<T extends ProjectNameIpcMessageTypes>(ty: T, request: ProjectNameIpcRequest<T>): Promise<ProjectNameIpcResponse<T>> {
  const messageId = nextId;
  nextId += 1;
  return portPromise.then(
    (port) =>
      new Promise((resolve, reject) => {
        inFlight.set(messageId, (response) => {
          inFlight.delete(messageId);
          if (response.error) {
            reject(response.error);
          } else {
            resolve(response.response);
          }
        });
        port.postMessage({
          id: messageId,
          type: ty,
          request: request,
        });
      })
  );
}

Each mesage has an incrementing id and the inFlight map stores message id to the response function.  The handleProjectInit function listens for the message from preload with the port for communication.  It resolves the port and attaches a handler to messages coming over the port.  When a message arrives on the port, it looks up the handler in inFlight by message id.
The sendIpc function, which is the main export, creates a promise which first waits for the port.  (This allows code to call sendIpc before the port from main arrives and correctly suspends them.)  sendIpc then sets up the response in the inFlight map and then sends the request across the port.
Finaly, sendIpc is typed so that you can only call it with a message type defined in projects/api.  VSCode even pops up the suggestion box with a list of messages.  The request and response are then inferred from the specified message type.  Since sendIpc returns a promise, it can be awaited everywhere throughout the renderer.

@wuzzeb Thanks a lot. It works perfectly fine.

@cawa-93 and @wuzzeb  thanks for your detailed responses, excuse the delayed response. As I prepare to release my app into the wild, I've been thinking about security and I want to remove the nodeIntegration: true requirement as discussed here https://github.com/electron-userland/electron-webpack/issues/392 . It looks like it's impossible to truly share code with this build setup but the code duplication for me is minimal and these solutions look decent so I'll close this.

@wuzzeb  I might try using contextIsolation bridge instead in order to create typesafety for ipc stuff

The main difference is the context bridge is synchronous while using message channels as I describe above is asynchronous and you can await the response.  With my solution it is nice to be able to just await sendIpc("SomeMessage", ...) and have it resolve when the operation completes.
I guess it depends on what kinds of things you are doing in the main process, if it is just things like file open, you probably don't care that the renderer process is frozen while the synchronous call to the main process happens.

For sharing actual code I just use a "local" dependency. It's a little klunky because you need to do "yarn install" when you make changes to the common code, and it gets duplicated across the two parts of the code, but it's nice for things like shared string ID's. You can see it in action if you want right here https://github.com/kevinfrei/EMP/commit/0c1af4026a0c254157dcc0a4437e854873fa9626

@kevinfrei such a simple and neat solution, thanks make!


Draft/practical waterfall

THIS IS A GATSBY STARTER TEMPLATE REPOSITORY
Pull requests to this repo will not be accepted. If you would like to contribute, please open a PR in the source repository:
https://github.com/gatsbyjs/homepage-starters

TTES


Create knwoledgebreak

Hacktoberfest-2020
First time
Much better if provided a step by step tutorial

My first draft
Requesting for review
Appreciate it
Thanks


Add Engravings for Parts with Different Configurations

ex. Cycloidal Disks

Cycloidal discs done in #35. Not planning on doing this on other parts for now. The only other part that comes to mind would be the cams (20:1 vs 40:1), but there isn't a great surface on which to engrave.


add yolof init_cfg

Thanks for your contribution and we appreciate it a lot. The following instructions would make your pull request more healthy and more easily get feedback. If you do not understand some items, don't worry, just make the pull request and seek help from maintainers.
Motivation
Can't init yolof detector
Modification
Add init_cfg to yolof like other detectors
BC-breaking (Optional)
Does the modification introduce changes that break the backward-compatibility of the downstream repos?
If so, please describe how it breaks the compatibility and how the downstream projects should modify their code to keep compatibility with this PR.
Use cases (Optional)
If this PR introduces a new feature, it is better to list some use cases here, and update the documentation.
Checklist

[x]  Pre-commit or other linting tools are used to fix the potential lint issues.
[x] The modification is covered by complete unit tests. If not, please add more unit test to ensure the correctness.
[x] If the modification has potential influence on downstream projects, this PR should be tested with downstream projects, like MMDet or MMCls.
[x] The documentation has been modified accordingly, like docstring or example tutorials.

 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.


fisfix obs impl

Proposed changes
add obs impl
Further comments
If this is a relatively large or complex change, kick off the discussion at<EMAIL_ADDRESS>by explaining why you chose the solution you did and what alternatives you considered, etc...

fix at master: https://github.com/apache/doris/pull/20395


Reading Kerchunk datasets

I created a Kerchunk dataset by following the tutorial here: https://fsspec.github.io/kerchunk/tutorial.html#combine-multiple-kerchunked-datasets-into-a-single-logical-aggregate-dataset
I was then able to read the dataset using Xarray and Cubed:
import fsspec
import ujson
import xarray as xr

from cubed import Spec

fs = fsspec.filesystem("")  # local file system to load json from

with fs.open("../kerchunk-example/air_pressure_at_mean_sea_level_combined.json", "rb") as f:
    d = ujson.load(f)

backend_args = {"consolidated": False, "storage_options": {"fo": d, "remote_protocol": "s3","remote_options": {"anon": True}}}

spec = Spec(work_dir="tmp", allowed_mem="1GB")

ds = xr.open_dataset(
    "reference://",
    engine="zarr",
    backend_kwargs=backend_args,
    chunked_array_type="cubed",
    from_array_kwargs={"spec": spec},
    chunks={},
)

print(ds)

Output:
<xarray.Dataset>
Dimensions:                         (time0: 1440, lat: 721, lon: 1440)
Coordinates:
  * lat                             (lat) float32 90.0 89.75 ... -89.75 -90.0
  * lon                             (lon) float32 0.0 0.25 0.5 ... 359.5 359.8
  * time0                           (time0) datetime64[ns] 2020-01-01 ... 202...
Data variables:
    air_pressure_at_mean_sea_level  (time0, lat, lon) float32 cubed.Array<chunksize=(24, 100, 100)>
Attributes:
    institution:  ECMWF
    source:       Reanalysis
    title:        ERA5 forecasts

It would be good to add this to the documentation, but in the meantime this issue will do.

Note that I needed https://github.com/tomwhite/cubed/pull/297 for the example to run.


Add property to skip SSL verification on proxy

See #189

Coverage decreased (-2.6%) to 90.058% when pulling 1d80c38722d8dbe41a88d0f5d0389fea330d95cd on feature/add_skip_ssl_for_proxy into df319563de7a241b3d2c06791b50d5425e90a7be on develop.

Coverage decreased (-2.6%) to 90.058% when pulling 1d80c38722d8dbe41a88d0f5d0389fea330d95cd on feature/add_skip_ssl_for_proxy into df319563de7a241b3d2c06791b50d5425e90a7be on develop.


Feat/buttonhover

Issue  📐

**I Aditya have worked for Issue #2 **

Guidelines 🔐
I accept the fact that i have followed the guidelines and have not copied the codes from around the internet

[x] Contribution Guidelines
[x] Code of Conduct

Issue to be closed 🛅

**My pull request closes Issue #2 **

Screenshots 📷
Here are the pictures of the changes that I have made 🔽

After hover :

I have made the changes and removed the typo

Thanks for your valuable contribution to this Project 🎊🎊

Make sure to star this Project ⭐⭐⭐
Check out other projects here


Bugfix in dynamic acset serialization + new test

A bug for serialization of dynamic acsets is addressed by explicitly importing constructor in the JSON serialization file. A test was added to catch things like this in the future.

I had the same thought about constructor!

Yeah, it makes sense to me that this should be part of the API. Perhaps you can make a PR when you have a spare moment.


Prisms adds white line through the code in php syntax

Prisms Adds line through the code and highlight feature does not highlight full line in PHP
Description
Hi, I am using Prism Js to display PHP code and I am facing a strange issue,
I am using the following plugins
Line Highlight
Line Number
Copy to Clipboard Button
and the following language supports
Markup
C-LIKE
CSS
Javascript
PHP
PHP Doc
PHP extra
Code snippet

The code being highlighted incorrectly.

                     Route::get('/', function () {
                              \Illuminate\Support\Facades\Auth::abs();
                               return view('welcome');
                      });

Here is the Link how it displays.

The code snippet you shared has a bunch of extra whitespace that should be removed. The extra tabs and line between between the pre code & the snippet itself could be causing some of these issues. Additionally, instead of a divwith aline-numbersclass, thepre` should have that class.
Lastly, if none of the above fixes the issue, could you share a reproducible example rather than just a screenshot? It'll make it easier for us to debug the issue.

Also, I do want to point out that the text in the screenshot is not the text you gave in the issue. (Prism doesn't change the text content of an element.)
As already pointed out, a reproducible example (be it a JSFiddle, the zip of an example project, or the project itself) would help.

Additionally, instead of a div with a line-numbers class, the pre should have that class.

No, that's fine. While a little strange, the pre will "inherit" the line-numbers class of the div.

I have tested it all the way and found out the issue. The issue is with my CSS file. I have a class with the name comment and a custom CSS for that class section. I have figured out that when any code contains comment prisms add comment class to it and my custom CSS was applied to that. Although it is not an issue with prisms js. Thanks for your support and quick answers.

The issue was with my custom CSS file. I have defined a class in and added some custom style, latter I figured out that prisms uses same class name. comment for adding styles.


chore: Update DSP-APP version in docker-compose.yml

Pull Request Checklist
Task Description/Number

Issue Number: DEV-2621
Basic Requirements
Please check if your PR fulfills the following requirements:

[ ] Tests for the changes have been added (for bug fixes / features)
[ ] Docs have been added / updated (for bug fixes / features)

PR Type
What kind of change does this PR introduce?

[ ] fix: represents bug fixes
[ ] refactor: represents production code refactoring
[ ] feat: represents a new feature
[ ] docs: documentation changes (no production code change)
[X] chore: maintenance tasks (no production code change)
[ ] test: all about tests: adding, refactoring tests (no production code change)
[ ] other... Please describe:

Does this PR introduce a breaking change?

[ ] Yes
[X] No
[ ] Maybe (not 100% sure => check with FE)

Does this PR change client-test-data?

[ ] Yes (don't forget to update the JS-LIB team about the change)
[X] No

@seakayone this PR should be closed

@flavens Why?
@mdelez FYI: corrected the title - please mind the commit prefix.

As this was changed in https://github.com/dasch-swiss/dsp-api/pull/2821


Link to Persistent Data Unit schema in SS API broken

Link to problem area: https://spec.matrix.org/unstable/server-server-api/#adding-hashes-and-signatures-to-outgoing-events
Issue:

It looks like in previous versions of the spec such as https://matrix.org/docs/spec/server_server/r0.1.4#id98 this just linked to https://matrix.org/docs/spec/server_server/r0.1.4#persistent-data-unit-schema which doesn't actually contain an example of a signed event. It just links you to the room versions spec to find an example.

It just links you to the room versions spec to find an example.

It used to contain the schema, but that was moved out with the format changes. Theory at the time was that we could just keep the PDU schema links around until someone refactored each section to optimize the link, but that hasn't exactly happened at a reliable speed :p

Fixed by https://github.com/matrix-org/matrix-doc/pull/3528


Please help

https://gyazo.com/d1a50218e04b0ff8d3ffb2963acb7b12
Why dis happen?

... The bot was patched

;( no more bots now?

No sorry :(
Agar.io Will be better now :)

Le 18 mars 2016 à 19:40, CarlosIsLazy<EMAIL_ADDRESS>a écrit :
;( no more bots now?
—
You are receiving this because you modified the open/close state.
Reply to this email directly or view it on GitHub


only run recursive fetch if dependency has build.zig

Only if a dependency has a build.zig should we try to recursively fetch (running zig build -Dfetch-only=true), otherwise dependencies that do not have a Zig build (such as C sources only) will cause zig build to look in the parent directory, leading to an infinite build issue.
Signed-off-by: Stephen Gutekanst<EMAIL_ADDRESS>

Note: you can hide whitespace in the diff on GitHub to see the change is rather simple: https://github.com/bootradev/zig-fetch/pull/4/files?diff=unified&w=1

Looks great, thank you for your contribution!


Add Hierarchy visualization of the hierarchy of functions of a script.

I think It would be very nice to be able to visualize a script in terms of some Tree Node structure similar to the Scene Node Tree.
Of course I'm not talking about a visual scripting tool, just a way to visualize how your script functions are layered and how they call each other.
Maybe looking like unreal blueprints where functions are just boxes and the input and output are just threads linking the function boxes, maybe they can be put in a sort of node hierarchy depending on who calls who functions, maybe looking like Blender node compositor.
Of course this would be just a visualizer of your code.

If there was a way for a plugin to get the AST of the opened script, that would be a fun tool to make.

There was #23807.

Feature and improvement proposals for the Godot Engine are now being discussed and reviewed in a dedicated Godot Improvement Proposals (GIP) (godotengine/godot-proposals) issue tracker. The GIP tracker has a detailed issue template designed so that proposals include all the relevant information to start a productive discussion and help the community assess the validity of the proposal for the engine.
The main (godotengine/godot) tracker is now solely dedicated to bug reports and Pull Requests, enabling contributors to have a better focus on bug fixing work. Therefore, we are now closing all older feature proposals on the main issue tracker.
If you are interested in this feature proposal, please open a new proposal on the GIP tracker following the given issue template (after checking that it doesn't exist already). Be sure to reference this closed issue if it includes any relevant discussion (which you are also encouraged to summarize in the new proposal). Thanks in advance!


typo

[Enter feedback here]
You have a typo.  It says browse r

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

ID: cae6d9d8-4a22-f41e-a43f-b88816ae4519
Version Independent ID: aad0e220-49d9-b9bc-10b7-ea0155af1d96
Content: AD FS Troubleshooting - Integrated Windows Authentication
Content Source: WindowsServerDocs/identity/ad-fs/troubleshooting/ad-fs-tshoot-iwa.md
Product: windows-server
Technology: ad-fs
GitHub Login: @billmath
Microsoft Alias: billmath

Thanks again for contacting Microsoft. We've submitted a documentation change based on your suggestion. Changes will be live after the next business day. This issue has been resolved and we are closing the issue. #please-close

#assign:xelu86


Add some dummy change

some testing for CI

:tada: This PR is included in version 1.1.2 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:

:tada: This PR is included in version 1.1.2 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


Add tfexample_decoder.Image support for shape_keys

Allow for the shape of an image decoded with the
tfexample_decoder.Image decoder to be determined by fields in the
serialized example being decoded. The functionality mirrors the use of
the shape_keys kwarg of the Tensor decoder.

Can one of the admins verify this patch?

I signed it!

Jenkins, test this please

@flacjacket any update on this?

@flacjacket any updates?

@rmlarsen Sorry for taking so long to get back to this. I have updated the tests to include 2d image tensors. However, it looks like the TF Test Suite check has been stalled overnight.

@tensorflow-jenkins test this please

@flacjacket Could you take a look at the failing tests:
FAIL: //tensorflow/contrib/slim/python/slim/data:tfexample_decoder_test (see /var/lib/jenkins/workspace/tensorflow-pull-requests-cpu/bazel-ci_build-cache/.cache/bazel/_bazel_jenkins/eab0d61a99b6696edb3d2aff87b585e8/execroot/org_tensorflow/bazel-out/local-opt/testlogs/tensorflow/contrib/slim/python/slim/data/tfexample_decoder_test/test.log).
INFO: From Testing //tensorflow/contrib/slim/python/slim/data:tfexample_decoder_test:
==================== Test output for //tensorflow/contrib/slim/python/slim/data:tfexample_decoder_test:
2017-11-14 00:39:20.997015: I tensorflow/core/platform/cpu_feature_guard.cc:137] Your CPU supports instructions that this TensorFlow binary was not compiled to use: SSE4.1 SSE4.2 AVX
............E.....EE..........
ERROR: testDecodeExampleWithNoShapeInfo (main.TFExampleDecoderTest)
Traceback (most recent call last):
File "/var/lib/jenkins/workspace/tensorflow-pull-requests-cpu/bazel-ci_build-cache/.cache/bazel/_bazel_jenkins/eab0d61a99b6696edb3d2aff87b585e8/execroot/org_tensorflow/bazel-out/local-opt/bin/tensorflow/contrib/slim/python/slim/data/tfexample_decoder_test.runfiles/org_tensorflow/tensorflow/contrib/slim/python/slim/data/tfexample_decoder_test.py", line 169, in testDecodeExampleWithNoShapeInfo
image_format='jpeg', image_shape=image_shape)
File "/var/lib/jenkins/workspace/tensorflow-pull-requests-cpu/bazel-ci_build-cache/.cache/bazel/_bazel_jenkins/eab0d61a99b6696edb3d2aff87b585e8/execroot/org_tensorflow/bazel-out/local-opt/bin/tensorflow/contrib/slim/python/slim/data/tfexample_decoder_test.runfiles/org_tensorflow/tensorflow/contrib/slim/python/slim/data/tfexample_decoder_test.py", line 93, in GenerateImage
num_pixels = image_shape[0] * image_shape[1] * image_shape[2]
IndexError: tuple index out of range
======================================================================
ERROR: testDecodeExampleWithShapeKeys (main.TFExampleDecoderTest)
Traceback (most recent call last):
File "/var/lib/jenkins/workspace/tensorflow-pull-requests-cpu/bazel-ci_build-cache/.cache/bazel/_bazel_jenkins/eab0d61a99b6696edb3d2aff87b585e8/execroot/org_tensorflow/bazel-out/local-opt/bin/tensorflow/contrib/slim/python/slim/data/tfexample_decoder_test.runfiles/org_tensorflow/tensorflow/contrib/slim/python/slim/data/tfexample_decoder_test.py", line 191, in testDecodeExampleWithShapeKeys
image_format='jpeg', image_shape=image_shape)
File "/var/lib/jenkins/workspace/tensorflow-pull-requests-cpu/bazel-ci_build-cache/.cache/bazel/_bazel_jenkins/eab0d61a99b6696edb3d2aff87b585e8/execroot/org_tensorflow/bazel-out/local-opt/bin/tensorflow/contrib/slim/python/slim/data/tfexample_decoder_test.runfiles/org_tensorflow/tensorflow/contrib/slim/python/slim/data/tfexample_decoder_test.py", line 93, in GenerateImage
num_pixels = image_shape[0] * image_shape[1] * image_shape[2]
IndexError: tuple index out of range
======================================================================
ERROR: testDecodeExampleWithShapeKeysList (main.TFExampleDecoderTest)
Traceback (most recent call last):
File "/var/lib/jenkins/workspace/tensorflow-pull-requests-cpu/bazel-ci_build-cache/.cache/bazel/_bazel_jenkins/eab0d61a99b6696edb3d2aff87b585e8/execroot/org_tensorflow/bazel-out/local-opt/bin/tensorflow/contrib/slim/python/slim/data/tfexample_decoder_test.runfiles/org_tensorflow/tensorflow/contrib/slim/python/slim/data/tfexample_decoder_test.py", line 208, in testDecodeExampleWithShapeKeysList
image_format='jpeg', image_shape=image_shape)
File "/var/lib/jenkins/workspace/tensorflow-pull-requests-cpu/bazel-ci_build-cache/.cache/bazel/_bazel_jenkins/eab0d61a99b6696edb3d2aff87b585e8/execroot/org_tensorflow/bazel-out/local-opt/bin/tensorflow/contrib/slim/python/slim/data/tfexample_decoder_test.runfiles/org_tensorflow/tensorflow/contrib/slim/python/slim/data/tfexample_decoder_test.py", line 93, in GenerateImage
num_pixels = image_shape[0] * image_shape[1] * image_shape[2]
IndexError: tuple index out of range

Ran 30 tests in 3.924s
FAILED (errors=3)

Ping @flacjacket

@flacjacket any luck with this?


Lookup Brooklyn entities from the catalog instead of loading them directly through their class names

@tbouron afraid it's more complex than this.  this will load catalog items but not java classes.  the old code will load java classes but not catalog items.  neither code will apply any locally-specified config, and is it even clear whether that config should be in tosca style or camp style?
worth pairing with @neykov to determine the nicest way to do what we need to do here, in a principled way!

@ahgittin I don't understand what you mean by "this will load catalog items but not java classes", could you tell me more about that? I tested this code and it worked as expected for Brooklyn and pure TOSCA nodes.
Also, we are talking about TOSCA YAML here, not CAMP. The CAMP YAML is used only to pass the A4C topology ID stored within ES.
Regarding the locally-specified config, do you refer to the config specified within the TOSCA YAML or the Brooklyn calatog entity?

in camp when we resolve a type we allow it to be something in the catalog or an underlying java type.  i wonder if we have to support the same resolution here.  or maybe it's enough simply to resolve against the catalog here -- thinking aloud all this means is that if there is a core java type we want accessible via tosca it must be in the catalog already (added either using camp syntax which does resolve java or by scanning).
i think the other criticism is valid however.  the tosca yaml given here may define some properties.  these need to be set as config keys on the spec we produce (ie overriding or extending what is declared on the entity catalog item), don't they?
@neykov does this seem right to you?

in camp when we resolve a type we allow it to be something in the catalog or an underlying java type. i wonder if we have to support the same resolution here

Isn't it what this method is doing? All catalog items and Java entities can be seen from the catalog (left menu, section entities), I assume everything was resolved.
I do agree about the configuration, I'm currently working on a generic ToscaNodeToEntityConvertor that will try to parse as much as possible a NodeTemplate.

@tbouron Having the Java entities in the catalog is different from loading java classes from the Brooklyn classloader. Populating the catalog by scanning is a convenience, not something to rely on. It's not required or guaranteed that all entities provided by Brooklyn will have catalog entries. For example I have scanning disabled to save on startup time. There are users that prefer to have a curated catalog instead. Also relying on CAMP for the TOSCA parser to do any useful work doesn't sound right (scanned items use CAMP as well).
Even if we decide to use CAMP plans to load Brooklyn provided types (which I am not against), there's still a use case for loading java types directly - using TOSCA plans with OSGi bundles (are there plans to support it?). When adding a new bundle there won't be an existing catalog item to load from, unless you first add it as a CAMP catalog item and then use it from TOSCA.

I addressed @neykov and @ahgittin comments with the commit. I also improved the node resolution by parsing each TOSCA node the same way with the ToscaNodeToEntityConverter.
Tested locally with pure TOSCA blueprint and A4C/Brooklyn hybrid blueprint.

@tbouron how much overlap there is with https://github.com/ahgittin/brooklyn-tosca/pull/7 ?

@andreaturli It overlaps a lot actually. From I saw with #7, I think my solution is more generic but I didn't write any unit tests

Hi.
#7 it is just a first step.
How could I help here?

@tbouron  I've extracted the type resolution logic from the CAMP parser in a common module in core, to be reused by TOSCA. See https://github.com/apache/incubator-brooklyn/pull/955 for the implementation and CampServiceSpecResolver for example usage.
I've also improved the catalog items recursive check logic, which means that you'll need to pass a list of already seen items. A change to PlanToSpecTransformer was needed so the implementation here will need an update as well.

@neykov Sure, I'll implement the changes once your PR will be merged.

@tbouron https://github.com/apache/incubator-brooklyn/pull/955 has been merged. Could you update this pull request?

@sjcorbett @neykov Done.


Create slice rules

Reordered the workflow to filter before slicing
Changed slice.smk from a checkpoint to a rule
Put slice_count as a config property
Automated creation of *-extracts.geojson file using slice_count
Changed *-extracts.geojson file to specify the directory we want files saved in (./results/slices)
Changed slice.smk to output a wildcard list of files to ./results/slices
Changed join_data.smk to expect input files based on expanding slice_count
Updated documentation to follow those changes
Updated unit tests to test all rules, including new rules

Closes #44
Closes #38


[opt](inverted index) Add NumInvertedIndexRemoteIOTotal statistics in profile #44863

https://github.com/apache/doris/pull/44863

Thank you for your contribution to Apache Doris.
Don't know what should be done next? See How to process your PR.
Please clearly describe your PR:

What problem was fixed (it's best to include specific error reporting information). How it was fixed.
Which behaviors were modified. What was the previous behavior, what is it now, why was it modified, and what possible impacts might there be.
What features were added. Why was this function added?
Which code was refactored and why was this part of the code refactored?
Which functions were optimized and what is the difference before and after the optimization?

run buildall


Cavern Survival Endlessly trying to attack door

In cavern survival it seems that things have changed so that you are no longer able to pass between the rooms, if you try you are teleported back to the middle of your room.  Unfortunately, you can still try to attack the doors.    Would be good if either you can't attack the doors, or if when you teleport to the middle your action is reset to idle.
As it is if someone has the basic attack nearest enemy strategy, they will attack their door first, then most likely the other door will be the closest thing, so they will attempt to attack it, entering into the endless loop of running to it.

How about now? Looks like I messed up the geometry on the mid rect when coding my out-of-bounds checker, but someone submitted a patch for me, which I just accepted.

Should this be closed now?


[text_shaper] DWrite minor cleanups.

Now that has_color is gone, all things fontsHasColor related can be safely removed, I assume? :)

Now that has_color is gone, all things fontsHasColor related can be safely removed, I assume? :)

yes, exactly. this can be included in a separated PR as it is touching more than just DWrite.


[deoplete] gocode decode error

Hello,
I get gocode decode error when simply typing fmt. No other information is printed in the error. Subsequently if I type . the suggestions appear as usual. Looks like stdout_data is empty? Also if stdout_data is empty this Exception will be thrown and then we will have another error inside the Exception handler's decode()
Also it would be useful to add the actual error when throwing an Exception, as well as add a config option for users to suppress errors overall?
(Edit: switching to mdempsky's gocode and removing the /tmp/gocode-daemon file on my system fixes the errors for me, but the issue seems valid still)

@nettrino Please test https://github.com/zchee/deoplete-go/pull/125.

Also it would be useful to add the actual error when throwing an Exception, as well as add a config option for users to suppress errors overall?

:help deoplete-source-attribute-is_silent


bigquery: add new parameter for Dataset.Create

The BigQuery Go package changed to require a metadata parameter.

Merging now to green the build.


[question ] will you condider support uv tiling and offset  for gltf2.0 format?

will you condider support uv tiling and offset  for gltf2.0 format? or  already  have done that?
current gltf2.0 do not support uv tiling and offset ,Don't know why ?
here what I want to know babylon.js tearm will consider these features?
and some extent information into gltf format to support that ?

Hello I think this question would be more appropriate on gltf repo:)
Babylon.js natively supports uv tiling and offset so as soon as gltf will support it we will enable it for our gltf loader

thank you for reply !


Bug in sortable lists official example

Describe the bug
Sortable lists example from the docs doesn't work as expected. The element being hovered on is moved instead of the element being dragged.
Reproduction
Official CodeSandbox
Steps to reproduce the behavior:

Go to the above sandbox.
Drag any of the cards.

Expected behavior
The element being dragged should be moved and not the element being hovered.
Screenshots
Notice that Write a JS Library card is being dragged, Write a README card is moving.

Desktop (please complete the following information):
Browser - firefox v88.0.1
OS - MacOS 11.2.3

Yea, we had the same problem in #3206, reproduced on Firefox and Chrome.

We are seeing this problem as well but in a production environment with a similar implementation. Noteably we have a sortable list where the drop target nested inside the drag source. I can confirm I'm seeing this same behavior on the demo in Safari as well. Brave, for whatever reason, seems to exhibit errors less often than the other browsers I've checked.

I'm getting the exact same behaviour. Any ideas on what could be the cause of this would be greatly appreciated.

Yeah i think we're having the same issue. Any fixes?

@AndreBastos23 Doesn't seem to be any besides using another library (or making a fork with a fix). There are a few other good replacement libraries, we moved over to react-movable. Only disadvantage we found was not being able to disable moves easily.

Yeah, we ended up going with react-beautiful-dnd instead. Less code and better looking dnd out of the box as well.

i think we're having the same issue. Any fixes?


Feature/contract token balance

on load actions fire to grab token balances and dispatch to state
reducer created to add each token balance

TODO:

Proper typing on some fns
refactoring some functions

@Velenir reverted and changed 2 things, looks good


Prepopulate.js does not work if Grappelli is installed

Because grappelli's version of prepopulate calls for grp.jQuery instead of django.jQuery
https://github.com/littleweaver/django-brambling/blob/master/brambling/templates/brambling/event/organizer/create.html#L16

This wouldn't be an issue because we don't use grappelli on the live server, but I kinda would like to eventually. And I think it's in the settings on our dev servers.

@harrislapiroff it seems like this is something @nmorduch could handle, since you're pretty full up on other things


Add Dockerfile

This Docker image deploys this repository as a website.
To build the image:
docker build -t why-make .
To deploy the website:
docker run -d -p 80:80 why-make
Now you can go to http://localhost to see why-make as a website!

Thanks, but that's not a goal of this repo!


Confusing naming of breakpoint mixin @include media-breakpoint-down('x')

I find the naming of the media-breakpoint-down mixin really confusing.
given the following css:
@media (max-width: 767px) {    color: green; }
i would expect to write the following:
@include media-breakpoint-down('md') {    color: green }
=> "everything less than 'md' should be green"
the way it really works is like this:
@include media-breakpoint-down('sm') {    color: green }
=> "everything less than 'sm' and everything less than 'sm' his next breakpoint should be green"
Kind regards,
Peter

How it works today is the correct behavior. Here's an example.
// Input
@include media-breakpoint-down(md) {
  .element { display: block; }
}

// Output
@media (max-width: 991px) {
  .element {
    display: block;
  }
}

Hi,
Although your example is correct, i'm not convinced that it is the correct behaviour.
Since the variable.scss states the following:
$grid-breakpoints: (
  xs: 0,
  sm: 576px,
  md: 768px,
  lg: 992px,
  xl: 1200px
) !default;

i would expect your example to output the following:
// Input
@include media-breakpoint-down(md) {
  .element { display: block; }
}

// Output
@media (max-width: 767px) {
  .element {
    display: block;
  }
}

Regards,
Peter


Feature/graylog

Description
Added graylog logger. LDAP login failure now sends error to logger.
Motivation
See issue #247
Link to any open issues here
Fixes:

Fixes #247

Changes:

Added gelf-pro to dependencies. Run npm ci
Added graylog properties to config.local.js
Created new logger.js with LoggerFactory that sets logger to either graylog or console depending settings in config.local.js

Tests included/Docs Updated?

[ ] Included for each change/fix?
[x] Passing? (Merge will not be approved unless this is checked)
[ ] Docs updated?

Extra Information/Screenshots

Is the graylog definition in config.local.js mandatory ?

No, it's not mandatory. If the LoggerFactory can't find the grayLog property in config.local it will log to console:
const grayLogEnabled = config.grayLog ? config.grayLog.enabled : false;
        if (grayLogEnabled) {
            this.logger = new GrayLogLogger();
            console.log("[+] Logger set to: GrayLog");
        } else {
            this.logger = new ConsoleLogger();
            console.log("[+] Logger set to: Console");
        }


hub.bash_completion.sh syntax error breaking Xsession

After installing the hub.bash_completion.sh to /etc/profile.d/ and rebooting I get the following error in my .xsession-errors file:
/etc/mdm/Xsession: Beginning session setup...
/etc/mdm/Xsession: 203: /etc/profile.d/hub.bash_completion.sh: Syntax error: "(" unexpected (expecting ";;")

I am on Linux Mint 17.2 and mdm fails to start. Once started manually, it comes up and I can log in but it logs me out immediately with the error above. I am using the pre-built v2.2.2 release of Hub.

Thanks for reporting. What is your version of bash?

Looks like 4.3-7ubuntu1.5 per http://packages.ubuntu.com/trusty-updates/shells/bash. That computer is at the office so I can't check in person at the moment but this should be accurate.

Hi @mislav.
I can confirm this issue:
$ bash --version
GNU bash, version 4.3.11(1)-release (x86_64-pc-linux-gnu)

Sorry I didn't get around to investigating this. This was a long time ago, and since then we didn't have similar reports, so I'm going to close this until someone has more information on how to proceed/what to fix.


cmd/go: Add some way to work on offline Go modules

Currently, it's hard to work with offline Go modules.
The problem is, I don't have internet at home, so there is no way for me to make a change to the Go module I'm working on, because I can't push it to Github, which means that any projects I'm working on will continue to use the old version of my Go module.
Ideally, there would be a command that, if the current directory was part of a Go module, would update the Go module cash with any new changes / versions to the current Go module.

Perhaps something like this example might help you?
$ go mod edit -replace foo.com/bar/baz=/home/go/src/foo.com/bar/baz
This would update your go.mod to refer to a local copy of foo.com/bar/baz instead of the usual one.

To get the modules offline in the first place, presumably you would git clone them (or similar).
This then reduces to making multiple interlocking edits to those modules.

Duplicate of #27542


Training slows down after few steps

@joonson I saw a very strange behavior during training. The Training slows down after a few steps (generally after 50% steps in the first epoch). The Hz drops from 300+ to less than 10. At this point the GPU utilization (of 6 or 7 out of 8 GPUs) goes to 100% from 90%. While the remaining 1 or 2 of the GPUs go down to 0% utilization. No matter what training configuration i set, i see the same behavior. In this way i have one epoch (on Voxceleb-2 dev set) in approximately 4 hours.
Environment:
Python Version: 3.6.9
[GCC 8.4.0]
PyTorch Version: 1.8.1+cu102
Number of GPUs: 8
I tried to use the torch.utils.bottleneck which displays:
--------------------------------------------------------------------------------
  cProfile output
--------------------------------------------------------------------------------
         15180044 function calls (15164020 primitive calls) in 9.575 seconds

   Ordered by: internal time
   List reduced from 2828 to 15 due to restriction <15>

   ncalls  tottime  percall  cumtime  percall filename:lineno(function)
      289    4.347    0.015    4.347    0.015 {method 'cuda' of 'torch._C._TensorBase' objects}
  1265289    1.193    0.000    1.951    0.000 /usr/lib/python3.6/posixpath.py:75(join)
        1    1.125    1.125    4.361    4.361 DatasetLoader.py:109(__init__)
  2442931    0.391    0.000    0.391    0.000 {method 'split' of 'str' objects}
  1266257    0.228    0.000    0.368    0.000 /usr/lib/python3.6/posixpath.py:41(_get_sep)
  2566149    0.166    0.000    0.166    0.000 {method 'append' of 'list' objects}
1309307/1309020    0.146    0.000    0.150    0.000 {built-in method builtins.isinstance}
   173830    0.140    0.000    0.147    0.000 /usr/lib/python3.6/glob.py:114(_iterdir)
  1269132    0.136    0.000    0.136    0.000 {method 'endswith' of 'str' objects}
  1276670    0.136    0.000    0.136    0.000 {method 'startswith' of 'str' objects}
  1271399    0.122    0.000    0.122    0.000 {built-in method posix.fspath}
        1    0.112    0.112    0.266    0.266 DatasetLoader.py:124(<listcomp>)
  1092543    0.099    0.000    0.099    0.000 {method 'strip' of 'str' objects}
        2    0.092    0.046    0.097    0.048 {method 'readlines' of '_io._IOBase' objects}
        1    0.064    0.064    0.742    0.742 DatasetLoader.py:59(__init__)

It seems like {method 'cuda' of 'torch._C._TensorBase' objects} is the slowest part.

Where do you think could be the bottleneck?
Any tips or suggestions on this?

@joonson It seems like the GPU is waiting for the CPU to provide data, most of the time. So i think the problem lies somewhere in the Dataloader. I tried to exclude the data sampler and fetch audio & label from the getitem() in the following way:
def __getitem__(self, index):
        audio = loadWAV(self.data_list[index], self.max_frames, evalmode=False)
        if self.augment:
                augtype = random.randint(0,4)
                if augtype == 1:
                    audio   = self.augment_wav.reverberate(audio)
                elif augtype == 2:
                    audio   = self.augment_wav.additive_noise('music',audio)
                elif augtype == 3:
                    audio   = self.augment_wav.additive_noise('speech',audio)
                elif augtype == 4:
                    audio   = self.augment_wav.additive_noise('noise',audio)
        return torch.FloatTensor(audio), self.data_label[index]

Also, in the trainSpeakerNet.py i removed train_sampler from train_loader, and i put shuffle=True:
    train_loader = torch.utils.data.DataLoader(
        train_dataset,
        batch_size=args.batch_size,
        num_workers=args.nDataLoaderThread,
        #sampler=train_sampler,
        pin_memory=False, shuffle=True,
        worker_init_fn=worker_init_fn,
        drop_last=True,
    )

With this change, the training is fast, as expected, but the accuracy never goes above 2%, and the VEER dropped to 40% from 6% of the previous epoch.
Do you think this it is OK to exclude the data sampler in this way?

It seems like the data pipeline DatasetLoader.py is the bottleneck but i have no idea how to find the exact location?

Well, i moved the data from HDD to SSD and it solved my problem. I didn’t know HDD can be such a bottleneck. Anyway, now on SSD the training is very smooth as expected, both on single- and multi-GPU devices.


[question] clair and harbor 1.2.0

what version of clair is distributed with harbor 1.2.0?

@choman just reopen it if any further issue.


Plugin freezes when parameter drop down is opened and then loses focus

This seems to happen only under certain circumstances, e.g. when the drop down is very narrow and you then either change the focus to another window or click on another UI element in Moony. The whole UI then freezes and the CPU usages spikes and Moony can only be killed.
Please let me know, if you are not able to reproduce it and I'll try to narrow down the circumstances when this happens.

Thanks for reporting, can reproduce this.

migrated to own forge https://todo.open-music-kontrollers.ch/~hp/issues/9


5913 account approval

https://app.clubhouse.io/augur/story/5913/account-approval

Hm, it seems like it would be preferable to have this dialog either on the account page, or as a prompt when you attempt to make your first trade / do anything that requires an approval.  IMO it shouldn't be a blocking modal on login; users should be able to browse the site without sending an approval tx.

Note: fixes are dependent on https://github.com/AugurProject/augur.js/pull/255 being merged first.

Looks good, merging.


REST API Architecture

Given that we're using a REST API to make our app, we might as well take advantage of there being a structured and repeatable way to handle receive and serve data. We should ideally be able to serve a linkinbio type site for multiple users. e.g.
https://our-site/taza -> taza linkinbio
https://our-site/jorge -> jorge linkinbio
https://our-site/elmer -> elmer linkinbio
https://our-site/starbucks -> starbucks linkinbio
implementing this kind of api would also allow us to expand on potential usecases and provide apps for coffee shop owners.
https://our-site/taza/apps -> user login with list of apps we can potentially provide and charge a few dollars for. Maybe something like cold brew logs tracker and site visitors tracker.
Best case scenario, we can make money from this, worst case we can put this on our resume and know we can make apps on our own.

@jhdz85 see above. We can talk about it when we meet again.

weekly/bi-weekly/monthly automated emails with the metrics too

Learning curve with how to do with React, multiple pages aka accounts. The POST data will be easy tho.

Learning curve with how to do with React, multiple pages aka accounts. The POST data will be easy tho.

Reading more about this. We are currently using the npm start command to create a small web server for us that runs the react front end app. Were going to want to be able to switch from using npm as our server to using nginx and use something like this to handle the routing redirects.
So our site should reflect something like this.
our-site.com -> landing page (whatever we want)
our-site.com/taza -> react axios request -> django links response -> react build page with links in response

API Version 0.0.1
The api return from the backend is going to look like this.
Key things to note are that each item displayed is a card. A card can have 2 sides.  Frontside is what the user will first see. If there is a backside, the card will have an animation indicating it can be clicked. Upon click, the card will turn and show its back sides
Card types and configs
Image: {size, cloud storage url, subtext, backside}
Text: {header text, subtext, backside}
Redirect: {url, display text}
Form: form type
size - length and width dimensions
cloud storage url - url to where image is stored
subtext - text in small font
header text - text in large font
url - href url
display text - display text with url as href
form type - contact form, email subscribe form
backside - Card or NA
{
     0 : {
               “front card” : {
                                       “card type” : “type”, “config” : {config for defined type}},
               “back card” : {
                                       “card type” : “type”, “config” : {config for defined type}}},
     1 : {
               “front card” : {
                                       “card type” : “type”, “config” : {config for defined type}},
               “back card” : NA}
      ....
 }

An example of this can look like this
{
     0 : {
               “front card” : {
                                       “card type” : “Image”, “config” : {"size": my_size, "cloud storage url": "https://google.cloud.storage.jamaica_image.com", subtext: "Carbonated Jamaica Fresca"}},
               “back card” : {
                                       “card type” : “Text”, “config” : {"header text": "Carbonated Jamaica", "subtext": "Made with these ingredients"}}},
     1 : {
               “front card” : {
                                       “card type” : “Redirect”, “config” : {"url": "http://venmo.com", "display text": "Venmo Us!"}},
               “back card” : NA}
      ....
 }


Fix Windows CI checks

Hello,
The latest version of Visual Studio (17.4) introduces a regression and causes issue for the compilation/linking of Pytorch (see https://developercommunity.visualstudio.com/t/thread_local-causing-fatal-error-LNK1161/10199441). Unfortunately this affects the github actions relying on windows-latest as they automatically include VS17.4.
Since the issue does not occur for earlier versions (17.3 and lower), downgrading temporarily the windows server version to 2019 solves the issue and allows building the library again. I have made the changes on the rust-bert repository and confirms this allows running the test on a windows machine as well.
I am opening this PR if you would be interested in fixing the Windows CI while the Microsoft team works on a fix. I will periodically check for a resolution of the issue on windows-latest on the rust-bert repo, I'd be happy to let you know/open a PR to upgrade again when the issue is fixed.
Related to https://github.com/LaurentMazare/tch-rs/issues/563

Great, thanks for the fix!