Posts

Showing posts from August, 2012

c++ - How can I construct or return the underlying deque from a stack? -

I want to convert to a std :: stack & lt;> a std :: deque & lt;> Is there a direct conversion? You will need to do this manually: while (! Stk.empty ()) {deq.push_back (stk.top ()); Stk.pop (); }

javascript - Binding Events rather than using onclick -

I have been better told to pair elements with work instead of onclick s. I agree with it because it is more than HTML, which is cleaner and easy to debug code. But I'm having trouble doing this! I loop through some data with PHP (see below) and I'm currently using onclick to call a function. How can I share this onclick event on many elements that use jQuery? & lt ;? Php foreach ($ main_tags $ key = & gt; $ value) {? & Gt; & Lt; Li & gt; & Lt; An id = "& lt ;? php echo $ key ;? & gt;" Href = "#" onclic = "tag_shatch ('& lt; php echo $ key ;; & gt;'); return false;" & Gt; & Lt ;? Php echo $ key; ? & Gt; & Lt; Span class = "num-active" & gt; & Lt ;? Php $ value; ? & Gt; & Lt; / Span & gt; & Lt; / A & gt; & Lt; / Li & gt; & Lt ;? Php}? & Gt; Thanks for any help Lt; Ul id = "container" & gt; & Lt ;?

iphone - Initializing Detail View from nib with parameters passed from Root View -

When callout is clicked, I have got a map view with several annotations on it, I need DetailViewController to pass several parameters Please, try to do this through the creator. I've debunked a bit and have found that the logic is passing correctly and getting received in the required form within the constructor, but for some reason whenever I try to change the values ​​of IBotlets, an effect . DetailViewController * dvc = [[To get the URL, DetailViewController alloc] initWithNibName: @ "DetailViewController" bundle: zero header: headerText]; [Self. Navigation Controller Push ViewController: Animated Dcc: Yes]; Now my creator's message: - (id) initWithNibName: (NSString *) nibNameOrNil bundle: (NSBundle *) nibBundleOrNil header: (UILabel * ) HeaderLabel {if ((self = [super initWithNibName: nibNameOrNil bundle: nibBundleOrNil])) {self.headerTextView = headerLabel; NSLog (@ "Header:% @", HeaderLabel.Text); } Healthy return; } Once again, the pr

class - php Set a anonymous function in an instance -

I'm just starting with PHP, and I'm wondering if adding an unknown function to a class instance . For example, we say ... class A {public B; } $ C = new A (); // This is where I am getting a little confused ... // do not do the following work $ c-> B = function () {echo ('HelloWorld');}; $ C & gt; B (); What I'm hoping to do, spit like code is used in many different applications, and make it so that I just 'swap out' Can I change the function and in particular the examples I am using php5.3 (hence, anonymous functions should work, just the way I am using them). Thank you very much for your time! - GK You can use magic function for this job . Not a beauty, but it works .. Like this: class A {public $ B; Public function __coll ($ ending, $ arg) {call_user_func_array ($ this-> $ off, $ args); }} $ C = new A (); $ C- & gt; B = function () {echo ('helowwald'); }; $ C & gt; B ();

winforms - Communication between forms in C# -

In C #, what's the best way to talk to each other by using winforms? Thoughts? thoughts, messages, strings, whatever, to the other - text "itemprop =" text "> many Event patterns were successfully called in Winform applications. This is a good way to help you get started.

iphone - Display shift when adding rows to UITableView -

I have displayed a UITableView underlying NSFetchedResultsController. When fetchedResultsController is updated, - (zero) controller: (NSFetchedResultsController *) controller didCangeObject: (id) for anObject atInexPath: (NSIndexPath *) index Change Type: (NSFetchedResultsChangeType) type newIndexPath: (NSIndexPath *) is called newIndexPath { and the following is executed: Cases NSFetchedResultsChangeInsert: [ TableView insertRowsAtIndexPaths: [NSArray arrayWithObject: shiftedIndexPath] withRowAnimation: UITableViewRowAnimationFade]; break; cellForRowAtIndexPath is called only for the new line (which is logical) The problem is still that all values ​​are being moved to the lines of the table view bottom. The first line displays its title; the second row displays the title of the first row, the third line is the title of the second row, etc. And then I say that, the third line will display the title of the second row, the fourth row of the third row etc. I can not

javascript - Pre-populate iPhone Safari SQLite DB -

I am working with a PhoneGapp app which uses Safari Local Storage (SQL DB) via Javascript: On the first load, app database creates tables, and populates data through a series of INSERT statements. If the user closes the app during this processing, then my app database is left in an inconsistent state. What I like to do, is to deploy SQLite DB as part of my iTunes app packaging so that nothing in the app cold start should come. However, I'm not sure that this is possible - all the Google hits for this topic are what I can find, which are talking about the SQLite rendered core-data, which we are not using it. . If this is not possible, can I wrap the whole thing in a transaction and when the app is restarted then can it try again? On not accepting this, I think I have a boolean column "is_app_db_loaded?" And after processing all my insertion it set it to right. But it's really gross ... Thoughts? Thanks! I think that can work for you. Which includ

javascript - How do i deactivate highlights on MapHilight? -

I have participated in a problem I could not understand how to do and was hoping that you have something Insight can be done I am working on this page: Note: I am focusing only on the states which are Washington and Idaho, I want to Users can select only one state, for example at the present time, you are Washington and Idah For the sake of my life, I can not understand how to tell the muffilit script to disable another state after clicking on each other. > var clicked = ''; Var last_clicked = ''; $ (Function () {// class = "map") is correct for Maphilight ({fade: incorrect}) / * fading hover effect * / $ ('map & gt; region') Click = $ (this) .attr ('id'); MouseClick (empty, empty space, Document.getElementById (last_clicked))}};}); Add it to your script tag in the head

c# - DllImport Based on OS Platform -

I have a mix of unmanaged code (backend) and managed code (front end), like I need to call the interop Unmanaged code from my managed code using techniques and DllImport attribute Now, I have compiled two versions of unmanaged code for both 32 and 64 bit OSes; They are named as service32.dll and service64.dll respectively. Therefore, in my net code, I will have to do DllImport for both delays: 32 bit for And call on what basis my app is running. The issue is now that for each unmanaged function I have to declare it twice, this is a duplication of work for a 32 bit OS and a 64 bit OS, and all the time I have an unmanaged function Changing the signature, I have modified it in two places. Anyway, can I change the argument in the DllImport so that the correct DLL on the basis of the platform is automatically applied? I do not think that supports DllImport, you just manually call LoadLibrary etc. You can. But take a look, the answer will be similar to yours.

drupal - What is the opposite of Access Callback user_is_anonymous? -

I know that in a drupal module it is used to specify that only anonymous users see that module You can. What will be the callback that only specifies log-in users? I have a page that I want to reach only for users to log in. Thanks This is the function, which basically checks that the user's ID ($ globals ['user'] -> UID) is greater than zero. The function converts the UID into a Boolean type and returns TRUE to any user, because it will be a UID which is a positive number. Drupal provides an UID of 0 to unknown users, which is incorrect when converting to Boolean.

Admin section in rails -

What is the correct way to structure an administrator section in a Rail app? I'm not talking about Aeth, but where do I keep admin controller, routing etc. namespace namespace: administrator resources: projects resources: user # ... end Controllers generate tracks with controller admin / generated projects etc. (In Rail 2, this is map.namespace: Administrator ... termination and ./spet / generator controller / projects .) < / P>

java - Facebook integration using TinyFBClient -

How can I connect to a Facebook application using TinyFBClient where I can login, online friends can see , And receive notifications? Download on the repo and follow the example. It describes the case of this precise use.

How to add EAR files in a java console application -

I want to know how to add an ER file to a simple Java class ie a standalone application Assume that I have a class employee package com. Staff; Import com.xyz.Workflow; // This library is present in the EAR file whose method I need to call public square staff {public static zero chief (string [] ARG) / workflow wf = new workflow (); // ws.initiateWorkflow (); // This method should be called, but for this I must include this ER which I have been given from a third party; } Can anyone help me in the EAR only? E-filing applications are for use within the application server, not a standalone app. You will need to open ER (this is just a jar file with a different file extension, so an unzip device or jar command line utility), and then the EAR Point to the contents of your console application's classpath. You need to see the structure to figure out what bit you need.

java - Issue accessing class variable from thread -

The purpose of the code given below is to structure the product object as a product for each product, Check the availability of the product (product.imageURL) on the array list, product image (product.imageURL), remove the products without images (remove the product from the array list 'product'), and the products with the available image Return array list package com.catgen.thread; Import java.util.ArrayList; Import java.util.Iterator; Import java.util.list; Import com.catgen.Product; Import com.catgen.Utils; Public Square ProductFilterThread Thread Extended {Personal Product Products; Private listing & lt; Products & gt; Products = new arrelisted & lt; Products & gt; (); Public ProductsFilterthread () {} Public ProductsFilterthread (Product Products) {this.product = Products; } Public Synchronized Zero AddProduct (Product Product) {System.out.println ("Add Before:" + Product Received (). Size ()); . Adding GetProducts () (Product); System.out.

iphone - How to create a horizontal scrollable list? -

I wonder what is the best way to create a horizontal list with custom buttons I have read that someone Native control is not: I am considering a UIView inside a scroll view. I visualize my object button objects on this scrollview. Any thoughts? Experimenting with paging and horizontal scrolling should give you a good start. > Look at the iPhone SDK.

sharepoint - Deleting list items via ProcessBatchData() -

You can create a batch string to delete all items from a SharePoint list like this: Pre> 1: // Create a new stringbuilder: stringbilder batchstring = new stringbilder (); 3: 4: // StringBiltter 5: add main text to batch string. (""); 6: 7: // Add each item in the batch string and delete it command 8: Fresh (SPLIT item in item collection) 9: {10: // Create a new method section 11: batchstring.change (""); Find out from the 12: // list: How to remove from 13: Batchstring.change ("" + + Convert.trustring (item.partent.id +) ""); 14: // to delete item 15: batchstring.change ("" + convert.tostring (item.id) + ""); 16: // Set the action that you want to do in the first 17: batchstring.parad ("delete"); 18: // Close the Law Section 19: Batchstring.epend (""); 20:} 21: 22: // Close the batch section 23: Batchstring.Pend (""); 24: 25: // Make Batch 26 first: SPContext.Current.Web.ProcessBatchData (Batc

scripting - Present a default window layout on startup in Windows 7 -

As part of an experimental control system Win7 uses PC's 4 windows simultaneously in question, And I want to open these 4 windows with a script, look at the situation and size away. The script runs initially, so that the newly-booted PC presents the user as the default of four windows. Obviously I can use a batch file in the startup folder to open windows and run applications, but is there a way to specify the layout of these windows? Many thanks C You have access to a scripting language that supports calling Windows API functions, it should not be very difficult. Otherwise, I suggest writing a small executable in some languages ​​(at least any C + +, C # or VBnet will do all the work) and do so. You have been described as FindWindow , as described in windows and move windows , to move them.

iphone - Storing unique ID in UITableViewCell -

I have a table where there will often be two cells with the same title. Whenever a cell is clicked on a table, I am zooming on a map, so the use of the title as a unique identifier is out of the question. I already have a unique identifier, but I need to find a way to store it in the UTable Wexcel object. I am considering two options, both of which are bad, IMO. 1) Store the unique ID as text in the form of extended text labels in the form of text 2) Create the custom UITableViewCell class. I am new to Objective-C, and I would like to know essentially what is the third option which is not as inefficient as # 1, but it has not been included as # 2 . Post-text "itemprop =" text "> use the cell's tag property (works only when your identifier It is an integer.) He said that cells already have a unique identifier (although not necessarily stable) and this is their indexPath , i.e. their position in the table. Generally, you should not use cells to

iphone - Isn't using lightweight migration with dozens of updates going to kill performance? -

It seems that I notice that I should keep the entire stack of model versions while updating the update. I'm not sure what happened if someone has version 1.0 with population data, and then updates version 5.0 without any version. Therefore, migration must also know what it was like a long ago data model. Or maybe it does not work at all, know what. However, after some changes I had a choice of 25 data models where the previous one was the current version. So, what do I think, that the store coordinator will have a lot of work to run on these versions and the differences, phase-by-step will be found. Is not it suck? Is there any action? If a user is moving from version 1 to version 5, then the core data attempt will be that one near. Core data has no concept of "version 1" and "version 5", it only understands the source and destination model. When a user loads your "version 1", the core data finds the source model in your bundle Core data w

c# - how to add duplicate keys to dictionary<string,string> -

How to add a duplicate key to a dictionary That is, I have already added the key, value pair As rollno, 1 but I have to add the same parameter to the dictionary, but it does not allow adding. How to add a duplicate key / duplicated key in the dictionary. Or any other option .. Any ideas ??? Check it out: You can create a duplicate key You can use Class to help with collections.

android - Consequences of isRouteDisplayed() on map view -

I'm just wondering what the result of the method is isRouteDisplayed () , is about the functionality of a map view ... I have two activities, display a route and none. What is the first method, it is mandatory to leave it (shown) - the method is right back? What is this effect? From the docs: P> For accounting purposes, the server should know that you are currently displaying any kind of route information, such as a group of driving directions. violation of our terms of use . To report this information to the truth, or

vb.net - Same dll-version different on different computers? -

I have a strange problem with VB.Net windows application. On my computer (development pc) it executes the latest version of the exe and dll but an old version is executed on my partner's computer (it is not a developer and can not debug it). They have overwritten all the files with the new version: I do not know where to start looking for the reason. EDIT: The first thing I did was to start my PC's PC again, but it was of no avail. When is the Dell installed in the global assembly cache? Because I searched it in gac with gacutil.exe but could not find: C:> C: \ wINDOWS \ Microsoft.NET \ framework \ v1.1.4322 \ gacutil.exe / L Rule.dll Microsoft (R) .NET Global Assembly Cache Utility Version 1.1.4318.0 Copyright (C) Microsoft Corporation 1998-2002 All Rights Reserved. The following are the assembly assemblies in the Global Assembly Cache: The following entries are in the censored enigen files: the number of items = 0 I also saw in the assembly folder but non

php - __autoload disaster - conflicts with Joomla -

I have just changed all my code to use __autoload so that it can be found with Joomla Autoloader is. I integrate to register my users with Joomla in some cases. allows me lots of autoloaders with spl_autoload_register (). What should I do? > Update : This is Joomla This file loads from /library/loader.php Function __autoload ($ class) {if (JL loader :: load ($ square)) {return true; } return false; Need_once (JPATH_BASE .DD. 'Contains' DD. 'Defines.php'); Need_once (JPATH_BASE.DD. 'Included' .ds 'framework .php'); // auto loader so that it does not interfere with my spl_autoload_register ('__ autoload'); This my autoload looks like this: & lt ;? Php / import function myAutoload ($ class_name) {$ path = str_replace ('_', '/', $ Class_name); Include $ path '.php'; }? & Gt; Spl_autoload_register ('myAutoload', false, true); I was called for the first time and Joomla one second,

SQL: 2 Counts using joins? -

मेरे पास ये 2 टेबल हैं: तालिका: इकाई यूनिटआईडी | शीर्षक 1 यूनिट 1 2 यूनिट 2 3 यूनिट 3 तालिका: टुकड़ा PieceID | यूनिटआईडी | श्रेणी 1 1 ए 2 ए 1 ​​ए 3 1 बी 4 2 ए 5 3 बी मुझे क्या करने की ज़रूरत है श्रेणी ए के साथ टुकड़ा पंक्तियों वाले कुल इकाइयों की एक संख्या दिखाती है श्रेणी ए के साथ टुकड़ा तालिका पंक्तियों की कुल राशि (यूनिसेड की परवाह किए बिना)। तो ऊपर दिए गए डेटा का उपयोग करके, परिणाम 2 इकाइयां, 3 टुकड़ा पंक्तियां होगा। मैं इसे दो बयानों के साथ कर सकता हूं, लेकिन मैं इसे एक करना चाहता हूं। मैं की तुलना में craftier लोगों से कोई सुझाव? सही श्रेणी के टुकड़ों को फ़िल्टर करें, फिर विशिष्ट रूप से इकाइयों की गणना करें: चयन गिनती (अलग यूनिटआईडी) के रूप में इकाइयां, गिनती (*) टुकड़े से टुकड़े के रूप में जहां श्रेणी = 'ए'

iphone - Animating multiple UIViews at once using CoreAnimation -

I am using UIImageView as a background image and have many UIButtons on it. Now I want to move UIImageView (with all the buttons on it) with a smooth animation (using CoreAnimation). I could not find a container or grouping element in IB, so a way to move all the scenes at once? Thank you in advance! If you have them go and keep: [myImageView addSubView: myButton]; So you can just move my image to Viz. However :) It seems that you should rethink the design a bit. If this button is a complete scene that addresses the user's button then the button holding the button gets together? Perhaps a UIViewController is a better way to add visual elements (buttons, sliders, Edit: When I do this in IB, how should I see it from your perspective? In IB, you have a UIViewController on "Below" You should add a View, Button Should be included in that view, which is an UVIUI controller (one in "below") to make an IBOuttlet reference to edit by editing in XCode

c# - How to search docx for a specific string and return the outline number -

I am using it as a starting base. I can search the document, but I can tell you what section it is from, is there something in the OpenXML API to do this? For example, say that the document is 500 pages and this standard numbering schema 1 1.1 1.1.1 1.1.1.1 Search term 1.1. 1.2 23.1.2.3.4. Search word I want to search with search terms and it's section 1.1.1.1 & amp;

C++ Reference Book -

संभव डुप्लिकेट: क्या कोई सी ++ पुस्तक की सूची कर सकता है जो कि मानक पुस्तकालय का सिर्फ एक संदर्भ है? मुझे एक "सीखने सी ++" पुस्तक की आवश्यकता नहीं है जो एक संदर्भ है। या कम से कम आधिकारिक दस्तावेज या कुछ और? Googling केवल "प्रशंसक साइट" संदर्भ का पता चलता है। एक नज़र डालें।

c# - Populating PDF fields in .NET without a API, such as iTextSharp -

वर्ग myTest {string pdfTemplate = @ "c: \ us.pdf"; सार्वजनिक मीन टेस्ट (ग्राहक सी, स्ट्रिंग आउटपुट) {StreamReader sr = नया स्ट्रीमरीडर (पीडीएफ टेम्पलेट); धारावाहिक SW = नया स्ट्रीमर (आउटपुट); स्ट्रिंग सामग्री = sr.ReadToEnd (); Content.Replace ("(ग्राहक का नाम) / डीए (/ वर्डाना 10 टीएफ 0 जी) / एफटी / टीएक्स / टाइप / एनोट / एमके & lt; & lt; & gt; & gt; / वी () / एपी & lt; & lt; / n 13 0 आर & gt ; & Gt; & gt; & gt; "," (ग्राहक का नाम) / डीए (/ वर्डाना 10 टीएफ 0 जी) / एफटी / टीएक्स / प्रकार / एनोट / एमके & lt; & gt; & gt; / वी (जॉन जॉनसन) / एपी & lt; & Lt; / n 13 0 आर & gt; & gt; & gt; & gt; "); sw.Write (सामग्री); sw.Close (); sr.Close (); }} एक वैध पीडीएफ बनाने पर उपरोक्त कोड विफल क्यों होता है? पीडीएफ फाइल बाइनरी हैं आप इसे पाठ के रूप में पढ़ रहे हैं, फिर पाठ को फिर से लिखना जैसा कि एसएलएक्स भी बताते हैं, आप प्रतिस्थापित पाठ से कुछ भी नहीं कर रहे हैं। पीडीएफ लाइब्रेर

sql - oracle query returns 4 duplicates of each row -

I'm running an Oracle query. Besides working, it seems that it gives 4 duplicates of each result. Query: SELECT * FROM (A *, select the ROWNUM rnum (NEW_USER *, NEW_EHS_QUIZ_COMPLETE.datetime NEW_USER, NEW_EHS_QUIZ_COMPLETE Where exists (NEW_EHS_QUIZ_COMPLETE where SELECT * FROM NEW_USER. .. ID = NEW_EHS_QUIZ_COMPLETE.USER_ID) last_name order by ASC) a where ROWNUM Does anybody know why it is not working properly? You have a cross here: SELECT NEW_USER * , NEW_EHS_QUIZ_COMPLETE.DATetime to NEW_USER, NEW_EHS_QUIZ_COMPLETE where exists (* NEW_EHS_QUIZ_COMPLETE Select * NEW_USER.id = NEW_EHS_QUIZ_COMPLETE.USER_ID) You probably mean this: Select NEW_USER. *, NEW_USER.id = N EW_EHS_QUIZ_COMPLETE.USER_ID

JSLint reports "Insecure ^" for my regex -- what does that mean? -

I'm trying to get my javascript code 100% JSLIIN clean. A regular expression to me: linkRgx = / https ?: \ / \ / [^ \ s; | JSON Report: Unsecured '^' & nbsp; Does the character use the rejection of the set "unsafe"? [^ \ s | | \\ * '"!, () & Lt; & Gt;] matches any ASCII characters other than the ones listed, and since any non-ASCII characters are familiar with Javascript strings Unicode, this means that each letter is known for Unicode. I can see a lot of evil there. Instead of disabling the warning, I would like to rewrite the character squared which you want do to match those characters Because it regex from: / \ bhttps: \ / \ / [-?! \ W + & amp; @ # /% = ~ | $ :;] * [\ w + & amp; @ # /% = ~ | $] / G

c# - Update PageTitle on Timer.Tick -

I have a timer page that is being used as a trigger on UpdatePanel, and a TabContainer in the page Many TabPanels are also included to see this for more information. In fact, I got an UpdatePanel as a template in every contents of a tablet, and the trigger is triggered by the pinch timer. My page displays data by reading a database on each tick. I have the following code running on every timer. Click in my code: Secure Zero Time RefreshTicket (Object Sender, EventErgus E) {UpdateVidPageTitle (); } The updated LivePageTitle () function reads the new information from the database and accordingly the page. However, this information is definitely not sent to the browser because there is no full page postback - just async postback for the update panel. Consequently, the title of my page is not being updated, until the whole page is being posted, which destroys the purpose of using UpdatePanels in the first place. I understand that there will be a way to do this by calling

Binding In Binding with Templates(WPF) -

मेरे पास AwesomeClass के संग्रह में एक WPF UI बाध्य है अब, AwesomeClass में AwesomeParts का एक संग्रह है ऑब्जेक्ट्स। कैसे मैं अपने यूआई को इस तरह बना सकता हूं कि प्रत्येक AwesomeClass इंस्टेंस के लिए (उदाहरण के तौर पर) एक टैब पैनल पर एक टैब है और उसके बाद प्रत्येक भयानक भाग के लिए, असल में: Awesomes-> टैब और फिर: Awesome.Awesomeparts-> Tabs.Listbox निम्न करने के लिए कोड है जिसे आप ढूंढ रहे हैं: सार्वजनिक आंशिक वर्ग टैबविंडो: विंडो {सार्वजनिक टैबविंडो () {इनिशियलाइज़ कम्पेनेंट (); सूची के & lt; AwesomeClass & gt; आइटम = नई सूची & lt; AwesomeClass & gt; (); (इंट आई = 0; आई & lt; 10; i ++) के लिए {items.Add (नया AwesomeClass ()); } AwesomeTabs.ItemsSource = आइटम; लोड किया + = नया रूटिंग एवेंटहैंडलर (टैबवंडो_लोडेड); } // विधि 1 शून्य TabWindow_Loaded (ऑब्जेक्ट प्रेषक, RoutedEventArgs ई) {FindListBox (AwesomeTabs); } निजी शून्य FindListBox (निर्भरता ऑब्जेक्ट obj) {Int32 count = VisualTreeHelper.GetChildrenCount (obj); के लिए (इंट I = 0; i &

Import C + Makefile into a linux IDE? -

I have a project for Linux that I have been developing for some time. Basically it does get a bunch of C and H files with a directory structure and a Makefile. Every time I need to debug something, it is very painful, I need to manually search for var definitions, strokes, etc. Is there a good IDE for Linux which allows me to import those files into "Project" and this code should be completed or at least one source code bearings? Thank you! Eclipse with CDT CDT is very much based on MacFile, just a blank Create 'Make' project, then drop your files and refresh them in the eclipse and then add your goal. Eclipse should be taken above the baggage by making the output.

iphone - UITableView Multiple Selection -

How can I add a UITableView to my visual-based application where the user will tap on more than one cell, and this clock The app's "new alarm" setting is properly selected like "recurrence" (clock> alarm> +> repeat), and how do I get all the selected cells in an array? In the implementation of -tableView: didSelectRowAtIndexPath: You see the table of the cell < Code> Assistant type property based on its current value (so that it can toggle off and off with multiple tap) For example: - (zero) table view : (UITableView *) table view was SelectionRowAtIndexPath: (NSIndexPath *) path {UITableViewCell * cell = [tableView cellForRowAtIndexPath: path]; If (cell.accessoryType == UITableViewCellAccessoryCheckmark) {cell. Accessory type = UITableViewCellAccessoryNone; } And {cell. Accessory type = UITableViewCellAccessoryCheckmark; }} You can either maintain an array of selected states in addition to the status of your secondary type of ce

c# - Binding to a WPF hosted control's DependencyProperty in WinForms -

I have WinForms app, which are some elements that are hosting WPF user controls (using ElementHost ). I want to be able to force your WinForm's control property ( Button.Enabled ) to a Custom DependencyProperty of organized WPF user controls ( SearchResults.IsAccountSelected ). Is it possible to bind a System.Windows.Forms.Binding to manage a property by a DependencyProperty? Since I know that System.Windows.Forms.Binding sees for InotifyPropertyChanged .PropertyChanged Events - A property supported by a DependencyProperty automatically activates these events Or I will be able to implement and manage the sending of the PropertyChanged events manually DependencyObject , INotifyPropertyChanged , you will be if you adopt this way also apply to send PropertyChanged. Nu ts Good luck DependencyObject is OnPropertyChanged method, so apply INotifyPropertyChanged DependencyObject generated category in your For example: Public class MyClass: HeaderedContentCon

"Passing Go" in a (python) date range -

अपरिवर्तनीय पाठ और अस्पष्टता को हटाने के लिए अद्यतन। नियम: < प्रत्येक तिमाही के एक दिन के बाद एक कर्मचारी 8 घंटे का भुगतान समय बजे अर्जित करता है। 1 जुलाई - 30 सितंबर 1 मार्च - 31 मार्च > अजैती का उपयोग करने के लिए, मुझे निम्न फ़ंक्शन की हिम्मत को परिभाषित करने की आवश्यकता है: def acrued_hours_between (start_date, end_date): # सामग्री वापसी पूर्णांक मैं वर्तमान में अजगर का उपयोग कर रहा हूं, और सोच रहा हूँ कि ऐसा कुछ करने के लिए सही दृष्टिकोण क्या होगा। / Strong> मैं मान रहा हूं कि दिनांक समय वस्तुओं का उपयोग करना और संभवतः डेटियिल मॉड्यूल यहां मदद करेगा, लेकिन मेरे दिमाग में किसी कारण के लिए इस समस्या के आसपास लपेट नहीं रहा है। अपडेट मैं सोचता हूं कि गणना कुछ हद तक सरल है, क्योंकि समस्या यह है: "शुरूआती समय से कितने घंटे भुगतान समय बंद अर्जित किए जाते हैं एंड_डेट के लिए? " उपरोक्त "नियम" को दिया गया। ओपी के संपादन में वास्तविक अंतर्निहित समस्या का उल्लेख है: "पेड टाइम ऑफ के कितने घंटे एक्स-डेट से वाई-डेट तक अ

.net - Profilers for ASP.Net Web Applications? -

I recently wanted to make some design on an ASP.NET project and was surprised to see that Visual Studio I think there is a shortage of profiler. So my question is, do you use for Professor ASP.Net? Are any decent people out there who are free? I have some general The Net Profiler is seen, but can still be used with ASP.NET. The part of the answer may depend on whether you want a display or memory profiling in SharpDevelop Display profiler, but it does not support ASP.Net (at least last time I have not checked) For memory profiling, I know that there is only one free profiler, I used it a little later, but I am pretty sure that it supports ASP.NET without any problems. The best profiler used by Jetbrains is hands down. It is easy to use and it is easy to interpret the results. The bottom side is the price. There is both Ants Profiler near Redgate and it has been for a long time, but I find it hard to use Jetbrains profiler individually. Once again, the price of these

jQuery cute scroll -

मैं scrollTo प्लगइन का उपयोग कर रहा हूं, उत्कृष्ट सामग्री यह मुख्य विचार - पेज जब हम मंडराना । टॉप स्क्रॉल करें ब्लॉक स्क्रॉल करने के लिए प्रारंभ करें चाहिए (माउसओवर) यह कोशिश की: $ ("। शीर्ष-स्क्रोल" ) .होवर (फ़ंक्शन () ($ ("body")। स्क्रॉलटॉ ($ ("टॉप-कोने"), 2000);}, फ़ंक्शन () {$ ("body")। रोक ()। ScrollTo () ;}); प्रारंभ काम करता है, रोक - नहीं। किसी को भी पता है, इसे ठीक कैसे करें? धन्यवाद। क्या आपने jQuery ('html, body') का उपयोग करने की कोशिश की है । (एनिमेट करें ({scrollTop: jQuery ('। टॉप-कोने') ऑफसेट ()। शीर्ष}, 2000); इसके बजाय scrollTo?

Mysql Trigger to select and delete -

Is it possible, a trigger in mysql can be selected first and then there is a delete based on its result. Could? Both on the same table. It is struggling to correct. There are duplicate entries in a table, I should have a trigger that chooses and then deletes. Any thoughts or thoughts will really be helpful. You can delete records based on your selection, you can see it here: < / P> A simple example is: Remove from 'tblname` where' id` (select `id` with` tblname` where `field` = 'must_be_deleted')

c++ - Sorting a 2 dimensional array on multiple columns -

I need to sort two dimensional array on more than one column using C or C ++. Can someone point me out for the algorithm that I should use it or the existing library (perhaps promoting?) Which has this functionality? I'm guessing that there may be a way to write a recursive function but I'm going to write algorithm or it's too lazy to implement it if it has been done elsewhere. you (C ++) or (C C ++) The hard part of the sorting operation is that you need to define a custom comparison function to compare your lines. For example: compare double duplicate (double * row A, double * line B) {return ((row A [0]

c# - Why do my horizontal toolstrips keep stacking verticaly? -

Image
I am using a ToolStripContainer that includes three ToolStrips. In the design time I take toolstrip to those positions Which I want them to have, in a horizontal line on top of this type: < / P> Then I close the form and save the form However, if I open the form again, ToolStrips are placed on the left side of ToolStripContainer in this way: How do I specify toolstrip in that position? There is a bug with this visual studio. I had only one problem for years I have found the only way Programmaticly setting all toolstrip ' dock assets to right Do this in the form maker immediately after the call of InitializeComponent .

functional programming - Is the FoldLeft function available in R? -

I would like to know whether R is the implementation of the foldlift function (and fold-write?). The language is supposed to be "rather" functional oriented and therefore I think that something like this should be done, but I could not find it in the document. (f: (b) A) = & gt; B): B This low result is considered to be returned: f (... (f, A0), a1) ... a) If the list [A0, A1, ..., A] (I am using the definition of) Do anyone know that such a function exists in R? ? Reduce Use (F, X, Int, Right = False, Cached = FALSE)

How to draw a text outside rect in cocoa -

I am trying to build a graph using cocoa. I used the methods I used to display points on X -axis and y-axis, allowing Dart Point and Droissant, which attracts without attracting extended outtakes. So please tell if there is a solution to display the number. I am using the following code. NSTextStorage * TextStorage = [[NsTextStorage alloc] initWithString: @ "0.0"]; [TextStorage drawAtPoint: NSMakePoint (0,0)]; You might need to make a RECT big enough to drag in and then graph Drag inside -20 on all axes, so that you can reduce the impression?

jface - Defer Eclipse Treeviewer loading by DeferredTreeContentManager -

मैं समझता हूं कि ट्री व्हीवर को डिफर्डट्री कंटेंट मैनेजर का उपयोग करके लोड करने के लिए एक दृष्टिकोण है >, इस उपयोगी से सीखा है। हालांकि, इस तंत्र के लिए मॉडल को IDeferredWorkbenchAdapter इंटरफ़ेस कार्यान्वित करने की आवश्यकता है, जो कि मेरी विरासत अपरिवर्तनीय मॉडल कक्षाओं में समस्या का परिचय देता है क्या डिफर्डट्री कंटेंट मैनेजर का उपयोग करने के लिए मॉडल का उपयोग किए बिना IDeferredWorkbenchAdapter इंटरफ़ेस? बस एहसास हुआ कि मैं IDEferredWorkbenchAdapter को मॉडल को गुप्त करने के लिए एडेप्टरफैक्टर का उपयोग कर सकता हूं। समस्या हल हो गई!

htaccess in php -

I am using htaccess in my projec.there. Login section is what I want to show on my account page But there is a problem because I have also made a CM which is in open form. Although I have validated the user name but when I open the CMS or user profile page, the same page is open. I have regular expression in htaccess, but stil has no necessary results if / path is hosted in / site / site / and / in / path / to / site / cm / then doing this work Should: RewriteCond rewrite code% {REQUEST_FILENAME}! -d RecoveryCand% {REQUEST_FILENAME}! -f Rewrite rule ^ ([A-zA-Z] *) $% {SCRIPT_URL} index.php? Username = $ 1

NHibernate DuplicateMappingException when mapping abstract class and subclass -

I have an abstract class and subclass, and I want it to map your database using NHibernate. I am using flutes, and how to mapping, but when I add a NHibernate to mapping subclass. Duplicate mapping expansion is thrown when mapping is done. Why? Here are my (simplified) classes: Public intangible square field value {Public Ent ID (Receive; Set;}; }} public class StringFieldValue: FieldValue {public string ValueAsString {get; set;} public override object value {get {Return ValueAsString;} set {ValueAsString = (string) value;}}} More mapping: Public square fieldWallmapping: Classmaker & lt; FieldValue & gt; {public That Fildvoluming () {id (M = & gt; Maiaidi). Were generated by (Acaielo) ( "1"); // DiscriminateSubClassesOnColumn ( "type");}} public class Stringvolumaping: subclass map & lt; Stringfild value & gt; {public string value mapping () {map (M = & gt; M. Velustresing). Lambik (100);}} exception: NHibernate.MappingEx

it about hindi text proccessing in in linux using c++ -

How to do resource on Hindi text with any suggestion using c ++ in Linux I have an encoded file in UTF-8 I want to read a Hindi text and find a specific word on it. How can we do this ?? Design of UTF 8 means that you do not have to take any special encoding specific steps C ++ Standard Library Functions based on char are all 8 bit clean, so they will all work with UTF-8 (for enigmatic environments where char is not 8 bit> ) . std :: string word = / * the words you are searching for, utf8 * /; Std :: string fileContents = / * file contents * /; Std :: string :: iterator location = fileContents.find (word);

c# 3.0 - Pick up relevant information from a string using regular expression C#3.0 -

मुझे कुछ फ़ाइल नाम दिया गया है जो कि YYYYMMDD & lt ; fileextension & gt; कुछ वैध फ़ाइल नाम जो उपरोक्त पैटर्न को संतुष्ट करेंगे xxx20100326.xls, xxx2v20100326.csv, x_20100326.xls, xy2z_abc_20100326_xyz.csv, Abc.xyz.20100326.doc, ab2.v.20100326.doc, abc.v.20100326_xyz.xls उपरोक्त परिभाषित मामले में, मुझे तिथियों को लेने की आवश्यकता है केवल। इसलिए सभी मामलों के लिए, आउटपुट 20100326 होगा। मैं इसे प्राप्त करने की कोशिश कर रहा हूं, लेकिन कोई भाग्य नहीं। यहां मैंने जो किया है अब तक स्ट्रिंग टेस्टडेटा = "x2v20100326.csv"; स्ट्रिंग strYYYY = @ "\ d {4}"; स्ट्रिंग स्ट्रमएम = @ "(1 [0-2] | 0 [1-9])"; स्ट्रिंग strDD = @ "(3 [0-1] | [1-2] [0-9] | 0 [1-9])"; स्ट्रिंग regExPattern = @ "\ A" + stryyy + strmm + strDD + @ "\ Z"; रेगेक्स रेगेक्स = नया रेगेक्स (regExPattern); मैच मैच = रीजेक्स। मैच (टेस्टडाटा); अगर (मैच। सफलता) {स्ट्रिंग परिणाम = मैच। समूह [0]। मूल्य; } मैं c # 3.0 और dotnet framework 3.5 का

c - Take data from an XML file and put it into a MySQL database -

I am trying to create a script that passes through an XML file. Typical tags will be found in it, put them on a table, and fill the table with specific tags inside them. I am using MySQL 5.1 so load XML is not an option and I think the use of ExtractData () method can not be too much .. but I really do not know what would be the best way to go about this? Edit / I know how to do all this in C, except in addition to creating new tables in a database, how do I do in C? For your editing, using, you will only experiment with standard syntax. I am not sure why you are doing this, but I am not working on whatever you are doing.)

user interface - GUI editor for DOT language (Mac OS) -

I have a problem. I need to create a pure diagram for my project (Django) I use the extension. The diagram is very pure, but now I want to add comments for example on this diagram. Is it possible to do this? Maybe someone can give me some software advice for this? is one, although I have not used it, in the years it can not assure whether it Can interpret diagrams.

java - Is it possible to have an enum field in a class persisted with OrmLite? -

I am trying to continue with the following class: public Square field {@ DatabaseField (id = true) name of the public string; @DatabaseField (canBeNull = false) Public field type type; ...} field type is a public enum . The field corresponds to the type , string in SQLite (does not support embems). When I try to use it, I get the following exception: information [main] (SingleConnectionDataSource.java:244) - Install shared JDBC connection: org.sqlite.Conn@5224ee Exception in the formula "main" org.springframework.beans.factory.BeanInitializationException: DAO initially failed; Area enums.FieldType uncharted territory class to FieldType: name = type, class = org.springframework.dao.support.DaoSupport.afterPropertiesSet (DaoSupport.java:51) is nested exception java.lang.IllegalArgumentException class orm.Field JavaklangkIllegalArgumentException :: due to unknown area square orm.FieldDAO.getInstance orm.Field.fromString (Field.java:23) to (FieldDAO.java:17) on o

scripting - awk + remove all not uniq lines except the first line uniq (FILE NAME) -

Hello, I have the following file, How do I remove all FILE NAME rows except for the first uniq FILE NAME? All file name lines: file name: / dir1 / dir2 / dir3 / dir4 / dir5 / file file name: / Dira / dirB / dirC / dirD / hard / file < / Pre> file: file name: / dir1 / dir2 / dir3 / dir4 / dir5 / file parameter name: blablabla target file: 12 source file: 565 file name: / dir1 / Dir2 / dir3 / dir4 / dir5 / file parameter name: blablabla target File: 18 source file: 552 file name: / dir1 / dir2 / dir3 / dir4 / dir5 / file parameter name: blablabla target file: 14 source file: 559 file name: / dira / dirb / dirc / dird / string / file parameter Name: blablabla target file: 134 source file: 344 file name: / Dira / dirB / dirc / dirD / string / file parameter name: blablabla target file: 13 source file: 445 file name: / dira / dirb / dirc / dird / Strict / File parameter name: blablabla target file: 13 source file: 434 if you Sir If you want the rows samples of two rows o

c++ - Serialize boost array -

I want to sort a boost :: array, which already has a serial. Obtain this error: Error C2039: 'serialize': 'boost :: arrays & lt; T, n> I have tried to include the Serialization / array.hpp header but it did not help Edit: a wrong link deleted promotes you: show the code of the underlying class in the array the wanted. Since Promotion: There is an array, there should be no reason that this will not work. For example, you should do something like bus_route and bus_stop classes. The category contained in the promotion will have to declare the array: :: Access as a Friend class: Access and implement the sorted method as below: < Code> class bus_stop {friend group promotion :: serialization :: access; Friends std :: ostream & amp; Operator & lt; & Lt; (Std :: ostream & os, const bus_stop & gt;); Virtual std :: string description () const = 0; GPS_ latitude; GPS_ position Latitude; Template & lt; Classic Collections &a

java - Are there any good ORMs (preferably JPA implementations) that support SQLite (on Android)? -

I've got one from a while ago who makes a similar question but I think it's a bit old. I realize that implementation of JPA is more on heavy / heavy side, so if you know about a lightweight (non-JPA) ORM, then I would definitely appreciate your input. I saw the answer about the second term and am eager to know if someone tried to do it. Update : In the end, I decided to go with a more lightweight solution and chose. So far I am very happy with my choice. This is and requires minimal configuration. The website contains a wealth information, in which there is a depth, in which the developer may need to know about the DB4O. Oh, and I mentioned that it is free (unlike some other options ... cough ActiveDroid cough )? About the implementation of JPA, for at least one hibernate I am not 100% sure , But the Eclipse Link is also an option (though SQLite). But for Android development, I will definitely check. In the case of buses, here are some other options: ,, (lo

php - Compare range of ip addresses with start and end ip address in MySQL -

I have a MySQL table where I store the IP category. This is the setup in the manner in which I have a starting address, and the last address (and an ID and some other data) that have been started as a long time. Now I have been adding limitations by introducing end and end IP addresses to users, and I would like to check whether the new range is not already (partially) in the database. I know what I can do in the query, but it does not seem to work with 2 different columns, and I also can not understand that to compare it How to cross a border It's a possibility to do this in a loop in PHP, but it will be a huge amount of 132.0.0.0-199.0.0.0 queries with a wide range. When you say that you have it accumulated as a long Addressed, I'm assuming that you mean that you have stored them (like) 10.1.2.3 will be stored as 0x0a010203. In that case, to find out if an address already exists, you can do this: SELECT ... ipranges WHERE ( & gt; ; = Startaddr) and (&

arrays - PHP, is_array() generating an "Undefined property: stdClass::$crit " error -

is_array ($ src2- & gt; आलो) एक "अपरिभाषित संपत्ति उत्पन्न कर रहा है: stdClass :: $ Crit "त्रुटि। त्रुटि फेंकने वाली रेखा है: यदि (is_array ($ src2- & gt; आलो) & amp; amp; गणना ($ src- & gt; crit) & gt; 0) { $ src2- & gt; आलो यहां आरंभ किया जाता है। $ src2- & gt; crit = array (); $ Src2- & gt; आलो [0] = नया डेटासेट (); $ Src2- & gt; आलो [0] - & gt; टीबीएलनाम = $ tbl2; $ Src2- & gt; आलो [0] - & gt; कोलनाम = "आईडी"; $ Src2- & gt; आलो [0] - & gt; वैल = $ एएलएम- & gt; editID; इस कोड के साथ $ src2- & gt; आलो परीक्षण करते समय। प्रिंट ("\ $ src- & gt; crit एक "। $ Src- & gt; आलो।" & Lt; br / & gt; "); print_r ($ src- & gt; crit); प्रिंट ("& lt; br / & gt;"); इसे वापस कर दिया गया है। $ src2- & gt; crit एक अर्रे अर्रे है ([0] = & gt; डेटासेट ऑब्जेक्ट ([tblName] = & gt ; Sxam [colName] = & gt; आईडी [वैल] = &am

c# - Interface for method that returns its own type -

मेरे पास ऐसी स्थिति है जहां मेरे पास एक वर्ग है class Foo {Foo Bar () {नई फु (रिटर्न) (); }} अब मैं उसके लिए एक इंटरफ़ेस बना रहा हूँ class IFoo {??? बार (); } प्रश्न चिह्नों की जगह क्या होना चाहिए? प्रत्येक वर्ग को इसे अपनी तरह से वापस करना चाहिए, फ़ू नहीं। नीचे दिए गए समाधान काम करते हैं लेकिन साफ ​​नहीं दिखते मुझे समझ में नहीं आ रहा है कि मुझे एक ही कक्षा को दो बार क्यों निर्दिष्ट करना है, और वर्तमान प्रकार के लिए "यह" जैसा कुछ भी नहीं है ऐसा मैं बाद में इसका उपयोग कर रहा हूं < कोड> क्लास जेनेरिक क्लास & lt; T & gt; जहां टी: आईएफू {टी एफू = नया टी (); टी वस्तु = foo.Bar (); } आप पूछें: नीचे दिए गए समाधान काम करते हैं लेकिन साफ ​​नहीं दिखता मुझे समझ में नहीं आ रहा है कि मुझे एक ही कक्षा को दो बार क्यों निर्दिष्ट करना है, और वर्तमान प्रकार के लिए "यह" जैसा कुछ भी नहीं है इसका कारण आपको दो बार निर्दिष्ट करना है क्योंकि सी # आपको सुविधा की आवश्यकता नहीं है आप क्या चाहते हैं, ऐसा कुछ है: इंटरफ़ेस IFoo {IFoo बार (); } व

Paging in Crystal Sub report -

I am working on VS 2005 / Crystal Reports I In the sub-report, 18 needs to be recorded. Do I need to paging for crystal all reports? I'm not able to paging for the crystal sub-report !! You can press the extension section with this condition: If the record number & gt; N then the number of true and false // n rows is

perl - Match any GET path with Mojolicious::Lite -

I want to match any GET request in Mojolicious :: Lite. The code looks like this: get '. * '= & Gt; Sub (my $ self = shift; $ self-> render (text = & gt; 'nothing to see here, go along.');}; MojoX :: Routes :: Pattern.pm dies at line 301 with "modification of non-compositionable array value." I tried other arguments for matching , such as qr // works for / , but does not match / foo . I also tried to peek at the source, but I'm not intelligent Am you? I think you want: get '/ (* restepath)' = & gt; ... ( restofpath is a name that will allow you to get the actual pathname later, you will need it ...) For more information, see the documentation. < / Div>

Triggering jquery event when an element appears on screen -

I want to show a faint effect when the element appears on the screen. There is a lot of content before this element, so if I trigger Eeper on the document. Still, some proposals will not be able to see Wishers. Is it possible to trigger an event when the element is visible after scrolling down? I am pretty sure that I have seen this effect before, but there is no indication of how to get it. Thank you! The jQuery Waypoint plugin can be useful to trigger an action when an element appears on the screen Provides a method. For example: $ ('entry'). (Function () {warnings ('element has appeared on screen.');}); There are some examples on .

debugging C++ when compared to debugging C -

Hi, I'm usually a programmer, using tools like GDB, DBX Regularly debug C program on Unix environment. I have never debugged large applications of C ++ in what we are different from the debug. Theoretically I am quite good at C ++, but C ++ programs have not had the chance to debug. I do not even know what kind of technical problems we face in C ++, so developers have to switch to the debugger to find the problem. C ++ faces common problems that will start debugging debugger What challenges might a C programmer face while debugging a C ++ program? Is it difficult and complicated than C? This is basically the same. Just remember that in order to manually set the brake point, you need to get the method name fully qualified with both name space and class (as a resolve, Breakpoint makes it easy to define) Do not forget that the law enforcement may become invisible in the call source, but you can still step on them at the end of a block.

postgresql - How to find all points away from some polygon? -

I need all points for 10km that should go away from the rectangle, the geometry is_geom1, the rectangular (polygon) geometry is_geom2 Among them is the SRID 4258. I tried: SELECT 1 to table1, table2 WHERE ST_DWithin (table1.the_geom1, table2.the_geom2,10000) and table1.gid = 2; But the result is not okay. Your query should be a big issue as the unit conversion issues Has been discussed. You may have a problem with the unit selection or configuration. If you are telling this, for example, the geometry should be within 10000 miles, you will have to go about everywhere, 10000 km will return everything on the same continent.

How to use intent between tabs in java/Android? -

I should know how to handle intents between tabs For example, I have tabbed tab activity with two tabs But first there is a text view. Second is another map view when I click on that text, it is redirected to tab 2. It can be easily obtained from setCurrentTab (1) or setCurrentTabByTag ("Tab2") methods. But I want to leave that Pin Activity latitude and long that map activity. What is the best way to use intents or gator / setter in Java? What do you want to do? If your answer is "intents" how? An interesting problem I think is that you want to change the first tab in one tab to another tab in the first tabview, But on the second tab can also pass special data which is dependent on action in the first tab. I will usually start my thoughts inside the tab with an activity. However, the tab host is configured at this time. This means that for both activity, both sides give the same aspect, which allows a user to choose for a long time and who looks late in the sa

wpfdatagrid - wpf: DataGrid disable selected row styles - or row selecting -

How do I see many examples on the style in the similar row in DataGrid: Can I disable the selected line styles now? I do not want to override everything, which should be an easier way than making the selected row changes templates just do not want to make any visible changes .. or .. Disable the selection of rows, if it is easy .. but browsing this forum that looks good as a hackney Detected XAM to get rid of selection style .. Not ideal Not, but close enough .. Style x: Key = "cell style" target type = "{x: Type Detagreed cell}" & gt; & Lt; Setter property = "foreground" value = "black" /> & Lt; Style.Triggers & gt; & Lt; Trigger Property = "Iceded" value = "true" & gt; & Lt; Setter property = "background" value = "{x: faucet}" /> & Lt; Setter Property = "Borderbrush" Value = "{x: Faucet}" /> & Lt; / Catalyst & gt; &

tfs2010 - Creating new TFS 2010 project with VS 2008 -

Is it true that there is no way to create a new project on Visual Studio 2008 for Team Foundation Server 2010? I have been able to connect VS 2008 to my TFS2010 server (Team Explorer + SP1 + forward compatibility thing), and Yip, I can see my TFS2010 archive from VS 2008 UI only. The problem is , I am unable to find a way to create a new team project on the TFS2010 server through the VFS2008 UI. Can not make it from scratch, add existing projects to the source. If VS 2008 can not do actually TFS 02010 (disappointment !!), then what option do I have? I hate to boot just VS 02010 to make every project. (And yes, I have somehow caused my reasons that I still on my VS2008 when I installed a VS2010. I waste. :() < P> Thank you guys. It was found on a slightly MSDN: There are many information about Team Foundation Server 2010 features in Team Explorer 2008 and Team Explorer 2005, administrative functionality is limited to the Explorer Explorer 2010 client, for

c++ - Profiling help required -

I have a profiling issue - I imagine that the following code is ... < Code> zero main () {well_written_function (); Bad_written_function (); } Zero OK_written_function () (for a small number) {high_pitimized_subrantin ()); }} Void horribly_written_function () (for a useless and unnecessarily large number) {high_patimized_subrantin ()); If I run it under vtune (or other profilers) it is very difficult to figure out that there is anything wrong. All hotspots "// many more codes" will appear in the marked segment which has already been optimized. Is there a feature of vtune that will help me find this problem? Is there any type of mode by which I write badly / function () and all its subfunctions This is commonly known as "Call Graph Profiles", and I'm sure the Visual Studio will do so.

javascript - How to return $(this) -

I am using jQuery and have created a plugin for some in the work of the house, which is basically our internal API Makes url for Anyway, I want to return $ (this) and I'm not getting the right thing and I'm getting a manufactured documentframement error? Plugin Code: $ Get (base_url, {Agenda_id: defaults.id, verb: defaults.action + defaults.Type, output: defaults.output}, function (html) {defaults.callback (html);}); It works fine, but I want to add obj the return like this: $ Get (base_url, {agenda_id: defaults.id, action: defaults.action + defaults.Type, output: defaults.output}, function (html) {defaults.callback (html); return obj;}); Obj is set to start at the beginning of my plugin and works fine during the OGJ plugin

How can I paste some string to the active window in Python? -

संभव डुप्लिकेट: क्या कोई मुझे एक उदाहरण बना सकता है या मुझे समझा सकता है कि मैं सक्रिय विंडो में पायथन के साथ कुछ चिपक कैसे कर सकता हूं? मैंने संपादित किया है क्योंकि मुझे नहीं पता था कि क्लिपबोर्ड पर चिपकाने के लिए पेस्ट सक्रिय नहीं है विंडो ... डुप्लिकेट देखें: विंडोज: मैक: लिनक्स:

c# - ContextMenuStrip Is Available On NotifyIcon, But Not ContextMenu? -

I'm adding a context menu to a WinForm application and I want to add it to NotifyIcon. This issue is not included in the NotifyIcon properties only context menu strip and ContextMenu is not thanks! Seeing that it is a context menu property, what version of Net are you using? Perhaps you are looking at the property grid? You may have to set that property in the code.

css - How to make a floated div 100% height of its parent? -

यहां HTML है: & lt; div id = "outer" & gt; & Lt; div id = "इनर" & gt; & lt; / div & gt; टेस्ट & lt; / div & gt; और यहां सीएसएस है: #inner {float: left; ऊंचाई: 100%; } क्रोम डेवलपर उपकरण के साथ निरीक्षण पर, आंतरिक डिविजन 0 पीएक्स की ऊंचाई प्राप्त कर रहा है। मैं इसे कैसे 100% माता-पिता div? इसके कंटेंट के आधार पर #outer ऊंचाई के लिए और उसके पास #inner इसके ऊँचाई का आधार है, दोनों तत्वों को पूरी तरह से तैनात करते हैं। अधिक विवरणों के लिए युक्ति में पाया जा सकता है, लेकिन अनिवार्य रूप से, #inner #outer की ऊंचाई स्वतः की ऊंचाई को अनदेखा करनी चाहिए #outer बिल्कुल स्थित है तब #inner ऊंचाई 0 होगी, जब तक #inner ही बिल्कुल स्थित नहीं है। & lt; style & gt ; #outer {स्थिति: पूर्ण; ऊंचाई: ऑटो; चौड़ाई: 200px; सीमा: 1px ठोस लाल; } #inner {स्थिति: निरपेक्ष; ऊंचाई: 100%; चौड़ाई: 20px; सीमा: 1px ठोस काला; } & Lt; / style & gt; & Lt; div id = 'outer' & gt; & Lt; div id =

is it possible to move the emacs minibuffer to the top of the screen? -

I have started coding on a 30 inch monitor and wondering if to move the minibuff at the top of the screen Is it possible in Emacs? A default- minibuffer-frame and See the document for the initial-frame-believer wars. It appears that you may be able to have a separate frame for your minibfour (which you can place at the top of the screen), and then generate the minibfiler frames that use it. Note that initial-frame-alest indicates that "if the price demands a frame without a minibor, and you have not made yourself a minibf frame , Then there is a way to save and restore a minibar frame to the minibuffer-frame- frame configuration, so if this is done then if the emacs are started, you may have to manually restart the layout : Can be created. EDIT: This Below is a very basic example / concept archive for using the arrangement of the frame. The minibor frame can not be removed until the frame has been used, it has been removed. When you do things, you have troub

c# - NHibernate Many-To-One on Joined Subclass with Filter -

I have a class setup that looks something like this: Public abstract class guardian {Public Virtual Bull Idealized {Received; Set; }} Public Square Children: Parents {} Public Sections Other {Public Virtual Ilkonak & lt; Child & gt; Children {receive; Set; }} The child has been mapped as parent with sub-class. Child is mapped as a bag of bags, a filter applies to the bag, named soft datablefilter. The filter looks like mapping: & lt; Filter-def name = "softDeleteableFilter" condition = "(IsDeleted = 0 or IsDeleted is Zero)" /> The problem is that when the other. If the child is loaded, then this baby is being applied to the table on the filter, not on the parent table. Is NHibernate any way to apply filter to parent class? Edit: Here is the parent mapping: & lt; Class name = "parent" & gt; & Lt; Id .. & lt; Property Name = "isedied" type = "System. Boolean" & gt; & Lt; Column n

html - Is it possible to make cross browser rendering site without using CSS reset? -

Is it possible to create a cross-browser rendering site without resetting CSS? Reset css for all websites, small, one page, big? Should we write all the CSS without the reset, then only solve the necessary problems, to keep the necessary things in the CDS reset, or should we start using the CSS reset point? Should I suggest using CSS Reset on learning new CSS HTML or not? I was wondering if I would suggest using CSS reset, then how will he know why we use CSS reset? Am i right Is it possible to perform cross-browser rendering using CSS reset Without site? It is possible that such sites which render equally in the browser, but very difficult, in order to create css reset or not , in all browsers Pixel-K-pixels are presented equally (personally I do not work hard unless a client wants me to do this) but for most cases, this is possible. Is CSS reset for all websites (small, one page, big)? I've used your CSS reset for single-page side projects as well