Category: Programming

  • What makes a software product great?

    Before talking about software, lets talk about cars. Why do I want to talk about cars is to take great car design as an analogy to great software design. What comes to your head when you hear BMW or Mercedes-Benz? The standard quality of these vehicles. They ordered by most important first are to be; […]

  • Why your photos not deleted when you delete a user in Laravel

    Why your photos not deleted when you delete a user in Laravel

    Ok so you have a relationship mentioned in your eloquent user model to link the photo model relationship. So in your user model class you might have something like below to define the relationship. /** * Get the photos * @return \Illuminate\Database\Eloquent\Relations\HasMany */ public function photos() { return $this->hasMany(Photo::class); } In your Photo class you […]

  • Sonder WordPress Theme

    Sonder WordPress Theme

    I wanted to develop a minimalist type of a WordPress theme and use on my personal website. The source code is available under Git if you are interested in using it. View Source  

  • OpenShift with FileZilla

    Here’s how you can configure to access your OpenShift using FileZilla FTP. Open FileZilla and go to Edit > Settings > SFTP Click Add key and navigate to .ssh folder. Select id_rsa and when asked, save as id_rsa.ppk Now it should be listed in SFTP block Go to OpenShift and get the SSH URL. In […]

  • Improving PHP Xdebug Speed

    Great, you have finally figured out how to install and enable PHP Xdebug. Now you can debug your PHP websites and web apps in your local machine. However what you might found out is that after enabling Xdebug, your website’s response time is very low. You might have to wait for more like a second […]

  • How to setup canonical URL in Yii2

    You can place a canonical URL to a page using your view file. To generate the canonical URL, we can use the canonical ( ) in the URL helper class. Also note this method consider if the current website URL is applicable to any URL rules specified and if so generate the canonical URL based […]

  • Set up mongoDB as a Windows service

    Create a log folder in your data folder Open console with admin privileges Then in console type mongod –logpath c:datalogmongodb.log –install Now mongodb should be listed as a service Then in console type ‘services.msc’ and find mongodb service listed Right click on it and select start. Now mongodb should be running

  • VSFTP to backup multiple websites

    For our web management service we also performance website backups in a timely manner by using our own FTP server. This guide is written on how we configured VSFTP (A recognized FTP server in Linux distros such as Ubuntu) to handle multiple websites.

  • Git and Dropbox together

    Git is a source code management tool and heavily used to open source software developers particulary with services such as github.com. These managed source code locations are called repositories. Source code repository is a powerful place to find history of source code modifications or to download the source code instantly. However sometimes you might want […]

  • Edit images while on WordPress

    Tip to update the images on WP. This feature comes inbuilt of WordPress. Go to media. Click on the image. Click edit image button. Then you will see a list of button that you can use to manipulate (rotate, scale…) the image. Once changed, it will affect all the places where the image is used.