Posts

- Where Developers Learn, Share, & Build Careers

I am in the process of learning subversion, and by now I have learned one or two things, and I have a simple project To store, just created a Google code account and a svn repository, my problem is how to organize my svn repository. Imagine I just have an Android project called "Hello World" and a test project called "Hello World Test" Made, why Both projects should import my repository trunk? Does it make sense to put my exam project in the repository trunk? SSIT in local file: From the best practices suggested by Google: / P> You can create a test project anywhere in your file system, but the best way is to add the test project so that its root directory is at the same level as the src / directory is the main application Project This helps you find the tests associated with an application Ta does. For example, if the root directory of your application project is a myofix, then you should use the following directory structure: MyProject / Android...

- Where Developers Learn, Share, & Build Careers

I need to deploy a file fileC which is a combination of two other files fileA and fileB . In my current setup, the three files are in the cookbook, which has been declared a cookbook file resource. But it is unnecessary that I would like to announce the big file as the function of two other people. When I needed the fileC before, I found the file resource's content to be "almost done" by destroying IO.read (file1) + IO.read (file2) as . But as soon as the recipe is deployed to a node, because fileA and fileB are not present at the compilation time. I tried to use the information of Ruby objects where the cookbook can be deployed. But the more I saw, the more I believed that my chef / ruby ​​is possible with the level of knowledge. The resource provider gap looks very broad. I would like to avoid the solution of the cat fileA fileB> fileC type for the following reason: In the future, I will need to reduce nodes which require nodes from C That i...

- Where Developers Learn, Share, & Build Careers

In setting parameters for my component, I want one of them to be an article ID that opens and uses is done. According to, text is the only option. Can the integers be specified, or is there any way to validate the input? As far as I know, text is your only standard solution Joomla, however, allows for custom parameter types. You can imagine that for an integer, but if this is for article selection only, then what can you do for Joomla for the com_content component? Create a new folder in your admin component called: admin \ component \ com_mycomponent \ elements Copy admin \ components \ com_content \ elements \ article.php in your new folder (and for index.html security) You can now add "Articles" to your component as shown below You can specify a parameter type, and component configuration will have a dropdown of your articles. Be sure to include the adapter in your Elements folder in your "Parameters". & lt; Parameter addpath =...

php - SQL JOINs with CakePHP -

मेरे पास एक चित्र तालिका और एक सर्वर तालिका है। छवियों में एक server_id फ़ील्ड है जो आईडी फ़ील्ड में सर्वर तालिका के लिए एक विदेशी कुंजी है सर्वर तालिका में नाम नामक फ़ील्ड भी है, जो मुझे प्राप्त करना है। यहां मेरा नियंत्रक कार्रवाई कोड है: $ images = $ this- & gt; छवि- & gt; खोजें ('सभी', सरणी ('शर्तें' = & gt; सरणी ('Image.user_id' = & gt; $ this- & gt; Auth- & gt; उपयोगकर्ता ('आईडी')), 'ऑर्डर' = & gt; सरणी ('Image.uploaded DESC'))); $ इस- & gt; सेट ('चित्र', $ चित्र); इस तरह से डेटा प्राप्त होता है: सरणी ([0] = & gt; सरणी ([छवि] = & gt; सरणी ([आईडी] = & gt ; 103 [orig_name] = & gt; शीर्षक रहित- 5.jpg [हैश] = & gt; MnfWKk [फाइलनाम] = & gt; MnfWKk.jpg [अपलोड किए गए] = & gt; 2012-07-12 00:09:08 [दृश्य] = & gt ; 0 [album_id] = & gt; [user_id] = & gt; 15 [server_id] = & gt; 1))) server_id के बजाय, मैं चाहता हूं सर्वर ताल...

php - Pass array values into select option fields within a form? -

This is based in PHP. Is it possible to take an array like this: $ SELECT_INDUSTRY = array ("medicine" => gt; "attribute", "medical" => Specialty "," hair disease "=>" specialty "); And pass those two values ​​in something like this: & lt; Select & gt; & Lt; Option value = "$ SELECT_INDUSTRY []" & gt; $ SELECT_INDUSTRY [] & lt; / Options & gt; & Lt; / Select & gt; Where the medical value is being given, and the special public must face. This is the function I use for the actual selection box: $ SELECT_INDUSTRY = array ("medical", "medical", "hair disease"); $ FORM_SELECT_SIZE = 'Input-min'; Function get_options_industry ($ arr = array ()) {global $ FORM_SELECT_SIZE; = "Industry" & gt; Industry & lt; / Label & gt; & Lt; Div class = "controls" & gt; & Lt; Echo to select name &...

objective c - Draw bordered text efficiently in iOS -

I have a view with a custom drawRect method in which there are two text lines in the fixed width. This view is constantly being copied at a rate of about 16 timers per second, the state of the text and the content of the text varies from time to time. I need to be prepared in such a way that it is clearly visible in any background, and for that purpose I do the following: CGContextSetTextDrawingMode (ctx, kCGTextStroke); // Border mode [string dotau point: point to font: font]; CGContextSetTextDrawingMode (ctx, kCGTextFill); // text mode [string drawAtPoint: with point font: font]; This code draws text in range mode with fixed line width, and then drages the text to the same position, but in the fill mode. In this way, I get a blue text with white border around each letter. Except for the performance, it is absolutely satisfying for me to use the Time Profiler that I have seen that approximately 70% of the spent time spent on drawing the whole scene is used to execute the...

- Where Developers Learn, Share, & Build Careers

Elements should be user-editable, so that it can be cleaned (Selenium :: WebDriver :: Error: : Invalid ElementStart Error) (Eval): 2: In `attach_file` When I run my facility that contains attach_file step, this will give me this error is. Here is the line of my feature that fails: and "file_field" / "file / cake / 1.jpeg" file for "file_field" And here is my step definition: when / ^ (?: | I) attach the file "([^"] *) "To" ([^ "] *)" What is it? (?: "(":: "(" [: ":]" $ / Do | path, field, selector | with_scope (selector) enclosed_file (field, path) is within the end ( The body knows what the problem is? There is a problem in Capibara 2. See.