robml

u/robml


r/privacy•

Posting to see if anyone has experienced something similar. I have two identical phones I was playing around with running Android 11. One installed and ran Shelter flawlessly, except for the fact I cannot view files inside the work profile (e.g. opening WhatsApp files).

The second, installs Shelter, but won't clone non-system apps. For example, it cloned Chrome and even a skinned calculator, but not any other app that isn't a system app (e.g. Netflix, an app store, etc). All permissions are granted and battery optimisation turned off to allow the app to always run. Even attempting to download the app inside the work profile and installing it brings the same result: the progress bar goes to

32

r/privacy•

So I previously unbloated an Android phone with Universal Android Debloated Next Gen successfully which allowed me to debloat both the admin and other user profiles (after setting them up first) simultaneously.

I am now attempting to do the same with a Redmi but for some reason when connecting to a computer it will charge but won't enter into File Transfer mode or be detected by the computer at all (the computer is running Linux).

However Shizuku and Canta worked, but only for the admin profile. On user profiles you cannot enable Developer options (much less USB/Wireless debugging) for good reason, meaning these changes would have to happen via admin but that's not available through Cant

23

r/learnmath•

So I wanted to brush up on my maths and really be able to engage with the mathematical background that is seen in statistical models. However, I do feel that my background was weaker without much practice.

As such, I wanted to find a curriculum that covered a fair bit without spending too much time in the weeds. This may not be everyone's use case, and is why I decided not to go down the Art of Problem Solving path as practical applications are what I need my math for.

I also didn't have $50/month to shell out for MathAcademy. So I opted for largely free resources or ones that I could get for cheap.

Here is my attempt:

  1. Just The Maths by AJ Hobson A good cover from elementary math thr
10

r/privacy•

So I am attempting to debloat an Android device as well as configure its permissions and settings to reduce the attack surface of the device.

The threat model isn't anything serious, rather it's reducing the amount of sensitive data that can be leaked in a breach or via data brokers to a non-state malicious actor (think a contractor hired to break into your phone).

Chances of something like that may be small but if it's not a huge ordeal to configure devices and use FOSS anyways I thought why not. That being said, I am stumped on few things.

Removing permission is by far the easiest step. However then you can manage both "Special Access" permissions like "Draw over other apps" or "Write s

68

r/LangChain•

I tried running the Langgraph homepage example but instead of using ChatAnthropic I just substituted ChatOpenAI.

The issue is when trying to bind (literally) any tool to the LLM using the create_react_agent function, I constantly get a NotImplementedError with no additional details. Debugging I found this was tied to the bind_tools function being called but not much else that could help me understand how to make it work.

I updated langchain/lamggraph's packages, but the problem persists. Any suggestions?

11

r/armenia•

Tax Reporting

Question / Հարց

For those who are either operating an LLC or an Individual Entrepreneur license in Armenia, do you file your taxes with https://file-online.tax-service.am?

I am curious if that's all there is to the filing assuming it's a small business that qualifies for the microbusiness regime (even after the Jan 2025 reforms).

Also, from my understanding you can run an LLC and opt to be paid as an employee or through dividends, whereas for individual entrepreneur you pay yourself directly using turnover tax. As far as I was aware reports are compiled quarterly, what information do I need to keep track of?

20


r/askmath•

Not sure how to flair Social Choice/Voting Theory, but a bit of background, in a voting system:

  • the majority criterion holds that if a candidate has 50+% of the first place votes he should be the winner

  • assuming more than 2 candidates, a Sequential Pairwise Voting system assigns an order for candidates to go head to head where the winner of each round progresses to the next one (e.g. assuming you have candidates A, B, C, then you can put the order of A v B the winner of which goes against C)

  • instead of holding multiple elections we can create voting preference schedules: these are tables that show the number of votes for voter preferences:

e.g. 4 votes for A > B > C 2 votes for B

15


r/learnprogramming•

Hey all, for those not familiar there is a problem known as the Happy Numbers or Lucky Tickets problem, where for a given set of numbers that are 2n long, we want to find how many numbers have the sum of their first n digits equal to the last n (meaning the sum of the first half is equal to the second).

The brute force is with a time complexity of 10^n goes through all tickets and just compares. However there is a more elegant Dynamic Programming solution that I haven't managed to crack, the premise of which is that define a function F(D,S) where D is the number of digits in one half, and S is the sum that can be built with those.

My code is as follows so far, defining 2 functions

20

r/askmath•

Interview problem I came across few years back, found it tucked in a note somewhere so posting it here to see how others would solve it (I never did verify the correctness of my method):

Alice and Bob are playing a guessing game. The game is played in 10 rounds. At each round, Alice draws a number from a truncated normal distribution with mu=30 and sigma=10 (values being capped between [0,60]) and Bob tried to guess the number Alice draws.

  • If Bob's guess is right he receives $1000
  • If Bob's guess us lesser than Alice's number, Bob loses 2 dollars
  • If Bob's guess is higher than Alice's number, Bob loses 1 dollar

In 10 rounds, what is the Maximum Expected money Bon can get?

34

r/askmath•

Came across this problem while self studying (I work so I brush up in my free time), but I have been stuck on this one without a solution I could find and would appreciate any guidance.

In a town N, every person is either a truth-teller, who always tells the truth, or a liar, who always lies. Every person in town N took part in a survey. "Is winter your favorite season?" was answered "yes" by 40% of respondents. Similar question about spring had 30% of affirmative answers, about summer - 50%, and about autumn - 0%.

What percent of town population actually has winter as a favorite season?

I started by trying to work backwards to determine the proportion of truth tellers p but I got it

27

r/askmath•

You've probably seen this problem before (the 1D case): a drunk man is standing on the edge of a cliff, he has a p probability of walking left (off the edge) or taking a step right away from the edge by probability (1-p). What is his chance of escape?

When I first saw this question I immediately wanted to prove the probability of survival, and my go to was a recursive form. Unfortunately, I couldn't derive one without an infinite series that wasn't clear to me.

So I searched up proofs. And every single one starts with calculating the absorption rate (the probability of walking off the edge) and then using its complement for survival.

Although I get why that's acceptable, my curiosit

811

r/askmath•

Recently came across a very basic problem but tried a few approaches (all valid except I confused myself with the Sum of Expectations bit).

The question is: you have a stock which on any given day can have either a +/-10% return. What is the EV over 100 days.

This can be done binomially, recursively, recognising it's a martingale, etc. The Binomial approach is pretty straight forward. But also knowing that an expectation can be the sum of its (Bernoulli) components I thought I would try it out, but kept on getting an EV of 100 (meaning a 100x return) where the correct answer (from Binomial approach) is 1. I then thought long and hard and figured it's the product.

But it made me wonder,

113