Posts

Showing posts from March, 2011

c++ - Difference between System::Convert::ToString() and std::to_string()? -

I am a complete Noah in Visual C ++ programming, so I do not know whether it makes sense or not. Well, I'm trying to change a label text to display in a form, so if I do this: int value_a = 1; Int value_b = 2; System :: String ^ J; J = System :: Convert :: ToString (value_a) + "," + System :: Convert :: ToString (value_b); Label 1 - & gt; Text = j; It works perfectly, but when I tried to do this: int value_a = 1; Int value_b = 2; System :: String ^ J; J = std :: to_string (valor1) + "," + std :: to_string (valor2); Label1-> Text = j; I get lots of errors ... what is the difference between using string j; or System :: string ^ j; between more functions System :: Convert :: Toasting (); and std :: to_string (); ???? system :: string ^ j; is a C ++ / CLI string that is the implementation of C ++ at the top of Microsoft's NAT framework so that you can communicate it with NIT languages ​​(C #, VB.Net) and st...

unpivot - How to stack data with SQL Server -

OK, so I have data with some large numbers of columns, say 400. UID, id, id, var1, var2,. . . Var400 1, 23, 4651, 0, 0,. . . 1 2, 47, 8567, 1, 1,. . . 5 I have this vertical so that it looks like this: UID, ID, ID, variable, value1, 23, 4651 var1, 0 1, 23, 4651 var2, 0 . 1, 23, 4651 var400, 1, 2, 47, 8567, variant 1, 2, 47, 8567, ver 2 2. . . 2, 47, 8567, var400 5 There should be some relatively easy way to do this change. But I can not think of what this is. Anyone have any ideas? OK, this will work for SQL Server 2005+ You have a stable version of UNPIVOT : select UID, ID1 ID2, variable, price (select * from YourTable) T UNPIVOT (value in variable (Var1, var2, .... var400 )) U; With a demo of this. This will work, but you have to write each of your 400 columns. If you do not want to do that (but I recommend that you do), then you can extract the column name first and use the dynamic SQL: @sql of NVARCHAR (Max) Select @cols NVARCHAR (Max) Select @col...

java - deferredjs folder in the GWT compiled folder -

I am deploying my GWT application in a CMS, and thus copying files from the compiled folder , I do not copy it to folder deferredjs but still the app works fine, what is this folder and it contains many subfolders whose folder names are like GUID? This is the part of the code which will load asynchronous when necessary. This is a way for small portions of javascript. Read this to get more information. If your app works because either you are not using that code (this can also be a part of a 3rd party component), or loading is failing and you are not Take an error after this failure.

javascript - How to get new messages SQS without send the private key -

We want to use SNS + SQS to create a push-based service for our system. We know that we can do it and we are doing this now, the problem is: The customer will ask new channels (SQS queue), not new message or not, but to do it For this, the client has to send a private key, which is a security hole, in this way the reason, for all SOS services, will be able to send new notifications ... Is there any way we can avoid this? ? Just to clarify: I do not have to send a personal, but I need to request, and to do this, I need a private key, because it is done through Javascript Unsecured, because I can not do this: var private kikoioacanhackemake = "MyPrivateKey"; Well, I understand that you do not want to send the customer access to reach key and Pre-Shared Key? In this case, I will recommend your customer: Create a new UI user and provide access only to your classes. Get Ace from the Secret Key and New User Access Key This help helps your customer avoid security ...

haskell - Is there a LambdaCube 3D tutorial or introduction? -

I have become interested in functional graphics, I came to do, is there any introduction to it? The documentation on hacking is quite large, samples are a bit late, and whenever it is interesting, it is not allowed to start. itemprop = "text"> There is no tutorial-level content yet as the longdocube still is in phase where everything is constantly changing, any The kind of guide will lose its relevancy almost immediately. The only thing that has been kept up-to-date is samples in the repository, even if they are not documents, so if you want to start playing with today, I still I recommend reading them. In particular, it was designed to be free: it shows how messes and pipeline details can be prepared from scratch. It is important to note that the Lambedecube version on haggass is still the old engine, which does not have anything that you read on the blog, as it is an old OGRE-inspired mandatory renderer. is.

c++ - How to generalize an iterator to a certain type -

Consider these two functions, which work well for std :: vector: int ConnectNode (GraphNode const and newNode, std :: vector & lt; GraphNode const * & gt; :: launches const_iterator; candidates, std :: vector & GraphNode const *>: const_iterator endCandidates } {Int connections = 0; (Auto IARR = start candids; Iter! = And candidates; ++ Iter) {if (Connectododes (Hydrom, ** Iter)) ++ connection; } Return Connection; } Int connectNode (GraphNode const and newNode, std :: vector & lt; GraphNode & gt; :: const_iterator has been started, std :: vector & gt; GraphNode & gt; :: const_iterator endCandidates} {int connections = 0; (Auto IARR = Start Candidates; Iter! = And Candidates; ++ Iter) {If (ConnectNodes (Nodnod, * IAR)) ++ Connection;} Return Connection;} These functions work well for vectors but not clearly for any vertical containers, eg a set. How to normalize them I can imagine that the only possible solution is that some pretty ugly enabled ...

c++ - How to create custom basic type in QML? -

I do not mean QObject or high derivative element, but basic type - bool, int, real and so on. There is no excavation in the sources for this too ... So any information is appreciated. After I think you want to register more complex types, from int, boole, real, because They already exist. You can not do it in QT 4.x. It is possible in QT5 (QML2) but there is no public API. If you still want to do this, you need to implement a QQmlValueTypeProvider (qqmlglobal_p.h) and make QQmlValueTypeBase & lt in some code How to dig your own, there will be no need to see the documentation as there . & Gt; For each type of sub-category (qqmlvaluetype_p.h) then register your value type provider with QQml_addValueTypeProvider () () in the registerTypes of your plugin An example may look at yourself QGeoCoordinate, QGeoRectangle, Etc. are from QtLocation module. Good luck.

jquery - Chain .on() with .not() to remove unneeded elements from the object -

I have a web form, that I do not need to include these inputs. So for example, an input which I do not need to force the event that happens first. It should only be bound to those inputs that affect the reducing effect while navigating away from the window. This is the current binding to me: formChanged = false; $ ('Change.form_change', 'input: not (.leave-change-allowed), textarea: no (. Leave-change-allowed), select: not (.leave) - change ()), work () {if formchanged} {formChanged = true; $ (window) .bind ('beforeunload', function) (if (formChanged) {return 'are you sure you navigate From this window, you will lose the unsaved changes. ';}});} And {$ (this). Unbund (' change.form_change ');}}); As you can see I have included the elements of the selector as : not (.leave-change-allowed) , to select form elements Separated by commas for However, I do not want to add the selector to no () , because there can be some selectors, I want to...

osx - Include Headers from added frameworks on Xcode -

Image
I want to work with some framework such as glew and cg By right-clicking on project - & gt; Manually added The necessary frameworks for my project. Add to File ... And the problem is choosing the right framework, when I try to include header files, Xcode can not find any of them Hopefully this will help in understanding the picture: and: The fault given is for the blinking setting, but it is also on cg The Minister. As you can see on the left, the required frameworks were added. How can I include these headers? After trying to add header files manually, I found an architecture error: I do not know how it should look like this. Thanks! Before starting, remove the structure and all the files while trying to work it out. Then, you have to add the frameworks to the build steps of your goal then go to link binary with libraries and select your framework from there It should do so that your header should be available as autocomplete aft...

sql - To convert a table into a specific format in Mysql -

मेरे पास 1.7 मिलियन पंक्तियाँ हैं तालिका संरचना (Datapoint, AttributeName, AttributeValue) है। पहला कॉलम i। Datapoint समान है: (1, AttributeName1, Attributevalue1) (1, AttributeName2.Attributevalue2)। । N बार (2, विशेषता नाम 1, विशेषता संख्या 1) (2, विशेषता नाम 2, विशेषताव्यू 2)। । एम बार (11113, एट्रिब्यूटनाम 1, विशेषताव्यू 1) (11113, एट्रिब्यूटनाम 2, एट्रिबेंटव्यू 2)। । Ptimes मुझे एसक्यूएल में एक प्रक्रिया लिखनी होगी जो उपरोक्त डेटा को नीचे प्रारूप में परिवर्तित कर देता है: (Datapoint, AttributeName1, AttributeName2, ........... ..ऍटिबेट नैनें) (1,, विशेषतावल्क 1, विशेषताव्यू 2, .........................) (2,, विशेषतावल्क 1, एटिट्यूड वैल्यू 2, .... .....................) (11113,, विशेषतावल्क 1, एटिट्यूड वैल्यू 2, .................... .....) कृपया मुझे इसके बारे में जाने के बारे में बताएं। धन्यवाद MySQL में धुएं फ़ंक्शन नहीं है लेकिन आप डेटा को बदल सकते हैं मामला अभिव्यक्ति: चुनें डेटापॉइंट, मैक्स (जब attributeName = 'attributeName1' तो विशेषताव्यू समा...

objective c - iOS UISegmentedControl cannot positon programatically -

I can not change the location of UISegmentedControl if I do this: segControl2.frame = CGRectMake (segControl1.origin.x, segControl2.origin.y, segControl2.size.width, segControl2.size.height); Nothing really changes, and everyone says that the frame of control should change, but it is not really. cgtff frame = [[USScreen main screen] border]; UISegmentedControl * segControl = [[UISegmentedControl] initWithItems: [NSArray alloc] initWithObjects: @ "one", @ "two", @ "three", zero]; SegControl.frame = CGRectMake (frame.organ.50, frame.corein + 50, segControl.size.width, segControl.size.height); [Adviewview: see cajccontrol]; should work fine now.

javascript - Woocommerce won't add products to cart -

I'm not sure what I did to break it because it was working fine for a while but now I Can not add products to the site I'm working on, in Woman Cart In every effort, I get a message in the "Choose a product option" replacement. I have a selected value for each variable, yet it still does not work. I am thinking that there may be something like that with its quantity selector that can not possibly go through medium. There may be a conflict with some jQuery libraries and I have been asked to check the errors. I have tried countless times to reach it and I do not know the solution And it should be fixed as soon as possible. Any information or assistance to anyone will be greatly appreciated to help. This is an example page for a product that There was only one problem and it was decided. This was a caching problem on my host. Once they were expelled (on the server side) after some sessions / cookies were cashed, all started working again.

xml - Incorrect XPath in extractValue method of PLSQL -

Does anyone help me in fixing the XPath statement that goes into the statement of SQL (Oracle) To remove the price of & lt; BrandName & gt; is "Bravo" and whose model name is "XYZ789": & lt; CarDetails & gt; & Lt; Wheels & gt; & Lt; Rim & gt; & Lt; BrandName & gt; Acme & lt; / BrandName & gt; & Lt; Model & gt; & Lt; Name & gt; ABC123 & lt; / Name & gt; & Lt; Price & gt; $ 350.00 & lt; / Pricing & gt; & Lt; / Model & gt; & Lt; / Rim> & Lt; Rim & gt; & Lt; BrandName & gt; Bravo & lt; / BrandName & gt; & Lt; Model & gt; & Lt; Name & gt; XYZ789 & lt; / Name & gt; & Lt; Price & gt; $ 250.00 & lt; / Pricing & gt; & Lt; / Model & gt; & Lt; Model & gt; & Lt; Name & gt; GHI456 & lt; / Name & gt; & Lt; Price & gt; $ 300.00 & lt; / Pricing & gt; & Lt; /...

c# - Populating a dropdownlist based on a previous dropdownlist selection -

I have been given two dropdown lists within my ASP website, there are four options in the first one that a user chooses and its basis The second dropdown list will pop up from the selected database column data on This code currently has two problems: 1. Under my 'obsolete index change' method, I can not trigger my event if I want to click the first element in the dropdown list, then I have to click on another item and it will also trigger again for the first time. I have autopostback set to true 2 When the event triggers the data, the second dropdown list is not populated, for this dataset Popular with the right amount of rows, but the data is not displayed. Once the first element is selected from the first dropdown list i.e. 'coffee name', the second list comes with the correct line number 3 but not with the correct data Current code: Protected Zero empty dropdown list 1 selected index-based (object sender, eventAggas E) {string option = dropdownli...

sql - PostgreSQL SELECT Must Match Across Multiple Rows -

I have a table in which there is a pair of timestamp which represents a timepan, these lines are scotched by user id , And each user may have one or more rows. This data is generated from an abstract "availability" form which indicates when the user becomes available during the week. I need to input a series of time limits as a query and return all the User ID, for which all the rows are in the table match. Considering this table: and this data: User # 1 is available Mon- Between Tuesdays 08:00 and 17:00 - - + --------- + --------------------- + ----- ---------- ------ + | ID | User_id | Start_at | Ends. + ---- + --------- + --------------------- + ------------ --------- + | 1 | 1 | 2013-03-18 08:00:00 | 2013-03-18 17:00:00 | + ---- + --------- + --------------------- + ------------ --------- + | 2 | 1 | 2013-03-19 08:00:00 | 2013-03-19 17:00:00 | + ---- + --------- + --------------------- + ------------ --------- + User # 2 is available Sun-all-day + ---- + ...

java - Getting list of items inside div using Selenium Webdriver -

मेरे पास निम्न है & div; div class = "facetContainerDiv" & gt; & Lt; div & gt; & Lt; label class = "facetLabel" & gt; & Lt; इनपुट वर्ग = "facetCheck" प्रकार = "चेकबॉक्स" / & gt; & Lt; / लेबल & gt; & Lt; label class = "facetLabel" & gt; & Lt; इनपुट वर्ग = "facetCheck" प्रकार = "चेकबॉक्स" / & gt; & Lt; / लेबल & gt; & Lt; label class = "facetLabel" & gt; & Lt; इनपुट वर्ग = "facetCheck" प्रकार = "चेकबॉक्स" / & gt; & Lt; / लेबल & gt; & Lt; label class = "facetLabel" & gt; & Lt; इनपुट वर्ग = "facetCheck" प्रकार = "चेकबॉक्स" / & gt; & Lt; / लेबल & gt; & Lt; label class = "facetLabel" & gt; & Lt; इनपुट वर्ग = "facetCheck" प्रकार = "चेकबॉक्स" / & gt; & Lt; / लेबल & gt; & Lt; / div & gt; ...

javascript - How to manually add an item into datasource in Kendo UI Combobox -

I have a combo box which is populated by the JSON string derived from servlet. $ (document) .ready (function () {// Knboboks Init (from Sserlet) var combo Boksdetasors = new Kendodeta. Datasors ({transport: {read: {url: "net / samso / action / common / comboAction? (field: {key: {type: "string"}, value: {type: {@}: "string"}}}}}; // manually an item combo Boksdeta from Add source. ({key: "062", say: "Total"}); // Comboboks $ begin ( "# Cb_srchgt_io_gb"). KendoComboBox ({data source comboBoxDataSource, dataTextField: "value" data Valufild: "Key "})}); As long as I data source comboBoxDataSource.add ({key: "062", the value: "The manually try to add an item to the total"}), then the code works fine Code>. When the item is added, it gets rid of other objects which had populated data from the data source in JSN. the problem is that Datasor has been asynchronously from scratch...

javascript - Modifying each word of a function -

What I'm trying to do is type a function that converts each word into string in Paglatin. For each word, depending on whether it changes, it depends on whether it starts with vowel or not, with a consonant it needs to be added at the end of each word, and every word that starts with the tone, end up Should be added to. Finally, for each word, before adding those Sufi groups, the first letter of the word must be finally inserted. Any suggestions? Function Pigletin (Cavetital) {var alertThis = ""; Var whatWeTitle = document.getElementById ("isLaaper") value; Var splitArray = whatWeTitle.split (""); Var final string = ""; (I = 0; i & lt; splitArray.length; i ++) {final string = = partition array [i] + "a" ";} alert (final string);} It looks like a little fun, here is a function based on which to accept the function for the replacement: / P> function text topp (t) {var vowels = {A: e, 'e', ​​i: 'i...

java - Generic Data Type Parameter -

I have this class that works with sorting arrays through the selectionSort . . I'm having trouble sorting my array in my main function (attached at the bottom) ... What is the correct way to call selctionSort () ? My problem: " Selection source (T [], integer) type SortArray is not applicable for the argument (int [] , Int) ". ..I am trying to cross my ARAR on this function, which gives me this error. / ** To sort out an array of comparative objects, the largest from the smallest of the class / the public category sequence {/ ** ascends the first n objects in an array in ascending order. . @ An array of the ultimate one comparative objects @ ultimate n an integer & gt; 0 * / Public stable & lt; T comparative Extended & lt;? Super T & gt; & Gt; Zero Selection Sector (T [] A, Int N) {For (Index for Index = 0; Index & Lt; N - 1; Index ++) {Int Index FlexXSlatam = MatchAndxF SML (A, Index, N-1); Swap (A, index, indexoffinestestest); //...

sharepoint - OOTB Workflows dont migrate from MOSS 2007 to SP2010 -

I am migrating to SharePoint 2010 (just SP1 for now) from MOS2007 (12.0.0.6670) in my Dev environment Using the database attached method. (Server 2003 32 bit is running in Server 2008 R2 64bit - from SQL2005 SP3 to SQL2008R2) After attaching Content DB, I've found that only custom workflows have been migrated to SP2010 - and Out of the box workflow that was already configured. (Custom workflows were made in SP designers). I went to site features and confirmed that the 2007 workflow feature has been activated, and according to my Google search results, I have tried to disable it, enable it again, To redo in, tried to enable workflow features using PowerShell, and a suggestion that was relayed by someone in a forum post from Microsoft, enabled the feature T, have access workflows through the designer and they magically appear. / P> I can rebuild the workflow, but there will be a ton of effort to create 2-3 workflow on such a large number of lists - and I'm not sure that...

Prevent button disabling when inputs are not valid jQuery Validation -

I used to disable the asp.net web form button when the button is clicked Click $ (function () {var button = set; setimimate (function () {$ (button) .attr ('disabled', 'disabled');}, 100);});} ); But when I & amp; Amp; From plugin to page, $ (document) .ready (function () {$ ("# form1"). ValidifyWebForm ({Rule: {myDate: {customDate: true}, nic: { NicNo: true}}} ... ... Disables the button even if this input is not valid. Input is not valid, how to avoid disabling the button? Disable the button and test the form before submitting According to the comment, I know that you are starting a valid jQuery plugin with another plugin, but the basic concept should be below Demo: jQuery : $ (document). (Function () {$ ('# myform') validate ({// rules and options }; $ ('Click', function (e) {e.preventDefault}; if ($ ('$ myform') Valid ()) {$ ('# myform'). Do (); $ (This) .attr ('disabled', 'di...

php - How to replace all, and then add a numbering sequence marking replacements? -

Hi, I have an example file name: losangeles.php 2252 times and I want to convert it to losangeles-0001.php , Losangeles-0002.php, losangeles-0003.php and so on, losangeles-2252.php, how is it done? Thank you! $ str = & lt; & Lt; & Lt; EOF losangeles.php losangeles.php losangeles.php EOF; $ Str = preg_replace_callback ('#' B (Los Angeles) (? = \.) # I ', create_function (' $ m ',' fixed $ i = 1; return $ m [1] .sprintf ("-% 04d" , $ I ++); '), $ str); Copy $ str "\ N"; Output: Lessangles-0001.php Los Angeles-20002.php losangeles-0003.php Live Demo:

javascript - inserting a row on click jquery -

I am struggling to explain why my code is not working, I have a text field, 2 checkboxes and One row has an add button. I have 4 rows on the load, I have a hyperlink when clicked, should add a new row at the end of the table Adding my code line Alternatively the first row starts with my last row 4 which is the cloning I am doing I'm getting the sequence when clicking on the link 1,4,2,4,3,4,4,4 I do not know where I'm making a mistake, I banging my head I've been in the last 4-5 hours for & lt; Table id = "setting" & gt; & Lt; Tr & gt; & Lt; Td> & Lt; Input name = "name_1" type = "article" /> gt; & Lt; / Td> & Lt; Td> & Lt; Input type = "checkbox" /> & Lt; / TD & gt; & Lt; Td> & Lt; Input type = "checkbox" /> & Lt; / TD & gt; & Lt; Td> & Lt; Input type = "button" /> & Lt; / Td> & Lt; / Tr & gt; ...

android - ArrayList not displaying to ListView -

तो मेरे पास SQLite डेटाबेस है, और एक ArrayList और मैं मूल्यों को खींचने के लिए और उन्हें एक और ArrayList में लाने के लिए निम्न कोड का उपयोग कर रहा हूं, मैं एक त्रुटि प्राप्त कर रहा हूँ NPE नल पॉइंटर अपवाद इस विधि के लिए जब मैं कोशिश करता हूं और इसे मेरी सूची दृश्य में प्रदर्शित करता हूं इसे निम्नलिखित प्रदर्शित करना चाहिए: मुख पृष्ठ: 24 कार्य: 2 स्कूल: 0 आदि आदि getLocationsArray विधि सभी स्थानों को रिटर्न देता है और मेरा क्वेरी प्रत्येक स्थान के समय की मात्रा देता है पर धूम्रपान किया गया है मैंने उन दोनों को लॉग। V के साथ चेक किया है और वे सही मान प्रदर्शित करते हैं। तो यह मेरे ListView ? सार्वजनिक मायसमोकिनडेटाबेस (संदर्भ संदर्भ) {smokinDBOpenHelper = नया SmokinDBOpenHelper (संदर्भ, SmokinDBOpenHelper.DATABASE_NAME, रिक्त, SmokinDBOpenHelper.DATABASE_VERSION); मॉडल = नया मॉडल (); }

c++ - Optimal Buffer size for read-process-write -

In my function, I have to read some data in a buffer from a file, manipulate data and write it in another File. The file is of an unknown size and can be very large. If I use a small buffer, then there will be a long read / write cycle and it will take longer. Conversely, long buffer means that I need to consume more memory should I use the optimum buffer size? Is this matter dependent? I have seen some apps like 'yours copy' in windows that manage large files efficiently. Note: This program will be running under Windows. See what Microsoft has to say about IO size: In fact, they say that you IO should do in 64K blocks. On the NIX platform, the struct stat has a st_blksize member who says what should be a minimum Io block size.

iphone - Load different xib files on Orientation in iOS -

I have created another file for another landscape mode for two .xib I want to load the related .xib file on each rotation, Here is my code snippet, ViewAppDelegate.m Class border]]; ([UIApplication shared application]. Startbars Orientation == UIFrance Orientation Portrait | [UIAPCitration ShareApp] .Statsbar Orientation ==UINFterfaceArmentation PortraitUpdiddownDown) {Self Viewing Controller = [[Orientation VUIC Controller Allocon] In Whitneyname: @ "Portrait Controller" Bundle: Nile]; UINavigationController * Navigation Controller = [[UINavigationController alloc] initWithRootViewController: self.viewController]; Self.window.rootViewController = Navigation Controller; } Other {self.viewController = [[Orientation Week Controller Alok] initWithNibName: @ "Landscape Controller" bundle: zero]; UINavigationController * Navigation Controller = [[UINavigationController alloc] initWithRootViewController: self.viewController]; Self.window.rootViewControlle...

api - +1 click is not working in Android integration with Google+ -

I followed to use a link or +1 buttons on my Android app to a website +1, but Unfortunately, it did not work as expected and when I clicked on it, it did not answer. I tried using the following: mPlusOneButton.setOnPlusOneClickListener (New OnPlusOneClickListener () {@Override public void onPlusOneClick (intent arg0) {// TODO Auto-generated method stub startActivityForResult (arg0, 0);}}); But there is no answer. As an example, I use the following line of code to try to: mPlusOneButton.initialize (plusClient, "http://www.googleplustoday.net", PLUS_ONE_REQUEST_CODE); And there's no impact profile on my Google Plus on the +1 tab. Who can help? thank you in advanced. Be sure to connect to Google Plus: mPlusOneButton.setOnPlusOneClickListener (new OnPlusOneClickListener) {Do @Override public void Prplsonklik (intent intent) {if (! PlusClient.isConnected ()) {plusClient.connect ();} and {StartActivityForResult (intent, 0);}}}

asp.net mvc - Error in webconfig file -

I am new to MVC 4. I am working on browsing the Internet on which I am working and I Model for my application. I have created one and when I try to add a controller, I get an error message. 'Unable to retrieve metadata for practice .Models. Customer '. Valid for' attachdbfilename ' Model : public class customer {public entry id {received Do; Set; } Public string name {get; Set; } Receive the public int amount; Set;}} Public class customer DBCettext: DBcinTex {Public DBset & lt; Customers & gt; Customer {Received; Set; }} Connection String : & lt; Connection best & gt; & Lt; Add name = "DefaultConnection" connectionString = "data source =. \ SQLEXPRESS; initial catalog = aspnet-practice-20130320183458; integrated security = SSPI" provider name = "System.Data.SqlClient" /> & Lt; Add name = "CustomerDBContext" connectionString = "data source = (locali) \\ v11.0; attachment debuffle...

javascript - Event target matches but function is not called? -

निम्नलिखित jquery पर विचार करें: $ ('। प्रविष्टि लिंक: नहीं (। $ ('Li a', this) .click (फ़ंक्शन (इवेंट)) {$ लक्ष्य} $ ('लिंक्स-संसाधित') = $ (Event.target); var tabPics = $ ('# tab-pics & gt; a'); यदि ($ target === टैबपरिक्स) {tabTest.getPics ();} $ ('। एंट्री-लिंक ली' ) .removeClass ('सक्रिय'); $ (यह) .addClass ('सक्रिय'); var id = $ (this) .attr ('href'); $ ('। प्रविष्टि बॉक्स: नहीं (' + आईडी + ')')। छिपाना (); $ (आईडी)। दिखाएं (); वापस लौटाना;});}); मेरे पास तीन टैब्स या मेनू आइटम हैं: जब आप एक पर क्लिक करते हैं, तो यह कोड दूसरों के कंटेंट भाग को छिपाएगा। इसमें से, निम्नलिखित भाग इस प्रश्न का फोकस है: $ target = $ (event.target); Var tabPics = $ ('# tab-pics & gt; a'); अगर ($ लक्ष्य === टैबपरिक्स) {tabTest.getPics (); } कोड स्निपेट के रूप में दिखाता है, जब मैं चित्र टैब पर क्लिक करता हूं, तब फ़ंक्शन कॉल करने की कोशिश कर रहा हूं। ब्रेकपॉइंट का उपयोग करते हुए मेरे कोड के बाद, ...

r - How can I download a set of prices with getSymbols and store them in the order it was requested? -

I download historical prices for quantmod with the getSymbols function for many tickers and By changing a list or following the following code, a multivariate XTS: library (quantmod) myenv & lt; - new.env () Ticker & lt; - Convert the list to "c" ("^ GSPC", "AAPL", "MSFT", tas (l); do.call (merge, (eapply (myenv,).))) # Multivirate exts Convert and remove only the adjusted value The problem I have from this perspective is that the order of the ticker and XTS in the list is not the same as I specified in the ticker Done: & gt; Name (ll) [1] "AAPL" "GSPC" "GOOG" "Root" "MSF" & gt; Name (SS) [1] "Adjusted AAPL." "GSPC Adjusted" "GOOG.Adjusted" "RUT.Adjusted" [5] "MSFT.Adjusted" I think that This is because eapply operates in a random order, as in the help pages of eapply : The order is arbitrary for the hashed...

actionscript 3 - AS3 - looping through movieclips and rasterizing them to bitmapdatas - how to be sure frames are ready? -

I have already given a new version for a question, but the answer is not found. I am developing a mobile AIR application with many animations and tests have shown that best performance is given in all mobile models using bitmap and GPU rendering. I get normal vector animations from app artists, and have created a system that hides in the runtime through these animations and pulls the content into bitmapads. My worry is looping through the movie clip frame. If I have these lines of code: for (var i: uint = 1; i & lt; mc.totalFrames + 1; i ++) {mc.gotoAndStop (i) ; BitmapData.draw (mc); I can not believe that the frame has been "created" before it is pulled, and my test with the Android tablet proves this right - Sometimes Frames are not drawn. This MC is clearly off the display list (we do not need to render on screen). So is there a way to ensure that the frame is created before being featured in Bitmapdata? (And are waiting for FRAME_CONSTRUCTED, EXIT...

syntax error - MODx. Empty partition / manager -

Image
/ प्रबंधक के नीचे खोया संसाधन वृक्ष MODX क्रांति 2.2.5-पीएल (उन्नत) व्यवस्थापक पैनल में लॉग इन प्राप्त होता है, लेकिन व्यवस्थापक केवल शीर्ष टूलबार है। मुख्य / कैश / लॉग / त्रुटि.लॉग में: [2013-03-21 11:18:22] (त्रुटि @ / Index.php) `` एक वैध पूर्णांक नहीं है और यूआरएल () करने के लिए पारित नहीं किया जा सकता है IE PHP /manager/index.php के हिस्से में कोई त्रुटि नहीं है। लॉगिन शो के बाद फ़ायरबग: संदर्भएरे: _ परिभाषित नहीं है ... rer: this.renderNoteCell.createDelegate (this)]}); this.grid_panel = new Ext .grid.Gri ... modx.t ... tory.js (Ñ ?? Ñ ?? Ñ ?? ок ° 806) संदर्भएर्रः: परिभाषित पैरामीटर नहीं है [this.paramNames.topic] = '/ ys / उपयोगकर्ता - '+ MODx.user.id +' / '; Modx.js (Ñ ?? Ñ ?? Ñ ?? окР° 820) प्रकार त्रुटि: MODx.user अपरिभाषित पैरामीटर [this.paramNames.topic] = '/ ys / user-' + MODx.user.id + '/' ; Modx.js (Ñ ?? Ñ ?? Ñ? окР° 820) क्रोम दिखाता है: संसाधन लोड करने में विफल: सर्वर ने जवाब दिया 401 की स्थिति (प्राध...

php - Why doesn't file_get_contents load phpscript properly in this example? -

मैंने कुछ कोड लिखे हैं, जो संक्षेप में निम्न करता है: & lt; Div id = "thisDiv" & gt; & Lt; / div & gt; & Lt;? Php echo "& lt; script & gt; document.getElementById ('thisDiv')। InnerHTML = '" .addslashes (str_replace (एरे ("\ n", "\ r"), "", file_get_contents (' / path / करने के लिए / फ़ाइल / example.php '')))। " '; & lt; / लिपि & gt;"; ? & Gt; हालांकि, मुझे पता चला है कि यह काम नहीं करता है: example.php के अंदर & lt;? Php? & Gt; टैग में कुछ भी नहीं है । file_get_contents () का उपयोग करते समय यह क्यों है और इसका एक तरीका है? कोड>, यदि आप इसे PHP स्क्रिप्ट पर उपयोग करने का प्रयास करते हैं, तो फ़ाइल के भीतर कोई भी PHP निष्पादित नहीं होगा। यदि आप एक PHP फ़ाइल को स्ट्रिंग के रूप में वापस करना चाहते हैं, तो एक विधि ob _ * () फ़ंक्शंस: ob_start () का उपयोग करना है; '/path/to/file/example.php' शामिल करें; $ सामग्री = ob_get_co...

shared libraries - Add LDFLAGS in qt .pro field -

How to add LDFALGS to QT .pro field? The Library folder and the Shared Library (.so)) are in a dir_path folder. For example, by adding this row LIBS + = -Ldir_path -library_name any suggestions? qmake has the QMAKE_LFLAGS variable for this. You can read about the Qmake variable.

css - Different sized menubuttons on a single page -

On my page I have 3 menubutions. I want different widths for each of them, for that I have the following Did: & lt; Style & gt; .ui-menus {width: 180px; } & Lt; / Style & gt; However, it sets the width of all menubutions up to 180px. I would like 180px, 140px and 160px width respectively. How can I get it? You must have some unique identifier for each (such as id ) And use them for style Alternatively, you can use the CSS3 : nth-child () selector, but this is probably overkill for your needs.

forms - Codeigniter callback on empty fields? -

I'm having problems with callbacks on empty areas. For some reason, I need to compare the price to some area with some other criteria and to make it "necessary" if some other conditions are met, then check it with the callback function . Unfortunately, if the field is empty, the callback function is not called. Are you thinking of resolving this issue? This "bug" is actually a "feature" of the form validation if the input is empty and the necessary rules If not set, it will leave all other rules (non-callback function also) in the system / library / form_dualtion.fp about line 486, all of you You can extend the verification (or hack) to continue through the tasks. See the comment: // If the field is empty but is not required, then no further testing is needed You can again create two lines Will see return; Shortly after that comment, lines for me are line 498 and line 536 (about 12 and 50 lines after comment). If you comment on...

How to make Angularjs $http.delete and asp.net mvc4 minification work together? -

I have an example / ASP.NET Working on the MVC 4 app which communicates with backend via asp.net MVC web API. The minimization of JavaScript files is done with MVC4, but when I use $ http.delete in angular code, then in the MVC 4 Minifier Returns bundle file The following error: / * minimization failed Returning non-proliferation content (1029,11-17): Run-time Alert JS1010: Expected identifier: Delete (1029,11-17): run -Time Error JS1137: 'Delete' is a new reserved word and it is known as identifier I should not be used: Delete I have made an alternative remedy which is the place of reserved word (in this case 'delete'), as described here, This means that delete $ http will be replaced with $ http.fooDelete , as a result that the angular can not recognize it. Is there any other workaround or is the simplest way to use jQuery instead Ajax? @Larcy has been used as $ http @delete as @Steve, according to someone Also using the IE reserved words cau...

android - Child selection in ExpandableListView -

Text after " In a ExpandableListView it is possible to select a child's item in the beginning so that the group containing Expansion happens I thought setSelectedChild will do this but it does not produce any results. The following part of the code I tested: the public class increases the main activity activity {Private Static Last String Title = "Title"; @SuppressWarnings ("Serial") @ Override Protected on Zero (Bundle Saved Instantstate) {Super. Secret (Saved Instantstate); ExpandableListView ListView = New Extension EligibilityListview (this); SimpleExpandableListAdapter adapter = New SimpleExpandableListAdapter (this, new ArrayList & lt; map & lt; string, string & gt; & gt; () {{this.add (new HashMap & lt; string, string & gt; () {{this .put (title, "group 1");}}); this.add (new HashMap & lt; string, string & gt; () {{this.put (title, "group2");}}); This.add (new HashMap & lt; string...

ajax - dojo.xhrpost getting status code as 0 -

I'm submitting a to dojo using xhrpost. My app runs on Ruby on Rails in a controller I I'm performing the redirect. I send a reservation header to the redirect URL. I use the redirect URL on the client and then load the redirect URL to the client. The following is the code. In the scene, dojo.xhrpost submit using ajax function () {var form = dojo.byId ("form_id"); Dojo.connect (form, "onsubmit", function) {// stop off event, since we want to control form submissions Dojo.stopEvent (event); var xhrArgs = {form: dojo.byId (" Form_id "), HandleAs:" text ", Load: function (data, ioargs) {redirect to url; // redirect URL redirected from {// response header var new_url = ioargs.xhr.getResponseHeader (" new_url ") . Location.href = New_url;}, Error: function (response) {// handling error}} // submit to deferred = dojo.xhrPost (xhrArgs);}} for the action 1; } Code in Controller def action1 new_url = url_for (: controll...

TFS Code Review Plugin : Multiple Users -

I have just started using the TFS Code Review plugin and it looks good. I want to know if there is any such setting through which a code review request can be sent directly to a group (not manually adding each member) There will be another question before this. Do we have a group level setting in TFS as we have approach and other applications I think you are a collaborator for this. The functionality of code review of TFS is not that powerful ...

data mining - How to decide the quality of a distance measure in machine learning techniques? -

How can I determine if a distance metric is good? For classification, use the highest cross-certified accuracy (or whatever quality measurement you need). For clustering ( Jstor, not free)

sql server group columns as rows (pivot?) -

I have found this result data in SQL Server 2008 R2 ID size Sum of Avg1 Avg2 A1, A2 A3 1 3921 39 690 17.69 0.18 Zero zero zero 40 11979 301 5944,26 19,75 0,5 10000,00 2000,00 1000,00 41 11714 289 5060 17,51 0,43 10000, 00 3000,00 2000,00 42 11599 265 4107,98 15,5 0,35 10000,00 5000,00 500,00 And to move columns in rows according to ID So I want to get this result: ID1 id40 id41 id42 1 40 41 42 3921 11979 11714 11599 39 301 289 265 690 5944 5060 4107 17,69 19,75 17,51 15 , 5 0,18 0,5 0,43 0,35 10000,00 2000,00 1000,00 1000000 3000,00 2000,00 10000,00 5000,00 500,00 Is there any way to do this? I tried the pivot, but as far as I tried that I can only change 1 column and in this case I am not required. To achieve this result, you want to first unpivot the data of the rows in the column, and then apply the Pivot function. Since you are using SQL Server 2008, you can use CROSS APPLY and VALUES to unpout the data. It converts from many of your columns and converts ...

java - Wrong Date inserted in Date column -

I have a strange situation In my application we present the current date (MM / DD / YY) Are putting a record with when users are using something in the application. Sometimes the date is being included with the wrong value, which is not the current date. (Ie: '21 / 09/2014 ', '13 / 09/2180', '22 / 08/2179 '). We are using JPA to record records from Java. Please help me find the problem or the solution for it. Below is the code, where I am preparing / passing the value for the domain object. date curDate = new date (); SimpleDetformSDF = New SimpleDetermate ("MM / DD / Yay"); UserAccessObj.setAccessedDate (sdf.parse (SDF format) (curDate)); Here is the java.util.Date setter method in the setAccessedDate (date) domain object. So, what can be the problem? I am unable to locate this issue. instead: UserAccessObj.setAccessedDate (sdf.parse ( Sdf.format (curDate)); Try it out: UserAccessObj.setAccessedDate (curDate);

scala - Gatling gives error when using parameter for ramp -

I'm using a parameter for my ramp value according to the docs, Val RampUpRate = Integer.getInteger ("ramp", 1) set up (scn.users (10). RampUpRate .protocolConfig (httpConf)) But when I run gatling I'm getting an error: 09: 57: 35.695 [error] ceegaZincCompiler $ - / Gatling / user-files / simulations / clients / com / mydomain / www / stress / RecordedSimulation Scala: 1088: Overloaded method value with ramp option: (Duration: akka.util.Duration) com.excilys.ebi.gatling.core.scenario.configuration.ConfiguredScenarioBuilder & lt; And & gt; (Duration: long) com.excilys.ebi.gatling.core.scenario.configuration.configured ScenarioBuilder can not be applied (java.lang.Integer) I thought Before using just the parameter val rampUpRate = Integer.getInteger ("ramp", 1) set-up (scn.users (10). Ramp ((long) ramp uprate). Protocol Config (httpConf) but still errors: 09: 57: 35.695 [error] ceegaZincCompiler $ - / gatling / user files / simu...

solr - Run incremental crawl using NCrawler -

When we use NCRLL with SOR, is there any way to run incremental crawling and indexing? I crawl my crawler every time, so do not want to get complete data. Is there a way to make crawl intentment? Thanks in advance. Nothing has been built in this for NCRWaller, you will need to make your processing to handle it. . However, the Extensible IPipelineStep mechanism will allow you to make any process around your crawling which you want. For example, when pages change and only the converted pages can be stored on the index, they can store each URL in the database with the content of the page's content.

java - LWJGL Texture a cube -

I currently provide a cube with VBOs, and with color. I want to leave some texture on them, and I do not have any information about it. Still OGL is learning, but how do I present the cube with texture on them? Do I need any other VBO for texture? Thank you! Yes, you need second, floatbuffer, not to mention a texture. When creating texture on an object, you need to use texture coordinates (). Use glTexCoordPointer () to map your texture to the cube You can load texture with lubricant library Which comes with LWJGL.

javascript - How can I pass select value to another function and get data from Json according to passed value? -

I am writing html and javascript code to get some data from a JSON file. My HTML code: & lt; Div class = "section" & gt; & Lt; Div class = "sectionTitle" & gt; & Lt; H3 & gt; Configuration & lt; / H3 & gt; & Lt; / Div & gt; & Lt; Select name = "select distribution" category = "span 12" onchange = "callDist (" value ");" Onfocus = "this.selectedIndex = 1;" & Gt; & Lt; Options & gt; Choose from Distribution. & Lt; / Options & gt; & Lt; Option value = "1" & gt; Uniform & lt; / Option & gt; & Lt; Option value = "2" & gt; General & lt; / Options & gt; & Lt; Option value = "3" & gt; Exponential & lt; / Options & gt; & Lt; Option value = "4" & gt; Geometric & lt; / Options & gt; & Lt; / Select & gt; & Lt; Div id = "parameter" ...

Joining three tables in SQL -

I have three tables file - file ID (PK), code, & Amp; Description hierarchy - File ID (fk), Folder ID (FK), Folder's (PK) folder - Folder ID (PK), Folder Name In the hierarchy table, the file ID will be empty for the folder and the folder ID will be empty for a file I do not get any results from this query SELECT File.fileId, File.code, File Description, Hierarchy.folderId, Hierarchy .folderKey, File.fileId = Hierarchy.fileId file from the hierarchy attached to the File Inner file. Include a folder on the hierarchy in the folder. Folder ID = Folder. Folder ID No clue Does this work? Add SELECT File.fileId, File.code, File.description, Hierarchy.folderId, Hierarchy.folderKey, from file to file folder. File = file on File = hierarchy.fileId folder on the left Join hierarchy. Folder = folder.foulder iid

css - Transparency in box shadow -

I am creating a title for my site. The background of the headings has been set as a horizontal gradient, so that the background is transparent Has been made because it goes from left to right What am I trying to do? Do I create a box shadow for the title As the shadow becomes transparent as it goes from left to right I did that Try the width: 500 pics; Height: 50px; Status: Completed; Color: # 535353; Left: 45%; Top: 50%; Margin-left: -150px; Margin-top: -200px; Background: -Moz-linear shield (left, RGBA (179, 218, 221,0.65) 0%, RGBA (24 9, 249, 24, 0,00%); / * FF3.6 + * / Background: -WebKit-Gradient (linear, left top, right top, color-stop (0%, RGBA (179, 218, 221,0, 65)), color-stop (100%, RGBA (249, 24 9, 249, 0,0)); / * Chrome, Safari 4 + * / Background: -WebKit-Linear-shield (left, RGBA (179, 218, 221,0.65) 0%, RGBA (24 9, 249, 249, 0,0 100%); * * Chrome 10+, Safari 5.1 + * / Background: -O linear shield (left, RGBA (179, 218, 221,0.65) 0% , RGBA (24 9, 249, 249,...

visual studio 2005 - system command not running exe file using variable as param -

I am writing code to download an app in Visual Studio 2005 (VC ++). After downloading it, when I start running it 3 line exe file does not run, while I write it as system ("c: /pg/ap/app.exe") Does it start to run, can someone tell me why this is happening? 1.const char * str; 2. HRESULT hr = URLDownloadToFile (NULL, _T ("file_path / app.exe"), (LPCWT) str, 0, NULL); 3. System (str); Instead using the system () function, Try shellExecute () , this will solve your problem. For more help

windows - Checking if the output is OK -

I am running a command with CMD through a batch file. echo phase 3. TNSPING tnsping vtdbs 2 & gt; If the error set 1 error is not checked for NUL, then Error set 1 = Set error = PASSED error level 1 set error = FAILED resonance result:% Error% but it only Tells me whether really was able to run the command. When this command is running, it gives an output. Blah blah blah blah blah blah blah blah blah blah Blah blah blah blah fine (80 milliseconds) The person should say "OK" as long as it happens .. Buzz: Passed else RESULT: unsuccessful but It is not sure what the 8th line is, how to check it and see. "OK" Here's a more efficient solution, it is also tolerant if tnsping vtdbs The output of is & lt; & Gt; 8 lines echo step 3. To check the TNSPING set in "error = FAILED" in / f %% i ('tnsping vtdbs 2 ^ & gt; NUL') (if "%% I" == "OK" (set "error = passed" and next): next...

Getting the Date format in Java -

इस सवाल का पहले से ही एक उत्तर है: 13 जवाब मेरे पास यह है स्ट्रिंग दिनांक वस्तु से: सोम 25 मार्च 00:00:00 IST क्या स्ट्रिंग दिनांक प्रारूप का प्रतिनिधित्व? नीचे दिए गए कोड को ठीक काम करना चाहिए। सार्वजनिक स्थिर शून्य मुख्य (स्ट्रिंग [] args) अपवाद फेंकता {स्ट्रिंग लक्ष्य = "सोम 25 मार्च 00:00:00 IST"; दिनांकफ़ॉर्मेट डीएफ = नया सरलडेटफ़ॉर्मेट ("ईईई एमएमएम डीडी केके: एमएम: एसएस जेड वाईये", लोकेल। एनजीएलआईएसएच); दिनांक परिणाम = df.parse (लक्ष्य); Println (परिणाम); } मान्य पैटर्न के लिए पढ़ें।

c# - Foreign key without constraints? -

I was studying DataRelations in Ado.Net and came to this manufacturer Here, the last parameter is createConstraints , which is explained by MSDN. as createConstraints type: System.Boolean A value indicates what constraints were created Are there. The truth is, if the obstacles are born otherwise, the wrong. What happens if I set it to false ? How can it create a foreign key without obstacles? Yes, the relationship will be created without the constraint ConstraintCollection More about the obstacles added: Relationship parents can cascade different changes in their child's lines from Detroit. To control how values ​​are changed in hair rows, add a foreign raw content in the ConstraintCollection of the Datatale object. ConstraintCollection determines what action is taken when a value is removed or updated in a parent table.

ios - dismissViewControllerAnimated:completion: method replacement doesn't work on Xcode4.6.1 -

मैं "वर्चुअल डिवेंडर नियंत्रकअनिर्मित: पूर्णता:" को iOS4.3 में इस पद्धति का उपयोग करने के लिए ओवरराइड कर रहा हूं। लेकिन इस तकनीक को एक रनटाइम त्रुटि मिली है क्योंकि मैं एक्सोड (4.6.1) अपडेट करता हूं त्रुटि: एड्रेस में कोई ऐसा ऑब्जेक्ट नहीं होता है जो ऑब्जेक्ट फ़ाइल में एक सेक्शन को इंगित करता है और रहस्यमय तरीके से, "presentViewController: एनिमेटेड: पूरा होने के:" विधि कोई probrem साथ काम कर रहा है ... यहां है "UIViewController + Compatibility.h" मैं प्रयोग किया जाता है । @implementation UIViewController (संगतता) - (शून्य) iOS4_presentViewController: (UIViewController *) viewControllerToPresent एनिमेटेड: (bool) झंडा पूरा होने: (शून्य (^) (शून्य)) पूरा होने {[आत्म presentModalViewController: viewControllerToPresent एनिमेटेड: झंडा ]; [आत्म निष्पादनकर्ता: @ सिलेक्टर (कॉलब्लॉक :) साथ ऑब्जेक्ट: डिलीवरी के बाद पूरा: (झंडा? 0.5: 0)]; } - (शून्य) iOS4_dismissViewControllerAnimated: (bool) झंडा पूरा होने: (शून्य (^) (शून्य)) पूरा होने {[आत्म dismissMo...