Page 2 of 12

  • Posted on November 29, 2016

Process Incoming Mail with PHP Script with Exim

Does your web application allow people to email a unique e-mail address to perform actions on your site? If not, it’s a great feature to add and can be immensely powerful. The possibilities are endless, but a few common examples of this include customer support systems, posting to social media, or adding tasks to a to-do list. With the To-do List application example, users will send messages to a generated e-mail address that is unique to their account.
  • Posted on July 6, 2015

LUbuntu Keyboard Shortcuts (Openbox)

Inside of LUbuntu there is no graphical program that comes packaged to edit keyboard shortcuts of your computer. But luckily, all of the keyboard shortcuts are stored in an easy to modify XML file. At the time of writing this post (Openbox 3.5.2), there is one somewhat annoying behaviour, in which you can’t set single-key keyboard shortcuts and I doubt this feature will change in the future. Navigate to the folder ~/.
  • Posted on February 27, 2015

C Get MP4 Duration

I was recently working on a program that needed to get the duration of MP4 files and I really didn’t want to call an external program like ffprobe and parse the output. The code as it’s currently standing is below, but maybe the information along side it may be more useful. Now, this code isn’t 100% accurate and I coded it only for speed, lower IO usage and the videos I had to parse all were encoded under the same conditions.
  • Posted on February 13, 2015

Solve JavaScript Scroll Event Delay

JavaScript is one of those languages that has a lot of quirks. One of them that I recently ran into is how the scroll event isn’t triggered until after the page scrolls. You probably will notice this being a problem on a few sites that have sticky sidebars and headers. A sticky element is an element, such as a sidebar, that scrolls with the page and is always visible. If you notice that the sticky element lags behind by a fraction of a second when you scroll giving it a jittering effect, that site is victim to this JavaScript “flaw.
  • Posted on August 3, 2014

Windows API Single Key Hotkeys

I have a love hate relationship with the Windows Documentation and with how MSDN is designed. I could spend hours trying to find the information I need and even then there will be information missing. To give you an idea of what I mean, I wanted to make a shortcut key that only requires a single key instead of having it use Shift, Ctrl, Windows Key or other modifiers. In their documentation they don’t mention anywhere that modifiers are not required.