Comment by Victor Ronin on Silence logger for just one controller in Rails 6
@max Yes. It's our application controller.
View ArticleComment by Victor Ronin on difference between boot receiver and broadcast...
@MoustafaEL-Saghier I don't have a full example, however you can take a look at this: riptutorial.com/android/example/15019/…
View ArticleComment by Victor Ronin on Is token based authentication for gRPC adds...
Thank you. Special thanks for mentioning HPACK. This resolves in my mind the issue of having it in each call.
View ArticleComment by Victor Ronin on Max Date on PalmOS
OMG. Somebody just upvoted my answer. It's 2021 :-OOOO
View ArticleComment by Victor Ronin on How can I share some value between kubernetes pods?
Perfect. This is exactly what I was looking for.
View ArticleComment by Victor Ronin on How to use authenticated user's identity in...
I know, quite a lot of time passed. However, I wonder whether you got a good solution for this. I pretty much just asked very similar question: stackoverflow.com/questions/70176032/…
View ArticleComment by Victor Ronin on OAuth 2.0 flow to authentication via access token
Interesting. However, my gut feeling that going unauthenticated makes it really vulnerable.
View ArticleComment by Victor Ronin on How to use a static mutable reference in a loop...
@Netwave Thank you. You are absolutelly right. Haven't thought about it. CAn you please post the answer, so I can accept it.
View ArticleComment by Victor Ronin on Tokio select macro conditions and arm evaluation
Thank you @Netwave. This is exactly what I was looking for. I went for a walk and had a similar idea and it was amazing to come back and see you have a complete solution.
View ArticleComment by Victor Ronin on Tokio select macro conditions and arm evaluation
@cdhowie I have never used the old version. However, I agree, that old behavior made way more sense.
View ArticleComment by Victor Ronin on How to serialize/deserialize hyper::Request and...
@ColonelThirtyTwo I meant serializing it into/from bytes.
View ArticleStoring a reference to array in swift
I want to pass an array to an object and store a reference to this array. I want to be able to modify this array within this object and make sure that it's modified everywhere else.Here is what I am...
View ArticleIs there a way to change default font for your application
As I understand all standard controls use system font by default.Also, API [UIFont systemFontOfSize: ] uses system font too.Is there a way to redefine it for the whole application, instead of setting a...
View ArticleHow to check whether device is enrolled in MDM
I am looking for an API which will allow me to check whether MDM profile is installed on a device.It won't be submitted to AppStore, so private API are fine with me. However, it should work on jailed...
View ArticleUsing Amazon KMS service on Heroku
Has anybody tried to use AWS KMS on Heroku?On one hand, Heroku runs on AWS, so presumably it should work.On other hand, I haven't seen any references that it was used in Heroku.My main goal is to be...
View ArticleGet the difference between two branches in Git
I did following (I simplified this comparing to a reality):created a branch Branch1, switched to itadded file File1 and modified existing file File2 and commited thisfigured out that I don't need...
View Articlestruct with parentheses vs double parentheses in Rust
What is the difference between?struct Test();struct Test(());I understand that a struct can have tuples (unnamed fields). However, I am not sure what does (()) mean in such a case? That it's a struct...
View ArticleIs token based authentication for gRPC adds metadata for each call?
I am reading through gRCP authentication and based on what I read, it looks like authentication info (token) is attached as metadata to each call (vs channel).Did I understand it correctly?The reason...
View ArticleIs there a place to store per channel user state for gRPC services in .NET
I am playing with .NET gRPC. I implemented a simple gRCP server.I have a channel that will stay for a long time and over this channel. The server will get a lot of calls over this channel.I want to...
View ArticleHow can I share some value between kubernetes pods?
I have several pods which belong to the same service. I need to share a value between all pods in this service.Per my understanding, the shared volume won't work well, because pods may end up being on...
View ArticleHow to get another pod name from it's IP?
I have a pod that exposes a port (Server). Other pods (Clients) can communicate with it.The server can find remote IP and port on a socket (when the client connects to it). I am looking for a way to...
View ArticleShould transparent HTTP proxy remove hop HTTP headers?
I read that HTTP proxy should be removing hop HTTP headers (https://www.freesoft.org/CIE/RFC/2068/143.htm)It makes sense since some of these headers are connection-related.The question is. Is this RFC...
View ArticleHow to map fields name in jsonb field to another name in object?
I use Postgres and I have DB with a table that looks like thatcolumn - footype - jsonbvalue - {"baz" : "test" }Please notice that "baz" is not capitalized (pretty much this json document will be in a...
View ArticleIs there a way to do Alamofire requests with retries
I have a lot of places in the code where Alamofire request/response are handled. Each of this requests may fail because of some intermittent problem (the most common is flaky network). I would like to...
View ArticleUsing existing load balancer for K8S service
I have a simple app that I need to deploy in K8S (running on AWS EKS) and expose it to the outside world.I know that I can add a service with the type LoadBalancer and viola K8S will create AWS ALB for...
View ArticleOAuth 2.0 flow to authentication via access token
I have a public client which gets JWT access token. I need it to get another one (not refresh, but for some other purpose) and I need it to do it without a user interaction.As a result, I am trying to...
View ArticleExposing HTTP2 service (over TLS) from Kubernetes on AWS
I have an HTTP2 service. It's deployed on EKS (AWS Kubernetes). And I am trying to expose it to the internet.If I am exposing it without TLS (with the code below) everything works fine. I can access...
View ArticleAre http_proxy, https_proxy and so on supported on application level (vs OS...
Do I understand correctly that all these variables are supported on the application level?http_proxyhttps_proxyftp_proxyall_proxyI mean it's not an OS-level (Linux) facility that detects the traffic on...
View ArticleHow to convert Vec to HashMap?
I have a vector of strings.I need to convert it to HashMap.Vector's 0 elements should become a key and 1 element should become a value. The same for 2, 3, and so on.The obvious solution, just to make a...
View ArticleLifetime of a reference passed to async callback
I have async function to which I am passing async callback. The callback takes a reference as a parameter.use core::future::Future;async fn foo(bar: &u32) {}async fn baz<F, Fut>(f: F)where F:...
View ArticleDestination and RelayState difference in SAML 2.0
I know that a lot of service providers use relay state as a way to keep track of what resource was accessed while SP initiated SSO, so SP can redirect to it after SAML assertion consumption.However, I...
View ArticleAnswer by Victor Ronin for How Postgres negotiate TLS usage?
Some additional info on top of @janes answer:https://www.postgresql.org/docs/current/protocol-flow.htmlTo initiate an SSL-encrypted connection, the frontend initially sendsan SSLRequest message rather...
View ArticleHow Postgres negotiate TLS usage?
I am puzzled a bit about Postgres option sslmode=prefer. It implies that it negotiates with the server to figure out whether the server supports TLS or not.I am curious how it's done. Does it try TLS...
View ArticleReturning nil in the init in Objective C code
In the case, if we return nil in the init method, what's happening with retain count and who is going to release this object?As I undertand as soon as we called alloc (which will happen before init),...
View ArticleRails 5.2 credentials + asset precompile
I have a continuous integration which takes rails app and package it as a docker image.As one of the steps of this packaging process, I want to do asset precompilation.I was doing this on Rails 5.1. I...
View Articlefind vs find_by vs where
I am new to rails. What I see that there are a lot of ways to find a record:find_by_<columnname>(<columnvalue>)find(:first, :conditions => { <columnname> => <columnvalue>...
View ArticleIs there a way to reload initializers automatically for rails app?
I play with RailsAdmin right now. RailsAdmin DSL configuration are stored in initializers. There is a way to keep them in model, but I believe it's bad idea (to store view related info in the...
View Article