check out the API from osf

Create an account and obtain read token https://accounts.osf.io/login?service=https://osf.io/dashboard/
Review example usage app - https://github.com/eartharxiv/API/blob/master/downloadAndIndexPreprints.py#L66
Connect to the service and bring in data
Share the data on a dev server

Issue was accidentally deleted during a reorganization of how we handle this project's code. Recreated from GitHub emails. I will copy/paste comments from the original issue below.

from @myucekul on June 8, 2020:

Blocking issue - the personal token generated allows access to the data in that account. Need appropriate token for access to EarthArXiv data.

there is a copy of all the primary PDF or doc files on -dev.  @myucekul did you write a script to grab those?
I'm able to see the eartharxiv preprint data: Using the API in browser.
https://api.osf.io/v2/preprints/?filter[provider]=eartharxiv
I found the API documentation helpful. https://developer.osf.io/#
I'm able to see some user information.
https://api.osf.io/v2/nodes/hyksm/bibliographic_contributors/
examples with multiple versions
https://api.osf.io/v2/preprints/?filter[id]=jwb5v
example with attached files:

Yea, I have a script to download primary files.
From: Brian Tingle<EMAIL_ADDRESS>Sent: Tuesday, June 16, 2020 9:58 AM
To: eScholarship/EarthArXiv<EMAIL_ADDRESS>Cc: Mahjabeen Yucekul<EMAIL_ADDRESS>Mention<EMAIL_ADDRESS>Subject: Re: [eScholarship/EarthArXiv] check out the API from OSF (#1)
there is a copy of all the primary PDF or doc files on -dev. @myucekulhttps://github.com/myucekul did you write a script to grab those?
I'm able to see the eartharxiv preprint data: Using the API in browser.
https://api.osf.io/v2/preprints/?filter[provider]=eartharxivhttps://api.osf.io/v2/preprints/?filter[provider]=eartharxiv
I found the API documentation helpful. https://developer.osf.io/#https://developer.osf.io/
I'm able to see some user information.
https://api.osf.io/v2/nodes/hyksm/bibliographic_contributors/
examples with multiple versions
https://api.osf.io/v2/preprints/?filter[id]=jwb5v
example with attached files:

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://github.com/eScholarship/EarthArXiv/issues/1#issuecomment-644889589, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AMZFFRKQ2FUDLCCNVS3Z3NDRW6QDLANCNFSM4N3S76SA.

okay to close?

Yes!


missing license

File tags.go refers to missing "BSD-style" license.
Please commit relevant license or consider removing tags.go. Thanks.

Thanks. License grant looks much better now. :)
However best practice is to provide full text of the license as well.


fix: resolve protocols without needing to define init

When implementing a Protocol without defining its own __init__ method, a generic initialization method is generated autmatically (typing._no_init_or_replace_init). This PR checks if the class being resolved has that specific __init__ on it, and if it does, makes rodi behave the same way it does for normal classes when its init is object.__init__
Closes: #45
Ref: #31

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

Comparison is base (6043b5b) 99.82% compared to head (00a2dd7) 99.82%.

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@           Coverage Diff           @@
##             main      #46   +/-   ##
=======================================
  Coverage   99.82%   99.82%
=======================================
  Files           2        2
  Lines         560      560
=======================================
  Hits          559      559
  Misses          1        1

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

🤭 oops, I forgot Protocol is a >=3.9 feature

I'll redownload<EMAIL_ADDRESS>tomorrow and check what's going on there

Hi @lucas-labs
I reviewed, it looks perfect! Thank You very much for this good contribution. I'll publish a new version to PyPi soon, maybe this weekend. :)

@lucas-labs I just published a new version to PyPi. Thank You!

@RobertoPrevato That's awesome 🥳, thank you!


help: Update instructions to mark messages as read.

Current: https://zulip.com/help/marking-messages-as-read#mark-all-messages-as-read
Updated:

Merged, thanks @alya!


File explorer doesn't watch changes when directory name contains specific symbols

Issue Type: Bug
Steps to Reproduce:

Create directory containing unusual symbol (for instance: й, ё, ê, ç — some extraordinary non-ascii symbol with diacritical mark)
Open this directory in vscode
Create new file/directory via console/finder
File explorer unable to automatically update changes. Updates are shown only if you push Refresh explorer button manually.

P.S. I am unable to reproduce this bug on Windows
VS Code version: Code 1.51.1 (e5a624b788d92b8d34d1392e4c4d9789406efe8f, 2020-11-11T01:11:34.018Z)
OS version: Darwin x64 20.1.0

System Info

Item
Value

CPUs
Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz (16 x 2300)

GPU Status
2d_canvas: enabledflash_3d: enabledflash_stage3d: enabledflash_stage3d_baseline: enabledgpu_compositing: enabledmetal: disabled_offmultiple_raster_threads: enabled_onoop_rasterization: enabledopengl: enabled_onprotected_video_decode: unavailable_offrasterization: enabledskia_renderer: disabled_off_okvideo_decode: enabledwebgl: enabledwebgl2: enabled

Load (avg)
4, 3, 3

Memory (System)
32.00GB (8.27GB free)

Process Argv
--crash-reporter-id f1ba68fb-3d13-4814-bbf0-0ae10a0d6538

Screen Reader
no

VM
0%

Sounds like a file watcher issue. @bpasero might you be aware of this, first forwarding to you

VS Code is using different file watching strategies depending on your OS and your setup.
First thing to check:

[ ] I verified that the issue still reproduces in our insiders version (https://code.visualstudio.com/insiders/)
[ ] I verified that this issue is happening outside of a node_modules folder. Our file watcher ignores this folder!

To find out more about this issue, please first answer this:

[ ] What OS are you on
[ ] Does this happen from an empty workspace, a single-folder workspace or a multi-root workspace?
[ ] Do you have files.useExperimentalFileWatcher: true configured in settings?
[ ] What is your configured files.watcherExclude setting?

Then please answer the following depending on your setup:

[ ] It reproduces with any folder or workspace you open
[ ] The files/folders you open are on your local disk and not on a network share nor a UNC drive
[ ] The files/folders you open are not behind a symbolic link
[ ] The folder(s) opened use the exact same casing as they are on disk
[ ] It reproduces when I make a change to the file from another VS Code window (either from the editor or the file explorer)

Then please attach the output of our development console

run code --verbose from the command line
perform the action that causes you to not see the file change in VS Code
attach the output from the console (Help > Toggle Developer Tools > Console)

Thanks for taking the time to fill out this questionnaire.


Fix database connection settings

Closes #106

Codecov Report

Merging #108 (cc7a942) into dev (5333a0a) will decrease coverage by 0.25%.
The diff coverage is 66.66%.

@@            Coverage Diff             @@
##              dev     #108      +/-   ##
==========================================
- Coverage   96.06%   95.81%   -0.26%
==========================================
  Files          18       18
  Lines         356      358       +2
==========================================
+ Hits          342      343       +1
- Misses         14       15       +1

Impacted Files
Coverage Δ

api/mod/src/settings.py
88.88% <50.00%> (-4.87%)
:arrow_down:

api/mod/src/database/database.py
80.00% <100.00%> (ø)

Continue to review full report at Codecov.

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

Feel free to merge it


Flood prevention

Hello,
especially when the bot gives numbered lists, they all go on separate lines causing excess flood kick from the server.
It can be a problem especially if being used on several channels. Some kind of anti-flood measures would also help.

Hey, thanks for your message. I'm running the bot on two IRC networks and they don't have a problems with my bots posting multiple lines in short intervals. Can you please tell me what IRC network you are talking about so I can have a look and potentially apply a fix?
As a temporary measure, you can change variable max_tokens in chat.conf. By default it's set to 1000 but you can limit it to whatever you want.  By the way, 1K tokens is very low limit, current GTP 3.5 models support 4K tokens while GTP 4 - up to128K tokens, please see for more details: https://platform.openai.com/docs/models/gpt-3-5

Hello, thanks for your reply. I'm running on IRCnet. For privacy and cost reasons I'm using a local language model (Zephyr 7B) running on oobabooga text generation webui with the openai api extension. When using a larger model that doesn't fit entirely on my GPU (slower inference rate)  it doesn't seem like the bot is flooding itself out though.
I'm actually experimenting between 25 to 150 tokens to avoid flood kick, but it often just cuts the answer short.
Maybe an option to concatenate all lines and account for the maximum message length on the network? A fixed delay between each new line would probably be easy to implement.

Thanks for clarification. It's easy to implement delay by adding "time.sleep(1)" function.  Heres an example of how you can modify the code to introduce a 1-second delay between messages: https://pastebin.com/7YEV20p2
Specifically, I added lines 61 and 126. You can change 1 second to whatever you want.
It's rather unusual issue so I won't add this to the main code at that time.
Our of curiosity, what Transformers models do you recommend to use with oobabooga? I was only experimenting with Vicuna so far.

Thanks, I'll see how it works out. I've been using TheBloke's quantizations of these models available at huggingface.co:
Zephyr 7B beta (seems to produce numbered lists on separate rows)
dolphin-2.5-mixtral-8x7b
These are based on the new models released by Mistral AI, that are supposed to be some of the best open weight models currently.

Thanks, I hope the workaround with function time.sleep() works for you. I will close this thread.


comms: Add sol-netctl agent API V4

The agent is necessary in the process of network connection,
that will receive input information from the user and send it
to the network(such as AP and so on).
The API is based on connman D-Bus APIs, it provides register agent,
input login information and so on netctl agent API.
Signed-off-by: Wu Zheng<EMAIL_ADDRESS>

The Version 4 of Add sol-netctl agent API.

Modify the version 3 errors. (#2303)
Split register_agent to register_agent and unregister_agent
Rename report_error to request_retry

@ceolin  @barbieri  Please check it. Thanks.


Make "Copy link" result pastable both as a plain URL and HTML (if possible)

When pasting a link into a place that accepts HTML (e.g., GitHub, docs, email clients, etc.), it would be nice if topic and channel links were pasted with pretty Zulip formatting, rather than as plain URLs. E.g.:
#feedback
#feedback > named link for external use?
At the same time, just a plain URL should be pasted into the browser URL bar. We should investigate making this work.
As @timabbott said:

I think https://www.nikouusitalo.com/blog/why-isnt-clipboard-write-copying-my-richtext-html/ may have a method for doing that? Probably requires an annoying about of fiddling/browser testing, but it might be possible to have the single link get you something that pastes nicely into HTML-capable locations while still pasting a URL into a URL bar properly.

I think probably the next step is for someone to try prototyping with those techniques and see if they can make it work.

So, the next step will be testing if this approach works, and reporting in the linked CZO thread.

CZO thread

@zulipbot claim

hey @yaswanthkosuru lemme know if you are doing this, Would really appreciate your response!?

@17AnuragMishra  i am doing (going through code).Thank u

are you working on this issue? @yaswanthkosuru if not can I start working on this issue?

Unassigning this issue for now. When either of you is ready, please post a comment describing your proposed approach when you're ready. You can claim the issue after you have a rough plan for how to address it. Thanks!

@zulipbot  claim

@zulipbot claim

@zulipbot claim

@zulipbot abandon

@zulipbot claim

Hi @alya ,
I have implemented and tested the functionality to copy a link in three formats:
1.	Plain Text (URL): Pasting into a browser’s address bar works as expected, with only the plain URL being copied (https://chat.zulip.org/#narrow/stream/feedback).
2.	Markdown: Platforms like GitHub Markdown correctly interpret the copied text as #feedback when pasting into comment boxes.
3.	HTML (for Rich-Text Environments): Works fine in Gmail or other HTML-capable editors, rendering the link as a clickable anchor tag (e.g., #feedback > named link for external use).
The issue is text/plain can only used either for the Plain Text (URL) or Markdown. If we pass URL as the string there is no formatting in Github and if we pass the markdown then pasting that text as the url will not work.

@vishaljoshi789 have you looked at the previous PRs for this issue?

Hi @timabbott,
Yes I have gone through the previous PRs, they are working for URL(text/plain) and HTML(text/html), but Github uses markdown not HTML, and the markdown file uses the text/plain same used by the URL.
Can I do it by making a separate copy button for markdown which will be able to copy the link for the Github and other markdown supported platforms.

@zulipbot unclaim

@zulipbot claim

@alya  I would like to work on this issue, please assign me on this as my PR is in integration review. #31894.

@zulipbot claim

@alya Just made a PR #32834 . Although the issue was asking for markdowns but since it is not supported by clipboard API  for now . copying Markdown is not possible as text/markdown.


Restaurant_Website

Describe the project you want to add with tech stack

The restaurant website project is a full-stack web application that allows users to search for restaurants, view menus, and make reservations. The front end of the application is built using React, a popular JavaScript library for building user interfaces. The back end of the application is built using Node.js, a popular JavaScript runtime environment. The application uses a PostgreSQL database to store data about restaurants, menus, and reservations.
Expected behavior

Tech Stack:
Front-end: React, JavaScript, HTML, CSS
Screenshots (optional)

Tech Stack:
Front-end: React, JavaScript, HTML, CSS

Additional context (Mandatory )

[ ] I am a contributor in OSEN open source programme

[X] I am a contributor in HACTOBERFEST 2023

Hi @apu52, I want to work on this issue as I created this.

Hi @apu52, I want to work on this issue as I created this.

@Suraj-kumar00 Okay ! Please try to make another new Issue.


New global file not saving in custom location

After setting new global notes location. creating new file still uses the old(default) location. Creating new file (from outside) in new locations loads correctly (after reload).
Additional Suggestion:

use existing user location as default global location. (e.g. C:\Users<username>\Notes)
place some example notes file describing projects-notes use cases features and for quick overview
for "Project notes" (i.e. local notes) .vscode folder should be left alone. instead use a new folder (customizable by user)
It'd be good practice to have a file watcher so changes to folder from outside of vscode load automatically.

Thanks for your help again sanihaq. At some point while testing I had hard coded the global notes folder location on one line of code and forgot to remove that. Very bad bug to leave in there so big thanks for bringing that to my attention. The fix for this has been uploaded.
Originally I had used a folder in the users home location as that made more sense to me. It however was suggested to me to use the extensions global storage location instead which is there for the purpose of storing the extensions data files. I'm still on the fence on that so may just revert back to defaulting to the users home folder. That was the entire reason why I added the option to select a default folder location (which starts in the users home folder) for global notes so the end user can choose their preferred location.
Example notes is an excellent suggestion, will do that.
A dedicated folder for local notes was my original plan but after much thought I felt a lot of people probably would not like an extension creating new folders within their project root folder. As most projects already have a .vscode folder anyways it made sense at the time to just use that. However the suggestion of adding an option for the local folder location is an excellent idea and I will definitely add that.
Adding a file watcher is already high on my todo list.
Thanks again for all your help and suggestions, William

You're welcome @willasm
For global default location, it'd be better to use user "Document" folder with specific folder name (e.g. for windows C:\Users\Sani\Documents\MyNotes)
My reasoning behind not using .vscode is similar to the reason you mentioned for global folder. .vscode folder is specifically made for "vscode" related files. Notes files had nothing to do with vscode. It just uses vscode to edit along with this extension. therefore, it shouldn't be used here. Users who are using this extension should already know creating notes file using this extension will place file in specific location. The folder should only be created when the user creates a note for the first time.

Thanks again for your input. I have already changed the local notes folder to "notes" by default and added a command to allow the user to change the folder name to whatever they choose from within vscode. Setting the global notes folder is a little more challenging. I can use os.homedir(), which works across all platforms, to get the users home folder without any problems. To get the 'Documents' folder is the problem. Every example I have found simply appends 'Documents' to that but that is not a reliable method at all as the user change the location easily. Just right click on your Documents folder and you will see a tab 'location' which allows you to move the documents folder to wherever you want. I have done this myself with my download folder which I have moved to my D drive. So unless I can find a reliable cross platform method of getting the documents folder  my only other option is to create the notes folder in the home directory. This seems to be the method a lot of programs use  from what I see in my home folder.
Anyhow with these changes I will need to update the documentation as well but I should have the next update uploaded after I have that done, William

Thank you for your work! I'm using this plugin and suggest that it should allow users to customize where project notes are stored instead of .vscode right now, which is the most pressing need at this moment. There is another similar plugin in the market, named Notes, which also has the issue of not providing a user-definable storage location for local project notes. Moreover, the relative path (e.g., "/.notes") or using VS Code's variables like "${workspaceFolder}/.notes" is suggested. I believe that if this is improved, more and more people would like to use this plugin, as the plugin's function is actually a very pressing need in VS Code's Markdown. As for other suggestions, maybe further beautify the icon in the sidebar. Thanks again, expect the next version.

Sorry for not updating this for such a long time, just been too busy. Version 1.5.0 has just been uploaded to the marketplace and should be available for updating shortly.

Local Notes now default to .pnotes folder
Global Notes now default to .pnotes folder in the users home directory.
Added the command Project Notes: Set Local Notes Folder Name
Added file system watchers for both Local and Global note folders

Still need to make improvements to the documentation. Plan to add a Project Notes - Quick Tips.md file to be added into the Global Notes folder on future updates. Thanks for all the valuable suggestions. Leaving this thread open for now in case anyone has more suggestions.. Thank you, William.

I guess the next big thing would be to add backup and sync ( via git or other e.g. gdrive etc )


fix crash on Android 9+

crash log:
Unable to start receiver com.fitc.wifihotspot.receiver.HotSpotIntentReceiver: android.util.AndroidRuntimeException: Calling startActivity() from outside of an Activity  context requires the FLAG_ACTIVITY_NEW_TASK flag.

thx


Unable to get  .\Remove-PreviousOfficeInstalls.ps1 to Run

Hello,
So I've been having issues with installing 365, 2013, 2010 and 2007. I'm getting loads of errors - See my post here - https://www.reddit.com/r/Office365/comments/7z1fub/unable_to_install_office_365_or_2013_300xx_errors/
I've followed the guide as best as I can, I'm a noob so please be gentle. I'm getting several errors -
1. the script is not digitally signed. I've managed to bypass this using this code Unblock-File -Path C:\Scripts\Remove-PreviousOfficeInstalls.ps1
2. Then when I try to run it again I'm getting this error -
+ </a

+                   ~
The '<' operator is reserved for future use.
At C:\scripts\Remove-PreviousOfficeInstalls.ps1:136 char:19
+ </a

+                   ~
The '<' operator is reserved for future use.
At C:\scripts\Remove-PreviousOfficeInstalls.ps1:141 char:19
+ </a

+                   ~
The '<' operator is reserved for future use.
At C:\scripts\Remove-PreviousOfficeInstalls.ps1:146 char:19
+ </a

+                   ~
The '<' operator is reserved for future use.
At C:\scripts\Remove-PreviousOfficeInstalls.ps1:150 char:19
+ </a

+                   ~
The '<' operator is reserved for future use.
At C:\scripts\Remove-PreviousOfficeInstalls.ps1:7646 char:227
+ ... g:0;display:inline"><input name="utf8" type="hidden" value="✓" ...
+                                                                 ~
The ampersand (&) character is not allowed. The & operator is reserved for future use; wrap an ampersand in double
quotation marks ("&") to pass it as part of a string.
At C:\scripts\Remove-PreviousOfficeInstalls.ps1:7649 char:10
+ </form

+          ~
The '<' operator is reserved for future use.
At C:\scripts\Remove-PreviousOfficeInstalls.ps1:7665 char:24
+
© 2018 <span title="0.22830s from unicorn ...
+                        ~
The ampersand (&) character is not allowed. The & operator is reserved for future use; wrap an ampersand in double
quotation marks ("&") to pass it as part of a string.
At C:\scripts\Remove-PreviousOfficeInstalls.ps1:7665 char:36
+
© 2018 <span title="0.22830s from unicorn ...
+                                    ~
The '<' operator is reserved for future use.
At C:\scripts\Remove-PreviousOfficeInstalls.ps1:7665 char:42
+ ...  2018 GitHub</sp ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Unexpected token 'title="0.22830s from unicorn-3161165770-cdhjc">GitHub' in expression or statement.
Not all parse errors were reported.  Correct the reported errors and try again.
    + CategoryInfo          : ParserError: (:) [], ParseException
    + FullyQualifiedErrorId : RedirectionNotSupported`

3. I also tried running it like  - Remove-PreviousOfficeInstalls.ps1, as I'm already in the correct directory and it gave me this message
Suggestion [3, General]: The command Remove-PreviousOfficeInstalls.ps1 was not found, but does exist in the current location. Windows PowerShell does not load commands from the current location by default. If you trust this command, instead type: ".\Remove-PreviousOfficeInstalls.ps1". See "get-help about_Command_Precedence" for more details.

Then I tried  .\Remove-PreviousOfficeInstalls.ps1, and getting the same long error - SEE ABOVE

I've tried to run it like this but getting the same above error - . .\Remove-PreviousOfficeInstalls.ps1 Off_10.vbs (renamed the file)

It seems like you copied the html page to the .ps1 file. Make sure the actual powershell code is in the .ps1 file.


fix: remove no needed new pointer creation

What type of PR is this?

What this PR does / why we need it:
Which issue(s) this PR fixes:

remove no needed new pointer creation

I recall there's an improment in upstream go, but I cannot recall which version and commit, can you link it?

@zirain I did not get, and it should be none-related to this PR.
Can we get this in ?

I guess this one: https://go.dev/blog/loopvar-preview
For Go 1.22, we plan to change for loops to make these variables have per-iteration scope instead of per-loop scope.
It's fixed in Go 1.22, but why lint removes this check in 1.21 ?

I guess it's related to the variable scope in loop: https://go.dev/blog/loopvar-preview

For Go 1.22, we plan to change for loops to make these variables have per-iteration scope instead of per-loop scope.

It's fixed in Go 1.22, but why lint removes this check in 1.21 ?

yeah, that's what I mean.
should we hold this until we move to go1.22?

This loopvar feature of go 1.22 requires enable env GOEXPERIMENT=loopvar (default closed) explicitly. Maybe we could consider enable this feature for other places as well.


HIVE-20784 Migrate hbase.util.Base64 to java.util.Base64

https://issues.apache.org/jira/browse/HIVE-20784

@kgyrtkirk Please assist :)

Can you please rebase on master?


idle timeout for public ip addresses

idle timeout for public ip addresses

@ramnov,
Thanks for your contribution as a Microsoft full-time employee or intern. You do not need to sign a CLA.
Thanks,
Microsoft Pull Request Bot


Opencv4 upgrade

build working
todo:

[x] make opencv only the necessary packages

Things to do:

[ ] Make new robot debians
[ ] Update platform


Open object by property value

If Class has unique index f.e. on class property IndexNameOpen method
is generated to support openings by index value

@evshvarov this pull requests now has merge conflicts - could you please rebase?


Fix nulls in series

Coverage increased (+0.009%) to 90.055% when pulling 2bd41bdcc8d28d4fe90a87644101e9088fa8ff8a on fix_nulls_in_series into 0200f82368841b485c4f00c0a7d6a2d27e10e889 on develop.

Coverage increased (+0.009%) to 90.055% when pulling 2bd41bdcc8d28d4fe90a87644101e9088fa8ff8a on fix_nulls_in_series into 0200f82368841b485c4f00c0a7d6a2d27e10e889 on develop.


Configure the Airnode logger once instead of passing options with every log call

Currently the Airnode logger expects an options argument for every call. The details in options mostly come from the config file, which is expensive to parse. Ideally the logger should be configured once at the start of the handler runtime/first invocation.
https://github.com/api3dao/airnode/pull/867#discussion_r814794043

Hi @vponline, this isn't really a user-facing issue but I did this to test it:

I ran the example and deployed it on AWS,
I made a request, which got fulfilled
I checked the logs on CloudWatch

It seems that there are normal log entries as usual so I assume this works correctly. Moving to Done.


[BUG] feed not showing

Describe the bug
1)The feed page is not showing and there is no way to navigate to it.

cannot view groups like a feed mut shows up as a list

To Reproduce
It's not working from the getgo
Screenshots
Feed page in navbar not showing up

Feed page is not an option in home settings

If I click on group "aa" it's showing me the users but not posts

Going to the group using the navbar. It's still a list of users

Device
OnePlus nord 2T,
Android 13,
V3.0.0-beta9,
System language and region:
English, United States

#699 explains the removal of the feed. If you still want the feed you can use quacker.

#699 explains the removal of the feed. If you still want the feed you can use quacker.

Is this project gone?

#699 explains the removal of the feed. If you still want the feed you can use quacker.

Is this project gone?

Yes it was deleted today by the owner.
I forked the project Quacker a while ago.
Recently Quacker went in read-only mode announcing that it could be forked with another name.
So I changed the name of my project to continue the development.
It's called Squawker.

#699 explains the removal of the feed. If you still want the feed you can use quacker.

Is this project gone?

No, Quacker is still around


add electron-localshortcut

As discussed here
Not a big code simplification, but at least we yield a responsability to a more focused module :-)

Not a big code simplification

Simplifications is not just about LOCs. I think this makes the intent clearer, which is a big win :)

Agree!


Map Icons dont work

I´ve put the Map icons into materials/excl_mapvote/maps folder and they dont load in. They have the correct size and the correct format. They also have the same name as the map.

Closing the Issue, rewrote the Code to make it work.

If you have made edits that work for your specific setup, please make a pull request so that people with a setup similar to yours can enjoy it too.


Shoot Node logging no longer works

/area logging
/kind bug
What happened:
It seems that with<EMAIL_ADDRESS>it is no longer possible to fetch the logs from systemd units.
Loki labels for gardener/gardener < v1.44.0:

(Note that the unit label is present and a query like {unit="kubelet.service"} returns kubelet logs)
Loki labels For gardener/gardener >= v1.44.0:

(Note that the unit label is not present and {unit="kubelet.service"} returns nothing)
What you expected to happen:
unit label to be present and {unit="kubelet.service"}  to work as before.
How to reproduce it (as minimally and precisely as possible):

Open the control plane logging for a ManagedSeed

Make sure that the unit label is no longer present.

Anything else we need to know?:
Environment:

Gardener version: v1.44.0
Kubernetes version (use kubectl version):
Cloud provider or hardware configuration:
Others:

/close
as it is rather a configuration issue on my side


HTML as parameter

Hi,
Is it possible to use HTML elements like  as parameter value?
Here is an example of what I am thinking:
{
    "termsOfUse": "Terms of Use",
    "iAcceptWhat": "I accept the %{what}"
}

polyglot.t("iAcceptWhat", { what: `<a href="${link}">${polyglot.t("termsOfUse")}</a>` })

Right now everything is returned as plain text, even the HTML code.
What I need is a text followed by another portion of text wrapped inside  tags.
I accept the Terms of User

I'm confused; what format would you want it to return that's not a string?

One thing I forgot to mention is that I'm using it with React. I guess cases like this one require the use of dangerouslySetInnerHTML

Yes - internally at Airbnb we have a component that safely builds up the HTML string; otherwise it has to use dangerouslySetInnerHTML.
Regardless it's not something polyglot should be solving; you should pass the string you get from polyglot into something else :-)


Allow control over relative imports

Originally filed here: https://youtrack.jetbrains.com/issue/WEB-40061
Right now, IDEA will default to package imports for local files when doing auto completion. I would love to just use relative imports.
I appreciate relative imports because they are kept separated from the package imports so it is easier to tell what is my package code and external code that I've imported.
In my case, this is a standard flutter project and everything is in a lib folder. I understand that the imports work fine both as relative and package:xxx, it is just a preference because like I said, the way that they are sorted together is different.

Technical details: it is about a SourceChange that Analysis Server returns from completion_getSuggestionDetails() wnen user selects not-yet-imported item from a code completion list.

@scheglov @lambdabaa

Any news on this? :-)

Effective Dart:
DO use relative paths when importing libraries within your own package’s lib directory.

Duplicate of https://github.com/dart-lang/sdk/issues/32916; follow along there.


Indigo V2

Adds the Indigo V2 smart contracts. I hope I did everything correctly 😅

Thanks for a PR we will review it and merge it soon.

oh boy, completely forgot about this. way too much on my plate.

Almost there, been really hectic.


CSS style for image upload  has some problem

The original CSS style has problems.
.imgUpload { 	width: 10; 	height: 10; 	position:absolute }
I can't click the upload button. It didn't do anything.
However, if I change to this (inspired from http://www.bootcss.com/p/bootstrap-wysiwyg/), it works.
.imgUpload { 	opacity: 0;      position: absolute;      top: 0px;      left: 0px;      width: 41px;      height: 30px; }

Which examples file are you looking at?

@RandomlyKnighted example file: form-post.html

Ah I see what you're talking about now. PR #68 fixes this issue.

OK.


fix_serialized_reports_for_rails_four migration cleanup

This PR extracts the first 3 commits from #9119, which are mostly cleanup + Decouple the Serializer from ActiveRecord objects.
This will allow #9119 to just have the "meaty" part of the PR.
@gtanzillo Please review...Marking as euwe/no, but if #9119 needs backport, then this will need to go too.  @gtanzillo If you think this should be euwe/yes, please update

@Fryguy rebase and repush?

Rebased... @gtanzillo please review.

Database migrations have now been moved to the https://github.com/ManageIQ/manageiq-schema repo.  Please see http://talk.manageiq.org/t/new-split-repo-manageiq-schema/2478 for instructions on how to transfer your database migrations.  If this PR contains only migrations, I will leave it open for a short time during the transition, after which I will close this if it has not been moved over.


Ambient public fields initialized in parent class are blocked at compile-time

TypeScript Version:  3.8.0-dev.20191123
Search Terms: ambient declare public class fields parent initializer useDefineForClassFields
Code:
// @useDefineForClassFields: true
class Parent {
    a: any;
    constructor(arg: any) {
        this.a = arg;
    }
}
class Child extends Parent {
    declare a: number;
    constructor(arg: number) {
        super(arg);
        console.log(this.a);  // Property 'a' is used before being assigned. (2565)
    }
}

Expected behavior:
There should be no compile-time error, because this is legitimate ES(next) code.  The intent of declare <field> is merely to specialize the type, not to impose additional initialization constraints.
Actual behavior:
The usage of this.a causes the compiler error Property 'a' is used before being assigned. (2565).
The emitted code is good.  The only problem is the compile-time error.
Playground Link:

Minimal repro
Example from the 3.7 release announcement

Related Issues: https://github.com/microsoft/TypeScript/issues/34972
The main use-case for ambient public fields is to specialize parent class fields.  It is common for parent class fields to only be initialized in the parent constructor, invoked via super().  Due to this bug, this pattern does not work today, forcing the use of a workaround such as using @ts-ignore or redundant re-initialization of the property in the child constructor to appease the compiler.
cc: @sandersn

Interestingly, the error is correct, but only because the emit is apparently wrong.  With useDefineForClassFields: true and target: "esnext", the emitted code is:
"use strict";
// @useDefineForClassFields: true
// @target: esnext
class Parent {
    a;
    constructor(arg) {
        this.a = arg;
    }
}
class Child extends Parent {
    a;
    constructor(arg) {
        super(arg);
        console.log(this.a); // Property 'a' is used before being assigned. (2565)
    }
}
new Child(3); // prints undefined

Child#a is not actually ambient.  With that emit, constructing a Child prints undefined, regardless of the value passed to the constructor.  It really is used before being assigned! 😄

It seems the emit was fixed post-3.7, as the ambient field isn't emitted after switching the Playground to Nightly and the code then works correctly.  This does perhaps shed some light on how the error in question came to be, though.

You're right @fatcerberus that the original issue https://github.com/microsoft/TypeScript/issues/34972 has now been fixed on master. Upon testing that fix I then discovered this compile-time error, so raised it here.

It's just very interesting that the error message is correct for the original (incorrect) behavior.

Good point.  I guess it's obvious in retrospect, because the fix only changed the transformer.  There was no change to the checker.

Thanks for scheduling this @RyanCavanaugh.
This feature (declare with class fields) was introduced in 3.7 and the showcase example code from the 3.7 release announcement still doesn't work due to this issue.  It is currently scheduled for 3.8 - I wonder if this qualifies for patching 3.7?


feat(ui-select-choices): expression based minimum-input-length

Allows scope expressions to be used to calculate a minimum-input-length filter for the ui-select-choices directive.
Useful for showing all options when the option list is small, but applying a minimum when the list is large eg:
minimum-input-length="people.length > 50 ? 3 : 0"

Your indenting is slightly off.
But I think maybe for consistency we follow the same pattern as the other observable attributes?..
attrs.$observe('refreshDelay', function() {
  // $eval() is needed otherwise we get a string instead of a number
  var refreshDelay = scope.$eval(attrs.refreshDelay);
  $select.refreshDelay = refreshDelay !== undefined ? refreshDelay : uiSelectConfig.refreshDelay;
});

How's this?

That looks good now.
Just to check, something like minimum-input-length="{{people.length > 50 ? 3 : 0}}" isn't supported already is it?

facepalm
I did try that first off directly within my app and it didn't work. Not sure what I did wrong, but it is working fine in this plunker:
http://plnkr.co/edit/K6EwjGZsetp4FsQEY9Hv?p=preview
So you can probably close this PR, unless there is any other reason to prefer the bracketless expressions?

Still not working for me using the latest release, the $scope.$select.minimumInputLength variable is never updated after the initial assignment on load.


Group Case Sensitivity Issue

When a group name has caps in its URL but lowercase is used for gitlabform the group is found but no projects within it are processed.
Steps to reproduce

create a group with caps e.g. gitlabformtest/FOO

Note: you may also need to go to the group settings and change it in the group settings (General Settings > Advanced > Change group URL)

create a project in the group e.g. foo-project
setup gitlabform config group_settings for the group e.g. gitlabformtest/foo
run gitlabform output:

$ gitlabform gitlabformtest/foo
*** # of groups to process: 1
*** # of projects to process: 0
> (1/1) Processing: gitlabformtest/foo
GitLabForm version: <IP_ADDRESS> (the latest)

Cause
It looks like the API call to find groups works fine (case insensitive) so the group is returned and the subsequent call to get the projects returns the projects for the group.
However then when the projects are added to the list to be processed the startswith check will not match anything as it uses the lowercase group name and path_with_namespace from the API call returns the namespace with uppercase values.
See https://github.com/egnyte/gitlabform/blob/f765571ce826b3d745471ff7fbbb293589f3083f/gitlabform/gitlab/groups.py#L52
Workaround
Pretty simple workaround is to run gitlabform gitlabformtest/FOO instead of gitlabform gitlabformtest/foo but the fact it found the group but no projects stumped me for a while.

Hi, I have a very similar bug :
Steps to reproduce
in my config.yml file I have a group called  : "CAPS", it's the name displayed in gitlab but the url is "/blablabla/caps"
When I call gitlabform config CAPS, no project is processed.
But if I call  gitlabform config caps the projects inside the group and  are found and processed.
And if I put "caps" in the yaml config file, I get an error at the first project found in "caps" group :
Traceback (most recent call last):
  File "/usr/local/bin/gitlabform", line 6, in <module>
    GitLabForm().main()
  File "/usr/local/lib/python3.9/site-packages/gitlabform/gitlabform/core.py", line 205, in main
    self.process_all(projects_and_groups, groups)
  File "/usr/local/lib/python3.9/site-packages/gitlabform/gitlabform/core.py", line 324, in process_all
    configuration = self.c.get_effective_config_for_project(project_and_group)
  File "/usr/local/lib/python3.9/site-packages/gitlabform/configuration/projects_and_groups.py", line 40, in get_effective_config_for_project
    common_and_group_config = self.merge_configs(common_config, group_config)
  File "/usr/local/lib/python3.9/site-packages/gitlabform/configuration/projects_and_groups.py", line 112, in merge_configs
    merged_config[key] = {
TypeError: 'bool' object is not a mapping

Also, if I use gitlabform config ALL_DEFINED no project inside my group "CAPS" is processed
Cause
Do you need more info about this bug ? Does it seems really the same as the previously described bug ?
Workaround
use gitlabform config caps for all the groups containing capital letters, and not ALL_DEFINED (not very good workaround, but it works)

Hi @tobias-g ! Sorry for the late reply.
Hi @lazouz !
Both of your issues will be fixed in v2.0.0 which will be release within days from now.
In the mean time you can try out a pre-release that contains the fix, v2.0.0rc2.

v2 final has been released. Please reopen this ticket if you still have issues.


Mldb 1104 export

A little more of the same thing.
This time csv.export and sql.query have been modified.

+1


make erun local warning bcrypt

Nice project,
when I do: make run-local:
INFO:     Will watch for changes in these directories: ['/home/robomotic/DevOps/github/fastapi-nano']
INFO:     Uvicorn running on http://<IP_ADDRESS>:5002 (Press CTRL+C to quit)
INFO:     Started reloader process [32868] using StatReload
INFO:root:Running fastapi-nano with Python 3.13.0 (main, Oct 16 2024, 03:23:02) [Clang 18.1.8 ]
WARNING:passlib.handlers.bcrypt:(trapped) error reading bcrypt version
Traceback (most recent call last):
  File "/home/robomotic/DevOps/github/fastapi-nano/.venv/lib/python3.13/site-packages/passlib/handlers/bcrypt.py", line 620, in _load_backend_mixin
    version = _bcrypt.__about__.__version__
              ^^^^^^^^^^^^^^^^^
AttributeError: module 'bcrypt' has no attribute '__about__'
INFO:     Started server process [32870]
INFO:     Waiting for application startup.
INFO:     Application startup complete.

I think is just an issue with that version.

Thanks for reporting. Yeah, I noticed this. It's an upstream issue that I'll need to take a look.

Temporary fix in the svc/init.py:

import logging
import sys

# Set default logging value to debug
logging.basicConfig(level=logging.INFO)
# disabling due to: https://github.com/pyca/bcrypt/issues/684
logging.getLogger('passlib').setLevel(logging.ERROR)

logging.info("Running service with Python %s", sys.version)

This has been patched https://github.com/rednafi/fastapi-nano/pull/316


ceph.conf: prolong "mon mgr mkfs grace" to 2 minutes

it might take longer than 1 minutes to:

create a monmap
create the auth keyrings
prepare the osd devices and activate OSDs (fdisk,mkfs.xfs,ceph-osd --mkfs)
prepare the monitors (mkfs), and start them
start monitor

Signed-off-by: Kefu Chai<EMAIL_ADDRESS>

it addresses

http://pulpito.ceph.com/kchai-2017-11-06_02:23:20-rados-wip-kefu-testing-2017-11-06-0102-distro-basic-mira/1817559/
http://pulpito.ceph.com/kchai-2017-11-06_02:23:20-rados-wip-kefu-testing-2017-11-06-0102-distro-basic-mira/1817500/

probably we should also change the default setting in options.cc?

Thanks we saw  a few instances of these in Luminous teuth runs


HV-1547 Refactor ValidatorImpl to allow C2 compiler to inline methods

@gsmet This PR contains refactoring that reduces the bytecode size of ValidatorImpl.determineGroupValidationOrder()

Hi @johnaohara ,
Is the compiler able to inline the 2 extracted methods too? Otherwise if I understand these things coreectly, we would end up with 2 method calls instead of one?

After further profiling with the changes, the extracted methods are not being compiled. Even though ValidatorImpl.determineGroupValidationOrder() is now being inlined we still need to call the extracted methods which are now interpreted and won't be inlined


Implement Rx/Tx reunification for Serial

There are many possible pin combinations for a Serial peripheral. Many support at least one alternative pin group to be used, and in addition to that, each pin can also be configured differently. For instance, instead of the common Output<PushPull> with an Input<Floating>, one could also use Output<OpenDrain> and Input<PullUp>, e.g. when
interfacing with a 1-Wire bus.
This pin information is already lost when splitting the Serial object into Rx/Tx. In order to allow a reunification into a Serial object which represents ownership of both Tx and Rx, we need a Serial variant which has that pin information erased.
This PR introduces ErasedSerial, which serves exactly that purpose. In addition, Tx and Rx both gain a consuming reunite function which restores the original Serial. To facilitate that and provide the original contents of the ErasedSerial struct, we use the Tx to stash away the USART instance -- this choice is arbitrary. As the USART is zero-sized anyway and we get both parts (Rx and Tx) when reuniting, it shouldn't matter where we stash it away.
Fixes #386.

Note that this answers some of the design questions in #386 in code. I am using this successfully in my async/await experiments on the STM32VLDISCOVERY board, but I'm open for changing things if you disagree about anything.

Possibly if Tx contain tx_pin and Rx contain rx_pin we will not need ErasedSerial

See #392

cc @TheZoq2

Is reconfigure the main goal of reunification for you?

Is reconfigure the main goal of reunification for you?

In this case I can propose easier solution: #393
The advantage of external function that it takes mutable references instead of owning Tx and Rx and can be used in RTIC, etc.


add rationale representation of prices to /trade_aggregations

AKA: always listen to @nullstyle
https://github.com/stellar/horizon/issues/416

Except when I'm having a crazy moment 😉

I think it's already there, reopen if you disagree:
    "records": [
      {
        "timestamp":<PHONE_NUMBER>000,
        "trade_count": 26,
        "base_volume": "27575.0201596",
        "counter_volume": "5085.6410385",
        "avg": "0.1844293",
        "high": "0.1915709",
        "high_r": {
          "N": 50,
          "D": 261
        },
        "low": "0.1506024",
        "low_r": {
          "N": 25,
          "D": 166
        },
        "open": "0.1724138",
        "open_r": {
          "N": 5,
          "D": 29
        },
        "close": "0.1506024",
        "close_r": {
          "N": 25,
          "D": 166
        }
      },

I think it's already there, reopen if you disagree:
    "records": [
      {
        "timestamp":<PHONE_NUMBER>000,
        "trade_count": 26,
        "base_volume": "27575.0201596",
        "counter_volume": "5085.6410385",
        "avg": "0.1844293",
        "high": "0.1915709",
        "high_r": {
          "N": 50,
          "D": 261
        },
        "low": "0.1506024",
        "low_r": {
          "N": 25,
          "D": 166
        },
        "open": "0.1724138",
        "open_r": {
          "N": 5,
          "D": 29
        },
        "close": "0.1506024",
        "close_r": {
          "N": 25,
          "D": 166
        }
      },


Manipulation of text fields & Add character limit on AJAX processor

Describe the bug
This bug allows the user to manipulate the text fields for forms to illegally change values such as display name with multiple lines.
To Reproduce
Steps to reproduce the behavior:

Go to https://red7community.ml/account/settings/
Open inspect element
Select the description submit button
Remove 'hidden' from the text field above
Change to 'changeDisplayName'
Submit it.
Now you have a name that has no character limit

Expected behavior
Not let the user set their username past a certain limit
Screenshots

Desktop (please complete the following information):

OS: Windows 11
Browser Brave
Version 1.31.87

Additional context
This could be fixed by adding a character limit to the AJAX processing form.

Oops, forgot to close


[Feature]: pjax exclude

功能简介
博客部分页面不使用pjax
问题描述
能否像butterfly主题类似，在主题配置config配置部分内容不使用pjax加载
pjax:
  enable: true
  # Exclude the specified pages from pjax, such as '/music/'
  exclude:
    # - /xxxxxx/
    ```

### 实现效果

pjax:
enable: true
Exclude the specified pages from pjax, such as '/music/'
exclude:
# - /xxxxxx/
```
你想到的可行的替代方案
No response
其他内容
No response

Upvote & Fund

We're using Polar.sh so you can upvote and help fund this issue.
We receive the funding once the issue is completed & confirmed by you.
Thank you in advance for helping prioritize & fund our backlog.

主题大部分功能基于pjax实现


Commitment change

Received feedback that compliance was too strong of a claim--updating to show commitment instead.

@tessahurr : Thanks for your contribution! The author(s) have been notified to review your proposed change.

@ktoliver : Thanks for your contribution! The author(s) have been notified to review your proposed change.


White font color on top of gray background confusing

As you can see white color on top of gray is not readable. Is it possible to change/fix this coloring? Please note that I am using dracula-theme.

my setup:
(use-package selectrum
  :hook (after-init . selectrum-mode)
  :config
  (use-package selectrum-prescient
    :custom
    (prescient-filter-method '(literal regexp initialism fuzzy))
    :config
    (selectrum-prescient-mode t)
    (prescient-persist-mode t)))

@avatar-lavventura This is not a Selectrum issue and should be fixed instead in the Dracula theme. The theme should adjust the selectrum-prescient-*-highlight faces. Please open an issue at the Dracula repository.

Ok I will, also is it possible to change it using M-x customize-group RET  ... ?

Sure it is, you can adjust arbitrary faces via customization or by setting the face attributes in your init.el.

Thanks @minad!

@avatar-lavventura For reference, here is how you can adjust face attributes if you want to do it programatically in your init.el.
(set-face-attribute 'mode-line nil :height 0.8 :box nil)

@minad I have added but still facing with the same coloring issue :-( Seems like something is overwriting on top of it

Try this?
;; apply some adjustments after theme switching
(advice-add #'enable-theme :after
            (lambda (&rest _)
              ;; scale mode line
              (set-face-attribute 'mode-line nil :height 0.8 :box nil)
              (set-face-attribute 'mode-line-inactive nil :inherit 'mode-line :height 1.0 :box nil)))

@minad Still no affect :-(

@avatar-lavventura AFAIU the problem is the cursor color and how it looks when the cursor is over a char right? Usually that shouldn't look different than when you are in a usual buffer? For controlling the cursor color you can use set-cursor-color.

@clemera Sorry the issue took a path from its origin and I don't want to consume your time related to it.
the problem is the cursor color Yes sir. // Please note that under iTerm I am using Smart box cursor color, which does not take place under M-x usage I believe, so it remains as gray-white combination as cursor's default color.


Gradient.reverse() produces unexpected result on constant gradients

Godot version
4.0.2
System information
All systems
Issue description
https://user-images.githubusercontent.com/85438892/232497823-8a87f39f-eb15-4fca-a1d8-356d3af26247.mp4
This behavior of Gradient.reverse() is quite surprising at first. It's caused by the points being mirrored around the gradient's middle, but maybe it should be different for constant interpolation.
Steps to reproduce
Add a gradient, make its interpolation constant, use the Reverse Gradient button.
Minimal reproduction project
N/A

Ok, I got it.

Well, I don't think it's even possible. Take this:

Red should move to the right, white should move to the center. Where does black go? Outside of the gradient?

I'm done with this, I don't think it's a good idea. If someone wants to pick it up, here's what I got.
if (interpolation_mode == GRADIENT_INTERPOLATE_CONSTANT && points.size() > 1) {
	float x = points[0].offset * (1.0 / points[1].offset);
	for (int i = 0; i < points.size() - 1; i++) {
		points.write[i].offset = 1.0 - points[i + 1].offset;
	}
	points.write[points.size() - 1].offset = points[points.size() - 2].offset * x;
} else {
	for (int i = 0; i < points.size(); i++) {
		points.write[i].offset = 1.0 - points[i].offset;
	}
}

One part of this solution might look weird, so I'll explain.
Gradient.reverse() normally ensures that two runs of the function result in the gradient being the same as before. If we want to keep this property, something extra needs to be considered.

Take the left gradient here. The white point in it is currently non-deterministic - it can be anywhere between 0 and the pink point. This information should be held, because after being reversed (the gradient on the right), the cyan point becomes non-deterministic, free to move between 0 and the blue point without affecting the gradient. The white point becomes deterministic.
This means that only Cyan is able to keep information about where White used to be. So, White's position (somewhere between 0 and Pink) has to be mapped to Cyan (somewhere between 0 and Blue). In my code, I do so by finding a ratio (kept in the x variable in my code) and passing that ratio to Cyan. This is not a good mapping because it doesn't extend logically beyond the [0, 1] domain of the gradient (which exists, Gradients only show things in [0, 1] but points can be outside of this range) and because it makes points at offset 1 collide with the point directly to their left.

But yeah, for any solution, points at offset 1 become a problem, because they must then be moved to somewhere lower than offset 0. This hides them from the Gradient Editor - something we, in all likelihood, would prefer not to be the case.

Actually, another thing we could do is add this extra handle to the Gradient Editor to help mitigate the unhappy side effects.

It would allow us to map the leftmost point based on the distance from the second point.


Support of manifest file for feature apps

Instead of adding each file (js for client, js for ssr, css, etc.) in the feature-app loader, it maybe make sense to support a mainfest file.
For example with webpack-assets-manifest:
https://www.npmjs.com/package/webpack-assets-manifest
Example:
{   "featureapp.js": "featureapp-9c68d5e8de1b810a80e4.js",   "featureapp.node.js": "featureapp-9c68d5e8de1b810a80e4.js",   "featureapp.css": "featureapp-9c68d5e8de1b810a80e4.css", }
Instead of:
<FeatureAppLoader   src="https://example.com/some-feature-app.js"     serverSrc="https://example.com/some-feature-app-node.js"   />
We could do following:
<FeatureAppLoader   manifest="https://example.com/manifest.json" />

Can you expand on this a bit? Did you intent to publish the manifest file and reference it on the FeatureAppLoader so that it is loaded before the files listed in the manifest are loaded?

We considered this in the initial design phase of the Feature Hub several months ago, but decided against it, mainly because of the additional request that would have to be made for every Feature App.
It also has other disadvantages regarding topics like version pinning, supporting different absolute URLs, forcing a bundle filename, etc.

Is the first point really a problem in age of h2?
I cannot follow your arguments for the next points, can you provide examples?

Is the first point really a problem in age of h2?

Yes, because the two requests for a Feature App have to be done sequentially, even with HTTP/2 this will be slower than a single request.

Is the first point really a problem in age of h2?

Yes, because the two requests for a Feature App have to be done sequentially, even with HTTP/2 this will be slower than a single request.

That is clear for me. But as we have an integrator and a feature app team (which can be different teams), as a feature team i would like to add an additional css without to change the FeatureAppLoader configuration in the integrator. It would decrease the dependencies between the teams.
Maybe you have a better idea?

Closed by me due to inactivity. Please reopen if there are further discussion points.


Support changing default node/background color

Just a small thing that would be nice in the future. For example, drawing nodes black (rather than with the default gray color currently used) increases the contrast significantly:

This could be useful for e.g. vision-impaired folks.
Might be a nice TODO at some point down the line after #137?

Whatever default we select, we should make both background color and tree color user-selectable.

Agreed, having both selectable will be really nice. Just for reference, here's what a "dark mode" tree looks like in Empress ;) -- I imagine sticking with the black/gray on white default will be preferred by most users, but supporting this stuff (and #137) will make it really easy to style Emperor and Empress similarly.

Related to how we want to represent non-unique and non-represented features.

One complication with this issue is that, if we change the default node color to black (which I think would be best IMO), then the root node's special black marker no longer stands out:

I think the way around this is changing the root's marker to be different in some other way (e.g. a square / star / unfilled circle / etc.), and maybe making the color of the root configurable as well.

A different shape should work well :+1:

Did a bit more looking into this; it looks like Emperor uses Spectrum for letting users select colors, so I think for the sake of simplicity it would be good to just use that for this.
(I'd thought it might be possible for us to re-use the vendor JS code between Emperor and Empress in the tandem plots -- letting us avoid duplicating the files unnecessarily -- but it doesn't look like that is currently possible, and I suspect that would probably be more trouble than it's worth.)


DataChangeDetectionPolicy loses column name in serialisation

@azure/search-documents:
11.2.1:
Windows:
[ ] nodejs

16.3.0:

[ ] typescript

4.0.0:

Is the bug related to documentation in

[ ] README.md
[ ] source code documentation
[ ] SDK API docs on https://docs.microsoft.com

Describe the bug
When creating or updating a DataSourceConnection to a cosmosdb data source, when you pass e.g. a HighWaterMarkChangeDetectionPolicy it gets serialised as a DataChangeDetectionPolicy, thereby losing the highWaterMarkColumnName field and causing an error in the api:

A valid high water mark column name must be specified for this change detection policy.

To Reproduce
Steps to reproduce the behavior:

With an existing Azure Cognitive Search service, create a new SearchIndexerClient
Then run:

await searchIndexerClient.createOrUpdateDataSourceConnection(
                {
                    name: "my-datasource-name",
                    type: "cosmosdb",
                    connectionString: "...",
                    container: {
                        name: "my_container"
                    } ,
                    dataChangeDetectionPolicy: {
                        odatatype: "#Microsoft.Azure.Search.HighWaterMarkChangeDetectionPolicy",
                        highWaterMarkColumnName: "_ts"
                     }
                }
            )

The actual body of the html message sent the REST API is:
{"name":"my-datasource-name","type":"cosmosdb","credentials":{"connectionString":"..."},"container":{"name":"my_container"},"dataChangeDetectionPolicy":{"@odata.type":"#Microsoft.Azure.Search.HighWaterMarkChangeDetectionPolicy"}}

Expected behavior
The column name should be serialised
Additional context
The behaviour is also incorrect with DataDeletionDetectionPolicy where it also serialises without the optional fields softDeleteColumnName and SoftDeleteMarkerValue, even when they are present.

Label prediction was below confidence level 0.6 for Model:ServiceLabels: 'Cosmos:0.24762703,Search:0.1694629,Storage:0.14159'

@rossb-mmt, Thanks for raising the issue. I have validated the scenarios with the latest version of search-documents SDK (11.3.0-beta.7) with the following code:
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.

/**
 * @summary Demonstrates the DataSource Connection Operations.
 */

import {
  SearchIndexerClient,
  AzureKeyCredential,
  SearchIndexerDataSourceConnection,
  HighWaterMarkChangeDetectionPolicy,
} from "@azure/search-documents";

import * as dotenv from "dotenv";
dotenv.config();

const endpoint = process.env.ENDPOINT || "";
const apiKey = process.env.SEARCH_API_ADMIN_KEY || "";
const connectionString = process.env.CONNECTION_STRING || "";
const dataSourceConnectionName = "example-ds-connection-sample-1";

async function createDataSourceConnection(
  dataSourceConnectionName: string,
  client: SearchIndexerClient
) {
  console.log(`Creating DS Connection Operation`);
  const dataSourceConnection: SearchIndexerDataSourceConnection = {
    name: dataSourceConnectionName,
    description: "My Data Source 1",
    type: "cosmosdb",
    container: {
      name: "my-container-1",
    },
    connectionString,
  };
  await client.createDataSourceConnection(dataSourceConnection);
}

async function getAndUpdateDataSourceConnection(
  dataSourceConnectionName: string,
  client: SearchIndexerClient
) {
  console.log(`Get And Update DS Connection Operation`);
  const ds: SearchIndexerDataSourceConnection = await client.getDataSourceConnection(
    dataSourceConnectionName
  );
  ds.container.name = "Listings_5K_KingCounty_WA";
  ds.dataChangeDetectionPolicy = {
    odatatype: "#Microsoft.Azure.Search.HighWaterMarkChangeDetectionPolicy",
    highWaterMarkColumnName: "_ts",
  };
  console.log(`Updating Container Name of Datasource Connection ${dataSourceConnectionName}`);
  await client.createOrUpdateDataSourceConnection(ds);
}

async function listDataSourceConnections(client: SearchIndexerClient) {
  console.log(`List DS Connection Operation`);
  const listOfDataSourceConnections: Array<SearchIndexerDataSourceConnection> =
    await client.listDataSourceConnections();

  console.log(`List of Data Source Connections`);
  console.log(`*******************************`);
  for (let ds of listOfDataSourceConnections) {
    console.log(`Name: ${ds.name}`);
    console.log(`Description: ${ds.description}`);
    console.log(`Connection String: ${ds.connectionString}`);
    console.log(`Data Change Detection Policy: ${ds.dataChangeDetectionPolicy}`);
    if (ds.dataChangeDetectionPolicy) {
      const highWaterMarkChangeDetectionPolicy =
        ds.dataChangeDetectionPolicy as HighWaterMarkChangeDetectionPolicy;
      console.log(
        `Data Change Detection Policy - HighWaterMarkColumn Name: ${highWaterMarkChangeDetectionPolicy.highWaterMarkColumnName}`
      );
    }
    console.log(`Data Deletion Detection Policy: ${ds.dataDeletionDetectionPolicy}`);
    console.log(`Etag: ${ds.etag}`);
    console.log(`DataContainer`);
    console.log(`\tName: ${ds.container.name}`);
    console.log(`\tQuery: ${ds.container.query}`);
    console.log();
  }
}

async function deleteDataSourceConnection(
  dataSourceConnectionName: string,
  client: SearchIndexerClient
) {
  console.log(`Deleting DS Connection Operation`);
  await client.deleteDataSourceConnection(dataSourceConnectionName);
}

async function main() {
  console.log(`Running DS Connection Operations Sample....`);
  if (!endpoint || !apiKey || !connectionString) {
    console.log("Make sure to set valid values for endpoint and apiKey with proper authorization.");
    return;
  }
  const client = new SearchIndexerClient(endpoint, new AzureKeyCredential(apiKey));
  try {
    await createDataSourceConnection(dataSourceConnectionName, client);
    await getAndUpdateDataSourceConnection(dataSourceConnectionName, client);
    await listDataSourceConnections(client);
  } finally {
    await deleteDataSourceConnection(dataSourceConnectionName, client);
  }
}

main().catch((err) => {
  console.error("The sample encountered an error:", err);
});

I am able to verify that the code changes are working fine and the properties are serialized correctly. Could you please validate with the above code and version? Let me know if you are still blocked.

Thank you, I can confirm 11.3.0-beta.7 does indeed work correctly.


 Possibly a question of changing the thing - sm lg etc

Adding "priority" label because the mobile site really does look terrible.

Addressed in website 2.0


Improve tests

fix tests:

[ ] sendVideoNote

improve docs:

P.S. I didn't manage to run your tests because I have no idea how to get
TEST_PROVIDER_TOKEN / TEST_GAME_SHORT_NAME / TEST_GROUP_ID
It would be nice to have a description how to get these in your docs :)
— https://github.com/yagop/node-telegram-bot-api/pull/364

these are the five greatest exponents of the graphic design of our era
Enter now
https://sites.google.com/aprendizajesignificativo.org/exponentesdiseografico/página-principal


[WIP] Save and rebuild calibrations from metadata

Summary
This PR introduces a methodology to serialize and deserialize an instance of Calibrations.
Details and comments
This PR introduces the following new features:

The base calibration class uses the run method to add calibration information to the metadata of an ExperimentData instance.
Calibrations can be serialized and deserialized.
The library initialization code is moved from the __init__ of BackendCalibrations to the __init__ of Calibrations.

TODOs:

[ ] Break-up this PR

After digging into this in more detail I think I'm going to break this PR up into several parts:

[ ] Library serialization using kwargs. This should be fairly straight forward.
[ ] Refactor of calibrations in preparation for calibrations serialization: this will move some functionality from the backend cals to the cals and change the initialization. I think we can initialize the cals in two manners. Once using a backend and once using only certain features of the backend. This means that we can serialize the cals without having to serialize the backend.
[ ] Serialize the calibrations.

Closed by #656


Add Safetensors.write!/2 for streamed write

When persisting to a file, Safetensors.dump/1 calls Nx.to_binary/1 on all tensors upfront (and if we need to convert endianness, we create yet another binary), so this can cause a significant memory bump. This PR adds Safetensors.write!/2 that converts and writes tensors directly to the file, one by one.
Other than lower memory usage, this can also be much faster. For the example below, it's 5 times faster for me:
tensors =
  # 1000 tensors, 8MB each -> 8GB
  for i <- 1..1000, into: %{} do
    {"t#{i}", Nx.iota({1_000_000}, type: :f64)}
  end

# Dump + write
File.write!("/tmp/test.safetensors", Safetensors.dump(tensors))

# Direct write
Safetensors.write!("/tmp/test.safetensors", tensors)

Hi @devCaiquedePaula. Please do not use automated/AI code review tools unless requested. If you feel any of these points are relevant though, a PR is welcome.


RucioInjector deleting blocks prematurely due to multiple workflows writting on them

Impact of the bug
T0 Agent
Describe the bug
Current deleteBlocks logic is faulty. In order to delete a block, the component should check that there are no workflows that need the files in the block. Nonetheless, right now it assumes each clock is associated with a single workflow. If only one of the workflows is deletable, RucioInjector deletes the block, even to other workflows may still need it.
Full description of the error can be found here:
https://its.cern.ch/jira/browse/CMSTZ-1001
How to reproduce it
Running a replay with 2 runs that share some datasets. You must stop prompt reconstruction workflows for the seconde run. Set DeletionDelay to a short value. After the first run finishes processing, you will see that several blocks will be deleted, including those that are still needed by the second run.
Expected behavior
If a block is needed for processing, it should not be deleted

There is and aditional issue with GetCompletedBlocks.py. As now we group blocks by workflow too, the line:
HAVING COUNT(*) = SUM(dbsbuffer_workflow.completed)

no longer ensures all workflows related to the block need to be completed in order for the block to appear in the query

I think we should remove the dbsbuffer_workflow.completed check from GetCompletedBlocks.py as this check now is done with GetDeletableWorkflows.py. What do you think @todor-ivanov ?

I think we should remove the dbsbuffer_workflow.completed check from GetCompletedBlocks.py as this check now is done with GetDeletableWorkflows.py.

Difficult to say immediately. This is tricky, since the check that  you are mentioning to be redundant to the old one is from another table - GetCompletedBlocks performs the check for "all workflows completion"  by looking only into dbsbuffer_workflow table, while GetDeletableWorkflows does its magic by looking into wmbs_workflow table. On the other hand we  have already proven that with the current level of granularity of the groups created by the GetCompletedBlocks query we do have a faulty logic which needs to be fixed.


Card "Delayed Potential" isn't clear enough that toggling (flipping) the card changes the cost

Possible actions:

Change card to cost 1 for both "sides", but have the draw card portion also add 1 energy.
Add a new card status with tooltip ("Toggle Discount"?) that explains that the card's cost is different between flip states

did easier fix for now, both sides cost 1 energy, flipped side grants 1 energy. change made in 0.1.2


Tag for version 0.3.18

Hi, I just noticed that there is no tag v0.3.18.

Thanks for the heads up! Pushed.


removed double sentence

Preview is available here:http://developers-pr79.previews.kube001.services.stellar-ops.com


Archive code-coverage results

Describe your problem(s)
We cannot view the code coverage results for a PR
Describe your solution
Upload the generated code coverage report to GitHub
Checklist

~Unit tests~
~Documentation~
~Updated release note~

Closed since workflow did not trigger for this


TypeScript Errors

Describe the bug

Property 'includes' does not exist on type 'string[]'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2016' or later.ts(2550)
Cannot find name 'require'. Do you need to install type definitions for node? Try npm i --save-dev @types/node`

To Reproduce
Steps to reproduce the behavior:

Clone repo
Run pnpm i
Run pnpm start
See error

Expected behavior
No TypeScript or Webpack errors
Screenshots

Hello @ChocolateLoverRaj,
Thanks for your contribution.
I am however not quite sure how you are reproducing these problems - We are several people both working with and using this library on a daily basis and none of us have seen these errors ourselves.
Based on this I am worried this is a change for an issue you are just experiencing locally, likely due to some global npm packages being installed or the like.
Could you please provide the details needed for setting up our the environment to reproduce the issue, so we can confirm these changes are in fact required?
Thanks


Plots are unsigned in H Pool

Plots are which I created with mad max looking unsigned in H Pool , how can I fix this ?

use hpool plotter

with mad max ?

I having no problem using hpool

It will sort itself out after a few hours. Unless you used the wrong keys when you created the plots.

It will sort itself out after a few hours. Unless you used the wrong keys when you created the plots.

actually when I was used hp plotter fpk was starting with :0xaf , and ppk : 0xb3 . But madmax didn't accept it . I took another numbers from chia keys show which start with : a7ebc , and af610 . Someone told me , this chia keys show is my real keys . It's same , it will accept both . Maybe this is the problem ?

it's looking like this in H pool ;
0xb38a064f8c0d7b90***   668          66.15 TiB             Signed
0xa7ebc45c841ae482***    19               1.88 TiB           Unsigned

If you have generated new keys with Chia, you will probably have to bind the new keys with HPool.
It should be the ones that says "Pool public key" and "Farmer public key", not the "Master public key"

but when I put my mnemonic  , Hpool plotter application gives me same signature as before.

When I created the plots I used " Master public key (m) " and " Farmer public key (m/12381/8444/0/0)"  this one was the mistake ?
I have to use  "Pool public key" and "Farmer public key" ?
So now I have to change it and run again ? and delete those plots ?

Yes
On Sat, 12 Jun 2021, 13:14 karads, @.***> wrote:

When I created the plots I used " Master public key (m) " and " Farmer
public key (m/12381/8444/0/0)" this one was the mistake ?
I have to use "Pool public key" and "Farmer public key" ?
So now I have to change it and run again ? and delete those plots ?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/madMAx43v3r/chia-plotter/issues/324#issuecomment-860032634,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ALGV2WBK6MXWDKKBZRIH4YDTSMXPLANCNFSM46SCZYRA
.

to get the keys, get the log files in the app da chia, in the first line of the log file has the keys, follow the directory below:
C:\Users\YOU_USER.chia\mainnet\plotter

use "Pool public key" and "Farmer public key"


MQTT list may provide paths that are not present in the settings structure

If a setting is an Option, and thus run-time dependent, it will still be provided in the list output of the MQTT client.
This could be acceptable, but we should document it. Otherwise, we should update list to use the current settings structure to traverse the present paths instead of all possible paths.

I think it's ok to include absent paths. But it should indeed be documented.


Empty file when sending an XLSX or BytesIO

First Check

[X] I added a very descriptive title to this issue.
[X] I used the GitHub search to find a similar issue and didn't find it.
[X] I searched the FastAPI documentation, with the integrated search.
[X] I already searched in Google "How to X in FastAPI" and didn't find any information.
[X] I already read and followed all the tutorial in the docs and didn't find an answer.
[X] I already checked if it is not related to FastAPI but to Pydantic.
[X] I already checked if it is not related to FastAPI but to Swagger UI.
[X] I already checked if it is not related to FastAPI but to ReDoc.

Commit to Help

[X] I commit to help with one of those options 👆

Example Code
from datetime import datetime
import uvicorn
import asyncio
from io import BytesIO as IO
from io import StringIO as SIO
import pandas as pd
import os
from fastapi import BackgroundTasks, Body, File, UploadFile, Form,FastAPI, Depends
from fastapi_mail import FastMail, MessageSchema, ConnectionConfig
from dotenv import load_dotenv
from starlette.responses import JSONResponse
from typing import Any, Dict
from pydantic import EmailStr, BaseModel
import numpy as np
load_dotenv('.env')

class Envs:
    MAIL_USERNAME = os.getenv('MAIL_USERNAME',"")
    MAIL_PASSWORD = os.getenv('MAIL_PASSWORD',"")
    MAIL_FROM = os.getenv('MAIL_FROM',"")
    MAIL_PORT = int(os.getenv('MAIL_PORT',587))
    MAIL_SERVER = os.getenv('MAIL_SERVER',"smtp.office365.com")
    MAIL_FROM_NAME = os.getenv('MAIN_FROM_NAME','')
    MAIL_USE_TLS = os.getenv('MAIL_USE_TLS',True)
    MAIL_USE_SSL = os.getenv('MAIL_USE_SSL',False)

conf = ConnectionConfig(
    MAIL_USERNAME=Envs.MAIL_USERNAME,
    MAIL_PASSWORD=Envs.MAIL_PASSWORD,
    MAIL_FROM=Envs.MAIL_FROM,
    MAIL_PORT=Envs.MAIL_PORT,
    MAIL_SERVER=Envs.MAIL_SERVER,
    MAIL_FROM_NAME=Envs.MAIL_FROM_NAME,
    MAIL_TLS=Envs.MAIL_USE_TLS,
    MAIL_SSL=Envs.MAIL_USE_SSL,
    USE_CREDENTIALS=True,

)

mailing= FastAPI(title="Envio de correos", description="En este proyecto seres capaz de enviar correos facilmente", version="1.1"

)

@mailing.post("/dayli")
async def alarmas_diaria():
    #obtengo la data

    data= pd.DataFrame(np.random.randn(100, 2))
    xls_data = get_xls_data(data)
    csv_data = get_csv_data(data)
    #creo una tarea para enviar el corroe
    respuesta= await send_email_async_file({'email':"jdsuarez@logyca.com"},{'file':xls_data})
    #await send_email_async_file({'email':"jdsuarez@logyca.com"},{'file':csv_data})

    #asyncio.create_task(dayli_report.send_reports(day=fecha.day))
    return(respuesta)

def get_xls_data(df):
    output = IO()
    with pd.ExcelWriter(output,  engine='openpyxl', options={'strings_to_numbers': False}) as writer:
        df = df.replace(np.nan, '', regex=True)
        df = df.astype(str)
        df.reset_index(drop=True).to_excel(writer, 'AlarmaDiaria', index=False)
        writer.save()
        output.seek(0)
        return output

def get_csv_data(df):
    s_buf = SIO()
    df.to_csv(s_buf,index=False, header=False)
    s_buf.seek(0)
    return s_buf

class fileSchema(BaseModel):
    file:bytes = File(...)

class EmailSchema(BaseModel):
    email: EmailStr

async def send_email_async_file(email: EmailSchema, file: fileSchema=File(...)) -> JSONResponse:
    #
    file_upload=UploadFile(filename="alarmasDiariasfil.xlsx",file=file.get("file"),content_type='application/vnd.openxmlformats-officedocument.spreadsheetml.sheet')
    #file_uploadCSV=UploadFile(filename="alarmasDiariasfil.csv",file=file.get("file"),content_type='text/csv')

    message = MessageSchema(
        subject="prueba",
        body="alarmas diarias prueba",
        subtype='html',
        recipients=[email.get("email")],
        #attachments=[file]  if send file direct response fastapi_mail.errors.WrongFile: attachments field type incorrect, must be UploadFile or path
        attachments=[file_upload]
        #attachments=[file_uploadCSV]
    )
    fm = FastMail(conf)
    await fm.send_message(message)
    return JSONResponse(status_code=200, content={"message": "email has been sent"})

Description
I am trying to send an xlmx file by mail but when converting it into a BytesIO object the final file is empty as if when executing its read () function it would not find the data. since it is in getvalue (), if I send it a stringIO with a csv it works because the data is in read ()
Get the data and transform it into stringIO or BytesIO
I call the function to send emails and I send the data, if I pass directly the Binary or string it tells me that it only accepts Uploadfile or path. that's why I build an object of type Uploadfile and pass it to attachments
I add the csv method that if you attach the file with data. replace xls_data with csv_data
Operating System
Windows
Operating System Details
WIndows 10
FastAPI Version
0.67.0
Python Version
3.7
Additional Context
No response

You forgot to reset the file position to the beginning of the buffer (with output.seek(0)) after pandas is done writing your Excel file into it. It works with the CSV output because you added s_buf.seek(0).

I have already tried putting the seed in 0 but it still does not contain the information, a little more bytes are added

I believe ExcelWriter does some finalization work when exiting the context manager, so it's probably not a good idea to seek on the buffer while inside it.
def get_xls_data(df):
    output = IO()
    with pd.ExcelWriter(output,  engine='openpyxl', options={'strings_to_numbers': False}) as writer:
        df = df.replace(np.nan, '', regex=True)
        df = df.astype(str)
        df.reset_index(drop=True).to_excel(writer, 'AlarmaDiaria', index=False)
        writer.save()

    output.seek(0)
    return output

it just adds more information to the file but it doesn't work, the file can't even be opened

it is as if it did not pass the entire buffer

Might want to test your Pandas options by saving your dataframe to a local file instead of a BytesIO buffer. As far as I can tell, the snippet I posted above should be sending the whole file, so you may want to compare a locally-saved file with the output of your API to see if there's any noticeable differences between the files. If the local file doesn't work either, then it's probably not a FastAPI issue.

You are absolutely right, when I try to send the file through the path it works, but I get the data from a query to the database and when saving it on disk it loses performance and increases the execution time, the costs on the server increase due to disk handling.


ARROW-13128: [C#] TimestampArray conversion logic for nano and micro is wrong

Nice catch!
Do you think you can add a test for a Microseconds column? That way we can ensure it is working correctly.

Good idea to add tests :) the micro case was failing due to do integer division.


Multi connexion

Hello jan, i have a small question, i noticed that since i use the pdo version, that you are not able to log in on another computer if you have already a open window of the game on another device,
Example, i am logged home and have to go to work, i forgot to close the window at my home computer and now when i login on my work computer i get after a few seconds session expired until i close the window at home; is this due to a code of yours, or is it possible that is log a user of if a js file continue to call an url to check if you have message. i have no idea what message i can have at home nor if i m still logged after all there.
It doesnt change if i destroy all sessions in db. i really need to close the window
Regards

https://github.com/jkroepke/2Moons/blob/master/includes/classes/Session.class.php#L255
the session class checks the ip of the user and if it sees two ips for the same user the isValidSession() function is returned false and that makes the session expire.

Thanks


Uncaught Error: ENOENT: no such file or directory, stat '$ATOM_HOME/packages/atom-beautify/README...

[Enter steps to reproduce:]

...
...

Atom: 1.57.0 x64
Electron: 9.4.4
OS: linux 5.4.99-12983-g8b7876ab9f5e
Thrown From: Atom Core
Stack Trace
Uncaught Error: ENOENT: no such file or directory, stat '/home/tobiadeyeye/.atom/packages/atom-beautify/README.md'
At internal/fs/utils.js:220

Error: ENOENT: no such file or directory, stat '/home/tobiadeyeye/.atom/packages/atom-beautify/README.md'
    at statSync (fs.js:915:3)
    at Proxy.fs.statSync (electron/js2c/asar.js:278:27)
    at PackageDetailView.renderReadme (/usr/share/atom/resources/app/static/<embedded>:14:863300)
    at PackageDetailView.updateInstalledState (/usr/share/atom/resources/app/static/<embedded>:14:863067)
    at PackageDetailView.populate (/usr/share/atom/resources/app/static/<embedded>:14:861619)
    at PackageDetailView.completeInitialization (/usr/share/atom/resources/app/static/<embedded>:14:856959)
    at PackageDetailView.loadPackage (/usr/share/atom/resources/app/static/<embedded>:14:857171)
    at /usr/share/atom/resources/app/static/<embedded>:14:863968
    at Function.simpleDispatch (/usr/share/atom/resources/app/static/<embedded>:11:1186190)
    at Emitter.emit (/usr/share/atom/resources/app/static/<embedded>:11:1187631)
    at PackageManager.emitPackageEvent (/usr/share/atom/resources/app/static/<embedded>:11:917432)
    at /usr/share/atom/resources/app/static/<embedded>:11:914564
    at r (/usr/share/atom/resources/app/static/<embedded>:11:909094)
    at n (/usr/share/atom/resources/app/static/<embedded>:14:1190909)
    at /usr/share/atom/resources/app/static/<embedded>:14:1191063
    at Socket.<anonymous> (/usr/share/atom/resources/app/static/<embedded>:14:1189665)
    at Socket.emit (events.js:228:7)
    at Pipe.<anonymous> (net.js:664:12)

Commands
 61x -9:53.4.0 core:backspace (input.hidden-input)
     -6:20.4.0 tree-view:show-in-file-manager (div.header.list-item.project-root-header)
     -5:10 tree-view:remove-project-folder (div.header.list-item.project-root-header)
 23x -3:36.3.0 core:backspace (input.hidden-input)

Non-Core Packages
atom-beautify 0.33.4
atom-html-preview 0.2.6
atom-ternjs 0.20.0
csslint 1.2.0
emmet undefined
linter 3.4.0
linter-eslint 8.6.6
pigments 0.40.6
Sublime-Style-Column-Selection 1.7.5

Where is the trash bin

Thanks for reaching out!
We require the template to be filled out on all new issues and pull requests. We do this so that we can be certain we have all the information we need to address your submission efficiently. This allows the maintainers to spend more time fixing bugs, implementing enhancements, and reviewing and merging pull requests.
Thanks for understanding and meeting us half way 😀


Connection crashes after some time and blocks any attempt at reconnecting

Describe the bug
In the Desktop version of Loophole, I have noticed that an hour after creating my tunnel, it crashes with the red box saying "EOF." This box was green before it crashed and the tunnel was working.

I searched this repository for existing reports, and I have found one - #9. There is a topic about the EOF error (relationship to this issue is unknown.) The issue is also linked to #27, which means Loophole already has a reconnect feature.
Unfortunately, this red box is staying red without any apparent attempt at reconnecting the tunnel.
Plus, no more manual attempt to recreate a tunnel succeeds after the tunnel crashes because apparently, the crashed tunnel "is already running."
This is definitely not the case since the previous one died (further connections to the tunnel times out.)
Notice that I have deleted the previously crashed tunnel at this point.

The logs for the specific tunnel contained this line for the reason for the crash:

Listening on remote endpoint for HTTPS failed

I don't know which side (me or LH) you mean by "remote endpoint," the server I was running on localhost for tunneling was running fine.
I can connect to the said server from localhost and get the correct response.
To Reproduce
Steps to reproduce the behavior (to replicate my setup close enough:)

Get any Docker container that exposes an HTTP port to the host running.
Check that you can connect to the container via that port.
Launch LoopHole Desktop and set up a tunnel that exposes the host port tunneled to the previous Docker container.

Do NOT use the custom 502 error page.
Use a custom subdomain.

Create that tunnel.
Observe that the tunnel is working.
Wait for about an hour.
The tunnel crashes and stays crashed indefinitely.

Expected behavior

The tunnel should not crash (or is there a limitation in place?)
In the event it does crash, LH should reconnect the tunnel.

Environment

OS: macOS Big Sur 11.6.2
Version: 1.0.0-beta.14 8253b9d

Additional context
The last lines of logs look like the following. Some of the info is redacted because it had some of my information:
2022/2/15 23:44:54	{"type":"MT_RequestTunnelStart_HTTP","payload":{"local":{"host":"<IP_ADDRESS>","port":3939,"https":false},"remote":{"disableProxyErrorPage":true,"tunnelId":"5fc75728-17f6-45dc-af94-1d583b6e4ff2","siteId":"<REDACTED>"}}}
2022/2/15 23:44:54	{"type":"MT_LoadingStart","tunnelId":"5fc75728-17f6-45dc-af94-1d583b6e4ff2","message":"Registering your domain..."}
2022/2/15 23:44:59	{"type":"MT_LoadingSuccess","tunnelId":"5fc75728-17f6-45dc-af94-1d583b6e4ff2"}
2022/2/15 23:44:59	{"type":"MT_TunnelStart","tunnelId":"5fc75728-17f6-45dc-af94-1d583b6e4ff2"}
2022/2/15 23:44:59	{"type":"MT_LoadingStart","tunnelId":"5fc75728-17f6-45dc-af94-1d583b6e4ff2","message":"Starting local TLS proxy server"}
2022/2/15 23:44:59	{"type":"MT_LoadingStart","tunnelId":"5fc75728-17f6-45dc-af94-1d583b6e4ff2","message":"Starting local proxy server... "}
2022/2/15 23:44:59	{"type":"MT_LoadingSuccess","tunnelId":"5fc75728-17f6-45dc-af94-1d583b6e4ff2"}
2022/2/15 23:44:59	{"type":"MT_LoadingStart","tunnelId":"5fc75728-17f6-45dc-af94-1d583b6e4ff2","message":"Initializing secure tunnel... "}
2022/2/15 23:45:01	{"type":"MT_LoadingSuccess","tunnelId":"5fc75728-17f6-45dc-af94-1d583b6e4ff2"}
2022/2/16 0:45:01	{"type":"MT_LoadingFailure","tunnelId":"5fc75728-17f6-45dc-af94-1d583b6e4ff2","error":"EOF"}
2022/2/16 0:45:01	{"type":"MT_TunnelLog","message":"Listening on remote endpoint for HTTPS failed","class":"danger","tunnelId":"5fc75728-17f6-45dc-af94-1d583b6e4ff2"}
2022/2/16 0:45:01	{"type":"MT_TunnelStartFailure","tunnelId":"5fc75728-17f6-45dc-af94-1d583b6e4ff2","error":"EOF"}

Hello @Clpsplug, thanks for the detailed report. I've received such report over mail as well and I already started investigation. We have a small bug in our SSH gateway which I'm working on a fix to.
In the meantime, I've applied a workaround and you should be able to recreate the tunnel (it should no longer say that the tunnel is already running). Please let me know if that's working.
As I mentioned above I will continue working on it and will update this issue once the problem is gone.

@Morishiri, thank you for your reply. I am currently testing the behavior out. So far, the tunnel has not appeared to crash yet after about three hours, but I do see that the tunnel has died internally several times. The reconnection attempts seem to be working now. Interestingly, the crashes still occur precisely in a one-hour interval.

Should I keep this open until the underlying tunnel crashes are resolved, or close it because the reconnect is now working?

The re-connection happens because of our reverse proxy timeout which I will increase to 24h, but the reason for not being able to connect again is more problematic.

@Clpsplug the increased timeout is now deployed, let me know if you encounter any disconnect from now one (except the one every 24h).

Hi @Morishiri i set up a tunnel the other day, around lunchtime, and from the log I could see the tunnel connection dropping every hour and successfully reconnecting till late evening (11pm or similar) when the connection dropped and it didn't reconnect anymore.
I am using loophole cli version 1.0.0-beta.15_linux_64bit running on my Synology NAS.


How - SMTP & gmail?

Hello.
How to setup SMTP with gmail?
Since there is no way to add "SSL or TLS" so. what to do?

I have added support for using starttls and getting the auth mode. These changes are in the master branch.

STAYTUS_SMTP_PORT=587 will set the port
STAYTUS_SMTP_STARTTLS=1 will enable auto starttls
STAYTUS_SMTP_AUTH_MODE will allow you to change the way passwords are sent. You shouldn't need to change this for Google.


Transition talk rooms to public rooms once the Q&A is done

Including announcements to move to the talk room after the talk.

I believe this is done, at least I think we had it for 2021


Hotfix/small bug fix

Fix indent
Prevent move page with up,down button
Link add to footer
Change font size in presentation
Add sanitize to create page
Refactor jquery variable
Fix resides presentation bug on fullscreen
Delete reduant like function

Change button position in detail page


AAD for AES Added

Upon closer inspection, forge does support Authenticated Additional Data. So here it is.
Closes #1008

Really looking forward to this feature 👍

I added support for AAD in the AES Decrypt operation too, and wrote a bunch of tests based on results generated from pycryptodome.

What kind of input is expected in this?
Is it hex, raw, utf-8?

Good point. I originally implemented it as a binary string (so you could include non-printable characters in their escaped form, like \n or \x0a) but I've just changed it so you can specify the type, like for the key and IV.


[discuss/random] DOM2React

Did a quick experiment about creating react elements out of living DOM, here's the code:
https://gist.github.com/elia/fad23026831a817e3526
I'd like to hear opinions, not sure if this can be useful, but the initial idea was to render static dom and do progressive enhancement through react instead of jquery.
The other idea I'd like to bring to the table is haml2react.rb, kinda on the lines of the Glimmer engine that will come to next Ember version, that's probably a better idea :)
PS. sorry for opening an issue, not probably the best place for a discussion, but I though gitter would have been to sync, and I don't want to miss a single comment on this :frog:

Looks like a cool idea (also learn some cool tricks from your code :smile: ), would you mind explaining more on the haml2react.rb part?

Would be cool to replace jsx with haml, I know they feel strongly about keeping the dom declaration along with the component code but you know, ppl like haml :stuck_out_tongue_winking_eye:
The point is that unlike parsing the living dom, haml clearly defines static and dynamic parts and the same object that are supplied to render the haml template can be used to render the react component
var HelloMessage = React.createClass({
  render: function() {
    return
Hello {this.props.name}
;
  }
});

would be in haml (hello_message.haml)
%div
  Hello
  = @name

plus:
class HelloMessage
  include React::Component
  # …
  def render
    ReactTemplate["hello_message"]
  end
end

@elia Another useful idea coming from the ember guys is that because they use a template language, rather than pure javascript, they are able to be clever about re-rendering. For example:
.some-class
  .some-other-class
    = some_value

From that template, when we re-render, we know that the only thing that could possibly change is the value passed from some_value, so we do not need to waste cpu cycles checking if .some_class or the inner class have changed - they never will.
Ember, using handlebars, are using this and getting some even better rendering speeds as static content never has to be re-checked between renders.

Sorry, I didn't explain that too well, but this does: https://github.com/emberjs/ember.js/pull/10501

Just come up with idea to support different template language (erb, haml) by extending the DOM2React idea @elia present.
Basically every time the render method of the react component is called, the render method of the template language will be invoked which will return plain html back. And then we create an offscreen DOM tree (using innerHTML) and feed it to the DOM2React function which will construct the actual virtual DOM for us and used as the final return value.
We got the benefit of extensibility to all kind of template languages (which return html string as result) and still take advantage of React.js Virtual DOM technique to actually modify the on-screen DOM elements.
The only drawback may be the phase building the actual DOM tree, but since it's not even live on the screen, so all the expensive layouting and rendering will not actually happen.

@adambeynon that's what I meant referring to ember's glimmer engine, actually I got the "inspiration " just after watching the ember 2015 keynote :shipit: :)
@zetachang not sure how expensive would be the offscreen rendering. Also that would give up the ability to pass data to the template. Probably if one wants to use ERB he'd be better off with JSX or HTMLBars directly.

Actually the render method will work like pseudo code below,
def render
  offscreen_element = Element.create(Template['hello_message'].render(self))
  DOM2React.build(offscreen_element)
end

So it's still possible to pass data to the template rendering context.

I see now, I still feel as it could defy react's performance gains. If js perf wasn't broken it would have been good to have a comparison there.
Another option could be to deep clone react elements and then mutate them, but I didn't seem to find anything on the subject yesterday … in that case tho the (possible) cost of rendering+parsing the Dom would be paid just once.

@adambeynon i believe that would add marginal performance increase, is it worth to leak abstractions to get it? Is this choice makes code cleaner? Could this be a problem for non-DOM targets? I dont know, but i personally like that React has no such assumptions built in.
Sorry for slight offtopic boys :)

This issue was moved to reactrb/reactrb#13


How do you represent bencoded strings that contain a <hex> tag to avoid ambiguity?

Relates to: https://github.com/torrust/bencode2json/issues/7
I implemented a port of the format <hex>...</hex> use in this repo to Rust:
https://github.com/torrust/bencode2json/issues/7
And someone told me it's not reversible. I had not realized.
It's just to warn other people using this format. Maybe we can come up with an alternative. I think this is the only repo I've seen using this format.

How do you represent bencoded strings that contain a  tag to avoid ambiguity?

I don't. I rely on the probability that hitting this edge case is very low for my application. Even if encountered, I can just shrug and say too bad, this isn't supported.
The situation is worse for a library author. And I don't think it is able to work around it. The best you can do is (probably) try to convert to string and fallback to raw bytes when failed.


[#36] Add Jupyter container into playground

Currently, Gravitino have own Python client, we need have a Python notebook environment to execute and use it.
So, I think add Jupyter into playground.

Added params bigdata and ai for launch-playground.sh

./launch-playground.sh bigdata
./launch-playground.sh ai, Open http://localhost:8888 in you brower

Added gravitino-fileset-sample.ipynb into jupyter, You can use it to explore Gravitino Python client integration HDFS

#36

Could you raise a pull request for the repo of Gravitino?

Could you raise a pull request for the repo of Gravitino?你能对 Gravitino 的回购提出拉取请求吗？

Yes, I will pull request https://github.com/datastrato/gravitino/pull/2932

Could you raise a pull request for the repo of Gravitino?你能对 Gravitino 的回购提出拉取请求吗？

Yes, I will pull request datastrato/gravitino#2932

You should modify the document https://github.com/datastrato/gravitino/blob/main/docs/how-to-use-the-playground.md


Specify AuthToken as parent class of APIToken and JWTAuthToken in order

This omits the Pyright warning when an APIToken/JWAuthToken is used in the creation of a new NocoDBRequests instance. As there is currently no no way for Pyright to tell that this to classes can be used as a parameter for NocoDBRequsts.

LGTM. Thank you! 🙌🏻


Transpile static js before minification

Fixes #409
Quick note, I think we discussed about using babili, but after having a chat with @nickbalestra and making a test, I decided to still use uglify, but with babel on top.
With a test I made (using moment.js), babel+uglify => ~30KB VS babel+babili => ~45KB - so it turns out es5 + uglify is still more effective. We obviously may revisit in the future if makes sense.

@matteofigus @nickbalestra This version 0.36.12 breaks our widget static bundle.
We still stuck in early es5. https://github.com/opentable/reservation-widget

@char1e5 yes, while we fix it, oc.minify = true on the package.json
https://github.com/opentable/oc/wiki/package.json-structure