Pages

Saturday, August 13, 2016

IoT idea: proximity based file syncing

I have always thought about getting my recent files for the day uploaded to a personal cloud at home once I reach my WiFi hot-spot. What I am talking about is an application that resides in the phone which lets the server know that my phone is within reach and to try to backup the new files onto itself. 

This seems like an easy task. There's no need for me to plug in my phone to my computer to drag and drop files from one place to another. What I'm talking about here is  automation. Actions based on proximity. 
Imagine this scenario: you leave your house and you're disconnected from your wireless hot-spot. 
At this point your home server can run a check on all the things that you will not be needing since you're away; for example, the light in your bathroom, the TV or maybe the light in your bedroom. If you're not going to need those on you can get a prompt on your phone so you can turn them off without having to go back in. I hear about Arduino and Raspberry Pi. Hopefully somebody will get a good idea of what I'm trying to say and come up with an actual device and a useful demonstration of how this would work. 

Open source platforms such as Linux and the Raspberry Pi open the pathway for developers to come up with ideas and products that are actually useful and that would save people some time and headaches. 
I like to think that I have the ability to create by just giving you an idea. I have not been successful at using a soldering iron but I want to master that some day. I wish I could program like the Pros and put my thoughts into code and hardware. A small home server that can store your new files upon entering WiFi range could save you the pain of losing data when you drop that smartphone in the toilet. Cheers and thanks for reading. If you happen to come up with something after reading this I would like to see it in action.

me@myLaptop:~$ uptime
 17:00:23 up 20 min,  2 users,  load average: 3.49, 3.20, 2.20

Friday, January 22, 2016

Solving Error 500 caused by Joomla template

Getting an error spewed out when testing a local or remote website installation makes my heart race.  I had accessed the site over LAN using my smartphone. Things were smooth until I edited my Joomla template.

My Apache redirects were working.  I have to got to share what for almost 15 minutes frustrated me after this came up Unable to load renderer class.

Reenactment

I wanted to add a module position to a Joomla template. I copied some code from above my desired module position and pasted it there. I save my changes. Went over to change an existing module to the newly created one, which by the way, I too declared in templateDetails.xml, anyway, saved changes to the module in the back-end and the nasty red error page comes up.

Panic

I read a few too many forum discussions about redirects, and restarted Apache. I went as far as changing the $livesite variable's value in the configuration file located in the root folder of the site to reflect my LAN IP. All to no avail.

Retrace your steps

After taking a deep breath, I thought about backtracking to get to the root of the issue. Soon enough I noticed a typo. A big bad one.

<jdoc:include type="modules" name="infoblock" style="html5" />

Should have actually been

<jdoc:include type="modules" name="infoblock" style="html5" /> 

Where infoblock is the name of the position being added.

If you were able to solve your problem after reading this post, drop me a comment.


Gotta go.

hector@nsa-hornet:~$ date; uptime
Fri Jan 22 21:58:50 CST 2016
 21:58:50 up  6:47,  2 users,  load average: 4.15, 4.23, 4.45