svg.outerHTML unsupported?

The outerHTML for svg elements is undefined; I can get outerHTML for other HTML elements like 'div'.
I'm running the 2.1.1 Mac binary on Mac OS X 10.11.4. I haven't checked other platforms or releases.
Here's my test PhantomJS script:
var page = require('webpage').create(); page.onError = function(m){console.log(m);phantom.exit(1);}; page.open('https://localhost/svg.html', function(){phantom.exit();});
And the sample HTML file:
<!DOCTYPE html>
test div
<svg id="mysvg"><text x="50" y="50">test svg</text></svg>
The result of running the script is Error: no outerHTML. The script completes without errors if I swap "mydiv" for "mysvg".

This also happens on windows.

I found this issue as well.
A work around could to get the innerHTML of the parent element:
document.getElementById('mysvg').parentElement.innerHTML


Does it support whisper with timestamp?

How to get the timestamp?

Please switch to another model.
You can find which model supports timestamps by looking at our doc.
There is an example output for each model in the doc.


Wrap callback in extern "C" block.

This is probably me being pedantic, but the dispatch table is defined inside an extern "C" block, while the callbacks were not. This shouldn't have been a problem, but this feels cleaner.
I created a pull request (rather than a suggestion) in order to have the CI validate the change.
CI ran: see https://github.com/Kerilk/OpenCL-Layers/actions/runs/2282819938 and https://github.com/Kerilk/OpenCL-Layers/actions/runs/2282819937
edit: if this looks good, I will make a separate pull-request for the other layers

@MathiasMagnus does this makes sense to you? do you want me to make a similar pull request on the layer repo, but for all C++ layers?


Add support for embedded files

Hi,
This PR adds support for embedded files, both at the root level via SetAttachments() or as page annotations via AddAttachmentAnnotation().
Summary of the changes :

The main content is in attachments.go
A new type Attachment is added as an API convenience, and two internals slices are added (attachments  and pageAttachments).
The exported method Embed() (on Attachment) allows re-use of the same content for several annotations, without duplications.
File annotations require to write an object before writing the page dict. Thus putpages() is slightly modified : the assumption on object number for /Kids in putpages() would otherwise failed.
Two examples are added.

Best,
BK

Thanks, @benoitkugler! This is a great feature but I encounter problems in my environment (Chrome OS) when viewing the example files. The first is likely a limitation of the Chrome native viewer: I can open the file but have no access to the embedded files. Is there a way to provide an interactive link like a bookmark to them?
The Chrome viewer fails to load the file annotations document and reports the rather unhelpful error Failed to load PDF document.. Any insights?

Indeed I have the same error on Chromium Web Browser.
I will look for the issue and be back when fixed :)

So... I fixed a mistake (due to a bad usage of p.pages and p.newobj()), which means annotations shouldn't cause an error anymore.
However, it seams that Chromium is unable to render file annotations... In comparison, Mozilla PDF.js, Okular or Evince (on linux) render the file properly.
So it seems it's more a reader issue, but it maybe requires more tests ?

Is there a way to provide an interactive link like a bookmark to them?
Well, file annotations are precisely supposed to offer a "pointer on hover" linking to the file...

Nice work, @benoitkugler! Thanks for the new feature.


Make widgets square regardless the window size

Is it possible to make square widgets regardless the window size?
Currently the height of the widgets stay the same on window resizing, while the width changes. This way on narrow screens the widget becomes unproportional.
Any help would be more then welcome...

You could maybe try and override the "mobile" min_width which is default at 768px so once you've hit that break point it'll flip the widgets to fit the screen/phone/ipad view.

You can set window resize event handler and update grid cells height with value you need: https://github.com/troolee/gridstack.js#cellheightval
Be aware that it could be performance expensive on large grids


Error when Finetuning with local dataset

Hi, I'm fine-tuning mpt-7b with my local dataset. Dataset processor seems fine but getting error while training.
I get this warning says
UserWarning: Truncating TARGET sequence of length=7704 to length=2040, so context+target fit max_seq_len=2048. If truncation is a problem, consider increasing max_seq_len.

then get an error:
Unable to create tensor, you should probably activate truncation and/or padding with 'padding=True' 'truncation=True' to have batched tensors with the same length. Perhaps your features (`input_ids` in this case) have excessive nesting (inputs type `list` where type `int` is expected)

How do I activate truncation or padding in my yaml? Can't find any information in examples

@Mewral , Where did you add 'padding=True' information? I am getting the same error.


Support implicit account recovery from seed phrase

Overview
We have quite a few users that either directly created an implicit account from a seed phrase in the CLI, or used Trust Wallet to generate one. We should support recovering an account into the Wallet by entering the seed phrase for these accounts.
Note:
The scope of this issue only includes implicit accounts that already exist on-chain, as there are a few changes needed to support accounts that have not yet been instantiated (and thus have zero balance).
Acceptance Criteria

[ ] Account is loaded correctly when entering the seed phrase for an existing implicit account on /recover-seed-phrase

[x] Works with CLI generated accounts
[ ] Works with Trust Wallet generated accounts

The scope of this issue only includes implicit accounts that already exist on-chain, as there are a few changes needed to support accounts that have not yet been instantiated (and thus have zero balance).

After thinking about it – I think we shouldn't directly support accounts which haven't been created yet. As literally every seed phrase has such account (before it's been claimed and keys replaced), so in normal seed phrase recovery flow it's going to be a distraction.
Makes sense to support these as part of exchange integration flows.


How to setup neptune_query_timeout while running export?

As mention in the document, I try to run below command to perform the export. I am getting the timeout exception. I know that I have to set the neptune_query_timeout parameter, but not sure how to pass this parameter.
bin/neptune-export.sh export-pg -e neptunedbcluster-xxxxxxxxxxxx.cluster-yyyyyyyyyyyy.us-east-1.neptune.amazonaws.com -d /home/ec2-user/output

ignore this issue. fixed the issue by increasing query time by creating new parameter group and attach it into cluster.


Search for checker workflows

needs 8fea92dba4b63338f84ca821ca31997594c317f4 from the webservice
implementation for https://github.com/ga4gh/dockstore/issues/1486

Note to self: this requires a TRS update and should not be merged till then


Add bump functions

Description

Motivation and Context

Closes #
How Has This Been Tested?

[ ] I have tested using MacOS
[ ] I have tested using Linux
[ ] I have tested using Windows

Checklist

[ ] I have updated the documentation accordingly.
[ ] I have updated the tests accordingly.

Codecov Report
Base: 100.00% // Head: 100.00% // No change to project coverage :thumbsup:

Coverage data is based on head (257b71e) compared to base (d562ce7).
Patch coverage: 100.00% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff            @@
##              main        #3   +/-   ##
=========================================
  Coverage   100.00%   100.00%
=========================================
  Files            1         1
  Lines           46        64   +18
=========================================
+ Hits            46        64   +18

Impacted Files
Coverage Δ

semver.go
100.00% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.


Bring back the old MSDN, your new API Browser search sucks, it is UNUSABLE (slow and no significant results)

Seriously, I have no further comments - the whole MSDN is just gone for good.
The next time you try to reinvent a search engine do that as an alternative.
Google works, but all links are broken, so MSDN is effectively dead for me. I'll have to go to find the content in the web archive.
 Harsh words are not enough to punish you for that move.

@frevds could you please add more info about the APIs that you are searching?

In my case it's SharePoint, which (I know by now) is missing, but this is not the point of this issue.
The issue is, that you broke a perfectly functional solution which was not just some thing under your control but a major resource on the web, and replaced it by something on force. I DO NOT WANT your new solution, why are you forcing me to use a new API browser? Where is my opt-out? At least I want to be given a choice to use the old site while your new site is suboptimal. This same pattern of subpar renewal of software is already annoying enough to have with all Windows 10 apps where a new generation of inexperienced developers seem to know it better and destroy my productivity.

I can't find any documentation on reactive extensions (Rx) with the new API browser. Searching for System.Reactive produces no results. System.Reactive was well-documented in the old MSDN pages.

@frevds we are working on ensuring content redirects work properly - our team is currently in the process of putting the correct redirects in place.

Related to this: Try searching for something as basic as Enumerable.Except in the top search. Even scoped to .NET it returns irrelevant results (note the scope query parameter that's automatically added):
https://docs.microsoft.com/en-us/search/index?search=Enumerable.Except&scope=.NET. This returned no relevant results in the first page.

@prasadu-microsoft Regarding search in the site search, this is covered by #50.
@svick we are tracking that request with #583.
@frevds closing this issue as the original issue was addressed. We are gradually moving content to docs.microsoft.com and have accidentally enabled redirects before the full content migration is complete. That is work in progress, and we will enable the redirects again once the content makes it over. Thanks for the feedback!


"react-native init ***" crash if loglevel is set "info" in .npmrc

When I have "loglevel=info" in .npmrc file
I run react-native init XXX, I get the error below:
.............
npm info install<EMAIL_ADDRESS>into /Users/LHoin/source-github/test/node_modules/react-native/node_modules/babel-preset-fbjs/node_modules/babel-plugin-transform-es2015-classes/node_modules/babel-helper-define-map
npm info installOne<EMAIL_ADDRESS>npm info install<EMAIL_ADDRESS>into /Users/LHoin/source-github/test/node_modules/react-native/node_modules/babel-preset-fbjs/node_modules/babel-plugin-transform-es2015-classes/node_modules/babel-template
npm info installOne<EMAIL_ADDRESS>npm info linkStuff<EMAIL_ADDRESS>npm http 304 https://registry.npm.taobao.org/asap
npm info install<EMAIL_ADDRESS>npm info
npm install --save --save-exact react-native failed
when I remove the line "loglevel=info" in .npmrc, react-native init success
my enverionment
node: 4.4.7
react-native-cli: 1.0.0

Yep, this is definitely an issue (on OS X at least). I tried your Getting Started instructions multiple times with many versions node and npm, restarts aplenty and everything else until I found this issue.
It seems loglevel is to set info from warn in /Users/<User/.npmrc by default if you had previously installed with the nodeJS installer

@stowball Thank you for reply. Though I wasted a lot of time when I got this error, it was really not a serious problem.

This is working for me now in master, so I'm going to close this issue. If there's still a problem it would be great if you could provide more specific info for how to reproduce so that I can reproduce it.


fix(e2e): bump helm/v3 to 3.16.4

This PR fixes an incompatibility of Helm and our pinned version of Docker by bumping Helm dependency, used by our e2e tests.

Superseded by #39


Upgrade Aries JDBC Transaction to 2.1.2

https://issues.apache.org/jira/browse/ARIES-1560

R: @jbonofre


Groups matching not working as expected

If I have the following regex group:
Full_Date:
    Basic Full_Date:
        Expression: ([0-3]?[0-9]) \. ([0-1]?[0-9]) \. (20[0-9][0-9])
        Matches: 01.01.2021
        Non-Matches: 01--01-2021 | 01.01.1990
        Groups:
            - Day
            - Month
            - Year

and the following function, associated to Basic Full_Date:
def full_date(Day, Month, Year):
    print('full_date', Day, Month, Year)
    if Day is None or Month is None or Year is None or Day=='' or Month=='' or Year=='' or len(Day) > 2 or len(Month) > 2:
         return None
    if len(Day) == 1:
        Day = '0' + Day
    if len(Month) == 1:
        Month = '0' + Month
    return {'day':Day, 'month':Month, 'year':Year}

how is it possible that when parsing the string 21.2.2021 the function is called with Day= 21.2.2021, MOnth=21 and year=2 ? It does not make any sense to me

Well, two possibilities. One is that the system no longer works. It's been
a little while since I've maintained it.
Second possibility is that you are using an expression as a pattern. The
expression you have should be wrapped in a pattern first before use:
FullDatePattern:
Order: 1
Pattern: |
<Full_Date>
from datetime import timedef full_date(Date=None):
Day, Month, Year = *Date
On Wed, Apr 27, 2022 at 3:46 AM Vittorio Torri @.***>
wrote:

If I have the following regex group:
Full_Date:
Basic Full_Date:
Expression: ([0-3]?[0-9]) . ([0-1]?[0-9]) . (20[0-9][0-9])
Matches: 01.01.2021
Non-Matches: 01--01-2021 | 01.01.1990
Groups:
- Day
- Month
- Year
and the following function, associated to Basic Full_Date:
def full_date(Day, Month, Year):
print('FUllDAte', Day, Month, Year)
if Day is None or Month is None or Year is None or Day=='' or Month=='' or Year=='' or len(Day) > 2 or len(Month) > 2:
return None
if len(Day) == 1:
Day = '0' + Day
if len(Month) == 1:
Month = '0' + Month
return {'day':Day, 'month':Month, 'year':Year}
how is it possible that when parsing the string 21.2.2021 the function is
called with Day= 21.2.2021, MOnth=21 and year=2 ? It does not make any
sense to me
—
Reply to this email directly, view it on GitHub
https://github.com/andychase/reparse/issues/14, or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAS3CCB7T2V6UO7GLARSBM3VHELIFANCNFSM5UOWSO5Q
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>


Add TATEditor Latest

TATEditor is a text editor that can be vertical writing.

I removed the ?attredirects=0&d=1 part from URL.

Thank you. Could you please squash your commits?

Changed license to gratis and squashed commits.

Thank you. Merged.


Bandwidth plot does not show in Firefox

The bandwidth plot is not rendered in Firefox

In Chrome it works

For #514, we need to plot the bandwidths on a tab which contents are not visible initially. Here the plottable plot is not rendered correctly. I'm replacing now the badwidth plot with a bokeh one, hopefully this here is then solved, too.


Install Tailwind and replace the CSS with tailwind

Install Tailwind CSS with SolidJS. Guide Link
Replace CSS style with tailwind class

Issue: #13

@all-contributors please add @msisaif  for code


feat: update ieee-data to

OUI and IAB listings
Issue: https://github.com/deepin-community/sig-deepin-sysdev-team/issues/552
Log: update repo

/integrate


Apply address playback to lms schema

What is the context of this PR?

Applied address playback to lms.

How to review

Check that spec matches.

Schema validator pr

Go launcher pr

Checklist

[ ] New static content marked up for translation
[ ] Newly defined schema content included in eq-translations repo

Just tested it.  If you provide all/some of the address fields, it looks and functions correctly.
If you provide none of the fields, it goes bang on the page where the individual fields are used


Incorrect translation in documentation

Bug Type
UX
Reproduction steps

visited the main page. (https://tegro.money/)
moved to the section with project documentation. (https://tegro.money/docs/en/)
start reading....

Actual result
!Please note that we are on the English version of the site!
However, the screenshots offered on your website are in Russian rather than English.
Links 1–5 take you to these sites. + photos 1–5
1.https://tegro.money/docs/en/begin/register/

2.https://tegro.money/docs/en/begin/register/add-shop/

3.https://tegro.money/docs/en/begin/register/shop-settings/

4.https://tegro.money/docs/en/sci/create-payment/simple-form/

5.https://tegro.money/docs/en/api/api/

Also on the following three links 6–8 are sites where instead of English there are words in Russian + photos 6–8.
6.https://tegro.money/docs/en/api/info/create-order/

7.https://tegro.money/docs/en/api/check-order/order/

8.https://tegro.money/docs/en/api/check-order/list-orders/

Expected result
Full English translation.
Suggested Severity
Medium
Device
Desktop:

OS: [Ubuntu 22.04.1 LTS]
Browser [Google Chrome]
Version [Version 105.0.5195.125 (Official Build) (64-bit)]

Smartphone:

Device: [e.g. iPhone 8 plus]
OS: [iOS15.3.1]
Browser [Safari]

Additional Context
All of the devices I examined show signs of the issue. It appeared on several mobile devices (such as the iPhone 6s, iPhone 8 Plus, and Samsung A51), as well as various operating systems (windows 7, 10; ubuntu 22.04).

Are you kidding me? Your documentation has been translated wrongly. and you claim it wasn't deliberate

@yrdevel


chore(hosting-on-linux.md): fix invalid docker-compose.yaml example

The provided docker-compose.yaml example in the hosting-on-linux.md file was an invalid yaml and an invalid docker-compose file.
I used my wokring docker-compose .yaml file to fix the example.

Poking @lachlanmaclean as original author of the Docker instructions and Docker config file

It has been some time since I've visited this page. Most of the YAML that I wrote still existed but looks like some formatting got lost when migrating to this new page.
Looks fine to me :)
Thanks for the raising an issue.


Discoverability of GetResponse::Hit methods

response = client.get(...)
if response.hit?

At this point an IDE will not show you that response has a value method. The IDE knows get returns a Momento::GetResponse, but it does not know it is a ::Hit subclass with a value method.
Provide a way to make this discoverable that makes sense to Ruby programmers.
One option is an as_hit method which returns a ::Hit subclass, like the PHP SDK does.
# @return [Momento::GetResponse::Hit]
def as_hit
  return response if hit?
end

Then the IDE knows the type of the resposne. A get request would look like...
response = client.get(...)
if hit = response.as_hit
  # an IDE can know
  puts hit.value
elsif response.miss?
  puts "Miss!"
elsif response.error?
  puts "Something went wrong: #{response.error.detail}"
end

Which suggests we get rid of the type? methods and replace them with as_type.
response = client.get(...)
if hit = response.as_hit   # GetResponse::Hit
  puts hit.value
elsif response.as_miss   # GetResponse::Miss, but only used as a boolean check
  puts "Miss!"
elsif error = response.as_error  # GetResponse::Error
  puts "Something went wrong: #{error.detail}"
end

CC @cprice404

@cprice404

Wholeheartedly disagree with that statement. We are doing that in .NET and we will be doing it in other languages as well, most especially ones that support any kind of algebraic data types and pattern matching.

I gather this requires the caller has to do type casting on the return type?


Seeding Bug with all seeded Events

Looks like the Event's start date time is after the event's end date time:

this should not be possible when creating an Event through the UI
Looks like this problem extends to all Events under all Campaigns for any seeded data.

@mgmccarthy the screen shot shows it going from Nov 2016 to Jan 2017 and that seems okay?  Am I reading wrong?

@tonysurma  LOL! that's the last time I open an Issue/bug at 11pm at night. Apparently, my eyes were playing tricks on me month/year...
I'm closing this as it's not an issue


Version number doesn't change

I used the fork of @leokoppel to generate the documentation, when I had installed that version of Sphinxcontrib-versioning I ran the following command:
sphinx-versioning build docs/source/ docs/build/html
When I got the documentation, I opened it in my browser, everything was good, but when I tried to change between versions I saw the version numbers didn't change, the rest was fine.
With version numbers I mean that we use the |version| Sphinx replacement, and apparently it is always using the current/latest version instead of the actual version that is supposed to be used.
Follow the next steps to reproduce it:
git clone https://github.com/opensistemas-hub/osbrain.git
cd osbrain
python3.6 -m venv .venv
source .venv/bin/activate
pip install -e .[dev]
pip install git+https://github.com/leokoppel/sphinxcontrib-versioning.git
sphinx-versioning build docs/source/ docs/build/html

Open the documentation in your browser and try to change between versions.
Somebody knows why the numbers don't change?

Hi,
I'm having the same problem, but I think i know of what causes it.
In the steps to reproduce the problem you install the package, then you generate the documentation. Look how you pick the version for the documentation in your conf.py:
import osbrain

release = osbrain.__version__
release = version = __import__('setup').VERSION

This way you will always pick the version of the installed version.
In the conf.py from this package the version is picked from the setup file.
release = version = __import__('setup').VERSION

I think that changing it will solve the problem for you.
In my case I am using automatic versioning, so the versions are generated after the creation of the tag and I'm not able to take this approach. If someone knows what could I do, the package is .

@sehnem Thanks for your answer.
If I understood sphinxcontrib-versioning's behavior correctly, then it would not install the package version for which it is generating the documentation? In example: when it switches from 2.0.0 to 1.0.0 to generate the old docs, it would not actually install version 1.0.0 of the package before doing so?
If so, then I think it is a risky approach and could be worse than just having a non-expected value in the |version| number.
For example, a project that executes Python code that uses the package within the documentation. Imagine Matplotlib's documentation, where the output figures are auto-generated from the docs: if the correct version of Matplotlib is not installed before generating the docs then the output could be different, wrong or generation could even fail.
@sehnem What do you think? Could I be missing something or misunderstanding the current behavior? To be honest, I have not dig into sphinxcontrib-versioning's source code.

@Peque
I have not worked a lot with this package, but I think that you cannot generate the documentation for each versions os the package since it builds all the documentation at once. If it is possible @Raythor approach should work, and it also would fix my problem.
I think that if it is not possible yet, implementing it would be useful for many applications. But maybe someone knows a way to make it work with different versions.


create a simple sign-in page which  link the signup page and vice versa

Description : -

Problem- Statement :

While reviewing the user flow of the application, I noticed that the sign-in page did not include a link to the sign-up page, and the sign-up page lacked a link back to the sign-in page. This gap created a barrier for new users who wanted to register and for existing users who needed to log in.

Solution :

To resolve this issue, I added clear and accessible links on both pages:

On the Sign-In Page: I included a link with the text "Don't have an account? Sign up here" that directs users to the sign-up page.

On the Sign-Up Page: I added a link that says "Already have an account? Log in here" to guide users back to the sign-in page.

Before Solving this issue : -

After Solving this issue : -

-How This Helps Users :

Improved Navigation: By adding these links, users can easily transition between signing in and signing up, enhancing the overall navigation experience.

User Convenience: New users can quickly find the registration option, while returning users can easily access the login without searching for the pages.

Enhanced User Experience: Providing these links reduces frustration and encourages users to engage with the application, leading to increased registrations and logins.

Assign this to me @ChandelAnish

@CogitoKunal

@CogitoKunal assign here and give labels


Change Nav Menu Titles

Hello i have an Issue, i cant change the title names of the navbar.
I already changed the menu tag in the page setting, but nothing happens.
Anyone can help me?
Site is nhi.melanura.com

Hi, the Agency theme, the one you're using, chooses to define the top menu in the "links" Site configuration property: https://github.com/getgrav/grav-skeleton-agency-site/blob/develop/config/site.yaml#L15-L25
You can change them in your user/config/site.yaml file.


Guide for using FixedStepController

Hi,
May I ask if you can provide an example about how to use FixedStepController? Every tutorial in the doc is using to.IntegralController.
Thanks!

Hi,
I have added a page to the documentation on step size control. Hope that helps!
Best,
Marten


Support 12 and 24 word seeds from other wallet

Close #518
This PR support 12 and 24 word seed from other wallet, update logic when restore wallet and create wallet
Screenshot

The input hex need the dropdown because we need to know the entropy use BIP32 or BIP39

Also, this is big, but my concern about making this change was that people that already have a btc or ltc wallet will no longer be able to restore from their words because the logic is different.

No, this is not ideal, i'm yet to review the codebase but I discussed with @JustinBeBoy before this PR and he says restoring old wallets would not be a problem

Panic restoring btc 12 words:
2024-06-05 15:10:07.733 [INF] SHWL: Created Wallet
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x10 pc=0x14d8fa6]

goroutine 71 [running]:
github.com/crypto-power/cryptopower/app.(*GenericPageModal).ParentNavigator(...)
        /home/joe/git/cryptopower/app/genericpagemodal.go:43
github.com/crypto-power/cryptopower/ui/page/components.(*SeedRestore).HandleUserInteractions.func1({0xc0000eca08?, 0x0?}, {0xc002ee6010, 0x3}, 0xc00027ea08)
        /home/joe/git/cryptopower/ui/page/components/seed_restore_page.go:549 +0x2c6
github.com/crypto-power/cryptopower/ui/modal.(*CreatePasswordModal).Handle.func1()
        /home/joe/git/cryptopower/ui/modal/create_password_modal.go:241 +0x6d
created by github.com/crypto-power/cryptopower/ui/modal.(*CreatePasswordModal).Handle in goroutine 58
        /home/joe/git/cryptopower/ui/modal/create_password_modal.go:240 +0x3b3

That panic is also in master when restoring from 12 words. New wallet.

The default for all new wallets is 33 words, should make that 12.


Add latest version check to firefoxpkg and gpgsuite

Add the appNewVersion check to the firefoxpkg and gpgsuite label so it only installs updates if there is a newer version available.

Thanks!


Show elapsed time for sessions that are live

Use the startTime field on the session model to drive this display.
Might need to do some tricky javascript to either re-render sessions periodically to get them to update their elapsed time, or use one of those timeSince libraries (for example: http://timeago.yarp.com/) to auto-update it based on the start time.

@yourcelf @kitsandkats I am closing this issue for now, as we are not considering to implement it.


Refactor README.md

Hi! Thank you for this awesome plugin! It seemed to me that README.md needs refactoring. Here is my version of the new README.md (part of it):

wow LGTM！Thanks


Is this plugin dependable of aws-serverless-express?

I've noticed that the examples are using the "aws-serverless-express" server, what for me its too much overhead, so I want to only support image/jpeg and manipulate it inside my lambda with something like Graphics Magick and thats it, no need to have a universal entry point.
*Btw, have you tried sending data + image with multipart/form-data using this plugin and succeeded?

Hello,
This plugin doesn't depend on aws-serverless-express. This library is used only as an example of usage.
No I did not try to send image via multipart/form with this plugin.


Entries do not update automatically

The sensors in Home Assistant do not update automatically, even if the cloud info gets updated from the device.
Reloading the integration fetches the new data.

Which version are you using? Can you try using the version from the main branch? If this doesn't help, we will need logs.

if you install this from hacs Is required select in version menu version "main" not V4 .
This works!!

can I change this? if so, how, or do I need to reinstall it.

Do in repository menu of Hacs. Try download again and change from version 4.0 to "main"

did, thanks, it's funny that now it wants to update...

It's true . Ignore it. That's work!!

I understood that it's working now? I'll close the issue then 😄

It is still not resolved for me. I have BEKO AC and for example, if I switch hvac mode from "cool" to "fan", the action is executed on the AC, but on HA is still says "cool". This changes only when I open the HomeWhiz app on my phone.
I'm using the master version.
There is also a "bug": "off" state is not interpreted as havc_mode="off", because The app reports "cool" state event when it is off :(


[Multi] Optimize package.json types versions & update ERC4337 factory methods

#3318  👈
main

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @jnsdls and the rest of your teammates on  Graphite


[decomp] entity birth

It works! Assuming the actual thing it tries to spawn is functional. Actor compaction does not work.

Rendering errors are because of the sprite renderer.

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

15 of 20 (75.0%)  changed or added relevant lines in 3 files are covered.
2 unchanged lines in 2 files lost coverage.
Overall coverage increased (+0.009%) to 56.107%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

goalc/debugger/Debugger.cpp
1
2
50.0%

decompiler/IR2/Form.cpp
0
2
0.0%

goalc/debugger/disassemble.cpp
14
16
87.5%

Files with Coverage Reduction
New Missed Lines
%

decompiler/IR2/Form.cpp
1
63.33%

goalc/debugger/disassemble.cpp
1
59.2%

Totals

Change from base Build<PHONE_NUMBER>:
0.009%

Covered Lines:
40399

Relevant Lines:
72004

💛  - Coveralls

fix #966 and #917


Add MADV_POPULATE_{READ,WRITE}

I think strictly speaking, our dependency on libc would need to be 0.2.143 instead of 0.2 since these two symbols are not present in 0.2.142?

You are correct. I can change the dependency version, inline the constants, or close the PR, depending on if you want to depend on a newer version or not

Thanks.


Add Filament support.

Thanks!

I can confirm that this feature does not work on FilamentPHP.

Same problem. I fixed on my side #32


Add options for handling redirects

It would be nice to have options for handling redirects.
The basic use case is to detect changed URLs so that your markdown can be updated.
For example, we have documentation that points to https://docs.aws.amazon.com/AmazonElastiCache/latest/UserGuide/Clusters.Modify.html. Due to a documentation update at AWS, this is redirected to https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/WhatIs.html, and the desired page will be one of https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/Clusters.Modify.html or https://docs.aws.amazon.com/AmazonElastiCache/latest/mem-ug/Clusters.Modify.html.
Some future refinements would be to ignore redirects on URLs that match a pattern.

Would be interesting indeed. It may also be linked to the discussion about adding warnings and not only error level to the logs. These redirects warnings should not break builds IMO.

Would be interesting indeed. It may also be linked to the discussion about adding warnings and not only error level to the logs. These redirects warnings should not break builds IMO.

An link update option that could be added as a pre-commit hook/action would be pretty awesome too!

License URLs which are pretty common in dependency lists are often changed and the old ones get redirects. Following the redirects would remove a lot of false positives.


CAS 5.0.0 does not take into account cas.locale.paramName property

I am afraid I cannot use my custom request parameter lang to switch to another language on login page in CAS 5.0.0. Seems like CasWebflowContextConfiguration should have @Autowired field instead of creating its own bean definition of LocaleChangeInterceptor. Also I have noticed that org.apereo.cas.support.pac4j.web.flow.ClientAction has lines that use Spring's default parameter name for LocaleChangeInterceptor:
...
restoreRequestAttribute(request, session, LocaleChangeInterceptor.DEFAULT_PARAM_NAME);
...
saveRequestParameter(request, session, LocaleChangeInterceptor.DEFAULT_PARAM_NAME);
...

May be this fact also should be considered when resolving this issue.
I have included the following in my report:

CAS server version: 5.0.0, Gradle overlay
Container/environment type/version: external Tomcat 8.0.30, Oracle JDK 8u60, Windows 7 Pro OS
Steps to duplicate the problem:

Set property for desired language parameter name as following:

cas.locale.paramName=lang

Build the project
Put resulted cas.war file into CATALINA_HOME/webapps directory and start the container
Go to https://<cas_host>:<cas_port>/cas/login -> login page appears, language of the page is English as expected
Go to https://<cas_host>:<cas_port>/cas/login?lang=de -> login page appears, language of the page is still English but German was expected
Go to https://<cas_host>:<cas_port>/cas/login?locale=de -> login page appears, language of the page is German but this parameter should not be processed

When CAS is starting and org.springframework logger is set to info level, cas.log file says:

2016-12-13 18:09:22,889 INFO [org.springframework.beans.factory.support.DefaultListableBeanFactory]
- <Overriding bean definition for bean 'localeChangeInterceptor' with a different definition:
replacing [Root bean: class [org.springframework.aop.scope.ScopedProxyFactoryBean]; scope=;
abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true;
primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null;
destroyMethodName=null; defined in BeanDefinition defined in class path resource
[org/apereo/cas/config/CasWebAppConfiguration.class]] with [Root bean: class [null]; scope=;
abstract=false; lazyInit=false; autowireMode=3; dependencyCheck=0; autowireCandidate=true;
primary=false; factoryBeanName=casWebflowContextConfiguration;
factoryMethodName=localeChangeInterceptor; initMethodName=null; destroyMethodName=(inferred);
defined in class path resource [org/apereo/cas/config/CasWebflowContextConfiguration.class]]>

Configuration/Overlay pushed to https://github.com/cas-projects/cas-issues/
https://github.com/cas-projects/cas-issues/pull/30

This should be fixed in 5.0.2 SNAPSHOT

I have just tried with CAS 5.0.2-SNAPSHOT. The issue has disappeared. Thank you, @mmoayyed !


Please push the newest source.

I found that the Unresitrict.dylib binary is updated in the main project.
But here the source code of it is still old.
Please push the newest code to this project, thanks.

This is not where the source for that lives.


Add dockerfile and instructions for how to use it

Here I make the minimal amount of changes needed to make this project build in Linux (some of it borrowed from #15. Then I add a container definition file that makes it super easy to build the firmware in a Linux container if you are on either Linux or macOS. This solves the pain of trying to find an ARM C compiler for your own distro, and just works.

I'm not sure this project is still maintained. If the creator doesn't get back to this pr (in a reasonable timeframe) we should probably create a fork that we can maintain. I'd be happy to spend some time on that

Yeah. I was aiming to keep my main branch usable/up to date/improved. But I figured I should also shop up the work into isolated improvements and submit them as PRs.
However, I'm probably not going to maintain this over time. I just wanted to leave my main branch in a state where it's easy to follow from start to finish and get it to work without getting stuck on the roadbumps I got stuck at while doing this.
But it's awesome if you want to maintain a more active fork! I'll contribute my suggested fixes to that one then!


Potential memory leak.

Potential memory leak in shell.c line 2357. The while loop is executed without releasing Zsql will cause a memory leak. Doc says "The sqlite3_mprintf() and sqlite3_vmprintf() routines write their results into memory obtained from sqlite3_malloc64(). The strings returned by these two routines should be released by sqlite3_free()." Using sqlite3_free() to free zSql will prevent the memory leak.

zSql is freed in line 2375

zSql is freed in line 2375

For all the mprintf() called in while loop (line 2357 and line 2364), the zSql should be freed after the while loop and before line 2373. Otherwise, there will be a potential memory leak.

You're right, my bad. This is also in contrast with what is seen throughout the rest of the file-  were every pointer returned by mprintf() is indeed eventually freed. Of course, except the ones in this issue.


[Data access request]:

What is the name of your project?
SCONe (Scottish Collaborative Optometry Ophthalmology Network e-research)
What is the purpose of your project?
We are in the process of compiling a retinal image repository, which involves linking community acquired images to nationally held healthcare data. The linked images and healthcare data will be used for disesase prediction modelling work, in the hope of improving early detection, and identification of sub-groups of patients at high risk of rapid disease progression.
As the community acquired images don't have unique identifiers, we are developing linkage algorithms based on the available data in each optometry practice. It would be very helpful to have synthetic data on which we could test various matching steps and refine our processes to scale up our activities without allowing the false positive match rate to increase.
Who is involved in the project? Which of these people will have direct access to the pseudopeople input data?
The SCONe programme was founded by Professors Bal Dhillon (Edinburgh University & NHS Lothian) and Niall Strang (Glasgow Caledonian University) bringing together expertise from ophthalmology and optometry, respectively. The full team brings together other clinical input with expertise in data science, image analysis, data governance and research experience across a variety of health topics.
Full details can be found here https://clinical-sciences.ed.ac.uk/ophthalmology/scone/about-us
Claire Tochel, Lorna Coull, Heather Anderson and Heather Cloete are the team members who are involved with the data linkage elements of the project, and would access this data if appropriate & approved.
What funding is the project under? What expectations with respect to open access and access to data come with that funding?
SCONe has received funding from a variety of patient charities and other organisations: Sight Scotland, The Royal College of Surgeons of Edinburgh (RCSEd), the RS Macdonald Charitable Trust, Fight For Sight, Vision Foundation, Chief Scientist Office, NHS Lothian Charity (formerly known as Edinburgh & Lothians Health Foundation).
We commit to:

[X] be responsive to further questions from interested parties
[X] deprecate and replace our version of the pseudopeople input data when a new version is released

What data would you like to request?

[X] Full US
[ ] Rhode Island
[ ] Other (may not be available immediately)

Other data - more explanation
No response

This looks very cool (and entirely appropriate as a use case) to me!

Agree :)
Please email me at<EMAIL_ADDRESS>to proceed.


create unitest to reproduce issue 2835

ref #2835
Please uncomment the following line in prune_remove_branch test in forked_tests.cpp to reproduce the issue:
//BOOST_REQUIRE_EQUAL(87, c.control->head_block_num());

I'm going to merge this test except that I will change the expected head block number to the one it produces, 87 is not the proper behavior.


openai.error.InvalidRequestError: This model's maximum context length is 4097 tokens

When using the chat application, I encountered an error message stating "openai.error.InvalidRequestError: This model's maximum context length is 4097 tokens" when I asked a question like "Did he mention Stephen Breyer?".

I got the same error message today. It suggested the following.
InvalidRequestError: This model's maximum context length is 4097 tokens. However, you requested 4245 tokens (1745 in the messages, 2500 in the completion). Please reduce the length of the messages or completion.  Clearly I will need a text request or response clipping approach to reduce seeing this error.

It was preceded by this warning - openai.py:608: UserWarning: You are trying to use a chat model. This way of initializing it is no longer supported. Instead, please use: from langchain.chat_models import ChatOpenAI
warnings.warn(. _ I will check and see if calling using this new style performs better and report back

It was preceded by this warning - openai.py:608: UserWarning: You are trying to use a chat model. This way of initializing it is no longer supported. Instead, please use: from langchain.chat_models import ChatOpenAI warnings.warn(. _ I will check and see if calling using this new style performs better and report back

I already used ChatOpenAI for instead but not helping, still got this error.

from langchain.chat_models import ChatOpenAI
llm = ChatOpenAI(temperature=0)

use this llm where you were calling. I was getting "ChatOpenAI" error but moving to the current version of langchain and use the ChatOpenAI fixed the issue.

I faced the same issue, but initializing the index again solved my problem. What is the right solution to the problem?

Me too.
681         stream_error = stream and "error" in resp.data
682         if stream_error or not 200 <= rcode < 300:

--> 683             raise self.handle_error_response(
684                 rbody, rcode, resp.data, rheaders, stream_error=stream_error
685             )
InvalidRequestError: This model's maximum context length is 4097 tokens. However, your messages resulted in 4833 tokens. Please reduce the length of the messages.
How to split the response?

from langchain.chat_models import ChatOpenAI
llm = ChatOpenAI(temperature=0)

use this llm where you were calling. I was getting "ChatOpenAI" error but moving to the current version of langchain and use the ChatOpenAI fixed the issue.

I encountered a similar issue with langchain's FAISS code, but changing the temperature to '0' resolved it. This suggests that there may be a bug in the code that needs to be addressed by @hwchase17. In my experience, FAISS appears to be the most efficient local vector database for use with langchain. I experienced loading index issues with ChromaDB so I decided to abandon it for now. The only issue is the longer answers with temperature = 0, which may require creativity and creating new ideas from the given pdf file(s)

initializing the index

@ZohaibRamzan How did you do that? Would you share some details? I would like to know if there is any alternative of temperature = 0.

我也遇到了同样的问题

解决问题的方法是什么？

When using the chat application, I encountered an error message stating "openai.error.InvalidRequestError: This model's maximum context length is 4097 tokens" when I asked a question like "Did he mention Stephen Breyer?".

i solve it by delete the ChatOpenAI args max_token ， i use langchain version 0.0.176 latest

Seems related to https://github.com/langchain-ai/langchain/issues/1349.


Agents (34)

The uninstall in the Marketplace is not working, it seems that it is giving a javascript error when clicking Ok


Sample Bam File

Can someone please post the sample .bam file for the velocyto python notebooks for which i can myself generate the loom file.

I run velocyto in the command line but not in the notebooks.
Please make sure that bam files containing CB and UB tag:

If the bam files didn't containing these tag, you can use python package 'simplesam' to add them.https://github.com/velocyto-team/velocyto.py/issues/107

Maybe you can use the data followed to practise, which generated by 10X.
https://support.10xgenomics.com/single-cell-gene-expression/datasets/2.1.0/neurons_900

@Suger0917 -- My bam file does have CB and UB as you boxed in your comment back in Sep 25 2018 above, but it still gives me the error "the bam file does not contain cell and umi barcodes appropriately formatted. If you are running UMI-less data, you should use the -U flag" . Any idea? Should I still use "simplesam"?
I tried various things to solve this as described in #320.
Thank you for your help!


SAML2 Authentication

I'm trying to authenticate users using saml2 with simplesaml, and i can not get the attributes from simplesaml processed on bookstack. Here is the json response:

id_from_idp
"521ab6a8feaca115560bdefa98806e103bb0f739"

attrs_from_idp
[]

attrs_after_parsing:

external_id
"521ab6a8feaca115560bdefa98806e103bb0f739"

name
"521ab6a8feaca115560bdefa98806e103bb0f739"

email
null

saml_id
"521ab6a8feaca115560bdefa98806e103bb0f739"

The result for email is always null.
I can confirm that the  simplesaml is correctly releasing the attibutes (mail and username).
Someone went through the same problem?
thanks

Hi @pmbmarques,
I tested the SAML2 implementation with simplesamlphp during development so it should be possible to get something working.
Can you provide any details regarding the configuration used for the bookstack .env or used within simplesamlphp at all?
The empty attrs_from_idp property generally indicates no attributes are being provided to BookStack from the SAML system.

Hi,
There is my config for bookstack, I try different combinations on
SAML2_EMAIL_ATTRIBUTE and    SAML2_EXTERNAL_ID_ATTRIBUTE like mail and uid
instead of the ones in the config.
When the login is successfully processed on simplesaml, i can see the core
attributes being released  on the consent page.
[image: InkedScreenshot 2021-02-26 14.07.58_LI (2).jpg]
.env
AUTH_METHOD=saml2
SAML2_NAME=SSO
SAML2_EMAIL_ATTRIBUTE=email
SAML2_DISPLAY_NAME_ATTRIBUTES=FirstName|LastName
SAML2_EXTERNAL_ID_ATTRIBUTE=username
SAML2_IDP_ENTITYID=https://*/simplesaml/saml2/idp/metadata.php
SAML2_AUTOLOAD_METADATA=false
SAML2_IDP_SSO=https:// * /simplesaml/saml2/idp/SSOService.php
SAML2_IDP_SLO=https:/ *
/simplesamlserver/simplesaml/saml2/idp/SingleLogoutService.php
SAML2_IDP_x509="-----BEGIN CERTIFICATE-----
-----END CERTIFICATE-----"
SAML2_ONELOGIN_OVERRIDES=null
SAML2_DUMP_USER_DETAILS=true
my simplesamlconfig
$metadata['https://bookstack.xxxx.xxx/saml2/metadata'] = array(
'AssertionConsumerService' => 'https://bookstack.xxxx.xxx/saml2/acs',
'SingleLogoutService' => 'https://bookstack.xxxx.xxx/saml2/sls
https://bookstack.testes.fct.unl.pt/saml2/sls',
'acs.Bindings' => 'urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST',
'NameIDFormat' =>
'urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress',
'authproc' => array(
10 => array (
'class' => 'core:AttributeMap',
'uid' => 'username',
'givenName' => 'FirstName',
'sn' => 'LastName',
'mail' => 'email',
),
),
);
Thanks
Best
Dan Brown<EMAIL_ADDRESS>escreveu no dia sexta, 26/02/2021 à(s)
18:09:

Hi @pmbmarques https://github.com/pmbmarques,
I tested the SAML2 implementation with simplesamlphp during development so
it should be possible to get something working.
Can you provide any details regarding the configuration used for the
bookstack .env or used within simplesamlphp at all?
The empty attrs_from_idp property generally indicates no attributes are
being provided to BookStack from the SAML system.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/BookStackApp/BookStack/issues/2595#issuecomment-786807912,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AMG3EKOIFWMQIPOEXGXBQUTTA7PWXANCNFSM4YIVO7XQ
.


Add new cask: Repetitions v1.81.

Looks good, could you please squash your commits?
Please @mention me when it’s done, so I get a warning to check back.

@vitorgalvao :: I learned how to squash, think I did it right. Looks like my branch automatically updated with the squash after push -f, so I think it's ready to go.

think I did it right

You did, yes. Well done. Thank you.


[Snyk] Fix for 1 vulnerabilities

Snyk has created this PR to fix one or more vulnerable packages in the `pip` dependencies of this project.
Changes included in this PR

Changes to the following files to upgrade the vulnerable dependencies to a fixed version:

requirements.txt

⚠ Warning
Flask 1.0 has requirement Werkzeug>=0.14, but you have Werkzeug 0.12.2.

Vulnerabilities that will be fixed
By pinning:

Severity
Priority Score (*)
Issue
Upgrade
Breaking Change
Exploit Maturity

658/1000  Why? Proof of Concept exploit, Recently disclosed, Has a fix available, CVSS 5.3
Regular Expression Denial of Service (ReDoS) SNYK-PYTHON-JINJA2-1012994
Jinja2:  2.9.6 -> 2.11.3  jinja2:  2.9.6 -> 2.11.3
No
Proof of Concept

(*) Note that the real score may have changed since the PR was raised.
Some vulnerabilities couldn't be fully fixed and so Snyk will still find them when the project is tested again. This may be because the vulnerability existed within more than one direct dependency, but not all of the effected dependencies could be upgraded.
Check the changes in this PR to ensure they won't cause issues with your project.

Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open fix PRs.
For more information:
🧐 View latest project report
🛠 Adjust project settings
📚 Read more about Snyk's upgrade and patch logic

Coverage remained the same at 87.281% when pulling b97ad7041e0e5a06ba7100a74116c11fde2b21b9 on snyk-fix-666c1715e0cb2a0cf47354116fc130f0 into 1fd6a857c45aafa55b39d3c215b1e69e0b23c33b on master.


chore: bump version

Codecov Report

Merging #77 into development will not change coverage.
The diff coverage is n/a.

@@             Coverage Diff              @@
##           development      #77   +/-   ##
============================================
  Coverage        33.66%   33.66%
============================================
  Files              244      244
  Lines             3131     3131
  Branches           216      216
============================================
  Hits              1054     1054
  Misses            1966     1966
  Partials           111      111

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 112ae30...3bdab98. Read the comment docs.


Turning off close_source_branch to see if that helps

https://atlassian.slack.com/archives/C0168Q7F72A/p1593738037108200
https://ops.internal.atlassian.com/jira/browse/HOT-91868

[ ] DON'T MERGE


suggest:node group can show the nodes it contain

In GitLab by @cuiaq123 on Jul 9, 2018, 15:14
If you are reporting a problem, please make sure the following information are provided:

Version of board (last git commit number) , docker engine and docker-compose.
Config files of board, you can get them by packaging "board.cfg" and files in the same directory, including subdirectory.
Log files, you can get them by package the /var/log/board/.
Other necessery information.

In GitLab by @luotian-github on Nov 8, 2019, 07:54
will not implement it in v1.2, need to design the feature first.

In GitLab by @sokril on Nov 8, 2019, 08:24
assigned to @sokril


Initial commit of second JAX-101 notebook

Main TODO is to add authors

Thanks @8bitmp3 for the comments! I've updated the notebook to reflect all these changes.

nit: the commit message says this is the third installment, even though it's the second (I'm guessing this was an accident of bash history).

I'm going to merge with authorship left as a TODO.


Refresh client token

What is the context of this PR?
Link to Trello card
Describe what you have changed and why, link to other PRs or Issues as appropriate.
How to review
Any notes for the reviewer  (include screenshots if appropriate).

 Look up users in SM (8)

@AndrewTorrance the expected behaviour is that the app will be resilient to failure of its backing services, and will continue to attempt to connect indefinitely (or until a SIGKILL or other stop signal is received). Ideally we would have graceful degradation of service, but that is probably for another ticket and a wider tech discussion.

@warrenbailey the only thing i can find on it is this from the client grant section of the UAA docs: "UAA validates access tokens up to the time those tokens expire."

@warrenbailey i've addressed your comments ✅


Support non-null external interfaces

Fixes #61 by adding support for non-null external interface references in the C++ generator.
Add an integration test for the above mentioned fix.
Parametrize construction of djinni CLI params for integration tests.

Thanks for the quick review @a4z. I found a small typo in the docs (Pyhton -> Python), but will wait for the other outstanding review in case there will be more things to fix.


[vx.dev] implements #164

[vx.dev] This PR implements #164, created by vx.dev.

regenerate the site like this: https://en.savefrom.net/1-youtube-video-downloader-561lD/


Training accuracy on test set is not improving (tested on two different datasets)

Thanks for sharing this code.
I tried to run training script on my custom dataset (~50k samples) and somehow I could not get improvement on classification accuracy even after 300 epochs.
!python main.py --model convnext_tiny --drop_path 0.1  --data-path "/my/custom/dataset"  --data_set "customDS" --nb_classes 2 --batch_size 256 --lr 4e-2 --update_freq 4 --model_ema true --model_ema_eval true
Epoch: [0] Total time: 0:00:41 (1.1597 s / it)
Averaged stats: lr: 0.003596  min_lr: 0.003596  loss: 2.2043 (2.8601)  class_acc: 0.5234 (0.5078)  weight_decay: 0.0500 (0.0500)
Accuracy of the model on the 2297 test images: 44.4%
Max accuracy: 44.36%
Epoch: [299] Total time: 0:00:22 (0.6137 s / it)
Averaged stats: lr: 0.000010  min_lr: 0.000010  loss: 0.6883 (0.6902)  class_acc: 0.5352 (0.5386)  weight_decay: 0.0500 (0.0500)
Accuracy of the model on the 2297 test images: 55.6%
Max accuracy: 55.86%
I trained the same custom dataset using ResNet101 and it achieved 90% classification accuracy on the same test set.
I also repeat training on Imagenette dataset (a subset of ImageNet dataset with 10 easy classes) and the same thing happened. No substantial decrease in training loss and almost no improvement on the classification accuracy.
https://github.com/fastai/imagenette
!python -m torch.distributed.launch --nproc_per_node=2 main.py --model convnext_tiny --drop_path 0.1 --batch_size 64 --lr 4e-3 --update_freq 4 --model_ema true --model_ema_eval true --data_path  "/imagenette/with/10/classes" --data_set "IMNET" --output_dir "/my/output/path" --nb_classes 10
Epoch: [284] Total time: 0:00:34 (0.3696 s / it)
Averaged stats: lr: 0.000029  min_lr: 0.000029  loss: 2.0305 (2.0208)  weight_decay: 0.0500 (0.0500)
Accuracy of the model on the 1100 test images: 1.2%
Max accuracy: 9.91%
How can I improve the training performance? Did you test the training parameters on smaller size datasets?
Thanks!

@hcmea
Did you train ResNet101 model with same code with this project on your custom dataset?

Hi,
Thanks @developer0hye, good point indeed. @hcmea did you use the same training code for ResNet and ConvNeXt? If not I suspect this is due to training settings, not model architectures. I suggest trying training ConvNeXt models using the same training code as ResNet in that case.

I trained ResNet101 with it's own training settings. I will try training ConvNext with ResNet training parameters and let you know when I got the results. It is probably the training parameters need to be tuned for smaller size datasets.

Hi @hcmea, I am curious if you were able to resolve this? I want to do a similar experiment with my custom dataset (100k images) and suspect that the result from running the ConvNeXt scripts with default parameters might not be good. It would be great if you could share what worked for you in case you have resolved this. Thank you.

@vaibhavpawar05, I made some changes in main.py to train the original ConvNext model on my customized data. I did the following changes and it worked:
sampler_train = None
sampler_val = None
mixup_active = None
I disabled torch.utils.data.DistributedSampler and use my own augmentations specific to my dataset. Then I started to get meaningful results.

@vaibhavpawar05, I made some changes in main.py to train the original ConvNext model on my customized data. I did the following changes and it worked: sampler_train = None sampler_val = None mixup_active = None
I disabled torch.utils.data.DistributedSampler and use my own augmentations specific to my dataset. Then I started to get meaningful results.

您好请问，要怎么禁用您说的这几个


Calico network containers unreachable from one another

Hello,
I followed the same tutorial of how to use calico with Docker containers: https://github.com/projectcalico/calico-containers/blob/master/docs/calico-with-docker/docker-network-plugin/README.md
I have created a calico network, added 2 containers to it. but thay cannot reach each other.
Envirement:
Docker version:
root@sofiane-VirtualBox-Client1:~# docker version
Client:
Version:      1.11.0-dev
API version:  1.23
Go version:   go1.5.3
Git commit:   79edcc5
Built:        Sat Feb 13 00:16:28 2016
OS/Arch:      linux/amd64
Experimental: true
Server:
Version:      1.11.0-dev
API version:  1.23
Go version:   go1.5.3
Git commit:   79edcc5
Built:        Sat Feb 13 00:16:28 2016
OS/Arch:      linux/amd64
Experimental: true
Ubuntu kernel:
root@sofiane-VirtualBox-Client1:~# uname -a
Linux sofiane-VirtualBox-Client1 4.2.0-30-generic #36-Ubuntu SMP Fri Feb 26 00:58:07 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
I'm using ETCD to manage the K-V store (it seems working very well).
When i create the network and the two containers (one in each ubuntu VM  host), every thing is good. but when I try to ping a container from the other one i have the ping error : "Destination host unreachable". However, withe the same conviguration, if I create an Overlay network every thing works very well and i can ping between its containers.
I believe the problem is probably whithin the host machins, but I can't figure it out.
Thank you guys

Hi @BediarSofiane
Thanks for the issue, sorry to hear you're seeing this. I've got a few questions/requests to help figure this out.
If you can create an overlay network that functions, I assume you are able to ping from host to host?
With your setup at the point where it should be running, can you post output for these commands on each host:
route -n
calicoctl bgp peer show
Also, can you post the IP's of each container?  This should help diagnose the issue.

Hi @BediarSofiane,
Just wanted to check in and see if you have made any progress or seen any more issues like this.  Let me know if you're still having problems, and I can help solve them with you.

Hi @TrimBiggs ,
Thank you for your answer. In fact, i didn't really resolved the problem or know what caused it. But by restarting my etcd cluster I could reach the containers from one another. It must be some bug of the etcd cluster concerning the keys of calico. after all now it is working fine.
However, i'm studying calico driver and the difference between it and Overlay driver, and i want some sort of documentation concerning the architecture of calico (how it really implements BGP and does routing between containers, what is the role of the tow containers calico-node and calico-libnetwork that we should start in each docker host and so on).
I assume that those stuffs are treated in the offcial documentation of calico. so i'm going to read it and try to understand all this. If you have a good book on it a would appreciate it.
Thank you bro

Hi @BediarSofiane
I'm glad you were able to get your setup working.

Docker Container Lifecycle doc: a lower-level look at what happens when running Calico in a Docker cluster, from the creation of the calico/node to networking containers in Calico.
BGP doc: explains how to configure BGP in Calico, with a bit of information on what happens when configuring.

I'm going to close the issue since you're not seeing the problem anymore, but please feel free to keep in touch here or in our Slack channels, which you can find in our main README.  Thanks for bringing up this issue :)

Hi, @TrimBiggs: I have similar issue and here is the output of your request:
./calicoctl bgp peer show
No global IPv4 BGP Peers defined.
No global IPv6 BGP Peers defined.
Should I configure the global BGP Peers to make it work?

Hi @padgyx,
What exactly are you seeing? How is your cluster configured? How many nodes are running with calico?
Thanks

Hi, TrimBiggs:
Thanks for your reply. Our company is currently evaluating Calico vs Weave. Please help get this working so that we can see the performance advantage of Calico over Weave. I provided more details in this separate ticket: https://github.com/projectcalico/calico-containers/issues/950
I have two separate AWS ec2 instances. I tried both docker-network-plugin and without. Neither of them work on the AWS ec2 instances. Please let me know what other data you need from my environment.
In addition, I tested on Vagrant following the same instruction which works fine.
Please help!
Thanks!

@padgyx Let's continue to chat on the other issue, we'll leave this one closed.


bump up to the latest nginx

let's try to upgrade nginx:1.25.3
relateed for mcloud: https://github.com/zebrunner/mcloud/issues/209

done, new setup and basic acceptance is enough to test

Verified.


Spanish translation

I'm translating some of your files to spanish so you can get more audience/help, please consider to provide your amazing site in spanish too.
Thanks in advance.

Thanks for this huge effort. We'll need to see if we can come up with a way to extract hard-coded strings into a system like ng-translate.

would you prefer it in i18next.com format?


Color transfer

Starting to look good.

add your name and a title to the notebook
maybe there is a more elegant way of downloading the images? You might check some of the pluto docs. Would be nice if there are buttons I can select my own images.
best to split your functions into different cells
you can represent every pixel as the RGB + location and use k-means clustering to get prototype pixels. The obtained centres can be mapped and used for prediction again. This way you don't need downscaling.
When making your own types (Cluster) adding type annotation greatly improves performance
you might tidy up the organization of your functions.

Bottom line: make sure you don't have to do OT on all the pixels. Make this part of your preprocessing.
This was my attempt (a long time ago): https://github.com/MichielStock/Teaching/blob/master/Optimal_transport/color_transfer.py
Below is the advice I got from Mathieu Blondel

Good luck!

Thank you for the detailed comment!

It is shaping up to be a very impressive project. When uploading your notebook, I still have some trouble doing this right, mainly because the links to images are relative (better use hyperlinks to github). Maybe have someone else testing it that works locally fine.

Thank you for an important comment...! I did not expect "image_load()" to not work properly.

When first opening the notebook, did the two default sample images (cityscape.jpg, sunset.jpg) not load properly?

no, check it by loading the hyperlink to the notebook in Pluto, this is how people will use it.

On 26 Jan 2022, at 18:45, Ju Hyung Lee @.***> wrote:
When first opening the notebook, did the two default sample images (cityscape.jpg, sunset.jpg) not load properly?
—
Reply to this email directly, view it on GitHub https://github.com/MichielStock/STMOZOO/pull/29#issuecomment-1022438722, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABN5PI5WLUHBELN7EZAXZ7DUYAXL3ANCNFSM5LE577UA.
You are receiving this because you authored the thread.

Thank you!

I used "try/catch" statement to first try loading locally, then download the image if an local loading did not work.
I then confirmed the notebook to run fine in another colleague's (outside of STMO course) computer.

Great notebook and very clear walkthrough. Nice to have options available and see the effect on the clustering/color transfer. Initial issues with package loading were resolved by an update by @juhlee. Feel free to add a function when taking a repetitive action. Some small typo's: Eucl_i_dian distance and function reassi_gn_ing(). It worked well when adding new figures for Patrick and Spongebob ;).


[Feature][Api-draft] Create a bootstrap for connector development

Search before asking

[X] I had searched in the feature and found no similar feature requirement.

Description
Now we are using API draft to develop new connectors, and we have found some problems.
Whether Source API or Sink API have many interface, these interface are use for different functions。For example, SinkWriter#snapshotState() is use for connectors that need to save state and reload in case of failure recovery.  SinkWriter#prepareCommit() is use for connector that need to 2PC submit.
With reference to airbyte, can we develop a cli boot tool through which users can create a connector basic code? They can use --with_ state, --with_ split and other parameters specify the functions required by their connector. Based on these parameters, we automatically generate the corresponding connector code, and only show them the interfaces that need to be implemented.
I believe this will make the development of connector easier.
Usage Scenario
No response
Related issues
No response
Are you willing to submit a PR?

[ ] Yes I am willing to submit a PR!

Code of Conduct

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

We can provide simple soure and sink, masking some advanced features.


This project is Awesome

Hello,
I am starting an Awesome list for projects aimed at the hacktoberfest, and I think this project might be in that list.
So feel free to Open a Pull Request adding this awesome project to the list!
Thank you!

Thanks for the suggestion! Now added :) <3


Attachment Log - Replace Attachment

As an Intake/Flex/Ministry
I want to be able to replace an attachment
so that I can ensure the correct record is uploaded for a state change

Assumptions & Scope
This allows for the ability for a user to swap an attachment during specified state changes where uploading a record is required. Users should not be able to delete state change attachments, only replace them.
What is IN scope?
What is NOT in scope?
Acceptance Criteria
Scenario 1: Replace Attachment
•	GIVEN the ellipsis is opened for a file that was uploaded during a state update
https://jacklyn808742.invisionapp.com/console/share/3W2O64AP5C/817813727
•	WHEN "Replace" has been selected
•	THEN the Replace attachment modal will pop out
•	https://jacklyn808742.invisionapp.com/console/share/3W2O64AP5C/817813727
•	AND the text will include the state transition from which the attachment originated
•	AND the continue button will not be active
Scenario 2: Replace Attachment - Cancel Back to Attachment log
•	GIVEN you are on the replace attachment modal
•	WHEN the cancel button is pressed
•	THEN the modal will close and the user will return to the attachment log
Scenario 3: Replace Attachment - Drag and Drop to add files
•	GIVEN you are on the replace attachment modal from the Attachment Page
•	WHEN you drag and drop a file that is less than 50 mb into the "drag and drop" space
•	AND that file is one of the valid filetypes from state transitions (excel, word, PDF)
•	THEN the file name will appear when it is uploaded, and the continue button will be active
Scenario 4: Replace Attachment - Add files using the Add File Button
•	GIVEN you are on the replace attachment modal from the Attachment Page
•	WHEN you click on the "add file" button
•	THEN the user will be able to select a valid file (less than 50 mb, word, PDF or excel only) from their local machine to add to the upload file modal
•	AND when the user selects a file and clicks "upload"
•	THEN the file will appear in the modal and the "Continue" button will be active
Scenario 5: Replace Attachment - Clicking On Continue Button
•	GIVEN the continue button has become active on the "Replace attachment" modal
•	WHEN the Continue button has been clicken
•	THEN the modal will close, and the attachment will be added to the attachment log in the manner described in scenario 3
Dependencies? What is the impact of this dependency? (If so, link dependency in the ticket, make it visible in a team´s backlog)
Validation Rules? (If yes, list here)
Design
@xxx - please link the Design here
Definition of Ready

[ ] Is there a well articulated User Story?
[ ] Is there Acceptance Criteria that covers all scenarios (happy/sad paths)?
[ ] If there is a user interface, is there a design?
[ ] Does the user story need user research/validation?
[ ] Does this User Story needs stakeholder approval?
[ ] Design / Solution accepted by Product Owner
[ ] Is this user story small enough to be completed in a Sprint? Should it be split?
[ ] Are the dependencies known/ understood? (technical, business, regulatory/policy)
[ ] Has the story been estimated?

Definition of Done

[ ] Passes developer unit tests
[ ] Passes peer code review
[ ] If there's a user interface, passes UX assurance
[ ] Passes QA of Acceptance Criteria with verification in Dev and Test
[ ] Confirm Test cases built and succeeding
[ ] No regression test failures
[ ] Test coverage acceptable by Product Owner
[ ] Ticket ready to be merged to master or story branch
[ ] Developer to list Config changes/ Update documents and designs
[ ] Can be demoed in Sprint Review
[ ] Tagged as part of a Release
[ ] Feature flagged if required
[ ] Change Management activities done?

QA completed, all scenarios passed in Chrome, Edge and Firefox.


Move more benchmark configs to pkg/test

Move more benchmark configs to pkg/test, based on the feedbacks from https://github.com/knative/serving/pull/5520:

Get Repository and SlackConfig from the configmap
Setup returns a Client that wraps all the thing we need.
Set up alerter as part of Mako setup process

NOTE:
This is a breaking change for both serving and eventing, the two repos will need to:

Add repository and slackConfig to the configmap
Update the code that calls mako.Setup

/cc @mattmoor
/cc @vagababov
/cc @srinivashegde86

/approve
/lgtm


remove deprecated TestUtils.assertEqualAsJson

Deprecated since 3.5.

As a suggestion for the future, if you make a separate commit addressing review comments it makes it easier for the reviewer to see what was changed. You can then squash it away when merging.

@tfmorris  you should still be able to compare the changes individually, the "compare" button next to the force-push message compares only the changes for that forced push:


application/json

Feature?

Benefits?

Fast answer.

Sorry I don't see any point to use application/json as Content-Type and send form data on JSON.


Add guide for DAOs

Add a guide in the documentations folder for recommendations on using data access objects (DAOs) in a devon4quarkus application. You can orientate on the devon4j guide https://github.com/devonfw/devon4j/blob/master/documentation/guide-dao.asciidoc

https://github.com/devonfw/devon4j/blob/master/documentation/guide-dao.asciidoc
Again there is nothing really spring or quarkus specific here.
We could extend the guide and say the extracting an DAO interface is an optional suggestion.
Maybe we can explain how to create ApplicationDaoImpl (maybe we put it into a sample app and link it from the docs).
Apart from that IMHO nothing more to do.

IMHO the initial request to add the guide in this repo was a missunderstanding.
The task itself was done with PR https://github.com/devonfw/devon4j/pull/435
So IMHO nothing left to do so I am closing this issue.


Drop support for pwwka

Pwwka interacts with RabbitMQ which is no longer in use at Stitch Fix. So we drop support for pwwka.
After Merging
See the gem release process for a detailed list, but the gist of it is:

[ ] Fetch main locally and run the applicable rake version:* task on main to bump the version
[ ] Run rake release on main to release the new version
[ ] Add release notes - this is very important in helping other engineers understand what changed in the new version

Thank you both! I've released v3.0.0 as v2.0.0 was released back in June of 2021. It looks like a couple 2.x versions were released before more 1.x versions were released. I'm not really sure why it was this way but as this PR was a breaking change, it made sense to me to release this as the next available breaking release, 3.x.


vlen memory leak in tst_xplatform2.c seems to be in library code

There are some memory leaks reported for nc_test4/tst_xplatform2.c. When I look at the code I see that some nc_free_vlen() statements have been commented out:
   /* Free our vlens. */
   for (i = 0; i < DIM3_LEN; i++)
      for (j = 0; j < NUM_VL; j++)
	 nc_free_vlen(&(data_in[i].data[j]));

When uncommented (as they should be, by looking at the code), the memory leaks go away, but a memory use after free error occurs in test function check_file_3(). Presumably it was this memory problem which lead to the nc_free_vlen calls being commented out.
The problem occurs writing a nested vlen attribute, and then reading the vlen attribute before enddef, so it has not yet been written to the file.
In that case, the read does not apparently get a copy of the vlen data, but gets pointers to the actual vlen data in memory. When nc_free_vlen() is called on data_in, it frees the vlen data in memory, and the later attempt to sync the file fails when this is caught by the memory sanitizer.
There is no problem if enddef is called before the reading of the attribute. In that case, the read gets a copy of the vlen data, as it should, which it can then free without affecting library pointers.
I don't have a good idea what to do to fix this yet.
Not sure if this will happen with vars too.

OK, the problem is in nc4attr.c, around line 499.
      if (type_class == NC_VLEN)
      {
         const hvl_t *vldata1;
	 NC_TYPE_INFO_T *type;
	 size_t base_typelen;

         /* Get the type object for the attribute's type */
	 if ((retval = nc4_find_type(h5, file_type, &type)))
	   BAIL(retval);

         /* Retrieve the size of the base type */
         if ((retval = nc4_get_typelen_mem(h5, type->u.v.base_nc_typeid, 0, &base_typelen)))
            BAIL(retval);

         vldata1 = data;
         if (!(att->vldata = (nc_vlen_t*)malloc(att->len * sizeof(hvl_t))))
            BAIL(NC_ENOMEM);
         for (i = 0; i < att->len; i++)
         {
            att->vldata[i].len = vldata1[i].len;
            if (!(att->vldata[i].p = malloc(base_typelen * att->vldata[i].len)))
               BAIL(NC_ENOMEM);
            memcpy(att->vldata[i].p, vldata1[i].p, base_typelen * att->vldata[i].len);
         }
      }

This will not copy vlens within vlens. In fact, this will only copy vlens of atomic type.
Holy crap, I am thinking about the code that will be needed to write vlens of compounds that include vlens. I guess there needs to be some general recursive way to do this for all user-defined types, arbitrarily nested. Well that will be a fun challenge.
As far as I can recall, this is my code. So it's only fair I should fix it. ;-)

I suspect that this is such a major undertaking that you should instead
just fix the mem leak and force some kind of error if the vlen is not
vlen of an atomic type. Since we have the issue here, we can revisit it later.

Makes sense. I will do so and put up a PR.

I released netCDF-4 9 years ago, and no one has found this bug except me. ;-)
So maybe it would be OK to just document that netCDF-4 handles attributes of VLEN type only one level deep, return an error code as @DennisHeimbigner suggests, and save the trouble of writing a bunch of code that apparently will be unlikely to ever get run.
As I understand this issue, reading a deeply nested vlen would not be a problem, just writing one. I can test this.

I was wrong about no one finding this bug. See #107.

I had forgotten this issue, but knew about. API functions like nc_free_vlen in
the netcdf API need to be recursive in general. The ideal solution is a function
that given an ncid+typeid and a pointer to a memory instance of that type
will recursively walk the instance freeing all the memory. This function,
call it nc_free_type(), say, can be implemented on top of the netcdf-c library
in an auxiliary library.

Ed- could you collect all the known memory leaks in index.dmh
into this issue (or one of your choosing) so we do not proliferate issues?
It also makes it easier for me to check off my fixes.

Sure.

BTW @DennisHeimbigner the leaks I reported today are not from the index.dmh branch, they are in the master.
Still haven't gotten to rerun index.dmh. I will be getting to that shortly, now that I have fixes some HDF4 issues.


Automatically set the local alias '0' to cd back to the directory where the localalias db is located

Depends: #89


Maintenance: Update deprecated dependencies

Summary
When i execute the following command:
npm run setup-local

I can see the following output:
npm WARN deprecated<EMAIL_ADDRESS>This functionality has been moved to @npmcli/fs
npm WARN deprecated<EMAIL_ADDRESS>The package @aws-sdk/util-base64-node has been renamed to @aws-sdk/util-base64. Please install the renamed package.
npm WARN deprecated<EMAIL_ADDRESS>The querystring API is considered Legacy. new code should use the URLSearchParams API instead.

Why is this needed?
In order to keep the codebase up to date these dependencies should be updated. This does not look nice when i as a user see that official package from AWS is showing warnings.
Which area does this relate to?
Other
Solution
I am happy to work on this issue and propose a PR.
Acknowledgment

[X] This request meets Powertools for AWS Lambda (TypeScript) Tenets
[ ] Should this be considered in other Powertools for AWS Lambda languages? i.e. Python, Java, and .NET

Future readers
Please react with 👍 and your use case to help us understand customer demand.

Hi @Cupprum thank you for taking the time to open this issue.
After taking a look at the dependencies that you have listed, and that are mentioned in the warnings emitted when configuring the local development environment it appears that two out of three of these dependencies are transitive dependencies (aka brought in by some of our dependencies) and that are used only in the development environment.
As you can see from our package-lock.json file, both @npmcli/move-file and querystring are not direct dependencies:

@npmcli/move-file is brought into the development environment of the project via lerna > @npmcli/run-script> node-gyp > make-fetch-happen > cacache
querystring is brought into the development environment of the project via aws-sdk

Given that these are transitive dependencies of which we don't have direct control, I would recommend you to open an issue under the repositories of the project that list them directly as dependency - in this case lerna and aws-sdk respectively - to ask them to move to the newer versions.
The third dependency @aws-sdk/util-base64-node is used directly by the Idempotency and Parameters utility and has been left there intentionally. While the package has been marked as deprecated by the AWS SDK for JavaScript team, this is only due to a name change (@aws-sdk/util-base64).
The reason why we haven't moved our utilities to the new module is because some of the AWS Lambda managed runtimes for Node.js still bundle the older package (the one called @aws-sdk/util-base64-node) instead of the new one. Using the new one would require all customers using these two Powertools utilities to make sure that the new version (@aws-sdk/util-base64) is bundled or otherwise present in the Lambda execution environment.
We have noticed this a few months ago and looked at both the old and new package and the implementation has remained the same, so in an effort to offer a low friction adoption and usage for our customers we have opted to remain to the older one for the time being.
As already mentioned, the @npmcli/move-file and querystring are not used in the Powertools utilities that are published on npm and that eventually end up in your Lambda functions. The other dependency (@aws-sdk/util-base64-node) has been intentionally left as-is as explained above and we will continue to periodically check the Lambda managed runtime and update to @aws-sdk/util-base64 when it's safe to do so.
With the above in mind I'll be closing this issue and thank you again for opening the issue and for giving us the chance to document these warnings in this thread.

Thank you and i very much appreciate the transparency.


Feature request: Initialize a new CLI project without having CLI globally installed

Reason
Due to major breaking changes with each CLI release to be able to initialize a new project without having CLI globally installed so this way we can run multiple projects with different CLI versions on single PC and it is what was the purpose of this PR https://github.com/angular/angular-cli/commit/761e86f2224c718f62dcc100059096d5752c0726
Current situation
Before beta30 without having CLI globally installed it was possible to create CLI app just like that :

npm init -y
npm install @angular/cli --save
alter package.json by adding "ng":"ng" script section (https://github.com/angular/angular-cli/commit/761e86f2224c718f62dcc100059096d5752c0726)
npm run ng -- init

Now it is seams to be it is not longer possible due to this PR https://github.com/angular/angular-cli/pull/4628
Proposal
How about if you run npm run ng -- new on an empty folder it will create the new CLI app?
Right now it is also not an option because just by having an empty folder with just a simple package.json like that:
{
  "name": "expl.beta.32.3",
  "version": "1.0.0",
  "description": "",
  "main": "index.js",
  "scripts": {
    "ng": "ng"
  },
  "keywords": [],
  "author": "",
  "license": "ISC",
  "devDependencies": {
    "@angular/cli": "^1.0.0-beta.32.3"
  }
}

When running npm run ng -- new I am getting an error You cannot use the new command inside an Angular CLI project. which is not quite right because there is no Angular CLI app in my folder.

Related https://github.com/angular/angular-cli/issues/4762
I think if we fix it, this one will be fixed as well.

This comment sounds scary https://github.com/angular/angular-cli/issues/4762#issuecomment-280508118 :)

ng init has been removed in https://github.com/angular/angular-cli/pull/4628.

@filipesilva this is more related to  #4762, which is also closed, but has a pending discussion that I hope you or @hansl can look at, so, it's either completely killed, or maybe opened for further consideration.
It also makes implementing your suggestion here https://github.com/angular/angular-cli/commit/3ad2856b27889a50a742c9dca9554a190c8509bf#commitcomment-20929880 a bit easier.

@filipesilva I saw the PR you mentioned, that is why I raised the Feature request.

@kuncevic this isn't a functionality that we want to explicitly support, but we might end up supporting via a bugfix that I discussed with @Meligy. He'll be looking into it.

Hi everyone, Dennis from the WebStorm team.
We're using ng init to generate the project because due to some platform limitations project directory with .idea in it is already present at the time when we can finally invoke real project generator.
I'm not seeing a problem of keeping ng init in place as currently ng new just delegates the command line options to init (https://github.com/angular/angular-cli/blob/master/packages/%40angular/cli/commands/new.ts#L66)

@denofevil the problem for us is that we don't want to support the command at all. It's not as much a matter of technical feasibility but rather a question of the set of commands we want to have in the CLI.
@Meligy did you have time to look at the bug we discussed?

@filipesilva so how about handling non-empty directory in ng new like create-react-app does?

That is @Meligy's suggestion in https://github.com/angular/angular-cli/issues/4762. Maybe you can even use it in your scenario right now with no change: ng new sample -dir=..
Currently @Meligy's full scenario (using a local CLI install) doesn't work because the CLI uses package.json/node_modules as project identity, and thus it considers to already be inside of a project.
We were looking at fixing a related bug (https://github.com/angular/angular-cli/issues/1079) that would enable #4762.

@filipesilva actually that was the second thing I've tried and I'm getting
ng new sample -dir=.
Directory '.' already exists.

which seems to be handled here. This exception is causing then block in new command to be never invoked.
I'm trying with completely empty directory on the command line (and there are no package.json files in upper folders), in case of WebStorm/IntelliJ there would be .idea folder and [ProjectName].iml file

Ok, that's a bit more problematic. Maybe we need a force flag or something.

Yes, that would work ok for us.
If you think that --force would be ok I can probably come up with a PR.

Hi @denofevil @filipesilva,
Sorry about the lack of discussion on this, I've been away all weekend. I think Filipe has done a good job explaining why we removed init.
ng new --dir=. my-project should work, in my opinion. I'll make a PR to do it and try to merge it before RC. Cheers!

Dupe of #4762. Will use that one to track. Thanks!


get_char/1 and get_code/1 consume whole line buffer instead a single character?

See following code:
get_delimited(D, S) :-
    get_char(C),
    (C = D -> S = []; get_delimited(D, S1), S = [C|S1]).

main :- get_delimited('\n', S), write(S), halt.

In gprolog and swi, I can use get_delimited/2 to read a line, but in Trealla get_char/1 seems to consume whole line in a single call.

Oops, code for debugging was left in. FIXED.


"Not Found" response when adding my own swagger

Hello,
I installed morphling globally and tested it with supplied example swaggers, everything works fine. :)
Then I added my own swagger and now I get a "Not Found" on every URL that worked before (except for overrided pattern which still works very well). There wasn't any error while applying my new swagger.
NB : if you need my own swagger file I can send it to you via email (because it's quite confidential). ;)
Thanks in advance.

Hello Enna,
It seems to me, as I've seen your swagger, that you include JSON in the swagger which is in a YAML format.
That wouldn't work. Either you can use a YAML file in a YAML format, or a JSON file in JSON format.
Also, refrain from using newline characters in your strings. Parsers will see a newline and break 👍 .
Pushing something right now to fix your issues.


Make Gender by language changes plot linear

Right now the data looks squashed, will it look better if we make it linear in X axis.

Linear scale looks even worse because there are a lot of wikis with relatively lower yet similar number of total articles in them. What we can probably do for emphasis is to show only a few based on some cutoff?

@vivekiitkgp Ok, then implement a cut-off for only the top 50 wikis by bio count. and put in a comment on the page explaining the cut-off.