[solved] MySQL server not Starting

Standard

MAMP headache on Mac

If you can’t figure out why the MySQL Server won’t turn on if you’re using MAMP to do local development work, here are two ways to go about it.


 

What worked for me

  1. Quit MAMP.

2. In the Finder, go to and delete the log files (in my case ib_logfile0 and ib_logfile1).

Applications/MAMP/db/mysql56

3. Restart MAMP.


So I tried the below fix and kept getting

No matching processes were found


What others used that didn’t work for me

Quit MAMP.

  1. Open Terminal (either open Spotlight (Cmd+Space) and type “terminal” or you can find Terminal in the /Applications/Utilities/folder)
  2. Then type this (will allow you to kill the mysqld process with security privileges of another users such as root)
ps aux | grep mysql 
lsof -i 
sudo killall -9 mysqld

4. Restart MAMP


Happy Developer!!
Advertisements

How to Fix: Something went wrong. This page didn’t load Google Maps correctly. See the JavaScript console for technical details.

Standard

So after finishing the website for a client, I get a call about the maps not showing. Felt very embarrassed about it. First, let’s find out exactly why it’s showing. There are multiple things that can cause it. Notice the last part of the error says to open the JavaScript console for “technical details”. That’s what we need.

Oops! Something went wrong. This page didn’t load Google Maps correctly. See the JavaScript console for technical details.

Fix!

You can open the JavaScript console in your browser with a few keystrokes. There is an excellent answer on StackOverflow that tells you plainly how to open the JavaScript console in different browsers. After doing that, you should be able to find an entry looking something like this.

Google Maps Console Error

Listed below are the most common errors reported by our users:

  • MissingKeyMapError – An API key is not being used
  • RefererNotAllowedMapError – Key doesn’t allow your URL
  • ApiNotActivatedMapError – API is not enabled
  • InvalidKeyMapError – The API key used is incorrect

Now that you know exactly what is causing the error, you can fix it. Here are fixes for the most common Google Maps API errors shown in the console.

How to Fix MissingKeyMapError

MissingKeyMapError means you are not using an API key and will need to sign up for one then configure your website to use it. Websites that started using Google Maps on or after June 22, 2016 require an API key in order for maps to show.

Create a Google Maps API Key

Follow these steps to create and implement a free Google Maps API Key.

  1. Start Google’s Get a Key process then log into your Google account (or create one).
  2. Click Agree and continue to create a new project representing your website.
    Google Maps API Register
  3. Under Accept requests, add the two entries below (replacing yourname.comwith your own domain). Type the first entry then hit enter on your keyboard to add it. Repeat to add the second entry. Having both entries (with asterisks) will help ensure your maps work on any URL of your website.
    yourname.com/*
    *.yourname.com/*

    Google Maps Create API Key

  4. Click Create then copy your key that is now shown on the screen.
    Google Maps API Key Done
  5. If you’re using our WordPress plugin, go to Settings  Theme Option and paste your key into the Google Maps API Key field then click Save Changes. Otherwise, do similar according to the product you’re using.
    Google Maps API Key Paste

Booooyaaaah!

Screen Shot 2017-08-28 at 14.40.46

Note: Google says it can take up to 5 minutes for your key to become active. Mine came up immediately.

How to download Torrents on Mac without Torrent clients using Folx

Standard

Hi guys,

As you might guess, I am now working on a Mac, to be specific an iMac 21.5 inch, and definitely old habits die hard. How can we survive without torrents? Just how? I think there should be a rehab for seeders and leeches… Just a thought. How will guys turn into the best developers and designers if not without torrents when they are totally broke? Not that am being biased. Also not forgetting people who might, chances are nearing nil, become movie directors because of the many movies and series they torrented every release date. Anyway, I will probably be causing a fluctuation of the internet speeds, but what the heck! Let’s do this!

So you organisation or institution has blocked torrents. How could they??? You ask. Well, you are hogging the internet and things can’t move. But where there is a will, there is always a way.

  1. Search like a Pro!

I know you heard the sad news the YIFY will no longer be sorting us those small-sized files which are very HD. I insist, V-E-R-Y  HD. Moving on swiftly, you need to get skills of how to search on Google like a pro. So, this is what you will be doing, I have done it everyday.

Key this in:movie name – site:torrent site

Screen Shot 2016-02-19 at 5.49.04 PM

2. Try to always go with the first indexed result. After that, click on download then let it download with Folx.

Screen Shot 2016-02-19 at 5.54.36 PM

It will download the “.torrent”

Screen Shot 2016-02-19 at 5.54.54 PM

It will find the torrent files and give a popup for the torrent files like what a torrent client does

Screen Shot 2016-02-19 at 5.55.12 PM

You can see the file has seeding and downloading speeds.

3. Sit back and relax as it is downloading.

Now we can listen to music, watch movies and play games. But don’t forget the free accounts have limits.

Oscobo : Privacy-focused search engine

Standard

Oscobo is the first UK-based Privacy Search Engine, providing consumers with pure search, nothing else. It does not track or store personal data, protecting users from unwanted profiling. Oscobo was founded in 2015 by two senior technology executives, Fred Cornell (ex-Yahoo) and Rob Perin (ex-BlackBerry), who believe that personal data should stay just that, personal. It does not place cookies and does not view a users’ IP address – Oscobo does not know who the user is and does not want to know.

Oscobo is headquartered in London.

This browser can be used to look up your prospective employees. I looked myself up, weird.

Try it because I find it very useful without ads plus it is showing my tweets 🙂 .

 

You can add it to your Chrome Extensions.

 

Ngeshlew Oscobo Search

How to Solve WordPress Could Not Create Directory

Standard

WordPress is an interesting platform to build your website but when you get this kind of errors, you feel like plucking your hair off your head because nothing is happening. I have tried like 10 solutions but never got it right until now.

Am sure you have gotten something like this when trying to update your plugin or upgrading WordPress.

This is the error for the Upgrading of WordPress

Downloading update from http://wordpress.org/wordpress-4.4.zip…

Unpacking the update…

Could not create directory.

Installation Failed

This is the error for the plugin update

  Downloading update from http://downloads.wordpress.org/plugin/your-plugin.0.9.3.1.zip…

  Unpacking the update…

  Could not create directory. /wp-content/upgrade/yourplugin.tmp
 
  Return to Plugins page

SOLUTION:
Step 1:

Plugin: Just change the permission of /public_html/wp-content and /public_html/wp-content/plugins to 775. If the update succeed just revert it back to its default permission.

Upgrading: Just change the permission of /public_html/wp-content and /public_html/wp-content/upgrade to 775. If the upgrade succeed just revert it back to its default permission.


chmod 775 /var/www/html/wordpress/wp-content/

chmod 775 /var/www/html/wordpress/wp-content/plugins

chmod 775 /var/www/html/wordpress/wp-content/upgrade

Step 2:

Add the proper group permissions most likely to the same that Apache is running under.

ps aux | grep apache 

You will see the Apache user group on the left.

See my example of how I did it:

Screen Shot 2015-12-15 at 11.37.13 AM

Step 3:

Now change your WordPress folder to the same user group, you can do this in a parent folder or sub folder but for sanity it usually best for parent folder, use -R to recursively do it.

chown -R apache:apache /path/to/wp-root-folder
  • To login on windows use Putty
  • Enter your hostname and port
  • Choose connection type depending on server settings
  • Click open

If you try to chown and get denied you will need root privileges , type sudo su and your password.

Now try updating the plugin or Upgrading WordPress.

Awesome!!! Now we have solved that issue.

Solution by Wyck

 

If it helped you out, please don’t forget to like and share 🙂

No module named SimpleHTTPServer [Error]

Standard

I wanted to set up Python SimpleHTTPServer on my Windows 8 and I had Python installed on my computer. I was executing the following command

python -m SimpleHTTPServer 

Or(if you want to specify which port to open the application from)

python -m SimpleHTTPServer [<portNo>]

But I got the error:

C:\Python34\python.exe: No module named SimpleHTTPServer

error

Because I am using Python 3 the module SimpleHTTPServer has been replaced by http.server at least in Windows. So the following worked for me

python -m http.server [<portNo>]

soln

You will see the below screen. To test if it is working, go to http://localhost:8000/ and you should see a web page opening up.

final working

Hope that helped. Thanks!

Lima Kilo

How to fix WampServer – Could not execute menu item (Internal error)

Standard

After installing Wampserver, wanted to run a test.php script to confirm that Wamp is working. Then I got an Internal Error. This is a tutorial to fix Wampserver – Could not execute menu item (internal error). The service has not been started.

How-to-fix-Wampserver-img

This is happening because of the test port (80) clash with other program.

To see the issue click on Wampserver icon and go to Apache.

How-to-fix-Wampserver-image-2

Now go to Service and click on Test Port 80.

How-to-fix-Wampserver-image-3You will see the main reason of Wampserver internal error.

How-to-fix-Wampserver-image-4

To fix the error follow these steps:

Step 1:

Go to Apache >> httpd.conf and open it.

How-to-fix-Wampserver-image-5

Step 2:

Find out these lines

Listen 12.34.56.78:80
Listen 0.0.0.0:80
Listen [::0]:80

Step 3:

Now remove 80 with 8080 and save the file.

Listen 12.34.56.78:8080
Listen 0.0.0.0:8080
Listen [::0]:8080

Step 4:
Click on Wampserver icon and restart all services.
How-to-fix-Wampserver-image-6
Step 5:
You will see green or orange Wampserver icon.
How-to-fix-Wampserver-image-7
Step 6:
How-to-fix-Wampserver-image-8Thank you for reading!

If it helped you out, please don’t forget to like and share 🙂

Lima Kilo
Ngeshlew