Latest Posts

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:

http://ultimateoutsider.com/downloads/

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:

$('[id^="myCarousel"]').carousel();

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: https://jonsuh.com/blog/social-share-links/

Here is the code for each social network.

Facebook

a href="https://www.facebook.com/sharer/sharer.php       
?u=https%3A%2F%2Fjonsuh.com%2F"
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 2.1.0.1 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'])
                );

Loophole

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.

FTP Not Working On Port 21

Date: 10/27/2015, Author: Lostwake, Category: Virtualmin & Server Tips

My server stopped allowing users to login to FTP through port 21 and only allowed port 22 and SFTP.

After a lot of digging I found the solution by loading the FTP connection tracking module on the server.

This can be done by logging into Putty and running the command:

modprobe ip_conntrack_ftp

I found this answer on this thread: http://www.cloudmin.com/node/34246

An it pointed me to this Virtualmin Documentation: https://www.virtualmin.com/documentation/web/faq#FTP_Service_isn-t_working

Hope this helps everyone.