Pantheon not working

Issue description
I've tried several times in the past to get pantheon working, to no avail.
Until this morning, I booted to a very old generation and was pleasantly surprised with a working installation of Pantheon. Once I rebooted, booting into the same generation, it no longer worked.
Every time I've attempted to boot Pantheon, except for that one time this morning, I am greeted by a black/light-gray screen, a cursor, and nothing else.
I've shrunk down my config to the smallest I could reasonably make it, and the problem has not gone away. I don't have any other hardware to test this on.
Steps to reproduce

sudo nixos-rebuild boot using my configuration.nix
Boot into generation
Enter password into login manager
Say hello to a black/gray screen, cursor, and nothing else.

Technical details

system: "x86_64-linux"
host os: Linux 4.14.105, NixOS, 19.03.git.72ad05b (Koi)
multi-user?: yes
sandbox: yes
version: nix-env (Nix) 2.2
channels(ajanse): "nixos-19.03beta171547.72ad05bfc06"
channels(root): "nixos-19.03beta171547.72ad05bfc06"
nixpkgs: /nix/var/nix/profiles/per-user/root/channels/nixos

configuration.nix
/var/log/lightdm/seat0-greeter.log

Weird, the seat0-greeter.log says we're starting an old session plasma5
https://gist.github.com/aaronduino/9a446ce47d0ba5b6e7024b514c43b649#file-seat0-greeter-log-L26
I think there's a bug in the greeter, and unfortunately we won't be able to fix it because of their recent rewrite on master.
Running the following in a tty
dbus-send --system --type=method_call --print-reply --dest=org.freedesktop.Accounts /org/freedesktop/Accounts/User$UID org.freedesktop.Accounts.User.SetXSession string:

and then running sudo systemctl restart display-manager.service might fix it for you.

I did as you instructed. After logging in, I was greeted with a light grey screen with cursor instead of a black screen with cursor.
/var/log/lightdm/seat0-greeter.log (after running your commands and logging into the latter light grey screen with cursor)

I've been able to reproduce this everytime in a vm when using pantheon's greeter.
This would be a pretty nasty problem for anyone wanting to switch to using this.
The quickest fix that I could produce was just not using their greeter
services.xserver.displayManager.lightdm.greeters.pantheon.enable = false;

Or you could do
dbus-send --system --type=method_call --print-reply --dest=org.freedesktop.Accounts /org/freedesktop/Accounts/User$UID org.freedesktop.Accounts.User.SetXSession string:pantheon

Which will force the default to pantheon.

Looks like lightdm really prefers the last used session stored in ~/.dmrc, choosing it even if it doesn't exist (and dosen't bother invalidating it either when things fails).
Remove ~/.dmrc and start up pantheon again, that should make it work (at least it ran without any problems in a VM after I cleared out an old dmrc).

Right, forgot about the .dmrc.
Even mentioned that in the op of https://github.com/NixOS/nixpkgs/pull/48637
I think maybe we could patch lightdm to forget about .dmrc?
Think fedora has one too.

Testing if using that patch does the trick now, probably should though.

Just a heads up: on my machine, I don't have a .dmrc in my home directory.
I even tried removing .gtk* and that didn't work either.

/var/log/lightdm/seat0-greeter.log
** Message: 14:11:32.256: Starting lightdm-gtk-greeter 2.0.6 (Sep 10 2018, 09:58:27)
** Message: 14:11:32.258: [Configuration] Reading file: /etc/lightdm/lightdm-gtk-greeter.conf

** (lightdm-gtk-greeter:2775): WARNING **: 14:11:32.333: [PIDs] Failed to execute command: /usr/lib/at-spi2-core/at-spi-bus-launcher

** (lightdm-gtk-greeter:2775): WARNING **: 14:11:32.334: [PIDs] Failed to execute command: upstart

Just a heads up: on my machine, I don't have a .dmrc in my home directory.
I even tried removing .gtk* and that didn't work either.

Seems that the problem with the .dmrc is just another one that came out of the fountain of issues :smile:
And one that could be most easily be produced.
@aaronduino Are you on IRC/Freenode or Matrix?
I could be more help to you there, where passing around logs like this might not
produce results in a timely matter for the both of us.

Notice to maintainers
Completely unrelated to this, but I caught it from the latest lightdm-gtk-greeter logs.
we should probably add these flags to lightdm-gtk-greeter
--disable-indicator-services-command
--disable-at-spi-command

or instead of --disable-at-spi-command
 --enable-at-spi-command=${at-spi2-core}/libexec/at-spi-bus-launcher

But that would change the current behavior to actually starting it, and maybe it shouldn't.

Is not starting the accessibility bus necessary to allow accessibility functions in the greeter? I would consider the unavailability of a11y bus to be a bug.

Is not starting the accessibility bus necessary to allow accessibility functions in the greeter? I would consider the unavailability of a11y bus to be a bug.

I can enable the Large Font and High Contrast features in that greeter.
Are their other one's for that greeter?

@worldofpeace my matrix account is @aaronduino:matrix.org

Ok found out there was an .xsession script so it took precedence and failed in a particularly interesting appearance.
So it seems a lot of our users like a lightweight windowmanager, (i3 in this case) and DE.
Also noticed that  org.freedesktop.Accounts.User.Session was == plasma5 from a last session?
Don't know about that, but not using an .xsesison script fixed this, so I think it's safe to close.

I just updated to 19.03 and tried to set up both pantheon.elementary-greeter and lightdm-enso-os-greeter. It keeps freezing whenever they load up. I deleted .dmrc and made sure to not have any .xsession scripts or any startup scripts other than whatever i3 does. I am using i3, if that is relevant.

I've disabled pantheon's greeter because it's problematic when switching desktopManagers

https://github.com/NixOS/nixpkgs/commit/9fa96de60990a99757a1d14cdf75e131e0c2b649
https://github.com/NixOS/nixpkgs/commit/c7de6984f5c35e135dae6f8602cfd5b8c5d17702
https://nixos.org/nixos/manual/release-notes.html#note

Do you have those commits, and have you tried just using the default gtk lightdm greeter?
Beyond that I can't help much more without logs.

Heads up I've never been able to get Pantheon to work with i3.
If it's not expected to work, maybe there should a nix assertion that says so?
-------- Original Message --------
On Apr 15, 2019, 12:31, worldofpeace wrote:

I've disabled pantheon's greeter because it's problematic when switching desktopManagers

9fa96de
c7de698
https://nixos.org/nixos/manual/release-notes.html#note

Do you have those commits, and have you tried just using the default gtk lightdm greeter?
Beyond that I can't help much more without logs.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.

Yeah there's no configuration for i3+pantheon.
Someone could do gnome-flashback and i3. but we can't use it without gnome-shell yet #54415

If it's not expected to work, maybe there should a nix assertion that says so?

I don't think there's anything to assert on. If someone enables pantheon and also i3 windowmanager
they could start either session interchangeably. Wasn't made to intersect.
Though it seems a lot of nixos users want things like https://github.com/NixOS/nixpkgs/blob/2fcb11a2442b27834db87b2f62511037c31b5e36/pkgs/desktops/gnome-3/misc/gnome-flashback/default.nix so maybe we should make that generic to make any gnome-session.

Do you have those commits
No idea, I'm on the 19.03 channel with nonlocal nixpkgs
have you tried just using the default gtk lightdm greeter?
That's what I'm using currently, I wanted to try out something that looked a bit nicer, but gtk works fine.


Part of CodeMirror disappears temporarily

I've been reproducing again and again a weird bug, in Chrome, since the release 32.0.1700.102 (it really seems related IMO). Is anyone else facing similar issues? If so, we could open a Chrome issue, but I would like first to see if other people (not using Firepad ?) are facing the same kind of issues.
It happens but gets back to normal if you type again something, or scroll.

This issue is prominent in Postman, although they are using a very(!) old version of CodeMirror, i.e., v2.38. Does anyone know if this issue was ever identified and resolved? If so, could you please point me to the commit or version in which it was dixed? Thanks!

This issue is prominent in Postman, although they are using a very(!) old version of CodeMirror, i.e., v2.38. Does anyone know if this issue was ever identified and resolved? If so, could you please point me to the commit or version in which it was fixed? Thanks!

@prdonahue Definitely try upgrading. The display update mechanism has been rewritten in the meantime.


a dropdown on Bottomsheet is not rebuild

Hi,
I was created a dropdown on bottomsheet use get with getcontroller & getbuilder, but when I selected dropdownitem, the value was changed but the dropdown was not rebuilded. but when I used that dropdown on the page, everything just work fine. is it a bug?
thank you

Flutter does not reconstruct all children of a widget, so you have two options:
1- Use dropdown outside the modal.
2- Encapsulate the widget you want to be changed, and not the modal by a GetBuilder.
To find out if it is a bug or not is simple. insert a print in your GetBuilder and see if it is being called. If it was called, it is not a bug, if it was not called, there would be a bug.
GetBuilder<Controller>(
builder:(_){
print("GetBuilder rebuild");


Redesign the Instruction class

Proposal for the in-memory handling of instructions
Explanation
In the redesign of the Instruction class, we want to make sure that a single instruction contains all of the information needed to do the most common tasks so that they can be accomplished by a call to a member function that does the task.  The tasks we are considering right now are:

Inserting a new instruction next to (before or after) the given instruction.
Deleting the instruction.
Replacing one instruction by one or more instructions.
Looking at an instruction's inputs and their defining instructions (use-def chains).

Similar for an instruction's value-type: the instruction defining the type of the result value, if one exists.

Make sure we can access anything that modifies the behaviour of the instruction. (Decorations)

The other consideration is that there are other data structures that need to be kept up to date while doing these operations:

The use-def chains should be kept in tack.
We have to be able to quickly recover the binary format for the instructions.

At the same time, the developer will have certain responsibilities as well:

When an instruction is inserted, the new instruction is (eventually) part of a well-formed basic block.
If an instruction is deleted, there are no uses of that instruction's results remaining.

Description of Changes

We will introduce a new class "InstructionList".

This will be a doubly-linked list of Instructions.
The links will be embedded in the Instruction class.

The module will keep an unordered map of result_ids to Instruction*

It will be the responsibility of the Instruction, and InstructionList to keep their owning module's map up to date.  The users of these classes should not have to worry about this.
This ensures that the use-def chains are always available and accurate.

The following data structure will be turned into IntructionList.

std::vector<std::unique_ptr> capabilities_;
std::vector<std::unique_ptr> extensions_;
std::vector<std::unique_ptr> ext_inst_imports_;
// A module only has one memory model instruction.
std::unique_ptr memory_model_;
std::vector<std::unique_ptr> entry_points_;
std::vector<std::unique_ptr> execution_modes_;
std::vector<std::unique_ptr> debugs_;
std::vector<std::unique_ptr> annotations_;
// Type declarations, constants, and global variable declarations.
std::vector<std::unique_ptr> types_values_;

The Function's member params_ member changed to an InstructionList.
Operands will not be changed at this time.
Ownership

A module will own

The InstructionList (and the instructions they contain) for the header.
All Function instances are owned by a module.

A function owns

The basic blocks contained in the function.

An Instruction owns

Its operands.

The following will be added to the Instruction class

The Instruction* for the previous and next instruction in its InstructionList.

Note that these links do not cross basic block boundaries because each basic block is a different InstructionList.

A pointer to its owning module.
A pointer to the InstructionList that it is a part of or nullptr if it is not part of one.
Functions to insert an instruction before and after a given instruction.

This function will refuse to link in new OpLabel and OpFunction instructions.  Creating new basic blocks and functions must be done through the functions or module classes.

This helps ensure the internal data structures are kept accurate and the code is well formed.
This will be enforced through asserts.

A function to replace one instruction by another.

This involves deleting the old instruction.
Linking the new instruction in the location of the old instruction.
Have the new instruction use the same result id of the old instruction.

This make it easy to rewrite an instruction without having to change all of the uses of the result id.

Again OpLabel and OpFunction will be treated special.

A Remove function

This function will update all necessary data structures and free the memory associated with it.
It should automatically remove all annotations associated with the result id, but other uses are left to the user of the class to deal with.
This function will refuse to remove OpLabel and OpFunction instructions.

If you want to remove an OpLabel you will have to remove the entire basic block at the same time.  To make it obvious that this is what has to happen you will have to ask a function to delete the basic block.
Similarly for OpFunction.
Also enforced through asserts.

To implement this task we should split it into the follow stages:

[ ] Implement the InstructionList class, and create unit test for it.
[ ] Change the vectors of instructions to InstructionLists, adding functionality to InstructionList as needed.
[ ] Add the resultId-to-instruction map to the Module, and make sure that operations on instructions keep it up to date.
[ ] Implement and test the "Replace" function in the Instruction class

A followup issue should be opened to rewrite the DefUseManager.  In particular we will need to

[ ] Go through code that uses the current DefUseManager and rewrite that code to use the new infrastructure.
[ ] Simplify the interface to the DefUseManager

Wrote the base for the InstructionList class in https://github.com/KhronosGroup/SPIRV-Tools/pull/866

The next step is to write the InstructionList class and use it in the basic block class: https://github.com/KhronosGroup/SPIRV-Tools/pull/879.

Closed off https://github.com/KhronosGroup/SPIRV-Tools/pull/915, which was part of this issue.

The next step is to create an IRContext to hold information build on top of the module (https://github.com/KhronosGroup/SPIRV-Tools/issues/608), then I can come back to this to finish up the remaining items.

I've done the main things in this issue.  I've pick up other work for now.

Everything that was suppose to be part of this issue is done.


[Feature Request] GLTF Format Support

Hi,
I know Viro core does not support GLTF format but is there any way to use viro's OpenGl ES render. I will take care of parsing GLTF and want to use Viro's renderer to render 3D model.

Hi @nishantdande, you can load any model that is in our gzipped VRX format. VRX is a protobuf format; I've attached the specification here. If you manage to convert GLTF into VRX (you'll have to use protoc to generate the files needed to create the protobuf), then you just have to gzip the resultant VRX file and load it into your application using Object3D.loadModel(), setting the Type to FBX.
We're planning glTF support for a future release.

Static GLTF models are now supported in v2.7 -> See release notes and upgrade instructions here -> https://docs.viromedia.com/docs/releases
GLTF w/ animations coming soon :)

Are there any updates on when there will be GLTF support for animations and baked in cameras?

Skeletal animations for GLTF was added in ViroReact 2.8.1
We do not have a timeframe for baked in camera. It is on our backlog but has not been requested until now. Can you give us more details on how you would utilize the feature so we can prioritize accordingly?

Nice with the animations implementation. I didn't see that in the documentation.
How do GLTF stack up against VRX then? Do they have the same features at the moment?
I need an animation that looks like you "dig in the ground".
After many talks with my motion designers, we have come to the conclusion, that we need a camera pointing at the location of the animation object, so we can use the feed of the camera as the texture for the animation object.
The effect of "digging in the ground" can e.g. be seen in this app: https://itunes.apple.com/us/app/arrrrrgh/id1299548311?mt=8.
If you think there are any other ways to achieve the effect with ViroReact than with GLTF baked in camera, I would be thrilled to hear from you.


Why there is no cursor?

It's very confusing to users not to see a cursor to indicate where they are writing.
I myself tapped on the edit text many times waiting for a cursor to show so I can start typing.
Is it possible to add one?

Hi, currently it is not supported because most of the Pin Field UI doesn't involve a cursor. The Pin Field will highlight (you can set this using highlight color) once it is focused and will dim down when it is not focused.
I will take this as a request, work on it, and release a new version.
Since the weekend is over here, I'll work on this request next weekend.
Thank you for the support!

Hi,
I have completed your requests for the cursor. Please use the latest version
implementation 'com.poovam:pin-edittext-field:1.0.5'
Find the samples below


[Feature] Media player control for racing bar

Description
Currently, our racing bar chart only has a replay button, we want to add more media player control on repo activity racing bar:

The basic control should include Pause, Play/resume, Previous, Next besides Replay.
Click on Pause/Play control should be able to Pause/resume the racing bar.
Click on Previous/Next controls should be able to jump to the previous/next month of current month.
Can go to a specific position.

And: the chart should display the bars of the latest rather earliest month before it starts to play.

I briefly installed and experienced Hypercrx. For the Contributor Activity Racing Bar, it starts playing from the earliest time. For some projects created earlier, if users want to observe the evolution of contributor activity from a specific month, they have to wait for the chart to play until it reaches this specific time point. Do you think it is feasible to allow users to choose a specific time to start playing?

Hello @2000wyt, I'm sure the idea is feasible :)

I briefly installed and experienced Hypercrx. For the Contributor Activity Racing Bar, it starts playing from the earliest time. For some projects created earlier, if users want to observe the evolution of contributor activity from a specific month, they have to wait for the chart to play until it reaches this specific time point. Do you think it is feasible to allow users to choose a specific time to start playing?

Good idea! I will add this to the description of issue.

/self-assign


integrations: Separate issue labeled events in GitHub Integration.

This PR now allows the end user to choose whether they want to include the issue labeled and unlabeled events or want to exclude them. It achieves this by creating a separate event named issue_labeled_or_unlabeled. This can be used to exclude or include the events. Also, the PR improves the notification that is sent during those events.
The issue also mentions ignoring the same for PRs as well. But the PR labeled and unlabeled events are already ignored by the integration. The following allows it to do that:
https://github.com/zulip/zulip/blob/dc158b18f253e3854a89fab9385407a8d391dac9/zerver/webhooks/github/view.py#L744-L750
Fixes #25789.

Self-review checklist

[x] Self-reviewed the changes for clarity and maintainability
(variable names, code reuse, readability, etc.).

Communicate decisions, questions, and potential concerns.

[ ] Explains differences from previous plans (e.g., issue description).
[ ] Highlights technical choices and bugs encountered.
[ ] Calls out remaining decisions and concerns.
[ ] Automated tests verify logic where appropriate.

Individual commits are ready for review (see commit discipline).

[x] Each commit is a coherent idea.
[x] Commit message(s) explain reasoning and motivation for changes.

Completed manual review and testing of the following:

[ ] Visual appearance of the changes.
[ ] Responsiveness and internationalization.
[ ] Strings and tooltips.
[ ] End-to-end functionality of buttons, interactions and flows.
[ ] Corner cases, error conditions, and easily imagined bugs.

@zulipbot add "mentor review"

@zulipbot add "buddy review" "mentor review"

@zulipbot add "mentor review"

@punchagan Can you review this one whenever possible?

I find it a little weird that the header_event is issues (plural), while it is pull_request for PRs. But, the docs do seem to confirm that. This change looks good to me. Thanks @sbansal1999 !

Thanks for reviewing my work. :heart:
Yeah, actually it is very weird that the plural of the word issue is being used as a header event. I think it might be to align with the URL format they use for an issue.
Eg: https://github.com/zulip/zulip/issues/25847

@timabbott Thanks for reviewing my work. :heart:
I have made the wording change to the notification as suggested.
Now it's like:

sbansal1999 added the bug label to Issue #9 idk man.
sbansal1999 removed the bug label from Issue #9 idk man.

I have made the requested changes in the PR and I think it's ready for review.
Changes made:

Fixed a typo in the template name.
Reordered the templates to match the order of other templates.

Merged, thanks @sbansal1999!
I think given upcoming plans to offer a nicer UI for configuring filtering of event types on the Zulip side, I think it is correct to support these even though for any high-traffic repositories they will probably be annoying; adding/removing labels can be important communication and not every repository has a lot of activity.

I think given upcoming plans to offer a nicer UI for configuring filtering of event types on the Zulip side, I think it is correct to support these

That will certainly help!
I think the biggest reason that will help is that it will give us a reasonable way to have some event types default to enabled and others default to disabled. The ideal situation for these events would be for them to be disabled by default — because I think most people will find them more annoying than helpful — but easy to enable when desired.


Persistence couchbase update with demo

Updated couchbase provider and demo example of persistence to work due to faulty setup since changes in the proto.actor.persistence api.

ping @cpx86 @rogeralsing

If possible after merge, please to a new nuget release for couchbase provider since the current one dosent seems to work.


New Check : Impose character limitation for bio.html

Proposition of new check for the catalog (warn)
A while ago with @vv-monsalve we thought about the length of the bio.html to give some instructions to designers. We settled on a maximum of 300-350 characters.
The main reasons are:

Size: When there are multiple designers, we don't want the specimen page to be super long with a lot of small text paragraphs.
Equality: Some designers want to write a novel about themselves, and some prefer 3 words. We din't want one designer to particularly stand out with a long bio. 300-350 characters looked like a good compromise.

Other reasons for limitation to something quite short:

Efficiency: People don't read long texts on the specimen page, I tend to think that the best way to make the users acknowledge one author's history, is to have a maximum a keywords in a minimum of sentences.
Workflow: It is more time-consuming to review and correct a long bio

@davelab6 can you give your opinion on this ?

After some new cases, my only concern is about the actual length.
If we take into consideration the HTML tags needed, a basic bio with only one paragraph and a couple of links (twitter + webpage) would use ~120 characters in the tags. In that case, the actual length for the designer's text would be only 230 characters, and even less.
I've asked designers for texts of 250 characters max. But once the text is formatted into HTML it gets larger.
Eg. Designer text: 240. after HTML: 379
Thus, I think we could ask designers for a max of 250 characters (even 200), but the actual length for the HTML should fail only at something like 400. And probably we should restrict the number of hyperlinks in that case. There are cases published with up to four links.
Minimum characters used would be:

Twitter |
UserWebpage

200-250 seems super short though for a bio, no? I would say max 350 characters, recommended 250 for the designer's text. So a size of 500 octets for the html, like half of the description limit could be a nice ratio?
I agree on 1 link (or 2) is enough, so we would have less outdated links.

Keeping in mind that this limit is not an absolute thing, it is more an indication to designers. I mean if they send a 380 characters bio, we shouldn't spend ages correcting it to match the size limit, the idea of this check is to be more efficient on the catalog task.

200-250 seems super short though for a bio, no?

Precisely, so it was why my concern. Anyhow the designers tend to send longer texts, so probably we could stick to 250 - 300 and yes 500 for the html.

we shouldn't spend ages correcting it to match the size limit, the idea of this check is to be more efficient on the catalog task.

Agree

Anyhow the designers tend to send longer texts

So truuuuuue


Change documentation for correct target wildcard in jwt

As shown in #3145, there is a documentation issue for the server jwt.
The documentation was using target: "*" to allow access to every services. However, it should be target: "*/*". This PR corrects the documentation.

 Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.


Northstar Single Density - Written images cause errors

Issues are missing sector sync bytes or CRC errors when reading sectors across the disk when written using v1.20 from both locally archived as well as other .nsi images.
I think the issue is the hardware is expecting fairly tight timings relative to the sector holes and if there is any garbage or timing misalignment, the controller is seeing spurious sync marks in the garbage or missing the real ones and picking one up from within the data.
As I understand it, GW is writing whole tracks relative to the initial index mark and not relative to each sector pulse start.
As it is, if the sync data byte isn't found within x8C byte times from the sector pulse, it gives up.
I think we need to find a better way to write each track and either improve the accuracy of the inter sector gaps or write the data timed to the sector holes.
Potential ideas:
a) Write each track as 10 sector come mini-tracks starting from the detecting sector zero and use each sector hole as an index to write the next sector come mini-track. The writes will then naturally align with each sector hole.
b) Modify the sector writing code to wait for a sync pulse to trigger the 96us window delay and then write the preamble,, sync, data and check bytes. No data needs to be written at the end of the sector but it's a good idea to erase the track between Sector pulse and preamble.
c) If we can't sync writes to the actual sector holes we could calibrate the rotation time by monitoring an initial couple of revolutions of the disk and keep a running average thereafter. We then use the actual rotation time to accurately calculate the inter-sector gaps and place each "soft" sector so that they will more accurately sit relative to each physical sector's index hole.
In any case, it would be a good idea to enable the erase head to sweep the disk of any previous data that could be interpreted as a sync byte before we write the preamble.
Simulating hard sector disks using a soft sector floppy - besides punching additional holes in a standard soft sector floppy, There is a virtual sector generator that synthesizes hard sector pulses on a soft sector floppy and it does the calibration trick and generates the pseudo sector pulses at the appropriate time.  https://deramp.com/vsg.html
If only kicks in if it sees index pulses every 200ms or so otherwise it passes through the hard sector pulses which arrive every 20ms or so.
N Format parameters:*
Disk contains 10 hard sectors - an index hole + 10 other holes. Hardware detects sector zero by finding an extra "early" index pulse generated by the 11th hole sitting in between two sector holes. Other pulses are detected and an internal window generator is triggered from the falling edge of the index pulse (the leading edge)
Single density:
falling edge of index L : 96us delay : 16 bytes x00 : Sync byte xFB : 256 bytes data : check byte
Check byte is a running XOR of every data byte initially seeded with zero. I don't know if the erase head is turned on early at the start of the sector pule to clean up any old preamble/sync pulses.
Double Density:
falling edge of index L : 96us delay : 32 bytes x00 : Sync byte xFB : 512 bytes data : check byte.
Disks are single sided but double density controllers can support double sided drives and tracks number side 1 0:34 (outside to inside) and side 2 35:69 (inside to out) so track 0 and 69 are on the outer edge of the floppy.
With real hardware, initiating a write cycle writes a zero to the disk when the window timer expires which is why the NDOS code only writes 15 (31) zero bytes to to the disk.
To complicate matters,  single density disk formatted on a double density controller may contain a special double length 512 byte sector at T1:S8.
More information can be found here: https://retrocmp.de/northstar-hrz/ns-hrz_p02_hs.htm
Initial boot code for single and double density controllers as well as NSDOS can be found here:
https://deramp.com/downloads/north_star/hardware/Single Density Controller/PROMs/NSBOOTV2.ASM
https://deramp.com/downloads/north_star/hardware/Double Density Controller/PROMs/NSBOOT.ASM
http://www.hartetechnologies.com/manuals/Northstar/NSDOS.ASM

Can you share a raw dump of a Greaseweazle-written disk? Then we can see exactly the distribution of how the data lines up to sector marks.
Making writes take proper account of sector marks for each sector is not a simple piece of work, and best avoided if it's not really necessary.

I will grab a blanked disk, initialize it (format) on the machine and post
a raw read of the disk.
Gillian
On Tue, 12 Nov 2024, 08:09 Keir Fraser, @.***> wrote:

Can you share a raw dump of a Greaseweazle-written disk? Then we can see
exactly the distribution of how the data lines up to sector marks.
Making writes take proper account of sector marks for each sector is not a
simple piece of work, and best avoided if it's not really necessary.
—
Reply to this email directly, view it on GitHub
https://github.com/keirf/greaseweazle/issues/500#issuecomment-2469849773,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ALP6DEBXURF65PN3G4YFT3D2AGZTLAVCNFSM6AAAAABQHYKVTWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINRZHA2DSNZXGM
.
You are receiving this because you authored the thread.Message ID:
@.***>


Memory Leak encountered with fast_executemany on insertion into a wide table

Environment

Python: 3.7 (64-bit)
pyodbc: 4.0.26
OS: Windows 10 (64-bit)
DB: SQL Server 2014
driver: ODBC Driver 17 for SQL Server
Total RAM: 32GB

Issue
Hello,
I've created this build that extracts large amounts of data from an API and inserts it into my database. I keep running into a pyodbc MemoryError when inserting the data into my database. I've done some tests to find out why inserting into my database causes such a surge in memory usage, and it turns out that this issue is the result of running cursor.executemany() with the fast_executemany set to True.
This occurs when I attempt to insert 300,000 rows of data at a time into a table that is 155 columns wide. The memory spike is about 10GB for the duration of the executemany and does get recycled before the next batch of 300,000 rows. I have tested out reducing the number of rows inserted at once, and it seems to reduce the memory usage almost proportionally. I have no issues whenever I set fast_executemany to False; however, that greatly affects my performance so I'd prefer not to.
I did look into issue #299, although I assume my version of pyodbc should already have that fix right? Also, I understand that executemany will allocate the parameter array, but is the parameter array supposed to use up this much memory for what is around 300 MB of raw data being inserted?
Since reducing the number of rows being inserted at once will reduce the spike in memory at any one time, I will be doing so to workaround the issue, but I'd appreciate any insight since I'd prefer not to reduce my batch size.
I've attached a portion of the trace containing the data insertion into my db. Please let me know if I can clarify anything, or provide any extra details! I really appreciate the help!
ExecuteTrace.txt

The trace that you have provided doesn't show any insertion, only a lot of data fetching. However, at the end it prepares a query that has 192 parameters, but since the trace stops there, I can't see what the type of each parameter is and thus how much memory it would need for each cell.
Keep in mind that fast_executemany has to allocate an array for each row, and each array will be the maximum size that the parameter row could be; your numbers suggest ~33K per row, which is not surprising given the 192 parameters --- especially if you have many string parameters. (E.g. if your row has only 4 varchar(8000) columns, that would already take nearly 32K per row.)

Sorry about the Trace cutting off! There is some sensitive information in there so I'm trying not to upload the entire thing. I've attached the continuation of the trace that goes through the 192 parameters, which I hope could give you a better insight.
Also here is my table definition:

CREATE TABLE [Staging].[TdDailyPerformance]
(
[SYS_OPERATION] CHAR(8) NULL,
[HashCode] BINARY(65) NULL,
[Ad Environment] NVARCHAR(1024) NULL,
[Ad Format] NVARCHAR(10) NULL,
[Ad Group] NVARCHAR(1024) NULL,
[Ad Group ID] NVARCHAR(32) NULL,
[Ad Server Creative Placement ID] NVARCHAR(1024) NULL,
[Ad Server Name] NVARCHAR(1024) NULL,
[Advertiser] NVARCHAR(1024) NULL,
[Advertiser Currency Code] NVARCHAR(1024) NULL,
[Advertiser ID] NVARCHAR(32) NULL,
[App] NVARCHAR(1024) NULL,
[Browser] NVARCHAR(30) NULL,
[Campaign] NVARCHAR(1024) NULL,
[Campaign ID] NVARCHAR(32) NULL,
[Carrier ID] INT NULL,
[Carrier Name] NVARCHAR(1024) NULL,
[City] NVARCHAR(50) NULL,
[Country] NVARCHAR(50) NULL,
[Creative] NVARCHAR(1024) NULL,
[Creative Duration In Seconds] INT NULL,
[Creative ID] NVARCHAR(32) NULL,
[Date] NVARCHAR(1024) NULL,
[Device Make] NVARCHAR(32) NULL,
[Device Type] NVARCHAR(15) NULL,
[Fold] NVARCHAR(128) NULL,
[Language] NVARCHAR(1024) NULL,
[Market Type] NVARCHAR(32) NULL,
[Media Type] NVARCHAR(32) NULL,
[Metro] NVARCHAR(128) NULL,
[Metro Code] INT NULL,
[Operating System] NVARCHAR(32) NULL,
[Operating System Family] NVARCHAR(1024) NULL,
[Partner ID] NVARCHAR(32) NULL,
[Partner Name] NVARCHAR(32) NULL,
[Region] NVARCHAR(128) NULL,
[Site] NVARCHAR(1024) NULL,
[Site List Name] NVARCHAR(1024) NULL,
[Supply Vendor] NVARCHAR(25) NULL,
[Timezone] NVARCHAR(1024) NULL,
[Video Playback Type] NVARCHAR(32) NULL,
[Whitelist Site] NVARCHAR(32) NULL,
[Partner Currency Code] NVARCHAR(32) NULL,
[Additional Fee Cost (Adv Currency)] DECIMAL(37,15) NULL,
[Additional Fee Cost (Partner Currency)] DECIMAL(37,15) NULL,
[Additional Fee Cost (USD)] DECIMAL(37,15) NULL,
[Advertiser Cost (Adv Currency)] DECIMAL(37,15) NULL,
[Advertiser Cost (Partner Currency)] DECIMAL(37,15) NULL,
[Advertiser Cost (USD)] DECIMAL(37,15) NULL,
[All Last Click + View Conversions] INT NULL,
[Clicks] INT NULL,
[Companion Clicks] INT NULL,
[Companion Impressions] INT NULL,
[Data Cost (Adv Currency)] DECIMAL(37,15) NULL,
[Data Cost (Partner Currency)] DECIMAL(37,15) NULL,
[Data Cost (USD)] DECIMAL(37,15) NULL,
[Fee Features Cost (Adv Currency)] DECIMAL(37,15) NULL,
[Fee Features Cost (Partner Currency)] DECIMAL(37,15) NULL,
[Fee Features Cost (USD)] DECIMAL(37,15) NULL,
[IAS Display Fully In View 0 Seconds] INT NULL,
[IAS Display Fully In View 1 Second] INT NULL,
[IAS Display Fully In View 15 Seconds] INT NULL,
[IAS Display Fully In View 5 Seconds] INT NULL,
[IAS Display In View 1 Second] INT NULL,
[IAS Display In View 15 Seconds] INT NULL,
[IAS Display In View 5 Seconds] INT NULL,
[IAS High Risk Impression Count] INT NULL,
[IAS Low Risk Impression Count] INT NULL,
[IAS Moderate Risk Impression Count] INT NULL,
[IAS Non GVIT Impression Count] INT NULL,
[IAS Suspicious Activity] INT NULL,
[IAS Total Impression Count] INT NULL,
[IAS Very High Risk Impression Count] INT NULL,
[IAS Video 25% Complete] INT NULL,
[IAS Video 50% Complete] INT NULL,
[IAS Video 75% Complete] INT NULL,
[IAS Video Completed Views] INT NULL,
[IAS Video Muted] INT NULL,
[IAS Video Viewable 25% Complete] INT NULL,
[IAS Video Viewable 50% Complete] INT NULL,
[IAS Video Viewable 75% Complete] INT NULL,
[IAS Video Viewable Completed Views] INT NULL,
[Impressions] INT NULL,
[In-banner Player Impressions] INT NULL,
[Large Player Impressions] INT NULL,
[Media Cost (Adv Currency)] DECIMAL(37,15) NULL,
[Media Cost (Partner Currency)] DECIMAL(37,15) NULL,
[Media Cost (USD)] DECIMAL(37,15) NULL,
[Medium Player Impressions] INT NULL,
[MOAT Display In View Time 10 Seconds] INT NULL,
[MOAT Display In View Time 15 Seconds] INT NULL,
[MOAT Display In View Time 30 Seconds] INT NULL,
[MOAT Display In View Time 5 Seconds] INT NULL,
[MOAT Display On Screen] INT NULL,
[MOAT Display Universal Interaction] INT NULL,
[MOAT Display Universal Interaction Time 10 Seconds] INT NULL,
[MOAT Display Universal Interaction Time 15 Seconds] INT NULL,
[MOAT Display Universal Interaction Time 30 Seconds] INT NULL,
[MOAT Display Universal Interaction Time 5 Seconds] INT NULL,
[MOAT Video Audible and Visible on Complete] INT NULL,
[MOAT Video In View Time 3 Seconds] INT NULL,
[MOAT Video In View Time 5 Seconds] INT NULL,
[MOAT Video Visible on Complete] INT NULL,
[Non-USD Currency Cost (Adv Currency)] DECIMAL(37,15) NULL,
[Non-USD Currency Cost (Partner Currency)] DECIMAL(37,15) NULL,
[Non-USD Currency Cost (USD)] DECIMAL(37,15) NULL,
[Partner Cost (Adv Currency)] DECIMAL(37,15) NULL,
[Partner Cost (Partner Currency)] DECIMAL(37,15) NULL,
[Partner Cost (USD)] DECIMAL(37,15) NULL,
[Player 25% Complete] INT NULL,
[Player 50% Complete] INT NULL,
[Player 75% Complete] INT NULL,
[Player Audible Event] INT NULL,
[Player Close] INT NULL,
[Player Collapse] INT NULL,
[Player Completed Views] INT NULL,
[Player Engaged Views] INT NULL,
[Player Errors] INT NULL,
[Player Expansion] INT NULL,
[Player Full Screen] INT NULL,
[Player Invitation Accept] INT NULL,
[Player Mute] INT NULL,
[Player Pause] INT NULL,
[Player Playing Event] INT NULL,
[Player Resume] INT NULL,
[Player Rewind] INT NULL,
[Player Skip] INT NULL,
[Player Starts] INT NULL,
[Player Total Playing Seconds] INT NULL,
[Player Unmute] INT NULL,
[Player Views] INT NULL,
[Predictive Clearing Savings (Adv Currency)] DECIMAL(37,15) NULL,
[Predictive Clearing Savings (Partner Currency)] DECIMAL(37,15) NULL,
[Predictive Clearing Savings (USD)] DECIMAL(37,15) NULL,
[Profit (Adv Currency)] DECIMAL(37,15) NULL,
[Profit (Partner Currency)] DECIMAL(37,15) NULL,
[Profit (USD)] DECIMAL(37,15) NULL,
[Sampled Tracked Impressions] INT NULL,
[Sampled Viewed Impressions] INT NULL,
[Small Player Impressions] INT NULL,
[Total Audible Seconds] INT NULL,
[Total Bid Amount (Adv Currency)] DECIMAL(37,15) NULL,
[Total Bid Amount (Partner Currency)] DECIMAL(37,15) NULL,
[Total Bid Amount (USD)] DECIMAL(37,15) NULL,
[Total Custom CPA Conversions] INT NULL,
[Total Seconds In View] INT NULL,
[TTD Cost (Adv Currency)] DECIMAL(37,15) NULL,
[TTD Cost (Partner Currency)] DECIMAL(37,15) NULL,
[TTD Cost (USD)] DECIMAL(37,15) NULL,
[TTD Margin (Adv Currency)] DECIMAL(37,15) NULL,
[TTD Margin (Partner Currency)] DECIMAL(37,15) NULL,
[TTD Margin (USD)] DECIMAL(37,15) NULL,
[Video In View Event] INT NULL,
[White Ops SIVT Bids Avoided] INT NULL,
[CreatedOn] DATETIME2 NULL CONSTRAINT df_Staging_TdDailyPerformance_CreatedOn DEFAULT SYSUTCDATETIME(),
[ModifiedOn] DATETIME2 NULL CONSTRAINT df_Staging_TdDailyPerformance_ModifiedOn DEFAULT SYSUTCDATETIME(),
[Retired] BIT NULL CONSTRAINT df_Staging_TdDailyPerformance_Retired DEFAULT 0
)

Is there a reason that SQL is counting 192 parameters when I'm only inserting into 154 columns?
Furthermore, I went ahead and added up the max allocation for each column above and I ended up with ~20K per row. 20K per 300,000 rows being inserted at a time should amount to 6GB; however, it seems like my memory spikes up by 8-9 GB during the executemany.
Regardless, I see now that there's no avoiding this high memory usage for my wide column, but now I'm really curious what those extra parameters showing up in the trace are about.
I really appreciate the clarification @v-chojas!
excManyPt2.txt

Furthermore, I went ahead and added up the max allocation for each column above and I ended up with ~20K per row

I did a rough count and got 35,857 bytes (~35KB); don't forget that NVARCHARs are UCS-2/UTF-16 so each of those NVARCHAR(1024) are 2KB. You have 16 of those, that's 32KB already. The rest of the columns contribute the remainder to 35KB. 35KB * 300,000 is just a bit over the 10GB that you mentioned earlier.
(I suspect some of those columns could be narrower, e.g. I don't think "Date" deserves a 2K NVARCHAR, nor does "Timezone" or "Language"...)

I definitely forgot about counting my NVARCHARs properly...
Regarding the columns you mentioned, there is definitely some room for optimization. We're still in the development process so we gave most columns a safeguard as we weren't too sure the data we are pulling is what we think it is.
Thank you so much for all the help! I have a much better understanding now, and I'll be sure to apply it to my app


Fix duplicate template error bug

This change fixes the bug reported where a component will report that it
has both a template and a call method defined despite only having an
HTML template.
I was able to reproduce this bug by pulling in Avo (like reported in the
initial bug report) and running vegeta (to trigger parallel requests
since I had a hunch this was a race condition):
echo "GET http://localhost:3000/avo/resources/cars/1" | vegeta attack -duration=2s

This reliably reproduced the error:
ActionView::Template::Error (Template file and inline render method found for Avo::CoverPhotoComponent. There can only be a template file or inline render method per component.
Template file and inline render method found for variant '' in Avo::CoverPhotoComponent. There can only be a template file or inline render method per variant.
Templates:

I added a lot of debug logs to understand the race condition that I
thought was occurring, and realized that multiple threads are calling
gather_templates and mutating the @templates array at the
same.When looking at the old compiler code and realized that this likely
isn't new behavior. This led the investigation towards how we collect
and surface errors or otherwise might modify templates. It turns out
there's a difference in the new and old compiler code after the
refactor:
# old
def template_errors
  @__vc_template_errors ||=

# new
def gather_template_errors(raise_errors)
  errors = []

We're not memoizing the errors like we used to. This is more correct
behavior, but explains how a race condition would make this error case
much more difficult to occur in older versions of the compiler.
This change brings us back to the old behavior by memoizing the errors
we collect in gather_template_errors but the @templates ivar is
still being mutated. I don't want to change too much in this PR, but a
subsequent change might be wrapping the entire compile method in the
redefinition_lock (and renaming it to compile_lock) to avoid similar
issues in the future.
I did not include a test because it's dfficult to reproduce this race
condition reliably in the test environment.
I believe this should close out https://github.com/ViewComponent/view_component/issues/2114

The diff looks more drastic than the actual change. consider using ignore whitespce when reviewing the change.


MutableState has non-mutable initializations resulting in errors on deepCopy calls

The initialization of these lists uses the emptyList collection that is hard-coded to be an always empty list, and so will throw an error if anything is added to these lists.
https://github.com/nishihatapalmer/byteseek/blob/2600c05a06ea81a942f0b6b81981da1b6bf40cae/src/main/java/net/byteseek/automata/MutableState.java#L94-L98
In most of the code base this results in several isEmpty() checks to create a new ArrayList as necessary to add to it.
However, this does not occur in the deepCopy method, resulting in an error when I attempt to build a rather large regex (it has 10000 matchers, not yet at a minimum viable example, but I think this bug is pretty easy/clear fix).
https://github.com/nishihatapalmer/byteseek/blob/2600c05a06ea81a942f0b6b81981da1b6bf40cae/src/main/java/net/byteseek/automata/MutableState.java#L418-L431
This is blocking me from being able to create a new TrieMultiSequenceMatcher

Hi Edward, thanks for the bug report.  It is indeed a bug in the deepCopy implementation.  The fix should be to use the normal addTransition() method of the stateCopy, instead of trying to add them directly to the collection.
public MutableState<T> deepCopy(Map<DeepCopy, DeepCopy> oldToNewObjects) {
		@SuppressWarnings("unchecked")
		// if there is a copy of this in the map, it will be of the same type.
		MutableState<T> stateCopy = (MutableState<T>) oldToNewObjects.get(this);
		if (stateCopy == null) {
			stateCopy = new MutableState<T>(this.isFinal);
			oldToNewObjects.put(this, stateCopy);
			for (Transition<T> transition : transitions) {
				final Transition<T> transitionCopy = transition.deepCopy(oldToNewObjects);
				stateCopy.addTransition(transitionCopy);
			}
		}
		return stateCopy;
	}

To set expectations here, I am unlikely to issue a bug fix for the current version of byteseek.  I have been working on byteseek 3 for some years now, and that will be the next release I make.  Hopefully this year, but I have some important other priorities taking up my time at the moment.
To further set expectations, all of the multi-string matching and searching in byteseek 3 is being placed in an "incubator" status.  This means that it is largely untested code, whereas the rest of byteseek will be fully tested.  I am not getting rid of it, but being honest, I do not know how much time I will have to develop this aspect of byteseek going forward.    I guess if there is actual interest in this aspect, that might motivate me!


Ft/UI update

Update page ui based on design

npm run build:all:dev fails on my end @kelvinkipruto.

@kilemensi Let me have a look.

👍  @kelvinkipruto
On my machine,

There is an Outline around the Safe Net title which I can't see on the design.
The FAQs are already opened

The outline looks a little bit off for me.

@esirK Thanks. Looking into this also.


Windows Release Builds

It is currently not possible to build release binaries for windows. Could the required dependency be bundled into a docker image?

I imagine you're referring to build a windows release from a linux/unix host.
If so, the challenge here is to have the tools needed to create a windows release running on linux (if possible).
Help from windows expert is welcome :-)

Currently Fyne CLI is using signtool.exe to sign the binary and makeappx.exe to create the app package.
It looks like we could use osslsigncode to sign the binary.
So if we found a way to create an app it should be possible.


Firefox console warning: Will-change memory consumption is too high.

Just changed to Leaflet 1.0.0-rc1 in my map app and got the following warning in the console for Firefox 47.0 for Ubuntu 16.04.
Will-change memory consumption is too high. Budget limit is the document surface area multiplied by 3 (1535100 px). Occurrences of will-change over the budget will be ignored.

Hi @radumas, we just ran into this issue as well. It seems to be a browser issue that may have been fixed since you posted this issue. Can you test again in the latest version of Firefox (51) and let us know if it still happens?

Hi @seadour. Went to the same page in Firefox 51.0.1 (64-bit) on Ubuntu 16.04 and the same warning appeared in the console. Let me know if there's anything else I can help with!

Thanks for trying. Have you upgraded to Leaflet 1.0.3? If so, is the page somewhere public where we can test it, or can you post a sample as a plunkr/jsfiddle for us?

I haven't updated yet! But I will do and will let you know if that changes anything. Also the map is :point_up:, though it's not particularly simple.

Sounds good. I get the same error on your page with Firefox 51 for Mac. 🙁  (btw, nice app!)

I'm not convinced this is actually a Leaflet problem.
Leaflet is hinting the browser about modifications it will do to the DOM (transform and opacity transitions), by using the will-change CSS property. No matter what the browser does with this hint, we will use transitions to animate opacity and transform of the tiles.
In this case Firefox informs us that it believes its optimizations for will-change would consume too much memory and ignore it, which is fine.
The reason you're seeing this problem after upgrading to Leaflet 1.0, is that will-change was not used at all in earlier versions of Leaflet.
I haven't profiled Leaflet with and without the will-change hint, but my interpretation is that we use it more or less exactly as described here: https://developer.mozilla.org/en/docs/Web/CSS/will-change - the only real alternative would be to rework how transitions are handled altogether - in itself a major refactor - and at least last time we benchmarked, CSS transitions still outperformed transitions implemented in JavaScript.
I'm closing this for now, since I don't see what Leaflet can do about this, but feel free to add suggestions and we'll consider reopening.

This "problem" is still active with last version of firefox/leaflet.
Is it possible to add a leaflet option to completely disable the will-change hint ?

@jormun-pluxml you can easily override it with a CSS rule.

@jormun-pluxml you can easily override it with a CSS rule.

Can you please identify the CSS rule to be used to counter this issue, i face the similar kind wherein my console gets this message when using leaflet to display local server shapefiles
Will-change memory consumption is too high. Budget limit is the document surface area multiplied by 3 (705024 px). Occurrences of will-change over the budget will be ignored`

i did this :
.leaflet-fade-anim .leaflet-tile,.leaflet-zoom-anim .leaflet-zoom-animated { will-change:auto !important; }

I haven't profiled Leaflet with and without the will-change hint, but my interpretation is that we use it more or less exactly as described here: https://developer.mozilla.org/en/docs/Web/CSS/will-change

It matched this page at time of posting this commment, but note that it has now

Important: will-change is intended to be used as a last resort, in order to try to deal with existing performance problems. It should not be used to anticipate performance problems.

box added in https://developer.mozilla.org/en-US/docs/Web/CSS/will-change$compare?locale=en-US&to=1392790&from=1342858 edit


SimpleList with ReferenceField ?

I would like to do something like this :
<SimpleList primaryText={record => <ReferenceField label="Name" source="productCode" reference="product">
	<TextField source="name" />
</ReferenceField>}
secondaryText={record => record.type}/>

but it complains about basePath not being passed to ReferenceField.
Is it something that could be improved or SimpleList will only be able to display record direct elements ?

You should use <ReferenceManyField> or <ReferenceArrayField> (#536) to wrap <SimpleList> as a child.

Yes, but I want to use a reference only for primary text, not for secondary and tertiary ...

Then you are using 2 records in a field, the calls for a custom implementation of <MyList> which will fetch referenced record to prop on mount and then use both record and referenceRecord in render().
See implementation of <ReferenceField>.

Basically, you are telling me that simpleList won't be improved in that way.
I will build my own implementation then.
Thank you.

@sfenollosa Have you come up with an implementation of it in the meantime? I'm interested to see it. Somebody else on SO needed it too: https://stackoverflow.com/questions/47097137/how-can-i-put-reference-field-in-simplelist-in-admin-on-rest

Was trying to do the same thing and found this discussion. Perhaps just need to add basePath="productCode" and record={record} inside <ReferenceField/> so it will be something like this:
<SimpleList primaryText={record => <ReferenceField label="Name" source="productCode" reference="product" basePath="productCode" record={record}>
	<TextField source="name" />
</ReferenceField>}
secondaryText={record => record.type}/>

I can confirm that the solution posed bu @seeMzack actually works! It even seems that deduplications, as described in the starters tutorial, still functions as well.
I am wondering whether this is not a hack, since we need to specify a basepath where this is normally not needed. I hope the developers will specify some "correct" usage soon.

Is this officially supported by the framework at this moment?


Include tests in sdist

It is helpful for rpm packaging to have the tests in the sdist uploaded to PyPI.

Hi @jayvdb !
Should I also execute something like
python setup.py sdist
as described here?
Thanks for your request!

Yup, see https://github.com/junaruga/rpm-py-installer/pull/177 for example and explanation.

And see https://build.opensuse.org/package/show/home:jayvdb:soe/python-pyops for the RPM package .spec I am building.

Hi @jayvdb ,
I created version v0.0.2 of pyops. Could you please check if the rpm build works properly?
Thank you!

I wasnt able to get python setup.py test working on Python 2.7, but python tests/Test.py worked except that it doesnt return an exit status if the tests fail.
Anyways, this problem is fixed.
However ... the Python 2 log looks like
[   86s] + /usr/bin/python2 ./tests/Test.py
[   86s] test_class_parameters (__main__.OpsTest) ... No handlers could be found for logger "pyops.core"
[   86s] ok
[   86s] test_fedeo_collection_search (__main__.OpsTest) ... FAIL
[   86s] test_fedeo_results_search (__main__.OpsTest) ... FAIL
[   86s] test_search_with_parameters (__main__.OpsTest) ... FAIL
[   86s] test_search_without_parameters (__main__.OpsTest) ... FAIL
[   86s]
[   86s] ======================================================================
[   86s] FAIL: test_fedeo_collection_search (__main__.OpsTest)
[   86s] ----------------------------------------------------------------------
[   86s] Traceback (most recent call last):
[   86s]   File "./tests/Test.py", line 75, in test_fedeo_collection_search
[   86s]     self.assertTrue(len(raw_results) > 0)
[   86s] AssertionError: False is not true
[   86s]
[   86s] ======================================================================
[   86s] FAIL: test_fedeo_results_search (__main__.OpsTest)
[   86s] ----------------------------------------------------------------------
[   86s] Traceback (most recent call last):
[   86s]   File "./tests/Test.py", line 83, in test_fedeo_results_search
[   86s]     self.assertTrue(len(raw_results) > 0)
[   86s] AssertionError: False is not true
[   86s]
[   86s] ======================================================================
[   86s] FAIL: test_search_with_parameters (__main__.OpsTest)
[   86s] ----------------------------------------------------------------------
[   86s] Traceback (most recent call last):
[   86s]   File "./tests/Test.py", line 40, in test_search_with_parameters
[   86s]     self.assertTrue(len(raw_results) > 0)
[   86s] AssertionError: False is not true
[   86s]
[   86s] ======================================================================
[   86s] FAIL: test_search_without_parameters (__main__.OpsTest)
[   86s] ----------------------------------------------------------------------
[   86s] Traceback (most recent call last):
[   86s]   File "./tests/Test.py", line 29, in test_search_without_parameters
[   86s]     self.assertTrue(len(raw_results) > 0)
[   86s] AssertionError: False is not true
[   86s]
[   86s] ----------------------------------------------------------------------
[   86s] Ran 5 tests in 0.023s
[   86s]
[   86s] FAILED (failures=4)

My guess is that those tests require the internet, and therefore they fail in an isolated VM without network used to build the rpms.
On Python 3.7, the errors are a bit more explicit about the cause, but also the exception handling needs to be improved.
[   88s] requests.exceptions.ConnectionError: HTTPSConnectionPool(host='catalog.terradue.com', port=443): Max retries exceeded with url: /sentinel1/search (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fe4a65e94e0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
[   88s] Invalid URL 'None': No schema supplied. Perhaps you meant http://None?
[   88s] Traceback (most recent call last):
[   88s]   File "/home/abuild/rpmbuild/BUILD/pyops-0.0.2/pyops/core.py", line 119, in _get_search_template
[   88s]     r = requests.get(self.description_xml_url, headers={'Content-Type': 'application/atom+xml'})
[   88s]   File "/usr/lib/python3.7/site-packages/requests/api.py", line 75, in get
[   88s]     return request('get', url, params=params, **kwargs)
[   88s]   File "/usr/lib/python3.7/site-packages/requests/api.py", line 60, in request
[   88s]     return session.request(method=method, url=url, **kwargs)
[   88s]   File "/usr/lib/python3.7/site-packages/requests/sessions.py", line 519, in request
[   88s]     prep = self.prepare_request(req)
[   88s]   File "/usr/lib/python3.7/site-packages/requests/sessions.py", line 462, in prepare_request
[   88s]     hooks=merge_hooks(request.hooks, self.hooks),
[   88s]   File "/usr/lib/python3.7/site-packages/requests/models.py", line 313, in prepare
[   88s]     self.prepare_url(url, params)
[   88s]   File "/usr/lib/python3.7/site-packages/requests/models.py", line 387, in prepare_url
[   88s]     raise MissingSchema(error)
[   88s] requests.exceptions.MissingSchema: Invalid URL 'None': No schema supplied. Perhaps you meant http://None?
[   88s] expected string or bytes-like object
[   88s] Traceback (most recent call last):
[   88s]   File "/home/abuild/rpmbuild/BUILD/pyops-0.0.2/pyops/core.py", line 169, in _get_search_params
[   88s]     tags = re.findall('\{[\w\:\?]+\}', self.search_template_url)
[   88s]   File "/usr/lib64/python3.7/re.py", line 223, in findall
[   88s]     return _compile(pattern, flags).findall(string)
[   88s] TypeError: expected string or bytes-like object
[   88s] 'NoneType' object has no attribute 'startswith'
[   88s] Traceback (most recent call last):
[   88s]   File "/home/abuild/rpmbuild/BUILD/pyops-0.0.2/pyops/core.py", line 300, in search
[   88s]     if force_HTTPS and self.search_url.startswith('http://'):
[   88s] AttributeError: 'NoneType' object has no attribute 'startswith'

Some of your tests might be successful in an isolated VM if you store the OpenSearch fetch data in the repository and load it using file:// urls.  i.e. your tests dont need to verify that requests is working ... so you can skip that part.  A very cool tool for this is vcrpy.  And then add your test data files to the sdist (and check it using check-manifest).

Some of your tests might be successful in an isolated VM if you store the OpenSearch fetch data in the repository and load it using file:// urls. ...

Yes, the tests need to access the internet or (at least) access to an OpenSearch server. I'm not sure I can include the fetched data... Anyhow I will check if it is possible!
Thank you so much!


Performance evaluation question

Hi, as the title mentions
I am modifying autogluon to have faster inference time with the same performance (especially in the feature engineering part).
However, I was curious about the rule of the modified code's generality. This means that the paper denotes about a total 10 kaggle competition (except Walmart since deprecated), so does overall or average performance gain on this 10 dataset can be interpreted as valid? or is there any other evaluation dataset for PR?

Hi Choi,
Thanks for your interest! We would be happy to benchmark changes you make from a PR submission.
The current way we go about benchmarking / evaluating AutoGluon Tabular is with the AutoMLBenchmark: https://github.com/openml/automlbenchmark . This is somewhat involved to run yourself, and is more suited to large-scale benchmarking on 100's of datasets.
For smaller-scale testing, I'd recommend finding a dataset that performs poorly with AutoGluon by the metric you are trying to improve (say it is slow during inference), and then see if applying your change leads to improvement. This could be either on Kaggle, or any number of OpenML datasets. Once you submit your PR and we do a review, if everything looks good we will run a benchmark on AutoMLBenchmark to check against the current mainline to see how it performs.

Hi Choi,
Thanks for your interest! We would be happy to benchmark changes you make from a PR submission.
The current way we go about benchmarking / evaluating AutoGluon Tabular is with the AutoMLBenchmark: https://github.com/openml/automlbenchmark . This is somewhat involved to run yourself, and is more suited to large-scale benchmarking on 100's of datasets.
For smaller-scale testing, I'd recommend finding a dataset that performs poorly with AutoGluon by the metric you are trying to improve (say it is slow during inference), and then see if applying your change leads to improvement. This could be either on Kaggle, or any number of OpenML datasets. Once you submit your PR and we do a review, if everything looks good we will run a benchmark on AutoMLBenchmark to check against the current mainline to see how it performs.

Hi, thanks for the reply!
I see some gap between automlbenchmark dataset (which is somehow preprocessed of feature engineering and not having NA values) and the raw dataset (such as Kaggle).
Not only these issues I also experimented and saw some slight performance gap (using pure AutoGluon code with importing tabularpredictor vs. Openmlbenchmark)
However, the reply was pretty clear enough for me so I will keep try on that
Thanks!

AutoMLBenchmark actually does have NA values on some of the datasets, and isn't particularly preprocessed. The only thing that is different in AutoMLBenchmark is that it specifies the feature types when the feature types are ambiguous, such as a feature that has values 0, 1, 2, 3, 4, 5 being categorical vs integer.
If you do find something particularly odd about the performance gap you are observing outside of the feature type specification, I'd be happy to take a look. We want AutoMLBenchmark to map as closely as possible to how AutoGluon performs in practice.

AutoMLBenchmark actually does have NA values on some of the datasets, and isn't particularly preprocessed. The only thing that is different in AutoMLBenchmark is that it specifies the feature types when the feature types are ambiguous, such as a feature that has values 0, 1, 2, 3, 4, 5 being categorical vs integer.
If you do find something particularly odd about the performance gap you are observing outside of the feature type specification, I'd be happy to take a look. We want AutoMLBenchmark to map as closely as possible to how AutoGluon performs in practice.

Well then the last thing that I want to ask is that does the paper evaluation was held on default configuration (which means no stacking and bagging by having auto_stack=default) or does stacking and bagging were set by auto_stack=True? (Also this kind of configuration will be highly dependent on server setting such as number of CPU, GPU, etc...)

The paper was specifically set to auto_stack=True. While stacking is not always better due to a variety of factors, most notably a limited time budget, it is better than the default method the vast majority of the time. Also, the paper results shouldn't necessarily be considered as the current state of AG, as it has been over a year since those results were published and AutoGluon has undergone numerous improvements. When comparing your changes to AG, make sure to also run mainline AG, as that is the most genuine comparison.

The paper was specifically set to auto_stack=True. While stacking is not always better due to a variety of factors, most notably a limited time budget, it is better than the default method the vast majority of the time. Also, the paper results shouldn't necessarily be considered as the current state of AG, as it has been over a year since those results were published and AutoGluon has undergone numerous improvements. When comparing your changes to AG, make sure to also run mainline AG, as that is the most genuine comparison.

Currently, my custom feature engineering shows performance increment in 7 out of 9 kaggle dataset when using vanilla AG, but sometimes having errors with multi-class and bnp-paribas dataset. Keep trying to have no error.
Yeah, pretty much version updated since the paper released I understand about the circumstances. Thanks for your kind and fast response :)


saved searches( last edited, tagged, keyword)

Database like features sort filtered list

edited in the last X days


Postpone overlay stamping to first opening

This is a performance improvement.
When attaching a lot of date pickers at once, the initial render can take a lot of time. Most of the time is spent on executing logic related to the overlay. This functionality is not needed until the overlay is opened, and it is wasted effort for any date picker on the page that the user doesn't open even once.
As a trade-off the first opening takes a bit longer.
Rendering time when attaching 10 date pickers before and after the improvement:

Chrome: 197ms -> 47ms (down by 76%)
Edge: 866ms -> 353ms (down by 59%)

Attaching 100 date pickers on Edge: 10.4s -> 2.94s (down by 72%)
Fixes #618

 Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.


Is it possible to publish  query result using obsidian publish or equivalent one like quartz?

I put tags in callouts and tried to query
block: #maya AND #Inca

and it works in Obsidian editor preview, but when I publish it with obsidian publish, it doesn't work.  I copied   main.js and styles.css into  Obsidian vault's ( publish.js and publish.css) . But it couldn't show result or render.
Any suggestion to make this  publish functionality make it work? If it doesn't work for publish, I appreciate a reply

Hello,
To be honest, I don't know whether default Obsidian queries work on publish at all. My guess is that they do not, in which case, my plugin is not going to work either.

Thank you for the clarification.


Custom library entry with a custom license

About this issue
I'm using a library that has another library embedded into it and therefore is part of the original source code.
However, we're required to include the license for this embedded library as well. Naturally, this one does not get auto detected.
Is there a possibility to define a custom library entry, preferably through some configuration file rather than source code.
Additionally, this embedded library uses a custom license that cannot be resolved by the AboutLibraries.
Can I add a custom license entry in some way?
Details

[8.3.0] Used library version
[29.0.3] Used gradle build tools version
[4.0] Used tooling / Android Studio version

Checklist

[x] Searched for similar issues
[x] Checked out the sample application
[x] Read the README
[x] Checked out the CHANGELOG
[x] Read the MIGRATION GUIDE

Hey.
Sure that's possible, you can do this solely by providing the meta information you want to show. consisting of:

library
license
license description

You can find a dummy setup I pushed for you here:
https://github.com/mikepenz/AboutLibraries/commit/b38e6803c17a7033fc0921dd6755ae01bd44036e

Hey, thanks for the reply! I manged to figure it out in the meantime by inspecting and debugging the code. I think it would be worthy to put this information in the README.md. What do you think? Something along the lines:
`
You can provide custom entries for libraries and licenses through string resources. In order to define a library, you have to add following identifiers:
owner
author
libName
.... and other fields that are required
`

@corootine more than happy to take a PR to enhance the README for this :)

I'll take it up sometime this week. :)


Remove unused code for custom networks

@hboon shouldn't remove this, means that developers can run the wallet with their custom networks e.g. quorum


Freeworld codecs not available

Please provide a package with freeworld codecs enabled. The flatpak build includes them, as does the chromium-browser-privacy package in RPM Fusion.
Said chromium-browser-privacy package is very outdated, last update being at 2021-02-06.

Freeworld cannot be built on OBS, you will have to build yourself by using chromium source from https://commondatastorage.googleapis.com/chromium-browser-official/chromium-%%{version}.tar.xz and %global freeworld 1.
I have never tried building the freeworld version so there may be bugs in spec file, so please report back if you find any and PRs are welcomed.

Freeworld cannot be built on OBS

Real shame, compiling is not an option for me at the moment. Any chance you can update the chromium-browser-privacy  package in RPM Fusion or ping its maintainer?

I think the repo is https://github.com/rpmfusion/chromium-browser-privacy, it seems they updated the repo recently but I cannot find the actual package on RPMFusion (probably because @qvint is the only one who can write to the RPMFusion package, and he hasn't shown up for some time).

I may be able to build a freeworld version with my build server for Android version. But it will take some time to set up the whole Github Actions stuff, etc.


Omnisharp server won't initalize correctly with several sln files

Hi,
I am not sure if this is the right place to ask, but I didn't find another suited place yet.
Problem: My omnisharp-roslyn server won't start correcty in one of my projects which has several .sln files.
Setup: I am using WSL2 with Ubuntu und use there neovim with built in Lsp.
Context: I setup the lsp-server correctly with neovim since in the projects where I have only one .sln file everything works nicely (only that goToImplementation is not yet supported ;)
In the logs I don't know exactly what to look for, but what I saw was:
It starts with Logs like "Successfully loaded project file", then come "OmniSharp.MSBuild.ProjectManager: Update project", after this come "Found package reference 'Foo', but none of the versions in the lock file" and then only come "Tried to send request or notification before initialization was completed and will be sent later OmniSharp.Extensions.JsonRpc.Client.OutgoingNotification".
I remeber that when I used omnisharp-vim, it always asked me which solution file I wanted to use when opening this project, but with the omnisharp-roslyn server I wouln't know where to specifiy this. This is why I think it has to to with the several .sln files.
The root directory is correct.
Any ideas? Do you need more other information? or could this be a nvim-lsp-config problem?
Thanks in advance for looking at my problem.

I'm seeing the same problem.  It's when I have multiple solution files in my root directory.

I've also seen the same issue in a codebase which had multiple solution files. When we unified them into a single solution file for the whole repository, I stopped seeing issues.

I'm seeing the same issue above when launching omnisharp in a directory with multiple solutions. My LSP does not attach to the buffer, but it will iterate through each csproj to load, followed by the same "Tried to send request or notification before initialization was completed and will be sent later" messages as mentioned above. I tested a singular csproj and sln within a root_dir, and that works fine.
This also appears to cause a memory leak, as my RAM usage of the .NET host crawls up indefinitely, using up nearly all of my 32GB RAM.
csharp_ls doesn't have any of these problems, it processes all csproj in the whole repo just fine. I'd love for omnisharp to work here instead.
Is there any plan to fix this or a real workaround?


add 777 file permissions

added switch to make strm directories and files 777

sorry i have been busy so i haven’t been able to test but i can’t wait to do so and report back.


HAWQ-268. Fix HAWQ activate standby fails

FTS tests passed.

The fix looks good. +1

The fix looks good.


CPU usage raise up to (100% of one Core of the Host) 50% of HA CPUs and stays until restart this Addon

Hello,
i have the problem that this addon generates a very high CPU load after a few hours. One of the two assigned cores for HA then runs at 100% continuously and the addon then often says 45-50% CPU load. As soon as I stop the addon, the CPU load of the core goes down to 0.1-1% insantly. When I restart the addon everything is ok for the beginning, after a few hours the load increases again to 45-50% (1 core=100% of the host system).
My host system has 2 cores (2 and 3) allocated for HA (Docker).
after 2-3 hours (Host)

Addon:

after Restart of this Addon:

I hope we can isolate the problem within the addon. Thank you and have a nice Christmas

Problem solved. My mqtt GW IP Adresse switched ^^


ip: Simplify MustAddrFromIP

As suggested by Timo, this function can be simplified.
Fixes: d3a71e2d2c5 ("ip: Add MustAddrFromIP")
Suggested-by: Timo Beckers<EMAIL_ADDRESS>Signed-off-by: Chris Tarazi<EMAIL_ADDRESS>

Travis coverage is enough and we have approving review. Marking ready to merge.


TypeError:Network error when attempting to fetch resources

Describe the bug
I am getting "TypeError:Network error when attempting to fetch resources" errors in the fresh install (see screenshot). The service map is empty and I can't see any traffic, just this error. I have a cluster with 2 nodes currently(expectected to grow...). In Kubeshark I can see 0/0 nodes, I am not sure if it's ok.
Provide more information
I am running a microk8s cluster locally in a research institution for Zero to JupyterHub and I wanted to troubleshoot network communication between the pods.
To Reproduce
I followed the official and installing-with-ingress-enabled helm instrutions.
Then I made a ssh tunnel into the machine running kubernetes:
ssh -L 8899:localhost:8899 user@SERVER_IP
and run port forwarfding commands:
kubectl port-forward -n default service/kubeshark-hub 8898:80 & \
kubectl port-forward -n default service/kubeshark-front 8899:80

Can anybody pleeeeease help me?
Screenshots

@5uperpalo when you enabled Ingress (--set tap.ingress.enabled=true), you need to access the front-end through the domain that you've assigned with --set tap.ingress.host=ks.svc.cluster.local.
In that case, it would be either http://ks.svc.cluster.local/ or https://ks.svc.cluster.local/ depending on your TLS configuration.
The port forwarding approach does not work when Ingress is enabled.

@mertyildiran thank you for your response; first thing - I am not familiar with TAP (I just did 10min googling..) and I am not sure how the kubeshark works, I am just guessing it uses ephemeral containers(or something like that) to get a data that can be inspected in a nw familiar way through "wireshark-like" gui

why is the official installation and visualization using port-forwarding to get web-ui does not work - outputs some TypeError that I could not find anywhere?
I tried what you suggested, I configured ks.svc.cluster.local as localhost under etc/hosts and I tunneled port 80 and 443 through ssh tunnel -> I could not access the WebUI; see the commands below + screenshot from browser

Questions:

what dooes tap.ingress.enabled=true do?
is it possible to focus on the TypeError I am getting when I am using the most basic way of installing kubeshark? do you know why this is happening?

what I did:
# I used 80 to tunnel http: "ssh -L 9090:ks.svc.cluster.local:80 user@MY_SERVER_IP"
$ ssh -L 9090:ks.svc.cluster.local:443 user@MY_SERVER_IP
Welcome to Ubuntu ...
...
$ cat /etc/hosts | grep svc
<IP_ADDRESS> ks.svc.cluster.local
$ ping ks.svc.cluster.local
PING ks.svc.cluster.local (<IP_ADDRESS>) 56(84) bytes of data.
64 bytes from ks.svc.cluster.local (<IP_ADDRESS>): icmp_seq=1 ttl=64 time=0.100 ms
$ helm install kubeshark kubeshark/kubeshark \
  --set tap.ingress.enabled=true \
  --set tap.ingress.host=ks.svc.cluster.local \
  --set "tap.ingress.approveddomains={gmail.com}" \
  --set license=LICENSE_KEY
NAME: kubeshark
LAST DEPLOYED: Wed Aug 23 11:15:47 2023
NAMESPACE: default
STATUS: deployed
REVISION: 1
TEST SUITE: None
$ channel 3: open failed: connect failed: Connection refused
channel 3: open failed: connect failed: Connection refused
...

screenshot from HTTP tunneling:

screenshot from HTTPS tunneling:

Note:
I am using tunneling as this is a server located in a rack, i.e. server without GUI; and the server is located in the DMZ of a research institution where I have access only through VPN.


C binding namespace causes errors in leptos builds

Hi there,
Been trying to use this lib and found when installing it it caused all prog macros to panic. Turns out the C bindings clash with other name spaces (I think it's just the new method but could also be the others didn't look too deeply into it).
(I use leptos with SSR and axum)
I fixed it by doing this:
#[wasm_bindgen]
extern "C" {
	#[derive(Clone, Debug)]
	type QrScanner;

	#[wasm_bindgen(constructor, js_name = new)]
	fn qr_new(
		video_elem: &web_sys::HtmlVideoElement,
		callback: &js_sys::Function,
		options: &JsValue,
	) -> QrScanner;

	#[wasm_bindgen(method, js_name = start)]
	fn qr_start(this: &QrScanner);
	#[wasm_bindgen(method, js_name = stop)]
	fn qr_stop(this: &QrScanner);
	#[wasm_bindgen(method, js_name = destroy)]
	fn qr_destroy(this: &QrScanner);
}

Feels like a good work around and a good thing to do in general. I'm happy to submit a PR if you're keen on this.
Another thing I changed in my copy of this repo is co-locating both the js files within my own public folder as to not make a round trip to a CDN. Would be nice as an option perhaps but maybe this is a separate issue.

Feels like a good work around and a good thing to do in general. I'm happy to submit a PR if you're keen on this.
Another thing I changed in my copy of this repo is co-locating both the js files within my own public folder as to not make a round trip to a CDN. Would be nice as an option perhaps but maybe this is a separate issue.

Both are great improvements I'd love to merge PRs for, especially the CDN issue was annoying me too!


True 1.21.1 support?

Mod does not launch on 1.21.1. At least remove .1 off of the modrinth page if it doesn't actually support it.

Just uploaded a 1.21.1 version to Modrinth


how to handle files with no Voice?

I have data set of files, if I upload files that are of, lets say 10 seconds with no voice or some background noise, it gives error ValueError: All files present in manifest contains silence, aborting next steps
how should i handle this in the code?

there is a VAD in both whisper and NeMo to detect whether the audio file contains speech or not, so if the audio doesn't contain speech it will be skipped, what behavior are you expecting?

yeah, the file is skipped, do you know, if it skips the diarization because of no speech, is there any programmetic check to know if it will skip the audio, for example,  In some audio files that  I have, there is  1 second segment of audio but nemo does not diarize it and skips it, I need to know at run time if the audio file is being skipped by nemo so I can return response accordingly. Thanks.

you can use MarbleVAD from nemo library to know what will be skipped


Create a tutorial

From the "grappe" state to the flat template.

@lecoqlibre My notes are not super clear on the requirements of the tutorial, my apologies. Feel free to update the issue!


Update holopin.yml to award SDK badge to contributors

Description
The yaml file to award SDK badges had been updated such that each contributor can be awarded with a SDK badge for their contribution to this repo.
Issue reference
This PR fixes #546
Please reference the issue this PR will close: #546
Checklist
Please make sure you've  completed the relevant tasks for this PR, out of the following list:

[x] Code compiles correctly.
[x] Correct and accurate change has been done as per the issue suggestion.
[x] YAML doesn't throw any error.

@marcduiker Please review and suggest changes, if any. Thanks.

@daixiang0 @marcduiker Please try testing the badge and award me one for the PR. Thanks.

@holopin-bot @Rutam21 Testing 123... 😁


Organization Logo and Descriptions in Frontend do not update

What happened?
I tried to set my project icon and some descriptions in the Settings/Frontend tab. after saving it does not show up. Cache cleared and so on also dont solve the problem.
Reposilite version
3.x
Relevant log output
No response

Edit: It updates but it takes some time.
Restarted nginx
Cleared CloudFlare cache
Using inkognito mode in browser
IDK if there is some setting in eg. nginx or else to optimize that? But seems not a bug from reposilite so i think this can be closed

It's most likely caused by aggressive Cloudflare's caching policy - enabling development mode within an incognito tab should help in the future. Anyway, that's purely cosmetic, so you shouldn't really bother tbh 🙂↕


Package Rating Functionality frontend does not support providing ratings

The frontend does not support providing ratings, it only supports the display of package ratings.
CC @arteevraina @certik

Thanks for reporting this @henilp105. Will look into the issue.

https://github.com/fortran-lang/registry/pull/79
cc: @henilp105


Minor typo in html documentation

In http://arunoda.github.io/meteor-streams/security.html there is a typo at the last sentence of the last paragraph.
Were it says:
"If cache turned of you can only see..."
Should say:
"If cache turned on you can only see..."

I already made the correction and placed a pull request.

Thanks. But, this project is no longer maintaining.
You should try to use something like this:
https://github.com/YuukanOO/streamy
On Sun, Apr 19, 2015 at 6:42 PM Eduardo Martinez<EMAIL_ADDRESS>wrote:

I already made the correction and placed a pull request.
—
Reply to this email directly or view it on GitHub
https://github.com/arunoda/meteor-streams/issues/34#issuecomment-94275593
.


Should have examples in Azure SDK for Node.js

It has been really hard for me to implement a basic template registration for apns. The code snippets are great, but I wish this same article had examples in other languages/frameworks such as Node.js. I went over the GitHub page (i.e., Azure SDK for Node.js) and the experience was poor too.
I accomplished implementing a template registration in the Node.js SDK only after I found an old article in the web that dates back to 2015.
The Azure SDK for Node.js seems to be as powerful as the one for C#, but it feels like a mystery to decipher because there is practically no single and comprehensive source of documentation.
Just something to consider. Cheers! 💯

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

ID: 1fe12c8b-5f7b-be6f-9db0-1009a27ceef8
Version Independent ID: 5bb28d30-3240-7354-9f58-e9e51da7f3ae
Content: Registration Management
Content Source: articles/notification-hubs/notification-hubs-push-notification-registration-management.md
Service: notification-hubs
GitHub Login: @sethmanheim
Microsoft Alias: sethm

I am generally a Google Cloud Platform customer. I decided to try Azure because I needed Push Notifications, and Azure Notification Hubs seemed to be a very good product for this need. So far I'm really, really happy with Azure Notification Hubs!
Still, I'd recommend not assuming that users of Azure Notification Hubs will necessarily prefer to implement a backend in C#.  It's more popular for back-ends for a reason!
Another consideration -- perhaps more important -- is that as a user of Google Cloud Platform, I would still like to use GCP products for my backend (e.g., App Engine, Cloud Functions) which usually do not support C# (but always Node).
Hence, documentation in Node is a must if you want to attract more people from other tech stacks into Azure. This time, I would say that the experience with the documentation hasn't been more pleasurable with Azure than other providers. It took me a day to wrap my head around a few concepts before I got it working, and that in addition of these little details do have an impact in my future decision making about new cloud products to try, and trust.

@josealvarez97 Thanks for the feedback! We are currently investigating and will update you shortly.

@josealvarez97 Thanks for the valuable feedback on this! I have assigned the issue to the content author for further review on this matter.

@SnehaAgrawal-MSFT @sethmanheim does the node.js API, when imported from azure-sb, has support for FCM template registrations? It seems it only has for GCM, which is deprecated.

I realized no one has worked on this issue since last year @SnehaAgrawal-MSFT . I would be happy to give it a shot at improving the documentation. In the end, I had to download the source code of the NodeJS API and take a look at the unit tests to get a better sense of how to use it. If I still remember correctly, there were two JavaScript APIs: one developed in NodeJS (old one) and one that works on any JavaScript runtime (newest one). I used the old one because it seemed (I remember) more robust. If it still makes sense to write documentation for that one, I can help.

As we are moving to a new feedback system, please reopen this issue or contact Microsoft Support if you still want to provide feedback on the documentation. Thank you! #please-close


Write dedicated methods for each of the different dynamodb operations.

Currently the DynamodDb api exposes a generic method to execute operations, generic because expects a DynamoDBRequest and returns a DynamoDbResponse. Which also needs the respective implicit from DynamoDbOp.Implicits.
As part of this issue, would be great to add dedicated methods for running different operations, so in that way the user won't need to import the implicit value nor need to create a Request from the java builder but only pass the required parameters for the specific operation.
An example of this transition for GetItem operation has been started in this commit.
This would need to be implemented and tested for the rest of the operations:

batchGetOp
batchWriteOp
createBackupOp
createGlobalTableOp
createTableOp
deleteBackupOp
describeBackupOp
describeContinuousBackupsOp
describeContributorInsightsOp
describeEndpointsOp
describeGlobalTableOp
describeLimitsOp
describeTableReplicaAutoScaling
deleteTableOp
describeTimeToLiveOp
getItemOp
listBackupsOp
listContributorInsightsOp
listTablesOp
listGlobalTablesOp
listTagsOfResourceOp
putItemOp
restoreTableFromBackupOp
restoreTableToPointInTimeOp
tagResourceOp
transactGetItemsOp
transactWriteItemsOp
untagResourceRequest
updateContinuousBackupsOp
updateContributorInsightsOp
updateGlobalTableOp
updateGlobalTableSettingsOp
updateItemOp
updateTableReplicaAutoScalingOp
updateTableOp

WIP - https://github.com/monix/monix-connect/pull/472

Not longer required as we have the intention to migrating to the enhanced client.


browser and text at 100% zoom, still can't pass challange

Challenge Change the Font Size of an Element has an issue.
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36.
Please describe how to reproduce this issue, and include links to screenshots if possible.

Please use the Help chat room in future 💪


[Event Modification] Page 343 - OnBeforeShowWarning

Describe the bug
Can not choose the notification that should be raised when customer exceeds credit limit.
To Reproduce
Steps and to reproduce the behavior:

Create a codeunit with an Event Subscriber to OnBeforeShowWarning from Page "Check Credit Limit"

[EventSubscriber(ObjectType::Page, Page::"Check Credit Limit", 'OnBeforeShowWarning', '', false, false)]
    local procedure ExampleEventSub(var Customer: Record Customer; var Heading: Text[250]; var Result: Boolean; var IsHandled: Boolean)
    begin
       //Code copied from standard ShowWarning function from Page "Check Credit Limit"
    end;

Try to choose which notification should be raised, you can't, NotificationId doesn't not exist as a parameter, so this event doesn't make so much sense
SecondHeading it doesn't exist either.

if ExitValue > 0 then begin
            case ExitValue of
                1:
                    begin
                        Heading := CopyStr(CustCheckCrLimit.GetCreditLimitNotificationMsg(), 1, 250);
                        NotificationId := CustCheckCrLimit.GetCreditLimitNotificationId();
                    end;
                2:
                    begin
                        Heading := CopyStr(CustCheckCrLimit.GetOverdueBalanceNotificationMsg, 1, 250);
                        NotificationId := CustCheckCrLimit.GetOverdueBalanceNotificationId;
                    end;
                3:
                    begin
                        Heading := CopyStr(CustCheckCrLimit.GetCreditLimitNotificationMsg, 1, 250);
                        SecondHeading := CopyStr(CustCheckCrLimit.GetOverdueBalanceNotificationMsg, 1, 250);
                        NotificationId := CustCheckCrLimit.GetBothNotificationsId;
                    end;
            end;
            exit(true);
        end;

Expected behavior

OnBeforeShowWarning event should have a NotificationId parameter.

[EventSubscriber(ObjectType::Page, Page::"Check Credit Limit", 'OnBeforeShowWarning', '', false, false)]
    local procedure ExampleEventSub(var Customer: Record Customer; var Heading: Text[250]; var NotificationId: Guid; var Result: Boolean; var IsHandled: Boolean)
    begin
       //Code copied from standard ShowWarning function from Page "Check Credit Limit"
    end;

Screenshots
If applicable, add screenshots to help explain your problem.
5. Versions:

AL Language: v6.6.425415

Business Central: OnPrem 17.3 Platform 17.0.20458.20517 + Application 17.3.20469.20605

Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. We will update this issue with information about availability. Please do not reply to this, as we do not monitor closed issues. If you have follow-up questions or requests, please create a new issue where you reference this one.


When I set the value, the cursor moves to the document header.

monaco-editor version: 0.16.2
Browser: Chrome
OS: windows 10
Steps or JS usage snippet reproducing the issue:
create  a editor with some default values,then i call monacoInstance.setValue('some text');the cursor always move to the head of the first line,i just want what after  i setValue,the cursor could be the end of the current line。 How should i do?
monacoInstance = monaco.editor.create(this.$refs['editor'], {
          value: 'some code',
          language: 'plaintext'
        });
monacoInstance .setValue('some text');

at the same time , the focus is blur.
My purpose is to achieve the v-model in vue framework

I guess you have a vue component in which you create a monaco editor sth like:
<template>
  <div id="code-editor" ref="editor">
  </div>
</template>

Pass the value property to that component:

I think the outside calls to the setValue always move the cursor to the beginning. However, that's kind of intended. If you want a v-model like experience pass a value property to your component:
Pass the value property to that component. Then create the editor as follows:
this.editor = monaco.editor.create(this.$el, {
        value: this.value,
        readOnly: this.readOnly,
        ...this.options
      })

Then listen for the model change and emit input event on it:
this.editor.onDidChangeModelContent(() => {
        if (this.$emit) {
          const content = this.editor.getValue()
          this.$emit('input', content)
        }
      })

If you need to update code from outside do it in a value property watcher:
value(newVal) {
      if (newVal !== this.editor.getValue()) {
        this.editor.setValue(newVal)
      }
    },

I guess you could even try to get the cursor position before calling setValue in the watcher and set it by this.editor.setPosition(). This is a guess though.

I think the outside calls to the setValue always move the cursor to the beginning. However, that's kind of intended. If you want a v-model like experience pass a value property to your component:
Pass the value property to that component. Then create the editor as follows:
this.editor = monaco.editor.create(this.$el, {
        value: this.value,
        readOnly: this.readOnly,
        ...this.options
      })

Then listen for the model change and emit input event on it:
this.editor.onDidChangeModelContent(() => {
        if (this.$emit) {
          const content = this.editor.getValue()
          this.$emit('input', content)
        }
      })

If you need to update code from outside do it in a value property watcher:
value(newVal) {
      if (newVal !== this.editor.getValue()) {
        this.editor.setValue(newVal)
      }
    },

I guess you could even try to get the cursor position before calling setValue in the watcher and set it by this.editor.setPosition(). This is a guess though.

thx,it's worked after I add the if statement if(newVal!==this.editor.getValue())

I'm facing the same issue. I'm trying to update the editor value using buttons and manually inserting text, but I can't update the position. When I Use the editor.setPosition({lineNumber:y, column:x}); method, it doesn't refresh the editor cursor. But if I use the editor.getPosition() it returns the correct values. Any Idea on what could be going wrong there @mkapiczy ?

Try editor.focus(); after setting the cursor's position

It doesn't works... The cursor keeps showing at the same position. I can reproduce it on the playground.
This is my code:
editor.onDidChangeModelContent((e)=>{     console.log("HERE");      editor.setPosition({lineNumber:10, column:2});      editor.focus(); })
I'm using this in the 'Revealing a position' example.

So first of all I am not part of the monaco team, I am here randomly so my knowledge is pretty limited. Having said that, I think what is happening is that after the onDidChangeModelContent event monaco updates cursor position to match the content change, overriding your manual setPosition.
You can see it if you do sth like this:
editor.onDidChangeModelContent((e)=>{
    console.log("Model changed start", editor.getPosition());
    editor.setPosition({lineNumber:10, column:2});
    editor.focus();
    console.log("Model changed finished", editor.getPosition());
    });

    editor.onDidChangeCursorPosition(e => {
        console.log('Cursor changed', editor.getPosition());
    });

Maybe, try using executeEdits --> https://microsoft.github.io/monaco-editor/api/interfaces/monaco.editor.icodeeditor.html#executeedits

Not sure if this is still an issue, but I was able to solve it using the following:
monacoEditor.setValue(output);
monacoEditor.focus();
monacoEditor.setPosition({
    column: 0,
    lineNumber: Infinity,
});


Sniper locator controller (refactored version)

I know about copypaste. I will try to fix it. I will also add Calibrator as a frontend compoent.
Locator is now separted from the admin frontend. And I want to know, is it a good idea? Or I need to get it back?
I want to try to move the shared code to the "common" folder.

I've created package.json with exports in common folder. I will add others files to this folder, but now I want to know if can I solve the copypaste problem this way?


Update Mocha link

LGTM
@mortonfox I'll reopen it if you don't mind.

Oops, sorry, https://github.com/JetBrains/mocha-intellij/pull/8 should have been merged


added one color website{ paletton}

Please delete this line before submitting, Pull request TITLE should look like this: [Resource] -> [Resource Section In Docs]
Resource Name - Edit this line
Edit this line with Small Description about new added resource
Link: www.linkToResource
Checklist:

[ ] I have performed a self-review of submitted resource and its follows the guidelines of the project.

Hey, We have plenty of color pickers on the list.
Thanks for the PR.

okey


Build with MSVC on Windows rather than mingw-w64

The change is surprisingly easy; once again CMake delivers the goodness.

Hi! This is the friendly automated conda-forge-linting service.
I just wanted to let you know that I linted all conda-recipes in your PR (recipe) and found it was in an excellent condition.


Write intermediate results in BaseMap

Note: I ran poetry run pre-commit run --all-files and it seems to have formatted some files which makes this look larger than it is.
Please review the following files:

lib/sycamore/sycamore/tests/unit/transforms/test_base.py
lib/sycamore/sycamore/transforms/base.py
lib/sycamore/sycamore/writers/file_writer.py

The other changes are to the node.execute() interface to accept kwargs and auto-formatting

why are we doing this?

why are we doing this?

Want to be able to inspect results of each step in the execution graph (to answer things like what data got filtered out). It's an alternative to writing a .write after each node in your script which can be messy.

Any chance of using the basewriter interface (inserting maps into the dag)? Trying to abstract ray.