common

How can I get the common ancestor directory for two or more files in Cocoa/Obj-C?

I have a bunch of files, either NSStrings or NSURLs (it doesn't matter; they are, for the most part, interchangeable), and I need a way to find the common ancestor directory. Does anyone know how to do this? ...

Common Dialog Browser

I am working in a project intended for I need to provide Job number in front of the file name. To do that I need to track the Click event on Save/Open button on the Common dialog. If I could then I could provide Job Number in front of the filename and then could send message to save the file. How Could I detect if we click on the Save/O...

Common bottom layout in all the tabs of TabHost in Android?

Hi, I have a TabHost with 4-5 tabs. I want to have a similar bottom for all the tabs. Is there any way we can add a bottom to all the tabs? Or do I need to place the xml code in every layout file. Please let me know if any one has the solution. Regards Sunil ...

Reducing unnecessary same values in Class member variables ....

class A { public int a; public int c; } i will create 10 instances from A.Then i will create 15 instances from A again... go on. first 10 instance will have same value for a variable and next 15 instances will have again same value for a.But I don't mean that both group has same values for a .Problem is create same a value 10 times i...

CPL and Subclasses

Two questions really, I'm fairly confident about the first but not sure on the second. Firstly: If I write a subclass of a class from a library released under the CPL, do I also need to release this subclass under the CPL? Secondly: If I copypaste some code from a CPL library, then make reasonably substantial modifications to the code,...

Shared data in base class in asp.net

Hi, I have a set of aspx pages which are made of up usercontrols. Each usercontrol inherits from a base class. In that base class I want to put some common data objects (via EF) that I need access to in my user controls. How can I do this efficiently so that each user controls accesses the same class instance or copy of the data? Th...

Source code directories: "common" and "include"?

I've noticed that some sources have common and/or include as sub-folders. I am talking about C/C++ sources in particular. What are they supposed to contain? ...

Is it common practice to maintain a 'Available Accommodations' table in a reservation system?

I'm maintaining a reservation's system for a holiday park. I was wondering if it is common practice to keep a Available Accommodations table which could look like this: Acc AvailableFrom AvailableTo 1 7/1/2010 7/31/2010 2 7/8/2010 7/15/2010 3 7/15/2010 7/20/2010 Because I think it is easier ...

mediawiki common css

Hi, I installed Mediawiki on our web server and at the moment the design is lacking a bit. I am not satisfied with the layout of my tables. In short they are ugly. I took a look a wikipedia tables and they are using the class="wikitable" in the table declaration. After some research I found the page http://www.mediawiki.org/wiki/Media...

Common Log format bytes - access log : Clarification

I thought I knew this, but am confused :( Need some clarification on it - In the CLF format (access log for httpd, tomcat, jboss, weblogic etc etc), what does the "bytes" field indicate ? Is it the bytes transferred from the server to the client or client to the server ? I believe its the former ; but in that case what happens when the ...

Git commit to common submodule (master branch)

I've two or more projects (let's call them ProjectFoo and ProjectBar) having some common code that I put in a submodule. My understanding is that if I commit changes to a submodule from within ProjectFoo it'll be in a detached head that only all ProjectFoo clones can see: (master) $ cd ProjectFooBarCommoneSubmodule/ (master) $ git comm...

How to find most common elements of a list?

Hi Given the following list ['Jellicle', 'Cats', 'are', 'black', 'and', 'white,', 'Jellicle', 'Cats', 'are', 'rather', 'small;', 'Jellicle', 'Cats', 'are', 'merry', 'and', 'bright,', 'And', 'pleasant', 'to', 'hear', 'when', 'they', 'caterwaul.', 'Jellicle', 'Cats', 'have', 'cheerful', 'faces,', 'Jellicle', 'Cats', 'have', 'bright', 'bl...

form authentication by using two different machine

Hello, i want to use form authentication.i have 2 different application.both are at different machine.i want to use common form authentication. suppose i have 2 application called "app1" and "app2". There is one form called CElaunch.aspx page in app2.and i want to use this page in app1. we cant navigate the this page directly ...

DB2 v8 insert with CTE

I need to select from a CTE (common table expression) in DB2 v8 and insert the result into a table. The relevant documentation for v8 is hard to understand at first glance, but for v9 there's a clear example (http://publib.boulder.ibm.com/infocenter/dzichelp/v2r2/index.jsp?topic=/com.ibm.db29.doc.apsg/db2z_createcte.htm): INSERT INTO vi...

common code integration in mac network

Hi to all, I am new to mac network environment. I working in a team, each time the code has to be get and integrated in single place. Is there any possibility to have common code integration software in the mac server for auto integration Regards, sathish ...

Is there a better way to find lowest common ancestor in a binary search tree?

I know similar questions have been asked before, but I think my solution is far simpler. Especially compared to [http://en.wikipedia.org/wiki/Tarjan's_off-line_least_common_ancestors_algorithm]. Please prove me wrong! If you have a tree with nodes that have the given data structure: struct node { node * left; node * right; ...