Sunday, October 18, 2015

Limited or no WIFI after upgrading to Windows 10

I upgraded my laptop to Windows 10 yesterday and everything worked fine except for the WIFI and I couldn't figure out what the problem was. I found some commands to run which did not solve the problem. I figured it was the antivirus I was using so I stopped it and that still didn't solve the problem. I found several drivers; some installed and some didnt, that still didn't work.

Since the WIFI wasnt working on, I had to be using my phone. After much googling, a thought came to me to uninstall the antivirus. I was using COMODO which also has a internet security module. During the uninstall, the Limited icon left the WIFI signal. I tested it and it was working fine. So, if anyone has this problem, try uninstalling the antivirus that is installed, if it was installed from before the upgrade.

Monday, October 5, 2015

Remove hash # from url in angular js

The $location is a service component in AngularJs. This is what will be used to remove the hash from the urls. In the config function where the routing is done, inject the $location variable and set the html5Mode to true.

var app = angular.module('mainCtrl', ['ngRoute'])
            .config(config)
            .run(run);

config.$inject = ['$routeProvider', '$locationProvider'];
    function config($routeProvider, $locationProvider) {      

        $routeProvider
        .when( '/', {
            templateUrl: 'views/login.view.html'
        })

        .when( '/home', {
            templateUrl: 'views/home.html',
            controller: 'HomeCtrl'
        })

        .otherwise({
            redirectTo: '/'
        });

        $locationProvider.html5Mode(true);
    };

For this to work, you will have to set the base url. This can be done by putting the  in the head of the html file. Remember to include the name of the folder if you have all the files in a folder. Example: 

That will remove the hash from the urls.

Sunday, October 4, 2015

Freelance Developer

It was from this same blog that I got my first freelance project...that was years ago. I had been working with P4A and had posted some code samples from projects that I had worked on and someone who found my blog had asked me for assistance on a project.

This just came to me last night that, since I am at home and I have some amount of free time on my hands that I should probably post some more code samples. So, I'll be doing that as often as I can. I will post code from PHP, JavaScript, MySQL, AngularJS...pretty much anything. I have knowledge of and experience with intel XDK, CodeIgniter, P4A...and I will challenge myself to learn something new. So, I am available for freelance projects.

Monday, September 7, 2015

Google chrome has stopped working

I have a laptop that is just about a week old and Google chrome has been giving trouble starting. I tried uninstalling and reinstalling several times, deleting left over registry items and it still would not work. I found a solution that worked but has left me still wondering why the original would not work.

What I did was to rename the exe file in the chrome location folder. So...

  1. right click on the icon on the desktop
  2. go to properties
  3. click on "open file location"
  4. rename the "chrome.exe" file to something like "chromer.exe"
  5. back in the properties window, change the file name also in the target section
  6. click "ok"
try opening chrome now and it should work. 

you may see that the original icon does not show any more, this can be changed by going back to the location of the chrome exe file and 
  1. right click on the file
  2. click on send to -> desktop (create shortcut)
  3. rename file to what you want
and that's it.

Wednesday, August 26, 2015

joomla articles opening on home page news show pro sp2

This article helped me with using news show pro sp2 on joomla and article links opening with the same layout as that of the home page: http://www.joomshaper.com/blog/why-module-links-are-opening-inside-the-frontpage

Friday, August 21, 2015

Error displaying the error page: Could not find template "".: Could not find template "".

I encountered this error when I was working on a project and after searching and searching, I decided to check the database and realized that all I had exported from the database was the structure and not the structure and the data. That was what caused the error for me.


Wednesday, February 18, 2015

Clear attachments from previous email when sending with Codeigniter

I had the problem of sending multiple emails with attachment and having the attachment from a previous email included in the next email when using the codeigniter framework. Even though I searched the manual and included the clear option, the problem still persists. After doing some research, I found out that I had to include the TRUE option in the clear function: $this->email->clear(TRUE); This is what solved it for me.

Wednesday, February 4, 2015

PHP Array to String conversion Codeigniter

I was having this problem where I was doing an update batch to my db and I was getting the error of array to string conversion. The funny thing was that the db was being updated. After doing some research, I found out that there was a problem with the DB_active_rec.php file in Codeigniter, on line 1407.

Change $not[] = $k.'-'.$v; to $not[] = $k2.'-'.$v2 and the problem is solved.