Latest Posts

show multiple recaptchas on a single page?

Date: 11/28/2016, Author: Lostwake, Category: JavaScript

There is no need to clone the recaptcha nor try to workaround the problem. You just have to put multiple div elements for the recaptchas and render the recaptchas inside them explicitly.

This is easy with the google recaptcha api:

Here is the example html code:

    <h1>Form 1</h1>
    <div><input type="text" name="field1" placeholder="field1"></div>
    <div><input type="text" name="field2" placeholder="field2"></div>
    <div id="RecaptchaField1"></div>
    <div><input type="submit"></div>

    <h1>Form 2</h1>
    <div><input type="text" name="field3" placeholder="field3"></div>
    <div><input type="text" name="field4" placeholder="field4"></div>
    <div id="RecaptchaField2"></div>
    <div><input type="submit"></div>

In your javascript code, you have to define a callback function for recaptcha:

<script type="text/javascript">
    var CaptchaCallback = function() {
        grecaptcha.render('RecaptchaField1', {'sitekey' : '6Lc_your_site_key'});
        grecaptcha.render('RecaptchaField2', {'sitekey' : '6Lc_your_site_key'});

After this, your recaptcha script url should look like this:

<script src="" async defer></script>



So recently I was testing Roxy Fileman and for the life of me I couldnt make it usable on all devices. So I wrote some Javascript and Tweaked a little of the default CSS to make a solution.

Note: This fix is for the stand alone version of TinyMCE but Im sure it can be adapted to any CMS your using.

Stop Windows 10 Forced Upgrade and Get Rid Of All Notifications

Date: 07/14/2016, Author: Lostwake, Category: Other

Stop Windows 10 Forced Upgrade and Get Rid Of All Notifications

The Windows 10 update is terrible, and a huge security forfeit by computer users everywhere. I suggest you dont upgrade and get rid of notifications with this:

If you already ruined your computer and dont want to reformat then this video will show you how to redice the amount of spying windows 10 is doing.

I have three carousels running at the same time, each with their own unique ID. They're being called using an attribute selector like so:


So each carousel has an id that begins exactly with the ID of #myCarousel and then a number to set them apart.

But you can also define an instance for each carousel on the same line, for example: (Notice how each selector is separated by a comma.)

$('#myCarousel1, #myCarousel2, #differentCarousel3').carousel();

And it will work as well, so just make sure you use a valid selector for each instance of your carousels.

Source: stackoverflow

I dont know why this was so hard to find but I finally found a post that explains how to build some simple social share buttons without obnoxious javascript or markup code and buttons that need to be re-styled.

You can see the product of this post in the top-right corner of this site.

I found the original post here:

Here is the code for each social network.


a href="       
target="_blank">Share on Facebook

Category Images in Main Menu on Opencart 2.0.x

Date: 02/25/2016, Author: Lostwake, Category: PHP Quick Reference

Ok so here is a hack for Opencart to get category images in the sub-categories of the main menu.

I was using Opencart when I did this.

We will need to edit two files to make this happen the first is: catalog/controller/common/header.php

We are going to start around line 113 and change this code:


// Level 2
            $children_data = array();

            $children = $this->model_catalog_category->getCategories($category['category_id']);

            foreach ($children as $child) {
                $filter_data = array(
                    'filter_category_id'  => $child['category_id'],
                    'filter_sub_category' => true

                $children_data[] = array(
                    'name'  => $child['name'] . ($this->config->get('config_product_count') ? ' (' . $this->model_catalog_product->getTotalProducts($filter_data) . ')' : ''),
                    'href'  => $this->url->link('product/category', 'path=' . $category['category_id'] . '_' . $child['category_id'])


Date: 12/06/2015, Author: Lostwake, Category: Other

"Loophole: bags are 10 cents but gift boxes are free." -Jason

Thats it Im asking for all of my food from the grocery store to be individually gift warped so its like xmas every-time I make food.

This script can analyze text on a page and filter out the most used words to include in the Keywords Meta Tag.

Quite useful as a fallback on pages where you wont be entering custom keywords and dont want to run into a duplicate keyword error on Webmaster Tools.

The first thing the function defines is a list of "stop" words. This is a list of words that occur quite a bit in English text and would therefore interfere with the outcome of the function. The function also uses a variant of the slug function to remove any odd characters that might be in the text.

TedX Event At The Temecula Community Theater

Date: 10/31/2015, Author: Lostwake, Category: Events

At the tedx event in temecula. So far the speakers are awesome. More to come in a bit.

Update 11/1/15: Check out Brian Noland, By far the most interesting speaker of the day.

To change the FTP Access levels such as FTP access, SFTP access, etc for any user on the server go to:

Webmin -> System -> Users and Groups -> "user" and set the shell access.

bin/sh allows SFTP.

bin/false allows FTP only.