text:
Emit custom values based on other AddEntries

Hi, it's fairly easy to write a new independent provider by implementing AddCustomEntries, but I'd like to be able to take values emitted by other builders such that I could take those values and manipulate them in the build script and then emit my own custom environment variables.
The use case I have in mind is building a version string at build time rather that concatenating them at runtime in my crate.

Agreed, it seems a little weird that there doesn't seem to be an API to ask vergen what, say, the commit hash is without scraping stdout after the fact.

authors: jRimbault zesterer

repo: rustyhorde/vergen


text:
Fixed tuples decoding

Before, Bert.decoding(term_to_binary({1,2})) was Bert.tuple([1,2]) and binary_to_term(Bert.encode(Bert.tuple([1,2]))) was {[1,2]} now Bert.decoding(term_to_binary({1,2})) is Bert.tuple(1,2).

Good catch.

source: gharchive/issue

authors: rbarreiro rustyio

repo: rustyio/BERT-JS

license: mit

license_type: permissive

license_source: bigquery


text:
Add pin and info window at Lovett College and change default map view…

… to hybrid 45-degree view.

Deployed: http://ryandraper-step-2020.appspot.com/

source: gharchive/pull-request

repo: ryan-draper/step-portfolio

license_source: github-api


text:
NSTextView and NSDocument

I'm trying to learn rust by writing a simple plain text editor. I followed this tutorial in Swift and I have a working prototype. I'm trying to port it to rust using your library, but I can't find NSTextView or NSDocument. In the README you mention:

Each UI control contains a objc field, which you can use as an escape hatch - if the control doesn't support something, you're free to drop to the Objective-C runtime yourself and handle it.

I'm new to UI development on the mac, but it seems like there are several way forwards here:

I can try to use the Objective-C runtime to get NSTextView and NSDocument (I don't know if this even makes sense)
I can try to read how you implemented TextField (which I saw bindings for) and try to copy what you did there
Maybe I'm misunderstanding something and it's actually simple to do

I saw in this example that you said

A Window Controller is backed by NSWindowController, and typically used in scenarios where
you might have documents (backed by NSDocument) that you're working with.

So it seems like you plan on supporting a Document Based App use-case.
It would be very helpful to me if you could point me in the right direction, or provide an example document based app example (maybe along the lines of the tutorial linked earlier). If this is too much to ask, you can also just close this issue without comment. Thanks for you time!
EDIT: clarity

Yup, this is pretty much just a case of those things not being necessarily ported yet. You probably want an approach that's a mix of 1 and 2.
If you look at e.g view/mod.rs and view/appkit.rs you can begin to see how I tend to wrap these things with regards to the delegate pattern and associated callback linking. I don't have the time at the moment to do this myself, but if you give it a whirl and have questions, feel free to use this issue as a tracking document or make a PR eventually. :)
(If view seems overly complex at the moment, text/label/mod.rs & text/label/appkit.rs might be more digestable~)

Sorry it took me so long to follow up. I think I've taken on too much at once (rust, mac os api, and ui/ux).
I tried to copy the code from examples/text_input.rs to make a very similar example for the TextView. I made a new directory src/textview to hold mod.rs, trait.rs and appkit.rs. I've stolen most of the code as a mixture of src/view and src/label, and changed everything to say TextView. Everything seems to compile correctly, except that the window that appears doesn't have a textview.
I've tried putting print statements in the call backs and my TextViewDelegate and it seems to be registered properly. The call backs in the TextView itself for editing don't fire. I don't know where to go from here. I think part of the issue is I don't know how we are actually interfacing with Objective-C. I'm using msg_send!() macros a lot in my appkit.rs but I don't know how to test to see if any of them are working.
If you're willing, I'll submit a pull request so maybe you or other people can look at what I've done wrong. If not, I'll close this issue and try a more familiar front end for my rust text editor. Thank you for your time!

Feel free to open a PR or link a sample repo, I'm happy to take a look. :)

Checkout the textview branch of my fork.

I'll have to look more over the weekend, but at a glance, you're calling new to create your NSTextView - as far as I know that's not going to allocate text storage behind the scenes. To get the simplest version working I would probably just call it like:
(pseudo-code, you can dig around for the imports)
let zero: CGRect = Rect::zero().into();
let alloc: id = msg_send![class, alloc];
msg_send![alloc, initWithFrame:zero]

If memory serves correct you may also have to fiddle with AutoLayout for it - it also looks like you're pinning content to content, you probably want to pin input to content anchors instead.

I got the idea for the content and input from these implementations, so I think their right.
I also realized I was calling the wrong functions for registering the class. Or maybe they were correct and just poorly named.
And you were right, my auto layout was messed up. I fixed it and tested it with a normal view and now it should work properly.
My plan is to try to closely compare with the view module until I can see it showing up with a background color.

Closing this for now, but feel free to reopen if you end up with more questions~

I also really need this, so can we consider reopening?

It can be open, sure - but for this particular thing I'm mostly looking for people who will issue a PR. I don't have the time for this particular piece myself. I may get to it in the future if it crosses over with something I'm building though.

authors: WeetHet jasoneveleth ryanmcgrath

repo: ryanmcgrath/cacao

license: MIT


text:
firefox, preinstalled certificates

Hi there,
does anybody have a home manager nix expression that installs certain HTTPS certificates into firefox?
For chrome and other clients, this works pretty well with the following stuff in my /etc/nixos/configuration.nix:
{
  environment.variables = let
    ca-bundle = "/etc/ssl/certs/ca-bundle.crt";
  in {
    CURL_CA_BUNDLE = ca-bundle;
    GIT_SSL_CAINFO = ca-bundle;
    SSL_CERT_FILE  = ca-bundle;
    NIX_SSL_CERT_FILE = ca-bundle;
  };
  security.pki.certificates = [ " ...certificates... " ];
}

...for Firefox this never worked. Now that i am managing my browsers from home.nix anyway and would like to ditch chrome, i wonder if there is a way that works for Firefox?

Firefox uses its own certificates and ignores anything installed on the machine.
You can however import certificates into your firefox profile: https://askubuntu.com/questions/244582/add-certificate-authorities-system-wide-on-firefox

So... one could write a Firefox wrapper script that checks if the certificate is installed and installs it as needed, and that's the only possibility?

Either that or some sort of activation script. It might be also possible to use p11-kit in the way described here: https://askubuntu.com/a/1036637

That looks very interesting. Is my naive intuition right that this can be done in 2 steps like the following:

create a derivation of p11-kit that contains a symbolic link with the .so name that firefox assumes that leads to the p11 kit lib
override the firefox derivation with this replace-dependency so it uses that library

Would it be done this way, or am i misdirected here?

LD_PRELOAD or prepending the library in RPATH of the firefox binary with patchelf might also work.

thank you for all the suggestions. I tried multiple things but i did not come to a satisfactory solution. Posted this here: https://discourse.nixos.org/t/getting-firefox-to-work-with-p11-kit-to-use-system-wide-installed-certificates/3175 becasue i think this is not a home-manager problem but a general nix thing and hence i am closing this ticket here.

repo: rycee/home-manager


text:
autorandr: remove blank lines from config

Fixes #1249.
Checklist

[x] Code formatted with ./format.
[x] Code tested through nix-shell --pure tests -A run.all.
[x] Test cases updated/added. See example.
[x] Commit messages are formatted like

Looks good! Rebased to master in 99a97c917a019ce4eaabe78f5aeb44f88e3ede94.

authors: rycee uvNikita


text:
RZRichTextView.xcworkspace 打开报错

RZRichTextView.xcworkspace 打开报错
Property 'baselineOffset' not found on object of type 'RZColorfulAttribute *'

'baselineOffse 是'RZColorful' 里新增的功能，请pod update

authors: MRZHL rztime

repo: rztime/RZRichTextView


text:
Can I upgrade from v1.1.0 to v2 safely?

I am currently in the process of updating our jQuery version (from 1.7 to 3+), and in the JQMigrate process they suggest upgrading any plugins as well. We are currently using ImageViewer v 1.1.0, but am not sure if I can safely upgrade to the new 2.0 version?
Thank you in advance!

Ideally yes, But the API's are changed a little bit, so you do have to change that. And to test it properly, in case some corner case is missed.
All the things of v1 are implemented on v2.

authors: nickarocho s-yadav

repo: s-yadav/iv-viewer


text:
feature req: allowed worker tasks

lotus-worker info shows what tasks they are allowed to to
if there a way to get that info through the miner?

I'm running 1.2.1 and it's not available, I will have a look after upgrading to 1.3

I just checked, it's not available via APIs :/ sorry

I just checked, it's not available via APIs :/ sorry


text:
ar_index is missing

Traceback (most recent call last):
  File "dec.py", line 6, in <module>
    decompilation = decompiler.start_decompilation(input_file=sys.argv[1])
  File "/usr/local/lib/python3.5/dist-packages/retdec/decompiler.py", line 112, in start_decompilation
    id = self._start_decompilation(conn, kwargs)
  File "/usr/local/lib/python3.5/dist-packages/retdec/decompiler.py", line 154, in _start_decompilation
    response = conn.send_post_request(files=files, params=params)
  File "/usr/local/lib/python3.5/dist-packages/retdec/conn.py", line 65, in send_post_request
    response = self._send_request('post', path, params=params, files=files)
  File "/usr/local/lib/python3.5/dist-packages/retdec/conn.py", line 124, in _send_request
    self._ensure_request_succeeded(response)
  File "/usr/local/lib/python3.5/dist-packages/retdec/conn.py", line 143, in _ensure_request_succeeded
    json['description']
retdec.exceptions.UnknownAPIError: Parameter 'ar_index' is missing.

Thank you for your report. When decompiling archives (.a or .lib files), you have to select which file from the archive you want to decompile. The reason is that RetDec can decompile only a single file at once. This selection is done via the ar_index parameter (see RetDec's docs), which is what the exception is telling you. For example, if you want to decompile the first file in the archive, you need to pass ar_index=0 to start_decompilation().
The only thing I can do is try improving the error message in retdec-python to make the cause more obvious. The original message you see comes from RetDec's API.


text:
Inconsistence between the code and the README.md

in here you mentioned that to open url in new tab by providing 'shouldOpenUrlInNewTab' => true
but in this code
https://github.com/saade/filament-fullcalendar/blob/90a3adab4ecd1ebd5f04903d4a1993aef9119716/resources/js/filament-fullcalendar.js#L51-L55
the 'shouldOpenUrlInNewTab' is inside extendedProps.
right now im using  'shouldOpenUrlInNewTab' inside extendedProps so that event can opened in new tab.

Its intended, every extraneous property gets pushed to extendedPros.

authors: chickgit saade

repo: saade/filament-fullcalendar


text:
Theme breaks after installing SublimeGit?

Not sure if the issue being caused by this theme, but I've been using it just fine for the past month and since installing SublimeGit (https://sublimegit.net/) yesterday and reloading it, the theme broke and I had to re-setup my user file... it had reverted back to the default theme.
Has anyone else experienced this?

Hm... I just installed SublimeGit and restarted Sublime, but I wasn't able to recreate your problem. What OS are you on? Also, could you try uninstalling the theme and reinstalling it?

Damn, must be just me or my setup! that's cool... It's only happened twice now, If it happens again I will investigate further and maybe post a screenshot of whats happening (it's a weird one!)
Feel free to close this for now.
I'm using OSX 10.10

Yeah, please take a screenshot of any weird things that happen to the theme. I'm thinking it may just be the graphical corruption that happens when the theme automatically updates (you usually just have to restart Sublime and it would get fixed). I'm going to close the issue for now, but please reopen it and comment if my assumption is wrong.

authors: rockethouse saadq

repo: saadq/Materialize


text:
MemoryCache eviction issue with multiple identifiers

When the memory cache evicts an identifier it disposes the TenantContext.
However there are no guard rails that it is the only identifier that used this TenantContext and as long as these cache entries stay warm, then these entries keep returning a disposed TenantContext.
I have fixed this in https://github.com/crowded/saaskit/commit/5e6897acc661acaf9fa0f878ede04e5e51edd349
For now but I have a few other ideas of dealing with this issue that might be neater.
EDIT:
It was late and I hadn't tested it through 'assumption is the...' ...
Your cache classes (ITenantResolver) are no singletons because you expect library users to only build it the MemoryCache way (or any other non direct cache object). Because otherwise you would have reasoned that this call might not have been the greatest to do if we are talking about classes that users might try to use for caching
// No singleton?! for cache classes?!
services.AddScoped<ITenantResolver<TTenant>, TResolver>();

The next discovery was that right when I though I could just change this line it dawned on me that my own subclass of MemoryCacheResolver (which implements this ITenantResolver) rely on db connection's getting injected into them as an extra constructor argument so a singleton is out of the question as fresh/working connections are quite useful.
Then I thought ok lets do it like my proposed option 1. which then reminded me why I was so turned off by this solution in the first place as I now also need to add in my TenantIdentifiers while constructing the TenantContext... Ewhhh, and I thought it was gross already that I as a user even had to create the TenantContext in the first place.
Too many edge cases in the current implementation, the abstraction is wrong.
Ok rant is over, time to go to bed and rewrite this in the morning to the sane option 3. the dual layer model.
This gives you the minimum implementation burden as a library user and maximum control over the (optional) caching layer and other parts of the pipeline as the library author.

A temporary fix for this is to override CreateCacheEntryOptions and use absolute expiration. This will ensure that all the cache entries expire at the same time.
A better solution would be to set cache dependencies between the cache entries - I know this was a feature of MemoryCache in ASP.NET 4.6 but not sure about Core.
Another option worth discussing is whether it's acceptable to nominate a primary identifier. If this was the case we can ensure that only evicting the primary identifier would dispose the tenant context.
Let's keep the discussion going. I'd be interesting to hear how you're using this feature. I originally created it because we support multiple domain names per tenant but each tenant can only have one primary domain. We then have additional middleware that redirects to the primary domain if necessary.

Me too, exactly the same usecase. Please check the code, it now uses the tenantcontext guid as cache key

@benfoster, RC2 does indeed allow you to create cache dependencies using eviction tokens.

BTW, @NinoFloris, I'm curious as to what you're pulling back with your tenant that you perceive as very expensive...
Are you pulling in the entire aggregate graph of the tenant, or just a stripped down data model that gives you the basic relevant data for each request?

I use it as a lazy initializer for a lot of tenant state, setting up a
container with specific configs from the database, loading modules,
etcetera. That means an extra 500ms to 1,5s easy. This gets rooted in the
TenantContext.
On Fri, Jun 24, 2016, 05:39 Ron DeFreitas notifications@github.com wrote:

BTW, @NinoFloris https://github.com/NinoFloris, I'm curious as to what
you're pulling back with your tenant that you perceive as very expensive...
Are you pulling in the entire aggregate graph of the tenant, or just a
stripped down data model that gives you the basic relevant data for each
request?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/saaskit/saaskit/issues/27#issuecomment-228251079, or mute
the thread
https://github.com/notifications/unsubscribe/AEBfucEVYKQ4f-3rPbQM1PSRr_FeoMVYks5qO1FdgaJpZM4IhVyF
.

authors: NinoFloris benfoster rdefreitas

repo: saaskit/saaskit


text:
Testing and linting

Added a substitute for score image generation until a better solution for importing lilypond can be found.

Added testing (unit tests and integration tests), along with the infrastructure to run this tests via the makefile.
Running "make coverage" runs the tests and generates coverage statistics.

repo: sadigulcelik/interactive-score-editor


text:
error TypeError: fetch failed when running pnpm run dev

When running pnpm run dev, I got error:
error TypeError: fetch failed
`error TypeError: fetch failed

error src/lib/utils.ts (111:2) @ isMacOs
error ReferenceError: window is not defined
at isMacOs (./src/lib/utils.ts:115:5)
at Combobox (./src/components/combobox.tsx:102:91)
109 |
110 | export function isMacOs() {

111 |   return window.navigator.userAgent.includes("Mac")
|  ^
112 | }`

I'm use Apple M1 Pro.
Another error when I try pnpm run db:push .
Got an error: Error: self signed certificate in certificate chain
code: 'HANDSHAKE_SSL_ERROR',
errno: undefined,
sqlState: undefined
Please help. Many thanks!

I eill look over it

I fixed the window is undefined error.
The second one looks unfamiliar to me. Did you try reinstalling after removing node_modules, and .next.
Also you need to put this at the end of the DATABASE_URL: ?ssl={"rejectUnauthorized":true}
The url will look like this: DATABASE_URL="mysql://YOUR_MYSQL_URL_HERE?ssl={"rejectUnauthorized":true}"

I also got this error, here is my sql url DATABASE_URL="mysql://root:root@localhost:3306/sk5?ssl={"rejectUnauthorized":true}&&zeroDateTimeBehavior=convertToNull"

any updates on this?


text:
feat(sdk): implement official CBOR based metadata

What this PR does / why we need it:
This PR implements the the official CBOR-based metadata. Once merged, Ordit-SDK will be bidding goodbye to OIP-1.

@iamcrazycoder Hello, I think this feature is very good. Can I merge it into the main branch and publish a version to the npm repository as soon as possible?

@yubing744 we cannot merge it yet as it will break some of our metadata. So we put it on hold, not our priority atm. But please feel free to fork it if needed. thank you!

@yubing744 we cannot merge it yet as it will break some of our metadata. So we put it on hold, not our priority atm. But please feel free to fork it if needed. thank you!

OK, I forked this project and wrote another PR to temporarily meet the needs of our bitseed  project.

Thank you @yubing744! We will reach out once we need to work on this. It's on our timeline

authors: iamcrazycoder thedoublejay yubing744

repo: sadoprotocol/ordit-sdk


text:
🛑 Evvara Canada is down

In 14c0f30, Evvara Canada (https://evvara.ca) was down:

HTTP code: 404
Response time: 207 ms

Resolved: Evvara Canada is back up in 260893f.

repo: sahajananddigital/status


text:
Problem exchanging code for token

I used the node example code in my backend. I use angular on the frontend, twitter auth works fine. But not facebook. I monitored the requests and I see that when the popup closes a GET on /user/login is made but the code is not in parameter. I only get in in the refer. Also before that a POST is made on :8080?code=zaea...
I get this error from the server:
{ error:
   { message: 'An active access token must be used to query information about the current user.',
     type: 'OAuthException',
     code: 2500 } }

Here's a screenshot of the request made http://i.imgur.com/wX0lZBs.png
See something wrong here?
If you want to check the code it's basically this:
https://github.com/marley-nodejs/Two-Tier-Enterprise-App-and-API-Development-with-Angular-and-Sails/tree/master/socialfleet
Except I took the code for facebook and not twitter here: https://github.com/sahat/satellizer/blob/master/examples/server/node/server.js and changed provider 'twitter' for 'facebook'.
I checked and I get the access token. So the error is after when I call the graph api on this line https://github.com/sahat/satellizer/blob/master/examples/server/node/server.js#L472
edit: got it working. There was a parse on the accesToken, idk why but after the parse the token was empty...
But now I can't make it work in my real frontend app. The windows open and then I'm on facebook page 'this page is not accessible'...

Hi @misterch0c,
Glad you were able to fix your original issue!  For your edit, you likely need to set page visibility settings on your Facebook app.
See here for more details:
http://www.jeffkee.com/when-facebook-page-widgets-give-you-a-visibility-warning/
Let me know if you have any other questions!

repo: sahat/satellizer


text:
主题预览-配色

这个主题的配色版如何添加

这个部件目前是专门做给预览站用的，因为无法隐藏和移动所以不建议使用，如果确实需要可以在 _config.vivia.yml 里添加下面这一行
previewMode: true

之后可能会添加一个适用于正式环境的版本

感谢博主的帮助！另外，我还有一个问题。关于文章没有目录，对H1、H2、H3等标题是否可以自动生成目录呢？
补充一句：预览站用的这个previews真的很炫，建议直接上

现在主题使用的评论系统是 Valine，需要在 _config.vivia.yml 里设置启用并需要提供 appId 和 appKey，参考 https://valine.js.org/quickstart.html
文章目录还在写😢

了解了，不着急，能等

自定义主题颜色怎么搞的

在_config.vivia.yml配置文件里面加上：previewMode:true
(作者已经给出答案了)

牛
@.***

------------------ 原始邮件 ------------------
发件人: @.>;
发送时间: 2023年11月20日(星期一) 晚上6:59
收件人: @.>;
抄送: @.>; @.>;
主题: Re: [saicaca/hexo-theme-vivia] 主题预览-配色 (Issue #21)
自定义主题颜色怎么搞的
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: @.***>

authors: Libertyzs rainemotion saicaca

repo: saicaca/hexo-theme-vivia


text:
dependabot path fix

fixed dependabot npm path

:robot:
Changes in the patch:

In the file .github/dependabot.yml, on line 7, the directory value for the npm package ecosystem has been modified from "/app" to "/". This change updates the directory path for the npm package ecosystem.

Optimization suggestion:
The change made in the patch seems to be a fix for the dependabot configuration. It is difficult to suggest any optimization without further context or information about the project.
Potential problems:
There don't appear to be any potential problems with the modified lines in the patch. The change seems to be a straightforward update to the dependabot configuration.
> gpt-3.5-turbo-16k

repo: saidsef/tracing-node


text:
Shelf/Campus Dataset

Does someone have another repository where I can download the shelf and campus dataset? As the current one is not available anymore.
Thanks

@wngTn Have you found it, please? I am having the same doubts.

@wngTn You can visit https://github.com/longcw/crossview_3d_pose_tracking address to find what you are looking for.

repo: sail-sg/mvp


text:
Recoil and Sway

Has both Recoil and sway been removed?

no but this options dont work for spt 3.8.0 you need to wait for full release of spt and update to trainer

repo: sailro/EscapeFromTarkov-Trainer


text:
[Feature Request] Place images in a subdirectory in destination directory

At this time, all output images are placed in the root of the destination directory. Could you please provide a option or something to make it possible to place these images in a subdirectory?

You mean something like the thumb_dir settings but for the resized images ?

Exactly. And I hope it can work when use_orig is True.

authors: Last-Order saimn

repo: saimn/sigal


text:
Add GitHub icon

Is your feature request related to a problem? Please describe.
Add a GitHub icon, beside LinkedIn and Discord icon
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

The website has no direct link to its GitHub repository.

Describe the solution you'd like
The icon will help users to directly head over to the repository.

Hi, I want to work on this issue I will start working on it as soon as I get assigned!! I am a part of GSSoC'21.
Kindly assign this issue to me!
Discord Username : supriya gahoi
Discord Tag: #2460

Go ahead
Deadline 22 May,2021

authors: Shubhrima sairish2001 supriyagahoi


text:
Bug in conversion of Improper to Mixed Fraction

Describe the bug
wrong answer is displayed when both numerator and denominator values are same. I would like to work on this issue. Kindly assign this to me under GSSoC.
Possible solution

Describe the solution you thought of.

Screenshots

Go ahead
Deadline 15 April,2021 11:59 PM IST


text:
Added side navbar and hobbies section as well as random image generator

Images added for random image generator and corresponding css.

Updated! Haven't deployed yet because I wasn't sure if what I had was enough / if I should add additional pages or other attributes onto the page. Will deploy sometime tomorrow!


text:
[Issue] Caused by: java.lang.UnsupportedOperationException: Merge supports only data classes, UiTheme is not a data class

Hello Glia team,
From my team we are looking for a way to make the most of the Glia SDK and we have moved to version 2.3.2 of Glia to take advantage of Live Observation.. But we are getting the following error:
MyChatActivity:
`
import android.content.Intent
import android.os.Bundle
import com.glia.androidsdk.Engagement
import com.glia.androidsdk.Glia
import com.glia.androidsdk.screensharing.ScreenSharing
import com.glia.widgets.GliaWidgets
import com.glia.widgets.R
import com.glia.widgets.UiTheme
import com.glia.widgets.call.CallActivity
import com.glia.widgets.chat.ChatActivity
import com.glia.widgets.chat.ChatView
import com.glia.widgets.chat.ChatView.OnNavigateToCallListener
import com.glia.widgets.core.configuration.GliaSdkConfiguration
import com.glia.widgets.view.head.ChatHeadLayout
class MyChatActivity : ChatActivity() {
private val KEY_WAS_ACTIVITY_FINISHING = "was_activity_finishing"
private lateinit var chatView: ChatView
private lateinit var configuration: GliaSdkConfiguration
private var wasActivityFinishing = true

private var onEndListener: ChatView.OnEndListener? = ChatView.OnEndListener {
    finish()
}
private var onNavigateToCallListener: OnNavigateToCallListener? =
    OnNavigateToCallListener { theme: UiTheme?, mediaType: String? ->
        if(theme != null && mediaType != null){
            navigateToCall(theme, mediaType)
        }
    }

override fun onCreate(savedInstanceState: Bundle?) {
    super.onCreate(savedInstanceState)
    setContentView(R.layout.chat_activity)

    configuration = buildConfiguration()

    chatView = findViewById(R.id.chat_view)
    chatView.apply {
        setConfiguration(configuration)
        setUiTheme(configuration.runTimeTheme)
        setOnEndListener(onEndListener)
        setOnNavigateToCallListener(onNavigateToCallListener)
        startChat(
            configuration.companyName,
            configuration.queueId,
            configuration.contextAssetId,
            true,
            ScreenSharing.Mode.UNBOUNDED,
        )
    }
}

override fun onBackPressed() {
    chatView.onBackPressed()
    super.onBackPressed()
}

private fun buildConfiguration() = GliaSdkConfiguration.Builder()
    .companyName(companyName)
    .queueId(queueId)
    .runTimeTheme(runTimeUiTheme)
    .contextAssetId(contextUrl)
    .useOverlay(true)
    .build()

override fun onResume() {
    chatView.onResume()
    Glia.getLiveObservation().resume()
    super.onResume()
}

override fun onPause() {
    super.onPause()
    chatView.onPause()
    Glia.getLiveObservation().pause()
}

override fun onDestroy() {
    onEndListener = null
    onNavigateToCallListener = null
    chatView.onDestroyView()
    super.onDestroy()
}

override fun onSaveInstanceState(outState: Bundle) {
    outState.putBoolean(KEY_WAS_ACTIVITY_FINISHING, isFinishing)
    super.onSaveInstanceState(outState)
}

override fun onRestoreInstanceState(savedInstanceState: Bundle) {
    wasActivityFinishing =
        savedInstanceState.getBoolean(KEY_WAS_ACTIVITY_FINISHING, true)
    super.onRestoreInstanceState(savedInstanceState)
}

override fun onActivityResult(requestCode: Int, resultCode: Int, data: Intent?) {
    GliaWidgets.onActivityResult(requestCode, resultCode, data)
    chatView.onActivityResult(requestCode, resultCode, data)
    super.onActivityResult(requestCode, resultCode, data)
}

override fun onRequestPermissionsResult(
    requestCode: Int,
    permissions: Array<String?>,
    grantResults: IntArray
) {
    super.onRequestPermissionsResult(requestCode, permissions, grantResults)
    GliaWidgets.onRequestPermissionsResult(requestCode, permissions, grantResults)
    chatView.onRequestPermissionsResult(requestCode, grantResults)
}

private fun navigateToCall(theme: UiTheme, mediaType: String) {
    val newIntent = Intent(applicationContext, CallActivity::class.java)
    newIntent.putExtra(GliaWidgets.COMPANY_NAME, configuration.companyName)
    newIntent.putExtra(GliaWidgets.QUEUE_ID, configuration.queueId)
    newIntent.putExtra(GliaWidgets.CONTEXT_ASSET_ID, configuration.contextAssetId)
    newIntent.putExtra(GliaWidgets.UI_THEME, theme)
    newIntent.putExtra(GliaWidgets.USE_OVERLAY, true)
    newIntent.putExtra(GliaWidgets.MEDIA_TYPE, convertMediaType(mediaType))
    startActivity(newIntent)
}

private fun convertMediaType(mediaType: String) : Engagement.MediaType {
    return when(mediaType) {
        Engagement.MediaType.TEXT.name, "chat" ->  Engagement.MediaType.TEXT
        Engagement.MediaType.AUDIO.name ->  Engagement.MediaType.AUDIO
        Engagement.MediaType.VIDEO.name ->  Engagement.MediaType.VIDEO
        Engagement.MediaType.MESSAGING.name ->  Engagement.MediaType.MESSAGING
        else -> Engagement.MediaType.UNKNOWN
    }
}

private val companyName: String?
    get() = intent.getStringExtra(GliaWidgets.COMPANY_NAME)
private val queueId: String?
    get() = intent.getStringExtra(GliaWidgets.QUEUE_ID)
private val contextUrl: String?
    get() = intent.getStringExtra(GliaWidgets.CONTEXT_ASSET_ID)
private val runTimeUiTheme: UiTheme?
    get() = intent.getParcelableExtra(GliaWidgets.UI_THEME)

}
My layout:

<com.glia.widgets.chat.ChatView
    android:id="@+id/chat_view"
    android:layout_width="match_parent"
    android:layout_height="match_parent" />

<com.glia.widgets.view.head.ChatHeadLayout
    android:id="@+id/chat_head_layout"
    android:layout_width="match_parent"
    android:layout_height="match_parent" />

`
Log when i run my app in Release version and real device:
04:11:31 E AndroidRuntime : FATAL EXCEPTION: main 04:11:31 E AndroidRuntime : Process: com.domain.qa, PID: 31842 04:11:31 E AndroidRuntime : java.lang.RuntimeException: Unable to start activity ComponentInfo{com.domain.qa/com.ssb.retail.glia.SSBChatActivity}: android.view.InflateException: Binary XML file line #6 in com.domain.qa:layout/chat_activity: Binary XML file line #6 in com.domain.qa:layout/chat_activity: Error inflating class com.glia.widgets.chat.ChatView 04:11:31 E AndroidRuntime : at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:4164) 04:11:31 E AndroidRuntime : at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:4322) 04:11:31 E AndroidRuntime : at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:103) 04:11:31 E AndroidRuntime : at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:139) 04:11:31 E AndroidRuntime : at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:96) 04:11:31 E AndroidRuntime : at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2685) 04:11:31 E AndroidRuntime : at android.os.Handler.dispatchMessage(Handler.java:106) 04:11:31 E AndroidRuntime : at android.os.Looper.loopOnce(Looper.java:230) 04:11:31 E AndroidRuntime : at android.os.Looper.loop(Looper.java:319) 04:11:31 E AndroidRuntime : at android.app.ActivityThread.main(ActivityThread.java:8893) 04:11:31 E AndroidRuntime : at java.lang.reflect.Method.invoke(Native Method) 04:11:31 E AndroidRuntime : at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:608) 04:11:31 E AndroidRuntime : at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1103) 04:11:31 E AndroidRuntime : Caused by: android.view.InflateException: Binary XML file line #6 in com.domain.qa:layout/chat_activity: Binary XML file line #6 in com.domain.qa:layout/chat_activity: Error inflating class com.glia.widgets.chat.ChatView 04:11:31 E AndroidRuntime : Caused by: android.view.InflateException: Binary XML file line #6 in com.domain.qa:layout/chat_activity: Error inflating class com.glia.widgets.chat.ChatView 04:11:31 E AndroidRuntime : Caused by: java.lang.reflect.InvocationTargetException 04:11:31 E AndroidRuntime : at java.lang.reflect.Constructor.newInstance0(Native Method) 04:11:31 E AndroidRuntime : at java.lang.reflect.Constructor.newInstance(Constructor.java:343) 04:11:31 E AndroidRuntime : at android.view.LayoutInflater.createView(LayoutInflater.java:882) 04:11:31 E AndroidRuntime : at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:1034) 04:11:31 E AndroidRuntime : at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:989) 04:11:31 E AndroidRuntime : at android.view.LayoutInflater.rInflate(LayoutInflater.java:1151) 04:11:31 E AndroidRuntime : at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:1112) 04:11:31 E AndroidRuntime : at android.view.LayoutInflater.inflate(LayoutInflater.java:700) 04:11:31 E AndroidRuntime : at android.view.LayoutInflater.inflate(LayoutInflater.java:544) 04:11:31 E AndroidRuntime : at android.view.LayoutInflater.inflate(LayoutInflater.java:491) 04:11:31 E AndroidRuntime : at androidx.appcompat.app.AppCompatDelegateImpl.setContentView(SourceFile:9) 04:11:31 E AndroidRuntime : at androidx.appcompat.app.AppCompatActivity.setContentView(SourceFile:2) 04:11:31 E AndroidRuntime : at com.glia.widgets.chat.ChatActivity.onCreate(SourceFile:3) 04:11:31 E AndroidRuntime : at com.ssb.retail.glia.SSBChatActivity.onCreate(SourceFile:1) 04:11:31 E AndroidRuntime : at android.app.Activity.performCreate(Activity.java:8944) 04:11:31 E AndroidRuntime : at android.app.Activity.performCreate(Activity.java:8913) 04:11:31 E AndroidRuntime : at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1456) 04:11:31 E AndroidRuntime : at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:4146) 04:11:31 E AndroidRuntime : at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:4322) 04:11:31 E AndroidRuntime : at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:103) 04:11:31 E AndroidRuntime : at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:139) 04:11:31 E AndroidRuntime : at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:96) 04:11:31 E AndroidRuntime : at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2685) 04:11:31 E AndroidRuntime : at android.os.Handler.dispatchMessage(Handler.java:106) 04:11:31 E AndroidRuntime : at android.os.Looper.loopOnce(Looper.java:230) 04:11:31 E AndroidRuntime : at android.os.Looper.loop(Looper.java:319) 04:11:31 E AndroidRuntime : at android.app.ActivityThread.main(ActivityThread.java:8893) 04:11:31 E AndroidRuntime : at java.lang.reflect.Method.invoke(Native Method) 04:11:31 E AndroidRuntime : at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:608) 04:11:31 E AndroidRuntime : at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1103) 04:11:31 E AndroidRuntime : Caused by: java.lang.UnsupportedOperationException: Merge supports only data classes, UiTheme is not a data class 04:11:31 E AndroidRuntime : at com.glia.widgets.helper.CommonExtensionsKt.getFullHybridTheme(SourceFile:4) 04:11:31 E AndroidRuntime : at com.glia.widgets.chat.ChatView.setDefaultTheme(SourceFile:2) 04:11:31 E AndroidRuntime : at com.glia.widgets.chat.ChatView.readTypedArray(SourceFile:3) 04:11:31 E AndroidRuntime : at com.glia.widgets.chat.ChatView.<init>(SourceFile:22) 04:11:31 E AndroidRuntime : at com.glia.widgets.chat.ChatView.<init>(SourceFile:28) 04:11:31 E AndroidRuntime : at com.glia.widgets.chat.ChatView.<init>(SourceFile:27) 04:11:31 E AndroidRuntime : at com.glia.widgets.chat.ChatView.<init>(Unknown Source:11) 04:11:31 E AndroidRuntime : ... 30 more
How can I solve it?
It only happens in the Release version
Thanks

Dear @eemorenom,
We don't use GitHub issues for support. Do you have access to Glia Service Desk? Please open a ticket through the service desk and we are happy to help.
Please do add to the ticket though what version of Gradle are you using as the issue you share is connected to Gradle version most probably.

authors: eemorenom mikktammeglia

repo: salemove/android-sdk-widgets


text:
BACKEND-API[create API's for pos integration with saleor]

I want to merge this change because...
I have integrated Stripe POS (Point of Sale) into Saleor using RESTful APIs. This integration allows for seamless management of POS transactions directly within the Saleor admin interface. The integration includes the ability to create, view, and manage orders processed through Stripe POS.
Reason for Merge
This change is crucial because it extends Saleor’s payment capabilities to include Stripe POS, offering users the flexibility to handle in-person transactions alongside online payments. By merging this PR, Saleor will support a wider range of payment methods, enhancing its utility for merchants who operate both online and physical stores.

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

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

Hey, thanks for the PR but this is not the direction where we want to go. Few arguments:

Saleor is fully graphql, this PR adds a partial REST API for handling Stripe's POS.
all Saleor's built-in payment integrations are built as a Plugin. You can set them up from dashboard, activate, deactivate, or fully remove them from your store by removing the plugin from settings.PLUGINS.
The proposed changes always provide the stripe POS API as it is built-in directly in Saleor. Not all Saleor's users use Stripe or Stripe POS, so there is no reason to have this by default
We want to provide general functionalities and flexible API, allowing you to extend Saleor without modifying the base code.
Your implementation doesn't extend Saleor, it is placed next to Saleor (for example, it will not work with Saleor's dashboard but separate Admin panel will be served by Saleor).
We are in the process of migrating any plugins (including payment integrations) into app. In that case, all built-in plugins will be replaced by App.

As explained above, your changes should be done as an App. Having Stripe PoS as App, would also allow you to render the App iframe inside the Dashboard. You can use it to render a configuration form, provide management view (as you did by extending the router.urls right now.) etc. Here you have docs for Apps: https://docs.saleor.io/developer/extending/apps/overview
I am closing the PR as explained above.

repo: saleor/saleor


text:
When running pretrained model FastCCX on annotated_data, it has debug

when i use the pretrained model FastCCX provided by the link to evalute the annotated data, i have met the debug like this:
03/24/2021 20:54:10 - INFO - main -   Loading model from checkpoint.
=========== <class 'model.BertPointer'> ==============
03/24/2021 20:54:15 - INFO - pytorch_transformers.modeling_utils -   loading weights file https://s3.amazonaws.com/models.huggingface.co/bert/bert-base-uncased-pytorch_model.bin from cache at /home/zggao/.cache/torch/pytorch_transformers/aa1ef1aede4482d0dbcd4d52baad8ae300e60902e88fcb0bebdec09afd232066.36ca03ab34a1a5d5fa7bc3d03d55c4fa650fed07220e2eeebc06ce58d0e9a157
Traceback (most recent call last):
File "/home/zggao/document-summarization/abs-sum-fact-problem/factCC-master/modeling//run.py", line 520, in
main()
File "/home/zggao/document-summarization/abs-sum-fact-problem/factCC-master/modeling//run.py", line 460, in main
model = model_class.from_pretrained(args.model_name_or_path, from_tf=bool('.ckpt' in args.model_name_or_path), config=config)
File "/home/zggao/anaconda3/envs/testtransformers/lib/python3.6/site-packages/pytorch_transformers/modeling_utils.py", line 536, in from_pretrained
model = cls(config, *model_args, **model_kwargs)
File "/home/zggao/document-summarization/abs-sum-fact-problem/factCC-master/modeling/model.py", line 52, in init
self.apply(self.init_weights)
File "/home/zggao/anaconda3/envs/testtransformers/lib/python3.6/site-packages/torch/nn/modules/module.py", line 440, in apply
module.apply(fn)
File "/home/zggao/anaconda3/envs/testtransformers/lib/python3.6/site-packages/torch/nn/modules/module.py", line 440, in apply
module.apply(fn)
File "/home/zggao/anaconda3/envs/testtransformers/lib/python3.6/site-packages/torch/nn/modules/module.py", line 440, in apply
module.apply(fn)
File "/home/zggao/anaconda3/envs/testtransformers/lib/python3.6/site-packages/torch/nn/modules/module.py", line 441, in apply
fn(self)
TypeError: init_weights() takes 1 positional argument but 2 were given
how can i fix this?

I delete the code "self.apply(self.init_weights)" in model.py line 52 , and i can evalute the factccx now.

repo: salesforce/factCC


text:
feat!: migrate to ESM

What does this PR do?
Migrate to ESM
What issues does this PR fix or reference?
@W-14487112@

qa: generated a plugin for internal and external.
✅ looked ok
✅ internal had the salesforce copyright header stuff, external didn't
✅ internal had the top-level license.txt file, external didn't

authors: mdonnalley mshanemc

repo: salesforcecli/plugin-dev


text:
Add "copy link/open link in browser" on right click

Why is right click on links disabled? It's useful to copy links of tracks when I want to download them.

Good point, will add a copy link/open link in browser option to the right click context menu.
Also note that downloading tracks with the "download" button on soundcloud.com (where the uploader allowed that) should just work (at least in 1.0.0).

Fixed in 1.1.0

authors: salomvary sindhus

repo: salomvary/soundcleod


text:
🛑 Bitwarden is down

In d5231b9, Bitwarden (https://bitwarden.saltbo.fun) was down:

HTTP code: 404
Response time: 2583 ms

Resolved: Bitwarden is back up in ccd2740 after 7 minutes.

repo: saltbo/status


text:
Some components do not follow dark theme properly

When using the dark theme option, some components (e.g. tables or the layers view in the drag and drop builder) become unreadable because they'll have white text on light backgrounds.

On second view, this seems to be caused by the respective elements using the secondary colour for their background, which in this case is grey. I don't think that changing the secondary colour altogether is the way to go, neither is these elements not using the secondary colour at all. IMHO the best approach is to add some lines to custom.css

repo: saltcorn/tabler


text:
Task: WebRTC

These changes add the WebRTC task protocol specification.
@dbrgn Please, review. :)

The discussed CSN changes haven't made it into the PR, I'll add those to the master directly.

Let's move over to https://github.com/saltyrtc/saltyrtc-meta/pull/70 for further reviews and discussion. I'll go through the remaining review here and add changes to that PR.

repo: saltyrtc/saltyrtc-meta


text:
feat(plasma-web/b2c): Merge "Dropdown" component

Плановое объеденение компонентов.
Упростили и теперь из plasma-hope идет re-export компонента Dropdown в

b2c
web

Так же были перенесены cypress тесты в plasma-hope, а в библиотеках созданы symlink.

:baby_chick: Download canary assets:
colors--canary.447.4554867268.xml
color_metro_ios-swift--canary.447.4554867268.swift
color_metro_kotlin--canary.447.4554867268.kt
color_metro_react-native--canary.447.4554867268.ts
color_sberHealth_ios-swift--canary.447.4554867268.swift
color_sberHealth_kotlin--canary.447.4554867268.kt
color_sberHealth_react-native--canary.447.4554867268.ts
color_sbermarket_ios-swift--canary.447.4554867268.swift
color_sbermarket_kotlin--canary.447.4554867268.kt
color_sbermarket_react-native--canary.447.4554867268.ts
color_sberprime_ios-swift--canary.447.4554867268.swift
color_sberprime_kotlin--canary.447.4554867268.kt
color_sberprime_react-native--canary.447.4554867268.ts
color_selgros_ios-swift--canary.447.4554867268.swift
color_selgros_kotlin--canary.447.4554867268.kt
color_selgros_react-native--canary.447.4554867268.ts
color_smbusiness_ios-swift--canary.447.4554867268.swift
color_smbusiness_kotlin--canary.447.4554867268.kt
color_smbusiness_react-native--canary.447.4554867268.ts
PlasmaTokensColor--canary.447.4554867268.swift
shadow_sbermarket_react-native--canary.447.4554867268.ts
typo_mage_ios-swift--canary.447.4554867268.swift
typo_mage_kotlin--canary.447.4554867268.kt
typo_mage_react-native--canary.447.4554867268.ts
typo_plasma_ios-swift--canary.447.4554867268.swift
typo_plasma_kotlin--canary.447.4554867268.kt
typo_plasma_react-native--canary.447.4554867268.ts
typo_ruler_ios-swift--canary.447.4554867268.swift
typo_ruler_kotlin--canary.447.4554867268.kt
typo_ruler_react-native--canary.447.4554867268.ts
typo_sage_ios-swift--canary.447.4554867268.swift
typo_sage_kotlin--canary.447.4554867268.kt
typo_sage_react-native--canary.447.4554867268.ts
typo_sbermarket_ios-swift--canary.447.4554867268.swift
typo_sbermarket_kotlin--canary.447.4554867268.kt
typo_sbermarket_react-native--canary.447.4554867268.ts
typo_soulmate_ios-swift--canary.447.4554867268.swift
typo_soulmate_kotlin--canary.447.4554867268.kt
typo_soulmate_react-native--canary.447.4554867268.ts

📦 Published PR as canary version: Canary Versions

:sparkles: Test out this PR locally via:
npm install @salutejs/plasma-b2c@1.170.0-canary.447.4554867268.0
npm install @salutejs/plasma-hope@0.28.0-canary.447.4554867268.0
npm install @salutejs/plasma-web@1.195.0-canary.447.4554867268.0
# or
yarn add @salutejs/plasma-b2c@1.170.0-canary.447.4554867268.0
yarn add @salutejs/plasma-hope@0.28.0-canary.447.4554867268.0
yarn add @salutejs/plasma-web@1.195.0-canary.447.4554867268.0

Theme Builder app deployed!
http://plasma.sberdevices.ru/pr/plasma-theme-builder-pr-447/

Demo canvas app deployed!
http://plasma.sberdevices.ru/pr/demo-canvas-app-pr-447/

Theme Builder app deployed!
http://plasma.sberdevices.ru/pr/plasma-theme-builder-pr-447/

Demo canvas app deployed!
http://plasma.sberdevices.ru/pr/demo-canvas-app-pr-447/

Documentation preview deployed!
website: http://plasma.sberdevices.ru/pr/pr-447/
ui storybook: http://plasma.sberdevices.ru/pr/pr-447/ui-storybook/
web storybook: http://plasma.sberdevices.ru/pr/pr-447/web-storybook/
b2c storybook: http://plasma.sberdevices.ru/pr/pr-447/b2c-storybook/
temple storybook: http://plasma.sberdevices.ru/pr/pr-447/temple-storybook/

Component performance testing
Result: 🟢 Success
Check out report in job artifacts!

authors: Salute-Eva Yakutoc

repo: salute-developers/plasma


text:
install_linux_deps issue on antergos/arch linux

...
src/mongoc/mongoc-rand.c: In function ‘_mongoc_pseudo_rand_bytes’:
src/mongoc/mongoc-rand.c:33:5: warning: ‘RAND_pseudo_bytes’ is deprecated [-Wdeprecated-declarations]
     return RAND_pseudo_bytes(buf, num);
     ^~~~~~
In file included from /usr/include/openssl/e_os2.h:13,
                 from /usr/include/openssl/ossl_typ.h:19,
                 from /usr/include/openssl/rand.h:14,
                 from src/mongoc/mongoc-rand.c:26:
/usr/include/openssl/rand.h:47:1: note: declared here
 DEPRECATEDIN_1_1_0(int RAND_pseudo_bytes(unsigned char *buf, int num))
 ^~~~~~~~~~~~~~~~~~
  CC       src/mongoc/libmongoc_priv_la-mongoc-sasl.lo
  CC       src/mongoc/libmongoc_1_0_la-mongoc-array.lo
src/mongoc/mongoc-stream-tls.c:100:1: error: variable ‘gMongocStreamTlsRawMethods’ has initializer but incomplete type
 static BIO_METHOD gMongocStreamTlsRawMethods = {
 ^~~~~~
src/mongoc/mongoc-stream-tls.c:101:4: warning: excess elements in struct initializer
    BIO_TYPE_FILTER,
    ^~~~~~~~~~~~~~~
src/mongoc/mongoc-stream-tls.c:101:4: note: (near initialization for ‘gMongocStreamTlsRawMethods’)
src/mongoc/mongoc-stream-tls.c:102:4: warning: excess elements in struct initializer
    "mongoc-stream-tls-glue",
    ^~~~~~~~~~~~~~~~~~~~~~~~
src/mongoc/mongoc-stream-tls.c:102:4: note: (near initialization for ‘gMongocStreamTlsRawMethods’)
src/mongoc/mongoc-stream-tls.c:103:4: warning: excess elements in struct initializer
    _mongoc_stream_tls_bio_write,
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/mongoc/mongoc-stream-tls.c:103:4: note: (near initialization for ‘gMongocStreamTlsRawMethods’)
src/mongoc/mongoc-stream-tls.c:104:4: warning: excess elements in struct initializer
    _mongoc_stream_tls_bio_read,
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~
src/mongoc/mongoc-stream-tls.c:104:4: note: (near initialization for ‘gMongocStreamTlsRawMethods’)
src/mongoc/mongoc-stream-tls.c:105:4: warning: excess elements in struct initializer
    _mongoc_stream_tls_bio_puts,
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~
src/mongoc/mongoc-stream-tls.c:105:4: note: (near initialization for ‘gMongocStreamTlsRawMethods’)
src/mongoc/mongoc-stream-tls.c:106:4: warning: excess elements in struct initializer
    _mongoc_stream_tls_bio_gets,
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~
src/mongoc/mongoc-stream-tls.c:106:4: note: (near initialization for ‘gMongocStreamTlsRawMethods’)
src/mongoc/mongoc-stream-tls.c:107:4: warning: excess elements in struct initializer
    _mongoc_stream_tls_bio_ctrl,
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~
src/mongoc/mongoc-stream-tls.c:107:4: note: (near initialization for ‘gMongocStreamTlsRawMethods’)
src/mongoc/mongoc-stream-tls.c:108:4: warning: excess elements in struct initializer
    _mongoc_stream_tls_bio_create,
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/mongoc/mongoc-stream-tls.c:108:4: note: (near initialization for ‘gMongocStreamTlsRawMethods’)
src/mongoc/mongoc-stream-tls.c:109:4: warning: excess elements in struct initializer
    _mongoc_stream_tls_bio_destroy
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/mongoc/mongoc-stream-tls.c:109:4: note: (near initialization for ‘gMongocStreamTlsRawMethods’)
src/mongoc/mongoc-stream-tls.c: In function ‘_mongoc_stream_tls_bio_create’:
src/mongoc/mongoc-stream-tls.c:134:5: error: dereferencing pointer to incomplete type ‘BIO’ {aka ‘struct bio_st’}
    b->init = 1;
     ^~
src/mongoc/mongoc-stream-tls.c: At top level:
src/mongoc/mongoc-stream-tls.c:100:19: error: storage size of ‘gMongocStreamTlsRawMethods’ isn’t known
 static BIO_METHOD gMongocStreamTlsRawMethods = {
                   ^~~~~~~~~~~~~~~~~~~~~~~~~~
make[1]: *** [Makefile:2828: src/mongoc/libmongoc_priv_la-mongoc-stream-tls.lo] Error 1
make[1]: *** Waiting for unfinished jobs....
src/mongoc/mongoc-ssl.c: In function ‘_mongoc_ssl_check_cert’:
src/mongoc/mongoc-ssl.c:253:16: warning: ‘ASN1_STRING_data’ is deprecated [-Wdeprecated-declarations]
                check = (char *)ASN1_STRING_data (name->d.ia5);
                ^~~~~
In file included from /usr/include/openssl/bn.h:31,
                 from /usr/include/openssl/asn1.h:24,
                 from /usr/include/openssl/objects.h:916,
                 from /usr/include/openssl/evp.h:27,
                 from /usr/include/openssl/x509.h:23,
                 from /usr/include/openssl/ssl.h:50,
                 from src/mongoc/mongoc-ssl.c:24:
/usr/include/openssl/asn1.h:553:1: note: declared here
 DEPRECATEDIN_1_1_0(unsigned char *ASN1_STRING_data(ASN1_STRING *x))
 ^~~~~~~~~~~~~~~~~~
At top level:
src/mongoc/mongoc-ssl.c:515:1: warning: ‘_mongoc_ssl_thread_locking_callback’ defined but not used [-Wunused-function]
 _mongoc_ssl_thread_locking_callback (int         mode,
 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/mongoc/mongoc-ssl.c:504:1: warning: ‘_mongoc_ssl_thread_id_callback’ defined but not used [-Wunused-function]
 _mongoc_ssl_thread_id_callback (void)
 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
make[1]: Leaving directory '/home/sam/Desktop/workspace/crystal-mongo-orm/lib/mongo-c-driver-1.1.0'
make: *** [Makefile:3727: all-recursive] Error 1

never mind, forgot to install some dependencies

Do we have a fix for this issue. currently yocto build fails due to missing dependency.

Yeah the script no longer works. Feel free to submit a pull request if you can find a way to fix it. I use Ubuntu and they have since added the required packages to the main repos so the script is no longer necessary on my system.

@sam0x17 , I've bumped into the same problem while trying to update the openssl.
Do you remember how you did solve this issue? What dependencies were missing there? Thanks in advance.

@sam0x17 , I've bumped into the same problem while trying to update the openssl.
Do you remember how you did solve this issue? What dependencies were missing there? Thanks in advance.

I faced the same problem when upgrading openssl version to 1.1.1g in my yocto build environment. @sam0x17 can you provide the solution here?

I've just had the same error, but managed to fix it by adding the following to my local.conf
PREFERRED_VERSION_openssl-native = "1.0.2j"
Thought I'd add this comment incase anyone else was having similar issues. (@sancharbanerjee ?)

It isn't this simple for me. My entire build env is based on OE2.2 and I require Openssl 1.1.x... Upgradation of Openssl standalone is difficult due to chain dependencies.. I may be ending up upgrading the entire env to OE3.1 if I don't find any other solution.. @grhm

People struggling with this keep in mind the upstream dependencies for mongo_orm are, like, never updated, so you might have to use Docker to get this working properly. Just try to emulate how things were in 2018/2017

authors: grhm joaofl joaoflnedap ravindrangnanasekaran sam0x17 sancharbanerjee


text:
Question: why does the middleware returns plain error?

Hi!
Nice project and good job.
However, there is one thing I can't get: why the middleware turns echo.HTTPError into a plain error here? It breaks the default echo's error handler behaviour and any error ends up as 500 if slog-echo is used. Hope you can help me understand the rationale behind this decision.

I faced with the same issue. After upgrading to 1.14.3 it starts convert all errors to 500

-> v1.14.4
Thanks for the fix!

Thanks! Closing the issue

Ha, I hadn't seen this -- it'd have saved me some debugging time if I'd looked! Thanks for merging #39 so quick. :-)

authors: abh samber taraktikos uzzz

repo: samber/slog-echo


text:
support dynamic severity levels

I was expecting log messages through this handler would respect/translate slog.Level(s) to syslog severity level, but it looks like that's not dynamic today.
All messages are currently written as a static severity level, irrespective of the logging level of that slog.Record.
I think, using a syslog.Writer instead of an io.Writer would enable logging specific slog.Level to a specific syslog severity level. Due to the simplicity of slog.Level I don't think the translation will be complicated to do, but the change in syslog.Writer would be a breaking change.
I'm not sure if the current behaviour was intended or a bug.

If you are happy with the following translations, I'm happy to send a PR!

slog.Level
slog.Severity
syslog.Severity

-4
DEBUG
DEBUG

-3
DEBUG
DEBUG

-2
DEBUG
DEBUG

-1
DEBUG
DEBUG

0
INFO
INFO

1
INFO
INFO

2
INFO
NOTICE

3
INFO
NOTICE

4
WARNING
WARNING

5
WARNING
WARNING

6
WARNING
WARNING

7
WARNING
WARNING

8
ERROR
ERROR

9
ERROR
ERROR

10
ERROR
CRITICAL

11
ERROR
CRITICAL

12
ERROR
ALERT

13
ERROR
ALERT

14
ERROR
EMERGENCY

15
ERROR
EMERGENCY

Hi @snqk and thanks for your proposal,
Can you confirm that moving to syslog package would also break the output format ?
Because the log level translation could be done without the syslog library.

Because the log level translation could be done without the syslog library.

Perhaps I'm missing something but I don't see how it can. You'll need to use *syslog.Writer which exposes the specific logging functions with different severities. See: https://pkg.go.dev/log/syslog
The output format isn't affected, as it's defined by whatever payload you write.

Currently, we use the @cee prefix, followed by a json message.
Can you confirm that switching to syslog.Writer will break that format?

Can you confirm that switching to syslog.Writer will break that format?

No, it won't.

Ok, nice. Would you like to prepare the PR ?
I have no more rsyslog available in my infrastructure.

authors: samber snqk

repo: samber/slog-syslog


text:
Can this code be used on sequence data?

Hello, Can this code be used on sequence data? Like stock price data

No, it's designed for still image data and has no temporal processing component.

authors: klauspa tobybreckon

repo: samet-akcay/ganomaly


text:
Automatically close tabs on macOS

Supports Safari and Chrome via AppleScript.

I think a more simple solution is to call window.close() in javascript

@MasseGuillaume didn't test that, maybe it would work better. In any case I'm not using this anymore but thanks for the suggestion!

authors: MasseGuillaume thecadams

repo: samm-git/aws-vpn-client


text:
ALSA Hanging After First Use

I can't get it to run more than once. Everything works well on first boot. Alexa says "hello." I press the button. Red light goes on. I ask a question. Release button. Red light goes off. Green light comes on. Alexa responds. Yay. Then ... Nothing.
After the first interaction, nothing. Button push gets no red LED. No Alexa response. This is what the log says:
        Checking Internet Connection
        Connection OK
        Traceback (most recent call last):
          File "/root/AlexaPi/main.py", line 151, in <module>
                        start()
          File "/root/AlexaPi/main.py", line 117, in start
                        inp = alsaaudio.PCM(alsaaudio.PCM_CAPTURE,
                        alsaaudio.PCM_NORMAL, device)
                        alsaaudio.ALSAAudioError: Device or resource busy

Any ideas why ALSA gets bogged down after the first instance? I am using a USB min mic (http://www.amazon.com/dp/B00IR8R7WQ/ref=cm_sw_su_dp) for capture and the Raspberry Pi sound card for playback.

Which branch of the repository are you using? Master?

Hmm I'm using the same mic and havn't seen that issue.
Can I suggest trying the version1.1 branch, there's A LOT of stuff changed in there and I'd rather work on getting that one working now, feature-wise its pretty much on par with the current master anyway, the music stuff is new and still a bit fragile.

Thanks. I will reinstall. I actually used NovaSpirit's fork at https://github.com/novaspirit/AlexaPi. I was getting some errors around the script not populating the release token variable and stumbled then across Novaspirit's video. For some reason, his version of the setup script solved that problem for me. I'll try starting from scratch with 1.1. Thanks.

Ok. Reinstalled with 1.1. Running from /root. Same problem. Here's the log entry:
Checking Internet Connection...
Connection OK
Play_Audio Request for: /root/AlexaPi/hello.mp3
Player State: State.Opening
Player State: State.Playing
Player State: State.Ended
Ready to Record.
Recording...
Traceback (most recent call last):
File "/root/AlexaPi/main.py", line 397, in
start()
File "/root/AlexaPi/main.py", line 352, in start
inp = alsaaudio.PCM(alsaaudio.PCM_CAPTURE, alsaaudio.PCM_NORMAL, device)
alsaaudio.ALSAAudioError: Device or resource busy
I must have ALSA configured wrong.

can you post the output of arecord -l and arecord -L

pi@raspberrypi:~ $ arecord -l
**** List of CAPTURE Hardware Devices ****
card 1: Device [USB PnP Sound Device], device 0: USB Audio [USB Audio]
Subdevices: 1/1
Subdevice #0: subdevice #0
pi@raspberrypi:~ $ arecord -L
null
Discard all samples (playback) or generate zero samples (capture)
sysdefault:CARD=Device
USB PnP Sound Device, USB Audio
Default Audio Device
front:CARD=Device,DEV=0
USB PnP Sound Device, USB Audio
Front speakers
surround21:CARD=Device,DEV=0
USB PnP Sound Device, USB Audio
2.1 Surround output to Front and Subwoofer speakers
surround40:CARD=Device,DEV=0
USB PnP Sound Device, USB Audio
4.0 Surround output to Front and Rear speakers
surround41:CARD=Device,DEV=0
USB PnP Sound Device, USB Audio
4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=Device,DEV=0
USB PnP Sound Device, USB Audio
5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=Device,DEV=0
USB PnP Sound Device, USB Audio
5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=Device,DEV=0
USB PnP Sound Device, USB Audio
7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=Device,DEV=0
USB PnP Sound Device, USB Audio
IEC958 (S/PDIF) Digital Audio Output
dmix:CARD=Device,DEV=0
USB PnP Sound Device, USB Audio
Direct sample mixing device
dsnoop:CARD=Device,DEV=0
USB PnP Sound Device, USB Audio
Direct sample snooping device
hw:CARD=Device,DEV=0
USB PnP Sound Device, USB Audio
Direct hardware device without any conversions
plughw:CARD=Device,DEV=0
USB PnP Sound Device, USB Audio
Hardware device with all software conversions

I had a similar problem, with a usb sound card and a usb mic at the same time (probably more so if the sound card has a mic input option of any kind) the pi doesn't seem to be able to use both. Try using the aux out with a general speaker to test it with the usb mic still plugged in and then start AlexaPi again.

Sorry if I wasn't clear. I am using the aux out (headphone jack) for output and a USB mic for capture.

Oh.. I thought you meant external sound card when you said sound card..

@charges which OS are you using? And is AlexaPi running as root?

I'm using Raspbian Jesse, latest version and ran apt-get update and upgrade after install.

Ok. Been working on this. Started from scratch with Jesse Lite and 1.1. Everything worked perfectly for a half-day. You could ask question after question. All worked great. Now, it will work for a question or two. Then it craps out. No LED response. Here's the log for the last boot:

Sorry. Here's the log:  pi@raspberrypi:/var/log $ tail -50 alexa.log
Recording Finished.
Sending Speech Request...
Processing Request Response...
JSON String Returned: {"messageBody": {"directives": [{"namespace": "SpeechSynthesizer", "name": "speak", "payload": {"contentIdentifier": "amzn1.as-ct.v1.Domain:Application:Weather#ACRI#WeatherPrompt.33bdb625-81e8-4c35-bc9c-d3b8a26cca9b", "audioContent": "cid:WeatherPrompt.33bdb625-81e8-4c35-bc9c-d3b8a26cca9b_20839583"}}]}, "messageHeader": {}}
Play_Audio Request for: /root/AlexaPi/tmpcontent/WeatherPrompt.33bdb625-81e8-4c35-bc9c-d3b8a26cca9b_20839583.mp3
Player State: State.Opening
Player State: State.Playing
Player State: State.Ended
Ready to Record.
Recording...
Recording Finished.
Sending Speech Request...
Processing Request Response...
JSON String Returned: {"messageBody": {"directives": [{"namespace": "SpeechSynthesizer", "name": "speak", "payload": {"contentIdentifier": "amzn1.as-ct.v1.Domain:Application:Weather#ACRI#GlobalDomain_ActionableAbandon_93fbe147-b45e-428c-b59a-ab83c94f9055", "audioContent": "cid:GlobalDomain_ActionableAbandon_93fbe147-b45e-428c-b59a-ab83c94f9055_816914994"}}]}, "messageHeader": {}}
Play_Audio Request for: /root/AlexaPi/tmpcontent/GlobalDomain_ActionableAbandon_93fbe147-b45e-428c-b59a-ab83c94f9055_816914994.mp3
Player State: State.Opening
Player State: State.Playing
Player State: State.Ended
Ready to Record.
Recording...
Recording Finished.
Sending Speech Request...
Processing Request Response...
JSON String Returned: {"messageBody": {"directives": [{"namespace": "SpeechSynthesizer", "name": "speak", "payload": {"contentIdentifier": "amzn1.as-ct.v1.Domain:Application:Knowledge#ACRI#KnowledgePrompt.4b1832ca-1361-42a3-81bf-3fd12fd0631f", "audioContent": "cid:KnowledgePrompt.4b1832ca-1361-42a3-81bf-3fd12fd0631f_1238532806"}}]}, "messageHeader": {}}
Play_Audio Request for: /root/AlexaPi/tmpcontent/KnowledgePrompt.4b1832ca-1361-42a3-81bf-3fd12fd0631f_1238532806.mp3
Player State: State.Opening
Player State: State.Playing
Player State: State.Ended
Ready to Record.
Recording...
Recording Finished.
Sending Speech Request...
Traceback (most recent call last):
File "/root/AlexaPi/main.py", line 410, in
start()
File "/root/AlexaPi/main.py", line 380, in start
alexa_speech_recognizer()
File "/root/AlexaPi/main.py", line 111, in alexa_speech_recognizer
r = requests.post(url, headers=headers, files=files)
File "/usr/lib/python2.7/dist-packages/requests/api.py", line 94, in post
return request('post', url, data=data, json=json, **kwargs)
File "/usr/lib/python2.7/dist-packages/requests/api.py", line 49, in request
return session.request(method=method, url=url, **kwargs)
File "/usr/lib/python2.7/dist-packages/requests/sessions.py", line 457, in request
resp = self.send(prep, **send_kwargs)
File "/usr/lib/python2.7/dist-packages/requests/sessions.py", line 569, in send
r = adapter.send(request, **kwargs)
File "/usr/lib/python2.7/dist-packages/requests/adapters.py", line 407, in send
raise ConnectionError(err, request=request)
requests.exceptions.ConnectionError: ('Connection aborted.', gaierror(-2, 'Name or service not known'))

That error looks like the http client can't resolve the hostname for the alexa voice service which generally points to a problem with your DNS server/ISP or possibly your home network.
Which ISP are you with?
Do you ever get problems when browsing the web and pages failing to load?

@charges
Are you using a wifi donglee or a network cable with the AlexaPi? ... if wifi it could be the dongle itself ... have you tried it with a network cable? ...

@GemBro Dongle. My second. The first one was even sketchier. I actually haven't had any more occurrences of that network error. I've noticed Alexa response time can be kind of slow and the delay seems proportion to the length of my statement/question but I'm not sure whether that's the Pi's processor, my network or Amazon's turn time. At any rate, it's working great now. iHeart radio works. Waiting for Amazon Music approval. TuneIn seems to work--Alexa replies with the selected station--but then no actual audio is returned. Need to fiddle with that a bit. Thanks for all you help and @sammachin killer code.

Ok gonna close this as it seems to be network related, yep the speed of network connection will affect response time as its a record then upload model although on decent broadband with 1meg or so up you should be fine.

Wifi is the bain for getting fast Internet speeds (when you want it) ... wifi bottlenecks all of your super fast Internet speeds down to practically nothing ... wifi Internet connection speed is governed by the actual wifi communication ... but by using a wired network connection you get your full Internet speed, right up to your devices :) ...

I'll go to wired when I install the AlexaPi in the wall behind one of these and wire the talk switch into the button: http://www.thinkgeek.com/product/e9b8/
That will also be when my wife leaves me.

authors: GemBro Hoki-gcav KonstantinSchubert charges sammachin

repo: sammachin/AlexaPi


text:
[PTNext Beta07] Strange geometric shadow artifacts when indoors

Images attached show comparison with PT21
1440p//DLSSTweaks custom balanced 0.63 scale//RR//PTNext Insane samples
When in exteriors no issues occur. However, whenever entering an indoor or area with a ceiling, these artifacts appear on the upper third of the screen. They remain on the top of the screen - so they disappear when I look at the ceiling.
They disappear when I switch to PT21.

Update from more testing:
If I load a save that is already within an interior, no artifacts appear.

Yep, I've had this happen too, usually on the first load. Happened outdoors the other day as well. It's like the shadow gets attached to the camera and just follows it around. Reloading the save or switching to PT21 always fixes it.

Captured a video of what I experience outdoors, hopefully you can see it (sorry for the long load at the end!) https://drive.google.com/uc?id=1k1lqg0b-OrrAoSAHwGrQrLylJDhO-dMy&export=download
Hope that's helpful in some way. I'm trying to remember, but it seems to only occur after a new install of UltraPlus? Goes away after a few reloads.

I am noticing the same.  I am running 4.0-rc1 in the PT Next mode with ray generation active.
Certain lighting conditions cause this weird shadow to appear. This is noticeable on some containers and in Jackie's garage during the Offrenda quest.
If I toggle the debug option 'Enable separate denoiser' to off this shadow disappears. Disabling the denoiser from the 'main' page does not do this. All other mod options are default for PT Next.
Chosen main settings:
PT Next
Insane Quality
16GB VRAM

Captured a video of what I experience outdoors, hopefully you can see it (sorry for the long load at the end!) https://drive.google.com/uc?id=1k1lqg0b-OrrAoSAHwGrQrLylJDhO-dMy&export=download

ty. i can't access this video 😊
@erbkaiser hmm, Enable Separate Denoiser on the debug page is exactly the same as on the front page 🤔. just to check you don't mean Enable DI Denoising or Enable Custom Denoiser ?

Sorry, I was busy looking for the cause in the debug options and I didn't notice it was the same option.
It is indeed the RTXDI denoising from the main page. Disabling that when the bug occurs instantly clears it.

This is what I was seeing outdoors, for the record.

authors: GarrryValentine JaidynBelbin erbkaiser sammilucia

repo: sammilucia/cyberpunk-ultra-plus


text:
Allow for a wider "Miners" table

At times, the "ID" or "Last Share" fields are text-wrapped to fit the fixed table width of 730px.  Either increase the default table width, or allow it to be configured in config.json, or change the table formatting to avoid text-wrapping field contents.

You can change

to

on your machine.

That helps, thanks!

Layout extended now.


text:
Character Seed File

character-seeds.js

I've got this one


text:
is.empty(key) does not filter 0, key.startsWith('--plyr')  occurs 'not a function' error

the key will get null, 0, '', etc...
https://github.com/sampotts/plyr/blob/ef85cb6195dc07627bd4fd357723c6ee96033ed9/src/js/ui.js#L273
.filter(key => !is.empty(key) && key.startsWith === 'function' && key.startsWith('--plyr'))

Device: OPPO R9tm
OS: Android 5.1
plyr: 3.6.2

Seems related to #1915

repo: sampotts/plyr


text:
Expand Readme

Providing a bit more detail on what clusterfutures is and how to use it.

Perfect. It's a great idea to mention the shared-filesystem assumption and the fact that the work distribution is not meant for distributing any "real" big input data.

Thanks! I've just made version 0.4 on PyPI.

authors: sampsyo takluyver

repo: sampsyo/clusterfutures


text:
The menu toggle button does not work on mobile when using Angular

When the screen is small, you see the "hamburger button" to toggle the sidebar visibility. In my Angular app, nothing happens when I tap the button. There are no errors in the console either - the button simply does not do anything.
Do you have any hints how to fix this?

I was able to get a bit further using the instructions at https://stackoverflow.com/questions/14741988/twitter-bootstrap-navbar-with-angularjs-collapse-not-functioning
<button type="button" class="navbar-toggle collapsed" (click)="toggleCollapse()" aria-expanded="false">

...
<div id="navbar" class="navbar-collapse" [class.collapse]="isCollapsed">

Tapping the button shows the menu now, but all the dropdown-toggle elements are also collapsed. If I tap them, they don't expand but simply act as links to "#". I don't want the dropdown elements collapsed in the first place.

repo: samrayner/bootstrap-side-navbar


text:
Why On Earth would you use python 2.7 ? that's backward

Why On Earth would you use python 2.7 ? that completely makes no sense but anyway good project

I don't believe that in the context of this project because the code mainly comprises of numpy and tensorflow which provide alike api for both python2 and python3.
It would be highly appreciated if you raise a pull request for a python3 version of the project 😄.

it's possible at command line to simply type
2to3 /.py -W
this will upgrade syntax in files to python3.

https://github.com/hocgabri/deep-trading-agent/commit/2f06439cbfa76a71e39ddd39df2e90d3ca338cf3


text:
JSONAPISerializer Enhancements (Paging & Sorting)

Was about to copy-paste my route handler paging and sorting functions for the nth time, figured I'd implement this. Congrats on 1.0 Sam! 🎉 :)
#1418 #1420

I've just added basic filtering support (id and first level attributes). Not quite sure how I'd go about providing the user means to attach filtering functions to specific filter queryParams like it was requested in #1419.

@Oreoz Thanks so much – and thanks for the PR! 😄
I'm going to mark this as a feature request and hold off the moment... This expands the problem space that JSONAPISerializer covers quite a bit, and because this is a less rigidly defined part of JSON:API I know people do all sorts of things when it comes to filtering/paginating/sorting. I think we'll ultimately need a bit of a flexible solution here and I want to think of lower-level things we can provide so we don't end up in the same boat as we have with other primitives inside of Mirage.
Right now we're working on extracting core, so I think ultimately this feature will get merged over there, but I'll leave this here & open for now.

@samselikoff Didn't know you guys already started extracting the core to make it framework-agnostic! That's great new.
I'll be happy to re-work it once you get a better idea of what you're looking for as far as the final API goes. Just ping me here ;)
Also, not quite sure why all the versionned tests exploded on my last commit seeing as everything was good on my end 🤔

It’s not your code there’s a problem in master
Sent from my iPhone

On May 30, 2019, at 8:36 AM, Jean-Philippe Roy notifications@github.com wrote:
@samselikoff Didn't know you guys already started extracting the core to make it framework-agnostic! That's great new.
I'll be happy to re-work it once you get a better idea of what you're looking for as far as the final API goes. Just ping me here ;)
Also, not quite sure why all the versionned tests exploded on my last commit seeing as everything was good on my end 🤔
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.

What we thinking about this PR?

Prob need to think more about it before merging as it’s a pretty big change

I understand. I have made some changes personally as well to make this a bit cleaner. And also taken it out of the core. Wondering how best to distribute?
https://gist.github.com/devotox/c9d641c2233781b6c6abaedd86be5985

Don't have an answer right now, I just need to focus on some other things to get miragejs.com officially launched. I would say continue to use + play with it, see if it works out well, and think about what a general API for Mirage would look like. i.e. what API extensions would you need in Mirage to facilitate this feature.

authors: Oreoz devotox samselikoff

repo: samselikoff/ember-cli-mirage


text:
Set default encoding to ascii

Python 3 defaults encoding to 'utf-8', however, writing programs in languages other than English conflicts with the ideals of TrumpScript.

LOL good point

This actually causes an error in Python 3, I need to figure out how to set the encoding a different way. But better safe than sorry! We can't have people writing TrumpScript programs in Chinese.

No worries, that'll all be caught by the tokenizer anyway. I'm fine with them wasting their time trying to write TS rather than stealing our jobs.

authors: nikolas samshadwell vanshady

repo: samshadwell/TrumpScript


text:
Update to latest configuration file format for Kraken config

implement required changes to kraken config.yaml

Change taints
The method by which taints were added to nodepools was a hack to work around a deficiency in kraken-lib at the time. That problem has since been fixed. Change nodepool definitions with taints per the following:
Original:
        - name: forayNodes
          count: 5
          kubeConfig: *colonybeadKube
          containerConfig: *defaultDocker
          osConfig: *defaultCoreOs
          nodeConfig:
            << : *defaultAwsClusterNode
            taints:
              - key: customer
                value: foray
                effect: NoSchedule
          keyPair: *colonybeadKeyPair

New:
       - name: forayNodes
          count: 5
          kubeConfig: *colonybeadKube
          containerConfig: *defaultDocker
          osConfig: *defaultCoreOs
          nodeConfig: *defaultAwsClusterNode
          taints:
            - key: customer
              value: foray
              effect: NoSchedule
          keyPair: *colonybeadKeyPair

/CC @joejulian @davidewatson

/lgtm

Hold. My comment above was based on the schema change @joejulian made in kraken-lib/1026. However, a quick glance at this code:
---
- set_fact:
    taints: "{{ new_taints }}"
    taints_exist: "{{ new_taints | length > 0 | bool }}"
  vars:
    nodePoolTaintQuery: "{{ node | json_query('schedulingConfig.taints[*]') }}"
    nodePoolTaints: "{{ (nodePoolTaintQuery == '') | ternary([],nodePoolTaintQuery) }}"
    nodeTypeTaintQuery: "{{ node | json_query('nodeConfig.taints[*]') }}"
    nodeTypeTaints: "{{ (nodeTypeTaintQuery == '') | ternary([],nodeTypeTaintQuery) }}"
    new_taints: "{{ nodePoolTaints + nodeTypeTaints }}"

makes me wonder where the nodePool level taints are picked up in ansible.

@davidewatson - holding.

Yeah, this won't work. Using the config file here:
        - name: forayNodes
          count: 5
          kubeConfig: *colonybeadKube
          containerConfig: *defaultDocker
          osConfig: *defaultCoreOs
          nodeConfig: *defaultAwsClusterNode
          keyPair: *colonybeadKeyPair
          taints:
            - key: customer
              value: foray
              effect: NoSchedule

I end up with no taints:
Name:			ip-10-0-104-151.ec2.internal
Role:
Labels:			beta.kubernetes.io/arch=amd64
			beta.kubernetes.io/instance-type=m4.2xlarge
			beta.kubernetes.io/os=linux
			failure-domain.beta.kubernetes.io/region=us-east-1
			failure-domain.beta.kubernetes.io/zone=us-east-1b
			kubernetes.io/hostname=ip-10-0-104-151.ec2.internal
			nodepool=forayNodes
Annotations:		node.alpha.kubernetes.io/ttl=0
			volumes.kubernetes.io/controller-managed-attach-detach=true
Taints:			<none>
CreationTimestamp:	Thu, 21 Dec 2017 07:52:57 -0800

@joejulian: ^^

Yep, my failure to read.
Looks like it should be
        - name: forayNodes
          count: 5
          kubeConfig: *colonybeadKube
          containerConfig: *defaultDocker
          osConfig: *defaultCoreOs
          nodeConfig: *defaultAwsClusterNode
          keyPair: *colonybeadKeyPair
          schedulingConfig:
            taints:
              - key: customer
                value: foray
                effect: NoSchedule

This passes the schema check but I don't know if it produces the taints.

#17 merged.

authors: davidewatson joejulian sostheim


text:
Application crashes on zk.Connect() if servers slice is empty

It should return an err, and not throwing some exceptions that crash the app. I manage to do a simple workaround, by making my own validation on servers list before calling zk.Connect(). Probably a small validation inside the ConnectWithDialer() would be nicer.

Makes sense. Fixed in master: https://github.com/samuel/go-zookeeper/commit/1bc9c36ddd72ddf1d59d47144074f4aacfad4af3

Fix comment (not sure if notifications work on the commit): Error should be put in constants near line 103: ErrConnectionClosed = errors.New("zk: connection closed")

authors: radu-munteanu samuel

repo: samuel/go-zookeeper


text:
Optional fields behave like mandatory when root_validator is used

Bug

OS: Ubuntu 19.04
Python version import sys; print(sys.version): 3.7.3 (default, Oct  7 2019, 12:56:13) [GCC 8.3.0]
Pydantic version import pydantic; print(pydantic.VERSION): 1.2

from typing import (
    List,
    Optional,
)

from pydantic import (
    BaseModel,
    root_validator,
    ValidationError,
)

class Test(BaseModel):
    id_list: Optional[List[int]] = []
    name_list: Optional[List[str]] = []

    class Config:
        pass

    @root_validator
    def check(cls, values):
        id_list = values.get("id_list")
        name_list = values.get("name_list")

        if not id_list and not name_list:
            raise ValidationError("One of 'name_list' or 'id_list' must be defined.")

        return values

input1 = {"id_list": [], "name_list": []}
input2 = {"id_list": [1,2], "name_list": []}
input3 = {"id_list": [], "name_list": ["a", "b"]}
input4 = {"id_list": [1,2], "name_list": ["a", "b"]}
input5 = {"id_list": []}
input6 = {"name_list": []}
input7 = {"id_list": None}
input8 = {"name_list": None}
input9 = {"id_list": None, "name_list": []}
input10 = {"id_list": [], "name_list": None}
input11 = {"id_list": [1,2]}
input12 = {"name_list": ["a", "b"]}
input13 = {}

t1 = Test(**input1)
ValidationError: 1 validation error for Test
__root__
  __init__() takes exactly 3 positional arguments (2 given) (type=type_error)

t2 = Test(**input2)
t2
Test(id_list=[1, 2], name_list=[])

t3 = Test(**input3)
t3
Test(id_list=[], name_list=['a', 'b'])

t4 = Test(**input4)
t4
Test(id_list=[1, 2], name_list=['a', 'b'])

t5 = Test(**input5)
ValidationError: 1 validation error for Test
__root__
  __init__() takes exactly 3 positional arguments (2 given) (type=type_error)

t6 = Test(**input6)
ValidationError: 1 validation error for Test
__root__
  __init__() takes exactly 3 positional arguments (2 given) (type=type_error)

t7 = Test(**input7)
ValidationError: 1 validation error for Test
__root__
  __init__() takes exactly 3 positional arguments (2 given) (type=type_error)

t8 = Test(**input8)
ValidationError: 1 validation error for Test
__root__
  __init__() takes exactly 3 positional arguments (2 given) (type=type_error)

t9 = Test(**input9)
ValidationError: 1 validation error for Test
__root__
  __init__() takes exactly 3 positional arguments (2 given) (type=type_error)

t10 = Test(**input10)
ValidationError: 1 validation error for Test
__root__
  __init__() takes exactly 3 positional arguments (2 given) (type=type_error)

t11 = Test(**input11)
t11
Test(id_list=[1, 2], name_list=[])

t12 = Test(**input12)
t12
Test(id_list=[], name_list=['a', 'b'])

t13 = Test(**input13)
ValidationError: 1 validation error for Test
__root__
  __init__() takes exactly 3 positional arguments (2 given) (type=type_error)

from typing import (
    List,
    Optional,
)

from pydantic import (
    BaseModel,
    root_validator,
    ValidationError,
)

class Test2(BaseModel):
    id_list: Optional[List[int]] = []
    name_list: Optional[List[str]] = []

    class Config:
        pass

t1 = Test2(**input1)
t2 = Test2(**input2)
t3 = Test2(**input3)
t4 = Test2(**input4)
t5 = Test2(**input5)
t6 = Test2(**input6)
t7 = Test2(**input7)
t8 = Test2(**input8)
t9 = Test2(**input9)
t10 = Test2(**input10)
t11 = Test2(**input11)
t12 = Test2(**input12)
t13 = Test2(**input13)

t1
Test2(id_list=[], name_list=[])

t2
Test2(id_list=[1, 2], name_list=[])

t3
Test2(id_list=[], name_list=['a', 'b'])

t4
Test2(id_list=[1, 2], name_list=['a', 'b'])

t5
Test2(id_list=[], name_list=[])

t6
Test2(id_list=[], name_list=[])

t7
Test2(id_list=None, name_list=[])

t8
Test2(id_list=[], name_list=None)

t9
Test2(id_list=None, name_list=[])

t10
Test2(id_list=[], name_list=None)

t11
Test2(id_list=[1, 2], name_list=[])

t12
Test2(id_list=[], name_list=['a', 'b'])

t13
Test2(id_list=[], name_list=[])

Hi @fervid
I don't quite understand the bug sorry.
The message error seems wrong but if you change the raise ValidationError into ValueError
like the doc suggests

validators should either return the parsed value or raise a ValueError, TypeError, or AssertionError (assert statements may be used).

class Test(BaseModel):
    id_list: Optional[List[int]] = []
    name_list: Optional[List[str]] = []

    @root_validator
    def check(cls, values):
        breakpoint()
        id_list = values.get("id_list")
        name_list = values.get("name_list")

        if not id_list and not name_list:
            raise ValueError("One of 'name_list' or 'id_list' must be defined.")

        return values

then the error message is correct.
pydantic.error_wrappers.ValidationError: 1 validation error for Test
__root__
  One of 'name_list' or 'id_list' must be defined. (type=value_error)

Ans since you check that at least one value is "truthy" (not None nor []), I don't see any problem. Could you be more specific if there is actually a bug please?

Thanks.
ValueError really returns my defined err msg "One of 'name_list' or 'id_list' must be defined.".
I was confused by:
root
init() takes exactly 3 positional arguments (2 given) (type=type_error)
that the ValidationError returned.

Not a bug.

authors: PrettyWood fervid

repo: samuelcolvin/pydantic


text:
Singleton Field

This question is related to my Stack Overflow Question.
Basically I am trying to keep the Pydantic model mutable but making a single field immutable such that the given field can be set using MyObject.parse_obj(my_dict) or via a constructor.
Model
# Built In
from datetime import datetime

# 3rd Party
from pydantic import BaseModel
from pydantic import Field # https://pydantic-docs.helpmanual.io/usage/schema/#field-customisation

class Processor(BaseModel):
    """ Pydantic model for a Processor object within the database. """
    class Config:
        """
        Model Configuration: https://pydantic-docs.helpmanual.io/usage/model_config/
        """
        extra = 'forbid'
        allow_mutation = True # This allows mutation, cool
        validate_assignment = True
        underscore_attrs_are_private = True
    model: str
    created_at: str = Field(default_factory=datetime.utcnow().isoformat) # I want to make sure that this can be passed but not assignable
    updated_at: str
    version: int = 0
    expires: Optional[int] = None

My goal is to allow created_at to be parsed from a object (or defaulted) BUT prevent it from being assigned after the model is created.
Example
example_object = {
    "model": "foobar_model",
    "created_at": "2020-12-22T15:35:06.262454+00:00",
    "updated_at": "2020-12-22T15:35:06.262454+00:00",
    "version": 2,
    "expires": None
}
processor = Processor.parse_obj(example_object)
processor.version = 3 # This should be allowed
processor.created_at = datetime.utcnow().isoformat() # This I want to fail

Related but not what I am looking for - GitHub: Is there a way to have a single field be static and immutable with pydantic
As noted on the SO article, that solution doesn't really work because property setters aren't supported for serialization of pydantic models. Similarly I tried using a validator with a PrivateAttr but the private attributes don't appear to be added to the values of a validator.
One of my tried and failed solutions:
# Built In
from typing import Optional
from datetime import datetime

# 3rd Party
from pydantic import BaseModel, Field, validator

class Processor(BaseModel):
    """ Pydantic model for a Processor object within the database. """
    class Config:
        """
        Model Configuration: https://pydantic-docs.helpmanual.io/usage/model_config/
        """
        extra = 'forbid'
        allow_mutation = True # This allows mutation, cool
        validate_assignment = True
        underscore_attrs_are_private = True
    model: str
    created_at: str = Field(default_factory=datetime.utcnow().isoformat)
    _created_at_set: bool = False # Don't need PrivateAttr since underscore_attrs_are_private is enabled
    updated_at: str
    version: int = 0
    expires: Optional[int] = None

    @validator('created_at')
    def singleton(cls, value):
        if cls._created_at_set == True:
            raise AttributeError('The created_at attribute has already been set')
        cls._created_at_set = True
        return value

example_object = {
    "model": "foobar_model",
    "created_at": "2020-12-22T15:35:06.262454+00:00",
    "updated_at": "2020-12-22T15:35:06.262454+00:00",
    "version": 2,
    "expires": None
}
processor = Processor.parse_obj(example_object)
processor.version = 3 # This should be allowed
print(processor.created_at)
print(processor.dict()) # _created_at_set got added to this output
processor.created_at = 'test' # This fails as I wanted.

Hi @Syntactical01
Why not just add a custom__setattr__ ?
class Processor(BaseModel):
    ...

    def __setattr__(self, name, value):
        if name in {'created_at'}:  # all the "frozen" fields
            raise AttributeError(f'cannot assign new value for {name!r}')
        super().__setattr__(name, value)

Cheers

That easy of a fix makes me want to cry.... Thanks a bunch 💯

Don't really care about the points on SO ^^ Feel free to add the answer or link the issue.
I'm closing it if that's fine for you. Happy holidays! 🎅


text:
WIP: Generic Factory

This is a proposal turbo charging ObjectFactory and for removing WorkFactory, CollectionFactory, ImageFactory and the need for per work type factories of any sort. This denormilzation allows the generic factory to happily make whatever concern type objects it needs to.
This is as much more psudo code to show than finished work. Tests will need to be adjusted, readme needs to be updated and some careful checking needs to be done, but I think this is the right direction.

this code was incorporated in to #77

repo: samvera-labs/bulkrax


text:
TreeDict issues

Hi, I tried to use your library and I encountered a couple of issues with TreeDict:

I tried using a Scl.TreeDict<VectorType, Value> and it did not work compared to when I did Scl.TreeDirect<VectorType, Value>
I found that it's not possible to override the compareKeys value using TreeDict. The code does not pass the compareKeys value to the base classes. E.g. compareKeys below does not propagate via the opts to BST.isKeyLessThan:

Scl.TreeDict<VectorType, Value>({
       compareKeys: (a, b): boolean => {
         // left side less than right side
         return customVectorCompareVector(a, b) === -1;
       },
});

Thanks.

Hi, sorry for the very late reply, and thanks for filing an issue.

I tried using a Scl.TreeDict<VectorType, Value> and it did not work compared to when I did Scl.TreeDirect<VectorType, Value>

Could you be more specific? What did not work? What was the error message? There is no TreeDirect type in scl.js IIRC.

authors: samvv sjonesstmn


text:
new deprecation: create-url-argument always throws when an object is passed to create.

// usage:
create({
  // this can be empty
});
// ...
function create(definitionOrUrl, definitionOrOptions, optionsOrNothing) {
    let definition;
    let url;
    let options;

    /////////////////////////
    // definitionOrUrl is an object
    if (typeof definitionOrUrl === 'string') {
      url = definitionOrUrl;
      definition = definitionOrOptions || {};
      options = optionsOrNothing || {};
    } else {
      ///////////////////////
      // so url is false
      url = false;
      definition = definitionOrUrl || {};
      options = definitionOrOptions || {};
    }

    let { context } = definition;
    definition = (0, _helpers.isPageObject)(definition) ? (0, _helpers.assign)({}, (0, _helpers.getPageObjectDefinition)(definition)) : assignDescriptors({}, definition);

    delete definition.context;

     //////////////////////////
     // url is false, so this deprecation is thrown
    Ember.deprecate('Passing an URL argument to `create()` is deprecated', typeof url !== 'string', {
      id: 'ember-cli-page-object.create-url-argument',
      until: "2.0.0",
      url: 'https://ember-cli-page-object.js.org/docs/v1.17.x/deprecations/#create-url-argument'
    });

I'd PR a fix, but my system is out of file watchers and won't start up ember-cli-page-object :thinking:

Ah, it seems to be reproduction for the  https://github.com/san650/ember-cli-page-object/pull/534. Thanks for figuring it out! A PR would be very welcome!
Regarding the watchers issue, I haven't noticed it ever before. I can only guess here. Do you do fresh install over the cloned project, w/o any linking?

it actually looks like on master, this is already fixed?
https://github.com/san650/ember-cli-page-object/blob/master/addon-test-support/create.js#L213
the condition is inverted, but also the code entirely looks a bit different. :thinking: so.. idk what's going on yet.
I now wonder if I'm having yarn-workspace problems and I'm not actually using the latest ember-cli-page-object. O.o
yeah, so this was fixed here: https://github.com/san650/ember-cli-page-object/commit/6dbdb9e11210b6d2e9a2c94fe74f883802f0fdb0#diff-7e9135d873a4889a025f4ed419cf7d3025a1fc38f7ec08bb1c7b3800c55a3483
which is included in 1.17.7.... ugh. yarn

Wow, I didn't realize that refactoring does also fix this issue 😃 great to know!


text:
🛑 Sander Datema is down

In 95169c6, Sander Datema (https://sanderdatema.nl) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Sander Datema is back up in 4a73682 after 7 minutes.

repo: sanderdatema/upptime


text:
UpdateWithXXXX should check bind error first.

https://github.com/sandwich-go/xconf/blob/b92b505284cf4b2a1517b778c8aaeabb9ceb51aa/tests/all_test.go#L384-L387
UpdateWithXXXX 逻辑应该先保护本地绑定逻辑，当更新会引起绑定逻辑失败时，应该提前在update时返回错误，不能将错误扩散到绑定阶段。

fix: https://github.com/sandwich-go/xconf/commit/307bdf29dc8e93a753c6da0e7e29ff3143b89d71

repo: sandwich-go/xconf

license: Unlicense


text:
DPL-920 Transfer from 10X chip to GEMs plate

User story
As a user of the scRNA Core pipeline, I would like LIMS support for the transfer from the 10X chip to the GEMs plate.
Who are the primary contacts for this story
Katy, Lesley, Abby
Who is the nominated tester for UAT
Lesley, Abby
Acceptance criteria
To be considered successful the solution must allow:

[ ] Input chip is "LRC GEM-X 5p Chip"
[ ] Output plate is "LRC GEM-X 5p GEMs"
[ ] It is a straight stamp (although the row on the chip is transposed to a column on the plate)
[ ] Bed verification:

[ ] Input chip on bed 15
[ ] Output plate on bed 5

[ ] Integration Suite test is updated to include this transfer.

Related issues
Probably best to NOT do this in parallel with https://github.com/sanger/limber/issues/1392, as some work to do with implementing the new chip might be duplicated.

Updated in anticipation of the GEM-X decision. (1:1 transfer rather than 1:2)

Removed on hold label following decision to go with GEM-X chip.

It is a straight stamp (although the row on the chip is transposed to a column on the plate)
That sounds like we need a labware creator that consolidates to top left rather than a stamp. Check if we have one that just does that.
Q. what if we have gaps on the chip plate row, can we consolidate?

LRC GEM-X 5p Chip will look like a single row on the presenter. Do we need to transpose it back to a column on LRC GEM-X 5p GEMs? Is it a convention?
LRC PBMC Pools is compressed to top-left (side effect of creating pools). When the column is transposed to LRC GEM-X 5p Chip, it does not leave gaps. Transferring that to GEM-X 5p GEMs should also have no gaps.
LRC PBMC Pools Input may have gaps. We might need to clarify that.

Labware creator app/models/labware_creators/partial_stamped_plate_without_dilution.rb is almost what we need I think. This labware creator does the compression. It also uses well filter to take a partial subset of wells from the parent, which we don't need in this story.
Assuming compression is ok, I suggest refactoring this.
Currently:
partial_stamped_plate_without_dilution extends stamped_plate
Proposed:
partial_stamped_plate_without_dilution extends stamped_plate_compressed (which we use in this story) which extends stamped_plate
(and maybe rename partial_stamped_plate_without_dilution to stamped_plate_compressed_partial)

@KatyTaylor Do we know which type of robot for this bed verification? Hamilton, Bravo etc?

authors: KatyTaylor andrewsparkes yoldas

repo: sanger/limber


text:
DPL-289 - ONT - Add a workflow to a library type

User story
Add a workflow to a library type
Who are the primary contacts for this story
Steve / James
Acceptance criteria
To be considered successful the solution must allow:

[ ] add a list of acceptance criteria here
[ ] ...

References
This story has a relationship with sanger/traction-ui#711
Additional context
Add any other context or screenshots about the feature request here.

Closed as not currently relevant. Workflows may be needed as another piece of work but would be for all pipelines.

repo: sanger/traction-service


text:
Update akka-sse to 3.0.0

Updates de.heikoseeberger:akka-sse from 2.0.0 to 3.0.0.
GitHub Release Notes - Version Diff
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

Adjust future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "de.heikoseeberger", artifactId = "akka-sse" } ]

Or, add this to slow down future updates of this dependency:
dependencyOverrides = [{
  pullRequests = { frequency = "@monthly" },
  dependency = { groupId = "de.heikoseeberger", artifactId = "akka-sse" }
}]

labels: library-update, early-semver-major, semver-spec-major, commit-count:1

Superseded by https://github.com/sangria-graphql/sangria-subscriptions-example/pull/23


text:
get full count data for all gambiae/coluzzii samples

Full dataset (~13000 genes), not reduced due to finding orthologs (8599 genes) in funestus

Do two analyses one gamb/colu/arab and another + funestus

user can select which set they want to search

repo: sanjaynagi/rna-seq-meta