I am currently creating a javascript refactoring framework in clojurescript. Because Javascript is a dynamic language and has no static type info I've used an points-to analysis to infer type info from the source code. Now I'm looking for good refactorings that people using Javascript need. For example I already have the Rename and Encapsulatye property which will create a local variable instead of properties of an objects and also create the necessary getters/setter methods.
Now I am wondering what kind of other refactorings the Javascript developpers need?

Thanks in advance.

I was wondering how for example drop box or a NAS is coping with the different file systems on different operating systems when sharing a folder?
I was reading more about the different file systems and noticed that they ol have their size limits or they all safe their files in a different way. But how is it possible to have shared network folder between these different operating systems and their file systems.

Because for example a FAT32 file system cannot have files larger than 4GB. But what if a user with a NTFS file system shares a folder with somebody with a FAT32 file system. And the one with NTFS puts a file of 5GB in that folder. What will happen?
Is there something special that will happen ? Or how do for example a NAS or dropbox cope with this ?


I need to write some code for an application that uses a camera with an gigabit ethernet connection. The company who made the camera has provided header files to read images from the camera. The files are : ImageLib.h , PvApi.h and PvRegIo.h.
I wrote some code in Snap.cpp and when i compile it this way :
[CODE]g++-4.4 -Wl,--rpath -Wl,./ -O3 -fno-strict-aliasing -fexceptions -I/usr/include -D_x86 -D_LINUX -Wall -Wno-unused-function pkg-config --cflags opencv -D_REENTRANT Snap.cpp -o Snap -lpthread -lrt -Bdynamic -lm -lc -lPvAPI pkg-config --libs opencv[/CODE]

Everything works.

But when i try to put this in an .pro file it won't compile anymore. The reason i want to put this in a .pro file is because the main project has an .pro file so when I succeed in creating a .pro file for this example I can just copy these line into my main project's .pro file to use this code.

My current .pro file for the example i am trying looks like this :
CONFIG += link_pkgconfig
PKGCONFIG += opencv
SOURCES += Snap.cpp
LIBS += -lrt
LIBS += -Bdynamic
LIBS += -lm
LIBS += -lc

But when I do "qmake Snap.pro" and then "make" it wont compile.
Can anyone help plz?

perfect, thank you!

I'm making a project with OpenCV about tracking. But what I want is the ability to let the user import his own tracking algorithms. Is there some way that i can check in a specified folder if there are new algorithms added and how can I include them in my code? So i want to check if there are other algorithms added and 'load' them in to my code and execute them. How can I do this?

The algorithms always have the same amount of parameters.

Thanks! it works:)

So here is the problem. This won't compile. It always gives an error like :
d.cpp:24: error: ‘string’ was not declared in this scope
d.cpp:24: error: expected ‘,’ or ‘;’ before ‘{’ token
Compilatie failed.

[CODE=C]#include <iostream>

include <string>
include <stdlib.h>
include <time.h>

int d(int amount, int dots){ // d(X,Y) notation.

    /* initialize random seed: */
    srand (time(NULL));

    int sum = 0;
    int temp = 0;
    for (int i = 0; i <amount ; i++)
            temp = rand() % dots + 1;
            sum = sum + temp;
    return sum;

int d(int dots){
int temp = d(1, dots);
return temp;

int extract_d(string s){
int stringsize = s.size();
int eindwaarden[3] = {0,0,0};
int waarde = 0;
int eerstekeer = 0;

for (int count = 0; count < stringsize; count++){
    if(s[count] == 100 || s[count] == 43){
    else if(eerstekeer == 0){
        eindwaarden[waarde] = s[count] - '0';
    else {
        eindwaarden[waarde] *= 10;
        eindwaarden[waarde] += s[count] - '0';

return (d(eindwaarden[0],eindwaarden[1])) + eindwaarden[2];


And i don't really see the problem, i included string right?
Please help....