Editing configuration values inside the code is a high risk for error since there is a high chance that not only the values that you are changing you will change, you might even delete a letter or edit a line. In order to avoid this risk, you want your code to be able to accept configuration values at run time. This is extremely useful when developing codes on different environments like development, testing and production.
With AWS Lambda you can reuse your code on different environments using the Environment Variables.
When opening a program in Windows, sometimes it would open itself in a position outside of the screen. Right-clicking the program on the taskbar does not work. Trying to move it to a new desktop is also futile. Using window key+arrow keys is also not making it appear. What to do then?
Below is a way to make the off-screen window appear again.
Click the off-screen program icon on the Windows Taskbar to make it the active window.
When right clicking on the File or Folder in Windows Explorer, the context menu will not show “Open with Atom” as an option. Because of this a user would need to open Atom Text Editor then Add Project Folder to see the Folder Tree on the side bar. Quite a lot of steps really.
Having a “Open with Atom” would be a time saving feature.
The Context Menu is the menu that you can see every time you right-click a file or folder in Windows Explorer or Windows Desktop.
Is there a way to add “Open with Atom” on the context menu when you right click on a file or folder?
Now when you want to use an SD Card back to like using it on your Android Phone or camera, you just cannot use it by simply inserting it on the SD Card slot and turning on your gadget. You have to properly format the SD Card.
Note: If this method does not work for you, I will be writing another method for Windows, Mac and Linux systems in the future.
If you format separately the two drives (E: and F:), you will end up with two drives instead of one that has the full capacity of the SD Card.
I wanted to know the Schmitt Trigger Voltage Logic Levels for the Arduino Uno since I want to know on what voltage would the digital input pin detect a logic high or a logic low.
I know that the Arduino Uno uses the ATmega328 with a 5V as its voltage supply. I checked the ATmega328 specification sheet and since it was too long to read (TL;DR), I would rather check using a Signal Generator and an Oscilloscope.
I have always used Synergy when using multiple computers since I do not want to use a lot of hardware (mouse and keyboard) to control all my unit. When I first received a Raspberry Pi the first thing I did was make Synergy work.
Here is the configuration that I use when working with Raspberry Pi.
Client – Raspberry Pi (to be controlled)
Server – Laptop where the mouse and keyboard will be used (Windows/Mac)
1. Installing Synergy on Raspbian
Open the terminal and run the code below.
sudo apt-get install synergy
This will install Synergy on the Raspberry Pi along with its dependencies.
If you looked inside an Arduino Library you would see filename extensions such as .h and .cpp, which makes us conclude that the Arduino IDE uses C++ for its codes. If you look inside those files most of the Arduino Libraries have C++ classes inside of them. The question now is: Can you use C++ Classes in Arduino IDE without Creating a Library?
The answer to that is YES!
It is a bit tricky though as there are rules you need to follow. I shall dive into that later.
Below is a short Arduino Code with a C++ Class without using a Library.
// Checks whether it is time to turn on or off the LED.
// LED is currently turned On. Turn Off LED.
// LED is currently turned Off. Turn On LED.
* BLINKER CLASS VARIABLES DECLARATION
Okay, I admit that was not very short. At least you can see that I have used a C++ Class without creating a library. You can compile it in your Arduino IDE if you still do not believe me. You can see the Circuit Diagram somewhere below, there is also a Fritzing Diagram if you want to seriously test it.
After much research I saw a LSM9DS0 Breakout board in Lazada, much more expensive (₱ 1,446/pc) but has a higher accuracy than the LSM9DS1. Since I already bought the LSM9DS1 Breakout Board I just have to live with my decision.
I have always used the Arduino IDE map function but have not been able to use it for float values. With these I have made the MapFloat Library so that I could extend the map function to floating point numbers.
A very useful feature when I want to have decimal places on my map function.