Magento Module Manager

This is a quick a piece of code that I created to help turn on and off Magento Modules. Make sure you password protect it.

<h2>Magento Module Manager</h2>
// Magento Module Manager
// created by Chris Rosenau 2016

$path = 'app/etc/modules';

$filechange = $_POST['filename'];

$filelist = array();

$cot = 0;
$allfiles = [];

// turn module on or off
if (count($filechange > 0)){
    foreach ($filechange as $change){

			//read the entire string

			if (preg_match("/true/",$str) == 0 ){
				$current = "false";
				$replace = "true";
				$current = "true";
				$replace = "false";

			//replace something in the file string 
			$str=str_replace("$current", "$replace",$str);
			//write the entire string
			file_put_contents($path.'/'.$change, $str);


// get list of modules to choose
if ($handle = opendir($path)) {

    while ($entry = readdir($handle)) {

    	if ($entry != "." && $entry != ".." && preg_match("/Mage_/",$entry) == 0){
			$allfiles[] = $entry;

	echo "can't find directory.";


echo '<form action="modules.php" method="post">';
<script type="text/javascript">
	function toggle(source) {
	  checkboxes =  document.getElementsByTagName('input');
	  for(var i=0, n=checkboxes.length;i<n;i++) {
	    checkboxes[i].checked = source.checked;

<p><input type="submit" value="Enable/Disable Modules"> <input type="checkbox" onClick="toggle(this)" /> Toggle All</p>

foreach ($allfiles as $file){
	if (preg_match("/true/",$str) == 0){
		$color = '#ff0000';
		$color = '#20933D';
	echo '<input type="checkbox" name="filename[]" value="'.$file.'"><span style="color:'.$color.'">'.$file."</span><br>";


<p><input type="submit" value="Enable/Disable Modules"> <input type="checkbox" onClick="toggle(this)" /> Toggle All</p>

Linux Desktop 2015

Krita is a replacement for Photoshop. You can load PSDs with layers, with high colors. Way better than GIMP.

WPS Office is a fantastic replacement for Microsoft Office. Even better than Libra Office, but Libra Office is improving fast.

Money Dance:


Audio Sauna:


BluRay/DVD authoring
Light Works:
Davinci Resolve: https://www.blackmagicdesign.c…

Steam is on Linux

Unity is now on Linux.…

Unreal Engine for Linux:…

Visual Studio now works on Linux:…

.net was opened sourced, which is a huge boon for Mono.

We also have Docker containers being integrated into system such as Ubuntu with Snappy. I also suggest checking out Deepin Linux. I am waiting for 2015 version as there were a couple of bugs in their system they are working out.

Note: Flash is basically dead with Firefox and Chrome making the transition to remove it. That means video is switching to HTML5. I don’t know if you get the same screen tearing with HTML5, but it seems like a good thing.

Window 10 A Disappointment

I have a windows 7 machine and upgraded to windows 10 only to discover a privacy nightmare. Lucky for you, you now have your own personal advertiser’s ID. Windows monitors everything, including keystrokes. There are tons of privacy settings and when you disable them you disable many features such as Cortona which basically scours all your info and data to do things you really don’t need done. For example it will track your packages and tell you when they will arrive. Who needs that when you already get emails notifying you about when your package will arrive. If Cortona tells you that your package will arrive today and it doesn’t, what then?

Next you are stuck with the horrible mono color theme until Window Blinds supports 10.  I found some of my applications didn’t work anymore like my Bernina Embroidery Software Version 7.
The boot up was slow and showed me a log in screen, even though I don’t use a password and then proceed to show me the desktop. Even when I was at the desktop the system would grind away not allowing me to run apps. About twice as long to get started as Windows 7.

The start menu was full of junk I didn’t want and when I pinned the calculator to the menu, I couldn’t find the icon because it was at the bottom of all the items, instead of on the left side icons. When I deleted all the tiles, I was left with an ugly blank blocky box for a start menu. You can fix the menu by using Stardock’s start 10 menu, but there is appears no way to remove the HUGE Cortona search box on the taskbar. Also the minimize all windows in the right corner is so small, it is very hard to use now.

When I opened the calculator, it was so god awful looking that I didn’t even want to do math. This is due to it being a strange web app, instead of a native Windows app. I tried other calculators but they all were pretty poor.

So feeling like playing a game I tried solitaire. The game wasn’t even the original solitaire and I couldn’t play until I watched a 30 minute advertisement for a ford trucks. I loaded up the Xbox store and couldn’t find the free Fable game.

The Edge browser is pretty useless as there are no apps for it, like Chrome or Firefox.

The settings are all over the place and there are multiple windows for settings. There are also so many settings that you can easily get confused.

The best part of Windows 10 was the ability to revert back to Windows 7 without losing anything.

There are only a three reasons I see to use Windows 10:

1. You have an Xbox and want to play those games on your PC.

2. You want DirectX 12, but there currently aren’t any games that really support it yet.

3. You are a large company and might be able to track more info about your employees than you could before.

The Linux Desktop

For many years now I have been running Windows and slowly trying to convert over to Linux. My main way of gauging if Linux is ready for prime-time is the ability for a user with no Linux experience to switch over from Windows. Linux has made leaps and bounds in all areas, especially in games. Yet almost every time there are minor deal breakers. When I installed Ubuntu 14.04, I was left with sound not working properly when switching between USB and built in sound. It was so annoying that I went back to Windows.

My wife tried Linux Deepin, because it was so beautiful and loved it. Alas, after a month she started running into minor deal breakers and she too returned to Windows. Getting rid of all dependency on Adobe products would be a huge help. Currently Photoshop is replace by Krita. Flash is almost replaced by HTML5 video, but Adobe Reader is still a problem when it comes to secure electronic documents. Solid hardware support would be key. Finally with Wayland on the way and Vulcan we should see the ability to have a solid Linux desktop within a year or two.

Legendary Lovers

Fair Phone

Allan Savory: How to fight desertification and reverse climate change

The Best Search Engines

Here is my list of search engines, that I will keep updating. Hopefully at some point someone create a search engine that eliminates the need for Google.

Regular Search

Duck Duck Go – bing search with privacy


Giphy – great for searching animated gifs

IXQuick – image search

TinEye – search for copyright images



A Real Privacy Policy

1. Your data will be used for our services.

2. We will not sell or give your data to a 3rd party unless you authorize it.

3. When you request us to delete your data, we will delete all of it. Data such as server logs which track basic info such as ip addresses hitting our site, will not be deleted as it is too time consuming.

4. We will not give your data to law enforcement unless we are forced to and will notify you 24 hours (if we can) before we are required to do this. Even if we can’t notify you in advance we will notify you after the event.


Time to stop trusting BIG networks and start trusting each other.

I just ran across a new site called Nextdoor. It tries to address the issues of bringing people together. The problem is that it is funded by venture capitalists, so this means there is one motive behind the community creation. MONEY. This means that you are going to be data mined. If they get big enough, they will most likely be taken advantage of by the NSA, CIA, FBI and other authorities who desire your info. They are right up front that the local cops have access to the site. Apparently the site is not about community about corralling the community together based on fear. If we look at their privacy policy we can see that they have no plans on letting your data go or giving it away:

Our “Corporate Family.” We may share your data with any parent company, subsidiaries, other entities under a common control or third party acquirers. We expect these other entities will honor this statement. Also, we may allow a potential acquirer or merger partner to review our database, although we would restrict their use and disclosure of this data during the diligence phase.

Government Relations and Lawsuits. We may disclose data about you to the government if we are required to do so or as we think is prudent for safety or security reasons; and you authorize us to make these disclosures. We may also disclose data about you in connection with actual or potential legal proceedings (a) in response to judicial or other government subpoenas, warrants or orders, (b) if we are required to do so in other ways, (c) if such disclosures might mitigate our liability, or (d) to enforce our rights.

Limits on Our Abilities. While we work hard to respect your privacy, like any other complex web service, we might inadvertently use or disclose your data in ways inconsistent with this statement. For example, a temporary software glitch could lead to public display of your personal data despite your contrary preferences. We might also make ad hoc uses of your data in ways not mentioned here. In these anomalous situations, we will try to rectify the anomaly as soon as we can.

Data Retention. Subject to any mandatory obligations to delete data, we may choose to retain information in our server logs, our databases and our records indefinitely.

Security. To enhance the security of your interactions with the site, uses https on its web pages to prevent unauthorized interception of your communications during your site visits and takes measures to protect passwords from unauthorized access. We also use a variety of security measures to protect your information in our databases. However, perfect security does not exist on the Internet.

The reality is that it would be way easier and safer to just go meet your neighbors in person, than use services like this. But if you are lazy and don’t really want to meet anyone in person, then the answer is clear that you should sign up for the site.