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… Continue reading Laravel 5 Select Random Row
Category: Technology
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.… Continue reading Fix: Laravel scheduled tasks exception
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… Continue reading Clicking on a Link using jQuery
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… Continue reading Upgrade Magento 1.9.0.1 to 1.9.2.x
See changes between remote and local repository in Git
in many cases you are not sure whether the files you have on your local machine are newer or older than the ones in the remote repository. Specially when you are working with different people or you have different development environments. the easy solution for this is to use git fetch command to check what… Continue reading See changes between remote and local repository in Git