12h
answered One of my project subdirectories has disappeared from Eclipse PHP Explorer and refuses to reappear
12h
comment One of my project subdirectories has disappeared from Eclipse PHP Explorer and refuses to reappear
Thanks for the tip, but it didn't work either. The folder reappears, yes, but as soon as as I close and reopen the project it's missing again, so no improvement at all (I even copied the entire folder to a dedicated workspace with the same results). Anyway, what did work was upgrading Eclipse to last version (Luna), removing the project files (.settings, .classpath and .project) and creating a new project on a new workspace. Now I can close and reopen the project as many times as I want :-)
Aug
17
comment Check if a word is combo of some given symbols
I see your point. I'm about to try that :-)
Aug
10
comment Check if a word is combo of some given symbols
BTW: You'll see that in the first screen capture the exec times on the first test are considerably higher: ~320 seconds for the iterative and ~25 seconds for the recursive. That's because on that test I was using the ~10000 symbols dictionary (The one that breaks the regex; that's also why there's no regex result).
Aug
10
revised Check if a word is combo of some given symbols
added 272 characters in body
Aug
10
comment Check if a word is combo of some given symbols
I didn't notice it was running slower on ideone, but now you've pointed it out I did retest and still got the same 12x faster results (pic2: imgur.com/a/51IeS) on my dev server, but not on my production server (pic3: imgur.com/a/51IeS). This is really weird because, despite one being a VirtualBox machine and the other an EC2 instance, they have exactly the same configurations (OS and PHP version, config and updates, as well as available RAM and number of virtual cores)
Aug
10
comment Check if a word is combo of some given symbols
Thanks, I'll try that, maybe it'll work :-) About the recursive method beating the iterative, that's pretty curious: As the number of symbols in the word to test increases, the iterative method should be faster, or at least more memory efficient. I did verify it on my development server: The iterative version ran consistently faster: about 12x faster every time (Check pic1 on this album: imgur.com/a/51IeS).
Aug
10
revised Check if a word is combo of some given symbols
added 4 characters in body
Aug
10
revised Check if a word is combo of some given symbols
added 168 characters in body
Aug
10
revised Check if a word is combo of some given symbols
added 168 characters in body
Aug
10
comment Check if a word is combo of some given symbols
Forget my previous comment: Regex are shockingly fast; Unfortunately after more extensive testing I've found out there are some cases of use where the resulting regex is too long and won't compile :-( The search function suggestion you've linked was my first idea too but it was too slow. Then I came up with an iterative version of it, hoping to make it faster by avoiding recursion. It made it 12x faster but it's still too slow... I've added to my question an ideone link to my test script code to give a better idea of what I am trying to achieve: ideone.com/jgzzwa
Aug
10
comment Check if a word is combo of some given symbols
No problem. Thanks for the suggestion anyway :-)
Aug
10
comment Check if a word is combo of some given symbols
@Waleed Khan Definitely what I was looking for. Please post it as an answer so I can upvote and accept :-)
Aug
10
comment Check if a word is combo of some given symbols
Nice. I'll try that.
Aug
10
comment Check if a word is combo of some given symbols
It is not a valid solution for the problem I'm trying to solve. I'm not looking for a solution for this specific case, but combinations of any number of symbols, any number of times.
Aug
10
comment Check if a word is combo of some given symbols
yes, no problem with that
Aug
10
asked Check if a word is combo of some given symbols
Aug
8
comment Convert Runnable.run() to Callable.call() in JAVA Servlet
If that happens when you're shutting down tomcat it's somthing common and usually nothing to worry about. (Check out coderanch.com/t/616315/Tomcat/Memory-Leak-tomcat-due-threads for more info)
Aug
4
revised Convert Runnable.run() to Callable.call() in JAVA Servlet
deleted 4 characters in body
Aug
3
revised Convert Runnable.run() to Callable.call() in JAVA Servlet
added 105 characters in body
1 2 3 4 5