$ => Array (1)
(
| ['0'] => Array (3)
| (
| | ['0'] = String(5) "12.56"
| | ['1'] = String(2) "12"
| | ['2'] = String(2) "56"
| )
)
How to install mbstrings:
- log in as root to your SSH
- fire off these commands:
1.yum install php-mbstring
2. echo 'extension=mbstring.so' >> /usr/local/lxlabs/ext/php/etc/php.ini
3. /etc/init.d/lxadmin restart
- restart your vps (optional)
Note: this was tested on my VPS (centos-5-i386-lxadmin)
The type signature for `qwerty' lacks an accompanying binding
It seems that this errors appears when you have a data type definition but no corresponding function definition. For example
Status: Connection attempt failed with “EAI_NONAME - Neither nodename nor servname provided, or not known” -- FileZilla (FTP client)
If you're getting this error, chances are you're using the wrong hostname. Remember that when restoring a CPanel backup into a new account, your hostname, login and password will also be from the old backup. (Unless an employee of a hosting account changed the hostname for you.)
Dear readers, I present some of the most useful functions to operate on arrays.
Please, comment :)
Some of the more obvious ones.
I'm starting to do some programming in Haskell for my classes. Therefore the need for a good Haskell editor has emerged... I have just found a really neat editor, it's called NotePad++. What I like about this editor is the ability to select from a number of computer languages, so you have a nice color highlighting/coloring for most computer languages.
I'm pretty sure it's not the only good thing about this editor.
1.
2.
This function outputs the most basic path, meaning: node/
i18n_get_normal_path takes a path alias as an argument.
3.
Problem: "Show that if each element in a group is its own inverse then the group is abelian.
That's an easy one.
ab = e(ab)e = bb(ab)aa = b(ba)(ba)a = beea = ba
Problem: "Prove that a finite monoid in which the cancellation law holds is a group. "
To prove it, we must show that for all a there is an inverse element.
We know that the monoid in question is finite so:
such that an = e where e is the identity element.
This stems from the fact that monoids are closed under their operation.
an= e implies an-1a= e. So the inverse element is an-1