Migrate communities to the new addons

With the introduction of the Community Addon Framework ( #283 ), existing community's Github, Kanban, Wikis, and Telegram features need to migrated to the framework, otherwise they will not be visible on the new community pages.
To solve this, I propose the following:
With the refactor, we currently have two paths; the old path which has the existing communities and shows their plugins, and the new path that using the community addon framework.
I think a minimally invasive solution would be to add a "Migration" button to the OLD path that, when clicked by a user with configure permissions, converts that community's instance contract to use the addon framework. Upon successful migration, we should see the addons appear on the NEW path.

}

On the OLD community page, we could check if any of these values are not null, and if they are then we show the migration button.
When the migration button is clicked, we migrate ALL at the same time and create the individual addons from the old data, for example, using this function:
    pub fn set_community_addons(&mut self, handle: CommunityHandle, addons: Vec<CommunityAddOn>) {
        let mut community = self
            .get_community(handle.clone())
            .expect(format!("Community not found with handle `{}`", handle).as_str());
        community.addons = addons;
        self.update_community(handle, community);
    }

and referencing this struct:
   pub struct CommunityAddOn {
    pub id: String,
    pub addon_id: AddOnId,
    pub display_name: String,
    pub enabled: bool,
    pub parameters: String,
}

We can do something like:
[
  {
    id: "123", // generate id on front end
    addon_id: "Wiki",
    display_name: "Wiki 1",
    enabled: true,
    parameters: wiki1 // make sure it is an object matching { title, content }
  },
  {
    id: "456", // generate id on front end
    addon_id: "Wiki",
    display_name: "Wiki 2",
    enabled: true,
    parameters: wiki2 // make sure it is an object matching { title, content }
  },
  {
    id: "789", // generate id on front end
    addon_id: "Telegram",
    display_name: "Telegram",
    enabled: true,
    parameters: JSON.stringify({ "handles": telegram_handle })
  },
  {
    id: "1011", // generate id on front end
    addon_id: "Github",
    display_name: "Github",
    enabled: true,
    parameters: github
  },
  {
    id: "1213", // generate id on front end
    addon_id: "Kanban",
    display_name: "Kanban",
    enabled: true,
    parameters: kanban
  },
]

Do check to make sure that the data is structured to match the new addons (it should, aside from maybe Wiki and Telegram) and that the addon_ids are correct.

Completed


Use much less {...this.props} in favor of concrete props and deeper 'connect' calls

Good option to explore first is the component Avatar. It always needs the realm property to retrieve the full url.

actually this could also be implemented with #835 (in fact did something similar in #845)

Good thinking. I was actually questioning already if we need to use the state realm since in future we might want to show avatars from two realms at once.
if we have Avatar and AvatarContainer, we can use the first for multiple realms.

Closing as implemented.


[Bug] Docs table of contents sidebar links don't support markdown links

If I have a header on a docs page like:
[Test](https://google.com)

The sidebar ToC renders the full text, not just Test
Production Example:
https://docs.buildwithfern.com/overview/guides/publishing-to-maven-central#step-2--create-an-account-on-sonatype-jira--create-an-account--here--https---issues-sonatype-org-secure-signup-default-jspa--

https://docs.mercoa.com/concepts/entities

Thanks for reporting! This has been fixed:


Change lexer to only care about CommonTokenType

The lexer currently does a lookup TokenType.getForCommonTypeMandatory to get the implementation specific token type for the common one that the lexer understands.
https://github.com/thnaeff/farser/blob/0440db96e04feda7dce382572eeac8059047db62/src/main/java/com/mmm/his/cer/utility/farser/lexer/Lexer.java#L39
However, if the LexerTokenFactory would just accept a CommmonTokenType then there would not be a need for that lookup and the TokenTypeLookup implementation could get cleaned up (removing commonTypeLookupMap and its functionality).
This would be a breaking API change.

Done in PR #1  and #2


Support view_component v3; test against more rubies

Support view_component v3, test against more rubies, and add a test that asserts on rendered content.

Published as v1.3.0.


[Android] Playing local files

I have tried this:  <Video source={{uri: "/storage/emulated/0/test.mp4" }} .... to no avail, and I was wondering if anyone has had any success playing local files on Android. If so, I would like to know how or if this is currently only available for iOS.
@buhe Is your pull request trying to fix this?
Thanks.

yes !

Try putting your video file in your Android raw sources folder and then using it as <Video source={{ uri: 'test' }} />. I will keep this issue open until the README is updated to state this.

@isair the requirement is for playback on video found within the external storage directory, not assets compiled with the app.  Basically, the functionality should mimic playback like found with the Gallery app.
@buhe do you have a working example of playing back an external resource?

I figured it out. (This function)[https://github.com/brentvatne/react-native-video/blob/master/Video.js#L73] adds the prefix file:// to the uri. On both platforms, commenting this out and having the absolute path without the file:// causes the playback for a local file to work as intended. Maybe a bug?

I think so ,everything is ok after comment this .
My case is I download some online video and cache it ,user don't need download again next playback.

@isair since you've added a good amount of the android support, I was wondering if you have managed to get remote URLs to play? I haven't had any success thus far. Any help would be greatly appreciated. Thanks.

@hunteredwards  you can try my fork to play external storage video.
i am not android expert, so this fork maybe not unstable..
"react-native-video": "git://github.com/buhe/react-native-video.git#d872933"

When I created Lumpen Radio iOS app using this module a year ago I was able to store the video files under the project root folder in src/assets/videos. I was happy with this as I envisioned one day being able to leverage the same location for Android.
During the Android support addition @isair mentioned video files for Android can be stored under android/app/src/main/res/raw/. While I'm extremely grateful for the Android support, the location specified seems less than ideal as it lends itself to duplication of video assets by platform.
Poking through the open PRs I noticed this promising gem, which appears to allow one to leverage the RN asset system to do the resolving and help prevent by-platform file duplication or any kind of funky "cross-the-streams" loading of files for iOS from the Android raw sources folder.
Keywords
storage location where to store android video

See #251 for loading local files using RN assets system.

Has anyone figured out how to load anything from /storage/emulated/0... on Android? I have tried a bunch of things (commenting out adding the file:// and updating the Java class to use FileInputStream when setting src) but to no avail... cheers a ton in advance!

@tadeaspetak
Did you resolve issue with load load anything from /storage/emulated/0...
?

Facing the same issues. Keep getting Trying to load empty source. even though the file exists. Can confirm as I used await RNFetchBlob.fs.exists(outputPath) and it returns true.

For anyone stumbling upon this issue while trying to load local videos (i.e. native project assets rather than RN static resources), I have a few tips.
In my case, it was a matter of saving previous megabytes for CodePush updates. Indeed, when the videos are part of the RN project's static resources, they will be included in the JS bundle sent to CodePush and retrieved by the users. I'll let you do the calculation, but when you save more than 30 MB per update times 50k users, that counts! Not to mention the enhanced user experience.
To do so, you'll first need to add the video files to your project:

Android: Save your mp4 files under the directory android/app/src/main/res/raw. Note that files in this directory must be lowercase and underscored (e.g. my_video.mp4) and that subdirectories are not supported by Android.
iOS: Open Xcode and add your mp4 files to the project (right-click the project and select "Add Files to [PROJECTNAME]"). Subdirectories are supported by iOS.

Then for the tricky part that cost me a lot of trials and errors:

Android: use the filename as the uri but don't specify the file extension.

Example: <Video source={{ uri: 'my_video' }} />

iOS: it's the exact opposite, meaning you need to specify the file extension.

Example: <Video source={{ uri: 'my_video.mp4' }} />

I didn't find this info anywhere so I thought it could help a frustrated dev or two ;-)

For anyone stumbling upon this issue while trying to load local videos (i.e. native project assets rather than RN static resources), I have a few tips.
In my case, it was a matter of saving previous megabytes for CodePush updates. Indeed, when the videos are part of the RN project's static resources, they will be included in the JS bundle sent to CodePush and retrieved by the users. I'll let you do the calculation, but when you save more than 30 MB per update times 50k users, that counts! Not to mention the enhanced user experience.
To do so, you'll first need to add the video files to your project:

Android: Save your mp4 files under the directory android/app/src/main/res/raw. Note that files in this directory must be lowercase and underscored (e.g. my_video.mp4) and that subdirectories are not supported by Android.
iOS: Open Xcode and add your mp4 files to the project (right-click the project and select "Add Files to [PROJECTNAME]"). Subdirectories are supported by iOS.

Then for the tricky part that cost me a lot of trials and errors:

Android: use the filename as the uri but don't specify the file extension.

Example: <Video source={{ uri: 'my_video' }} />

iOS: it's the exact opposite, meaning you need to specify the file extension.

Example: <Video source={{ uri: 'my_video.mp4' }} />

I didn't find this info anywhere so I thought it could help a frustrated dev or two ;-)

How we can download file in android/app/src/main/res/raw

For anyone stumbling upon this issue while trying to load local videos (i.e. native project assets rather than RN static resources), I have a few tips.
In my case, it was a matter of saving previous megabytes for CodePush updates. Indeed, when the videos are part of the RN project's static resources, they will be included in the JS bundle sent to CodePush and retrieved by the users. I'll let you do the calculation, but when you save more than 30 MB per update times 50k users, that counts! Not to mention the enhanced user experience.
To do so, you'll first need to add the video files to your project:

Android: Save your mp4 files under the directory android/app/src/main/res/raw. Note that files in this directory must be lowercase and underscored (e.g. my_video.mp4) and that subdirectories are not supported by Android.
iOS: Open Xcode and add your mp4 files to the project (right-click the project and select "Add Files to [PROJECTNAME]"). Subdirectories are supported by iOS.

Then for the tricky part that cost me a lot of trials and errors:

Android: use the filename as the uri but don't specify the file extension.

Example: <Video source={{ uri: 'my_video' }} />

iOS: it's the exact opposite, meaning you need to specify the file extension.

Example: <Video source={{ uri: 'my_video.mp4' }} />

I didn't find this info anywhere so I thought it could help a frustrated dev or two ;-)

How we can download file in android/app/src/main/res/raw

u cant download something to raw folder after build


Use the regex from upstream marathon as-is

I don't really understand why this wasn't copied in as-is from upstream, @mattrobenolt ?
But the tests do not pass with it like this.
I ran the tests per the readme, they failed right away because the regex didn't match.
I adjusted the regex to what is upstream, and now they.. fail because I wasn't running a callback_url server, but at least the regex works.
Also the test runner now actually pulls MARATHON_SERVER from the environment as the readme advertises.
cc @mrtyler @evankrall

I guess I just didn't copy all of it. :( The only thing I should have modified was adding ?: places since there's a performance penalty of not having it (a minor one, but we don't need the capture groups).

How much of performance penalty are we talking about? Because I can add ?: on all the parens (4 sets?) to ignore capture groups, but it makes it much more likely I or others will make a mistake again if the regex changes.
Also the prefixing with r seems to break the tests again.

How much of performance penalty are we talking about?

I said minimal. Not worth debating over. I can see the value in leaving it as-is so it's copy paste-able.

Also the prefixing with r seems to break the tests again.

I should run the tests and see. :) tbh never even looked, and tests are being run by Travis automatically, so didn't pay attention. That's my fault. I'll check now.

Oh, tests were added relatively recently!

@solarkennedy Do you mind if I replace this PR with one that includes added tests to cover all the use cases?

Go for it!

+1

@mattrobenolt I've solved this myself by merging in code from our Yelp fork.
If you have a better way to solve this, please submit a different PR.

@solarkennedy Sorry about that, I dropped the ball. :( Thanks for taking care of it. :+1:


GT release folder should have the release version in it's name

Right now, after unpacking the zip, there is no way of knowing the gt version.


WIP: Cost-based optimizer

Signed-off-by: Andy Grove<EMAIL_ADDRESS>This PR implements a simple cost-based optimizer that will attempt to avoid transitioning from CPU to GPU when there is no benefit to running on GPU.
There are two rules implemented:

Do not move from CPU to GPU for an operator that has no benefit on GPU, such as a projection that just changes the order of some attributes
Review sections of the plan that are on GPU and move them back to the CPU if the overall cost does no longer justifies being on the GPU.

There are two aspects to the work here - a cost model, and a mechanism for applying the cost model. We may want to experiment with different cost models or even consider allowing users to provide their own cost models tuned to their workloads.
Explain output
There is a new indicator char of $ to show which operators/expressions have been forced onto CPU by the cost-based optimizer:
$Exec <SortExec> cannot run on GPU because Removed by cost-based optimizer
  $Expression <SortOrder> more_strings_2#58 ASC NULLS FIRST cannot run on GPU because Removed by cost-based optimizer
    $Expression <AttributeReference> more_strings_2#58 cannot run on GPU because Removed by cost-based optimizer
  !Exec <ShuffleExchangeExec> cannot run on GPU because Columnar exchange without columnar children is inefficient

This is followed by a summary of the optimizations that were applied:
It is not worth moving to the GPU just for operator: Exchange hashpartitioning(more_strings_2#58, 200), true, [id=#89]
It is not worth moving to the GPU just for operator: Project [more_strings_2#58, more_strings_1#44]
It is no longer worth keeping this section on GPU; gpuCost=5.1000000000000005, cpuCost=5.0:
SortMergeJoin [strings#40], [strings#54], Inner, (cast(more_strings_2#58 as timestamp) < cast(more_strings_1#44 as timestamp))
  Sort [strings#54 ASC NULLS FIRST], false, 0

This is still WIP but getting closer.

@revans2 @jlowe This PR is still WIP but I have updated the description to show the direction I am going in with the EXPLAIN output and it would be good to get some feedback on this before I go too far.

I like the new explain output, but I'm wondering if it could quickly get very verbose on large plans.  We may want the ability to show the fact that the CBO removed an operation from the GPU but suppress the gory details that come out later.  On a large plan, there could easily be a ton of "after" output by the CBO that will be a chore to line up with the original.  Seems like it would be easy to extend the existing spark.rapids.sql.explain config to have another setting value.  We already do ALL, NOT_ON_GPU, maybe some CBO-specific levels?

@revans2 @jlowe This is ready for another review. The main changes since the last reviews are:

The unit tests register a listener with GpuOverrides so that they can verify that the expected optimizations were applied. The optimizations are represented by case classes for the two types of optimization that we currently implement.
There is a new setting ALL_CBO for spark.rapids.sql.explain that enables the CBO explain output.

* There is a new setting `ALL_CBO` for `spark.rapids.sql.explain` that enables the CBO explain output. I'm not crazy about the name and `ALL` no longer means everything, which is slightly confusing.

Could we rename things then and have ALL be the same as ALL_CBO is now and introduce a new one that removes CBO details from ALL? Perhaps ALL_NO_CBO. If w want to have CBO details with other levels of explain, then we should have a separate config for printing CBO details.

build

build

The tests in this PR depend on nullableStringsDf which was recently removed, causing the previous build failure. I have added it back.

@jlowe @revans2 I had to merge latest from branch-0.5 and re-instate a method in SparkQueryCompareTestSuite to fix CI.


[feature] export combo cheat sheet

I am just starting to use Beeftext with more combos.
For a beginner it would be nice to export your combos and print a cheat sheet to place next to your keyboard until you know them well enough.
The export format could be markdown and/or straight to pdf.
I am thinking of something like this:

Gropup
Name
Keyword
Snipüpet

Mail
signature1
bts1
bye

_
signature2
bts2
See you

Dev
update
btapt1
sudo apt-get update

_
upgrade
btapt2
sudo apt-get dist-upgrade

_
upgrade
btapt3
sudo apt-get update && sudo apt-get dist-upgrade

That's a good idea. thanks for the suggestion.

Until the feature becomes available, I have found the combo picker to be a good substitute for that.

I will be working on this feature now. As I already have code to export combo to CSV, I will use the CSV format. You will be able to import it into any spreadsheet and format it as you like.

I will create a wiki page and post test builds in the coming days.

The test builds are available:

Installer
Portable Edition

You can find instructions in the dedicated wiki page.


 not working

Please provide the environment you discovered this bug in.
I did noticed that i was using  but its not working as expected
Which area/package is the issue in?
create-analog
Description
import {
Component,
OnInit,
ViewContainerRef,
inject,
viewChild,
} from '@angular/core';
import { ActivatedRoute } from '@angular/router';
@Component({
selector: 'app-write-blog',
standalone: true,
imports: [],
template:         <div>             <ng-container #container></ng-container>         </div>    ,
})
export default class WriteBlogPageComponent implements OnInit {
write = viewChild.required('container', { read: ViewContainerRef });
protected activatedRoute = inject(ActivatedRoute);

constructor() {}
ngOnInit(): void {
    let vs = this.activatedRoute.queryParams.subscribe({
        next: (res) => {
            this.loadComponent(res['writeId']);
        },
        complete: () => {
            vs.unsubscribe();
        },
    });
}

async loadComponent(queryParams: string | undefined) {
    this.write()?.clear();
    if (queryParams) {
        const { EditBlogComponent } = await import(
            '../../views/blogs/edit/edit.component'
        );
        this.write()?.createComponent(EditBlogComponent);
        return;
    }
    const { CreateBlogComponent } = await import(
        '../../views/blogs/create/create.component'
    );

    this.write()?.createComponent(CreateBlogComponent);
    return;
}

}
Please provide the exception or error you saw
C:/Users/ridhw/Desktop/analog-project/node_modules/@angular/core/fesm2022/core.mjs:3162
            throw new RuntimeError(205 /* RuntimeErrorCode.INJECTOR_ALREADY_DESTROYED */, ngDevMode && 'Injector has already been destroyed.');
                  ^

RuntimeError: NG0205: Injector has already been destroyed.
    at R3Injector.assertNotDestroyed (C:/Users/ridhw/Desktop/analog-project/node_modules/@angular/core/fesm2022/core.mjs:3162:19)
    at R3Injector.get (C:/Users/ridhw/Desktop/analog-project/node_modules/@angular/core/fesm2022/core.mjs:3049:14)
    at ChainedInjector.get (C:/Users/ridhw/Desktop/analog-project/node_modules/@angular/core/fesm2022/core.mjs:15729:36)
    at lookupTokenUsingModuleInjector (C:/Users/ridhw/Desktop/analog-project/node_modules/@angular/core/fesm2022/core.mjs:5735:39)
    at getOrCreateInjectable (C:/Users/ridhw/Desktop/analog-project/node_modules/@angular/core/fesm2022/core.mjs:5783:12)
    at NodeInjector.get (C:/Users/ridhw/Desktop/analog-project/node_modules/@angular/core/fesm2022/core.mjs:6077:16)
    at ViewContainerRef.createComponent (C:/Users/ridhw/Desktop/analog-project/node_modules/@angular/core/fesm2022/core.mjs:16263:38)
    at WriteBlogPageComponent.loadComponent (C:/Users/ridhw/Desktop/analog-project/src/app/pages/blog/write.page.ts:33:23) {
  code: 205
}

Other information
No response
I would be willing to submit a PR to fix this issue

[ ] Yes
[ ] No

Try with the latest release


[BEAM-7372] Remove py2 checks in setup.py

This PR removes all requirements that were conditioned on py3 vs. py2. Anything py2 only is now removed, anything py3 only is included unconditionally.

GitHub Actions Tests Status (on master branch)

See CI.md for more information about GitHub Actions CI.

R: @tvalentyn

Windows failure looks like BEAM-10921

Run Python_PVR_Flink PreCommit


Feature/publish

This adds API endpoint for publishing media on lbrytv.
I tried to separate the endpoint logic into two entities:

UploadHandler.Handle, which handles HTTP stuff, saves HTTP file and forwards UI JSON-RPC query to...
LbrynetPublisher, which patches client request with necessary fields and forwards it to the running SDK instance and is currently mocked in endpoint tests

This is still work in progress but endpoint design is pretty much finalized.

This is no longer a WIP and ready to be deployed, I believe. Also contains some crucial auth token fixes.


fix: Wavematic.copy() returns deepcopy

Shallow copy was keeping the reference to the same signals list, making copying a Wavematic instance basically useless.

@all-contributors add @MicaelJarniac for code, doc, example, ideas, maintenance, platform, projectManagement, test


updated portion on cipher suites

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

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

@stefsch  I probably ought to make myself the author since I make most updates here.  let me know if you object though.

@stefsch  I probably ought to make myself the author since I make most updates here.  let me know if you object though.

Hi @ccompy  - This pull request was opened in the public repo. We can keep this PR open for review and merge, but would you make future content updates in the private repo? Thank you!

Hi @ccompy  - This pull request was opened in the public repo. We can keep this PR open for review and merge, but would you make future content updates in the private repo? Thank you!

@ktoliver  that was a silly mistake on my part.  fixing

@ktoliver  that was a silly mistake on my part.  fixing

@ccompy It's easy to do, I know. Thanks.

@ccompy It's easy to do, I know. Thanks.

Closed because this is the wrong repository to edit in.

Closed because this is the wrong repository to edit in.


Enchantment Extractor not compattible with Redstone Arsenal

Industrial Foregoing Version: industrialforegoing-1.12.2-1.5.9-96
TeslaCoreLib Version: tesla-core-lib-1.12-1.0.11
Redstone Arsenal Version: RedstoneArsenal-1.12-<IP_ADDRESS>-universal
Crashlog (If Any):
Issue: I can not use the Enchantment Extractor to remove enchants from a Redstone Arsenal Flux-Infused Hammer
It has power, books and the hammer ,nothing happens.

Thats the power item slot, the slot for the items to get the enchantments removed is below the books.

This is shift left click on item placement, still not "my fault"

That's intended, it has power so it goes in the power slot.


No route matches {:action=>"list", :controller=>"storage", :id=>"1"} when viewing provider summary

Issue seen on master commit https://github.com/ManageIQ/manageiq/commit/dac6b4e598289eb1585361176bdd7fcf8887b9f1
Steps to reproduce:
Same as https://github.com/ManageIQ/manageiq/issues/3938
After https://github.com/ManageIQ/manageiq/pull/3965 error changed from the one in issue 3938 to the "No route matches" error.
development.log traceback in https://gist.github.com/carbonin/33cb4df0645acab17105

@matthewd Is this the same issue we ran into yesterday?

It seems to be fine if there is no data for the provider, but as soon as the host and VM records come in from the refresh the error starts.  Not sure if that is a direct cause, but hopefully it helps.

@mathewd seems to be introduced by changes in commit sha: fdfe430b


Special characters double escaped in titles/descriptions

Issue Summary
Page titles/other tags are seemingly double escaped, resulting in text like 3D2D Textscreens - Garry's Mod Workshop Addon in page titles/OG tags.
To Reproduce

Create a page using the latest (3.0.0) Ghost Version
Set the title/description to include a special character like '
Check the resulting <title>, og:title, og:description etc. tags.

The same is also true for tag pages, such as https://jross.me/tag/garrys-mod/. The tag is Garry's Mod and is displayed appropriately in posts/pages and on my tag cloud, but on the tag's page, it displays as Garry's Mod, including the <title> etc. tags as per before. My theme is just using {{tag.name}} here, but as it affects the title tags too which aren't in my control, it appears to be a Ghost issue.
Technical details:
I'm using the paid hosted version of Ghost(Pro). https://jross.me/3d2d-textscreens/ is an example page where this occurs.

Ghost Version: 3.0.0
Node Version: Unknown to me - controlled by hosted Ghost(Pro) platform
Browser/OS: Chrome 78, Windows 10
Database: MySQL

@Cherry there is no double-escaping happening here for the <title>, og:title, etc data as ' is the html-entity (specified in hex) for the apostrophe character and is valid as per the html and ld+json specs.
The display of the title in the tag page is being double escaped however.

@Cherry I'm not able to reproduce this and viewing the output directly from your Ghost instance using curl https://jamesross.ghost.io/tag/garrys-mod/ shows the output is correct.
I suggest you look at whatever system you are using to simulate a custom Ghost(Pro) domain and/or any non-standard caching you have in place. If you need any specific Ghost(Pro) support please reach out to<EMAIL_ADDRESS>


Interactive Tutorial - Creating a Cluster

minikube version (and minikube start) fails because this is apparently running in a read-only version
I0513 04:10:50.086865   13742 out.go:229] Setting OutFile to fd 1 ...
log: exiting because of error: log: cannot create log: open /tmp/minikube.minikube.root.log.INFO.20210513-041050.13742: read-only file system

/label team/katacoda

/kind support

I don't think this is a support request - it sounds like a website bug. Albeit one that's intermittent and might have been fixed.
/remove-kind support

/remove-lifecycle rotten

/remove-lifecycle stale

/remove-lifecycle rotten

/remove-lifecycle stale

Closing this since I can't imagine this is debuggable at this point


[Feature request] Preview Markdown in a new never yet saved document

Is your feature request related to a problem? Please describe.
I write a draft of Markdown and want to preview it but I have to save the file first with the .md extension.
Describe the solution you'd like
I'd like to preview Markdown without saving file or even saving into certain file extension (.md).
And it has to be done in both context menu and hotkeys ways as it's already done with .md files.
Describe alternatives you've considered
I save a file into .md extension then can preview Markdown and then I have to delete the file because it was meant to be just a draft.

I am planning to add a drop down menu right next to the "add" button in the tab bar and giving users option to create either TXT, MD or new file with a specific name or ext defined by user. I have been thinking about the UX here but not yet have a good idea. I will do it right away once I convinced myself on the design of the button and how it is going to flow.

I will probably never enable preview if file is not .md or .markdown since this is equal to promoting Notepads as a Markdown editor, which it is not and will never be. It does not even qualify at this stage. There are way better apps out there for people to use with markdown format. I provided this feature for easy of use and since markdown is indeed 100% plain text format. But that's it.


Installer can't mount /dev/root on MBP M1

Hello, I'm facing the same exact problem as #17  .
After dd'ing the generated iso to the usb drive and successfully booting grub and the kernel, it prints:
mount: mounting /dev/root on /mnt-root/iso failed: No such file or directory
I tried unplugging and replugging the usb while in the interactive shell, and it's recognized as /dev/sda, but I can't mount and fdisk says:
Disk /dev/sda doesn't contain a valid partition table
EDIT: using the .iso from the releases worked fine, so it's either an issue with my build or the newer versions of the packages included in the latest build process

How exactly did you build the .iso? Did you use the same nixpkgs version as the release?
The release .iso might have worked by chance. This failure to mount is intermittent in my experience, even with the same computer, .iso, and flash drive.

I followed the steps defined here: https://github.com/tpwrules/nixos-apple-silicon/blob/main/docs/uefi-standalone.md
Executed those commands on arch linux on arm.

I followed those steps exactly on my M1 Max MBP and got four successful boots and one failed boot. There must be a race condition or timing issue. It sounds like you did nothing wrong, you just got unlucky and didn't try again. There's not much I can do about that.

I'm running into this same problem with a M2 MB, but I got this instead of no such file or directory: mount: mounting /dev/loop0 on /mnt-root/nix/.ro-store failed: invalid argument.

Should I create a new issue? I can't seem to get a (samsung) usb c flash drive to work at all  and a usb type a via an adapter works but it fails with the above invalid argument error...


[Codelab Issue] Testing Codelab 5.7, Solution - Syntactical Mistake

Describe the problem
The solution provided at the end of task 5.7 has parenthesis missing for the first function
In which lesson and step of the codelab can this issue be found?
5.7
How to reproduce?
Go have a look
Versions
Doesn't matter
codelab: advanced-android-kotlin

In which codelab? There are three
5.1 Testing Basics
5.2 Dependency Injection and Test Doubles
5.3 Survey of Testing Topics

Link to the page: https://codelabs.developers.google.com/codelabs/advanced-android-kotlin-training-testing-basics/index.html?index=..%2F..index#6
Scroll to almost 70% of the page and you find below heading Solution: Writing more tests, there's a code snippet of StatisticsUtilsTest.kt class. In this code snippet parenthesis are missing for the first test function.
Adding screenshot : code snippet screenshot

Thanks, fixed in next release.


Next v12 project not supported

Describe the bug
When creating a Next.js project running  v12, an error appears when installing next-export-optimize-images.
Can we make an update to prevent this error, without needing to install with --force, or --legacy-peer-deps?
To Reproduce
npx create-next-app@12 my-new-app
cd my-new-app
npm i next@12
npm i next-export-optimize-images --save-dev

Expected behaviour
No errors from the console expected when installing the next-export-optimize-images package.
Console output
╰─ npm i next-export-optimize-images --save-dev                                                                                ─╯
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving<EMAIL_ADDRESS>npm ERR! Found<EMAIL_ADDRESS>npm ERR! node_modules/next
npm ERR<EMAIL_ADDRESS>from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer<EMAIL_ADDRESS>from<EMAIL_ADDRESS>npm ERR! node_modules/next-export-optimize-images
npm ERR!   dev next-export-optimize-images@"*" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.

Desktop:

OS: macOS Ventura v13.4

@brendanHearX
If you are using Next.js12, you need to lower the version of this library to Series 1.
Please check👍


built php 7.0.1, no ini file though

compiled 7.0.1 - no ini files though. not sure of changes needed.

Great job @rscorer can you include the default .ini for now?

Will try this weekend - not sure how to turn .ini to .erb but will investigate :)

Well erb is a very simple templating language. It just reads a file until it finds <%= and then it will inject that (environment) value.
So the only changes you need to make to the ini (i think) are:
error_log = <%= ENV['OPENSHIFT_LOG_DIR'] %>/php-error.log
extension_dir = "<%= ENV['OPENSHIFT_PHP_EXTENSION_DIR'] %>"
session.save_path = "<%= ENV['OPENSHIFT_TMP_DIR'] %>"

and that's it.
The only problem left then is that we should rename the php.ini.erb to something like php-{version}.ini.erb since else we can only support PHP 7.
For this we need to change control and manually place PHPRC (aka remove PHPRC.erb and set it in setup)
But thank you for this PR if you don't have the time then I will take a look at it when I get some free time.

Oh cool, I'll give that a try :)
I was wondering about renaming the ini, will look at that too!

sorry, terrible weekend - had no time for checking into this. hopefully can try during the week.
frustratingly so close!

No problem! Your almost there and this will be a great PR :smile:

@rscorer
you compiled version or got from somewhere already compiled?
is compiled, you tell if something has changed in the settings of issues at compile time (./configure)?

I'm closing this since php 7.0.7 is now available in master


Create a Preview Feature

The feature
Create a button above the download button to preview the output image before downloading
How to implement:

[ ] Create a button above the downloads button
[ ] Create an onClick function to the button that opens a modal
[ ] Display the output image of the tweet inside that modal

Submit your build

[ ] Create a new branch preview-feature-[yourname]
[ ] Create a new pull request
[ ] Wait for review

Isn't the image on the left side a preview?

The image on the left is just a div_(component)_ and not the actual scale and resolution of the image that is downloaded. So the preview feature is to be implemented so that the user can see the actual result/output before downloading.
Therefore, the preview feature is to display a modal that contains the output of the Download button instead of actually downloading the image.


'mouseover' event not supported for AzureMapHtmlMarker

I am trying to create a HTML marker and add a popup when a user hovers over the marker. For this I wanted to use the 'mouseover' event. However, I could not see it in the supported list of events for the HtmlMarkerEvents:
export interface HtmlMarkerEvents {
    click: TargetedEvent;
    dblclick: TargetedEvent;
    contextmenu: TargetedEvent;
    drag: TargetedEvent;
    dragend: TargetedEvent;
    dragstart: TargetedEvent;
    keydown: TargetedEvent;
    keypress: TargetedEvent;
    keyup: TargetedEvent;
    mousedown: TargetedEvent;
    mouseup: TargetedEvent;
    mousemove: TargetedEvent;
    mouseout: TargetedEvent;
}

I see that this event is supported by the javascript library for the HtmlMarker (as in this example AzureMapsCodeSamples/Samples/HTML Markers/HTML Marker events/HTML Marker events.html at main · Azure-Samples/AzureMapsCodeSamples (github.com))
Can the 'mouseover' event for AzureMapHtmlMarker please be added? or is there any alternative I can use to display a popup when a user hovers over the html marker?

Thanks @adityagupta-msft, for bringing this issue to our attention. We'll include the missing events in azure-maps-control. In the meantime, you can refer to the following example to display a popup when hovering over the marker.
If you're using TypeScript, you might need to include // @ts-ignore before the mouseenter and mouseleave event names.
import {
  AzureMap,
  AzureMapsProvider,
  AzureMapHtmlMarker,
  useCreatePopup
} from "react-azure-maps";
import { AuthenticationType } from "azure-maps-control";
import { useState } from "react";

const option = {
  authOptions: {
    authType: AuthenticationType.subscriptionKey,
    subscriptionKey: ""
  },
  center: [151, -34],
  zoom: 4
};

const SvgComponent = (props) => (
  <svg xmlns="http://www.w3.org/2000/svg" width={24} height={28} {...props}>
    <path
      fill="{secondaryColor}"
      d="M11.988 16.615a5.15 5.15 0 0 1-2.268-.525 4.909 4.909 0 0 1-2.805-4.442 5.019 5.019 0 0 1 5.072-4.936h.012a5.03 5.03 0 0 1 5.085 4.961 4.907 4.907 0 0 1-.549 2.224 5.114 5.114 0 0 1-4.548 2.718zm0-8.06a3.173 3.173 0 0 0-3.226 3.099 3.081 3.081 0 0 0 1.77 2.782 3.299 3.299 0 0 0 4.365-1.386 3.049 3.049 0 0 0 .342-1.381A3.184 3.184 0 0 0 12 8.555h-.012z"
    />
    <path
      fill="{color}"
      d="M11.999.922A10.908 10.908 0 0 0 .923 11.654a10.639 10.639 0 0 0 4.418 8.598l6.658 6.464 6.658-6.463a10.537 10.537 0 0 0 2.198-15.041A11.182 11.182 0 0 0 11.999.923zm1.873 14.341a4.221 4.221 0 0 1-5.589-1.789 3.945 3.945 0 0 1-.445-1.8 4.164 4.164 0 0 1 8.323-.037 4.028 4.028 0 0 1-2.289 3.626Z"
    />
    <path
      fill="{secondaryColor}"
      d="m11.999 28-7.256-7.044A11.611 11.611 0 0 1 0 11.653 11.844 11.844 0 0 1 11.988.001a.102.102 0 0 1 .02 0 12.164 12.164 0 0 1 9.577 4.647 11.357 11.357 0 0 1 2.299 8.614 11.521 11.521 0 0 1-4.63 7.695zm-.01-26.157a9.997 9.997 0 0 0-10.143 9.812 9.769 9.769 0 0 0 4.04 7.853l.099.083 6.014 5.838 6.113-5.922a9.7 9.7 0 0 0 3.945-6.505 9.533 9.533 0 0 0-1.933-7.229 10.305 10.305 0 0 0-8.116-3.931h-.021zm.021 14.772a5.11 5.11 0 0 1-4.547-2.718 4.868 4.868 0 0 1 .932-5.743 5.118 5.118 0 0 1 3.58-1.46h.024a5.031 5.031 0 0 1 5.084 4.938 4.92 4.92 0 0 1-2.805 4.457 5.152 5.152 0 0 1-2.269.525zm-.011-8.079h-.015a3.277 3.277 0 0 0-2.295.933 3.029 3.029 0 0 0-.587 3.58 3.297 3.297 0 0 0 4.364 1.386 3.092 3.092 0 0 0 1.772-2.795 3.185 3.185 0 0 0-3.239-3.105z"
    />
    <text
      x={12}
      y={17}
      style={{
        fontSize: 14,
        fill: "#000",
        textAnchor: "middle"
      }}
    >
      {"{text}"}
    </text>
  </svg>
);

export default function MapWithMarker() {
  const [visible, setVisible] = useState(false);

  return (

      <AzureMapsProvider>
        <AzureMap options={option}>
          <AzureMapHtmlMarker
            markerContent={<SvgComponent />}
            isPopupVisible={visible}
            options={{
              position: [151, -34],
              secondaryColor: "white",
              text: "",
              color: "green",
              popup: useCreatePopup({
                options: {
                  closeButton: false,
                  pixelOffset: [0, -50]
                },
                popupContent:
visible = {visible.toString()}

              })
            }}
            events={[
              {
                eventName: "mouseenter",
                callback: () => {
                  console.log("mouseenter");
                  setVisible(true);
                }
              },
              {
                eventName: "mouseleave",
                callback: () => {
                  console.log("mouseleave");
                  setVisible(false);
                }
              }
            ]}
          />
        </AzureMap>
      </AzureMapsProvider>

  );
}

Thanks, this worked! I had to add //@ts-ignore to get rid of the type error as you suggested.


refactor: split up the WAL module

Small refactor splitting things up. No functional changes are expected.

#522
#534
#533  👈
master

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

Join @pepyakin and the rest of your teammates on  Graphite

Merge activity

Nov 1, 6:10 PM EDT: A user started a stack merge that includes this pull request via Graphite.


Result Presentation in YAML, JSON and Table

Similar to kubectl we want users of the harbor-cli users to provide the same representations and output options.
YAML, JSON, Table.
Currently, only JSON output is supported:
 ./harbor get project testproject-832165132
{
  "Payload": {
    "chart_count": 0,
    "creation_time": "2024-02-05T14:58:53.974Z",
    "current_user_role_ids": null,
    "cve_allowlist": {
      "creation_time": "0001-01-01T00:00:00.000Z",
      "id": 21,
      "items": [],
      "project_id": 20,
      "update_time": "0001-01-01T00:00:00.000Z"
    },
    "metadata": {
      "public": "true"
    },
    "name": "testproject-832165132",
    "owner_id": 20,
    "owner_name": "koenc",
    "project_id": 20,
    "repo_count": 2,
    "update_time": "2024-02-05T14:58:53.974Z"
  }
}

[ ] Support YAML, JSON and Table output
[ ] Make Table output default
[ ] -o wide: This parameter allows us to display extra information (if needed, otherwise -o wide should have no effect)
[ ] In doubt, follow kubectl approach

Bonus points

[ ] --sort-by: This parameter allows us to sort the output based on the resource attribute we specify.

Out of Scope

Support of JSONPath, or GO template.
-f, --field-selector==: This parameter allows us to filter the output using some resource attributes.

@Vad1mo Assign this issue to me!
Would like to give it a try


Pandas dataframe enhancement

REF 6R that may help to circle back to 837,
REF - LINE ITEM CONTROL NUMBER X12 Segment Name: Reference Information X12 Purpose: To specify identifying information X12 Syntax: 1. R0203 At least one of REF02 or REF03 is required. Loop: 2110 — SERVICE PAYMENT INFORMATION
Adjustments per service is fundamental in an 835 parser,  instead of closing segments on each ~, may loop from CLP to next CLP and capture the adjustments and the reference.
CAS - SERVICE ADJUSTMENT X12 Segment Name: Claims Adjustment X12 Purpose: To supply adjustment reason codes and amounts as needed for an entire claim or for a particular service within the claim being paid may be multiple

@gizquier2, thank you again for the great feedback. Your suggestions have been added to v1.3.0 which was just released today.


Update API to use docker osm database and it's extension

Problem
Currently, our API is still using old locality data, we need to change it into using osm database
Solution
Update all API to use docker osm database

All API already using osm database


Swap stdlib for base

Overview
Why do we need this feature? What are we trying to accomplish?
Small fix to get PubSub working again.
Requirements
What requirements are necessary to consider this problem solved?
Considered Solutions
What solutions were considered?
Recommended Solution
What solution are you recommending? Why?
Considerations
What impact will this change have on security, performance, users (e.g. breaking changes) or the team (e.g. maintenance costs)?

Hey really sorry but I accidentally included these changes in #28


Update Posts “a-place-holder-post”

Automatically generated by Netlify CMS

👷 Deploy Preview for singular-moonbeam-50eeea processing.

Name
Link

🔨 Latest commit
79f4ded07fa037451aece714c10740979c70822e

🔍 Latest deploy log
https://app.netlify.com/sites/singular-moonbeam-50eeea/deploys/643537c1403ece0008624cc0


add extra delay comp info, fix stack overflow

I realized that additional information like the source node/port is needed to know when to re-use delay compensation nodes when recompiling the graph.
Also, while adding the extra info, it managed to panic because of a stack overflow. I think this is partly due to how the schedule takes user-defined-types for node/port ids, and those types can potentially be large (like a string or a complex enum). So I replaced it to use the previous NodeRef/PortRef system you had before, and it seems to be working again. Although we should still probably look into reducing the amount of data on the stack by either making the SmallVecs smaller or by making the IDs smaller (32bit ids instead of 64bit).
I also had to take the schedule out of the graph struct because it was giving me a borrow check error when trying to use graph.port_ident() and graph.node_ident().

Thanks for the PR!
I think this needs to be split up, or else it's hard for me to follow what the changes are.

For the borrow checking error with Schedule, avoid using references at all and simply return the schedule.
Add the extra delay information, but do not alter the port/node types.
To resolve the stack overflow, Box the HeapStore or remove the SmallVec optimization.

Alright, I implemented what you suggested. I reverted some things back so 1 and 2 on your list are no longer relevant.
Adding the extra delay info and resolving the stack overflow kind-of go hand-in-hand, so I think they should be in the same PR. The solution I have now is to use a std Vec for the ScheduledNodes instead of the SmallVec.


[BUG] Can't embed the bot into React Framework

Describe the bug
I want to create bubble chat using react but this error comes up. I already install the flowise-embed and flowise-embed-react.
any suggestion?

this is the Bot.jsx
import { BubbleChat } from "flowise-embed-react";
import React from 'react';

const Bot = () => {
    return (
        <BubbleChat
            chatflowid="7bb17f61-5d82-4b37-bef9-09e70669a911"
            apiHost="http://localhost:4000"
            theme={{
                button: {
                    backgroundColor: "#3B81F6",
                    right: 20,
                    bottom: 20,
                    size: "medium",
                    iconColor: "white",
                    customIconSrc: "https://raw.githubusercontent.com/walkxcode/dashboard-icons/main/svg/google-messages.svg",
                },
                chatWindow: {
                    welcomeMessage: "Hello! This is custom welcome message",
                    backgroundColor: "#ffffff",
                    height: 700,
                    width: 400,
                    fontSize: 16,
                    poweredByTextColor: "#303235",
                    botMessage: {
                        backgroundColor: "#f7f8ff",
                        textColor: "#303235",
                        showAvatar: true,
                        avatarSrc: "https://raw.githubusercontent.com/zahidkhawaja/langchain-chat-nextjs/main/public/parroticon.png",
                    },
                    userMessage: {
                        backgroundColor: "#3B81F6",
                        textColor: "#ffffff",
                        showAvatar: true,
                        avatarSrc: "https://raw.githubusercontent.com/zahidkhawaja/langchain-chat-nextjs/main/public/usericon.png",
                    },
                    textInput: {
                        placeholder: "Type your question",
                        backgroundColor: "#ffffff",
                        textColor: "#303235",
                        sendButtonColor: "#3B81F6",
                    }
                }
            }}
        />
    );
};

export default Bot

here's the App.js
import React from 'react'
// import { BrowserRouter as Router, Route, Switch } from 'react-router-dom';
import './Component/ScrollBar.css'
import Navbar from './Component/navbar';
import MyIntro from './Component/MyIntro';
import Content from './Component/Content';
import ScrollButton from './Component/ScrollButton';
import ContactNews from './Component/ContactNews';
import ContentTwo from './Component/ContentTwo';
import Cards from './Component/Cards';
import Footer from './Component/Footer';
import ContentThree from './Component/ContentThree';
import Bot from './Component/Bot';

function App() {
  return (
    <div>
      <ScrollButton />
      <Navbar />
      <MyIntro />
      <Content />
      <ContentTwo />
      <ContentThree />
      <ContactNews />
      <Cards />
      <Bot />
      <Footer  />
    </div>
  );
}

export default App;

Currently the error only occur when use react, but when i use the html it works just fine. is there any way to use react pop up ? somebody?

Currently the error occur when use react but when use html it works just fine, I dunno how to bot embed when using react framework.

That's a known error with CRA (https://github.com/facebook/create-react-app/issues/11865).
This fixes the issue: https://stackoverflow.com/questions/70964723/webpack-5-in-ceate-react-app-cant-resolve-not-fully-specified-routes/75109686#75109686
Basically, you have to use craco yarn add -D @craco/craco


Fix: No valid versions available for pdf-to-markdown

You should consider change the URL of your online website https://pdf2md.morethan.io/ because pdf2md is an other package npm pdf2md.

pdf-to-markdown isn't on npm (yet).
pdf2md is a fork of pdf-to-markdown enabling terminal usage.


Longclick on marker without OnclickListener set

If you try to longclick on a marker without setting the click listener the app crashes
The ** **  part it's the suggestion to fix (CircularView.java)
private OnLongClickListener mOnLongClickListener = new OnLongClickListener() {
        @Override
        public boolean onLongClick(View v) {
            if ( **mOnCircularViewObjectClickListener != null** && isLongClickable()) {
                mLongClickRegistered = true;
                if (mTouchEventMarkerPos == -1) {
                    playSoundEffect(SoundEffectConstants.CLICK);
                    mOnCircularViewObjectClickListener.onClick(CircularView.this, true);
                    mTouchEventMarkerPos = null;
                } else if (mTouchEventMarker != null) {
                    playSoundEffect(SoundEffectConstants.CLICK);
                    mOnCircularViewObjectClickListener.onMarkerClick(CircularView.this, mTouchEventMarker, mTouchEventMarkerPos, true);
                    mTouchEventMarker = null;
                    mTouchEventMarkerPos = null;
                }
                return mLongClickRegistered;
            }
            return false;
        }
    };

Hey good catch. If you'd like to do a pull request feel free. Otherwise in a few hours I can make the change and push a 1.1.1

Issue fixed in commit: d6f28b5e010fc2b3fcb673e7f4309f2cff7b86be
v1.1.1 is being published now and should be available in a few hours (processing time)


Create flag for not matching on the hostname and cycle matching requests

Thanks for the cool project, it was a great starting point for me solving a real issue at work and I'd like to contribute some changes back!
This PR adds two features
First, a dontMatchOnHost option. This is key in environments where you do not have sudo rights and therefore cannot modify your hosts file.
Secondly, if there are more than one entries that would match a request, this now cycles them so the first time it will hit the first entry, the second time the next, once all matching entries have been finished it cycles back to the first. This is necessary for queries that follow a cursor pattern where a cursor token is used to iteratively "get next" resources (this is somewhat common in paging or in things like the dropbox api).

I was not able to run the docs generation on this branch, it failed on my machine for some reason but the rest of it works well.


Sporadic communication issues with Kubernetes API

This seems to happen once every few months, for seemingly no reason.
Added a livenessProbe to the apiserver container as a workaround, to restart the server when the connection to Kubernetes API is broken. See https://github.com/nds-org/workbench-helm-chart/pull/33
Exact errors in the logs are as follows:
E1004 12:38:24.443896      29 reflector.go:205] github.com/ndslabs/apiserver/pkg/kube/kube.go:791: Failed to list *v1.ReplicationController: Get "https://<IP_ADDRESS>:443/api/v1/replicationcontrollers?limit=500&resourceVersion=0": http2: no cached connection was available
E1004 12:38:24.444699      29 reflector.go:205] github.com/ndslabs/apiserver/pkg/kube/kube.go:765: Failed to list *v1.Pod: Get "https://<IP_ADDRESS>:443/api/v1/pods?limit=500&resourceVersion=0": http2: no cached connection was available
E1004 12:38:25.444302      29 reflector.go:205] github.com/ndslabs/apiserver/pkg/kube/kube.go:791: Failed to list *v1.ReplicationController: Get "https://<IP_ADDRESS>:443/api/v1/replicationcontrollers?limit=500&resourceVersion=0": http2: no cached connection was available
E1004 12:38:25.445315      29 reflector.go:205] github.com/ndslabs/apiserver/pkg/kube/kube.go:765: Failed to list *v1.Pod: Get "https://<IP_ADDRESS>:443/api/v1/pods?limit=500&resourceVersion=0": http2: no cached connection was available
E1004 12:38:26.444732      29 reflector.go:205] github.com/ndslabs/apiserver/pkg/kube/kube.go:791: Failed to list *v1.ReplicationController: Get "https://<IP_ADDRESS>:443/api/v1/replicationcontrollers?limit=500&resourceVersion=0": http2: no cached connection was available
E1004 12:38:26.445582      29 reflector.go:205] github.com/ndslabs/apiserver/pkg/kube/kube.go:765: Failed to list *v1.Pod: Get "https://<IP_ADDRESS>:443/api/v1/pods?limit=500&resourceVersion=0": http2: no cached connection was available
E1004 12:38:27.445138      29 reflector.go:205] github.com/ndslabs/apiserver/pkg/kube/kube.go:791: Failed to list *v1.ReplicationController: Get "https://<IP_ADDRESS>:443/api/v1/replicationcontrollers?limit=500&resourceVersion=0": http2: no cached connection was available
E1004 12:38:27.446069      29 reflector.go:205] github.com/ndslabs/apiserver/pkg/kube/kube.go:765: Failed to list *v1.Pod: Get "https://<IP_ADDRESS>:443/api/v1/pods?limit=500&resourceVersion=0": http2: no cached connection was available
E1004 12:38:28.445722      29 reflector.go:205] github.com/ndslabs/apiserver/pkg/kube/kube.go:791: Failed to list *v1.ReplicationController: Get "https://<IP_ADDRESS>:443/api/v1/replicationcontrollers?limit=500&resourceVersion=0": http2: no cached connection was available
E1004 12:38:28.446701      29 reflector.go:205] github.com/ndslabs/apiserver/pkg/kube/kube.go:765: Failed to list *v1.Pod: Get "https://<IP_ADDRESS>:443/api/v1/pods?limit=500&resourceVersion=0": http2: no cached connection was available

Possibilites:

server out of some finite resource? (e.g. disk space, connections, etc)
maybe a failure in Kubernetes caused a restart of their pod, possibly regenerating some key or other metadata?

This is addressed in V2. If the KubeWatcher thread disconnects, it should continue the loop and open a new connection using the last known resource_version


Is there a way to get the full scope of a page object?

Been thinking about what "integration" with qunit-dom would look like, and I think maybe something like:
assert.dom(page.something.nested.scope).hasText('something');

is nice, but for scope, I know I'm just accessing the property on page.something.nested.
It'd be nice if there was a way to also get the scope of the hierarchy. like,
'[data-test-root] [data-test-something] [data-test-nested] [data-test-the-scope]'

There is a buildSelector exported from the root of "ember-cli-page-object" module. But it produces a JQuery selector, which I believe makes it unusable in "qunit-dom" once you use it with collections for example.

At the moment buildSelector is not included in the types(sorry for inconvenience), cause I believe we should discourage users from using it. I think in most(all) cases having an element should cover user needs.
However, seems like people still need it to adjust integrations with external libs, so I don't think we should deprecate(which was my original intention) it soon. So, in case you find it useful to have typings for this, I'd gladly accept a PR!

closing, because ember-cli-page-object uses jQuery, and jQuery selectors aren't valid selectors to browsers.


Added legal text to upgrade button, and showing again the Edition section in team edition

Summary
Added legal text to upgrade button, and showing again the Edition section in team edition
Ticket Link
MM-28811
Screenshots

Actually it is covered by the existing snapshots, I'll update them.

@mkraft Can you help prioritize reviewing this as this was requested for a dot release?

@amyblais this doesn't need to go into a dot release. It can just go into 5.28.

@jespino Please help assign a QA reviewer.

@ogi-m Kind reminder to review for v5.28.

@ogi-m Kind reminder for v5.28.

/update-branch

Will try to auto merge this PR once all tests and checks are passing. This might take up to an hour.

Trying to auto merge this PR.

Cherry pick is scheduled.

Pull Request successfully merged
SHA: 4292e567c6e4f368c6f30f96cb8f1a0e3fb018af


Progressring does not animate properly

I have a progressring which only does the circle twice. Then when reloaded the animation stays fixed and looks like this

All the dots move together when the animation does its 'one run'

@AudioW Thanks for the screen shot. It would be helpful if you could include the following information as well:

Windows Insider Build Version:
Windows Insider SDK Version:
A code snippet of the markup and code behind
The expected result that you intended on
The actual result you are seeing (which you've included as a screen shot already)

This will help our team understand if it's an underlying platform issue we need to investigate.

Hi Paul,
here is the extra info:
insider build 143321
sdk 14332
the code snippet is just a progressring within a new application...
The expected result is the attached picture. This weird behavior seems to be system wide, when I update apps in the store app, I see the same distorted progress ring in the titlebar of the application

Fixed in 14383


Security - Deprecated dependency (Request)

Request is now deprecated - it has several unadressed issues.
Server-Side Request Forgery in Request - https://github.com/advisories/GHSA-p8p7-x288-28g6
tough-cookie Prototype Pollution vulnerability - https://github.com/advisories/GHSA-72xf-g2v4-qvf3

Same here, any updates?
npm audit report
request  *
Severity: moderate
Server-Side Request Forgery in Request - https://github.com/advisories/GHSA-p8p7-x288-28g6
Depends on vulnerable versions of tough-cookie
fix available via npm audit fix --force
Will install<EMAIL_ADDRESS>which is a breaking change
node_modules/request
@getbrevo/brevo  >=2.0.0-beta.2
Depends on vulnerable versions of request
node_modules/@getbrevo/brevo
tough-cookie  <4.1.3
Severity: moderate
tough-cookie Prototype Pollution vulnerability - https://github.com/advisories/GHSA-72xf-g2v4-qvf3
fix available via npm audit fix --force
Will install<EMAIL_ADDRESS>which is a breaking change
node_modules/tough-cookie
3 moderate severity vulnerabilities

For request there will be update of the library, see here : https://github.com/request/request/issues/3142. It begs the question of why the project depends on such an outdated package?
There is a 4.1.4 version of tough-cookie that we could use. This is a dependency of request and it can be overriden like so :
{
  "name": "my-package",
  "version": "1.1.1",
  "dependencies": {
    "@getbrevo/brevo": "^2.2.0",
  },
  "overrides": {
    "@getbrevo/brevo": {
      "tough-cookie": "4.1.4"
    }
  }
}

Bump


Intermittent cli progress bar errors

Seemingly randomly, geocode_addresses() errors out with
Error in cli::cli_progress_update(..., id = id) : Cannot find progress bar cli-117300-128
If I knew more about {cli} I'd try and include more info -- let me know if I can provide anything else for troubleshooting.
Traceback:
9: stop("Cannot find progress bar `", id, "`")
8: cli::cli_progress_update(..., id = id)
7: self$progress$update()
6: (function (res)
   {
       self$progress$update()
       body <- if (is.null(self$path))
           res$content
       else new_path(self$path)
       resp <- new_response(method = req_method_get(self$req), url = res$url,
           status_code = res$status_code, headers = as_headers(res$headers),
           body = body, request = self$req)
       resp <- cache_post_fetch(self$reqs, resp, path = self$paths)
       self$resp <- tryCatch(resp_check_status(resp, error_call = self$error_call),
           error = identity)
       if (is_error(self$resp)) {
           signal("", error = self$resp, class = "httr2_fail")
       }
   })(list(url =  "https://bcgisdata.baltimorecountymd.gov/arcgis/rest/services/Geocoders/CompositeGeocoder/GeocodeServer/geocodeAddresses?f=json",
       status_code = 200L, type = "application/json; charset=UTF-8",
       headers = as.raw(c(0x48, 0x54, 0x54, 0x50, 0x2f, 0x31, 0x2e,
       0x31, 0x20, 0x32, 0x30, 0x30, 0x20, 0x4f, 0x4b, 0x0d, 0x0a,
       0x43, 0x61, 0x63, 0x68, 0x65, 0x2d, 0x43, 0x6f, 0x6e, 0x74,
    ...
5: curl::multi_run(pool = pool)
4: pool_cancel(pool, perfs)
3: pool_run(pool, perfs, on_error = on_error)
2: httr2::req_perform_parallel(all_reqs, on_error = "continue",
       progress = .progress)
1: geocode_addresses(address = df$LOC, city = df$COMMUNITY,
       geocoder = baltco_composite)

R 4.3.3, arcgisgeocode <IP_ADDRESS>03, cli 3.6.2

This is an error with {cli} that I've seen occur with stale R sessions. What I would do is this:

restart your R session then
set .progress = FALSE in the function

The second thing will make sure that cli isn't used (so you wont get a pretty progress bar but you also wont get an error!)
Also, super awesome to see that you're using your own geocoding service!

Thanks! I expected it was something in that vein.


Spyder can't open files with spaces from the Windows Explorer

Description
What steps will reproduce the problem?

When double-clicking on a .py file in Windows 10 Explorer, Spyder 6 is opened, but the file is not opened
Versions

Spyder version: 6.0.2  (standalone)
Python version: 3.11.10 64-bit
Qt version: 5.15.8
PyQt5 version: 5.15.9
Operating System: Windows-10-10.0.19045-SP0

Dependencies
# Mandatory:
aiohttp >=3.9.3                  :  3.10.10 (OK)
asyncssh >=2.14.0,<3.0.0         :  2.18.0 (OK)
atomicwrites >=1.2.0             :  1.4.1 (OK)
chardet >=2.0.0                  :  5.2.0 (OK)
cloudpickle >=0.5.0              :  3.1.0 (OK)
cookiecutter >=1.6.0             :  2.6.0 (OK)
diff_match_patch >=20181111      :  20241021 (OK)
github >=2.3.0                   :  2.4.0 (OK)
importlib_metadata >=4.6.0       :  8.5.0 (OK)
intervaltree >=3.0.2             :  3.1.0 (OK)
IPython >=8.13.0,<9.0.0,!=8.17.1 :  8.29.0 (OK)
jedi >=0.17.2,<0.20.0            :  0.19.1 (OK)
jellyfish >=0.7                  :  1.1.0 (OK)
jsonschema >=3.2.0               :  4.23.0 (OK)
keyring >=17.0.0                 :  25.5.0 (OK)
nbconvert >=4.0                  :  7.16.4 (OK)
numpydoc >=0.6.0                 :  1.8.0 (OK)
parso >=0.7.0,<0.9.0             :  0.8.4 (OK)
pexpect >=4.4.0                  :  4.9.0 (OK)
pickleshare >=0.4                :  0.7.5 (OK)
psutil >=5.3                     :  6.1.0 (OK)
pygments >=2.0                   :  2.18.0 (OK)
pylint >=3.1,<4                  :  3.3.1 (OK)
pylint_venv >=3.0.2              :  3.0.4 (OK)
pyls_spyder >=0.4.0              :  0.4.0 (OK)
pylsp >=1.12.0,<1.13.0           :  1.12.0 (OK)
pylsp_black >=2.0.0,<3.0.0       :  2.0.0 (OK)
pyuca >=1.2                      :  1.2 (OK)
qdarkstyle >=3.2.0,<3.3.0        :  3.2.3 (OK)
qstylizer >=0.2.2                :  0.2.3 (OK)
qtawesome >=1.3.1,<1.4.0         :  1.3.1 (OK)
qtconsole >=5.6.1,<5.7.0         :  5.6.1 (OK)
qtpy >=2.4.0                     :  2.4.1 (OK)
rtree >=0.9.7                    :  1.3.0 (OK)
setuptools >=49.6.0              :  75.3.0 (OK)
sphinx >=0.6.6                   :  8.1.3 (OK)
spyder_kernels >=3.0.1,<3.1.0    :  3.0.1 (OK)
superqt >=0.6.2,<1.0.0           :  0.6.7 (OK)
textdistance >=4.2.0             :  4.6.2 (OK)
three_merge >=0.1.1              :  0.1.1 (OK)
watchdog >=0.10.3                :  5.0.3 (OK)
yarl >=1.9.4                     :  1.16.0 (OK)
zmq >=24.0.0                     :  26.2.0 (OK)

# Optional:
cython >=0.21                    :  3.0.11 (OK)
matplotlib >=3.0.0               :  3.9.2 (OK)
numpy >=1.7                      :  2.1.2 (OK)
pandas >=1.1.1                   :  2.2.3 (OK)
scipy >=0.17.0                   :  1.14.1 (OK)
sympy >=0.7.3                    :  1.13.3 (OK)

I think I was able to reproduce this with a file which has spaces in its name, @ilpresidente51 does the filename that you are trying to open has spaces in its name or path? Let us know!

You are right, the problem occurs when there is a space in the file name or in its path.

I also have this issue. Can confirm it happens when the path has spaces, but the same file opens as expected when the path does not have spaces. (Apologies if this is unnecessary/redundant, I'm brand new to using Github and Spyder.)

Hey @Merlin820, thanks for the confirmation. We'll try to take a look at this issue in 6.0.4, to be released at the end of next month.

@mrclary, could you take a look at this one?

I've discovered the underlying issues is that the registry command does not quote the input argument, e.g. %1 instead of "%1". Unfortunately, this will require a fix by menuinst.

Thanks @mrclary! Do you know how to fix that in menuinst?

I've submitted conda/menuinst#290 and inquired about a possible permanent solution. However, I have also discovered a workaround and applied it in conda-forge/spyder-feedstock#212. A new build for 6.0.3 should fix the problem.

However, I have also discovered a workaround and applied it in https://github.com/conda-forge/spyder-feedstock/pull/212.

Great! Thanks for your help with that.

A new build for 6.0.3 should fix the problem.

You mean a new build of the installers? Mmhh, that would cause us to lose our current number of downloads, which I don't like too much. So, I'd prefer to leave it for 6.0.4.

A new build for 6.0.3 should fix the problem.

You mean a new build of the installers? Mmhh, that would cause us to lose our current number of downloads, which I don't like too much. So, I'd prefer to leave it for 6.0.4.

No, I mean just a new build for 6.0.3 on conda-forge. Of course this fix will not propagate to our installers until 6.0.4 is released.
Although, we could consider looking at new builds in our update manager, not just new versions?


KIE_PREFIX upgraded to 7.62.x

Thank you for submitting this pull request
JIRA: (please edit the JIRA link if it exists)
link
referenced Pull Requests: (please edit the URLs of referenced pullrequests if they exist)

referenced pull request 1
referenced pull request 2
referenced pull request 2
etc.

How to retest a PR or trigger a specific build:

* a pull request please add comment: Jenkins retest this

that change is already in https://github.com/kiegroup/kie-jenkins-scripts/pull/1146/, but not merged only


getting Match from MatchList

Hello,
I think there is a problem to getting match by matchId from API. Here is my code;
MatchList matchList = api.getRecentMatchListByAccountId(Platform.TR, accountId);
for (MatchReference matchReference : matchList.getMatches()) {
                net.rithms.riot.api.endpoints.match.dto.Match match = api.
                        getMatch(Platform.TR, matchReference.getGameId(), summonerId);
....
}

and the match object is returning null.
Does anyone have an idea about it?

Although this shouldn't be resulting in the issue you are having I will point it out anyways.
You are passing in a summonerId when the method expects an accountId.
public Match getMatch(@NotNull Platform platform,
                      long matchId,
                      long forAccountId)
              throws RiotApiException

Parameters:
platform - Platform to execute the method call against.
matchId - The ID of the match.
forAccountId - If provided, used to identify the participant to be unobfuscated.

As for receiving a null match - can you please provide the library version number you are currently using, and the summoner? I am unable to replicate this issue.

Hi @acmahalkasi,
Unfortunately, your issue cannot be reproduced and we have not received any of the additional information regarding this from you.
This issue will now be closed. Feel free to reopen it if you find yourself still running into any troubles regarding your problem.
Thanks.


Adding custom placeholder text on inputs

Is there any way I can add custom placeholder texts on specific inputs of a form?

you can either do it as a default "value" set on the field or with some custom css and js

A default value is not really a solution because it gets saved. A placeholder does not. Couldn't this be added as an optional parameter in the array?


USHIFT-1083: Make a backup if previous boot was green

PTAL
/cc @pacevedom @dhellmann @ggiguash

This looks good. I have some comments about structure, but I think we could take this and iterate on it. I'll leave it open to give some of the rest of the team time to look at it.

Are we doing a pre merge testing for this one? @jogeo ?


Replace with Go

We Launchable think it's not time to move to Go.

We Launchable think it's not time to move to Go.


backend: Add optional tick_timeout argument to exchange functions

Can you bump the required speculos version?

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

Project coverage is 80.17%. Comparing base (e712ae2) to head (6db50d5).

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #167   +/-   ##
=======================================
  Coverage   80.17%   80.17%
=======================================
  Files          34       34
  Lines        1695     1695
=======================================
  Hits         1359     1359
  Misses        336      336

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


text classification error

i followed your codes to write a ten class textclassification and failed (output predictions are the same) , logits seems to be equal correspondingly. i dont konw why ,and ask for helps, thank you
my model is just that simple:
lbert(tokens)
dense(10)
but after i forze bert layers , and add some additional layers like lstm , it worked,well , accuracy is still under my expectation..
SORRY!
its my mistacks!
i wrote a wrong sequnces padder and a wrong tokenizer....
emmmmmmmmmmmmm

sequence classification with BERT should work well enough without an LSTM. As an example check https://github.com/kpe/bert-for-tf2/blob/master/examples/tpu_movie_reviews.ipynb


Drop support for legacy python

Fixes https://github.com/danpalmer/django-devdata/issues/6
This ends up updating both the linting tools and poetry used in CI to fix some compile issues that CI was seeing. I'm not sure why those issues were only appearing, but I confirmed via #10 that they weren't caused by the dependency change.
They're bundled here as they end up depending on the dependency change in order for poetry to successfully update the linting tools.

#9

Well that'll teach me to review in chronological order.
Merging now.


Issue #500. When downloading batch id length is 1, do a direct ES que…

…ry for that granule id to save resources

Will be implementing a different, more complete, solution on a different branch. Ignore this pull request and branch for now.


Dependency Confusion in RS SFTP Ingestion Dockerfile

DevEx/OpEx
Fortify is warning about our Dockerfile using apt to install dependencies.  We are not specifying version numbers and it wants us to specify them.  We should only do this if Renovate will recognize these and keep the versions up-to-date.  Else, the likelihood of something bad happening is higher for out-of-date dependencies than not pinning the version.
Tasks

[x] Figure out if Renovate can keep the apt dependencies up-to-date. - @halprin
[x] Mark the Fortify finding as something if we aren't going with the recommendation.

Additional Context
Category: Dockerfile Misconfiguration: Dependency Confusion
Primary Location: Dockerfile: 7

Upon transitioning to Alpine Linux for the runner, we started using apk, Alpine's package manager, to install the dependency directly in the runner Docker image.  Previously, we were installing the dependency using apt, Debian's package manager, because we were installing the dependency in the builder Docker image and then moving it to the runner's scratch Docker image.  This seems to have removed the finding from Fortify.  Regardless, we decided that pinning Alpine package dependencies is a bad idea because...

It would require adding some complex logic to the renovate.json file for RenovateBot to support.
Alpine Linux doesn't maintain previous versions of dependencies in its package manager and suggests we do not pin dependencies.

https://superuser.com/a/1058665
https://gitlab.alpinelinux.org/alpine/abuild/-/issues/9996#note_87135


Feature rule update flows

filesystem monitoring, github hook

:tada: This issue has been resolved in version 2.3.0 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


fetch allTransactions globally, fix default collective.isActive

Coverage decreased (-0.009%) to 74.861% when pulling<PHONE_NUMBER>cc2a39c5d6aa655cc664bf37d6ed58 on fixes into 9f63398f619c81c1e59336da5b44bf576475cd06 on master.


NPE when using main method

I have an NPE

When I use the main method (take note of the redundant null checking on args to make sure)

My Gradle config

When Im not using the main method... it works fine.

You cannot use a main method with FXLauncher, you must simply point it to your application class that extends javafx.application.Application and it will do the rest, including passing any parameters if the app was started with any.
The NPE is not coming from your app class, but from the Launcher class of FXLauncher. It is telling of that the app instance couldn't be created, most likely because the class you pointed it to is either missing or it's missing a default constructor.
As the error message hints to, there is more information in the log file. I suspect you will find an error starting with "Error creating app class" there.
If this doesn't help you to resolve the issue, please post a minimal example showing the error.

I finally understand it ... thanks... this issue is now closed

Great! Can you share what the problem was? :)

I did not completely understand fxlauncher...
Im using your tornadofx framework and uses the main method in the guide. I thought fxlauncher supports tornadofx directly...

That's exactly what it does - it supports JavaFX and TornadoFX directly so it doesn't need a main method :)

Oh yes.. I mean the package level main function...
I was try to initialize a IconFontFX and i thought i could put it in the main method.
But now I was able to do it like this


iD should make more clear if it intends to do what it says or not

Usually when we click on the suggestions we see in e.g.,

iD then does the work for us.
But apparently here iD is saying we should do it ourselves.
I.e., I was expecting iD to connect the features for me.
Therefore iD should be more clear, saying instead:

Press here to Connect the features, or
Please manually Connect the features

And if indeed iD intended to do the work, but something bad happened, then iD should say that too.

OK, it turns out this is trying to say

Please manually Connect the features

As even though they are all glowing and pulsating, they need to be connected to a fifth feature...
Anyway, iD still needs to say if it is

Asking for the user to push a button to allow iD to go ahead and do something, or
Suggesting the user should do something themselves.


[Compiler plugin] silently abort interpretation in case of invariant errors

We should probably create a "compiler plugin" label as well :)


Quickstart with Cloud Console

Change the pared down quickstart from ccloud-only to console-only due to multiple bugs coming up with ccloud in the past weeks
Related bug: https://cockroachlabs.atlassian.net/browse/CC-9799

@lnhsingh I feel like this actually might better than ccloud long-term... I guess because the UI is more primary/robust than a command line tool by nature.

This LGTM. Agree- UI is probably best for now, until ccloud reaches parity (at least). Plus then the user can get acquainted with the UI, especially if this is the first time they're experiencing CRDB.


[BUG] Segmentation fault with Walrus-Operator and same named variables

Describe the bug
There is a Segmentation Fault in the attached example (simplified from actually failing production code).
Requirement for failure:

Usage of Walrus Operator in an if statement.
First If Statement does not fully evaluate
Second If Statement uses same variable name in assignment operator.

Segmentation fault occurs because Variable gets dereferenced in the second If-condition without having a value assigned.
The assignment doesn't happen because first If-condition doesn't get fully evaluated.
Code to reproduce the behaviour:

def problem_function():
    d = False
    a = []
    if d and (q := a):
        pass

    if q := a:
        pass

Expected behaviour
No Segmentation Fault in Cythonized code
OS
Linux
Python version
3.11.8
Cython version
latest master
Additional context
No response

Thanks - in the short term I suspect the better solution is to treat assignment expressions as "maybe assignments" rather than "definite assignments". There's quite a few variations of cases like this where it isn't clear if they're actually run and which our flow control doesn't currently cover so working it out comprehensively is likely hard.
That'll de-optimize assignment expressions slightly but I think that's OK.

walrus define variable after or  operate, make gunicorn crash: [ERROR] Worker (pid:9467) was sent code 139!
def func(cell: dict):
    if (flag := True) or ((text := cell.get("text")) and text.isdigit()):
        return True
    text = cell.get("text") or cell.get("value")
    return text

Expected: raise some error at lease


request for new Hackage release

Can we make a new Hackage release with the new template-haskell upper bound?
https://github.com/linear-generics/linear-generics/commit/6434ca1070e3e5e31981072dd9ecbfdc03bc0ff5
https://hackage.haskell.org/package/linear-generics
Thank you

Yes, totally. If I haven't done it by Tuesday, please ping me again.

All done! linear-generics-0.2.1 is on Hackage. Please test!

thanks, I'll test it later

Unfortunately, the recent release is already outdated; I guess a new release (or potentially a revision) is needed for GHC 9.6.1:

#19

@andreasabel Your request for a new release has been granted—it is now on Hackage. I don't know if I'll go to the trouble of validating a Hackage revision for the previous version; probably not.


Seraph branch

Have you read the Contributing Guidelines on Pull Requests?
Yes 👍🏽
Description
(Write your answer here.)

Fixed Broken link.  Change the link to feature-request---.md

Checklist

[x] I've read the contribution guidelines.
[x] I've checked the issue list before deciding what to submit.
[x] I've edited the README.md and link to my code.

Related Issues or Pull Requests
#72

Thankyou @seraph776 🚀


Not detecting Protocol::ACME

ran the install.sh, didnt find Protocol::ACME installed, tried to install it and failed.
installed it manually via the provided command - /scripts/perlinstaller Protocol::ACME
this ran through and installed it with no problems, but the install.sh still can't find it.
Protocol::ACME is NOT installed
Installing Protocol::ACME
.....
.....
Testing  perl modules we just installed`
.....
Protocol::ACME is NOT installed
.....
There was an error verifying  required perl modules are installed.
The following perl modules could not be installed:
Protocol::ACME
You can try installing these modules by running
/scripts/perlinstaller <module_name>
for each module name listed above.

woops, dupe of https://github.com/Prajithp/letsencrypt-cpanel/issues/58

Please install the module using  command "/scripts/perlinstaller   Protocol::ACME" and let me know

As I said in my original post I ALREADY TRIED THAT.

@Kateicon
And as @Prajithp said in his post "please" and "let me know".
Other things you can try:

including a copy of your logs pertinent to this issue
ensuring that what the script is looking for is, in fact, in your "path"
closing your terminal window, and re-opening it (essentially re-sourcing your path variables after install)
contributing to development (it's open source, after all)

No need to be rude in your responses. Please remember that this plugin is free, and you haven't paid anything for it. He's put a great deal of effort into this solution where others have not. If it's not what you're looking for, you're welcome to look elsewhere.

You catch more flies with honey than you do with vinegar.

I did let him know, in my original post.


⚠ MIGRASI has degraded performance

In feaea4b, MIGRASI (https://migrasi.unmer.ac.id/) experienced degraded performance:

HTTP code: 200
Response time: 6428 ms

Resolved: MIGRASI performance has improved in 34dfbf2.


Add scrape's arrow function ability to the documentation

Adding documentation to coincide with https://github.com/medialab/artoo/pull/273
The travis build is failing for me, however.
No Rakefile found (looking for: rakefile, Rakefile, rakefile.rb, Rakefile.rb)
/home/travis/.rvm/gems/ruby-2.4.1@global/gems/rake-12.0.0/exe/rake:27:in `<top (required)>'
/home/travis/.rvm/gems/ruby-2.4.1/bin/ruby_executable_hooks:15:in `eval'
/home/travis/.rvm/gems/ruby-2.4.1/bin/ruby_executable_hooks:15:in `<main>'
(See full trace by running task with --trace)
The command "rake" exited with 1.

Thanks @jbryson3. Merging right now.


Cannot import graph_def for 8-bit Quantized cnn model

Following steps I did:

Train a CNN model on MNIST using tensorflow tutorials(Deep MNIST for Experts)(CONV+CONV+FC). Saved this model as binary protobuf(.pb).
Using 8-bit Quantization api, converted previously saved model to 8-bit model as binary proto(.pb).
Read 8-bit binary-proto to tensorflow, by first creating graph_def and importing graph def to tf.Session()

with sess.as_default() :
   with tf.Graph().as_default():
       graph_def = tf.GraphDef()
             with open(input_file_name, 'rb') as f:
                 proto_b = f.read()
                 graph_def.ParseFromString(proto_b)
                 _ = tf.import_graph_def(graph_def, name="")

However, this gives error on tf.import_graph_def as
ValueError: graph_def is invalid at node u'concat_eightbit_reshape_concat/values_0': Input tensor 'concat/values_0:0' Cannot convert a tensor of type int32 to an input of type float32.
What related GitHub issues or StackOverflow threads have you found by searching the web for your problem?
Environment info
Operating System: Ubuntu 16.04 + tensorflow 0.11.0rc2
Installed version of CUDA and cuDNN: No
If installed from binary pip package, provide:

A link to the pip package you installed: https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.11.0rc2-cp27-none-linux_x86_64.whl

What other attempted solutions have you tried?

I am able to correctly import quantized graph def for pre-trained inception model(.pb).
When I define Multi-layer perceptron model for MNIST, it can import quantized graph_def.
All the quantization headers are imported correctly as

from tensorflow.contrib.quantization import load_quantized_ops_so
from tensorflow.contrib.quantization.kernels import load_quantized_kernels_so
load_quantized_ops_so.Load()
load_quantized_kernels_so.Load()

Which 8-bit Quantization API is this? Could you please send me a link? Sounds like it didn't change the data type when performing the conversion.

I followed this How-to.

Andrew, could you please take a look? Thanks.
Sherry

Added @cwhipkey as well.

Can you share the file that you pass to quantize_graph ?
@petewarden as well
On Tue, Nov 8, 2016 at 6:15 PM, Sherry Moore<EMAIL_ADDRESS>wrote:

Added @cwhipkey https://github.com/cwhipkey as well.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/tensorflow/tensorflow/issues/5470#issuecomment-259318209,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AQw4wXWOO48OsYmN3heHtMDOhW_zNrQcks5q8SzTgaJpZM4Kr9Qg
.

This is binary proto before quantization.
tf_mnist_cnn_graph.pb.zip
Thanks.

@petewarden
Thanks for the info.  Yes, the problem is that it is choosing to quantize a
Concat node, but can't actually quantize its inputs.  I have a fix I will
push out.
On Thu, Nov 10, 2016 at 8:25 PM, Abhinav Dadhich<EMAIL_ADDRESS>wrote:

This is binary proto before quantization.
tf_mnist_cnn_graph.pb.zip
https://github.com/tensorflow/tensorflow/files/585009/tf_mnist_cnn_graph.pb.zip
Thanks.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/tensorflow/tensorflow/issues/5470#issuecomment-259878163,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AQw4wT6I7QxDkbxD9zxaS_6mnrhE_B68ks5q8-4hgaJpZM4Kr9Qg
.

@cwhipkey
Thank you, Please share the info after the fix.

This change was pushed as this commit:
https://github.com/tensorflow/tensorflow/commit/662533b85c66f198b779bea147397e1441f3e482
On Thu, Nov 17, 2016 at 9:23 PM, Abhinav Dadhich<EMAIL_ADDRESS>wrote:

@cwhipkey https://github.com/cwhipkey
Thank you, Please share the info after the fix.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/tensorflow/tensorflow/issues/5470#issuecomment-261451376,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AQw4wa_QZXagg-ukN_mi_L5ILvKh9VVfks5q_TZMgaJpZM4Kr9Qg
.


upstream proposal: Revise the text/template, html/template execution

This is just my notepad for a proposal to hopefully get the recent Hugo Go template patches implemented upstream in the Go stdlib.
Go's template packages (text/template, html/template) do in general work really well. But there are some issues that are hard/impossible to workaround.
In the current implementation, a Template struct is mirrored in both packages, and while there is some separation of parsing and execution to allow for concurrent execution, it is very much intermingled.
This proposal suggests adding a new "template executer" which would,

Prepare and execute the template
Store and resolve any template functions
Provide some user-defined hook interface to allow for a custom evaluation of method/func/map lookups etc.

And the benefits of the above would be:

Allows stateful functions. One example would be a i18n translation func. You could make it a method (.I18n) or make it take the language as the first argument ({{ i18n "jp" "hello" }}), neither very practical. The current workaround is to clone the template set for each language, which is both resource wasteful and hard to get right in the non-trivial setups. I assume that these functions are added early to get parse-time signature validation, a good thing, but I don't see a reason why not to use another set for execution, making the function lookup lock-free a great performance bonus.
Some examples include case insensitive map lookups, adding some execution context to methods that support it (https://github.com/golang/go/issues/31107), allow range of methods that return map/slice (https://github.com/golang/go/issues/20503)

Implementation outline
In the Hugo project we have worked around the problems outlined above, some workaround less pretty than others. But recently we stumbled into a hurdle we didn't find a way around, so we created a scripted fork of the text/template and html/template packages. We will pull in upstream fixes, and the ultimate goal is for that fork to go away.
But this means that there is a working implementation of this proposal. The implementation is a little bit coloured by trying to do the least amount of changes to the existing code, but I think it outlines a possible API.
// Executer executes a given template.
type Executer interface {
	Execute(p Preparer, wr io.Writer, data interface{}) error
}

// Preparer prepares the template before execution.
type Preparer interface {
	Prepare() (*Template, error)
}

// ExecHelper allows some custom eval hooks.
type ExecHelper interface {
	GetFunc(tmpl Preparer, name string) (reflect.Value, bool)
	GetMethod(tmpl Preparer, receiver reflect.Value, name string) (method reflect.Value, firstArg reflect.Value)
	GetMapValue(tmpl Preparer, receiver, key reflect.Value) (reflect.Value, bool)
	IsTrue(val reflect.Value) bool
}

Some related Go issues

Add ExecuteContext methods https://github.com/golang/go/issues/31107
Document ability to modify FuncMap after template parse by calling Funcs again https://github.com/golang/go/issues/34680
Allow callers to override IsTrue https://github.com/golang/go/issues/28391
Methods vs funcs discrepancy  https://github.com/golang/go/issues/20503
index should return nil instead of index out of range error https://github.com/golang/go/issues/14751

It would be helpful to point to the fork[1] and the script[2] that creates it.  When evaluating the fork, it would be helpful to know that this proposal is implemented in the hugo_*.go files.
1: https://github.com/gohugoio/hugo/tree/master/tpl/internal/go_templates
2: https://github.com/gohugoio/hugo/tree/master/scripts/fork_go_templates

@moorereason I think I'm done. Comments welcome. If you have major copy-edits you want to do I can find another place to put it (I assume you don't have permission to edit my post...?).

I can edit and did your post. :smiley:  Fixed a small formatting issue.
LGTM 👍

See https://github.com/golang/go/issues/36462


Nested dictionnary

[EDITED]
Here is the nested dictionnary :

public abstract class NestedDictionnary<T, K> : ScriptableObject where T : System.Enum where K : System.Enum
{
    public SerializableDictionary<T, NestedDictionnaryEntry> holder;

    public class NestedDictionnaryEntry{
        /// <summary>
        /// Names of leaderboards for each difficulty for that game mode
        /// </summary>
        public SerializableDictionary<K, string> entry;
    }
}

I have the following implement :
public class LeaderBoard : NestedDictionnary<GameMode, Difficulty> {}

but now i have the following error when adding a new element to the holder :
NullReferenceException: Object reference not set to an instance of an object
ProjectTools.SerializableDictionaryDrawer.IsSingleLine (UnityEditor.SerializedProperty prop) (at Assets/Plugins/SerializableDictionary/SerializableDictionaryDrawer.cs:344)
ProjectTools.SerializableDictionaryDrawer.<DrawListElement>g__DrawRects|3_1 (ProjectTools.SerializableDictionaryDrawer+<>c__DisplayClass3_0& ) (at Assets/Plugins/SerializableDictionary/SerializableDictionaryDrawer.cs:227)
ProjectTools.SerializableDictionaryDrawer.DrawListElement (UnityEngine.Rect rect, System.Int32 index, System.Boolean isActive, System.Boolean isFocused) (at Assets/Plugins/SerializableDictionary/SerializableDictionaryDrawer.cs:316)
UnityEditorInternal.ReorderableList.DoListElements (UnityEngine.Rect listRect, UnityEngine.Rect visibleRect) (at <5092d70d16a64dd9a555dd50f38aead0>:0)
UnityEditorInternal.ReorderableList.DoList (UnityEngine.Rect rect, UnityEngine.Rect visibleRect) (at <5092d70d16a64dd9a555dd50f38aead0>:0)
UnityEditorInternal.ReorderableList.DoList (UnityEngine.Rect rect) (at <5092d70d16a64dd9a555dd50f38aead0>:0)
ProjectTools.SerializableDictionaryDrawer.<OnGUI>g__List|0_1 (ProjectTools.SerializableDictionaryDrawer+<>c__DisplayClass0_0& ) (at Assets/Plugins/SerializableDictionary/SerializableDictionaryDrawer.cs:144)
ProjectTools.SerializableDictionaryDrawer.OnGUI (UnityEngine.Rect rect, UnityEditor.SerializedProperty prop, UnityEngine.GUIContent label) (at Assets/Plugins/SerializableDictionary/SerializableDictionaryDrawer.cs:150)
UnityEditor.PropertyDrawer.OnGUISafe (UnityEngine.Rect position, UnityEditor.SerializedProperty property, UnityEngine.GUIContent label) (at <5092d70d16a64dd9a555dd50f38aead0>:0)
UnityEditor.PropertyHandler.OnGUI (UnityEngine.Rect position, UnityEditor.SerializedProperty property, UnityEngine.GUIContent label, System.Boolean includeChildren, UnityEngine.Rect visibleArea) (at <5092d70d16a64dd9a555dd50f38aead0>:0)
UnityEditor.GenericInspector.OnOptimizedInspectorGUI (UnityEngine.Rect contentRect) (at <5092d70d16a64dd9a555dd50f38aead0>:0)
UnityEditor.UIElements.InspectorElement+<>c__DisplayClass59_0.<CreateIMGUIInspectorFromEditor>b__0 () (at <963b7b516af945bcb7d30875c64e2e07>:0)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&)

Wait its using UnityEngine.Rendering, I don't know why, I'll look at it

Well, still have an issue, but another error :
Here is the nested dictionnary :

public abstract class NestedDictionnary<T, K> : ScriptableObject where T : System.Enum where K : System.Enum
{
    public SerializableDictionary<T, NestedDictionnaryEntry> holder;

    public class NestedDictionnaryEntry{
        /// <summary>
        /// Names of leaderboards for each difficulty for that game mode
        /// </summary>
        public SerializableDictionary<K, string> entry;
    }
}

I have the following implement :
public class LeaderBoard : NestedDictionnary<GameMode, Difficulty> {}

but now i have the following error when adding a new element to the holder :
NullReferenceException: Object reference not set to an instance of an object
ProjectTools.SerializableDictionaryDrawer.IsSingleLine (UnityEditor.SerializedProperty prop) (at Assets/Plugins/SerializableDictionary/SerializableDictionaryDrawer.cs:344)
ProjectTools.SerializableDictionaryDrawer.<DrawListElement>g__DrawRects|3_1 (ProjectTools.SerializableDictionaryDrawer+<>c__DisplayClass3_0& ) (at Assets/Plugins/SerializableDictionary/SerializableDictionaryDrawer.cs:227)
ProjectTools.SerializableDictionaryDrawer.DrawListElement (UnityEngine.Rect rect, System.Int32 index, System.Boolean isActive, System.Boolean isFocused) (at Assets/Plugins/SerializableDictionary/SerializableDictionaryDrawer.cs:316)
UnityEditorInternal.ReorderableList.DoListElements (UnityEngine.Rect listRect, UnityEngine.Rect visibleRect) (at <5092d70d16a64dd9a555dd50f38aead0>:0)
UnityEditorInternal.ReorderableList.DoList (UnityEngine.Rect rect, UnityEngine.Rect visibleRect) (at <5092d70d16a64dd9a555dd50f38aead0>:0)
UnityEditorInternal.ReorderableList.DoList (UnityEngine.Rect rect) (at <5092d70d16a64dd9a555dd50f38aead0>:0)
ProjectTools.SerializableDictionaryDrawer.<OnGUI>g__List|0_1 (ProjectTools.SerializableDictionaryDrawer+<>c__DisplayClass0_0& ) (at Assets/Plugins/SerializableDictionary/SerializableDictionaryDrawer.cs:144)
ProjectTools.SerializableDictionaryDrawer.OnGUI (UnityEngine.Rect rect, UnityEditor.SerializedProperty prop, UnityEngine.GUIContent label) (at Assets/Plugins/SerializableDictionary/SerializableDictionaryDrawer.cs:150)
UnityEditor.PropertyDrawer.OnGUISafe (UnityEngine.Rect position, UnityEditor.SerializedProperty property, UnityEngine.GUIContent label) (at <5092d70d16a64dd9a555dd50f38aead0>:0)
UnityEditor.PropertyHandler.OnGUI (UnityEngine.Rect position, UnityEditor.SerializedProperty property, UnityEngine.GUIContent label, System.Boolean includeChildren, UnityEngine.Rect visibleArea) (at <5092d70d16a64dd9a555dd50f38aead0>:0)
UnityEditor.GenericInspector.OnOptimizedInspectorGUI (UnityEngine.Rect contentRect) (at <5092d70d16a64dd9a555dd50f38aead0>:0)
UnityEditor.UIElements.InspectorElement+<>c__DisplayClass59_0.<CreateIMGUIInspectorFromEditor>b__0 () (at <963b7b516af945bcb7d30875c64e2e07>:0)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&)

I had the same error when I tried to use structs with the serializableDictionnary

Yeah the error reason is that class not serialized
[Serializable]
public class NestedDictionnaryEntry<K> where K : System.Enum
{
    /// <summary>
    /// Names of leaderboards for each difficulty for that game mode
    /// </summary>
    public SerializableDictionary<K, string> entry;
}

But it not going to work because nested dict will not be duplicated on creation of new instance so its plugin problem the only think i can provide is use manually nested dict
 public SerializableDictionary<string, SerializableDictionary<string, int>> nestedDict;

This will work

Okay thanks

Oh, when using the nested class/struct (instead of public SerializableDictionary<string, SerializableDictionary<string, int>> nestedDict;)
if i add a key for the holder, it dupplicate the data and will cause issue with the nested dictionnary that will be the same object and when one is changed the other will be too...

Yeah if its work for you that's good news!