directory-structure

Where can I get an enterprise directory structure?

I want to be able to load up an Active Directory server with a realistic medium-to-large enterprise directory structure (groups, users) so that I can run performance tests on an application which makes use of that data. In my fantasy world, some big company would export their (anonymized) AD structure in a way I could import directly. ...

What are the benefits of sticking with maven's default project directory structure?

Simply put, if you're using maven, should you treat the maven layout as the gold standard, or should you convert your layout to fit your tooling (WASD, myEclipse, RAD, etc.)? Realizing that maven is configurable and you can override the defaults in the Super POM, I'm attempting to determine if I should change the layout to support spe...

C++ project source code layout

One of the popular way to organize project directory is more or less like this: MyLib +--mylib_class_a.h mylib_class_a.cpp mylib_library_private_helpers.h mylib_library_private_helpers.cpp MyApp +--other_class.h other_class.cpp app.cpp app.cpp: #include "other_class.h" #include <myl...

Thousands of images, how should I organize the directory structure? (linux)

I am getting thousands of pictures uploaded by thousands of users on my Linux server, which is hosted by 1and1.com (I believe they use CentOS, but am unsure of the version). This is a language agnostic question, however, for your reference, I am using PHP. My first thought was to just dump them all in the same directory, however, I rem...

how to prevent users from creating, deleting, renaming directories in Linux?

I am a bit lost with Linux file and directory permissions. What I would like to do is have one user be able to create, delete, and rename directories, while other users are not able to do so, but they should be able to read and write to the directories as well as traverse them. So group 'storage' has access to directory /workspace, tho...

How do I have spaces in a MSBuild WebProjectOutputDir?

I am trying to call MSBuild from a command line. Everything was working fine when I was using a path that had no spaces, but now I have a path that has spaces and the command is failing. Command (works): "C:\Windows\Microsoft.NET\Framework\v3.5\MSBuild.exe" /t:Rebuild "C:\Projects\myProject.csproj" /p:OutDir=c:\temp\deploy\funAndGam...

OO Design in Rails: Where to put stuff

I'm really enjoying Rails (even though I'm generally RESTless), and I enjoy Ruby being very OO. Still, the tendency to make huge ActiveRecord subclasses and huge controllers is quite natural (even if you do use a controller per resource). If you were to create deeper object worlds, where would you put the classes (and modules, I suppose)...

separate directory for iphone resources

iPhone resources by default show up in a "Resources" group that's visible in the main xcode project view. I want to be able to put them into an actual, physically separate directory at some arbitrary location on my machine decided by me. Interestingly enuf, the default "Classes" group is an actual, physical directory but the "Resources" ...

where to put initialization files in windows

I am looking for an acceptable starting point for placing applications settings in a Windows machine. I have more than one application. for personal reasons, I wouldn't like to use the registry: I prefer plain text initialization files (.ini). I also don't feel like holding the files in the same directory as the executables, the ideal...

Document Directory in iPod Touch and iPhone

Hello, I'm designing an application that reads data to the iPod touch/iPhone that is sent to it via multicast sockets with UDP and I need to store it as a file in a document directory. Does that exist on on the iPhone or iPod Touch? I know there is NSFileHandle and NSFileManager, which is what I plan on using, to take care of reading and...

How to [recursively] Zip a directory in PHP?

Directory is something like: home/ file1.html file2.html Another_Dir/ file8.html Sub_Dir/ file19.html I am using the same PHP Zip class used in PHPMyAdmin http://trac.seagullproject.org/browser/branches/0.6-bugfix/lib/other/Zip.php . I'm not sure how to zip a directory rather than just a file. Here's what I hav...

How can I use the /home directory on Mac OS X

I've got a Mac that I can run either the Leopard (10.5) or Snow Leopard (10.6) version of OS X on. I'm using it to do web development/testing before publishing files to my production host. On the production host my site's doc root is under the home directory (e.g. /home/stimulatingpixels/public_html) and I'd like to duplicate that loca...

Directory structure for C++ library

I am working on a c++ library. Ultimately, I would like to make it publicly available for multiple platforms (linux/windows at least), along with some examples and python bindings. Work is progressing nicely, but at the moment the project is quite messy, built solely in and for VC++ and not multi platform at all. Therefore, I feel a cle...

Is my source/development file hierarchy a good one?

I'm looking to organise my source code file hierarchy. I'm a C# (.NET) developer and come from an only Windows background (no Linux/Mac). I plan on using Subversion for source control. This is what I've come up with: (from subversion view) Root of Subversion Repository CompanyName /ProjectCodeName 1---/Branches 1---/Ta...

How do I stop .htaccess Rewrite redirecting into the html folder?

I'm hosting on MediaTemple. I would like www.rhapsodicmusic.com to redirect to www.rhapsodicmusic.co.uk so that www.rhapsodicmusic.com/anypageordirectory will go to www.rhapsodicmusic.co.uk/anypageordirectory. I have the following code in my .htaccess RewriteEngine On RewriteBase / RewriteCond %{HTTP_HOST} ^([^.:]+\.)*rhapsodicmusic\...

Where do I put static files for GWT app? war folder or public folder?

I have some JavaScript files, a main HTML file, a main CSS file, and some CSS files that get imported into the main one. I understand that I can put static files in two places: a) the 'war' folder; or b) the 'public' folder. Where is the best place to put my static files? Are the two locations treated differently? Is there a 'best prac...

How to arrange the source code of an application made with SQLAlchemy and a graphic interface?

I'm developing an application using SQLAlchemy and wxPython that I'm trying to keep distributed in separated modules consisting of Business logic, ORM and GUI. I'm not completely sure how to do this in a pythonic way. Given that mapping() has to be called in orther for the objects to be used, I thought of putting it on the __init__.py ...

Is it possible to use wildcards in the .htaccess file for mass moves?

I am reworking my website, going to be renaming a lot of directories, and need a simple way to write my .htaccess redirects for all of those pages. I am hoping for a solution that does not include a very long list of files. My .htaccess file is huge as it is. Thanks in advance! Lady Aleena ...

What is the correct way to use the stat() function to test if a DIRENT is a directory or a file?

I'm having some trouble with the 'if(S_IFDIR(stbuf.st_mode))' line. Is this the correct way to test for a directory to recurse into? The function at the moment seems to do it right for 1 or 2 loops and then fails and segmentation faults. I've tried the following and probably more as the condition. S_ISDIR(st_mode) ((st_mode & ST_IFMT) ...

Anyone know anything about Directory issues with Flash headers?

I have a flash header and every time that I try to make sub directories with that same header in it it will not show up, but my footer and right ad template will show up (everything but the header). Any suggestions? Thanks! ...