This is a post I meant to write almost 13 years back, on how I built a stock market game using Ruby on Rails for our B-school flagship event Quadriga (I did release the game source code on Rubyforge, but the site is no longer operational). Like they say, better late than never :). Below is a short screen capture of the game in action from the beta run I had organized, showcasing the different features to give you an idea of what it entailed:
The game itself was a very simplified version of a stock market designed to be played as individuals or as a team with the following features:
- Simple buy and sell transactions without any short selling, futures or options .
- The trading would be spread across a period of 12 sessions with the prices changing before the start of each. Each user would get a fixed set of shares for each of the stocks at the beginning of the game so that selling activity can be initiated from period 1.
- There was an element of randomization in the stock price movement from period to period partially influenced by a set of pre-defined events.
- A user login feature with public leaderboard to give everyone a view of how they are performing against the competitors.
- A transaction & stock price history section to view the changes over time.
I have fond memories of this game as it game me an opportunity to try out Ruby on Rails in a real world scenario (this video from 2005 was the inspiration). I had a lot of fun coding the game and consulting classmates & seniors on how the stock market should be simulated. Even more fun was the beta testing round we did over the hostel LAN (the video above is from the test run as you can in the message on the login screen), with most of my classmates participating. We have come a long way on the technological front, and one of the things I do find missing in the game is an element of visualization in the form of graphs. Mobile support was of course not relevant back in 2008, but today it would be a no brainer.
As for the actual event, we brought in an element of security/standardization where we had the competing teams using laptops borrowed from my classmates. To ensure that their personal files were not affected, we setup Linux virtual machines on top of the Windows environment, and the teams were using browsers to access the game running my laptop through a Wi-Fi network we had setup on a router borrowed from another of my classmates (it was 2008 after all).
This nostalgic post would not have been possible had I not backed up the files to an external hard disk and to OneDrive eventually. So, here’s a bit more of throwback with the event posters & other collaterals:
Watched the movie a few weeks back with my family and what I took offense with is with the opening scene where not only is Sooryavanshi’s father using a colour monitor in 1993 in India, but it seems to be running Windows 9x (likely Windows XP with the silver theme going by the 3D taskbar look and green start button).
As for the rest of the movie, it is typical Rohit Shetty affair, so expectations were set accordingly.
I had never used Android as my exclusive daily driver, and my last proper Android phone usage on the Mi 4 was in parallel with my iPhone 5s around 6-7 years ago. A lot has changed in this time, and a lot has also remained the same especially when it comes to the customizations possible.
Here’s a quick rundown of the key new features I’ve recently (re)discovered on this side of the fence.
Ad blocking with Blokada
Ad blocking apps are of course nothing new on the iOS side, but are largely limited to browsers & webviews at best. This is where Blokada for Android comes in. It sets up a local VPN on the device and does local DNS filtering a la Pi-hole to block ads across apps. There is going to be a slight performance & battery life penalty, but you get ad blocking on the go. You can sideload the full featured version, or just get the Slim version from the Play store. It’s also available for Android TV, in case you do not want to use Pi-hole.
You can get similar functionality on the iPhone side of things, but need to use cloud services to get similar features which add on subscription costs & connection latency.
Custom launchers, dialers & SMS apps have been around from the very beginning on the Android side and have also been one of the biggest attractions of the platform. That said, the way we use SMS has changed a lot and it has become more of a platform to get transaction notifications, esp. for OTPs. This of course means that you have to be really careful in which custom apps you choose as a rogue app could easily siphon off your identity or bank balance.
That said, the SMS Organizer app from Microsoft Garage is a really smart app that makes life much easier and feels like a breath of fresh air after having used the iPhone Messages app for the last several years.
Transaction messages don’t just get a separate tab, but the notifications are also designed to highlight the key portion. Promotional & personal messages get their own tab as well. Then there’s the tab for reminders, finance & offers – each of which intelligently parse the messages and put the key information in a usable or actionable form. So, you can glance your bank, credit card, EPF, PPF & other such accounts including a transaction list (not completely accurate at times due to duplicate messages), get a reminder of your upcoming bills & travel plans and also surface the coupon codes that get sent in umpteen promo messages.
Then there’s the simple but great QoL improvement due to the ability to mark all messages as read and delete old OTP messages after a certain period. It also backs up the messages to Google Drive in case you want to restore later.
I’ve also been using the Microsoft Launcher which neatly integrates with Outlook and makes it easier to glance upcoming work meetings.
Yet another point around a Microsoft feature for Google’s OS. When I had switched to iPhones in 2014, it was from a Lumia 720 and Microsoft was still making Windows Phones at that time. Now, Microsoft seems to have embraced mobile devices & the cloud and their apps have features to further this vision. The Microsoft Phone Companion app on Windows makes it easy to connect to any Android phone, and in my case, the Samsung Galaxy S20FE has the required apps pre-installed.
While it is not quite the kind of integration between macOS & iOS devices, there are many ways this is more fully featured as you can not just control basic settings like volume but also access your phone’s notifications, messages, photos & apps right from a Windows machine. This makes it quite easy to stay tuned to a single device, unless you are a Mac user, or are using a work laptop where this feature is restricted.
Working on large screens
This is a perk of Samsung devices with DeX support where you can connect to a larger screen like a monitor or TV (USB to HDMI dongle required) or to a PC (wirelessly or through a USB cable), and then get a desktop like experience.
I got a USB-C to HDMI adapter which also has a USB A port & USB C pass through charging, which allows me to connect a key + mouse combo along with the monitor to access the DeX mode. This mainly comes in handy when you need a larger screen to edit audio/video/images taken on the phone, or just want a larger screen to view content.
Also a quick mention of the split screen & hover apps feature on Samsung devices that has been supported since the earliest Galaxy Note devices, and has been available on iPads for a while but not on iPhones.
iOS devices have made great strides on this front with the Shortcuts app which started off as Workflow before being acquired by Apple. This largely pales when one compares to Android veterans like Tasker & Llama that have been around since the early days. Services like IFTTT & Zapier can also do more on Android than iOS. Then, there are the Shortcuts contemporaries like Google Assistant & Bixby routines which provide an easier interface.
Most of my automations deal with silencing & unsilencing the phone based on different conditions like location & time of the day. This is where the iPhone’s hardware mute switch gets in the way as automations can’t alter its state.
A couple of these little sachets in hot water makes for a soothing drink for the throat. Been using them even more regularly in the last couple of years and do feel the difference.
It’s quite popular in South India and it’s been really available on Amazon for the last few years. Incidentally it’s made in Sri Lanka.
I’ve been using Pi-hole running on a Raspberry Pi 3B+ for the past 2 1/2 years, and it has really spoilt me to the extent that I have forgotten what ads on web pages and mobile apps look like (the limited travel in the last couple of years has also helped). It’s pretty effective in getting rid of the pop-up mobile ads and the in page banner ads on all devices connected to the wifi.
The setup process is quite simple if you have your own router or at least change the DNS server on the home router:
- First off, get hold of a Raspberry Pi (even the model Zero is powerful enough for the Pi-hole), and the necessary peripherals like a case, SD card, charger & LAN cable. There are many readymade kits with the OS preinstalled sold online including Amazon, which saves a good deal of time.
- Initial setup is easier with a monitor & keyboard + mouse attached to the Pi. Once this is done you can connect it to your router using a LAN cable and access it through a Telnet client/mobile app like Putty on any of your devices in the home network.
- Next, you need to install Pi-hole on the Pi (you can do it during the setup itself), and configure the router to use the Pi as your DNS server. If you are stuck without admin access to your router, then you may need to configure each device to use the Pi separately.
- You can also install mobile apps to manage the Raspberry & Pi-hole quite easily through your phone. There are multiple apps available for both Android & iOS.
Once everything is setup, you should have an ad free experience on your devices (not all ads can be blocked of course). I’ve found about 10-15% of the queries on my home network getting blocked, and this includes devices like Android & iPhones, iPads, Android TV, Amazon Echo, Homepods & Windows laptops of course.
For the times when you get nostalgic about “the good old days”, just take a look at this video.
It takes a full 3 minutes and 27 seconds to download an executable 120kb file for a simple software update. The whole video will make you grateful for all the technological advances over the last 20 years—especially for the comparatively vast amounts of bandwidth we enjoy today.
Source: https://bit.ly/3nt7HjS (via Pocket & IFTTT)
Source: https://bit.ly/3frWf3A (via Pocket)
If you go out seeking to learn from their proponents why blockchains and the systems built atop them are apparently the future of our web, you’ll begin to see some common themes. Two of the ones I see most frequently are: These fall apart under further scrutiny.
It’s been over 16 years since I started this blog, but I have not posted anything in the last couple of years. So, taking another shot at reactivating it by restarting my linkblog posts through Pocket & IFTTT, and a bit of a tweak to the theme as well.
As for my gadget journey, quite a lot has happened in the last couple of years, starting with iPhone 11 Pro that I got to replace my iPhone 7 Plus. I also added the Homepod & Homepod mini towards the end of 2020 along with the Apple Watch 5, Airpods Pro & iPad mini the same year.
I was getting more & more entrenched into the Apple ecosystem till about a couple of months ago when the iPhone 11 Pro died (no damage – just refused to wake up). I ended up getting a Samsung Galaxy S20 FE 5G along with the Galaxy Watch 4 for the same cost as a replacement for the 11 Pro. The rock solid reliability of Apple hardware seems to be faltering for me, with the Airpods Pro also developing an issue on the left ear piece. I’ve also had different issues with iOS over the years ranging from failed updates requiring device resets to crashing home screens, so the OS side of things is not overtly different from Android in terms of stability.
That said, it has been quite refreshing to get into the modern Android ecosystem, with my last proper usage being Android 6 on the Mi 4. Quite a few things seem smarter on the Android side thanks to the openness of the platform, despite the flexibility Apple has introduced in the last few years with Shortcuts & the likes. Microsoft has also done quite a bit to enable integration with Windows. The link to Windows feature is quite handy to get notifications on my laptop in addition to being able run Android apps from the phone on the laptop as well. Then there’s the DeX mode on Samsung phones that comes in handy when editing videos or creating content using a monitor + keyboard + mouse combo, and of course the split screen & floating apps on the phone that have been around since the early Galaxy Note days.
The camera on the new phone is about on par with the 11 Pro with the telephoto having a longer focal length which I prefer, but the ultrawide is not as wide. The camera app performance is not as smooth, especially on the shot to shot performance when using the on screen shutter. I did try a few Google Camera ports, and their shot to shot performance is better but image quality is on the iffy side.
Either way, I’m in the Android ecosystem as my daily driver and the performance has been perfectly fine. Plus, the flexibility in using smarter apps for SMS & the likes is a more than worthwhile tradeoff for the camera performance.
We have to talk about WeWork again!
So I guess they’re postponing the IPO after all, now that we’ve spun the roulette wheel and landed on “too toxic to handle” rather than “trillion dollar market opportunity for community enlightenment”. I guess we’ll have to wait and see what happens to WeWork. But in the meantime there’s something fascinating going on: how the rest of the tech community is spinning its wheels overtime in order to make sure that WeWork’s failure to IPO does not inflict any collateral damage on the rest of the ecosystem. It’s a great excuse to dive into one of my favourite topics: the norms and rituals and beliefs that make up the Silicon Valley Kayfabe, and what happens when we face a credible threat that our belief system might fall apart.
First, let’s go on a little journey. Longtime Snippets readers may remember one of my…
View original post 2,123 more words