Didn’t you ever notice that India’s peaceful leader, Gandhi, has been dropping nukes around? From the first game up to today he is dropping nukes.
This is not just our mind playing tricks on you, noticing things that are not there, nor a myth being accepted as a fact.
Continue reading Why is Gandhi a nuclear asshole in Civilization?
One small thing a lot of newcomers to C# and .Net in general are not aware of, is that Strings are immutable. What does that mean? That means a string you created cannot be altered. Strings can only be created and destroyed
Continue reading Small Tip: C# Strings are immutable
I am sure in many cases you have seen enumerations that can be combined using the bitwise OR operator.
It is being used by many libraries that you might have used. It is also useful when you want to set some flags on or off on a specific item in a non OO language or if you wish to pass a specific set of flags in a method.
Continue reading Combinable Enums
Now let’s discuss a few weird stuff it includes.
In previous posts we discussed about casting using the ‘as’ operator instead of using the ‘classic way’ of casting (more info here). But there are a few things we need be careful when using ‘as’ and ‘is’ operators.
Continue reading Pattern Matching and casting using ‘is’ and ‘as’
Let’s assume that you wish to call a method that has a return value and also accepts an out variable, but you do not wish to use the contents of the out variable that will be returned.
So far we were creating a dummy variable that will later not be used, or discarded.
With C# 7 you can now use Discards
Continue reading C# 7: What are discards and how to use them
TO: Tech Support
Last year I upgraded from Boyfriend 5.0 to Husband 1.0 and noticed that the new program began making unexpected changes to the accounting software; severely limiting access to wardrobe, flower and jewelry applications that operated flawlessly under Boyfriend 5.0. No mention of this phenomenon was included in the product brochure. In addition, Husband 1.0 un-installs many other valuable programs such as Dinner Dancing 7.5, Cruise Ship 2.3, and Opera Night 6.1. It also installs new, undesirable programs such as Poker Night 1.3, Saturday Football 5.0, Golf 2.4 and Clutter Everywhere 4.5. Conversation 8.0 no longer runs. When I click on it, the system crashes. Under no circumstances will it run Diaper Changing 14.1 or House Cleaning 2.6.
I’ve tried running Nagging 5.3 to fix Husband 1.0, but this all purpose utility is of limited effectiveness. Can you help, please!!!!
Continue reading Husband 1.0
What good Car computer does not have a GPS and maps? Definitely not one worth it’s money. So in our project we will add a gps receiver and program it so we can get a location from it.
There are quite a few ways to connect the Raspberry Pi with a GPS receiver:
- Using a bluetooth GPS and the bluetooth dongle we already setup
- Using a GPSHat from Adafruit (or something similar)
- Using a USB GPS and permanently occupy one of your USB ports.
Continue reading RPi Car Computer Part 6: GPS Setup
Our next stop will be to setup bluetooth for our Pi. We will need bluetooth for many bluetooth enabled services. We will discuss in future posts what we will do with bluetooth. For now assume we need it 🙂
If you are using RPi 2 you are going to need a bluetooth dongle. I used the following but in no way I am endorsing or selling it. Just pointing out what I used and how it might help, since I have heard many cases in which people bought bluetooth dongles that did not work with Raspberry Pi.
Continue reading RPi Car Computer Part 5: Bluetooth Setup
In this part of the tutorial we will focus on how to give your Raspberry Pi a static IP address in your network. We set up remote access to our Pi, now we will set up a static IP address so whenever we turn it on and it connects to our network it will always obtain the same IP address so we will always know what IP we want to connect to via remote desktop.
Continue reading RPi Car Computer Part 4: How to give your Raspberry Pi a Static IP Address