Posts

Showing posts from February, 2015

On input of long escaped property value in LESS, how to split it to a newline -

After Suppose I have a long escaped property value In order to lower the input I can get it to produce a new row like @nl for output with new-lines in the final formatted CSS : `` \ n "` ; and use the property values ​​in my saved string output new lines: @nl: `" \ n "`; .test {property: ~ "one, @ {nl} two"; } It will output: .test {property: one, two; } The question is whether input with something new lines, something like this: .test {property: ~ "One, two"; } This throws a parse error: unrecognized input in low A long set of property values ​​may start with someone, starting with new lines, and being able to code it will benefit. Although I posted the answer to my own question which I found was working, if it is present then I am open to a simple one. Good, one solution I found that each row escaped its own Put it in string So it seems to work quite well for both input and output (depending on what tab s...

c# - Windows Workflow: Output from CodeActivity to input on next CodeActivity -

I can figure out how I pass data from a custom CodeActivity as a result in the next CodeActivity, I'm trying to An input sequence as Here is the code I have so far: private static void DemoWorkflow () {var s = new sequence () {DisplayName = "Sequence1" , Variables = {New Variable & lt; String & gt; {Name = "TestParam", default = "hello"}}, actions = {new method 1 () {text = "test 1234"}, new Method2 ()}}; Var settings = new TextExpressionCompilerSettings {AlwaysGenerateSource = true, ActivityName = "sequence", ActivityNamespace = "System.Activities.Statements", ForImplementation = false, activity = s, language = "C #", RootNamespace = null, GenerateAsPartialClass = false} ; Var result = new TextExpressionCompiler (settings) .Compile (); If (Result. Horse Errors) {new exception throw ("compilation fail."); } Var compiledExpressionRoot = Activator.CreateInstance (result. ResultType, new O...

C++ dll in Vb.net -

वीबी। नेट & lt; dllImport ( "MyCtesting.dll") & gt; _ निजी साझा उप परीक्षण (ByRef _IMSS_TEXT स्ट्रिंग के रूप में) अंत उप प्राइवेट सब बटन 1_Click (सिस्टम के रूप में। प्रेषक, ByVal और सिस्टम के रूप में। EventArgs) बटन 1 हैंडल्स। क्लिक करें परीक्षण (Label1.Text) अंत उप सी ++ बढ़ावा :: lexical_cast; बढ़ावा :: bad_lexical_cast का उपयोग कर; Extern "c" __declspec (dllexport) शून्य परीक्षण (std :: string & amp; name) {for (int i = 0l; i & lt; 10; i ++) {name = lexical_cast & lt; स्ट्रिंग & gt; (i); }} यह त्रुटि क्यों फेंक रहा है सुरक्षित मेमोरी को पढ़ने या लिखने का प्रयास किया यह अक्सर एक संकेत है कि अन्य स्मृति भ्रष्ट है। अग्रिम धन्यवाद।

php - magento - Send tracking with shipment -

I have tried repeatedly to write some modules for editing hacking and shipment APIs, Email saved the tracking () method (I know it's bad, I've returned it) and still not yet to find a solution to this problem Currently we have Site Setup is why we send order information to a Quick Books Mediator May include, and then it would receive as a ship orders through the xmlrpc. The strange thing is that tracking information is never sent with shipping email and always comes in the form of a custom tracking number, though it is a UPS number. Am I crazy here, or am I completely forgetting something? I thought about it's light madness would be great in any direction EDIT: We are using FishBol accelerated integration. I have dropped lots of blogs and several blogs in an attempt to find the right answer to this question. I include: Thank you very much for your time. Let's frustrate you further, perhaps try to see a better API than the UPS API ? It seems like very di...

android - ActionBar Style doesn't work -

मैंने इसे Values ​​\ Styles.xml फ़ाइल में डाल दिया है: & lt; संसाधनों & gt; & Lt; शैली का नाम = "ऐपथीम" पेरेंट = "एंड्रॉइड: थीम.लाइट" & gt; & Lt; आइटम का नाम = "एंड्रॉइड: एक्शनबारस्टाइल" & gt; @ शैली / मायएक्शनबार & lt; / item & gt; & Lt; / शैली & gt; & Lt;! - एक्शनबार शैली - & gt; & Lt; शैली का नाम = "मायएक्शनबार" मूल = "एंड्रॉइड: शैली / विजेट.होलो। प्रकाश। एक्शनबार। सोलिड" & gt; & Lt; आइटम का नाम = "एंड्रॉइड: पृष्ठभूमि" & gt; @ रंग / शीर्षकबागकार & lt; / आइटम & gt; & Lt; आइटम का नाम = "android: textcolor" & gt; @ रंग / titletextcolor & lt; / item & gt; & Lt; आइटम का नाम = "एंड्रॉइड: टेक्स्ट साइज़" & gt; 40sp & lt; / item & gt; & Lt; / शैली & gt; & Lt; / संसाधन & gt; मैं एंड्रॉइड 4.0.4 पर इसका परीक्षण करता हूं। यह इससे ठीक से मदद नहीं करता है: एक्शनबार बार = मिलनएक्शनबार (); ...

outlook - VBA script to cleanup deleted folder not working -

I am trying to transfer emails to the deleted folder which is more than 21 days with "Xtremevbtalk" in the subject line Here are the code: emptydeletedfolder () deferred oSource Outlook.MAPIFolder dim oTarget Outlook.MAPIFolder DueDate21days as dated as dated ItemsOverDays Outlook.Items dimDitToCheck string Date21days = as of dateADD ("d", -21, now ()) Date21days = format (Date21days, "dd / mm / yyyy") set oSource = Application.Session.GetDefaultFolder (olFolderDeletedItems) oTarget = oSource.Folders ( "_ old") DateToCheck = "[get] & lt; =" "" & amp; Date is 21 days & amp; "" "" Set ItemsOverDays = oSource.Items.Restrict (DateToCheck) i = 1 for ItemsOverDays.Count -1 for -1 if ItemsOverDays.Item (itm.Subject, "Xtremevbtalk") & gt; 0 Then ItemsOverDays.Item (i) .move oTarget from end to end, then set ItemsOverDays = nothing set oTarget = nothing set oSource = nothing End Sub ...

mobile - zurb foundation top navigation bar change breakpoint -

I want to get the top nav bar in the first menu by default by default on the foundation page because the lower ridge desktop screen But it does fall semi and neither in mobile view or full desktop view. I tried to modify the following line: @ media only screen and (minimum-width: 40.063em) {& lt; --- This is the line that I have changed. Top-Bar {background: # 333333; Zoom: 1; Overflow: visible; } ----- Many more rows ------------------------- has done this work , As the bar fell again in the sizing, but the menus stopped working. Any ideas as to how I can accomplish this? Any help would be greatly appreciated, thanks (the way I am using the foundation 5) I know this is an old question but if you have not yet received the answer, or for someone else who is looking at it ... It seems that you were far from the good start. Line 1662 around @ media only screen and (minimum-width: 99 99px) {.top-bar {background: # 333333; Zoom: 1; Overflow: visible; } But y...

css - What determines whether text is able to be highlighted using 3-finger tap to define on OS X? -

Image
In OS X, there is a trackpad option called "Touch up - Tap with three fingers" What determines the text to highlight Can be defined / not? Edit: Priority: For example, details of projects featured can not be defined. (Try defining javascript under jquery / jquery.) Text and answer can be defined by the second hand in this question: Is the CSS determining this behavior a set of rules? I think it can be limited to Google Chrome as both work in Safari. This result seems to have been fixed for whom.

r - Phylogenetic tree -

Image
I am working to keep a phosphatic tree based on the data-data of genes. Below is my subset of data (test txt). The tree is not built on any DNA sequences, but it is considered as just words. id gene 1 gene 2 1 ADRA1D ADK 2 ADRA1B ADK 3 ADRA1A ADK 4 ADRB1 ASIC 1 5 ADRB 1 ADK 6 ADRB 2 ASIC 1 ADRB 2 ADK 8 AGTR 1 ACH 9 AGTRRA 1 ADK 10 ALLOX 5 ADRB 1 11 ALOX 5 ADRB 2 12 ALPPL 2 ADRB 1 13 ALPPL 2 ADRB 2 14 AMI 2 AGR 1 15 AR ADRAA 1 AR ADRAID 17 AR ADARA 1B 18 AR ADARA 1A AR ADRAAAA A20 AR ADA 2B Below is my code r Library (Ape) tab = reed CSV ("test.tx Code> My data is attached here I have a question about how the cluster is. Since the pair 17 AR ADRA1B 18 AR ADRA1A and should be compressed closely as they have a common gene. 17 and 2 should be together, and 18 and 3. Should I use any other method, if I am wrong to use this method (Euclidean distance)? Should I convert my data to the matrix of rows and columns, where the gene is 1 x-axis, and the...

design patterns - How to create custom scrollable views in android? -

I have to implement a custom view that loads the contents from the remote location and puts them one by one below the other One option is to use custom adapter and list view. What is the preferred method in Android that can be used in other pieces?

SignalR supplying authorization token -

I am struggling to decide how best to add authentication and authorization in my signal R service. Currently it is hosted with a WebAP 2 web service in Owen, I use the OAuth2 carrier token to authenticate with those people, and it works perfectly though, me Wondering whether they are suitable for SignalR? My client is Javascript-based, and if the signal is available then the indicator uses WebSockets. This means that I can not use the authorization header. I came to know that before connecting, I can supply tokens using but an OAuth2 access token will surely expire (and in my implementation relatively soon). I think that updating the qs property will not make a difference once specifically connected (especially with web sockets). I think my question is, what is the best way to supply a safety token, ticket, or any type of authority information for Signal R? Preferably there is a method that can be compatible with my WebAP and Signal R, but I want to know that I am want doin...

javascript - Fetching input box value on submit button click -

I am working on a game using the ImpactJS engine and I A basic form has been created, which includes the input box and the submit button I am able to get the value from the input box, but I want to get the click when the player submits to whatever they believe in the input box Able to get that value on No need. If the value is zero then I should get a warning "no value or whatever" I want to use this final value and want to allocate it to a variable, to keep track of input from within the game I can use my javascript files inside the impact engine. I am new to HTML, CSS in general, so I do not know how to achieve it. Below is my HTML / CSS code that has an input box and a submit button To display the input box and submit the button using Jquery, enter the ImpactJS code in my block code Problem performance: Work () {this.SsetQuestion ('This is a title', 'This is where the body will go and it will be long and impossible to understand for reading....

excel - Is it Possible to Sort (Colored) Cells After They Have Been Conditionally Formatted? -

Image
I have formulated 6 cells in the row on the basis of three colors (green, red and black). One cell is green, two are red, and three are black. There is a way to sort them with green-red-black color, because sorting them does not work manually. Based on Excel 2007, but I suspect all subsequent editions are: OOP's comment "This does not help" Maybe I'll be taken I had formatted 6 cells in a row really:

python - How to append new data onto a new line -

मेरा कोड इस तरह दिखता है: def storecores (): hs = open (" Hst.txt "," a ") hs.write (name) hs.close () इसलिए यदि मैं इसे चलाता हूं और" रयान "दर्ज करूँ तो इसे फिर से चलाएं और" बॉब " फ़ाइल hst.txt जैसा दिखता है रायन बॉब के बजाय रयान बॉब मैं इसे कैसे ठीक करूं? यदि आप एक नई लाइन चाहते हैं, तो आपको एक लिखना होगा स्पष्ट रूप से। सामान्य तरीका यह है: hs.write (name + "\ n") यह एक बैकस्लैश एस्केप का उपयोग करता है, \ n , जो पायथन स्ट्रिंग लीटरल में एक नए वर्ण को परिवर्तित करता है। यह आपकी स्ट्रिंग, नाम , और उस नए पंक्ति को एक बड़ी स्ट्रिंग में जोड़ता है, जो फ़ाइल को लिखा जाता है। इसके बजाय एक बहु-लाइन स्ट्रिंग का उपयोग संभव है , जो इस तरह दिखता है: "" "" " या, आप कॉन्कटाइनेशन के बजाय स्ट्रिंग फ़ॉर्मेटिंग का उपयोग करना चाह सकते हैं: hs.write ("{} \ n" .format (name)) यह सब ट्यूटोरियल के अध्याय में समझाया गया है।

php - Permutations and data combos crapping out the memory -

I need a special function to generate the program so that I can compare the data. Minimum 2 (no single) I do not believe it is possible (at least one shared server) None of these (1 1 1 3 is fine, but 1 is not 1 1 1) I really need to be able to include repeated items (1 1 1 4 5) I am currently using this function: It is currently unsuccessful on a tired memory (128 m) for an array of 25 elements

Data-link layer libraries linux kernel -

I am implementing the routing protocol. To work for this, I need to know the failures on the data-link layer. I have the library available in spite of the underlying data-link layer protocol, which gives me hooks (like netfilters) to capture such information Since this is an experiment on the protocol, I am trying to figure out what is available, whatever is available so that it can be implemented in user-space, etc. Instead of writing kernel modules same. (Since I'm completely new to kernel programming) Any head-up will be really helpful for this.

jquery - getting class of dynamicly created parent element on keypress in dynamicly created child input -

Good day I need to get a dynamically generated div id when I dynamically build input inside that div Hit a key in I create them at the same time after clicking on the button: HTML: & lt; Div id = "known" & gt; & Lt; Button ID = "Create" & gt; Create & lt; / Button & gt; & Lt; / Div & gt; Jquery: $ (document) .ready (function () {$ ("# create") .On ("click", function ( ) {Var num = 0; $ ("# known") enclosed (" This part is very clear, but when I have to attach the function, I can not solve the problem because this id does some work, so it will work. I tried it like this: $ ("Get_id"). ("Keypress", function () {var id = $ (this) .Parent (). Attr ("id"); warning (id);}); But it is used to work, because the element does not exist with the class get_id when the page loads, and if I add it to the next higher element which is in its div Existed, so I ca...

azure - Will "Always On" setting prevent BOTH idleTimeout and periodicRestart? -

Do you know, websites hosted under the Microsoft AZur Web sites service by default are 20 minutes (inactive Timeout) and application pool to restart every 29 hours (periodic restart). The reason for this is that the web site is slow to first access the user. I would like to know whether the setting available on the new "Always On" standard mode both let me mention this feature There are some articles that are available, they are all very clear that the idle time will come to an end, but none of these clearly speaks about recurrent restart: Another useful web site One of the features that we are starting today is a feature that we " Esha current call ". When a site is always turned on, Windows Azure will automatically ping your web site regularly to make sure that the web site is always active and useful in the hot / running state. That site is always responsive (and that the lack of external domain requests does not cause the app domain or worker proc...

floating point - Using floats for counters - Any problems? -

I see a sphere uses float 64 as code counter, does it lack accuracy on some Creates a problem with the point? In particular, all the integers are shown in the category covered by Flat 64? If not, when do I start walking into problems? When do I run out of completed integers? If you are thinking, then the reason for using FlatA 64 as a counter is because it is part of a [float64] which holds several metrics that are not integers, I say the Gong specification , "FlatA64 is a set of all IEEE-754 64-bit floating-point I number." Which is commonly known as double exact number, You can read all your glory details if interested, To answer your question, quote, "... the next border, 2 53 to 2 54 , everything multiplied by 2 It is done ... " So if you want to use it as a counter, i.e. positive integer, you will not have problems till 2 53 = 9,007,199,254,740,992.

php - Parse error: syntax error, unexpected '$_POST' (T_VARIABLE) error and i just cant understand why? -

I am trying to write this simple class in php as follows: Lt;? Php session_start (); 'Db_con.php' is required; Class logging {private $ db; Private $ username = $ _POST ['usr_name']; Private $ password = $ _POST ['usr_pass']; Personal $ query = "SELECT * by user WHERE nick = '$ user name'"; Function __ conversion () {$ this- & gt; Db = new db (); } Function loggIn () {$ res = $ this- & gt; Db- & gt; Fetch ($ query) foreach ($ res as $ line) {$ dbusername = $ row ['nick']; $ Dbpassword = $ line ['pass']; } If ($ user name == $ dbusername & amp; $ password == $ dbpassword] {$ _SESSION ['username'] = $ dbusername; Header ('location: index.php'); } Hold (exception $ E) {echo'wrong login information! '}}} Function loggOut () {session_destroy (); }}? & Gt; But I am getting the following error: Parse error: Syntax error, unexpected '$ _POST' (T_VARIABLE) and I just can not u...

javascript - Can't change position of 'Select' element (ASP.net) -

I try to use the bootstrap dual listbox here. My problem is that the double list box is always left I can not change it, I try to write style attributes in the 'Selection' element, and try to link to the CSS file, but nothing works. This code is: & lt; Body & gt; & Lt; Select id = "sele" multi = "multiple" size = "5" name = "list box" class = 'demo 2 col-md-3' style = "text-align: center" & gt; For & lt;% (Int i = 0; I & Lt; Option value = "& lt;% = i% & gt;" & Gt; & Lt;% = i% & gt; & Lt; / Options & gt; & Lt;%}% & gt; & Lt; / Select & gt; & Lt; Script & gt; Var Demo 2 = $ ('.demo2'). BootstrapDualListbox ({nonselectedlistlabel: 'Select', Selected list label: 'selected', protected selection: 'gone', move: option: false, from initial: ''}); & Lt; / Script & gt; & Lt; Script src ...

javascript - Default tabs in Ajax -

I'm trying to load a default tab in the tabbed Ajax code, which is the head tag & lt; Script src = "http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js" & gt; & Lt; / Script & gt; & Lt; Script src = "http://www.hastiefitness.com.au/wp-content/themes/hastie/jquery.fwd_tabs.js" & gt; & Lt; / Script & gt; And this is what I am using in HTML: & lt; Div class = "tabs" & gt; & Lt; Ul class = "tab-menu" & gt; & Lt; Li & gt; & Lt; A href = "# tab-1" & gt; Team training program & lt; / A & gt; & Lt; / Li & gt; & Lt; Li & gt; & Lt; A href = "# Tab2" & gt; Virtual education and coaching programs & lt; / A & gt; & Lt; / Li & gt; & Lt; Li & gt; & Lt; A href = "# tab3" & gt; Private coaching program & lt; / A & gt; & Lt; / Li & gt; & Lt; / Ul & gt; ...

Funm @Sin VS Sin of Matrix Matlab -

If I have a matrix then A = [0.64 0.42; 0.42 0.97] In Matlab, why sin (A) give me a different result than funm (A, @ sign)? Will I expect them to be the same? The brain (A, @ sin) calls a matrix sin operation, which is a separate operation. Sin (A) call, which is the sin of every individual entry in the matrix. Matrix is ​​done instead of sin based on the calculation of a power series, as defined here: How is this page used for a matrix sin It also provides good discussion about it, and how is it different to the sin of a personal element

bash - Ubuntu gives "cannot execute binary file" error when I execute C++ program -

I have just written the code in some visual studio and trying to run it on my school's Linux server through the shell I am Code runs fine in Visual Studio and complies with g ++ in Linux but bash *. /.outout * or bash * file_name * / code>. I think there is some syntax which I accept in VS 2012, but does not translate it into running on the server. This program means that it is for setting up whether the two users have union or intersection between the recorded sets. Can anyone tell me what I am missing after seeing my code? Thus far I have been able to #include & lt; Cstring & gt; has to be done to compile but there was nothing besides this #include & lt; String & gt; # Include & lt; Iostream & gt; # Include & lt; Set & gt; # Include & lt; Cstring & gt; using namespace std; Int main () {string set1, set2; String extra 1 [100], extra 2 [100]; Cout & lt; & Lt; "Enter your first set" & lt; & Lt; ...

Is it possible to write javascript with Java in a jsp -

If I had a code like this, can I run it without problems? I think JavaScript will run before javascript, so there will be no problem in JavaScript, but I have not done this before: This is a very bad programming style, but yes, it is possible. The code I'm working on now has done some very similar things. I think you really want to: & lt; Script type = "text / javascript" & gt; & Lt;% = functThatOutputsJavascript ()% & gt; & Lt; / Script & gt; And in fact, you can make worse by using Java Conditions to modify JavaScript output: & lt; Script type = "text / javascript" & gt; While (i> gt;) {{if (servervor)) {%> Console.log ("The server says yes!"); & Lt;%} Other {%> Console.log ("The server says!"); & Lt;%}% & gt; } & Lt; / Script & gt; If the server server is correct, then it will output to this code: & lt; Script type = "text / javascript"...

Call a function with multiple arguments inside uniroot in R -

I am trying to call functions with many arguments within uniroot, to solve the value of x and find for. The code below mean1 = 0 means2 = 1 sigma1 = 0.5 sigma2 = 0.5 priors1 = 0.6 priors2 = 0.1 threshold = function (mu1, sigma1, mu2, sigma2, prior1, prior2, x) {(Dnorm (x, mu1, sigma1) * prior1 - dnorm (x, mu2, sigma2) * pre 2)} uniroot (threshold (meaning 1, sigma1, mean2, sigma2, prior 1, priusus2), c (0,5)) But uniroot failed to call, function is expected to pass X as well, how do I solve it? Wrap your function in a function, which takes an argument: uniroot (function (x) threshold (mean 1, sigma1, mean2, sigma2, prerears 1, prerequires 2, x), c (0,5))

javascript - Node.js sporadically failing to write file with: Error: ENOENT, open 'filename' -

I am working on a node.js application which accesses the file system. In my trial, I've noticed something very strange that Google is not able to answer for me. My code works up to 95% of the time, however, on occasion, I get this error: "Error: ENOENT, open 'test.Q3rax'" where test.Q3rax generates a random File name is That file should be writable, and if I run my code again, in which the file name is hard, then it works fine. Here is the code where this has failed: NPJSON.protipip.litefile = function {new data} {if (loaded!!) (Error!): Error: NPJSON The written file () was called before any data was loaded. "; Var stringToWrite = JSON.stringify (new data); Fs.writefile (this.fileName, stringToWrite, function (mistake) {if throw (mistake) throw;}); }; Edit: For clarification, I am generating random file names like this: var filename = 'test.' + GetRandomText (5,6); Function getRandomText (numberOfCharactersLow, numberOfCharactersHigh...

java - Eclipse won't allow me to use an else statement while trying to validate user input -

आयात करें java.util.Scanner; आयात java.util.Random; सार्वजनिक कक्षा यादृच्छिक {सार्वजनिक स्थिर शून्य मुख्य (स्ट्रिंग [] आर्ग्स) {System.out.println ("===== CS302 टूल बॉक्स ====="); System.out.println ("T & gt; सीओआईएन टॉस सिमुलेटर"); System.out.println ("G & gt; ग्रेड इस्टिमेटर"); System.out.println ("सी & gt; रंग चुनौती"); System.out.println ("Q & gt; QUIT"); System.out.print ("अपनी पसंद के लिए लिखें कोड पत्र:"); स्ट्रिंग मेनुचोइसेस = "टीजीसीक्यू"; स्ट्रिंग initial_input = scanner.next (); स्ट्रिंग code_choice = initial_input.toUpperCase (); बूलीयन code_letter; If (code_choice.equals (Menuchoices.substring (0,1)) || code_choice.equals (मेनुचोइसेस.sबस्ट्रिंग (1,2)) || code_choice.equals (मेनुकोइसेस.sबस्ट्रिंग (2,3)) || code_choice.equals (Menuchoices.substring (3,4))); {System.out.println ("सफलता");} {{System.out.println ("विफलता")}}}} ईक्लिप्स मुझे यह और नहीं डाल देगा किसी...

java - Conditionally concatenate strings in for-loop, or use predefined string -

मेरे पास निम्न हैशमैप : निजी हैशमैप & lt; स्ट्रिंग, टीम & gt; AllTeams = नया हैशमैप & lt; स्ट्रिंग, टीम & gt; (); मैं अपनी लीग में स्ट्रिंग सभी टीमों के रूप में वापसी करना चाहता हूं, अन्यथा कोई संदेश "लीग में कोई टीम" नहीं लौटाएगा। I इस कोड को लिखा है: सार्वजनिक स्ट्रिंग getTeam () {स्ट्रिंग x = ""; (टीम टीएम: allTeams.values ​​()) {if (tm.getStatus ()। बराबर ("जोड़ा गया")) {x = x + tm.toString (); } और {x = "आपकी लीग में कोई टीम नहीं है"; }} वापसी अस्थायी; } अगर मैं सशर्त बयान का "और" भाग को निकाल देता हूं तो कोड काम करता है। हालांकि अगर मैं "और" भाग को रखता हूं, तो मैं आपकी लीग में कोई टीम नहीं है "और मैं समझता हूं कि एक बार जब सभी टीमों को लौटा दिया गया था, तो वापसी करने के लिए कोई और टीम नहीं होगी, इसलिए बयान का" और "हिस्सा हमेशा मुद्रित होता है। मैं कैसे कर सकता हूं यह काम करने के लिए मिलता है? एक तरह से जांचना होगा कि क्या x पाश के बाहर खाली है , और इसे सेट क...

objective c - obj_msgSend function pointer crash when build with 64bit arm64 -

Actually my basic code works well with Xcode 5.0.2 and is also great for sending app stores: objc_msgSend (self.target, self.successAction, category); This line crashes with Xcode5.1 Beta 5. I got the solution to fix the accident: // Solution ID (* response) (id, sel, id) = (id (*) (id, sel, id)) objc_msgSend; Feedback (self.target, self.successAction, category); And when using the recommended solution I would like to use Xcode 5 or Xcode5.1beta to test on the device (iPhone 5s) or simulator (32 bit or 64 bit) The problem is not found. Architectures set in Build Settings "Standard Architecture in XX5 (ARM 7, ARM 7)" and "Standard Architecture (ARM 7, ARM 7, AR64)". However, my new version of the app is ready for sale on the App Store today and it crashes on every device (iPhone 5S, 5, 4S) (according to Crashcat report). Since I do not get an accident using Xcode (build on real device), I do not know whether I fix the problem or not before reviewing...

java - Android imageview not being recognized -

I have an image view in an activity that I am trying to use to display the first image in the list (Which will be switched when another image is selected from the gallery) Android: image = "@ + ID / image view 1" Android: layout_margintop = "100 dp" Android: Layout_width = "250dp" Android: layout_gujarita = "center_horizontal" Android: layout_height = "250dp" Android: src = "@drao Force / Image 1 "/> Now my RJA has the following code: Public Fixed Last Class Drawable {public static last int ic_launcher = 0x7f020000; Public fixed integer image 1; Public static integer image 2; Public static integer image 3; Public static integer image 4; Public static integer image 5; Public static integer image 6; Public static integer image 7; Public static integer image8; } But Eclipse does not like it and I am unable to launch this application. Similarly, I have a Magellary Class and Adapter that are responsible for man...

java - Collision Detection for fast-moving objects -

I am writing my first game for Android, and there is an issue with conflict investigation. The game has a scrolling scene in which the block leaps, and should be dependent on tall buildings. The problem is that the block is often terminated through the floor, because the frames are not updated fast, I have tried to detect a collision in a different thread, and when it seems to be a bit different, it is still not great is. When I manually compensate by setting the height for the next frame, I'm afraid that for a slower device than my Nexus 5, the object will easily fall through the building because it is sometimes on this device My code is as follows: Public zero physics () {// player generated rectangle player.set (x1, y1, x2, y2); // Check Building Rectangle (player.intersects (x1, y1, x2, y2)) {character.collide (); }} Can anyone tell me in the right direction to detect it with accuracy? I can not find any answer that is in line with my needs. Thanks! Assume that o...

jQuery AJAX POST to PHP issue -

I'm trying to evaluate the value of id , which should pass with POST Returning to jQuery call {'id': '99'} for PHP, which is fine if id is not equal to 0. I wonder why ($ x == "0") is not being evaluated on true in my PHP function. Any help would be greatly appreciated! Thanks in advance. jQuery: $ (document) .ready (function () {$ .ajax ({url: '/more.php', type: 'post', Data: JSON.stringify ({"id": "0"}), success: function (data) {$ ("body"). Append (data);}})}}; If (isset ($ _ POST ['id'])) {$ con = mysqli_connect ("localhost", "user") PHP: , "Pass", "schema"); Getmore ($ _ post ['id']); Fashion getmore ($ x) {if ($ x == "0") {$ sqldata = mysqli_query ($ con, "Select from diretime», date_sub (curdate, interval 1 day) from IRcom;); } And ($ sqldata = mysqli_query ($ con, "select DATETIME from IRCLOG> date_...

html5 - createJS caching tilemap background does not render -

Image
If I do not cache the containers of the tiles after the map, then I can see them for canvas: function vs world () {background = new createj.Container (); (Var y = 0; y & lt; mapWidth; y ++) {for (var x = 0; x & lt; mapHeight; x ++) {var tile = new createjs.Bitmap ('images / tile.png '); Tile X = x * 28; Tile.y = y * 30; Background.addChild (tile); }} //background.cache(0, 0, map width, maphite); Stage.addChild (background); } If I cache tile children's background containers, it will not render create the function () {background = new createj.Container (); (Var y = 0; y & lt; mapWidth; y ++) {for (var x = 0; x & lt; mapHeight; x ++) {var tile = new createjs.Bitmap ('images / tile.png '); Tile X = x * 28; Tile.y = y * 30; Background.addChild (tile); }} Background.cache (0, 0, mapguide, maphite); Stage.addChild (background); } Why? This is probably because the synchronization is not available for images when pre-loaded If you ...

javascript - window.open in PHP file not working in IE 11 -

I'm having problems with my PHP webpage until I upgrade to IE 11 until it was working properly . Now when I click on the View County button, the right web page does not open in a new tab or window based on my browser settings. Instead the web page simply reloads with the radio button selection, resets back to the default. When I tested the web page in another browser, it worked correctly. countymp.php contains the following in the body: The code for the cmform.php file can be viewed on. If I add a line containing the "test" buzz; Window after line. Clicking the See County button in Cmform.php correctly reloads the webpage with the word test at the top above the radio buttons. If there is any idea about how to change the code, will the form work correctly in IE 11? In fact the popup is blocked by IE. You can change the settings.

raytracing - Ray-tracer loop ordering -

Tracer and found an unexpected problem. If I write the two main ends of the re-tracer, the people responsible for the image pixel, like this: for (int y = 0; y & lt; image.getWidth (); Y ++) {For (int x = 0; x & lt; image.getHyight (); x ++) { I get this distorted image (actually , The image of Facebook scoops, in any way, is more than the actual, but the issue is that the code has many reflective areas with many types of scanlines (which are actually small) However, if I make a small change, then: for (int y = 0; y & lt ; Image.getHyight (); y ++) {for (int x = 0; X & lt; image.getWidth (); x ++) { As an attraction Works as it can be seen below: getHyight , getWidth gives me the height and width of the image Here's some more code that I believe can be helpful: rayview = {{float (x), float (y), -1000.0 f}, {0.0 f , 0.0 F, 1.0 F}} La Part camera location, the other thing is that I do not know why it makes any input is appreciated. If ...

Deleting from Rails Admin list without deleting them from actual blog -

If I have been told already, I'm sorry, but I've seen everything on Stakeoverflow as well as this It has gone too. I am in the process of creating a Rail App that takes the concept of "simple blog" from most rail tutorials and adds an admin panel that determines that the posts are actually posted on the main site Yes or No. The issue I'm running on is that there are hundreds of posts and all of these appear in the admin panel. Remove all the options from the panel to remove them from the site. Is it possible to delete a blog post on the admin site, because they are published without removing them from the main site or is it better to keep them better? I imagine that this will cause speed issues once because thousands of them are. This can help you with your problem: Note : Add an additional field as "status" in the post table, where you are actually storing the posts. A post has been created from my blog and we feel that its status i...

objective c - Difference between using self.variable and _variable when init these variables -

इस सवाल का पहले से ही एक उत्तर है: 4 जवाब 6 जवाब मैं उदाहरण चर और संपत्ति को जानता हूँ मैं अक्सर लोगों को एक यूआईएलएबल जैसा मानता हूं self.label = [[UILabel alloc] init]; // और _label = [[UILabel alloc] init]; तो, वस्तु निर्धारित करने के लिए self.label और _label का उपयोग करने में क्या अंतर है? अंतर सरल है: self.label = [[UILabel alloc] init] का उपयोग वास्तव में विधि का आह्वान करेंगे [स्वयं सेटलेबेल: [[यूआईएलबीएल एलोक] इनिट]] , और _label = [[यूआईएलबीएल एलोक] इनिट] का उपयोग करने से सीधे आवृत्ति चर को मान दिया जाएगा। व्यवहार में इसका मतलब यह है कि डॉट सिंटैक्स का उपयोग करना सबसे अच्छा होता है क्योंकि विधिवत विधि आपके लिए बहुत सारे सामान हैंडल करती है, इसमें निम्न शामिल हैं: मेमोरी प्रबंधन : उदाहरण के लिए, यदि आप विशेषता 'मजबूत' या 'बनाए रखना' के साथ कोई संपत्ति घोषित करते हैं, तो लागू की गई विधि को असाइन किए गए ऑब्जेक्ट को बनाए रखना चाहिए। कुंजी-मान कोडिंग नोटिफिकेशन: हो सकता है कि कक्षा संपत्ति के लिए है, जिसका अर्थ है कि...

android - How to set 4 button in centerHorizontal in Relative Layout -

I want to set 4 buttons in the horizontal center in the layout ... as if it is my screenshot! This works for you: & lt; LinearLayout Xmlns: Android = "http://schemas.android.com/apk/res/android" xmlns: tools = "http://schemas.android.com/tools" Android: layout_width = "match_parent" Android: layout_height = "Match_perrent" Android: Gravity = "Center_Horizontal" Android: Orientation = "Horizontal" & gt; & Lt; Button Android: layout_width = "wrap_content" Android: layout_height = "wrap_content" android: text = "1" /> & Lt; Button Android: layout_width = "wrap_content" Android: layout_height = "wrap_content" android: text = "2" /> & Lt; Button Android: layout_width = "wrap_content" Android: layout_height = "wrap_content" android: text = "3" /> & Lt; Button Android: layout_width = "wrap_cont...

javascript - Sencha Touch 2: Change the text of an HTML button in itemTpl -

मेरे डेटाव्यू के लिए itemTpl में, मेरे पास निम्न पंक्ति है: & lt; div Class = "btn" id = "colorbtn" uniqueId = "{id}" & gt; {[this.getcolorbutton (मान))} मेरे श्रोता में मेरे पास है निम्नलिखित: श्रोताओं: {element: 'element', प्रतिनिधि: '#colorbtn', tap: function (item, idx, el, evt) {// आप जिस आइटम को btnId = El.getAttribute ('अद्वितीयId'); //Ext.getCmp('colorbtn').setText( 'नया मान'); चेतावनी ("नमस्ते" + बीटीएनआईडी); }} जैसा कि आप देख सकते हैं, मैं बटन को Ext.getcmp से प्राप्त करने का प्रयास कर रहा हूं और नए टेक्स्ट को सेट करता हूं, लेकिन यह त्रुटि फेंक रहा है अनक्यूट टाइप एरर: अपरिवर्तित की संपत्ति 'settext' पढ़ नहीं सकते क्या हासिल करने का एक तरीका क्या है जिसके बाद मैं हूं? Ext.get () के साथ आपके ईवेंट में तत्व चर को लपेटें, यह Ext.dom को पुनः प्राप्त करेगा एलेमेंट ऑब्जेक्ट उसके बाद आप Ext.dom.Element के लिए उपलब्ध विधियों का उपयोग कर सकते हैं। उदाहरण: Ext.g...

php - how to merge array in Codeigniter -

नियंत्रक में: सार्वजनिक फ़ंक्शन सदस्यता () {$ this- & gt; load- & gt; मॉडल ( 'ए आर / LogSubscriptionAR'); $ Sub = $ this- & gt; लॉगसब्सक्रिप्शन-> मर्ज करें ('admin_contact', 'श्रेणी') - & gt; प्राप्त करें () - & gt; परिणाम_अरे (); $ इस- & gt; load- & gt; दृश्य ( 'व्यवस्थापक / log / सदस्यता', कॉम्पैक्ट ( 'उप', 'उप')); } सूची दृश्य में मेरे पास 3 ऑब्जेक्ट है मैं व्यवस्थापक को दिखाना चाहता हूं: John Doe अगर व्यवस्थापक-1 और सभी दिखाएँ यदि श्रेणी आईडी 1 शो tour_package: यूरोप अगर श्रेणी आईडी 31 शो उड़ान: all if category id -1 & lt; tr class = "data-template" & gt; & Lt; td डेटा-नाम = "प्रकार" & gt; & lt; / td & gt; & Lt; td डेटा-नाम = "नाम" & gt; & lt; / td & gt; & Lt; td डेटा-नाम = "श्रेणी" & gt; & lt; / td & gt; & Lt; td डेटा-नाम = "admin_contact_selector" & gt; & lt; / td &...

c# - how to install my windows phone 7 app in device -

I made my first application for Windows Phone 7 in Video Studio 2010 Ultimate. Now I need to launch my application and install it on the device too. Can anyone please tell me how to do this? You can install it with the App Deployment Tool via this step Go to Go to Start -> All Programs -> Windows Phone Developer Tools -> Application Deployment This tool lets you choose an XAP file and unlock it from your developer Allows to be applied.

jquery - Using .load() function -

I am trying to load some image from anchor tag. & lt; A href = "localhost \ system \ upload \ lead \ test .jpgg" class = "image" & gt; & Lt; / A & gt; & Lt; Div id = "preview" & gt; & Lt; / Div & gt; The image is loaded on the page that I specified. Here's the code I'm using: $ (document) .on ("click", ". Image", function (e) {$ ("# preview"). ($ (This) .attr ('href'));}); Am I doing something wrong? Please suggest me some solutions. Thank you. Try to use instead: $ (document) ) .on ("click on" "image", function (e) {e.preventDefault (); var href = $ (this) .attr ('href'); $ ("# preview"). Html ( '& Lt; img src = "' + href + '" />);}); or: $ (document) ) .on ("click", "image", function (e) {e.preventDefault (); $ ("# preview"). Html ($ ("(lt; img / ...

html - Get text when inputing content with Input tag by Javascript -

I will tell you about your program question. & lt; Label = "test" & gt; Username: & lt; / Label & gt; & Lt; Input type = "text" id = "test" & gt; & Lt; P id = "" & gt; & Lt; / P & gt; $ ("#search"). Onclick (function () (warning ('xx');}) I want to realize this function: p tag displays real time input tag content when I input something Thank you. You funnel event, $ ("# Test") can be used. Key (function () {$ ("# paragraph"). Html (this.value);});

ios - Why doesn't my UITableView use prototypes for cells? -

तो यह मेरा कोड है और यह काम नहीं करता - (UITableViewCell *) टेबलव्यू: (UITableView *) तालिका दृश्य सेलफ़ोरोअटइंडपैथ: (एनएसआईएनएक्सएपथ *) इंडेक्सपेथ {स्टैटिक एनएसएसटीइंग * सेलआईडेंटिफायर; If (indexPath.row == 0) {// बटन सेल आइडेंटिफ़ायर = "बटन" "सेल"; बटन सेल = (बटन सेल *) [टेबलदृश्य डेक्यूवर पुन: प्रयोज्य सेल विथ आईडीडेटिफ़ायर: इंडीडेपैथ के लिए सेलआईडेंटिफाइड: इंडेक्सपेथ]; Cell.startAddressLabel.text = @ "कुछ"; // सेल कॉन्फिग / डीबग एनएसएलॉग (@ "इंडेक्सपेथ.रो:% d", इंडेक्सपाथ.रो); एनएसएलॉग (@ "सेल आइडेंटिफ़ायर:% @", सेलआईडेंटिफायर); रिटर्न सेल; } और अगर (indexPath.row == 1) {// म्यूटिव कैप्शन सेल और समय सेलआईडेंटिफायर = @ "म्यूटिव कैप्शन सेल"; MutableCaptionCell * सेल = [तालिकादृश्य] dequeueReusableCellWithIdentifier: For CellIdentifierIndexPath: indexPath]; // सेल कॉन्फिग सेल.इन.फ़ीलैबेल.टेक्स्ट = @ "व्रमेइ और डांटा"; Cell.contentLabel.text = @ ""; // डीबग एनएसएलॉग (@ "इंडेक्सपेथ.रो:% d", ...

android - Error exception when show the progress dialog in the async task -

I am currently working on an async function to post some data in the API, the problem is that when I Async working with progress dialog was named "APIhandler" which handles many types of case. Here's the creator Public APIHandler (reference _ctx, EasyTracker _tracker, string_formType) {this.ctx = _ctx; This.tracker = _tracker; This.formType = _formType; Shared references prefs = ctx.getSharedPreferences ("userInfo", 0); Token = prefs.getString ("token", ""); MemId = prefs.getString ("memId", ""); If (formType.equals ("uploadImg")) {pd = ProgressDialog.show (ctx, ctx.getResources (). GetString (R.string.sys_info), ctx.getResources (). GetString (R.string.publishing)) ; } Else {pd = ProgressDialog.show (ctx, ctx.getResources (). GetString (R.string.sys_info), ctx.getResources (). GetString (R.string.loading)); }} PostStexContact Here @Override Secure Zero PostXextech (JSONObject result) {if (pd! = Nu...

Perforce streams, exclude files from merge/copy -

मुख्य शाखा और इसके साथ जुड़े 2 विकास शाखाएं Dev_v1 और dev_v2 । दोनों विकास धाराओं में कुछ नियंत्रण फ़ाइलें हैं जहां संस्करण विशिष्ट चर स्थित हैं। इन फ़ाइलों में कोई भी बदलाव पर्फर्स स्ट्रीम ग्राफ़ में दिखाई देगा और सिस्टम मुझे उनसे मुख्य और फिर मुख्य रूप से अन्य विकास शाखा में मर्ज करने के लिए कहेंगे। असल में फाइलों के विशिष्ट सेट को बाहर कैसे करें ताकि किसी भी परिवर्तन के मामले में सिस्टम धाराओं में कोई अंतर नहीं दिखाएगा और उन्हें मर्ज करने / कॉपी करने के लिए नहीं कहा जाएगा। अगर उन बिल्ड फ़ाइलों को कभी भी एकीकृत नहीं किया जाना चाहिए, तो आपको उस दृश्य को जनता के बजाय 'अलगाव' करने के लिए स्ट्रीम दृश्य में सेट करना चाहिए। वह उस स्ट्रीम के लिए क्लाइंट दृश्य में फ़ाइलें जोड़ देगा, लेकिन उन्हें किसी भी उत्पन्न शाखा नक्शे से बाहर कर देगा। इससे उन्हें एकीकरण गणना से बाहर गिरने का मौका मिलेगा और प्रबलबल उन्हें एकीकृत करने की कोशिश करना बंद कर देगा। अलग-अलग रूप से प्रत्येक स्ट्रीम के लिए अद्वितीय बनाने वाली फ़ाइलों को बनाने के लिए अलग-अलग धाराओं में डाल दिया जाता है, इस...

css - view header are not visible when i scroll in Xpage View Panel -

I am facing a problem in the xpage I'm displaying 10000 documents in single pages using the Viewpage View panel When I scroll, see header also disappears I have found this link for the same question. They are asking to use the extension library I can only insert my scroll div for the viewing panel. Is there any way to scroll through the extension library without just viewing the contents of the viewpiece? Any help would be appreciated. thank you in advanced. The extension library is installed with all the current versions of dominoes. It is fully supported by IBM, so why not .... Anyway you asked: What is an example to read on the dozoomino? The reddivisions in a dojo grid are roughly similar to the extlib, but with more steps. Or. Use repeated controls and without scrolling headers (there is no table for fick - but you have Google, this is pure HTML / CSS)

javascript - mp3 audio file is not working on tablet -

I am running MP3 audio files on the same page, I run my previous MP3 file Want new habits But all MP3 files are working perfectly on browsers with Windows machines, but when I open the browser in a tablet, it is not working properly. The second MP3 stops when I click to play some other audio, I want to run both. Please suggest me. This is what I am using ... & lt; Audio autoplay = "true" type = "audio / mpeg" src = "voices / seyedpopple.mp3" id = "music 4" & gt; & Lt; / Audio & gt; Thanks. We can run multiple MP3 or video on any device like IPad, there is a restriction in tablets As an application you can run multiple MP3s.

Is compass sensor work on Android 2.3.3 with Qt 5.2.1? -

says that it is not. But some references from the Internet say that it works with Necessitas. I can not see it by myself, so I am asking it here. Is working on Android 2.3.3 at Compass 5.2.1? & lt; Manifest ... & gt; & Lt; Use-SDK Android: minSdkVersion = "14" Android: targetSdkVersion = "19" /> ... & lt; / Manifest & gt; Reference Site:

d3.js - dc.js charts not linked -

मेरे पास barCharts बिल्कुल भी बराबर है .brushOn विकल्प : pnlPerDaybarChart। हाइट (300) .विड्थ (700) .डिमेंट (dims.date)। समूह (groups.date.pnlSum) .valueAccessor (function (d) {return Math.abs (D.value);}) .renderTitle (false) .x (d3.time.scale ()। डोमेन ([मिनट, अधिकतम दिन])। XUnits (d3.time.days)। रंग (colorChoice) .colorAccessor ( ColorAccessorPosNeg)। ब्रश ऑन (गलत)। लोचदार (सच)। मार्जिन ({बाएं: 70, शीर्ष: 10, नीचे: 30, दाएं: 50})। सेंटररबार (सच); PnlPerDaybarChartBrush .height (100)। विथथ (700) .डिमेंट (dims.date) .group (groups.date.pnlSum) .valueAccessor (function (d) {return Math.abs (d.value);}) .renderTitle () झूठे) .x (d3.time.scale ()। डोमेन ([मिनट, अधिकतम दिनांक])। XUnits (d3.time.days)। रंग (colorChoice) .colorAccessor (colorAccessorPosNeg) .brushOn (सही)। लोचदार (सच )। मार्जिन ({बाएं: 70, शीर्ष: 10, नीचे: 30, दाएं: 50})। सेंटररबार (सच); वे मुझे जिस तरह से उम्मीद करते हैं, रेंडर करते हैं, लेकिन जब मैं pnlPerDaybarChartBrush पर ब्रश का उपयोग करता हूं, dc.js ...

ruby on rails - Default value along with uniqueness validation -

> '/' as the same. I did the following way class path & lt; ActiveRecord :: Base attr_accessible: The name validates: Name, Attendance: True, Specification: true before_validation: set_default_path Private def set_default_path self.name = name.presence || '/' End End Domain model has been created as such: class domain & lt; ActiveRecord :: Base attr_accessible: name, path_id Valid: name, path_id, presence: correct confirmation: name, specification: {radius: path_id} expiration but it does not work for it Continuous inserts with a blank name for the path path = path.find_core_bite_name ('') domain = domain.new (name: 'stackoverflow.com') domain.path = path domain.save! #Failed with verification error, ActiveRecord :: RecordInvalid: validation failed: path can not be empty Is there a strong way to achieve this? You should remove the following callback before_validation: set_default_path and use verificat...

php - How to optimize this query which taking long time.? -

When working with the following query on mysql, it is executed around 10sec. SELECT photo_image_uploaded, b.bottle_id, b.date, b.parentid as SQL_CALC_FOUND_ROWS DISTINCT b.appearance_id, b.photo_album_id, b.eventcmmnt_id, b.id, b.mem_id, b.subj , B.body, b.image_link, b. The from_id, b.visible_to, pa.photo_big image_link, b.post_via, b.youtubeLink, b.link_image, b.link_url, b.auto_genrate_text, badges.badge_img, badges.badge_bottle_img, Bulletin of b.type, b b.share_url_title as members of the INNER network N on (n.mem_id = b.mem_id) Join left Join badge on (Bikbotl_aidi = Bajkbaj_aidi) left Join as photo_album pa (pa.photo_id = b.photo_album_id) Join mem on (b.mem_id = mem.mem_id and mem.deleted & lt; & gt; 'Y') where b.parentid = '0' and ( '$ userid' (n .frd_id, b.mem_id, B.from_id) by b.id command in b.id DESC LIMIT within the barrier of 0,10 in the group There are many frd_id, mem_id, from_id so I think the above queries are slowly execut...

Converting String to Int in Android, JSON -

इस सवाल का पहले से ही एक उत्तर है: 26 उत्तरों कृपया मुझे एक विचार दें मूल्यों की तुलना कैसे करें मेरे पास एक स्ट्रिंग बजट_इवेंट और बजट है और यह मेरे वेबसर्वर से है मुझे लगता है कि मुझे ऐसे स्ट्रिंग्स को अन्तर में परिवर्तित करना चाहिए और मुझे उन मानों की तुलना करना होगा जो प्रतीकों से अधिक से कम है। मैं इन्हें कैसे लागू कर सकता हूं? कृपया मुझे कुछ सुझाव दे। मैं इन चीजों में नया हूँ। एंड्रॉइड में मेरा कोड स्निपेट है I मुझे बजट और बजट_आवर्त को आर्ट में बदलने की आवश्यकता है क्योंकि वे तार हैं I कोई मदद करेगा धन्यवाद! बजट = jsonObject.getString ("बजट"); totalcost.setText (बजट); Budget_event = budget.getText ()। ToString (); के रूप में सरल: int i = Integer.parseInt (yourString); या, फ्लोट्स के लिए: फ्लोट एफ = फ्लोट। पीरसफ़्लॉट (आपकी स्ट्रिंग);

ios - How to keep an __autoreleasing address as a strong property in a class? -

How do I create a strong asset for a variable in a NSObject ? I have a class named SCPFMessageThreadQuery which is allocated by passing the address of a SCPFMessageThread variable. @interface SCPFMessageThreadQuery () / / This declaration seems right. @property (nanatomic) scripfiles and rhythm * __ strong * thread; - (id) initWithRootMessage: (SCPFMessage *) Root thread address: (SCPFMessageThread **) address; @end @implementation SCPFMessageThreadQuery // In any way, during the autocomplete, in any way, type of ownership __autoreleasing. - (id) initWithRootMessage: (SCPFMessage *) Root thread address: (SCPF message press * __ autorelizing *) Address {if (self = [super init]) {_root = root; // Here the error complains about changing the ownership of the Xcode address _thread = address; } Healthy return; } @end The error I am getting is: 'SCPFMMGetTrade * __ Autoreliving *' from 'SCPFMMSGetStread * __Secondant * Pointer Release Properties I am planning ...

javascript - event.currentTarget.innerHTML is empty in IE10 after view is re-rendered -

here (check to see the difference in Chrome and IE10) HTML & lt; Body & gt; & Lt; Div id = 'a' & gt; & Lt; Button & gt; Click me & lt; / Button & gt; & Lt; / Div & gt; & Lt; / Body & gt; JS var markup = '& lt; Button & gt; Click me & lt; / Button & gt; '; $ ('#A') ('Click', 'button', function () {$ ('# a'). Html (markup);}); $ ('#A') ('Click', 'button', function (event) {console.log (event.currentTarget.innerHTML); //.....(1)}); Line (1) gives correct output in Chrome and Firefox, whereas in IE 10, I get empty string as the value of event.currentTarget.innerHTML . This only occurs when div (# A) is presented again. PS: I am using backbone.js in which I rewind the view but to simplify the question, I removed the picture from the back without any spinal cord Has refined. I was curious so one had to go it would not answer y...

Possible to hide days without data in a dygraphs chart? -

Image
मैंने स्टॉक डेटा के लिए निम्न आलेख चार्ट बनाए हैं: जैसा कि आप उम्मीद करते हैं, सप्ताहांत दिनों के लिए कोई बाजार डेटा मौजूद नहीं है (ध्यान दें कि उद्धरण में हैं यूटीसी समय) डायग्राफ, हालांकि, इन दिनों चार्ट में दिखने पर जोर देते हैं, जिसके परिणामस्वरूप एक [अवांछनीय] सीधी रेखा होती है। क्या कोई दिन नहीं दिखाना है जो कि एक डेटा चार्ट में कोई डेटा नहीं है? वित्तीय चार्ट के लिए एक असंतत एक्स-अक्ष आकर्षित करना एक कठिन समस्या है। डायग्राफ केवल निरंतर अक्षों का समर्थन करते हैं, इसलिए आपका एकमात्र विकल्प लगातार अक्ष को बनाए रखना है अपने एक्स-वैल्यू के रूप में तारीखें लेने के बजाय, आपको "कुछ मिनटों की तरह चलना चाहिए, जो 1 जनवरी से बाजार खुला है"। यह आपको वह साजिश देगा जो आप चाहते हैं, लेकिन जब आप मंडराना करते हैं, तो यह द्विपक्षीय अर्थ में एक्स-एक्स टिक्सेस और वैल्यू भी देगा। मैपिंग को पूर्ववत करने के लिए आपको एक कस्टम एक्स-एक्स टिकीर और मानफ़ॉर्मर लिखना होगा (देखें dygraphs.com/options.html)। क्या यह आवाज़ बहुत सारा काम है? यह है! यह कारणों में से एक यह है कि अक्षरों...

jquery - Angular updates data model with wrong values -

I'm trying to get data from YELP - to make sure my template was working, I NG-Dual Container to a Model Both methods do not work, do I suspect that I am updating my list with $ scope.list which contains incorrect data and is not binding. Using some of the blank API properties, the view does not update any ideas? & lt; Div ng-repeat = "item in list" & gt; & Lt; Div class = "row" & gt; & Lt; Div class = "col-lg-7 col-md-7" & gt; & Lt; A href = "#" & gt; & Lt; Img class = "img-responsive" src = "http://placehold.it/700x300" alt = "" & gt; & Lt; / A & gt; & Lt; / Div & gt; & Lt; Div class = "col-lg-5 col-md-5" & gt; & Lt; H3 & gt; {{Item.id}} & lt; / H3 & gt; & Lt; H4 & gt; Sub-title & lt; / H4 & gt; & Lt; P & gt; Advertising for advertising Thank you for your life, thanks for your life. Monitoring...

plot - shade area between two 'ablines' in R -

I want to shade the area between the two ablines in the following code. But I could reach all those two It was to join the objection. Is this an easy way to handle? More complicated solutions are also very welcome! x1s & lt; -c (.5,1,1,2,3,3,5, 1,3,5,4,5,5,5,6) x2s & lt; - c (3.51,2.5,2,1,1.2, 5.8,3,4,5,4,1) ys & lt; - c (Representative (+1), Representative (-1,6)) My.data & lt; - data.frame (x1 = x1s, x2 = x2s, type = as.factor (ys)) my.data library ('e1071') svm.model & lt; - svm (type ~., Data = My.data, type = 'C-classification', col = 'linear', scale = FALSE) plot (my.data [, - 3], col = (ys + 3) / 2, pch = 19, xlim = c (-1,6), ylim = c (-1,6)) digits (my data [svm.model $ index, c (1,2)], col = "blue ", Cex = 2) #Show Support Vector w & lt; - T (svm.model $ coefs)% *% svm.model $ SV b & lt; - -svm.model $ rho p & lt; - svm.model $ sv abline (a = -b / w [1,2], b = -a [1,1] / w [1,2], col = "black", ...