Posts

Showing posts from June, 2011

rdf - bug or wrong way for VALUES in SPARQL, OpenLink Virtuoso? -

itemprop = "text"> I have Virtuoso 7.10 and the command value works for 1 * x or x * 1 such as asign on the table: SELECT * WHERE {VALUES (? Z? R? T) {("x" "y" "z")}} and its For: SELECT * WHERE {VALUES? The problem is that when I try to assign: SELECT * WHERE {VALUES (? Z? R? T) {("x" "y" "z") ("xy" "yx" "zx")}} then As a result, I only have the first column filled, but the other two are empty (similar to two columns). Is this a bug or am I doing something wrong? Is there any remedy?

ios - How to use [for] to list all elements in 2 dimensional NSArray? -

I need to calculate on 2 dimensional NSArray . I did not understand how to scroll through NSArray as I understand NSArray is only 1 dimensional, so I think scroll through the rows and each The line must be changed again in NSArray . And remove the elements inside it with the index inside the column. My code is below (id object in myArray) {i ([Object [6] intValue] == 1) {sumAmount + = [Object [3] intValue]; }} A "two-dimensional" array is just an array of arrays, so you For your loops like this:

c# - Print report from 3 different richtextbox -

I have three different rich textboxes that can modify the end user: headers, body, document footer. How do I the header thanks thanks Firstly you must merge 3 boxes together. There is a question with answering about how to do this: After this you have to print this merged content. A tutorial about how to do this can be found here:

orchardcms - Orchard widget names all empty when retrieving by layer -

var वैश्विक विकेट्स = _widgetService.GetWidgets (GlobalLayer.Id); उपरोक्त कोड का उपयोग मेरे GlobalLayer में जोड़े गए विजेट की सूची को पुनर्प्राप्त करने के लिए किया जाता है। यह सफलतापूर्वक 3 विगेट्स को प्राप्त करता है, जिसमें मुझे उम्मीद है कि स्थिति , शीर्षक और जोन के साथ मुझे प्रत्येक के लिए आवश्यकता है। हालांकि, नाम globalWidgets में सभी विजेट के लिए खाली है। मैं GlobalLayer I पर विजेट बनाते समय पुष्टि कर सकता हूं I जैसे नाम से पारित किया गया: _widgetService.CreateWidget (ग्लोबल लायर.आईडी, "डेन्सव्यूजेट", "डांस विजेट", "1", "डांसजोन"); तो नाम कहाँ चला गया है? मैं चाहता हूं अभी भी किसी की तरह मुझे यह बताने के लिए क्यों यह मामला है, लेकिन मैंने अभी पता लगाया है कि मैं इस तरह से नाम का उपयोग कर सकता हूं: var name = globalWidgets.First ()। TypeDefinition.Name;

ios - Install xcode 4 on OS X Yosemite -

मुझे Yosemite पर Xcode के पुराने संस्करण को स्थापित करना होगा। प्रक्रिया:: Xcode [4341] पथ: / Applications / Xcode 3.app/Contents/MacOS Xcode 5 पूरी तरह से स्थापित है, लेकिन मैं Xcode 4. यह दुर्घटनाओं के साथ समस्या का सामना करना पड़ रहा हूँ, इन त्रुटियों कर रहे हैं / Xcode पहचानकर्ता: com.apple.dt.Xcode संस्करण: 4.6.3 (2068) बिल्ड जानकारी: IDEApplication-2068000000000000 ~ 3 कोड प्रकार: X86-64 (देशी) जनक प्रक्रिया: ??? [1] जिम्मेदार: Xcode [4341] प्रयोक्ता आईडी: 501 ओएस संस्करण: मैक ओएस एक्स 10.10 (14A389) की रिपोर्ट संस्करण: 11 बेनामी UUID: 5F18251C-5B88-768B-7023-12B7B510FD63 समय जाग बूट के बाद से: 13000 सेकंड क्रैश हुआ धागा: 0 डिस्पैच कतार: com.apple.main-thread अपवाद प्रकार: EXC_CRASH (SIGABRT) अपवाद कोड: 0x0000000000000000, 0x0000000000000000 आवेदन विशिष्ट जानकारी: उत्पादबिल्ड विर्सन: 4H1503 यूएनकाउंस्ट अपवाद (NSInternalInconsistencyException): कुंजी 'प्रतिनिधि' क्लास के लिए मूल्य प्राप्त करने में त्रुटि 'Xcode.OrganizerSource । एर्चिवएप्लिकेशन्स.अर्चिव लिस्ट कॉ...

javascript - JQuery pop up dialog can not open -

Image
I use jqueryui / 1.9.2 / jquery-ui.min.js for popup Using the dialog This is my code $ ("# button_id"). ("Click", function () {$ ("# dialog"). Dialog ("open");}) When I click on the button for the first time, Pitcher is in the form of normal, but after the dialog is closed. From this I click on it again, it shows the message like this Error: Before you start, you can not call the method on the dialog; Attempted to call the 'open' method in the image How to solve it I $ (" # dialog ") before using it Get started. please click on this link Take a look

forms - Which is correct $form_state['values'] or $form_state['input']? -

I used AJAX to populate dependent areas and reproduce the field structure but in this entire process $ form_state ['values'] is erased but maintains values ​​through $ form_state ['input'] processes and $ form_state ['input' ] to work properly. I am working on the contribution module and while reviewing using pareview.sh, it suggests that instead of $ form_state ['values'] $ Form_state ['input'] . But in most scenarios I did not find the required values ​​in the $ form_state ['values'] . Please suggest me what I should do to resolve those warnings in Paraview. As far as I know, all the values ​​are stored by the form $ Form_state ['values'] array. Use var_dump ($ form_state ['values']) to get an idea of ​​what the field is getting; submitted

php - Copy content from one db to external db -

I have a webshop db where I get some things in another external db Other Server etc. Example of some things to move: Table 1 - order-order - table 2 - address - shippingmethod I want to export and import only those things which are not present. How can this be done in a php script?

How can i change the 12 hrs to 24 hrs date format in java? -

मेरे पास स्ट्रिंग "2014-11-04 10:30 अपराह्न" , लेकिन मैं "2014-11-04 22:30 के रूप में प्रदर्शित करना चाहता / चाहती हूं। मैं यह कैसे कर सकता / सकती हूं? अग्रिम धन्यवाद। में जावा SimpleDateFormat आप hh 12 घंटे का प्रतिनिधित्व और एचएच के लिए 24 hour representation। उदाहरण: स्ट्रिंग str = "2014 -11-04 10:30 अपराह्न "; DateFormat df = नया SimpleDateFormat (" yyyy-MM-dd hh: mm a "); तिथि दिनांक = df.parse (str); df = नया SimpleDateFormat (" yyyy-MM-dd एचएच: एमएम "); सिस्टम.आउट.प्रिंट एलएन (डीएफ। प्रारूप (तारीख)); आउट डाल: 2014-11-04 22 : 30

How can I send emails from my Android application? -

I am writing an application for Android. How can I send an e-mail from it? The best (and easiest) way a intent : intent = new intent (int. Action_sand); I.setType ("Message / RFC822"); I.putExtra (Intent.EXTRA_EMAIL, new string [] {"recipient@example.com"}); I.putExtra (Intent.EXTRA_SUBJECT, "Email subject"); I.putExtra (Intent.EXTRA_TEXT, "Body of Email"); Try {startActivity (Intent.createChooser (i, "Send Mail ...")); } Hold (android.content.ActivityNotFoundException ex) {toast.makeText (MyActivity.this, "no email client is installed.", Toast .LENGTH_SHORT) .show (); } Otherwise you will have to write your customer.

javascript - Bootstrap JS - collapsible with toggle -

OK, so I've got this JS code: jQuery (". Toggle-panel "). Click (function () {jQuery ('# collapsible-element'). Fall ({toggle: true,});}); I think that it should open and close the #closed element, but it can only turn it off into the "Compressed-Elements also in the class attached to the code" Fall ". # Collapsible-element closes with the first click on the .toggle-panel, but the second click does not open it again. If you are using bootstrap, you do not need any additional JavaScript code to toggle is?

html5 - Starting pulse from center -

I have created a pulsing animation that starts from the corner, I want to start it from the center of the circle, the CSS below What should I do to start the animation from the center of the circle? .animation-container {width: auto; Height: 500px;} .neikkake {width: 100px; Height: 100px; Limit-Radius: 50%; Background: orange; Margin: 0 auto; Status: Relative; Top: 40%; Animation: First 2S Linear Infinite Optional; WebKit-Animation: First 2S Linear Infinite Optional;} @ -WebKit -Khrefr First {0% {width: 0px; Height: 0 pixels; Background: Violet;} 10% {Width: 10px; Height: 10px; Background: Indigo;} 20% {width: 20px; Height: 20px; Background: blue;} 30% {width: 30px; Height: 30px; Background: green;} 40% {width: 40px; Height: 40px; Background: yellow;} 50% {width: 50px; Height: 50px; Background: orange;} 60% {width: 60px; Height: 60px; Background: orange;} 70% {width: 70px; Height: 70px; Background: red;} 80% {width: 80px; Height: 80px; Background: orange;} 90% {width: 90px; Heig...

javascript - make use of @ character in json object -

इस सवाल का पहले से ही एक उत्तर है: 3 जवाब मेरे पास एक अजीब सवाल है । मेरे पास एक @ वर्ण के साथ एक जेसन वस्तु है, जैसे कि ना @ मुझे मैं इस पर कॉल नहीं कर सकता क्योंकि मैं ऑब्जेक्ट में किसी @ चरित्र का उपयोग नहीं कर सकता। अच्छी तरह से चरित्र को बदलना शायद आपका सबसे स्पष्ट जवाब है, लेकिन मुझे आश्चर्य है अगर इसके अलावा एक और उपाय है? मैं ना @ मुझे विशेषता कैसे कह सकता हूं? & lt;! DOCTYPE html & gt; & LT; html & gt; & LT; बॉडी & gt; & Lt; h2 & gt; जावास्क्रिप्ट में JSON ऑब्जेक्ट निर्माण & lt; / h2 & gt; & Lt; p id = "डेमो" & gt; & lt; / p & gt; & LT; स्क्रिप्ट & gt; Var text = '{"na @ me": "जॉन जॉनसन", "सड़क": "ओस्लो वेस्ट 16", "फोन": "555 1234567"}' var obj = JSON.parse (टेक्स्ट); Document.getElementById ("डेमो")। InnerHTML = obj.na@me + "& lt; br & gt;" + Obj.street + "& lt; br & gt;...

Wordpress: How to add comment for taxonomy page -

I need to add annotations to the classification page. I would like to know whether it is possible. Thanks for the help. Michael Please check this url I think that the solution is Required for

DOS batch removing last empty line in output TXT file -

The following code lists file names in one directory: for / f The result is%% (In 'dir / b D: \ folder * * * .xml') (%% A & gt; & gt; lines.txt in a line) (With line numbers): 1 86002_2014_1.xml 2 86014_2014_1.xml 3 86014_2014_2.xml 4 86016_2014_1.xml 5 86017_2014_1.xml 6 with me There is always an empty line your The output of the command creates a set of lines, all have a CR Has been finished with Lf pair. This is normal behavior .... text ... 0x0D0x0A , standard line termination in windows. So, in your case, if there is no other line or not, then just a point view. But, for you, the last CRF is not desired, all the rows ( & lt; nul set / p) = Text " ) is required to discard the finished CRLF and assign them a CRLF ( echo ) set "first =" & lt; nul (for / f "delims ="% (if previously defined (echo ()) other (set "first = 1") set / p ". = %% a "))> (% Dir / b D: \ folder * * .xml ...

java - How to read parameter in mule esb -

I am sending some parameters for the malfunction that I am sending in 8081 listening through inbound. http: // localhost: 8081 / hey? Age = manoj But I do not know how can I get it from the message ?? I know that I can access it by message and payload, but when I try to do this # [message payload: ['age']] I error is that the payload is a string type and I am very confused in the mule. I want a universal value. If you are using Khachia 3.6 version or above, the expression has been changed. . So now, you need the following expression to get the value: - # [message.inboundProperties.'http.query.params'.age] You can find the context for the query here: -

How to return the lowest date value and highest date value from an array in Javascript? -

How will return the lowest date value and the highest date value from the array? For example, below the array, I would like to create a function that gives at least a date, as well as another task that gives the highest date? var data = [{date: "2011-11- 01T16: 17: 54Z", quantity: 2, total: 190, tip: 100, type: "tab"}, {date : "2011-11-14T16: 20: 19", volume: 2, total: 190, tip: 100, type: "tab"}, {date: "2011-11-14T16: 28: 54Z" Quantity: 1, Total: 300, Tip: 200, Type: "Visa"}, {Date: "2011- 11-14T16: 30: 43Z", Quantity: 2, Total: 90, Tip: 0, Type: "Tab"}, {date: "2011-11-14T16: 48: 46Z", quantity: 2, total: 90, tap: 0, type: "tab"}, {date: "2011-11-14T16: 53 : 41Z ", Quantity: 2, Total: 90, Tip: 0, Type:" Tab "}, {Date: 2011-11-14T16: 54: 06Z", Quantity: 1, Total: 100, Tip: 0 , Light : "Cash"}, {date: "2011-11-14T16: 58: 03Z", quanti...

xml - Dynamic button color for powerpoint ribbon control -

One way to dynamically change the color of a button control in the power point ribbon for an add-in I I'm looking for I'm using VBA. I want to be able to define a color by using a user's RGB values ​​and to control the color of that color to be rendered in the ribbon (i.e. the icon of 32 x 32 pixels that color ). Then I will use these controls to fill the shape, change the color and change the text color to work just like a color palette. Due to a large number of different color combinations (256 ^ 3), it will not be possible to save icon files for every possible RGB color to be used in the ribbon. Any advice or a solution would be highly appreciated. Thanks

vb.net - Checkbox in a DataGridView column is not getting checked sometimes? -

I use this code to check all the check boxes in the data grid view in VB.NET (-) , I / O (DataGridView.Rows.Count - 1) DataGridView.Rows (i) .Cell (0) .Value = True next to I = 0 as integer for / Code> Sometimes when a line is selected (not checked but only the full line is selected), while this code is running, except the selected one, all the other columns Checkbox checks. What's wrong here? I also try to add this code, DataGridView.SelectedCells (0) .mail (0) .Value = true did not work. As I said in the comment, this issue is that the box is checked on the data source , But the GUI has not refreshed it to reflect that room. If you turn it off, then the cell should be changed / refreshed in its new value. After making changes to your data, you should deselect the cells / rows at the very end you can: Datagridview.ClearSelection () or Datagridview.CurrentCell = Nothing can be deleted You get this idea. This is what works for me in the past

linker - Could .so file be linked to executable statically? -

चूंकि ऑब्जेक्ट फ़ाइल (ET_REL, * .o) में वर्ग, और गतिशील लाइब्रेरीज़ (ET_DYN, * .so) होने चाहिए सेगमेंट और सेक्शन, * तो फाइलों को स्थायी रूप से लिंक किया जा सकता है, भले ही यह गतिशील लिंकिंग के उद्देश्य से हो? गतिशील लाइब्रेरीज़ (ईडीडीएनएन, * .एसओ) के पास दोनों खंड और खंड हैं गतिशील पुस्तकालय आमतौर पर वर्ग हैं, लेकिन केवल इसलिए कि वे नहीं हैं छीन लिया। बहुत सारे गतिशील पुस्तकालय हैं जो नहीं के लिए कोई भी वर्ग (लाइब्रेरी के काम के लिए केवल आवश्यक हैं)। * तो फाइलें स्थायी रूप से लिंक की जा सकती हैं, भले ही इसे गतिशील लिंकिंग के लिए लक्षित किया जाए? नहीं अधिकांश यूनिक्स लिंकर a.out और foo.so को अंतिम लिंक उत्पादों पर विचार नहीं करते हैं, किसी भी अन्य संशोधन के लिए कोई प्रावधान नहीं। इसमें foo.so को a.out में सैद्धांतिक रूप से संभव है, लेकिन व्यवहार में बहुत मुश्किल है। ऐसे किसी मामले पर विचार करें जहां foo और बार और फ़ू कॉल बार को परिभाषित करता है और निर्यात करता है। मान लीजिए कि foo.so को a.out में लिंक करना संभव था, जिसका बार की एक अलग...

actionscript 3 - is that possible to load a local file from remote swf? -

Remote SFF can not access a local file. Here is an error description: Security Error: # 2148 Error: SWF file http: // www.mydomain.com/ClipboardTest.swf can not access local resource file: /// C : \ Temp \ clip_image001 JPG Only local-to-file systems and trusted local SWF files can access local resources. I have tried security.Oldomain ("*"); And cross-domain-policy-files Is there a solution? I think what is impossible according to Adobe For more information, see here: For information, a great tutorial about flash protection:

ios7 - Testflight does not allow iOS 7.1 app compiled with iOS 8.1 SDK to install on iOS 7.1.2 iPhone -

When I'm in the TestFlight web app, I see some apps that I made earlier that iOS 6 and beyond , But now the app I'm working on does not appear. It's running an iPhone 4, iOS 7.1.2 and testers report the same issue. My device also looks like this version under "Devices" and I have not tried to reconnect the device. When I go to an incompatible build, the minimum IS is listed as IOS 7.1. At this point I am a little amazed at what I have to do. At this time I am a little amazed at this. Already tried to check all the build settings and tried to upload the test again in light. I had twice the error. For the third time I have uploaded the same code with a different build number, but worked with the same settings I have a mess in the matrix, a temporary problem in favor of testflit

jquery - drupal 7 flex slider cycle doesn't work until I open page inspector -

I have a strange scenario at the production site for Arcade Breweries. I used to offer ideas and flex slider with a slideshow slideshow for a responsive slideshow on the Flex slider home page and beer page. They worked fine for months. Recently, they stopped sliding. It still rotates through the images, if I switch the setting to fade, it works fine, there is no horizontal slide If I open Web Inspector in Safari and / or Chrome And click on the UL element style, then it starts working suddenly (as if she knows I'm checking!). Has anyone seen this? What can be the reason for this behavior? Thank you! Jason There are struggles with CSS3 effects. Under the advanced setting in the UI, "Video" was checked, he closed the 3D version of CSS3, and fixed my problem. Turning off "Using CSS" also solves the problem ...

vb.net - Show only checked boxes in DataGridView -

Image
I am returning the SQL result to a DataGridView and run into a problem. I have an option on my form that only shows checked values ​​but it can not work. Here is my code: x for integer = dgvAutogrow.Rows.Count as - 1 dgvAutogrow.Rows.Count to dgvAutogrow.Rows (x) .Cells ("Check ") Value = false. Then dgvAutogrow.Rows.Remove (dgvAutogrow.Rows (x)) end then the next here is what part of my DataGridView looks like. I want an incident that shows only the values ​​on which the check box is checked. When I get the following error I get the debug: Any suggestions for changing? You test the value to DataGridViewCheckBoxCell and the value like this: For integer = dgvAutogrow.Rows.Count - 1 for phase 0 -DataGridViewCheckBoxCell cell = dim cell as dual (dgvAutogrow.Rows (X) .Cells ("YourColumnName "), DataGridViewCheckBoxCell if cel.Value = false then dgvAutogrow.Rows.Remove (dgvAutogrow.Rows (x)) end then the next In addition, you have a arg...

JavaScript set object key by variable -

इस सवाल का पहले से ही एक उत्तर है: 5 जवाब संभव डुप्लिकेट: मैं जावास्क्रिप्ट में कुछ ऑब्जेक्ट्स का निर्माण कर रहा हूं और उन ऑब्जेक्ट को एक सरणी में डाल रहा हूं, मैं उस कुंजी को संचित कर रहा हूं जिसे मैं एक चर में उपयोग करना चाहता हूं, फिर बनाना मेरी ऑब्जेक्ट्स समान हैं: var key = "happyCount"; MyArray.push ({key: someValueArray}); लेकिन जब मैं हर ऑब्जेक्ट के लिए मेरे ऑरेरे ऑरेजेस की जांच करने की कोशिश करता हूं तो वह चर के मान के बजाय कुंजी "key" है क्या कोई वैरिएबल से चाबी का मूल्य सेट करने का कोई तरीका है? "post-text" itemprop = "text"> आपको पहले ऑब्जेक्ट बनाने की ज़रूरत है, फिर इसे सेट करने के लिए [] का उपयोग करें। var key = "happyCount"; Var obj = {}; Obj [key] = someValueArray; myArray.push (obj);

c++ - What happens to the moved-from object after std::move() is called? -

इस सवाल का पहले से ही एक उत्तर है: 2 जवाब मैंने पढ़ा है कि हमें चाहिए यह सुनिश्चित कर लें कि इसे स्थानांतरित करने से पहले ऑब्जेक्ट-इन ऑब्जेक्ट्स के कोई उपयोगकर्ता नहीं हैं मैं जानना चाहता हूं कि ऐसा क्यों है? क्या स्कीड :: चाल () को बुलाया जाता है? यदि नहीं, तो std :: move () के बाद स्थानांतरित-वस्तु से क्या होता है? यह इस पर निर्भर करता है कि std :: move () के परिणाम का उपयोग कैसे किया जाता है चाल ही वस्तु को कुछ भी नहीं करता है।

c# - How do I handle blank strings and invalid Uri's in a text box bound to a uri property -

In my WPF application, I have a text box that is a property that is a vertical one. & lt; Text box grid Column = "1" grid. Line = "10" margin = "0,0,4,4" x: name = "txtExportURL" text = "{binding path = ProjectExportURL, Mode = TwoWay}" visibility = "{binding permissions.can export jason, source = { X: Static Services: ApplicationUserInfo.Instance}, converter = {Static Resource BulletWizibility Clip}} "/> I am trying to verify on a string coming from the text box like private Uri _projectExportURL; Public {Get Uri ProjectExportURL {Return} _projectExportURL; } Set {if (Uri.TryCreate (value, value.AbsoluteUri, out _projectExportURL)) _projectExportURL = value; Else _projectExportURL = Faucet; This.OnPropertyChanged ("ProjectExportURL"); }} The problem is, when the string is empty or an invalid Yuri and it does TryCreate , it does not fail and on the second statement It just fails and does nothi...

Collaborate with colleagues who don’t use git -

Whenever I use git for all my projects, sometimes, I have to cooperate with colleagues. Which do not use git. They like to email their zipped sources back and forth, it is annoying and cumbersome, but I have to deal with it. The workflow is as follows: When they require my code, then I use the git archive and give them a zip file export.zip Send. I continue to work and do the changes made by me, while they work with my old sources. Illustration: Collection & amp; Mail │ A ← B ← C └───┴── My Later Changes After some time they send me my response file import.zip . What is the best way to import zip file in my GIT tree and how to implement it? I can think of the following three options, which are meaningfully different: Based on their changes, consider the following changes: ┌ Collection & amp; Mail │A ← A 'B ← C │ └───┴── My later changes │ └─ Their change Here I checkout A Import.zip open, comment as a and then re-apply B and C (and Wha...

php - insert data from select query -

I am trying to insert data from existing variable and selected column from second column here Code is $ JobTit = $ _ POST ['Jobbill']; $ Jobdescription = $ _ Post ['jobdescription']; $ Requirements = $ _ post [requirements']; $ Resume = $ _ post ['resume']; $ Expyears = $ _ Post ['expyears']; $ Submit = $ _ post ['submit']; $ Useremail = $ _ session ['email']; $ Insert = mysql_query ("Job Title, Job Description, Requirements, Expansion, Resume, Use Mail, Rispem) Prices ('$ Jobbill', '$ Job Details', '$ Requirements', '$ expyears' '$ Resume', '$ Useremail', select resname from restaurant to WHERE useremail = '$ useremail')); But the above code does not return any results in my database Is there a solution to this problem? thanks Because it is a excluded library Think about going to mysqli _ * or PDO. After saying this, your query is incorrect. You can...

android - Which is a better method for me to make my web app usable on a mobile -

I have a web app that uses html and javascript to display (graph, report, table) and Sometimes the data is updated which is being queried and controlled by using a Tomato Java Controller and stored in a MySQL database. There is a lot of data in this DB and it gets more data on a daily basis. Now I want to make it usable on both Android and iOS. The easiest way to do this, in my opinion, would be to create a web app just for a mobile device. But those people who said that they are always better to develop it as a native app for both platforms. I have also got a fourth option to develop an app for both at the same time, such as ... • C # - • Java - • Web API (HTML, Javascript) - • Titanium (HTML, Javascript) - I now have a lot of options and I really do not know that How to choose. I mean, why would not I choose the easiest way? Any advice? There may be a lot of bias in answering this question. However, there are some non-bias ideas that will help you progress pr...

c++ Variable being overwritten during each loop iteration -

I'm developing simulation software for which some aspects of its functionality require some predefined behavior of an entity The behavior on which I am currently working is establishing a unit in the simulation environment to go to a 'spiral' about the determined point by the user. There are several current options of user behavior by selecting special options from the GUI, the way I intend to implement this new behavior for the unit is as follows: Obtain the origin of the circle from the existing location of the unit (the point specified by the user who will be spiraling around the unit) / Li> Check the current distance of the unit from spiral origin: If it is more than a certain distance from the original, then move directly to the original, unless it is a definite There is no distance, then start the spiral. If it is less than the distance from the original, stay away from the original place, until it is not from that distance, then start the spiral. E...

sprite kit - Trying to change an object position on touch using spritekit and swift -

Then I have this code as part of a view: import Spraitkit class Gemssin: SKScene {override function didMoveToView (see: SKView) {// set the background color background color = SKColor.whiteColor () var player = SKShapeNode (circleOfRadius: 20) Player.position = CGPoint (X: size.width / 2 Wi-size .height / 2) Player.name = "player" Player.fillColor = SKColor.blackColor () Player.physicsBody = SKPhysicsBody (circleOfRadius: 20) Player.physicsBody .dynamic = false addChild (player)} // touch Override function touchesBegan (touches: NSSet, withEvent event: UIEvent) {h Touch = touches.anyObject () as the UITouch touchLocation = touch.locationInNode (self) Player.position = CGPoint (X: size.width * 0.2, Y: size.height * 0.2) Print ( "you touched") }} g "use the unresolved identifier" player " I Since the player was previously created in the didMoveToView function, he does not recognize the "Player" Touch in the Bulgan Function How ...

jquery - js css list with scroll and autoselect? -

I would like to make a list where the height of the parent div is fixed and I can navigate the list with the mouse scroll . Divi) The item item (vertical) is auto-selected in the center of the div. Here is an image that I found: this is what I want to do with html, css, js. Just want to finish a source file or an example or guide. A dotpecker that works more or less like an iOS (and it's :) Then, if If you want a menu or something similar, you can start with it and edit yourself.

Creating resource files for different build types on new Android studio 0.8.14 -

Image
So I upgraded to new Android Studio 0.8.14 and I fully know that I have a new one on my module app I can create folder / Src / newbuildtype and there I can make folders java and specific for my build type, but what I need to do is to make this resource directly from Android Studio. Is there any way of doing it? Thanks, what I want to do to create folders directly with my file explorer. I found that I can create an app / debug / reserve folder by right-clicking on my module To select this option from the menu, select the new-> folder-> Reese folder After that you can create, say, my app module -> new-> By right-clicking the XML-> Value folder and clicking on my bill Value Folder Folder and there you have your debug build type The value folder is created, which looks like this now

loopbackjs - Customizing User built-in Model validation -

I am exploring a way to optimize verification for the underlying user model. The purpose is to allow users to register an account with a different user name on the same email. I have tried to override the setup method for the user model to prevent the recognition of specificity. Email property, but unfortunately it was not one. As a hook, I did not find anyone to meet my needs. For reference, 'loopback / common / model / user. JS: 556: This verification occurs: if (! (UserModel.settings.realmRequired || UserModel.settings.realmDelimiter)) {UserModel.validatesUniquenessOf ('email', {Message: 'Email already exists'}); UserModel.validatesUniquenessOf ('username', {message: 'user already exists'}); } Is there any way I can use to disable this email verification? Thanks in advance. Disclaimer: I am a loopback team member. At the moment, it is not possible to allow unique user email One of the reasons is that User.login is both...

c# - Sum Time (HH:MM) in RDLC -

Image
I have and RDLC report that I need to get the sum of the field "time" I call it "vh: mm "Save in database with varchar type with format This is found by the formula: = (Even (Time. Spans. (Horseactivius.Well) field! Huriers) & amp; ":" & Amp; Yoga (System.timespace. Paras (fields! HorseActivva Value). Minutes)) The problem here is minutes, can be changed in 140 minutes hours! How can I get this? Regards Try to use the timaspen example var time1 = New TimeSpan (0,2,02,0); Var Time 2 = New Timespace (0, 5, 02, 0); Var Kulhaur = Time 1 + Time 2;

javascript - How do I turn off a function using jQuery? -

I have two buttons (on and off) when I click on "ON", then I call "turnover" I want to turn on a function called , and when I click on "off", I want to close the function. I have it now: $ ("body"). ("Click", "#turnOn", turnToolOn); $ ("Body"). Closed ("click", "# turnoff", turntone); The () function is working on , but when I click on "off", I still can not seem to stop working my performance. You need to wrap your on / off events in the "click" event, and the actual element Use the ID of which you are using as a button So, if you have a button & lt; Button id = "turn on" & gt; On & lt; / Button & gt; and & lt; Button id = "turnoff" & gt; Closed & lt; / Button & gt; : $ ("#turnOn"). Click (function () {$ ("body") .on ("click" TurnToolOn)}); $ ("# Turnoff"). Click ...

c# - Binding IsEnabled to IsChecked in WPF -

I have a checkbox and radio buttons. I need binds IsEnabled property in IsChecked property & lt; Checkbox X: Name = "check_box" content = "checkbox" IsChecked = "True" /> & lt; RadioButton Content = "Dependent Component" IsChecked = "True" margin = "153,0,0" IsEnabled = "{binding check_box.IsChecked}" /> Is there a way to do this without writing the code? Yes, you need to use the ElementName () binding: & lt; Checkbox X: Name = "check_box" content = "checkbox" iischeck = "true" / & gt; & Lt; RadioButton isEnabled = "{binding element name = check_box, path = ihisac, target, netview = false}" ... / ...

r - Using sapply(,,simplify=TRUE) -

I have a list of models and they want to return the array (not their list) Coefficient (For the inquisitive, I am running a model on data from a bunch of different neurons. I would like an array which is beneficial to x neurons.) If all the models are successfully run then the following works are fine: cof = sapply (model list, coffee) But if a model fails, then the coffee returns ('returns'), which returns to other return values Has a different length, and I have a list with an array instead ends. : ( My solution works and is general purpose, but it is extremely ruthless: coff = sapply (model list, coffee) normal = cof [ 1]] # (It should be sure that this is not zero!) Typical [1: length (typical)] = NA # Change all coefficients with bad bad = sapply (modellist, is.null) # #) # For each 'zero', (yug! A loop!) Coffs [[i]] = with a proper entry (nas) coheas = selifiser 2 (kofes) = instead of # typical # now i have an array Switch to be able to convert Am...

asp.net - Multiple file download -

ASP.NET / VB.NET web application. Currently I am creating a Word document, this is a great way to handle this with a "open / save" dialog etc. for the streaming browser ... Actually in webform The multi-select listbox is that they select one or more documents and click the "Generate / Download" button. Works great for a file but many files do not work here. Here is a part of my code. Present. response. ClearType (HTTP) Running response. Edhader ("Content Disposition", Convert.tostring ("etacet; filename =") and DocFileNameDestination) HttpContext.Current.Response.AddHeader ("Content Length", Last DocumentStream.ToArray (.) Length.Tostring ()) HttpContext.Current .Response.ContentType = "Application / MS-Word" HTTP Presentation Present. response. BinaryWrite (final documentstream.Tuare ()) HPPTXT Current. response. Flush () hpptext Current. EpilinkInstance Compllerequest () Question: How can I allow the user Down...

winapi - How does a modal dialog's message-pump interact with the main application message-pump? -

My understanding is in any form, automatically its message pump, that dialog is running on a dedicated thread - this is right ? If so, how does the existence of the model dialogue affect the message loop of the main application? Do both walk in parallel, does one take priority? I have a situation where a model dialogue is waiting for several seconds, and it is possible that the dialogue has to wait till the main application thread is busy? As the second spectacle is explained, the modal dialog will run in the same thread, called the caller. So if you run the dialog from the main UI thread that contains your main loop, you will end up with the nested message loop. The stack will look something like this: WinMain yourMainMessageLoop Dispatches SomeMessageHandler DoModal and DoModal your own GetMessage spin in / translation message / dispatch message loop main message loop ( YourMainageLoop in the sample stack given above) Active "that it is still running, but...

c - My own random number generator -

I want to create a random number generator where the user specifies the range and quantity of the specified numbers. I want to make every number unique to it (no double). I made it so far (it generates but repeats some of them, why?) #include & lt; Time.h> # Include & lt; Stdio.h & gt; #include & lt; Windows.h & gt; # Include & lt; Conio.h & gt; Int main () {srand (time (faucet)); Int start, stop, zodiac; System ("chcp 1250> gt; nul"); Printf ("Welcome to Random Number Generators! \ N"); Printf ("\ n What border? \ Nfrom:"); Scanf ("% i", and Start); Printf ("to:"); Scanf ("% i", & amp; stop); Printf ("How many numbers?:"); Scanf ("% i", and Amount); Int number [zodiac]; For (int i = 0; i number [0] = 5 numbers [1] = 6 numbers [ 2] = 2 numbers [3] = 8 Now you are working on number [4] You generate 2 ... you are behind Scan the array and find that 2 is a h...

javascript - jQuery DatePicker Update Options based on Radio Button Selection -

Whenever a different radio button is selected, I am trying to get a jquery date picker to update . & lt; Div style = "padding-down: 50px;" & Gt; & Lt; Label & gt; Location: & lt; / Labels & gt; & Lt; Input type = "radio" name = "locate" value = "internal" & gt; Internal & lt; Input type = "radio" name = "find out" value = "external" & gt; External & lt; / Div & gt; & Lt; Div & gt; & Lt; Label & gt; Due date: & lt; / Labels & gt; & Lt; Input type = "text" name = "dueDate" id = "fixed date" size = "25" placeholder = "please enter date" autocomplete = "off" readonly = "true" & gt; & Lt; / Div & gt; jQuery works but it does not update datePicker every time a new radio button is clicked. var locate = null; $ ("Input [name = 'locate']")....

c# - How I can get space between the bars of my chart? -

I am making this chart in C # using a Windows form and not me One way to separate bars from the found charts as you can see in images, they "stick up" can anyone help me with that? What am i doing wrong Please check the link to check your actual chart Thanks My code:.! private void InitChart () {if (AvaliacaoFisica [= null) {// data Arejh string] seriesArray = { "Ombros", "Peito", "BRC Director", "BRC Esq" , "Cintura", "stomach", "anca", "coxa dtt", "coxa esq"}; // "Altura", "currency", "Idade", double [] pointsArray = {double.Parse (AvaliacaoFisica.PerOmbros.ToString (), System.Globalization.CultureInfo.InvariantCulture), double.Parse (AvaliacaoFisica.PerPeito.ToString (), System. Globalization. CultureInfinancialism), Double. Purse (avalikaofficia, Perbracoder., Toastring (system), globalization, food infinitiaculture), double. Purse (avalikao...

How to run PHP Inside Javascript -

How do I run PHP inside the following JavaScript to solve this problem? Here's my PHP: & lt ;? Php query_posts ('post_type = calendar'); If (is_pause ()): while (is_pause ()): the_post (); ? & Gt; {Title: '& lt ;? Php the_field ('program_title'); ? & Gt; ', Url:' & lt ;? Php the_field ('link'); ? & Gt; ', Begin:' & lt ;? Php the_field ('start_date'); ? & Gt; ', Inter:' & lt ;? Php the_field ('end_date'); ? & Gt; '}, & Lt ;? Php timeline; end if; ? & Gt; This is my JavaScript: & lt; Script type = "text / javascript" & gt; $ (Document) .ready (function () {$ ('# calendar'). Full calendar ({header: {left: 'previous, next to next', center: 'title', correct: 'month, basic, basic ''}, Editable: false, eventLimit: true, // Allow too many incidents to "more" links: [PHP goes here}});}; & lt...

asp.net - Enable users to upload files to folder using javascript -

I am running Windows Server 2012, IIS 8 and ASP.NET 4.5. Please be patient with me because I am new to both IIS and ASP.Net. I am trying to create a site where users can upload multiple files that are placed in the hosted folder on the web server. . When a user clicks on the "Upload" button, I want to refresh that page and see the message "Your file was successfully uploaded". upload.aspx & lt; Html & gt; & Lt; Top & gt; & Lt; Script language = "javascript" & gt; Validate the function () {// does some verification material doUpload (); } Function doUpload () {document.upload.todo.value = "upload"; Document.upload.submit (); // Display Message} & lt; / Script & gt; & Lt; / Head & gt; & Lt; P name = "message" style = "display: hidden" & gt; File uploaded successfully. & Lt; / P & gt; & Lt; Form method = "post" action = "upload.aspx" na...

Google Analytics Realtime Sources Missing -

I am using the Realtime Time API in many high traffic domains, but there is a problem especially where very little / Somebody RT: source information is being provided. If I query the same page using the original API then the source information is available / correct. Most of the rows given by the realtime API for this problematic domain are (not set) . All pages have implemented manual source tracking correctly: http://www.domain.com/page/?utm_source=Facebook&utm_medium=med1&utm_campaign=camp1 There is no difference between the working domain and the problematic one. So far I have tried: Various utm_medium and utm_campaign Values. In my RT query, only reduce the number of dimensions of rt: pagePath and RT: source. Is there an analytics configuration value for this domain different? Any help would be greatly appreciated.

javascript - Rejecting and then Resolving a Q Promise -

I have seen a code that looks like this: var defer = Q. Defer (); // Do something, if there is a callback here (mistake) {defer.reject ({err: err})} defer.resolve ({success: data}); // stop callback return defer.promise; If a promise has previously been rejected, and then resolved, then it seems that "rejection" remains. When I first saw this pattern, I'd suggest wrapping the resolution inside a else , but since it works, is it an acceptable pattern? ? Can there ever be a problem to reject and then resolve a promise? It seems that if you solve and then reject, then the resolution remains. So whatever happens before, what is "rods"? So whichever is first, what is "blackjack"? Yes, of course. It has been promised that once the promise of the situation is volatile (full or rejected). No, there can not be any problem here, if the rejection is the first, then the promise is "dismissed". However, think about whether some...

php - Use of internal libraries in an external listener -

I am currently implementing a payment system for which an ok.php and ko.php URL is required. When getting confirmation in Ok.php, I want to check data matches with me through the library first (this is a method), and then send an email from the custom mailer class. The problem is that those libraries are fully protected from direct access: & lt ;? Php if (define ('BASEPATH')) exit ('no direct script entry is allowed'); As ok.php is accessed by the payment processor, it can not be loaded through CodeIgniter and thus it is not defined as 'BASEPATH' and access to those libraries is not as defined by Could. I found a post about access to the CodeIgniter superobject, but I am worried about its security, and there are no other possible loading results in the "desired" way. What would be the right way to create an audience URL and use the CodeIgniter function?

ruby - Rails nested association. in render :json -

The 90% of the current questions asked me what I want, but I have found a bottleneck. I have the checkins model, and there is a person model. Checkins related to People . In my controller, I have this code: data = check in. Json: {data: data} For each checkin , I want to nest it in affiliate person past stack overflow questions Recommend that I do this: data = checkin Presenting all Jason: data.to_json includes :: person But, it makes it difficult as I originally did, like the nest inside my cover Jason object To make, because to_json creates a string, no hash not. I want the wrap JSNA object so that I can follow a standard JSON output, where data is always in the data: field, and the other Metadata can be linked to feedback. How can I get the effect of : to_json while keeping the cover object? Specifically, this is not a valid answer for me, because it's really ugly: submit data = checkin.AL json: {data: JSON.parse data.to_json (in i...

wix - How to configure .wxs file to to detect latest version of IE when writing to the FEATURE_BROWSER_EMULATION RegistryKey? -

मेरे पास एक घटक के साथ .wxs फ़ाइल है & lt; घटक आईडी = "IE_BROWSER_EMULATION_REGISTRY "Guid =" * "& gt; & Lt; रजिस्ट्रीकी रूट = "HKCU" कुंजी = "सॉफ़्टवेयर \ Wow6432Node \ Microsoft \ Internet Explorer \ Main \ FeatureControl \ FEATURE_BROWSER_EMULATION" & gt; & Lt; RegistryValue प्रकार = "पूर्णांक" नाम = "SDLTradosStudio.exe" मान = "9999" कीपैथ = "हां" / & gt; & Lt; / RegistryKey & gt; & Lt; / घटक & gt; मुझे पता है कि अंतिम उपयोगकर्ता विंडोज 7 का उपयोग करेंगे और उनके कंप्यूटर पर कम से कम आईई 9 स्थापित होगा। लेकिन मैं वास्तव में उपयोगकर्ता के मशीन पर स्थापित IE के नवीनतम संस्करण में मान सेट करना चाहूंगा। मैं एमएमएसआई बनाने के लिए वाईएक्स एडिट टूल का उपयोग कर रहा हूं। उपयोगकर्ता के मशीन पर स्थापित IE के नवीनतम संस्करण को मैं कैसे पता लगा सकता हूं? आईई वर्जन में स्टोर है रजिस्ट्री कुंजी HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ Internet Explorer \ svcVers...

How to check if XML is well-formed in Elixir -

I am receiving the situation in which I need to ignore the XML file which can not be created properly . I'm using SweetXml which uses xmerl I have a badly formed XML which is not a location between two attributes is_well_formed have work. - With a simple Boolean reaction it would be a lot better. Xmerl tries to parse the file, does not like it, and therefore sends an exit. I have not yet learned about observers, but it seems to me like a case for them. Is there an easy way to deal with the signal at the beginning or the exit? defmodule XmlIsWellFormed.WellFormed Def is_well_formed (Xml) Import SweetXml xml_string = to_string xml result = xml_string | & Gt; Pars # Pars exits # FYI - SweetXml.parse: #def parsing (doc) # {parsed_doc, _} =: xmerl_scan.string (doc) # parsed_doc # end # Note: Inspection results are not of any use xmerl Sends an exit with: # "whitespace_required_between_attributes" # Something like this will happen: # try do # result =: x...

php - Test writing to file at the same time as anyone else using file_put_contents -

I have a form on the page that after submitting its content the file has been written using file_put_contents. I use LOCK_EX to lock while locking the file. But there is a way to do that it really works and it happens to see that when the file is called twice at the same time. $ answer = file_put_contents ($ file, $ skier, FILE_APPEND | LOCK_EX); Thank you in advance you launch En Bet / Shell You can try to execute your PHP code at the same time and access the same file

c# - Copy list1 property to list2 based oncondition -

I have a list with some properties: public class Class1 {public entry Id; The name of the public string; } List & lt; Class 1 & gt; List1 = GetSomeData () After this step I have filled all the IDs in the list but names are empty. I have another list, where these values ​​are filled in such a way : Public Class Class2 {Public Ent ID; The name of the public string; } List & lt; Class 2 & gt; List2 = GetSomeData () Therefore list2 has filled the ID and name - Ids are similar to list1, but of course, on the second index. It is possible to fill out the property name based on the ID2 through Linux 2, with the name list1? I have tried to do something like that, but it does not work, I am able to get names or names of names only, but not in list 1. list1.Join (list2, l2 => l2.Id, l1 => l1 ID, (L1, L2) => {l1.Name = l2 .Name; return l1Name;}); Or this - but there is a problem with the new segment, so I can not save it again in list 1. (from L1...

php - SNI and HTTP hostname mismatch -

I have a web application that uses curls to talk to other web applications on the same server. Domains share but they are different subdomains, they share wildcard SSL certificates. I get these errors in my error log: Hostname provided by SNI and hostname c.my.app provided by HTTP. is using cURL to communicate with a.my.app b.my.app . It seems that SNI is getting a "random" hostname rather than using it on the hostname, I do not know what's going on. Is this an easy way to decide? Or is there any way to disable this check?

google chrome - Is there a method I can override on a JavaScript object to control what is displayed by console.log? -

I'm thinking about Chrome specifically, though firebug would be interesting. I have tried string () and valueOf (), but none of them is being used. The interesting thing is that if I take a function, this function will display the definition - but if I add string () method I'll see this zero! var a = function () {}; Console.log (a); // Output: function () {} a.toString = function () {return 'a'; }; Console.log (a); // output: tap a.valueOf = function () {returns 'V'; }; Console.log (a); // Output: blank Any ideas? Nobody knows the way I know your best bet on that object to a toString () will be to define the method that you want to log on and then it is said directly or indirectly: var o = {}; O.toString = function () {back "three blind rats"; }; Console.log ("" + o); Console.log (o.toString ());

VIM - Regex - Multi-Line Search Query for changes in field value -

I have a large log file that includes an example of a device driver failing. Driver buffer is supposed to provide data, which the client reads the application. The driver logs the amount of data in the buffer before and after reading in the 512 byte chunks, and transmits the data to the customer. There are several junk data scattered randomly in many lines in the log file, below is a brief example or a general working case. Before transfer: 1: Available 512 bytes ... after junk data transfer 1: Available by 0 bytes ... before junk data transfer 2: Available 512 bytes ... Junk Data Transfer After: Available in 0 bytes In the case of an error, it appears (the transfer number is from a specific example; the issue is not always the transfer is at # 35): 34 before the transfer: Available 512 bytes ... Junk Data 34: Available by 0 bytes ... before junk data transfer 35: available 512 bytes. 35 after junk data transfer: Available 512 bytes Therefore, I have a multi- Line query whe...

php - error while connecting to mysql -

इस सवाल का पहले से ही एक उत्तर है: 2 जवाब यहाँ कोड है & lt;? Php $ con = mysqli_connect ("******। Com", "उपयोगकर्ता", "पास", "डीबी"); गूंज mysqli_connect_error (); ? & Gt; और मैं वापस (प्रतिध्वनि द्वारा) होस्ट '************ ***** 'कई कनेक्शन त्रुटियों के कारण अवरुद्ध है; 'Mysqladmin flush-hosts' के साथ अनब्लॉक करें और यहां त्रुटि लॉग फ़ाइल [04-Nov- 2014 21:30:22 यूटीसी] PHP चेतावनी: mysqli_connect (): (HY000 / 1129): कई कनेक्शन त्रुटियों के कारण होस्ट '*******************' अवरुद्ध है ; और [/ p] पर / myome 04-Nov-2014 21:18:30 यूटीसी] PHP चेतावनी: mysqli_connect (): (28000/1045): उपयोगकर्ता के उपयोगकर्ता के लिए प्रवेश निषेध '@' ***************************************************** ** '(पासवर्ड का उपयोग करते हुए: हां) /home/**************************************************** मुझे क्या करना चाहिए? आपका आईपी अवरुद्ध है क्योंकि आपने लॉग-इन करने का प्रयास किया ...

Windows Azure Automation -

I am trying to implement a runbook in Windows Azure automation, but I have to run the script on or off Can not run my VM because I can not authenticate with the machine. Can anyone tell me the correct way to use a blue account to authenticate the script? Any other questions on the Internet ... I am getting a way to use the .pfx certificate, I use the certificate from my local machine or my VM It's not sure? Below I am posting my existing script: Workflow TurnOnServer {inlineScript} {Select-Azure Subscription - SubscriptionName 'My Subscription' Get-AzureVM -ServiceName ServerName Stop- AzureVM-name server -name-service name ServiceName}} There are two different ways of attesting, either to generate a one, upload it as a management certificate to Ezur, then to prove it as a property. REFERENCES not. Or, you can now certify using

login - Okuma - How to open the Windows start menu -

Image
I need to get into the Windows interface (XP). I've read that you cancels control, although I do not see the cancellation button anywhere): This is a PGLL with a normal panel. Its purpose is to share the file. I understand that the machine is available to obtain data. However - I have also considered using THINC API + MTConnect + Kepware to get data (if someone comments on it, please let me know - I'm not sure where I am To start with) Thank you! "Cancel" button has a button with three diagonal lines. This is actually escape key. It looks like: This key While pressing, hold down the Ctrl key, the Start menu will pop up. The same is true on your desktop PC. One way of "getting data" may be to use Windows File Sharing, which I think is what you are suggesting. Collecting information on a program like the other hand is a different matter. It is not clear from viewing the software if it supports or not, if this happens, then the...

java - Can I access a SessionScoped CDI bean from a created Thread? -

I have a web application that has a session-signed bean that works a bit like my JSF On the page, I have a button that I want to enable the client to proceed with the progress of the updated work on the page by AJAX . To solve my idea, it was meant to create a new class that implemented Runnabl, which calls the business method of my session. Scoped Bean I submit the submit button on the JSF page to a request squid Suppressed in a bean that creates a new thread and starts my runnabl. The problem with this approach is that the Member variable of session SOCODED bean needs to be updated by the new thread Here is what I have tried here. @ Named @ session Public Work Worker (Public Functioning); } @Nominated @Required Public Class Submitter {@ Remove Private Staff Worker; Public Start () () () (New Thread (Runner (This Worker)) Launch ();}} Executives Public Class Runner Runnable {Private Worker worker = null; Public runner (worker w) {this.worker = W}} Public Start () {this....

ios - How to make search query on certain web site and display it as native app -

I have an assignment to implement, but after a few thoughts, I do not know where it starts . Need to get: For example, Take the Bestbay Web site from my app, I would like to prepare a definitive query which will be used / used by me for the best search. On my device, I would like to show it as 10 items of the website that was returned, for example, if I type "TVs" then I get a list of TVs, so I list this for the price and items on my device I would like to show up with a link (for at least 10 first items). I have experience with basic apps (I did not work with web application). I can not do use the best purchase API I do not know where it is starting - I have read about it. I thought that web pages need to be used as HTML and to parse the needs of the objects. Does anyone do something like this and give me some starting point? How does this type of problem reach? (Tutorials / documentation / sample code is something that can help me get started). In the end, I d...

xcode - inout parameter in closure crashes the Swift compiler -

मुझे बस स्विफ्ट में एक नया प्रोजेक्ट प्रारंभ करना होगा और main.swift / P> struct Foo {बार दो: (बाउट में: स्ट्रिंग) - & gt; ()} जब मैं बनाने की कोशिश करता हूं मुझे एक त्रुटि मिलती है: सिग्नल के कारण कमांड विफल: सेगमेंटेशन गलती: 11 क्या मैं कुछ भी गलत कर रहा हूं? मैंने सोचा कि शायद inout बंद करने वाले पैरामीटर समर्थित नहीं हैं, लेकिन अगर मैं इस तरह से समापन को परिभाषित करता हूं: / P> दो बज़ दें: (बाज़ में: स्ट्रिंग) - & gt; () = {Baz in baz + = "x" return} या यहां तक ​​कि var baz: (बाज़ में: स्ट्रिंग) - & gt; ()? यह ठीक है और ठीक है बस स्विफ्ट में जांच 1.2 Xcode 6.3 बीटा के साथ भेज दिया गया, और इसे सफलतापूर्वक संकलित किया गया इसलिए निश्चित रूप से संकलक पर एक बग था, जिसने अंतिम रिलीज में हल किया

ios - Is it possible to overload += operator in Swift? -

For example CGFloat is possible for overload + = operator in swift to accept the argument ? if so, how? My attitude (below) does not work. Infix operator + = {affiliation left priority 140} public func + = (left left: CGFloat, right: CGFloat) {left = left + right} (edit) Important: The upward coding approach actually works. Please explain why I thought it was not for clarification. I'm sorry, my bad operator + = to CGFloat argument There is no need to be overloaded because Swift contains such surcharges. I was trying to do this let's go: CGFloat = 1.5 a + = CGFloat (2.1) This failed because I put the let and the error displayed by XCode confused me. And of course, works for overloading operators in my basic question (such as). Infix operator + = {Affiliate left priority 140} Public func + = (left: CGFloat, right: CGFloat) {left = left + right} Please feel free to vote to stop it.

linux - How can I include *.ko files into vmlinux in a build time? -

क्या मैं * .o से *। O में बदल सकता हूँ? मेरे पास * .o के लिए कोई स्रोत कोड नहीं है। मेरा उद्देश्य * .o को शामिल करना है vmlinux । अपने प्रश्न से मैं समझता हूं कि आप गतिशील मॉड्यूल *। Ko एक स्थैतिक मॉड्यूल में *। O जो कर्नेल में निर्मित होता है आपके प्रश्न का सरल उत्तर नहीं स्रोत कोड के साथ यह संभव नहीं है। अगर आपके मॉड्यूल का स्रोत कोड है , फिर मेकफाइल में परिवर्तन obj-m से obj-y और अपने कर्नेल स्रोत को इस लिंक से लिंक करें जिससे कि आपके मॉड्यूल का मेकफाइल में कर्नेल मेकफाइल

loops - Python Iterator: reset iterator? -

इस सवाल का पहले से ही एक उत्तर है: 10 उत्तर क्या आप इसे रीसेट कर सकते हैं? या फिर इसके माध्यम से फिर से बिना अगले तत्व को बचाने का एक तरीका है? आप Itertools.tee एक इटरेटर के पिछले मानों को "याद रखना" & gt; & gt; & gt; तेरटोल्ट से आयात टी, izip & gt; & gt; & gt; यह = आईटर ([0,1, -13,8,4,3,5,4,3,8]) & gt; & gt; & gt; It1, it2, it3 = टी (यह, 3) & gt; & gt; & gt; अगला (यह 2) 0>> gt; & gt; अगला (यह 3) 0> gt; & gt; & gt; अगले (it3) 1> और gt; & gt; & gt; [जम्मू के लिए, जे, कश्मीर में izip (it1, it2, it3) अगर मैं & lt; ज & gt; K] [1, 8, 5]

debugging - IntelliJ debug configuration for Perl script -

I am the new user of IntelliJ IDE new configuration-> applications-> Java main By specifying class and program arguments But I have some Pearl scripts in my application and it was thinking that How to do it. I do not see any options for adding a new configuration for the Perl script. I How to do it or explain why it can not work very helpful P>

c# - How i can put generic class into the collection? -

I have a generic -smclass which calculates the full value for numbers and I want to keep it in the archive and then The purpose of the class to me from this collection. I had already declared some class and I want to write something like this: class example & lt; T & gt; {Collection & lt; T & gt; Collection = new collection & lt; T & gt; (); Public Zero AddSomeClassIntoCollection () {collection.Add (some class ); }} class example & lt; T & gt; {Collection & lt; T & gt; Collection = new collection & lt; T & gt; (); Public Zero AddSomeClassIntoCollection (T Items) {collection.Add (item); }} What are you doing after this?

what is the meaning of jQuery selector carry a second parameter? -

When I read the book, I found that I do not understand this $ ("Span.task-name", $ function) .text (taskName); work-name is the class of the term tag Can anyone help me with that? What is the correct meaning of doing this? The second parameter is for reference: this .find ( ) is similar, where it takes a jquery selection and tries to refine it with a new selector. For example, if you type span.span1 to # div1 , you will do so: $ ("span.span1", "# div1"); It is the same: $ ("# div1 span.span1"); Between the two, there is actually only a small difference in performance, but there is no difference in performance.

c - Project Euler 4 - 5 digits palindrome -

I have to solve problem 4 on Project Oller site for my homework: The biggest palladium Product reads a pulindromic number both ways. Find the largest pandidome made from two 3-digit numbers product. # include & lt; Stdio.h & gt; Int main () {int i, j, palindrome [1000], n, temp, k = 0, num [10], max, digits; For (i = 999; i> = 320; i--) {for (j = 999; j> = 320; j--) {n = i * j; Temporary = n; Number = 0; {Num [points] = do the temporary% 10; Temporary / = 10; Issue ++; } While (temporary! = 0); If (num [0] == number [5] and amp; amp [1] == number [4] & amp; [2] == number [3]) {palindrome [k] = n; K ++; }}} Max = palindrome [0]; {If (palindrome [i]> gt; = max) max = palindrome [i]; for i (i = 1; i & lt; k; i ++); } Printf ("% d \ n", max); } I have got the correct answer, but my code works only for numbers with 6 digits and it is 100 * 100 (10000, 5 digits) to 999 * 99 ( 998001, 6 digits). Check my code from 320 * 320 to 999 * 99. ...