Join bettercodes.org

13 04 2010

b e t t e r c o d e s . o r g

Better Coders

bettercodes.org’s mission is to empower and engage software developers to share their ideas und thoughts. Connect them with like-minded people and allow collaboration between them. Members of the bettercodes community will find useful information and powerful tools more easily and are able to run and manage their coding projects together with friends from all over the world. And of course, to have fun!

Our aim is to provide the best possible range of services to coders free of charge. Following the motto »from coders for coders« we want to offer a platform where interested people can participate in the developments of the platform features in a 100 percent open source mode. We are not only inviting all coders to use the platform, we also ask all coders to contribute with their ideas to improve the platform itself.

You are bettercodes.org!





Mysql — trics

24 02 2010
  • To set value of auto-increment column (manually)
    ALTER TABLE <table_name> AUTO_INCREMENT = <value>
    e.g. ALTER TABLE userDetails  AUTO_INCREMENT = 1000;




How to upload PDF file with CodeIgniter

21 01 2010

Open <root_directory>/system/application/config/mimes.php file

Change value of ‘pdf’ element of $mimes array

$mimes = array( ‘hqx’   =>      ‘application/mac-binhex40′,
‘cpt’   =>      ‘application/mac-compactpro’,
‘csv’   =>      array(‘text/x-comma-separated-values’, ‘text/comma-separated-values’, ‘application/octet-stream’, ‘application/vnd.ms-excel’, ‘text/csv’, ‘application/csv’, ‘application/excel’, ‘application/vnd.msexcel’),
‘bin’   =>      ‘application/macbinary’,
‘dms’   =>      ‘application/octet-stream’,
‘lha’   =>      ‘application/octet-stream’,
‘lzh’   =>      ‘application/octet-stream’,
‘exe’   =>      ‘application/octet-stream’,
‘class’ =>      ‘application/octet-stream’,
‘psd’   =>      ‘application/x-photoshop’,
‘so’    =>      ‘application/octet-stream’,
‘sea’   =>      ‘application/octet-stream’,
‘dll’   =>      ‘application/octet-stream’,
‘oda’   =>      ‘application/oda’,
‘pdf’   =>      array(‘application/pdf’, ‘application/x-pdf’),

To

‘pdf’   =>      array(‘application/pdf’, ‘application/x-pdf’, ‘application/x-download’,’application/x-download’, ‘binary/octet-stream’, ‘application/unknown’, ‘application/force-download’),





Hello world!

19 01 2010

open source development community and to raise the standards and proficiency of the software programming members – starting with the PHP Community








Follow

Get every new post delivered to your Inbox.