Comment by Industrial on How do I access this Javascript property?
Would you mind telling me where I could find an explanation on how this works - I've never seen this syntax before
View ArticlePHP: Iterating through array?
I want a function that searches through my array, and returns all the children to a specific node. What is the most appropriate way to do this? Will recursion be necessary in this case?I have...
View ArticleExtending ArrayObject in PHP properly?
Problem: I am trying to extend PHP's ArrayObject as shown below. Unfortunately I can't get it to work properly when setting multi-dimensional objects and instead an error thrown as I have the strict...
View ArticleMove node in Nested Sets tree
I am working on an adjacency list with mySQL and can not (atleast by myself) do the thinking needed to make a decent enough query to be able to move a set of nodes (together with eventual children...
View ArticleRewriting nginx for pushState-URL's
I am trying to get nginx to work with my pushState-based URI handling that backbone.js manages for me in an Javascript app. Right now accessing URI's with one level, eg. example.com/users works well,...
View ArticleEvent binding clicks with backbone.js & jQuery
I need to bind two events in my backbone.js-view in order to toggle a menu. The idea is that if a button with the id #toggler is clicked the menu appears and any click outside the #menu element will...
View ArticleHow to store the contents of select box to a variable?
I have a <select> field on my HTML page that is populated with a few options. With the help of AJAX, I replace those options in the select field with more appropriate options.How can I store the...
View ArticleCheck if string is serialized in PHP
I am in the middle of building a cache layer for the Redis DB to my application and I have come to the point where's it's about to take care of arrays.I wonder if there's any good (high performance!)...
View ArticleAnswer by Industrial for Handling white screen of death in PHP
I've found out, since the time of my question, that nothing seems to ensure that errors are always outputted with PHP, which seems to throw white screens here and there. Regardless of PHP's...
View ArticleHandling white screen of death in PHP
After debugging a CodeIgniter application that were installed into a new development environment, I have started to freak out when seeing white screens with nothing more available. I have been able to...
View ArticlemySQL: Subquery to array?
I am working on a slight complex (at least for me) mySQL query containing a subquery and it isn't going to well to be honest.SELECT `products`.`id`, `product`.`price`, ( SELECT `value` FROM...
View ArticleComment by Industrial on Keeping errors from appearing to the user in node.js
That did it. I had to put the error handling block after my routes though, which was kind of unexpected.
View ArticleComment by Industrial on Any library for visualizing module dependencies in...
github.com/hughsk/colony ?
View ArticleWhen to use which mysql partitioning model
Ok guys, just starting out with partitioning some tables in mySQL. There's a couple of different ways describing this, but what I cant find is a more practical approach. - Which type of data does each...
View ArticlePHP header location-redirect doesn't work - why? [duplicate]
Here's my file. I want to make it redirect, but nothing happens. To check out what is going on, I added an echo before the header part.It neither throws an error or redirect to index.php. What is...
View ArticlePrevent two users from editing the same data
I have seen a feature in different web applications including Wordpress (not sure?) that warns a user if he/she opens an article/post/page/whatever from the database, while someone else is editing the...
View Article