PHP5 troubleshooting:
* Is this custom code,
or if not, what is the name of the application?
* URL of the page(s) displaying the error message (any and all)
* Filename and line number:
Most PHP errors will include a filename and a line number; this is very helpful since the file with the error is not necessarily the same as the URL
Common errors and how to solve them
The following error messages are caused by conflicts with new functions and keywords in PHP5 (since these didn't exist in PHP4, it was perfectly legal to use them in code).
Parse error: syntax error, unexpected T_ABSTRACT, expecting T_STRING
Parse error: syntax error, unexpected T_CATCH, expecting T_STRING
Parse error: syntax error, unexpected T_CLONE, expecting T_STRING
Parse error: syntax error, unexpected T_FINAL, expecting T_STRING
Parse error: syntax error, unexpected T_IMPLEMENTS, expecting T_STRING
Parse error: syntax error, unexpected T_INTERFACE, expecting T_STRING
Parse error: syntax error, unexpected T_PRIVATE, expecting T_STRING
Parse error: syntax error, unexpected T_PROTECTED, expecting T_STRING
Parse error: syntax error, unexpected T_PUBLIC, expecting T_STRING
Parse error: syntax error, unexpected T_THROW, expecting T_STRING
Parse error: syntax error, unexpected T_TRY, expecting T_STRING
These messages will all be followed by a filename and line number.
* Quick Fix: none
* Check for: an updated version of the application, if it's not one they wrote themselves.
* Permanent Fix: rename the function/variable/constant to something that won't conflict with PHP built-in functions. Suggestions: add username or application's name to the beginning of the function or variable (this must be done to every occurrence of the function or constant, not just the place where the error message occurs).
The following are caused by some PHP5 functions handling parameters differently than the PHP4 versions:
Warning: array_merge() [function.array-merge]: Argument #1 is not an array
* Quick fix: Put casts in the array_merge call. Example:
$var = array_merge('testo', array(1,2,3,4));
becomes
$var = array_merge((array)$testo, array(1,2,3,4));
* Check for: an updated version of the application, if available.
* Permanent Fix: Track down all the code referring to array_merge and initialize variables to arrays before passing them in to array_merge. Example:
$data = array(1,2,3,4);
$result = mysql_query('SOME QUERY THAT RETURNS NO RESULTS');
$testo = mysql_fetch_row($result);
$newdata = array_merge($data, $testo);
The code above will throw an error in PHP5, because $testo is not an array. The proper fix for this is to ensure that $testo is always an array, like so:
$data = array(1,2,3,4);
$result = mysql_query('SOME QUERY THAT RETURNS NO RESULTS');
$testo = mysql_fetch_row($result);
if(!is_array($testo)) { $testo = array($testo); }
$newdata = array_merge($data, $testo);
The XSLT module is no longer available in PHP5; code that requires it may display errors like this:
Fatal error: Call to undefined function xslt_create()
* Quick Fix: none
* Check for: an updated version of the application, if available.
* Permanent Fix: rewrite the code to use the XSL module instead.
For more possibilities, see http://php.osuosl.org/manual/en/migration5.incompatible.php
Find Files that are Modified Today (or Since Certain Time Ago) in Unix
To find all files that was modified since a specific time ago (i.e an hour ago, a day ago, 24 hours ago, a weeks ago and so on) in Unix environment, the find command will come in handy. The command syntax is:
To find all files modified in the last 24 hours (last full day) in current directory and its sub-directories:
find . -mtime -1 -print
Flag -mtime -1 option tells find command to look for files modified in the last day (24 hours). Flag -print option will cause find command to print the files’ location. -print can be replaced with -ls if you want a directory-listing-type response.
To find all files modified in the last 24 hours (last full day) in a particular specific directory and its sub-directories:
find /directory_path -mtime -1 -print
The command is basically the same with the earlier command, just that now you no need to cd (change directory) to the directory you want to search.
To find all files with regular file types only, and modified in the last 24 hours (last full day) in current directory and its sub-directories:
find /directory_path -type f -mtime -1 -print
To find all files that are modified today only (since start of day only, i.e. 12 am), in current directory and its sub-directories:
touch -t `date +%m%d0000` /tmp/$$
find /tmefndr/oravl01 -type f -newer /tmp/$$
rm /tmp/$$
The first command can be modified to specify other date and time, so that the commands will return all files that have changed since that particular date and time.
In order to force a reinstall / recompile of Scalar::Util you must do:
cpan> force install Scalar::Util
Additionally Compress
Zlib had errors - The output of a install COmpress
Zlib shows what to do, however it may not catch your eye..
o conf make_install_arg UNINST=1
force install Compress::Zlib
o conf make_install_arg UNINST=0
I was able to fix this by:
locale -a
(if it complains just ignore it now)
Look for something that exists on your system, and then use it as follows:
mine has
en_US.utf8
vim /etc/defaults/locale
delete all the contents and add
LANG=en_US.utf8
Saved it and
locale -a
(you should not get an error now)
Using CPAN. Alternatively, you can use CPAN to install the modules:
From the root prompt on your server, invoke the CPAN shell:
# perl -MCPAN -e shell
Once the Perl interpreter has loaded (and been configured), you can install modules with: install MODULENAME.
The first thing you should do is upgrade your CPAN:
cpan> install Bundle::CPAN
Once it is completed, type:
cpan> reload cpan
Now, enter the following command to retrieve all of the required modules:
cpan> install DateTime
:: Next Page >>
This is the center of blogging for all of fruxants. Every one of the bloggers at Fruxant has his/her own blog, though. Just look for the right link.
| Next >
| Mon | Tue | Wed | Thu | Fri | Sat | Sun |
|---|---|---|---|---|---|---|
| << < | > >> | |||||
| 1 | 2 | 3 | 4 | 5 | 6 | 7 |
| 8 | 9 | 10 | 11 | 12 | 13 | 14 |
| 15 | 16 | 17 | 18 | 19 | 20 | 21 |
| 22 | 23 | 24 | 25 | 26 | 27 | 28 |
| 29 | 30 | 31 | ||||
Google presentó una herramienta que permite a los usuarios de Gmail crear su propia página personal. El servicio llamado Google Pages esta basado en la tecnología de publicación Ajax (Asynchronous JavaScript And XML) y permite en pocos segundos poner una página online, aunque con algunas limitaciones.
senderodelpeje.blogspot.com
vs
felipe-calderon.org
segúna Alexa
By means of You're It! I found this interesting paper, that analyzes tagging patterns on del.icio.us.
An interesting disgression by Dave Pollard.
38 Articles by Howard Rheingold
Jornada sobre blogs, sindicación, podcasts, Ajax, APIs, redes sociales, folksonomías, internet móvil...
México tiene al menos tres oportunidades para ascender del 7° lugar del mercado offshore outsourcing de TIC: Select
Programa de Secretaría de Economía administrado por la Fundación México-Estados Unidos para la Ciencia para dar apoyo a Empresas Mexicanas de Alta Tecnología.
Proximamente: Inauguración TechBA Austin el día 5 de diciembre, 2005
Interesante Tutorial:
Conoce como puede estar lista tu empresa para el Mercado Global con el Tutorial "Getting Ready for the Global Market"
By Matt Marshall
Mercury News
When Alberto Herrera started his own tech company in Tijuana two years ago, he was confident he had the knowledge to take on the risk.
His team had worked at Panasonic's office in the Mexican border city and had the technical expertise to craft a new kind of wireless sensor network -- one that can be used for hotel room key cards and turn on the heating system once a customer has entered his or her room.
But Herrera didn't have contacts with venture capitalists and didn't know how to spiff up a business plan.
That changed last year, once his company, Medida, started working with the Mexico-Silicon Valley Technology Business Accelerator (TechBA for short) in San Jose, funded by an annual $6 million grant from the Mexican government.
TechBA assigned a special adviser to Medida, to mentor it in Silicon Valley's arcane ways.
The help is part of an effort by the Mexican government to jump-start its technology economy -- in part through better connections to leading tech centers like Silicon Valley and their entrepreneurial cultures and practices.
Mexico's domestic information technology and software market totals more than $3 billion a year and has 2,095 companies, according to its economics ministry.
Mexico exports about $400 million in technology services each year to the United States, about half in business process outsourcing, half in software outsourcing. But Mexico wants to do more than supply its northern neighbor with a cheap source of labor, says Jorge Zavala, chief executive of TechBA. ``The question is, how do we switch from low value-added services and move into information technology?''
The goal of TechBA, he said, is to help create Mexican companies that own their own technology, and to export $5 billion in technology and other services by 2012.
In Herrara's case, TechBA appointed a mentor -- Adolpho Nemirosky, an Argentine entrepreneur who has worked in the valley's semiconductor and telecom industries for 13 years. He had co-founded a venture-backed company, Xtreme Logic, and was eager to help others. He is paid a stipend by TechBA.
His help has already gone a long way. Nemirosky taught Herrera how to make an elevator pitch -- that is, a two- to five-minute synopsis of his company, tailored for impatient investors. He advised him to focus on specific areas, such as sensor systems for hotels and for entertainment software. And he took Herrera to meet with some professors at the University of California-Berkeley, where Herrera was able to secure a technology adviser.
To top it off, Nemirosky groomed Herrera to present to venture capitalists Tuesday evening at an event hosted by TechBA and an angel group called Silicom Ventures. Besides the investors, a live audience of more than 200 people looked on. And Herrara performed well enough that three of four venture capitalists invited him to talk with them further. ``I'm very pleased with him,'' Nemirosky said of his protege.
Currently, 40 companies participate in the TechBA program, and the group recently announced its first tangible success: Mexican company JackBe. The company, which has created Web sites for Sears and Citigroup's Mexico operations, raised $6.5 million in venture capital funding in November -- the first Mexican tech company to raise venture capital from the United States, according to TechBA's Zavala.
There are other signs of late that the U.S. venture capital market is waking to not only to Mexico, the world's ninth largest economy, but also to the fast-growing Hispanic market in this country.
Sausalito venture firm Sienna Ventures is now raising $100 million for its newest fund to focus on the Hispanic market.
Herrera's company, Medida, meanwhile, is expanding in the United States. It has $1 million in revenue after a year's work, 10 employees and an office in San Jose, where employees can drop in from Tijuana. Silicon Valley is a good place to develop contacts for customers, said Herrera.
``We've gained visibility that would otherwise be very hard to get,'' he said.
One of his customers is XaviX, which makes interactive sports games and also has offices in San Jose. Medida provides XaviX wireless sensors for its newest fly-fishing game -- where the sensor detects when game players flick their wrists and feeds information back to the game.
Mexico is just the latest country trying to develop a network here in Silicon Valley.
Gadi Behar, managing director of Israeli-focused Silicom Ventures, has reached out to groups from Canada, Argentina, Brazil, the Netherlands and Hawaii, offering help such as crash courses on Silicon Valley's business culture. ``They all want access to Silicon Valley,'' agreed Michelle Messina, a public relations professional who has also helped companies in these groups.
Contact Matt Marshall at 408-920-5920 or via his blog at www.SiliconBeat.com
© 2006 MercuryNews.com and wire service sources. All Rights Reserved.
http://www.siliconvalley.com
A nice article Sebastian found and sent.
Leyendo el blog de webmaster.com.mx me encontre una liga a este sitio que es un bonito ejemplo de AJAX porque es la implementación de una Wiki usando AJAX y todo en un sólo archivo HTML.
(Technorati Tags: AJAX wiki del.icio.us Tags: ajax wiki)
De más accesibles a más importantes
http://web.cs.wpi.edu/~kfisler/Courses/2135/C04/
http://www.cs.utah.edu/classes/cs3520-mflatt/
http://www.cs.utah.edu/~mflatt/courses.html
http://www.cs.brown.edu/~sk/Work/Teaching/
http://www.cs.indiana.edu/l/www/classes/b521/
By CowboyNeal on ridin'-the-storm-out
OSS_ilation writes "Analysts and users agree -- if the layoff rumors at Novell prove true sometime soon, SuSE Linux has nothing to fear. Over at SearchOpenSource.com the word is that the popular SuSE Linux operating system has both the community support and technical chops to weather any personnel-related storms that may be lingering on the horizon. However, the point is also made that should Novell go south, there are those who believe SuSE could prove to be an appealing acquisition target."
David Heinemeier Hansson (Ruby on Rails) explains and tries to tackle on the confussion many people have between language and pattern application.
Good reading if you believe that Java is the only scenario in which patterns are usable.
An interesting view of the way Rails is getting momentum.
Creo que deberíamos familiarizarnos con este material antes de embarcarnos más a fondo en la aventura de dar servicios alrededor de Novell.
Finding Signals in the Noise
Digg, Memeorandum, Findory, Blogniscient, and other startups promise to manage news overload on the Web.
Few would dispute that we live in an age of information overload. In the last few years alone, blogs have increased the torrent of information each day to unmanageable levels.
This would explain, then, why a corresponding torrent of startups has surfaced recently to help us filter, manage, and control this flood of information. Some rely on insightful algorithms that understand popularity to filter the news, while others rely on the preferences of readers.
There aren't yet enough quality pages to satisfy advertisers' hunger for a blog presence