http://www.rssgraffiti.com/
I just discovered this today and am writing this post only to check if it will be posted automatically to my Facebook page.
2011-12-16
2011-10-21
Netbeans 7.0.1, SVN (Subversion) 1.7, CYGWIN and TortoiseSVN
Environment: MS Windows
I upgraded the CYGWIN, and the version of SVN upgraded to 1.7
Here are my discoveries (things to do are marked in bold)
I upgraded the CYGWIN, and the version of SVN upgraded to 1.7
$ svn --versionsvn, version 1.7.0 (r1176462) compiled Oct 11 2011, 10:36:16Everything went smooth with "svn upgrade" of the folders.
$ svn help upgrade: Upgrade the metadata storage format for a working copy.usage: upgrade [WCPATH...]
NetBeans, however, gave me an hour of headache.
Here are my discoveries (things to do are marked in bold)
- By default, NetBeans uses internal SVN client and not the on specified in Options - SVN command line.
- To use the command line client, there is an option:
-J-DsvnClientAdapterFactory=commandline - Adding that option to NetBeans config file did not help. Had to add this as a parameter to the shortcut launching NetBeans
- CYGWIN does not like being called from NetBeans. First, it complains about MS-DOS paths (C:\blah-blah), and when it is fixed by setting CYGWIN=nodosfilewarning, still produces some weird error messages
- http://tortoisesvn.net/ worked perfectly, however. Do not forget to install the command-line client (which was unchecked in the default setup). You still have to run NetBeans with that -J switch.
2011-08-15
Dropbox: Get Shareable Link to a folder
New Dropbox accounts do not have the "Shared Model" enabled by default. To be able to share a file or folder with anyone by providing a link, you need to enable sharing by clicking this link (once you logged in):
https://www.dropbox.com/enable_shmodel
For more information, please read this page:
https://www.dropbox.com/help/167
https://www.dropbox.com/enable_shmodel
For more information, please read this page:
https://www.dropbox.com/help/167
2011-08-08
PHP on FreeBSD : Segmentation fault: 11 (core dumped)
PHP started dumping core after I upgraded MySQL to 5.5.
Everything worked fine, but a core was dumped every time, probably at the exit.
The solution was to rebuild PHP with the
Later, I found a confirmation in this post
Everything worked fine, but a core was dumped every time, probably at the exit.
The solution was to rebuild PHP with the
"LINKTHR Link thread lib (for threaded extensions)"
option.Later, I found a confirmation in this post
2011-07-08
Uncaught TypeError: Cannot read property 'form' of undefined
In my code, that JavaScript error was caused by missing "name" attribute of an "input" tag, having jQuery.validation class "required".
For example:
input class="required" id="agree" type="checkbox" value="yes"
produces the error
input class="required" id="agree" type="checkbox" value="yes" name="agree"
works fine
For example:
input class="required" id="agree" type="checkbox" value="yes"
produces the error
input class="required" id="agree" type="checkbox" value="yes" name="agree"
works fine
2011-06-24
Installing SphinxSearch with libstemmer from FreeBSD ports
Environment: Sphinx 0.9, FreeBSD
Problem:
Sphinx port has libstemmer options commented out in Makefile. With automatic upgrades, it loses stemming for anything except for default EN and RU.
Procedure of rebuilding the port with libstemmer
# (become root)
cd /usr/ports/textproc/sphinxsearch
Create file Makefile.local with this line:
CONFIGURE_ARGS+= --with-libstemmer
make clean
make
fetch http://snowball.tartarus.org/dist/libstemmer_c.tgz
cd work/sphinx-*/
tar zxvf ../../libstemmer_c.tgz
cd ../..
make
make deinstall
make reinstall
make clean
Do not forget to rebuild index if you did not use libstemmer before
Problem:
Sphinx port has libstemmer options commented out in Makefile. With automatic upgrades, it loses stemming for anything except for default EN and RU.
Procedure of rebuilding the port with libstemmer
# (become root)
cd /usr/ports/textproc/sphinxsearch
Create file Makefile.local with this line:
CONFIGURE_ARGS+= --with-libstemmer
make clean
make
fetch http://snowball.tartarus.org/dist/libstemmer_c.tgz
cd work/sphinx-*/
tar zxvf ../../libstemmer_c.tgz
cd ../..
make
make deinstall
make reinstall
make clean
Do not forget to rebuild index if you did not use libstemmer before
2011-06-21
__autoload and Zend
Environment: PHP 5.3.6, Zend Framework 1.11.6
This problem occurred when I needed to build a mixed environment where the existing code was "pure PHP" and new code was based on Zend Framework.
The "pure PHP" code's __autoload function stopped working as soon as Zend application ran.
Apparently, when there is a call to spl_autoload_register, __autoload is ignored.
The solution was to rename __autoload to OldAutoLoad and call:
spl_autoload_register('OldAutoload');
Note: after that, the OldAutoload was called first and then Zend's autoload. In order to let OldAutoload ignore Zend classes, I replaced require_once calls with @include_once.
This problem occurred when I needed to build a mixed environment where the existing code was "pure PHP" and new code was based on Zend Framework.
The "pure PHP" code's __autoload function stopped working as soon as Zend application ran.
Apparently, when there is a call to spl_autoload_register, __autoload is ignored.
The solution was to rename __autoload to OldAutoLoad and call:
spl_autoload_register('OldAutoload');
Note: after that, the OldAutoload was called first and then Zend's autoload. In order to let OldAutoload ignore Zend classes, I replaced require_once calls with @include_once.
Subscribe to:
Posts (Atom)