Freeware Mindmaping, UML alternatives
Mar 23rd
Some freeware UML and mindmapping alternatives to IBM’s Rational Rose and Microsoft Visio are the following:
- FreeMind ( http://freemind.sourceforge.net/wiki/index.php/Main_Page)

- ArgoUML ( http://argouml.tigris.org/ )

- Poseidon ( http://gentleware.com/downloadcenter.0.html)

- Kivio for Unix/Linux ( http://www.koffice.org/kivio/)
- Dia ( http://www.gnome.org/projects/dia )
- StarUML ( http://staruml.sourceforge.net/en/ )
- Umbrello ( http://uml.sourceforge.net/ )
- Violet ( http://www.horstmann.com/violet/ )
- TeeTree ( http://www.steema.com/products/teetree/office/overview.html )
- EDrawFree ( www.freewarezoom.com/archives/edraw-free-mind-map )
- Diagram Designer ( http://meesoft.logicnet.dk/DiagramDesigner/ )
Disable notifications in Magento
Mar 22nd
Browsing the internet I found a very useful tutorial about disabling notifications in Magento.
A short tutorial on how to block the “New Magento Version” notifications in the Magento admin without modifying the core packages.
Create a new package under app/code/local , for this example lets make a “MyCompany” package. If you already have an existing package for your magento mods you can use that one but you will have to change all references to MyCompany in the following code.
You can read the whole tutorial here
Magento – Free shipping over certain value of cart
Mar 11th
Here is how to create a solution for offering free shipping if the value of the cart is over a certain price value in Magento web stores.
In the Admin module go to Promotions > Shopping Cart Price Rules and then press Add new rule button.
Here you have to set some general options regarding this rule. Let’s provide a descriptive name, set the status to Active and enable it for the customer groups you preffer.
Next, in the Conditions tab, we have to set the conditions when the shopping cart price rule should become active.
Let’s say we want to offer free shipping if the cart is over 200 euros : we must create the rule ‘Subtotal equals or greater than 200′
In the Actions tab screen, we must specify what happens when the price rule is met. We can set options such as percentage or fixed discounts etc. In our case, we are not interested in this, so we will set the percentage to 0% and we will look at the “Free shipping” option. The default rule allows all products, so if we live it this way the rule will be applied to all products in the shopping cart.
Now all we have to do is save the rule and will become active.
Increase the quality of photos on Magento
Mar 9th
I was recently confronted with problems of quality photos on Magento.
At first, I vainly sought an option to resolve this with the Magento backend… I finally get to the obvious: this is not possible (at least until version 1.3).
I then studied the source code to determine how the framework manages and generates mainly the different sizes of pictures (on the page list, thumbnails, etc..) products.
I discovered that Magento uses GD2, with a quality setting to 80% by default (not changeable via configuration, back-office or XML). A value 80/100 quality is good in most cases. Nevertheless in e-commerce have known that a very good picture quality can make the difference.
The idea is to push the compression quality (jpeg) to 90%, the possible options are:
1. modify the PHP code found above: No, you should never directly edit the code from the core of Magento! (just as one shouldn’t cross the streams.)
2. create a module to administer the value of the compression quality via the back office: interesting, but reusable too long to achieve. I pass! ![]()
3. override the code: easy, fast and clean: the solution I have chosen
Change the compression quality photos Magento:
1.
Step 1
Copy the file “/ lib/Varien/Image/Adapter/Gd2.php” to “/ app/code/local/Varien/Image/Adapter/Gd2.php” by creating the missing directories if necessary.
2.
Step 2
Open the file Gd2.php (copy, not original) at about line 80 and substitute:
call_user_func($this->_getCallback('output'), $this->_imageHandler, $fileName);
by:
if ($this->_fileType === IMAGETYPE_JPEG) {
call_user_func($this->_getCallback('output'), $this->_imageHandler, $fileName, 90);
} else {
call_user_func($this->_getCallback('output'), $this->_imageHandler, $fileName);
}
In the code above, I opted for 90, but you can change this value from 0 to 100 quality.
3.
Step 3
Finally, don’t forget to empty the cache of images via System> Cache Management.
That was simple, effective and reusable on any project, from the time you work with images in jpeg format (which format most common with digital photography) and your server supports GD2.
Original post on Narno.com
Sending a simple text email php script
Jan 18th
We begin with simple email. It use basic function, mail().
To understand how to send a simple email, you can look following code:
<?php // Email address destination and subject $to = 'example@website.com'; $subject = 'Test Email '; // Define the headers we want passed. //Note that they are separated by \r\n $headers = "From: me@mysite.com\r\nX-Mailer: php"; // Your message here: $body = "Hi there!.\n\nHello World!\n\nBest regards,\n\nTester."; // Send the email @mail($to, $subject, $body, $headers); ?>
Syntax highlighting for PHTML and INC in Dreamweaver
Nov 18th
To use HTML syntax highlighting in Adobe Dreamweaver for .PHTML and .INC files i found the following solution:
Steps:
1: Locate Extensions.txt and MMDocumentTypes.xml files. Depending on what operating system you use.
2: Open Extensions.txt and add PHTML to lines 1 and 16;
[code]HTM,HTML,SHTM,SHTML,HTA,HTC,XHTML,STM,SSI,JS,AS,ASC,ASR,XML,XSL,XSD,DTD, XSLT,RSS,RDF,LBI,DWT,ASP,ASA,ASPX,ASCX,ASMX,CONFIG,CS,CSS,CFM,CFML,CFC,TLD, TXT,PHP,PHP3,PHP4, PHP5, JSP,WML,TPL,LASSO,JSF,VB,VBS,VTM,VTML,INC,JAVA, EDML,PHTML,MASTER:All Documents[/code]
3: Add PHTML to MMDocumentTypes.xml
To make the phtml files editable, you need to remove from an instance in the Dreamweaver preferences. Open Dreamweaver and go to:
Edit -> Preferences -> File Types, now remove phtml and inc in from ‘Open in Code View’.
Close Dreamweaver then restart it. Dreamweaver should now open phtml and inc files!


