Posts

Showing posts from February, 2012

scala - How to set up prod mode to have configuration file in conf directory (not inside jar)? -

I am using activator to create my project and I want to generate command universal: packageBin < / Code> use a .zip file. I was thinking that it is possible to set the configuration file to read from the conf folder instead of the configuration class ( .conf file jar inside). Is this possible? If so, how can I do it? For a mechanism to say a play application, see where its configuration is pickup. To tie it with the universal package, simply pass -Dconfig.file to the script inside the bin directory. Like if your application is called foo: unjip foo-1.0-SNAPSHOT.zip foo-1.0-SNAPSHOT / bin / foo -Dconfig-file = / path / to / app.conf

fork - Print the values generated by each child process in c -

I have cut number of process n number of times for children, after forking, at some point, Random numbers are required to be generated and therefore I write a statement to do this. But before I go ahead, I have to produce every child in random numbers on the terminal. When I write printf (), I get only one output which I believe is the parent-generated random numbers. Can anyone help me to keep all RPNNumber in place of my address to print? Also, since every child will execute them when they call them to print their rnd_number values, I am surprised that they were not printed on the terminal. If I am getting some concepts, then I request someone to help me. You wait in Dad to eliminate every child. If it ends before their children, children will not print anything. Regarding the print, do not forget that this function buffers the data, beware of using '\ n' to force the fluff of the printf. To know which child gets random, you want to print his PIN using the getpid

Vim vertical motion: moving up/down-ward, to the first line with a non-blank character on the current position -

is trying to move first (or [calculation] th) up or down, without any spaces But in the current horizontal position the character appears to be useful for the indented code well. example in Python if condition_a: do_stuff () '' "a random number of rows elif condition_b: other_stuff () Other: exception Raise ("no stuff can be done.") Say that the cursor is on 'i' if . Reading : Help of up-down-motors does not seem to provide any indicator for this question. Is it possible to achieve such speed? I have (among others) a [| / ] | is the speed which jumps to [count] The next line in which the non-white space in the same column is the current one.

python - Easy building a dictionnary of dictionnaries or dictionnaries of -

Along with Python 3, I have to make the details of departures of listings .... I'm wondering if there is a better way to do the code below (this looks like a garbage code ...) ret = {} list PhosphiensiensiariesFromongdatabase for r: a = TheObjectIUse (R) sp = a.getSp () ex = a.getEx () th = a.getTh () lo = a.getLo () de = a.getDe () If not [SP] [EX] = {} if not [SP] [EX]: ret [SP] [EX] [and] = {} if not earlier [SP]: [SP] = [} if: Not ret [es] [east] [th]: write [es] [x] [th] [lo] = [] write [es] [x] [and] [lo]. Append (d) Thank you for your help. It is not a good practice to create complex data structures. I suggest that just use a simple dictionary with keys that is a tupal, so every key is a tube of multiple keys and each element can only be accessed using the appropriate key key. ret = {} list for r in the fdi ration of the Region databases: a = theObjectIUse (r) sp = A.getSp () ex = a.getEx () th = a.getTh () lo = a .getLo () de = a.getDe () tuple_key = (sp

ruby on rails - How to use locale structure for I18n.localize? -

प्रदान किए गए लोकेल संरचना में ये देख सकते हैं: de: तिथि: abbr_day_names : - तो - मो - डी - एमआई - डीओ - एफआर - एसए लेकिन दिन काम करने की कोशिश कर रहा है, ऐसा लगता है जैसे यह एक प्रारूप के लिए दिखता है: में लोकेल के रूप में भी? I18n.locale =: de l (तिथि ccrt, format:: abbr_day_names) "I18n: : लापता अनुवादसंपादित करें: अनुवाद ग़ैर: de.date.formats.abbr_day_names " यह आपको ऐसा करना चाहिए ( फ्रांसीसी का इस्तेमाल किया गया है): <~, जन, एफए, वी, मार्च, एआरआर, माई, एमएआर, एमएआर, एमएआर, एमईआर, जून, जुलाई, एओए »टी, सितम्बर, अक्टूबर, नवंबर, डीएपी_दिन_नाम: [डीमचेस, लूंडी, मार्डी, मर्स्रेदी, जेउडी, वेंडर्री, समीदी] स्वरूप: दिन_ महीने:"% b% d "डिफ़ॉल्ट:"% Y "% d% b% Y" तो में date.abbr _day_names आप संक्षिप्त दिन के नाम को परिभाषित करते हैं, उसी के लिए date.abbr_months_names । फिर आप date.formats.name_of_your_format अपने दृश्य में में स्थित एक कस्टम प्रारूप सेट कर सकते हैं, तो आप इसका उपयोग इस तरह करेंगे: < / p> एल (त

android - Sending email with appgyver, steroids -

I have installed an email composer plugin for epauvers, steroids. How can I actually use it to get an email from a form? I really do not know how to implement plug-ins in my app, who used it to share some information? "post-text" itemprop = "text"> There are instructions for using plugins, so just call window.plugins.emailComposer .showEmailComposerWithCallback (callback, subject, body, toRecipients, ccRecipients, bccRecipients, isHtml, attachments, attachment data); with data from your form should open a new screen where the email can be sent.

podio - Get item filtered by specific tag and custom field -

मैं एक विशिष्ट टैग द्वारा फ़िल्टर्ड और कस्टम दिनांक फ़ील्ड (बाहरी आईडी 'तारीख' है) मैंने डॉक्टर के अनुसार कई तरह की कोशिश की है, जैसे कि PodioItem :: Filter () टैग के लिए एक सरणी के साथ और एक सरल स्ट्रिंग भी है, लेकिन मुझे अपेक्षित परिणाम नहीं मिला। मुझे पता है कि हम विशिष्ट फ़ील्ड आईडी के द्वारा टैग और ऑर्डर द्वारा फ़िल्टर कर सकते हैं, लेकिन मुझे नहीं पता कि यह कैसे करना है। > डॉक्टर से स्पष्टीकरण: टैग: आइटम पर टैग द्वारा फ़ील्ड {field_id}: फ़ील्ड के आईडी को सॉर्ट करने के लिए, जो कि "राज्य", "टेक्स्ट" , "स्थान", "धन", "संख्या", "गणना", "प्रगति", "अवधि", "ऐप", "तिथि", "संपर्क", "श्रेणी" और "प्रश्न"। क्या कोई इसे कैसे करना जानता है? सभी के लिए धन्यवाद! इस पृष्ठ के निचले भाग पर आप देख सकते हैं कि तिथि फ़िल्टर कैसे करें। आप इस तरह टैग के साथ जोड़ सकते हैं: $ items = PodioItem :: filter ($ app_id, array ('filters'

enterprise architect - Develop a EA-BaseliningMerge workflow in C# -

I want to develop a workflow to merge the base line in EA as described by the GUI: Right click on the package and select "Package control"; "Package Baseline" (STRG + ALT + B) Click on "Compare file to model" Choose an XML file To compare After ... Choose package (in "Model Elements" and not in "Project Browser") & gt; Right-click - & gt; "Merge with the baseline (with option)" I think I have to use the following methods (as mentioned) but I do not know how to use them How to do: EA.App eaApp = new EA.App (); EA Repository stores = zero; If (eaApp.Repository.OpenFile2 (/ * FileOrDB * / "...", / * User * / "...", / * PWD * / "...")) {repository = eaApp.Repository; . Repository.GetProjectInterface () DoBaselineCompare (...); . Repository.GetProjectInterface () DoBaselineMerge (...); } Can someone post an example to execute these steps in C #? Looking at the docu

Jquery get remove class on multiple elements exept last one -

OK, I have multiple selection boxes with "active_category" class, I want to remove the class from the final input. I get this: & lt; Input type = "text" category = "active_grad" /> & Lt; Input type = "text" class = "active_category" /> & Lt; Input type = "text" class = "active_category" /> & Lt; Input type = "text" class = "active_category" /> And I want to change it on: & lt; Input type = "text" class = "" /> & Lt; Input type = "text" class = "" /> & Lt; Input type = "text" class = "" /> & Lt; Input type = "text" class = "active_category" /> This is my current JVC code for: var count = 1; Var Total = $ (".ct_category") Length; $ (". Activ_category") Each (function () {if (calculated & lt; total) {$ (this) .removeClass

int - Java Float to "remove" comma -

I need to change the float to an int, such as the comma was removed. Example: 23.2343f - & gt; 232343 Private Static Ent Kotka {For (Int i = 0 ;; I ++) {if ((* value (float) Math.pow (10, i) )% 1.0 f == 0.0f) Return (value) (value * MathPo (10, i)); }} The problem is with the integer number, for example if I pass 23000.235 9 F then it becomes 23000236, because it makes the input to 23000.236 goals. is not so accurate in the Java float, that you float f = 23000.2359f; Println (f); outputs 23000.236 To get the output you want, you can double You can use like double D = 23000.2359; String v = String.valueOf (d) .replace (".", ""); Int val = integer. ParisInt (V); Println (val); Output is (requested) 230002359

objective c - iOS how to print the equivalent of "view memory of * " in xCode? -

Image
I am trying to print the "issuer" data available from a keychain item in iOS. I can not get the right encoding or how it understands how this data is stored. When I select the "Memory of Memory of" option in xcode, I think that I see some text between garbage. I am trying to understand how I am addressing memory pointer. How can I print both text and trash Here's a screenshot of what I'm trying to do I They have tried to do this, but I get zero strings or a Japanese character for the UTF 16 id data = [[inner object object: @ "eder"]; NSString * string8 = [[NSString alloc] initWithData: data encoding: NSUTF8StringEncoding]; NSString * string16 = [[NSString alloc] initWithData: data encoding: NSUTF16StringEncoding]; NSString * string16be = [[NSString alloc] initWithData: data encoding: NSUTF16BigEndianStringEncoding]; NSString * string16le = [[NSString alloc] initWithData: data encoding: NSUTF16LittleEndianStringEncoding]; NSString

algorithm - Java program to alphanumeric sorting objects -

Java program for alphanumeric sorting objects Please tell me how I can achieve the expected results Expected output: B2D1D2D14E2 Actual output: B2D1D14D2E2 === =========== =============================== < code> list & lt; Name & gt; Lst = new ArrayList & lt; & Gt; (); Lst.add (new name ("D", 1)); Lst.add (new name ("D", 14)); Lst.add (new name ("D", 2)); Lst.add (new name ("E", 2)); Lst.add (new name ("b", 2)); Comparison. Source (LCT, New Computter & lt; name & gt; () {@ Comparison of Override Public Int (name N1, Name N2) {// TODO Auto-Generated Method Stub String o1 = n1.getNm () + n1.getSeatnum (); String O2 = N 2.getNm () + n2.getSeatnum (); return to o1.compareTo (o2);}}}; (name name: lst) {System. Out.println (name.getNm () + name.getSeatnum ());} ===================== =========== name of the public class {private string nm; private int cittanum; public ent sisenum () {return sit

android - Make HorizontalScrollView hover ViewPager/Fragments -

Can I hover my horizontal view (sliding tablay) instead of displaying my ViewPager and its pieces linearly ? & lt; LinearLayout xmlns: android = "http://schemas.android.com/apk/res/android" xmlns: tools = "http://schemas.android.com/tools" Android: Layout_width = "match_parent" Android: layout_height = "Match_parent" Android: orientation = "vertical" tool: reference = "com.zerohora.app.fragments.ContentFragment" & gt; & Lt; com.zerohora.app.widgets.SlidingTabLayoutAndroid: id = "@ + id / sliding_tabs" Android: layout_width = "match_parent" android: layout_height = "wrap_content" /> & Lt; Android: layout_height = "0px" Android: layout_weight = "1" Android: layout_gravity = "top" / android: Gt; & Lt; / LinearLayout & gt; The framelayout and the relative layout have already been tried, and it does not work. Swipe stops working after t

android - Delphi XE6 How to change the highlighting color of a TMetropolisUIListBoxItem using style -

Image
I need to change the color of the main attraction of ListBoxItem when I have selected. Using a dark style For Android, when I select an item the result is terrible (white in light blue and text color with item box). Is there a way to change the highlight color? The color can be defined by the style file, you can search with the style ListBoxItemStyle , and within it you can see the TColorAnimation The catalytic = IsSelected , there you can find the color can change. I am setting the example of my style: object TLayout StyleName = 'ListBoxItemStyle' DesignVisible = false height = 20.000000000000000000 width = 50.000000000000000000 Object TText StyleName = 'text' align = alClient color = claBlack height = 18.000000000000000000 hitTest = false HorzTextAlign = TaLeading MarginskLeft = 3k000000000000000000 MarginskTop = Lk000000000000000000 MarginskRight = 3k000000000000000000 MarginskBottom = Lk000000000000000000 width = 44.000000000000000000 WordWrap

python - How to programmatically distinguish between a TeX and a LaTeX file -

I have a large collection of .tex files (texts / latex), and I have a python Write a script that analyzes these files, I only want to analyze latex files, so I want to delete all the pure tax files. I have thought about making sure that \ start {document} is in every file, but it rejects a lot of my files, because many files are a book There are only chapters in long lists or a dissertation, in which there is no \ start {document} command. Does anyone have an idea, how to filter all the pure TeX files from my collection? I think that there is no possibility of this being a completely implicit method, given that you want to be sensitive to those files Which can be input with \ input or \ include . Looking at a special file, however, you can probably classify it with low confidence, which will detect you first of the following. The tax file is usually finished with \ Bye , and which is not usually defined in a latex file. Is the macro \ begin not likely to be

c# - Do DI Containers need to instantiate the object themselves in order to use constructor injection? -

Or instead of making the object itself, they somehow hook into blocking or Em> Object creation (for example, immediately by a controller MVC framework) and pass all the dependencies they need? I realize that in order to use Constructor injection, they need do something to create an object, but I'm not clear about what Whether or not the containers need to be made I realize that this question is probably familiar with tools like structurmaps, which do this to all the DI containers? Unity, Ninja, etc. ... but I am new to them and realized that I really do not know how they work under cover. I have dominated the Internet and I could not find any good answer. I have used all the di IoC containers, the containers themselves work to make you No output code will be found by using> new something (Dependance 1, Dependance 2) ... instead, you must include the code as "explicitly" or "code" something ( Maybe in the form of dependence of somethi

javascript - AngularJS, $routeProvider -

I am trying to learn the ways in which angrarias can be used so that the users can login a bit and users To login and write comments. live feed. However, the full concept of the routes is a bit blurred for the ATM and I can not get this right. My standard index.html has an NG-view and required scripts I & lt ;! DOCTYPE html & gt; & Lt; Html ng-app = "myApp" & gt; & Lt; Top & gt; & Lt; Script src = "// ajax.googleapis.com/ajax/libs/angularjs/1.3.0-rc.3/angular.js"></script> & Lt; Script src = "// ajax.googleapis.com/ajax/libs/angularjs/1.3.0-rc.3/angular-route.js"></script> & Lt; Script src = "// ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.js"></script> & Lt; Script src = "// cdn.firebase.com/js/client/1.0.21/firebase.js"></script> & Lt; Script src = "// cdn.firebase.com/libs/angularfire/0.8.2/angularfire.js"></script> &

haskell - Can mapEvery be implemented with foldr -

For a function that maps the function to each NTH element in a list: < Code> mapEvery :: int - & gt; (A -> A) - & gt; [A] - & gt; [A] mapEvery nf = zipWith ($) (drop 1 cycle. N $ f le: repeat id) Is it possible to implement it with foldr Like normal map ? Edit: In the title, 'folder' has been changed to 'folder' Autocorrect ... Here's a solution mapEvery :: Int - & gt; (A -> A) - & gt; [A] - & gt; [A] The map in the form of every F = go plateau (const []) as 1 as an M go m == n = f a: as 1. Otherwise, as a = A: (M + 1) it uses " foldl as foldr " as On the right side of the list as you fold Basically, if we type the foldr to (a -> gt - r -> gt) - & gt; R - & gt; [A] - & gt; R then we do r as int -> gt; [A] Where the integer we pass is the current number of elements which we have passed without calling the function.

javascript - How can I push a null value into the start of an array? -

I have this code that brings data and puts it in an array: This $ httpGetTest (this.test.testId) .success (function (Data: ITestQuestion []) {self.test.qs = data;}); This works and generates an array starting with self.test.qs [0]. Although sometimes my code refers to this array (which contains a list of questions 1 ... x) Let me always reduce the question number to 1 and So my code does not look clear. Is there any way that I can enter the array in front of all other people so that: self.test.qs [0] is empty self.test.qs [1] Reference Question First actual data for number 1 Ideally I would like to do this after entering self.test.qs = and after the code . From the beginning of the array self.test.qs.unshift (Zero);

Does this Cuda scan kernel only work within a single block, or across multiple blocks? -

I am doing homework and a quadron kernel is given a primitive scan operation. I can say to this kernel that if a block is used (due to int id = threadInx.x ) it will scan the data. is it true? // Hilis & amp; Steel: Kernel Function / / Jake Heath, October 8, 2013 (c) // - Changed by KD: Input array has been changed to be an unsigned entity instead of __global__ void scanKernel (unsigned int * in_data, unsigned int * Out_data, size_t numElements) {// We are creating an extra space for each newment so that the array size needs 2 * numElements. // cuda does not like the dynamic array in the shared memory, so it may obviously require the size of this memory / __shared__ int temp [1024 * 2]; // Instant variable variable int id = threadIdx.x; Int pout = 0, pin = 1; / // Load Input in Shared Memory // Exclusive Scan: Move the right one by one and set the first element to floating [id] = (id> 0)? in_data [id - 1]: 0; __syncthreads (); // For each thread, each stage / loop throug

javascript - Programatically record audio output from web page using jS or html5? -

, Whether the audio is being played from the webpage using HTR5, JS or something and an MP3 / WAV file out? I know the web audio API, but I am able to get information about audio recording with microphone input, rather than just the output of a web page. Thanks You use the Web Audio API to record the output of anyone For the web audio node, not just the microphone input, if the webpage you want to record the audio from, then using the Web Audio ADI to generate the sound, you can definitely record the web audio Can use APIs (see recorder .js). If the sound is being played with HTML elements, you can convert it to a web audio node and record it. Check it out:

.net - Adding my own WPF TriggerAction -

I am trying to add a custom trigger action to our code. The following XAML snippet is: style x: key = "ToolBarButtonStyle" TargetType = "button" & gt; & Lt; Style.Triggers & gt; & Lt; Event Trigger Routing Avent = "PreviewMouseDown" & gt; & Lt; Action: MyAction / & gt; & Lt; / EventTrigger & gt; & Lt; /Style.Triggers> ... MyAction is defined as follows: Public class MyAction: trigger action & lt; DependencyObject & gt; Call {safe override zero} (object parameter) {// something}} However, when I run the code, I get the following exception: 1) The given object should be an example of trigger action or derivative type. The result: 'Add an exception' add value to the collection of 'System Windy Trigger Action Coalition'. Line number '29' and line position '15'. I am running Visual Studio 2010, targeting .Net 4.0. any suggestion? Adding any triggering

c# - How to use reflection to find which namespaces are referenced by a class library? -

For example ... using the system; Using System.IO; Namespace, which is compiled in {class class] SomeClass {}} If this class library is mylibrary.dll , then I use the reflection to load I want to be able to Mylibrary.dll and find out if it is referencing System.IO namespace. I have tried to use the Assembly.GetReferencedAssemblies and then identify namespaces in those assemblies, but it will always provide all the namespaces defined in those assemblies, even if they Are referred to in mylibrary.dll or not. System IO shares an assembly with system and many other important namespaces, this will not work. Another thing I have thought to know is that a square is referenced from that name space, but I can not find any way to use the reflection. This is a plugin for the system, and it is used by the plugin as some namespace, such as System.IO , if those namespaces are referenced, by loading the library Refuse You can load assemblies in it, it will allow you

Link to install WindowsBuilder in latest Eclipse -- Luna 4.4.1 -

When I search the current / latest Luna Eclipse Release (4.4.1) on the Window ButlerPro plugin, URL should eclipse help- gt; Under the new software, it is blurred, for example: Where can I give the actual link to help in Elys - & gt; Install new software? This is very interesting URL that you have seen. Here: Drag the above URL and drop it into the "Work with" field of the "Install" dialog (drag the URL into the address bar of your browser in the URL to pull the URL).

javascript - Using Wildcards to Search Arrays in JS -

I am thinking that it is possible to create an array of elements and then create an event listener using a wildcard that Will trigger when interacting with any of these elements. A sample of how this may look like: var e = new array (); E [1] = document.getElementById ('some elements'); E [2] = document.getElementById ('some other elements'); E.onmouseup = function {if (e == e [1]) {// some code here} and if (e == e [2]) {// some code here}} Actually there is no wildcard , but something that only allows you to have an event handler All elements will allow binding - Event delegation: document.body.addEventListener ('mouseup', function (event) {var target = event.target; if (target == E [ 1]) Some code warnings here ('some element');} and if (target == E [2]) {// some code warnings here ('some un Other elements');}}, false); Due to this fact it works because the DOM transports the tree to the bubble until the code reaches , and re

ios - xCode 6 centre of image not working -

I have long been upgraded to Xcode 6. When I had Xcode 5, the game was working fine, and it works fine on iOS 7, but this does not work on Xcode 6 / iOS 8. Ive got an arc4random (), which does not work - this means to select a random number between 9 and in any number it's an image change x and y coordinate - so i have other versions of arc4random () Tried to use, but they never worked, though I am confused now because it selects a random number, and it runs the switch statement correctly, but the coordination of the image Does not change ?? So whether it's my arc4random () or Center does not work on 8 / Xcode 6 ?? (I am using objective- c and not swift) - (IBAction) button: (ID) sender {int place = arc4random ()% 9; NSLog (@ "number is:% i", place); Switch (Place) {Case 0: NSLog (@ "One is selected"): Image. Center = CP point make (10,10); break; Case 1: Image. Center = CGPExMake (20,20); NSLog (@ "Two has been selected"); break; Etc ...}

objective c - SpriteKit physicsBody applyImpulse node fails -

I am trying to create a jump event on touch screen action, but after applying Fails by the bottom of the screen) All things look good with some parameters, but sometimes it happens. Code: [Apply self.physicsBody effect: CGVectorMake (dx / mag * kImpuleScale, 20.0f)]; You can put a physics around your screen: < Code> var borderBody = SKPhysicsBody (edgeLoopFromRect: self.frame) self.physicsBody = borderBody Then any body "escape"

java - How to Use Parse.com Lists in Tabs? -

मुझे निम्नलिखित फ़ंक्शन मिल गया है: सार्वजनिक स्थिर वर्ग ListFragment टुकड़ा बढ़ाता है {निजी ParseQueryAdapter & LT; ParseObject & gt; mainAdapter; निजी सूचीदृश्य सूची देखें; सार्वजनिक देखें क्रिएटिव्यू (लेआउटइनफ्लेटर इन्फ्लाटर, व्यू ग्रुप कंटेनर, बंडल बचाए गए इन्स्टेंसस्टेट) {देखें रूटव्यू = इन्फ्लिएटर.inफ्लैट (आर। लेट। फ्रैग्मेंट लिस्ट, कंटेनर, फॉल्स); मुख्य एडाप्टर = नया पैरासेक्यूएडएप्टर & lt; पार्स ऑब्जेक्ट & gt; (यह, "टोडो"); mainAdapter.setTextKey ( "शीर्षक"); mainAdapter.setImageKey ( "छवि"); // प्रारंभ सूची सूची देखें और मुख्य एडेप्टर सूची में प्रारंभिक दृश्य सेट करेंदृश्य = (सूची दृश्य) findViewById (R.id.list); listView.setAdapter (mainAdapter); mainAdapter.loadObjects (); वापसी रूट दृश्य; }} त्रुटियों को वापस कर दिया गया है: कन्स्ट्रक्टर पैरासेक्यूएडैप्टर (मेनएक्टिविटी.लिस्टफ्रैग्मेंट, स्ट्रिंग) अपरिभाषित है MainActivity.java गैर-स्थिर विधि के लिए स्थैतिक संदर्भ प्रकार VivById (int) प्रकार की गतिविधि MainActivity.j

javascript - I'm having some trouble making a multi-file uploader in PHP -

My goal is a website where I can upload many files to my webserver. This is my html form: & lt; form class = 'form-horizontal' & gt; & Lt; div class = 'form-group text-center' & gt; & Lt; H3 & gt; Upload & lt; / H3 & gt; & Lt; / Div & gt; & Lt; Div class = 'form-group' & gt; & Lt; label = 'file' class = 'col-sm-3-control-label' & gt; Label for file & lt; / Label & gt; & Lt; div class = 'col-sm-9' & gt; & Lt; Input type = "file" id = 'files' class = "form-control text-center" multiple /> & Lt; / Div & gt; & Lt; div class = 'col-sm-12' & gt; & Lt; Br> & Lt; Button Type = "Button" id = 'submit' class = "BTN BTN-Success Center-Block Glyphicon Glyphicon-Cloud-Uploaded BTN-LG" Value = 'Upload' / & gt; & Lt; / Div & gt; & Lt; / Div & gt; &

regex - Java Pattern / Matcher not finding word break -

I'm having trouble with Java patterns and matures, what I'm trying to do is a very simple one. Example I've included. Let me first use the word (or "to find the last character of" 4 "for example), but as I move through the code, m.find () always gives false. What am I missing here? Why do the following Java code always print "Not found"? Patterns p = pattern.compile (". \ B" ); Matter M = P. Mettor ("102939384 is a word"); Int ixEndWord = 0; if (m.find ()) {ixEndWord = m.end (); System.out.println ("found:" + IxEndWord;} Else {System.out.println ("not found");} << code> < P > You need to avoid special characters in regex: ". In fact, the backslash has to be run in the string, so the code becomes "\\" '\' . then the string ". \ B " becomes little string ". \ B " , which will be used by the pattern.

is this possible to show next post on clicking an image in wordpress? -

I try this but it is not working for me ... please help me in advance thank you < / P> ID)); ? & Gt; & Lt; a href = "& lt; php echo get_permalink ($ next_post-> ID);> & gt;" & Gt; & Lt; img src = "& lt ;? php echo $ url ?? & gt;" / & Gt; & Lt ;? Php echo $ next_post- & gt; Post_title; ? & Gt; & Lt; / A & gt; & Lt ;? Php endif; ? & Gt; Nobody knows how to do this. issue Next post & lt ;? Php next_posts_link ('& lt; IMG src = "imageURL.com/next.png" />); ? & Gt; For previous posts & lt ;? Php previous_posts_link ('& lt; img src = "imageURL.com/advanced.png" />'); ? & Gt;

Find last occurrence of any item of one list in another list in python -

I have the following 2 listings in Python: ll = [500,500,500,501,500,502,500] mm = [4 9, 5, 5, 502] < / pre> In the list, I want to know the position of the last chance of any item. I can do this for one element: lane (ll) - 1 - Ll [:: - 1] Index (502)> gt; & Gt; 5 Take here [:: - 1]. Indices (502) 502 provides last position and gives lane -1 total length. How do I extend the entire list to work for mm? I know that I can write a function, but another dragon is the way if you want Last Index Ll = ll [500,500,500,501,500,502,500] mm = [49 9, 501502] d = {v: k for calculate in k, v (ll) if v in mm} # {501: 3, 502: 5} Instead of o (n) it is possible to create a set to set before creating a (1) lookup, but three items For this, it is not really worth following the apro worries about maintaining unavailable index as any and make it a O (1) lookup Is using a hash lookup for. . # Create a key- gt; Do not have any word for all `mm`d =

swt - Xulrunner Eclipse Luna 64bit Windows crashes -

I am using SWT browser with Mozilla engine. This Kepler works inside 64-bit Windows 7 64-bit. I started transferring eclipse 4.4.2 to 64bit and Xulneran 24.x. I am not able to run it crashes with the following stacktrace: org.eclipse.e4.core.di.InjectionException: org.eclipse.swt.SWTError: XPCOM error 0x80004005 at Org.eclipse.e4.core.internal at org.eclipse.e4.core.internal.di.InjectorImpl org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated (InjectorImpl.java:888) at .di.MethodRequestor .execute (MethodRequestor.java:62) org.eclipse.e4.core.internal.di.InjectorImpl.internal.Make (injectorImpl) at org.eclipse.e4.core.internal.di.InjectorImpl.inject (InjectorImpl.java: 120) but the process is open (InjectorImpl.java:869) .java: 337) at org.eclipse.e4.core.internal.di.InjectorImpl.make (InjectorImpl.java:258) I do not know what SWT version Luna 4.4.1 are using - there were people who said, STT 4.4 is working with XlRuner 24. X I have also set up Microsoft Visual C +

Redis continuously takes a large amount of memory and grows until killed by OOM -

Currently, my 8GB RAM server is using 5.33 GB for radis (approximately 1.6 in other parts of the server) GB, so even after the reboot of the server, I already have ~ 7 GB RAM [88%]). The memory usage of the REDIS continues to grow until it is ultimately killed by the OOM of Ubuntu, causing the nervousness of errors for my node application. I've attached Radis Info Output at the bottom of this post. I originally thought that redis could be a lot of keys, but I read from REDIS () that 1 million keys are ~ 100 MB, we have around 2 million (~ 200 MB - nowhere near 5GB) , So this could not possibly be a problem. My questions are: - When is all this memory consuming? The keyspace does not take much at all. - What can I do to stop it from taking more storage? Thank you! Redis_version: 2.8.6 redis_git_sha1: 00000000 redis_git_dirty: 0 redis_build_id: f73a208b84b18824 redis_mode: standalone OS: Linux 3.2.0-55-virtual x86_64 Arc_bits: 64 Multiplexing API: Apollo GCC_version: 4.6

php - Inserting $_POST array into databse -

Columns in my database: stat_id, stat1, stat2, stat3 I am using a form, I am allowed to loop through the list of members and they have 3 different data each ($ Member_stat is already an array in which 'stat_id' has its own key Is included as a) foreach ($ member_stats as member_stat) {echo ' '; = "Stat2" & gt; For 'echo' & lt; label state 2 & lt; / Label & gt; '; Echo '& lt; Input type = "text" name = "'. $ Member_stat [' stat_id '].' Stat2" id = "stat2" />; '; = 'Stat3' & gt; For 'echo' & lt; label state 3 & lt; / Label & gt; '; Echo '& lt; Input type = "text" name = "'. $ Member_stat [' stat_id '].' Stat3 'id =" stat3 "/> I hit the submit and my $ _POST array / data looks like this: Array ([157stat1] = 1 [157stat2] = 4 [157stat 3] = 7 [158stat1] = 2 [158stat2] =

c# - Async Await code. Why it is not working? -

Whether the simple code is valid for checking URL / website name. This code (sync code) works right when I comment on the sync code and cancel the code as async , the code is not working properly. What's wrong with my async programming? class program {static stringbirders urlStatus = new StringBuilder (""); // Public stable async work & lt; String & gt; GetHeadersAsync (string url) // async code public static string GetHeadersAsync (string URL) //// sync code {var request = (HttpWebRequest) WebRequest.Create (url); request. Method = "head"; Use {//} as the HTTPAPRSpuspace (use var response = escache). // Using uncompressed code (var response = request. Gate Response () as HTTP) //// Sync code {if (response! = Null & amp; Amp; response.StatusCode == HttpStatusCode.OK) "HTTP_OK" return; Return "error"; }} Hold (WebExation Pre) {return ex.ToString (); } Hold (Exception pre) {return ex.ToString (); }} Fixed zero main (string

twitter bootstrap - How can I change at which viewport width the off canvas navbar is shown? -

It has been shown that as the closed canvas menu for mobile site, .navbar It is possible to show By default, the layout reduces the width of the viewport to 768px to switch off the canvas menu. How can I change it to show a closed canvas menu at 1280px or less You create an optimized version of both Bootstrap and Jason Bootstrap and @ grit-float --breakpoint .

html - Can't Insert Background Image -

I am trying to update my site and there is a lot of difficulty in implementing an image in the site background . I tried to make each device, one for each side (as I want to output the image 1 - call it on the left page, then the middle content, then the image 2 - Call it rightbg.png on the right). So I've kept the divisions so much in the body: And I have a CSS file: #leftbg {float: left; Width: 22.5% (body is 55%); Background: URL (images / left wager) no-repeat; Z-index: 999} Although this is not generating anything I think it might be because my body code already has a background, and I have to z-index I have tried to insert, as if my left rebel class will be prominent on the body class, although I know that there are many problems in the z-index this body is the CSS code: body {font: 11px "Trebuchet MS", aerial, sans-serif; Color: # 666; Background: Red URL (Image / Backgrad.); Z-index: 0; } Any help would be greatly appreciated! Attemptin

javascript - How do I hijack just one specific link within an LI and not ALL links? -

मेरे पास एक मेनू है जो प्रत्येक li में है, इसमें एकाधिक & lt; a & gt होगा ; टैग मुख्य एक आइटम का नाम है जब उस पर क्लिक किया जाता है, तो मैं एक ड्रापडाउन घटना को होने के लिए चाहता हूं। & lt; li & gt; मैं उन क्लिक्स को सामान्य रूप से कार्य करने के लिए चाहता हूं। मेरी एचटीएमएल इस तरह दिखती है: & lt; ली वर्ग = "पेड़-आइटम-नाम" & gt; & lt; a href = "#" & gt; औंस एंड amp; amp; amp; मामा & lt; / a & gt; & lt; span class = "bootstrap-styles" & gt; & LT; ul & gt; & Lt; li & gt; & lt; a href = "/ family_trees / 3" & gt; & lt; आईएमजी alt = "डिफ़ॉल्ट" वर्ग = "आईएमजी-सर्कल" ऊंचाई = "48" src = "/ संपत्ति / डिफ़ॉल्ट.jpg" चौड़ाई = "48" / & gt ; & lt; / a & gt; & Lt; a href = "/ परिवार_ट्रेट्स / 3" & gt; जैकी लिन & lt; / a & gt; & lt; एक डेटा-पुष्टि = "क्या आप निश्चित हैं?"

Create a custom string c# -

I have the numeric ID of the integer type. I want to add that integer type of value to 00000 and it's the string type variable Want to join Recognize my integer variable value 1 After adding the variable it should look like 00001. And I want to add "string" to the string and then change the whole thing in the string variable like "Added 00001" as another example if my integer value is 111 then it's finally added "00111" Should look. Another example is integer variable = 1234. The last string should be "Added 101234". how to do this...? An example of how to do this .. or any tutorial how to do such a thing, really good thanks in advance You must use the short format format specification of the toasting method. In the example below, D5 indicates that integer 111 should be converted into a string with a padded zero length of 5 characters, e.g. 00111. int i = 111; String s = "added"; Var s = s + i.ToString ("D5"

c - union inside a struct -

तो, मेरे पास यह कोड है: #include & lt; stdio.h & gt; # शामिल करें & lt; stdlib.h & gt; संरचना सूची {संघ जानकारी {डबल ऑपरेंडो; चार ऑपरेटर; } जानकारी; }; सूचीबद्ध सूची सूची int main () {printf ("चार:"); scanf ("% c", Lista.info.operador); getchar (); printf ("% c \ n", Lista.info.operador); Printf ("डबल:"); scanf ("% lf", Lista.info.operando); getchar (); printf ("% lf \ n", Lista.info.operando); वापसी 0; } जब मैं इसे संकलित करने का प्रयास करता हूं, तो मुझे यह त्रुटि मिलती है: त्रुटि: 'लिस्टा' से पहले अपेक्षित अभिव्यक्ति क्या किसी को पता है कि मैं क्या कर रहा हूं? सूची एक प्रकार, एक चर नहीं है, आपको कुछ ऐसा करने की आवश्यकता है: लिस्टा एक्सआईज़ी; : स्कैनफ़ ("% c", और (xyzzy.info.operador)); आप यह भी देखेंगे, क्योंकि scanf फ़ंक्शन के फ़ंक्शन को पते चर के होने की उम्मीद है ताकि वे आबाद हो सकें , मैंने और (xyzzy.info.operador) के बजाय बस xyzzy.info.operador के

list - Math Domain Error with Standard Deviation -

I am having trouble calculating the standard deviation in the table (list of lists). I am able to get 'population' standard deviation, but when I try to divide by n-1 for sample standard deviation, I get a math domain error. # Line standard deviation (ROWS) for i for the range: total = 0 average = 0 sum2 = 0 sum3 = 0 stdDev = 0 in the range J (COLUMNS): total = float (total + array [i] [j]) Avg = total / len (array [0]) sum2 = sum2 + (array [i] [j]) ** 2 stdDev = sqrt ((sum2 / (line array [0]) - (average * average)) print (StdDev) You are taking the square root of a negative number, which is Mathematics can not handle . & gt; & Gt; & Gt; Math.sqrt (-1) Traceback (most recent call final): File "& lt; stdin>", line 1, & lt; Module & gt; Value error: math domain error

windows - How Do You Launch IIS Express From the Command Line Looking at ProgramFiles (x86)? -

This is basically a question I have tried some options: iisexpress / Path: "C: \ ProgramFiles (x86) \ PathToMyApp" / Port: 9000 iisexpress "/ path: C: \ ProgramFiles (x86) \ PathToMyApp" / Port: 9000 iisexpress / path: C: \ ProgramFiles ^ ^ (x86 ^ ) \ PathToMyApp / Port: 9000 iisexpress "/ path: C: \ ProgramFiles (x86) \ PathToMyApp" / port: 9000 iisexpress / path: C: \ ProgramFiles% 20 (x86) \ PathToMyApp / Port: 9000 < / Pre> And maybe something else I'm just forgetting. Generally, the command only exits without saying anything. With some options, I find: The word 'x86' is not recognized by the name of a CMDlet, function, script file or operative program. Check the spelling of the name, or if the path is included, verify that the path is correct and try again in line: 1 character: 38 +. \ Iisxpress / path:% ProgramFiles (x86 & lt; & lt; & lt; & lt;)% \ PathToMyApp / Port: 9000 + Category Information: Object N

data visualization - Tableau sharing from tableau student -

I currently have a version of the festival because I am a student, I am a student of my dashboards on any blog or any JPEG or picture How capable is the picture to show. On the assumption that you've only received the make-up tilt desktop, you publish your workbook in the Tableau Public And then embed the dashboard on another site or just provide a direct link to all the public .

java - evaluating variable int/string -

int x = 20; Double d = 3.1416; String s = "h"; These are my variables and I have to evaluate the next rows. d / x + ""; is evaluating the double variable type (0.15708), is that correct? If you do not have that pesky "" ! Finally add "" to something like this in a string it can actually be an easy shortcut - String.valueOf Instead of using something like () , you can do that 4/2 + "" , which makes it in a string. Repeat, d / x will be a double , because you are adding a floating point < P> but a double + "" = string . I hope that helps. Good luck :)

Struggling with Creating a Shell in C -

I am struggling to apply a basic shell. I understand the basic concept and as far as a seg-fault I basically need to apply a shell: Prompt Parse input create argv [] Kanka Kid - & gt; Execvp () Parent - & gt; Waiting / Waiting Period () The code given below is given below and I can not understand what I am doing for my life. I have seen many other places. My initial idea is to do it with strtok (), but I could not despise it. int main (int argc, char * argv []) {pid_t pid; Four inputs [100]; Four * p [20]; Int Newforg; Four * s; While (1) {printf ("simple shell"); Fgets (input, 100, stdin); S = Stroke (input, ""); While (P [numofargs]! = NULL) {P [numofargs] = strtok (NULL, ""); numofargs ++; } Pid = fork (); If (pd == 0) {execvp (p [0], p); Lie ("execution failed"); } And waitpad (); } Exit (0); } Note that p is an array of pointers Four . To begin this, is undefined , which means every entry is p [n] (i.e.

c++ - Can sizeof(int) = 1 on either 32 or 64 bit platforms? -

अनुभाग में N3797 :: 3.9.1 / 2 [basic.fundamental] है: पांच मानक हस्ताक्षरित पूर्णांक प्रकार हैं: एक ???? हस्ताक्षरित चार â ????, एक ???? छोटा int एक, ???? int एक ????, एक ???? लंबा int â? ???, और एक ???? लंबे समय तक int एक ???? इस सूची में, प्रत्येक प्रकार कम से कम उसमें जितना भंडार होता है, वह सूची में पिछला होता है। मानक स्पष्ट रूप से वर्ण, अहस्ताक्षरित चार, हस्ताक्षरित चार 1 है। और यह कि सादे int s का आकार INT_MIN और INT_MAX पर निर्भर करता है, जहां तक ​​मैं नहीं समझता हूं। तो INT_MIN और INT_MAX को परिभाषित करने के लिए कार्यान्वयन संभव है, ऐसा sizeof (int) = 1; ? हां, जब तक कि बाइट में कम से कम 16 बिट्स होते हैं, क्योंकि यह int का न्यूनतम आकार है। < / P> यह डीएसपी आर्किटेक्चर पर आम है, जो आम तौर पर केवल एक्सेस की अनुमति देता है, उदाहरण के लिए, स्मृति के 32-बिट शब्द, और कोई छोटी इकाई नहीं।

java - What is the best way to get a sorted list (of finite length) from a large set of input -

So assume that I have 100 million comparative as the streaming input and I output it I want to do the top 100 of that input (in order - which is trivial if i can get the top 100) I'm assuming that any kind of insertion sort will be the best, but what is the best way to accomplish this (if this is also the best way)? The obstacles are that you definitely see every thing, one at a time (and I definitely can not set the whole set in memory). I was thinking of two possible solutions: 1) A simple linked list. So as the first 100 objects come in, they will be sorted (O (n) time - but n = 100). Then after coming into the form of each other, it will be inserted correctly (then O (n), n = 100, time), and if it is inserted, then it will remove the tail (otherwise the linked list is unchanged) If it is higher than maximum value). 2) Use a heap. I think the size of the pile can be left to the root node (above the heap) to put in the heap if the size of the pile is above my maxi

Want to fetch more than 2 id from table in asp.net using sql server -

This field does not give the name of the column column value cmd = Select new SqlCommand ("ShowId, ScreenId, MovieId, MenuId, Tbl_Booking WHERE BookingId =" + 7 + "'', con); SqlDataAdapter da = New SqlDataAdapter (cmd); Dataset DS = New Dataset (); da.Fill ( DS); String Showide = DTibules [0] .column ["Shoid"] .Toastring (); String classID = DTTables [0] .column ["ClassId"] .Toastring (); String screenID = DTTables [0]. Column ["scroll String MovieID = Dettibles [0]. Columns ["Bookmenuide"] .toasting (); Code> You are not receiving the value from the rows, instead the columns change your code in this way ds.Tables [0] .owsows [0] ["ShowId"]. ToString (); If you have only one line and If multiple uses are foreach loop.

Oracle 12514 error on linux server -

Image
I just downloaded VM from Oracle and added it to the virtual box. When I turn on Oracle, it seems that my listeners do not listen to anyone. Here are some pictures. Anyone got any ideas on that? < P> You can get the symptoms if the listener is running but the database is not the example. ps -ef | Try Grep [o] ra_pmon and see if you get any results. If you have a DB example, you should get a line of output. If not, then start the example: [oracle @ localhost ~] as $ sqlplus / sysdba ... SQL & gt; Startup

git - Autofixup consecutive commits of same message and author (of the complete repo) -

I have transferred a large SVN repository to GIT and there are several drawbacks with the same message from the same author. / P> Now I want to command myself in a single commitment. Thoughts? I was finally able to annoy the problem, as always, it was a human error. I've written the script available here for Bash, but as I use it should not be a problem. This script is, I will explain it in detail below: #! / Bin / bash Author = "$ GIT_AUTHOR_NAME & lt; $ GIT_AUTHOR_EMAIL & gt;" Msg = "$ (cat)" tree = "$ 1" parent = () change in time of change ": p:" opt. What to do $ opt in p) Parent = ($ {parent] $ OPTARG ;;?) Echo "invalid option: - $ OPTARG" & gt; And 2 exit 1 ;; ASAC has created _parents_pection () {For parents = "$ @" Do_author () {git log -1 - format = "% AN & lieutenant" = "- p $ parent";% AE> "$ 1} Squash_it () {If ["x $ author" == "x

mysql - How to avoid conditional multiple SELECT in a query -

i select this simple sql (case is when (select name customers where customers_id Customer = Customer) is not Zero (name Select from Customers where Customers_id = Customer) and Customer End) as Customer, DateStart, ProgramsRun.Programs_id, RunInSeconds, SwSQL, SwProgram, Name Programs Run Run ProgramName from left ProgramsRun.Programs_id = joining program programs .Programs_id; My question is how can I make two similar selection statements: in the form of a condition and the other as the price selection. I know that I can make a temporary variable, but it forces me to use stored procedures or temporary tables, is there an easy way to avoid this? You can use it as IFNULL : IFNULL ((Where customers name customers_id = customer, select customer) or COALESCE like this: Reference:

ruby on rails - Define csv attribute dynamically -

Below is a CSV importer. It's working perfectly but I dynamically define it by defining the speed Want to How do I change the attribute "name" with attribute that I define before the execution of CSV? For example: - Name: line [1] - & gt; Name: Line [attribute] In the above example, "an underlying conversion in the integer string of error" is stated, which is clearly true. Below is the code. import_attribute = import_dimension.import_attributes.first attribute = import_attribute.name csv Forch (Rails.root.join ('tmp', 'uploads', csv_path), col_sep: import_source.csv_delimiter, line_sap :: auto, skip_bucks: true, header: false). Line | target.create Company: self.import_source.company, code: line [0], name: line [1] termination You can use a hash that maps the attribute to the array in its position. status = {code: 0, name: 1} and then target.create Company: self.import_source.company, code: line [post [[code]],

php - How to get a cookie value for input field? -

I have a form and I have set cookies in the input field. When I visit the element , you can find cookies in resources This code is confidential, so I can not show how I set my cookies. But I'm sure I have selected input fields in resources- & gt; Cookies may be found. The same form appears in all pages when I redirect from one page to another, the form field that I have selected should appear in all the pages. I used the code below to get the cookie value & lt; Script type = "text / javascript" & gt; $ (Document) .ready (function () {if (input1 = getCookie ("input1")) document.myform.input1 .value = input1;}); & Lt; / Script & gt; But I'm getting the error because is unwanted reference reference: getCookie is not defined Can someone indicate that this error What will be the reason? And how do I get the cookie values ​​in the input field? Generally, you should set this how to cook cookies in Google, not sure that

"Exception in thread "main" java.lang.IndexOutOfBoundsException: Index: 0, Size: 0" with ArrayList? -

"थ्रेड में अपवाद" मुख्य "java.lang.IndexOutOfBoundsException: सूचकांक: 0, आकार: 0" मुख्य त्रुटि I जब मैं इस विधि को संकलित करता हूं: सार्वजनिक स्थिर अर्रे लिस्ट & lt; ArrayList & lt; Integer & gt; & gt; CreateSparseArray (इंटेल लेन, डबल डेन) {int counter = 0; ArrayList & LT; पूर्णांक & gt; PlaceHolder = नया अर्रेलिस्ट & lt; पूर्णांक & gt; (); के लिए (int j = 0; j & lt; len; j ++) {डबल randomNumber = Math.random (); If (randomNumber & lt; den) {काउंटर ++; placeHolder.add (जे); }} ArrayList & lt; ArrayList & lt; Integer & gt; & gt; सूची = नया ArrayList & lt; ArrayList & lt; Integer & gt; & gt; (); के लिए (int k = 0; k & lt; counter; k ++) {for (int m = 0; m & lt; 2; m ++) {list.get (0)। सेट (placeHolder.get (k), (int) ( मठ.रैंडम () * (99 99 9) + 1)); }} वापसी सूची; } मैं इसे कैसे ठीक कर सकता हूं? ArrayList & LT; ArrayList & LT; पूर्णांक & gt; & gt; सूची में

android - No command 'lint' found -

I want to prepare a lint report for my project. So on my Ubuntu terminal I gave the command lint my_prj_path but I am getting the error, no command 'lint' was found, did you mean: command 'link 'Command' line 'package' from command 'hlint' package 'hlint' (cosmos) from 'corolls' (main) command' jellint 'package' jellint '(universe) from package' linux '(main) command' tint package From 'tint' (universe) command 'dlint' package 'dlint' (cosmic lint): command can not be found It can be very basic question, but I do not know a trick. Please help. thank you in advanced. / sdk / tools / . So you need to go to the directory or add related paths before the lint command, such as SDK_PATH / sdk / tools / lint project_path < / Html>

c# Converting codepage input to display as Unicode -

I searched and found some partial answer in some cases, but nothing that works in all the visibility of the network An XML file is sent through the medium. Encoded file is named eg Encoding = "windows 932" or encoding = "windows-1254" and so on. I need to parse the file and get some information and convert that information to Unicode characters and send it to another machine which can only read Unicode. It is encoding 1253 if it is Cyrilic then four E1 = ASCII225 = Unicode 0431. 1254 is Turkey, then four E1 = ASCII225 = Unicode 00 E1. 1251 If it is Greek then four E1 = ASCI 225 = Unicode 03 B1. So far I thought I could take a lookup table which saw the encoding and then I just add the Unicode page in front of E1, but which will not work as Unicode , As you see above, there is no position on the same page. To make things even more complex, I can also get encoding such as Japanese (Shift-JIS) codepace 932. Now all this Japanese does not get from

c# 4.0 - error showing when i try to add tab to my android application -

I am getting this error when I compile the code Error CSX 2020: non-static field, for a method Object reference is required, or property 'Android. Widget.TabHost.NewTabSpec (string)' using the system; Using System.Collections.Generic; Using System.Linq; Using System.Text; Using Android. App; Using Android. material; Using Android .OS; Using Android. From time to time; Using Android. See; Using Android.Widget; Namespace Employee Directory Android {{Activity (label = "Tabs layout disabled", main Lenin = true, icon = "@ drawable / IC_Luncher")) Public square tab layout: activity {Uncredited (bundle bundle) without secure override {base.OnCreate (bundle); SetContentView (Resources. Layout.TabsLayout); CreateTab (type (calendar activity), "calendar", "calendar", resource.Drawable. Calendar); Make the tab (typef (hospital academy), "closest hospital", "closest hospital", resource. Drawable hospital); CreateTab (Type (

gridviewcolumn - WPF GridViewColumnHeader disable the dragging of columns between unmovable columns -

Image
मेरे पास ListView जिसका दृश्य है ग्रिडव्यू अर्थात्: & lt; ListView & gt; & LT; ListView.View & gt; & Lt; GridView / & gt; & LT; /ListView.View> & Lt; / ListView & gt; इस उदाहरण के साथ: लाल पाठ वाले दो कॉलम में एक शैली लागू होता है जहां IsHitTestVisible संपत्ति को गलत पर सेट किया जाता है - जो उपयोगकर्ता को उन दो कॉलमों को स्थानांतरित करने से रोकता है। यह संभव है, और यह होना चाहिए, उपयोगकर्ता के लिए अन्य तीन कॉलम अपने आप में खींचें। दुर्भाग्य से, इस परिदृश्य के साथ, उपयोगकर्ता पहले या दूसरे अनजान स्तंभों में से तीन चलने वाले स्तंभों में से एक को से पहले स्थानांतरित कर सकता है, इस प्रकार एक स्तंभ चल रहा है जो चलने योग्य नहीं होना चाहिए, जैसे कि: मेरा उद्देश्य अघोषित स्तंभों को रखना है जहां वे चल कॉलम को बीच में स्थानांतरित करने की अनुमति दे रहे हैं खुद को। अघोषित कॉलम की मात्रा चर है, यह संभव है कि ग्रिडव्यू के पास कोई निश्चित कॉलम नहीं है, यह भी संभव है या तो, यहां दिखाया गया है - या अधिक (बड़ी तालिकाओं के ल