- Beyond compare
- Winscp
- MS office
- Teamviewer
- Paint.net
- Chrome
- Firefox
- Fiddler 4
- Vmware Workstation Pro
- Visual studio
- Docker Desktop
- Windows subsystem for Linux
- Obs studio
- Sql management studio
- Linqpad
- Klite kodec pack
- Inno setup
- Filezilla
- Faststone image viewer
- Win-acme
- Immich go
- Xmind.ai
- Real-debrid
- Windows Terminal
- Postman
- Wireguard - Proton VPN
- NVidia GEForce Now with Xbox game pass ultimate
- Wondershare PDF Element
- Winrar
- Openshot Video editor
- Cloudflared
- Arduino IDE
- Notepad++
- Process Explorer
- Putty
DevNitin
Tips | Tricks | C# | ASP.NET | JQuery | Javascript | SQL | Angular | Articles | Electronics
Sep 7, 2024
Softwares which I use for day to day activities
May 16, 2023
Mobile first css media queries
Mobile first css media queries to adjust UI controls for various resolutions:
@media (min-width:320px) { /* smartphones, portrait iPhone, portrait 480x320 phones (Android) */ } @media (min-width:480px) { /* smartphones, Android phones, landscape iPhone */ } @media (min-width:600px) { /* portrait tablets, portrait iPad, e-readers (Nook/Kindle), landscape 800x480 phones (Android) */ } @media (min-width:801px) { /* tablet, landscape iPad, lo-res laptops ands desktops */ } @media (min-width:1025px) { /* big landscape tablets, laptops, and desktops */ } @media (min-width:1281px) { /* hi-res laptops and desktops */ }
May 2, 2023
Installing .NET on Android
This runs .NET natively
not in a vm
not in a container
no need to have root access or jailbreaking your android
.NET runs natively on android in user space
Install Termux apk on android
pkg install proot pkg install proot-distro
proot-distro
allows to install linux which runs along with android os. This is not a vm so we get native performance.
proot-distro
commands:
proot-distro list - show the supported distributions and their status. proot-distro install - install a distribution. proot-distro login - start a root shell for the distribution. proot-distro remove - uninstall the distribution. proot-distro reset - reinstall the distribution.
Following linux flavours are supported:
- Alpine Linux (edge)
- Arch Linux / Arch Linux 32 / Arch Linux ARM
- Debian (stable)
- Fedora 35
- Manjaro AArch64
- OpenSUSE (Tumbleweed)
- Ubuntu (22.04)
- Void Linux
Following are the steps for Ubuntu
proot-distro install ubuntu proot-distro login ubuntu su apt install wget -y apt install ssh -y apt-get install -y net-tools
Manual installation of .NET: https://learn.microsoft.com/en-us/dotnet/core/install/linux-scripted-manual#scripted-install
wget https://dot.net/v1/dotnet-install.sh -O dotnet-install.sh
cd ~/.dotnet echo 'export DOTNET_ROOT=$HOME/.dotnet' >> ~/.bashrc echo 'export PATH=$PATH:$DOTNET_ROOT:$DOTNET_ROOT/tools' >> ~/.bashrc source ~/.bashrcNow the
dotnet CLI
can be used, more on this: https://learn.microsoft.com/en-us/dotnet/core/tools/dotnet
--REMOTE TERMUX--
https://gist.github.com/mjnaderi/b933fe940cd47b09d5cfc14875e77d67
https://glow.li/posts/run-an-ssh-server-on-your-android-with-termux/
Detailed video coming soon
Applications:
1. You can install cloudflared (Cloudflare zero trust) and then can host asp.net site on your android device
2. Run FTP server
3. Share the files without uploading anywhere
Mar 2, 2023
Amplifieing analog audio output from 3.5mm audio jack with PAM8403 amplifier
Aim
In this post we will develop an amplifier which amplifies 3.5mm analog audio output, You can use the circuit as a speaker for PC.
Introduction
Required Electronic Components:
1. PAM8403 Class D 3W amplifier
2. 3.3V 5.5V FT232RL FTDI USB to TTL Serial Adapter Module
3. 5V 3A USB power supply
4. USB Cable, A-Male to Mini-B Cord USB cable
5. 3W Speaker
6. Jumper Wires
7. AUX Cable
Feb 27, 2023
C#: Convert any time to time in any timezone
You can use this to convert any server time to india time or any other time zone
here's possible list of all zone IDs which can be used in this method: https://nodatime.org/TimeZones
First add reference to NodaTime nuget package which is built by the ultimate Jon Skeet
Pun intended/* 1. Jon Skeet can divide by zero. 2. When Jon Skeet's code fails to compile the compiler apologises. 3. If Jon-Skeet's program fails to compile they fix the compiler. 4. Jon Skeet coded his last project entirely in Microsoft Paint, just for the challenge. 5. Jon Skeet keeps a daily backup of the Internet on his USB pendrive. */
Jon Skeet handles all my exceptions
try { insert.code.here(); } catch(Exception ex) { JonSkeet(ex); }
here's the method
public DateTime ConvertToTimeZoneFromUtc(DateTime utcDateTime, string timezone) { var easternTimeZone = DateTimeZoneProviders.Tzdb[timezone]; return Instant.FromDateTimeUtc(utcDateTime) .InZone(easternTimeZone) .ToDateTimeUnspecified(); }
usage:
string zoneID = "Asia/Kolkata"; var date = ConvertToTimeZoneFromUtc(DateTime.Now.ToUniversalTime(), zoneID);
SkeetOverflow link: https://stackoverflow.com/questions/75580559/hot-to-change-the-default-datetime-date-of-app-hosted-on-cloud-server-side-to-m/75581290
Many times, we store dates in our database by passing DateTime as a parameter value or by using GETDATE() in SQL Server. In both the cases, the time of the current machine is passed as the value. It is OK in case of Desktop applications however, when we move to Web applications, the current computer is the server where the website/app is hosted. This means if you’re in India and the website is hosted in a server in the US, the time stored in the database will be US time and not your local time. The correct way is to store the time in the local timezone. In this post we will see how to convert a DateTime object into specific TimeZone in C#.
To do this, we will use the FindSystemTimeZoneById() of TimeZoneInfo class. This function takes Id as a parameter to return the equivalent time in timezone passed. In the example below, we are taking the current system time and converting it into “Central Standard Time”.
DateTime currentTime = TimeZoneInfo.ConvertTime(DateTime.Now, TimeZoneInfo.FindSystemTimeZoneById("Central Standard Time"));
Let me know via comments if you are aware of about other ways to perform this action.
Jan 28, 2023
Lifetime unlimited money through manual SWP in mutual funds
The ₹1 lac example:
- Invest a lump sum in multiple high performing equity mutual fund e.g. ₹1lac
- Wait for 1+ year - yea! Let it grow for sometime
- Withdraw ₹1k per month on a fixed date (to minimize loss: withdraw only if mutual fund returns are greater than or equal to 13%)
More realistic example
Suppose you have ₹1k society maintainance bill:Real-Time excel calculations
With initial investment of ₹1,00,000Here you can see I have withdrawed ₹1,64,759 in 10 years
and still ₹87,361 is remaining in the account
If you keep withdrawing infinitely still money remains in the account
Download Withdrawl plan
Notes:
- mutual funds are subject to market risks, market down huwa to samjho paisa gaya
- works well if you choose the right mutual fund and start SWP after one year.
- Most trading/mutual fund platforms do not allow auto SWP of mutual funds, here's BSE circular https://www.bseindia.com/markets/MarketInfo/DispNewNoticesCirculars.aspx?page=20220713-1. Hence manual SWP needs to be done.
- its just a theory, try at your own risk
https://github.com/nitinjs/unlimited-money
Jan 27, 2023
Jan 19, 2023
Subscribe to:
Posts (Atom)