Posts

Showing posts from March, 2011

c# - How can I pin an array of byte? -

I want to pin an array of bytes which is 10 megabytes long so that managed and uncompressed code can work on it. My scenario is that I have an unmanaged driver who reads some data from the device and writes it in a large array and the managed app only reads that data. Something like this: byte [] data array = new byte [10 * 1024 * 1024]; I want to pin data ARR so that GC does not move it. What really happens when I just run the application, I get the database application, and after reading I came to know that to avoid this error, dataArray Should pin. How / What should I do? There are two ways to do this: First, use the static statement: Fixed using vulnerable void {var dataArray = new byte [10 * 1024 * 1024]; Fixed (Byte * array = dataArray) {// array is pinned to the end of the 'Fixed' block}} However, it seems that you have a long period of time For the time being, You can use S to complete it: Using zero () {var dataArray = new byte [10 ...

javascript - Illegal operation in Greasemonkey script compiler -

इस सवाल का पहले से ही एक उत्तर है: 1 उत्तर मेरे पास एक ग्रेज़म्की स्क्रिप्ट है और मैं एक स्क्रिप्ट का उपयोग कर रहा हूं // == यूज़रस्क्रिप्ट == // @name टेस्ट स्क्रिप्ट // / लेखक ब्ला // // == / यूज़रस्क्रिप्ट == var मेन = सेट इन्टरवाल (फ़ंक्शन () {चेतावनी (window.location.href);}, 1000); और जब मैं एक्सपीआई स्थापित करता हूं, तो मुझे यह त्रुटि मिलती रहती है: त्रुटि: रैपेडनेटियल प्रोटोटाइप ऑब्जेक्ट पर अवैध ऑपरेशन पहले से ही कोशिश की window.alert और यह अभी भी एक ही त्रुटि दिखाता है। ठीक है, ऐसा लगता है कि कनवर्टर किसी तरह टूट गया है। अगर मैं इस सामग्री के साथ हैलो विश्व स्क्रिप्ट लेता हूं: // == यूज़रस्क्रिप्ट == // @name Webmonkey की हैलो वर्ल्ड // @ नेमस्पेस http://www.webmonkey.com // @descriptionA Greasemonkey का एक बुनियादी उदाहरण जो प्रत्येक पेज लोड पर एक चेतावनी का कारण बनता है // @ शामिल करें * // == / यूज़रस्क्रिप्ट == चेतावनी ('बंदर सीज़ ...' हैलो वर्ल्ड! ''); त्रुटि अभी भी वहाँ है इसलिए मुझे संदेह नहीं है कि आपका कोड समस्...

javascript - Accessing an array by index within an object -

I'm trying to use a particular array within an object (sorry, it's wrong) Glossary)

Creating nested Json structure with multiple key values in Python from Json -

मेरा कोड निम्नानुसार है: आयात json def reformat (importscompanies): #print आयात के लिए कंटेनर = {} बच्चे = [] item_dict = {}, नाम आयात के लिए आयात आयातों में। आईटीआईटीम्स (): आइटम_दिक्ट ['नाम'] = आयात आइटम_दिकटें ['आकार'] = '500' बच्चे .append (dict (item_dict) ) कंटेनर ['नाम'] = नाम कंटेनर ['बच्चे'] = बच्चा अगर __ नाम__ == '__मैन__': raw_data = json.load (खुला ('डेटा / bricsinvestorsfirst.json')) रन (raw_data) def रन (raw_data ): Raw_data2 = raw_data [0] the_output = reformat (raw_data2) मेरी समस्या यह है, कोड पूरी फाइल के माध्यम से नहीं जा रहा है यह केवल एक प्रविष्टि outputting है ऐसा क्यों है? क्या मैं कुछ नया लिख ​​रहा हूं और क्या मुझे एक और शब्द की आवश्यकता है जो हर लूप के साथ जोड़ता है? इसके अलावा, ऐसा लगता है जैसे लूप प्रत्येक डिक्ट क्यू के लिए आईटरिटम्स के माध्यम से जा रहा है। क्या यह केवल एक बार पास करने का एक तरीका है? यह मुद्दा वास्तव में raw_data2 = raw_data [0] I धन्यवाद अंत में, मैं उम्मीद कर ...

C++ - Using a stack to determine if a C style string is a palindrome -

I am working on assignment for class. We were provided with it (Linked here, editors were different when they tried to do it on separate lines). We should take it in a string and then test it to test these sections, if it is a palladium, we have not modified the sections said. And here is my int main : #include & lt; Iostream & gt; # Include & lt; Cstring & gt; # Include & lt; cctype & gt; #include "stack.h" using namespace std; Int main () {four test string [100]; Pile & lt; Four & gt; CharStack; Cout & lt; & Lt; "Please enter a string: \ n & gt;"; Cin.getline (teststring, 100); Four cap; (Int i = 0; i & lt; strlen (teststring); i ++) {if (islfa (teststring [i])) {caps = toper (teststring [i]); charStack.push (caps); }} For (int j = 0; j & lt; strlen (teststring); j ++) {if (islpha (teststring [j]) {caps = toufper (teststring [j]); If (charStack.firstPtr-> getData () == Caps) {// This part issue is ...

java - How can I compile files when my current working directory is not the default package? -

I have two files in Linux, both in default packages, AddSingleInstance.java and Finder.java I am making an example of AddSingleInstance in Finder : AddSingleInstance A = New AddSingleInstance (); When I compile the Finder.java file, it returns the error below: Finder.java20: Error: can not add symbol AddSingleInstance ai = new AddSingleInstance (); ^ I am compiling from a different directory. How do I get to compile both files successfully? To fix your problem, your Java files should be in your classpath so that Java is detected You can manually set the classpath where you will find them: Or :. $ Path . The easiest way to do this: cd javadir javac finder.java java finder I think most people do not face this issue ( Never before!) Because they run javac from their default package (root of their source tree).

Can I customise the install4j Welcome screen messages? -

When my installer starts, do I want to be able to set up a message? Is this possible? If not, and I change the welcome screen with the banner screen, will I remove the functionality provided by the welcome screen? Thank you! Go to the "General Settings-> Languages" step and set a custom localization file editor of the localization file You can search for messages with a line in WelcomeLabel3 = your text "Override message" tool bar button.

ios - Path Drawing with different colors -

I'm working on physical activity application which automatically detects your activity speed, which is either driving or walking I have a map in my application and I have adopted the code given by apple, so that users can locate and find driving paths. When the user runs, the drawing must be green; When the user drives, then the drawing should be red. However since I am using a single mapview controller and whenever there is a change in user activity, it also changes to the previous color. I am not able to get two different colors anyway Could You must apply & lt; MKMapViewDelegate & gt; and ; MKOverlay & gt;) Overlay {if ([overlay hackinfax: M.K. polyline.clus]) {MkPollelineview * Lineview = [[Mkapolelineview Alok] Init With Overlay: Overlay]; If (flag == Yes) {lineView.strokeColor = [UIColor greenColor]; Flag = No; } And {lineView.strokeColor = [UIColor orangeColor]; } LineView.lineWidth = 5.0f; See the return line; } Return zero; }

objective c - Push segue not working when triggered from Unwind segue -

तो मेरे पास दृश्य नियंत्रक A है, जो दृश्य नियंत्रक सी को modally प्रस्तुत करता है, (यह मानते हुए कि कुछ दृश्य नियंत्रक सी पर किया जाता है) कुछ डेटा से गुजारें, जो तुरंत नियंत्रक बी को अपने एवलकंट्रोलर पर एक धक्का सेगमेंट के जरिए धकेलता है, सी से डेटा गुजर रहा है। आखिरी धक्का सेगमेंट नहीं होने के बावजूद सब कुछ काम कर रहा है। यहां नियंत्रक ए में अनिवंड सेगू को संभालने की विधि है। - (IBAction) किया गया है: (UIStoryboardSegue *) segue {NSLog (@ "called"); GameViewController * vc = (GameViewController *) segue.sourceViewController; Self.gameToBeShown = vc.game; [आत्म प्रदर्शन सीग्यू विद पहचानकर्ता: @ "शोएनयुगेम" प्रेषक: स्वयं]; } ("showNewGame" सेग्यू को स्टोरीबोर्ड के माध्यम से ए से बी, सीटी + + ए के फाइल के स्वामी से बी में खींचकर पुश सेग्यू के रूप में सेट किया गया है।) मैं यह सत्यापित कर सकता हूं कि विधि को लॉग से कहा जा रहा है, लेकिन सेगू कभी ऐसा नहीं होता है क्या मैन्युअल रूप से इस सेग्यू को ट्रिगर करने के लिए जल्दी से कॉलबैक खोलना है? हाँ...

Java - removing object from Array -

I need to make a method to remove an element from an array of objects, without any archeists. This is the constructor for my object: public person (string name 1, string tello1) {name = name1; TELO = TELO 1; } and my array: int capacity = 100; Private person [] thePhonebook = new person [capacity]; And I have a shell for my removal method: Delete public string {enter the name} {// name} Name (Do not worry about duplicate names) // Returns the telephone number of the deleted entry} I do not know how to delete the element in the array (I tap I want to clear it now) I have a couple of elements to create a new array Not on creating a new array and consider the removal of parts of copying, but I'm not sure how to implement it. I also have a method of finding that can be used to find the name of a person who is helpful: Private int search (string Name) {String name1 = name; Int i = 0; Int element = 0; Int found = 0; While (i & lt; size) {if (phonebook [...

javascript - Trying to use something like href on a element -

I use my & lt; Button & gt; Trying to add a href option to , but it is not working! : //www.google.com "& gt; my link & lt; / a & gt; & lt; / Li> But now with the button, the button is not a href option, so im trying on the onclick method but it is not working like this: Class = "btn" onclick = "location.href = 'http: //www.google.com'" & gt; & lt; img src = "image / icon1 .png "width =" 40 "height =" 40 "/> gt; & lt; span & gt; my link 1 & lt; / span & gt; & lt; / button & gt; Do you know how we can solve this problem? Shish: & lt; button class = "btn" onclick = "location.href = 'http: //www.google.com';" & gt; & lt; img src = "Picture / Icon1.png" width = "40" height = "40" /> My link 1

ruby - Rails 4 - Adding JS assets via gem -

I am using a gem that was written to serve someone else. Mani is using an old version of the library (1.3) and I want to use 1.4 (latest version). I have not got any other gem using this version. My question is, is this the best way to load the property, or is there any more preferred method? And, if so, how do I prepare this gem with the latest version of this library? In my opinion, it is good to do this in most cases. In your situation, depending on how much time you have, you may want to do one of the following: Contribute to 1 Gem If The gem is open source, so you can crop it, update to the latest version, and request the bridge. In this way, you also contribute that the entire rail and others have to face the same problem. Below it takes time you need to wait for the author to accept the bridge request and wait for the next version of the gem. But until the new version is finished, you can use your desired version of Jefffile;) 2 Write your gem Rails provid...

jquery - How to let the Javascript run at the last process in a page with Javascript -

I have a problem that when my page loads, my javascript runs and loads JS calendar of my JS after. Thus, my JS JS does not affect calendar. 1.Page weight 2.My JS runs 4.JS calendar starts What do I want here? > JS runs after calendar Some have suggested using me on () but I do not know whether this is the best solution or There are other solutions. JSFIDDLE works very well down the browser but it does not work with SharePoint 2010. HTML: & lt; Div id = "asynchronousViewDefault_CalendarView" & gt; & Lt; div class = "ms-acal-header" & gt; & Lt; Div & gt; & Lt; Table class = "MS-ARM-month" & gt; & Lt; / Table & gt; & Lt; Div class = "ms-acal-vlink" & gt; & Lt; Table & gt; & Lt; Tbody & gt; & Lt; TR & gt; & Lt; Td> & Lt; A href = "javascript: zero (0)" title = "add" evtid = "new_item" & gt; & Lt;...

comparison - isequal not returning true for element in cell array in MATLAB -

Any idea why this is not returning true ??? comments01a is the cell array of cells, although I am completely happy to convert it to matrix. However, cell2mat (comments01a) gives its error that it does not support cell arrays of cell arrays or objects (which it does one) and I do not know any of the options. comments01a {1} ans = '4' Unequal (comments01a {1}, '4') ans = 0 Because '4', in this case, the string is a cell with '4', therefore, the unequal is comparing it with a string of cells. Either the solution is: strcmp (comments01a {1}, '4') Or maybe this, if you actually nested the cells As your suggestion of the question: strcmp (comments01a {1} {1}, '4') If any of these You can try it, which replaces the '4' string with the number: unequal (comments01a {1} {1}, 4) Hope this helps. I know it's not, and I'll take another shot at it.

ruby on rails - How to add up the number representations of the objects of the hashes in an array of hashes? -

हैश की एक सरणी [{color: "red", आकार: " बड़े "}, {रंग:" नीला ", आकार:" छोटा "}, {रंग: बैंगनी, आकार:" मध्यम "}, {रंग:" गुलाबी ", आकार:" छोटा "}] इसके अलावा एक और हैश: {छोटा: 1, मध्यम: 2, बड़ा: 3, x_large: 4} कैसे होगा सभी आकारों को उनके संबंधित नंबरों से बदल दें और उन संख्याओं को जोड़ दें? समस्या को ऐसे आकारों की जगहों से बदलकर मैन्युअल रूप से हल किया जा सकता है: [{रंग : "लाल", आकार: 3}, {रंग: "नीला", आकार: 1}, {रंग: बैंगनी, आकार: 2}, {रंग: "गुलाबी", आकार: 1}] फिर उन आकारों को जोड़कर, आकारों का प्रतिनिधित्व करना होगा आउटपुट: 7 फिर से बदलना अपनी पहली सरणी, दूसरे सरणी से corrospoding आकार के साथ : आकार की जगह: arr = [{color: "red", आकार: "बड़ा"}, {रंग: "नीला", आकार: "छोटा"}, {रंग: "बैंगनी", आकार: "मध्यम"}, {रंग: "गुलाबी", आकार: "छोटा"}] आकार = {छोटा: 1, मध्यम: 2, बड़ा: 3, x_large:...

c# - Get all the number between two numbers random -

Image
I'm not sure if this question is unique, but I could not find an answer. I have a good way of getting numbers randomly in C # from 1 to 9 (9), and I have to get all 9 numbers. So I need a function which gives 9 numbers between 1 to 9 and I need each number one time. For example, the result will look like this: 4,3,2,6,9,7, 1,5,8 I will do just that: var rnd = new random (); Var number = calculation worthy. Range (1, 9). Orderbie (x => rnd.Next ()) .oir (); I found the result of an example:

html - css placing icon for mobile web app -

I am trying to install icons for mobile web apps using CSS Although I am having some problem with this. Below is my code but I do not see the icon, am I missing anything here? This is my html & lt; Link rel = "stylesheet" type = "text / css" href = "/ mobile_pages / main / main_page.css" /> & Lt; Br> & Lt; Div id = "siteMenu" & gt; & Lt; A href = "/ index.php? Mid = s11" square = "icon" id = "intro_icon" & gt; & Lt; / A & gt; & Lt; a href = "/ index.php? mid = s15" square = "icon" id = "direction_icon" & gt; & Lt; / A & gt; & Lt; a href = "/ index.php? mid = s56" square = "icon" id = "pic_icon" & gt; & Lt; / A & gt; & Lt; a href = "/ index.php? mid = s21" square = "icon" id = "news_icon" & gt; & Lt; / A & gt; & Lt; a href = "/...

ios - What is the benefit of calling beginUpdates/endUpdates for a UITableView as opposed to not doing so? -

I have an array in which I am using the data source for the table view. In one instance of time, I may have to make some complicated modifications in this data structure. (For example, I need a sequence of operations: delete a line here, enter a line there, insert a section, delete another row, enter a second row, delete another row, enter another section - you think.) It is easy to do this, if for every operation in the sequence, I just update the data source and then update this to see the table immediately. In other words, the pseudocode will look like this: [Saranifoda UpdateFor Operation 1]; [Table view updateforest operation 1]; [Arrayfraurerfofooperation2]; [Table view updateOfferation 2]; [Arrayfraa updatefor operation 3]; [Tablewise update operation 3]; [Orofera updatefor operation 4]; [Tablewise update operation 4]; // etc However, if I used to "block" these actions in these upgrade / end updates, then this code does not work anymore. To see that imaging s...

Can you pass arguments to many constructor methods in C#? -

Sorry if this is a newbie question, but you could argue that many producer methods in C #? right or wrong? I've seen in many forums to have to take a test on C # with Aspiknet but there is no answer in the book or I just. If I then, your question got right, you constructor-chaining

ruby on rails - Manual Install of Xcode command line tools not working -

I have installed Xcode command line tools manually from the Apple website, and I went through the installation process but it 'I have seen it from the terminal whether it is installed: Zach-Boyte-MacBook-Pro-2: ~ Zabbooket $ pkgutil - pkg-info = com.apple. pkg.CLTools_Executables Package -id: com.apple.pkg.CLTools_Executables Version: 5.1.0.0.1.1396320587 Quantity: / Location: / Instant-time: 1398301024 Group: com.apple.FindSystemFiles.pk G-group com.apple.DevToolsBoth.pkg -groups com Apple.DevToolsNonRelocatableShared.pkg-group So it seems that the command line tool is installed, but when I run it: Zach-Boyette- MacBook -Pro-2: ~ zachboyette $ xcode-select -install A popup says: "xcode-select" commands require command-line developer tools. Do you want to install the device now? I clicked install and then said: The software can not be installed because it is currently not available from the software update server. I have read on the other answers that ...

What timestamp format is this 20130218001203638? -

After I am working with a dataset and I am unable to understand the format of this 16 digit timestamp. If this is understandable to anybody, please let me know 20130218001203638 I do not have a link to any real common timestamp format documentation. I had guessed its own based on some Java code. (I did not come with the format.) I have taken advantage of a date format class. / * * passed in time to milliseconds * A y2 date string of the format @return:. YearMonthDayHourMinuteSecondMillisecond * / Public Static String getY2MillisecondDate (Gregorian Calendar Today) {New SimpleDateFormat ("yyyyMMddHHmmssSS") Return format (today.getTime ()); } can see from the pasted function, my call this call a y2 millisecond string. As the other y2 date format string is defined as yyyyMMdd . . Edit: I did some search and I would like to do some research. Done yyyyMMdd is called "year-2000 format" and appears standardized as "basic format"

xpages on browser repeat login -

Image
is an application that we are using on both XPIN and browsers. Before you can access the application, you must login with your user.id with lotus notes. The problem is that there are many login msgboxes (where you will have to re-login with your username and password): the server says / esp / .ibmxspres / dojoroot-1.8.1 / Dojo or the server says /xsp/.ibmxspres/.mini/dojo/.en-us or the server says /xsp/.ibmxspres/.mini/css. or The server says /xsp/.ibmxspres/.extlib/icons. And so on even when I just press F5 , then when I'm logged into the application (also there, a computed Fields that display the user name) are displayed in those types of messages. As a developer to me what should be done? Or should there be some setting on the server? I have the following ACL rights: ACL: User Type: Person and Access: Manager Effective Access: All checkboxes are checked except for full access administrators Thanks for your time! OK, it should be...

ruby on rails - Resque worker not responding to signals -

I am using 1.25.2 version of the rus in a Rail app. I tried to do these as examples of pause_processing and its reverse unpause_processing of Resque :: Worker class of all workers But me Resque.workers . However, the workers still continue the process of new jobs dynamically added in any queue. Every worker true is not sure if I really want to go to the state with example.paused I can control the workers running in the background. / P> As far as I can understand pause_processing , unpause_processing and shutdown Am I missing something trivial or is there another way to manage workers? That's because you are calling this method The workers are in a position to modify completely on a different example. As you all do, it determines the value of a variable variable. When you call Resque.workers , you get examples of all workers but not an example of a worker running in a separate process. Rescue does not allow you to remotely modify the status of a ...

html - Responsvie website width -

When the width is coding for liability, is it better to round the price or to specify as much value as possible? For example: Based on my calculations, my width is 67.328699% (left div) and 32.84% (right div) or I only 67 Two ways to focus on this Are there. First of all, due to the nature of the shooting point arithmetic, you are probably not getting an exact number, so the goal is not going to break anything. You are going to be absolutely right anyway. The clever people have written about this point: Secondly, think of what the number really means 67.328699% is you trying to define the ten millionth element of one percent correctly, or In other words, its full screen width is hundred million. How much are you actually getting from doing this? In addition, due to the boundaries of floating point math, it is possible that if you make the width 100% accurate, when the user changes the width of the screen or sometimes just with other offers, then you Division is goin...

android - How to show textview on Alert dialogue -

Hell I'm trying to make a warning conversation to show the highest point. But I can add textview to my conversation, the highest stores in textview Here's my code, when I click on the no button, I need to show textview. AlertDialog.bilder warningDialogBuilder = new alert.bilder (reference); // Set Headline DialogBuilder.setTitle ("Your Title"); // Set Dialogue Message Alert Dealbuilder. Setmasez ("Time has expired!") .Setacable (wrong) .set-positive button ("Restart!", New Dialog interface. OnClickLister Dialog Interface Dialog, Int ID) {// If this button is clicked, turn on / off activity App2Activity.this.finish ();}}) .setNegativeButton ("No", New DialogInterface.OnClickListener () {public void onClick (DialogInterface dialogue, int id) {// If this button is clicked, simply press the dialog Bus Do not get too close and some dialog.cancel ();}}); // Alert Dialog Warning Dialog = Alert DLObuilder Create (); // show it alert dialog...

ipad - How do I get my application to show up in the "Open in..." menu on iOS for ANY document type? -

In the iPad there is a need to keep my app name in the "Open" menu for any document type in the iOS platform. That my application for any extension should be presented in the "Open in" menu. One way is to add all the keys to the document type UTI, but I want some options as I can mention "*" to allow all document types. It is available with CFBundleTypeExtension , but it is for OS X platform, not for iOS platform. I also need the same thing for custom extensions, so I do not need to update the .plist file repeatedly for new code types. Tell me if such a thing is possible or not. For more information or any inquiries I ask and if necessary I will try to give more explanation. see in short: UTI public.item Add to the list of document types handled for your app.

ios - RestKit 2 PUT request for some Object -

The server team wants to isolate 2 PUT requests for an item class like this - PUT '& lt; Server & gt; / Item /: itemId / like ' ' & lt; Server & gt; / item /: itemId ' and code> I'm using the following code in the initiator: RKObjectManager * sharedRKObjectManager = [RKObjectManager sharedManager]; RKManagedObjectStore * Managed Obsoststore = [sharedRKObjectManager Managed ObjectStore]; // Create Mapping for News Unit RKIntmapping * Response Mapping = [RKIntipmapping MappingForrentFormName: Managed ObjectStore: Managed Obsoststore in ENTITIM]; [ResponseMapping addAttributeMappingsFromDictionary: @ {@ "ID": @ "ItemID",}]; // Create a response descriptor and add it to the RKObjectManager object. RKResponseDescriptor * responseDescriptor = [RKResponseDescriptor responseDescriptorWithMapping: responseMapping method: RKRequestMethodAny pathPattern: UPDATE_ITEM_URL mainpath: statusCodes zero: RKStatusCodeIndexSetFor...

java - Error creating bean with name 'securityConfig': Injection of autowired dependencies failed -

I am trying to combine Java-config and XML-config for Spring Protection Authentication. But I got an error: Error creating a bean with name 'Security Config': Injection of autowired dependencies failed What's the problem with my code? Got googling for the answer but have not got any Thanks in advance Hope you can help me. Stack-trace: org.springframework.beans.factory.BeanCreationException: Configure the name 'Error creating a bean with security': Injection of Autowall dependency failed; Nested exception org.springframework.beans.factory.BeanCreationException: The method can not be autowire: Public Zero org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter.setAuthenticationConfiguration (org.springframework.security.config.annotation. Authentication configuration.AuthenticationConfiguration); Nested exception org.springframework.beans.factory.NoSuchBeanDefinitionException: No matching bean type [org.springfram...

merge - Git rebase interactive edit for merged feature branches? -

निम्न परिदृश्य में क्या होगा: अंतहीन जीवन रेखा के साथ एक मास्टर शाखा है नई शाखाएं सुविधाओं के लिए बनाई गई हैं और समाप्त होने पर मास्टर के साथ विलय कर दिए गए हैं शाखा के बाद हटाए गए हैं कुछ बिंदु पर मुझे उस सुविधा में बदलाव करने की जरूरत थी जिसे पहले से बंद माना जाता था (इसे मास्टर और हटा दिया गया था) एक्स --- --- (फीचर (शाखा को नष्ट कर दिया गया है) / \ / \ a --- --- --- एम मास्टर मैंने जो किया था: git rebase - interactive x क्या स्रोत में परिवर्तन किया गया था और प्रतिबद्ध एक्स में संशोधन किया गया था। मुझे उम्मीद थी कि यह ग्राफ अपरिवर्तित होना चाहिए, लेकिन ऐसा कुछ मिला: X --- - (फीचर (शाखा हटाई गई) / \ / m / / / / a --- --- --- एक्स मास्टर क्या विलय के बीच में कटौती का संपादन विद्यमान "भविष्य" के साथ संभावित संघर्षों के बारे में क्या होता है? आपका नया प्रतिबद्ध ग्राफ में एक और X कमिट है, क्योंकि रिबेस डिफ़ॉल्ट रूप से विलीन को संरक्षित नहीं करता है। यदि आप मर्ज को संरक्षित करना चाहते हैं, तो आपको - संरक्षित-विलीन / कोड का उपयोग करना होगा, य...

lotus notes - @Mailsend in xpages button -

क्लाइंट नोट्स प्रोग्रामिंग में एक एक्शन बटन है: @MailSend (Destinatari; " "," "," विषय "," "," "; IncludeDoclink]) में & amp; @Command ([FileSave]) और @ कॉमांड ([FileCloseWindow]) मैं अपने xpage अनुप्रयोग में एक समान कार्य करना चाहता हूँ जो XPiNC और वेब दोनों में काम करता है। मेरा sendto फ़ील्ड एक DjTextarea है, जिसमें एकाधिक मान हो सकते हैं। मैंने एक सरल कार्य बनाने की कोशिश की है xpage से मेरे बटन के लिए: क्रिया: मेल भेजें । इस तरह, मैं & lt; लोटस नोट्स से & gt; शामिल करेंडॉकलिंक मेल के शरीर में? या मुझे इस क्रिया के लिए एक जावास्क्रिप्ट लिखने की आवश्यकता है? आपके समय के लिए धन्यवाद! अद्यतन करें: @ लोटर सुझावों के बाद, मेरा सहेजें & amp; भेजें बटन में निम्न कोड पंक्तियां हैं: यदि (frmDoc.isNewNote ()) {frmDoc.save (); } var thisdoc = frmDoc.getDocument (); Var tempdoc = database.createDocument (); tempdoc.replaceItemValue ("प्रपत्र", "मेमो"); Tempdoc.replaceItemValue ...

javascript countdown timer pause resume -

First of all, there is no break in my countdown timer and the function resumes and the timer runs just fine. Now I added this feature, no problem has stopped, but there is a problem in resuming the time. Time does not just show from that place, from where it was and countdown from there. How do I change my code? $ ('#pause'). Click (function () {// get current minute and second / var text = $ ('# countdown') .html (); var min_sec = text.split (":"); pause_minutes = min_sec [0] ; Pause_seconds = min_sec [1]; // Close timer / clear timeout (stop_start); // Hide pause button, Show Play button // $ ('# pause') Hide (); $ ('# cont' ). Show ();}); // click on the release button // $ ('# cont'). Click (function () {$ ('# cont'). Hide (); $ ('# pause'). Show (); // Pause_minutes near and pause_seconds // resume_time (pause_minutes, pause_seconds);}); Function resume_time (pause_minutes, pause_seconds) {// example: 1, 30 v...

facebook.login() is not working in Corona SDK -

I have thrown all the steps, making a major hash for Android to build my game in Corona. I have created a button for user login Facebook account. But when the user touches the button, he does not have any error messages and feedback, only the print output is. What am I missing? help please. I have created key things using OpenSSL Enter app ID from Facebook developers Enter key laughs for Facebook developers Enable "Single Sign On" and "Deep Linking" Enter the class name "com.ansca.corona.CoronaActivity" on Facebook developers Include "android.permission local" onlt.settings requires local facebook = ("Facebook") local fbAppID = "49911xxxxxx" onClick on local F Facebook.login (fbAppID, facebookListener, {"publish_actions, email"}) End end - Facebook Button FacebookButton ("End" == event.phase) Then print ("Button was pressed and released") FacebookButton = widget.newButton ...

backbone.js - unbind events when switching Backbone Views -

I have a list view and an extension view. In the list view, I jquery Infinite-scroll plugin When a user clicks on an item, I present the view in detail. The problem occurs when users touch the bottom of the page, an infinite scroll callback is removed. I tried to call $ .infinitescroll ('pause'), but it will not be able to stop the fetch. Should I completely delete the list view before viewing the details? If so, how can I completely destroy it? (I tried but did not stop infinite scroll scrollback) My code is in a bigger picture Have you tried to do event.stopPropagation on scroll events within the extension view?

html - Jquery targeting a parent div not working -

I have a button, when clicked, I want to physically make another section called 'hidden' has given. I do not think I'm doing my job right on markup. Here's my jQuery $ (document) .ready (function () {$ ('click (function () {$ (this) .find (' ('' Tick ''). FeidIn (500); $ (this). Parent ('pt-trigger-container'). ('Hidden'). FadeIn (500);});}); I have also created one. You need to use .parents () not .parent () $ (document) .ready (function () {$ ('. singleBtn'). Click (Function () {$ (this). Find ('.tick'). Feedin (500); $ (this) .Parents ('.pt-trigger-container'). ('Hidden'). FadeIn (500);});}); Or come You can also use the .closest () : $ (document) .ready (function () {$ ('. Single BTN') Function () {$ (this) .find ('.tick'). Feedin (500); $ (this) .closest ('pt-trigger-container'). ('.hidden'). FadeIn (500); }};}); Try it out: ...

c# - How to check if address lists exist in Active Directory? -

I must check that all global address lists, all address lists and all system address lists are present in active items, all before Get items from them. Can you give me some advice or articles that I can solve my problem? Thank you. The address list is not an active part of the exchange's functionality, which I think is confusing people. Anyway, the address list data is stored in the Active Directory configuration context; CN = Microsoft Exchange, CN = Services, CN = Configuration, DC = & lt; DEFAULT CONMANT INCLUDING CN = Address lists container, CN = & lt; Exchange ORGANIZATION NAME & gt; You can use ADSIEdit to view information. In C #, you can use an LDAP query to obtain information for the current address list. EDIT: Something like this: DirectoryInterity Route DSE = New directoryInterity ("LDAP: // RoutDSE"); DirectoryEntry configContainer = New directoryInterity ("LDAP: //" + rootDSE.Properties ["configuration na...

asp.net - Exception handling in Class Library for WinForms and Asp -

I am writing a class library with a professional library which is a new Winforms project and an existing ASP.NET project. During the development, with the library try as the exception, whatever message gets caught, the exception message box ("Friendly error message", ex.message) Try end / pre> which will work fine for winforms, but will not work for asp.net I need a friendly (and easy) way to trap exceptions which work for both platforms Or better question maybe I would like to have exceptions in the class library. Can I implore? or better question maybe I might be the trapping exceptions in the class library? No class libraries should do nothing with exceptions. Why do you get an error, tell the real reason for this reason, for the developer it is very difficult to understand what was wrong. . It does not matter whether the developer is you or someone else because when you come back to the code for a year, then you have no clue what actually happene...

Angularjs Directive not loading PopOver content -

I'm trying to develop a Facebook like notification (such as when an icon receives requests, Item number in the item which is the number of notifications app.directive ('popOver', function ($ COLLECTION) {var itemsTemplate = " & lt; div ng-repeat = 'item '& Gt; {{items}} "var getTemplate = function (contentType) {var template ='; ',' A ', transclusions true, templates: " "; return {contentType} {case:' item ': template = item; ("Scope"), link: function (scope, element, etter) {var popOverContent = " ", if (scope.itm) {var html = getTemplate ("item "); popOverContent = $ compile html} (scope);} var option = {content: pop oversantant, placement:" bottom ", html: true, title: scopetytile}; $ (element) .popover (options);} Ope: {items: '=', Title: '@'}}; }); The items are settled in the controller, and there I am using $ timeout to fetch new data f...

resize svg icon for google map marker -

I'm having trouble changing the icon size in Google Maps. I have a SVG file that makes it responsive. In this way I call the STVG file MyGreenSVG = {url: 'greenFill.svg', size: new Google .maps.size (20, 35) }; Property: Size does not change the size of my icon, but crop it only. The only way to change the width and height in my SVG file, and make it 2 versions. So I lose the interest of using svg ... This is a preview of my SVG file: I am also unable to resize using scale . I came to know that if I use the marker image then I can scale the SVG and it looks great, the way it is better than PNG, as far as it is smooth . I do not think this is a 'symbol' and if I am using the marker image. function initialize () {var mapOptions = {zoom: 4, center: new google.maps wave long (-25.363882, 131.044 9 22}}; Var map = new google.maps.Map (document.getElementById ('map-canvas'), map options); Var marker = new google.maps.marker ({status: ...

.net - How to set the Z order index for adorner in WPF -

I am trying to set the Z order index for an adorner, currently the adorner is at the top level and I want to It's adorning it to change the index of control. When I need adorner to call Panel.GetZIndex (control) for control, that's when I '0 / P> when I am 0 or int. When Adorner tries to set the Z index with MinValue, it seems that there is no effect and adorner is still at the top level. How do you set the Z Order order for Adorner? I think you might read that the page on MSDN is because you have a Z-index of alcoholic because it is not part of the normal view tree, and in fact, sits in its own AdornerLayer always at the top of the main view tree From the page: Adorners are provided in Adonarelayer, which is a rendering station Which is always in the collection of decorated elements or decorated elements. Please note that there will be nothing for Adorner by calling panel.GetZIndex (control) because it Panel . It is not in a grid which...

twitter - Social sharing count for both http and https -

I recently changed a website into SSL (https) and now there is a problem for counting social sharing (Twitter, Facebook, and google +) for articles on the website. The shared link was like http://website.com/article if I lose it count I https How can the count work both on http and https? Enter the http: // address to the social plugin. And redirect http: // addresses to https: // when the link is followed.

java - How to return a set of persisted objects? -

I have a method to create client objects through unit managers. I want to add another method that is made of objects A set will return; How can I do this in my case? For example, I have the following code: public class DefaultCoreRepository implemented CoreRepository {Private EntityManager entityManager; @ Peristenas CONTACT (entity name = "CRM-DB") Public Zero Set Entity Manager (Entity Manager Unit Manager) {this.entityManager = entityManager; } Private & lt; T & gt; T existence (ti entity) {entityManager.persist (unit); Return unit; } Public Zero making customer (customer customer) {continuous (customer); } Public set & lt; Customers & gt; GetCustomers () {// code can be written here} You write a query Change the list in such a way and to set: public set & lt; Customers & gt; GetCustomers () {new hashset and lieutenant; Customers & gt; (CreateQuery ("Customer Select c from c," Customer.class) .getResultList ()); }

javascript - How to make a Bobble error for required field in HTML -

I used the code below to create the required fields but I have to show it as below Please check the following link to see my code My code : & lt; Form action = "" method = "POST" id = "formID" & gt; Your name: & lt; Input id = "yourname" required /> & Lt; Span id = "yourname msg" style = "margin-left: 6px; color: dark;" & Gt; & Lt; / Span & gt; & Lt; Br / & gt; & Lt; Input type = "submit" / & gt; & Lt; / Form & gt; Note: I've used a Safari browser. Thanks This should be close to what you want: Please note that the entire tip (arrows, triangles) should be in a solid color, so it can not be increased to your picture as above. This is optimized from CSS . Triangle-isosceles: {After border color: #ddd Transparent; Threshold width: 0 10px 10px; Border-style: solid; Bottom: Auto; material: ""; Display area; Status: Completed;...

Will endless list in OCaml eat up all the memory? -

We can prepare an endless list like this: REC endless = 1: Endless I think it will eat all the memory, but when I try it in utop , it does not look like that. utop shows that the list has been created: val endless: int list = [1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1...

html - AngularJS - Creating a new row when using ng-repeat -

I have made a simple ng-repeat to prepare a list of countries and their respective data I am using. Each list has a hidden row that can be expanded and collapsed. I am struggling to appear below this line from every row to ng-repeat . HTML: & lt; Tr ng-repeat = "country in the country" & gt; & Lt; TD & gt; {{Country.name}} & lt; / TD & gt; & Lt; TD & gt; {{country.population}} & lt; / TD & gt; & Lt; TD & gt; {{Country.currency}} & lt; / TD & gt; & Lt; TD & gt; {{country.gpd}} & lt; / TD & gt; & Lt; TR & gt; & Lt; P & gt; Expand / collapse content & lt; / P & gt; & Lt; / TR & gt; & Lt; / TR & gt; France 61.3 EUR 54 Germany 81.5 EUR 82 Spain 12.7 EUR 78 UK 51.3 GBR 64 Expand the content / collapse Output: France 61.3 EUR 54 Expand the content / finish Germany 81.5 EUR 82 Extension of content / collapse Spain 12.7 EUR 78 Extension / collapse of co...

c# - Datagridview combobox cell which accept enum as integer -

I tried to override the default behavior of datagridview combo box so that it can be accepted Ancom as int. To do this, I CustomComboboxCell and CustomComboboxEditingControl : public class CustomComboboxEditingControl: DataGridViewComboboxEditingControl {public override object EditingControlFormattedValue {get {return base.EditingControlFormmatedValue; } Set {if (value.GetType (.isEnum)} {// enum to int base.EditingControlFormattedValue = (int) value; } And {base.EditingControlFormattedValue = value; }}}} Public class CustomComboboxCell: DatagridviewComboboxCell {public override type editType {return typeof (CustomComboboxEditingControl); }} Then in my form, I create a datagrid view with a comb-box column to test it: public enum TestEnum {A = 1, b = 2, c = 3,} Public class test {public testname {get; Set;}} Public Class Form 1 (Public Form 1) {Data Gridviewview DGV = New Data Gridview (); Dgv.AutoGenerateColumns = false; Datagridiv combobox column call 1 = new datagravi...

xpath - Querying XML-fragment in SQL Server regardless of Xml tree depth -

I have some XML SQL server (column type type xml) which looks something like this & lt; TreeRoot & gt; & Lt; Node id = "12" name = "name 2" & gt; & Lt; Node id = "54" name = "name 4654" & gt; & Lt; Node id = "75" name = "name 0 9 43"> node id = "58" name = "dfd2" & gt; & lt; / node & gt; & lt; / node & gt; & lt; lt; node id = "43" name = "543d32" gt; & lt; / node & gt; & lt; / node & gt; & lt; / node & gt; & lt; / TreeRoot & gt; I am trying to design a query on this XML which will give me a list of all node ID and node names, such as: name ID ----------- Name 2 12 Name 4654 54 Name 9 43 57 DFD 2 58 543 D 32 43 I already have a query - But it is hard on specific levels of the tree, This means that I need to update this query because I add nodes in the XML piece. Is there a way to creat...

javascript - Google Analytics is not tracking in real time? -

Hello, I think this is a snippet of GA code and it seems that is ok, but it does not seem to be real time? Does anyone have an explanation about why this is happening? (function (i, s, o, g, r, a, m) {i ['GoogleAnalyticsObject'] = R; I [R] = I [R] | function Push (logic)}, I [R] .L = 1 * new date (); a = s.create element (O), M = S. Elementalments biatagnam (o) [0]; AASINcc = 1; a.src = g; m.parentNode.insertBefore (a, m)}) (window, document, 'script', '// www .google-analytics.com / analytics.js', 'ga'); GA ('Create', 'UA-21324070-1', 'example.co.uk'); Ga ('Send', 'Pageview'); Google Analytics is not updated in real time nor webmasters tools (as a side note). Generally GA updates are updated every day for the last day and WT 3 days. In addition, you can still go to Google Analytics Console and there is a section called 'Real Time' which will tell you what's happening on the site 'now...

sql - MAXIMUM CURSORS EXCEEDING WITH DATABASE LINK IN ORACLE -

I have a stored procedure, when I am performing ths process, every time the cursor is rising in the remote server. How to solve this as the varchar2 v_Num number (3) to create or change transactiondatarecovery (varchar2 in i_tablename): = 0; V_SQLStmt Varchar2 (2000); Rate_Status Wirt 2 (100); Start v_sqlstmt: = 'insert insert' || I_tablename || 'Select from' 'i_tablename ||' @RECY_DBLINK a '|| 'From where not present (selection 1' || 'to' i_tablename || 'b' || '' where b asono = asnoo '; instantly execute v_SQLstmt; return' success'; saving end transaction; Do you commit after activating the function? It should open the cursor on the remote DB .

ios 7.1 UITextField tint color doesn't change in storyboard -

Image
By iOS 7.0, the text field tint color has changed to color set by you in the storyboard. As of iOS 7.1, unless you do it programmatically, it will not change. Is this a bug? Do anyone know Here's the solution to working with storyboards. 1) Go to "Identity inspector" 2) Add the "TintCaller" attribute to "User Defined Runtime Attributes" 3) Set the desired color. It. Or if you want [[UITextField presence] setTintColor: color]; Use the same tint color for all the textfields in the app,

SQL query into Hibernate query -

How do I write this SQL query as a hibernate query? `Ub_orders` and JOIN Product Info from SELECT u.id, u.orderId, p.productName, u.key2, i.forsor_id. P at p ProductID = U.productId I and U.I.K. 2 = Add to i.id where p. Product name '% OSS Hosting Fee% and U.Kerrated & gt; 2014-02-1 and forsor_id is a tap order by U.key2; I easily see two problems: Firstly the backticks are used and the second date Need Single Quotes: Join product.info at SELECT u.id, u.orderId, p.productName, u.key2, i ubercart_reseller_orders forced_matrix_spans_id u Add to p.productId = u.productId and i.key2 = i.id where p.productName '% oss HOSTING FEE%' and u.createdDate & gt; '2014-02-1' and ---------------------- ^ forced_matrix_sponsor_id is empty order by ukey2;

ios - How to send value from viewControllerA to viewControllerB? -

इस सवाल का पहले से ही एक उत्तर है: 35 उत्तरों ए UIButton शीर्षक के साथ --- & gt; मुफ्त सिक्के - दबाएं & lt; ---- पर viewControllerA दबाया जाता है। viewControllerA : - (IBAction) ट्रिगर वीडियो [[AdColony playVideoAdForZone: @ "छिपाई-कोड-गोपनीयता" के साथ डिलीगेट: शून्य के साथ V4VCPre पॉपअप: हाँ और V4VCPostPopup: हाँ]; } जब यह क्लिक किया जाता है तो 50 सिक्के प्राप्त होते हैं: // निरंतर भंडारण से मुद्रा संतुलन प्राप्त करें और इसे प्रदर्शित करें - (शून्य) अपडेटCurrencyBalance {NSNumber * wrappedBalance = [[NSUserDefaults मानक उपयोगकर्ता डीफॉल्ट] ऑब्जेक्टफ़ोरेकी: केकुरेंसीबल्नेस]; एनएसयूइन्टेजर संतुलन = लिपटेबिलेंस & amp; amp; [लिपटेबिलेंस हैकिंडऑफ़ क्लास: [एनएसएनम्बर वर्ग]]? [लपेटा गया बैलेंस अहस्ताक्षरित अन्तःव्यू]: 0; [मुद्रालैबल सेटटैक्स्ट: [NSString stringWithFormat: @ "% u", संतुलन]]; } लेकिन इन सिक्केों को केवल viewControllerB पर दिखाया जाना चाहिए, lblpts नामक लेबल पर। या कम से कम दोनों ही मूल्यों के रूप में दिखाए ...

rxjs - Rx.Observable.repeat (indefinitely) with zip causes the browser to stop responding -

For repeating example, using the value like '100', the response to the following code is stopped It does the problem, but in my case I do not have a specific value for it. Would you please provide a solution: var observer = Rx.Observer.create (function (x) {console.log (x)}}, function (error) {console .log ('error:' + error);}, function () {console.log ('full');}); Var repeat = Rx.Observable.repeat (10, empty); // Repeat indefinitely = Rx Obsequable interval (1000); var zip = Rx.Observable.zip (Repeat, Interval, Work (Rep, Difference) {return Rep + Intra;}); zip.subscribe; The browser freezes because .repeat just generate 10 indefinitely. Since RX is push-based, there is no way to know that when zip requires any other item. Instead, we only make the new value available to zip , as if they become available. Still (class-method?) repeats says "Hey, I have new items, these are always right now" and the Zip-Over control flow will ...

check if one key is greater than another key in mongodb -

इस सवाल का पहले से ही एक उत्तर है: 1 उत्तर मैं एक कुंजी की तुलना करना चाहता हूँ मोंगोडब में एक और महत्वपूर्ण मूल्य के साथ मूल्य कोई भी इस क्वेरी से मेरी सहायता कर सकता है। उदाहरण: {"_id": "XXXXX", "खेल": "xxx", "score": 100 , "हाय-स्कोर": 200} मुझे यह देखना है कि स्कोर हाय-स्कोर से बड़ा है db.collection.find ({$ जहां:" this.score & gt; this.hi-score "}) का उपयोग करके नीचे की क्वेरी को आज़माएं। ; इसके अलावा, कृपया लिंक में दिए गए चेतावनी अनुभाग पढ़ें। पुनश्च: मैंने यह कोशिश नहीं की

c# - Access public partial class variable in another class -

मेरे पास निम्न संरचना वाला एक वर्ग है: - नाम स्थान सीएल.फॉर्मस {सार्वजनिक आंशिक वर्ग ए {सार्वजनिक स्ट्रिंगबिल्डर एस.बी. = नया स्ट्रिंगबिल्डर (); sb.Append ( "एक"); sb.Append ( "ख"); } सार्वजनिक वर्ग बी {एक objA = नया ए (); स्ट्रिंग s = objA.sb.ToString (); }} मैं कक्षा ए से वर्ग B से varible तक पहुँचना चाहता हूं। मैंने उपरोक्त विधि की कोशिश की लेकिन यह काम नहीं करता है किसी को जवाब पता है। कृपया मेरी मदद करो। आपको एक कंस्ट्रक्टर या विधि बनाना होगा नेमस्पेस सीएल.फॉर्मस {सार्वजनिक आंशिक वर्ग ए {सार्वजनिक स्ट्रिंगबिल्डर एसबी = नया स्ट्रिंगबइल्डर (); // स्ट्रिंग बिल्डर के लिए डिफ़ॉल्ट सेट करने के लिए कन्स्ट्रक्टर A () {sb.Append ("a"); sb.Append ( "ख"); }} सार्वजनिक वर्ग बी {सार्वजनिक बी () (एक objA = नया ए); स्ट्रिंग s = objA.sb.ToString (); }}

java - Check which process is using a given port -

I'm creating a simple client-server application in Java, this way I'm starting to hear the socket: Private Zero initSock () {try {sock = new ServerSocket (port); } Hold (IOException e) {System.err.println ("Could not listen to the port:" + port + "what port is not already in use?"); System.exit (1); }} This approach gives a potentially useful error message when the port is used - however: it is possible to expand the information such as: Port xx could not be heard, it is being used by process blahblah by pid xxx . What Java (and Windows, and finally other systems) will allow me to get that information? I can find this information using the command line, but in reality it is not what I want at this time. I can not fulfill your requirement, but the code below can give you some more information. The public square netstat throws IOException {the public static zero major (string [] args) {buffrebrader br = new buffed reader (new inpu...