text:
Pull out models in dcpy

Most of this is commit 1
Organization
These modules are listed in order of availability. So lifecycle can reference connectors, which can reference utils, and all can reference models
models
Definition of simple types. The logic here is that we can separate out these sort-of data/metadata definitions so that they can be referenced without worrying about circular references. Specifically - when we dump config.json in edm-recipes, this is a model that really is specific to extract - it's the definition of a dataset being ingested/extracted into our pipelines. connectors.edm.recipes is involved with putting and fetching these, but really is a level down, logic-wise. Our librarian (see connectors section below). So this way, recipes connector can at least know that it's returning an extract object, without really knowing what extract really is (and not being able to access any of the actual extract code. Just model definitions)
utils
Fairly self-explanatory. More pure code
connectors
I think also decently self explanatory. Apis for interacting with entities, like our recipes data lake, edm-publishing, third party apis, etc. @alexrichey has described the thought of librarian code - each connector being able to push data, pull data, move data around. Doesn't need to know entirely the specifics of what's being moved, just how it's being moved
lifecycle
Business-logic! The highest-level definition of our processes that manage the "lifecycle" of our data products (and input datasets). Currently just consists of build/extract
Thoughts on naming
lifecycle
This was @alexrichey 's thought. I like it - thinking about the lifecycle of our data. Other random thoughts (not that I think these are better - just want to give fodder for brainstorming)

mart (just kidding)
business
operations
orchestration

lifecycle.extract
Replacing library. I liked extract at first, until I made a file within it called ingest that was really doing, very specifically, extraction. Really, this code is meant to do a few things

extract data from source - that is, quite literally, fetch it based on how its source and file format are defined. I would sort of like to call this subcomponent "extract"
convert to parquet (a transformation of sorts, also a "load" of sorts in some way (getting into a consistent analytical format)
transform data, with limited scope - reproject, clean data. Calling this "preprocessing" for now
archive in s3 (a load of sorts)

Overall, I do feel like "ingest" describes this most completely, since the word "extract" is more specific to pulling something out of something else, and "archive" is just that, the act of archival. Where "ingest" means to take in. However, extract is a bit more of an industry standard term.
Possible candidates for this module

extract
ingest
archive
library
collect/collection

Other commits:

Use enums in pydantic until serialization. There's some boilerplate here, at some point I want to put more time into figuring out how to do this a bit more gracefully, and make this behavior default for some class we define that extends BaseModel. But I'll save that for a follow up. I'm very happy about this functionality - we never have to stop and think about whether an enum is in fact an enum or its value in python, it's simply an enum. And then it's serialized to its string. Seems much more optimal to me than treating it as string upon object creation
update refs to dcpy
"
comment out something in extract while I figure out how to handle sources/connectors more gracefully
rename file metadata in extract to be more relevant - it's not really parquet metadata, it simply is a description of the format of the input file. This is fairly relevant to extract code, so maybe it can stay there, but it is a tad more general so I moved it up for now

Work moving forwards (after this PR) will largely be focused on moving some logic from extract to connectors (hence the name of this branch). But that seems a bit distinct from the meat of this, and this would be nice to get merged if we want to move in this direction

Love it! This all feels like the right direction. Re: the question of extract vs ingest, I would think that ingest is the combination of three steps: extract, transform, and archive. So maybe it makes sense to have that as the top level?
I think my only nit is maybe having lifecycle.build (singular) rather than builds? There were a few things that seems like they could be moved to different spots (e.g. Socrata servers) but I don't think we need to nail that down now.
This type of refactoring also makes me quite glad to have such a nice test suite

Love it! This all feels like the right direction. Re: the question of extract vs ingest, I would think that ingest is the combination of three steps: extract, transform, and archive. So maybe it makes sense to have that as the top level?
I think my only nit is maybe having lifecycle.build (singular) rather than builds? There were a few things that seems like they could be moved to different spots (e.g. Socrata servers) but I don't think we need to nail that down now.
This type of refactoring also makes me quite glad to have such a nice test suite

The builds thing annoys me too, but build is a special python folder generally so i think we'd see issues (it's gitignored right now)

@sf-dcp would still like your input, but going to get this merged for now, and we can iterate on how we want to architect extract/ingest code

Great reorg, @fvankrieken! Now it feels intuitive where everything lives. Agree on moving from extract to ingest. Don't love having builds instead of build, would be nice to replace

authors: alexrichey fvankrieken sf-dcp

repo: NYCPlanning/data-engineering


text:
DSD-1109: Dark mode nav category

Fixes JIRA ticket DSD-1109.
This PR does the following:

Adds dark mode color mode support for the Breadcrumbs, Link Types, and Pagination components.
Adds brand as a breadcrumbsType to the Breadcrumbs component.

This PR does not:

Include dark mode color mode support for the AlphabetFilter, because it has not yet been merged into develop.
Include the styling for "Mid page (before numbers shift)" in the Pagination component as seen here. This is because I don't believe it is currently present in light mode either. @bigfishdesign13 to check on this and let me know if it should be added in both scenarios.

How has this been tested?

Locally in Storybook.

Accessibility concerns or updates

None.

Checklist:

[ ] I have updated the Storybook documentation accordingly.
[ ] I have added relevant accessibility documentation for this pull request.
[ ] All new and existing tests passed.

Front End Review:

[ ] Review the Vercel preview deployment once it is ready.

The "Mid Page (before numbers shift) is available in both light and dark mode and the update looks fine:

In the figma designs, the "10" (which in the screenshot above would be "100") is colored white. I think that's a mistake, similar to how in the light mode version, the "10" is colored black.

source: gharchive/pull-request

authors: EdwinGuzman oliviawongnyc

repo: NYPL/nypl-design-system

license_type: permissive

license_source: github-api


text:
DSD-1633: spacing for FeaturedContent

Fixes JIRA ticket DSD-1633
This PR does the following:

Updates the FeaturedContent component by adjusting the spacing in the "fullScreen" variant to better align the component text content with the page text content.
NOTE: Nothing was really changed in FeaturedContent.mdx. Only the text wrapping was updated, so don't worry about reviewing that file.

How has this been tested?

local Storybook

Accessibility concerns or updates

n/a

Checklist:

[ ] I have updated the Storybook documentation accordingly.
[ ] I have added relevant accessibility documentation for this pull request.
[ ] All new and existing tests passed.

Front End Review:

[ ] Review the Vercel preview deployment once it is ready.

The mobile left alignment does look odd to me, but it is intended, right?

@EdwinGuzman Yes, that is intended.  It puts the text content in the component in line with the text content on the page.


text:
Implement Geometry component

Implement the Window component started by commit 6fd30ec4abee7a0df91f6ee9b6279a0cbb26e864.

I think this class should be purely virtual, with perhaps a draw, position, and rotation methods, to be able to make a distinction between lines and meshes. We could try and draw everything with the same Geometry class, but we would need to use GL_TRIANGLES for lines as well, which would be inefficient, as we would have to supply 4 points for every points. However, if we use GL_LINES instead, we would be able to send the graphics card only one point per point. The drawback is that changing the line width may be a bit trickier, since the function to do so is only supported by some graphics cards. However, the default line size usually good enough (It is what I used in Astraria). What do you think?
I also think we should plan out the graphics engine itself. With Astraria, I just added things as I needed them, and the result was not as comprehensive as I would have liked. But I believe if we define what the graphics engine should be able to do early on and design the components accordingly, we should be able to make a renderer with a a good design and that makes sense.

A class hierarchy can work, but it also comes with drawbacks.
Architecturally, I prefer we target an Entity Component System. Some explanations and examples:

Wikipedia - Entity–component–system
Gamasutra - The Entity-Component-System - An awesome game-design pattern in C++
GitHub - EntityX

This architectural pattern can help us retain a flat collection of functionality that we add piece-by-piece to every Actor or Entity in our system.

I've done some cursory reading over the websites you have linked, and I think I have only used the hierarchical method before. However, this system you mention seems very promising and it will be interesting to implement and learn. I will do some more research to understand how something like this is supposed to work.

After spending much time reading about Entity-component systems, I am believe I have reached a good understanding of them. I am ready to carry on development with this technique, but I am not sure what the design of the program should look like, and thus I am reluctant to add more classes. I think we should reach a consensus on this before carrying on.
@arrieta Could we hold a video-conference fairly soon?

source: gharchive/issue

repo: NablaZeroLabs/mxd

license: MIT


text:
Data Generation Code

Thanks for sharing your work. Could we access the code for data generation? Many thanks!

Thanks for sharing your work. Could we access the code for data generation? Many thanks!

The data generator (with some new features) will be made available soon after the NeurIPS2021 deadline. Thanks for your interest.

Hi! I'm also interested in the code for data generation. Could you tell me the current plan for code release? Thanks!

Hi thank you for being interested in the data generator, the authors are negotiating and planning on releasing the generation code in March. Thank you again for your patience.

That's great! I appreciate your effort for code release!!

Hi, thank you for your patience. We have now made the initial release of the data generator. Please check our new repo CLROC---more details and instructions are to come in the next few days.

Thank you very much for your effort for code release! The new repo looks great!! I'm looking forward to further updates.

authors: NanboLi liuyvchi tomotake-sasaki

repo: NanboLi/MulMON


text:
Update api_config.py

added the ability to pull the api key from a variable instead of the having to conduct a retrieve operation from a file. just another useful option :)

What's the use-case you'd like to solve for adding another keyword arg?  There are three ways one can update the API Key, two of which avoid defining it in source code.

Setting it directly by updating the global-state class attributes in ApiConfig.api_key = 'xxx'.  This is not recommended as many people commit API Keys and this is generally a bad idea.
Setting an API Key via env variable
Setting an API Key via a file; this one branches to be slightly more complicated as we also allow callers to define where this file lives, other than a defined default.

I'd prefer to avoid adding another means to set an API Key, especially one that doesn't guide you away from hard-coding the API Key in source.

Closing due to lack of feedback.
Happy to revisit and address any particular use-case you're looking to solve.

authors: couture-ql wouldayajustlookatit

repo: Nasdaq/data-link-python


text:
cv2.error

launcher.log
auto_derby.log
debug.zip

見 #270 #132
此外可參閲 FAQ #332 #330

authors: Small-Ku qwsdfvbnm

repo: NateScarlet/auto-derby


text:
About trained model's size

Hi, I have been training on your U-2-Net recently, but the weight file I trained has a size more than 400M, but the pre-trained model which you provide only 170M.
Did I do something wrong?  Shouldn't the weights of the network be the same?

You may check if you are saving all the info of the training process like model weigths, gradient, optimer, etc.

You may check if you are saving all the info of the training process like model weigths, gradient, optimer, etc.

谢谢回复！ 已经解决这个问题了。
另外，我现在正在利用U2net做分割，如果我想把输出改成0 1，和0  1标签对应，应该怎么修改？我给您看一下我的示例：
d0,d1,d2,d3,d4,d5,d6 = net(input)
out = d0.numpy()
out[out < 0.5 ] = 0
out[out > 0.4 ] =1
这样是否可以？

authors: NathanUA Overcautious


text:
demo doest work on iOS

LOG from device iPhone XS 64GB:
CONSOLE LOG file:///app/bundle.js:1273:15: SQLITE.ALL - Prepare Error 11
LOG from device iPhone XS 64GB: CONSOLE LOG file:///app/bundle.js:421:20: !!! SQLITE.ExecSQL Failed Prepare: 11 insert into names (name) values (?)
LOG from device iPhone XS 64GB: CONSOLE LOG file:///app/bundle.js:421:20: !!! SQLITE.ExecSQL Failed Prepare: 11 insert into names (name) values (?)
LOG from device iPhone XS 64GB:

@mirozahorak - Was there any errors before this?
Real device or Simulator?

In case people see this issue, my guess is they didn't have a db open or created.    I have tested the code many times since this point on iOS and Android.

authors: NathanaelA mirozahorak

repo: NathanaelA/nativescript-sqlite


text:
GhidraDevPlugin complains about JYTHON_VERSION_2_7

Describe the bug
When trying to compile GhidraDevPlugin, eclipse complains:
JYTHON_VERSION_2_7 cannot be resolved or is not a field

This is because there is a dependency on PyDev and it has dropped support for python 2 in https://github.com/fabioz/Pydev/commit/5e91251821eaee2b1e8f8e5c3eca89de97441fe5 (Aug 2022).
To Reproduce
Steps to reproduce the behavior:

Fresh install of Eclipse
Install deps
Attempt to build GhidraDevPlugin
See error

Expected behavior
A clean compilation.
Screenshots
NA
Attachments
NA
Environment (please complete the following information):

OS: Win 10 but I believe it is platform independent
Ghidra Version: Ghidra master branch (https://github.com/antoniovazquezblanco/ghidra/commit/bae8952aff4b60ef143252589c149288e3c0f742)
Ghidra Origin: Locally built from source

Additional context
NA

Thank you...I will update the documentation and relevant error/status messages which say what version of PyDev we support.

Thank you very much!

authors: antoniovazquezblanco ryanmkurtz

repo: NationalSecurityAgency/ghidra


text:
Improve usability of bulk import catalog skills

change "Per Page" dropdown to support 50 records
reduce vertical real estate of each row

PR: https://github.com/NationalSecurityAgency/skills-service/pull/1306

:+1:

authors: mosefer sudo-may

repo: NationalSecurityAgency/skills-service


text:
[iOS] Callback onMessage is never called on Firebase Messaging for iOS

Even though I receive notifications when app is in background, onMessage callback is never triggered, neither on foreground nor on background.
This works on android but not on iOS. I use iOS 15.

Even though I receive notifications when app is in background, onMessage callback is never triggered, neither on foreground nor on background. This works on android but not on iOS. I use iOS 15.

I'm having exacly the same issue, i can receive push when background, but not when foreground throght onMessage method..
searching the plugins code, i see that a need to set showNotificationsWhenInForeground to true.. but not work anyway...

@triniwiz I also ran into this issue and did some more testing to try to figure out the root cause of the problem. Here are a few of my findings.

If the app is in the background or closed, I get the notification. However, tapping on the notification to open the app doesn't trigger any callback (I think the previous firebase plugin calls the onMessage callback when this happens).
When the app is in the foreground, the notification isn't displayed and onMessage is never called (both with firebase().messaging().showNotificationsWhenInForeground set to true and false)
I tested with and without the Firebase Authentication plugin, both yielding the same result as above.

Further investigation, I found that only 3 methods from the Firebase Messaging plugin's AppDelegate is being called:

applicationDidRegisterForRemoteNotificationsWithDeviceToken
sharedInstance getter
observe

None of the methods from UNUserNotificationCenterDelegate is ever called.
I used the latest version that was released today (alpha36) to test these.
Hope that helps :)

Just a quick uninformed thought. Firebase relies on a lot of swizzling of the AppDelegate; does NativeScript do anything odd with its own handling of AppDelegate that might cause the swizzling to fail?

I think might be a matter of when firebase().messaging() is called since (in this demo it’s called before the app launches)  it sets up a couple things

@triniwiz It turns out to be the initialization issue. In an Angular project, initializing it in the main.ts resolves the issue. Below is the code I used to initialize the plugin.
// main.ts

import { firebase } from '@nativescript/firebase-core';
import '@nativescript/firebase-messaging';

const firebaseInit = firebase().initializeApp();
if (firebaseInit) {
  firebase().messaging();
}

@triniwiz It turns out to be the initialization issue. In an Angular project, initializing it in the main.ts resolves the issue. Below is the code I used to initialize the plugin.
// main.ts

import { firebase } from '@nativescript/firebase-core';
import '@nativescript/firebase-messaging';

const firebaseInit = firebase().initializeApp();
if (firebaseInit) {
  firebase().messaging();
}

What about apps that need messaging only after user authentication?

Please update to the latest version

@triniwiz I have a similar problem on iOS, even after installing the latest firebase-messaging plugin (1.0.0-alpha.41).
When testing the push notifications in Simulator using an apns file like this:
{
    "Simulator Target Bundle": "np.com.sagunrajlage.TestPushNotifications",
    "aps": {
        "alert": "Push Notifications Test",
        "sound": "default",
        "badge": 1
    }
}

(which is descriobed here https://betterprogramming.pub/how-to-send-push-notifications-to-the-ios-simulator-2988092ba931), then I see the notification in Simulator in all app states (foreground, background and closed).
BUT: the onMessage callback is never called and when tapping the notification, the onNotificationTap callback is not called as well.
When testing the push notifications on a real iOS device with our real server or sending a message via Firebase Console directly to the device, I do not even see a notification (no matter which state the app has) and no callback is called.
When doing the same stuff using the old nativescript firebase plugin, everything works as expected on iOS.
On Android the new firebase messaging plugin seems to work as expected.

@felixkrautschuk I didn't know about the sim notifications , I can see this being an issue since there are some checks in the code that may cause issues with the sim as for the issue with the real device does the app use any custom delegates by chance ?

Another thing please try calling firebase().initializeApp(); before the app launches

@triniwiz thanks for your reply. I uncommented the custom delegate. And I moved the firebase().initializeApp(); to the beginning of app.js but unfortunately this does not help.

Do you have a sample app of how your app is setup ? The best I can do w/o an app is point you to the demo app in this project

@triniwiz I believe it works now on my side, even with our custom app delegate and with initializing Firebase in the app launch event.
The only change: I added the following line after initializing firebase:
firebase().messaging().registerDeviceForRemoteMessages();
I did not find this method in the docs but my IDE suggested this method from the plugins API ;)

You should call that register after requesting permission

authors: DieOver DimitrisRK felixkrautschuk shirakaba triniwiz williamjuan027

repo: NativeScript/firebase


text:
The plugin removes NSPhotoLibraryUsageDescription string from plist

If the demo apps cannot help and there is no issue for your problem, tell us about it
When plugin is installed it removes NSPhotoLibraryUsageDescription string from plist added by nativescript-camera
Which platform(s) does your issue occur on?

iOS

Please, provide the following version numbers that your issue occurs with:

CLI: 3.4.1
Cross-platform modules: 3.4.0
Runtime(s): 3.4.1
Plugin(s):
nativescript-pro-ui: 3.3.0
nativescript-camera: 3.2.1
nativescript-imagepicker: 4.0.1

Please, tell us how to recreate the issue in as much detail as possible.

tns create imagepickertest --template tsc
tns plugin add nativescript-camera@3.2.1
tns build ios
now go to platforms/ios/imagepickertest/imagepickertest-Info.plist and find NSPhotoLibraryUsageDescription key. Under that key you should have a string with description saying "Requires access to photo library."
tns plugin add nativescript-imagepicker@4.0.1
tns build ios
do the same as in the step 4, the string should be empty.

Expected result the description should not be removed.
Is there any code involved?
Please follow the steps above.

Hi @terreb,
Each NativeScript plugin can have its own info.plist configuration in order to write the key-string values for permission which it will require. If you want to control the value for the desired key-string pair you should write it in the info.plist file in the App_Resources/iOS folder of your application. This value will be used with priority and will not be overwritten by a plugin.
Regards.

Hi @DimitarTodorov, thank you for your reply. I do agree each plugin may change info.plist configuration, but can you at least add a generic description there, rather than leaving its empty? Something like "the app requires access to your photo library" would do.
Regards.

Hi @terreb,
I added a message in the info.plist file for the required photo library access.
Regards.

@DimitarTodorov, thank you!
Regards.

authors: DimitarTodorov terreb

repo: NativeScript/nativescript-imagepicker


text:
ios not working

The plugin (and the example) work fine for android, but doesn`t show the photos in IOS.

@poisytu do you get any error messages?

No,just it doesnt open the photos i tried to debug but it seems okay...do you have a working example for ios?

This should be fixed in iOS with v0.0.4. Could you give it a try?

I am working on telerik platform, will you update it there soon :) thank you

authors: PanayotCankov mikeres0 poisytu


text:
Optimize page transitions

to use more appealing native transitions @myninka

They are native now. Event the back-swipe gesture works in iOS.

authors: PanayotCankov valentinstoychev


text:
Impossible to compile Android/ios

Hey, I got an angular web app and I want to transform it into mobile app with nativescript. I just followed this https://www.youtube.com/watch?v=WdhJZ8kGXvw and ran:
ng add @nativescript/schematics
But got this error when I ran tns run ios --bundle
Applications for platform iOS can not be built on this OS
# tns run ios

### Description

Runs your project on a connected iOS device or in the iOS Simulator, if configured. This is shorthand for prepare, build and deploy. While your app is running, prints the output from the application in the console and watches for changes in your code. Once a change is detected, it synchronizes the change with all selected devices and restarts/refreshes the application.

WARNING: You can run this command only on macOS systems. To view the complete help for this command, run $ tns help run ios

Not working too with tns run android --bundle
√ Local builds for iOS can be executed only on a macOS system. To build for iOS on a different operating system, you can use the NativeScript cloud infrastructure.
× The ANDROID_HOME environment variable is not set or it points to a non-existent directory. You will not be able to perform any build-related operations for Android.
 To be able to perform Android build-related operations, set the `ANDROID_HOME` variable to point to the root of your Android SDK installation directory.

× WARNING: adb from the Android SDK is not installed or is not configured properly.
 For Android-related operations, the NativeScript CLI will use a built-in version of adb.
To avoid possible issues with the native Android emulator, Genymotion or connected
Android devices, verify that you have installed the latest Android SDK and
its dependencies as described in http://developer.android.com/sdk/index.html#Requirements

× WARNING: The Android SDK is not installed or is not configured properly.
 You will not be able to run your apps in the native emulator. To be able to run apps
in the native Android emulator, verify that you have installed the latest Android SDK
and its dependencies as described in http://developer.android.com/sdk/index.html#Requirements

× Cannot find a compatible Android SDK for compilation. To be able to build for Android, install Android SDK 28 or later.
 Run `$ sdkmanager` to manage your Android SDK versions.

× You need to have the Android SDK Build-tools installed on your system. You can install any version in the following range: '>=23 <=28'.
 Run `$ sdkmanager` from your command-line to install required `Android Build Tools`. In case you already have them installed, make sure `ANDROID_HOME` environment variable is set correctly.

× Error executing command 'javac'. Make sure you have installed The Java Development Kit (JDK) and set JAVA_HOME environment variable.
 You will not be able to build your projects for Android.
To be able to build for Android, verify that you have installed The Java Development Kit (JDK) and configured it according to system requirements as
 described in http://docs.nativescript.org/setup/ns-cli-setup/ns-setup-win.html#system-requirements

× WARNING: The Java Development Kit (JDK) is not installed or is not configured properly.
 You will not be able to work with the Android SDK and you might not be able
to perform some Android-related operations. To ensure that you can develop and
test your apps for Android, verify that you have installed the JDK as
described in http://docs.oracle.com/javase/8/docs/technotes/guides/install/install_overview.html (for JDK 8).

I guess I forgot something

Try tns doctor

authors: Araknos Swoox

repo: NativeScript/nativescript-schematics


text:
Adding another language

i have js code

const natural = require('natural')
const speakeasy = require('speakeasy-nlp')
const genify = require('thunkify-wrap').genify
const fs = require('fs')

const classifier = new natural.BayesClassifier()
natural.BayesClassifier.load = genify(natural.BayesClassifier.load)

I need all this to work with Russian letters. Help with this please.
Example of the Russian language if required: Привет

const classifier = new natural.BayesClassifier()
You need to pass a stemmer to BayesClassifier.
And for Russian it is named PorterStemmerRu. So you could say something like

var natural = require('natural');
var stemmer = natural.PorterStemmerRu();
const classifier = new natural.BayesClassifier(stemmer);

Under the hood the Russian stemmer also uses a Russian tokenizer as well. So classifying texts for Russian should work like this.

authors: Hugo-ter-Doest LavrenkovNV

repo: NaturalNode/natural

license: mit

license_source: bigquery


text:
Not working on Transmission 4.0 beta 3

Tried to download today's blocklists file through Transmission, but it keeps on loop trying to process the file.

Can you post the error logs?

I don't know how to show logs or the debug output in the desktop macOS version. Tried launching the client from Terminal with --debug and --verbose and looking in the casual folders for logs, but no luck.
But seems like an issue reproducible from the Transmission beta 3.0 up to latest nightly. I tried the latest stable version 3.0, and it downloaded and processed the blocklist file correctly. Although it only shows 80k IPs instead of 451k when I open the nightly/beta3 version right after. And if I open the version 3.0 again, it shows 3M IPs. All seems a little fluky.

Good, problem solved.
If you are using transmission in GUI, you can try click Help, and then select Message Log to show the logs.

is Transmission-BT 4.0.6 stable supported?

authors: Naunter lpla petesimon

license: Unlicense


text:
accidentally turned off the computer, now I can not continue the synchronization of the wallet

the computer turned off, did not manage to synchronize the wallet
BUG REPORT

Sia version:
Sia Daemon v1.3.2
Git Revision 72938f5
Loading...
(0/6) Loading siad...
(1/6) Loading gateway...
(2/6) Loading consensus...
(3/6) Loading transaction pool...
(4/6) Loading wallet...
(5/6) Loading host...
(6/6) Loading renter...
Finished loading in 1.0870803 seconds
OS: windows

There is no error message here, all the data you've included is normal output.
Try this to find your error message: https://gist.github.com/tbenz9/8066d74853ab28c23bd7bc1d3c7cdeda

repo: NebulousLabs/Sia


text:
Svg tag support

I was messing around with inserting an svg file directly into the jsx syntax and noticed that the svg tag isn't supported:
[plugin:transform-literal-html] Invalid tag name: svg

/home/torrin/Repos/Personal/OpenGig.org/frontend/pages/Landing.jsx

    at jsxName (file:///home/torrin/Repos/Personal/OpenGig.org/node_modules/destam-dom/transform/htmlLiteral.js:32:11)
    at parse (file:///home/torrin/Repos/Personal/OpenGig.org/node_modules/destam-dom/transform/htmlLiteral.js:145:3)
    at transformBabelAST (file:///home/torrin/Repos/Personal/OpenGig.org/node_modules/destam-dom/transform/htmlLiteral.js:373:17)
    at transform (file:///home/torrin/Repos/Personal/OpenGig.org/node_modules/destam-dom/transform/htmlLiteral.js:382:2)
    at TransformPluginContext.transform (file:///home/torrin/Repos/Personal/OpenGig.org/vite.config.js.timestamp-1730645392059-eb7ae0b1cd3de.mjs:12:27)
    at PluginContainer.transform (file:///home/torrin/Repos/Personal/OpenGig.org/node_modules/vite/dist/node/chunks/dep-Cyk9bIUq.js:49086:19)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async loadAndTransform (file:///home/torrin/Repos/Personal/OpenGig.org/node_modules/vite/dist/node/chunks/dep-Cyk9bIUq.js:51918:27)
    at async viteTransformMiddleware (file:///home/torrin/Repos/Personal/OpenGig.org/node_modules/vite/dist/node/chunks/dep-Cyk9bIUq.js:61870:24

I wanted to have the svg inside a jsx component so that the styles/transform/other svg stuff could be reactive, I think this would make a good feature, but is there a better approach to something like this?

Take a look at the examples:

https://github.com/Nefsen402/destam-dom/blob/main/examples/svg.jsx
https://github.com/Nefsen402/destam-dom/blob/main/examples/asteroids.jsx


text:
🛑 Becpl Angular UI is down

In 68f0345, Becpl Angular UI ($BECPL_ANGULAR_URL) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Becpl Angular UI is back up in c0ef3d8 after 5 minutes.

repo: NehalDamania/becpl-uptime


text:
🛑 Becpl Angular UI is down

In 89f4906, Becpl Angular UI ($BECPL_ANGULAR_URL) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Becpl Angular UI is back up in 2ce1517 after 13 minutes.


text:
🛑 Becpl Angular UI is down

In f95d5ac, Becpl Angular UI ($BECPL_ANGULAR_URL) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Becpl Angular UI is back up in 2671623 after 16 minutes.


text:
🛑 Becpl Angular UI is down

In 69d59be, Becpl Angular UI ($BECPL_ANGULAR_URL) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Becpl Angular UI is back up in 07a7525 after 7 minutes.


text:
Souci dans les spoilers - Markdown de Lien ne fonctionne pas

Lorsqu'on déploie les spoilers sur la page, les liens ne s'affichent pas. Par exemple sur le fichier markdown on a :

Tandis que sur le rendu final on a :

Le problème était causé par la ligne
spoiler.innerText = spoiler.innerText.substring(2);

lors de la génération des spoilers. Elle transformait le contenu HTML en contenu texte, ce qui avait pour effet d'annuler toutes les balises internes et de ne conserver que le texte.
Elle a été remplacée par
spoiler.innerHTML = spoiler.innerHTML.replace("<p>! ", "<p>");

qui conserve bel et bien toutes les propriétés HTML.

authors: HeloiseLalande RedNeath

repo: NeiagariCinematicUniverse/NcuWiki


text:
🛑 Neko is down

In 739557c, Neko (https://neko.games) was down:

HTTP code: 502
Response time: 9454 ms

Resolved: Neko is back up in 7f72814 after 11 minutes.

repo: NekoGamesRepo/status


text:
Release contract code v1

According to our roadmap, we should release v1 of the NekoHit Project. Now the contract code is stable. Though there are many features we want to add (like custom milestone weight, vote to change deadline, etc.), we have to release the first version by the end of October. The rest of the features can be discussed in the future and released in future versions.
So far, we have the following items in this release:

We implemented a standard and plain (means nothing special) NEP-17 token called CAT, which should be used as the main currency when doing the sponsorship.
We implemented a smart contract called WCA, which offers the project management service for users.
In the WCA contract, we implemented declare, stake, purchase, update (finish milestones and the project), and refund.
The declaration of a project involves milestones. Now every milestone is equal, which means the creator cannot set which milestone is more important.

This release is the first release that will be deployed to the main net, and it is the extension of the hackathon submit. During this period of time, we reworked the storage layout, and refactor codes for saving gas, implement documents. Didn't add too much feature, but the code base is ready to go.
The release between v1 and v2 will break the storage, so we should deploy a new copy instead of update/upgrade the existing one when releasing v2. This might cost additional gas (10 GAS required to deploy contract). But after we deploy v1, we still can fix bugs and release v1.1, v1.2, etc.
For the process of releasing:

Tag the code with v1-RC1, this code will become the candidate of this release.
Then we deploy that version on the test net. Then we have a test event.
If we find bugs, fixed it and repeat step 1 and 2 with v1-RC2
If everything is good, we tag the last release candidate as v1.0
Deploy v1.0 to both test net and main net.

RC checklist:

[ ] GitHub Wiki, make sure it's consistent with code.
[ ] Readme, make sure everything is up to date.
[ ] Review code, make sure no big issue or flaw is left in the code.
[ ] Helper functions. Make sure it's working great with the target network.

The v1-RC1 has been updated on the test net.

The v1.0.0 has been deployed and released. Closing this issuse.

repo: NekoHitDev/Ritmin


text:
[Feature Request] support QR-based hardware wallet

It's safe when putting the secret to an offline phone with some apps that can sign data.
Could we support transport the generated tx body from online neoline to a offline neoline and then transport the signed tx back to online neoline.
The feature has been integrated by metamask (online) and AirGap Vault (offline) for ethereum.

add a way to add hardware account by scaning qrcode (contains a publicKey)
popup a window for sign when sign is needed (contains a QRCode encoding the transaction) and a button for sacnning the result generated in step3
offline APP sign the transaction and encoding the witness or the whole transaction to a QRCode
check the sign, send the transaction out

repo: NeoNEXT/neoline


text:
Discovery gateway 整合到现有系统，nacos配置问题

Discovery gateway 我整合进现有系统，我在nacos添加  后，影响到nacos查找服务(503 SERVICE_UNAVAILABLE "Unable to find instance for xxx")。因为现有系统已经有gateway nacos配置 。这个要怎么解决

data-id 必须是gateway的 application name吗？

如果 data-id 用application name，就会如下报错
2023-05-06 17:23:33.971 [reactor-http-epoll-12] ERROR c.w.gateway.server.exception.JsonExceptionHandler[38] - 503 SERVICE_UNAVAILABLE "Unable to find instance for xxx"
org.springframework.cloud.gateway.support.NotFoundException: 503 SERVICE_UNAVAILABLE "Unable to find instance for xxx"
at org.springframework.cloud.gateway.support.NotFoundException.create(NotFoundException.java:46)
Suppressed: reactor.core.publisher.FluxOnAssembly$OnAssemblyException:
Error has been observed at the following site(s):
|_ checkpoint ⇢ springfox.boot.starter.autoconfigure.SwaggerUiWebFluxConfiguration$CustomWebFilter [DefaultWebFilterChain]
|_ checkpoint ⇢ org.springframework.cloud.gateway.filter.WeightCalculatorWebFilter [DefaultWebFilterChain]
|_ checkpoint ⇢ org.springframework.boot.actuate.metrics.web.reactive.server.MetricsWebFilter [DefaultWebFilterChain]
|_ checkpoint ⇢ HTTP GET "/xxx/xxx/info?type=message&userId=1434690212155564033&t=1683365124972" [ExceptionHandlingWebHandler]
Stack trace:

好像和swagger相关

repo: Nepxion/Discovery


text:
RFC9252 Implementation

this PR is based on #92

Thank you @mxyns  for your PR, I'm reviewing it. But can you please apply formatting first cargo fmt -- --config format_code_in_doc_comments=true --config wrap_comments=true --config imports_granularity=Crate

authors: ahassany mxyns

repo: NetGauze/NetGauze


text:
FR: Volvo Trucks Magazine Sub navigation

Agile requirement
As a business owner I want my page to have a top bar as in the design https://www.figma.com/file/SDLKNiRf0s5Jbhqn9TJZ6H/Magazine?type=design&node-id=439-13305&mode=design&t=kL4IVGVfxBx0On3x-0.
Description
Update the header block to show the new bar if we are under the magazine area. The elements of this bar are:

Subtitle
Call to action

Acceptance criteria

The editors can define in the header block the text for the subtitle and the link and text of the CTA
This will only be loaded in the area the editors decide to be loaded

Future enhancement

Check if the user has subscribed already and do not show the CTA to that user

Kamino cloned this issue to hlxsites/vg-volvotrucks-us

repo: Netcentric/vg-volvotrucks-us-rd


text:
Is there any way to count particular types of error occurred this many times?

I am using HystixObservable command in my rest client. I want to count the HttpServerErrorException occurred during rest operation.
Thanks in advance.

Have you looked at the Wiki?
Hystrix generates a large amount of metrics, and you have many choices on how to consume them.  One such way is the Dashboard: https://github.com/Netflix/Hystrix/wiki/Dashboard

repo: Netflix/Hystrix


text:
WorkflowTask deserialisation initialise empty lists

Hello,
I noticed when deserialising WorkflowTask that all collections are initialised as empty collections even when the field in the json is absent. This is due to the fact that the empty constructor initialises them. This is present in all collections in the model.
It makes it impossible to differentiate the case when the json field is actually an empty array and the case when it is absent.
Do you know if there would be any impact if we remove these initialisations? Or do you have any other solution that could help for this issue?

@Stephane90 Do you have an example for when it would be useful to have null fields over empty fields? Having empty collections helps avoid null checks and we can infer there are no values if the list is empty anyways.

repo: Netflix/conductor


text:
Can't see a new user

Describe the bug
In the newly deployed locally Dispatch app, where the dispatch-local image was built from Dockerfile pulled today, I created a new organization named Amplify with a user (rlevit@amplify.com) who is an admin of the default org. I logged out and changed URL to http://localhost:8000/amplify/auth/register and registered with a new user test@amplify.com. I ran docker exec -it dispatch-web-1 bash -c 'dispatch user update --role Owner --organization Amplify test@amplify.com' command and got User successfully updated response.
When I log in to Dispatch as rlevit@amplify.com and go to Members I see my user but don't see the test user. If I switch to Amplify org I don't see any users. If I log in to Amplify org with the test user I don't see that user in Members at all. I see the same thing in the API calls - the test user is not showing up regardless which user auth bearer token I use (rlevit or test). With Dispatch running from the image created by the install.sh I was able to see all users in the API and UI.
Expected behavior
All users appear and the Members section.
Screenshots

@rlevit thanks for the report. I'll see if I can repro and circle back probably not until next week. Sorry for the inconvenience this is causing.

@rlevit https://github.com/Netflix/dispatch/pull/2336 should've fixed this issue. Let me know if that's not the case.

@mvilanova I redeployed Dispatch from the latest master and now can see all users registered to a non-default org. Thank you for fixing this.

@mvilanova, oh, sorry, I have to take the previous message back.
After the login I switched to Amplify org and went to "Settings->Members" and I saw all the user I didn't see before. But I didn't realized that I still was in the "Default" org. So now looks like the org switcher is not working because no matter how many times I click on the arrows sign next to the desired org it won't switch to it. To actually switch to Amplify org I had to replace "default" with "amplify" in the URL and now can't go back to the "default" org using the org switcher. Sorry about confusion. I can make a screen recording to demonstrate the issue.

Great, thank you. Also, after switching to the Amplify org I couldn't see users registered to that org, meaning the issue persists.

I haven't forgotten about this one. I should be able to resume work on it soon.

@mvilanova. are you looking for contributors? If so, I'd like to work on this issue

@vijal-patel sure, go ahead. Thanks!

@rlevit I'm not able to replicate the missing user issue. Can you provide the exact steps you used?
I've tried:

running everything with docker (did not use install.sh)
running dispatch with python only

I see @mvilanova is already working on the organization switch issue #2599

authors: mvilanova rlevit vijal-patel

repo: Netflix/dispatch


text:
Eureka with AWS ECS Fargate

I am deploying spring cloud application onto AWS ECS.
I updated my eureka client with overriding EurekaInstanceConfigBean as to register with IP address.
It is working well with launch type EC2 but failing with Fargate.
Here is my configuration. I can see null values in the system logs.
@Bean
	public EurekaInstanceConfigBean eurekaInstanceConfig(InetUtils inetUtils) {
		  EurekaInstanceConfigBean b = new EurekaInstanceConfigBean(inetUtils);
		  AmazonInfo info = AmazonInfo.Builder.newBuilder().autoBuild("eureka");
		  b.setDataCenterInfo(info);
		  info.getMetadata().put(AmazonInfo.MetaDataKey.publicHostname.getName(), info.get(AmazonInfo.MetaDataKey.publicIpv4));
		  System.out.println("*********************Public Host Name*******************************   " + info.get(AmazonInfo.MetaDataKey.publicHostname));
		  System.out.println("*********************Public IPV4 *******************************   " + info.get(AmazonInfo.MetaDataKey.publicIpv4));
		  System.out.println("*********************Local IPV4*******************************   " + info.get(AmazonInfo.MetaDataKey.localIpv4));
		  b.setHostname(info.get(AmazonInfo.MetaDataKey.publicHostname));
		  b.setIpAddress(info.get(AmazonInfo.MetaDataKey.publicIpv4));
		  b.setNonSecurePort(port);
		  return b;
	}

Sorry for the late reply. How would I get system information in other ways? Can you please suggest.

Fargate platform version 1.1 seems to support metadata for ECS.
See anouncement.
I think that eureka-client does not support this.
See AmazonInfo.java
In case anyone already has implemented this could you please point me to that. Anyway, it would be great to have eureka-client to support ECS (and especially Fargate).
One way to get metadata is to do it as described here.

I created a sample  how to do this.
Hope this helps!

Thank you @jussiseppala. I will look into it. We are using ECS with EC2 for now.

@jussiseppala I am running eureka on fargate with public IP disabled for ECS tasks. But, clients are registered on eureka server with with a public IP, which seems to be of underlying Fargate infrastructure. Any help with this would be really helpful

Was this case resolved, can somebody post on how to get the container ip and port from the ecs containers (services) and send it to Eureka Server (ecs container).

@Sridharc20 we are using ECS with EC2. You can refer to @jussiseppala the last comment to get the container IP.

Can we reopen this please?  I would like to use Eureka on a Fargate cluster and it would be nice if Eureka supported this out of the box without me having to do hackity hacks.
I think I almost have it figured out, I could open a PR once I do.  I am using Spring Cloud though...but my understanding is that configuration for integrating Eureka with Fargate should live here and not as a part of Spring Cloud project.

Reopened, happy to accept a PR with any examples.

@mjohns39 did you made it?

@troshko111 I am facing same issue when I register my micro service with euraka it pick wrong ip address. I saw the sample created by @jussiseppala but that will make the code platform specific and I have to replicate that configuration in every micro service. Please let me know how we can fix this issue. If it's already fix please let me know the fix version.

@shahbaz07 did you get it?

@ChristianEGB  I didn't check this but I fixed this by adding below code in application class. But if it's fixed already please let me know the fixed version.

@Bean
open fun eurekaInstanceConfig(inetUtils: InetUtils?): EurekaInstanceConfigBean? {
inetUtils?.let {
val config = EurekaInstanceConfigBean(inetUtils)
var ip: String? = null
try {
ip = InetAddress.getLocalHost().hostAddress
} catch (e: UnknownHostException) {
e.printStackTrace()
}
config.ipAddress = ip
config.nonSecurePort = getPort()
config.isPreferIpAddress = true
return config
}
return null
}

open fun getPort(): Int {
    return 0
}

@shahbaz07 Will check and I will let yoo know, thanks.

@ChristianEGB Thanks.

@ChristianEGB is there any update on this?

Did anyone figure out how to fix this issue?

@shahbaz07 @anirbandutta9 in my case I removed Eureka from my infra and I replaced that with the service discovery that AWS ECS already has.

Yes.  I figured it out.  Apologies, I completely forgot to push a PR.  I will try and do a gist or something at least today...and try to push PR this weekend

Yes. I figured it out. Apologies, I completely forgot to push a PR. I will try and do a gist or something at least today...and try to push PR this weekend

@mjohns39  Much appreciate ..thanks

@shahbaz07 @anirbandutta9 in my case I removed Eureka from my infra and I replaced that with the service discovery that AWS ECS already has.

@shahbaz07  We will see if we can implement service discovery in our environment .. Did you get any reference articles on how to do it?

Here is a gist:  https://gist.github.com/mjohns39/e1f8881620292329b408465a982dc7b8.  I also added the POJOs you'll need.  I want to mention that I grabbed this from somewhere in the wild and just had to change a few things to make it work for me...I will try to find the original author and link to them to give the credit they deserve

Eureka with ECS  https://medium.com/@bhanu.pratap/service-discovery-in-spring-cloud-using-netflix-eureka-in-aws-fargate-2c5c294fee5c

repo: Netflix/eureka


text:
1.x EIPManager: if instance is not associated with one EIP, do not try to unbind

Instead, throw exception
Reason: DescribeAddressRequest with null public ip returns list of all public address
If instance is not associated with one eip, Eureka will dissociate first ip on list which does not belong to the instance

Quick check using python awscli

aws ec2 describe-addresses --public-ips | jq '.Addresses[0]'
{
"InstanceId": "i-xxxxx",
"PublicIp": "xxx.xxx.xxx.xxx",
"Domain": "standard"
}

NetflixOSS » eureka » eureka-pull-requests #589 SUCCESS
This pull request looks good

@hieurl thanks for the pull. Looking at the change, unbindEIP() is currently really used at shutdown time, so a more optimized behaviour when unbindEIP() is called when no EIP is bound, is to perhaps log.info() and then just return from the function, instead of throwing an RuntimeException. What do you think?

@qiangdavidliu seem reasonable to me. I'm going to push a commit.

NetflixOSS » eureka » eureka-pull-requests #592 SUCCESS
This pull request looks good

@hieurl thanks for the contribution.


text:
making the lock key separator in PseudoLockBase configurable

This is useful for places where cluster names needs to include the "_" char (e.g. to interface with other automation systems).

@Randgalt would you mind taking a look at this pull? It seems like exhibitor should be able to take a different key separator aside from the default "", and this would help with internal automation that also uses "" as a special keyword.

repo: Netflix/exhibitor


text:
Missing dependencies for gs datastore

If you configure METAFLOW_DEFAULT_DATASTORE: "gs" (and of course set up a GCS bucket as datastore root) and then run the metaflow service, metaflow fails on some google package imports.
AFAIK this is impacting DAG and log viewing in the UI, for anyone using GCP.
Example error (copied from UI)
Traceback (most recent call last):
  File "/usr/lib/python3.7/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/usr/lib/python3.7/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/root/services/ui_backend_service/data/cache/client/cache_server.py", line 307, in <module>
    cli(auto_envvar_prefix='MFCACHE')
  File "/opt/latest/lib/python3.7/site-packages/click/core.py", line 1128, in __call__
    return self.main(*args, **kwargs)
  File "/opt/latest/lib/python3.7/site-packages/click/core.py", line 1053, in main
    rv = self.invoke(ctx)
  File "/opt/latest/lib/python3.7/site-packages/click/core.py", line 1395, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/opt/latest/lib/python3.7/site-packages/click/core.py", line 754, in invoke
    return __callback(*args, **kwargs)
  File "/root/services/ui_backend_service/data/cache/client/cache_server.py", line 301, in cli
    Scheduler(store, max_actions).loop()
  File "/root/services/ui_backend_service/data/cache/client/cache_server.py", line 199, in __init__
    maxtasksperchild=512,  # Recycle each worker once 512 tasks have been completed
  File "/usr/lib/python3.7/multiprocessing/context.py", line 119, in Pool
    context=self.get_context())
  File "/usr/lib/python3.7/multiprocessing/pool.py", line 176, in __init__
    self._repopulate_pool()
  File "/usr/lib/python3.7/multiprocessing/pool.py", line 241, in _repopulate_pool
    w.start()
  File "/usr/lib/python3.7/multiprocessing/process.py", line 112, in start
    self._popen = self._Popen(self)
  File "/usr/lib/python3.7/multiprocessing/context.py", line 277, in _Popen
    return Popen(process_obj)
  File "/usr/lib/python3.7/multiprocessing/popen_fork.py", line 20, in __init__
    self._launch(process_obj)
  File "/usr/lib/python3.7/multiprocessing/popen_fork.py", line 74, in _launch
    code = process_obj._bootstrap()
  File "/usr/lib/python3.7/multiprocessing/process.py", line 297, in _bootstrap
    self.run()
  File "/usr/lib/python3.7/multiprocessing/process.py", line 99, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/lib/python3.7/multiprocessing/pool.py", line 121, in worker
    result = (True, func(*args, **kwds))
  File "/root/services/ui_backend_service/data/cache/client/cache_worker.py", line 29, in execute_action
    execute(tempdir, action_cls, request)
  File "/root/services/ui_backend_service/data/cache/client/cache_worker.py", line 56, in execute
    invalidate_cache=req.get('invalidate_cache', False))
  File "/root/services/ui_backend_service/data/cache/get_log_file_action.py", line 143, in execute
    results = {**existing_keys}
  File "/usr/lib/python3.7/contextlib.py", line 130, in __exit__
    self.gen.throw(type, value, traceback)
  File "/root/services/ui_backend_service/data/cache/utils.py", line 130, in streamed_errors
    get_traceback_str()
  File "/root/services/ui_backend_service/data/cache/utils.py", line 124, in streamed_errors
    yield
  File "/root/services/ui_backend_service/data/cache/get_log_file_action.py", line 136, in execute
    current_hash = log_provider.get_log_hash(task, logtype)
  File "/root/services/ui_backend_service/data/cache/get_log_file_action.py", line 270, in get_log_hash
    return get_log_size(task, logtype)
  File "/root/services/ui_backend_service/data/cache/get_log_file_action.py", line 177, in get_log_size
    return task.stderr_size if logtype == STDERR else task.stdout_size
  File "/opt/latest/lib/python3.7/site-packages/metaflow/client/core.py", line 1317, in stdout_size
    return self._get_logsize("stdout")
  File "/opt/latest/lib/python3.7/site-packages/metaflow/client/core.py", line 1438, in _get_logsize
    return self._log_size(stream, meta_dict)
  File "/opt/latest/lib/python3.7/site-packages/metaflow/client/core.py", line 1525, in _log_size
    ds_type, ds_root, stream, attempt, *self.path_components
  File "/opt/latest/lib/python3.7/site-packages/metaflow/client/filecache.py", line 148, in get_log_size
    return task_ds.get_log_size(LOG_SOURCES, logtype)
  File "/opt/latest/lib/python3.7/site-packages/metaflow/datastore/task_datastore.py", line 45, in method
    return f(self, *args, **kwargs)
  File "/opt/latest/lib/python3.7/site-packages/metaflow/datastore/task_datastore.py", line 413, in get_log_size
    sizes = [self._storage_impl.size_file(p) for p in paths]
  File "/opt/latest/lib/python3.7/site-packages/metaflow/datastore/task_datastore.py", line 413, in <listcomp>
    sizes = [self._storage_impl.size_file(p) for p in paths]
  File "/opt/latest/lib/python3.7/site-packages/metaflow/plugins/datastores/gs_storage.py", line 195, in size_file
    import google.api_core.exceptions

ModuleNotFoundError: No module named 'google'

It seems to me that the UI backend service is missing google-cloud-storage from its requirements.txt. I applied this change and built a version of the metaflow service image myself, this resolved the issue for me.

@jbvaningen would you like to submit a PR?

authors: jbvaningen savingoyal

repo: Netflix/metaflow-service


text:
Add validation logic to capture reserved names for parameters

Some parameter names are disallowed in Metaflow - with, max-num-splits, max-workers etc. We should throw a nice error if we detect any of these in the user's flow.

Can anyone assign this to me

repo: Netflix/metaflow


text:
Adapters do not understand Gzipped response

Description
Just as preface we are using Jest and setupPollyJest for our testing environment. It seems that @pollyjs/adapter-node-http is not returning the .json() promise of a response that's gzipped.
When we do a node-fetch call without polly
import fetch from 'node-fetch';
...
const response = await fetch('https://...', { method: 'post', headers: { 'Content-Type': 'application/json', ... }});

when we console.log a gzipped or non-gzipped response
console.log(await response.json());

we get the json object back as expected.
When we integrate polly + @pollyjs/adapter-node-http, the console.log for a gzipped response is undefined, but the plain-text (non-gzipped) response will work as expected.
Does anyone know what might be causing the gzipped response from being undefined?
Config
import NodeHttpAdapter from '@pollyjs/adapter-node-http';

export const setupPollyInTestFile = () => {
  Polly.register(NodeHttpAdapter);

  let context = setupPolly({
    adapters: [ NodeHttpAdapter ],
    adapterOptions: {
      fetch: {
        context: global
      }
    },
    }
  });

  global.pollyContext = context;
}

Dependencies
{
   "@pollyjs/core": "^2.4.0",
   "@pollyjs/persister-fs": "^2.1.0",
   "@pollyjs/adapter-node-http": "^2.4.0",
   "node-fetch": "^2.5.0",
   "setup-polly-jest": "^0.5.2",
}

Environment
Node.js v10.9.0
npm v6.2.0
darwin v18.5.0
yarn v1.13.0

@NikolasMsomething can you create a reproduction for me to debug with? That would really help in figuring out what the underlying issue is.

Thank you so much for the fast response @offirgolan! I will get a reproduction to you in the coming couple of days. Cheers.

Hello @offirgolan ! Here is a repository you can fork that almost identically mimics what dependencies I have in my development environment. If you run yarn test:refresh it will blow up any past recordings and make subsequent calls for the gzipped response. Any code regarding the actual API call lies in src/ApiUtil.js while any polly/test related code can be found in tests/jestSetup.js or tests/TestUtil.js. Thank you very much!

@NikolasMsomething thanks for creating the reproduction. I ran the test suite and the test you've provided passed.
 PASS  src/App.test.js
  ✓ fetches gzipped response and makes a proper polly recording (1629ms)

  console.log src/ApiUtil.js:10
    Response {
      size: 0,
      timeout: 0,
      [Symbol(Body internals)]:
       { body:
          Gunzip {
            _readableState: [ReadableState],
            readable: true,
            _events: [Object],
            _eventsCount: 7,
            _maxListeners: undefined,
            _writableState: [WritableState],
            writable: false,
            allowHalfOpen: true,
            _transformState: [Object],
            bytesWritten: 0,
            _handle: [Zlib],
            _hadError: false,
            _writeState: [Uint32Array],
            _outBuffer:
             <Buffer 00 00 00 00 00 00 00 00 4f 00 00 00 00 00 00 00 00 c4 81 02 01 00 00 00 8f 00 00 00 a0 20 fb 2e 01 6a 80 02 01 00 00 00 b0 69 84 02 01 00 00 00 08 00 ... >,
            _outOffset: 0,
            _level: -1,
            _strategy: 0,
            _chunkSize: 16384,
            _defaultFlushFlag: 2,
            _finishFlushFlag: 2,
            _nextFlush: -1,
            _info: undefined },
         disturbed: false,
         error: null },
      [Symbol(Response internals)]:
       { url:
          'https://us-central1-polly-issue-demo.cloudfunctions.net/respond',
         status: 200,
         statusText: 'OK',
         headers: Headers { [Symbol(map)]: [Object] },
         counter: 0 } }

  console.log src/ApiUtil.js:11
    Headers {
      [Symbol(map)]:
       [Object: null prototype] {
         'access-control-allow-origin': [ '*' ],
         'content-type': [ 'application/json; charset=utf-8' ],
         etag: [ 'W/"d-wOuS9ky6sDi1SeQD0i4Mbl1QXyY"' ],
         'function-execution-id': [ 'x3asbys3unyt' ],
         vary: [ 'Origin' ],
         'x-powered-by': [ 'Express' ],
         'x-cloud-trace-context': [ '11839f1f06c30f647025968b39a19564;o=1' ],
         'content-encoding': [ 'gzip' ],
         date: [ 'Mon, 13 May 2019 16:15:14 GMT' ],
         server: [ 'Google Frontend' ],
         'cache-control': [ 'private' ],
         'alt-svc': [ 'quic=":443"; ma=2592000; v="46,44,43,39"' ],
         connection: [ 'close' ],
         'transfer-encoding': [ 'chunked' ] } }

  console.log src/ApiUtil.js:60
    DATA IS HERE { test: true }

Test Suites: 1 passed, 1 total
Tests:       1 passed, 1 total
Snapshots:   0 total
Time:        2.919s
Ran all test suites matching /App.test/i.
✨  Done in 3.56s.

~/src/temp/test-environment-for-netflix master* 4s
❯ node --version
v10.15.3

The issue could be with the node version you're on since we only test maintained LTS versions. I'll try running the test on v10.9.0 and see if I can reproduce it there.

Hello again @offirgolan . I made a very slight mistake when reproducing the problem , but i changed something back that now I think may definitely reproduce it for you. I just pushed the changes up now. What is different is I am now capturing the response.json() found in src/ApiUtil in a variable and trying to log that instead. Thanks for the help and sorry about that!

@NikolasMsomething any update on this issue and/or the reproduction?

@NikolasMsomething Im gonna go ahead and close this issue for now. Feel free to reopen if you're able to produce a working reproduction.

authors: NikolasMsomething offirgolan

repo: Netflix/pollyjs


text:
Fix for S3 watcher errors.

Fix for #506 .
I would like to add a test case for this before merging it in.

Coverage decreased (-0.02%) to 51.783% when pulling 7e2657f40d1f0a1e06fbc4e3e2f23bc031fa6d3e on mikegrima:s3_fix into 5f429846be71e8a08653e1b50d77244db3501c38 on Netflix:develop.

Coverage increased (+0.5%) to 52.314% when pulling 856dc60ce4579d35e1b8f5dff15f44de25fb9b73 on mikegrima:s3_fix into 5f429846be71e8a08653e1b50d77244db3501c38 on Netflix:develop.

authors: coveralls mikegrima


text:
PUT requests with multipart are not proxied correctly (the multipart data is removed)

We are using Zuul to forward requests to our "file upload service". Our service has 2 endpoints:

A POST endpoint used to upload files. It consumes multipart ("multipart/form-data").
2 A PUT endpoint used to upload files (to Update existing files). It also consumes multipart ("multipart/form-data").

Zuul does not forward the multipart data correctly to the PUT endpoint. It seems to strip out the multipart data and results in a "MIMEParsingException".
If we hit the PUT endpoint directly with cURL, the resulting HTTP request looks like this:
curl -v -X PUT -H "Content-Type: multipart/form-data" -F "file=@/path/to/file.txt" "http://localhost:8081/file/put"

Headers: {user-agent=[curl/7.35.0], host=[localhost:8082], accept=[/], content-length=[203], expect=[100-continue], content-type=[multipart/form-data; boundary=------------------------c1efb86a9054e387]}
Entity: --------------------------c1efb86a9054e387 Content-Disposition: form-data; name="file"; filename="helloworld.txt" Content-Type: text/plain
this is my file content
--------------------------c1efb86a9054e387--

However, if we try to hit the PUT endpoint via Zuul, the HTTP request looks like this:
curl -X PUT -H "Content-Type: multipart/form-data" -F "file=@/path/to/file.txt" "http://localhost:8082/file/put"

Header: {user-agent=[curl/7.35.0], accept=[/], expect=[100-continue], content-type=[multipart/form-data;boundary=hkBnDNXOcDTwkuL1qLhglF6i4NA2YREd], x-forwarded-host=[localhost:8081], x-forwarded-proto=[http], x-forwarded-prefix=[/file], x-forwarded-port=[8081], x-forwarded-for=[127.0.0.1], accept-encoding=[gzip], content-length=[38], host=[localhost:8082], connection=[Keep-Alive]}
Entity: --hkBnDNXOcDTwkuL1qLhglF6i4NA2YREd--

Notice that the Entity is incomplete.
I have uploaded example code to this repository: https://github.com/trcodestore/zuul-put-demo. The repository contains 2 small projects used to demonstrate this issue. The readme contains build and run instructions.
Any advice is appreciated. Thank you for your time.

This is not the correct repo to report. Use Spring Cloud Netflix

Okay, thank you. I've reported it to Spring Cloud Netflix. I'll close the issue from this repository.

authors: spencergibb trcodestore

repo: Netflix/zuul


text:
Fix pandas_bridge and Travis CI

This PR changes the install.sh and travis.yml filles to use the newest libraries (numpy, scipy, pandas) to avoid hard-coding the version numbers and problems with interoperability between the different library versions.
Additionally I fixed errors in test_pandas_bridge.  In the newest(?) panda version 0.16.2 the parameter names is also checked, when using assert_index_equal  in the unittests. This throws an error (as described here https://github.com/NeuralEnsemble/elephant/issues/33), because in our case e.g., the strings  t_start and t_stop are checked for equality.  So I set the parameter names to False not to check for equality.

One of the things I like about the test matrix is that it tests both recent and old versions of the main dependencies. It's fine to update the most recent version to 1.9, and maybe we can update the "old" version to whatever is used in the most recent Ubuntu LTS release, but removing the hard-coded version numbers altogether makes Elephant more fragile.

Travis uses Ubuntu 12.04, so we have to use the versions supported by 12.04.
The problem I had was when installing the pandas library. If installed per pip it will automatically install the newest numpy. We can try to install an older version of pandas, at least for the Ubuntu distribution.
I would suggest then not to use pip in the test matrix with the ubuntu distribution but its own package manager, because it seems that this is the most fragile test case.

I am closing this and will make a new clean PR.

authors: alperyeg apdavison

repo: NeuralEnsemble/elephant


text:
Fix nixio infinite reading.

Currently it transposes the list of elements, which leads to infinite processing by numpy. The first element of the list should be used instead, as is done in the surrounding code, since all the list elements are supposed to represent the same data.
The symptom is that that line causes cpu to get stuck at 100% and never stops.

Coverage remained the same at 52.09% when pulling e6d179af3505498d60e3b94dc104fe6554459e55 on matham:patch-1 into f3c82baa152b2e4dbe3d2f0c7adfec01eaf481eb on NeuralEnsemble:master.

@achilleas-k can you look at this?

In the surrounding code we use the first dimension because we're just extracting features from the data (e.g., length of the data). On the line in question, we're copying the actual signal data. Theoretically we would want the entire DataArray to be transposed and converted to a quantity. Using only dim0 is probably fine given that nix files created with the IO only create one-dimensional DataArrays.
I'm more curious about why the processing takes so long. If it's because the DataArray is big? Is it two-dimensional? If it's not, would transposing the first element make a difference?

Hmm, when I looked at the contents nix_da_group was actually a list containing a analog signal. So when numpy transposes it it transposes the list of an array.
This should be easily replicable from: https://github.com/matham/MCDConv/blob/master/MCDConv/init.py#L117. Some similar code based on the one that broke for me:
    ofile = NixIO(output, mode='ow')

    blk = Block()
    for group_name in map(str, range(3)):
        seg = Segment(name=group_name)
        for chan_name in map(str, range(20)):
            seg.analogsignals.append(AnalogSignal(
                np.zeros((512 * 1024,)), units=uV,
                sampling_rate=10000 * Hz, name=chan_name))
    blk.segments.append(seg)

    nix_file.close()

Now, just open this file in neo and do blocks = f.read(). You should see the CPU being fully utilized and memory increasing very slowly.

Thanks for the example. I'll have a look.
A correction on my previous comment (sorry, I misunderstood the position of the change):
You are correct that nix_da_group is a list. It should be a list of NIX DataArrays though, not AnalogSignals. When writing, NIX IO converts a single AnalogSignal to multiple DataArrays, one for each signal contained in the AS. On read, the DataArrays are collected into nix_da_group, the first DataArray is used to determine things like units, type, and metadata, since all DataArrays share this information.
On the line in question, signaldata = pq.Quantity(np.transpose(nix_da_group), unit), the DataArrays are eventually converted to a 2D Quantity, which will be used to reconstruct the original AnalogSignal. DataArrays behave like numpy arrays when you index or slice them, so the transpose call will result in a numpy array. The transposition in necessary because the dimensionality of a list of DataArrays is inverse from how neo uses AnalogSignals.
Now for the real bad news: The conversion isn't broken. It's working as intended. The issue with the infinite processing is simply an issue with the size. I'm open to suggestions on how to make it faster. It's possible that there's some inefficiency in how nixpy accesses data and so the reading takes too long during the call to transpose.

I wrote a sample script based on your code:
import sys
from neo import Block, Segment, AnalogSignal
from neo.io.nixio import NixIO
import numpy as np
from quantities import Hz, uV

def create():
    ofile = NixIO("somefile.h5", mode="ow")

    blk = Block("signal block")
    seg = Segment("signal group")
    blk.segments.append(seg)

    sig = AnalogSignal(np.random.random((10000,)), units=uV,
                       sampling_rate=10000 * Hz, name="signal data")
    seg.analogsignals.append(sig)

    print(np.shape(sig))
    print(sig[30])  # arbitrary value in the signal
    print(sig[90])
    ofile.write_block(blk)
    del ofile

def read():
    ifile = NixIO("somefile.h5", mode="ro")
    print("Reading file")
    blocks = ifile.read_all_blocks()
    print("Done")

    sig = blocks[0].segments[0].analogsignals[0]
    print(np.shape(sig))
    print(sig[30])
    print(sig[90])

if __name__ == "__main__":
    if len(sys.argv) < 2:
        print("Specify either 'read' or 'create'")
    elif sys.argv[1] == "read":
        read()
    elif sys.argv[1] == "create":
        create()
    else:
        print("Specify either 'read' or 'create'")

Calls and output:
▶ python asignal.py create
(10000, 1)
[ 0.73751036] uV
[ 0.30869742] uV

▶ python asignal.py read
Reading file
Done
(10000, 1)
[ 0.73751036] uV
[ 0.30869742] uV

If you change the size of the data to the value you used in your example np.random.random((512 * 1024,)), it does indeed take too long to process.
I'll need to investigate whether the bottleneck is the reading of the data from nix or the transpose function. Perhaps we can skip the transpose when the data is one-dimensional and construct the AnalogSignal another way when necessary.
As I mentioned earlier, there is the possibility that the reading of the data from the NIX objects is the issue.

One part that isn't clear to me. Are you intending to call transpose on the list or on each item of the list? Because the problem seems to be the calling of transpose on a list containing the array which numpy probably interprets in a funny way leading to the issues.
In fact, in the debugger I did a = nix_da_group[0] + 1 and it took under a second, meaning it reads the data quickly, but is slow because numpy has issues transposing a list object which contains the data. It's probably because it's trying to slice the list and then the underlying data array, which is slow.
Shouldn't the fix then be signaldata = [pq.Quantity(np.transpose(d), unit) for d in nix_da_group]?

Thanks @matham, you're absolutely right that the issue is with transposing the items. Your proposed solution wont work since we want to transpose the entire set of data.
This works and is fast:
signaldata = np.array([d[:] for d in nix_da_group]).transpose()
signaldata = pq.Quantity(signaldata, unit)

I just tested the script I posted earlier and it's fast even with data with shape (512 * 1024, 200) (not instantaneous, but it doesn't take forever).

Coverage decreased (-0.003%) to 52.087% when pulling d08a8628cc3816f056f29000f4d297fc293641aa on matham:patch-1 into f3c82baa152b2e4dbe3d2f0c7adfec01eaf481eb on NeuralEnsemble:master.

Thanks! I updated the code with your suggested change.
I also looked at np.concatenate but it doesn't seem like it would be faster as it also does just a copy of the underlying arrays before building the resulting array.

Is this ready to merge now?

Yes. The change is correct and conversion should be much faster now.

authors: achilleas-k apdavison coveralls matham

repo: NeuralEnsemble/python-neo


text:
Validate on input delay

This PR allows forms to validate on input delay (currently 1s) instead of waiting for the user to click off the input—as some don't realize to do this.
Alpha Test Issues

Would be nice to be able to get feedback on the validity of your metadata before clicking out of the input but still when you’re done typing (e.g. if the user doesn’t change their input in 2s)

Works fine on the main metadata pages, but does not seem to apply to entering fields to the hands on table - so this is definetely fine as a first step

Unfortunately, HOT handles validation internally—and the same way as we were before (i.e. when the user unfocused the element). Since there are many types of cell editors, I haven't been able to find a uniform way to register user inputs for each cell.
As such, forcing HOT validation to occur after a timeout doesn't seem like it's feasible in the short-term—though we may dig deeper in the future and/or implement this feature in our custom table Web Components.

authors: CodyCBakerPhD garrettmflynn

repo: NeurodataWithoutBorders/nwb-guide


text:
Cannot build book locally

Hello, in the README file for building the book locally, there is a python script we are asked to run:
python ci/generate_book.py

However there does not seem to be a ci directory, or a generate_book.py script in the repository!

We've split the CI tools off into a separate repository so that they can be shared between the CN and DL courses.
ci mentioned above, is the same as nmaci.
Try these commands:
git clone https://github.com/NeuromatchAcademy/nmaci.git
python nmaci/generate_book.py

authors: jreus spirosChv

repo: NeuromatchAcademy/course-content


text:
198225 - Sterritt Creek - update after 2023 field assessments

https://github.com/NewGraphEnvironment/fish_passage_skeena_2023_reporting/issues/35

closed with b5808b3da27ffeebdd053aa55f7b6e2759ec1a47


text:
light direction calibration

Hello, I have read the code, but I had been confused for a long time that the part of the calibration of the light direction return the normal of the ball, not the light direction? Could you explain about it, thanks a lot.

Excuse me，have you solved this problem？ I have the same confusion.

The sphere is used to determine the (unknown) light direction assuming Lambert reflection properties. That is, given a pixel intensity (gray value) at position (x,y) and its known surface normal on the sphere geometry, we can solve light directions L as described here: https://en.wikipedia.org/wiki/Lambertian_reflectance

Yes, I agree with you.
In this part of the code, I think the meaning of  ”LightsInv“  is the inverse of the light source direction matrix.

But when I continued reading the code with this assumption, I discovered that the meaning of “light” is the normal of the surface of the sphere.

In this part of the code, I understand ”LightsInv“ as the inverse of the direction of the light source.

But when I continued reading the code with this conjecture, I found that it also seems to be the normal direction of the spherical surface.

I can't understand this phenomenon unless the calibration image used in the process of calibrating the direction of the light source requires that the direction of the light source always be towards the center of the sphere.

authors: NewProggie wangrongguang14 worker-ljw

repo: NewProggie/Photometric-Stereo


text:
Bug while using ProtoList with builtin type

Example
class SomeMessage(ProtoMapping):
    __proto__ = api_pb2.SomeMessage

    array_of_integers = ProtoList('array_of_integers', int)

SomeMessage({'array_of_integers': (1, 2, 3)}).to_protobuf()

there's an error raised
ERROR    grpc._server:_server.py:444 Exception calling application: int() argument must be a string, a bytes-like object or a number, not 'tuple' while casting "(1, 2, 3)" (tuple) to int
Traceback (most recent call last):
  File ".../src/mercator/mercator/meta.py", line 53, in cast
    return self.target_type(value)
TypeError: int() argument must be a string, a bytes-like object or a number, not 'tuple'

Here's a pull request #4

repo: NewStore/mercator


text:
MCS-1963 Added Support for Windows

Corresponding Python PR: https://github.com/NextCenturyCorporation/MCS/pull/701
See details on the Python PR.

@rartiss55 I expanded the if !UNITY_EDITOR so we don't bother trying to make the socket while running in the Unity Editor. That should prevent the errors from showing up.


text:
[Feature Request] Add drag/drop functionality to file window

I would like to be able to drag a file from this window and drop it somewhere else.
Also, a context menu with "Copy to clipboard" would be awesome. (ref https://github.com/NickeManarin/ScreenToGif/issues/20)

Noted :)

Drag to move enabled. Also, a context menu with copy operations, such as: Copy, Copy as image, Copy filename and Copy folder path.
Release 2.4, when available.

repo: NickeManarin/ScreenToGif

license: MS-PL


text:
Multiple monitors, multiple screens, cannot record (多显示器多屏幕无法录制问题)

Multiple monitors, multiple screens, cannot record (多显示器多屏幕无法录制问题)

Can you explain more the issue?
Do you want to record something across multiple screens?

Can you explain more the issue?
Do you want to record something across multiple screens?

Cannot record in the second screen window

Can you explain more the issue?
Do you want to record something across multiple screens?

Yes, I think he has a problem about recording something across multiple screens.

Cannot record in the second screen window
After clicking record, there is no response to stop recording

I am not sure what he is talking about.

Jerry：你可以使用中文描述你所遇到的问题，我会把它翻译成英文。
Jerry: You are free to describe your issue in Chinese and I will translate it into English.

Thanks for the help, @Jerrylum

@1353604736 Can you show me which screen recorder UI are you using? Older or newer?

感谢您的帮助，@Jerrylum
@1353604736你能告诉我你使用的是哪个屏幕录像机用户界面吗？旧的还是新的？

新的，旧的，都是一样的效果，录制开始，结束后，没有任何反应，结束并没有跳转到编辑界面。

@NickeManarin
1353604736: Both older and newer UI have the same problem. There is no response after I stopped the recording, and the application does not enter the editing interface.

试一下全新安装。卸载后删除所有配置文件和临时文件，再重新安装最新版。我之前也是副屏录制出来不正常，删掉所有文件全新安装就行了。
Clean reinstall instead of upgrade might help (i.e. delete all config and temp files and reinstall with default settings). It solved my recording problem on the secondary screen.

在选择DirectX模式录制时，录制第二屏幕时，就回出现此问题

各种插件都已下载

The DirectX capture method was updated in v2.35. Can you try again @1353604736 ?
If the error still persists, can you send me the error log?
It's inside that ScreenToGif > Log folder in your screenshot.

DirectX 捕获方法已在 v2.35 中更新。你能再试一次@1353604736吗？ 如果错误仍然存在，您能否将错误日志发送给我？ 它位于屏幕截图中的 ScreenToGif > Log 文件夹内。

v2.35正常了，问题已解决O(∩_∩)O


text:
remove return_vds_path arg from dataset.prep

and just return it if you make it, otherwise don't
because it's confusing to end up with a tuple containing multiple returned objects when you only expected one

argument removed as of version 0.3.0

repo: NickleDave/vak


text:
missing hardware \mu map

Hello!
I believe I've been able to get everything installed correctly into a conda environment using: https://niftypet.readthedocs.io/en/latest/tutorials/basicrecon.html#initialisation.
I'm using redhat 7 and python 2.7
I'm attempting to run the basic recon tutorial found here: https://niftypet.readthedocs.io/en/latest/tutorials/basicrecon.html
I'm having an issue loading the hardware /mu maps at the line
muhdct = nipet.hdw_mumap(datain, [1,2,4], mMRpars, outpath=opth, use_stored=True)
NiftyPET can not find the map file, 'umap_HNMCL_10606489.v.hdr'. I looked for it in the example data and this github page, but can not find it. The docs say this is provided by the scanner manufacturer, could you by chance share that file so I can run the example to make sure everything is working on my system?
Thank you,
Alex

Hi Alex
We don't supply them in the source code. Do you happen to have access to an mMR scanner?
Also, would you rather use python 3?
Cheers
Pawel
Get Outlook for Androidhttps://aka.ms/ghei36

From: AlexHTreacher notifications@github.com
Sent: Wednesday, December 16, 2020 5:13:49 PM
To: NiftyPET/NiftyPET NiftyPET@noreply.github.com
Cc: Subscribed subscribed@noreply.github.com
Subject: [NiftyPET/NiftyPET] missing hardware \mu map (#4)
Hello!
I believe I've been able to get everything installed correctly into a conda environment using: https://niftypet.readthedocs.io/en/latest/tutorials/basicrecon.html#initialisationhttps://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fniftypet.readthedocs.io%2Fen%2Flatest%2Ftutorials%2Fbasicrecon.html%23initialisation&data=04|01||8a7dcdd742a24d6127f508d8a1e5f53c|1faf88fea9984c5b93c9210a11d9a5c2|0|0|637437356317500659|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|1000&sdata=zNF5gA3UduJ5yoDYwLJbTVY9HAeeRUTOFETsQdwtZYU%3D&reserved=0.
I'm using redhat 7 and python 2.7
I'm attempting to run the basic recon tutorial found here: https://niftypet.readthedocs.io/en/latest/tutorials/basicrecon.htmlhttps://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fniftypet.readthedocs.io%2Fen%2Flatest%2Ftutorials%2Fbasicrecon.html&data=04|01||8a7dcdd742a24d6127f508d8a1e5f53c|1faf88fea9984c5b93c9210a11d9a5c2|0|0|637437356317510649|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|1000&sdata=%2BV2ct%2BvvD8gngj0a8jZMy0N5OGinXx2GPJFxVepJMds%3D&reserved=0
I'm having an issue loading the hardware /mu maps at the line
muhdct = nipet.hdw_mumap(datain, [1,2,4], mMRpars, outpath=opth, use_stored=True)
NiftyPET can not find the map file, 'umap_HNMCL_10606489.v.hdr'. I looked for it in the example data and this github page. The docs say this is provided by the scanner manufacturer, could you by chance share that file so I can run the example to make sure everything is working on my system?
Thank you,
Alex
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHubhttps://github.com/NiftyPET/NiftyPET/issues/4, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ABPEVHV4Q7ABWQGR2SO65QLSVDTE3ANCNFSM4U6KAEIA.

This should be better documented (how to obtain the proprietary mu-maps from the Siemens scanner)

Since we cannot officially share the mu-maps, the best way it is to obtain it from the scanner.

From: Casper da Costa-Luis notifications@github.com
Sent: 01 February 2021 23:00
To: NiftyPET/NiftyPET NiftyPET@noreply.github.com
Cc: Markiewicz, Pawel p.markiewicz@ucl.ac.uk; Comment comment@noreply.github.com
Subject: Re: [NiftyPET/NiftyPET] missing hardware \mu map (#4)
This should be better documented (how to obtain the proprietary mu-maps from the Siemens scanner)
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHubhttps://github.com/NiftyPET/NiftyPET/issues/4#issuecomment-771220686, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ABPEVHQHRAKJ4L5YDKC2T3DS44XADANCNFSM4U6KAEIA.

Apologies for the long delay in response.
The data I'm working with only has PET and T1 individually and does not have mu-maps. I actually just want to use NiftyPET to PET processing independently of the T1. Is that possible? All the examples I see seem to use the MR image too.
In regards to the python version @pkmark: Yes, I'd rather use python 3, but its not a huge deal.
Thanks,
Alex

I'd strongly recommend you use Python3 and

these installation instructions: https://niftypet.readthedocs.io/en/devel/install
this tutorial: https://niftypet.readthedocs.io/en/devel/tutorials/demo

Note that if you find it too difficult to obtain the hardware mu-maps from the scanner, it should hopefully be fairly obvious how to skip the use of hardware mu-maps in the tutorial.

@casperdcl, thanks for the info. I'll give it a try with python 3.7.

@casperdcl, thanks for the info. I'll give it a try with python 3.7.

hi,
did you handle this problem? I got the same problem about mu-maps.

as stated above, the hardware mu-maps are proprietary - we can't provide them, you need to download them yourself from a Siemens scanner.
If you somehow can't get the hardware mu-maps, you can:

set mu_h=None (cell [4] of the demo)
delete the mu_h=mu_h, (cell [9])
delete mu_h['im'] +  and mu_h=mu_h, (cell [14])
replace (mu_h['im'], mu_o['im']) with (np.zeros_like(mu_o['im']), mu_o['im']) (cell [14])

as stated above, the hardware mu-maps are proprietary - we can't provide them, you need to download them yourself from a Siemens scanner.
If you somehow can't get the hardware mu-maps, you can:

set mu_h=None (cell [4] of the demo)

delete the mu_h=mu_h, (cell [9])

cell [14]:

delete mu_h['im']
delete mu_h=mu_h,
replace (mu_h['im'], mu_o['im']) with (np.zeros_like(mu_o['im']), mu_o['im'])

Hi,
Thanks for your reply.
But after I set mu_h=None, there is "KeyError: 'DCM2NIIX'" in run([Cnt['DCM2NIIX'], '-f', fnii + tstmp, '-o', fmudir, datain['mumapDCM']]) when set mu_o = nipet.obj_mumap(datain, nMRpars, outpath=opth, store=True) in cell [5]. I try to fix it by debug, but not work.....
Thanks,
Hannah

Hi Hanah - can you give me your email address - I should be able to help you there.  Cheers, Pawel

as stated above, the hardware mu-maps are proprietary - we can't provide them, you need to download them yourself from a Siemens scanner.
If you somehow can't get the hardware mu-maps, you can:

set mu_h=None (cell [4] of the demo)

delete the mu_h=mu_h, (cell [9])

cell [14]:

delete mu_h['im']
delete mu_h=mu_h,
replace (mu_h['im'], mu_o['im']) with (np.zeros_like(mu_o['im']), mu_o['im'])

Hi, Thanks for your reply. But after I set mu_h=None, there is "KeyError: 'DCM2NIIX'" in run([Cnt['DCM2NIIX'], '-f', fnii + tstmp, '-o', fmudir, datain['mumapDCM']]) when set mu_o = nipet.obj_mumap(datain, nMRpars, outpath=opth, store=True) in cell [5]. I try to fix it by debug, but not work..... Thanks, Hannah

Hi all!
I'm having the same problem, could you tell me how you solved it? @hannah-saber
Thanks,
Luis Enrique.

Hi Luis, please email me on p.markiewicz (at) ucl.ac.uk. I will propose solutions.

From: Luis Enrique Peñalver Prieto @.>
Sent: 24 October 2022 19:57
To: NiftyPET/NiftyPET @.>
Cc: Markiewicz, Pawel @.>; Mention @.>
Subject: Re: [NiftyPET/NiftyPET] missing hardware \mu map (#4)
⚠ Caution: External sender
as stated abovehttps://github.com/NiftyPET/NiftyPET/issues/4#issuecomment-771222412, the hardware mu-maps are proprietary - we can't provide them, you need to download them yourself from a Siemens scanner.
If you somehow can't get the hardware mu-maps, you can:

set mu_h=None (cell [4] of the demohttps://niftypet.readthedocs.io/en/latest/tutorials/demo/)

delete the mu_h=mu_h, (cell [9])

cell [14]:

 *   delete mu_h['im']
 *   delete mu_h=mu_h,
 *   replace (mu_h['im'], mu_o['im']) with (np.zeros_like(mu_o['im']), mu_o['im'])

Hi, Thanks for your reply. But after I set mu_h=None, there is "KeyError: 'DCM2NIIX'" in run([Cnt['DCM2NIIX'], '-f', fnii + tstmp, '-o', fmudir, datain['mumapDCM']]) when set mu_o = nipet.obj_mumap(datain, nMRpars, outpath=opth, store=True) in cell [5]. I try to fix it by debug, but not work..... Thanks, Hannah
Hi all!
I'm having the same problem, could you tell me how you solved it? @hannah-saberhttps://github.com/hannah-saber
Thanks,
Luis Enrique.
—
Reply to this email directly, view it on GitHubhttps://github.com/NiftyPET/NiftyPET/issues/4#issuecomment-1289461694, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ABPEVHTKUUXWKJL2UNLK4NTWE3L2VANCNFSM4U6KAEIA.
You are receiving this because you were mentioned.Message ID: @.***>

hi, I have table mu-map but i can't find head & coil mu-map , how can i change the code ?

for the hardware mu-maps you run code like this:
muhdct = nipet.hdw_mumap(datain, [1,2,4], mMRpars, outpath=opth, use_stored=True)
The numbers in the sq brackets indicate what part of hardware mu-map to use. 1 and 2 are the head and neck lower and upper coils, 3 is the spine coil and 4 is the table.  If you want just the table you put there just 4 (delete 1 and 2).
The table LUT is specified in resources.py (in ~/.niftypet folder).
Hope that helps.
Pawel

.niftypet is a hidden folder. To see it in Linux press ctrl+H in the file browser. resources.py is in the folder.  You would not be able to fire NiftyPET without this file.
Pawel

From: sarabanoo @.>
Sent: Wednesday, November 9, 2022 9:15:34 AM
To: NiftyPET/NiftyPET @.>
Cc: Markiewicz, Pawel @.>; Mention @.>
Subject: Re: [NiftyPET/NiftyPET] missing hardware \mu map (#4)
⚠ Caution: External sender
hi
thanks. i change the code with this way. i searched but i can't find resources.py
—
Reply to this email directly, view it on GitHubhttps://github.com/NiftyPET/NiftyPET/issues/4#issuecomment-1308447813, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ABPEVHSMSKDKPWO3CNUCIADWHNTTNANCNFSM4U6KAEIA.
You are receiving this because you were mentioned.Message ID: @.***>

i'm using google colab for niftypet codes. when i run attenuation correction codes in colab it showed LUT is done. but i got this error : not such a file or directory. i tried to fix it but it didn't work. I just want to make sure if the problem is from LUT or not

authors: AlexHTreacher casperdcl hannah-saber luisen4 pjmark sarabanoo

repo: NiftyPET/NiftyPET


text:
Error when trying to download

Hi,
I've downloaded the latest release and when I try to run it for a deck file I get:
[Errno 13] Permission denied:
for every card. I've already tried running as admin and/or disabling my firewall/giving extra permission for the program, with no success.

This only occurs when using a deck? Using /allcards works fine?
If it happens for every card it means it can read the deck file, but probably can't save the card image.
Assuming you didn't manually changed EDOPro folders' permissions your EDOPro is probably installed on Windows folder, like C:/Program Files/.... In this case running as admin should work. Since it didn't I'm not sure what happened.
This shouldn't be happening on a non-Windows folder, like the default C:/ProjectIginis, or a folder with unmodified permissions.

@NiiMiyo
u just forgot one "/"
in "constants.py" line 15
IMAGES_BASE_URL = "https://images.ygoprodeck.com/images/cards" should be IMAGES_BASE_URL = "https://images.ygoprodeck.com/images/cards/"
u miss the "/" after cards, so then u access a false URL
works fine after adding the missing part.

@m778055
Shouldn't be the case. In downloader.py line 20 it adds this missing /.
It's missing from the base URL because when downloading only the artwork for the field spells the URL is a bit different (lines 17 to 19).

Seems the error was on my side. Even though I marked it as save and deactivated my firewall my anti virus blocked it. Somehow now I managed to make it work

repo: NiiMiyo/EDOPro-Hd-Downloader


text:
Fix/98 sparkexpectations bump version to 220

Description

Related Issue

Motivation and Context

How Has This Been Tested?

Screenshots (if appropriate):
Types of changes

[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

[ ] My code follows the code style of this project.
[ ] My change requires a change to the documentation.
[ ] I have updated the documentation accordingly.
[ ] I have read the CONTRIBUTING document.
[ ] I have added tests to cover my changes.
[ ] All new and existing tests passed.

Somehow some of the HttpStep related tests are failing now that the se dependency is reenabled. Will have to figure out why..?!

Seems like release base branch is similarly failing the tests. For this reason, I'll pass this PR and address the root cause for this over there.

repo: Nike-Inc/koheesio


text:
Uncaught SyntaxError: Invalid regular expression: /(/: Unterminated group

Create a new documentation block just above an Annotation in java
Ex.
/**<cr>
@Override
public boolean isEmpty() {
    // snip
}

**Atom Version**: 0.177.0
**System**: Mac OS X 10.10
**Thrown From**: [docblockr](https://github.com/nikhilkalige/docblockr) package, v0.5.8

### Stack Trace

Uncaught SyntaxError: Invalid regular expression: /(/: Unterminated group

At /Users/samdoiron/.dotfiles/atom.symlink/packages/docblockr/lib/docsparser.js:1111
SyntaxError: Invalid regular expression: /(/: Unterminated group
at new RegExp (native)
at RegExp (native)
at String.search (native)
at DocsParser.JavaParser.get_definition (/Users/samdoiron/.dotfiles/atom.symlink/packages/docblockr/lib/docsparser.js:1111:26)
at DocBlockrAtom.module.exports.DocBlockrAtom.initialize (/Users/samdoiron/.dotfiles/atom.symlink/packages/docblockr/lib/docblockr-worker.js:704:26)
at DocBlockrAtom.module.exports.DocBlockrAtom.parse_command (/Users/samdoiron/.dotfiles/atom.symlink/packages/docblockr/lib/docblockr-worker.js:258:12)
at atom-workspace. (/Users/samdoiron/.dotfiles/atom.symlink/packages/docblockr/lib/docblockr-worker.js:64:16)
at atom-workspace.handler (/Applications/Atom.app/Contents/Resources/app/src/space-pen-extensions.js:115:32)
at atom-workspace.jQuery.event.dispatch (/Applications/Atom.app/Contents/Resources/app/node_modules/space-pen/vendor/jquery.js:4681:9)
at atom-workspace.elemData.handle (/Applications/Atom.app/Contents/Resources/app/node_modules/space-pen/vendor/jquery.js:4359:46)
at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app/src/command-registry.js:243:29)
at /Applications/Atom.app/Contents/Resources/app/src/command-registry.js:3:61
at KeymapManager.module.exports.KeymapManager.dispatchCommandEvent (/Applications/Atom.app/Contents/Resources/app/node_modules/atom-keymap/lib/keymap-manager.js:558:16)
at KeymapManager.module.exports.KeymapManager.handleKeyboardEvent (/Applications/Atom.app/Contents/Resources/app/node_modules/atom-keymap/lib/keymap-manager.js:396:22)
at HTMLDocument.module.exports.WindowEventHandler.onKeydown (/Applications/Atom.app/Contents/Resources/app/src/window-event-handler.js:170:20)

### Commands

 -0:10.4 core:save (atom-text-editor.editor.vim-mode.autocomplete-active.is-focused.insert-mode)
 -0:10.3 vim-mode:move-up (atom-text-editor.editor.vim-mode.autocomplete-active.is-focused.insert-mode)

7x -0:10.2 vim-mode:move-down (atom-text-editor.editor.vim-mode.autocomplete-active.is-focused.insert-mode)
-0:09.1 vim-mode:move-up (atom-text-editor.editor.vim-mode.autocomplete-active.is-focused.insert-mode)
3x -0:08.7 vim-mode:move-down (atom-text-editor.editor.vim-mode.autocomplete-active.is-focused.insert-mode)
4x -0:07.8 vim-mode:move-up (atom-text-editor.editor.vim-mode.autocomplete-active.is-focused.insert-mode)
3x -0:07.1 vim-mode:move-down (atom-text-editor.editor.vim-mode.autocomplete-active.is-focused.insert-mode)
7x -0:06.3 vim-mode:move-up (atom-text-editor.editor.vim-mode.autocomplete-active.is-focused.insert-mode)
10x -0:04.0 vim-mode:move-down (atom-text-editor.editor.vim-mode.autocomplete-active.is-focused.insert-mode)
-0:02.9 vim-mode:move-up (atom-text-editor.editor.vim-mode.autocomplete-active.is-focused.insert-mode)
-0:02.8 vim-mode:insert-below-with-newline (atom-text-editor.editor.vim-mode.autocomplete-active.is-focused.insert-mode)
-0:02.2 docblockr:parse-tab (atom-text-editor.editor.vim-mode.autocomplete-active.is-focused.insert-mode)
-0:02.2 snippets:next-tab-stop (atom-text-editor.editor.vim-mode.autocomplete-active.is-focused.insert-mode)
-0:02.2 snippets:expand (atom-text-editor.editor.vim-mode.autocomplete-active.is-focused.insert-mode)
-0:02.2 editor:indent (atom-text-editor.editor.vim-mode.autocomplete-active.is-focused.insert-mode)
-0:00.7 docblockr:parse-enter (atom-text-editor.editor.vim-mode.autocomplete-active.is-focused.insert-mode)

### Config

```json
{
  "core": {
    "ignoredNames": [
      ".bundle",
      ".git",
      "log",
      "repositories",
      "tmp",
      "vendor"
    ],
    "disabledPackages": [
      "background-tips",
      "exception-reporting",
      "metrics",
      "linter-javac"
    ],
    "themes": [
      "isotope-ui",
      "solarized-dark-syntax"
    ]
  }
}

Installed Packages
# User
atom-color-highlight, v3.0.6
autocomplete-plus, v2.1.3
docblockr, v0.5.8
isotope-ui, v1.2.10
linter, v0.11.1
linter-clang, v2.25.1
minimap, v4.1.2
vim-mode, v0.30.0

# Dev
No dev packages

/cc @atom/core

Is it OK to auto create an issue without use's permission? Is it Atom's or docblockr's behavior?

This was fixed with #46. In version 0.8.0 it shouldn't happen anymore.

authors: BusyJay MoritzKn samdoiron

repo: NikhilKalige/docblockr


text:
Possible support of custom cache with nx v18

Can we expect some support for the nx v18 shortly, since there are no breaking changes in v18 compared to v17?

Yep it would be good if this was supported.
We did upgrade to version 18 of nx and we are seeing a lot of oddities in the caching. For example when we change library code which affects multiple projects, those projects are not rebuilding and are using the existing cache, meaning changes are not properly deployed to production. The only way to get changes on prod is to manually delete the entire cache

nx-remotecache-custom@18.0.0 is available

authors: NiklasPor OrangeTimes ahernd2

repo: NiklasPor/nx-remotecache-custom


text:
fix for xcb

The window created with XCB used to segfault because xcb_poll_for_event is non-blocking and returns NULL when no event is available. So, dereferencing event as event->response_type was crashing the app.

Hey. The funs of coding for another platform. XD
Someone else already reported these just a couple of hours before you so I took their code changes. The changes were pretty much identical. I also did some of my own changes in Window_xcb.cpp. It should work now. Try the master again and let me know if it works.
:)