I recently noticed there is a website copying my blog content and I started looking into it. I realized how easy it is to copy other people’s blog/website contents by using wordpress plugins. It’s completely automatic! Although I was really annoyed by this, I am really interested how it works. Also knowing how a auto blogging software work better might increase the chances that I can stop them.
When echo %DATE, by default you get dd/mm/yyyy. There is no built in formatting parameter that you can use, so you cannot change the date format unless you rearrange the output characters around.
As explained briefly the types of memories in Arduino, RAM (or SRAM) memory is the type that get ignored most easily, because there isn’t anywhere you can find out the usage footprint (well i should say not easy to find out). It usually hardly run out so we tend to forget about it. But if you do run out of RAM memory, your sketch will not work properly on your arduino, sometimes it doesn’t even allow you to upload the code.
I spent a long time writing an Arduino program, but only realize the sketch is too big to upload to the Arduino. It’s frustrating because you have to spend more time looking at your program, wondering what could be possibly be removed or changed to save space. In this article I will explain how you could reduce the size of your Arduino sketch.
Byte, uint8_t and unsigned char, they are basically the same thing in Arduino. These data types often cause confusions to new programmers. So is there any difference in them?
Since I got my bike, I had always wanted to do something interesting bike related. Riding a bike at night is a bit dangerous, so I decided to build a DIY bike rear light to keep me safe.! Most bike lights on the market are some dummy red LED with just a switch, which might be running off some AA batteries. That is boring as hell and swapping out the battery once every few days seems to be a pain.
To read a voltage we usually need analogue input. Unfortunately, the ATtiny4313 doesn’t have any analog input, which could have made reading voltage so much simpler. I was almost giving up on this feature, until I realize there are analogue comparator on the ATTiny4313 and 2313, which I could use for simple voltage level checking. The comparator in the ATtiny2313 is used to compare a changing voltage with a fixed reference voltage. The comparator pins are 13 (AIN0) and 14 (AIN1).
Ambilight is basically the background light effect projected from some RGB LEDs mounted on the back of the TV or monitor screen, which automatically follows the color and brightness of the video content on the TV screen in real-time. This can create some very impressive visual effects and can also use for eye-easing purposes. The ambilight concept was developed and introduced by Phillips. There are ambilight TVs or ambilight systems commercially available but they tend to be very expensive.
When I strated out, I was really confused about bit shift and hexadecimal number and binary. This is a good example how confusing it could get sometimes. Occasionally you see this in the code, for exmaple in C++:
I have a two laptops and only one network port, although i can use wifi on both computers, I prefer to use cable whenever I can for faster internet speed. So when sharing internet through one laptop to the other i need to switch IP config settings, which is a pain (where I need to change IP address, subnet and default gateway in IPV4, local area connection adapter).
Just sharing some hacks I used for a logon script that I created for Internet explorer. Most of the hacks were using registry key, which is pretty simple as long as you know where the keys are.