AuthorIo. D

Markdown Typography – Windows GUI Editor

Markdown, originally written as a Perl script by John Gruber and Aaron Swartz in 2004, has caught fire and the technology has exploded into many different forms of “text to HTML” markup engines. The original Markdown code has largely been unchanged through the years, while alternative versions have come to build on it. Since the creators of Markdown don’t want anybody using the “Markdown” name...

WordPress plugin to disable the WP Admin Bar (hidewpbar)

Working on a membership site, we have to create multiple level of users. Usually we do not want the users to have access to the WP-Admin panel because it is not customized for their experience. Rather we have put everything necessary (such as edit profile page), user dashboard etc, on the front-end. For that reason we have to disable the WP Admin Bar for all except the administrators ( hidewpbar...

Linux Makefile for applications and shared libraries

Makefiles are a simple way to organize code compilation. Make is a Unix tool to simplify building program executables from many modules. make reads in rules (specified as a list of target entries) from a user created Makefile. make will only re-build things that need to be re-built (object or executables that depend on files that have been modified since the last time the objects or executables...

Sensory system in autonomous robots

A tele-supervised autonomous robot needs to have accurate information on its position, orientation, and velocity and the location of nearby obstacles (sensory system). The robot needs multiple sensors to gather all the information required and a computer to read the sensor data and make decisions based on it. Information on the robot’s environment can be acquired using laser distance sensors...

Inverse Kinematics Algorithm for Pentapod (five-legged) robot

Inverse kinematics is a much more challenging problem than forward kinematics. It is the procedure when we have a desired end effector position but need to know the joint angles required to achieve it. The solution of the inverse kinematics is computationally expensive, and usually, it takes long time for the real time control of manipulators. Singularities and nonlinearities that make the...

Pentapod Robot Stretching using IK Algorithm

After almost 2 months of hard work… the results of the five legged (pentapod) robotic platform are acceptable. For the development of this all-terrain robotic platform, i am using two ARM Cortex M4 microcontrollers using a Real-time Operating System (RTOS) as well as a simple sensory system. The communication between the microcontrollers was established using the Controller Area Network...

Custom PCB using 3020 CNC

In this post i will present you my first double sided custom pcb made using a simple but “effective” CNC 3020. I’m a CNC newb so my milling process, and the following outline uses what I’ve concluded to be the most common tools. These tools are Eagle CAD, PCB-gcode, Mach 3 CNC, 0.1mm 30deg V-Shaped Engraving Bit, and of course random surplus carbide PCB drill bits from...

C# Registry Keys Manager

Usually an application needs to save or retrieve data from windows registry. For this reason a registry manager class is required. The following code snippet provides a simple yet effective way for handling windows registry keys. public class Manager { public void addRegistry(string subkey, string name, string value) { if (Microsoft.Win32.Registry.GetValue(@""+subkey, name, null) == null) {...

Capturing screenshots using C#

What is the right way to take screenshots using C#? It’s certainly possible to grab a screenshot using the .NET Framework. The following code snippet provides a C# class for capturing and saving screenshots. public class Screenshot { public DateTime timestamp; public Bitmap bitmap; public Screenshot(DateTime timestamp, Bitmap bitmap) { this.timestamp = timestamp; this.bitmap = bitmap; } }...

Calling a method from a string in C# (dynamic method invocation)

We are often used to call methods dynamically. You can invoke methods of a class instance using reflection, doing a dynamic method invocation. The following code snipped presents an easy way of invocation in C#. public void Execute(string methodName, object[] args) { if (GetType().GetMethod(methodName)) != null) { MethodInfo method = GetType().GetMethod(methodName); method.Invoke(this, new...

Disclaimer: The present content may not be used for training artificial intelligence or machine learning algorithms. All other uses, including search, entertainment, and commercial use, are permitted.

Categories

Tags