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 )
-
Rename a Branch with Git
Description:We need to rename a branch using Git.Solution:This works of course only on local branches, but it should be enough. Read more
Posted on 17 June 2013 COMPUTING -
Remove the So Called Police Virus, Or uCash Scheme
Description:The “Police Virus” is a trojan or a ransomware that installs on the computer unknowingly, and on the computer power-on it blocks the computer with... Read more
Posted on 08 May 2013 COMPUTING -
Send Array Values from PhP Form to JavaScript
Description:Having a PhP form, we need to manipulate in JavaScript an object that depends on the form input.Solution:The best way to do it is to use an encoded... Read more
Posted on 12 April 2013 COMPUTING -
Reversing an Array in PhP
Description:Having an array, how to easily do to reverse the order of the elements.Solution:PhP offers an out-of-the box solution to this issue. Read more
Posted on 26 March 2013 COMPUTING -
Add Line Break in PDF Generated from HTML Without Fix Width
Description: By creating a PDF from HTML if you use tables and you want the table cells to flow easily not depending on the width of a specific cell, a long tex... Read more
Posted on 31 January 2013 COMPUTING -
Fixing SQL Errno: 150
Description: On table altering, SQL or phpMyAdmin throws an 150 error, with a message like “Error on rename of ‘./tables/#sql-efc_1′ to ‘. Read more
Posted on 08 January 2013 COMPUTING -
2012 in Review
The WordPress.com stats helper monkeys prepared a 2012 annual report for this blog. Here’s an excerpt: 600 people reached the top of Mt. Everest in 2012. This... Read more
Posted on 05 January 2013 COMPUTING -
Basic Git Branch Operations: Create, Update, Delete
Description: Basic Git version control operations regarding branches. Solution: Create branch: >git checkout -b branches/new_branch Fetch changes: >git... Read more
Posted on 12 November 2012 COMPUTING -
Send E-mail with Undisclosed Recipients
Description: For privacy purposes, it’s often required to send a mass e-mail message without wanting one recipient to know about the identities of the others. Read more
Posted on 07 November 2012 COMPUTING, TECH -
Format Number with Decimals Without Rounding
Description: Trying to get a precise number of decimal in a number results most of the times in a rounding of the number. Both round() and number_format()... Read more
Posted on 31 October 2012 COMPUTING -
301 and 302 Redirect, Differences and Implementation
Description: Is there any difference between 301 and 301 redirects ? Solution: Practically, there is limited difference between the two. Read more
Posted on 31 October 2012 COMPUTING -
Convert StdClass Objects to SOAP Compliant Objects
Description: Having an obtained StdClass Object, we require to change it into a SOAP structure object or Array compliant. Solution: Converting a StdClass... Read more
Posted on 29 October 2012 COMPUTING -
Add Form with Zend Framework
Description: Add a working form in Zend view with method, elements and action. Solution: Adding a form with Zend Framework is pretty straight forward. Zend has... Read more
Posted on 17 October 2012 COMPUTING -
Update Database Table Depending on Result from SELECT with CASE Clause
Description: How to update a database table depending on a query on another or several tables ? Solution: If you want to make a script that does this, it’s... Read more
Posted on 04 October 2012 COMPUTING -
Add Characters at the End of Each Line in Notepad ++
Description: Add a comma (,), or period(.) at the ned of each row in Notepad ++ from a column of elements. Solution: Addign a character in any position of a... Read more
Posted on 28 September 2012 COMPUTING -
Find Duplicate Values in Database Table
Description: Detect fields that have duplicate values in a database table. Solution: For finding duplicate values, the COUNT condition can be used, specifying... Read more
Posted on 26 September 2012 COMPUTING -
Use Adapter with Zend_Db
Description: Return a selection of database table fields using the Zend_Db adapter with Zend Framework Solution It’s easier to create an adapter of the... Read more
Posted on 14 September 2012 COMPUTING -
Rewrite Links with Htaccess
Description: Rewrite or redirect links insite a web application. Solution: Redirection is simple using htaccess. Just create a file named . Read more
Posted on 14 September 2012 COMPUTING -
Get Current and Past Month with Zend Date
Description: Return current and previous months in Zend Framework, considering passing into a new year as well. Solution: Zend Framework, through Zend_Date()... Read more
Posted on 13 September 2012 COMPUTING -
Send E-mail with Attachments in Zend Framework
Description: Send an e-mail containing attachments with Zend Framework. Solution: Zend offers an easier solution for sending e-mail with attachements than... Read more
Posted on 31 August 2012 COMPUTING