Blog Posts

Installing your first theme with Magento 2.1

Let’s assume you have the Luma [default] theme installed and it all looks OK ? So the elephant in the room is while that’s great, I can now get my hands on a new theme with new sample data and install this instead ? You’d think that was a pretty simple exercise and while this is sort of true for themes from the Magento marketplace, as a developer it’s nice to know what is really going on here and the

Continue Reading

Magento 2.1 Useful Things To Know

Magento 2.1 Useful Things to Know Sometimes [read always] after a server issue you need to rebuild all the index files and the cache: When I say Server Issue – I mean just about anything you do with Magento outside of the box including migrations, new themes, almost everything and I’ve lost count the number of times I run these commands [use a .bat file]. So, Command Prompt to your {root} folder e.g. /htdocs/magento and from the command prompt: C:/....>

Continue Reading

How not to get hacked

On an almost daily basis, we hear about this hack or that data-breach, but what does this really all mean and more importantly how does this affect YOU. This is NOT meant to be a technical article, but you might need to read it a few times for it all to sink in. A hack [slang term nowadays] is really a security attack on a web-site, e.g. a big social media site. This isn’t going to affect YOU directly as

Continue Reading

Install #RubyOnRails 2.3.3 with Windows 10 and XAMPP

  Use RailsInstaller.exe Version 2.3.3 from RailsInstaller.org The installation itself works fine, but alas this is not the end of the story; the proverbial rabbit-hole. They have an error in their .bat files \…Install\Ruby2.3.0\bin. Change the path of …\ruby.exe in the .bat to your local PATH, e.g. C:\RailsInstaller\Rub2.3.0\bin\… rails.bat bundle.bat rake.bat sprockets.bat sqlite3_ruby.bat thor.bat tsql.bat and far more seriously: after you have created your new project [rails new <project-name>] and made any required tweaks to the gemfile and the database.yml, you

Continue Reading

Upgrade to the latest WordPress Version

Perhaps an odd topic when your WP dashboard has an upgrade button and if you are hosting with a major ISP then this option should work. For self hosters [XAMPP, WAMP etc.] you almost certainly have to do this manually. Before we start, always a good idea to do a complete backup, so just zip up your current WP folder and keep it safe. Also a good idea to copy the MySQL WP database to another temporary database with your

Continue Reading

Creating Internal WebSites [Properly]

This might seem like an odd thing to discuss, but I had a recent experience with an organisation which has their own web server [XAMPP] on a dedicated PC which they mirror up to their host. All sounds relatively straightforward you might think ? They wanted all their users to access the internal web-server as internal.web [as a URL] and their live server as www.theirdomain.com. Perhaps it’s blindingly obvious to a developer [like me], but this how you do it

Continue Reading

IP Trace in PHP

Developers ONLY As a quick snippet I was asked: how do you get useful information from an IP Address? Once you have the variable which is the IP address assumed from some database or directly as $_SERVER[‘REMOTE_ADDR’] create some PHP f() along the lines of: $ip = $_POST[‘ipAddress‘]; $locationDetails = json_decode(file_get_contents(“http://ipinfo.io/{$ip}/json”)); assuming the ipAddress is passed as a variable or in this case I’m assuming it’s an AJAX function hence the $_POST. The second line is the important one which creates

Continue Reading

Google Maps V3 and JQuery Mobile

This Post is for DEVELOPERs ONLY I’m going to assume that your main mobile page includes something along the lines of: <!— Core Jquery Mobile —> <link rel=”stylesheet” href=”http://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.css”/> <script src=”http://code.jquery.com/jquery-1.11.3.min.js”></script> <script src=”http://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.js”></script> <!— Google Maps —> <script src=”https://maps.googleapis.com/maps/api/js?v=3.exp&sensor=false”></script> The above is current at the time of this post [Autmun 2016]. I will await JQuery Mobile 1.5 as and when. Chances are that if you are reading this you are having some difficulty getting Google Maps to work with JQuery Mobile.

Continue Reading

What is SPAM e-Mail [really] ?

I’ve had a few [recent] enquiries as to the receipt of SPAM [junk] e-Mail and I think a plain English [sic.] explanation is required: What is SPAM ? When you receive an e-Mail from anyone [jSmith@gmail.com] assuming the Sender Name and the Real Sender […@…] marry up then it’s NOT SPAM. This is true for most of the e-Mail you will receive. So when they don’t: it is SPAM. Sorry for the reverse explanation ! So how does this happen ?

Continue Reading

Outlook or Thunderbird problem

Although I am personally a fan of web-based e-Mail systems, I totally understand that if you have several e-Mail accounts [lots of good reasons] then you want all of your e-Mail in one place or one APP. Outlook and Thunderbird [two examples] are popular programs or APPs which do this very well. Until, of course, they don’t ! Before the arrival of web-based e-Mail or frankly good systems such as gMail or Outlook [MS] Live most people used to download their

Continue Reading

Site Footer