Quantcast
Channel: User Industrial - Stack Overflow
Browsing all 56 articles
Browse latest View live

Comment by Industrial on Can I overwrite a constructor in javascript?

@MaëlNison For testing purposes to be able to inject spies to catch arguments for validation

View Article



Comment by Industrial on Storing Exceptions in my webapp?

Single file + aggregator of logs seems like the best thing to do to me, two years after my question was asked.

View Article

Comment by Industrial on How does require in node.js deal with globals?

Well, if I do passwordhelper_mock = require("helpers/password"), the later on sutbbed mock will not be used. Doing global.passwordhelper_mock will however allow me to modify properties

View Article

Comment by Industrial on .hgignore per branch in mercurial?

Thank you! I'll try that out soon

View Article

Comment by Industrial on How do I sort the output of find?

Didn't know about the tee command, but it still doesn't sort properly

View Article


Comment by Industrial on How do I sort the output of find?

Sorry for not being clearer. I updated my post

View Article

Comment by Industrial on How do I sort the output of find?

+1 For your effort!

View Article

Comment by Industrial on Why should I use require.js if I still concenate all...

Instead of voting for closing, please make me understand as I do not get this concept at all

View Article


Comment by Industrial on Mantis Bug tracker API integration?

@StevenScott I do not have access to that codebase any longer I'm afraid :(

View Article


Incrementing a value with mongoose?

I have a mongoose model in my node.js application, representing invoices. I have figured most of it out already, but I really need to ensure that my invoices are numerated/incremented to be able to...

View Article

PHP: Is_numeric returns false on 0 [closed]

Is_numeric() as well as is_int() returns false if the value is 0. What can i do instead to verify that a specific value is numbers only in PHP? Are we heading straight for the Regular Expressions...

View Article

Shell script - Sudo-permissions lost over time

I've made a simple bash script that need to keep it's super-user privileges throughout the script. Unfortunately, but understandable the script looses its sudo-eleveted permissions when the sleep...

View Article

Check load on mysql database

What would be the best ways to monitor mysql performance and load, queries per second, total queries over a hour etc?

View Article


Mocking database in node.js?

How would I mock out the database in my node.js application, which in this case uses mongodb as the backend for a blog REST API ? Sure, I could set the database to a specific testing -database, but I...

View Article

Time tracking solution for Windows / Eclipse PHP

After seeing this movie and the introduction to Lapsus (http://synapticmishap.co.uk/synapticmishap/lapsuspromo/) I really felt that I had missed this feature in my own daily work. Are there any time...

View Article


Content-type not working in PHP

I have some issues with a PHP file that is not working properly. The Content-type does not get recieved by any browser at all. Firebug interprets the file as text/html instead of css. Here's the file...

View Article

Is memcached a dinosaur in comparison to Redis? [closed]

I have worked quite a bit with memcached the last weeks and just found out about Redis. When I read this part of their readme, I suddenly got a warm, cozy feeling in my stomach: Redis can be used as a...

View Article


Shell script: Ensure that script isn't executed if already running [duplicate]

Possible Duplicate: Quick-and-dirty way to ensure only one instance of a shell script is running at a time I've set up a cronjob to backup my folders properly which I am quite proud of. However I've...

View Article

PHP: Measure size in kilobytes of a object/array?

What's an appropriate way of measure a PHP objects actual size in bytes/kilobytes? Reason for asking: I am utilizing memcached for cache storage in my web application that will be used by...

View Article

Walking a table

I am using jQuery to inject values from an JSON object into an existing, empty table. What I want to do is fill up my table top-to-bottom, instead of what it does now - left to right. So how would I...

View Article
Browsing all 56 articles
Browse latest View live


Latest Images