Error: could not connect to ollama app, is it running?

What is the issue?
Tried versions v0.4.0, v0.3.14, and v0.3.13, all yielded the same exact results.

Attempted to start the app through start menu, file explorer, and the ollama serve command (in separate windows), all yielded the same results.
I checked the app.log, and every single launch was showing the same thing:
"time=2024-11-06T03:02:50.988-05:00 level=WARN source=server.go:163 msg="server crash 1 - exit code 2 - respawning""
And it'd go so on for server crash 1 - 30 so and so.
I hate making my own issue posts if I can help it but I've spent all night trying to fix this so I'd like some help.
OS
Windows
GPU
Nvidia
CPU
Intel
Ollama version
0.4.0-rc8

Is there anything earlier in the log that indicates why the server crashed?  If you post a full log it might give some insight.

I also encountered the same bug

I also encountered the same bug

I also encountered the same bug

Server logs will help in debugging.

Error: listen tcp <IP_ADDRESS>:11434: bind: An attempt was made to access a socket in a way forbidden by its access permissions.
time=2024-11-06T21:01:28.391+08:00 level=ERROR source=server.go:145 msg="failed to start server failed to start server context canceled"

This is not a full log, and important context may be missing, which may slow the resolution of your problem.

An attempt was made to access a socket in a way forbidden by its access permissions

This usually means that there's another process already listening on port 11434, usually because the server has been started twice.   What do you see if you run tasklist?

It might also be a dup of #3362

Server logs will help in debugging.

server.log
Pretty much all the server logs seem to say the same thing, I'm unable to make sense of it, though.

I'm experiencing the same issue:
2024/11/06 11:37:46 routes.go:1158: INFO server config env="map[CUDA_VISIBLE_DEVICES: GPU_DEVICE_ORDINAL: HIP_VISIBLE_DEVICES: HSA_OVERRIDE_GFX_VERSION: HTTPS_PROXY: HTTP_PROXY: NO_PROXY: OLLAMA_DEBUG:false OLLAMA_FLASH_ATTENTION:false OLLAMA_GPU_OVERHEAD:0 OLLAMA_HOST:http://<IP_ADDRESS>:11434 OLLAMA_INTEL_GPU:false OLLAMA_KEEP_ALIVE:5m0s OLLAMA_LLM_LIBRARY: OLLAMA_LOAD_TIMEOUT:5m0s OLLAMA_MAX_LOADED_MODELS:0 OLLAMA_MAX_QUEUE:512 OLLAMA_MODELS:C:\\Users\\XYZh\\.ollama\\models OLLAMA_MULTIUSER_CACHE:false OLLAMA_NOHISTORY:false OLLAMA_NOPRUNE:false OLLAMA_NUM_PARALLEL:0 OLLAMA_ORIGINS:[http://localhost https://localhost http://localhost:* https://localhost:* http://<IP_ADDRESS> https://<IP_ADDRESS> http://<IP_ADDRESS>:* https://<IP_ADDRESS>:* http://<IP_ADDRESS> https://<IP_ADDRESS> http://<IP_ADDRESS>:* https://<IP_ADDRESS>:* app://* file://* tauri://*] OLLAMA_SCHED_SPREAD:false OLLAMA_TMPDIR: ROCR_VISIBLE_DEVICES:]"
time=2024-11-06T11:37:46.488-08:00 level=INFO source=images.go:754 msg="total blobs: 6"
time=2024-11-06T11:37:46.488-08:00 level=INFO source=images.go:761 msg="total unused blobs removed: 0"
time=2024-11-06T11:37:46.489-08:00 level=INFO source=routes.go:1205 msg="Listening on <IP_ADDRESS>:11434 (version 0.3.14)"
time=2024-11-06T11:37:46.490-08:00 level=ERROR source=common.go:279 msg="empty runner dir"
time=2024-11-06T11:37:46.490-08:00 level=INFO source=common.go:49 msg="Dynamic LLM libraries" runners=[]
Error: unable to initialize llm runners unable to locate runners in any search path [C:\Users\XYZh\AppData\Local\Programs\Ollama C:\Users\XYZh\AppData\Local\Programs\Ollama\windows-amd64 C:\Users\XYZh\AppData\Local\Programs\Ollama\dist\windows-amd64 C:\Users\XYZh\AppData\Local\Programs\Ollama C:\Users\XYZh\AppData\Local\Programs\Ollama\windows-amd64 C:\Users\XYZh\AppData\Local\Programs\Ollama\dist\windows-amd64 C:\Users\XYZh C:\Users\XYZh\windows-amd64 C:\Users\XYZh\dist\windows-amd64]

@BongozGoBOOM your crash is when we're trying to initialize the nvcuda library.  What version of the nvidia driver are you running?  My suspicion is it may be a very old version and that's causing us to hit a bug in the GPU discovery code.
@mattharvill your issue is unrelated.  The runners appear to have disappeared.  Can you check your AV logs to see if the binaries were flagged as potentially malicious and deleted perhaps?  If not, try uninstalling and re-installing to get the binaries back.

@BongozGoBOOM your crash is when we're trying to initialize the nvcuda library. What version of the nvidia driver are you running? My suspicion is it may be a very old version and that's causing us to hit a bug in the GPU discovery code.

I'm on the latest game ready NVIDIA driver version for my GPU, 566.03, should I try falling back?

@BongozGoBOOM thanks.  Let me install a matching set of software and see if I can repro.  Downgrading might be a viable workaround.  This looks very similar to #5625 but up to this point we had only seen it on very old drivers.

I wasn't able to reproduce on Win11 with 566.03.
@BongozGoBOOM can you try to capture debug logs to see if there's any additional insight there.  Quit the tray application, then in powershell set  $env:OLLAMA_DEBUG="1" and then try to run a model.  Then you can go to the tray menu, View logs, and grab the latest server log.

I wasn't able to reproduce on Win11 with 566.03.
@BongozGoBOOM can you try to capture debug logs to see if there's any additional insight there. Quit the tray application, then in powershell set  $env:OLLAMA_DEBUG="1" and then try to run a model. Then you can go to the tray menu, View logs, and grab the latest server log.

serverwithdebug.log
I also downgraded my driver to 565.90, and still am getting the same error.

Unfortunately nothing obvious in the debug log.  If I can't find it via code inspection, I'll get some additional debug logging added to the init routine so at least in the next release we'll be able to narrow down where we're crashing during nvcuda.dll initialization.

@BongozGoBOOM your crash is when we're trying to initialize the nvcuda library. What version of the nvidia driver are you running? My suspicion is it may be a very old version and that's causing us to hit a bug in the GPU discovery code.
@mattharvill your issue is unrelated. The runners appear to have disappeared. Can you check your AV logs to see if the binaries were incorrectly flagged as potentially malicious and deleted perhaps? If not, try uninstalling and re-installing to get the binaries back.

Thanks for the quick reply @dhiltgen. Couldn't find anything blocked within anti-virus notes. Did a full uninstall, reinstall and got ollama back up and running. Thx for the support!

Already solved, Win11, Run Command net stop Winnat

已解决，Win11，Run Command net stop Winnat

This should be the problem：
https://github.com/ollama/ollama/issues/3362#issuecomment-2081299370

@BongozGoBOOM please try out 0.4.1 which will have more debug logging to try to help isolate where the bug is.
After updating, quit the tray app, and in a powershell terminal:
$env:OLLAMA_DEBUG="1"
ollama serve

Then share the output.


[change] Require authentication for views #77

Closed issue by making sure api endpoints
optionally require authentication and permissions.
Closes #77

Coverage increased (+0.03%) to 98.992% when pulling 9be7beddf568c648f5e1aefb47741e45ece6fe2a on issue-77-authenticated-users-in-views into dff2357602d24f24b71e3e7aa83d61e8b94718af on master.

Oops :smile: I was so focus on working on the API that it skipped my mind. sorry for the negligence. I will work on that now.

@nemesisdesign how are you performing your tests. maybe I am missing something. I have tested it on openwisp, and i think the test cases were well written.

@nemesisdesign how are you performing your tests. maybe I am missing something. I have tested it on openwisp, and i think the test cases were well written.

Ok I will double check and come back to you, maybe the pull didn't go through properly and I was still testing the old code.

Welcome :smile:


How do I create a channel and join it?

I'm looking for something like:
var name = 'testing'
client.createChannel(name)
client.on('channel-create', function (channel) {
    if(channel.name === name) {
      client.channel.join(channel)
    }
})

Previously this required client.connection.sendMessage usage to send the protobuf messages. Now there is an API for this:
var parent = client.getChannelByName( 'My Channel' );
parent.addSubChannel( 'New channel' );
client.on( 'channel-create', function( channel ) {
  // ...
});

(And yes. You still need the channel.name === name, etc.)

Perfect thanks! Can I get the root via getChannelByName( null ) ? Or is it just hanging off of client?

I'd say use client.rootChannel or maybe getChannelByName( 'Root' ). I'm just assuming root channel is reported with the name of "Root" by the server.

I think it's null, I'll figure it out. Thanks.


CB-16066 Upgrade related flows should be able to start while bind use…

…r creation or cleanup is running
As BindUserCreate and Cleanup flow could be started any time during an FreeIPA upgrade all upgrade related flow in the flowchain should be able to run in parallel.
Flow engine doesn't support fine grain restrictions regarding when a flow can start next to another one, it's either permitted or forbidden.
In this commit all flows used in UpgradeFlowEventChainFactory is added to the PARALLEL_FLOWS in FreeIpaFlowInformation
To ensure they cannot be started next to other flows, FreeIpaParallelFlowValidator was introduced and it's now hooked into FreeIpaFlowManager right
before triggering any flows.
This validator ensures that only BindUserCreate, Cleanup and Termination flows could be started next to other running flows, while the flowchain can trigger
the upgrade related flows any time, as those triggers does go through only the Flow engine's validation.

retest this please


Improve/tidy images on Maxmind article

We pulled this together quickly, I would like it if we could improve the images and agree on a standard way that we highlight images.
https://docs.mautic.org/en/setup/maxmind-license

@RCheesley the images to use for the maxmind article has to be the same with what's already there but in a much improved manner right?
I would be willing to work on this🙂

Yes, I would suggest using a standard box, maybe in red, so that it looks a bit tidier than a hand drawn circle.


feature(data-table): new data-table component

Description
This branch introduces a new Covalent component td-data-table. It was heavily inspired on Angular 1's md-data-table. https://github.com/Teradata/covalent/issues/2
What's included?

Features:

[x] Basic table layout
[x] Automatic columns when none provided
[x] Row selection
[x] Multiple or single row selection
[x] Search
[x] Pagination
[x] Sorting
[ ] In line edit

An incomplete example of its usage
Updated documentation (WIP)

Test Steps

Navigate to http://localhost:4200/#/components/data-table
Check examples

Screenshots or link to CodePen/Plunker/JSfiddle

w00t thx @fcory! We'll jump in to test and collaborate

nice job on the merge and the latest updates!
I really like the auto-focus on the input when you click the filter button
It would be nice if the x button to close the search would also cancel/empty the search input

Agreed @kyleledbetter and I'll implement that. I had a blocker but I'll work on cleaning it today.
Meanwhile, I have another blocker for inline editing, since the dialog module for Angular 2 Material is not finished.
Do you have any ideas on how we could overcome this?
/cc @emoralesb05

Done @kyleledbetter. I could still use some guidance on how to proceed with the inline edit.

A few things I wanted to discuss/implement next:
Sorting
This is the low hanging fruit, as I don't have any blockers and it seems I don't need any input here.
Inline editing
The problem here is that we need a working dialog module to make Inline Editing work the way it's spec'ed out here:

Formatting / Alignment
Should we include formatting and alignment as part of the column metadata? What would you suggest we use to format numbers/date/etc.?
A few libs we used in the past:

Moment.js for date formatting
Numeral.js for numeric formatting

Events
I think we should trigger a few events:

Row(s) selected (passing an array of selected rows for the case where all rows are selected)
Row(s) unselected (same as above)
Column changed (when Inlined Editing is working) -- this event can return true/false to indicate whether the change is accepted or not

What else am I missing?

OK, sorting done:

tiny comment on the sorting icon: in the spec it's on the left side of the column heading and it's a slightly different icon arrow_downward and arrow_upward:

@kyleledbetter The spec also says the text alignment depends on the data type:

Text alignment
Right-aligned numeric columns
Left-aligned text columns

Could that change what side the ascending/descending icon appears on?

@fcoury for dates and numeric formatting do you think you can use the Covalent Pipes we have available? https://teradata.github.io/covalent/#/components/pipes
we have

digits (most of your numeric conversion like: Digits: 4521 Converted: 4.5 K)
byte conversion (filesize like Bytes:<PHONE_NUMBER>3 Converted: 72.45 GB)
time ago (like 3 months ago, 2 hours ago, etc)
time difference (hours/days/etc between 2 dates)
truncate (truncate to whatever length and add ... )

@aciccarello great question, i'd think the sort arrow icon location is more a question of LTR vs RTL than the numeric/text alignment, like it would always be on the left for english

@fcoury for the Inline Editing I think you can tap into the overlay services available now (which are used by dialogs which are also working in develop branch you're working off https://github.com/Teradata/covalent/blob/develop/src/app/components/style-guide/material-components/material-components.component.ts#L124-L183 )
I'm guessing you'll have to tap into overlay https://github.com/angular/material2/tree/master/src/lib/core/overlay & portal https://github.com/angular/material2/tree/master/src/lib/core/portal

@fcoury another key feature you can add is the Alternative Header when you select items

@kyleledbetter @aciccarello thanks for all the comments, I'll be going through them tomorrow. More to come... Thanks! 😀

@kyleledbetter @aciccarello @emoralesb05 just added formatting support and made the sorting look and feel match md-data-table:

Latest looks awesome!
Couple of requests:

[ ] option make the whole row clickable when the select box is enabled
[ ] when the whole row is clickable for select add the md-ripple attr (something like [attr.md-ripple]="_rowSelection === true")

@kyleledbetter where do we add the md-ripple effect? I tried adding it to both the table and tr elements, made sure it worked, but but nothing changed.

@fcoury yeah i just tested and had a hard time getting it to work properly. I can get it working on certain elements if i just put md-ripple on them... need to do more testing on this one

@kyleledbetter @fcoury The reason md-ripple isnt working its because you need to import MdRippleModule where you want to use it. So to avoid that, you can just import MaterialModule and let webpack/rollup do the necessary tree shaking.

Going over some of the comments to see what has been discussed.
Events
So for events i think a simple (change) output would work fine with a IDataTableEvent that has the source element (this) + an array of the selected indexes.
interface IDataTableEvent {
  source: TdDataTableComponent;
  values: any[]; // this is a list of rows or something that specifies which ones are selected.
}

Inline editing
We can try and use a prompt dialog that we have in the simple dialogs feature and leverage it if needed. Simple as using dialogsService.openPrompt({value: 'value'}); and it uses the second dialog in the data-table spec.

Although we might need to add a few things like character count and what not.
Tooltip description
Would be cool to be able to add an optional tooltip description as part of the column metadata to follow the data-table specs.

export interface TdDataTableColumn {
  name: string,
  label: string,
  tooltip?: string,
  numeric?: boolean,
  format?: { (value: any): any };
};

Paging
Later on it would be nice to have a td-paging component that gets hooked into td-data-table like this:
<td-data-table>
  <td-paging (next)="next()" (prev)="prev()" (change)="onPagingChange($event)"><td-paging>
</td-data-table>

That way we can hook it into td-data-table or us it stand alone with md-list or w/e we want. I already have the idea in my mind, just setting up a brainstorm flow for a second iteration of data-table haha
We need to specify a goal for the first iteration and start polishing the base rather than adding more and more things for now. This is awesome work though! :boom:

Btw, do we really need ripple? the spec doesnt say anything about it.. and <table> layout just screws ups the ripple since ripple uses absolute positioning.

@emoralesb05 it's a great question, we don't have to have ripple as it's not in the spec, it just felt like a natural extension of the spec :)
As long as we have the proper row hover and selected bg colors I'm happy

Just tested the latest and this UX looks great for the first release @fcoury ! Pls get everything passing tests and ready for release!

@emoralesb05 I think I addressed all your feedback. We are only missing the lodash removal. I was basically waiting instruction on how you guys approach generic/utility methods that could be reused throughout the framework.

The is a wonderful first pass at datatables, fantastic work all!
I'm good to merge, would like one more sign off on the code real quick

Everything looks great!

Any Future Update on Column Filter. It is a Much Needed Feature. Like this http://codepen.io/iamisti/pen/kkvBxd

Hi to all,
when set [clickable]="true" all the row is obviously clickable ... but if I add a button in a row-cell the click event of the button is ignored ... is there a way to solve?


feat(core): support custom map controls

add a simple component allowing an easy way to add custom markup to the map
Closes #941

Any updates on this? when can we get this in new version?

When ControlPosition is exported in map-types.ts then LGTM

@SebastianM the changes you asked where committed long ago, please take a look.

Is the custom control  working now?

Any Ideas on when this may be implemented? It would be extremely useful for what I am currently working on!

any update?

Hi @doom777 why is this closed ?

good question, I don't remember this PR at all. It would have to be updated to match 3.0.0. IF @jgutix is still interested, I can reopen it.

I thought the project was moving forward and now the account that made some commits recently, has been deleted? What's going on?


Stations are way too maneuverable

Description

Pirates/nukies can just get straight up outrun sometimes. Need to either nerf thrusters for large mass or add station anchors or something
Reproduction

Screenshots

Additional context

@metalgearsloth can we scale damping with grid mass / tile count? Or do thrusters out run this?
Otherwise we could manually set the damping on our maps with VV to something stupidly high?

can we scale damping with grid mass / tile count?

Damping is percentage based and is already set to 5,000% (yes I want to change this).
Better off capping velocity based on thrusters / increasing grid mass / not spawning a station with a billion thrusters (atlas) / adding a tool for nukies to stop shuttle consoles on the target ship.

Station Anchor real #26098


Linear compass changes compass direction when using experimental compass

When I tilt the phone up, so the linear compass shows, the compass direction changes up to 180 degrees, all the way from north to south. When I hold the phone horizontally again, the compass direction changes back immediately.
This issue only occurs when using the experimental compass.

Hello, does this occur when the linear compass setting is off?

Yes, it seems to occur regardless of whether the linear compass setting is on. Also, it seems that this behavior is seen with both the "regular" compass and the experimental compass, but it is more pronounced in the latter case.
I don't know if it's relevant, but I am using a Nokia 3 phone running Android 9.

This stackoverflow thread seems to have some relevant information: https://stackoverflow.com/questions/16317599/android-compass-that-can-compensate-for-tilt-and-pitch
And this issue from another app with compass functionality: https://github.com/cgeo/cgeo/issues/5889

Great! Yes, just let me know.

@MSBack I just posted a new debug build here https://github.com/kylecorry31/Trail-Sense/issues/74
I added a new setting called "Compass Mode". From there, you can select the "Custom" value and try that out (that was from the stack overflow post).
Let me know if that works.

FYI, I am seeing much smoother transitions when moving from flat to vertical (and also the code is much cleaner with the "Custom" compass)

I have installed the new debug version, but I will test it tomorrow. Thank you for this!

Hi, just wanted to see if that fix resolved this issue?

I'm going to assume that this fixes the issue, as I am noticing much more consistent behavior. If it does not work for you, feel free to open this issue again.


New K8s advanced policy

Creates a new advanced policy demo which only uses K8s NetworkPolicies including egress.
Fixes #1131

[x] Documentation

Should there be one here?

@dtzar thanks for the PR!
If I understand correctly, I don't think this guide is specific to KDD. If so I think we should focus on updating the existing guide rather than creating a new one.
WDYT?

I'm fine overwriting the existing article.  I just thought you might want to have an article which references the calicoctl commands for etcd based calico deployments.

@dtzar given the k8s NetworkPolicy API gives us the functionality we need for this, we should do it all through that I think.

I think this is what you desire

@emanic I think I made all the requested changes other than the squash commit.  Can you just do a squash merge for this part on GitHub?  Also good to give credit to @tmjd for help with the policies in the tutorial 👍

Do you want release notes or should I remove them from the top?

I don't think we need to mention this in the Release Notes, thanks @dtzar

Thanks @tmjd !

@dtzar Unfortunately, it looks like squash and merge is not enabled for this repository. Do you think you can possibly go ahead and squash these from your shell? Let me know...thanks again!

@dtzar When you are ready to squash the commits feel free to squash mine with yours.  I don't mind if you don't.

I believe they were going to just squash commit for me (i.e. via GitHub)

I've taken this and squashed it here: https://github.com/projectcalico/calico/pull/1184
Could you guys give it a look to make sure I didn't lose anything and then we'll merge?
Thanks!


Add TypeScript types for observer parameters.

PolymerDeepPropertyChange for .* observers.
PolymerSpliceChange and PolymerSplice for .splices observers.
Parameterized for the property/path types.
Matches the name of the interfaces in polymer-externs.js.
Documentation mostly copy/pasted from https://www.polymer-project.org/3.0/docs/devguide/model-data.

What do you think about putting these types in an importable file? Or, are these types importable? I guess they're using export so they shouldn't be global by default. How would you get these types, as a Polymer user?

It's a module so it's importable, no globals here. Users import from @polymer/polymer/interfaces.

LGTM. Just prefer using the unknown-like {}|null|undefined type

Done.


How to create a custom scene

How to create your own scene, such as the moon or Mars?
How can I customize the scene layout, such as the placement of objects, etc

I am learning this framework too. I am trying to understand 'infinigen/infinigen_examples/constraints/home.py' for generating indoor scenes and the scene layout is generated according to
    consgraph = home_constraints.home_furniture_constraints()
    consgraph_rooms = home_constraints.home_room_constraints()

You need to define your own graphs by yourself.


rudimentary import/export functionality

There's zero error handling here, just a quick and dirty import/export
index export will dump the export to index.json
index import assumes that index.json exists and is formatted properly
jsonpickle library added to requirements; partially removed minimum check when a coin is added

We need to update the wiki with this information. Also describe the format if it is necessary.

I added the function descriptions to the wiki. The file is generated by jsonpickle so it's not really meant to be hand-created or edited.


Stop interpolating after the last not null datapoint

Description
I am working on a graph to display user weights for each month. In my current implementation, I set the values for each month to null initially and then populate them with the user’s logged weights. However, I’m encountering an issue where the graph continues to interpolate values beyond the last non-null data point.
Here is a screenshot of the issue:

Is there a way to prevent the graph from interpolating values after the last not-null datapoint?
I don't want the graph to stop at the last datapoint and I would like to display the labels for the entire month, even if we are still at the beginning of the month.
Thank you.
Steps to reproduce

Create a list of datapoints with null values appended at the end.
Create LineChart with interpolateMissingValues set to true
Line will keep interpolating after the last datapoint

Snack or a link to a repository
No response
version of react-native-gifted-charts
1.4.10
React Native version
0.74.3
Platforms
iOS
Workflow
Expo Go

Hi @dannybit Did you try interpolateMissingValues = {false} ?

Yes, it works but I still want the other values before the last value to interpolate.
I think this is what causing the issue
"2. If we don't have any numeric values ahead, but we have numeric values in the previous section, we find the slope between the last two numeric values in the previous section and compute the remaining values."
Is there a way to disable this behavior while still interpolating the other values?

Hi @dannybit Thanks for requesting this feature. It is now available from versions 1.4.34 onwards.
I have added a new prop named extrapolateMissingValues to enable/disable the extrapolation of nullish values at the start and end of the chart. The default value of extrapolateMissingValues is true.  You can set it to false to stop extrapolation.
Please use the latest version of the library.

Amazing!! Thank you for implementing so quickly. I just tested it and it works perfectly.

Hi Abhinandan, thank you again for adding the new field. However, I'm still encountering an issue with the yAxis labels. Even though the extrapolated line is no longer visible, it seems to still be affecting the yAxis.
As you can see from this screenshot, the line after the last data point is no longer being rendered (I believe it's now set to transparent), but it's still causing the yAxis labels to extend below the yAxisOffset, which I've set to 150.8 in this case

Ideally, the graph shouldn't display the labels 147 and 147, as both are being rendered below the xAxis.
Anything that I can do to prevent this issue?

@dannybit to avoid negative y-axis you can set noOfSectionsBelowXAxis={0}

great thanks, it fixed the issue.


Stochastic Depth Training

Simple implementation of Stochastic Depth Training with the Module API. I did not use fancy tricks like constant graph and re-pointing weights, because the prediction needs to use all the layers anyway. The speed on a single GPU seem to be similar to the torch implementation (they report 60 seconds, while we are ~50 seconds, but my GPU might be better).
I did not observe good speedup by running multi-GPU, though. Maybe because of overhead of data copying between modules -- note each block is an independent module, so e.g. the 110-layer Resnet has 50+ modules.
I did not try to use the exact hyper parameters as the torch implementation. Both the residual block and the skip connections are also slightly different. Will add final number to the comments after finish running. The progress up to now seems reasonable:
INFO:root:Epoch[127] Batch [100]        Speed: 1056.31 samples/sec      Train-accuracy=0.961094
INFO:root:Epoch[127] Batch [150]        Speed: 1041.82 samples/sec      Train-accuracy=0.958438
INFO:root:Epoch[127] Batch [200]        Speed: 1044.29 samples/sec      Train-accuracy=0.949688
INFO:root:Epoch[127] Batch [250]        Speed: 1057.96 samples/sec      Train-accuracy=0.953906
INFO:root:Epoch[127] Batch [300]        Speed: 1054.22 samples/sec      Train-accuracy=0.955781
INFO:root:Epoch[127] Batch [350]        Speed: 1053.62 samples/sec      Train-accuracy=0.952031
INFO:root:Epoch[127] Train-accuracy=0.949920
INFO:root:Epoch[127] Time cost=47.548
INFO:root:Saved checkpoint to "sd-110-0128.params"
INFO:root:Epoch[127] Validation-accuracy=0.894131

I also tried to implement the drop path method with a simple CustomOp layer, which accepts two input and randomly outputs the identity or the summed one.
But I did not achieve good results with this layer, a little worse than the original resnet.
I observe that your implementation is quite different. Does my idea OK?

@zlmzju I'm not sure exactly how you did it. The implementation above is also slightly worse than the reported number. Roughly 9% error vs 5% error IIRC. But the ResNet architecture are slightly different.

@pluskid , I can show a simple demo code:
class Drop(mx.operator.CustomOp):
    def __init__(self, probs=[0.5,0.5]):
        self.probs=probs    #can be different for each layer
    def forward(self, is_train, req, in_data, out_data, aux):
        if is_train:        #testing is ignored for demo
            options=[0,1]   #0: only identity, 1: summed result
            self.choice=np.random.choice(options,1,p=self.probs)
        if self.choice==0:
            out=in_data[0]
        elif self.choice==1:
            out=in_data[0]+in_data[1]
        self.assign(out_data[0], req[0], out)
    def backward(self, req, out_grad, in_data, out_data, in_grad, aux):
        if self.choice==0:
            out_grad0=out_grad[0]
            out_grad1=0
        elif self.choice==1:
            out_grad0=out_grad[0]
            out_grad1=out_grad[0]
        self.assign(in_grad[0], req[0], out_grad0)
        self.assign(in_grad[1], req[1], out_grad1)

#usage
output=mx.symbol.Custom(data1=identity, data2=residual, op_type='drop')

I find that some works achieve very good results with such drop path technique, such as FractalNet, resnet of resnet and another similar method Swapout.
So I think it will help a lot for mxnet users if we can reproduce their results.

@zlmzju I see. I think stochastic depth might have two main effects: one is regularization, and the other is saving computation. The reason that I use imperative scheduling is to avoid extra computation when a branch is skipped. The CustomOp way you used might not be able to save the computation. Yes, I agree. It will be very useful for the community if we are able to reproduce those results and have complete examples.

@pluskid yes, you are right, your implementation is better. I can help test some examples based on my resnet implementation (resnet-110 5%~6% error with so many epochs).


Unmerged changes pending (causing transform: scale to not be accounted for)

The fix for transform: scale(...) (discussed on react-popper) never made it into popper-core.
Here is the fixed version [diff here].
Here is the current getBoundingClientRect.
Any idea when this will get merged?

I think using the popper as a styleless wrapper element around an inner box element is the better way to do this. See https://popper.js.org/docs/v2/faq/#how-do-i-add-css-transitions-without-disabling-adaptive

@atomiks I'm not sure I understand how that applies to my case? I am having a map-like element that uses transform for panning and zooming (specifically using the panzoom library). Inside of that element I want to have some popper popups, but they end up in the wrong place if you zoom out or pan around. Applying the popper class to the entire map seems like overkill, doesn't it?
Maybe going for a more complete map library solution instead might be the better way of going about doing this after all? :)

Sounds different to what I imagined, can you make a demo for us to investigate?

We do address for transforms, as you can see from this example:
https://codesandbox.io/s/silly-pine-lbmoh?file=/index.html
I'll close it for now, we can reopen once OP provides a repro.

Dynamic transforms (such as what you would have with "map"-like elements, or anything using the panzoom library) do not work:
https://codesandbox.io/s/holy-sound-lp5qj?file=/src/index.js

Don't you just need to call popperInstance.update() when a pan event fires?

Yeah it's enough to trigger an update after the transformation changes, Popper doesn't track DOM mutations, you need to track them yourself.
https://codesandbox.io/s/hopeful-leaf-l2sx6?file=/src/index.css


Wrong language: getting python suggestions in Javascript file

Describe the bug
The auto complete suggestions I get are in python in a javascript or rust file, even if I have valid javascript or rust already written in the file.
Screenshots

Desktop

OS: Debian
Vscodium

Additional context
I am using codellama 7b

Hello, please try to turn on the use file context option and try again.


Library/Caches/antidote/.antidote.load: No such file or directory

Getting this message when opening a new terminal session immediately after a clean install:
~/Library/Caches/antidote/.antidote.load: No such file or directory

This occurs after either a brew install or via git clone.

FWIW I was able to fix this by manually creating an antidote subdirectory in ~/Library/Caches/.


[tracker] next step Kubeflow website model registry section

[x] add additional diagrams to address this comment and this comment

this is being done with https://github.com/kubeflow/website/pull/3828

[x] https://github.com/kubeflow/website/pull/3740

[x] expand on section "installation" to document how to install MR separately from KF (comment)
[x] avoid ref to main and use tag (comment) for installation
[x] add OWNER file in content/en/docs/components/model-registry (can take [katib file as example]

[x] add example instructions for dry-run REST API inside of notebook
this is being done with https://github.com/kubeflow/website/pull/3788
[x] consider for "registered model" version in kserve part of tutorial to be consistent or similar to the one from previous steps
this is being done with https://github.com/kubeflow/website/pull/3788
[x] request if it's possible to add (while Alpha, with "alpha" label, with * postfix, ...) a "Model Registry (alpha)" in the KF architecture diagram

this is being done by Andrey here: https://github.com/kubeflow/website/pull/3780

add additional diagrams to address this comment and this comment

this is being done with model registry: update MLOps diagrams website#3828

last item completed on Aug 7th.


[FLINK-27205][docs-zh] Translate "Concepts -> Glossary" page into Chinese.

What is the purpose of the change

As can be seen from the above figure, there are still some untranslated content in the Chinese document, so this part is translated.

Brief change log
Translate "Concepts -> Glossary" page into Chinese.
Verifying this change
This change is a trivial rework / code cleanup without any test coverage.

@Myasuka ,Sorry to bother you, can you help me review this pr? Thank you.

@RocMarshal ,Sorry to bother you, can you help me review this pr? Thank you.


Gaussian shuffle and tutorials

What does this implement/fix? Explain your changes.
This PR adds shuffle and random_state setting ability to the GaussianMixtures class for synthetic data generation. It also updates the gaussian mixture tutorial, and uses the gaussian mixtures in a dcca tutorial notebook.
Any other comments?
It also fixes minor documentation errors like missing Attributes section in GaussianMixtures

There appears to be a conflict too, with docs/tutorials.rst

Fixed issue with seeding for shuffle.


Feature: Expose iterator to underlying store

I have a use case where I have small collection who's data needs to expire.  Retainer would work well for me except that there's not a way for me to access the underlying map without knowing the individual keys in the map.

The issue with this is that it requires locking the entire cache (and delaying eviction) for the entire lifetime of the Iterator, so it's not really something to encourage. I can take a look at options, but when I first wrote this I decided to leave it out for this reason.


Chaos Schedule down!

Chaos Schedule is down!

Can confirm. We are currently running an online convention and rely on the bot for planning.

Machine had a kernel panic and needed a reboot. Is online again


Dynamic nested list example

I have a list into which other lists are added dynamically. So I can end up with a list like this:

1

3
4
      ...

5
6

7
8
9
      ...

10
  ...

I need to be able to drag list items into and out of nested lists, between nested lists, and to drag a nested list to a different position in '.home' (but not into another nested list. So far I've managed to drag nested lists and to drag items out of a nested list but not to drag an item from ''.home' into a nested list.
The issue seems to be that nested lists are added dynamically :-(
Could you please provide an example which demonstrates all the things I need?

Hey, from the top of my head I would say you need to use the reload command (https://github.com/lukasoppermann/html5sortable#reload) once the list is added on all other lists.
But if you can provide a demo with the issue e.g. on codepen it would be easier to diagnose the issue.

I've created a pen
https://codepen.io/ap_prog/pen/MWwZEpr
which does mostly what I need but I can't get nested lists ('groups' I call them) to change position in the parent list.

The pen url is misbehaving. Here it is again
https://codepen.io/ap_prog/pen/MWwZEpr

I've done a new pen
https://codepen.io/ap_prog/pen/ExjrBwz
The only issue I appear to have is that I can drag a nested list into another nested list (in the same parent list) but I need to prevent nesting going more than one level ie. I shouldn't be able to drag a nested list into another nested list,

hey @ap-prog, great that you could make some progress.
To clarify:

you need to have lists and and items both in the "home" sortable
you need to be able to organize/sort the lists
Lists are not supposed to be nested within other lists, but only sortable within the "home" list

Is that correct, or is there anything missing/wrong?

Yes but also whenever the home list, or a nested list, is sorted it needs to trigger an update event.

So I think this is currently not possible. What is missing is a way to specify which items are accepted.
If you are interested I would love to accept a PR for an "acceptItem" option, which lets the user specify a function, only if the function returns true, it would allow the item to be nested.
Otherwise I would not know how this is possible with the current setup. I am sorry I can not be of more help. Let me know if there is any other thing to this, otherwise I will close this.
If you want to look into creating an "acceptItem" option, please open a new issue for this so we can discuss the details. Thank you.


MessageComponent button getting invalid response if emoji isn't specified

I have noticed that my bot stopped responding whenever it tried to send a MessageComponent button in response to an interaction.
Investigating the issue, I have noticed that the Emoji field inside the discordgo.Button{} struct isn't tagged with omitempty, so it always gets marshaled to "emoji": {} in the JSON. Checking the Discord's API documentation (https://discord.com/developers/docs/interactions/message-components#button-object), it appears that the emoji field isn't mandatory but, if specified, must contain a valid PartialEmoji structure, which cannot be empty.
In fact, setting an emoji explicitely makes everything work again.
Code
components[i] = discordgo.Button{
	Label:    t.Title,
	Style:    discordgo.SuccessButton,
	CustomID: "...",
}

Request payload
[
    {
        "type": 4,
        "data": {
            "tts": false,
            "content": "",
            "components": [
                {
                    "components": [
                        {
                            "label": "...",
                            "style": 3,
                            "disabled": false,
                            "emoji": {},
                            "custom_id": "...",
                            "type": 2
                        },
                    ],
                    "type": 1
                }
            ],
            "embeds": [
                {
                    "description": "...",
                    "color": 2207564,
                    "author": {
                        "name": "...",
                        "icon_url": "..."
                    }
                }
            ]
        }
    }
]

Response
[
    {
        "message": "Invalid Form Body",
        "code": 50035,
        "errors": {
            "data": {
                "components": {
                    "0": {
                        "components": {
                            "0": {
                                "emoji": {
                                    "name": {
                                        "_errors": [
                                            {
                                                "code": "BUTTON_COMPONENT_INVALID_EMOJI",
                                                "message": "Invalid emoji"
                                            }
                                        ]
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
]

This is an oversight on our side.
It is fixed in f70a01544f56a912f2528998ff449d22a708fd25, 417195a65b3edf68e60a9413d4523707c4828cf7 (v0.26.3), 67b609bacbb87d3b0ccb51cb8233fe23a2288d27 (v0.25.2) and 0040bfc2674a15670941cd779b00608bdfe88896 (v0.24.2).


Implement dirs-only option

When dirs-only is enabled every node other than a directory will be skipped, i.e. it is not shown in the output.
Closes #84.
TODOs

[ ] Squash fixup commits

Not sure why the CI fails.  Locally it builds and also the test succeed without any warning, and there's no uncommitted state.

Sorry for taking so long to get back to this as work has been incredibly hectic. I've made quite a few changes since and had to address a bug with pruning here, which influenced how I ended up going about --dirs-only here. Thank you anyhow for pushing for this!

Sorry for taking so long to get back to this as work has been incredibly hectic. I've made quite a few changes since and had to address a bug with pruning here, which influenced how I ended up going about --dirs-only here. Thank you anyhow for pushing for this!
edit: --dirs-only will be included in 1.7.0 later today.

Thank you for the update, I know how stressful it can be to maintain an open source library or application.
Godspeed 👍🏻


General improvements in file handling

Use nix-env to create profile link and also increase activation atomicity by linking files from the HM state dir where we can switch "all" files atomically by swapping the symlink.

@rycee looks good. Do you think additional test to cover the case would be beneficial?


Fix "no-undefined" issue in src/Cache.js

Unexpected use of undefined.
https://codeclimate.com/github/janbiasi/vanage/src/Cache.js#issue_57887ed4864979000107005c

Cache Class, Line 24

Fixed by commit 3bfd057


panel-panel intersection

This could also be plane-plane intersection.
Should it produce an "infinite" line, or a strut with end balls?  How would the endpoints be determined for non-intersecting panels lying in intersecting planes?

This issue was moved to vZome/vzome#3


Improve checking of module markdown files in GetMarkdownFilesFromPath

Fixes #447

 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.:x: bmsimons sign nowYou have signed the CLA already but the status is still pending? Let us recheck it.

@bmsimons Can you add tests for this?


Properly default to krb5 realm of the host for cell mgmt ops.

Codecov Report

Merging #94 into master will decrease coverage by 0.02%.
The diff coverage is 0%.

@@            Coverage Diff             @@
##           master      #94      +/-   ##
==========================================
- Coverage    17.6%   17.58%   -0.03%
==========================================
  Files          50       50
  Lines        2380     2383       +3
  Branches      265      266       +1
==========================================
  Hits          419      419
- Misses       1932     1935       +3
  Partials       29       29

Impacted Files
Coverage Δ

lib/python/treadmill_aws/cli/admin/cell.py
0% <0%> (ø)
:arrow_up:

Continue to review full report at Codecov.

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


Invalid PDOStatement PHP Doc

Hey guys/gals,
Just querying what I think is causing one of our linters some hassle. I think this @return PHPDoc should be referencing PDOStatement (without the underscore)?
https://github.com/Shardj/zf1-future/blob/02d513087f82de96587a03c81c9c9b962783f6b8/library/Zend/Db/Select.php#L703

can you describe the problem, please?


[1.10]Considering refresh token validity period for Client credential

Description:
When access tokens are issued for the client credential grant type, it considers the refresh token validity period. According to the OAuth spec, it shouldn't be considered.
This created unexpected behaviors. For example, new access tokens would be generated within the access token validity period, if the refresh token validity period expired.
Suggested Labels:

identify, oauth, bug
Suggested Assignees:

Affected Product Version:
1.10
OS, DB, other environment details and versions:
Steps to reproduce:

Make the access token validity period 10min
Make the refresh token validity period 15 min.
Create an access token at T=0, then the refresh token expiry time = 15 min
, access token expiry time = 10min
Within T < 10 min, if you generate an access token, you get the same access token.
At T=12min, call to token end point, new access token with be generate with access token V.P = 10min, with same refresh token and refresh token expiry time 5 min.
In client credential grant type, refresh token validity period should not be considered.
However, current implementation takes that into consideration in APIM 1.10
At T=16min, access token validity period is 6 min. However since refresh token is expired, it generated an new access token, if token endpoint is called.

Related Issues:

https://wso2.org/jira/browse/IDENTITY-6777

Fixed with: https://github.com/wso2-extensions/identity-inbound-auth-oauth/pull/538


Implemented the Record API.

API | Common
Implements the features added by the API. Also implements the getDefaultProperty method in the ItemStack.

Rebasing this on bleeding and running this caused no errors/test issues and the test plugin worked as intended for me.
The test plugin uses the deprecated getItem() instead of getType() though.


Setup and controllers

In this milestone I did the following:

Create a new app. Give it a meaningful name.

Initialize your project with Git.

Make sure that your project has Postgres database set up.

For each URL you should create:

A route.
An action in the correct controller.
A view file.
View files should include only placeholders written in plain HTML, e.g:

Here is a list of posts for a given user

Make sure that you added code to handle only the 4 required URLs.

Thank you for the review @t-yanick


p7zip: switch to maintained fork

This the fork that true-upstream seems to prefer, see:
https://www.7-zip.org/links.html
Motivation for this change
Things done

[ ] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
Built on platform(s)

[ ] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[ ] Ensured that relevant documentation is up to date
[ ] Fits CONTRIBUTING.md.

@7c6f434c I left you as a maintainer of 7zip, if that's OK.
Also: I couldn't test the osx specific parts.

Fine with me re: maintainer entry
I think https://www.7-zip.org/links.html mentioning the new fork should be put into commit message — there are many places where 7-zip.org only links to old p7zip, and there are many forks; but indeed true-upstream seems to prefer this fork as the new one
@ofborg build p7zip

@7c6f434c Thanks, done.

Maybe remove cross-commit references? Now they do not match (as Git seems to choose to include changelog into commit hash)

@7c6f434c

Maybe remove cross-commit references? Now they do not match (as Git seems to choose to include changelog into commit hash)

Just to be clear, you mean keep the This reverts commit 5e52a39. but lose the
p7zip is now switched to a maintained fork, see commit:
944f51c71328ce0e6bca32ad5da17738fa8a64c6

Correct?

Just to be clear, you mean keep the This reverts commit 5e52a39. but lose the
p7zip is now switched to a maintained fork, see commit:
944f51c71328ce0e6bca32ad5da17738fa8a64c6

Correct?

Well, only the second part (see commit)

@7c6f434c OK, done.

This probably needs to be Linked to the according #88147 Report

@Anton-Latukha Thanks, I missed that.

(looked up: ofborg complaint is about a warning instead of throw in an unrelated package on master)


Updates to install scripts

Adding some needed features, such as git pull capability.  Also
added option to specify make command line options.

Is there a reason we need "clone" and "pull" if pull performs both operations?


Adding convert module. Removing radian and degree.Issue #140

Do the checklist before submitting the PR:

[x] Have you read the guidelines mentioned in CONTRIBUTING.md?
[x] Have you squashed your commits?

Q: What version of Node.js you've used in the project? (e.g. Node v10.11.0)
A:v11.6.3
Q: Mention the Issue Number! (e.g. Fixed #8)
A:#140

Give additional information regarding the PR below:

Codecov Report

Merging #153 into master will not change coverage.
The diff coverage is 100%.

@@          Coverage Diff          @@
##           master   #153   +/-   ##
=====================================
  Coverage     100%   100%
=====================================
  Files          78     77    -1
  Lines        1282   1301   +19
=====================================
+ Hits         1282   1301   +19

Impacted Files
Coverage Δ

src/convert/index.js
100% <100%> (ø)

src/index.js
100% <100%> (ø)
:arrow_up:

Continue to review full report at Codecov.

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

I'm having some issues with Istanbul. It's giving a "branch not visited color code, even though I have explicitly given the cases. Can anyone please take a look into it if possible?


ci: three meta-stages (checkout, build, release)

What does this PR do?
Refactor the main pipeline in three meta-stages:

Checkout (it runs by default)
Build (it runs on branches and PRs) It's composed by all the stages but the opbeans or stable ones
Release (it runs for the main branch or tags). It's composed by the opbeans and stable stages.

I also removed the duplicated entries in the environment sections, when running for Windows then we might need to revisit this!
Why
See https://github.com/elastic/apm-agent-java/pull/2414#issuecomment-1020952186
Test
Default behaviour with a draft PR

:green_heart: Build Succeeded

the below badges are clickable and redirect to their specific view in the CI or DOCS

Expand to view the summary

Build stats

Start Time: 2022-01-25T13:20:53.020+0000

Duration: 34 min 43 sec

Commit: 5784142f924056af7f670758253f43efd07f6cfe

Test stats :test_tube:

Test
Results

Failed
0

Passed
2127

Skipped
11

Total
2138

:green_heart: Flaky test report
Tests succeeded.
:robot: GitHub comments
To re-run your PR in the CI, just comment with:

/test : Re-trigger the build.

run benchmark tests : Run the benchmark tests.

run jdk compatibility tests : Run the JDK Compatibility tests.

run integration tests : Run the Agent Integration tests.

run end-to-end tests : Run the APM-ITs.

run elasticsearch-ci/docs : Re-trigger the docs validation. (use unformatted text in the comment!)

/test

One potential downside is that Jenkins does not seem to properly display the steps as nested: https://issues.jenkins.io/browse/JENKINS-60651
So here the meta-stages and the nested stages are displayed sequentially.
I wonder if having the meta-stages implemented as a parallel block, even if they only have one item would help to somehow make it display correctly.

Meta stages are presented as green, but I don't really see the issue but a minor cosmetic UX. Bear in mind, the Blue Ocean is not maintained (https://groups.google.com/g/jenkinsci-users/c/xngZrSsXIjc/m/d606K7lHBgAJ)

I agree, let's not complicate the pipeline for the sake of making it look nice in Jenkins UI.


Error Ingress Monitoring

when deploy this:
#Deploy Besu
terraform apply -target helm_release.bootnode-2 -auto-approve && \
terraform apply -target helm_release.validator-4 -auto-approve && \
terraform apply -target helm_release.member-2 -auto-approve && \
terraform apply -auto-approve

Hello @iv7dev,
We identified a recently new version deployed by kubernetes/ingress-nginx. The latest version is helm-chart-4.8.0.
If you fix the version to helm-chart-4.7.1 will work.
on file besu.tf add line on version    = "4.7.1" on line 119, the code will looks like below
  resource "helm_release" "ingress-nginx" {
  depends_on = [helm_release.monitoring]
  name       = "quorum-monitoring-ingress"
  repository = "https://kubernetes.github.io/ingress-nginx"
  chart      = "ingress-nginx"
  version    = "4.7.1"
  namespace  = kubernetes_namespace.k8s-besu-namespace.metadata.0.name
  wait       = "true"

We will fix that soon
thank you


Handling transient errors when backing up to Azure URL

I occasionally see failed backups in one of my instances in an Azure VM that uses the backup to Azure BLOB storage feature. The errors generally look like this in the ERRORLOG:

Error: 18210, Severity: 16, State: 1.
BackupVirtualDeviceFile::RequestDurableMedia: Flush   failure on backup device   'https://.blob.core.windows.net//_LOG_20180509_003000.trn'.   Operating system error Backup to URL received an exception from the remote endpoint. Exception Message: The client could not finish the operation within specified timeout..

Working with Microsoft Premier Support, they had me add some trace flags that cause me to get BackupToUrl log files. The one that matches with the error above (timezone differences) has the following entries:

5/9/2018 12:35:02 AM:            An unexpected exception occurred during communication on VDI Channel.
5/9/2018 12:35:02 AM:            Exception Info: The client could not finish the operation within specified timeout.
5/9/2018 12:35:02 AM:            Stack:    at Microsoft.SqlServer.VdiInterface.VDI.AsyncIOCompletion(BlobRequestOptions options, List`1 asyncResults, CloudPageBlob pageBlob, Boolean onFlush)
at Microsoft.SqlServer.VdiInterface.VDI.PerformPageDataTransfer(CloudPageBlob pageBlob, AccessCondition leaseCondition, Boolean forBackup)
5/9/2018 12:35:02 AM:            The Active queue had 0 requests until we got a clearerror
5/9/2018 12:35:02 AM:            A fatal error occurred during Engine Communication, exception information follows
5/9/2018 12:35:02 AM:            Exception Info: The client could not finish the operation within specified timeout.
5/9/2018 12:35:02 AM:            Stack:    at Microsoft.SqlServer.VdiInterface.VDI.PerformPageDataTransfer(CloudPageBlob pageBlob, AccessCondition leaseCondition, Boolean forBackup)
at BackupToUrl.Program.MainInternal(String[] args)

After consulting with their internal groups, the Support Engineer replied to me today with the following (the bolding was highlighting in the email from Microsoft):

I was unexpectedly oof for most of the day Friday, and could not wrap up my conversations with PG on this. I have been working with them on yours as well as another case with similar symptoms – the common factor being the use of the backup script being found at https://ola.hallengren.com/ . Based on the analysis and conversations here is the current state:
•	Cause/Solution: As noted in the link below when there are sudden spikes in request load  for the storage account it could result in few request timeouts. The solution would be to retry the failed operation (in this case backups).  This is documented below:
https://docs.microsoft.com/en-us/azure/storage/common/storage-performance-checklist?toc=%2Fazure%2Fstorage%2Fblobs%2Ftoc.json#subheading14
Throttling/ServerBusy
In some cases, the storage service may throttle your application or may simply be unable to serve the request due to some transient condition and return a "503 Server busy" message or "500 Timeout". This can happen if your application is approaching any of the scalability targets, or if the system is rebalancing your partitioned data to allow for higher throughput. The client application should typically retry the operation that causes such an error: attempting the same request later can succeed. However, if the storage service is throttling your application because it is exceeding scalability targets, or even if the service was unable to serve the request for some other reason, aggressive retries usually make the problem worse. For this reason, you should use an exponential back off (the client libraries default to this behavior). For example, your application may retry after 2 seconds, then 4 seconds, then 10 seconds, then 30 seconds, and then give up completely. This behavior results in your application significantly reducing its load on the service rather than exacerbating any problems.
Note that connectivity errors can be retried immediately, because they are not the result of throttling and are expected to be transient.
So, please check to see if the script has some sort of a flag to retry the backup operations that fail due to transient conditions with storage accounts.
•	Long term: Product group is looking at implementing changes in code to retry the backup failures, but they are looking into pros/cons of the same and it will likely take a few more months before the fix (if approved) is in place.
We will also be working on documentation changes to reflect the learnings from these cases so that customers are betted informed about these issues.

The DatabaseBackup stored procedure does not seem to have any mechanism to retry on error. While I would think that Microsoft should have built this into the BACKUP command code when they added the backup to URL feature, I'm not optimistic about that happening any time soon.
I found this: https://support.microsoft.com/en-us/help/4023679/fix-timeout-when-you-back-up-a-large-database-to-url-in-sql-server-201, which claims the issue was fixed in SQL Server 2012 SP3 CU10, but we are running 2012 SP4 and the problem obviously still exists.  We've had the problem when backing up a 16 MB ldf, so their assertion that this happens only on "large" databases doesn't seem right. Or they fixed a different problem from the one I'm seeing. Regardless, I'm hoping that DatabaseBackup can be enhanced to retry on the appropriate errors.

There is currently no retry mechanism in DatabaseBackup, but it is a very good idea.
I would like to check some things. Could you send me the output - file from a failed backup job.

I'm not sure what you mean by an output - file. If you mean the file
specified in the @output_file_name for the job step, that gets overwritten
with every execution. I can update the job to append if that would be
helpful. I could then send you the relevant section when the next failure
occurs.
On Mon, May 14, 2018 at 5:07 PM Ola Hallengren<EMAIL_ADDRESS>wrote:

There is currently no retry mechanism in DatabaseBackup, but it is a very
good idea.
I would like to check some things. Could you send me the output - file
from a failed backup job.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/olahallengren/sql-server-maintenance-solution/issues/50#issuecomment-388963166,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AGHjPm512tCpQlLZIKljKh2jvswgsd2mks5tyfIdgaJpZM4T-P-6
.

Unfortunately I don't see any good way to implement this.
If I was going to do this, it should only be for certain errors, where the retry makes sense.
The backup command returns two error. The first error is the interesting one, and the second error is a generic backup error. The problem is that you can only get the second error in T-SQL.

Yes, this is the output - file I mean. Please set it to append or use the SQL Server Agent tokens for date and time.
$(ESCAPE_SQUOTE(SQLLOGDIR))\DatabaseBackup_FULL_$(ESCAPE_SQUOTE(JOBID))_$(ESCAPE_SQUOTE(STEPID))_$(ESCAPE_SQUOTE(STRTDT))_$(ESCAPE_SQUOTE(STRTTM)).txt

If I was going to do this, it should only be for certain errors, where
the retry makes sense.

That makes sense.

The backup command returns two error. The first error is the interesting
one, and the second error is a generic backup error. The problem is that
you can only get the second error in T-SQL.

That's sad. I've run into similar issues in other areas before, where T-SQL
hides the useful error information.
I checked the CommandLog, and the backup shows an ErrorNumber of 3013, but
a NULL ErrorMessage.
On Mon, May 14, 2018 at 5:28 PM Ola Hallengren<EMAIL_ADDRESS>wrote:

Unfortunately I don't see any good way to implement this.
If I was going to do this, it should only be for certain errors, where the
retry makes sense.
The backup command returns two error. The first error is the interesting
one, and the second error is a generic backup error. The problem is that
you can only get the second error in T-SQL.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/olahallengren/sql-server-maintenance-solution/issues/50#issuecomment-388968879,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AGHjPqabgiW1-b7kSqiu-7E5gdPzeZ3Cks5tyfcBgaJpZM4T-P-6
.

I set the jobs (one FULL, one LOG) to append to their output fules. I'll
let you know the next time I get an error. They are random - sometimes on
consecutive days, sometimes not for weeks.
On Mon, May 14, 2018 at 5:33 PM Ola Hallengren<EMAIL_ADDRESS>wrote:

Yes, this is the output - file I mean. Please set it to append or use the
SQL Server Agent tokens for date and time.
$(ESCAPE_SQUOTE(SQLLOGDIR))\DatabaseBackup_FULL_$(ESCAPE_SQUOTE(JOBID))$(ESCAPE_SQUOTE(STEPID))$(ESCAPE_SQUOTE(STRTDT))_$(ESCAPE_SQUOTE(STRTTM)).txt
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/olahallengren/sql-server-maintenance-solution/issues/50#issuecomment-388970098,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AGHjPiQ-62FdLT1kTrSJlmdJzpza8Bl7ks5tyfgNgaJpZM4T-P-6
.

I checked the CommandLog, and the backup shows an ErrorNumber of 3013, but
a NULL ErrorMessage.

Yes, this is the same issue. I am using the error variable. That only gives me the last error, for the logging, and no error message. However I will still get both errors in the output - file.
Here is an article about this issue:
https://blogs.msdn.microsoft.com/sqlprogrammability/2006/04/03/server-side-error-handling-part-2-errors-and-error-messages/

Just to chime in here, we are experiencing the same issue and are in the process of dealing with MS support.
If any error files are needed (or anything else) I will be more than willing to accommodate.

We are looking at this issue now. Will update once we have a solution.

I have confirmation from a Microsoft Support Engineer that the next CU for 2014 will be shipping with some retry logic for the BackupToURL functionality.

We currently experience the same random errors you are seeing and we are backing up exclusively to blob storage from a Azure D15 VM running Microsoft SQL Server 2016 (SP2-CU2) 13.0.5153.0 with 800 plus databases.
Retry logic built into the BackupToURL functionality would be extremely beneficial and I would welcome the addition in all SQL version.  As a workaround you could create a job to look at the CommandLog and generate your own syntax to reattempt the backup again.

I'm also experiencing what seems to be the same problem (on 2012 SP4).
Having found this thread, I'm experimenting over the weekend with using the built-in retry functionality in SQL job steps - as I run DatabaseBackup from a job anyway.

I have had confirmation that the fix for this has been delayed until the
next CU, and is affecting 2012, 2014, 2016, 2017 and all relevant SPs
On Sat, 8 Sep 2018, 02:42 Stuart Cuthbertson<EMAIL_ADDRESS>wrote:

I'm also experiencing what seems to be the same problem (on 2012 SP4).
Having found this thread, I'm experimenting over the weekend with using
the built-in retry functionality in SQL job steps - as I run DatabaseBackup
from a job anyway.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/olahallengren/sql-server-maintenance-solution/issues/50#issuecomment-419603673,
or mute the thread
https://github.com/notifications/unsubscribe-auth/Ac4jszG30kkqgoDAe3xjqaArQ43w9XR4ks5uYyBpgaJpZM4T-P-6
.

@GeorgePalacios: Nice! Last I heard, they were not going to provide this fix for 2012, so I'm glad to hear this.

Microsoft has now released a fix for SQL Server 2014 and SQL Server 2016.
https://support.microsoft.com/en-us/help/4463320/fix-intermittent-failures-when-you-run-backups-to-azure-storage-from-s

@olahallengren I found this topic and am experiencing very similar behavior on SQL Server 2017 EE, CU17. We backup dozens of DB's to Azure blob storage ranging from GB's to 5TB using your solution.
It works great most of the time, but I get the occasional 3013. It typically works the next attempt, but occasionally multi-attempt failures do occur. I have set the transfer and block size, I backup to 64 files, and the failures are usually not on the largest of the DB's.
I do not see any details in the log, error messages are null in CommandLog table. Any help or guidance to help achieve more stability would be great. Thanks for your time.

@durilai, what would you like to have? A retry parameter?


Change Tag char limit to 15, tag limit to 5, update in UG, add to proposed feature

Codecov Report

Merging #323 (10b3225) into master (4e9352d) will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff            @@
##             master     #323   +/-   ##
=========================================
  Coverage     71.30%   71.30%
  Complexity      805      805
=========================================
  Files           129      129
  Lines          2617     2617
  Branches        324      324
=========================================
  Hits           1866     1866
  Misses          665      665
  Partials         86       86

Impacted Files
Coverage Δ

src/main/java/seedu/times/model/tag/Tag.java
81.81% <ø> (ø)

Continue to review full report at Codecov.

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

LGTM


color resets to default

(.zsh/zsh-autosuggestions/src/config.zsh)
when changing ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE='fg=green'
and souring the file it works in the terminal until i open a new terminal; after which it resets to the default color. How can i make the change in color perminant?

(.zsh/zsh-autosuggestions/src/config.zsh)
when changing ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE='fg=green'
and souring the file it works in the terminal until i open a new terminal; after which it resets to the default color. How can i make the change in color perminant?

I think you're meant to run make in the parent directory (src/..)
and source the amalgamated file, not the individual files in src/.
That said, you're asking at the wrong place; that's a z-asug question,
not a z-sy-h question.
/cc @ericfreese

@ralpheeee88 see the instructions on configuration in the z-asug readme: https://github.com/zsh-users/zsh-autosuggestions#configuration
You need to run ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE='fg=green' in every shell session. The best way to do that is not to modify src/config.zsh but to add that line to your .zshrc. Make sure it comes after you source zsh-autosuggestions.zsh.
If you're still having trouble, feel free to open an issue in the z-asug issue tracker.

Super... Thxs guys!!!!


Inconsistent between network and 4to6GW in wireguard configuration

Version information

OS: docker Ubuntu 20.04
Branch: development
commit: 5e1d62a8949b9e93b7700614a1ff58906d4eddfa
Browser: Version 84.0.4147.125 (Official Build) (64-bit)
explorer: testnet

Network

4to6GW

Commit_ID bd546540e3930ce038ab925ef8c20011a65818fd , Branch  development


pm_sponsorUserOperation calldata hex contains 'NaN'

Executing a write function on a contract
with

viem 2.7.1
permissionless 0.0.35
results in

Validation error: not valid hex data at "params[0].callData"

Following Use Kernel Account how-to very closely gets me these logs:
Error: The method does not exist / is not available.

URL: https://api.pimlico.io/v2/arbitrum-sepolia/rpc?apikey=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
Request body: {"method":"pm_sponsorUserOperation","params":[{"sender":"0x6DcEEd434A4356e51583952974e228FCEbb64Db6","nonce":"0x1","initCode":"0x","callData":"0x519454470000000000000000000000009cc9ee1f0009025a981f2a9d785b648fdf6f4d1d0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000084fc9c5dfb0000000000000000000000000000000000000000000000000000000000000NaN00000000000000000000000001e36d100dba45e62924307adf7c42c9c60d6214000000000000000000000000187de399100aa962f209aa78621f5138aca6111f00000000000000000000000000000000000000000000000000005838928b100000000000000000000000000000000000000000000000000000000000","paymasterAndData":"0x","signature":"0x00000000fffffffffffffffffffffffffffffff0000000000000000000000000000000007aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa1c","maxFeePerGas":"0x7270e00","maxPriorityFeePerGas":"0x0","callGasLimit":"0x0","verificationGasLimit":"0x0","preVerificationGas":"0x0"},"0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789"]}

Details: Validation error: not valid hex data at "params[0].callData"
Version<EMAIL_ADDRESS>

Hey! How did you build the callData? It has NaN in the middle of it.

Which transaction are you sending? Simple ETH transfer works fine

Which transaction are you sending? Simple ETH transfer works fine

Hi! Nice to know. It was a tx executing a write function, same way as in the tutorial
https://docs.pimlico.io/permissionless/how-to/accounts/use-kernel-account#send-a-transaction
Data encoded with Viem, no NaN in hex representation.

Can you share the code? Also, try to encode the call data manually and put it into the data field.

Thanks for the suggestions, tried all that. I'd share the code as well, but it was 2 months ago, so I picked another AA library and that code is lost by now. Admittedly, I was new to both AA and TypeScript then, might have missed something.


Use --eth1-endpoint to determine whether to connect to an Ethereum 1.0 chain

To make it easier for the user, could we replace the --eth1-enabled CLI option with just being based on whether the user has supplied an Eth 1.0 endpoint using --eth1-endpoint?

Removed the --eth1-enabled documentation and updated the --eth1-endpoint description.
See:
https://github.com/PegaSysEng/doc.teku/pull/85


Pointing to the maintained migration scripts

What issue does this PR address?
Docs: The current site points to the old repo, which is archived.
Does this PR introduce a breaking change?
No.
Please check if the PR fulfills these requirements

[x] The commit follows our guidelines
[x] Unit Tests for the changes have been added (for bug fixes / features)

Other information:

Danke!


"usemin" is not compiling images in css

in my index.html
<!-- build:css({.tmp,client}) app/app.css -->
<!-- injector:css -->
<link rel="stylesheet" ng-if="!landing_page" type="text/css" href="assets/css/app.css">
 <link rel="stylesheet" ng-if="!landing_page" type="text/css" href="assets/css/icons.css">
  <!-- endinjector -->
<!-- endbuild -->

<!-- build:css({.tmp,client}) app/landing.css -->
  <!-- injector:css -->
<link rel="stylesheet" ng-if="landing_page" type="text/css"  href="assets/css/landing.css">
 <!-- endinjector -->
<!-- endbuild -->

I can't find a way to add the ng-if to the compiled version ,
also the usemin is not compiling the images inside the css files

@noortotah could you try the dev branch ?
We have move to an HTML parser so it should not remove attributes.

Thats probably not the best way to do that as you are loading the css after the JS has already run which means the css wont load until after your site is loaded and running. Your users will probably get FOUT which might not be a fast flash.

@eddiemonge good catch :)
@noortotah you should probably try another approach. There are other options to lazy load CSS files like  filamentgroup/loadCSS or any other alternatives. In your case you need to have at least Angular to be injected in your page before applying the CSS file.
It might be helpful to have a third CSS file with all fonts and text styles to be loaded at first.


Installing tensorflow-text issue

ERROR: Could not find a version that satisfies the requirement tensorflow-text<2.4.0,>=2.3.0 (from spacy-universal-sentence-encoder) (from versions: none)
ERROR: No matching distribution found for tensorflow-text<2.4.0,>=2.3.0 (from spacy-universal-sentence-encoder)

Hi @fauzantaufik ,
Which OS are you using? Is it Windows?
What is the output of pip install tensorflow-text==2.3.0? Is it failing too? I know there are some problems for Windows and still tensorflow 2.3 does not include a Windows target for the package tensorflow-text (https://github.com/tensorflow/text/issues/291).
tensorflow-text is required to run the multilingual models, as you can see on the TensorFlow Hub examples:

xx_use_md: https://tfhub.dev/google/universal-sentence-encoder-multilingual/3
xx_use_lg: https://tfhub.dev/google/universal-sentence-encoder-multilingual-large/3

They said this library will be made available for windows in the next release (https://github.com/tensorflow/text/issues/291).
For the English models the library is not required, but it is imported anyways. Which models are you trying to use? English or multilingual?
Cheers,
Martino

Hi @MartinoMensio , I'm trying to use spacy-universal-sentence-encoder for English models. I am also working with Windows machine and running into the tensorflow-text error. Any workarounds for this?
Thanks!

Hi @jcardenas14,
I just moved the tensorflow-text dependency to multilingual models only. You should be able to install and use English models on Windows. The new version is v0.3.4 (available on pypi https://pypi.org/project/spacy-universal-sentence-encoder/ and GitHub https://github.com/MartinoMensio/spacy-universal-sentence-encoder/releases/tag/v0.3.4)
Let me know if it works for you! :)
Martino

I am closing the issue supposing it is now solved. Please reopen if it is not.
Martino


Add "text-top" vertical align

Issue
Placing two inline-blocked divs next to each other will cause the second div to align in the middle of the first one, resulting in a step-like alignment of divs.
Reason
The next div in the inline-block'ed elements will inherit the vertical-align of the div previous to it, which is usually middle. resulting in this step-like alignment.
Solution
Adding "text-top" to the .d-inline-block class will solve this issue, as all divs placed by each other will take from this inline-block.
Side note
Although this issue is usually avoided by using bootstrap's grid system, sometimes developers need to place two elements next to each other without the grid system (or inside it) hence this will solve a kind of mysterious behavior for most developers.
Example
http://jsfiddle.net/bLcqLo5L/

This goes against the principles behind these utilities—they shouldn't be mixing in other properties and values like this. However, there's a change coming in the next alpha that will add additional vertical alignment utilities. More on that soon.
Thanks though!

See #20932 for those alignment utils.

@mdo great


Add peek() for Shared

In many situations it is useful to be able to get the value of a Shared future if it has already completed for some other purpose... particularly since waiting for it might trigger work that would not have been necessary otherwise.
To avoid a schrödinger's cat situation, this change adds a peek method for Shared.

This looks reasonable to me.

Thanks!


[FEATURE] Enhance the Set-PnPContentType commandlet to be able to set Form Customizer properties

Describe the solution you'd like
I'd like to be able to use Set-PnPContentType to configure SPFx form customizers
we could add extra options for all the things that you need:

DisplayFormClientSideComponentId
DisplayFormClientSideComponentProperties
NewFormClientSideComponentId
NewFormClientSideComponentProperties
EditFormClientSideComponentId
EditFormClientSideComponentProperties

Maybe we could add an additional set of convenience options as well, to update ALL the values in one go:

FormClientSideComponentId
FormClientSideComponentProperties

Describe alternatives you've considered
Of course, we can use CSOM to do it. But using Set-PnpContentType is quicker.
Example
Connect the default item content type to a form customizer:
Set-PnPContentType -Identity 0x01 -NewFormClientSideComponentId "eeaf0028-726a-4c85-a931-13cfb83b0b8f" -EditFormClientSideComponentId "eeaf0028-726a-4c85-a931-13cfb83b0b8f" -DisplayFormClientSideComponentId "eeaf0028-726a-4c85-a931-13cfb83b0b8f"

Connect the default item content type to a form customizer with properties:
Set-PnPContentType -Identity 0x01 -NewFormClientSideComponentId "eeaf0028-726a-4c85-a931-13cfb83b0b8f" -EditFormClientSideComponentId "eeaf0028-726a-4c85-a931-13cfb83b0b8f" -DisplayFormClientSideComponentId "eeaf0028-726a-4c85-a931-13cfb83b0b8f" -NewFormClientSideComponentProperties '{ "someProp": "Some value"}' -DisplayFormClientSideComponentProperties '{ "someProp": "Some value"}' -EditFormClientSideComponentProperties '{ "someProp": "Some value"}'

If you like the idea you can assign me if you want. 🤙

All yours @martinlingstuyl 😊🙏


[ GPU ] Enable x86 OpenCL with some fixes

Current OpenCL option is not fully enabled for x86 environment.
Even with https://github.com/nnstreamer/nntrainer/pull/2727, we may face some build error like:

/home/donghak/Desktop/workspace/nntrainer/nntrainer/opencl/opencl_program.cpp:73:10: error: variable length array ‘binaries_size’ is used [-Werror=vla]
   73 |   size_t binaries_size[num_devices];
      |          ^~~~~~~~~~~~~
/home/donghak/Desktop/workspace/nntrainer/nntrainer/opencl/opencl_program.cpp:98:8: error: variable length array ‘kernel_names’ is used [-Werror=vla]
   98 |   char kernel_names[kernel_names_size];
      |        ^~~~~~~~~~~~
/home/donghak/Desktop/workspace/nntrainer/nntrainer/opencl/opencl_program.cpp:113:18: error: variable length array ‘binaries_ptr’ is used [-Werror=vla]
  113 |   unsigned char *binaries_ptr[num_devices];

as mesntioned in https://github.com/nnstreamer/nntrainer/pull/2770.

In order to fully enable OpenCL for x86 environment, some compilation error should be handled.

:octocat: cibot: Thank you for posting issue #2776. The person in charge will reply soon.

https://github.com/nnstreamer/nntrainer/pull/2727 is resolving this issue. It can be fixed after the PR is merged.

Upon the resolving PR, it still has some build error for x86 without enable-fp16=true option. It needs to be fixed.


@field_validator not working when wrapped with @classmethod

Initial Checks

[X] I confirm that I'm using Pydantic V2

Description
I was trying around with pydantic, when I came across this issue. None of my fields got validated. My error was, that I had put the classmethod decorator before the field_validator. After some thought on why Pydantic behaves like that, the reason for this issue is pretty clear to me, but it is a pitty for me either way. Is it possible to add support for this way of doing it?
Example Code
from pydantic import BaseModel, field_validator

class Model(BaseModel):
    a: str

    @classmethod  # This causes that pydantic doesn't discover the field_validator
    @field_validator("a")
    def validate_a(cls, v: str) -> str:
        if v == "a":
            raise ValueError("a is not allowed")
        return v

if __name__ == "__main__":
    model = Model(a="b")  # This should work
    model2 = Model(a="a")  # This should raise a ValueError, but it doesn't

Python, Pydantic & OS Version
pydantic version: 2.7.2
        pydantic-core version: 2.18.3
          pydantic-core build: profile=release pgo=true
                 install path: C:\Users\jakob\PycharmProjects\exp-coord-server\.venv\Lib\site-packages\pydantic
               python version: 3.12.1 (tags/v3.12.1:2305ca5, Dec  7 2023, 22:03:25) [MSC v.1937 64 bit (AMD64)]
                     platform: Windows-11-10.0.22631-SP0
             related packages: pydantic-settings-2.2.1 typing_extensions-4.12.0
                       commit: unknown

Hey hello!, classmethod must go below of field_validator. Internally pydantic when is building the model schema Iooks at all the decorators defined in the class, and through successive calls to isinstance method, it is able to identify field_validators, model_validators and all the special pydantic decorators. If you put @classmethod before @field_validator then due the way pydantic is built, this will be treated as just another class method with no special meaning. The docs say that classmethod must be placed below for typecheckers https://docs.pydantic.dev/latest/concepts/validators/#field-validators

Hi @HomerusJa,
Thanks for your question. See this section of the docs for clarification.

@field_validators are "class methods", so the first argument value they receive is the UserModel class, not an instance of UserModel. We recommend you use the @classmethod decorator on them below the @field_validator decorator to get proper type checking.

This isn't likely to be changed in the future, so we'd recommend using the @field_validator decorator first and the @classmethod decorator second.


How do you nest components?

Hello. I was wondering if there was a way to nest components with react_component? It seems like it would be handy for that method to accept a block, to enable nesting.
I.E.
<%= react_component('Container') do %>
  <%= react_component('Grid') do %>
    <%= react_component('Cell') do %>
      Cell Contents 1
    <% end %>

    <%= react_component('Cell') do %>
      Cell Contents 2
    <% end %>

    <%= react_component('Cell') do %>
      Cell Contents 3
    <% end %>
  <%= end %>
<% end %>

Hi Brent. This is not the way React works. You need to have your nested components called in your Container's render method: https://facebook.github.io/react/docs/components-and-props.html#composing-components

Thank you. I'm really fresh to React, and I think I realized that a couple days after asking this.


add psalm plugin

TBD

This should be a separate package, shouldn't it?

done: https://github.com/patchlevel/event-sourcing-psalm-plugin


Vidit msft/regenerate sdk for sql

Contributing to the Azure SDK
Please see our CONTRIBUTING.md if you are not familiar with contributing to this repository or have questions.
For specific information about pull request etiquette and best practices, see this section.

Thanks @archerzz , I have updated the API,


Move extension methods to Aspire.Hosting namespace

Move extension methods for Azure Functions and Azure Container Apps to the Aspire.Hosting namespace.
Microsoft Reviewers: Open in CodeFlow

Thank you!


Deleted all Packages and Settings

I installed actual version via Package Control and then all Packages were gone and not saved anywhere!

Hi Lucas,
I'm extremely sorry for this inconvenience. This is the first I am hearing
of this issue and would be glad if you could please revert with the console
logs. This is what you could do to help me and other PackageSync users:
launch sublime and take the sublime logs after 5 seconds --> install any
package that you use and copy the console logs 5 seconds after it is
installed --> relaunch sublime and save the console logs.
It would be great if you could please send me these three logs through to
help me debug your issue.
Also, please send me a list of packages you use so that I can ensure that
none of them are conflicting with PackageSync.
--
Thanks & Regards,
Utkarsh Upadhyay,
+91-995-321-9784
(Sent from my Mi Phone . Please ignore typos, if any.)
On 25 Nov 2015 13:03, "Lucas Recknagel"<EMAIL_ADDRESS>wrote:

I installed actual version via Package Control and then all Packages were
gone and not saved anywhere!
—
Reply to this email directly or view it on GitHub
https://github.com/utkarsh9891/PackageSync/issues/2.

Hey Utkarsh,
I´m sorry for that late response. I could not collect this logs because I have instantly refreshed all of my Sublime stuff because I need it to work. But here is my plugin list:

Babel
Can I Use
Color Highlighter
DocBlockr
EncodingHelper
Indent XML
JavaScript Snippets
LaTeXing
LineEndings
Predawn
Predawn Monokai
ReactJS
SideBarEnhancements
SublimeCodeIntel
Sublimemerge Pro
TrailingSpaces
W3CValidators

I hope this help you to solve the issue.
Cheers Lucas

Hi Lucas,
I tried several times with the combinations of the packages you mentioned. I myself use almost all of these packages myself but have never faced the said issue.
Can you please try installing PackageSync once again and provide me the Sublime logs?
If you are afraid of your packages getting lost, do the following before installing PackageSync:-
Launch Sublime & go to "Preferences -> Browse Packages". From there, take a backup of the "Users" folder. Once, done, install PackageSync and revert with the Sublime console logs if you face any issues.
If your package get deleted, just restore the "Users" folder backup & you would be good to go.

Hi Lucas,
Did you try using PackageSync once again?
I still haven't come across anyone who has faced an issue similar to yours. Please revert if you still have this problem. Otherwise, I may have to close this issue on Github.

Hi Utkarsh,
I tried it again and it works now, I am sorry for that late response.
I don´t know why this happend to me at the first time.
Thanks for you great help :+1:

Great. :+1:
Happy Syncing. :)


Consolidate bumpversion config in .bumpversion.cfg

The bumpversion script first checks for configuration settings in .bumpversion.cfg and then in setup.cfg so I just consolidated them all in .bumpversion.cfg. This is the same as how things are set up in squid-py, so it should work fine.
Note that I removed the [bumpversion:file:brizo/__init__.py] section because that file is empty, so there's no version number to bump in there.
Note that run.py also reads the .bumpversion.cfg file to determine the current version.

I don't know why the tests are failing in Travis. The problem doesn't seem to be related to anything I changed.

The analogous pull request in the Aquarius repo ( https://github.com/oceanprotocol/aquarius/pull/122 ) passed the Travis tests with no problems.

I am reviewing the reason for the failing job, could be a punctual travis failure. @ttmc

I tried something just now (which led to commit 94e2ae1 ): I compared the .travis.yml to the one in squid-py and noticed some differences...


vivaldi: problem to open the options

with a right click on the icon . options do not open, with the Vivaldi web browser (chrome based)

Sorry for the problem. It seems that Vivaldi and some other browsers does not support extensions' context menu yet.
In fact, putting options in extensions' context menu is not a popular practice. I will try to move options to the popup ui in the next version to achieve better compatibility across browsers.
I am really busy in the next days and I will finish it in late June. You can use other bookmarks extensions first. I believe there are some good alternatives in the chrome store.

Thank you for your reply

Options will be in the popup menu in the next release.


allow command arguments and machine-readable output

I have a suggestion that would help the commands be more useful to those creating scripts. It would also help the commands be used together in interesting ways.
Right now, many of them are interactive. They take an argument but you can't provide it as a command argument, you have to wait until the command runs and then you're prompted. For example, with ip_geo, you're prompted what IP address you want. I noticed the stock and currency commands work this way too.
What I think would work better is if the command also allowed you to specify the argument as you run it, to avoid being prompted, for example. I could run ip_geo like:
ip_geo 123.234.345.456
and get its output.
To go along with this, it would be neat if we could use options for the commands to make them only output pieces of data, so that they could be piped into other commands (perhaps even other Ruby-Scripts commands). For example, I could use an option for only outputting the WAN IP from ip_list and use it this way, with ip_geo (-m for "machine output" etc):
ip_list -m wan | xargs ip_geo -m isp
...and I'd end up with only my ISP name in stdout.
What I envision is a sort of syntax with an option (like my -m option above) to specify which output values you'd want. Perhaps, with ip_list, the option -m wan,lan1 would print just the WAN address followed by the first LAN address, with a default delimiter (maybe a space). If all the commands were built this way, they could be combined in interesting ways.

Agreed. Once you get used to the scripts, it doesn't make sense to prompt for input after while, and would be better served as an command line argument.
The specific flags are definitely possible using Optionparser, and would be useful when trying to pipe the output data to other programs.
I'll start off by allowing arguments to be passed to the programs to circumvent the prompts for input.
After that I'll see about adding flags to allow for plain output from the programs for easy piping.

ip_geo now has two additional capabilities
ip_geo <IP_ADDRESS>

ip_geo -m ip <IP_ADDRESS>

Other arguments for the -m flag are: [ ip, city, region, country, zip, isp ]
Right now you can only have one field after the -m , but I'm looking for a solution where you could pass multiple like below.
ip_geo -m ip city isp <IP_ADDRESS>

Enjoy!

After thinking about it, I think it makes more sense to wrap all three of these ip scripts into a single program, with a well designed cli interface with flags, options, and arguments. I think that's more valuable than a smattering of single function scripts. Better to get it all in one place.

This should be fixed by the netgeo script, as all output should be machine readable by default.


changed the UI of demo app

Made some UI changes to the demo app and removing share features which was added previously by mistake (git problems)

I gave a few comments in MainActivity.java.
After MainActivity.java is updated you can merge it.


How to "fix (sticky)" sidebar items on scroll?

Thanks for these great components!
I am looking to have the sidebar fixed and not scroll-up with rest of the content on the page, how can I achieve this?

Found a solution to this, it was actually quite easy :)
Just had to add a className to dtc.Sidebar() and then in my css file added a single line
.sidebar{
  position: fixed;
}


Make element ids unique in docs to fix navigation

This is really cool, and definitely something that needs to be fixed.
Unfortunately I can't merge this because this file is actually generated and so it would be overwritten the next time I do a build :crying_cat_face:
The tool that generates the docs is kinda old and clunky olivernn/dox-template. I haven't had time to fix up any issues with it, or keep it up to date.
If you have the time to perform the fix in that tool I'd be more than willing to accept a pull request. I'm in no way attached to using dox for generating the API docs, so if there is some newer/better tool that lunr could be using please suggest one!


error running filter with recent pandoc

Using the filter with pandoc version <IP_ADDRESS> results in the following error, potentially related to https://github.com/jgm/pandoc/issues/5331
Error running filter ./pandoc-ling.lua:
Could not get Meta value: Could not read value of key-value pair: Could not get MetaValue: Could not read list: Could not get Block value: Unknown block type: MetaBlocks

Fix: Changing line 83:
    tmp[#tmp+1] = pandoc.MetaBlocks(pandoc.RawBlock("tex", s))

to the following fixes the problem, and seems to produce an identical result (I haven't tested this thoroughly):
    tmp[#tmp+1] = pandoc.RawBlock("tex", s)

I just tried it with 2.11.4 and I don't get any errors. Could you please try again with that newer Pandoc version?

Yes, this seems to be fixed in the latest pandoc release.


migrate from npm to yarn

Migrate from npm to yarn

Abandoned this due to some weird issues with preflight checks on mac.


Document creating the ID of the sent message

[ ] In the README and examples
[ ] expose the code of creating WhatsApp-like ID as an exported function

Re #43

BTW: I'm up for help/contributing, but I would need a green light or suggestions on how to implement things.

@KrzysztofMadejski Hi, help is always appreciated:)
Exposing that function would be nice idea to help the user. I'm not at my workstation at the moment, so that could be your first little contribution. If you create a PR, I will approve it bretty quickly.
In general some of the functions inside the contact.go are pretty rudimentary implemented and return a <-chan string. The string from the channel (if any) is a json marshalled object. Each function should return their own struct with all information from the json inside. Another good way of helping would be to answer some of the open issues and try to help the community. Often it is pretty hard to reproduce some of the errors, so help is very much appreciated.


tools/preload should use relative directories

Minor change that I'm noting for now. The new CLI code ends up printing absolute directories, which works but is not robust to potential directory changes.

I believe this is now irrelevant, because we stripped out the demo.


The Visualisation buttons should be the same shade of grey as the wheel menu buttons

Merging with #9904


use GetTransactions method for fetching tickets

This PR replaces the use of getTicket method with GetTransactions to fetch wallet tickets. It uses different transaction filters to fetch tickets with different status.
Fix #546
Fix #580
Fix #570
Fix #474
The ticket activity page and section on the overview page are commented out. The code implemented looks like a duplicate of the ticket list page and having it as part of the ticket module is redundant. I suggest that page be reviewed before it is added back as an accessible feature.

Even after selecting a wallet with enough funds, the Review Purchase button is disabled


Skip extract audio when processed result existed

The current code will still repeat to extract audio:
class Preprocessor:
    def pre_process(self, paths, noise_suppress=False):
        for i, path in enumerate(paths):
             ...
            paths[i] = extract_audio(path)

        ...
        preprocessor = Preprocessor(paths, options=self.preprocess_options)
        paths = preprocessor.run(noise_suppress)

Will be fixed in the next minor release.

Fixed in v1.6.0


Language detected is wrong when using comments inside the block

Describe the issue/behavior that seems buggy
Whenever a code block contains code in comments, the CSS class(es) applied to the code block is of a different language which will naturally screw up the syntax and the visual apparence of the text.
I could reproduce this issue with, at least, objectivec and swift.
Sample Code or Instructions to Reproduce
When writing:

And:

It produces the wrong highlighting:

If we take a look at the classes added:
For the Objective-C block:

It's identifying the block as an SQL code block...
For the Swift Block:

It's identifying the block as a bash code block...
If we remove the comments from the markdown

Expected behavior
I expected the code blocks to appear correctly with the comment syntax.
Additional context

I'm using mkdocs to process my markdown.
I'm using version 11.1.0 of highlightjs

I'm confused because I don't see any Highlight.js specific CODE here... We highlight markdown, but we do not sub-highlight code blocks.  Something such as:
```basic
10 PRINT "HELLO"
```

Would be highlighted as:
<span class="hljs-code">
```basic
10 PRINT "HELLO"
```
</span>

It is our policy to highlight Markdown NOT render/parse it... which means that all back-block are nothing more than code to us, not specific types of code that need their own highlighting.  I think perhaps you issue is with mkdocs, not us.

Ping. can you provide additional detail?

Turns out it was a problem on our end, on the way we were using our stylesheets :) Nothing to do with highlightjs, sorry for the false ticket!