EDDYMENS

Published a year ago

Puppeteer: Fix Timeout Issue

By default Puppeteer will timeout and stop loading a page if it takes too long. To fix this you will have to specify the maximum time it needs to wait for the page to load before timing out. The...

Published a year ago

Matching Markdown And HTML Headings Using Regex (JS)

The Javascript code below matches the different types of headings in a Markdown string. This includes HTML headings since Markdown is a superset of HTML. The different types of headings the script matches are: Markdown hash based heading: Thus , , , , etc. A...

Published a year ago

How To Save Command Line Outputs To A File

During web development, you will typically have a local server running. For example, in Laravel you will run to start an HTTP server. With the server running, each time you load up a page you get an influx of logs within your terminal, thankfully all error and warning logs that show up wi...

Published a year ago

Regex For Validating Emails|explained

Validating an email address at first glance seems like an easy task but just thinking about what qualifies to be used as the name section of the email or what should be considered a valid TLD could lead to complex implementations. To combat these issues software developers employ simple ...

Published a year ago

How To Render A String As A Blade Template (Laravel 9)

Laravel 9 came with a lot of goodies and one of them is the ability to render a view from a blade template stored as a string. This could come from a database or dynamically generated from code. Anyways this is something you can achieve with the undocumented method but requires pai...