I talked about it in a previous post, but now it’s done: the WP Login Door plugin is hosted in the official WordPress repository!
For information, this plugin prevents your login page from loading unless you provide an URL parameter (for example: http://mysupersite.com/wp-login.php?foo=bar). These two terms are known by you and only you, and they are mandatory to load the login page.
With this, login page brute forcers won’t be able to do anything anymore.
The first self-asked question when we receive an ESP8266 is generally…
“Damn, how the hell will I program this?”
We need 4 wires: +, -, Rx and Tx,so the first thing to get is a USB-serial converter. The most important point is that the voltage must be 3.3v both on Vcc AND Tx. The risk if you use 5V is simply to burn the ESP.
The ESP8266 01 has 0.1 inch spaced pins, but is unusable on a breadboard because of their positioning. So you can connect it to the adapter either with Dupont connectors, or you can make a custom PCB.
I began with simple wires, but I rapidly came to making my own PCB 🙂
On the left I can put a jumper to boot the ESP8266 in programming mode.
The thing with the ESP8266, is that there are maaaany versions with different pinouts. I also have a 12e, and for this one the gap between pins is 2mm. I had to order some male headers to make a correct adapter.
A jumper is needed permanently between GPIO15 and GND. The jumper on the bottom is to boot the ESP8266 in programming mode (GPIO0 to the ground)
I wanted to write a small article to salute Arduino IDE evolutions.
Compared to the beginnings, we’ve seen at least two major enhancements: the board manager and the library manager.
The board manager
Today, Arduino IDE can be used with many microcontrollers, and not necessarily Atmel’s. Amongst many others, the Teensy and ESP8266.
Of course the upload protocol is different according to the chip used, and the IDE must know how to communicate.
To select the right board, we have the menu Tools>Board. But what if your board is not in the list?
Well, it’s not that complicated.
First of all, you might need to add the package URL in IDE preferences:
Then go back to Tools>Boards>Borad manager, and now you should see a list of available boards. Just install yours and done!
Ok the Teensy is a bit different, as you have to download and install Teensyduino, an add-in available on the manufacturer’s website.
The library manager
This one is even better!
You just bought a new sensor or component, and don’t want to read the %&!! datasheet to try to understand the communication protocol and implement a buggy program? I really understand…
Let’s take the DHT22 sensor for example. It’s a humidity/temperature sensor.
No headache: just go to Sketch>Include library>Library manager. A list appears, and you can filter it by typing “DHT22” in the field, and… DHT sensor library by Adafruit.
Just click the install button and not only the library becomes available to your programs, but you can also find an example of usage in the File>Examples menu!
I particularily appreciated this feature for a sensor I bought some time ago, a bit difficult to discuss with: the MLX90614. It’s a directional IR thermometer, that can measure the temperature of an object without contact. It uses a modified i2c protocol, and even with the datasheet, if you’re not really at ease with it, you can have hours of anti-fun…
So I had the pleasure to see thet this sensor is available in the library manager, and I can now use it very easily.
Like every easter week-end for ten years, I’m coming back to my region of origin to see my old friends and family, and it’s always a good occasion to party hard… 🙂
This year, I decided to make some drink coasters for my friend Geo (http://vivrealarochette.fr), and engrave on it his main specialties.
The drink coasters diameter is 10cm. I cut them with a 2.5mm end mill, and engraved them with my laser.
I used Inkscape (https://inkscape.org). I drew my 10cm circle, and placed my texts on it.
Oh by the way here is how to bend a text in Inkscape:
– First, transform your text to a path (Path menu > Object to path)
– Go to Path > Path effects
– Click the + to add a new effect, and select “bend”
– Play with the different ways of bending (manual, link to a path…)
Ok, so my drawing is ready, I export is as black and white PNG.
My laser is not powerful enough to cut 3mm MDF, so I cut it with Cambam and a 2.5mm end mill.
3. Preparing G-Code to engrave the PNG image
In order to generate some G-Code from a raster image, I wrote a program in C# that reads the picture and writes a G-Code text file with M3/M5 commands (for Grbl)
It’s perfectible but works pretty well 🙂
4. Zeroing the machine for the laser
Disks are cut, G-Code is ready, we just have to engrave now!
But the laser module is not at the same XY position as the end mill, so I needed to zero some things before starting.
So I wrote a little G-Code by hand, to draw a 10cm circle on cardboard. Then I just have to place my disks in the circle and I’m sure of its position 🙂
5. Let’s roll!
Now the most exciting phase: engraving!
Some say that drink coasters shouldn’t be varnished, because the initial goal is to absorb the drops of water or wine. But… Once stained, your drink coaster is… Well… Stained…
So I felt free to put two coats of varnish on them and the result is not so bad!