Posts

Showing posts from July, 2015

html - How to inverse hover a hotspotted image? -

मेरे पास एक hotspotted छवि है जैसा कि निम्न है: & lt; div class = "hotspotted" & gt; & Lt; आईएमजी ऊंचाई = "100%" चौड़ाई = "100%" src = "पहेली_होस्स्पॉट.png" / & gt; & Lt; a href = "a.html" id = "hotspot1" वर्ग = "हॉटस्पॉट" & gt; & lt; / a & gt; & Lt; a href = "b.html" id = "hotspot2" वर्ग = "हॉटस्पॉट" & gt; & lt; / a & gt; & Lt; / div & gt; मुझे वह पसंद है, जब मैं हॉटस्पॉट 1 पर फ़िसल जाता हूं, तो बाकी सभी पेज अंधेरे होते हैं I मैं इसे कैसे प्राप्त करूं? मैंने उन पंक्तियों के साथ कुछ सोचा (लेकिन उन पंक्तियां कुछ भी नहीं): .hotspot {display: block; स्थिति: पूर्ण; }। Hotspotted: एक {अस्पष्टता: 0.8; }। Hotspotted a: होवर {अस्पष्टता: 0; } CSS3 समाधान यह स्पष्ट है कि आप चाहते हैं उनमें से "ओवरले" के बजाय तत्वों के अस्पष्टता स्तर को नियंत्रित करें यह थोड़ा मुश्किल था, लेकिन मैं CSS3 के सक्षम ब्राउज़रों (आ...

javascript - AJAX request in jQuery get function, variable issues -

I'm struggling with a jQuery Ajax call. Please help! var email = patrick@patrick.com; Var password = patrick; $ .get ("server.php", {option: "signup", email: "email", password: "password}", function (req) {alter (req);} That's why I'm sending two variables for server, email and password, but I'm sending signup options in text. How do I send jQuery variables? The text is working, but the email and password are not variable . password and remove quotation marks around emails . {option: "signup", email: email, find Word Password}

java - Regular expression matching whole word OR operator -

I am trying to match the full word from some lines, want to know how to use or in regex For example, if I only have one keyword, it works fine, example regex = ". * \\ b" + "KEYWORD1" + "\\ b. *"; String Reggae = ". * \\ b" + "KEYWORD1 | KEYWORD2 | KEYWORD3" + "\\ b. *"; For (int i = start; i end; i ++) {if (line [i] .i (regex)) {System.out.println ("match"); }} you want: string Regex = ". * \\ b (KEYWORD1 | KEYWORD2 | KEYWORD3) \\ b. *"; Basically, your regex was evaluated in this way: . * \ BKEYWORD1 | KEYWORD2 | KEYWORD3 \ b. * But you want to: . * \ B (KEYWORD1 | KEYWORD2 | KEYWORD3) \ b. * This cooler can help you to analyze the regexes and find such bugs.

layout - Android wrap blocks? -

मुझे निम्न लेआउट चाहिए | ए.ए. बीबीबीबीबीबीबी | सिवाय इसके कि जब वहां पर्याप्त स्थान नहीं होता है जिस स्थिति में मैं चाहता हूं | ए.ए. | | बीबीबीबीबीबीबी | इस मामले में ए चेकबॉक्स है और बी चेकबॉक्स के बगल में TextView है। क्या आप एक लेआउट का सुझाव देते हैं जो इस तरह लपेटने का समर्थन करते हैं? एक लपेट लेआउट ... , एंड्रॉइड डेवलपर्स गूगल समूह में, वे वास्तव में यह पूछ रहे थे दो लोगों ने अपने स्वयं के लेआउट लिखे हैं, इसलिए शायद यह आपकी मदद कर सकता है।

javascript - jQuery text not showing properly using fadeIn -

I searched for this problem but could not find the solution that works for me. I'm trying to do four checkboxs, only three of which can be selected and when the fourth checkbox is selected, the message is faded, which informs the user about the boundary It is the part that fades in the text: $ ('# warning'). FadeIn ('slow', function () {$ (this). Stop (). Text ("(You can not have more than 3 selected options)" settimeout (function () {$ ("# warning") FadeOut (300);}, 2500);}); I could not delay it, so I used setTimeout I do not understand why the fourth checkbox first The time has been clicked, the message immediately shows the Uo what am I doing wrong? And there is a way to do this even with procrastination instead of set-timer? Here The whole The code has a link: Try adding it to the beginning of the script:

javascript - How to set boundary while using XmlHttpRequest and FormData -

Using the form data to post the XMLHPRAEVevo, I am trying to set the threshold correctly: xhr.open ("post", url); Xhr.setRequestHeader ("content-type", "multipart / form-data; limit = ..."); Var formatta = new form data (); FormData.append ("filename", inputId.files [0]); FormData.append (...); Xhr.send (formData); How do I get to set limits in the request title? I was being requested, the border was made in some way in the request. But how can the server be interpreted? Do not just set the content-type manually header and browser automatically "multipart / form-data; Boundary = ... "value. If you are using jQuery, set the contentType option to false: $ Ajax ({url: url, type: 'post', data: form data, process data: wrong, content type: wrong});

java - Fixed Point Numbers -

I got stuck in a project in my project for Java class. We have to create a code that will convert a number into a fixed point number. I got that part right, but where I am stuck, it is in the part of our work of mathematics. We have to split with adding, subtracting, multiple w / (scalar (float) method, and scalar (float) method. Even if I have a code I can say that the second number is the right direction for getting the output and adding two numbers. I , 2); F value; int value 2; public fixed number (Int value) {this.value = value & lt; & lt; 6;} Public fixed number (int integral, float decimal) {this.value = (integral & lt; & lt; 6) + (private) % 1 * 50);} Public Fixed Number (float value) {this.value = ((int) value > + "." + ((Value and reciprocity) * 2); // Return "" + ((value > for each action in your fixed number Class This method will work on the existing number of object numbers ( this ) and passed paramete...

- Where Developers Learn, Share, & Build Careers

I am using a simple Bash script for loop, and I keep the following error: '/ test.sh: line 2: Syntax error near the unexpected token' do '/test.sh: Line 2: `Do Use the following code Eating for dog in dog cat elephant "There are $ {animals}" .... However, when I tried it on other machines. It does not make any problems. Is obtained. Please help. Your test.sh script has Windows-style line end in Shell Line At the end of each, the \ r \ n sees the sequence as a \ r character. Seeing the shell instead of \ r instead of . Since \ r sends the cursor to the beginning of the line, so try to see the quotation marks at the beginning of the line ./ test.sh 2> & Amp; 1 | Cat-A To see what exactly is in the error message To fix your capacitance, filter your test.sh script through something like dos2unix . (Be sure to read the man page first; dos2unix , unlike most text filters, overwrites its input file.) This is a common p...

- Where Developers Learn, Share, & Build Careers

Trying to make a very simple form in Spring / Hibernate, it should add the entry to the database. This is an example that has worked for me, so it is weird that I am getting this error. But this is what it is that is it. The page is with this form: prefix @ taglib uri = "http://java.sun.com/jsp/Jstl/ core" = "C"%> & Lt;% @ taglib uri = "http://www.springframework.org/tags/form" prefix = "form"% & gt; & Lt; Html & gt; & Lt; Head & gt; & Lt; Title & gt; Add Ownership Game & lt; / Title & gt; & Lt; / Head & gt; & Lt; Body & gt; & Lt; H1 & gt; Add ownership game & lt; / H1> & Lt; Br / & gt; & Lt; Br / & gt; & Lt; C: url var = "saveGameeUrl" value = "/ games / save.html" / & gt; & Lt; Form: Form Model Attribute = "Game" method = "Post" action = "$ {saveGameUrl}" & gt; & Lt; Form: label...

haskell - Complex pattern matching with strings -

I have a list of strings that look like this: xs = [ I would like to find only the string in the list, in which two b and any of the characters in a hose after a vowel, "xabbaua" bbaaqvi "," jigfahaha "," utatakaaka "," iabatb "] Is there a better solution to regular expressions like simple matches done? Can someone help me with an example? Thanks. They can also use the classic filter function in combination with the regexp library. Your pattern is very simple that it will work with any regexp library: filter (= ~ " Bibi. [AYUY] ") xs The part of regexps in deceptive Haskell is to use a very powerful general API in the same manner as all those typical libraries And many result types for (boole, string, inter ... ). For the basic uses, you should work most (TM) for your specific need, regex-posix should be enough (and come with the Haschle platform, so it is not necessary to set it normally). So do not forget to im...

javascript - Why is my for-in loop is looping double the size of my array? -

I am using an in-in loop to be an array of two elements, but this is twice Its like looping. / P> I have an example here: This is because the result is GetElementsByTagName is not a simple array - it's a nodelist and it's "live" You can specify the nodelist in the array To turn on, use the "slice" method on the array prototype: Var slideer = [] .slice.call (slide, 0); In addition to this, you should be repeated with a numeric index with the array (or nodist for that node): For (var slideIndex = 0; slideIndex & lt; slideAlline; ++ slideindex) {

mapreduce - Hadoop Task Side Effect File Example -

? Public class I can get an example of how to use work side effect files LongWritable, Text, Text, IntWritable & gt; {Public Zero Map (LongWritable Key, Text Value, OutputCollector & LT; Text, IntWritable> Production, Reporter Correspondent) Map0t MapReduceBase Implants Mapper Expands IOException {IntWritable A = New IntWritable (1); StringTokenizer tokenizer = New StringTokenizer (value.toString (), ","); String x; String wi; String jade; X = tokenizer.nextToken (); Y = tokenizer.nextToken (); Z = tokenizer.nextToken (); Output.collect (new text (x + "+ z), a);}} In a separate folder in HDF, the new text in the above mapper function + + +, I want to write new text. I searched, but could not find any examples from how to use work side effect files. Pls help me. Thanks in advance! is not an optimal approach But a In the way I can think that is open in a file format (in the setup), write in the HDFS, and then map (in clean) the map off. ()...

java - NullPointerException for a 2d Array -

नक्शा = नया बफर्ड इमेज [चौड़ाई] [ऊंचाई]; के लिए (int i = 0; i & lt; height; i ++) {for (int j = 0; j & lt; चौड़ाई; j ++) {if (charMap [j] [i] == पर्वत। इंडेंटफार्म) {if (j + 1 & lt ; चौड़ाई और amp; amp; j-1 & gt; = 0) {if (charMap [j-1] [i]! = पर्वत। इंडेंटिफ़ायर & amp; amp; & amp; amp; charMap [j + 1] [i]! = पर्वत। इंडेंटफार्म) {नक्शा [जे] [आई] = टाइल ग्रिड [1] [10]; }} और {नक्शा [जे] [आई] = टाइल ग्रिड [8] [10]; }}} यह कोड है जिसे मैं सेल के चारों ओर प्रत्येक टाइल को चेक करके 2 डी सर की जांच करने के लिए उपयोग कर रहा हूं लेकिन मुझे लगता है कि किसी को भी सोच रहा हूँ मदद कर सकता है? मुझे संदेह है कि आपको NullPointerException को charMap [j] से प्राप्त हो रहा है [ I] == पर्वत। इंडेंटिफ़ायर लाइन। सुनिश्चित करें कि आप ज्योफ द्वारा सुझाए गए दोनों मानचित्रों के लिए आंतरिक सरणियों को प्रारंभ करते हैं।

search - Lucene.NET and external sites -

We have created a web site that employs Lucene.NET for search. We have recently integrated another web site so that both the websites look like only one site in the form of a user's perspective! (We share the mater page, etc.) We have a problem that two web sites are hosted in different locations. So when Lucene.NET crawls the first web site, it does not take the content of another web site. We want to remove the content from another website and want to put it in the same index file that is created for the first site. How do I get Lucene.NET to crawl an external site? Thank you If you have access to another system from a file system then you If not just by providing the route, if you do not have the index, you will need to write the crawler, you can start using the basic web site using the HTTP WebRequest, or by using the link, once again crawling the site and using it.

javascript - Loading Image into document.body Background -

I am trying to draw an image (in this case, / camera / frame , Which is a well-known JPG), and it is loaded as the backdrop of its document.body . My code is so far: Miscellaneous background image = new image (); BackgroundImage.onload = function () {console.log ("Onload"); Document.body.style.backgroundImage = this.src; }; BackgroundImage.src = 'camera / frame'; Expected as "Onload" , and this prints the entire URL to / camera / frame Still remains Document.body.style.backgroundImage "" . I believe you can remember two things. var path = 'path / to / image.jpg'; Document.body.style.background = 'url (' + path + ')';

wpf - MultiBinding to an ObservableCollection -

I am working in a list of ViewModel with wpf and multibinding. Suppose I have an observation resolution, the same type of view modal is as follows: code: public class ShapeVM {color of public color {Get; Set; } Public string name {get; Set; }} OverviewCollection Size = IBM = New Observational Collection (); ShapeVMs.Add (...); ShapeVMs.Add (...); ShapeVMs.Add (...); ShapeVMs.Add (...); ShapeVMs.Add (...); // In the archive size of 5 sizes I see : & Lt; / UserControl & gt; Is it possible that whenever the chosen color of colored color changes, then the size of the size of the 5 size will automatically change to the selected color of the color box? If I set the DataContext of UserControl to one size or size, then only the sizes of the same size will change. However, at the same time I would like to change 5 SPVM, the color of the ColorBox has changed. Another simple solution is your problem & lt; Combo box x: name = "cbb" grid. Value =...

- Where Developers Learn, Share, & Build Careers

I am using the command line curl program and the interesting thing is that I can not find the timeout parameter for the command line curl Could I read the man page for curls and goals but still could not find one. There are timeout parameters ( CURLOPT_TIMEOUT ) in libcurl , but this is not what I'm looking for. I am looking for the command line curl timeout parameter There is a - maximum-time parameter to open the connection and keep - connect-timeout Maximum time is the connection phase of curl, but none for normal timeout Does anyone know about this parameter? option - maximum-time requires you to do the same: "transfer Maximum time for "you think about it wrong.

ios - Link from App to an iTunes artist through button -

I am trying to link to an artist iTunes 'page' through a button on my project Trying to use the page eg. "Http://itunes.apple.com/au/artist/blink-182/id116851" and it worked once, but it only showed its page in Safari. I would like to direct them to the artist page on the iTunes Store app. I Read the questions and how they can connect to the app on all app stores, but there is nothing about the iTunes store. Here's my code for the button: - (IBAction) Offsite 2 {[UIApplication shared application] Opal: [NSURL URLWithString: @ "http://itunes.apple .com / au / artist / nap-182 / id116851 "]]; } I have tried to add it instead of http: //: // but still has not worked Adding itms instead of http: // should work as it is the only proper way to do it. Even if you leave it as http, it will have to open Safari, then it will have to redirect to iTunes app. And please note that it will work in a simulator, but not in a device.

How to load a javascript file and run a javascript method in java? -

I'm using HTML code to render markdown code on client side. But now I need to do the same thing on the server side to get the exact HTML code which is Java, I have to mark other Java Markdown libraries besides. How can I load the "marked.js" file in java and run javascript code? Marked Pierce (marked. Luxor ("** Hello, World **")); 2 options: See for example, re-presented below and embed Rhino yourself. Then edit it to fit your needs OR: Internal script directly in Java SE6 and above Use Agnine, which comes bundle with Rhino for you. See the runmarked examples below, depending on your requirements. Runscript.Java / * * Licensed under MPL 1.1 / GPL 2.0 * / import org.mozilla.javascript. *; / ** * Ranscript: The simplest example of controlling Rhino execution. * * Collects your logic from the command line, * executes the script, and prints the result. * * @ Author Norris Boyd * / Public Class Random {Public Static Zero Main (St...

c# - How I play my audios with match all text in text box -

स्ट्रिंग पंक्ति = textBox1.Text.ToString (); स्ट्रिंग [] शब्द = लाइन। नमूना (); फोरेच (शब्दों में स्ट्रिंग शब्द) {यदि (शब्द। कंटन ("कन्टेन" ("" ?? ")) {साउंडप्लेयर sndplayr = नया साउंडप्लेयर (विंडोजफ़ॉर्मअप्स 1। प्रॉपर्टीज। संसाधन ._ए); sndplayr.Play (); } अगर (शब्द। कंटन ("शाम"?)) {साउंडप्लेयर sndplayr = नया साउंडप्लेयर (विंडोजफ़ॉर्मअप्स 1। प्रॉपर्टीज। संसाधन। ला); sndplayr.Play (); }}}} मैंने इसे प्रयोग किया था, लेकिन यह केवल पिछले अक्षर ऑडियो पाठ बॉक्स को चलाता है। मैं अन्य वर्णों को भी खेलना चाहता हूं। तो मै क्या कर सकता हूँ। कृपया मेरी मदद करें ............ उपयोग break प्रत्येक के बाद (word.Contains) {...} । और SoundPlayer.Play के बजाय का उपयोग करें। इसके द्वारा आप पिछले ध्वनि समाप्त होने के बाद अगले ध्वनि शुरू कर सकते हैं।

uikit - iOS Storyboarding - practical experience re: multiple developers? -

There is a great way to deal with the storyboard with many view controllers in iOS, and the transition between them. However, I have not been concerned with them yet, when more than one developers change to see the controllers in the same storyboard file, and as a result the controversy tributes Looking at what is happening / P> Has anyone had a more practical experience with this, which is in production of moderate complexity? What is your assessment - is storyboarding ready for "prime time" in this regard? Or is it better suited for single developers or small development parties? (And how many storyboard files are about 'fatigue' such action?) Opinion? A little background: My five-person team, four developers and QAs, have just finished a major project (line of 50k + code) which used significant amount of storyboarding. We have at least 10 different storyboards, many of which are going from depths of 5 or 6 levels in navigation structur...

How to navigate Vim file history -

I am using VIM 7.3. With this plugin, when you type : MRU is seeing a new window with the files you used recently, this is good, but I Want something more specific than that: Let's say I'm working with just one window. I open the file a first time, then file b, then file c. Now when I am in File C, I want to go back to file and then I want to go back to file a keystroke with a back button on browser history and I want to proceed with it to proceed, to file back from file A and to finally file back C, like I'm playing with a browser history. How can I do this? The file A, B, and C are called "buffer" in the VIM language. The ability to jump directly from buffer to buffer what you want, or the ability to select the buffer you want to jump from. It's easy to jump from one buffer to another, with the : b command or its cousin: : b Filename & Lt; CR & gt; Jump directly into buffer by name: b fil In more than one match, if "other...

- Where Developers Learn, Share, & Build Careers

This question can not be answered, but it may be because it is very easy. I'm trying to use an autocomplete based on the Jquery UI and I'm using their remote Jason data source where you type in something and pulls a list of data from a source. However, when you click on Autocomplete, it does not fill the data in your textbox even if they archive the callback. Thinking about how to configure it so that you click AutoComplete, it automatically completes it for you. Try this type of $ (".selector" ). Autocomplete ({select: function (event, ui) {...}}); You can select the value in "ui.item" You want to fill the same text box with the selected value $ (this) .value = ui.item.label The selection inside the function

not able find location on iPhone device -

I've added the code to find the location, it's working on the simulator but it's not working on an iPhone device . I have enabled location services but still it is not working. - (zero) First Time Refresh {CLLocation * Best Location = [[[AppDelegate getAppDelegate] Locator] Best Location]; If (best location! = Null) {NSLog (@ "use best waste"); [Cathartis: [NSARRAOD Objects: [NSNumber Number: Float: Best Location.Cordinate. LETITUDE], [NSNumber Number with Flowst: Best Location. Cordinet. Langality], zero]: @ "fottal": pg_no]; }} Try this code and my work is finished. locationManager = [[CLLocationManager alloc] init]; [Location Manager Set Deliaget: Self]; [Location Manager SetCidid Actuci: KCL LaunchEXAcAst]; [LocationManager startUpdatingLocation]; If the location is updated, define the CLLocationManagerDelegate rep in this class file. - (zero) Location Manager: (CLLocationManager *) Manager update location: (CLLocation *) fro...

windows - C++ createprocess of file in program files -

I am trying to use CreateProcess to run the file located on the user Program file directory, so I am trying to use CSIDL_PROGRAM_FILESX86 , because that specific program will always be in the (x86) folder. My problem is that I can not get it to work, for some reason I have createprocess and CSIDL PROGRAM_FILESX86 How can I find an example to use Can you direct me to such an example? Maybe I should use a different function? Edit : This is my current code: wchar_t * localAppData = 0; SHGetFolderPath (NULL, CSIDL_PROGRAM_FILESX86, 0, NULL, and localAppData); Wstringstream SS; SS & lt; & Lt; Local AppData & lt; & Lt; L "/MyApp/MyExe.exe"; CreateProcess (static_cast & lt; zero * & gt; (LOCALAPPDATA)); I'm getting this for SHGetFolderPath : wchar_t can not change parameter 5 ** to LPWSTR In addition, although I have included sstream in the headers, I am getting these errors: 'wstringstream': unverified identifi...

oracle11g - change database name controlfiles after restore? -

I have restored the database with another database named Database DB 01 It is in STARTED position (Not mounted) and it seems that I can not change the name if it is not mounted, and I can not mount it due to name, how is it possible to solve this problem? I have a full backup from RMAN DB on my existing server which is hosting database db 01 initdb01.ora is ready and configured with db 01 I will be forward What can I do nid did not help! It asks for the database to mount! I can not mount it ORA-01103: The database name in the control file is not 'DB' 'DB 01' Then set DB_N as DB, restart after opening the database, you can change the database name using the NID utility. SQL & gt; Optional system set DB_NAME = DB scope = sphile; Please see the link:

xcode: run application unit tests on device, breakpoint doesn't hit -

I have added an application unit test target, when I run it on the simulator, it works well and I I can debug matters. But when I run it on the device, breakpoint does not hit. So my question is when can I debug application unit tests to run it on the device? My environment: Xcode: 4.3.3 Tools: 5.1.1 me The only problem was that I only approved all of my logs, removed my breakpoint, left the encoded, and then restarted the computer. Then I added the break point. Is this work for you?

What is the cause of undefined ARM Exceptions? -

There is a question when there is undefined instruction .... do we need to obtain current execution instruction from R14_SVC or R14_UNDEF ? . I am currently working on a problem where an undefined command happened. I check R14_SVC instructions found below: 0x46BFD73C cmp r0, # 0x0 0x46BFD740 beq 0x46BFD75C 0x46BFD744 ldr r0,0x46BFE358 So my the notion that mandatory instruction, education Beak 0x46 BFD-75 C happened when executed, one thing that strikes me puzzles, I r14_undef and the instructions were different. 0x46bfd4b8 bx r14 0x46bfd4bc mov to r0, 0x01 0x46bfd4c0 bx r14 Who produces undefined instruction exception? All your answers are in ARM ARM, ARM architecture reference manual. Go to infocenter.arm.com under the reference-guide to find the architecture family you are interested in. Non-Cortex-M series has all these exceptions handled in the same manner when an undefined instruction exception, the following actions are performed: R14_und the next ...

java - ajax - Why jquery replaces "+" with a space (" ")? -

I am having a problem here when I use Ajax to pass my parameter to a controller with a "+" I am changing it from some place. Example, I value = Tom + Jerry + Garfield ajax. When I use System.out.println () in my controller, it displays Tom Jerry Garfield . I tried to use other special characters, I have no problem. Please help in advance thanks. something in GET and POST URL is most likely or via form), the blank space is encoded in the form of "+" (plus) symbols before it gets to the server if you have a normal GET You can see this behavior if you request - you will see something like google.com?q=test+example if you want to pass through a plus symbol an Ajax GET / POST request, you need to "urlencode" it is the URL encoded value for + % 2B . Also note: JavaScript encodercomponent () function can be used, as answered:

- Where Developers Learn, Share, & Build Careers

Is there any way to declare an object's value (I int / Double ) At the announcement time, inside a class announcement? Something like this: class MyClass {MyInt & lt; 1 & gt; My_int; }; Is there a library in it? C + +11, you can provide the default initiator within the definition of a class: struct foo {int a = 11; Fu () = default; // still a trivial class :-)}; In the past, you have to use Constructor Starter: struct bar {int b; Bar (): B (11) {} / Non-trivial constructor :-(}; Usage: Fu x; (Xa == 11 & amp; yb == 11); Perhaps you find the solution for @missletters useful: template & Lt; typename t, t inteveal & gt; straight initial type {typedef T type; static type const initial_value = initVal; // ban type and operator (return); {return x;} type const and operator () const {return X;} initial type (): x (intall) {} private: type x;}; You can add InitializedType & lt; int, 11> n; to get something, it looks lik...

php - Google Docs with Codeigniter -

Now, the newbie question is here. 1 - I would like to know that there is a way to see if there is a Google doc document in a browser using PHP / codeigniter? 2 - Can I edit it directly from that scene? 3 - I found the other using Zend GDTA, but is it limited to spreadsheets only? Can I use the codiginator for this? is one for Google's docs I have not used it, but according to its contents table You can bunch with it Like Robin, it can do this with PHP you can do with CI. Perhaps you can be more clear about what you want to accomplish. It's not quite clear at all.

javascript - How to apply filter to specific datatable -

Is it possible to apply only one data to a fixed filter? I have the following filter function which I am applying for preparing a document, I do not know that this is a proper process, but will be affected by all the datatable filters as a side effect. I would like to influence only $ ('# ProductTable'), but this selector does not seem to have the desired effect. // Filters function in stock $ / $ ('# ProductTable') $ .fn.dataTableExt.afnFiltering.push (function (oSettings, aData, iDataIndex) {var check = $ ('# instock'). (': Check'); var qntStock = 1; var stock call = 3; if (! Check) {back true;} if (checked & amp; adata [stockcall]> qntStock) {return true;} return false;}); Is it possible to apply a filter only to a particular table? Datasetable initialization: var oTable = $ ('# ProductTable'). DotTable ("AO column defects": [{"sClass": "my_class", "aTargets": [4]}], "Botwoth...

Can we set custom permission of a list using features in sharepoint 2010? -

I am working on SharePoint 2010. Creating Features To Automate Custom List Building I have been assigned a task to automatically set custom permissions for each list automatically using the features. I would like to know if this is possible and if yes, here are two things: Custom permit levels have to be created with permissions for contributions This permission and default available permissions have to be set to those lists, which are custom made using the features. Please specify which methods to possibly be overridden if you are thankful in advance for your valuable answers Override the feature With the same type of code as the following: Public override Zero FeatureActivated (SPFeatureReceiverProperties properties) {SPWeb Web = (SPWeb) property. Fetcher Parent; SPList List = web.GetList (web.Url + "/ Lists / MyList"); SPRoleDefinition role def = new SPRoleDefinition (); RoleDef.BasePermissions = SPBasePermissions.DeleteListItems | | SPBZPromission. A...

- Where Developers Learn, Share, & Build Careers

I was checking one of my client's codes and came over it. $ (document futures fu2 () {$ ("# id2") (function)) .bund ('click', function () {});} foo2 ();} ); What they are doing, attach the event handler inside the function and then call that function. How does this differ from the following? $ (document) .ready (function () {$ ("# id1"). Bind ('click', function () {}); $ ("# id2") Bind ('click', function () {});}); This event handlers is directly attached to the $ (document) .ready () function. It works fine in both situations, I was wondering whether there are some performance related issues or something like a work faster or slow or it is a standard way of doing something I know You can do the difference Edit: I would like to give you a an example On failure, there is a need to show a warning with Hello, it is wrong. having had!' You can do these two things: WARNING ('hello, th...

c++ - boost thread notify_all() and sleep() -

बढ़ावा :: condition_variable cond; Boost :: mutex mut; बूल तैयार = झूठे; शून्य उपभोक्ता () {boost :: mutex :: scoped_lock lock (mut); जबकि (तैयार!) {Cond.wait (ताला); }} शून्य उत्पादक () {boost :: mutex :: scoped_lock lock (mut); तैयार = सच; cond.notify_all (); को बढ़ावा देने :: this_thread :: नींद (को बढ़ावा देने :: posix_time :: सेकंड (4)); } उपरोक्त कोड का संदर्भ लें, मैं सूचित करने के बाद वास्तव में निर्माता थ्रेड को 4 सेकंड के लिए सोता हूँ I हालांकि, उपभोक्ता धागे वास्तव में 4 सेकंड के बाद जाग रहे हैं। तो मैं इसके चारों ओर कैसे जा सकता हूं और 4 सेकंड की नींद के बावजूद नोटिस कॉल करने के तुरंत बाद उपभोक्ता धागे को जगाए। अग्रिम धन्यवाद। इसे बढ़ावा :: म्यूट एक्स :: स्कोडा_ लॉक लॉक (मॉट) के साथ करना है ; निर्माता में नींद के बाद गुंजाइश समाप्त हो जाती है, म्यूट एक्स केवल उसके बाद जारी की जाती है। इसके साथ प्रयास करें, अगर आप अपना स्कोडा_लाक रखना चाहते हैं। शून्य उत्पादक () { {Boost :: mutex :: scoped_lock ताला (mut); तैयार = सच; cond.notify_all (); } Boost :: this_thr...

- Where Developers Learn, Share, & Build Careers

Eig or svd because it is available in MATLAB and it is quite fast in MATLAB. I have already tried the following libraries with OpenMP But I do not know that my OpenMP parallel code is much slower than the serial code, maybe something in the library is wrong, or the function random , eig or svd are blocked? I do not know how to remove it, some body may suggest me which is the most compatible mathematical library with OpenMP. I can recommend Intel; Note that it spends money that can affect your decision. I neither know nor care what language it is written in, just as long as it is the API from my chosen language. Offers qualifications. My Fortran is but Binding for C If you look around then you will get many questions from those people whose first (or second or third) OpenMP program is actually slower than their serial versions. Were. See some answers Do not conclude that to make your code fast, there is a magic bullet in the size of ...

java me - how to disable the button using bitmapbuttonfield in advanced ui examples in blackberry -

I am using bitmap button fields in advanced UI instances. By default, any method is unable to disable the button in 5.0 JR, so I've added the code below to disable it and then disabling the functionality of the button, but setchangelistener is not working Which is my problem .. here is my code which I put to close the add button .. check Do I need to change anything in the in-action action method? Public Boolean Disable () {Return is Disabled; } Public Zero Set Disable (Boolean is disabled) {this.isDisable = isDisable; Invalid (); } Public Boolean Focus is Eligible () {Return is Focus & amp; ! IsDisable; } Public Zero Set Focusable (Boolean Focus is Eligible) {this.isFocusable = isFocusable; } Protected Boolean invokeAction (int operation) {if (Is! IsDisable) {fieldChangeNotify (0); } Back true; } Public Boolean set enabled () {return false; } Here's one. In fact, using the field objects on isEditable () objects, because there are some similar concepts du...

algorithm - How to fit the 2D scatter data with a line with C++ -

I used to work with MATLAB, and for the question I raised, I p = polyfit (x, y, 1) To estimate the best fit line for scatter data in the plate I can use, I was wondering which resources I can rely on to implement line fitting algorithm with C ++. I think there are so many algorithms for this topic, and for me, I hope the algorithm should be fast and during this time it can achieve comparative accuracy of the polyphonic function in MATLAB. I suggest coding it from scratch. This is a very simple implementation in C ++. You can code sources directly from your data for intercept and gradients (both code as polyfit ) for at least classes These forms close formulas, which you can easily use the loop. If you were using high degree then I would recommend a matrix library or a more sophisticated algorithm, but for simple linear regression, as you say above it, you need it matrix and linear algebraic routine such problem (my opinion In) will end.

c++ - boost asio read buffer -

My question is, when you do not know the message size, then what is the best way to read boost TCP socket ? It's a sample I've just put in the size of 10. The code is in different headers, but I did not feel the need to include it all /////////// HPP Typedef boost :: asio :: ip :: tcp :: resolver tresolver; Typedef boost :: asio :: ip :: tcp :: resolver :: query TResolverQuery; Typedef boost :: asio :: ip :: tcp :: endpoint tendpoint; Typedef boost :: asio :: ip :: tcp :: socket Tsocket; Typedef boost :: asio :: ip :: tcp :: acceptor Tacceptor; #Fine for 10th //////////// cpp while (true) {cout & lt; & Lt; "Recieve" & lt; & Lt; Endl; Promote: shared_ptr & lt; Tapetector & gt; Acceptor (new boost :: asio :: ip :: tcp :: acceptor (* m_io_service)); Boost :: system :: error_code ec; TResolverQuery query (it-> getHost (), boost :: lexical_cast & lt; std :: string & gt; (this- & gt; getPort ()); TResolver resolver (* m_...

c# - Error Trying Open a File From a Directory -

इस सवाल का पहले से ही एक उत्तर दिया गया है: 3 जवाब मैं एक फाइल खोलने की कोशिश कर रहा हूं, लेकिन मुझे मिली: प्रक्रिया 'एक्स: \ सबग्राफ' प्रॉजेस ए 1.1.वक्ड ' किसी अन्य प्रक्रिया द्वारा उपयोग किया जा रहा है। क्या कोई मदद कर सकता है? स्ट्रिंग सक्रिय डायरेक्टरी = @ "एक्स: \ सबग्राफ \"; स्ट्रिंग [] फ़ाइलें = निर्देशिका। गेटफ़ाइलें (सक्रिय डायरेक्टरी); (फ़ाइल में नाम फ़ाइल स्ट्रिंग) (फाइलस्ट्रीम फ़ाइल = नया फ़ाइल स्ट्रीम (फ़ाइलनाम, फ़ाइल मैोड। खोलें, FileAccess। रीड); .... ....} कृपया फाइलशेयर देकर इसे खोलने का प्रयास करें .Read फ़ाइलस्ट्रीम s2 = नया फ़ाइलस्ट्रीम (नाम, फ़ाइल मैोड। खोलें, फ़ाइल पहुँच। पढ़ें, फ़ाइल शेयर। रीड); फ़ाइलशेयर के लिए MSDN से लें। पढ़ें पढ़ने के लिए फाइल के बाद के उद्घाटन की अनुमति देता है। यदि यह ध्वज निर्दिष्ट नहीं है, तो फ़ाइल को बंद होने तक पढ़ने के लिए फ़ाइल खोलने के लिए कोई भी अनुरोध (इस प्रक्रिया या किसी अन्य प्रक्रिया द्वारा) विफल हो जाएगा। हालांकि, भले ही यह ध्वज निर्दिष्ट हो, फाइल को एक्सेस करने ...

playframework - JUnit NoSuchMethodError: CompilationResult.getErrors() with Play tests -

I run a 1.2.3 test from the command line and am trying to get this error: [Janit] Testcase: Initialization (com.package.MyTest) Error: An error [Juni] org.eclipse.jdt.internal.compiler.CompilationResult.getErrors () [LOG / Eclipse / JDT / Core / compiler / Graded problem; [Junit] java.lang.NoSuchMethodError: org.eclipse.jdt.internal.compiler.CompilationResult.getErrors () [lorgh / eclipse / jdt / core / compiler / classified problem; I tried to add many eclipses and Jasper jars but no luck till today.

jquery - Hide all unactive panels of a JuiAccordion when one is active -

I'm a jquery nut that just fell from the tree I used Yii to create a multi-view each form one The other is independent and everyone can be submitted using AJX. I am using all different forms to capture and save screen space. But I feel that other forms (even in collapsed panels) just come in the way. That's why I want to achieve this: "Whenever it is active, all covered panels are hidden". Activate me before active (Event, UI) or to get (Event, UI) but I do not know The active panel collapses in order to hide inactive panels to use some way to recycle acetian panels, and to show their counterparts again all the fallen panels. In addition, how can I use these events to use Yi? Well, after the research that I'm active (event, UI) or The first active (event, UI) I can do by using Yii ... I was unaware. However, I have found an alternate solution to draw a callback using the html option, here's my CJuiAccordion render code: $ panels = ar...

- Where Developers Learn, Share, & Build Careers

I animated a text field to increase the height and rows on a button click. However during the animation the text moves the text of the field up and down and once the animation is over, it is taken slightly up once, how can I stop it? This is my code: thanks :) function morespace () {var thetxt = document.getElementById (. 'And more') value; Var box = document.forms ["myForm"] ["comment"]; If (box.rose == 3) {$ ("#memail"). Fadeaut (200); $ ('# Comment'). Chetan ({'height': '+ = 235'}, 400, "swing"); Box.rows = 17; Document.getElementById ('more'). InnerHTML = "less space?"; } And {$ ('# comment'). Chetan ({'height': '- = 235'}, 400, "swing"); $ ("# Emailme") fadein (800). Box.rows = 3; Document.getElementById ('more'). InnerHTML = "more space?"; }} & lt; A href = "javascript: morespace ();" Id = "more...

reporting services - How do I find a specific textbox within a SSRS 2008 R2 Report -

I have a big report in Report Builder 3.0. This report includes many taxx and many (800 - 1000) text boxes when I get an error in an expression, the system says that for example I have an error in Textbox 205. Is there an easy way to find "textbox 205"? At the top of the Properties window, drop down box with all items on your report in there you find the object there You can choose more.

- Where Developers Learn, Share, & Build Careers

The query below gives a subset of rows and a line ending at line 20, from the table starting with row 10. Also, to save a query I need to return the number of total rows in the table. This is the best solution I could think, is there any more efficient / elegant ways? Specifically, I do not like the Partition 1 section. Choose from (Count to (*) over (split 1) as [count], [row], * [product]) as 10 and 20 According to [name], [description] in line between line_number (div) = div = "post-text" itemprop = "text"> if you Do not like it, then remove it! Choose from [citation], row_number () more than [[name], [description]) as [number] to [select] from , * From [product]) as between t where between 10 and 20 However, on one side, the query is not optimal. You should count in a traditional way. Choose from [Products] as [count] as [count (*) * Select * X cross join (name of the line), [description]) as [row], * to [product]) In the form of T where t...

- Where Developers Learn, Share, & Build Careers

I have a node. Js is an HTTP application and I am correcting GET requests. I though foo.js? _param = 1234 can not respond properly with requests Edit: I am using service files in this way: app.get ('/ *', function (rick, ridge) {res.sendfile (__ application + req.url, {root: __root});}); __The root path to the root application is. Use request.url , this /foo.js ? Ippar = 123 will look like. Then use ('url') to use. See for details.

Drupal 7: Checkbox label with links in it -

Is it possible to add a simple HTML link to the title / title of the label? I tried the following code: & lt ;? Php $ form ['legal'] ['# type'] = 'checkbox'; $ Form ['legal'] ['# essential'] = true; $ '[' Legal '] [' # Title '] = T (' You are our TOS and Delgals', Array ('@' (& gt; L (T ('Terms of Service'), 'Node / 6') , '@glals' = & gt; L (T ('leagles'), 'node / 7'));? & Gt; But that simulation label (HTML markup " Translated "does not exist): " You have our & lt; a href = "/ node / 6" & gt; Terms of Service & lt; / a & gt; and & lt; A href = "/ node / 7" & gt; legals & lt; / a & gt; * (I've added spaces after the open bracket that it will not be converted to that link I have to do it) Is not it possible to do this? I'm new to Doppel, maybe someone can help me ... t...

ASP.NET and multithreading best practices -

I am working on the asp.net project and yesterday I saw a piece of code that uses the system. threading. The task thread for some new thread runs some SQL statements and logs results. Is not it better to use another approach? For example, a Windows service that does SQL batch. Then what are the best practices for multiplying in Web page bus (ADP.Net)? What are the fair uses of Threads / TPL actions / etc. In a web page? My thoughts when using multi-threading in ASP.NET: ASP.NET Epideman recycles for some reasons like you web. In the period of time to change config or to avoid memory leakage. The thing is that you do not know the exact time of recycle. Long-lasting thread is not suitable because when ASPNET recycles, it will take your thread accordingly. The correct approach of this case should be run through Qi on the background process as long as you mention. To run short or async / await are most appropriate because it does not block the use of HTTP requests ...

free hand lines in Swing - get rid of bug "index out of bound Exception" -

I have to draw a line through a mouse in JFRAM. Here's my method paints Kmpenennt: public waste Comonent paint (Graphics g) {Graphics2D g2d = (Graphics2D) g; If (pointCollection.get (0)! = Null & amp; amp; amp ;; & amp ;; PointCollection.get (pointCollection.size ())! = NULL) {g2d.setPaint (Color.BLUE); G2d.setStroke (new basicstok (1.5f)); G2d.draw (line2d); }} which is based on my implementation of methods which I have interface icons Monishn and Mauslestonr I public void Mausdrag (Mausivent Ajhbet) {PointCollection = New Arreelist & lt; Point & gt; (50); PointCollection.add (arg0.getPoint ()); For (int index = 0; index end lie; point coordinates. Size (index; ++) {line2d = new line 2d. Double (Point Collection. Gate (Index), Point Collection.Gate (Index + 1)); // repaint (); }} The idea coach points than draw lines between them, so I get a curved line is not straight. Can you help me make a logical mistake, which I do? Thank you! You are go...

facebook comments - I need an API key for a personal site, but was given one in conjunction with my company page -

I have to make sure that if I use the AP key for my personal blog, then connect it to my company Will not Page Anyway Can I Make It Sure? I got an API, but it says that it is connected to the company's page which I help in management. Thank you ... Matt This link By clicking on the "+ Create new app" button at the top right and clicking on the button, you need to create a new app for your website. If it mentions the page of your company, then it is probably not that you should use it for your own personal site.

sql - Transposing number from one column into another one where = 0 -

Image
I'm my question is, I work on which I have a query and I There are some values ​​that have 0 which is 0. I want to be able to take a price from last month which is not zero and it is placed in place of zero. Example See item below, sold stock, month, year, level HAVING (item = @ Aitem) year, by month select items, stock, sell, level, month, year From Therefore, I want to take the number 2455 and invest it in the stock where it says 0, take the balance of the previous months to take stock levels of the current months. Is this also possible? You used this question to create the last non zero level per item (for zero level items) can find: SELECT find.item, find.month, find.year, Join Ajingdata results result.level (choose original. Atom, original. message origin. year maximum (artist (artist last. as Varchar) + + - (+ last. month as varchar) + '1' is Ajingdeta linked to the original as the time of day)) previous _dutt AgingData original.item last = Pre...

controller - Kohana 3.1 ORM save() -

Is there a syntactical reason that the following is not executed? $ last_field = ORM :: factory ('fscores'); $ Last_field- & gt; User ID = $ userid; $ Final-Scores- gt; Es1 = $ self_awr; $ Last_field- & gt; Es2 = $ self_mgt; $ Last_field- & gt; ES3 = $ social_ev; $ Final Score- & gt; AS 4 = $ relay_mg; $ Final_scores- & gt; Save (); There is a model called FScore, all the field names are correct. This table is not updating at all $ last_field = ORM :: factory (' FScourse ', $ your_id_for_update); If you do not load it, then save the method will try to create a record: public function save (validation $ validation = zero) {return $ This- & gt; Load ()? $ This- & gt; Update ($ validation): $ this- & gt; Create ($ validation); } In addition, if you know that you are about to update, then exclude it: $ final_scores-> update ();

asp classic - Get the Monday of this week where a week is Mon - Sun (VBScript) -

In VBScript, how can I get to the current week on Monday, assuming one week, Mon-Sun and Not Sun-Satin? The following code is Sun-Saturn on Monday, so it is close but not quite right: get a private function Monday (D) getMonday = DATEADD ("d", 2 - WEEKDAY (d), D) Last Function How can I do this without changing the LCID settings? takes the second argument to specify the first day of the first week of the week. Therefore date ("D", 1 - V (D, 2), d) I did not test that my argument is correct but the technique will work for you.

android - How to pass a Bundle to a Fragment -

First of all I want to say that I hope everyone on the east coast is fine after Sandy. I was lucky in it, though I live in New York City, I never lost power, my thoughts go to those who were not fortunate. Now that I am working after three days, I need some help with pieces. I am trying to cross a bundle and it is not working. I know that I have a simple piece setup right, because if I do not try to cross the bundle, then it works fine. So here is my activity where I pass the bundle: ITEMClick (adapterview ; Gt; parent, view view, integer position, long ID) on public zero = New intent (getApplicationContext (), Com.MyProject.project.MyList.class); Bundle data bond = new bundle (); String selected V = value [position]; DataBundle.putString ("Level", selectedValue); Choice.putExtras (dataBundle); StartActivity (option); } Now the bundle is without my activity. It works fine: Operated on Public Zero (bundled saved instenstate) {super.onActivityCreated (SavedInstanceStat...

flash - Login sometimes does not work across tabs/windows in django -

I want to log in from a secondary window to a Django website. That is, I have a flash file connecting to a DNS server. On choosing a login in the Flash file, the second window opens (i.e. Facebook Login Popup). The Facebook client-based login flow is used to log in to the user and the user_id received by it is sent to the DNS server to identify and log in. At this level I have verified that at this level, certify and the login function of diego.content.ath is called and user.is_authenticated () gives correct returns. But on the client side in the original window containing the Flash file, the user sometimes remains AnonymouseUser or not, at other times, the user is identified correctly. On checking the database entries for the current sessions, I see that when the user is not logged in, two sessions are present, whereas when a user is logged in, then there is only one session . I am not sure why an extra session is created and how it is addressed. Note - I am using a custom...

excel - I need help fixing vba macro -

After I have a dataset that is made up of a number of rows and columns such as a1 B1A2B2B3A3A4B4A5 B5 I want to type the code that loop through cells once it's (A2-A1) One column in the calculation of an index / (A2 + A1). I want to save the result to Sheet 2. I have used this code but I am getting an error where it breaks on where I am trying to save the result for Sheet2 I help Need to fix this code:. Sub-combination () dim the range as jCell Range dimmer in the form of Kcell in each JCell ActiveSheet.UsedRange result in ActiveSheet.UsedRange results for each Kcell = Double Sheet2.Cells.Clear (JCell.Value - kCell.Value) / (jCell.Value + kCell.Value) Sheet2.Cell ("Result"). Value = Sheet1.Cell ("Result"). Price Next Kcell Next jCell End Sub Thanks in advance One is that I have never seen the syntax like this:. Sheet2.Cell ("Result") value = Sheet1.Cell ("Result".). The second is that string type data eg "A1...

java - When Should I synchronize the methods of my class? -

I was thinking about creating a square (like string, stringbuff, etc.). It can be used in single-threaded as well as in multi-threaded environments. I do not know what kind of environment a developer can use The worst situation I suspect, I can synchronize. However, 1. Synchronization takes a performance hit 2. Without synchronization, this thread is not secure. So, I have two options. Skip to unsynchronize the class - but the developer of this class needs to be synchronized whenever appropriate. Perform all synced methods - and hit one performance. I have seen many people (if not all, for example, array lists on vectors) classes in Java have evolved to take first approach or To keep it in any other way, use "public synchronized waste times" ("public" on "public") should be zero times () "Only when I know to ensure That time is used in a multi-threaded environment. Edit Therefore, clearly I have used the word "utility clas...

Checkbox, PHP & SQL -

I have a checkbox in my code that tells the user that the record has been or not done . When the user searches a record in the database, the recorded record appears with the current record status ( complete or not ). If the checkbox is not checked then it means that the record is not not , so I am trying to install a checkbox on one side of the record state so that the user After checking the checked checkbox checked on the check box, the value is sent to DB that the new status of the record is done How can I do this when the following example code: (W Ryokta are shown after a search using a form) & lt ;? Php if (! Isset ($ _ POST ['search'])) {? & Gt; & Lt ;? Php} other {$ to = trim ($ _ POST ['old']); $ = = Trim ($ _ POST ['NEW']); $ Position = release ($ _ POST ['status'])? "And condition = 'full':" and condition = 'no' ''; $ Connection = mysql_pconnect ("HOST", "USER",...

- Where Developers Learn, Share, & Build Careers

The company's site is written in PHP, but runs on IIS7. Status: An unverified user follows a bookmark or manually enters the URL of a page. The user should be redirected to sign in, if they are not already. Current status This works, but only for PHP pages. Each page contains a code that checks for the active session and if no one is found, the user is taken to the sign in page. The problem that needs to be addressed is: If the user enters a bookmark or a URL of a property manually that is not a page (an icon in the page, an excel Document, an image, a PDF, etc.), we want the user to be redirected to sign in. / P> How do we check an active session when the user accesses non-PHP assets directly? In other words, how do we check an active session for the URL like this: ? Not sure about IIS, can help with Apache, but uh .. I The social network address that links to its fixed assets via PHP. Therefore, an image link will not be direct, but: /getImage.php?id...

How to convert array with ranges in to alone array in ruby -

मेरे पास कुछ सरणी है & gt; & gt; A = ["a..c", "0..2"] = & gt; ["A..c", "0..2"] मुझे इस सरणी को अन्य सरणी में बदलने की आवश्यकता है & gt; & gt; बी = ("a" .. "c")। To_a + (0..2) .to_a = & gt; ["A", "b", "c", 0, 1, 2] मैं यह कैसे कर सकता हूं? इसके बारे में क्या? a = ["a .. C "," 0..2 "] b = a.map {| e | रेंज.न्यू (* (ई)। एसप्लीट ('..')) .to_a}। फ़्लैटन नहीं flat_map उपयोग किया जाता है, इसलिए यह सभी पर समान कार्य करता है संस्करण के रूप में ठीक से वर्णित है, यह संस्करण पूर्णांक में परिवर्तित नहीं होता है। यहां एक संस्करण है जो: b = a मानचित्र करो | ई | रेंज.न्यू (* (ई) .split ('..')। Map {| c | c = ~ / \ A \ d + \ z /? C.to_i: c}) .to_a end.flatten इसे कार्रवाई में देखें

Where can I find Android's default icons? -

संभव डुप्लिकेट: डिफ़ॉल्ट एंड्रॉइड मेनू आइकन (जैसे ताज़ा करें या लिखें) का नाम कैसे मिल सकता है? नीचे दिए गए कोड में यह बताए त्रुटि है कि संसाधन सार्वजनिक नहीं है & Lt; item android: id = "@ + आईडी / प्राथमिकता" एंड्रॉइड: icon = "@ android: drawable / ic_menu_refresh" एंड्रॉइड: showAsAction = "ifRoom" / & gt; \ path-to-your-android-sdk- फ़ोल्डर \ प्लेटफ़ॉर्म \ android- Xx \ data \ res

android - How to show contents in same way on different Mobile Platform? -

I hope to show a dynamic generating HTML page on my mobile application. This HTML file is structured in fixed format. Include forms, images, and buttons However, when it comes to various mobile platforms, such as iOS and Android and also separate cell phones, such as sumsung or other company from Android Display results are different, some of them are very bad. This problem is heavy for the Android system because there are many different companies using this system. For now I am using a method when the user applies the application, then the application cell phone model user use. And the server side will choose the right HTML template for that phone. This means that I have to write an HTML template for every phone. These days, consider the mounting models of phones, I do not think this is a wise idea. I hope if someone can face a solution to solve this problem. Either a solution that will make HTML templates based on the user's cell phone model, or a universal way of creatin...

- Where Developers Learn, Share, & Build Careers

I found this exception: 'Microsoft.ACE.OLEDB.12.0' provider is not registered on the local machine. I was trying to add Excel 2010 files with OleDBConnection. I have Windows 7 64bit and Office 2010 32bit. I have tried to redistribute Microsoft Access Database Engine 2010, which gives the following suggestions: I also suggested: any of them Does not work for me anybody can help? Here's my code: String Connection String = "Provider = Microsoft.ACE.OLEDB.12.0; Data Source = D: \ Sample .xlsx; Mode = Share Disclaimer; Expanded Properties = \" HDR = Yes; \ "; Jet ALLDB: Engine Type = 37"; OLEDBox Connection = New OddBack Connection (Connection String); Try {connection.Open (); ODDB Commands Command = new OLEDB Commands ("SELECT * FROM [Sheet 1 $]", Connection); OleDbDataAdapter Adapter = New OleDbDataAdapter (); Adapter.SelectCommand = Order; Dataset ds = new dataset (); Adapter.fill (ds); Ds.Tables [0] .Rows.Count.Dump (); } Hold (...

c# - Trying to connect to excel 2010 doesn't work -

I found this exception: 'Microsoft.ACE.OLEDB.12.0' provider is not registered on the local machine. I was trying to add Excel 2010 files with OleDBConnection. I have Windows 7 64bit and Office 2010 32bit. I have tried to redistribute Microsoft Access Database Engine 2010, which gives the following suggestions: I also suggested: any of them Does not work for me anybody can help? Here is my code: String Connection String = "Provider = Microsoft.ACE.OLEDB.12.0; Data Source = D: \ Sample .xlsx; Mode = Share Disclaimer; Expanded Properties = \" HDR = Yes; \ "; Jet ALLDB: Engine Type = 37"; OLEDBox Connection = New OddBack Connection (Connection String); Try {connection.Open (); ODDB Commands Command = new OLEDB Commands ("SELECT * FROM [Sheet 1 $]", Connection); OleDbDataAdapter Adapter = New OleDbDataAdapter (); Adapter.SelectCommand = Order; Dataset ds = new dataset (); Adapter.fill (ds); Ds.Tables [0] .Rows.Count.Dump (); } Hold (exc...