Pages

Thursday, July 21, 2011

The Best PHP Frameworks of 2011

I've found a good article concerning the best PHP frameworks of 2011. It worth the time of reading it!

http://davidjconnelly.wordpress.com/2011/07/03/the-best-php-framework-of-2011/

Yann

Wednesday, July 20, 2011

Mac -=- Recursively delete .DS_Store files

Hi!

Mac OS X writes .DS_Store in every folders. If you want to delete theses files, you could use this command:


rm -rf `find . -type f -name .DS_Store`

Tuesday, July 19, 2011

Friday, July 1, 2011

ExtJS -=- Error: HTML Parsing Error: Unable to modify the parent container element before the child element is closed (KB927917)

Hi!

If you are developing an application using the technologies mentioned in the title and have come across the operation aborted error in internet explorer (http://support.microsoft.com/default.aspx/kb/927917) then continue reading

Unlike Firefox and Safari - Internet explorer requires the DOM to be fully loaded before it can provide a peaceful execution of ExtJS code - you will face operation aborted errors otherwise.

Consider the following scenario

I declare a DIV container for an ExtJS based tab panel and immediately afterwards provide the required code.

..... ..... .....



Assuming more HTML markup follows after , this code will produce random operation aborted errors in internet explorer 6 and up. Sometimes it will load just fine while other times it will err out while you being able to see your page rendered - you will be unable to interact with the page and will be redirected to the default error page once you will click the ok button on the popup dialog box.

This error is not specific to ExtJS - this is a general bug with internet explorer and will occur whenever a DOM node is tried to be manipulated before the whole DOM structure has been read in by the browser. For example you will also face this issue with google-web-toolkit.

You can fix this issue by using the following approach

Leave all your containers where they are

Move all your javascript/ExtJs/GWT code just before then end of BODY tag.

Ideally you should consider moving all your code into JS files to speed up page loads due to caches.

Wednesday, June 29, 2011

PostreSQL -=- Find all row count for every tables

In order to find all row count for every tables in a database, you can type the following SELECT

SELECT schemaname,relname,n_live_tup 
  FROM pg_stat_user_tables 
  ORDER BY n_live_tup DESC;

Tuesday, June 21, 2011

Subversion -=- Can't find a temporary directory

When trying to checkout or update my code, I'm getting this error:

Cannot checkout from svn: Can't find a temporary directory: Error string not specified yet

We got this error because the is no remaining space on the drive. After freeing some space on the drive, everything goes well.

Tuesday, June 14, 2011

EDI & EDIFACT Document Mapping

Hi!

Here's a mapping between commons EDI & EDIFACT transactions.


TRANSACTION SET/DOCUMENT ANSI SET EDIFACT
PRODUCT/PRICING TRANSACTIONS
Price Sales Catalog 832 PRICAT
Price Authorization Acknowledgement/Status 845 ATHSTS
Specification/Technical Information 841 PRDSPE
Request For Quotation 840 REQOTE
Response To Request For Quotation 843 QUOTES
Electronic Bid Form 833 --
ORDERING TRANSACTIONS
Purchase Order 850 ORDERS
Purchase Order Acknowledgement 855 ORDRSP
Purchase Order Change 860 ORDCHG
Purchase Order Change Acknowledgement 865 ORDRSP
Order Status Inquiry 869 ORSSTA
Order Status Report 870 ORDREP
Contract Award 836 --
MATERIALS MANAGEMENT TRANSACTIONS
Planning Schedule/Material Release 830 DELFOR
Shipping Schedule 862 DELJIT
Production Sequence 866 --
Ship Notice/manifest (ASN) 856 DESADV
Report of Test Results 863 QALITY
Material Safety Data Sheet 848 --
Contract Award 836 --
SHIPPING/RECEIVING TRANSACTIONS
Shipment Information (Bill of Lading) 858 IFTMCS
Receiving Advice 861 RECADV
Non-conformance Information-Disposition Transaction, Cause/Correction 842 NONCON
INVENTORY MANAGEMENT TRANSACTIONS
Inventory Inquiry/Advice 846 INVRPT
Product Transfer and Resale Report 867 SLSRPT
Product Transfer Account Adjustment 844 --
Response To Product Transfer Account Adjustment 849 --
FINANCIAL TRANSACTIONS
Invoice 810 INVOIC
Freight Invoice 859 IFTMCS
Payment order/Remittance Advice (EFT) 820 REMADV
Lockbox 823 --
Financial Information Reporting 821 --
CONTROL TRANSACTIONS
Functional Acknowledgement 997 CONTRL
Application Advice 824 BANSTA
Trading Partner Profile 838 PARTIN