Akahgy
MY BLOGS
-
Justbugs: Coding Solutions in a Snapshot
http://justbugs.wordpress.com/
Offering quick, short and objective solutions to nagging everyday coding bugs.
LATEST ARTICLES ( 63 )
-
WordPress Query Posts My Meta Data
Description:On a WP powered site, if you add custom meta information, you might want to query the posts that have a particular meta information, like a custom... Read more
Posted on 27 April 2017 COMPUTING -
Nginx Index Inside Conditional Location
Description:On a server that delivers multiple sites, I need to set up the location of a request depending on the host. For example I need to serve different... Read more
Posted on 21 October 2016 COMPUTING -
Facebook Instant Articles Feed Not Being Crawled
Description:After installing in WordPress one of the Facebook Instant Articles plugins, the feed can be seen in browser at https://www.example.com/feed/fb/ but... Read more
Posted on 16 September 2016 COMPUTING -
Check Database Tables Size in Mb
Description:How can I check the size of my database tables and receive a human readaable result? This can be useful when deciding a storage architecture or a... Read more
Posted on 13 January 2016 COMPUTING -
WordPress Proper Query_posts with Real Results
Description:WordPress query_posts() function is pretty powerful, and easy to read out. However, you need to know what you’re querying for, as very often the... Read more
Posted on 18 July 2014 COMPUTING -
Retrieve Coordinates When Click on Image
Description:HTML forms allow the use of an image as a submit button, and the action triggers the send of the x and y coordinates of the click relative to the... Read more
Posted on 10 July 2014 COMPUTING -
Change Button Text Value on HTML Input Type File
Description:Browsers render by default “Choose file” (or similar, depending on browsers and locale settings) when an input of type “file” is... Read more
Posted on 10 July 2014 COMPUTING -
Move WordPress Database
Description:Moving an existing WordPress database is the easiest solution for changing website domain, duplicating content and so on, when we don’t want to... Read more
Posted on 08 July 2014 COMPUTING -
Grant Privileges with MySql
Description:Grant privileges on a number of databases containing the same prefix.Solution:The tricky part is to take care of the right quotes to use, in... Read more
Posted on 13 May 2014 COMPUTING -
Ignore File Permissions with Git
Description:Running a git status command shows modified files, with only changed file permissions. This can be due the IDE, for example PHPStorm is known for... Read more
Posted on 02 May 2014 COMPUTING -
Query Posts in WordPress
Description:Querying through the posts can be useful for creating special container pages. Returning the posts you require is only a matter of using the right... Read more
Posted on 29 April 2014 COMPUTING -
Secure Copy Files Between Hosts
Description:Use scp (secure copy) to copy data between different servers, from local or remote hosts.Solution:Syntax for secure copying is easy, you just need t... Read more
Posted on 23 April 2014 COMPUTING -
Create Symlink
Description:A symlink (or symbolik) link allows creating an alias for a file or folder in a different folder with a different name. Read more
Posted on 22 April 2014 COMPUTING -
Run PHP Compatibility Checks for Upgrading Language Version
Description:In order to bring the PHP version up to date, we need to run compatibility test on our projects.Solution:The CodeSniffer tool that can be installed... Read more
Posted on 09 April 2014 COMPUTING -
Requirements for Sending E-mails from PHP
Description:We need to send e-mails directly from a PHP script.Solution:First, in php.ini the smtp port should be set to 25, but this is usually by default. To... Read more
Posted on 02 April 2014 COMPUTING -
Substr() Cuts in the Middle of & Symbol
Description:In “Read more” segments, you often need to cut the text to a length and add ‘…’ at the end. This can be a bit tricky when the limit falls on a... Read more
Posted on 01 April 2014 COMPUTING -
Create Linux Shortcut for Commands
Description:Having long or medium commands we use pretty often, it comes in handy to create commands aliases in Linux.Solution:An alias can describe a command o... Read more
Posted on 31 March 2014 COMPUTING -
Install Compass and Sass on Linux Machine with Ruby
Description:Compass offers a highly simplified way of writing style sheets. Basically users can create sass files, that can share style information, and then... Read more
Posted on 12 March 2014 COMPUTING -
Load Different Config Files in in WordPress Single Implementation
Description:Having multiple databases on the same implementation of WordPress, you need to select the proper config file before running a selected script from... Read more
Posted on 11 March 2014 COMPUTING -
Remove Remote Branch with GIT
Description:Having pushed a wrongly extended branch to origin, or you just don’t need to have a branch both locally and remote.Solution:Locally, deleting the... Read more
Posted on 07 August 2013 COMPUTING