Posts

Showing posts from August, 2010

Python When to use and when != operator -

इस सवाल का पहले से ही एक उत्तर है: 3 जवाब मुझे बहुत कुछ नहीं मिला वेब पर जानकारी (या हो सकता है एक पदावनत है?) क्या दूसरे के ऊपर एक ऑपरेटर के लिए उपयोग प्राथमिकता / मामला है? यह वेब पर कुछ डॉक्स से दिखता है कि वे समान हैं ... किसी भी सुझाव के लिए धन्यवाद। हमेशा"! = "फ़ॉर्म का उपयोग करें। दो पायथन 2 और पिछले संस्करणों के बराबर हैं, क्योंकि भाषाएं मूल पायथन से प्राप्त हुई हैं (बुनियादी, एबीसी और सी) - लेकिन तब से (1 99 1), "! =" फॉर्म को पसंद किया गया था, और "& lt; & gt;" चूंकि सबसे ज़रूरी भाषाओं में इस ऑपरेटर का इस्तेमाल होता है (उसी में "सी" में प्रयुक्त होता है) और उसी ऑपरेशन के दो अलग-अलग तरीकों से बचने के लिए। यह ध्यान रखना दिलचस्प है कि "& lt; & gt; " नोट को पदावनत कर दिया गया है और वह पायथन 3 में बिल्कुल मान्य नहीं है, इसलिए "! =" ऑपरेटर आधिकारिक है जिसे नए कोड में उपयोग किया जाता है।

c# - Clear all TextBox in Window -

I'm programming in C # (WPF) I have a lot of nested controls I want to clear the cleaner of my text box control which is in my application. It is very difficult to reach them by their name. Public Zero Clear All (Control C) {If (C Text Box) is (Text Box) c). Clear (); Return; } Leading (control child Gatechild (C)) {Clear all (children); }} The VisualTreeHelper class comes easy. You can use it like this: Fixed public Zero TraverseVisualTree (view myMainWindow) {int childrenCount = VisualTreeHelper.GetChildrenCount (myMainWindow); For (int i = 0; i & lt; kidsCount; i ++) {var visualchild = (Visual) VisualTreeHelper.GetChild (myMainWindow, i); If (Visual Child Text Box) {Text Box TB = (Text Box) VisualBold; tb.Clear (); } TraverseVisualTree (Visual Child); }}

matlab - Converting code to take RGB image instead of grayscale -

I'm trying to convert this fisheye image into a rectangular form, but the code is only going to perform this operation on a grayscale image Enabled. Does anyone help in converting code to operation on RGB image? The code is as follows: EDIT: I have updated the code to include the projection functionality in each color channel, but these output images seem to be defective. See picture below function imP = FISHCOLOR (IMR) rMin = 0.1; RMax = 1; [MR, NR, DR] = size (IMR); % Size of rectangular image xRc = (Shree + 1) / 2; % Co-coordinate with the center of the image yRc = (NR + 1) / 2; Sx = (Mr. -1) / 2; % Scale factor sy = (NR-1) / 2; M = size (infant mortality, 1); N = size (infant mortality, 2); Dr. = (Rmx - RMIN) / (M-1); Dth = 2 * pi / N; R = rMin: Dr. rMin + (M1) * Dr; Th = (0: DTH: (N-1) * DTH); [R, th] = meshgrid (R, th); . X = r * because (th); . Y = R * sin (th); XR = x * sx + xRc; YR = y * sy + yRc; IMP = Nil (M, N); Start the last matrix for% k = 1: 3% color T = IM...

ember.js - Multiple models to Ember route -

मेरे पास प्रिंटर की सूची है GradingX.PrintersRoute = Ember.Route.extend ( {मॉडल: फ़ंक्शन () {var printerList = Em.A (); // Ember। $ .getJSON ("http: // localhost / printers")। तब (फ़ंक्शन (डेटा) {data.forEach (कार्य (आइटम) {PrinterList.addObject (item);}), फ़ंक्शन () {चेतावनी ("$। GetJSON विफल!");};}); Return printerList;},}); कि मैं अपने शीर्ष लेख से उपयोग करने की कोशिश कर रहा हूं GradingX.HeaderRoute = Ember.Route.extend ({मॉडल: function () {// Console.log ("हेडर मॉडल मार्ग में परीक्षण"); // रिटर्न एम्बर.ऑब्जेक्ट.क्रेडिट ({रिटर्न एम्बर। आरएसवीपी। होश ({प्रिंटर: यहां क्या है ?, अन्य ऑब्जेक्ट्स: अधिक स्टफ यहां}};},}) ; मैं यहां उत्तर का पालन करने की कोशिश कर रहा हूं, लेकिन जब से मैं एम्बर-डाटा के माध्यम से प्रवेश नहीं कर रहा हूं, मुझे नहीं लगता कि यह। Store.find ('printers') जा रहा है मुझे पाने के लिए मुझे क्या चाहिए। मुझे कुछ याद आ रहा है। कृपया मदद! आरएसवीपी। होश कुंजी के साथ एक ऑब्जेक्ट की अपेक्षा करता है और मूल्यों के र...

Why is IAppBuilder undefined after updating to latest SignalR libraries through NuGet? -

I'm between 4.5 4.5 and migrating to Signal 2.x and I'm moving around some issues / confusions. DLL I have installed SignalR's latest verion through Nuget with the following: Install package- Microsoft.AspNet.SignalR I've added the startup class described in the migration. However, IAppBuilder started coming up as unresolved. I checked on stackoverflow and was used to run a fixed solution: Owen-restore update package I did this and the error went away. However, the app has returned to include references to Owen 1.0. I'm a little confused here. Is not this struggle with the latest / greatest? Should I draw the IAppBuilder definition from a different context? Thank you, JB signal R 2.0.3 still Owin.dll version Depends on 1.0.0.0, as the signal is since R 1.0.0. The only thing defined in the Owin.dll is the IAppBuilder interface, which has not been changed since it was introduced if you see the Newsletter Gallery then you will see that it has o...

Import .db file into R -

I am trying to import the .db file using the code given below, which is similar to the example with the package And it says that the function can not be found. Any ideas on how to import any .db file? Library (project template) db.reader ('c3.db', '/ users / xxx / documents / c3.db', 'data') & gt; db.reader ('c3.db', '/ user / xxx / desktop /', 'data') Error: The function "db.reader" could not be found I have not installed / installed this package, although it seems that this function is not exported and after that the user is not available. Generated by: Roxanne 2 (4.0.0): NAMESPACE file from: Exporting handheld (cache) export (cache. Project) export (edit project (export) (Export) (Export) (Export) export (translate.dcf) After all, example ## has not run: db.reader ('example.db', 'data function, though db.reader You can try using directly (from workplace), but is the best app...

php - Symfony2 Assigning User Roles During Registration -

I have followed Symfony2 and done entities, databases and forms while doing my job The problem is that in my database I did not have any users, so I completed these steps, but in my opinion it should be better connected. Registration docs did not say anything about roles I think that the best time to play an ideal role will be during user registration. This is what I am doing, but I have lost some degree of how to do that there is no way to add roles to the user unit consideration. My question is how do I specify a default role ("ROLE_USER") for users during registration, which is stored in the database? The relevant code: User unit: Registration and login actions: SignupCreature is where I suspect that having a magic Should or perhaps the user code of the __ generation () method I just got lost in order to do this correctly. Two things first you need to create an accessory approach for both classes. This means: / ** * ... * / class TblUser {// ... publi...

Convert XML response to array in PHP -

I'm getting XML from an API request and want to know that only & lt; Soap: How to turn on the body & gt; to by Any information that tells me in the right direction will be great! Thanks in advance. / P> Sample XML: & lt ;? Xml version = "1.0" encoding = "UTF-8"? & Gt; & Lt; Soap: envelope xmlns: soap = "http://schemas.xmlsoap.org/soap/envelope/" xmlns: wsa = "http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns: wsse = "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns: wsu = "http: //docs.oasis-open.org. wss / 2004/01 / oasis-200401-wss-wssecurity- utility.1.0.xsd "xmlns: xsd =" http://www.w3.org/2001/XMLSchema "xmlns: xsi =" http: // www. w3.org/2001/XMLSchema-instance"> & Lt; Soap: Header & gt; & Lt; Wsa: Action & gt; Http: //www.urlhere.com/< / wsa: Action & gt; & Lt; Wsa: MessageId & gt...

Set a Windows exe icon from Linux (without Wine ?) -

I'm trying to set up a Windows executable icon in Linux with a bass script, but I can not find anything relevant I have found this tool, but I think you can extract the .ico file from executable (then convert it to PNG), or vice versa: it takes PNG And it makes one. Iico but it can not write new ICO in executable Am I right or wrong ? What should I do? By the way, I have found, but they do not fully answer the question ... Thank you! You have to use it in a way. Therefore, install wine download resource hacker Resource Hacker with Wine (or wine32 if you are on 64 bit): $ wine32 /path/to/reshack_setup.exe Change icon: $ wine32 Wine / drive_c / program \ files / resources / hacker / reshacker.exe -addwriter "oldexe.exe, new.exe, new.ico, ICONGROUP, MAINICON, 0" Code> .exe files for me. It also failed on one, why not find me Hope it helps!

asp.net - NUnit test case for mvc login -

What type of test case can we write for the following login controller in asp.net mvc [HttpPost] [AllowAnonymous] [ValidateAntiForgeryToken] public ActionResult Login (LoginModel model, string returnUrl) {if (ModelState.IsValid & amp; & amp; WebSecurity.Login (model.UserName, model.PasswordpersistCookie: model.RememberMe )) {Return RedirectToLocal (returnUrl); } ModelState.AddModelError ("", "The username or password provided is incorrect."); See Return (Model); } 1) You can verify that WebSecurity.Login with the correct parameters Is called when the model is valid 2) When WebSecurity.Login returns the correct returns, you can verify that you are redirected to reutnrUrl 3) if If the model is not valid then you can verify that your error in ModelState and refer back to the Result. You have to reactivate the website to call the inquiries, you have to duplicate it. Probably have to use dependency injection technology. Example 1) You have...

css - Responsive header with dropdown menu: height and overflow -

I need a sensitive header, which changes the height based on the screen resolution and the wrapping of the elements. As the screen shrinks, the menu wraps under my logo (which is desirable) and the height of the header is rising. Obviously, I have set the properties of the header for height: auto and overflow: hidden and they will do the trick. The problem is: I'm using a dropdown menu height: auto and overflow: hidden instead of a fixed height for the header Using the dropdown item well ... is definitely hidden. My question is now: what is the best way to solve it? Prefer the solution with pure CSS. Use a clear-fix instead of overflow hides, you want to clear the float, and actually Read about this here: & lt; Header class = "clear-right" & gt; & Lt; / Header & gt; If you use a preprocessor, then there are more elegant ways. . cleaner-fix: first, .clear-fix: {content: ""; / * 1 * / display: table; / * 2 * /}. Clean...

c# - Install VSTO plugin from a URL -

Image
I am trying to install my Outlook plugin to my users. I have Visual Studio in a local folder and I am uploading the publication folder to a local folder and then uploading the setup.exe, .vsto file and application file via FTP to the InstallOutlookPlugin folder on the website. I've never done this before. My question is, how will users be able to install it? One option is to access, download and run the setup.exe file, but their firewalls will be blocked most often and they will not be able to run the file. The project is signed by my own certificate. As far as I know, this is a limitation on clickon deployment. The user must download setup.exe and run it You can help by using signtool by signing a setup.exe with the same certificate: signtool sign / f "certificate.pfx" / p "password" "setup.exe " If they run into security issues, then they must install the installation URL in Internet Explorer> Internet Options & gt; Securi...

Visual C# "Unable to Open Project" -

I've been using Microsoft Visual C # 2008 Express Edition for the last two years. I made some slight changes in a project last night and now we want to open this project and make some changes. From the blue I am receiving the following message while trying to load the project: Unable to read the project file 'myfile.csproj', file or assembly 'sorttbls.nlp' or a load Could not be the wrong function of its dependency. (Exception from HRESULT: 0x80070001) The above message prevents me from reaching any part of the project. (I am able to load the source code in Notepad so at least do not worry about losing the code altogether) This error is not associated with any recent changes in my code because I run this error What happens when a simple console opens the project or tries to create a new project? (Was my computer infected with a virus?) How do I get it? Thank you! Maybe you can use the following source According to which you can uninstall and insta...

php - Not picking up a variable within an if statement. -

यदि ($ _ फ़ाइलें ['fileField'] ['tmp_name']! = "") {$ Newname = "$ fid.jpg"; गूंज $ newname; move_uploaded_file ($ _ फ़ाइलें [ 'fileField'] [ 'tmp_name'], "छवियों / कवर / $ NewName"); } मैं अपडेट करने के लिए एक छवि प्राप्त करने का प्रयास कर रहा हूं, हालांकि आईडी वैरिएबल पहचाना नहीं जा रहा है नोटिस: अपरिभाषित चर: targetID में D: \ shares \ छात्र \ वेब \ सॉफ्ट20171 \ N0431485 \ फिल्म पर समय - अपडेट किया गया \ update_movie.php लाइन 125 पर '.jpg चेतावनी: move_uploaded_file (images / covers /' नोटिफिकेशन : अनिवार्य चर: targetID में डी: \ शेयरों \ छात्र \ वेब \ सॉफ्ट20171 \ N0431485 \ फिल्म पर समय - अपडेट किया गया \ update_movie.php लाइन 125 '.jpg): स्ट्रीम को खोलने में विफल: डी: \ शेयर \ विद्यार्थी \ वेब \ सॉफ्ट20171 \ N0431485 \ फिल्म पर अमान्य तर्क - समय पर अपडेट किया गया \ update_movie.php पंक्ति 64 पर चेतावनी: move_uploaded_file (): 'C: \ WINDOWS \ Temp \ php372.tmp' से 'चित्र /...

Can I do max filter on a sub_blocks with matlab -

For example, I have a 4x4 matrix, I want to divide it into a maximum of 2x2 sub_regions. And maximize the sub-limit 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16 \ 6/6, 6, 8, 8, 6, 8, 8, 14, 14, 16, 16, 14, 14, 16, 16 Do you need this suite? (Suppose your data is in the matrix, which is called M ) & gt; & Gt; Cellphone (@ (x) max (x), matcelcel (m, [2 2], [2 2])) ans = 6 8 14 16 edit Do: You may also be able to get your desired output: & gt; & Gt; Cron (selphon (@ (x) max (x), matcelcells (m, [2 2], [2 2]), ones (2)) a = 6 6 8 8 6 6 8 8 14 14 14 16 16 14 14 16 16

I clicked some stupid "feature" in Eclipse and now my enviroment is screwed up -

Image
यह वही है जो ऐसा दिखता है: और जब मैं कोडिंग टैब में एक फाइल पर डबल क्लिक करता हूं (जो आपको लगता होगा कि कोडिंग विंडो को पूर्ण स्क्रीन होगा) , यह इस में बदल जाता है: मैं यह भी जोड़ूंगा कि जब मैं ग्रहण करता हूं और ग्रहण फिर से खोलता हूं, तो अभी भी बाहर निकल जाता है। मैं " संपादित करें: मुझे यह जोड़ते हैं कि ऐसा लगता है: जब मैं पहली बार इलक्लिप्स को लोड करता हूं, लेकिन फिर जब मैं पूर्ण स्क्रीन को एक कोडिंग टैब और फिर यह पूरी तरह से वापस आ जाता है जैसे कि पहली छवि में सभी बाहर निकल आती है। कोई भी? मैं यह कैसे अक्षम कर सकता हूँ? मैंने पहली बार सीखने में कुछ समय पहले ही किया था ग्रहण, कार्यक्षेत्र पर बहुत सी चीजें हैं मुझे पता नहीं है कि मैंने इसे गड़बड़ करने के लिए क्लिक किया था। मैंने पाया कि: विंडो मेनू - & gt; परिप्रेक्ष्य रीसेट करें .. हालांकि यह तय है।

asp.net - asp button and modal -

तो मेरे पास यह बटन है: & lt; asp: बटन आईडी = "बटन" "मेटाल" डेटा-लक्ष्य = "# myModal" & gt; & lt; / asp: बटन & gt; लेकिन तब बटन क्लिक करने से OnClick ईवेंट को टॉगल नहीं किया जाएगा, यह केवल मॉडल दिखाएगा। लेकिन अगर मैं डेटा-टॉगल = "मोडल" डेटा-लक्ष्य = "# मायमॉडल" को हटा देता हूं। Onclick घटना काम करेंगे, लेकिन जाहिर है कि मॉडल अब पॉपअप नहीं होगा। कृपया मदद करें धन्यवाद संभवतः आपके मॉडल को नियंत्रित करने वाली स्क्रिप्ट बटन के नियमित कार्यों को बंद कर देती है यह पोस्टिंग वापस कर रहा है जो ईवेंट हैंडलर को निकाल दिया जाएगा। क्लाइंट साइड और सर्वर साइड को फायर करने के लिए आपको वापस पोस्ट करना होगा और फिर पृष्ठ पुनः लोड होने पर मॉडल को प्रदर्शित करना होगा।

svn check out a sub-folder in repository -

I'm having problems checking the subfolders of a repository named 'PRO'. I have demolition 1.7 installed and in repo / Home / svn / pro root @ Ubuntu: / home / svn / proroot @ Ubuntu: / home / svn / pro # dir conf in db format hook locks README.txt source type uru YouTube: / home / svn / proroot @ Ubuntu: / home / svn / pro # sudo svn co file: // localhost / home / svn / pro / src / home / barry / testress svn: E170000: URL 'file: // Localhost / home / svn / pro / src 'root @Ubunt : / Home / svn / proroot @ubuntu does not exist: / home / svn / pro # exit exit Any ideas why I can not check subfolder pro / src ? I can see that I can not check the subfolder pro / src ? Because this folder is physical folder and is not part of the repository. Find the real repository tree by using the code> - The type of repository URL: For the repository / home / svn / pro in this svn ls [-R ] Will be the file: /// home / svn / pro

c++ - How to copy vector to map in STL in a graceful way -

Currently, I have some data in vector. Currently, I want to convert the vector to a map. So it will be arranged in the form of below (N is also the number) Vector: element 1, element 2, element 3, element 4 ... element N. map: key 1: element 1, value1: element 2, key 2: Element 3 value 2: element 4 ... Currently, I just show vector, there is no other great way to do this. C ++ 11 priority is thanks. for (int x = 0; x & lt; vec.size ();) {map [vec [x]] = vec [x + 1]; X + = 2; } Your code works (keeping in mind the suggestion of Michael J. There is a strange number not the process of the last element). There is a small improvement that can be made. The call creates an entry using the default constructor of the map value_type , and then the cost-per-assignment operator value to vec [X + 1] . You can avoid the counter-assignment step by doing this: the_map.insert (std :: make_pair (vec [x], vec [x + 1]) ); I think it ends up making a map entry copy from...

logging - Why location of log File specified in File appender is not being changed? -

I am using log4j.xml in weblogic, I have the file param FileAppender as shown below: & lt ;? Xml version = "1.0" encoding = "ISO-8859-1" & gt; & Lt ;! DOCTYPE log4j: Configuration system "log4j.dtd" & gt; & Lt; log4j: Configuration & gt; & Lt; Appender Name = "file1" class = "org.apache.log4j.FileAppender" & gt; & Lt; Param name = "file" value = "D: \ ReadText_File \ info.txt" /> & Lt; Param name = "append" value = "true" /> & Lt; Layout class = "org.apache.log4j.PatternLayout" & gt; & Lt; param name = "ConversionPattern" value = "% d {ISO8601}% -5p [% c {1}] -% l -% m% n" / & gt; & Lt; / Layout & gt; & Lt; Filter class = "org.apache.log4j.varia.LevelMatchFilter" & gt; & Lt; Param name = "LevelToMatch" value = "INFO" /> & Lt; Param name = ...

c# - How to Redirect to another Page in another solution in asp.net? -

परिदृश्य Project1 webform1.aspx Project2 webform2.aspx वेबफ़ॉर्म 1 बटन पर क्लिक करने पर उसे प्रतिसाद। रीडायरेक्ट () वेबफ़ॉर्म 2 पर मैंने संदर्भ विधानसभा को जोड़ दिया है लेकिन पता नहीं कैसे हस्तांतरित किया जा सकता है। अगर मैं प्रतिक्रिया दें। रीडायरेक्ट ("~ / Webform2.aspx"); // लाइन अपवाद पेज फेंक देगा कैसे इस को हल करने के लिए? दोनों परियोजनाएं दो भिन्न सर्वरों के रूप में चलेंगी विकास करते समय, वे सबसे अधिक एक localhost के साथ एक पोर्ट नंबर के बाद शुरू करते हैं अब आपका Project1 Project2 के बारे में जानकारी नहीं है। इसका मतलब है कि आपको रिस्पांस। रीडायरेक्ट कॉल में मैन्युअल रूप से पूर्ण यूआरएल देना होगा। कहें कि आपका प्रोजेक्ट 2 http: // localhost: 4545 पर होस्ट किया गया है। 2 वेब फॉर्म का यूआरएल http: // localhost: 4545 / webform2.aspx हो जाएगा। इसलिए आपकी प्रतिक्रिया.डायरेफ़ कॉल होगा Response.Redirect ( "http: // localhost: 4545 / Webform2.aspx"); इसलिए आपको इसे मैन्युअल रूप से हार्ड-कोड करना होगा अन्यथा आप ...

linux - Extract tar.gz file using Perl script -

I am doing a Perl script about removing the tar.gz file with the specified location, but when I use this code Will run Use strict; Use warnings; Archive :: Tar; File :: spec :: use qw (catdir); My $ input = "sample.tar.gz"; My $ tar = archive :: wire-> new ($ input); My @ files = $ tar- & gt; List_files; My $ output_dir = '/ var'; My child $ $ extracted_file = catdir ($ output_dir, $ file) for my $ file (@file); $ Tar- & gt; extract_file ($ file, $ extracted_file); If ($ file = ~ /.rpm.z/ /..sh\z//...gz\z/) {My $ FH, '& lt;', $ $ extracted_file open or {Warn "$ 0 : Can not open file $ file: $! "; the upcoming }; While (defined (my $ line = gt;)) {do something with line $} about $ FH; }} The file name of my script is "extract.pl", so I get this error when I run this script .extra.pl : Line 1: Usage: Command not found ./extract.pl: Line 2: Use: Command not found ./extract.pl: Line 4: Use: Command not found ./extra...

kernel - Analyzing RAM dump in Android -

In the case of kernel panic in Android, we dump all the RAM data into a file. In this case, the RAM addresses are physical addresses. Besides, is there any swap area in Android? The swap concept is in the Linux OS. The program running in user mode should not cause the panic of the kernel, but the application crash. Either way the kernel development is completely different, I think the physical address for the virtual address should be found in the page table of the process.

How to declare a C++ function for Arduino code? -

I got the following Arduino code to get the text from Bluetooth and bring it back to an LCD display. When enter is inputed then detectarClase () should be called as argument with IP string. This .ino code: #include & lt; Wire.h & gt; # Include & lt; LiquidCrystal_I2C.h & gt; #include & lt; String.h & gt; LiquidCrystal_I2C lcd (0x20,16, 2); Boolean Borar = Wrong; String ip; String Detectorclose (String IP) {Four Verses [IP. Long ()) IPTotcherRay (var, IP.Length ()); Int num = atoi (var); If (num & lt; 127) return "clance a"; If (num == 127) "Directions reserved"; If (num> 127 & amp; amp; amp; amp; amp; & amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; amp;; If (num> gt = 192 & amp; nbsp; num & lt; 224) return "clans c"; If (num> = 224 & amp; amp; gender & 240; 240) return "clanes de"; If (num> = 240 & amp; amp; a...

java - What is Apache Velocity? -

Can anyone please explain, what is Apache velocity? Thank you in advance. Apache velocity is one, it means that you can add variables in a context, load the template In which the variables are referenced and present a text from this template where the reference of the variable is replaced by the actual value of the variable. Its purpose is to separate the design and static content from the code, for example, take a website. You do not want to make HTML inside your java code, right? Every time you change a bit of design, you may have to compile your app again and you will control your code with unnecessary design disorder. You want to get your variable, either by calculation or database or whatever and a designer create an HTML template in which your variables are used. Some pseudo-codes to clean it: / * The user's name is "Foo" and he is "admin" * / user user = getUserFromDatabase ("Foo" ) Is the type of; / * You will not add strict c...

android:Customize camera for QR code scanning using ZXING -

I am scanning the QR code using ZXING lib and it is working fine. Now I want to customize my camera to show only on half the screen and on the other half I want to show my linear layout. Is it possible ZXING? If not, there is another Liberty which will allow me to do this It is possible, however If you were just using the intent of the Xxing app or using their underlying activity then it would have to write a bit more code. You have to write your own activity and layout and set up camera preview for those items. It's not very simple if you do not have much information about the zaxing or camera but all the information is out there, you want a thread that pulls the preview frame and runs them through the datamatrix reader and handles the output.

android - how to kill Activity permanetly After button click Using Shared prefrance -

Text after public class MainActivity Activity {button extends btn1 @ override protected creature (bundle saved instenstate) {super. Nakrat (saved instenstate); Newpage = new intent (main activity. This, phonereavistian class); startActivity (newpage); btn1 = (button) findViewById (R.id.button1); Btn1.setOnClickListener (New OnClickListener () {@Override Public Zero onClick (see arg0) {// TODO auto-created method stub intents myintent = new intent (MainActivity.this, nextActvity.class); startActivities (zero);}}) ; }} This is my activity if I want to go from one activity to another in the activity I want to kill my activity means using permanently shared prefrances if open application then This should start second activity. Please help me I do not know how to kill activity using eaten prefrances Here is the complete solution // First of all, when you register, the user has set shared preferences in his registered class like // // pref editor shared prefs presentations; S...

c# - Serialize property of type object -

I have a serializable class that contains some properties, which contains a variable of type object. I want my class to be able to individually (definitely serial) objects. The problem is, I get an exception during serialization: Use the XmlInclude or the SoapInclude feature to specify those types that are not known to be statically I have a small sample for this problem: class program {static zero main (string [] args) {serialcable test class testclass = new serializablet class (); Testclass.Params = New Extended Mercury (); Memorystream ms = new memorystream (); XmlSerializer xmlf = New XmlSerializer (testClass.GetType ()); Xmlf.Serialize (MS, Test Class); Ms.Cacity = (int) ms.Length; Ms.Close (); Byte [] array = m. Gatebuffer (); }} [Serialable] public class serializablet class {[XmlElement (Elementname = "Ultimate")] Public Object Ultimate; } [Serialable] public class paramagebase {[XmlElement (element name = "some value")] Public Int32 SomeValue; }...

symfony - whats the point of using the @Method annotation -

Route method: A shortcut to specify the permitted HTTP method for the path is the @ method annotation. To use it, import the method annotation namespace: Sensio \ Bundle \ FrameworkExtraBundle \ Configuration \ Route; Use Sensio \ Bundle \ FrameworkExtraBundle \ Configuration \ Method; / ** * Root ("/ blog") * / Class PostController Implementing the Administrator {@ ** (@ / "{ID}") * @ method ({"GET", "POST" }} / Public Function Edit Action ($ ID) {}} I have seen many developers that the method is limited to limiting or posting, but since the controller By default both allow, why do developers want to restrict it to only one method? Is this some safety measure? And if so, what type of attack will protect you? First of all, there are many ways available, not only received and posted I do not think this is a security reason, it is a matter of respecting standards (for example). I personally use different methods for many behaviors...

Menubar should display only when screen resolution is 800x400 in html,css -

I have a menu bar in the html page, it should only be shown when the screen resolution is 800x400px. How to obtain this: Do not use css3 / css only by using javascript. You should first put the menu bar Display: Any and then something like that @ Media All and (width: 800 px) and (height: 400 px) {#menubar {display: block; }}

java - Display characters other than alphabets using regular expression -

मुझे यह कार्यप्रणाली सर्वर कोड में java.util.regex.Pattern का उपयोग करना है और java.util.regex.Matcher । "cdAbb # 2547dbsbz78678" .मेल (/ [^ a-zA-Z] + / g) .join (' '); आपको पैटर्न बस सरल की आवश्यकता नहीं है प्रतिलिपि सभी चाल करेंगे, स्ट्रिंग s = "cdAbb # 2547dbsbz78678" .replaceAll ("[a-zA-Z]", "");

php - Yii CGridView Sort for array as dataProvider -

Image
I have an array as my data provider (I have also set up a custom filter method) and it looks okay and Works fine: But now, for responsive purposes, I need to remove filters on small devices, which I have accomplished: , 'html_Options' = & gt; Array ('square' = & gt; 'hidden-sm hidden-x hidden -md'), 'headerHalmoption' = & gt; Array ('class' = & gt; 'hidden-sm hidden-x hidden-md'), 'filter hmlopation' = & gt; and add sorting buttons like: "Https: / / /i.stack.imgur.com/qtrZw.png "alt =" Enter image details here "> How do I add sort options with a custom sort image? I can post the full grid-video code, but it's a bit long (hence the custom column) UPDATE How does my data provider last script look like this: if (isset ($ _REQUEST ['FiltersForm']) $ filtersForm- & gt; ; Filter = $ _REQUEST ['FiltersForm']; # Obtain raw data and filter ...

c# - How do i compare a value to a multiple list items in a dropdownlist? -

I'm trying to make an argument here from where an item dropdown list from db will be present in the list menu. Is selected, and it will show a new item in a text box and "others" will be selected in the dropdown list. This is what I have done so far string gamdata = reedgame ["gTitle"]. ToString (); String gameTitle = ddlgameTile.Items.ToString (); If (printhouse data == gametitle) {ddlgameTile.SelectedIndex = ddlgameTile.Items.IndexOf (ddlgameTile.Items.FindByValue (gameData)); } Other {txtNewGame.Text = readGame ["gTitle"]. ToString (); DdlgameTile.SelectedIndex = ddlgameTile.Items.IndexOf (ddlgameTile.Items.FindByValue ("Other")); } I tried to use foreach loop and loop, it still will not work properly (okay). It only receives the second argument by the last list item which is "others" Believe it If there is a gameData db item that you want to choose if it exists, you can use the item or null to get If it do...

c++ - static member of class template error -

मुझे इस कोड स्निपेट के साथ समस्या है: टेम्पलेट & lt; typename T & gt; संरचना एस {स्थिर इंट ए; }; टेम्पलेट & lt; typename T & gt; डेल्टाइप (एस एंड एलटी; टी एंड जी; ए: ए) एस एंड टीटीओ; ए: ए; घनक 3.4 का कहना है: s.cpp: 8: 25: त्रुटि: 'ए' के ​​साथ एक परिभाषा विभिन्न प्रकार: 'डेल्टाइप (एस एंड एलटी; टीएसी: ए ए)' बनाम 'इंट' डेल्टाप्टेप (एस एंड एलटी; टी एंड जी; :: ए) एस एंड एलटी; टी एंड ए: :: ए; ^ S.cpp: 4: 14: नोट: पिछली परिभाषा यहाँ स्थिर इंट ए है; ^ 1 त्रुटि उत्पन्न हुई। लेकिन जीसीसी -4.8.2 स्वीकार करता है कम्पाइलर्स में से कौन सा सही है? क्या मुझे भविष्य में ऐसे कोड से बचना चाहिए? क्लैंग मांग कर रहा है कि परिभाषा टेम्पलेट परिभाषा पर घोषणा से मेल खाती है समय, जबकि जीसीसी और दूसरों को तत्काल समय तक मिलान करना (जो आपके उदाहरण के लिए कभी भी नहीं होता है)। क्लैग इस स्वीकार करता है: #include & lt; type_traits & gt; टेम्पलेट & lt; typename T & gt; संरचना एस {स्थिर इंट ए; }; टेम्पलेट & lt; typename T & gt...

What's C#'s await equivalent in javascript/jquery? -

मैं bootbox Bootbox.dialog ({शीर्षक: "समूह", बटन: {सफलता: {लेबल: "ठीक है", वर्गनाम: "बीटीएन-सफलता", कॉलबैक: फ़ंक्शन () {postForm ();}}}}); Function postForm () {$ .ajax ({type: "POST", url: $ ("# add-group")। Val (), डेटा: $ ("# form")। Serialize (), सफलता: फ़ंक्शन ( डेटा) {वापसी सच;}, त्रुटि: कार्य (XMLHttpRequest, textStatus, errorThrown) {वापसी झूठी;}}); } जब मैं "ओके" बटन पर क्लिक करता हूँ, जब तक कि मैं इस तरह गलत मान वापस नहीं लौटाऊं: callback: function () {return false; } संवाद बंद हो जाएगा। कॉलबैक फ़ंक्शन में, मैं postForm को बुला रहा हूं जो एक फ़ंक्शन है जो एक AJAX कॉल करता है मेरे सर्वर साइड को कुछ ऑपरेशन करने के लिए। उस ऑपरेशन के परिणाम के आधार पर, मैं अभी भी संवाद को चालू रखना चाहूंगा। लेकिन क्योंकि यह एक एजेएक्स कॉल है, और परिणाम आने के लिए कुछ समय लगता है, डायलॉग तुरंत पोस्टफॉर्म () मेरे परिणाम की परवाह किए बिना मैं एजेक्स कॉल के परिणाम की प्रतीक्षा करने के लिए जावास्क्रिप्ट क...

Jumping between changed lines in VIM with fugitive -

I have a large file where I have modified several lines, and saved it. The fugitive knows which lines have been modified, and it will be very useful to jump between them. Is there an existing hotkey for this, or can I map it in any way? If you mean any other amendment or index to : Gdiff , You can use the built-in ] and [c speed to move forward] / the last start of the change, such as the vim code > Displays changes in mode. Edit: Take a look at the plugin;

sharepoint 2013 - How to add an item in a metadata column into termstore? -

I have configured a managed metadata service and added some word set and conditions. I then with a metadata column Create a list that can use these terms I am able to get the hint for the conditions in this column. Now, my requirement is that when I add some item to this column which is not present in the word store, then it will be back in the store to enable two types of functionality like this and next time I should also get an indication of this word. Can anyone explain how this can be achieved? Any help would be greatly appreciated ... You can try the following: your column settings Go and allow the "Fill" option again when you add or edit items in the word picker dialog, you will see a "Add a new item" link, which you can use to use this dialog instead of going to the word store manager Allows the wording to add words.

qt - How to select a table using QTextCursor -

I hope this code should work but it QTextCursor cursor = textEdit- & Gt; textCursor (); Cursor = qtextcursor (cursor.currentFrame ()); CursorMyPoPy (QTextCursor :: EndOfBlock, QTextCursor :: KeepAnchor); textEdit-> SetTextCursor (cursor); TextEdit-> Copy (); // Here I have only found the text from the current cell, no table QTextTable cells A QTextEdit or QTextDocument itself is presented by a QTextBlock. Your example code is actually moving the position of the cursor at the end of the existing block, which is the end of the contents of the cell. You have to select all the cells to select the entire contents of the table. This should work: cursor.movepositions (quotedScursor :: Start); While (cursor.movepozy (QTextCursor :: NextCell, QTextCursor :: KeepAnchor)) // // Break condition as a failure after Ann iterations? } Note that you can select the selection: cursor.edited text ();

c# - A local variable value is empty after processed and filled with data in asmx web service method -

I created an asmx web service and used a SAP UI for testing to call a web method with its parameters is. I used two parameters and they both have a normal list with a custom type. In the method, I take action on them and after operation, after the operation, based on the condition, I store these values ​​in a new generic list variable. This new generic list variable is defined as the local variable in the method. That variable value is my return value, until this point, there is no problem. I call the web method in my local developer machine, the method correctly gives money as I expected. But when I installed the web service in IIS and then using the SOAP UI to call the related method, then the return value of the method was blank. What was the reason for this error? What is the value of variables lost in the law or what? Sorry, for whom I am busy in this problem! The error is due to the SOAP request parameter value ... all this is working right now! Sorry again!

libdigest-sha1-perl not found on repositories ubuntu 12.04 -

Is there a way to install libdigest-sha1-perl on my Ubuntu 12.04? I found this: wget http://launchpadlibrarian.net/85191944/libdigest-sha1-perl_2.13-2build2_amd64.deb dpkg -i libdigest-sha1-perl_2.13-2build2_amd64.deb (make changes to amn64 to i386, if y at 32 bit) But when I change to i386 instead of amd64 , Then I do not "find". Is there a better way to install it? I am on Ubuntu 12.04 32bit. I need this package because one source I get this error message by compiling it: Digest / SHA1 PM @ I In the NC @ not in the address: / etc / perl /usr/local/lib/perl/5.14.2/usr/local/share/perl/5.14.2 / usr / lib / perl5 / usr / share / perl5 / usr / lib / perl /5.14 / Urs / share / / LLP / 5/14 / USR / local / BB / site_only Thanks a lot Ubuntu has removed digest :: SHA1 (hence the reason why libdigest-sha1-perl provides) has been removed. In this case, you will not be able to install it as .deb unless someone prepares a package for it (such as the above ve...

php - Parsing datepicker date in javascript "dd monthstring, yyyy" -

Is there an easy way to get date time from the string such as: "March 29, 2014" in JAVASCRIPT I have done this in PHP, but I want to brace with some end of the line so that day can be added. To obtain the required PHP code here: Remove the function data com ($ string) {$ non-comma = preg_replace ('/, /', '' , $ String); Without $ Comma Return; } GetyearMonthDayFromDate ($ string) function {$ array = array (); $ String = removeDateComma ($ string); $ String = strontium ($ string); $ Year = date ('y', $ string); $ Month = date ('m', strotomom ("- 1 month", $ string)); $ Day = date ('D', $ string); $ Array ['year'] = $ year; $ Array ['month'] = $ month; $ Array ['day'] = $ day; Return $ array; } is calling it to get the required date time: $ from $ getyearMonthDayFromDate ($ _ [request ['from_data']); Can anyone solve this problem? Getting the same result, but in javascript? ...

perl - How does the grep operator work? -

I have an array and a hash. I want to match the keys of the head with the key of hash. I got an expression to fix all the keys matching the array. It works, but I'm not sure I understood how it works. Can you explain what happens after grep array @text and hash % sys already Is defined only. My @new_array = grep {$ sys {$ _} is present? $ sys {$ _}: 0} @text; The code you got is more complex This could be / *: My @new_array = grep {$ sys {$ _}} @text; The grep function processes a list - the contents of the @text array - in a new list containing only the element Where the expression in the middle evaluates a true value, the default value is set to every list item in exchange for the expression list content so that the default value is $ _ . In your example expression, a threesome operator ? which evaluates the item before : If the first part is true or the value after it is incorrect, in your case, it checks whether each key is % sys is in hash...

How should I write an MDX Filter statement with multiple OR conditions efficiently? -

In SQL, you can compare a field with a form against a [Foo] {How to take a filter expression in something like this in {"bar 1", "bar 2", ..., "barran"} There is a problem in knowing that, with now, I end up in the end: Filters ([MyHierarchy]. [Foo]. Member, [MyHerkarki] .Kurmantmann. Name = "1" or [MyHerkarki] .name = "2" ... or [MyHierarchy] .CurentMember.Name = "N") Since I have 20-30 comparisons, and a normal chance to rename the hierarchy, I have long been Want to maintain a set and a hierarchy name compared to a long expression. Is there any way to accomplish this? Keeping in mind that the context is an Excel Cubeet function, so I am limited in defining my members in these sections. Assume that you have set the selected member name Hide ([MyHericarki]]. [Foo]. Member, [Selected Members]) You can of course also code directly Can I [Foo]. [1], [Myharkaani]. [Foo]. [2],. [MyHerichiki]. [Foo]. [N]...

wpf - xamdatetimeeditor set default current time and date -

How to set default current time and date in xamdatetimeeditor instead of default spaces? My code will not show the current date and time won down. This XML & lt; In igEditors: XamDateTimeEditor Grid Roll = "12" grid. Column = "2" x: name = "date" visibility = "{budding datetimeVisible, converter = {static resource boolean switchability}}" height = "23" verification. Error = "validation_date" mask = "biting", "yyyy / mm / dd hh: mm: ss" dropdownbuttondisplaylame = "always" displaylame = "include" value = "{binding date, initial update, source trigger = property changes, validanddateter = True, notify validationErr = true} "text =" {binding date selected, update resource reset = asset changed, validanddateterter = true, notifyOnValidationError = true} "& gt; & Lt; igEditors: XamDateTimeEditor.ValueConstraint & gt; & Lt; IgEditors: Value Con...

java - how to tell egit to ignore some file types -

I have some file types in my project (consider for x * .xls) which I do not want every time When I do this *. Xls I will need a solution, so that the exit ignored it If I right click on the file and Ignore it works, but my There is a vast list of tree files inside many folders including *. Xls files I know the .gitignore file will ignore the files but this I am using egit in Eclipse add *. Xls Your .gitignore file will work.

c++ - How to create an extension for Internet Explorer as Exe Com server? -

I need to create an extension for Internet Explorer and I need it to be an XE Com server. First of all, I have created a simple coop DLL project describing the ATL wizard and it worked very well, IE loaded my extension and it showed my message box. After this, I repeated all these steps, but created the CNSE Project. I registered it in the same way and can see the Internet Explorer extension but it does not work. My work is not called IObjectWithSite :: SetSite and IObjectWithSite :: GetSite. Can you please advise me how to resolve this problem? You have the out-of-process com server as a BHO, but you can get the com server Can call As you can use late binding: CComDispatchDriver pServer; If (SUCCEEDED (pServer.CoCreateInstance (CLSID_YourComServer)) {pServer.Invoke0 (L "ServerMethodName");}

c# - How to hide a hyperlink control inside gridview through code behind inside page load? -

I have a gridview on my web form. I have taken a hyperlink control inside the template field of Gridview. I want to show this hyperlink only to the site administrator I did this through the Gridview_RowDataBound property but instead of doing so, I want to hide this hyperlink inside the page load. This is what I have done. aspx page - & lt; ASP: GridView id = "GridView1" runat = "server" AutoGenerateColumns = "false" DataKeyNames = "ID" onrowdatabound = "GridView1_RowDataBound1" BorderStyle = "none" EnableModelValidation = "true" ShowHeader = "false" width = "1000 pixels" Gridline = "none" & gt; & Lt; Columns & gt; & Lt; ASP: TemplateField & gt; & Lt; ItemTemplate & gt; & Lt; asp: hyperlink id = "hyperlink 2" runat = "server" font-bold = "true" font-size = "small" ForeColor = "# FF3300" Comm...

php - Should we use separate includes and classes folders for front end and backend (admin panel)? -

I am developing a website that has two stages - the end of public users and all other websites such as the admin panel The last end for is usually I want to know that I should make separate and class folders for front end and backend (under the Admin folder), or should I use common folder for both areas? Front end files are kept at the root level. There is another folder named Admin, which contains all administrator files and folders. So if I make classes and it contains the folder (under the admin folder) and uses the same folder at the front end, will it be wise? Should DB configuration files be separated for both ends? Should continue with the same idea? How do the professionals? Edit - I am projecting in basic PHP and there is no framework. Can you guide me to better professional directory structure? It would be better to use the same folder because many common classes and both levels of your site are included . This makes managing things easy. You can only enter ...

email - Custom Domain Mail in Android -

Hello friends, I want to configure mail settings in Android .. When I search for it on the internet, I only want to Only G-Mail could send through, how can I send mail to custom domain e, g: someone@example.com If this is possible please reply as soon as possible Import android.net.Uri; Importroid.os.Bundle; Import android App Import android.content.Intent; Import android.view.Menu; Import android.view.View; Import android.widget.Button; Import android.widget.EditText; Import android.widget.Toast; Public class enhances main activity activity (personal editorial reader recipients, subject, body; @ override protected form zero (bundle saved instenstate) {super.naught (savedinstenstate); setContentView (R.layout.activity_main); recipient = (Edit Text) Search ViewById (R.id.receiptent); Subject = (Edit Text) VVBIID (R. Id); Body = (EditText) findViewById (R.id.body); Button sendBtn = (Button Find FindById (R.id.sendEmail); sendBtn.setOnClickListener (New View. OnClickListener () {publi...

c++ - Different ways to use a function as template argument -

I need to create a template function which again calls the "worker" function again template & lt; Class F & gt; Int exec (f f) {long time s = 0; For (int i = 0; i Now I thought about the various possibilities of defining the worker's work: Inline function inline int fooInline (int one) {return one + 1; } Exec (fooInline); Work with definition from other collection unit int fooSrc (int a); Executive (fooSrc); Function Object struct FooOp {int operator} (int a) {return a + 1; }}; Executive (FooOp ()); std :: function (for example attached to an inline function) std :: The function & lt; Integer (int)> gt; FooFnc = std: bind (and fooInline); Executive (fooFnc); Lamba auto fooLambda = [] (int a) {return a + 1; }; Executive (fooLambda); temporary lambda exec ([] (int a) {return a + 1;}); What are the differences between research methods? What will be the fastest way? Can I assume that exec (fooInline) is...

php - Using the "UNION" Delete MySQLI Query -

I want to delete some of my database information in 2 tables. The first question, is this possible? If yes: I tried a union daily query, but it does not work. ID id like ". $ Id" "& amp; amp; and user like" $. from $ 1 $ delete = mysqli_query ($ sql, " UserID. "'UNION' (Delete table 2 with WHERE source_id as" $. "$ Id." & Amp;; User ID preference ''. $ User '' '') "); union will only use SELECT statements: If you do not want to use two separate DELETE statements and are related to those two tables, then include statement:

delphi - Adding a component inside a scrollbox -

I have a custom component, I currently have to put the TScrollbox on the form, then add / Drag the custom component into the scroll box. How do I go about changing the component, so it automatically puts it inside a scroll box, when it is placed on a form? A custom component is a TGraphicControl . If you have a custom component and you always want to be present inside the scrollbalk, the best solution Either there is an example using a TLabel to update or expand that component for your own scrollbox, but you can replace it with your custom component. entity MyScrollBox; The interface uses System.SysUtils, System.Classes, Vcl.Controls, Vcl.Forms, Vcl.StdCtrls; Type TMyScrollComponent = Class (TScrollBox) Private FLabel: TLabel; Process SetLabelText (Attack: string); GetLabelText: string; Build Protected Maker (AOwner: TComponent); Override; Published property LabelText: write SetLabelText to write GetLabelText to the string; End; Process register; Register of implem...

windows - How to use WinRAR through Batch? -

Image
I need some help with a batch file because I'm stumped on WinRAR in the batch, as I did not / It's not used before. My folder tree with batch file is here: Each RAR file has the same directory folder name ("vegies" folder). I would like to be able to extract / copy all the folders / code> "example / Program_Ex / vegies" (forget this folder "vegies" does not already exist ) In a directory in the "example / program_x / vegie" back / subfolders inside each directory. In each RAR I can not change as they automatically update themselves.) So basically I would like to with a batch file: "Examples / program_x / vegie /" example / program_x / vegie / "example / program_x / vezies" to "example / program_x / vg / random3" to remove "example / program_x / vegez" from "example / program_x / vg / random 2. rar" Removing "example / program_Ex / vegie / random5.rar" ...

Paypal API for iOS -

I am working on the iOS project that has functionality like the user can sell the product to another user. I've integrated the PayPal API to make a payment. I did an R & D on this subject and I came to know that I do not have to apply the Adaptive PAI, rather the Simple Payment API. I have integrated under PayPal SDK: It has a simple payment and parallel payment method but there is no way to fund transfer or adaptive payment. So if anyone has the idea that how can I transfer money directly from the buyer to the seller's account, please give me some advice. Thanks in advance. I believe that you are using the new "mobile SDK" which is the REST API And has not fully supported adaptive payments so far. Instead, you have been built on the "classic" API and supports all the features. You can find more information about two here:

Better way of writing multiple methods with similar definition ruby -

How can I improve this code so that there is no duplicate code and this dynamically gives me similar Will allow to add? def fabric_ids = (property_name) @fabric_ids = [] if @ fabric_ids.blank? @ Fabric_s & lt; & Lt; $ Property_values ​​[property_name] end def work_ids = (property_name) @work_ids = [] if @ work_ids.blank? @work_ids & lt; & Lt; $ Property_values ​​[property_name] end def type_ids = (property_name) @type_ids = [] if @type_ids.blank? @type_id & lt; & Lt; $ Property_values ​​[property_name] end You define your methods dynamically In this way, like this: % w (Fashion_ides work_ides type_id) .each do | Name | Define_method ("# {name} =") do Property_name | Instance_variable_set (name, []) if instance_variable_get (name) .blank? Instance_variable_get (name) & lt; & Lt; $ Property_value [attribute_name] end end

rounding - How can i round float to nearest whole number and then convert into double in JAVA? -

मेरे पास फ्लोट वैल्यू है float myValue = 5.1824203 ; मैं फ्लोट को निकटतम पूर्ण संख्या में कैसे ले सकता हूँ और फिर डबल में रूपांतरित कर सकता हूं? इसे प्राप्त करने का सबसे अच्छा तरीका क्या है? धन्यवाद, डबल myRoundedDoubleValue = Math.round (myValue);

html - text larger columns in bootstrap -

Image
I used to bootstrap a project recently, but I do not understand why I have this problem. As you can see On the screen, I set a div to 4 columns, but the text comes out. You are probably also with any of you. Does anybody know the solution? Thank you in advance This is because The text is overflowing with the container, and does not break, add: overflow: hidden; To prevent this overflow from being visible, or word-wrap: break-word; To break the text and wrap it back within the container boundaries To see the differences between these approaches see Bella above.

c# - Exception when using WebAuthenticationBroker.AuthenticateAndContinue in OnNavigatedTo event -

जब WebAuthenticationBroker.AuthenticateAndContinue में OnNavigatedTo मेरे मुख्य पृष्ठ मुझे निम्नलिखित अपवाद मिलता है: रिमोट प्रक्रिया कॉल विफल (HRESULT: 0x800706BE से अपवाद) हालांकि, यदि मैं एक क्लिक ईवेंट के साथ एक बटन बनाता हूं जो वही फ़ंक्शन कॉल करता है, तो मुझे अपवाद नहीं मिलता है। मुझे लगता है कि इसका कारण यह है कि जब OnNavigatedTo घटना शुरू हो जाती है, तब पेज पूरी तरह से लोड नहीं किया जाता है। तो मुझे एक ऐसा पृष्ठ बनाने के बारे में कैसे जाना चाहिए जो स्वचालित रूप से प्राधिकरण प्रक्रिया शुरू करते हैं मैं एक मध्यवर्ती नियंत्रण (एक बटन की तरह) के बिना इसे नेविगेट करते हैं? अगर मैं निष्पादित करने की कोशिश करता हूं पृष्ठ लोडेड इवेंट पर टोकन अनुरोध फ़ंक्शन, मुझे आपके जैसे ही त्रुटि मिलती है: स्ट्रिंग FacebookURL = "https://www.facebook.com/dialog/oauth?client_id=" + Uri.EscapeDataString (FacebookClientID.Text) + "& amp; redirect_uri =" + Uri.EscapeDataString (FacebookCallbackUrl.Text) + "और स्कोप = पठन_स्ट्रीम और प्रदर्शन = पॉपअप...

objective c - iOS 7 Status Bar weird behavior -

Image
I am using a UISplitViewController for an iPad app and I get a strange behavior from StatusBar. Here's how I start my RootviewController: if (kIosVersionFloat> = 7.0) [Application Set StatusBarStyle: UIStatusBarStyleLightContent]; [Application Setstats Barhard: NO]; _window = [[UIWindow alloc] initWithFrame: [[UIScreen main screen] border]]; If ([[UIDwise Current Device] User Interface IDOM] == UIUserInterfaceIdiomPad) {_rootNavigationVC = [[YTRootNavigationController alloc] init]; _rootNavigationVC.navigationBarHidden = Yes; NSShadow * shadow = [[nsshod allok] init]; Shadow.shadowColor = [UIColor colorWithRed: 0.0 green: 0.0 blue: 0.0 alpha: 0.8]; Shadow.shadowOffset = CGSizeMake (0, 1); [[UINavigationBar Presence] setTitleTextAttributes: [NSDiction Dictionary with Object EndCAZ: [UIColor colorWithRed: 245.0 / 255.0 Green: 245.0 / 255.0 Blue: 245.0 / 255.0 alpha: 1.0], NSAI EarthGreenColorAttiturnName, Shadow, NSHowattenamem, [UIFont FontA withname: @ "HELVETICA N...