Visual list of all installed fonts with respective pangram phrase?

“Open the Fonts dialog (Windows->Dockable Dialogs->Fonts) Right click any font in the list Choose ‘Render Font Map’ In the dialog that appears, leaving the ‘Filter (regexp)’ blank will list all your installed Fonts.” Source: http://gimpforums.com/thread-font-examples This forum thread clearly lists the steps for rendering a sample of each font in your GIMP library. I hope that this … Read more

What is a slug?

A slug is a part of the URL when you are accessing a resource. Say you have a URL, such as the one below, that displays all of the cars in your system: When you would want to reference a particular car in your system, you would provide the following URL: Notice how the URL … Read more

List of All Locales and Their Short Codes?

The importance of locales is that your environment/os can provide formatting functionality for all installed locales even if you don’t know about them when you write your application. My Windows 7 system has 211 locales installed (listed below), so you wouldn’t likely write any custom code or translation specific to this many locales. Edit: The … Read more

How do I make a redirect in PHP?

Summary of existing answers plus my own two cents: 1. Basic answer You can use the header() function to send a new HTTP header, but this must be sent to the browser before any HTML or text (so before the <!DOCTYPE …> declaration, for example). 2. Important details die() or exit() Why you should use die() or exit(): The Daily WTF Absolute or relative URL … Read more

How to use mysqli_query() in PHP?

I have to admit, mysqli_query() manual entry doesn’t contain a clean example on how to fetch multiple rows. May be it’s because the routine is so routine, known to PHP folks for decades: In case you want to print the column titles, you have to select your data into a nested array first and then use keys … Read more

How do I make a redirect in PHP?

Use the header() function to send an HTTP Location header: Contrary to what some think, die() has nothing to do with redirection. Use it only if you want to redirect instead of normal execution. File example.php: Result of three executions: Resuming — obligatory die()/exit() is some urban legend that has nothing to do with actual PHP. It has nothing to do with client “respecting” the Location: header. Sending a header does not … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)