Related Content
A Look At Benford's Law
Benford's Law is an interesting heuristic in data analysis. It states that in any large collection of numbers that are created naturally, you should expect to see numbers starting with the number 1 about 30% of the time. The frequency distribution of numbers states that 2 should appear about 17% of the time, down to 9 being seen just 5% of the time.
Protecting A Page From Being Directly Accessed With PHP
I was thinking recently about the number of ways in which I could restrict access to a page using PHP.
The obvious option is to create a user authentication system, but in some situations that is overkill for what is required. If you just want to prevent users from going directly to a certain page then there are a few options open to you.
Creating A Mouse "Looking" Script With JavaScript
I've seen lots of "our team" pages over the years, but one of the ones that stood out to me the most were those that had an interactive element to them. For me, it adds a bit of personality to the page and makes it feel more alive than a bunch of silhouettes of the directors.
Generating Colour Palettes From Images In PHP
A common web design pattern is to incorporate an image into the design of the page. This creates a tighter integration with the image and the rest of the page.
The main issue in designing a page around the image is that the colours of the page must match the image. Otherwise this creates a dissonance between the image and the styles of the site.
Validating XML Files With XML Schema Definitions In PHP
XML is a useful format for configuration, data storage, and transmitting data from one system to another. As a human readable format that can be easily read by machines it quickly gained favor in lots of different systems as a mechanism for data storage.
Creating A Character Bitmap In PHP
I was watching a video from NDC by Dylan Beattie the other day on The Story of Typography and a particular section stood out to me.
Comments
Why you're getting
NaN
: When you asknew Date(...)
to handle an invalid string, it returns aDate
object which is set to an invalid date (new Date("29-02-2012").toString()
returns"Invalid date"
). CallinggetTime()
on a date object in this state returns.works perfectly thanks
Submitted by Ravi on Fri, 10/05/2018 - 07:30
PermalinkSweet! Thank you for the information!
Submitted by Nicephorus Denisov on Fri, 09/27/2019 - 08:53
PermalinkNіce! Thanks a lot for the guide!
Submitted by Joseph Carroll on Sun, 10/06/2019 - 04:55
PermalinkThanks :)
Submitted by rüzgar on Fri, 05/08/2020 - 12:57
Permalinkit helped me a lot, very thanks...
Submitted by Yilmaz on Fri, 01/08/2021 - 18:27
Permalinkvery nice blog
Submitted by A guy on Thu, 05/13/2021 - 16:27
PermalinkAdd new comment