Archive
This is a Javascript version of the PHP function: is_array.
This is a Javascript version of the PHP function: ord.
This is a Javascript version of the PHP function: chr.
This is a Javascript version of the PHP function: str_pad.
This is a Javascript version of the PHP function: explode.
This is a Javascript version of the PHP function: addslashes.
This is a Javascript version of the PHP function: stripslashes.
This is a Javascript version of the PHP function: wordwrap.
This is a Javascript version of the PHP function: crc32.
This is a Javascript version of the PHP function: is_numeric.
This is a Javascript version of the PHP function: nl2br.
This is a Javascript version of the PHP function: implode.
This is a Javascript version of the PHP function: strtolower.
This is a Javascript version of the PHP function: strtoupper.
This is a Javascript version of the PHP function: ucwords.
This is a Javascript version of the PHP function: str_replace.
This is a Javascript version of the PHP function: str_rot13.
This is a Javascript version of the PHP function: soundex.
This is a Javascript version of the PHP function: strip_tags.
This is a Javascript version of the PHP function: ltrim.
This is a Javascript version of the PHP function: rtrim.
This is a Javascript version of the PHP function: include.
This is a Javascript version of the PHP function: include_once.
This is a Javascript version of the PHP function: utf8_decode.
This is a Javascript version of the PHP function: utf8_encode.
This is a Javascript version of the PHP function: array_combine.
This is a Javascript version of the PHP function: array_pop.
This is a Javascript version of the PHP function: array_push.
This is a Javascript version of the PHP function: array_search.
This is a Javascript version of the PHP function: str_repeat.
This is a Javascript version of the PHP function: end.
This is a Javascript version of the PHP function: count.
This is a Javascript version of the PHP function: empty.
This is a Javascript version of the PHP function: array_chunk.
This is a Javascript version of the PHP function: ucfirst.
This is a Javascript version of the PHP function: array_diff.
This is a Javascript version of the PHP function: in_array.
This is a Javascript version of the PHP function: array_key_exists.
This is a Javascript version of the PHP function: array_diff_assoc.
This is a Javascript version of the PHP function: reset.
This is a Javascript version of the PHP function: array_shift.
This is a Javascript version of the PHP function: array_sum.
This is a Javascript version of the PHP function: array_unique.
This is a Javascript version of the PHP function: array_unshift.
This is a Javascript version of the PHP function: checkdate.
This is a Javascript version of the PHP function: date.
This is a Javascript version of the PHP function: levenshtein.
This is a Javascript version of the PHP function: md5.
This is a Javascript version of the PHP function: htmlentities.
This is a Javascript version of the PHP function: number_format.
This is a Javascript version of the PHP function: rand.
This is a Javascript version of the PHP function: sprintf.
This is a Javascript version of the PHP function: strlen.
This is a Javascript version of the PHP function: strpos.
This is a Javascript version of the PHP function: strrpos.
This is a Javascript version of the PHP function: printf.
This is a Javascript version of the PHP function: serialize.
This is a Javascript version of the PHP function: isset.
This is a Javascript version of the PHP function: setcookie.
This is a Javascript version of the PHP function: sha1.
This is a Javascript version of the PHP function: shuffle.
This is a Javascript version of the PHP function: strrev.
This is a Javascript version of the PHP function: strstr.
This is a Javascript version of the PHP function: substr_count.
This is a Javascript version of the PHP function: file_get_contents.
This is a Javascript version of the PHP function: file.
This is a Javascript version of the PHP function: array_keys.
This is a Javascript version of the PHP function: array_values.
This is a Javascript version of the PHP function: stristr.
This is a Javascript version of the PHP function: preg_quote.
This is a Javascript version of the PHP function: array_change_key_case.
This is a Javascript version of the PHP function: array_count_values.
This is a Javascript version of the PHP function: array_diff_key.
This is a Javascript version of the PHP function: count_chars.
This is a Javascript version of the PHP function: get_class.
This is a Javascript version of the PHP function: array_fill.
This is a Javascript version of the PHP function: array_pad.
This is a Javascript version of the PHP function: abs.
This is a Javascript version of the PHP function: defined.
This is a Javascript version of the PHP function: range.
This is a Javascript version of the PHP function: strcmp.
Licensing
Since the project is really kicking off and we're almost at 100 ported functions, I thought it was probably time to think about licensing. So I did a little bit of research, and I think the MIT license might be what we're looking for.
This is a Javascript version of the PHP function: array_flip.
This is a Javascript version of the PHP function: array_map.
This is a Javascript version of the PHP function: array_reverse.
This is a Javascript version of the PHP function: strripos.
This is a Javascript version of the PHP function: mktime.
This is a Javascript version of the PHP function: array_product.
This is a Javascript version of the PHP function: array_rand.
This is a Javascript version of the PHP function: compact.
This is a Javascript version of the PHP function: md5_file.
This is a Javascript version of the PHP function: sha1_file.
I tried to do some Image Magick with PHP recently on an Ubuntu Feisty machine, and even though I had the required package: 'php5-imagick' installed, and I updated my php.ini with imagick.so, I kept getting the error Class 'Imagick' not found. This is how I eventually fixed it.
This is a Javascript version of the PHP function: substr.
This is a Javascript version of the PHP function: strcasecmp.
This is a Javascript version of the PHP function: stripos.
This is a Javascript version of the PHP function: strnatcmp.
This is a Javascript version of the PHP function: str_split.
This is a Javascript version of the PHP function: str_ireplace.
This is a Javascript version of the PHP function: split.
This is a Javascript version of the PHP function: join.
This is a Javascript version of the PHP function: bin2hex.
This is a Javascript version of the PHP function: parse_str.
This is a Javascript version of the PHP function: is_null.
This is a Javascript version of the PHP function: is_object.
This is a Javascript version of the PHP function: is_string.
This is a Javascript version of the PHP function: intval.
This is a Javascript version of the PHP function: http_build_query.
This is a Javascript version of the PHP function: unserialize.
This is a Javascript version of the PHP function: get_included_files.
This is a Javascript version of the PHP function: require.
This is a Javascript version of the PHP function: require_once.
This is a Javascript version of the PHP function: floatval.
This is a Javascript version of the PHP function: print_r.
This is a Javascript version of the PHP function: array_reduce.
This is a Javascript version of the PHP function: strpbrk.
This is a Javascript version of the PHP function: call_user_func_array.
This is a Javascript version of the PHP function: html_entity_decode.
Let's say you want your local restricted users to be able to restart specific services. On linux you'd probably type visudo. In Windows I found, you have to dig a little deeper into the system and really do your research. I needed several sites, programs and articles. So I thought it might be useful to others if I'd bundle all the required information in one place. Here it is.
Sometimes when digging real deep into Windows like I recently had to, you need to have the Windows SID (Security Identifier) of a local user. I wasn't able to find any standard way of obtaining this info, so I wrote this little VBScript. Might help some people, might not. Putting this online anyway ;)
Thanks to a lot of extra effort by Michael White (http://crestidg.com) there now is a namespaced version of PHP.JS available for your coding pleasure.
I used to use Dean Edwards Javascript Packer a lot to compress my Javascript sources. Libraries of 100kB could easily shrink to 30kB and that saves load times & bandwidth. A good writeup by Julien Lecompte made me realize that there were better ways.
This is a Javascript version of the PHP function: echo.
This is a Javascript version of the PHP function: ip2long.
This is a Javascript version of the PHP function: long2ip.
I've been programming a lot with Quanta which is a leightweight kdevelop based IDE. It did the trick for quite some time, but recent developments in my coding life like SVN brought me on a Quest for my new ultimate PHP IDE.
Hello good people. Our little project is going strong and thanks to Felix Geisendörfer there are a couple of new developments that I want to share with you. I'll limit this article to SVN though.
This is a Javascript version of the PHP function: round.
This is a Javascript version of the PHP function: sizeof.
This is a Javascript version of the PHP function: urldecode.
This is a Javascript version of the PHP function: urlencode.
This is a Javascript version of the PHP function: strchr.
This is a Javascript version of the PHP function: var_export.
This is a Javascript version of the PHP function: dirname.
This is a Javascript version of the PHP function: array.
This is a Javascript version of the PHP function: htmlspecialchars.
This is a Javascript version of the PHP function: htmlspecialchars_decode.
This is a Javascript version of the PHP function: is_int.
This is a Javascript version of the PHP function: rsort.
This is a Javascript version of the PHP function: sort.
In PHP, sessions can keep track of authenticated in users. They are an essential building block in today's websites with big communities and a lot of user activity. Without sessions, everyone would be an anonymous visitor.
In system terms, PHP sessions are little files, stored on the server's disk. But on high traffic sites, the disk I/O involved, and not being able to share sessions between multiple webservers make this default system far from ideal. This is how to enhance PHP session management in terms of performance and shareability.
This is a Javascript version of the PHP function: krsort.
This is a Javascript version of the PHP function: ksort.
This is a Javascript version of the PHP function: time.
This is a Javascript version of the PHP function: array_walk.
This is a Javascript version of the PHP function: array_walk_recursive.
This is a Javascript version of the PHP function: create_function.
Since a couple of months now, I've been involved with PEAR as a contributor. Contributing to PEAR means adhering to the PEAR Coding Standards. Their standards have actually been thought over, and using them for projects (also outside of PEAR), leads to consistency, and makes it easier for many developers to understand each other's code.
Code can be scanned and checked for conformity using the PHP CodeSniffer package.
It took me a while to get rid...
Working with trees
When working with tree data structures you often need to craft them in different ways. PHP offers a lot of functions to change the shape of arrays, but often they only go 1 level deep. Trees can count an almost infinite number of levels. Hence we need recursive replacements for our beloved array functions.
Working with trees
When working with tree data structures you often need to craft them in different ways. PHP offers a lot of functions to change the shape of arrays, but often they only go 1 level deep. Trees can count an almost infinite number of levels. Hence we need recursive replacements for our beloved array & string functions.
This is a Javascript version of the PHP function: max.
This is a Javascript version of the PHP function: min.
Recently I've been experimenting with Virtual machines for my development environment. The goal was to create a Virtual Machine that resembles our main production server, and have that Virtual Machine mount my workspace project directory as it's DocumenRoot. This way, my code could be served & tested after every save in my IDE. So no more building / committing delays. And all I could mess up was a Virtual Machine.
I didn't know what software to start with and just tried the bunch. Here's my ever so subjective comparison 'chart' on Virtual Machine software.
This is a Javascript version of the PHP function: strncasecmp.
This is a Javascript version of the PHP function: acos.
This is a Javascript version of the PHP function: acosh.
This is a Javascript version of the PHP function: asin.
This is a Javascript version of the PHP function: asinh.
This is a Javascript version of the PHP function: atan.
This is a Javascript version of the PHP function: atanh.
This is a Javascript version of the PHP function: ceil.
This is a Javascript version of the PHP function: cos.
This is a Javascript version of the PHP function: cosh.
This is a Javascript version of the PHP function: exp.
This is a Javascript version of the PHP function: floor.
This is a Javascript version of the PHP function: log.
This is a Javascript version of the PHP function: pi.
This is a Javascript version of the PHP function: pow.
This is a Javascript version of the PHP function: sin.
This is a Javascript version of the PHP function: sinh.
This is a Javascript version of the PHP function: sqrt.
This is a Javascript version of the PHP function: tan.
This is a Javascript version of the PHP function: tanh.
In another article I've told you about how I would like to see one rule removed from the PEAR Coding Standards. This rule would allow developers a bit more flexibility, while staying true to the convention.
This is a Javascript version of the PHP function: fmod.
This is a Javascript version of the PHP function: deg2rad.
This is a Javascript version of the PHP function: rad2deg.
This is a Javascript version of the PHP function: dechex.
This is a Javascript version of the PHP function: hexdec.
This is a Javascript version of the PHP function: decbin.
This is a Javascript version of the PHP function: decoct.
This is a Javascript version of the PHP function: base_convert.
This is a Javascript version of the PHP function: bindec.
This is a Javascript version of the PHP function: octdec.
Good testing will result in better code. If you have to wait endlessly for on SVN commits, uploads or compile steps, you will simply produce less inventive code. This has to do with: patience, creativity flow, will, and of course time. Constantly being interrupted breaks concentration. If there's one thing I've really learned, it's invest in a good testing environment. Rapid review of code results will pay off (I promise).
So it's OK to spend some time on learning a good IDE, and another trick to improve the speed & quality of development, is to virtualize your production pl...
This is a Javascript version of the PHP function: getrandmax.
This is a Javascript version of the PHP function: hypot.
This is a Javascript version of the PHP function: is_finite.
This is a Javascript version of the PHP function: is_infinite.
This is a Javascript version of the PHP function: is_nan.
This is a Javascript version of the PHP function: lcg_value.
This is a Javascript version of the PHP function: mt_getrandmax.
This is a Javascript version of the PHP function: mt_rand.
This is a Javascript version of the PHP function: is_bool.
This is a Javascript version of the PHP function: sleep.
Hi folks. As you may or may not know, I have a love/hate relationship with my IDE: Eclipse PDT. For times and times we get along well. But once every while it gets messed up, and it's a pain to straighten it out again. Or at least, it was.
One error that has bugged my Eclipse PDT for a long time, was org.eclipse.emf.ecore.util.EcoreEMap $DelegateEObjectContainmentEList. A vague error, not much to go on, not many hits on google either. Turned out it had to do with the version of my Java Runtime Environment I was using.
This is a Javascript version of the PHP function: log10.
This is a Javascript version of the PHP function: get_html_translation_table.
Hi there. I'm making use of RSS feeds more than I did before. This has to do with Google Reader - which is very neat - and a lack of time. Having sites keep ME up to date, is way more relaxed than scouring the web myself. So I figured I might want to return the favor and make my blog a bit more accessible by introducing two new feeds.
Recently I needed ogg123 on an Ubuntu server to convert some media. Naturally, I wanted to use aptitude to install it, but I didn't know what package it was in. Now, you can always google of course, but you can also use system commands to find the package you need.
This is a Javascript version of the PHP function: array_slice.
This is a Javascript version of the PHP function: file_exists.
This is a Javascript version of the PHP function: filesize.
This is a Javascript version of the PHP function: array_fill_keys.
This is a Javascript version of the PHP function: array_filter.
This is a Javascript version of the PHP function: array_merge.
This is a Javascript version of the PHP function: array_merge_recursive.
This is a Javascript version of the PHP function: chunk_split.
Writing code requires two important things: creativity & discipline. The creativity to create the unknown, unexplored, exciting parts of software. And the discipline to create the dull & all-too-well-known parts of software / documentation.
You may come up with new ways (or use frameworks) to reduce repetitive work. Effectively beating discipline with creativity. But boring stuff will still always be there in some form. And on days when creativity is low, you may need to tap into that jar of discipline so you can still be productive, by doing things you never feel like.
But every now & then, there is a day when bot...
This is a Javascript version of the PHP function: constant.
This is a Javascript version of the PHP function: define.
This is a Javascript version of the PHP function: chop.
This is a Javascript version of the PHP function: quotemeta.
This is a Javascript version of the PHP function: get_headers.
This is a Javascript version of the PHP function: getdate.
This is a Javascript version of the PHP function: microtime.
This is a Javascript version of the PHP function: each.
This is a Javascript version of the PHP function: gettype.
This is a Javascript version of the PHP function: is_double.
This is a Javascript version of the PHP function: is_float.
This is a Javascript version of the PHP function: is_integer.
This is a Javascript version of the PHP function: is_long.
This is a Javascript version of the PHP function: is_scalar.
Following Alan Pope and Christer Edwards, I too felt the need to log everything I that I setup right after an Ubuntu Desktop install. It ranges from customizing the user interface to setting up a programmers IDE. It's mainly for future reference by myself, but may bring you on a couple of ideas as well.
This is a Javascript version of the PHP function: array_splice.
This is a Javascript version of the PHP function: func_get_arg.
This is a Javascript version of the PHP function: func_get_args.
This is a Javascript version of the PHP function: func_num_args.
This is a Javascript version of the PHP function: get_defined_functions.
This is a Javascript version of the PHP function: strspn.
This is a Javascript version of the PHP function: class_exists.
This is a Javascript version of the PHP function: method_exists.
This is a Javascript version of the PHP function: property_exists.
This is a Javascript version of the PHP function: strtotime.
This is a Javascript version of the PHP function: call_user_func.
This is a Javascript version of the PHP function: get_defined_vars.
This is a Javascript version of the PHP function: die.
This is a Javascript version of the PHP function: exit.