text:
Shrink causing InvalidCastException

Hi there, I just started using LiteDB for an embedded project. In order to ensure that the size of the database doesn't balloon over time, I set things up to call Shrink during initialization of my database-powered class. This shrink operation is triggering an InvalidCastException. Here's the full stacktrace:
Unhandled Exception:
System.InvalidCastException: Specified cast is not valid.
  at (wrapper castclass) System.Object.__castclass_with_cache(object,intptr,intptr)
  at LiteDB.PageService.GetPage[T] (System.UInt32 pageID) [0x0005a] in <0e7fe05a592849968cfe23dfc2a26585>:0
  at LiteDB.IndexService.GetNode (LiteDB.PageAddress address) [0x0000b] in <0e7fe05a592849968cfe23dfc2a26585>:0
  at LiteDB.IndexService+<FindAll>d__13.MoveNext () [0x00064] in <0e7fe05a592849968cfe23dfc2a26585>:0
  at LiteDB.LinqExtensions+<>c__DisplayClass2_0`2+<<DistinctBy>g___|0>d[TSource,TKey].MoveNext () [0x0008e] in <0e7fe05a592849968cfe23dfc2a26585>:0
  at LiteDB.QueryCursor.Fetch (LiteDB.TransactionService trans, LiteDB.DataService data, LiteDB.BsonReader bsonReader) [0x00010] in <0e7fe05a592849968cfe23dfc2a26585>:0
  at LiteDB.LiteEngine+<Find>d__9.MoveNext () [0x00205] in <0e7fe05a592849968cfe23dfc2a26585>:0
  at LiteDB.LinqExtensions+<YieldBatchElements>d__1`1[T].MoveNext () [0x0008b] in <0e7fe05a592849968cfe23dfc2a26585>:0
  at LiteDB.LiteEngine+<>c__DisplayClass22_0.<Insert>b__0 (LiteDB.CollectionPage col) [0x0003f] in <0e7fe05a592849968cfe23dfc2a26585>:0
  at LiteDB.LiteEngine.Transaction[T] (System.String collection, System.Boolean addIfNotExists, System.Func`2[T,TResult] action) [0x0004e] in <0e7fe05a592849968cfe23dfc2a26585>:0
  at LiteDB.LiteEngine.Insert (System.String collection, System.Collections.Generic.IEnumerable`1[T] docs, LiteDB.BsonType autoId) [0x00041] in <0e7fe05a592849968cfe23dfc2a26585>:0
  at LiteDB.LiteEngine.InsertBulk (System.String collection, System.Collections.Generic.IEnumerable`1[T] docs, System.Int32 batchSize, LiteDB.BsonType autoId) [0x00051] in <0e7fe05a592849968cfe23dfc2a26585>:0
  at LiteDB.LiteEngine.Shrink (System.String password, LiteDB.IDiskService tempDisk) [0x00104] in <0e7fe05a592849968cfe23dfc2a26585>:0
  at LiteDB.LiteDatabase.Shrink (System.String password) [0x00032] in <0e7fe05a592849968cfe23dfc2a26585>:0
  at LiteDB.LiteDatabase.Shrink () [0x00013] in <0e7fe05a592849968cfe23dfc2a26585>:0
  at stream.UploadQueue..ctor (System.String stateDirectory) [0x0003c] in <e7965cbc2917400c8a077c965e3fb213>:0
  at stream.Program.Main (System.String[] args) [0x0004f] in <e7965cbc2917400c8a077c965e3fb213>:0

This is using the packages that are currently on Nuget. The pertinent code is pretty much as you'd expect, but here it is nonetheless:
        private string _stateDirectory;
        private LiteDatabase _db;
        private LiteCollection<UploadJob> _uploadJobs;

        public UploadQueue(string stateDirectory)
        {
            _stateDirectory = Path.GetFullPath(stateDirectory);
            var dbName = Path.Combine(_stateDirectory, "state.db");
            _db = new LiteDatabase(dbName);
            _db.Shrink();
            _uploadJobs = _db.GetCollection<UploadJob>("uploadJobs");
            _uploadJobs.EnsureIndex(x => x.EnqueueTime);
            _uploadJobs.EnsureIndex(x => x.HashedName);
        }

Also of note, I just discovered that it has created hundreds of state-temp-<n>.db files. My process is managed by supervisord, so it keeps restarting every time this exception occurs, which probably explains them. Nonetheless, I'd argue that this is probably undesirable -- is there another option here? Perhaps writing the temp databases to /tmp so that they're deleted on reboot?

The plot thickens: if I remove the Shrink call, I get the InvalidCastException when trying to open a file using FileStorage:
[syncer] syncError occurred in upload: System.AggregateException: One or more errors occurred. ---> System.InvalidCastException: Specified cast is not valid.
  at (wrapper castclass) System.Object.__castclass_with_cache(object,intptr,intptr)
  at LiteDB.PageService.GetPage[T] (System.UInt32 pageID) [0x0005a] in <0e7fe05a592849968cfe23dfc2a26585>:0
  at LiteDB.IndexService.GetNode (LiteDB.PageAddress address) [0x0000b] in <0e7fe05a592849968cfe23dfc2a26585>:0
  at LiteDB.IndexService.Find (LiteDB.CollectionIndex index, LiteDB.BsonValue value, System.Boolean sibling, System.Int32 order) [0x00032] in <0e7fe05a592849968cfe23dfc2a26585>:0
  at LiteDB.QueryEquals+<ExecuteIndex>d__2.MoveNext () [0x00029] in <0e7fe05a592849968cfe23dfc2a26585>:0
  at LiteDB.LinqExtensions+<>c__DisplayClass2_0`2+<<DistinctBy>g___|0>d[TSource,TKey].MoveNext () [0x0008e] in <0e7fe05a592849968cfe23dfc2a26585>:0
  at LiteDB.QueryCursor.Fetch (LiteDB.TransactionService trans, LiteDB.DataService data, LiteDB.BsonReader bsonReader) [0x00010] in <0e7fe05a592849968cfe23dfc2a26585>:0
  at LiteDB.LiteEngine+<Find>d__9.MoveNext () [0x0011a] in <0e7fe05a592849968cfe23dfc2a26585>:0
  at System.Linq.Enumerable.TryGetFirst[TSource] (System.Collections.Generic.IEnumerable`1[T] source, System.Boolean& found) [0x00045] in <7aa7d6192efc4d31a9896d7a49ef2104>:0
  at System.Linq.Enumerable.FirstOrDefault[TSource] (System.Collections.Generic.IEnumerable`1[T] source) [0x00000] in <7aa7d6192efc4d31a9896d7a49ef2104>:0
  at LiteDB.LiteFileStream.GetChunkData (System.Int32 index) [0x00036] in <0e7fe05a592849968cfe23dfc2a26585>:0
  at LiteDB.LiteFileStream..ctor (LiteDB.LiteEngine engine, LiteDB.LiteFileInfo file, System.IO.FileAccess mode) [0x0001f] in <0e7fe05a592849968cfe23dfc2a26585>:0
  at (wrapper remoting-invoke-with-check) LiteDB.LiteFileStream..ctor(LiteDB.LiteEngine,LiteDB.LiteFileInfo,System.IO.FileAccess)
  at LiteDB.LiteFileInfo.OpenRead () [0x00000] in <0e7fe05a592849968cfe23dfc2a26585>:0
  at LiteDB.LiteStorage.OpenRead (System.String id) [0x00007] in <0e7fe05a592849968cfe23dfc2a26585>:0

So I'm guessing that this is probably what caused the problem with Shrink in the first place.

Hi @j4m3z0r, for some reason your datafile has an invalid page, and shrink method needs read all pages (and then found this broken page). You can try call "Recovery" static method from LiteEngine to restore this page.
This was an undetected problem that occurs in some cases (maybe concurrent access, or different environment). If you could share how is your application uses LiteDB this can helps me to improve and detect this cases.

Hey, thanks for the quick reply.
The application here is super simple: I’m maintaining a queue of files to upload to a server. I’m writing those UploadJob objects to store basic metadata and writing the file data itself to the FileStorage store. There’s one writer and one reader who both access the dB via that _db reference from two different threads (I thought this was safe?). However, this is not a situation with high transaction rates: enqueueing writes and dequeueing reads happen every few minutes.
The one thing I can think of is that this is in an embedded, battery powered device. It does have situations where the power is cut without a clean shutdown. I thought that the journaling system you have in place would handle this, but it’s the one area I can think of where the access pattern is slightly unusual.
Is there anything I can do differently to avoid this kind of corruption? And should I call Recovery on each startup to fix any potential DB problems before trying to access the data? I thought it would be good to sync the file system after each write, but I couldn’t find an easy way to do that in C# (on Linux, specifically). My transaction rate is low enough, and the data important enough that this would make sense if there was a way to do it.
Given that the issue looked to be with FileStore, I’ve rolled back to storing the file data directly on the file system. No idea if this will improve matters over the long term, but it hasn’t broken yet. :)

Oh, and the environment: this is running on a NanoPi Neo Core 2 LTS (catchy, no?) running Armbian’s Ubuntu 18.04 build against Xamarin’s official ARM64 packages.

By the way, I did keep a copy of the corrupt database and could share it with you if it would help. I’d rather not post it publicly, but can send you a Google Drive link or similar if it would be useful.

Hey, thanks for the quick reply.
The application here is super simple: I’m maintaining a queue of files to upload to a server. I’m writing those UploadJob objects to store basic metadata and writing the file data itself to the FileStorage store. There’s one writer and one reader who both access the dB via that _db reference from two different threads (I thought this was safe?). However, this is not a situation with high transaction rates: enqueueing writes and dequeueing reads happen every few minutes.
The one thing I can think of is that this is in an embedded, battery powered device. It does have situations where the power is cut without a clean shutdown. I thought that the journaling system you have in place would handle this, but it’s the one area I can think of where the access pattern is slightly unusual.
Is there anything I can do differently to avoid this kind of corruption? And should I call Recovery on each startup to fix any potential DB problems before trying to access the data? I thought it would be good to sync the file system after each write, but I couldn’t find an easy way to do that in C# (on Linux, specifically). My transaction rate is low enough, and the data important enough that this would make sense if there was a way to do it.
Given that the issue looked to be with FileStore, I’ve rolled back to storing the file data directly on the file system. No idea if this will improve matters over the long term, but it hasn’t broken yet. :)

Hi, I'm just a curious interloper: If your overall read/write is so low, is there any reason you don't open the file only when you need it and close the file when complete?

Hey, good thought. I may try that. I didn’t do it initially because I’m more suspicious of filesystem locks than I am of mutexes, esp on non-standard kernels (the Armbian kernel is marked as experimental for this board, though seems better than the “official” image from the board manufacturer in that it doesn’t spontaneously crash with high load). But that might be an outdated prejudice at this point.
That said, this still wouldn’t guarantee that the data gets flushed to disk, right?

Hey, good thought. I may try that. I didn’t do it initially because I’m more suspicious of filesystem locks than I am of mutexes, esp on non-standard kernels (the Armbian kernel is marked as experimental for this board, though seems better than the “official” image from the board manufacturer in that it doesn’t spontaneously crash with high load). But that might be an outdated prejudice at this point.
That said, this still wouldn’t guarantee that the data gets flushed to disk, right?
I would expect that closing the file would flush it to the OS, but Linux write caching would still be a 'concern'. That said, with the level of throughput you're talking about, your devices filesystem would need to be under really heavy load to be an issue, and someone would need to yank the power at a very exact point in time. Your application would need to have captured/manipulated the data and files, but fail to flush to disk. If your using EXT3/4 then the journaling would likely take care of this last concern.

I'd say you're pretty safe, especially if you only write the database record after you've uploaded/downloaded (or otherwise manipulated) the target files.

Hey guys, quick follow-up here. What's the best way to ensure that my database remains consistent? Is the corruption of my database the expected kind, where a recovery operation is just cleaning out a journal or similar? Or is this the unexpected kind, where the contents of the database should be considered inconsistent?
If the latter, is there anything I can do to prevent the database reaching this state? Or do I need to just accept that the database may become corrupted sometimes?
(I realize that disk errors and such may cause irrecoverable inconsistencies, but I don't think that was what happened here)

@mbdavid it looks like the Recovery() method was added after the last release on nuget. Any chance you could do a new release with that change along with any other bugfixes since 4.1.4? Thanks!

@j4m3z0r just so you can test it, I cloned this repo and ran LiteDB.Demo after setting the path to my corrupted db file and tested recovery. However, it didn't work. Hope it does for you!

Hi @j4m3z0r @matheussige - I will review all shrink method to check any problem. Also, I will add recovery method in shell tool.

Thanks @mbdavid for looking into it. My issue is not related to the Shrink method (just "ordinary" database corruption on an encrypted db), I just ended up here and found out about the Recovery method and tried it out.

But @matheussige, did you used, in any time, Shrink method in your database before get corrupted?

@mbdavid I did not. I have 2 Pages on my db where I keep some logs, and usually at least one of them gets corrupted often on our customer's machines. I'm trying to figure out what could be causing that.

I too face similar problem about LiteDB got corrupted. Not sure how my user did it. Maybe due to crash. I'm using LiteDB version 4.1.4, no Shrink function is called.
Dropping collection also becoming a problem too due to drop scan through all indexes and drop them.
PageService.GetPage[T] (System.UInt32 pageID)
System.InvalidCastException: Specified cast is not valid.
(wrapper castclass) System.Object.__castclass_with_cache(object,intptr,intptr)
LiteDB    PageService.GetPage[T] (System.UInt32 pageID)
LiteDB    IndexService.GetNode (LiteDB.PageAddress address)
LiteDB    IndexService+<FindAll>d__13.MoveNext ()
LiteDB    CollectionService.Drop (LiteDB.CollectionPage col)
LiteDB    LiteEngine+<>c__DisplayClass5_0.<DropCollection>b__0 (LiteDB.CollectionPage col)
LiteDB    LiteEngine.Transaction[T] (System.String collection, System.Boolean addIfNotExists, System.Func`2[T,TResult] action)
LiteDB    LiteEngine.DropCollection (System.String collection)
LiteDB    LiteDatabase.DropCollection (System.String name)

Anyone have any idea to workaround the issue if the database happen to be in corrupted state?

Manage to duplicate it once after multiple time of trying to kill the application while LiteDB is running.
It seem like IndexService.FindAll is looking for all IndexPage for given collection, but one of them returned as DataPage instead of expected IndexPage thus the invalid cast exception.
Maybe the linked list of page got mess up half way when LiteDB try to update the data?

Hi! With the objective of organizing our issues, we are closing old unsolved issues. Please check the latest version of LiteDB and open a new issue if your problem/question/suggestion still applies. Thanks!

@mbdavid why are all these tickets being closed with no resolution when you said: "v4 will be maintained only for bugs and critical updates". Why push people with established projects to move to a whole new, not backwards compatible version that's only just come out of RC in the last month?
This was a legitimate issue that was (probably) resolved with a recent patch. Summarily closing it whilst providing no details leaves people depending on v4 in the dark.

Hi @omfgicbf, v4 will be publish with new patchs and reviews. I just had no time yet for this now. I'm giving more hard work to deliver a better v5. As soon as possible i'm backing to v4 to deliver a new patch fix.

Hi @mbdavid, I appreciate your reply. The issue is not the timeline for a v4 update, nor the focus of effort on v5; both are completely understandable. The point was related to @lbnascimento closing outstanding v4 tickets with:-

Please check the latest version of LiteDB and open a new issue if your problem/question/suggestion still applies

The above statement contradicts your position that v4 will continue to be supported for bugs and critical updates.

authors: RussellHaley j4m3z0r lbnascimento matheussige mbdavid omfgicbf ooikengsiang

repo: mbdavid/LiteDB


text:
Virtual index fields

Virtual index fields mentioned in v3.0.0-beta but nothing in doco. Could we have a sample?

Virtual fields are Func that you can create to create an index based on this result, like this:
BsonMapper.Global.Entity<Order>()
    .DbRef(x => x.Customer) // will not include customer inside order document
    .Index("CustomerName", x => x.Customer.Name); // but create a search for customer name

// and than you can:

orders.Find(Query.EQ("CustomerName", "John"))

That looking good, thanks. One more question - if I add new index to existing collection is there any way to re-index the whole collection on that index?

Hi @vlad-k4k, I miss this question... sorry. I anwser in your new issue. As I told, there is not re-index, but in virtual indexes could be an exception.... why?
Well, virtual indexes are based only in entity mapper. So, if you open your datafile in an external app (like Shell) there is no virtual mapper, and all insert/update data will not be indexed.

@mbdavid may I suggest to have an API function to re-index? As for new indexes for existing collection or if indexing logic changed (in case of virtual index) the index become 'corrupted' - not correlating to the actual data.

Yes @vlad-k4k, make sense... it's on my list. I marked as suggention in your other issue about this.

source: gharchive/issue

license: MIT

license_type: permissive

license_source: github-api


text:
Replacing Travis with Github Actions?

Hi @seuros,
I was wondering whether you would be open to accepting a pull request that replaces Travis CI with Github Actions for the CI of this gem. As you might know, the future of free open source builds on Travis is very much in question (https://news.ycombinator.com/item?id=25338983) and I would be open to investigating whether it’s possible to migrate this project over to Github Actions.
All the best
Marvin

Yes.

authors: mkilling seuros

repo: mbleigh/acts-as-taggable-on


text:
added 2nd thread to handle lcm message, to prevent battery info delay

What's new:

Multithreading: One thread now handles screen updates, while another manages LCM message processing.
This change addresses the issue of LCM message delays.

Previously, both lc.handle() and screen updates were executed within the same loop. As a result, screen update delays could block the handling of new messages. By decoupling these processes, we ensure timely message handling and smoother operation.
#18

Cases listed above are all done and tested.

source: gharchive/pull-request


text:
🛑 Jaiba Brava is down

In 8b40e5a, Jaiba Brava (https://www.lajaibabrava.mx) was down:

HTTP code: 504
Response time: 288 ms

Resolved: Jaiba Brava is back up in 338961f.


text:
Send invitations to selected friends

Is it possible to send invitations or do other interactions with the Social Graph with this plugin?

As far as I see it only helps you selecting friends - posting to someone's feed or invite a friend has to be implemented by yourself.

I solved this issue by making use of the Facebook JavaScript SDK. The code looks like this:
        var friendSelector = $("#jfmfs-container").data('jfmfs');
        var user_ids = friendSelector.getSelectedIds().join(',');
        FB.ui({method: 'apprequests',
          message: 'Hey! Join Couptivate!',
          to: user_ids,
        });

@lacco just saw your answer! Yeah, I figured out, that this plugin does not cover that part. Thanks!

authors: kennym lacco

license_source: bigquery


text:
Canvas color not set

Lorien version:

lorien V 0.5.0
OS/device including version:

Windows 11
Issue description:

1.Open a new tab
2.Set different canvas color in new tab
3.Move to another tab
4.Return back to new tab
5.Canvas color is not reflected or not set
I would expect that canvas color to show previously set colour
Steps to reproduce:
Described in previous section

Fixed in b7b649995f35cb89375460215ac19b7ffb13a27d. This only affected unsaved files.

authors: mbrlabs nithinshoban

repo: mbrlabs/Lorien


text:
🔧 Write up browser support policy in docs

Summary of changes
Asana Ticket: 🔧 Documentation | Write up browser support policy in docs
Added some words in the README about which browsers our codebase supports via .browserslistrc.

Before getting review, please check the following:

[x] Does frontend functionality render and work correctly in IE?
[x] Have we load-tested any new pages or internal API endpoints that will receive significant traffic?
[x] Are interactive elements accessible to screen readers?
[x] Have you checked for tech debt you can address in the area you're working in?
[x] If this change involves routes, does it work correctly with pertinent "unusual" routes such as the combined Green Line, Silver Line, Foxboro commuter rail, and single-direction bus routes like the 170?
[x] Are the changes organized into self-contained commits with descriptive and well-formatted commit messages?

I've revised the readme again, hoping this helps!

repo: mbta/dotcom


text:
brag cuts literal when it is not instructed to

Hi,
I'm currently writing a grammar for a Prolog-like language. It contains the following rule: abstract-list : /"[" [abstract-term ("," abstract-term)* ["|" (abstract-list | abstract-variable)]] /"]"
If I use this rule to parse a larger data structure which contains an abstract list (for instance, (mycompound([g1,g2]))), the comma disappears from the parsed datum. If I put in a vertical bar instead, that is included in the parsed datum.
So, the whole parse tree, when I use a comma:
(at
  (treelabel
    ((abstract-atom "mycompound" (abstract-list (abstract-g-variable 1) (abstract-g-variable 2))))))

And the parse tree, when I use a bar:
(at
  (treelabel
    ((abstract-atom "mycompound" (abstract-list (abstract-g-variable 1) "|" (abstract-g-variable 2))))))

I figured this might have something to do with the cut also being applied in nested terms, so I rewrote the rule as follows:
abstract-list : /"[" [abstract-term term-tail ["|" (abstract-list | abstract-variable)]] /"]"
@term-tail : ("," abstract-term)*

But now the comma is included, so I get:
(at
  (treelabel
    ((abstract-atom "mycompound" (abstract-list (abstract-g-variable 1) "," (abstract-g-variable 2))))))

The latter is the result I want, but fail to see why the original rule and the one with the term-tail spliced in lead to a different outcome.

Here’s my attempt to make a test case that reproduces the problem:
parser.rkt
#lang brag
abstract-list : /"[" [abstract-term ("," abstract-term)* ["|" (abstract-list | abstract-variable)]] /"]"
abstract-term : "t"
abstract-variable : "v"

test.rkt
#lang br
(require "parser.rkt" brag/support)

(define (lex p)
  (λ () ((lexer
          [(eof) eof]
          [any-char lexeme]) p)))

(parse-to-datum (lex (open-input-string "[t,t]")))

Result:
'(abstract-list (abstract-term "t") "," (abstract-term "t"))

The comma is there. What am I missing?

I whittled down my code until the comma appeared and what I found was that the comma is missing when I use the following lexer, grammar and test:
#lang br
(require brag/support
              syntax/strip-context)
(define at-lexer
  (lexer-srcloc
   [(eof) (return-without-srcloc eof)]
   [(:+ whitespace) (token lexeme #:skip? #t)]
   [(:-
     (:seq (char-range "a" "z") (:* (:or (char-range "a" "z") (char-range "A" "Z") numeric  "_")))
     (:seq "g" (:+ numeric)))
    (token 'SYMBOL lexeme)]
   [(:or "(" ")" "[" "]" ",") (token lexeme lexeme)]
   [(:seq "g" (:+ numeric)) (token 'AVAR-G (string->number (substring lexeme 1)))]))
(provide at-lexer)

#lang brag
abstract-atom : SYMBOL [/"(" abstract-term (/"," abstract-term)* /")"]
@abstract-term : abstract-g-variable | abstract-list
abstract-g-variable : AVAR-G
abstract-list : /"[" [abstract-term ("," abstract-term)* ["|" (abstract-list | abstract-g-variable)]] /"]"

#lang br
(require brag/support rackunit "at-parser.rkt" "at-tokenizer.rkt")
 (check-equal?
  (parse-to-datum (apply-tokenizer make-tokenizer "myatom([g1,g2])"))
  '(abstract-atom "myatom" (abstract-list (abstract-g-variable 1) "," (abstract-g-variable 2))))

If I strip away the abstract-atom rule and try to parse "[g1,g2]", then the comma is there.

Thanks. I found the problem & fixed it.

authors: mbutterick v-for-vincent

repo: mbutterick/beautiful-racket


text:
fix!: remove covered line adjustment in deploy coverage reports

https://github.com/mcarvin8/apex-code-coverage-transformer/issues/2

Per Salesforce, the coverage inaccuracies still exist on the "deploy" coverage reports. The CLI update was a workaround, total solution needs to be completed by Apex Team on the server-side.
Even if users are using a newer CLI with the workaround, if the deploy coverage is still partially inaccurate, I shouldn't accept this PR to change my plugin until the server is fixed to completely fix this.

Changes to the server-side probably don't necessitate a breaking change release in this plugin. When they fix the coverage reports on the server side, it would be fixed for all users regardless of which CLI version or plugin version they are using.
Probably should amend this git commit message to remove the breaking change trigger once this is fixed on server.
Technically, once the server is fixed, it shouldn't break support with older plugin versions with the renumbering function. It will just be trying to run an unnecessary check.


text:
🛑 ChatGenie Client API is down

In 63f3c98, ChatGenie Client API ($CHATGENIE_CLIENT_API) was down:

HTTP code: 0
Response time: 0 ms

Resolved: ChatGenie Client API is back up in 700ab2e.


text:
🛑 ChatGenie Client API is down

In 0d40e71, ChatGenie Client API ($CHATGENIE_CLIENT_API) was down:

HTTP code: 0
Response time: 0 ms

Resolved: ChatGenie Client API is back up in 725fa08.


text:
🛑 ChatGenie Client API is down

In 55a2c0f, ChatGenie Client API ($CHATGENIE_CLIENT_API) was down:

HTTP code: 0
Response time: 0 ms

Resolved: ChatGenie Client API is back up in 1f128fe.


text:
🛑 ChatGenie Client API is down

In 5940f8d, ChatGenie Client API ($CHATGENIE_CLIENT_API) was down:

HTTP code: 0
Response time: 0 ms

Resolved: ChatGenie Client API is back up in 4d30215.


text:
🛑 ChatGenie MiniApp API is down

In f6efc92, ChatGenie MiniApp API ($CHATGENIE_BOT_API) was down:

HTTP code: 0
Response time: 0 ms

Resolved: ChatGenie MiniApp API is back up in 2df7829.


text:
🛑 ChatGenie MiniApp API is down

In 23d9630, ChatGenie MiniApp API ($CHATGENIE_BOT_API) was down:

HTTP code: 404
Response time: 191 ms

Resolved: ChatGenie MiniApp API is back up in 861b286.


text:
🛑 ChatGenie MiniApp API is down

In d1a2288, ChatGenie MiniApp API ($CHATGENIE_BOT_API) was down:

HTTP code: 404
Response time: 316 ms

Resolved: ChatGenie MiniApp API is back up in 93fdb3c.


text:
🛑 ChatGenie Client API is down

In 9d754d4, ChatGenie Client API ($CHATGENIE_CLIENT_API) was down:

HTTP code: 0
Response time: 0 ms

Resolved: ChatGenie Client API is back up in 666fac1.


text:
🛑 ChatGenie Client API is down

In 50d9d1f, ChatGenie Client API ($CHATGENIE_CLIENT_API) was down:

HTTP code: 0
Response time: 0 ms

Resolved: ChatGenie Client API is back up in 90063e7.


text:
🛑 ChatGenie Client API is down

In aaac562, ChatGenie Client API ($CHATGENIE_CLIENT_API) was down:

HTTP code: 0
Response time: 0 ms

Resolved: ChatGenie Client API is back up in dfbdb61 after 26 minutes.


text:
🛑 ChatGenie Client API is down

In 393b69f, ChatGenie Client API ($CHATGENIE_CLIENT_API) was down:

HTTP code: 0
Response time: 0 ms

Resolved: ChatGenie Client API is back up in 524a091.


text:
🛑 ChatGenie Client API is down

In 0fdeb45, ChatGenie Client API ($CHATGENIE_CLIENT_API) was down:

HTTP code: 0
Response time: 0 ms

Resolved: ChatGenie Client API is back up in db92ffa.


text:
🛑 ChatGenie Client API is down

In fa580fd, ChatGenie Client API ($CHATGENIE_CLIENT_API) was down:

HTTP code: 0
Response time: 0 ms

Resolved: ChatGenie Client API is back up in 2c72add after 32 minutes.


text:
🛑 ChatGenie Client API is down

In 2dbbfcf, ChatGenie Client API ($CHATGENIE_CLIENT_API) was down:

HTTP code: 0
Response time: 0 ms

Resolved: ChatGenie Client API is back up in 31decee.


text:
🛑 ChatGenie Client API is down

In dafe8c0, ChatGenie Client API ($CHATGENIE_CLIENT_API) was down:

HTTP code: 0
Response time: 0 ms

Resolved: ChatGenie Client API is back up in 8a8d7f9.


text:
🛑 ChatGenie Client API is down

In 83a4f5f, ChatGenie Client API ($CHATGENIE_CLIENT_API) was down:

HTTP code: 0
Response time: 0 ms

Resolved: ChatGenie Client API is back up in 893374b.


text:
🛑 ChatGenie Client API is down

In cf7980c, ChatGenie Client API ($CHATGENIE_CLIENT_API) was down:

HTTP code: 0
Response time: 0 ms

Resolved: ChatGenie Client API is back up in 2cbd17b.


text:
🛑 ChatGenie Client API is down

In b7b4c00, ChatGenie Client API ($CHATGENIE_CLIENT_API) was down:

HTTP code: 0
Response time: 0 ms

Resolved: ChatGenie Client API is back up in 8c9d969.


text:
🛑 ChatGenie Client API is down

In ba058a7, ChatGenie Client API ($CHATGENIE_CLIENT_API) was down:

HTTP code: 0
Response time: 0 ms

Resolved: ChatGenie Client API is back up in 87494cc.


text:
🛑 ChatGenie Client API is down

In 8c1772c, ChatGenie Client API ($CHATGENIE_CLIENT_API) was down:

HTTP code: 0
Response time: 0 ms

Resolved: ChatGenie Client API is back up in ce62505.


text:
在群内发送sudo tps引发报错

[17:20:21] [Craft Scheduler Thread - 24/WARN]: me.albert.amazingbot.shaded.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected STRING but was BEGIN_ARRAY at path $.message [17:20:21] [Craft Scheduler Thread - 24/WARN]: 	at me.albert.amazingbot.shaded.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:225) [17:20:21] [Craft Scheduler Thread - 24/WARN]: 	at me.albert.amazingbot.shaded.gson.Gson.fromJson(Gson.java:991) [17:20:21] [Craft Scheduler Thread - 24/WARN]: 	at me.albert.amazingbot.shaded.gson.Gson.fromJson(Gson.java:1062) [17:20:21] [Craft Scheduler Thread - 24/WARN]: 	at me.albert.amazingbot.shaded.gson.Gson.fromJson(Gson.java:1034) [17:20:21] [Craft Scheduler Thread - 24/WARN]: 	at me.albert.amazingbot.bot.BotEventParser.parse(BotEventParser.java:48) [17:20:21] [Craft Scheduler Thread - 24/WARN]: 	at me.albert.amazingbot.bot.BotEventParser.parseMessageEvent(BotEventParser.java:110) [17:20:21] [Craft Scheduler Thread - 24/WARN]: 	at me.albert.amazingbot.bot.BotEventParser.parseEvent(BotEventParser.java:38) [17:20:21] [Craft Scheduler Thread - 24/WARN]: 	at me.albert.amazingbot.bot.BotClient.processMessageRec(BotClient.java:131) [17:20:21] [Craft Scheduler Thread - 24/WARN]: 	at me.albert.amazingbot.bot.BotClient.lambda$onMessage$0(BotClient.java:108) [17:20:21] [Craft Scheduler Thread - 24/WARN]: 	at org.bukkit.craftbukkit.v1_12_R1.scheduler.CraftTask.run(CraftTask.java:64) [17:20:21] [Craft Scheduler Thread - 24/WARN]: 	at org.bukkit.craftbukkit.v1_12_R1.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:52) [17:20:21] [Craft Scheduler Thread - 24/WARN]: 	at com.destroystokyo.paper.ServerSchedulerReportingWrapper.run(ServerSchedulerReportingWrapper.java:22) [17:20:21] [Craft Scheduler Thread - 24/WARN]: 	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [17:20:21] [Craft Scheduler Thread - 24/WARN]: 	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [17:20:21] [Craft Scheduler Thread - 24/WARN]: 	at java.base/java.lang.Thread.run(Unknown Source) [17:20:21] [Craft Scheduler Thread - 24/WARN]: Caused by: java.lang.IllegalStateException: Expected STRING but was BEGIN_ARRAY at path $.message [17:20:21] [Craft Scheduler Thread - 24/WARN]: 	at me.albert.amazingbot.shaded.gson.internal.bind.JsonTreeReader.nextString(JsonTreeReader.java:181) [17:20:21] [Craft Scheduler Thread - 24/WARN]: 	at me.albert.amazingbot.shaded.gson.internal.bind.TypeAdapters$15.read(TypeAdapters.java:393) [17:20:21] [Craft Scheduler Thread - 24/WARN]: 	at me.albert.amazingbot.shaded.gson.internal.bind.TypeAdapters$15.read(TypeAdapters.java:381) [17:20:21] [Craft Scheduler Thread - 24/WARN]: 	at me.albert.amazingbot.shaded.gson.internal.bind.ReflectiveTypeAdapterFactory$1.read(ReflectiveTypeAdapterFactory.java:130) [17:20:21] [Craft Scheduler Thread - 24/WARN]: 	at me.albert.amazingbot.shaded.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:221) [17:20:21] [Craft Scheduler Thread - 24/WARN]: 	... 14 more

请问是怎么解决的？我也有这问题


text:
dict with DDHkey as key fails in jsonable_encoder

Try Pydantic Custom Root Types.

Try .dict() as types.MappingProxyType

This is hard to realize, because Pydantic instance export/import cannot really be customized. Perhaps Pydantic 2 will be more flexible, see issue 4243.
For now, we keep dicts with str keys.

repo: mcgfeller/DDH


text:
🛑 GitHub Mirror is down

In 4f9a313, GitHub Mirror (https://gh.chapro.xyz) was down:

HTTP code: 500
Response time: 46 ms

Resolved: GitHub Mirror is back up in 44cd3aa after 6 minutes.

repo: mchaNetwork/status


text:
service not healthy:

I keep getting this error

Steps Taken:
Downloaded the Github repository as instructed.
Docker was pre installed.
supabase was installed using command prompt

got error of service not healthy: [supabase_edge_runtime_ChatUI2.0]

ran supabase start --debug // next command entered.
again got the error of "   at #serveHttp (https://deno.land/std@0.182.0/http/server.ts:258:20)
at eventLoopTick (ext:core/01_core.js:183:11)
service not healthy: [supabase_edge_runtime_ChatUI2.0]"

Docker version I am using is
C:\AI-Platform\ChatUI2.0>docker --version
Docker version 24.0.7, build afdd53b

Try this: https://github.com/supabase/cli/issues/1083#issuecomment-1691431279

Why is this closed? Same exact issue and the shared comment does not help. It isn't even applicable; the app does not work and supabase start command does not execute properly. (Pruned everything on the computer and still does not work.)
(Thanks for your hard work by the way @mckaywrigley !)

I found a similar problem. The fix mentioned above may work for mac, but not for windows.

repo: mckaywrigley/chatbot-ui


text:
[Demo] Add gantt chart to visual-vocabulary

Description
Issue -> https://github.com/mckinsey/vizro/issues/709
Added Gantt chart example to the visual vocabulary and updated README
Screenshot

Notice

[x] I acknowledge and agree that, by checking this box and clicking "Submit Pull Request":

I submit this contribution under the Apache 2.0 license and represent that I am entitled to do so on behalf of myself, my employer, or relevant third parties, as applicable.
I certify that (a) this contribution is my original creation and / or (b) to the extent it is not my original creation, I am authorized to submit this contribution on behalf of the original creator(s) or their licensees.
I certify that the use of this contribution as authorized by the Apache 2.0 license does not violate the intellectual property rights of anyone else.
I have not referenced individuals, products or companies in any commits, directly or indirectly.
I have not added data or restricted code in any commits, directly or indirectly.

@jazwu - do let me know if you prefer to finish this PR off on your own or if you want me to help you finish this off :)
If you want me to finish this off, you would have to provide me write access to your forked repository: https://github.com/jazwu/vizro
For this you need to go to your forked repository -> settings -> collaborators and teams --> add people
Then grant me write access :)

@jazwu - do let me know if you prefer to finish this PR off on your own or if you want me to help you finish this off :)
If you want me to finish this off, you would have to provide me write access to your forked repository: https://github.com/jazwu/vizro
For this you need to go to your forked repository -> settings -> collaborators and teams --> add people
Then grant me write access :)

Hi! Thanks for the comments! I would like to finish my part. Sorry for the late response because I was busy with GHC from 8th to 11th.

authors: huong-li-nguyen jazwu

repo: mckinsey/vizro


text:
/NPC Inventory Problem with arrows. [Version 1.10.2] Last Version Of Sentinel.

Error :
[22:31:11 INFO]: [Citizens] Exception while updating 8: Tipped Arrows must have at least 1 effect.
[22:31:11 WARN]: java.lang.IllegalArgumentException: Tipped Arrows must have at least 1 effect
[22:31:11 WARN]:        at org.apache.commons.lang.Validate.isTrue(Validate.java:136)
[22:31:11 WARN]:        at org.bukkit.craftbukkit.v1_10_R1.entity.CraftTippedArrow.setBasePotionData(CraftTippedArrow.java:114)
[22:31:11 WARN]:        at org.mcmonkey.sentinel.SentinelTrait.fireArrow(SentinelTrait.java:404)
[22:31:11 WARN]:        at org.mcmonkey.sentinel.SentinelTrait.tryAttack(SentinelTrait.java:697)
[22:31:11 WARN]:        at org.mcmonkey.sentinel.SentinelTrait.runUpdate(SentinelTrait.java:1042)
[22:31:11 WARN]:        at org.mcmonkey.sentinel.SentinelTrait.run(SentinelTrait.java:1121)
[22:31:11 WARN]:        at net.citizensnpcs.api.npc.AbstractNPC.update(AbstractNPC.java:430)
[22:31:11 WARN]:        at net.citizensnpcs.npc.CitizensNPC.update(CitizensNPC.java:271)
[22:31:11 WARN]:        at net.citizensnpcs.npc.entity.EntityHumanNPC.m(EntityHumanNPC.java:306)
[22:31:11 WARN]:        at net.minecraft.server.v1_10_R1.World.entityJoinedWorld(World.java:1622)
[22:31:11 WARN]:        at net.minecraft.server.v1_10_R1.World.g(World.java:1597)
[22:31:11 WARN]:        at net.citizensnpcs.util.PlayerUpdateTask.run(PlayerUpdateTask.java:51)
[22:31:11 WARN]:        at org.bukkit.craftbukkit.v1_10_R1.scheduler.CraftTask.run(CraftTask.java:71)
[22:31:11 WARN]:        at org.bukkit.craftbukkit.v1_10_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:350)
[22:31:11 WARN]:        at net.minecraft.server.v1_10_R1.MinecraftServer.D(MinecraftServer.java:741)
[22:31:11 WARN]:        at net.minecraft.server.v1_10_R1.DedicatedServer.D(DedicatedServer.java:399)
[22:31:11 WARN]:        at net.minecraft.server.v1_10_R1.MinecraftServer.C(MinecraftServer.java:672)
[22:31:11 WARN]:        at net.minecraft.server.v1_10_R1.MinecraftServer.run(MinecraftServer.java:571)
[22:31:11 WARN]:        at java.lang.Thread.run(Unknown Source)
Problem :
When i add on the NPC inventory Arrows with Effects after playing or closing the server, restarting etc. the effected arrows are becoming With no effects arrows and i get this error in my console. Also if the NPC has the arrows with no effects when NPC is shooting the arrows going to the ground than shooting in the player/entity.

I pushed a fix that will "help" by not reporting the error when it occurs.
However, the underlying error is still present... in Citizens2.
Basically, Citizens loses potion-related metadata on items across restarts, and that causes issues.
I've placed the relevant issue here: https://github.com/CitizensDev/Citizens2/issues/868
When that issue is fixed, this issue should be as well.

Thank you for explaining ! i will wait for a new version for the bug fixes!

It's actually already available as of yesterday.

Sorry for late answer. I am not checking the mails in here. Hope you fixed
the issue because i will use your plugin some day for my server when it's
done!
On Mon, Aug 1, 2016 at 4:26 AM, mcmonkey notifications@github.com wrote:

Closed #57 https://github.com/mcmonkey4eva/Sentinel/issues/57.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/mcmonkey4eva/Sentinel/issues/57#event-740423874, or mute
the thread
https://github.com/notifications/unsubscribe-auth/ATq4szJLXFfzskZ7xki9jWjUORu7VRv7ks5qbUtagaJpZM4JTlK1
.


text:
No player damage

Maybe I have it misconfigured, but my sentinels who are range-attacking myself (OWNER) are doing no damage. I can take damage from everything else, and the sentinels can damage mobs...just not me. What could I be missing?

Are you sure:

PvP is fully enabled for the NPC and yourself
You are not on the NPC's ignore list (/sentinel removeignore owner)


text:
What Theme is being used for the images in the README.md?

What Theme is being used for the images in the README.md?

It's my home brew version of gruvbox with a few more than 16 colours -- you can find the colors here (as well as other built in themes)

authors: TylerJaacks mcobzarenco

repo: mcobzarenco/zee


text:
Add initial schema for one config property

Summary
Add a basic schema for our csv config. Note: This schema is not complete. We just wanted a simple skeleton in here that we can expand on. This will allow us to parallelize some of the work of authoring the rest of the schema and using said schema in the app to report errors.
New behavior
N/A
Code changes
Added a schema file that will later be used for extractor config.
Testing guidance
Head over to https://www.jsonschemavalidator.net/s/awUd23pG. This is an online playground that should have the schema from this PR and some sample content in the web. Try removing the "extractors" property which I've marked as required, or try removing the "type" property from an entry in the extractors array, which I've also marked required.
Just make sure the schema makes sense, can be built on, and works with some simple test cases in the online playground.

This looks really good to me! Thanks Matt for putting this together. 🚀

repo: mcode/mcode-extraction-framework


text:
Feature: ability for admin to send e-mail to signed up users

Should have a form in the settings page that allows the admin to send an e-mail to all active users.  Form should have two text areas:
Subject:
Message:
E-mail should prepend the subject with "[competition_name] ".

Here is a starting point that i found for this feature.
def send
@newsletter = Newsletter.find(:params['id'])
@recipients = Recipient.all
@recipients.each do |recipient|
Newsletter.newsletter_email(recipient, @newsletter).deliver
end
end
class Newsletter < ActionMailer::Base
default :from => "my_email@example.com", :content_type => "multipart/mixed"
def newsletter_email(recipient, newsletter)
# these are instance variables for newsletter view
@newsletter = newsletter
@recipient = recipient
mail(:to => recipient.email, :subject => newsletter.subject)
end
end

Yup!  Logic isn't that difficult.  It's more going to be implementing the view in the admin interface and creating the model to support it.

repo: mcpa-stlouis/hack-the-arch

license: mit


text:
[Doc]: Add functionality to Search bar for Shop's section products

Is there an existing issue for this?

[X] I have searched the existing issues

Issue Description
Search bar not working while searching for products in shop's product section
https://github.com/user-attachments/assets/fd704da2-ccdf-4fbf-ac61-cf725d91b553
https://github.com/user-attachments/assets/a701ae3c-ded4-4be9-8119-a3543f792130
@mdazfar2 @Kavita1928
Kindly assign me this issue. I will contribute actively.
Suggested Change
I can make the Search bar functional for searching products.
Rationale
No response
Urgency
High
Acknowledgements

[X] I have read the Contributing Guidelines
[X] I'm a GSSOC'24-Extd contributor
[ ] I'm a Hacktoberfest contributor
[X] I have starred the repository
[X] I am willing to work on this issue (optional)

@mdazfar2 @Kavita1928

@mdazfar2 @Kavita1928
kindly assign me this issue.


text:
Feat:Add sticky Navbar

Describe the feature
adding sticky navbar in all pages for better navigation
Add ScreenShots

Record

[X] I agree to follow this project's Code of Conduct
[X] I'm a GSSOC'24 contributor
[X] I want to work on this issue

@parikhitritgithub Go ahead, but send a demo video while creating the PR. Add a navbar with a color similar to the background.

Don't forget to join our official Discord server so we can discuss more about HelpOps-Hub enhancement.
And also follow us on Linkedin
And please ⭐ our repo


text:
added hovering effects for footer icons & links

Description
Fixes #1237

Added hovering effects for footer links of devopsforum page
Added hovering effects for footer icons
Added specific links associated with each footer icon

Video
https://github.com/user-attachments/assets/e469d2d1-9f22-4a13-abcf-5efecda0bbf1

@mdazfar2 please review and merge this PR


text:
Severe misalignment between image and mask after random distortion

related issues: #173 #184
This is a bug
def augmentation(x_root, y_root):
    p = Augmentor.Pipeline(x_root)
    p.ground_truth(y_root)

    # TODO: Bug fix: Augmentor can not synchronize the random distortion between image and label
    p.random_distortion(probability=1, grid_width=4, grid_height=4, magnitude=8)

    # save augmented images
    num_of_samples = int(1e2)
    p.sample(num_of_samples)

Hi @VincentYCYao, sorry for the delay checking this, I have not been able to dedicate much time for Augmentor over the past few days. I will check this immediately, and try to see what might be happening.

Hi @VincentYCYao, this has now been resolved as of version 0.2.6. Just upgrade via pip (pip install Augmentor -U)
Thanks for pointing out the issue!

@mdbloice Thanks a lot!

authors: VincentYCYao mdbloice

repo: mdbloice/Augmentor


text:
FR: Perform calculation on other fields in current page

Is it possible for me to populate a field using a calculation on other fields from the same page? Say I have the fields Num1 and Num2 and I would like Num3 on the same page to auto populate with the sum of Num1 and Num2. Can I do this?

Not at the moment (expect in a very hacky way by using an intermediate note and lookup fields) but it is definitely something feasible.
I think I would create a new type of field, like ComputedField of something, that behaves like lookupField but only dealing with inner note's metadatas and computed whenever one note's metadata is changing.
I will dive into it in the next days.

repo: mdelobelle/metadatamenu


text:
UnicodeDecodeError when using python 3.5.2

Hi, is there!
Thanks very much for your module, it's very helpful for testing our backend :)
I noticed you only list support for Python <= 3.4. When I tried running the tests with 3.5, this line caused me trouble, just as described here:
http://stackoverflow.com/questions/35051867/json-load-function-give-strange-unicodedecodeerror-ascii-codec-cant-decod
I could add a PR for this specifically, but I guess that a more concerted effort might be needed to add full Python 3.5 support.
Thanks!
Update
So it turns out this error does not occur with python 3.5.3, but does with 3.5.2...

Feel free to create a PR for this issue.

Fixed in version 2.1.0. Thanks again for the PR!

authors: Copper-Head mdomke

repo: mdomke/pytest-mongodb


text:
🛑 Examples is down

In 0bcbf01, Examples (https://examples.platform-os.com) was down:

HTTP code: 404
Response time: 373 ms

Resolved: Examples is back up in 3a4f40b.

repo: mdyd-dev/status-instances


text:
CSV data upload in Topics throws errors but works with enough refreshes

Trying to upload social media data CSV into a topic, I get "Can't Load the Data" errors repeatedly but if I click "Try Again" enough times, it eventually works.

I've been trying to recreate this and it always works for me (both locally and on our production system)! I'm going to close this for now and we can reopen if it becomes an issue down the line.

authors: dsjen ebndulue

repo: mediacloud/web-tools


text:
destroy() -> remove()

destroy() wasn't a function, but updating it to remove() worked
is that what was intended to be here?

Coverage remained the same at 73.832% when pulling 71ca74558267ab9e402c3a8d6232a80575c838f3 on evykassirer:patch-1 into a0a90ab4741b7e032235af0c36ba1c5e9466e69d on mediaelement:master.

Yes my bad, this was a typo. There are destroy methods for other pieces of code, but this one is the right one.

PR merged. Thanks. Please star both https://github.com/mediaelement/mediaelement and https://github.com/mediaelement/mediaelement-plugins to continue improving the package and giving it more popularity; also tell your friends/coworkers/etc. that have a GitHub account to do the same to support the project, if you don't mind. It would be greatly appreciated it.

authors: coveralls evykassirer rafa8626

repo: mediaelement/mediaelement


text:
Invalid search param when filling out owner field of Project

From Discord

I'm at localhost:3000/Project/new, and I can't fill in the Owner field because it's trying to search Users by "name" and that's not a supported search parameter for User. Is this the right way to create a project through the app, or am I looking in the wrong place? This is the http error response I'm getting: {"resourceType":"OperationOutcome","issue":[{"severity":"error","code":"invalid","details":{"text":"Unknown search parameter: name"}}]}

Should have been fixed in #1209 seeing this line https://github.com/medplum/medplum/blob/f8c64b633e6ac20b16e8a08832751c00f72b22de/packages/react/src/ResourceInput/ResourceInput.tsx#L24

@msdrigg Yep, good catch!

authors: codyebberson msdrigg rahul1

repo: medplum/medplum


text:
Add link to your talk

This is a nice introduction: https://www.youtube.com/watch?v=ZM3-Gl5DVgM
Add a link somewhere in the README or a Wiki page

Done. Thanks for the idea, @tmaier! :blue_heart:

authors: iHiD tmaier

repo: meducation/propono


text:
Different vm name

megamd creates a vm in opennebula with a different name. Name we show in nilavu and vm name in opennebula are different.

need the jsons of assemblies, assembly, components

Name in nilavu ==> pharmacy.megambox.com
NAme on opennebula ==> manservant.megambox.com

time="2015-10-08T02:04:15-04:00" level=debug msg="  [riak] closing..."
time="2015-10-08T02:04:15-04:00" level=debug msg="Cartons [id: ASM1263785222563037184\nname: pharmacy\ncartonsid: AMS1263785222621757440\ntosca: tosca.app.java\nimageversion: \"\"\ncompute:\n  cpushare: \"0.5\"\n  memory: \"896\"\n  swap: \"\"\n  hdd: \"10\"\nrepo:\n  enabled: true\n  type: git\n  token: 635d1e2b0c0e3183d4b1e15496668b6ff7e3f2f4\n  source: https://github.com/thomasalrin/java-spring-mvc.git\n  giturl: https://github.com/thomasalrin/java-spring-mvc.git\n  username: thomasalrin\n  cartonid: \"\"\n  boxid: \"\"\ndomainname: megambox.com\nprovider: one\npublicip: \"\"\nenvs:\n- name: domain\n  value: megambox.com\n- name: sshkey\n  value: 0@0.com_tom\n- name: provider\n  value: one\n- name: cpu\n  value: \"0.5\"\n- name: ram\n  value: \"896\"\nboxes:\n- id: COM1263785222567231488\n  cartonsid: AMS1263785222621757440\n  cartonid: ASM1263785222563037184\n  level: 3\n  name: manservant\n  domainname: megambox.com\n  tosca: tosca.app.java\n  imageversion: \"\"\n  compute:\n    cpushare: \"0.5\"\n    memory: \"896\"\n    swap: \"\"\n    hdd: \"10\"\n  repo:\n    enabled: true\n    type: git\n    token: 635d1e2b0c0e3183d4b1e15496668b6ff7e3f2f4\n    source: github\n    giturl: https://github.com/thomasalrin/java-spring-mvc.git\n    username: thomasalrin\n    cartonid: ASM1263785222563037184\n    boxid: COM1263785222567231488\n  status: \"\"\n  provider: \"\"\n  publicip: \"\"\n  commit: \"\"\n  address: null\n]"
time="2015-10-08T02:04:15-04:00" level=debug msg="\x1b[1;36;10mSTATEUP CARTON AMS1263785222621757440\x1b[0m"

ASM1263785222563037184
AMS1263785222621757440
COM1263785222567231488

We now create it in the assemblyname's name.

authors: indykish thomasalrin

repo: megamsys/megamd


text:
C++20 feature: jthread

Issue tracking implementation of jthreads, introduced in C++20.
See jthread on cppreference.com.

https://github.com/josuttis/jthread

repo: meganz/mingw-std-threads


text:
xcvcxv

cxvcxvcx

comment


text:
1.0.6.1 js error on column filter (picklist field)

scenario: read only column with picklist field (column filter enabled)
issue: when click on column filter, there is js error because self.GridEditors property has null elements

Hi,
Please see the new release and let me know if the issue is resolved.
https://github.com/mehrgithub/dcrmeg/releases
Thank you,
Mehrdad

authors: evismara mehrgithub

repo: mehrgithub/dcrmeg


text:
validation

您好，我拜读了您的论文和代码，发现只有train相关的代码，请问能公开下validation部分的代码吗？

您好！感谢您的关注。
validation部分代码涉及到别人的论文内容，之后会进行公开。

repo: meiguiz/SISG-Net


text:
Removing "typo" from ranking rules does not disable typo tolerance while searching

Describe the bug
To disable the typo tolerance while searching, it is recommended to remove the rule typo from the list of ranking rules. However this does not work. Even after removing it from the ranking rules, the results still seem to apply typo tolerance.
To Reproduce
Steps to reproduce the behavior:

Using Client update the settings

client = meilisearch.Client(url, apiKey=api_key)
client.get_index(index_name).update_ranking_rules([
        "words",
        "proximity",
        "attribute",
        "wordsPosition",
        "exactness"
    ])

Restart the server
See that the results still consider typo tolerance

Expected behavior
The search should ignore typo tolerance and follow only the required rules.
Screenshots

Additional context
I have also tried to use only ['exactness'] for raking rules, but still the typo tolerance is being applied.

I agree with @bhavyalatha26, this should be possible:

by removing the typo ranking rule (preferred)
through an index setting
through a search option
It could also make sense to configure it for specific fields (enabled on title/description, but disabled on id/ean/trackingNumber for example). But that feels like another feature to me

Algolia, for exemple, allows this with typoTolerance: false (https://www.algolia.com/doc/api-reference/api-parameters/typoTolerance/)

Hello, This issue will be fixed by a new feature/setting.
I will close this issue in favor of our public roadmap.
I invite everyone interested in this feature to upvote it on the roadmap.

@qdequele Thank you for your answer and for sharing your public roadmap, that's awesome 👍
Nonetheless, I am confused by your linked idea: how would the proposed policy for prefix search work exactly?
In a real-world use case, let's assume we have an index that contains only a UUID-type attribute. Is it possible to configure the index so that typo-tolerance is not applied at all?
Let's then consider we have an index that contains a UUID-type attribute and a name attribute. Is it possible to configure the index' attributes so that typo-tolerance is disabled on the first attribute, but enabled on the second?
As already mentioned by @theo-lubert in https://github.com/meilisearch/MeiliSearch/issues/1103#issuecomment-734343137, Algolia provides both typoTolerance and disableTypoToleranceOnAttributes for that exact purpose.
My apologies if I failed to see how prefix search policy would solve that. If that's the case, I'll definitely up-vote it 😄

I agree with @sirdharma , it would make a lot more sense to me if this was field specific, like Algolia's "disableTypoToleranceOnAttributes", and also not limited to the prefix.
Btw, maybe this could also improve indexing performance.
@qdequele maybe this should be another feature on the roadmap.

Was this ever added into meilisearch?
The three things preventing me from adopting meilisearch are:

sortBy
Disable typo tolerance per field, entirely or at search time
Delete by query

Hello @Sembiance! Thanks for your feedback, it might interest @gmourier 😇
Also, about the SortBy, it will be implemented in v0.22.0 available in the middle of September, here is the tracking issue: https://github.com/meilisearch/MeiliSearch/issues/1581

About disable the typo tolerance: there is a workaround by using the phrase search (available in v0.21.0, the official release is next week). You have to surround each query word by " when sending the query to MeiliSearch.
Ex: if the user types meili search you will have to send "meili" "search" to the search engine
However there are some limits to this workaround: using the " the search engine will no try to gather words or to split them.
Ex: if the user types meili search, you send "meili" "search". But the search engine will not retrieve documents containing meilisearch, only documents containing meili and search.
FYI, I open a feature request about it: https://github.com/meilisearch/product/discussions/176

@curquiza  AWESOME workaround! That'll work great for the time being. Thanks!

authors: Sembiance bhavyalatha26 curquiza qdequele sirdharma theo-lubert

repo: meilisearch/MeiliSearch


text:
Remove warnings in React code-sandbox

Currently, we get these warnings in the console in React codesandbox:
Warning: Failed prop type: The prop `hits[0].objectID` is marked as required in `Hits`, but its value is `undefined`.

Warning: Each child in a list should have a unique "key" prop.

Check the render method of `Hits`. See https://fb.me/react-warning-keys for more information.
    in li (created by Hits)
    in Hits (created by AlgoliaHits(Hits))
    in AlgoliaHits(Hits) (created by Context.Consumer)
    in ConnectorWrapper (at App.js:55)
    in div (at App.js:53)
    in InstantSearch (at App.js:37)
    in div (at App.js:25)
    in App (at src/index.js:8)
    in StrictMode (at src/index.js:7)

Hello @iamanishagarwal, I assign you! 🙂

Hello @curquiza , I am facing this issue while running the playground react in development mode.

Hello @iamanishagarwal! Looks weird, I don't have this error at all:
$ git clone git@github.com:meilisearch/instant-meilisearch.git
[...]
$ cd instant-meilisearch
$ yarn
[...]
$ yarn playground:react

Hey! This has been fixed with #322
You can now pass the primaryKey as an option
const searchClient = instantMeiliSearch(
  'https://demos.meilisearch.com',
  'dc3fedaf922de8937fdea01f0a7d59557f1fd31832cb8440ce94231cfdde7f25',
  {
    paginationTotalHits: 60,
    primaryKey: 'id',
  }
)

And i will use that field of your documents to generate the objectID

Hey! This has been fixed with #322 You can now pass the primaryKey as an option
const searchClient = instantMeiliSearch(
  'https://demos.meilisearch.com',
  'dc3fedaf922de8937fdea01f0a7d59557f1fd31832cb8440ce94231cfdde7f25',
  {
    paginationTotalHits: 60,
    primaryKey: 'id',
  }
)

And i will use that field of your documents to generate the objectID

Thank you this works!

authors: Wamy-Dev bidoubiwa curquiza iamanishagarwal

repo: meilisearch/instant-meilisearch


text:
updateIndex method should return an Index instance

To be consistent with createIndex and getIndex, the method updateIndex should return an Index instance. This method should update the primaryKey attribute of the Index instance with the information returned by MeiliSearch.

[ ] Update the code base
[ ] Add tests

EDIT: this PR (https://github.com/meilisearch/meilisearch-java/pull/74) should have been merged before.

Hello @curquiza, I would like to start working in this issue.
Is there more information that I need?

Hello @luis-valdez!
Thank you very much! However, I would rather this PR (https://github.com/meilisearch/meilisearch-java/pull/74) be merged before you start this issue. That's my fault, I updated the description to be clearer.
I don't know what kind of information I can add, but if you need any, don't hesitate to ask 😄

Oh I see! I'm looking for a Good first issue to work on.
So in the mean time, I'll  pick up another one. Thank you :D!

Hi @luis-valdez
It would be totally ok to start this issue now. All the previous PR and changes have been merged into master> So if you still want to work on this, it would be great! :)

Awesome, if I have any questions I'll let you know :)

Hello, this is how I modified the method updateIndex:
	public Index updateIndex(String uid, String primaryKey) throws Exception {
		Index index = gson.fromJson(this.indexesHandler.updatePrimaryKey(uid, primaryKey), Index.class);
		index.setConfig(this.config);
		return index;
	}

Regarding the tests it's already passing the integration tests including testUpdateIndexPrimaryKey().
Looking at createIndex I figured out it should include a test like: testUpdateIndexPrimaryKeyIfIndexDoesNotExists().
Is that correct? What other tests should be convenient to include?

Hi @luis-valdez

The test you are suggesting seems to be a nice addition!
testUpdateIndexPrimaryKeyIfIndexDoesNotExists
Your updated version of updateIndex looks good to me

If the test is also modified in a way where we can be sure that this method is effectively returning an Index instance, this seems to be enough for me :)

Sorry I don't know perfectly this package, so I don't know if the setConfig does what I'm going to ask:
don't forget to update the primaryKey attribute of the Index object before returning it.

The test you are suggesting seems to be a nice addition!
testUpdateIndexPrimaryKeyIfIndexDoesNotExists
From my POV, trying to update the primary key of an inexistent index \should throw a MeiliSearchApiException, what do you think?

Yes I totally agree.

Your updated version of updateIndex looks good to me

If the test is also modified in a way where we can be sure that this method is effectively returning an Index instance, this seems to be enough for me :)

For assuring that we're returning an Index instance I was thinking in this implementation:
	@Test
	public void testUpdateIndexPrimaryKey() throws Exception {
		String indexUid = "UpdateIndexPrimaryKey";
		Index index = client.createIndex(indexUid);
		assertEquals(index.getUid(), indexUid);
		assertNull(index.getPrimaryKey());
		Index returnIndex = client.updateIndex(indexUid, this.primaryKey); //saving the return value
		assertTrue(returnIndex instanceof Index); // make sure is an instance of Index
		index = client.getIndex(indexUid);
		assertEquals(index.getUid(), indexUid);
		assertEquals(index.getPrimaryKey(), this.primaryKey);
		client.deleteIndex(index.getUid());
	}

Sorry I don't know perfectly this package, so I don't know if the setConfig does what I'm going to ask:
don't forget to update the primaryKey attribute of the Index object before returning it.

I think that the setConfig does not update the primary key, but when I create the new instance of Index:
Index index = gson.fromJson(this.indexesHandler.updatePrimaryKey(uid, primaryKey), Index.class);

I call the method updatePrimaryKey in the IndexesHandler class, that subsequently calls:
return meilisearchHttpRequest.put(requestQuery, jsonObject.toString());

which I believe updates de primaryKey

Hello @luis-valdez!
I checked directly with @eskombro! createIndex and getIndex do update the primaryKey attribute! So everything is ok for these methods, sorry for the confusion!
About the test you suggest, it's perfect!
Thanks again for your work!!!

authors: curquiza eskombro luis-valdez

repo: meilisearch/meilisearch-java


text:
Console error when you open the mini-dashboard

When you run Meilisearch and you open the http://localhost:7700 URL the console log displays 4 errors. The instance of Meilisearch is completely fresh. It looks related to calls in the facets functions, maybe related to instant-meilisearch?
The logs are in the linked txt file.
console-export.txt
Environment:

Meilisearch version: main (v0.30.1)
Browser: Firefox version 108.0.1

Closing because this should be fixed with #381
The fix should be visible in the next Meilisearch release :)

authors: Kerollmops mdubus

repo: meilisearch/mini-dashboard


text:
Incorrect links in README.md for docs

Description
Incorrect links in README.md for docs
There are two such links:

https://www.meilisearch.com/docs/reference/under_the_hood/typotolerance
https://www.meilisearch.com/docs/create/how_to/search_bar_for_docs

Expected behavior
Docs link mentioned in the README should point to the correct URL.
Current behavior
After docs migrated, they no longer point to the correct URL
Screenshots or Logs
If applicable, add screenshots or logs to help explain your problem.

Thanks for raising this 🙏

authors: bidoubiwa shivaylamba

repo: meilisearch/vuepress-plugin-meilisearch


text:
לינקים שמעירים שולחת משתנים

אני מקבל לינק במייל ובשלב ראשון הוא מקשר אותי לתכנית הנכונה
אחר כך, הוא משתנה ואחר כך משתנה שוב ....

נפתר

authors: dortheimer eyalmigd

repo: meirim-org/meirim


text:
Veldrid<>ImGuiNET sample

Hi,
I would love to know how to create a Veldrid context inside of Imgui window. Should I make a new device, and push framebuffers texture to ImGui image? What about event handling, if I want to interact with window contents?

Hey @enquel. I think what you're asking (correct me if I'm wrong) is how to render a rendered Framebuffer into an ImGui.Image call. Basically the process is:

Create the Veldrid Texture(s) and Framebuffer object
Render into it
Call GetOrCreateImGuiBinding to get an IntPtr
Pass the IntPtr to ImGui.Image
Render as normal.

Hi @mellinoe ,
Thank you very much for explanation. Yes, I want to render 3D output to a render texture to be presented inside ImGui window. This is more or less what I was trying to achieve, unfortunately my knowledge of low-level 3D graphics API is poor. I assumed I needed a separate window/gd/pipeline for this, but now that I think of it, I don't, right? So I used graphics device that already existed, but ran into another problem : when I try to create ImGui binding, I get the exception:
Veldrid.VeldridException: 'To create a TextureView, the target texture must have either Sampled or Storage usage flags.'
But then again, I thought the texture should be set to RenderTexture? This is a resource setup I use for (trying) to render a texture (most of this is from getting started secion of Veldrid - I only added new dedicated Framebuffer). Also, do I need to call UpdateTexture on the render texture?
`
private void CreateResources(GraphicsDevice _gd)
{
ResourceFactory factory = _gd.ResourceFactory;
        VertexPositionColor[] quadVertices =
        {
            new VertexPositionColor(new Vector2(-.75f, .75f), RgbaFloat.Red),
            new VertexPositionColor(new Vector2(.75f, .75f), RgbaFloat.Green),
            new VertexPositionColor(new Vector2(-.75f, -.75f), RgbaFloat.Blue),
            new VertexPositionColor(new Vector2(.75f, -.75f), RgbaFloat.Yellow)
        };

        ushort[] quadIndices = { 0, 1, 2, 3 };

        _vertexBuffer = factory.CreateBuffer(new BufferDescription(4 * VertexPositionColor.SizeInBytes, BufferUsage.VertexBuffer));
        _indexBuffer = factory.CreateBuffer(new BufferDescription(4 * sizeof(ushort), BufferUsage.IndexBuffer));

        _graphicsDevice.UpdateBuffer(_vertexBuffer, 0, quadVertices);
        _graphicsDevice.UpdateBuffer(_indexBuffer, 0, quadIndices);

        VertexLayoutDescription vertexLayout = new VertexLayoutDescription(
            new VertexElementDescription("Position", VertexElementSemantic.TextureCoordinate, VertexElementFormat.Float2),
            new VertexElementDescription("Color", VertexElementSemantic.TextureCoordinate, VertexElementFormat.Float4));

        ShaderDescription vertexShaderDesc = new ShaderDescription(
            ShaderStages.Vertex,
            Encoding.UTF8.GetBytes(VertexCode),
            "main");
        ShaderDescription fragmentShaderDesc = new ShaderDescription(
            ShaderStages.Fragment,
            Encoding.UTF8.GetBytes(FragmentCode),
            "main");

        _shaders = factory.CreateFromSpirv(vertexShaderDesc, fragmentShaderDesc);

        GraphicsPipelineDescription pipelineDescription = new GraphicsPipelineDescription();
        pipelineDescription.BlendState = BlendStateDescription.SingleOverrideBlend;

        pipelineDescription.DepthStencilState = new DepthStencilStateDescription(
            depthTestEnabled: true,
            depthWriteEnabled: true,
            comparisonKind: ComparisonKind.LessEqual);

        pipelineDescription.RasterizerState = new RasterizerStateDescription(
            cullMode: FaceCullMode.Back,
            fillMode: PolygonFillMode.Solid,
            frontFace: FrontFace.Clockwise,
            depthClipEnabled: true,
            scissorTestEnabled: false);

        pipelineDescription.PrimitiveTopology = PrimitiveTopology.TriangleStrip;
        pipelineDescription.ResourceLayouts = System.Array.Empty<ResourceLayout>();

        pipelineDescription.ShaderSet = new ShaderSetDescription(
            vertexLayouts: new VertexLayoutDescription[] { vertexLayout },
            shaders: _shaders);

        mTexture = _graphicsDevice.ResourceFactory.CreateTexture(TextureDescription.Texture2D(256, 256, 1, 1, PixelFormat.R8_G8_B8_A8_UInt, TextureUsage.RenderTarget));

        FramebufferAttachmentDescription fbad = new FramebufferAttachmentDescription();
        fbad.Target = mTexture;
        FramebufferDescription fbd = new FramebufferDescription();
        fbd.ColorTargets = new FramebufferAttachmentDescription[1];
        fbd.ColorTargets[0] = fbad;

        mFb = factory.CreateFramebuffer(fbd);

        pipelineDescription.Outputs = mFb.OutputDescription;

        _pipeline = factory.CreateGraphicsPipeline(pipelineDescription);

        testPtrRndr = Application.mManagerWindow._controller.GetOrCreateImGuiBinding(_graphicsDevice.ResourceFactory, mTexture);
    }

    public void Draw(CommandList _commandList)
    {
        // Begin() must be called before commands can be issued.
        _commandList.Begin();

        // We want to render directly to the output window.

        _commandList.SetFramebuffer(mFb);
        _commandList.ClearColorTarget(0, RgbaFloat.Black);

        // Set all relevant state to draw our quad.
        _commandList.SetVertexBuffer(0, _vertexBuffer);
        _commandList.SetIndexBuffer(_indexBuffer, IndexFormat.UInt16);
        _commandList.SetPipeline(_pipeline);
        // Issue a Draw command for a single instance with 4 indices.
        _commandList.DrawIndexed(
            indexCount: 4,
            instanceCount: 1,
            indexStart: 0,
            vertexOffset: 0,
            instanceStart: 0);

        // End() must be called before commands can be submitted for execution.
        _commandList.End();
        _graphicsDevice.SubmitCommands(_commandList);

        // Once commands have been submitted, the rendered image can be presented to the application window.
        _graphicsDevice.SwapBuffers();
    }
}

`
Could you point me in the right direction?

You can create a Texture with multiple TextureFlags. In this case you can use both Sampled and RenderTarget.

@mellinoe thank you very much. This allowed me to execute the code, but yields no result, as if the texture weren't there.(I also tried copying the render texture to staging texture and then mapping the texture and getting the mapped data to create ImGui pointer - but also this gives empty texture). Do I need to update the Render Texture manually as well?

All works fine, thank you very much for assistance!

authors: enquel mellinoe

repo: mellinoe/veldrid


text:
Fix un-readable blockquote issue

The block-quotes in markdown previews (maybe others too) is completely unreadable because of bright background and light foreground text. I am not sure of colors but other blocks/foregrounds were using this hex value as such until it's decided which one to use and is used, at minimum this should be done.

Sorry, i didn't realize the editor had auto formatted the file.

repo: mellow-theme/mellow-theme


text:
Add hotglue variant of tap-mixpanel

Migrated from GitLab: https://gitlab.com/meltano/hub/-/issues/171
Originally created by @hsyyid on 2021-11-24 18:43:06

Checklist

[x] Fork the MeltanoHub and create a branch, you can name the branch anything you like.
[x] Add a yaml configuration file in the appropriate folder (/_data/taps/ or /_data/targets). The name of the file should match the name of the tap. If there is already one, add a descriptor to the name such as -search.
[x] Add a png logo image in /assets/logos/<taps or targets>. The image name must match the YAML file name and should be a reasonable size (ideally less than 100K).
[x] Create a Merge Request to main from the new branch in your fork and select the template "Add a New Singer Connector".
[x] Tag @tayloramurphy or @pnadolny13 to flag it for review. Or post to the hub channel on Meltano slack.

View 3 previous comments from the original issue on GitLab

repo: meltano/hub


text:
fix: meltano run no longer creates empty venv plugin directories

Related:

Closes #8401

We had a whole discussion about this back in the GitLab days: https://gitlab.com/meltano/meltano/-/merge_requests/2099#note_566826570
The change was even made to add **kwargs, then narrowed down to a make_dirs kwarg, then this merge commit rolled back the change and it went unnoticed. :cry: (I'm experimenting with a feature and am running into a problem with makedirs as well)

Thanks for commenting @ReubenFrankel!

We had a whole discussion about this back in the GitLab days - a change was even made to add a make_dirs kwarg to all @makedirs methods (requested by AJ after **kwargs was implemented initially)

Wow, I wasn't aware of that! And it makes it easier to decide a explicit kwarg over generic kwargs 😅.

and then 78b009b#diff-c087424df56cc7c7f9cb7450ad5f6d97ad8855940e5b27b548c879948616140c was merged which reverted the changes without anyone noticing (probably no tests). 😢 I'm not sure if this is the case for anything else, but may be worth checking.

Yeah, that was a large merge and we missed it somehow 😞. Anyway this PR includes a test that should prevent some regressions.

authors: ReubenFrankel edgarrmondragon

repo: meltano/meltano


text:
Error talking to the bot: Error: 404 {"errors":{"detail":"Not Found"}}

Since yesterday I am suddenly getting this error on any request I try to send to melty.

They have changed the API and made it behind auth. I will not share the URL to get the key because it has not been released/documented anywhere yet. They should create documentation for this.

Can you share how to obtain a key?

Having similar error! I understand this part of the code is moved behind Auth. Tagging @cbh123 , @abhi12299  for visibility.

authors: The5cheduler erson iamlasse

repo: meltylabs/melty


text:
Forward pts information

This change forwards pts information found within input buffers to output buffers.

Hi @mat-hek!

Therefore, I suppose we should pass PTS to swr_next_pts before each call to swr_convert and it should return the timestamp of the chunk that swr_convert is about to return

The commit I just made computes the PTS delta from the raw bytes the converter is outputting. With RawAudio.bytes_to_time we can make the convertion and compute the PTS delta as swr_next_pts is doing. That function is also dealing with compensation stuff I don't know about though. Check this out if this might be headed in the right direction for you to include!

Hi @dmorn, generating PTS out of the data may work in some cases, but the problem is that it doesn't reflect the incoming PTS. For example, if there's a break in the stream (because of things like network packet loss or hardware malfunction), the output PTS will just ignore that. That, in turn, may lead to losing A/V sync or other weird bugs, which already caused us a lot of trouble. I'm not sure how swr_next_pts works either, but since it accepts the input PTS, I think it should take it into account.

@mat-hek good point, but looking at the code and the semantics of the function I don't see how it can solve it either 🧐 take a stream of packets S and compute next_pts(S(x)). Imagine that S(x+1) is lost. Now S(x+2) comes and it will get assigned the (wrong) PTS value of next_pts(S(x)). Maybe the next_pts(S(x+2)) computation is correct and S(x+3) gets a correct PTS value, but still I don't see how S(x+2) could receive a correct PTS since we compute it beforehand 🤔 Are we sure that this is the correct layer to handle packet losses? Anyway it might be better to implement it with swr_next_pts, I'm just not yet convinced it would handle the situation you're pointing out!

We're going to forward the AAC PTS information and ensure that at each step we have a 1:1 buffer conversion / again, not sure that this is a good approach for a wider audience.

I'm not sure either ;) we'll try to figure it out and reach back.

We can discuss it at the elixir conf 😉

authors: dmorn mat-hek


text:
proxy: backend antiflap detection.

WIP. PR'ing as I need some time to think over where to go from here.
Adds mcp.backend_flap_time(seconds). If a backend has a network related failure (timeout, read/write err, etc) within flap_time of its most recent successful connection, it increases a flap counter.
If there are more flaps than failure_limit, a backend is marked bad. A backoff is employed before rescheduling a new connection attempt, so flapping servers will tend to stay marked bad for longer.
This also changes mcp.backend_retry_timeout to
mcp.backend_retry_waittime() as it's not a timeout, it's a rescheduling wait time.
retry_waittime is now a minimum of one second and only operates in whole seconds. The entire purpose of retry time is to let bad backends stay marked as bad without wasting resources attempting to reconnect, so sub-second retry times are invalid.
TODO:

[ ] Decide how many more tunables to add (flap limit, flap max backoff). I'd like to have fewer.
[ ] Unit tests
[ ] Run through the stability test suite (ploss test is perfect for this)

some by-hand testing shows it does work.
Feels like the backoff should be more aggressive. IE: if the max backoff is an hour and retry time is set to 3 seconds, right now it will retry in 15 seconds, 18 seconds, etc until it hits an hour. This could be cut to maybe 10 tries until it hits the limit.
Might want to remove err: connecting from the flap detector. It ends up marking completely down servers as also immediately flapping. We want to focus on ones that connect/validate but eat dirt when traffic arrives.
Think I just need to let this one sit overnight to see how I feel about the algo tomorrow.

Made the above mentioned change re: connection errors not counting against flaps.
It probably makes the most sense to keep few tunables and have a conservative backoff algorithm for now. If anything a "backoff ramp" tunable (or internal) might work, and just eat having to do a for loop on a failure.
retry_wait = 3
backoff_ramp = 1.5
for each flap_count above failure_limit do
  retry_wait = retry_wait * backoff_ramp
  break if retry_wait > backoff_max
done

should give a sharper ramp and then tunables for backoff_ramp and maybe backoff_max?
default of 3s with ramp of 1.5 gives ~19 tries to hit a 3600s cap, and would take ~5.5 hours to reach the limit. I think any ephemeral problem would pass reasonably within that timeframe.

Having a tough time coming up with more tests that actually exercise code differently. Could iterate through a bunch of crap but it doesn't improve coverage.

Decision to make: I assume/hope log parsers are flexible, but maybe we want to leave depth/rbuf in and just always add retry=

Looks good in the packet loss stress test:
``
watcher:	OK
watcher:	ts=1689289910.789714 gid=2 type=proxy_backend error=timeout name=10.191.24.56 port=11211 depth=40 rbuf=
watcher:	ts=1689289914.749621 gid=3 type=proxy_backend error=timeout name=10.191.24.56 port=11211 depth=36 rbuf=
watcher:	ts=1689289918.119921 gid=4 type=proxy_backend error=timeout name=10.191.24.56 port=11211 depth=40 rbuf=
watcher:	ts=1689289918.622162 gid=5 type=proxy_backend error=conntimeout name=10.191.24.56 port=11211 depth=40 rbuf=
watcher:	ts=1689289924.723835 gid=6 type=proxy_backend error=timeout name=10.191.24.56 port=11211 depth=40 rbuf=
watcher:	ts=1689289924.723898 gid=7 type=proxy_backend error=markedbadflap name=10.191.24.56 port=11211 retry=15
watcher:	ts=1689289946.781733 gid=8 type=proxy_backend error=timeout name=10.191.24.56 port=11211 depth=40 rbuf=
watcher:	ts=1689289946.781764 gid=9 type=proxy_backend error=markedbadflap name=10.191.24.56 port=11211 retry=22

need to decide on the logging situation though. it _should_ use a new type but I _should've_ used a new type for the markedbad stuff. not sure how painful this would be.

logging's fine as is.

repo: memcached/memcached


text:
缺少環境變數：VERCEL_ACCESS_TOKEN

先表達對於此程式的感謝, 同時費心整理教學 !
部份指令 ( restart / activate / deactivate..等  ) , 收到回應 "缺少環境變數：VERCEL_ACCESS_TOKEN" , 在加入 VERCEL_ACCESS_TOKEN 變數後重新佈屬 , 於 Line 管理後台變更 webhook 網址指向該版本後 , Verify 失敗, 並回報錯誤訊息 "500 Internal Server Error"
Vercel 該版本的 Error message 如下 (其後所有的對話皆為相同錯誤訊息), 已嘗試過重建 Access token 仍然出現錯誤 , 並在刪除該變數後恢復正常
2023-02-17T02:53:44.719Z	01c0f8f6-a69e-421b-939f	ERROR	Request failed with status code 404
2023-02-17T02:53:44.719Z	01c0f8f6-a69e-421b-939f	ERROR	GET https://api.vercel.com/v9/projects/gpt-ai-assistant/env
2023-02-17T02:53:44.720Z	01c0f8f6-a69e-421b-939f	ERROR	{ error: { code: 'NOT_FOUND' } }

@xljeff
嗨！
幫我檢查你的 GitHub 專案名稱和匯入的 Vercel 專案名稱一不一樣。

已解決了, 謝謝您


text:
🛑 Kérwá is down

In 17b532e, Kérwá (https://kerwa.ucr.ac.cr) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Kérwá is back up in f926a2e after 34 minutes.

repo: memoemg/howyoudoing


text:
Only apply fallback if GL_DEPTH24_STENCIL8 is defined

Fixes https://github.com/memononen/nanovg/pull/411#issuecomment-331638190
All examples compile and run.

Thanks for the fix!

This fixes my problem as well!

authors: AndrewBelt gavinhoward memononen

repo: memononen/nanovg

license: Zlib


text:
Facet pop ups are only for Abby

What Operating System?
Windows 10
What steps will reproduce the issue?
Go through a session for any persona until after the screenshot when the 'which of 's facets did you use...' question appears. Click one of the facet links. The pop up always shows Abby's facet information even if she isn't the selected persona.
What would you expect to be the outcome?
The information should reflect the selected persona's facets
All these details will help people to fix any potential bugs?

fixed in commit 3ea762b


text:
Unable to use dashes ( '-' ) in enumerationKey

I can't use dashes ( '-') in an enumeration key attribute. Why is that and can that be added.
For example:
<enumerationValue key="key-with-dash">Key</enumerationValue> is invalid.

Unfortunately, that's just the way it is. It should be possible to use underscores (_) though. This is a limitation of the Modeler and widget.xml and is not really an issue with the boilerplate.

But I do guess there is a reason for it, but please post your question on the forum or file a ticket in the support portal as the guys working on this part of the platform can answer this question.

Thanks guys I'll do that.
@JelteMX I noticed, and after I posted this I immediatly thought it probably wasn't disabled as a choice. The reason I was asking is my enumeration key is directly linked to a class element I try to map to a domNode. Being able to use the hypened class-name would save me a lot of String manipulation hassle :-)

I know and understand. Have encountered this limitation myself as well in other widgets. Allthoug a simple key.replace(/_/g,'-')will fix it for you. My thoughts (have seen the forum post, not any answers) is that's it's a limitation of parsing XML in the Modeler (I have seen the source-code, will ask R&D the same question as well, now I'm curious)

Thanks @JelteMX , keep me posted!

authors: JelteMX Mcpoowl RoelandSalij

repo: mendix/AppStoreWidgetBoilerplate


text:
在react项目中使用webpack打包项目出错

描述错误
webpack 打包报错  WARNING in ./Luckysheet/dist/plugins/js/plugin.js
Module not found: Error: Can't resolve './locale'

参考下这个？
https://github.com/mengshukeji/luckysheet-react

authors: Sherhang wbfsa

repo: mengshukeji/Luckysheet


text:
Dataflow Job Fails with ClassNotFoundException: org.slf4j.spi.LoggingEventBuilder

Expected Behavior
I expected that the Dataflow job using the Mercari Dataflow Template would run successfully without any issues.
Current Behavior
The Dataflow job is encountering the following error:
Caused by: java.lang.ClassNotFoundException: org.slf4j.spi.LoggingEventBuilder

This issue started occurring on January 12, 2024. Initially, on January 12th, I was able to resolve it by retrying the job, but since the following day, retries have not been successful.
I suspect that this issue is not related to changes in the Dataflow Template image, as no changes have been made since around December 11th. The problem seems to be on the Dataflow side.
This issue is happening in both the asia-northeast1 and us-central1 regions.
I have encountered this error with two different versions of the Mercari Dataflow Template:
The latest master branch (SHA: f39d77feaf01b82cddfcb84eaa311b01f6c0e875)
The v0.10.0 tag
Context
This issue is causing disruptions in our Dataflow jobs. I have attached the full console log for reference.
console_logs.zip

I'm not sure why, but after building and deploying the Docker image using the gcloud command, as shown in the following workaround, the error no longer occurs.
# generate fat jar. ignore errors
mvn clean package -DskipTests
gcloud --project="${PROJECT}" \
    dataflow flex-template build \
    "gs://${DATAFLOW_BUCKET}/template/mercari.json" \
    --image-gcr-path="${IMAGE}" \
    --sdk-language="JAVA" \
    --jar=target/solution-bundled-0.10.0.jar \
    --env=FLEX_TEMPLATE_JAVA_MAIN_CLASS=com.mercari.solution.FlexPipeline \
    --flex-template-base-image=JAVA17

Thank you for the quick fix and detailed explanation!
I comfirmed that the latest version works in my enviroment.
We're always grateful for the convenience your project!

repo: mercari/DataflowTemplate


text:
chore(action): bind debug input to action debug

description
When an action will be executed in debug mode (e.g. via GitHub UI) the secret ACTIONS_STEP_DEBUG will be set to true (empty if not enabled). This typically will allow to detect if a run is in debug mode. Because a GitHub action can not automatically read secrets the runner.debug variable needs to be used to determine if debug mode is enabled.
When using this as default for the debug input of the action the debug will automatically be forwarded to SecHub.
Overwriting is always possible for the endusers because it is only the default setting of this action.
This change was already tested within GHE.
useful links

Enabling debug logging
runner context

limitation
The only problem here is that instead of a not existing steps.debug variable the runner.debug variable is used.
For debugging steps the usage of the steps context would be better here - but because this context does not offer a debug property we are using the runners property here.
Because when the debug is enabled via UI (I guess this is the most common approach) it will trigger the debug mode for this action as well (...but via the runner).
re-run (failed) jobs popup

additonal information
Because the runner.debug returns a 1 a expression is used to make a boolean out of it.

Marco Lecheler marco.lecheler@mercedes-benz.com Mercedes-Benz Tech Innovation GmbH (ProviderInformation)

@fty4 : First of all: Thank you for the contribution.
Currently I am extremely refactoring the complete github action (more scan types, provide an integration test to run/test it at local machine (mocking automatically GH actions) and much more).
When I have done the refactorings and the improvements, I will return to this PR and give you feedback/discuss further steps etc.
Sorry for the inconvenience/the delay...

repo: mercedes-benz/sechub


text:
HG operations are not correctly canceled

Commit b1a83cc seems to have introduced a bug when calling HG_Get_output() after a request has been cancelled (or maybe some semantic has changed that I'm not aware of).
The situation is as follows: as we discussed in #261, if a request does not show progress for a certain amount of time (e.g. because the target server is down), we cancel it with HG_Cancel() and repost it to Mercury if a configured number of retries has not been exceeded.
In this situation, the following completion callback works correctly in all commits between 7f7502f (v1.0.0rc1) and b1a83cc...
  1 static hg_return_t
  2 completion_callback(const struct hg_cb_info* cbi) {
  3
  4     auto* ctx = reinterpret_cast<ExecutionContext*>(cbi->arg);
  5
  6     if(cbi->ret == HG_CANCELED) {
  7         switch(ctx->m_status) {
  8             case request_status::timeout:
  9                 {
 10                     DEBUG2("Request timed out, reposting");
 11                     // repost the request:
 12                     post_to_mercury<ExecutionContext>(ctx);
 13
 14                     // post_to_mercury<ExecutionContext>(ctx) will
 15                     // end up calling the following (the handle is reused):
 16                     //
 17                     // hg_return_t ret = HG_Forward(
 18                     //         ctx->m_handle,
 19                     //         completion_callback,
 20                     //         reinterpret_cast<void*>(ctx),
 21                     //         &ctx->m_mercury_input);
 22                     break;
 23                 }
 24
 25             case request_status::cancelled:
 26                 {
 27                     // this can only happen if the request timed out repeteadly
 28                     // and we exhausted the configured retries
 29                     // The only option is to definitely cancel the request and
 30                     // notify the user
 31                     DEBUG2("Request was cancelled");
 32                     if(cbi->info.forward.handle != HG_HANDLE_NULL) {
 33                         HG_Destroy(cbi->info.forward.handle);
 34                     }
 35
 36                     // notification code follows...
 37                     break;
 38                 }
 39
 40             default:
 41                 DEBUG2("Request is in an inconsistent state");
 42                 if(cbi->info.forward.handle != HG_HANDLE_NULL) {
 43                     HG_Destroy(cbi->info.forward.handle);
 44                 }
 45
 46                 // notification code follows...
 47                 break;
 48         }
 49
 50         return cbi->ret;
 51     }
 52
 53     // some other error != HG_CANCELED
 54     if(cbi->ret != HG_SUCCESS) {
 55         DEBUG("Forward request failed: {}", HG_Error_to_string(cbi->ret));
 56         if(cbi->info.forward.handle != HG_HANDLE_NULL) {
 57             HG_Destroy(cbi->info.forward.handle);
 58         }
 59
 60         // notification code follows...
 61
 62         return cbi->ret;
 63     }
 64
 65     // decode response
 66     MercuryOutput output_val;
 67     hg_return_t ret = HG_Get_output(cbi->info.forward.handle, &output_val);
 68
 69     if(ret != HG_SUCCESS) {
 70         throw std::runtime_error(
 71                 std::string("Failed to decode RPC response: ") +
 72                 HG_Error_to_string(ret));
 73     }
 74
 75     ctx->m_output = output_val;
 76
 77     // clean up resources consumed by this RPC
 78     HG_Free_output(cbi->info.forward.handle, &output_val);
 79     HG_Destroy(cbi->info.forward.handle);
 80
 81     return HG_SUCCESS;
 82 };

... but now fails in line 67 with the following error:
# HG -- Error -- /home/amiranda/var/projects/mercury/src/mercury_proc.c:680
 # hg_proc_checksum_verify(): checksum 0x48674BC7 does not match (expected 0x00000000!)
# HG -- Error -- /home/amiranda/var/projects/mercury/src/mercury.c:600
 # hg_get_struct(): Error in proc checksum verify
# HG -- Error -- /home/amiranda/var/projects/mercury/src/mercury.c:2231
 # HG_Get_output(): Could not get output

Further inspection shows that in line 6 cbi->ret == HG_SUCCESS when in previous commits was HG_CANCELED. As far as I understood, the HG_CANCELED error code was set automatically by Mercury whenever HG_Cancel() was used, is this no longer the case?
As a side note, if the client manages to connect to the server, everything works as it should.

Please let me know if everything is good on your end but should be fixed now.

authors: alberto-miranda soumagne

repo: mercury-hpc/mercury


text:
IPTT table: Show and hide columns on screen and in exports to PDF and Excel

Issues:

When I am viewing the IPTT report on the screen, I want to hide one or multiple columns in between the indicator name and the data, to reduce visual noise and make the table easier to navigate.
When I export an IPTT report to PDF or Excel, I don't want to include columns of data that are extraneous for reporting purposes.

Proposed solution:

At the bottom of the filter panel (below the INDICATORS menu) is another multi-select menu with the label TABLE COLUMNS.
The menu lists the following options. (Note that the exclusion options don't include the indicator name or any of the data columns.)
2.1. No.
2.2. Level
2.3. Unit of measure
2.4. Change
2.5. C/NC
2.6. # / %
2.7. Baseline
By default, all columns are selected.
If you deselect a column and apply changes, the following things happen:
4.1. The columns do not appear in the web version of the table.
4.2. The column is not exported to Excel or PDF.

No further interest expressed in this enhancement -- can easily modify in the Excel export.

repo: mercycorps/TolaActivity


text:
An error when running in Windows environment

Your work is impressive. When I run the RAG.index() function in ColPali_+_Qwen2_VL.ipynb in Windows environment, an error message "RuntimeError: Input type (torch.cuda.FloatTensor) and weight type (CUDABFloat16Type) should be the same" appears. Could this be a problem with the byaldi?

@Tian-ye1214 I think it's not necessarily about Windows itself, but I've never seen this dtype: CUDABFloat16Type
Can you run print(next(model.parameters()).dtype) please and let me know? Also which line of code does it fail?

@Tian-ye1214 thank you! I think it's not necessarily about Windows itself, but I've never seen this dtype: CUDABFloat16Type bfloat16 look like this torch.cuda.BFloat16Tensor
Can you run print(next(model.parameters()).dtype) please and let me know? Also which line of code does it fail? Also can you check
import torch
torch.cuda.is_bf16_supported()

Thanks for your help! I have modified the colpail.py file in the byaldi package. I changed the data format of the model to Float32, and the code ran successfully. This error may be caused by the mismatch between the input data format and the model format, but I don't know why the error occurs.The model.parameters() is torch.Float16 and In my environment torch.cuda.is_bf16_supported() is True.

repo: merveenoyan/smol-vision


text:
Won't load. JS Error

I've copied your basic setup and nothing works. I keep getting emojioneArea is not a function.
Here's my js call in my cshtml file
$(document).ready(function () {
$('#DocText').emojioneArea({
container: "#container",
hideSource: false,
useSprite: false
});
});
Here's my HTML
                                <p>
                                    <textarea onkeyup="IsDocReady()" name="docText" id="DocText" spellcheck="true" data-toggle="popover" data-placement="left" data-trigger="hover"  style="width: 100%; height: 500px">@Model.DocumentText

                                    </textarea>
                                </p>

And in my _layout file I have this after loading my jQuery files
<link href="~/Content/emojionearea.min.css" rel="stylesheet" />
<script src="~/Scripts/emojionearea.js"></script>
<script src="~/Scripts/emojionearea.min.js"></script>

href="~/Content/emojionearea.min.css"

Can you confirm you are loading all this via an actual web server, and not just as a file from your local drive?
If so, you also need to include the EmojiOne library (and css), not just EmojiOneArea

Is that the emojione.js file?

When I do add that file I get the error JavaScript runtime error: 'define' is undefined. It's in the emojione.js file.

Yes, you need to include the Emojione css and js into your html. They are not part of EmojiOneArea

You need to create a https://jsfiddle.net/ if you are still having problems.
Its too difficult to help just by discussing it all in English ;)

Yeah, there's no emojione.css. Just an emojionearea.css. Thanks for trtying.

Try this
<html>
<head>
    <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
    <script type="text/javascript" src="https://rawgit.com/mervick/emojionearea/master/dist/emojionearea.js"></script>
    <link rel="stylesheet" type="text/css" href="https://rawgit.com/mervick/emojionearea/master/dist/emojionearea.min.css">
</head>
<body>
    <textarea id="emojionearea">Default :smile:</textarea>
    <script>
        $(document).ready(function() {
            $("#emojionearea").emojioneArea();
    </script>
</body>
</html>

@mervick  is it safe to host my own version of emoji one (js and css)?
I thought it was necessary, but now I see the library will load its own (maybe if its not already present, like it does with textcomplete).
I guess I just need to make sure window.emojioneversion matches what Im hosting?
Thanks

Is this not necessary? Is there any benefit to including it manually?

no, not necessary, except if you want load emojione from your host, by default it loads from cdn

@mervick thanks. I don't host EmojiOne scripts myself, I just include them explicitly from the official cdn (I guess this is kinda pointless if library pulls them in already).
I will remove them from HEAD and let EmojiOneArea decide where to grab them from, Thanks!

authors: carpii jonathan-austen mervick

repo: mervick/emojionearea


text:
[Mesheryctl] server_spec_handler (meshkit)

Signed-off-by: Gaurav Chadha gauravchadha1676@gmail.com
Description
Adds new style for handling the meshkit errors for server_spec_handler
This PR fixes #3305
Notes for Reviewers
Signed commits

[x] Yes, I signed my commits.

Codecov Report

Merging #3561 (862e09e) into master (fca60c0) will decrease coverage by 8.39%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master    #3561      +/-   ##
==========================================
- Coverage   18.58%   10.18%   -8.40%
==========================================
  Files          37       37
  Lines        3299     3299
==========================================
- Hits          613      336     -277
- Misses       2531     2896     +365
+ Partials      155       67      -88

Flag
Coverage Δ

gointegrationtests
?

unittests
10.18% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files
Coverage Δ

mesheryctl/internal/cli/root/system/status.go
0.00% <0.00%> (-64.62%)
:arrow_down:

mesheryctl/internal/cli/root/system/start.go
1.20% <0.00%> (-53.02%)
:arrow_down:

mesheryctl/internal/cli/root/system/stop.go
0.90% <0.00%> (-39.10%)
:arrow_down:

mesheryctl/internal/cli/root/system/check.go
1.48% <0.00%> (-22.23%)
:arrow_down:

Continue to review full report at Codecov.

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

repo: meshery/meshery