PHP Start of the day and End of the day for a timezone Util functions

This is a quick post where I am sharing a couple of functions to calculate start of a given day and end of the day for a given timezone

Start of the day

End of the day

You can play with these function and can adjust as per your requirement. Let me know if you see any issues with these.

I hope that this post will help you out in one way or another,

Cheers

[Solved] bootbox.js show ajax html data inside the dialog

Hi Guys Just a quick one here if you are using a library called bootbox.js in your project. This library does not make ajax request automatically if you wish to load some data from your server to show within your dialog window. Instead, you can do … [Continue reading]

Project Data Sources: re-sync required – Upgrading to PhpStorm 10.0.2

sync

Hey Guys, While I upgraded to PHPStorm 10.0.2 and restarted it, I got this message at the top right corner of this IDE Project Data Sources: re-sync required Unsupported format version 2.2 - (2.4 expected) While that got me puzzled for a … [Continue reading]

How to get Pinterest Numeric Board ID

Get Pinterest Numerci board ID

Hi Guys, It used to be easy to get Pinterest board ID before, but for some reason they have buried that sort of information within source, A while back I wrote something that wouldn't use the Pinterest official/unofficial API but parse the HTML … [Continue reading]

Free Clock Animation GIFs

Clock animation 15 minute interval

Hi Guys, While I was working on a project I need a couple of GIFs for Clock animations. I came up with these. You can use it in your commercial or free websites etc. Attribution or link to this page would be appreciated though :) Here are a … [Continue reading]

Unzip files in bulk in their own directory (sh)

Here is a quiz tip to unzip several zip files found in a directory to their own directories. Use this command from the folder where zip files are to be found [crayon-57934f600ab4b110507048/] To make sure that output folders will be created … [Continue reading]

Android Emulator Windows Hosts file editing

Oh! so you want to update a hosts file just like I wanted and spoiled many minutes playing with what works. Let's go through this process to make it work for you as well (hopefully!) Google Android emulator is an amazing tool to test out your apps, … [Continue reading]

Installing Latest MongoDB version on Ubuntu 14.04 LTS 15.04

How to Install MongoDB on Ubuntu 14.04 and 15.04 As we all know that MongoDB is becoming a default choice for certain part of community and is also emphasized as M in MEAN stack. Its an open source NoSQL database that is available free of cost and … [Continue reading]

PHPStorm Painfully Slow….

PHPStorm 64 bit executable

Oh Yeah, That went and drove me nuts. I would like to share what worked for me. I am a Windows user so the instructions you see in this post apply to windows user, but stuff shall be quite similar for Mac/Linux users too. First thing first … [Continue reading]

helpful awk command examples when working with Apache access logs

There are some utils that analyze access logs, one of such util is webalizer. But I always believe that getting to know you access log files is more appropriate when you want to do some more in depth analysis on something specific. There are … [Continue reading]