portalZINE@Twitter
  portalZINE TV

PHP

fgetcsv mac line endings

When using fgetcsv to parse CSV files under PHP, you will run into problems when CSV files have been created on a Mac, as line endings are incorrectly interpreted.

Use this before opening the file.

ini_set('auto_detect_line_endings',TRUE);
$handle = fopen('file','r');


portalZINE DEV > Development > PHP
Thursday, January 29, 2009 -   6301

Development

Offline Gmail

GMAIL Blog :"Today we're starting to roll out an experimental feature in Gmail Labs that should help fill in those gaps: offline Gmail. So even if you're offline, you can open your web browser, go to gmail.com, and get to your mail just like you're used to.

Once you turn on this feature, Gmail uses Gears to download a local cache of your mail. As long as you're connected to the network, that cache is synchronized with Gmail's servers. When you lose your connection, Gmail automatically switches to offline mode, and uses the data stored on your computer's hard drive instead of the information sent across the network. You can read messages, star and label them, and do all of the things you're used to doing while reading your webmail online. Any messages you send while offline will be placed in your outbox and automatically sent the next time Gmail detects a connection. And if you're on an unreliable or slow connection (like when you're "borrowing" your neighbor's wireless), you can choose to use "flaky connection mode," which is somewhere in between: it uses the local cache as if you were disconnected, but still synchronizes your mail with the server in the background. Our goal is to provide nearly the same browser-based Gmail experience whether you're using the data cached on your computer or talking directly to the server."

More


portalZINE DEV > Development
Wednesday, January 28, 2009 -   7088

Javascript

The Sitepoint reference guide has been relaunched.

The Sitepoint javascript reference guide has been relaunched.

Javascript Reference


portalZINE DEV > Development > Javascript
Wednesday, January 28, 2009 -   8387

portalZINE TV

Nathan Flutebox Lee & WanDan Knightrider Theme



portalZINE TV
Tuesday, January 27, 2009 -   2920

Random thoughts

jQuery - Are you afraid?

Many are afraid that the modern javascript frameworks like jQuery, Prototype,Mootools distort the base javascript language and moves us away from the language foundations.

Actually same applies to any programming language and its frameworks. For me it is a matter of personal taste. We are free to choose how much we use those frameworks or stay with the language itself.

I don’t choose my frameworks by how close they stay to the original programming language, but how fast they help me to reach my project goals. If some people want to philosophy about it, they are free to do so. A framework summarizing 10 steps into one is a huge benefit when doing complicated or repeating functioanlity.

For me jQuery is the ultimate tool and provides a good set of functioanlity in a rather small sized package. You can easily extend it through its plugin structure. It provides a vivid and balanced community, that also opens its doors for those that are just starting to get their hands dirty, those might just be the innovators of tomorrow.

jQuery
jQuery UI

Alexander



portalZINE > Random thoughts
Monday, January 26, 2009 -   8274


©2001-2010 portalZINE ® New Media Network