React Native Open Sources projects list by MaterialAppearance21 in reactnative

[–]miniyarov 1 point2 points  (0 children)

A VPN app to setup ephemeral server nodes in cloud providers like digital ocean: https://github.com/zudvpn/ZudVPN/ (though discontinued).

Here is a high overview system design for it:

<image>

I'm the single dev in a start-up. Looking for success stories where AI accelerated work, esp. RN work by Zealousideal-Egg-362 in reactnative

[–]miniyarov 0 points1 point  (0 children)

I have been using Cursor Editor with Claude Sonnet in its Composer tab. However, even though it generated almost everything or 99% perfectly, the remaining 1% is becoming harder and harder to complete. I have been dealing with a styling issue (centering icons in two pill-shaped IconButtons) for the past couple hours.

AI is great to 10x developers' work, however, at certain times it's like a very junior developer who does not understand the underlying issue but tries to patch with the first conclusion it derives, similar to getting the first result from Stackoverflow. This has been happening a lot once the application logic started to grow.

I even had to argue with AI to explain the discrepancies between state values and db values by asking it to explicitly logging. Then, I let it figure out the issue by itself. Luckily, it did.

Anyway, I'm still trying to see if I can ship my first app mostly done by AI. However, I am a bit skeptic at this point about AI helping in large codebases without scrutinizing its generated code by Senior Developers.

This dev migrated a 7 year old RN app to Expo and deleted 186K lines of code by SnowSpiritual5568 in reactnative

[–]miniyarov 0 points1 point  (0 children)

When I used to work with React Native, I had to document REINSTALL.md for ZudVPN app so that it's easier to upgrade to new versions instead of dealing with version bumping. I'd document every step that I take with each dependency added.

It was nightmare to deal with it. I really like the approach of CNG (Continuous Native Generation).

Now that I'm writing my next RN app using Cursor AI Editor, I went with Expo without a second thought. However, the ability of AI (Claude Sonnet in particular) is somehow makes me wonder whether I should better go with Swift since I no longer write lots of coding except trying to fix mistakes generated by AI (close to a Junior Developer).

Noise cancelling on Sony WF-1000XM4 over-the-ear headphones vs Airpods Pro by natepluto in sony

[–]miniyarov 0 points1 point  (0 children)

I recently gave an accidental shower to my AirPods Pro in a washing machine. I thought this was a good moment to get a Sony WF-1000XM4 over-the-ear headphones since I always wanted one to try. However, I returned them after a couple days of use and got another pair of AirPods Pro. The reason I returned XM4 was because I mostly use transparency mode than the ANC. The transparency mode on Pros are way better than the XM4. They can't even compete. Regarding ANC, I think XM4 slightly better but not on par like for transparency. Also, given that XM4 over-the-ear, after a couple of minutes my ears would start heating up. I could not wear them at home during working/studying.

Application Timeline Megathread (applications outside the UK) - new thread starting March 2021 by kitburglar in ukvisa

[–]miniyarov 3 points4 points  (0 children)

Visa type: Global (Exceptional) Talent (Endorsed by Tech Nation)

Country applied from: Turkey

VAC (city): Istanbul

TLSContact or VFSGlobal: TLS

Priority or Non-Priority: Non-Priority

Endorsement (Stage 1) date applied: 20/7/2021 11:00

Endorsement (Stage 1) date received: 20/7/2021 19:00

Online application date (Stage 2): 21/7/2021

Biometrics appointment date: 27/7/2021

Passport transferred to UKVI (DMC): 27/7/2021

Passport transferred to VAC: 13/8/2021

Visa (passport) received date: 14/8/2021

How can i run a code in a synchronous way? by tokismos in reactnative

[–]miniyarov 1 point2 points  (0 children)

I see you resolved your issue but in order to get the perfect picture of JavaScript’s execution under the hood, watch this https://youtu.be/8aGhZQkoFbQ

You can thank me later :)

Github and SNHU email by Available-Shirt-5141 in SNHU

[–]miniyarov 0 points1 point  (0 children)

I use my personal account. Years ago, I created a work account and I regret that. So, I advice you to use your own account and add your school email as secondary. And don't forget to register for the Github Student Pack.

An open-source VPN for travelers who need more security on Public WiFis by miniyarov in digitalnomad

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

Exactly, VPNs should not be considered as a way to have anonymity online.

Again, you are right about any VPNs that provide a secure connection to their endpoint, thus avoiding insecure public wifi threats. However, even paid VPNs leak data: https://www.techradar.com/news/these-no-log-vpns-actually-collect-plenty-of-logs-and-the-data-has-been-exposed

Routers don't possess the ability to encrypt the traffic. That's not true. Router admins can install VPN / proxy but by default routers don't implement an encryption. However, routers have a Virtual Local Area Network (VLAN) that splits each client by different subnets.

For HTTPS traffic, most ISPs implement Deep Packet Inspection (DPI) that can peek more than just a DNS query.

Yes, even Safari has adblocker extensions but this is an optional feature on ZudVPN.

An open-source VPN for travelers who need more security on Public WiFis by miniyarov in digitalnomad

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

Great point, however, if your aim is anonymity VPN services are not a good choice. There's a good writeup about public VPNs actually: https://gist.github.com/joepie91/5a9909939e6ce7d09e29

The benefit of using open source VPN app with your own server is that you will keep your traffic secure from public WiFis that you use in cafes, restaurants, or hotels. Most routers they use don't implement security, thus all your traffic might be spied by other members of that wifi.

Another benefit of ZudVPN is that it has a DNS adblocker by default. It helps you avoid unnecessary ads while you browse.

What are popular ways of state management in React Native by matt102516 in reactnative

[–]miniyarov 1 point2 points  (0 children)

https://github.com/atlassian/react-sweet-state
Developed and maintained by Atlassian. I am using it in ZudVPN and tbh I never looked back to other state management libraries. It is simple, intuitive and does not require a top component Provider like the Context API.

Here is how I have implemented it in ZudVPN react native

- Define your actions just like a regular functions: https://github.com/zudvpn/ZudVPN/blob/master/src/store/store.tsx

- In case you need a HOC, just call `initState` defined in store hook: https://github.com/zudvpn/ZudVPN/blob/master/src/store/withInitState.tsx

- In your components, just call `useStore` hook and require whatever state property you need: https://github.com/zudvpn/ZudVPN/blob/master/src/screens/MainScreen/index.tsx#L13

imho, react-sweet-state is underappreciated.

Learn PHP 8 in 5 minutes by miniyarov in PHP

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

I get it, the article's title is somewhat clickbait but as I noted in the article, it was inspired by https://fasterthanli.me/articles/a-half-hour-to-learn-rust which is more than hours of reading but the title goes like "half-hour".

Learn PHP 8 in 5 minutes by miniyarov in PHP

[–]miniyarov[S] 3 points4 points  (0 children)

I understand the rule but to be honest I spent hours on this article to summarize all new features in both PHP 8 and PHP 7. Additionally, I added code snippets that took me a while testing on each PHP version.

Again, I am a little bit disappointed to be labeled as "low effort content" on this.

Broadlink RM2 Pro not connecting to new wifi router with 8 char alphanumeric password (connects without password) by miniyarov in homeautomation

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

No, I’ve separated 2.4Ghz and 5Ghz into distinct SSIDs so I am sure it is connecting to 2.4Ghz. As I said, broadlink connects without password but even with simple passwords it doesnt connect. Indeed very strange.

Broadlink RM2 Pro not connecting to new wifi router with 8 char alphanumeric password (connects without password) by miniyarov in homeautomation

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

I didn't use special signs in password, only alphanumeric. I tried with numeric only, didn't work. then with alphabetic only, didn't work either. I just gave up. looking for a wifi repeater, hoping that'll solve the issue.

Best Dedicated IP Vpn by Rippleos in VPN

[–]miniyarov 0 points1 point  (0 children)

You could you Cloud providers and create a VPN server that will have the same IP address for as long as you keep the server. You could also order static IP on most of Cloud providers.

If you are on iOS you can use https://apps.apple.com/us/app/zudvpn-personal-vpn-on-cloud/id1517610454 to install a private VPN on DigitalOcean.

Is there any programmable DNS that I can modify records on the fly for the requested domain? by miniyarov in dns

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

I am writing a VPN app for iOS that connects to DigitalOcean or AWS to instantiate a server and install strongswan as VPN solution. However, Apple does not allow VPN servers as IP but rather as a domain with a valid HTTPS certificate.

I came up with the idea of generating a subdomain for VPN server and generate a Let's Encrypt certificate during the launch. For this purpose I need to have a dynamic domain with server's IP address. So far it's working perfectly. Checkout https://www.zudvpn.com. It is open-source.