Kundera Cassandra sequence table created but queried with wrong column names

Kundera auto generates a unique value for a field when annotated with  @GeneratedValue(GenerationType.TABLE)
I can tell that kundera maintains a single column family for this with the different rows representing sequence for calling entities. However, this is not working as expected because the key column created has a column name "key" while kundera queries with 'sequence_name'.
As a fix, I have altered the table "kundera_sequences" and changed the key column name to "sequence_name".
 ERROR c.i.c.cassandra.CassandraClientBase - Error while executing query Update "kundera_sequences" set "sequence_value" = "sequence_value" + 1 where "sequence_name" = 'usertest'
 ERROR c.i.c.cassandra.CassandraIdGenerator - Error while using keyspace. Caused by: .
com.impetus.kundera.KunderaException: InvalidRequestException(why:Unknown key identifier sequence_name)
	at com.impetus.client.cassandra.CassandraClientBase.execute(CassandraClientBase.java:2577) ~[CassandraClientBase.class:na]
	at com.impetus.client.cassandra.CassandraIdGenerator.generate(CassandraIdGenerator.java:108) ~[CassandraIdGenerator.class:na]
	at com.impetus.kundera.persistence.IdGenerator.onTableGenerator(IdGenerator.java:208) [IdGenerator.class:na]
	at com.impetus.kundera.persistence.IdGenerator.generateId(IdGenerator.java:77) [IdGenerator.class:na]
	at com.impetus.kundera.persistence.IdGenerator.generateAndSetId(IdGenerator.java:58) [IdGenerator.class:na]
	at com.impetus.kundera.graph.GraphGenerator.onPreChecks(GraphGenerator.java:229) [GraphGenerator.class:na]
	at com.impetus.kundera.graph.GraphGenerator.generate(GraphGenerator.java:127) [GraphGenerator.class:na]
	at com.impetus.kundera.graph.GraphGenerator.generateGraph(GraphGenerator.java:78) [GraphGenerator.class:na]
	at com.impetus.kundera.persistence.PersistenceDelegator.persist(PersistenceDelegator.java:130) [PersistenceDelegator.class:na]
	at com.impetus.kundera.persistence.EntityManagerImpl.persist(EntityManagerImpl.java:174) [EntityManagerImpl.class:na]
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_51]
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_51]
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_51]
	at java.lang.reflect.Method.invoke(Method.java:497) ~[na:1.8.0_51]
	at org.springframework.orm.jpa.ExtendedEntityManagerCreator$ExtendedEntityManagerInvocationHandler.invoke(ExtendedEntityManagerCreator.java:344) [ExtendedEntityManagerCreator$ExtendedEntityManagerInvocationHandler.class:4.1.4.RELEASE]
	at com.sun.proxy.$Proxy43.persist(Unknown Source) [na:na]

@genteel
This happens when runnning it with CQL2.
Try running it with CQL3 by setting property at emf or em level. Following is the wiki and test case link to set CQL3.
-Amit

@amit-kr  I'm using CQL3 not CQL2. And I have it set this way:
 @PersistenceContext(unitName = "cassandra-pu", type = PersistenceContextType.EXTENDED)
    public void setEntityManager(EntityManager entityManager) {

        Map clients = (Map) entityManager.getDelegate();
        Client client = clients.get("cassandra-pu");
        ((CassandraClientBase) client).setCqlVersion("3.0.0");
        this.entityManager = entityManager;

    }

@genteel
You are setting CQL version at EntityManager level but your tables are being created when you create EntitymanagerFactory which is by default using CQL2. Please try to set CQL version before creating tables i.e. while creating EntityManagerFactory (as suggested by @amit-kr ).
Map propertyMap = new HashMap();
propertyMap.put(CassandraConstants.CQL_VERSION, CassandraConstants.CQL_VERSION_3_0);
EntityManagerFactory emf = Persistence.createEntityManagerFactory("cassandra-pu",propertyMap);

-Karthik

@genteel
Any update ?
Chhavi

@chhavigangwal I've moved away from using Cassandra after a benchmark with other NoSQL databases wasn't impressive. In fact, MySQL database had better performance than Cassandra; Mongo was light years ahead of both. However, @karthikprasad13's comment spots a good temporary fix on this issue.

Closing with Kundera 3.1 release


Drops-max-card-width

Thank you for your contribution to the KodaDot - One Stop Shop for Polkadot NFTs.
👇 __ Let's make a quick check before the contribution.
PR Type

[x] Bugfix

Needs Design check

@exezbcz please review

Context

[x] Closes #8111
[ ] Requires deployment <snek/rubick/worker>

Did your issue had any of the "$" label on it?
yes , $

[x] My DOT address: Payout

Screenshot 📸

[x] My fix has changed UI

Copilot Summary

🤖[deprecated] Generated by Copilot at 2b39045
Improved the drop card component by adding text truncation and responsive grid layout. Modified DropCard.vue and Drops.vue files.

🤖[deprecated] Generated by Copilot at 2b39045

is-ellipsis class
truncates collection names
cleaner drop cards

nice! could you please align the cards to the left

otherwise oki, thanks

nice! could you please align the cards to the left
@exezbcz  Done :)

@prury lol where did the stroke go

mobile got changed a bit on smaller screens: ❌
thx @prury
fixed

thanks!
pay 20 usd

😍 Perfect, I’ve sent the payout
💵 $20 @ 5.13 USD/DOT ~ 3.899 $DOT
🧗 1cAsKZYNRb8dkSCpn4eVkEn6ycNZTGoDo5dGDgB8J1UUWK8
🔗 0x194607760817026d46240f6a97f12010535712117a9fc55a82a3768209f74b6c
🪅 Let’s grab another issue and get rewarded!
🪄 github.com/kodadot/nft-gallery/issues


Using custom data in post context

Hello, I'm planning for migrating my blog in Jekyll to Ghost and I am wondering how can I add custom metadata to each post and render it with a format like {{content.my_custom_data}}. In Jekyll, I can do that via {{page.my_custom_data}}. So, how can I do that in Ghost, may be with Handlerbars?

Hi there @gowthamgts, it's great to hear you want to switch. We ask that you please do not use GitHub for questions and support - this where we keep track of issues and bugs in the software. We have a slack community or alternatively you can always use stackoverflow when you need help.

@ErisDS Thanks I don't know about slack. I asked in SO but I didn't got any attention, so I came here. Thanks.


various updates and improvements for v0.3.0

merge of #16
prepare v0.3.0
dependency updates
code improvements
example improvements

Hm. @toothbrush7777777 I can't merge it like this, unfortunately.
If you run cargo run --example show_chars_in_window --features all, you will see:

The � character is pretty wide. How do we want to solve this? Jetbrains IDEs solve
it like this:

They just center it and cut it at the edges.

@phip1611 Okay, I'll add some extra code to check if the character is too wide. Do you want to scale the character down or use only the centre part?

I'm not sure what's the right thing to do, either.
If it's not too complicated, you can try to make the symbol smaller. Otherwise, we should center it and cut it at the edges

@toothbrush7777777 Any update?

The replacement character glyph does not exist in the Noto Sans Mono font. That glyph is coming from somewhere else.
I tried a couple of things with centring the glyph, which seems to work as far as I can tell, but I see an outlined box, not the glyph that you see, so I can't tell for certain.

Anyway, I've fixed it in #18 by centring the glyphs.

I still have this on my list! Sorry for the long delay

This is a screenshot of the current rendering in https://github.com/rust-osdev/bootloader (on the right). The left side shows my system's default mono space rendering using Source Code Pro as font:

So either something that we do or Noto Sans Mono itself causes the high line height. Nevertheless, I think that this is the best that we can get - for what it is.


[FEATURE] Calendars list needs to be updated

Is your feature request related to a problem? Please describe.
Currently there are many calendars in the list, but most of them are event calendars. These need to be updated to use only master calendars. Master calendars are a fairly static list and hence we don't have to change them very often.
Describe the solution you'd like
Update the current calendar list to user master (or main) calendar list. Before this can be done, the current list of master/main calendars need to be obtained.

Gathered updated list of calendars from WebTools team, but this task will take more time as it needs curating the list of calendars.

This is not needed as now we have a single calendar with all events marked for the Illinois app.


Fix deployment failure due to "An unexpected error occurred: "Invalid protocol: git:"."

I just followed the suggestion here. I'm not sure if it fixes the issue, but I think it's worth giving it a try.

@yuki24 - which package did you end up upgrading? All that have git://?

@damassi It's artsy-xapp. I manually commented out the<EMAIL_ADDRESS>"artsy-xapp@git://github.com/artsy/artsy-xapp.git": block and ran yarn upgrade artsy-xapp.

🤞

Thanks! Let's see how the deploy goes...


Ownership

@dcousens can you either publish version 3.0.0 or give me permission to? publicEncrypt and browserify-sign are waiting on this to be modularized

@calvinmetcalf added you as a maintainer :), going to update/run https://github.com/crypto-browserify/ownership now to add everyone else.
Will publish 3.0.0 momentarily :)

We need to merge #5, then we can go to 2.0.2.  3.0.0 shouldn't be necessary?

we no longer have the inject functionality that crypto-browserify relied on so that's why it was a major version bump

@calvinmetcalf oh true.  I guess 3.x.y is fine then.

@calvinmetcalf oh true.  I guess 3.x.y is fine then.  Still needs #5 to be usable though.

what do you mean about it not being usable now?


type="number", step, min, etc...

A couple of bugs in the current implementation of type="number".
According to the spec, we should have:

min
step
ok values
bad values

∅
∅
4, 4.0
4.2

2.1
∅
4.1, 5.1
4, 4.2

∅
0.1
4.1, 4.10
4, 4.2

2.1
0.2
2.3, 3.30
4, 4.2

∅
"any"

2.1, 2.11111

2.1
"any"
2.09
2.1, 2.1111

Values in bold are treated incorrectly. The min column is actually either the min attribute, or the initial value attribute.

Fixed


Log 'Clear All' confused with clearing search.

This morning I had a customer complain their c5 Log was empty.
Turns out they had entered a compound search/filter, then decided to clear the search and clicked 'Clear All'.
Looking at the Log page with fresh eyes, the controls are confusing and misleading.
This could be clarified by:
a) Add a new and distinct 'Clear Search' button on the search line.
b) Change the wording of 'Clear All' to 'Delete All'
c) Moving the now 'Delete All' button out from the middle of a bunch of fields and buttons that relate to searching and filtering. Place it top-right in the header, to the left of the Export to CSV button

I agree it's confusing – I think we ought to move it up to the header as you describe in option c.


Feature/engine api override

PR description
Allow besu to have the engine api enabled, when there are not merge configs.  includes:

un-hiding/un-deprecating --engine-rpc-enabled
remove old isMergeEnabled checks in a few block header validators
use merge-specific block header validator, rather than appending to MainnetBlockHeaderValidator

Tested with Hive and Kurtosis since this affects block validation.  Both are 🟢
Fixed Issue(s)

fixes #4172
Documentation

[ ] I thought about documentation and added the doc-change-required label to this PR if
updates are required.

Changelog

[ ] I thought about the changelog and included a changelog update if required.

Just today there was a discussion on Discord that revealed that all CL clients already use a placeholder TTD for mainnet. So I guess the easiest would be to just use that one instead:
https://discord.com/channels/595666850260713488/892088344438255616/1002018160268038164


Time requirements?

The course is described as being "12 weeks, 24 lessons", but it doesn't give an idea as to how much time is required to complete each lesson.
I'd like to do the course, but I need to figure out if I've got time in my current schedule.

hi, good question! You should treat the lessons as a virtual lecture room - so a professor would lecture for about an hour (equivalent to reading the lecture and doing two in-class quizzes) and then you'd do homework (knowledge checks/assignments/challenges) - those probably take about one to two hours per lesson. I'd suggest walking through the 4 introductory lessons and seeing how they go. You can use the discussion board as well to track your time!


"Expected type table" error when accessing property with same name and type of union types

If there is a value with a union type, and those 2 types share a property of the same name and type, trying to assign that property without refining the union type will throw an error in the LSP, whereas in the Roblox Studio script editor it does not say anything.
For example, having a value of type TextLabel | TextBox and trying to assign the Text property will cause the LSP to return "TypeError: Expected type table, got 'TextBox | TextLabel' instead".

Type errors are Luau issues. Curious why it is not reported in Studio, but I assume it is because you got an any type in Studio
This is the issue upstream: https://github.com/luau-lang/luau/issues/533

When i declared the value i explicitly added the type annotations. Hovering over studio in fact does not say any


CoreDNS : Failed to pull image on Rasberry PI

Environmental Info:
K3s Version:

pi@raspberrypi:~ $ k3s -v
k3s version v1.20.5+k3s1 (355fff30)
go version go1.15.10

Node(s) CPU architecture, OS, and Version:

pi@raspberrypi:~ $ uname -a
Linux raspberrypi 5.4.51-v8+ #1333 SMP PREEMPT Mon Aug 10 16:58:35 BST 2020 aarch64 GNU/Linux

Cluster Configuration:

1 master, 0 worker
Describe the bug:

Can't download CoreDNS image
pi@raspberrypi:~ $ sudo KUBECONFIG=/etc/rancher/k3s/k3s.yaml kubectl get pods -A
NAMESPACE     NAME                                      READY   STATUS             RESTARTS   AGE
kube-system   metrics-server-86cbb8457f-9lwr7           1/1     Running            0          9m35s
kube-system   local-path-provisioner-5ff76fc89d-vp5hz   1/1     Running            0          9m35s
kube-system   coredns-854c77959c-56j8f                  0/1     ImagePullBackOff   0          9m35s

$ KUBECONFIG=/etc/rancher/k3s/k3s.yaml kubectl -n kube-system describe pod coredns-854c77959c-56j8f
....
Events:
  Type     Reason     Age                   From               Message
  ----     ------     ----                  ----               -------
  Normal   Scheduled  10m                   default-scheduler  Successfully assigned kube-system/coredns-854c77959c-56j8f to raspberrypi
  Normal   Pulling    8m24s (x4 over 10m)   kubelet            Pulling image "rancher/coredns-coredns:1.8.0"
  Warning  Failed     8m21s (x4 over 10m)   kubelet            Failed to pull image "rancher/coredns-coredns:1.8.0": rpc error: code = NotFound desc = failed to pull and unpack image "docker.io/rancher/coredns-coredns:1.8.0": no match for platform in manifest: not found
  Warning  Failed     8m21s (x4 over 10m)   kubelet            Error: ErrImagePull
  Warning  Failed     4m52s (x20 over 10m)  kubelet            Error: ImagePullBackOff
  Normal   BackOff    3s (x41 over 10m)     kubelet            Back-off pulling image "rancher/coredns-coredns:1.8.0"

Steps To Reproduce:

Installed K3s:

curl -sfL https://get.k3s.io | sh -s - --disable=traefik

Expected behavior:

Actual behavior:

Apr 05 00:08:07 raspberrypi k3s[788]: E0405 00:08:07.792300     788 pod_workers.go:191] Error syncing pod 6af14537-18e0-4738-b8e4-74df88f91df9 ("coredns-854c77959c-56j8f_kube-system(6af14537-18e0-4738-b8e4-74df88f91df9)"), skipping: failed to "StartContainer" for "coredns" with ImagePullBackOff: "Back-off pulling image \"rancher/coredns-coredns:1.8.0\""

Additional context / logs:

looking at https://hub.docker.com/r/rancher/coredns-coredns/tags?page=1&ordering=last_updated
There's currently a "1.8.0-arm" tag that's compiled only for amd64 (note: that's amd64, not arm64)
There's a 1.8.0 tag that's compiled for amd64 and arm (as in arm 32, not arm64)
The most recent image for arm64 is 1.7.1. Setting the image in the coredns deployment to use that lets me run coredns as a workaround. There's no 1.8.0 image that will run on arm64.

Docker Hub had some issues over the weekend; I think that our mirroring script may have run during the outage and dropped some architectures from the manifests. In the mean time, you should be able to use the airgap images from the releases page.

How can i customize the CoreDNS image during setup ? @stenwt @brandond

The age should be correct now.

It works :
pi@raspberrypi:~ $ sudo KUBECONFIG=/etc/rancher/k3s/k3s.yaml kubectl get pods -A
NAMESPACE     NAME                                      READY   STATUS    RESTARTS   AGE
kube-system   metrics-server-86cbb8457f-9lwr7           1/1     Running   0          13h
kube-system   coredns-854c77959c-56j8f                  1/1     Running   0          13h
kube-system   local-path-provisioner-5ff76fc89d-vp5hz   1/1     Running   1          13h


Add support Collection#products endpoint

We are introducing a new endpoint which allow merchants to query for products for a particular collection without knowing its type.This PR adds support for this new endpoint in the shopify api gem.
What should reviewers focus on?

Try using the local version of the gem.
ShopifyAPI::Collection.find(2).products this should return the products of the collection.

Note: This PR is safe to rollback as the new endpoint is behind a version change which will probably be introduced in 2019/10 version.

Currently blocked by the ^^ PR, but I can use some code reviews till then. :-)

I think you also need to add an api-test. Will this be a new entry in the API docs? It's neither a method in SmartCollections, neither in CustomCollections so you might need to add it.

Yes, I already have a PR up for it - https://github.com/Shopify/shopify/pull/213687. Just added you for the review there as well.


VM keeps auto stopping even after disabling or deleting AutoStop logic app

Any ideas on how to troubleshoot this?

Hello,
Can we verify if the VM has any associated alerts? If so, can we delete / disable them? If this does not work, can you share with us more details of the VM?

The VM is a Standard D2ds v5 (2 vcpus, 8 GiB memory) created via AVD.

verify if the VM has any associated alerts

Where do I find these VM associated alerts?
I eventually deleted and recreated the VMs automation group, and haven't yet configured auto stop. Knowing where and what to look for reguarding the associated alerts would be handy.

To verify the VM alerts:  Navigate to your VM in the Azure portal --> click Alerts (under Monitoring tab) --> click Alert Rules. Make sure you select the filter as enabled. Once you find the alert, then either you can disable or delete it.

That was really helpful. The auto stop alert was still there and enabled after I had deleted the start stop resource group. It is also did not seem to have updated or disabled even though I had tried disabling the auto stop logic app. Is this by design?

Yes by design the alert will be created on your VMs which is outside of the Start/Stop resource group so even if you delete the Start/Stop RG, this will not going to delete the alert which is part of your VM resource.
Also disabling/deleting the logic app is not going to take any effect to delete the alert as the logic app is just an orchestrator to call the function app which is responsible to create the alert based on the payload you have configured.  So if you want to disable the alert then you can add the VM in the payload exclude list (refer our doc here for sample exclude list) in the logic app.

If configuration in the Logic App is modified, are any settings there carried over to the alert rule?

Yes new alert will be created on the VM (old alert will be deleted) whenever the logic app runs so if you change the value of any property (say AutoStop_Threshold : 10) in the auto stop payload then new alert will be created based on the updated value.


Ability to add Exceptions/Rules

For example;
Making sure System directives are always at top irregardless of sort settings.
In my case for example I'm looking for something like this;
using System*..... (Sort applies in between all System)
using UnityEngine*... (Sort applies in between all UnityEngine)
using UnityEditor*.... (Sort applies in between all UnityEditor)
using Other (Sort applies in between all Other )
In this case I've 3 rules;
System Priority > UnityEngine Priority > UnityEditor Priority > Everything else that is not defined.

This feature will be included in next version.


Cow: Watch bus[\W_]+simulator[\W_]+ultimate

Cow requests the watch of the watch_keyword bus[\W_]*+simulator[\W_]*+ultimate. See the MS search here and the Stack Exchange search in text, in URLs, and in code.

bus[\W_]*+simulator[\W_]*+ultimate has been seen in 4 true positives, 0 false positives, and 0 NAAs.

Approved by Jeff Schaller in Charcoal HQ


Import Audio/Video snippets

Use atob() to convert base64 back to binary.
Create file and add to its own Playlist?

See PlayList in the Foundry API

These are currently inserted as  elements with a format of "binary/octet-stream"

Audio snippets are converted into Playlists (one playlist per topic) in version 0.3.6


Container queries and computePosition

Describe the bug
When trying to use computePosition and a CSS container query the position is using the html root element resulting in the wrong position
To Reproduce
https://codesandbox.io/s/practical-waterfall-zplp33?file=/src/styles.css
Steps to reproduce the behavior:

Toggle the line container-type: inline-size; in styles.css

Expected behavior
It should position correctly and use the containers root as the element to calculate it's position instead of the html root
Context:

OS: MacOS 13.2.1
Browser All
Version 1.4.2 (dom)

Additional context
CSS container queries

@atomiks thanks so much


[#141315433] Add deploy_env tag to BOSH RDS

What
This tag will propagate through to the metrics that we get from the RDS
integration in DataDog. We can then use it to restrict monitors to a single
environment, rather than every environment in the AWS account (dev and CI
host more than one).
How to review
You can't test the metrics because the DataDog RDS integration isn't enabled in dev 🐼
So I suggest:

Sanity check the code.
Optionally deploy to your dev environment to double check that the tag is applied to the instance.
Deploy to CI and observe metrics appearing in this graph
Merge
Deploy to all other environments (sorry!)

Who can review
Not @dcarley

LGTM


Depending upon Farmer's Delight: Refabricated causes datagen crash

Minecraft version
1.20.1
Farmer's Delight version
1.20.1-2.2.4+refabricated
Fabric Loader version
0.15.7
Fabric API version
0.92.0+1.20.1
Description
I'm trying to make an addon that makes use of Farmer's Delight's cutting board and cooking pot, but I'm having an issue running my data generation. Log attached below. Seems to be some issue with a missing loot table for the basket item?
Should be noted: the game client runs fine. It's just the Data Generation task that fails.
Steps to reproduce
Assuming 1.20.1 Fabric development environment with 0.15.7 loader version and FAPI version 0.92.0+1.20.1 to match FDRF, steps are as follows:

Use Fabric template project, match loader and FAPI versions to FDRF
Make a depency upon FDRF
Run Data Generation task
Data Generation crashes, reporting an IllegalStateException surrounding loot tables for farmersdelight:basket

Mod list
FAPI 0.92.0
Mod Menu 7.1.0
FDRF 1.20.1-2.2.4+refabricated
Logs
https://mclo.gs/402rwLN
Minimal instance

[X] I have tested this on a minimal instance

Performance and shader mods

[ ] I am using performance or shader mods

Turns out this was user error and I'm just bad at Gradle!
Sorry about that!


multi-value select input not supported for .submit()

.submit() won't work for mult-value <select> input – always only the last selected value is used.

Like this? http://www.w3schools.com/tags/att_select_multiple.asp
<select multiple>
  <option value="volvo">Volvo</option>
  <option value="saab">Saab</option>
  <option value="opel">Opel</option>
  <option value="audi">Audi</option>
</select>

Yes, like this. I have already prepared a fix, will make a pull request in a moment.


Allow to use the script to concatenate with pseudo crawled data

JSON file now needs to check for "is_catalogue" and change loading script depending on that.

@thomasw21 I changed the way to read ratios once now they are JSONL instead of JSONL: https://github.com/bigscience-workshop/catalogue_data/commit/5eec922e0fe74ee52337fb90a817a1cb5abaf859

@albertvillanova can we revert that as it's in json format

I realized afterwards. But I ketp the removal of .iems() from dset_ratios because now is a list, not a dict.


Failure to load type providers from Nuget package

I have a strange situation where a type provider works perfectly when reference as local binary but fails with strange inconsistent errors when referenced as Nuget package. Up to the point where I can point to  exactly same binary located in nuget local cache but it fails as a nuget package
I hit this problem with https://www.nuget.org/packages/FSharp.Data.Npgsql.
Seems @sergey-tihon  has this issue with Swagger type provider too.
https://github.com/fsprojects/FSharp.TypeProviders.SDK/issues/184#issuecomment-364625781
This basically renders type providers as completely un-usable due to unpredictability of the issue so it would nice to fix ASAP.
It is possibly related to the latest changes to https://github.com/fsprojects/FSharp.TypeProviders.SDK but I'm not sure because I expect that it would not work as local binary too.
Thanks.

IDE shows error Incorrect instance type Parameter name: obj after ~1min of working with provided types and methods. Occurs only when TP restored from NuGet.
Compilation is successful, compiled program also runs correctly and ~1st min of Intellisense look good.
Repro steps

Clone https://github.com/sergey-tihon/swagger-issue101
Open onle solution in IDE
Wait for intellisense, type something in editor, checkout intellisense of provided types

Actual behavior
VS 2017

Ionide

Related information
Environment 1

Windows 10
.NET Runtime 4.6.1 (old project files)
Visual Studio 15.5.6
Visual F# Tool <IP_ADDRESS>20604

Environment 2

macOS High Sierra 10.13.3
Mono JIT compiler version <IP_ADDRESS> (2017-06/e66d9abbb27 Wed Oct 25 12:10:41 EDT 2017)
Latest Ionide

Any step-by-step instructions for both problems would be immensely useful. Also sample projects and exact NuGet package numbers please.
For the second issue we really need a stack trace too

For the second issue we really need a stack trace too

@dsyme Any tip how to catch exception inside IDE?

Also sample projects and exact NuGet package numbers, please.

My sample project https://github.com/sergey-tihon/swagger-issue101/ has all dependencies committed inside the git repo.

I got more details for my case!
System.ArgumentException
  HResult=0x80070057
  Message=Incorrect instance type
Parameter name: obj
  Source=FSharp.Core
  StackTrace:
   at Microsoft.FSharp.Quotations.PatternsModule.checkObj(MemberInfo membInfo, FSharpExpr obj)
   at Microsoft.FSharp.Quotations.PatternsModule.mkInstanceFieldGet(FSharpExpr obj, FieldInfo finfo)
   at Microsoft.FSharp.Quotations.FSharpExpr.FieldGet(FSharpExpr obj, FieldInfo fieldInfo)
   at <StartupCode$SwaggerProvider-DesignTime>.$DefinitionCompiler.toStr@231-1.Invoke(Tuple`2 tupledArg) in X:\SwaggerProvider\src\SwaggerProvider.DesignTime\DefinitionCompiler.fs:line 232
   at <StartupCode$SwaggerProvider-DesignTime>.$DefinitionCompiler.toStr@227.Invoke(FSharpList`1 args) in X:\SwaggerProvider\src\SwaggerProvider.DesignTime\DefinitionCompiler.fs:line 231
   at ProviderImplementation.ProvidedTypes.ProvidedMethod.GetInvokeCode(FSharpList`1 args) in X:\SwaggerProvider\paket-files\fsprojects\FSharp.TypeProviders.SDK\src\ProvidedTypes.fs:line 993
   at <StartupCode$SwaggerProvider-DesignTime>.$ProvidedTypes.xT@8883-26.Invoke(FSharpList`1 arg00) in X:\SwaggerProvider\paket-files\fsprojects\FSharp.TypeProviders.SDK\src\ProvidedTypes.fs:line 8883
   at ProviderImplementation.ProvidedTypes.QuotationSimplifier.TranslateQuotationToCode(FSharpFunc`2 qexprf, String[] paramNames, FSharpExpr[] argExprs) in X:\SwaggerProvider\paket-files\fsprojects\FSharp.TypeProviders.SDK\src\ProvidedTypes.fs:line 8361
   at ProviderImplementation.ProvidedTypes.ProvidedTypesContext.convCodeToTgt[a](FSharpFunc`2 codeFun, Boolean isStatic, ProvidedParameter[] parameters, Boolean isGenerated, FSharpList`1 argsT) in X:\SwaggerProvider\paket-files\fsprojects\FSharp.TypeProviders.SDK\src\ProvidedTypes.fs:line 8761
   at <StartupCode$SwaggerProvider-DesignTime>.$ProvidedTypes.xT@8883-27.Invoke(FSharpList`1 argsT) in X:\SwaggerProvider\paket-files\fsprojects\FSharp.TypeProviders.SDK\src\ProvidedTypes.fs:line 8883
   at ProviderImplementation.ProvidedTypes.ProvidedMethod.GetInvokeCode(FSharpList`1 args) in X:\SwaggerProvider\paket-files\fsprojects\FSharp.TypeProviders.SDK\src\ProvidedTypes.fs:line 993
   at <StartupCode$SwaggerProvider-DesignTime>.$ProvidedTypes.Compile@14023-13.Invoke(ILTypeBuilder tb, FSharpOption`1 ptdT) in X:\SwaggerProvider\paket-files\fsprojects\FSharp.TypeProviders.SDK\src\ProvidedTypes.fs:line 14119
   at <StartupCode$SwaggerProvider-DesignTime>.$ProvidedTypes.typeMembers@13864.Invoke(ProvidedTypeDefinition ptd) in X:\SwaggerProvider\paket-files\fsprojects\FSharp.TypeProviders.SDK\src\ProvidedTypes.fs:line 13865
   at <StartupCode$SwaggerProvider-DesignTime>.$ProvidedTypes.nestedType@13870.Invoke(Type ntd) in X:\SwaggerProvider\paket-files\fsprojects\FSharp.TypeProviders.SDK\src\ProvidedTypes.fs:line 13871
   at <StartupCode$SwaggerProvider-DesignTime>.$ProvidedTypes.typeMembers@13864.Invoke(ProvidedTypeDefinition ptd) in X:\SwaggerProvider\paket-files\fsprojects\FSharp.TypeProviders.SDK\src\ProvidedTypes.fs:line 13866
   at ProviderImplementation.ProvidedTypes.AssemblyCompiler.iterateTypes[a](FSharpFunc`2 f, IEnumerable`1 providedTypeDefinitions) in X:\SwaggerProvider\paket-files\fsprojects\FSharp.TypeProviders.SDK\src\ProvidedTypes.fs:line 13877
   at <StartupCode$SwaggerProvider-DesignTime>.$ProvidedTypes.Compile@14023-12.Invoke(FSharpFunc`2 f, IEnumerable`1 providedTypeDefinitions) in X:\SwaggerProvider\paket-files\fsprojects\FSharp.TypeProviders.SDK\src\ProvidedTypes.fs:line 14023
   at ProviderImplementation.ProvidedTypes.AssemblyCompiler.Compile(Boolean isHostedExecution) in X:\SwaggerProvider\paket-files\fsprojects\FSharp.TypeProviders.SDK\src\ProvidedTypes.fs:line 14023
   at ProviderImplementation.ProvidedTypes.TypeProviderForNamespaces.Microsoft-FSharp-Core-CompilerServices-ITypeProvider-GetGeneratedAssemblyContents(Assembly assembly) in X:\SwaggerProvider\paket-files\fsprojects\FSharp.TypeProviders.SDK\src\ProvidedTypes.fs:line 14406
   at Microsoft.FSharp.Compiler.Tainted`1.Protect[a](FSharpFunc`2 f, range range)

https://github.com/demetrixbio/FSharp.Data.Npgsql/tree/visualfsharp-issue-4338
Steps:

from repo root

docker build -t pg_dvdrental .\tests\
docker run -d -p 32768:5432 --name dvdrental pg_dvdrental

Navigate to tests/SampleApp/

Should build & run successfully. It uses https://www.nuget.org/packages/FSharp.Data.Npgsql/0.1.17-beta
Un-comment reference to ResultType https://github.com/demetrixbio/FSharp.Data.Npgsql/blob/visualfsharp-issue-4338/tests/SampleApp/Program.fs#L9.  Compilation fails with

FSharp.Data.Npgsql\tests\SampleApp\Program.fs(10,74): error FS0001: This expression was expected to have type    'FSharp.Data.Npgsql.ResultType (FSharp.Data.Npgsql.DesignTime, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=null)'    but here has type    'FSharp.Data.Npgsql.ResultType (FSharp.Data.Npgsql, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=null)'

Go project file and replace reference to nuget with reference to binary from same package.
Comment out https://github.com/demetrixbio/FSharp.Data.Npgsql/blob/visualfsharp-issue-4338/tests/SampleApp/SampleApp.fsproj#L13
And un-comment https://github.com/demetrixbio/FSharp.Data.Npgsql/blob/visualfsharp-issue-4338/tests/SampleApp/SampleApp.fsproj#L18
The project compiles and run successfully.

@dsyme Because my problem is around type rewrite for ProvidedStaticParameter I tried to pull it from runtime component. It still fails and here what I found so far

Since when TypeProviderConfig.RuntimeAssembly returns design-time assembly?

I guess this is why Swagger type provider fails too - it also has design-time/run-time separation. For combo style type providers it doesn't matter.

@dsyme I also can confirm that TypeProviderConfig.RuntimeAssembly has incorrect value only when a type provider loaded from nuget package. When loaded directly from binary it has right value.

@dmitry-a-morozov Maybe we should explicitly specify in *.nuspec that NuGet should not reference DesignTime file to project after install https://docs.microsoft.com/en-us/nuget/reference/nuspec#specifying-explicit-assembly-references ?

I don't use *.nuspec anymore. It's just dotnet pack.
Also, design time assembly is never explicitly referenced rather it's loaded by F# compiler from same folder as run-time based on CompilerServices.TypeProviderAssembly attribute value.

@sergey-tihon
Temp fix
https://github.com/demetrixbio/FSharp.Data.Npgsql/blob/1696cd4d8fc6dc04ba50e7f4d8b2e77059c22c46/src/DesignTime/TypeProviderAssembly.fs#L14
https://github.com/demetrixbio/FSharp.Data.Npgsql/blob/1696cd4d8fc6dc04ba50e7f4d8b2e77059c22c46/src/DesignTime/TypeProviderAssembly.fs#L41

@dmitry-a-morozov I think @sergey-tihon may be on the right track.  After referencing the https://www.nuget.org/packages/FSharp.Data.Npgsql/0.1.17-beta package using Visual Studio 2017 I can confirm that references to both design-time and runtime assemblies have been added.  My understanding is that this is not what you want you only want the runtime assembly to be added as a reference

Looking at https://docs.microsoft.com/en-us/dotnet/core/tools/csproj I can't immediately see a way of excluding the design time DLL from being an implicit reference.  You may have to use an explicit nuspec file for your packaging, see https://docs.microsoft.com/en-us/dotnet/core/tools/csproj#nuspecfile.  Let me know if this works and we can add the magic incantations to a TPSDK sample

You might also get mileage by removing this https://github.com/demetrixbio/FSharp.Data.Npgsql/blob/master/src/DesignTime/TypeProviderAssembly.fs#L9.  This is saying that the DesignTime assembly is itself a Combo type provider.  I don't think that's what you want.

Can confirm that setting the explicit references list makes the IDE experience work again! https://github.com/fsprojects/SwaggerProvider/pull/104

We've got a beta going through the pipeline that we can use to do an end-to-end test. It should be about half an hour before I can report back on that.

Confirm that it looks like the fix for SwaggerProvide (explicitly specify assemblies that should be referenced from NuGet package in nuspec/paket template)

Closing this as the issue appears solved (until next issue is found...) :)

@dsyme @sergey-tihon Thank you for help.
@dsyme I can claim that we have solid-working PostgreSQL type provider with advanced features and basic docs. https://github.com/demetrixbio/FSharp.Data.Npgsql/blob/master/README.md


I've opened a suggestion for bitbucket

Hi
I've noticed this weird behavior as well and so created a suggestion ticket for bitbucket here:
https://jira.atlassian.com/browse/BCLOUD-21567
If someone else is annoyed by this, please support the suggestion.

Thanks for reaching out! I voted for the issue!


Missing link in the page

Hi Team, the page has a missing link here:
To configure Azure CNI networking with dynamic IP allocation and enhanced subnet support, see Configure Azure CNI networking for dynamic allocation of IPs and enhanced subnet support in AKS.
This page gives HTTP 404.

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

ID: 37ba0343-7e43-6e2e-e564-5d3a0f523a75
Version Independent ID: 0ba581a1-3e4a-27b4-c667-4a9b969a3ade
Content: Configure Azure CNI networking in Azure Kubernetes Service (AKS) - Azure Kubernetes Service
Content Source: articles/aks/configure-azure-cni.md
Service: azure-kubernetes-service
Sub-service: aks-networking
GitHub Login: @asudbring
Microsoft Alias: allensu

@rishasi
Thanks for bringing this to our attention.
I'm going to assign this to the document author so they can take a look at it accordingly.

Thank you @rishasi for the feedback!
We've added an item to our backlog and will prioritize accordingly.
#please-close


Update Dependancy Versions

The unit tests pass (with 1 failure which was failing with 5.1.x) and having implemented and tested on a laravel 5.2 installation all appears to be working correctly.

Hi Tom,
Thank you for your pull request. I've fixed the migrations issue and added 5.2 compatibility in a different way on version 2.1.4. I don't quite get what you did with the translatable trait. Could you explain what the use case is?
Thank you!

Hey,
I wasn't intending to push the translatable trait back into the main repo as the solution is not ideal and would require additional work, I will explain what I did however.
When saving the field123_translated field the field123 field value is the same as the last saved language. The change I made always stores the fallback locales value in the field123 field. However it does not check to see if the value has changed before updating as it did previously so it is not ideal.
The reason for this was to allow easier searching using LIKE SQL clauses in default locale. It was a bit of a dirty solution to a requirement I had for a project. A better solution would most likely be elasticsearch or similar.
Thank you for your reply,
Tom.

Hi Tom,
The way we use the translatable field, we never save the model with text in a language different from the default one. In fact, if you do, you would be overwritting the default language entry. Maybe if you tell me a bit more about your use case I could help you.

Hi,
Sorry for the slow reply. Using the default Translatable trait, the last value saved in whatever language saves in the actual field.
The example here is a title field that is saved in english, then saved in welsh and shows the different table values and the translation table after both saves.
Please let me know if I have misunderstood this or it is intended functionality.

This is intended. Sorry I missed the reply!


I am interested in using your game on my website. Could you add a license file like the MIT one in this pull request so I know how you want your software used?

sure. 👍


Wrong Title

Hello
the streaming code is on .Net Standard i think you should correct the title , i was looking to the way to send event to eventhub using powershell the first result was this page, but after reading the steps it is not what the title means.
Ceers

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

ID: 03c930b1-1721-b020-f6ae-4fcdee6708e5
Version Independent ID: 34e63541-7b85-dd2e-5f76-3af053999cc0
Content: Azure Quickstart - process event streams using PowerShell
Content Source: articles/event-hubs/event-hubs-quickstart-powershell.md
Service: event-hubs
GitHub Login: @ShubhaVijayasarathy
Microsoft Alias: shvija

@AMustapha Thanks for the feedback. We are actively investigating and will get back to you soon.

@AMustapha The title says "Create an event hub using azure powershell". As title says creation of resource group, event hubs namespace, event hub, storage account for event processor host are done using powershell commands. It also explains about streaming as part of this document which is in C#. The main content is about creating an event hub by using powershell and I think title fits well for the main content and not misleading.  I hope it makes sense but thank you for your feedback, we really appreciate for taking your time to leave a feedback for us.

@AMustapha We will now proceed to close this thread. If there are further questions regarding this matter, please reopen it and we will gladly continue the discussion.


Popper dependency update

Hi,
Can a new version of react-popper be released with the newest version of popper.js?
Thank you!
Reproduction demo

Steps to reproduce the problem

What is the expected behavior?

What went wrong?

Any other comments?

Packages versions

Popper.js:
react-popper:

react-popper allows any version equal or above 1.14.4 already.
https://github.com/FezVrasta/react-popper/blob/master/package.json#L63


Use Helm as the packaging format for RKE Addons

Currently, RKE add ons are customized Golang templates of kubernetes manifests. The add ons have upstream counter parts that have additional options and configurations that are not accessible to the end user.
Add ons should be updated to use the helm chart counter parts upstream. For instance the nginx-ingress controller helm chart provides several options, such as a validating webhook for verifying configuration.
The UX for using the new addons in the RKE cluster yaml, both CLI and in Rancher, should be the same. For common flags that are already implemented, we should continue to use the typed interface:
ingress:
  provider: nginx
  node_selector:
      app: ingress
  ...

Additionally, each add on should have an additional field chart_options(flexible on the naming) that allows the user to leverage non-typed chart deployment options. These would be key value pairs, where the values can be any acceptable helm chart input.
RKE will need to reconcile the options passed via chart_options with the typed options.
A version should be provided via the typed interface. A default version should be pinned to an RKE release, but specifiable by the user.
Order of add on migration:

[ ]  ingress-nginx
- chart must support admission webhook.
- networking via host or service type.
[x] CoreDNS
[ ] Network plugins

All charts must support tolerations and node affinity either through the typed or chart option interface.
Migration from Helm based version should be done with zero downtime. (Unless it is a single node installation)
Chart updates should be releasable out of band from an RKE/Kubernetes release.
The default charts should be packaged inside the RKE command line and cached within Rancher.
Any update to the addon section in the cluster yaml should cause RKE/Rancher to perform the cluster update using zero downtime methods where possible.
In the Rancher UI, these will continue to show up as they do in Rancher 2.3.2, just workloads within the System Project.

I was looking into RKE Templates feature of Rancher, to create a template for our clusters, and noticed we use the same Helm Charts on several clusters. I was hoping to use the template feature for this, but not supporting Helm charts was a dealbreaker. So, +1 for this issue.

+1 for this issue


[curses] New meta port

What does your PR fix?
This PR adds a curses meta-port. It pulls in a suitable implementation (pdcurses, ncurses) and makes it available via find_package(Curses).
Relates issues:  #11027, #20828, https://github.com/microsoft/vcpkg/pull/17226#issuecomment-989898459

Which triplets are supported/not supported? Have you updated the CI baseline?
!uwp, no

Does your PR follow the maintainer guide?
yes

If you have added/updated a port: Have you run ./vcpkg x-add-version --all and committed the result?
yes

NB: Windows static triplets available for CI test after merging #22092.

what about making ports depending on pdcurses/ncurses depending on this one, instead?

Thanks for fixing this!

what about making ports depending on pdcurses/ncurses depending on this one, instead?

This is left as a separate exercise. Since depending ports can't rely on a simple find_package(Curses) right now, this needs more work.

For the record:
ncurses documentation proposes #include <ncurses.h>. But IIUC the current interaction of CMake and port ncurses requires #include <ncurses/ncurses.h>, and also #include <ncurses/curses.h>.
This port changes that behaviour if CURSES_NEED_NCURSES is not set, by making the ncurses directory part of the include search path.

what about making ports depending on pdcurses/ncurses depending on this one, instead?

This is left as a separate exercise. Since depending ports can't rely on a simple find_package(Curses) right now, this needs more work.

Fair enough. :) What do you think about the phantom dependency switch concern I discussed in the review comment earlier?

What do you think about the phantom dependency switch concern I discussed in the review comment earlier?

The phantom dependency switching is a general problem, isn't it? It is also what happens with unguarded discovery like
find_package(Pkg)
if(Pkg_FOUND)
    enable_feature(...)

Normally, we need to turn this unguarded discovery into explicit control. With the curses wrapper, I see two layers of this problem: It must do nothing if there is no explicit dependency on curses, and otherwise it must select the implementation which matches curses' dependencies.
The only way I see to handle this situation here is using vcpkg-port-config.cmake: If and only if a port directly depends on port curses, the wrapper may make a choice representing the explicit dependendencies. curses is probably used only for tools, but if it is used for a lib, the choice must also be forwarded to downstream users... perhaps feasible with cmake targets, but starting to leave the trivial sector.
vcpkg-port-config.cmake also doesn't work with user projects. No problem if there is only a single implementation installed. But with alternatives, we need user input (a variable) or we must fail.

The phantom dependency switching is a general problem, isn't it?

It's a more general problem if things end up getting selected from the system but not generally if someone stays within the catalog right now.

The only way I see to handle this situation here is using vcpkg-port-config.cmake: If and only if a port directly depends on port curses, the wrapper may make a choice representing the explicit dependendencies.

I don't understand why there would need to be a vcpkg-port-config.cmake; all the port has to do is have a separate vcpkg-cmake-wrapper.cmake for pdcurses and ncurses, and install the matching one.

what about making ports depending on pdcurses/ncurses depending on this one, instead?

This is left as a separate exercise. Since depending ports can't rely on a simple find_package(Curses) right now, this needs more work.

Wait, now I'm confused. Is the entire purpose of this port not to make that work?

It's a more general problem if things end up getting selected from the system but not generally if someone stays within the catalog right now.

It is a problem within the catalog: if a port build randomly picks a dependency already installed at build time, but doesn't make it part of its ABI hash and doesn't forward the usage requirements. In the best case, it explodes right at consuming the port in a build. In the worst case, it explodes randomly at run-time.

All the port has to do is have a separate vcpkg-cmake-wrapper.cmake for pdcurses and ncurses, and install the matching one.

For now this should work.

Updated.
I tried to find some test ports, but as expected, vcpkg's focus on libs doesn't help.
libmysql needs (n)curses on Linux but tells the user to install it from the system package manager.
behaviortree-cpp would use ncurses (not curses) but this is disabled in vcpkg.

If someone can't be expected to just say they need curses and be able to not care then I'm not sure what this change is doing?

The reason I'm still in 'waiting' state here is that as far as I understand it there's still no practical use of this metaport, because every consumer described still needs to have the check for which particular curses that they got. Put another way, what would a consumer of this metaport look like?

The reason I'm still in 'waiting' state here is that as far as I understand it there's still no practical use of this metaport, because every consumer described still needs to have the check for which particular curses that they got. Put another way, what would a consumer of this metaport look like?
Note that the "customer" doesn't need to be a port :)

Ping @dg0yt for response.

Closing this PR since it seems that no progress is being made. Please reopen if work is still being done.


VISUALS: Review Planner View Filter Panel

Verification Conditions:

Review Screen captures and questions from development - @nimishamukherjee, please ask the team to add comments to this story
Understand what the misalignment (sizing & mobile-friendly issues) is between the PatternFly styling and what has been designed
Give guidance to development on resolving the conflicts between the intended design, PatternFly and the implementation of the filter panel

@bdellasc For filter bar: patternfly design falls as per first two screenshots.

we left with tap area of 2424 but as per the visual design we have to keep it 4040

Will add this to a future sprint once filter design that Catherine posted is implemented.


CommandBarItem underlines links

As pointed out by Paul Schaeflein in Office UI Fabric - first impressions, using an a element in a CommandBarItem results in the link being underlined:

We need text-decoration: none; here.

Could be also added on ListItem component. If you use the list items as links you have the whole text underlined.


before remove event

hi! is there a way to handle a "before remove" event? i'd need to intercept an option remove action to avoid it. thanks!

Hello!
You could use the tag scope to hook into the remove function:
<template slot="tag" slot-scope="{ option, remove }">

         {{ option.name }}
     ❌

</template>

...
//In your component:
methods: {
    removeConditionally (remove, option) {
        if (this.checkForCondition(option))
            remove(option)
    }
}

@Zyberg love it! Thanks for answering the question!


chore(deps): upgrade configuration

Upgrades project dependencies. See details in workflow run.

Automatically created by projen via the "upgrade-configuration-k8s-26-main" workflow

⚪ Backport skipped
The pull request was not backported as there were no branches to backport to. If this is a mistake, please apply the desired version labels or run the backport tool manually.
Manual backport
To create the backport manually run:
backport --pr 2888

Questions ?
Please refer to the Backport tool documentation


feat: added makeRelativeDate

What?
Adds the makeRelativeDate() function.
Takes an absolute date in epoch format and returns a string representing relative time ago.
Usage
        type RelativeDateOptions = {
            notAfter?: number;
            format?: FormatType;
            showTime?: boolean;
        };

        type FormatType = 'short' | 'med' | 'long';

        const makeRelativeDate = (
            epoch: number,
            opts: RelativeDateOptions = {},
        ): false | string

        const twoDaysAgo = new Date(Date.UTC(...etc)).getTime();

        expect(
            makeRelativeDate(twoDaysAgo, {
                format: 'med',
            }),
        ).toBe('2d ago');

        expect(
            makeRelativeDate(twoDaysAgo, {
                format: 'short',
            }),
        ).toBe('2d');

        expect(
            makeRelativeDate(twoDaysAgo, {
                format: 'long',
            }),
        ).toBe('Friday 15 Nov 2019');

Why?
This function has existed for a long time in Frontend and also in DCR. It's stable and unlikely to change and it's not unreasonable to expect that other projects might benefit from using it (@JamieB-gu this kind of function is useful on pages with live content)

 makeRelativeDate in /libs

other projects might benefit from using it

Sounds very sensible. Datetime-type helpers sound like a strong candidate for standardising/sharing. This functionality is currently duplicated in AR.

There's an RFC for date formatting in Source here https://github.com/guardian/source/discussions/503

There's an RFC for date formatting in Source here guardian/source#503

Ah, interesting, I wasn't aware of this, thanks.
It is a big area for sure. Maybe we should be looking at an off the shelf solution 🤷♂ maybe what we have in Frontend is already okay as it is. Absolutely worth having that discussion and 👍 to that happening in Source.
I do think we might get benefit from /libs as a stopgap for these types of things ahead of then though? If we want to share code like this we have three options at the moment

Put it in Source
Put it in a repo like here in /libs
Copy paste it and accept the duplication

Option 1. Is ultimately the right place but it's slow, 2 is perhaps not the correct location ultimately but it is a location from where the code can be shared with minimal effort, and 3 is also a valid possibility, it's certainly the easiest and quickest!

Future date
What happens if the date is in the future?

I think it returns false in this situation
if (delta < 0) {

Long months
Doesn’t Monday 1 February 2021 feel more appropriate that Monday 1 Feb 2021 if you have the space? Why truncate the months in long from. Why would the day of the week get special treatment?

@mxdvl & @sndrs 🙇 amazing reviews - thanks both!
I've gone though each point and hopefully we're in a good place. I was originally trying to maintain the orginal api from Frontend but I think you have both made really good points that justify moving away from that to something better

(also, maybe update the PR title the new method name? that's what will be squashed into git history)

are you all good with this now @oliverlloyd?

are we there with this now, do you think @oliverlloyd?

are we there with this now, do you think @oliverlloyd?

I'm happy 👍
Again, thanks both for giving this one so much time and thought, really amazing input. I'm keen to import this new and improved dateAgo function into DCR!


Reader tagged literals result in incorrect alignment

Please see screenshot:

Input:
(-> #js [(one-promise)
         (another-promise)]
    (js/Promise.all)
    (.then (fn [_])))

(-> #uuid "15adfdf0-2e6b-410e-a489-f71d1dd17642"
    str)

I would expect the code to be unchanged after formatting, but everything gets aligned to one character after #
(-> #js [(one-promise)
         (another-promise)]
     (js/Promise.all)
     (.then (fn [_])))

(-> #uuid "15adfdf0-2e6b-410e-a489-f71d1dd17642"
     str)

I would guess that this is also what's causing #108.

Fixed with PR-118


fix out of script khojki

Remove marks from base chars in gu_Gujr
Fix out-of-script characters in Khojki, see #101

8813266 was already merged to main in #112 so I have no idea why it's in this PR. But it's a good change.


[CT-1292] [Feature] Including rows_affected-like information in the results on-run-end context variable

Is this your first time submitting a feature request?

[X] I have read the expectations for open source contributors
[X] I have searched the existing issues, and I could not find an existing issue for this feature
[X] I am requesting a straightforward extension of existing dbt-spark functionality, rather than a Big Idea better suited to a discussion

Describe the feature
Noticed that if you have a project setup like:
# dbt_project.yml

name: "my_dbt_project"
version: "1.0.0"
config-version: 2
profile: "spark"
models:
  my_dbt_project:
    +materialized: table
    +file_format: delta
on-run-end: "{% if execute %}{% do log(results, True) %}{% endif %}"

-- models/foo.sql
select 1 as id

Each node's adapter_response only has {'_message': 'OK'} within it due to:
https://github.com/dbt-labs/dbt-spark/blob/f20aecd275c211726c6225dc9abe1484fc90e9e6/dbt/adapters/spark/connections.py#L302-L306
Unlike say for Postgres where we have a much more detailed AdapterResponse:
https://github.com/dbt-labs/dbt-core/blob/1071a4681df91633301fdf23e34de819b66fbeb7/plugins/postgres/dbt/adapters/postgres/connections.py#L185-L192
    @classmethod
    def get_response(cls, cursor) -> AdapterResponse:
        message = str(cursor.statusmessage)
        rows = cursor.rowcount
        status_message_parts = message.split() if message is not None else []
        status_messsage_strings = [part for part in status_message_parts if not part.isdigit()]
        code = " ".join(status_messsage_strings)
        return AdapterResponse(_message=message, code=code, rows_affected=rows)

Which in turn has this in it's adapter_response - {'_message': 'SELECT 1', 'code': 'SELECT', 'rows_affected': 1}.
I'm wondering if it is "easy" to add rows_affected-like information to the spark AdapterResponse here? Interestingly, dbt-databricks doesn't have this information either.
Describe alternatives you've considered
NA
Who will this benefit?
Users who want to know how many rows a model has affected.
Are you interested in contributing this feature?
Yes
Anything else?
Afaict, the get_response method doesn't actually make use of the cursor here and simply returns the string "OK" so there's probably something tricky with the spark adapter that makes this much more difficult is my initial read on why this adapter does not include more information in its response.

Just realised this issue is literally as Kyle was suggesting to do in #142. Perhaps simply doing:
 @classmethod
 def get_response(cls, cursor) -> AdapterResponse:
     # https://github.com/dbt-labs/dbt-spark/issues/142
     message = "OK"
     rows = cursor.rowcount
     return AdapterResponse(_message=message, rows_affected=rows)

will work automagically?

@jeremyyeo It's just as you've said! Our ability to provide this information is constrained to what the connection / cursor can provide. I'm guessing that we'll need different logic depending on the connection being used (PyhiveConnectionWrapper vs PyodbcConnectionWrapper vs ...)
I'm going to mark this one as help_wanted, in case you're interested in pushing on it a bit further :)
As far as a functional test for this, we can model off some recent-ish work done in other adapters to the same effect:

dbt-snowflake test
dbt-bigquery test

I've had a bit of a look up the toolchain, and it appears that returning a rowcount isn't supported by PyHive
https://github.com/dropbox/PyHive/blob/0bd6f5b5f76f759cd01b83287cec15da9789753e/pyhive/common.py#L68-L71


Heartbeat Payload URL is a bare domain for GCP

Description
The URL delivered in a heartbeat payload from a GCP installation is a bare domain name, as opposed to a full URL (containing https://). AWS installations deliver full URLs.
Version
v0.6.5 release
Present Behaviour
GCP Installations deliver bare domain names as a heartbeat URL in the heartbeat payload.
Expected Behaviour
URLs should be consistent across GCP and AWS.
Steps to reproduce
Turn on heartbeat functionality.

Yes, I fixed that for receipt.json but not for the heartbeat :man_facepalming:
Do we want to make a fix and release 0.6.6?

I don't think we need a new patch release for that change, it's very minor. Just something small for the future.
We're the only ones using heartbeats anyway.

Ok, I'll add it to 0.8.0, it's quite small anyway.

Hi, this has been tested and the GCP installation now has a https:// in front o the URL. Moving to Done.


Testing locally

Any ideas on testing the simple API examples locally?

it's quite easy. I still need to write up the docs about that, but here's the gist:

Initialise AWS credentials if you're using any additional services, so your unit tests can connect to other services.
require your api module
inside the test, execute api.router(requestObject, lambdaContextSpy)

the requestObject is whatever you want the function to process, as explained here, with the constraint that you have to include context.path and context.method. Here's an example:
apiRequest = {
	context: {
		path: '/echo',
		method: 'GET'
	},
	queryString: {
		name: 'mike'
	}
};

the lambdaContextSpy should have one method, done, that's the expected Lambda callback. That's a classic callback method (two arguments, first is the error, second is the successful result). For info on the context, check out the Node.js programming model

I have finally published a tutorial with examples, check out https://claudiajs.com/tutorials/testing-locally.html


add AQL bit handling functions

Scope & Purpose
This PR add the following bit handling functionality to AQL:

BIT_AND(array): and-combined result
BIT_OR(array): or-combined result
BIT_XOR(array): xor-combined result
BIT_NEGATE(value, bits): bitwise negation of value, with a mask of bits` length
BIT_TEST(value, index): test if bit at position index is set in value (indexes are 0-based)
BIT_POPCOUNT(value): return number of bits set in value
BIT_SHIFT_LEFT(value, shift, bits): bitwise shift-left of value by shift bits, with a mask of bits length
BIT_SHIFT_RIGHT(value, shift, bits): bitwise shift-right of value by shift bits, with a mask of bits length
BIT_CONSTRUCT(array): construct a number with bits set at the positions given in the array
BIT_DECONSTRUCT(value): deconstruct a number into an array with the set bits
BIT_TO_STRING(value): create a bitstring representation from numeric value
BIT_FROM_STRING(value): parse a bitstring representation into a number

BIT_AND, BIT_OR and BIT_XOR are also available as aggregate functions for usage inside COLLECT AGGREGATE.
All above bit operations support unsigned integer values with up to 32 bits. Using values outside the supported range will make any of these bit functions return null and register a warning.
The PR also adds binary (base 2) and hexadecimal (base 16) integer literals to AQL.
These literals can be used where regular (base 10) integer literal can used.
The prefix for binary integer literals is 0b, e.g. 0b10101110.
The prefix for hexadecimal integer literals i 0x, e.g. 0xabcdef02.
Binary and hexadecimal integer literals can only be used for unsigned integers.
The maximum supported value is (2 ^ 32) - 1, i.e. 0xffffffff (hexadecimal) or 0b11111111111111111111111111111111 (binary).
This is in RFC phase now, when we have agreed on functionality and behavior, we can backport it to 3.7.

[ ] :hankey: Bugfix (requires CHANGELOG entry)
[x] :pizza: New feature (requires CHANGELOG entry, feature documentation and release notes)
[ ] :fire: Performance improvement
[ ] :hammer: Refactoring/simplification
[x] :book: CHANGELOG entry made

Backports:

[x] Backports required for: 3.7

Related Information

[x] Docs PR: https://github.com/arangodb/docs/pull/607

Testing & Verification

[x] The behavior in this PR was manually tested
[x] This PR adds tests that were used to verify all changes:

[x] Added new C++ Unit tests

Link to Jenkins PR run:
http://<IP_ADDRESS>:8080/view/PR/job/arangodb-matrix-pr/13483/

Tests blue

Tests blue

http://<IP_ADDRESS>:8080/view/PR/job/arangodb-matrix-pr/13612/

http://<IP_ADDRESS>:8080/view/PR/job/arangodb-matrix-pr/13612/

http://<IP_ADDRESS>:8080/view/PR/job/arangodb-matrix-pr/13614/

http://<IP_ADDRESS>:8080/view/PR/job/arangodb-matrix-pr/13614/

Tests blue

Tests blue

http://<IP_ADDRESS>:8080/view/PR/job/arangodb-matrix-pr/13624/

http://<IP_ADDRESS>:8080/view/PR/job/arangodb-matrix-pr/13624/

http://<IP_ADDRESS>:8080/view/PR/job/arangodb-matrix-pr/13627/

http://<IP_ADDRESS>:8080/view/PR/job/arangodb-matrix-pr/13627/

Tests blue

Tests blue


Bug in game:undo

There is some issue in the code of game:undo.
Test case: Upon starting the game,play 3 moves and then press Ctrl+Z twice. Firstly only one disc is removed when it should have been 2 and secondly the turn is of the wrong person.
This issue can be further exploited in lots of ways to make theoretically impossible game configurations.

Yes, well I completely missed that, thanks for raising an issue.
would you like to fix this?

Sure

I would like to work on this issue

@ajaykumarr123 @Satvinder31415 I hope you guys will work on this together.

ya sure

I've rectified and sent a pull request regarding the same. You may review my code and suggest suitable changes.

@ajaykumarr123 the issue is actually resolved now, maybe you can raise and start working on a new suitable issue of your choice or choose an existing issue to work on.

I think I can help you in solving issue #7 and after that wants to join #3 so, can you assign me #7?


Something slows down page loading

What is your Scenario?
Test:
import { Selector } from 'testcafe';

fixture `New Fixture`
    .page `https://www.underarmour.com/en-us/p/tops/mens_ua_tech_long_sleeve/1328496.html?dwvar_1328496_color=012`;

test(`New Test`, async t => {
    await t
        .click('#welcome-mat-modal [alt="US"][title="Country"]')
        .click('#emailPopUpModal .g-email-pop-modal-close.g-modal-close-button')
        .click(Selector('main a').withText('Shop Jordan’s Official Kits'));
});

Run it: testcafe chrome test.js -e
What is the Current behavior?
The page loads very slowly.
What is the Expected behavior?
The page should not load much longer than without TestCafe.
What is your public website URL? (or attach your complete example)
https://www.underarmour.com/en-us/p/tops/mens_ua_tech_long_sleeve/1328496.html?dwvar_1328496_color=012
What is your TestCafe test code?
import { Selector } from 'testcafe';

fixture `New Fixture`
    .page `https://www.underarmour.com/en-us/p/tops/mens_ua_tech_long_sleeve/1328496.html?dwvar_1328496_color=012`;

test(`New Test`, async t => {
    await t
        .click('#welcome-mat-modal [alt="US"][title="Country"]')
        .click('#emailPopUpModal .g-email-pop-modal-close.g-modal-close-button')
        .click(Selector('main a').withText('Shop Jordan’s Official Kits'));
});

Steps to Reproduce

Open this page without TestCafe. It loads without noticeable delays.
Try to perform some actions on the page. It also doesn't freeze.
After that, try running the above test and observe the page load speed. Almost any action will occur with large delays.

TestCafe version
1.18.6
Node.js version
16.14.2
Command-line arguments
testcafe chrome test.js -e
Browser name(s) and version(s)
<EMAIL_ADDRESS>Platform(s) and version(s)
Windows 10
Related
https://supportcenter.devexpress.com/internal/ticket/details/T1086784

I researched the described behavior. The page runs slowly because of a lot of scripts injected on the page (more than 60 different scripts). TestCafe uses web-proxy. This means that every script is processed by that proxy and this increases the test time.
We are aware of this problem and we are working on it.


plugin does not work, using cdnjs and manual install

as the title says the plugin simply does not work, tried using cdnjs and manual install both does not work

share your code


'RouteScenario' object has no attribute 'other_actors'

I am collecting data for short routes for towns using phase0_run_eval.py. I am seeing the below error while collecting data for short towns -
The scenario could not be loaded:
> 'NoneType' object has no attribute 'try_spawn_actor'
Traceback (most recent call last):
  File "/DATA/btp/mmfn/leaderboard/leaderboard/leaderboard_evaluator.py", line 354, in _load_and_run_scenario
    scenario = RouteScenario(world=self.world, config=config, debug_mode=args.debug)
  File "/DATA/btp/mmfn/leaderboard/leaderboard/scenarios/route_scenario.py", line 191, in __init__
    ego_vehicle = self._update_ego_vehicle()
  File "/DATA/btp/mmfn/leaderboard/leaderboard/scenarios/route_scenario.py", line 251, in _update_ego_vehicle
    rolename='hero')
  File "/DATA/btp/mmfn/scenario_runner/srunner/scenariomanager/carla_data_provider.py", line 529, in request_new_actor
    actor = CarlaDataProvider._world.try_spawn_actor(blueprint, spawn_point)
AttributeError: 'NoneType' object has no attribute 'try_spawn_actor'
> Registering the route statistics
Exception ignored in: <function RouteScenario._del_ at 0x7f71e6b6f5f0>
Traceback (most recent call last):
  File "/DATA/btp/mmfn/leaderboard/leaderboard/scenarios/route_scenario.py", line 567, in __del__
    self.remove_all_actors()
  File "/DATA/btp/mmfn/scenario_runner/srunner/scenarios/basic_scenario.py", line 282, in remove_all_actors
    for i, _ in enumerate(self.other_actors):
AttributeError: 'RouteScenario' object has no attribute 'other_actors'

This error is coming up for some other towns as well but only for short routes. Data is collected for tiny routes without any error.
Any idea why this is coming up and how to fix it?

I think it need more detail, which code commit you are running for leaderboard, roadrunner from caral/fork from me. and CARLA version, whether it open successfully, which towns you are mentioned, how could I reproduce this error. (Since I didn't have this err when I run it 4 years ago

I am using mmfn_pilot as the expert agent to collect the data after forking this repository. I am using CARLA 0.9.10. CARLA is opening successfully and even collecting the data successfully for tiny routes (eg. routes_town03_tiny).
The issue is showing up while collecting data for short routes of Town-3, 4, 5, 6, 10.
I did change anything from the repository code to collect the data. I think you should be able to reproduce the error by running the data collection script following the instructions you gave in README

I think the issue is in CARLA Leaderboard code rather than your code. Did you fix anything in there while working on this project?

Resolved. It was an error from my side.


LVL1 entry only

runtime.log
On 0.1.4 it correctly reads text but every entry is empty LVL1 exp=2
On 0.1.4rc2 it has critical error
I tried to uninstall and install again both tool and python. Don't know what I'm missing.

Hi.
Try using version 0.1.4, but without debug mode, it's bugged.
Statistics are computed per level, so when you gain a level and you do first measurement for this level you will always have "zeroed" entry with "never"s.

I never had custom font. I play standalone version in English. I tried to reinstall Fontin now but it didn't help. Language change also didn't help. What can I try to fix this? Game reinstall? Delete some fonts?

There is no need for that. Game probably gets language local settings from your system.
Could you try this version. Tell after how often gives you actual entry.
poe_exp_after_dot-0.1.5.dev2-py3-none-win_amd64.whl.zip

runtime.log
Seems that problem is solved now. I tried to measure about 10 times and only once it incorectly put me at level 3 because of reading exp amount too short by three last digit. So I think its normal and works well.
Thank You for the fix and help. Always wanted a tool like this. It's awesome.

Soon I will do proper release with this fix.

Fix applied to v0.1.5.


Style no_emails.html.eex.

Please see below for a preview of the email:

@StevenXL Thank you so much for this! This is very helpful :)


WebHCat* examples are failing

This is due to an upstream bug.

I tried a work around of using curl to perform a GET on the /status endpoint prior to submitting the job, but unfortunately, this didn't help.  The code I tried:
diff --git a/examples/WebHCatPig/Example.groovy b/examples/WebHCatPig/Example.groovy
index 73c51bf..c0cde26 100644
--- a/examples/WebHCatPig/Example.groovy
+++ b/examples/WebHCatPig/Example.groovy
@@ -50,6 +50,19 @@ dra:Deirdre McClure:marvelous
 Hdfs.put(session).text( id_pig ).to( jobDir + "/input/id.pig" ).now()
 Hdfs.put(session).text( fake_passwd ).to( jobDir + "/input/passwd" ).now()

+println "*" * 80
+def cmd = ['curl', '-k', '-i', '-v', '-u', "${username}:${password}", "'${gateway}/templeton/v1/status'"]
+println cmd.join(" ")
+
+def p = cmd.execute()
+def out = new StringBuffer()
+def err = new StringBuffer()
+p.consumeProcessOutput( out, err )
+p.waitFor()
+if( out.size() > 0 ) println out
+if( err.size() > 0 ) println err
+println "*" * 80
+
 jobId = Job.submitPig(session) \
             .file("${jobDir}/input/id.pig") \
             .arg("-v") \

This is expected to be fixed with BigInsights 4.2.


Updated to use the latest ollama models and pinned versions

Changes

Pinned package versions to latest stable releases
Specified Python 3.11.8 as the required version
Updated model handling code to be compatible with latest ollama package

Notes
The project needed updates to work with the latest versions of its dependencies, particularly the ollama package which has had significant updates. These changes ensure reproducible environments and compatibility with current package versions.

I tested this PR and it works great. Thank you!
Until this is merged, a lazy workaround is pinning ollama==0.1.8 in requirements.txt, to get benchmark.py running as originally intended.


"Threat Detection Types" in threat detection set up

Hi,
I need to specify what kind of alerts would be sent for each "Threat Detection Types" in the threat detection set up pane in the portal. I figure a lot of them are correspondant with Threat Detection Alerts, but can you give me a brief explanation for all of the types? (Especially for Data exfiltration, Unsafe action, and Anomalus client login.
Thanks

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

ID: d8b43b28-f8e6-a718-7bcd-b42ee2b19416
Version Independent ID: 63f89c9e-cab7-531a-0a69-9a7e9ab0521b
Content: Threat Detection - Azure SQL Database
Content Source: articles/sql-database/sql-database-threat-detection.md
Service: sql-database
GitHub Login: @rmatchoro
Microsoft Alias: ronmat

@v-maroge @v-maroge Thanks for the feedback. I do want to initially respond with alerts are sent via email and can be viewed in the Azure Portal. And example notification made available in the documentation: Explore anomalous database activities upon detection of a suspicious event
Your ask is for more information about the types of events that would trigger a notification for each of the "Threat Detection Types". More specifically, you are looking for the alerts triggered for these threat event types:

Data Exfiltration
Unsafe Action
Anomalus client login

I am investigating this and will get back with you shortly. Thanks, ~Mike

@v-maroge This section: Azure SQL Database Threat Detection alerts covers the following Advanced Threat Detection activities that are monitored by the service.

@Mike-Ubezzi-MSFT  Can you tell me specifically which events in the document you shared cover "Unsafe Actions"? I can tell that events that correlate with "SQL injection" and "Anomalous client login"  are rather obviouse, but not sure which one does with "Unsafe action" yet. (Maybe Brute force SQL credentials?)

@v-maroge I am unable to find any details as to what qualifies as an 'Unsafe Action' threat detention activity type. The Threat Detention types are part of Azure Security Center but are specific for a particular service. I am going to forward this on the content owner to update the docs, or provide a link to a description of the events captured.

@Mike-Ubezzi-MSFT working on it

@CarlRabeler Any update on this?

I sent another request just now for an answer to this question.

@v-maroge  "Data exfiltration" and "Unsafe action" are new detectors (hooray!🎉) being tested these days with a small group of users and soon will be available to all.
I think  those 2 have created the confusion and besides that the others are easy to map ("Anomalous client login" is a switch for a family of alerts).  Full explanation on the 2 new alerts will be soon added to the linked page above, "Azure SQL Database Threat Detection alerts".

@MikiMakhlevich I will be looking forward to see the updated document. Thanks!

@MikiMakhlevich Just another quick question, the two options are already visible in the portal, but does that mean even if they are selected they actually don't work untill it is officialy available?

@MikiMakhlevich Just want to make sure,  you mentioned that it is "tested with a small group of users and soon will be available" does this mean that these two detectors are still not GA?

@MikiMakhlevich can you please respond to this follow-up question? Thanks.

@MikiMakhlevich can you please respond to this follow-up question? Thanks.

@Mike-Ubezzi-MSFT please assign to @MikiMakhlevich

@MikiMakhlevich Can you please navigate to aka.ms/azuregithub and join all organizations necessary to participate in the MicrosoftDocs editing workflow. I am unable to assign this content item to you as requested by @CarlRabeler. Thank you!

@Mike-Ubezzi-MSFT please assign this to @VanMSFT


Showing steps should disable answering the full part question

When responding to an part, after responding to steps, the resulting text is confusing (code should allow responding to the full part if steps were already opened....)

I'm not sure which bit of this you think should change. Could you give a suggested alternate text?

I guess different exams use steps in a different way.
One way to use steps is to prove a step by step solution and allow the student perform those steps and collect some of the mark.
When the student than open the step-by-step option (and follow it, and collect marks using it), he/she should not be allowed to press submit part any more. This button should be disabled.
Hence the text "Your answer is correct... counted" should also never appear (since the user should not be allowed to press submit part any more)
At least, this is my understanding of teh situation that occurs when step-by-step is used.

That's not how steps are intended to be used.


ImportError

ImportError: DLL load failed while importing slstm_HS128BS8NH4NS4DBfDRbDWbDGbDSbDAfNG4SA1GRCV0GRC0d0FCV0FC0d0

I also have the similar erro：
RuntimeError: Error building extension 'slstm_HS64BS8NH1NS4DBfDRbDWbDGbDSbDAfNG4SA1GRCV0GRC0d0FCV0FC0d0'

I have the same problem.
RuntimeError: Error building extension 'slstm_HS128BS8NH4NS4DBfDRbDWbDGbDSbDAfNG4SA1GRCV0GRC0d0FCV0FC0d0'

Has anyone found a solution yet?

I also have the similar erro： RuntimeError: Error building extension 'slstm_HS64BS8NH1NS4DBfDRbDWbDGbDSbDAfNG4SA1GRCV0GRC0d0FCV0FC0d0'

Hello, I have the same problem. If you find the solution, could you tell me how to solve it? thx!!!

I have the same problem. RuntimeError: Error building extension 'slstm_HS128BS8NH4NS4DBfDRbDWbDGbDSbDAfNG4SA1GRCV0GRC0d0FCV0FC0d0'

Hello, I have the same problem. If you find the solution, could you tell me how to solve it? thx!!!

我有同样的问题。RuntimeError：构建扩展“slstm_HS128BS8NH4NS4DBfDRbDWbDGbDSbDAfNG4SA1GRCV0GRC0d0FCV0FC0d0”时出错

您好，我有同样的问题。如果你找到了解决方案，你能告诉我怎么解决吗？感谢！！！

你好，你解决了吗


if lib/package cannot be found on host fs

if lib/package cannot be found on host fs,
we should probably throw an error.
we search for the packages before starting the container so, should not be hard to do.
--allow-missing
might be a good flag to use if we want to allow packages to not be findable, etc.

--search-root might also be a good option


No JS Search

Currently the only javascript is the search. For all reasons, this is basically a non-issue. It works perfectly.
But how great would it be to actually say with certainty - "Abridge has no JavaScript."
I'm wondering how difficult it would be to change this to use Web-Assembly/Rust. For now, this will likely be an outstanding issue, but I just want to track it for now.

There are two search engines that I am aware of that do this, stork and tinysearch
I posted to zola github here: https://github.com/getzola/zola/issues/1849
The problem is that Stork and Tinysearch do not work as well with CJK/stemmers/stopwords
Stork: https://github.com/jameslittle230/stork/issues/293
TinySearch: https://github.com/tinysearch/tinysearch/issues/157
elasticlunr-rs: https://github.com/mattico/elasticlunr-rs/issues/43
I love the idea myself as well, and technically Stork or Tinysearch could be implemented in this theme even without them being merged into Zola, but we would need to build the search index ourselves.

It would be something Abridge has that no one else has, which makes me enthusiastic about the idea. I'll try to look into it with some help, but I have no guarantee on timeline. Could be weeks.

Yes I agree, I also edited my previous post to include information about how you can reduce the two js files into a single js file.

After a bit more thought, I would only want to implement stork or tinysearch if we can submit the part that generates the index to the zola code base, otherwise people that depend on remote build tools such as netlify build action, would not be able to use these other searches.
If we could add the index generation as an additional option for zola and submit it as a pull request to the zola project then I think it would be good to add stork and tinysearch support.

I did a little work integrating tinysearch, but I am not sure yet how to retrieve the body of the post:  https://github.com/tinysearch/tinysearch/issues/159

I have stork partially implemented, it works but the styling is all off, I have to fix it similarly to how I did for tinysearch.
tinysearch came in at half the size of elasticlunr, but stork on the other hand came in at 3 time larger.
Unless stork brings something significant to the table then I don't really see any reason to use it over elasticlunr or tinysearch.
I am going to finish the implementation because it will be interesting to fully benchmark all 3 on a larger data set.

Awesome work!

Still need to add a meta field to tinysearch, but both Stork and Tinysearch are implemented.
Stork does not return a results page when you press enter or the search icon, it uses typescript instead of vanilla javascript so it is a whole lot less hackable, not that its impossible, just takes more work. The suggestions popup does function though and results are clickable.
I also updated the readme to outline how to switch to these alternate searches.
Stork demo: https://jieiku.github.io/abridge-stork/
Tinysearch demo: https://jieiku.github.io/abridge-tinysearch/

For sake of completeness, have you looked at?

pagefind (Rust): Static low-bandwidth search at scale
lyra (TypeScript): Fast, in-memory, typo-tolerant, full-text search engine written in TypeScript.

This issue seems to have the best list of Static Site Generator search options that I've found. I'm tending toward a Rust based solution, at least for search. With regard to SSGs, I'm working on transitioning all of my sites from Middleman and Zola over to soupault. Soupault's model is just so much more flexible.

I did take a quick look at soupault, it is not written in rust so I decided not to look further. I really want to become proficient with rust over time, so I am trying to make use of rust as much as I can.
I have a very good understanding of the necessary workaround to make use of zola so its few shortcomings are not an issue for me (but I can totally see how it can be an issue for newcomers to zola or abridge).
pagefind, the only demo I could find of it in use was here: https://pagefind.app/
it seems which you click into the search it initially loads this:

It seems to then download chunks for the results as you type, I can see how this would save a LOT of bandwidth

lyra, the demo seems to download a 7MB file which considering the index is apparently 37,000 items is probably impressive, but the pagefind engine seems more interesting.
Thanks for the info. I have bookmarked these things. I may try integrating pagefind!

The initial implementation of this is complete.
Stork demo: https://jieiku.github.io/abridge-stork/
Tinysearch demo: https://jieiku.github.io/abridge-tinysearch/

Woah, it's done?

yes, I also updated the readme, feel free to try out the demo links. I may implement pagefind later, it certainly looks interesting.


[stable/wordpress] Set dependencies to the latest version

What this PR does / why we need it:
Which issue this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close that issue when PR gets merged): fixes #
Special notes for your reviewer:
Logs:
Welcome to the Bitnami wordpress container
Subscribe to project updates by watching https://github.com/bitnami/bitnami-docker-wordpress
Submit issues and feature requests at https://github.com/bitnami/bitnami-docker-wordpress/issues

WARN  ==> You set the environment variable ALLOW_EMPTY_PASSWORD=yes. For safety reasons, do not use this flag in a production environment.
nami    INFO  Initializing apache
apache  INFO  ==> Patching httpoxy...
nami    INFO  apache successfully initialized
nami    INFO  Initializing php
nami    INFO  php successfully initialized
nami    INFO  Initializing mysql-client
nami    INFO  mysql-client successfully initialized
nami    INFO  Initializing wordpress
mysql-c INFO  Trying to connect to MySQL server
mysql-c INFO  Found MySQL server listening at dusty-fly-mariadb:3306
mysql-c INFO  MySQL server listening and working at dusty-fly-mariadb:3306
wordpre INFO
wordpre INFO  ########################################################################
wordpre INFO   Installation parameters for wordpress:
wordpre INFO     First Name: FirstName
wordpre INFO     Last Name: LastName
wordpre INFO     Username: user
wordpre INFO     Password: **********
wordpre INFO     Email<EMAIL_ADDRESS>wordpre INFO     Blog Name: User's Blog!
wordpre INFO     Table Prefix: wp_
wordpre INFO   (Passwords are not shown for security reasons)
wordpre INFO  ########################################################################
wordpre INFO
nami    INFO  wordpress successfully initialized
INFO  ==> Starting wordpress...

/ok-to-test
/lgtm


Use Maven filtering for route names in test classes

Implements: SB-320

This solution is probably the simplest possible solution to the problem.
Another solution would be to override the openshift-it to add the app.name system property there with value of project.artifactId


Allow agent state to be set as RESET by deployd like Teletraan UI does

Corresponding PR on deployd side: https://github.com/pinterest/teletraan/pull/1324 and https://github.com/pinterest/teletraan/pull/1329

After deploying this PR to TAS, I tested these cases:

with deploy-agent-pex current version 1.2.46, tested these UI operations: reset, restart, deploy and launch a new host;
with deploy-agent-pex latest version 1.2.52, tested: reset, restart and deploy;
with deploy-agent-pex latest version 1.2.52, tested: auto redeploy

For auto redeploy, when the max retry time is hit, there is no redeployment:

when the max retry time is not hit, there is auto redeployment:
before redeployment:

after redeployment:


Permissions on forked repositories

It appears that the owner of any forked project is able to enable runners from the parent project. They are also able to pause the runner and edit its description and tags. Is there some way of changing this? It makes it impossible to give untrusted developers "Reporter" status.

I should add the information that I am using specific runners. I can only assume that this is a bug. It certainly seems at odds with the documentation on the subject. I have tried forking a project from gitlab.com and do not see the issue there, however all the runners appear to be shared. Should I be using shared runners on my projects? If so, then the documentation is somewhat misleading.


Scraping the comments from provider results (HN/Reddit).

Backend:

Crawl the top result for each provider for comments
Don't crawl if there 0 comments

UI: show top comments before all provider post results

Implemented in #139


Fix dynamic failure in test_subprocess.py

There was a reported test failure https://github.com/triton-lang/triton/actions/runs/9357367045/job/25756933587 and test_subprocess.py has been skipped in AMD-CI.
We've investigated that it was caused by a missing GPU/host synchronization before test checking the stdout/err in the test. Normally Triton use case rely GPU/host synchronization on torch tensor but printf test doesn't write output to the tensor and test needs to wait until driver finishes the job. This PR adds torch.cuda.synchronize() at the end of the tests which require the synchronization.
Also, we found one more change needed in the AMD backend - set block barrier before we call llvm::trap, guarantees all the assertion message to be printed out before the abortion. This issue has been found after stack trace was disabled by default.
No failure has been observed after applying two changes.

[x] I am not making a trivial change, such as fixing a typo in a comment.

[x] I have written a PR description following these
rules.

[x] I have run pre-commit run --from-ref origin/main --to-ref HEAD.

Select one of the following.

[ ] I have added tests.

/test for lit tests
/unittest for C++ tests
/python/test for end-to-end tests

[x] This PR does not need a test because This fixes a test failure of the existing test.

Select one of the following.

[x] I have not added any lit tests.
[ ] The lit tests I have added follow these best practices,
including the "tests should be minimal" section. (Usually running Python code
and using the instructions it generates is not minimal.)

@jlebar FYI: this was the fix for the flaky test_subprocess.py issue you were experiencing before.


feat: add missing provider parameters

Juste leaving this here for futur update after wednesday. Module is missing some new feature like:

project_id in cluster
delete_additionnal_resources in cluster which is nice to have for the CI
kubelet-args in node pool
zone in node pool

https://github.com/particuleio/terraform-scaleway-kapsule/pull/4

closed by #4


Figure out how to get coveralls.io to understand benches, integration tests, and examples

Right now, AFAICT, it only considers what is run for #[test]s in the main library, not anything under the tests/ directory, examples/, or benches/.
It would be nice to expand to cover them too.

Can we close this one, @philipc ?

Yeah, hopefully #103 will make this usable.


Error during compilation of the source code

Hello,
i tried to compile baresip on OS X but i got some issues
My configuration :
MacOS Sierra
Version 10.12.5
XCode 8.3.3 (8E3004b)
XCode command tools line installed
Here is my logs:

ld: warning: directory not found for option '-L-lre'
Undefined symbols for architecture arm64:
"_list_append", referenced from:
_aubuf_append in aubuf.o
_aumix_source_enable in aumix.o
_vidmix_source_enable in vidmix.o
"_list_count", referenced from:
_aumix_source_count in aumix.o
"_list_flush", referenced from:
_aubuf_destructor in aubuf.o
_aubuf_flush in aubuf.o
"_list_unlink", referenced from:
_auframe_destructor in aubuf.o
_source_destructor in aumix.o
_aumix_source_enable in aumix.o
_source_destructor in vidmix.o
_vidmix_source_enable in vidmix.o
"_lock_alloc", referenced from:
_aubuf_alloc in aubuf.o
"_lock_read_get", referenced from:
_aubuf_debug in aubuf.o
_aubuf_cur_size in aubuf.o
"_lock_rel", referenced from:
_aubuf_append in aubuf.o
_aubuf_read in aubuf.o
_aubuf_get in aubuf.o
_aubuf_flush in aubuf.o
_aubuf_debug in aubuf.o
_aubuf_cur_size in aubuf.o
"_lock_write_get", referenced from:
_aubuf_append in aubuf.o
_aubuf_read in aubuf.o
_aubuf_get in aubuf.o
_aubuf_flush in aubuf.o
"_mbuf_alloc", referenced from:
_aubuf_write in aubuf.o
"_mbuf_read_mem", referenced from:
_aubuf_read in aubuf.o
"_mbuf_write_mem", referenced from:
_aubuf_write in aubuf.o
"_mbuf_write_u16", referenced from:
_autone_sine in tone.o
_autone_dtmf in tone.o
"_mem_alloc", referenced from:
_aumix_thread in aumix.o
_aumix_source_alloc in aumix.o
"_mem_deref", referenced from:
_aubuf_alloc in aubuf.o
_aubuf_destructor in aubuf.o
_aubuf_append in aubuf.o
_auframe_destructor in aubuf.o
_aubuf_write in aubuf.o
_aubuf_read in aubuf.o
_aufile_open in aufile.o
...
"_mem_ref", referenced from:
_aubuf_append in aubuf.o
_aumix_source_alloc in aumix.o
_vidmix_source_alloc in vidmix.o
"_mem_zalloc", referenced from:
_aubuf_alloc in aubuf.o
_aubuf_append in aubuf.o
_aufile_open in aufile.o
_aumix_alloc in aumix.o
_aumix_thread in aumix.o
_aumix_source_alloc in aumix.o
_vidmix_alloc in vidmix.o
...
"_re_fprintf", referenced from:
_wav_header_decode in wave.o
_auconv_from_s16 in auconv.o
_auconv_to_s16 in auconv.o
_vidframe_draw_point in draw.o
_vidframe_draw_hline in draw.o
"_re_hprintf", referenced from:
_aubuf_debug in aubuf.o
"_re_printf", referenced from:
_vidframe_init_buf in frame.o
_vidframe_fill in frame.o
_vidframe_copy in frame.o
_vidconv in vconv.o
"_sys_htoll", referenced from:
_wav_header_encode in wave.o
"_sys_htols", referenced from:
_wav_header_encode in wave.o
"_sys_ltohl", referenced from:
_wav_header_decode in wave.o
"_sys_ltohs", referenced from:
_wav_header_decode in wave.o
"_tmr_jiffies", referenced from:
_aubuf_get in aubuf.o
_aumix_thread in aumix.o
_content_thread in vidmix.o
_vidmix_thread in vidmix.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[1]: *** [librem.dylib] Error 1
make: *** [librem] Error 2

When i try to compile libre alone :

LD      libre.dylib
Undefined symbols for architecture x86_64:
"__mod_close", referenced from:
_mod_destructor in mod.o
"__mod_open", referenced from:
_mod_load in mod.o
"__mod_sym", referenced from:
_mod_load in mod.o
"_lock_alloc", referenced from:
_rtcp_sess_alloc in sess.o
"_lock_read_get", referenced from:
_rtcp_stats in sess.o
_rtcp_debug in sess.o
"_lock_rel", referenced from:
_rtcp_sess_tx_rtp in sess.o
_rtcp_stats in sess.o
_rtcp_debug in sess.o
_mk_sr in sess.o
"_lock_write_get", referenced from:
_rtcp_sess_tx_rtp in sess.o
_mk_sr in sess.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [libre.dylib] Error 1

When i try to compile librem alone :

LD      librem.dylib
ld: warning: directory not found for option '-L-lre'
Undefined symbols for architecture x86_64:
"_list_append", referenced from:
_aubuf_append in aubuf.o
"_list_flush", referenced from:
_aubuf_destructor in aubuf.o
_aubuf_flush in aubuf.o
"_list_unlink", referenced from:
_auframe_destructor in aubuf.o
"_lock_alloc", referenced from:
_aubuf_alloc in aubuf.o
"_lock_read_get", referenced from:
_aubuf_debug in aubuf.o
_aubuf_cur_size in aubuf.o
"_lock_rel", referenced from:
_aubuf_append in aubuf.o
_aubuf_read in aubuf.o
_aubuf_get in aubuf.o
_aubuf_flush in aubuf.o
_aubuf_debug in aubuf.o
_aubuf_cur_size in aubuf.o
"_lock_write_get", referenced from:
_aubuf_append in aubuf.o
_aubuf_read in aubuf.o
_aubuf_get in aubuf.o
_aubuf_flush in aubuf.o
"_mbuf_alloc", referenced from:
_aubuf_write in aubuf.o
"_mbuf_read_mem", referenced from:
_aubuf_read in aubuf.o
"_mbuf_write_mem", referenced from:
_aubuf_write in aubuf.o
"_mbuf_write_u16", referenced from:
_autone_sine in tone.o
_autone_dtmf in tone.o
"_mem_deref", referenced from:
_aubuf_alloc in aubuf.o
_aubuf_destructor in aubuf.o
_aubuf_append in aubuf.o
_auframe_destructor in aubuf.o
_aubuf_write in aubuf.o
_aubuf_read in aubuf.o
_aufile_open in aufile.o
...
"_mem_ref", referenced from:
_aubuf_append in aubuf.o
"_mem_zalloc", referenced from:
_aubuf_alloc in aubuf.o
_aubuf_append in aubuf.o
_aufile_open in aufile.o
_vidframe_alloc in frame.o
"_re_fprintf", referenced from:
_wav_header_decode in wave.o
_auconv_from_s16 in auconv.o
_auconv_to_s16 in auconv.o
_vidframe_draw_point in draw.o
_vidframe_draw_hline in draw.o
"_re_hprintf", referenced from:
_aubuf_debug in aubuf.o
"_re_printf", referenced from:
_vidframe_init_buf in frame.o
_vidframe_fill in frame.o
_vidframe_copy in frame.o
_vidconv in vconv.o
"_sys_htoll", referenced from:
_wav_header_encode in wave.o
"_sys_htols", referenced from:
_wav_header_encode in wave.o
"_sys_ltohl", referenced from:
_wav_header_decode in wave.o
"_sys_ltohs", referenced from:
_wav_header_decode in wave.o
"_tmr_jiffies", referenced from:
_aubuf_get in aubuf.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [librem.dylib] Error 1

Rems

RemsHag writes:

ld: warning: directory not found for option '-L-lre'

Syntax of the options above does not look valid.
-- Juha

What is the correct syntax?

if i use the correction here (https://github.com/alfredh/baresip-ios/issues/2#issuecomment-21413975), it seems to be good.
I have others issues with web rtc, but we can close this issue

RemsHag writes:

What is the correct syntax?

See 'man ld'.
-- Juha

you can also install binary version from Macports or Homebrew:
brew install baresip

or

sudo port install baresip

/Alfred


Add poppler to TravisCI

What does this implement/fix?
Adds poppler to travis ci in order to be able to render PDFs in tests
Does this close any currently open issues?
No
Explain your workflow
Edit the .travis.yml file to include the installation of poppler utils before running the suite
Any other comments?
This is needed for upcoming implementations such as #66
This is being shipped separately to prevent false positives and easier revert if needed

@VzqzAc Can you explain why this is this necessary only on CI? Shouldn't they be on the dev env too?

@MatheusRich I updated the description for this, and yes, it is needed in all environments where we use file previews, but as we cannot install those on the PC env I'll update the project requirements on #66 to address it and let the users know they need to install those processors, what do you think? (All these tools are heroku-friendly)

@VzqzAc Is there no way to accomplish this with gems? I would like to keep all the dependencies on Gemfile. Other way the Docker env will be the go-on alternative.

Ah, totally forgot about docker sorry! I think yes docker would suit better, and no, ActiveStorage suggest those softwares to accomplish that, see https://edgeguides.rubyonrails.org/active_storage_overview.html#previewing-files

@VzqzAc Add the dependencies to docker and I will merge it.

@MatheusRich do you mind taking a look at the Dockerfile?

@VzqzAc Tell me when this is good to go.

@VzqzAc Let me know if you're still gonna tackle this. Otherwise I will close this PR and cherry-pick your commits in another branch.


Try migrate from Json.Net.AOT to original Json.Net

Using Json.Net.AOT because of some issue with Blazor at runtime.
See here for more information.
Must try to migrate to the original one if linker change work.

Also, it's mandatory in order to let people using any version of the original Newtonsoft.Json.
As a solution:

We can try to migrate from Newtonsoft.Json.Aot to the author implementation, adding recommended configuration for Linker in the Github doc.
Or keeping usage of Newtonsoft.Json.Aot, but renaming the Assembly et namespace, as a side by side library. But it's less ideal as it can add some megabytes on Blazor builds.

Migrated to Newtonsoft.Json.Net
Added linker.xml on Blazor project samples


dispute issues

if the dispute period has finished, we should hide the Escalate button as you cannot do it

dispute period in escalate modal doesnt match the days left on the right side of the chat 318 as you can see here

vs 0 days left

@sukrita3

dispute period in escalate modal doesnt match the days left on the right side of the chat 318 as you can see here
vs 0 days left

this is actually correct, nothing to fix

related to https://github.com/bosonprotocol/interface/issues/610