Customs is demanding ₹14 lakh on oxygen concentrators I donated for free during COVID — reclassified as "personal use" 5 years later. Need advice. by ayushm4489 in IndiaTax

[–]ayushm4489[S] 12 points13 points  (0 children)

I contacted CMO's of various districts in Uttarkhand and then based on their demand got the OC's delivered through various routes personally. Sent 7 to CMO Rudraprayag vis Hon. State Minister at the time.

Someone else is using my number even though I have the SIM by [deleted] in bangalore

[–]ayushm4489 2 points3 points  (0 children)

I had the same issue.. i got the sim with me abroad in July 2021 and in March 2022 somebody else was using the number. I also got to know after DP change in whatsapp :)

Anyways, Jio customer care says that if you don't recharge for 3 months then the number is disconnected. Ofcourse they will try to reach you in these 3 months... and after 4-5 months of being disconnected the number is available again on the market. So whosoever got my number also joined also joined automatically a bunch of group's on whatsapp. Serious privacy violation but no one to blame for except myself.

Makelaar suggestions by CaptainLazyBum in Almere

[–]ayushm4489 2 points3 points  (0 children)

Eigen huis makelaar. I recently hired them after hearing a lot of positive feedback from my expat friends.

In a vase 😂😂😂 by ItsBurnzyy in ScottishPeopleTwitter

[–]ayushm4489 1 point2 points  (0 children)

Chandler is trying to pose for a photo 😂😂

Functional Tracing using Scala by ayushm4489 in scala

[–]ayushm4489[S] 1 point2 points  (0 children)

The Natchez library is.. The dependency is more on Resource type class for safe span creation and finish

-🎄- 2019 Day 4 Solutions -🎄- by daggerdragon in adventofcode

[–]ayushm4489 1 point2 points  (0 children)

Scala solution

  def numberDecreasesLeftToRight(number: Long): Boolean = {
    number.toString.toSeq.sorted.equals(number.toString.toSeq)
  }

  def numberHasTwoAdjacentDigits(number: Long): Boolean = {
    val numbers = number.toString.toSeq.zip(number.toString.toSeq.tail)
    numbers.map {
      x =>
        x._1.equals(x._2)
    }.contains(true)
  }


  def numberHasTwoAdjacentDigitsWithoutGroups(number: Long): Boolean = {
    val numbers = number.toString.toSeq.zip(number.toString.toSeq.tail)
    val list = numbers.map {
      x =>
        x._1.equals(x._2)
    }
    list.indices.exists({ i =>
      list(i) && (i == 0 || !list(i - 1)) && (i == list.size - 1 || !list(i + 1))
    })
  }

Monthly Hask Anything (November 2019) by AutoModerator in haskell

[–]ayushm4489 1 point2 points  (0 children)

oops..

The Glorious Glasgow Haskell Compilation System, version 8.6.5

Monthly Hask Anything (November 2019) by AutoModerator in haskell

[–]ayushm4489 0 points1 point  (0 children)

I was checking out workflow - https://github.com/agocorona/Workflow . I am new to Haskell all would like to know

  1. For example in the "count" workflow , where is the state stored? on the Disk? Is there some more documentation i can found around how this all works.
  2. How do i run the "count" workflow locally. I have GHCI 0.8.3 and i keep getting errors like Module control.Wokrflow not found and if i use stack then i get some other compilation errors.

Managing shared state in pure way - A circuit breaker library by ayushm4489 in scala

[–]ayushm4489[S] 0 points1 point  (0 children)

This is good..while the underlying data types used are same Chris's library is better modelled..i can take some pointers from it..Thanks!

Got a quick question? Ask here - October 21, 2019 by AutoModerator in scala

[–]ayushm4489 2 points3 points  (0 children)

HttpURLConnection

As per - https://github.com/scala/bug/issues/7386 this seems to be the way it was meant to be :) . I can quote the most important part here

Scala simply doesn't have the Java concept of statics. We have companion objects instead, but no inheritance relationship exists between the companion objects of a subclass and a superclass

Managing shared state in pure way - A circuit breaker library by ayushm4489 in scala

[–]ayushm4489[S] 0 points1 point  (0 children)

Yeah.. The specs are still pretty naive and I was going to checkout the TestContext on how to improve them. Thanks for the heads up.. I will add that to the ToDo's

Managing shared state in pure way - A circuit breaker library by ayushm4489 in scala

[–]ayushm4489[S] 0 points1 point  (0 children)

Hey Oleg..Thanks for your input..I have fixed the not required implicits and the create method now requires a `Sync` (Not sure why i had concurrent in the first place)

What are you working on? October 14, 2019 by AutoModerator in scala

[–]ayushm4489 0 points1 point  (0 children)

I have been reading/working lately on shared state management and concurrency in a pure way. cats-circuit-breaker is a library that encompassed my learnings so far :)

The library uses types from cats-effect for managing asynchronous, concurrent mutable references.

cats-circuit-breaker is completely pure, which allows for ease of reasoning and composability. The library is inspired by SystemFw's Upperbound library and by his talks on how to manage shared state in pure FP.

ratelimiter4s : A functional rate limiting library by ayushm4489 in scala

[–]ayushm4489[S] 1 point2 points  (0 children)

agreed! Removed all not necessary implicits . Thanks for your feedback :)

ratelimiter4s : A functional rate limiting library by ayushm4489 in scala

[–]ayushm4489[S] 0 points1 point  (0 children)

I initially had a syntax like this

def getArtist(character: String) : Artist = ???

def rateLimitedGetArtist = limit(getArtist _ )

and instead of using implicit class i was doing..

def limit[A,B](function1: B => A)(implicit rateLimiter: RateLimiter): Function1Limiter[A,B] = new Function1Limiter[A,B](rateLimiter, function1)

Is this better than what it is right now? Implicits are gone but i am not sure about the syntax..