It’s finally here, For the past 24 hour I was busy all playing with it. Finally my Moto X arrived. Although I was supposed to receive it today, I could not resist waiting and I went to the Local courier Skynet and pick it up myself. All I can say, it’s awesome and I’m not …
Monthly Archives: January 2016
Laravel 5 Select Random Row
To select a random row from MySQL using php is not a real hard process. you always can use the rand() function within your queries. but if you are using Laravel and Eloquent Model to work with your database you really should check the random() method out. Doing a select with your model and using …
Fix: Laravel scheduled tasks exception
So I just added a little scheduled tasks to one of my applications which was hosted on a shared environment and I realized that the task was not being executed at all. running the php command from the shell was working and it was not giving me any clue on what the problem could be. …
Clicking on a Link using jQuery
Well to me it’s easier to do it with JavaScript but today one of my friends was trying to click on a link on his page using jQuery and he came to me complaining that the click() function is not working. The problem with his code was that when he was selecting his a with …
Upgrade Magento 1.9.0.1 to 1.9.2.x
Upgrading magento should be quite straight forward, but when it comes to big websites with monstrous databases its kinda tricky. Anyway, there are few ways to upgrade a magento instance, for example you can download the new package, upload it and override your files and that should do the database upgrade once you open the …