Posts

Showing posts from August, 2010

string - \n doesnt make new line when display in html/page using sails -

Hello, would you like to know whether the string has its function for formatting string variables in html? I have this scenario ... In my controller, I have a variable that has something like this: var str = "Pellentesque habitant \ r \ nmoribi Tristique Carnits at \ n NetWate and Nursed Firms AB Trapis \ Neigastas. "; When I display it as an html page, it will display plain in this form. (Only 1 paragraph) Learn about the inhabitants of Pentecost and find out about the works done by them. But see the source Find out about the residence of pendrestes, Looking for possible solutions, and found about underscore string () I have tried to do this so far, I am just thinking that without setting another there are other possible solutions. Thank you You get the white space: pre-rap or Newline Pvt. Will have equal access to appropriate. By default, line feeds in HTML text are only more white spots.

ios - Code Sign Error in xcodebuild on simple Single-View Application -

xcodebuild fails when I'm on the command line. This is always an error that I am always getting: Code sign error: No matching profile found: Your build settings specify a provisioning profile with UUID ??? ? XXXXXXXX-XXXX-XXXX -XXXX-XXXXXXXXXXXX, however, no such provision profile was found. CodeSign Error: In SDK 'iOS 7.0', the code type for the product type 'app' is required, however, when I make it by Xcode, it fixes and the device But runs smoothly. Xcode does not show the fix number button in the General tab, which explains why it works on Xcode. I'm researching from yesterday so I can not make it through ExCodebild. Help anyone? : ( The xcodebuild command I am using directly from Frank's website: xcodebuild \ -target & lt; app_target (optional, if you have only one) & Gt; \ -xcconfig ./Frank/frankify.xcconfig \ -arch armv7 \ -configuration debug \ -sdk iphoneos \ DEPLOYMENT_LOCATION = yes \ DSTROOT = "& lt; full_path_o_a_

shell - How to convert a link that has javascript:__doPostBack in href to normal url which wget/curl/lynx can understand? -

I searched in the past, and found this question. But this only answers in Python. I have to go through a website, some pages (2,3,4, etc.) with the following link: javascript: __ doPostBack (' Javascript: __ doPostBack ('AspNetPager1', '3') Javascript: __ doPostBack ('AspNetPager1', '4') If I click on it , And it will display the next page, but the real URL is not displayed in the browser. So my question is, how can I convert the javascript link into a traceable real URL and feed it on wget / curl / lynx Use the tool (wget / curl / lynx) to download these pages by scripting but due to these javascript: __ doPostBack , I can not find a good way to do this. You can not actually do it analytically __ doPostBack irregular form Can be complicated by You can install firebug instead (think that you are using Firefox), activate the network tab, press "Tickets", and then click the button. The Networks tab will show you ac

where to find folder on app engine console -

I have a folder with some static content, see the picture. I'm stationed on an app engine and I'm sure everything is working properly when I use the app as a user. But then when I go to App Engine Console, there is no way to see the contents of my folder. I run through all submenus of Main, Data, Administration, Billing . I think there should be a way to enter my folder. For deployment, I put the folder in war in war / myitems . There is no way to view uploaded app engine files.

Multiple SSL certificates on single instance hosted on virtual machine with Windows Azure -

Using Windows Free Virtual Machine, is it possible to install many SSL certificates in one instance? Can anyone provide examples / steps? Yes, it is possible for IAS to install certificates on any other Windows machine that runs the IIS Will be similar to The Vim you are discussing is talking about running iOS running IIS Step 1: In the .pfx file with your password Export all certificates Step 2: Copy copied .pfx files remotely to Target VM. Step 3: Open IIS - & gt; Server certificate - & gt; Import Wizard to set up a certificate on VM

javascript - Get a variable value in the url using ajax -

I'm new to AJAX in this code how do I get variable 'zero' value in a.php? This code is: HTML: & lt; Div class = "div1" & gt; & Lt; / Div & gt; & Lt; Button & gt; Click & lt; / Button & gt; AJAX: & lt; Script type = "text / javascript" & gt; var zero = $ ('# query'). valueOf () ;; $ (Document) .ready (function (e) {$ ('button'). Click (function () {$ .ajax ({url: "a.php", type: "post", data: zero, success : Function (result) {$ ('. Div1'). Html (result);}});});}); & Lt; / Script & gt; a.php: & lt ;? php $ zero = $ _POST ['data']; Zero to zero; ? & Gt; When sending data, send it as key = value pair. In your case, AJAX changes such data in the request. Data: "zero =" + zero do this while entering PHP $ zero = $ _POST ['zero'];

How to test windows phone 8 emulator without Hyper-V? -

I have to make Windows Phone 7 or 8. I have installed Visual Studio 2013. It came with the Windows Phone SDK. I have a problem I have Windows 8.1 Pro OS but my processor does not support Hyper-V platform. I have enabled the BIOS settings even though I did not find it. Any alternative way to test or debug an app in the emulator. Any ideas or suggestions should help me a lot. Thanks in advance. Ensure that you have also enabled Hyper V from the control panel.

Removing certain array element in a for-loop in PHP -

I have inserted some elements (name of the fruit) from mySQL into an array. Now, I would like to remove some objects from the array. If 'Array' exists, then I want to remove 'Apple' and 'Orange'. This is what I have tried, but I am getting an error message. Array example: Array ([1] => orange [2] = & gt; applet) foreach ($ word as $ = = $ v) {if ( Key ($ v) == "apple") {without set ($ word [$ k]); } Otherwise (key ($ v) == "orange") {without set ($ word [$ k]); }}> Gt; & Gt; & Gt; WARNING: The key (1) is expected to be an array of parameter 1, string is given / the same error has been repeated 4 times I have referenced this link here: if any I can tell what I did wrong explanation: $ fr is the actual array of all your fruit and your $ rm is another array that contains a list of items to be removed from your $ fr array. Use a foreach cycle through the array $ rm and see whether the element exists on

sql server 2008 - How to reset scope which is created using template or schema change in Sync Framework? -

I have a question in the sync framework How do we reset the scope of the sync framework? There are some solutions I have found but only when we are working using PopulateFromScopeDescription (scopeDesc) but I used FilterClause for that PopulateFromTemplate () method Goes and the solutions are not working for it. So if anyone has any solutions, then help me. Those scopes that come from a template do not have a different scope definition, rather , They refer only to the scope definition of the template. You should then modify the template, not the radius.

c# - XPath query not working(need find by text) -

Halo bop I am working with HTMLAgilitiePack and I have a problem that all elemnts require a single stracharer And with the duration of the text like the same class code, I have the quantity and date so I need to create a link like this "// span (text = the amount of With) [div and (@ class, 'description' value)] "); I need to get 1,700,000.00 data from the div, which in the period with the 'zodiac' and 'Any ideas' from the div on 14.04.2014 I have it now list & lt; String & gt; OriginalAmount = GetListDataFromHtmlSourse (pageadata, "//span [div and in (@ class, 'details')]"); Private Static List & lt; String & gt; GetListDataFromHtmlSourse (string HtmlSourse, string link) {list & lt; String & gt; Data = new list & lt; String & gt; (); HtmlAgilityPack.HtmlDocumentDocToParse = New HtmlAgilityPack.HtmlDocument (); DocToParse.LoadHtml (HtmlSourse); Foreach (HtmlNode node in DocToParse.Document

Mysql current date trigger -

I have the following triggers create triggers `` qc_date_trigger` after updating ` Reserve for each line on the brand 'if new. Brands QC = '1' then set @ brandxDATE = kurt (); ELSE SET @brandQCDate = NULL; end if; END For some reason this does not update my date field in the current date when QC = 1. I have checked the mysql doctor and it should work. Any ideology? If your column is named brandQCDate, remove @ Please give it. @ creates a user-defined variable, not a column, besides this you want to do this before a UPDATE trigger. Update the 'brand' for each line before updating to the create trigger 'brand` if the new one is new. Brands QC = 1 'then set NEW.brandQCDate = CURDATE (); ELSE SET NEW.brandQCDate = NULL; end if; END

running a MFC C++ code in VIsual Studio error NewFolder is not a valid working directory -

An application that shows the basics of using Microsoft Foundation Classes ** When I run the code, the message box pops up from Visual Studio that is unable to start the program. C: \ Users \ Sushma \ Documents \ Visual Studio 2010 \ Projects \ Pooja \ Debug \ Pooja.exe C : \ Users \ Sushma \ Document \ Visual Studio 2010 \ Project \ NewFolder is not a valid work directory but project folks Fear does not exist any new folder. ** This file contains a summary of what you will find in each worship file. Pooja.vcxproj This is the main project file for VC ++ projects generated from the use of an application wizard. It contains information about the version of Visual C ++, which generates the file, and information about the project features selected with the Platform, Configuration and App Wizard. Pooja.vcxproj.filters This is the filtered file for VC ++ Project generated using an application wizard This includes information about the connection between the files and filters of

c# - How to store value from datepicker into string variable -

I have a datepicker textbox I want to store the date which is used in datepicker by using C # in a string variable is selected. What will the code look like? String date = DailyPictor Text; // does not work I want to store the dates in a database later in the code, such as the following code: string sql = "INSERT Tbl_mote (time, date, id) values ​​('"+ + time",' + + + + ", '" +++ "+"); "Npgsql commm command = new NPGSQL commm (Esquilla, Conn. ); Int no = command.ExecuteNonQuery (); Date picture: & asp: textbox id = "datepicker" runat = "server" & gt; & Lt; / Asp: textbox & gt; What happens today's date always saves on the date of variables and not the selected date. 1) Use datepicker.Value to obtain the selected date as the recipient object. At the time of the object there are several functions to create a string for that date. 2) No, I repeat, do not combine strings

properties - KendoUI DropDown list - Add custom data fields -

Currently, I can only store 'DataTextfield' and 'Data Validated' in the Condo dropdown list, but I must be enabled To store more values ​​for each item in the list. I populate the dropdown with JSON data, there are multiple properties for each index in the array in the JSON array. Ways to add more value (such as 'dataCustomField1', 'dataCustomField2', 'dataCustomField3') for drop down items I got the solution var dropdown = $ ("# ddList"). Data ("canodoadupundownlast"); Var ddData = dropDown.dataSource.view () [dropDown.select ()]; The DDData contains all the JSONs of the selected items in the drop down.

c# - Want to keep running the exchange migration code after closing the web browser -

I have an asp.net MVC application in which I am migrating from one exchange server to another, now I am running Migration process and open browsers do not mean that the user should go behind the browser process when the user closes and the manger can see the progress of the browser after opening the browser. Anyone can help me in this, ASP.N.M.C. How to get this work using 4 MC4C # or any other service Given the low amount of information in the question, I can only answer briefly. When the user triggers migration (i.e. sends request for MVC), you must trigger a migration in a different thread. Ensure that access to a worldwide accessible variable of different threads, e.g. IsRunning the Bowl Migration . Your migration will set it to true , and when complete, on false (by success or error, in any way). When your user returns to the migration page, check the value of your controller method MigrationIsering (the variable from the previous step), and return the correc

angularjs - angular ui router scroll to an anchor/optional parameter -

url: '/ blog /: id /: slug? ScrollTo', जब scrollTo रिक्त नहीं है, तो मैं स्क्रॉलटॉ वैल्यू पर पृष्ठ स्क्रॉल करना चाहता हूं। मैंने ऐसा करने की कोशिश की: $ scope। $ On ('$ stateChangeSuccess' , फ़ंक्शन (इवेंट, टोस्टेट) {if ($ stateParams.scrollTo) {$ location.hash ($ stateParams.scrollTo); $ एंकर स्क्रॉल ();}}); My-domain? ScrollTo = 53561c675541f30612ee222c # 53561c675541f30612ee222c तो इसके साथ क्या गलत है? ^^ UPDATE html & lt; body data-ng-controller = "MainCtrl" & gt; & Lt; div id = "content" डेटा-एनजी-नियंत्रक = "दृश्यकूट" वर्ग = "यूआई-व्यू-कंटेनर" & gt; & Lt; ul class = "nav navbar-nav navbar-right" & gt; & Lt; li डेटा-एनबी-संकेतों = "" सिग्नल = "सिग्नल" लेबल = "मैप लेबल्स" मार्ग = "नक्शा मार्ग" वर्ग = "ड्रॉपडाउन संकेत" & gt; & lt; / li & gt; & Lt; / ul & gt; & Lt; div डेटा-यू-दृश्य आटोसक्रो

sql - MySQL: Print counted values -

सारणी: + ------------- + | IzvajalecID | + ------------- + | 20 | | 21 | | 21 | | 20 | | 21 | + ------------- + मैं सभी विशिष्ट आईडी की गणना करना और उनके मूल्यों को मुद्रित करना चाहूंगा। उदाहरण के लिए: अद्वितीय आईडी: 2 मान: 20, 21 मैंने निम्नलिखित क्वेरी के साथ प्रयास किया। गणना ठीक काम करती है, लेकिन यह केवल एक (प्रथम) मान देता है मैं क्या कर रहा हूं? SELECT COUNT (अलग izvajalecID), s.izvajalecID से (चयन izvajalecID से servis) s; का चयन करें izvajalecID से servis ग्रुप द्वारा izvajalecID UNION SELECT COUNT (DISTINCT izvajalecID) Servis से सेट में अंतिम मान अद्वितीय मानों के COUNT के लिए है आप उन जगहों को भी बदल सकते हैं और यह आपकी पहली इच्छा होगी, जैसे आप चाहते हैं।

d - Trouble with Curl and pragma -

मैं std.net.curl का उपयोग कर रहा हूं, इसलिए मुझे libcurl से लिंक करना होगा। फ़ाइल के शीर्ष पर std.net.curl , सभी प्रकार के लिंकिंग त्रुटियां (अनुपलब्ध संदर्भ) दिखाई जाती हैं। ऐसा क्यों है? क्या मैं कुछ गलत कर रहा हूं? ऐसा कोई बड़ा मुद्दा वास्तव में नहीं है, लेकिन जब से मैं pragma लिंक करने का तरीका पसंद करता हूं, मैं वास्तव में उत्सुक हूं कि यह क्यों काम करता है जैसे sqlite3 , लेकिन कर्ल के लिए नहीं। pragma (lib ) सर्वोत्तम काम करता है यदि आप सभी मॉड्यूल को एक साथ कमांड लाइन पर उन्हें सूचीबद्ध करके संकलित करते हैं यदि आप उन्हें संकलक को अलग-अलग कॉल्स के साथ संकलित करते हैं, तो पुस्तकालय संदर्भ अक्सर खो जाता है (मुझे लगता है कि केवल अपवाद Windows पर डीएमडी है)। क्या आप सब कुछ एक साथ संकलन कर रहे हैं?

python - How to modify the text in a bar chart -

Image
I have created a chart once, with some text within each bar, now, if I could I have created it like this: # Some stuff ... ... modify the size of this text, font size, to reduce it a little bit. rects1 = plt.bar (test, y, bar_width, alpha = opacity, color = 'b') label = [] in rects1 for bar: height = bar.get_height () ax.text (bar.get_x) + bar get_width () / 4, 0.65 * height, '% .2f'% float (height), rotation = 'vertical', horizontal alignment = 'left', va = 'bottom') label.endend (bar.get_x) + bar.get_width () / 2.) ... ... ... More results look more or less like this: You may be looking for: For example you ax.text (bar.get_x) + bar.get_widt h (vertical), horizontal alignment = 'left', va = 'bottom', weight = 'bold' ) To use a bold font, you can use fontsize = somenumber to change the font size.

php - Get Meta-Title, Description & Images. -

I have a text box that allows users to post URLs File_get_contents_curl ($ url); $ image_regex = '/ & lt; img [^ & gt;] * ' 'Src = [\ "| \'] (. *) [\" | \ '] / UI'; This displays all the images in the URL, I would like to show only one image tag of OG: This URL contains the image. You can get the first match with this code.

c# - Editing and saving any datatable in mvc -

How can I do this after editing, deleting, adding tasks, and saving the file? I am worth evaluating and I am showing in showing the figures. This is the data format derived from the other classes, which is different from the dataset every time [HttpGet] Public Activity LocalfilmHolderAction () {Datatable Model Model 2 = New Datatile Model () {DataTableForXml = DataTypeControl.dataTableFinaly}; See Return (Model 2); } And it shows my view code with foreach @model ValueMapping.WebUI.Models.DataTableModel shows the Data tab with System.Data ; Using @ System.Web.Helpers & lt; Div id = "ListView" & gt; & Lt; Table style = "font-family: vardana, arial, non-serif; font-size: 11px; color: # 333333; border width: 1px; border-color: # 666666; border-fall: collapse;" & Gt; & Lt; Thead & gt; & Lt; TR & gt; @work (model. Data formatforx.colum data column call in call) {& lt; Th style = "border: 1 px solid, width: 140px"

c# - Wcf first request is slow? Solution on service? -

Image
Every time my WCF service is useless for some time (about 15 amin or more) It takes time usually the response time is 2-3 seconds and the first request is approximately 30secs. Actually it is similar to the post as explained here. But the client looks at the client side with the solution on the factory and only when the auto proxy is generated I am looking for a solution on the server side because my customer is not using any proxy class or the WSDL class It just makes a request as a string and http requests the request. Even if I am providing a B2B WebService, it is not easy to tell my clients to make an alternate solution on their client side. I am using https I can also have a problem? Edit: I've checked IIS idle time which has already set 0 on the server. EDIT2: When I check my travels, I do not see any detailed information. Below is the web. What does my trace code look like in config and it has a screenshot, maybe I need to expand the trans information but how? &

java - How to set the input for the UI part in eclipse e4? -

I am using the eclipse e4 application I use EventBroker to pass values ​​from one part to another I am here. If many parts (like a tab) are open, then how to pass the values ​​of that part (tab) that are currently selected? I'm using @UIEventTopic to get the value for the part. But the problem is that the values ​​are duplicated in all tabs. In other words, I'm trying to show different Jeffrechts in different tabs, but the last tab The chart is duplicated in Can someone suggest some suggestions to me? Thanks Whatever the event broker is always working with the event To broadcast, you can not use it to send a special item If you are in the handler then you can get the current part in the @excute method and directly in your class. Value can be set - like something: @Execute Public Nil Execution (@ nominated (IServiceConstants.ACTIVE_PART) MPart activePart) {Object C = activePart.getObject (); If (examples of part of Mystals) {(MyClass part) .setValue (xxxx); }}

c# - Target 32 Bit or 64 Bit native DLL depending on environment -

I have a native DLL that comes in both 32-bit and 64-bit versions (x86). I want to create a cover that works on both architecture (any CPU) and loads the correct version of DLL based on the current environment (32 bit or 64 bit at runtime). This process should be done automatically so that my DLL users do not need to target a specific architecture. Is there any best practice to do this? Any example that can guide me? I have found a possible solution that uses a managed proxy for each architecture and then uses the Assembly.Resolve event to load the correct code. However, for this I need 3 managed assemblies in addition to 2 unmanaged libraries, which seems a bit more. Is there any other solution? Here's a solution I used on many projects: 32-bit assembly "32-bit oriented name" For example, MyAssembly.Native.x86.dll Name 64-bit assembly with "64-bit oriented name" For example, MyAssembly.Native.x64.dll Collect all the assembled assemblies

Algorithm of bitmap getbrightness() in C# -

I want to implement the function in Java which calculates the brightness of the color similar to the brightness () function that will get C # is. So I need to know the exact algorithm which was used in C #. There are some algorithms but 5% of them have errors. Use the official source: Public Float GetBrightness () {Float R = (float) R / 255.0F; Float G = (Float) G / 255.0F; Float B = (Float) B / 255.0F; Float Max, Min; Max = r; Min = r; If (g> maximum) max = g; If (b> max) max = b; If (G & lt; minutes) minimum = g; If (B & l; minutes) minutes = B; Return (max + min) / 2; }

selector - How to make imagebutton and textview to be clicked together in android? -

There are ImageButton and TextViews within my relative layout. I want to change my colors to blue when they are pressed and when they When it is released then it turns them white again. I need to do the same to both of them, it does not matter which of them I am. And I want them to activate the same action, for example a toast that will be shown on the screen. I tried to do this with selectors and duplicatepanrent and many other options. Can anyone give me a simple example of how to do this? Update: & lt; Selector xmlns: android = "http: /sschemas.android.com/apk/res/android"> & Lt; Item Android: Dragon = "@ Drable / Trash-Pressed" Android: state_pressed = "true" /> & Lt; Item Android: Dragon = "@ Drauble / Trash-Debad" Android: state_focused = "true" /> & Lt; Item Android: Dragon = "@ Drable / Trash" /> & Lt; / Selector & gt; & Lt; Selector xmlns: Android = "http://sch

php - Convert slash to tilde as Url Separator -

I have a question about how we can separate the URL with a slash instead of a slash, for example I have A URL is: The first case www.domain.com/category/category_id The URL shown will be www.domain.com/category/category_id The second case www.domain.com/category/subcategory/category_id The URL shown will be www.domain.com/category/subcategory/category_id So we will be separating the URL when we have such a position And only the last section will be affected. How Can We Do It In Php I'm Trying To Work In Laravel! Thanks Create .htaccess in your www root Put it in and put it in: Click to rewrite the revetting engine% {SCRIPT_FILENAME}! -d revoked% {SCRIPT_FILENAME}! -f revised rule ^ (. *) $ Index.php? Params = $ 1 [QSA] To get the parameter used in index.php: ... $ Params = Explosion ('/', $ _GET ['param']); $ Last Two = Explosions ('~', $ Parameters [Count ($ Parameter - 1]); if (calculation ($ LastTwo) == 2) {$ $ para

ios - Preventing files inside a folder to be backed up icloud -

Thanks in advance for help I have excluded a folder from backing up via iCloud, but still it will backup the files And when i visited iCould it is backed up. I use the following code to exclude the directory from backing up - (BOOL) addSkipBackupAttributeToItemAtURL: (ns URL *) URL {// emphasis ([[NSFileManager default manager] filexestappath : [URL Path]]); NSError * Error = Zero; BOOL success = [URL setrSourceValuue: [NSNumber NumberVithibles: Yes] For: NSROMLXMedged Backup Error: & amp; Error]; If (! Success) {NSLog (@ "error except% @ from backup% @", [url's final footprint], error); } The success of the return; } And I call the above method as Behole NSArray * path = NSSearchPathForDirectoriesInDomains (NSLibraryDirectory, NSUserDomainMask, YES); NSString * libraryDir = [Path object imported index: 0]; NSString * downloadFolder = [Library stringbapping padcampaint: @ "downloads"]; NSError * error; If (! [NSFileManager defaultManager] fileExi

powershell - Run Boxstarter in "Debug" mode? -

I am writing some boxstars script for unsurpassed installation. I want to type in some in my script - debug it and conditionally see my output. Is there a flag that I want to do in the boxstarter ( BoxStarter.bat PackageName -Debug < / code> does not work)? The same debugging idea: Is there a way to tell boxstarter / powerlle that has a fatal error in the file and line which prevents it? I know that the boxstard package is packaged in an .nupkg file but maybe there is a way to get the original file and line? If you use write-debug , Then the output will appear in c: \ chocolatey \ chocolateyinstall \ chocolateyinstall.log To get good stacktracce information, I suggest that the contents of your package contain a Wrap in the catch and your catch block includes: Type - chocolatefileer 'my package' $ ($ _. Exceptions.tostring))

javascript - Remove bxslider -

I have a district subject and I do not really like this portfolio slider. I want to remove it so that my works show up in a list instead of a slider. I have tried the following CSS scripts but they do not work / * Slideshow removal portfolio and alignment * / .single-portfolio .bxslider {opacity: 1 ; Status: Stable; } .single-portfolio .bxslider li {list-style-type: none; Margin: 0; } I do not know how to remove the slider or how to find it. I want to keep it for other parts of the site but I do not want to use it on portfolio and single-portfolio pages. Edit: Oh wait, I misunderstood this problem? You do not want to hide the slider, but want to change the slider item to show as a list only? You are not trying to hide the slider with that CSS, it does what it says: Set opacity is completely visible on the scale of 1 to 0 to 1. Set the slider instead of displaying: none .single-portfolio .bxslider {display: none; } You, I believe, have a setting where you can

javascript - Rotate div after animation -

I am trying to make a type of crash test dummy, when you click on document The window will move right to my .person div and then tilt the face in the end, and then tilt back to its original position I got the CSS to work on the transform Is only your tilt div immediately and not at the end of the movement? Sorry if it is difficult to understand, I have created a JSFDial to explain ... // Click on me. The viewer div will move right, once it is moved, it needs to tilt forward and then backwards - like its one wall ... click on $ (document). On ('click', function () {$ ('. Person'). Animate ({"left": "+ = 250px"}, 500, crashimocutt (30));}); Function crash impedance (inclination) {$ ('. Person'). CSS ({conversion: 'rotate (' + tilt + 'degree)'}); } It requires a little work, but you do it completely in CSS By adding a class and chaining animation ... - (chrome) JS $ (document) .on ('click' ,

c# 4.0 - Enumerations : How to set value to the enumeration type class member? -

नीचे गणना की गई है। सार्वजनिक enum MessageType {सामान्य = 1, चेतावनी = 2, अपडेट = 3, ऑल = 4} क्लास सदस्य के साथ संदेश प्रकार के रूप में क्लास संदेश: पब्लिक क्लास संदेश {सार्वजनिक संदेशटैप संदेश प्रकार; } अब, नीचे विधि में मैं सीआरएम इकाई फ़ील्ड वैल्यू से संदेश प्रकार सेट करना चाहता हूं। लेकिन मुझे स्ट्रिंग को कनवर्ज़न करने के तरीके से कनवर्ट करने का तरीका नहीं मिल रहा है यहां। सार्वजनिक संदेश पॉप्युलेट संदेश (इकाई इकाई) {संदेश संदेश = नया संदेश (); संदेश। मेसेज टाइप = EntityExtension.ToString (इकाई, "as_message_type"); वापसी संदेश; कृपया धन्यवाद, मित्तल। आप एक enum मान में स्ट्रिंग को पार्स करने के लिए -मोन या -मध्य विधि का उपयोग कर सकते हैं। संदेश। मेसेज टाइप = (संदेश-प्रकार) Enum.Parse ( प्रकार (संदेश प्रकार), "as_message_type"); या संदेश प्रकार प्रकार; bool parseed = enum.TryParse & lt; संदेशप्रकार & gt; ("as_message_type", बाहर प्रकार); अगर (पार्स) {message.MessageType = type; }

c - Why casting NULL to a struct pointer? -

इस फ़ंक्शन में: omapi_object_t * inner; यदि (वस्तु) {waiter = (omapi_waiter_object_t *) 0; .... 0 को एक omapi_waiter_object_t पॉइंटर के लिए उद्धृत किया जा रहा है। उद्देश्य क्या है? मुझे पता है कि एक समान प्रश्न मौजूद है:, लेकिन इसका जवाब मैक्रो का उपयोग करने की वैधता के बारे में है। मेरे मामले में, कोई मैक्रो शामिल नहीं है मैं जानना चाहता हूं कि ऐसा क्यों किया जाता है। कभी-कभी लोग बस बेकार कोड लिखते हैं। वास्तव में कलाकारों को लिखने में कोई मतलब नहीं है।

android - Set Spinner id bt Java Code -

I know that my question is not good enough, but I really can not answer. My question is how You can add id file to your resorces in the value directory. For example: & lt ;? Xml version = "1.0" encoding = "UTF-8"? & Gt; & Lt; Resources & gt; & Lt; Item type = "id" name = "my_id" /> & Lt; / Resources & gt; You can then set this user spinner to id : yourspinner.setId (R.id.my_id );

c# - DropDownList in kendo grid control (by ClientTemplate) -

I need to create behavor for ClientTemplate like we have for EditorTemplateName. So I want to do something like this: Template: @ (HTML.Cendo). Dropdown ListFor (M = & gt; Me). Bundo ( (Selectlist) ViewData ["ExamResults"]). Template ("#: value # #: text #") .DataTextField ("text") .DataValueField ("value") .Events (E => E.Change ( "examResultOnDropDownChange") Open ("Exam result on open")) and adding column to the grid: .EditorTemplateName ("ExamResultGridForeignKey") But I want .ClientTemplate ("ExamResultGridForeignKey") or something like that (but it does not work): .ClientTemplate (Ht ("#: id = # id =") .bindto ((# # id #) .bindto ((Selection List) Data ["Exam Result"]). Template ("#: value # #: text #") .DefenseField (" Datewallfield ("value")) I do not need to make the field in editable mode with dropdown list (when we displa

sql - Oracle SUM returns false summary with identicals values returing from an SELECT UNION -

मुझे SUM कथन के साथ एक समस्या का सामना करना पड़ रहा है। यह क्वेरी रिटर्न MY_ID = 1 और QTY = 7 my_id चुनें, राशि (qty) की मात्रा से (1 my_id चुनें, दो वर्ग से दो वर्ग 1 my_id का चयन करें, 5 मात्रा दोहरे से) my_id द्वारा समूह; लेकिन यह एक QTY = 10 के बजाय MY_ID = 1 और QTY = 5 देता है। < / p> my_id चुनें, राशि (मात्रा) की मात्रा से (my_id का चयन करें, दोहरी संघ से 5 मात्रा 1 my_id चुनें, दोहरी से 5 मात्रा) my_id द्वारा समूह; दो मानों के मामले में मैं कैसे दो मात्रा का सारांश समान कर सकता हूं? यूनियन का उपयोग करें: my_id चुनें, राशि (मात्रा) की मात्रा से (1 my_id चुनें, दोहरी संघ से 5 मात्रा चुनें, सभी 1 चुनें My_id, दोहरी से 5 मात्रा my_id द्वारा समूह;

c# - Get info from API on Windows Phone 8 using JSON -

I'm new to the development of Windows Phone and I do not know what to do. I have an API which gives value to a football club. This is my server-side code: public function getInfostradaTable () {$ season = wp_cache_get ('seasonId', 'infostradaOverview'); If ($ Season == incorrect) {$ this-> getEditionInfo (); $ Season = wp_cache_get ('SeasonID', 'InfosourceOverview'); If ($ Season == incorrect) {return tap; }} $ Table = wp_cache_get ('Table', 'Infographic Databases'); If ($ table! = False) {return $ table; } And {$ this- & gt; getTableInfo (); $ Table = wp_cache_get ('table', 'infographicdate'); If ($ table! = False) {return $ table; } And {return tap; }}} This is a part of the jsonrpc file. How can I join APIs and get value using JSON? Take a look.

s3cmd Put file with spaces on their names -

The files are having problems putting or syncing them in a bucket with empty space on their names. Program freeze, no error message shown or not logged in. ... There was a problem syncing files many years ago, Those who had empty spaces were fixed with commissions fdfe03a57d20a1064f04282ee7bc3656041df918 Author: Michal Ludwig & lt; mludvig@logix.net.nz> Date: Sun 16 Nov 09:38:51 2008 +0000 Join the 0.9.8.x branch, Reliance 245: * S3 / S3,2: Escape Parameters in Strings Correcting coordinates of directories and ls with spaces (Thx Lubomir Rintel from Fedora Project) You can try to use the master branch and the problem with that version Can try again Within the master branch, the testers sync files with spaces in their names as part of standard test practices, so it is known to work with recent codes.

c# - How to mock viewmodel which is not a parameter of the action? -

Below is the code snippet of my work: - Editing Public Function (Int ID ) {ProductViewModel viewmodel = GetProduct (ID); If (View model! = Null) {....................}} if the code above is based on condition View MODEL. Which is returning to the GetProduct () method. Where GetProduct () method is the private method of the controller. And I want to duplicate ProductViewModel in my unit. Exam method with MOQ Can someone suggest me what is the best way to do this? Ideally your view model is only the public properties for which your ideas will be bound, so no such scenario Must be where you should be duplicate the View Model class. If this is possible, then duplicate the GetProduct method to return an incident to the productive visual model where the public property has already been set. In this way, your visual model will return your values, which you would like you to return it to your test case.

ruby - Disable hardware inputs on Selenium webdriver firefox -

I have a Ruby script to test the web page in Firefox. It sends mouse or keyboard events to the browser , But when the hardware mouse is moved, it affects my test. How can I configure Firefox to forget hardware mouse and keyboard events? You can use Xvfb to open for Firefox The virtual screen will provide. Actually you can run Xvfb with a screen number and by running export DISPLAY =: XX Firefox on that screen. You can use PhantomJS, but I will not recommend it because it is suspicious that any user will ever use it; It is better to test people with the browser they use.

html - Create link and url using jQuery -

मेरा HTML इस तरह दिखता है: & lt; div id = "Productcode" & gt; & lt; span & gt; उत्पाद संख्या & lt; / span & gt; 2100022 & lt; / div & gt; jQuery के साथ, मैं इस पर कोड बदलना चाहता हूं: & lt; div id = "Productcode" & gt; & lt; span & gt; उत्पाद संख्या & lt; / अवधि & gt; & lt; a href = â ???? http: //www.site.com/2100022 ???? & gt; 2100022 & lt; / a & gt; & lt; / div & gt; कोई भी विचार यह कैसे करें? धन्यवाद! आप तत्वों को पुनरावृति कर सकते हैं, अगर नोड TEXT_NODE (3) । फिर एंकर तत्व $ ('# ProductCode') के साथ पाठ नोड को बदलने के लिए उपयोग करें। (सामग्री ()। (यदि (this.nodeType == 3) {var elem = $ ('& Lt; a & gt;', {href: "http://www.example.com/" + this.nodeValue, पाठ: this.nodeValue}); $ (यह) .replaceWith (elem);}} ); संपादित करें बेहतर विकल्प है $ ('# ProductCode')। सामग्री () .each (फ़ंक्शन () (यदि (this.nodeType ==

bash - Multi line tab separated file to comma separated -

I have a large file that is different tabs The biggest problem is that I have to import the data into the database but some columns There are multi lines that are causing some problems, what I would like to do to convert the file, which converts the file into a different file than the right comma. Here is an example of a file (I will change the option of tab with pipe.): 1 | Some text | Second lesson. 12 | Bigger bigger text with lots of data and many lines and commas. 34 34 2 | Some text | Another text || There are basically two rows of data in the above example, what I would like to do: < Code> "1", "some text", "other text", "12", "bigger bigger text with lots of data and many lines" 34 "," 34 "," 34 "" 2 "," some Text "," Other text "," ", and another big big text with many letters in the tab", "33", "25" I can see Every full

perl - Merging two files with condition on two columns -

I have two files of type: File1.txt 1 117458 rs184574713 rs184574713 1 119773 rs224578963 rs224500000 1 120000 rs224578874 rs224500045 1 120056 rs60094200 rs60094200 2 120056 rs60094536 rs60094536 File <. 2 txt 1 0 119 600 C 0 233 150 122 1 119 600 119 800 D 0 205,92,92 1 119 800 120 400 F 0 192 192 192 2 120 400 122 000 B 0 128 128 128 2 126 800 133 200 A 0 192,192,192 I want to first file Add the information contained in the second file in the first column match in both the files, while the file is in 1.txt other This column should come in interval, which is displayed in file2.txt between 2 and 3. So that the output should look like this: 1 117458 rs184574713 rs184574713 c233,150,122 1 119773 rs224578963 rs224500000 d 205,92,92 1 120000 rs224578874 rs224500045 f 0 192,192,192 1 120056 rs60094200 rs60094200 f 0 192,192,192 2 120,440 rs60094536 rs60094536 b 128128128 Please awk me / perl .. or any other script. Try this..> $ awk 'NR == FN R {a [$ 1,

Sitecore 7 Lucene: strip HTML from computed field -

I am going to paste all the "paragraph" hair nodes together in the "Articles" node in a math field. An article can be found to get it & amp; To achieve this, I did not have the & lt; Fields hint = "raw: AddComputedIndexField" & gt; node: & lt; Field field name = "paragraphs" type the storage = "yes" type index = "tokenized" & gt; MyWebsite.ComputedFields.Paragraphs, MyWebsite & lt; / Field & gt; In this calculated field, I insert paragraph HTML HTML bodies together. I was assuming that the sitcom will leave HTML for me (like this is for rich text fields), but it does not. For the "Rich Text" field, this is probably a rich textfield reader that creates strips of HTML tags. This is confirmed by reducing the code. RichTextFieldReader is configured in the FieldReaders section. Trying to add a raw: AddFieldReaderByFieldName section below, does not seem to be anything. The

enum data types in switch statement c++ -

Bears with me first, I'm a noob I was trying to write a program that Outputs in weekdays. Say for example, if someone enters Day 1 then this happens on Sundays, 2 days Monday and so on. I used Switch Statement with an integer map on an NM for switch cases. I think the problem is that it does not work, at least not when I input day 1. It works as expected when I use int value from 1 to 7. I have tried to find the solution and only so that only the walls are being helped. Here is my code: daydays {day 1, day 2, day 3, day 4, day 5, day 6, day 7}; Int Day; Cout & lt; & Lt; "Enter the Day of the Day in Day 1"; CIN & gt; & Gt; day; Switch (day) {issue day1: cout & lt; & Lt; "Sunday"; break; Case 2: Cotton and LT; & Lt; "Monday"; If you want to get input like day1 code>, Day2 etc., why you have declared the input variable as int , it should be the char array. If you like the input 1 , 2 then it's o

avd - how to create Kindle fire device in geny motion? -

Hi, I want to make tools for burning fire tabs using 'Genomotion', but I can not see any device for this so that no one can help me. Currently, I know, no Amazon Tools Genymotion is not available on pre-configured device lists. You need a generic device for testing: ( I believe, may submit the correct information to the next information or request .

optimization - Optimize JSTL and ORACLE query creation and run time -

I have some code that makes an oracle call I was thinking that the way I was trying to do this I can be better or if Oracle code can be more efficient. The main point of my concern is UPPER ('%' variable% ') . Result can return to the result of 50 (the possibility of increasing in the future). 1 = 1's aim is simply to make the rest of the code simple and think that the SQL does not hurt much. & lt; c: set var = "sqltext" & gt; Select var1, var2, var3 to var_table WHERE 1 = 1 & lt; C: If test = "$ {! Empty param.var1}" & gt; And upper ('% $ {param.var1}%') like opiator (var1) & lt; / C: if & gt; & Lt; c: If test = "$ {! empty param.var2}" & gt; And the upper ('% $ {param.var2}%') like the opener (var2) & lt; / C: if & gt; & Lt; c: If test = "$ {! empty param.var3}" & gt; And var3 = '$ {param.var3}' & lt; / C: if & gt; & Lt; / C: Set &a

javascript - How can I make AngularJS filter on a nested property -

I have some data where one of its walks looks like this: {" "": "2014-04-22T08: 14: 10.285 Jade", "Dave": "Hedge hedge", "Gradeform": "4", "Gradeau": "7", "Owner": "martin @ forsstedt. false "," SVA ": false" "," school type ": {" name ":" grandscoal "}," subject "," false "," false " TN ": false}," title ":" test test "} What am I trying to do, when a user clicks on a button, which is $ scope with "re" .searchtext is true, with "iterations" only "subject": {"Re": true) should be displayed in. I Filtering is using the search string that works fine, but it does not filter through the first layer of properties such as "createDate", "desc" etc. through the "subject". & lt; tr ng- repeat = &quo

applet - Java 7u55 Security warning Issue -

Image
I use the jzebra signed version on one of my systems to print the label I am doing There was an issue where the applet was not loading on the Windows XP machine. When the Java version was confirmed (7u45) and I updated it up to 7u55. Now a strange problem has started coming to that system. whenever I send any label I try to print, this message then appears. As you can see that the warning is not complete, it tells Java applications up , where there is no information above. Mixed mode p> There is no problem on Wi-Fi 7 machines. Is there any solution because it is very important for my application? <div class = "post </ p> <p> </ p> <p> There is a problem with the Windows XP Java runtime, which is <strong> caller-acceptable-codebase </ strong>: <strong> & amp; Star; </ strong>, which was causing this problem. </ P> </ div> </ html><br /><br />

c# - CallMethodAction doesn't execute code-behind methods in Windows Phone 8.1 -

मैंने एक सरल XAML पृष्ठ बनाया है: & lt; पृष्ठ। डेटाकॉन्टेक्स & gt; & Lt; स्थानीय: मुख्य पृष्ठ दृश्यमॉडल / & gt; & LT; /Page.DataContext> & LT; अन्तरक्रियाशीलता: Interaction.Behaviors & gt; & lt; कोर: डेटाट्रिगर बीवियर बाध्यकारी = "{बाध्यकारी मायएनम्बर}" मान = "3" & gt; & lt; कोर: कॉलमैलाएक्शन विधिनैम = "टेस्टमिलेशन" लक्ष्य ऑब्जेक्ट = "{बाध्यकारी तत्व नाम = पृष्ठ}" / & gt; & lt; कोर: कॉलमैलाएक्शन विधिनाम = "देखेंमोडेलमैथ" लक्ष्यऑब्जेक्ट = "{बाइंडिंग मोड = वनवेज़}" / & gt; & Lt; / कोर: DataTriggerBehavior & gt; & Lt; / अन्तरक्रियाशीलता: Interaction.Behaviors & gt; & LT; ग्रिड & gt; & Lt; पाठ बॉक्स मार्जिन = "0" क्षैतिज एलाइन्मेंट = "केंद्र" वर्टिकलएलिन्मेंट = "केंद्र" टेक्स्ट = "{माइन्डिंग बाध्यकारी, मोड = दोवे}" टेक्स्टवॉपिंग = "लपेटें" / & gt; & Lt; / ग्रिड & gt; और इस पेज क

How to edit the second line in text file using batch? -

Do you have any idea of ​​editing the second line of a text file in a batch? I need this for my login system for batch. I am the second in the file named Data.db Edit the line, as you can not say Your system estimates that it may be in favor of Windows or Unix-Linux, I think the simple "Ed" does the trick. It is included in any Unix-Linux and it is ported to Windows. Direct link for ed.

javascript - How to build Modern front-end with non-Node.js backend? -

Normally I am backend and fullstack developer and take-lead I have been choosing Dev Dev in years. For back-end, I have chosen typeffa stock. This makes the apps responsive and makes it easy to scale and maintain. And it's fun to code in Scala. For Front-end, I use Angular.js, first it's Knockout. JS, YUI, Junkies, Junkies, Vanilla. But along with Angular.js I'm really confused the problem is not only in one tool, but the way the web develops. The aim is to tighten the application, make it more sensitive, responsive, interactive. This takes us to a one-page app Angular.js is good for it. But. For a modern app, it is extremely important to render the first page ASAP. For a single-page app, before solving this main template, before loading the script, launching the app, launching a routing request, asking for some resources, it can bind in a template , And then it is showing the user. Too many networks to wait for latency! Many sequential requests come after

php - Register Session Error (null) -

Issue: After login, it does not send home.php to index.php from my observation, session registers for both Can anyone help me have a tap? I am new to PHP. Thank you, sorry for poor grammar / English. Check login: & lt ;? Php ob_start (); Include ("connect / db.php"); $ Username = $ _POST ['Username']; $ Password = $ _POST ['password']; $ Username = stripslashes ($ username); $ Password = strip slash ($ password); $ Username = mysql_real_escape_string ($ username); $ Password = mysql_real_escape_string ($ password); $ Sql ​​= "SELECT * from the user where login = '$ username' and passwd = '$ password'"; If (! Mysql_query ($ sql, $ con)) {dead ('error:' mysql_error ()); } $ Result = mysql_query ($ sql); $ = Mysql_num_rows ($ result) count; If ($ count == 1) {$ rows = mysql_fetch_array ($ result); $ Member = $ rows ['member_id']; $ _SESSION ["iduser"] = $ username; $ _SESSION ["idmember"

python - List of arguments with argparse -

I am trying to pass a list of arguments with argparse, but the only way I have found Repeat the option for each argument I want to pass: What I currently use: main.py-arg arg1 -a arg2 And I want to: main.py -t arg1 arg2 ... Here my code Is: Parser.add_argument ("- t", action = 'append', destroy = 'table', default T = [], help = "") Use: Logic pacer objects are usually associated with the same action-line logic. nargs keyword logic associates a different number of command line arguments with a single action. For example, if nargs is set to '+' such as '*' , all the command line Arguments are collected in a list Additionally, at least one command line argument was not present, an error message would be generated. Then, your code will look like this Parser.add_argument ('-t', dest = 'table', help = '', nargs = ' + ') Automatically assemble in -t logic l

Magento "request timed out" when re indexing -

I have 3 indexes all stuck on "processing" I have tried to delete files in var / locks , I tried to edit the "connection" and "memory limit" in the .htaccess file and also tried to run a script call reindex.php, containg this code: & Lt ;? Php require_once 'app / Mage.php'; $ App = Dana :: App ('Admin'); Umask (0); ($ Index = 7; $ index & lt; = 8; $ index ++) {$ process = Mage :: getModel ('index / process') - & gt; Load ($ Index); $ Process & gt; ReindexAll (); } However, when this code is run, I am still getting the "request timed out" error, I really need help because my search does not work at all Is due to being live and my site is live at weekends. I do not have to change the strongest encoded word in the world and I have seen some fix on the trial at the command prompt, but I do not know how to do it, if you are going to give it advice, then I have stepped up the step by step guide I would

Debian package for boost libraries -

I want to create a Debian package for boost libraries but there is no makefile in it, so I have no idea how without makefile Can you guide me to move forward to make a package? with the makefile all: .bootstrap.sh ./ B2 --build-dir = / tmp / boost-build and whatever you need

xpath - Get the latest date in the Xpath1.0 -

I have a requirement where I need the latest date from XML below. In Expath 2.0, there is a function named Maximum () but using Xpath1.0 . & Lt; Information & gt; & Lt; Date & gt; 2014-04-21 & lt; / Date & gt; & Lt; / Info & gt; & Lt; Information & gt; & Lt; Date & gt; 2014-05 -05 & lt; / Date & gt; & Lt; / Info & gt; & Lt; Information & gt; & Lt; Date & gt; 2014-04-28 & lt; / Date & gt; & Lt; / Info & gt; Expected output: 2014/05/05 (day / month / year) Any inputs ?? Actually there is a small change in my XML, following my XML (additional parent node is added). & lt; Custom Content & gt; & Lt; Information & gt; & Lt; Name & gt; ABC & lt; / Name & gt; & Lt; Date & gt; 2014-04-21 & lt; / Date & gt; & Lt; / Info & gt; & Lt; Information & gt; & Lt; Name & gt; Def & lt; / Name & gt; & Lt; Date &

sql - Minimum and Maximum values --Oracle -

Trying to get this output: Obtaining this output in Oracle 8i Trying: Column 1 | Time ________ _______ ABC 00:00:01 END | 01:00:03 123 | End | ABC | 00:00:08 END | ABC | 00:00:10 END | 01:00:10 with this output from another query column1 | Starttime | Endtime | ID ________ | ___________ | ___________ | ABC | 00:00:01 | 01:00:01 | 1 ABC 00:00:02 | 01:00:02 | 1 ABC 00:00:03 | 01:00:03 | 1 123. 00:00:04 | 01:00:04 | 2 123 | 00:00:05 | 01:00:05 | 2 123 | 00:00:06 | 01:00:06 | 2 123 | 00:00:07 | 01:00:07 | 2 ABC 00:00:08 | 01:00:08 | 3 ABC 00:00:09 | 01:00:09 | 3 ABC 00:00:10 | 01:00:10 | 4 This query only receives the minimum and maximum for the start-up column: SELECT (CASE WHEN NN = 1 THEN column 1 ELSE 'END' END) as the column 1, (for the first time with the KSENENNN = 1, ELSE last time END) for the first time as "time" (select column 1, id, minute (initial time), max (start time) Lastly join T-Group, column 1, ID) Join T cross (Select from Dual Un

python - How to avoid axis values with 1e7 in pandas and matplotlib -

By using the code given below it produces a plot where the y-axis is 0.0 to 2.5 1e7. How can values ​​be saved with 1e7? Import Pond as PD imports as plpl a = {'test1'}: {1: 21867186, 4: 20145576, 10: 18018537}, 'Test2': {1: 23256313, 4: 21668216, 10: 19795367}} d = pd.DataFrame (a). #print df = plt.figure () plt.title ('title here!', Color = 'black') d.plot (type = 'bar', ax = f.gca ()) plt.show () like the example below ticklabel_format (style = 'plain') . Import pandas as pd import matplotlib.pyplot as plt a = {'test1': {1: 21867186, 4: 20145576, 10: 18018537}, 'Test 2': {1 : 23256313, 4: 21668216, 10: 19795367}} d = pd.DataFrame (A). T # printing df = plt.figure () plt.ticklabel_format (style = 'plain') plt.title ('title here!', Color = 'black') d.plot (kind = 'bar', ax = f. GCA () plt.show () I hope you only want this.

eclipse - java.lang.UnsupportedClassVersionError: org/openbravo/base/ConnectionProviderContextListener : Unsupported major.minor version 52.0 -

Image
I am using eclipse indigo running on Ubuntu and I want to install a tomcat server after the last part of this guide. I'm trying to: My problem is that when I try to boot the Tomcat server, I get this error (on the local host server tomcat v6 .0 The server fails to start.): I console looks like this: because: java.lang.UnsupportedClassVersionError: org / Openbravo / base / ConnectionProviderContextListener: unsupported MAJOR.MINOR version 52.0 (no puedo Cargar clase org.openbravo.base.ConnectionProviderContextListener) at org.apache.catalina.loader. WebappClassLoader.findClassInternal (WebappClassLoader.java:2822) org on org.apache.catalina.loader.WebappClassLoader.findClass (WebappClassLoader.java:1159) on org.apache.catalina.loader.WebappClassLoader.loadClass (WebappClassLoader.java:1647) .apache.catalina Loader.WebappClassLoader.loadClass (WebappClassLoader.java1526) at org.apache.catalina.startup.WebAnnationSet.loadClassAnnotation (WebAnnotationSet.java:145) at o

javascript - jQuery getting height of div returns 0 -

मेरे पास एक jquery html ऑब्जेक्ट है: var $ header = $ ('& lt; Div id = "print-header" class = "print-header" शैली = "चौड़ाई: '+ this.previewWidth +' px; min-height: 190px;" & gt; & lt; / div & gt; '); जब मैं इसे console.log ($ header) के साथ आउटपुट करता हूं; मैं ऑब्जेक्ट देख सकता / सकती हूं। अब उसके बाद के लिए आता है लूप जो फ्लोट के साथ तत्वों को जोड़ता है, $ header वस्तु के लिए (var i = 0; i & lt ; $ Form.length; i ++) {var $ विजेट = $ रूप [i]; Var wHtml = '& lt; div class = "element" style = "width:' + $ widget.size_x * 10 + '%; ऊँचाई:' + $ विजेट.size_y * 10 + '%; float: left;" & gt; '; स्विच ($ widget.widget_name) {केस "textFieldWidget": wHtml + = '& lt; div शैली = "सीमा नीचे: 2px बिंदीदार, चौड़ाई: 100%; ऊंचाई: 30px; मार्जिन: 5px;" & gt; & lt; अवधि शैली = "स्थिति: रिश्तेदार; फ़ॉन्ट-आकार: 11px; फ़ॉन्ट-शैली: