Posts

Showing posts from April, 2010

Python's equivalent for Ruby's define_method? -

What is a Python equivalent for Ruby's define_method , which is the dynamic generation of class methods will allow? (As can be seen in Wikipedia) Functions are first-class objects in Python and assign them The properties of a class or an example can be a way of doing the same thing as a Wikipedia example: colors = {"black": "000", "red": "F00", "green": "0f0", "yellow": "ff0", "blue": "00f", "magenta": "fff", "cyan": "0ff", "white": " FFF "} Class MyStream (ARR): Pass for Name, Code in colors.iteritems (): def _in_colour ( W code = code): return '& lt; Span style = "color:% s" & gt;% s & lt; / Span & gt; ' % (Code, self) setter (histrive, "in_" + name, _in_ color)

ArrayList objects in Java -

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

android - Scrolling a GridView with only Buttons -

I have a GridView button with just the button Button (to work) But if I want to scroll Gridview with many items, then it is not working on my HTC Desire but it is possible in the emulator. My Gridview: & lt; Android: layout_width = "fill_parent" android: numColumns = "auto_fit" Android: verticalSpacing = "10dp" Android: horizontalSpacing: GridView Android: id = "@ + id / gv_control_group" Android: layout_height = "wrap_content" Android: isScrollContainer = "true" = "10dp" Android: stretchMode = "columnWidth" Android: gravity = "center" Android: scrollingCache = "true" /> GridViewItem: & lt; Android: layout_width = "wrap_content" Android: layout_height = "wrap_content" Android: Orientation = "vertical" Android: gravity = "center_horseontal"> gt; Android: Android: Android: drawableTop = "@ drawable / green" /...

java - How to implement the abstract method in interface? -

I am thinking how to implement an abstract method in an interface. Looking at this interface: public interface analysis {public double getAverage (); } In order to implement an abstract method, do I declare the method as intangible? public abstract double getAverage (); ?? Or declare the interface as an abstract? Public abstract interface analysis {public double getAverage (); } Or need other things? I have a class that implements the interface called sign : marks of public squares apply (some other code) Manufacturer mutator public double getAverage ();} So, my main problem is how to implement the abstract method in the interface? To create an intangible class implementing the interface: Public abstract class AbstractAnalysis Applies analysis {public abstract double getAverage ();} to create a solid square to implement the interface: public class mine Analysis applies {public double getAverage () {// TODO}} Or, it increases the intangibl...

iphone - http authentication in devise and rails 3 -

I have an application which is planning on Rail 3. I would like to enable HTTP Authentication so that I can authenticate my web app from an iPhone app Is it safe or should I have a different authenticity? From the design point view you get 3 options: 1) Basic Use HTTP authentication: Your iPhone app is a secret key - cooked in your iPhone app code - which uses the web app to authenticate each request Google Search: "Prepare Basic HTTP Authentication" 2) You have a public certificate in your iPhone app and a private server on your web app. You can use the https through Ifikets. It's a lot of work to configure properly, because your iPhone app and the rail server are exchanging messages on an encrypted channel, it's very safe. Authentication is done at the transport level, hence the security is also transparent for your railway code. 3) The iPhone app connects to the web app using https, receives an authentication token that it regularly uses to call th...

don't not showing up properly html (Fix with php?) -

Hey, for no reason instead of being displayed as this don & amp; Amp;; T is showing as to how I can change & amp; Amp; #; By using > You can get a simple str_replace ("& amp; ##;", "'$ $ string) However, it would be better to find out why this strange issue is happening in the first place.

html - Why wont this work in Internet Explorer? -

I & lt; Ul & gt; Trying this nav bar using and & lt; Li & gt; and some CSS so that it creates a horizontal navigation but the way I have it does not work in IE, why not just firefox and chrome anyone know? Here's the CSS: .navbar1 ul {list-style-type: none; Margin: 0; Padding: 0; Hidden flurry; } .navbar1 li {float: left; } .navbar1 a {font-size: 24px; Color: # fc 0; Background color: # 900; float right; Text align: center; Height: 30px; Width: 120px; Border-width: 5px; Border Bottom Width: 5px; Border-top-style: solid; Border style: solid; Border-top-color: # fc0; Border-right-color: #FC0; Border-down-color: #FC0; Border-left-color: #FC0; Font-family: "Britannic bold"; }. Navbar1 a: Hover, A: Active {background-color: # 500} Here's HTML: & lt; Ul & gt; & Lt; Li & gt; & Lt; A href = "index.html" & gt; Home & lt; / A & gt; & Lt; / Li & gt; & Lt; Li & gt; & Lt; A href = ...

algorithm - Rhythm detection through analyzing the audio spectrum -

I am creating a rhythm-based game, and facing many problems with cadence. I get the current spectrum of a gaming song, it looks like float array with 512 float. 256 to represent left and right channels. FFT is also available. But I do not know how to work with that data, I have done some experiments, which are with the scene but he gave me a lot of information. I have googled for some ready algorithm, but there is nothing please Someone can help me, perhaps, some articles related to context, content, rhythm, working with audio spectrum. The code will also be very helpful thanks. Maybe you have not used the right search terms. Try Google 'tempo detection' or 'beat detection' together with 'code' or 'algorithm'. There are many papers, references, code examples, etc. Just a few hits:

java - Nested class vs implements ActionListener -

There are benefits or drawbacks to creating a nested class that implement ActionListener: Public square fu {Foo () {something.addActionListener (new button listener ()); } // ... Private class ButtonListener Apply ActionListener {Public Zero Action Action (ActionEvent E) {// ...}}} vs. ActionListener applies only to the main category: Public Squidoo ActionListener {Foo () {anything.addActionListener (this applies); } // ... Public Zero Effective Action (EVE) {// ...}} I have seen both examples often, and just want to know if any 'most' good practice. ' @nankor, you can still use anonymous internal classes as your listeners and are separate free-standing control classes and thus the code is Which is quite stable, I like to use a little bit of technique. For example: import java.awt. *; Import java.awt.event. *; Import javax.swing *; Public class benamiinarig {Make private static blank and showwei () {GUIPANEL GUIPANEL = new GUIPANEL (); GuiControl guiCon...

Best practice for sharing variables across forms in VB.NET -

I need to share the variables in VB.NET in two forms. One of these is the main form and the other one child is. I am searching, and I have met in some ways. I want to use the best method to do this. I have listed some options below. Please note which best option will be: Create a fixed / shared variable in a form and access it in other forms : Form 1 FM = new Form 1 (); // Creating the purpose of the parent to access the shared variable frm.a = "abc"; // Passing value Send an example of the main form when creating a child form. Variables can be accessed through a property function. Create global variables in a single module. This is the easiest option, but I doubt that this is the best option. I have read anything about representatives and events, but I do not know how to implement it. If there is any other way that I have not mentioned, please share it with me. There is no answer to the question: All the methods listed by you must 'work...

php - send data from Android app to local server -

I want to send data to the local server (PHP) from the Android application but it does not work This is my code Work with remote server): string path = "http: //localhost/sd.php"; HTTP Client Client = New DefaultHttpClient (); HTTP Connection Perms.Setection Timeout (Client.JetPrems (), 100000); HTTP response response; JSONObject json = new JSONObject (); {HTTP post post = try new HTTP post (path); Json.put ("im", 999); Json.put ("cTime", 12); Logs. I ("Jason object", json.toString ()); Post.setHeader ("Jason", json.toString ()); = New String Entity from StringType (json.toString ()); Se.setContentEncoding (new Basic Header (HTTP.CONTENT_TYPE, "Application / Jason")); Post.setEntity (se); Feedback = client.execute (post); } Hold (exception e) {object n = e.getStackTrace (); Toast. Make text (getApplicationContext (), n.toString (), toast .LENGTH_SHORT). Show (); } address http: //localhost/sd.php I'm wrong abou...

Grouping a sequence of bools in clojure? -

मैं निम्नलिखित अनुक्रम को बदलना चाहूंगा: (def boollist [true false false गलत सच्ची गलत]] निम्नलिखित में: [सच] [गलत झूठे सच] [गलत]] मेरा कोड एक स्टैक ओवरफ्लो की ओर जाता है: (defn sep [boollst] (पाश [lst boollst अलग [[]] [बाएं दाएं] (2 लीस्ट ले)] (अगर (शून्य शेष) अलग () (फिर से (अगले लिस्ट)) (फिर से (अगले लिस्ट)))) () () () () () / Code> क्या इस को बदलने का एक शानदार तरीका है? एक छोटा , "चतुर" समाधान होगा: (defn sep [lst] (चलो [x (विभाजन द्वारा पहचान lst)] (अंतिम फ़िल्टर (मैप concat (cons [] x) x) ))) "स्टैक अतिप्रवाह" मुद्दा क्लोज़र के पुनरावर्तन के संबंध में है और यदि आसानी से संपर्क किया जाता है तो आसानी से बचा जा सकता है। आपको हमेशा इन प्रकार के फ़ंक्शंस को आलसी तरीके से कार्यान्वित करना चाहिए: अगर आपको पुस्तकालय कार्यों का उपयोग करते हुए समस्या को सुलझाने की कोई चाल नहीं मिल रही है, जैसा कि मैंने ऊपर किया था, आपको सामान्य समाधान के लिए "आलसी- seq" का प्रयोग करना चाहिए (जैसे कि पीएमजोर्डन किया था) जैसा कि यहां समझाया गय...

Loading generic service implementations via java.util.ServiceLoader -

I stumbled over some inconvenience by using the java.util.ServiceLoader and the other day. The trench is made in me. Suppose I have general service: Public Interface Service & lt; T & gt; {...} I can not explicitly tell the ServiceLoader to load the only implementation with a specific general type . Service Loader & lt; Service & lt; String & gt; & Gt; Services = ServiceLoader.load (Service.class); // Failure My question is: What are the proper ways to use ServiceLoader to safely load the implementation of normal service? After asking the above questions and the answer to Paimalo, I have been able to come up with a solution. Public Interface Services & lt; T & gt; {... true} If an implementation can handle the given `t 'type; Incorrect Otherwise Public Boolean Cahndal (class change boolean canServe (class boolean canServe (object o) and Is also changing. & Lt; T & gt; & Lt; T & gt; Similar servic...

python 3.x - resetting the parameters of a for loop from inside the loop in Python3 -

I am working as a fun way to learn the language through Project Euler problems in Python 3, and the problem My solution of the number three I think is a small cowardice problem is the biggest factor of 600851475143, and I have solved it in a very wonderful way: #! / Usr / local / bin / python3 # encoding: utf-8 # which is the main key factor of the user type def main (): original = int (input ("input a number:")) if the original == isPrime ( Original): print (origin, "prime") and second: print (factor (original), "biggest major factor", original) DF factor (number): nummy = number for the number (nummy, number) : If (number% number == 0 and isPrime (num)) == number: largest = int (num) number = int (number / largest) nummy = int (biggest + 2) print ("so far , ", Most Yes, "the biggest prime factor is ...") if the number & lt; Largest: Break Return is the largest def: Value (value): range for the number (2, int (value ** 0.5) ...

c# - Why does LINQ Query return more results/rows than the table I am querying? -

For reference, I am working on data conversion 1 time from Excel Sheets that I have imported into a database . The data is not normalized and I am trying to normalize it. I have 3 tables in a SQL database. They are called Old Assets, Old Transaction and Old Greece. The old Transaction is OldAssets OldUsers 7903 record 7437. 9764 I am using LINQ where these tables OldUsers of OT in OldTransactions u this code OldAssets to SQL to query using oa (Oa.Asset_Serial_Number == ot.Asset_Serial_Number and amp; ot.User_EID == u.User_EID & amp; ot.Asset_Tag == oa.Asset_Tag) select new transaction {DevCenter = ot.Transaction_Dev_Center, action = ot.Transaction_Action, status = ot.Transaction_Status, ModificationDate = ot.Modified, ModifiedBy = ot.ModifiedBy, CreatedBy = ot.CreatedBy, TransactionDate = (System .DateTime) ot.Transaction_Date, Transaction_Asset = (System.Int32) oa.ID, Transaction_User = (system .Int32) u.ID} I have been through all your OldTransactions and go to ea...

xaml - Silverlight Toolkit Chart: Assign Hyperlink to Axis -

I have a simple Silverlight Toolkit chart which is bound to the following types of archives: Public class chartAitam class {public string name {get; Set; } Public double standards {receive; Set; } Public String Url {get; Set; }} I can get a chart to display name (X-axis) and value (Y-axis) correctly, but I can use labels on the x-axis The X-XML label on the hyperlinkbutton URL property should be something similar to the following: & lt; Hyperlink button content = "* name property here *" navigetry = "* url property *" targetName = "_ blank" & gt; & Lt; / HyperlinkButton & gt; I got an example, which allowed me to set the axilabile style for X-axis so that labels are now hyperlinkbutton. The problem is that I assign assignments to the URL property as a navigator. Unable to bind Any ideas? First of all, I can post the full code and then clarify. & lt; UserControl.Resources & gt; & Lt; Style x: key = "hype...

sql - Is @mp:id always in order of the XML Doc? -

I am parsing some XML using OPENXML I need to close the identity of XML to know the order of nodes is. Is the MP3 id always in order? I know that they are not sequential, but are they in the least order? For example, the following questions will generate always results in the exact same form as XML? SELECT row_number () Over (according to order ID) RN, STIID, Convert (Vertex (Max), Convert (Verbinari (Max), STIID), 2), [Action] OpenXML VARAR (paramount) 'parametrazed string' [1] '' [desc]] INT '' mp3 id ', [steiid] iit' iid ', [action] ORDER by rss or @mp: id is a matter of a meta data type that can go in any order based on how things are saved? You have no guarantees of the correct order to get it, you can enter the number sequence (eg NF Table with column number) and then use XPath with the status () function of your XML: SELECT NF.Number, Order_id NF CROSS APPLY Select the RAW value (@ id ',' int ') @ xml.nodes...

android - Need Help in drawing buttons around the circular path in Java code? -

I can get the central point of the circular, so I want to draw some buttons around the central point of the circular See, you can give me some advice, links will be more useful for examples. This is my code Edit: Public class extends drawCirPicture activity Is called {/ ** when activity has been created previously * / @Override Public Shun OnCreate (bundled savedInstanceState) {super.onCreate (savedInstanceState); SetContentView (new sample view (this)); } View private static class sample view {Private bitmap mbitmap; Public Sample View (Reference Reference) {Super (Reference); SetFocusable (true); InputStream = Reference is GetResources () OpenRawResource (android.R.drawable.sym_call_outgoing); MBitmap = Bitmapficht. Decodestream (is); } @ Override Scared Protected Zero (Canvas Canvas) {Canvas Left Color (Color. GRA); Paint P = new paint (); Float center Y = 200; Float center X = 130; Double alpha = 0, wedge = 0; Double PI = Math PI; Float x, y; Int radius = 55; (Alpha = 0, w...

c# - Does Assembly.Load use cache? -

I have a resource assembly that holds lots of reusable scripts, styles and controls. I'm not sure that this assembly Should be cached after loading. The assembly does. Load internal cache within the same app-domain? Thank you! Assemblies are loaded upon loading in an appdomain, so there is nothing for you, This is the default behavior. If you want to unload the assembly, then in reality you will have a problem, in which case you need to unload the whole app dotm, this is the reason that you often have an assembly in your case Loads a new app in dotmen, you do not need to go to that endeavor.

java - I have got this warning: com.sun.org.apache.xml.internal.serialize.OutputFormat is Sun proprietary API and may be removed in a future release -

मेरा कोड है आउटपुटफ़ॉर्मेट wOf = new OutputFormat ("XML", "ISO- 885 9-1 ", सच); "Itemprop =" text "> एक समाधान उस वर्ग का उपयोग नहीं करना है। एक अन्य समाधान चेतावनी को अनदेखा करना है कक्षा को देखकर, मुझे संदेह है कि यह एकमात्र व्यवहार्य समाधान है ... यदि आप सन एक्सएमएल स्टैक से चिपकते हैं। (एफडब्ल्यूआईडब्ल्यू - यह अपाचे एक्सएमएल स्टैक को एकीकृत करने में सूर्य की ओर से एक गलती की तरह लग रहा है जावा एसई में वर्ग एक अलग पैकेज में होना चाहिए जो इस चेतावनी को ट्रिगर नहीं करता है। मूल अपाचे संस्करण स्पष्ट रूप से "केवल आंतरिक उपयोग" का इरादा नहीं है। एक और व्याख्या यह है कि यह कोई गलती नहीं है, लेकिन कुछ ऐसा है जो ओरेकल एक्सएमएल स्वरूपण को नियंत्रित करने के लिए बेहतर एपीआई प्रदान करके भविष्य की रिलीज़ में तय करना चाहता है।)

actionscript 3 - Flex4 Error 1120 when accessing method -

I am trying to think that I am saying wrong with the wall, but not luck. I'm getting error 1102: 1120: the entry of the undefined property in the following file: & lt ;? Xml version = "1.0" encoding = "UTF-8"? & Gt; & Lt; S: see xmlns: fx = "http://ns.adobe.com/mxml/2009" xmlns: s = "library: //ns.adobe.com/flex/spark" title = "home" & gt; & Lt; Fx: Announcements & gt; & Lt ;! - Place non-visible elements (for example, services, value objects) - & gt; & Lt; / Fx: Announcements & gt; & Lt; Fx: script & gt; & Lt ;! [CDATA [import ca.ss44.pabhi.Player; Var g: player = new player (); G. Name ("name"); ]] & Gt; & Lt; / Fx: script & gt; & Lt; / S: View & gt; My player category: package ca.ss44.phabhi {public class player {private var _name: String; // Player Name Private var _cards: array; Public function player () {// sets current player, pla...

jquery - Creating array collection in JavaScript? -

Is it possible to create array archive in JavaScript? If so, how can I do this? If I have some data: for example 1- 5. You can create an object: var obj = {my1 : 'Data', my2: 'other'}; or var array = ['data', 'other']; You can access all data for (var key in the array) {item = array [key]; } (Var key in obj) {item = obj [key]; }

c# - Silverlight WCF performance questions -

I have a WCF service (not RIA) that I use with Silverlight. The application is fast data coming, the Twitter data of course;) which is written in a SQL Server database. The WCF service is in a separate web project and I select the server every 10 seconds from Silverlight. I've noticed that lately, probably due to the volume, although I limit it to 100 items per request (add a tech (100) statement for all questions). I have a debug in the manufacturer for my WCF service. Vitiline statement, and in the output window it showed the construction for each request, I think it is bad as I am stupidly creating various treasures etc. so that each request can create many new object contacts. Is there anyway for Silverlight besides voting for the service and WCF service often wants a small quantity of data (& lt; = 100 objects) for customers' own scenario? You can bind or look at Insert

How to convert ASCII(Unicode) code to Qt::Key_ code? -

उदाहरण के लिए: '& gt;' - & gt; 0x3e (Qt :: Key_Greater) अगर मैं Qt :: key के मानों को समझा सही ढंग से आपको किसी भी रूपांतरण की आवश्यकता नहीं है क्योंकि क्यूटी :: मुख्य मान यूनिकोड मानों के समान हैं, जैसे कि एक कास्ट पर्याप्त होगा: Qt :: Key_Greater == (Qt :: कुंजी) '& gt;' इस विशेष कुंजी के लिए सही होना चाहिए निश्चित रूप से अन्य विशेष चाबियां हैं जहां यह समझ नहीं आता ...

javascript - URL Validation for jQuery paste input -

I am trying to determine if a pasted URL is valid or not. I'm using the Force () function to detect paste events, I'm using a regex which I got for verification (which works and is ok for time). I am also adding some text to tell the user whether this is a valid URL or not. The only thing that works, when it is inside the bind (URL), the URL is validated. It works when it is kept out, though. JS: Verify the function URL (textwalk) {var urlregex = new RegExp ("^ (http | https | ftp) \: // ([one -zA-Z0-9 \. -.] + (\: [.z- one-zA-Z0-9 \ & amp; amp;% \ $ \ -]) * @) * ((25 [0-5] | 2 [0-4] [0-9] | [0-1] {1} [0-9] {2} | [1-9] {1} [0-9] {1} | [1-9 ]) \ (25 [0-5] | 2 [0-4] [0-9] | [0-1] {1} [0-9] {2} | [1-9] {1} [ 0-9] {1} | [1-9] | 0) \ (25 [0-5] | 2 [0-4] [0-9] | [0-1] {1} [0-9 ] {2} | [1-9] {1} [0-9] {1} | [1-9] | 0) \ (25 [0-5] | 2 [0 -4] [0-9 ] | [0-1] {1} [0-9] {2} | [1-9] {1} [0-9] {1} | [0-9]) | (. [Ek-zA -Z0-9 \ -] \) * [one-zA-Z0-9 \ -] \ (com | edu | gov |...

html - Visual Studio (2012 and lower) deletes CSS properties -

With Visual Studio 2010 I really have a weird problem. When I add CSS properties to a gradient in my stylesheet, Visual Studio is going to delete it sometime after debugging. For example, the code I add to your stylesheet like: .button {/ * Firefox * / background-image: socks-linear-gradient (top, # FFF; #fiffeff); / * Chrome, Safari * / background-image: -vebkit-gradient (linear, left top, left bottom, color-stop (0, # FFF), color-stop (1, #FEFEF)); / * Modern browsers * / background-image: Linear-shield (top, #fff, #phiff); / * IE * / filter: Projed: DXImageTransform.Microsoft.gradient (startColorStr = '# ffffff', Andcolrstre = '# Afifef'); } Sometimes when I start debugging, Visual Studio edits CSS: .button {/ * firefox * / background -seven: linear-shield (top, #fff, #FEFEF); / * Chrome, Safari * / / * Modern Browser * /} So it seems that the Visual Studio does not want to delete some features which it does not know. It's really upset Any idea how...

delphi - How to finalise a threadvar string to prevent a leak? -

This is not a big leak, but I think it would be nice to clean, but I've found that my Delphi XE Code is because it is defined as a threader, as it should be, but when the thread is finished, then it is not clearly writing such a variable. Is there a way to manually clear the string when thread is threaded? Do I assign empty string to it, or set it to zero or something? Assign spaces to do this string, set it to zero or final form Call on () They are all equivalent and they will assign the collection to remove their memory leak. In response to Marco's comment, it is clear: Dynamic variables that are generally compiled (long strings, wide strings, dynamic arrays, variants and Interfaces) can be declared with the threader, but the compiler does not automatically freeze pile-allocated memory created by each thread of execution. If you use these data types in thread variables, then it is your responsibility to remove your memory from within the thread, before the ...

Simulating clicks with Java for webDriver -

I have a problem In my testing I need to click on some areas of activity. There is no locator in this area So, I click on a design a coordinate. For this time I have this code: driver.getMouse (). Click ( ); But I do not know what logic should I use to do this work right? How to create a coordinate Click to use WebDriver? Please help me Here's the answer: See It is still working and is currently only available in the HTMLUnit driver. I do not know when the port will be ready for C #.

windows - What is Target Device of IOCTL_USB_GET_ROOT_HUB_NAME (USB driver specific IOCTL IRQ) -

मैं USB IOCTL IOCTL_USB_GET_ROOT_HUB_NAME द्वारा थोड़ा भ्रमित हूँ इसका लक्ष्य उपकरण क्या है? यद्यपि एमएसडीएन डब्लूडीके डॉक्टर स्पष्ट रूप से लक्ष्य डिवाइस को इंगित करता है, फिर भी मैं अभी भी डब्लूडीके द्वारा दिए गए USBVIEW नमूना द्वारा उलझन में हूं। मैं उलझन में हूँ क्योंकि इस प्रकार है: मैं कर्नेल मोड और यूएसबी चालक के लिए नया हूँ Windows में लिख रहा हूँ और अब विंडोज़ ड्राइवर किट से USBVIEW नमूना का अध्ययन कर रहा है। एमएसडीएन पहले चरण के बारे में बताता है कि USBVIEW का नमूना इस प्रकार है: मेजबान नियंत्रकों और जड़ केंद्रों की गणना करें। होस्ट नियंत्रकों के पास "एचसीडीसीएक्स" के सांकेतिक लिंक नाम हैं, जहां एक्स 0 से शुरू होता है। प्रत्येक मेजबान नियंत्रक प्रतीकात्मक लिंक को खोलने के लिए CreateFile () का उपयोग करें। प्रत्येक मेजबान नियंत्रक का प्रतिनिधित्व करने के लिए ट्री व्यू में एक नोड बनाएं। मेजबान नियंत्रक के खोले जाने के बाद मेजबान नियंत्रक को IOCTL_USB_GET_ROOT_HUB_NAME अनुरोध को रूट हब के प्रतीकात्मक लिंक नाम प्राप्त करने के लिए भेजें जो मेजबान नियंत्र...

callback - javascript send arguments object as argument -

I have to debate the callback function as a real argument. How do I do that? Callback requires a variable number of arguments. Example function such as: var func = function (callback) {doSomething (function () {// target is the actual logic callback (argument)}) In the callback function, pass the object to the arguments; } Thanks in advance. This can be a similar question like this: But I do not have to answer that question nor the answer. EDIT: If possible, I do not want to pollute the world. Use to apply a callback so that the array items are in the form of personal arguments on the function. callback.apply (this, logic); apply takes references, and logic as an array, and passed each item of the array as a designated argument of the function implemented can go. / P> function two (first, second) {alert (first), alert (second); } Two.apply (tap, ["hello", "world"]); // Alert "Hello", then "World" The impleme...

iphone - one alloc, retainCount == 2 -

मेरे पास निम्न कोड है: NSLog (@ "% d", [चार्ट retainCount]); Self.chart = [[BNPieChart alloc] initWithFrame: self.view.frame]; एनएसएलॉग (@ "% d", [चार्ट को बनाए रखने की संख्या]); टर्मिनल शो: [सत्र 2011-03-28 11:09:46 +0200 से शुरू हुआ।] 2011-03-28 11:09 : 51.008 वित्त [35111: 207] 0 2011-03-28 11: 09: 51.010 वित्त [35111: 207] 2 जैसा कि मैं जानता हूं, बनाए रखने के लिए संख्या 1 के बराबर होनी चाहिए, न 2 । आप संपत्ति को संरक्षित या प्रतिलिपि के रूप में परिभाषित कर सकते हैं, इसलिए: self.chart = [[BNPieChart alloc] initWithFrame: self.view.frame]; +1 एलोॉक ( [BNPieChart alloc] ) पर बने रहें / +1 असाइनमेंट पर बने रहें ( self.chart = )

php - Insert checkbox fields in email -

I'm looking at a way to insert checkbox fields in an email, so when you answer the email, Can send the farm! I have created an HTML email while using PHP, but when I answer, the checkboxes lose the field. You can not use the form in HTML e-mail E-mail has been sorted by the same time, when you send an e-mail reply, this form is not working as submitted.

tsql - Variable in T-SQL -

मेरे पास T-SQL कोड है: घोषित करें @ xml xml = N '& Lt; एक एबीबी = "122" & gt; & Lt; p & gt; & Lt; / p & gt; & Lt; / a & gt; & Lt; एक एबीबी = "344" & gt; & Lt; p & gt; & Lt; / p & gt; & Lt; / a & gt; '; @ टी तालिका घोषित करें (XMLCol xml); @T मानों (@ एक्सएमएल) में डालें; @ Sql varchar (अधिकतम) घोषित करें; सेट @ एसक्यूएल = 'अपडेट @ टी सेट करें XMLCol.modify (' '888' 'के साथ के मूल्य को प्रतिस्थापित करें [1]);'; Exec (@sql); जब मैं निष्पादित करता हूं, तो एक गलती खंड आता है: संदेश 1087, स्तर 15, राज्य 2, लाइन 1 तालिका चर "@ टी" । कैसे चर @ टी को घोषित करने के लिए? आप तालिका चर के बजाय एक अस्थायी तालिका का उपयोग कर सकते हैं। घोषित करें @ xml xml = N '& lt; a abb = "122" & gt; & Lt; p & gt; & Lt; / p & gt; & Lt; / a & gt; & Lt; एक एबीबी = "344" & gt; & Lt; p & gt; & Lt...

web services - building java SOAP client to access comscore api -

I am looking for a simple Java client that allows me to access simple SOAP AP. They open their SOAP WebSaver as an HTTPS service. Protocol for authentication Can anyone tell me how I can test my changes? If they provide WSDL files for their SOAP interface, you Java stub classes can generate classes like SOAP implementations and provide a wsdl2java tool that helps you with it. You can then use the stub classes to talk to remote SOAP services. There is more information in the Axis and CXF documents.

flex4 - In Flex 4, state transition doesn't resize in both directions -

I have two states when I switch from OFF to A, it resizes properly, but when I change A Back off, it happens without a smooth shape change What am I doing? This is my code: & lt ;? Xml version = "1.0" encoding = "UTF-8"? & Gt; & Lt; S: VGroup xmlns: fx = "http://ns.adobe.com/mxml/2009" xmlns: S = "library: //ns.adobe.com/flex/spark" xmlns: mx = "library: // Ns.adobe.com/flex/mx"> & Lt; Fx: script & gt; & Lt ;! [CDATA [Safe function but A_ change handler (E: Event): Zero {if (e.target as toggle). Selected) {this.currentState = "A"; } And {this.currentState = "off"; }}]] & Gt; & Lt; / Fx: script & gt; & Lt; S: states & gt; & Lt; S: state name = "closed" /> & Lt; S: state name = "A" /> & Lt; / S: States & gt; & Lt; S: transition & gt; & Lt; S: Infection from STEAT = "OFF" toState = "A" autoRe...

.net - Store values to collection, suggestion please -

Newbie question Which collection should I use to store such a structure? Files Archive --------------- File ID: Int Filename: String Path: String You will need to store many file data in the archive, find the path to the FileId field, delete the item through the FileId field. Since you have several pre-defined pieces, which are related to each value frequency, I To keep the required information for the file, I will start by defining a structure: Public Structure CustomFileInfo // Choose a name that the system IO {fights with the int file id for public reading; Public readonly string filename; Public readonly string path; // Constructor public customfileInfo (int file ID, string filename, string path) {this.FileId = fileId; This.FileName = fileName; this. Path = path; }} and then I will use a common archive (such as) to keep an example of that structure: list & lt; FileInfo & gt; MyFiles = new list & lt; FileInfo & gt; (); Alternatively, you ca...

How to remove the character at a given index from a string in C? -

How do I remove a character from a string? If I have "abcdef" string and how do I remove "b" ? It is easy to remove the first character with this code: #include & lt; Stdio.h & gt; # Include & lt; Stdlib.h & gt; #include & lt; String.h & gt; Int main () {char word [] = "abcdef"; Four words 2 [10]; Strcpy (WORD2, & amp; [1]); Printf ("% s \ n", word 2); Return 0; } and strncpy (word 2, word, strollon (word) -1); will give me the string without the last character, but I still did not know how the middle string Can control overlapping regions, I try to do something (not tested, maybe + -1 issue) Four words [] = "ABCDF"; Int idxToDel = 2; Memmove (& word [idxToDel], & amp; word [idxToDel + 1], strlen (word) - idxToDel);

Facebook Notes In Drupal -

We have a public FB page and I would like to embed notes section in a drop site, so when we send a new post Note about an event or something that shows it on the Drupal site (I want to put it under the latest news types section). Is there a Drupal module (we are using Drupal 6) Such functionality is allowed? I have seen some people who have trusted RSS feeds, but I believe Facebook is leaving the RSS feed. I think I can browse and possibly get a JSON feed of data, though it says the following: "Type": "OAuthException", "message": "An Access Token It is necessary to request this resource. " And I really do not know anything about JSON, so I do not know what that means or how can I get data on the site. Has anyone achieved this before, and if so, how? Well, maybe I was wrong to have an RSS feed of the note section still; I can drag it like this :)

java - Using {@link classname} for external API in my class -

मेरे पास निम्न है: पैकेज test.tester; आयात करें org.apache.log4j.Logger; सार्वजनिक वर्ग परीक्षक {निजी स्थिर लकड़हारा लकड़हारा = लकड़हारा। टैग (परीक्षक। वर्ग); / ** * {@link org.apache.log4j.Logger} * * @ परम आर्ग्स * / सार्वजनिक स्थिर शून्य मुख्य (अंतिम स्ट्रिंग [] आर्ग्स) {logger.info ("परीक्षण"); }} यह सफलतापूर्वक लकड़हारा वर्ग के लिंक उत्पन्न कर रहा है, लेकिन javadoc टूलिंग इस तरह से शिकायत करती है: निर्माण Javadoc जानकारी ... tester.java:3: पैकेज org.apache.log4j आयात org.apache.log4j.Logger मौजूद नहीं है; ^ Tester.java:6: प्रतीक प्रतीक नहीं मिल सकता है: वर्ग लकड़हारा स्थान: वर्ग test.tester.tester निजी स्थिर लकड़हारा लकड़हारा = Logger.getLogger (tester.class); मेरा मानना ​​है कि आपको लॉग-इन 4 जे लाइब्रेरी को जवाडोक कक्षापथ में जोड़ना चाहिए जब इसे चलाना चाहिए। अन्यथा यह नहीं जान सकता कि यह क्या है।

Implementing Key-value server -

I got a question that is: To implement a key-value server The user should be able to connect to the server and the command should be able to run SET a = b. On the command running, it should print. First of all, I did not really understand what the question is. In its simplest form, a key-value server is nothing else but a server that If it helps, you can think of a key as a variable name in a programming language or in a keyboard structure in an environment variable in the bash shell. In form of. A key server in the key-value server either tells the server what the key is, or request for the current key from the server. Of course, the server may be more complex which I have described above. More values ​​(for example, objects) and server / clients can have much more functionality compared to key basic values. Note that the term key-value server is very broad and does not mean any concrete by itself. For example, use the key-value store, Can call any data co...

c# - Select "IN" in LINQ to SQL -

I get a list of institutions to update and I have their ID. I want to get the original people from the database , Then I work: String [] id = updatedEvents.Select (ue = & gt; ue.id) .toArray (); Var Basic Aventures TOoUpdate = Db.tbl_ffk_event. Where (E => ID content (e.id)) .Oir (); But what I use to login is to generate this SQL: .. Select [t0] [id], [t0] [fs_mapping_id], [t0] [fs_id_value], [t0] [desc] [dbo] as [tbl_ffk_event] [T0] ou 0 = 1 - context: ... SqlProvider (Sql2008) Model: AttributedMetaModel Build: 4.0.30319.1 and that SQL means "get entire table" how do I generate such a "in" can do:. Select [t0]. [ID], [t0]. [Fs_mapping_id], [t0]. [Fs_id_value], [t0]. [Desc] from [dbo] [Tbl_ffk_event] as [t0] where [t0]. In the [id] ('AAA', 'bbb', 'ccc', 'ddd', 'eee',) thanks in advance Edit:. I'm stupid, I did not see the WHERE 0 = 1 This is because at that point, where there is nothin...

objective c - How to split a string? -

मेरे पास तीन स्ट्रिंग से बना स्ट्रिंग है NSString * first = .. ; NSString * दूसरा = ..; NSString * तीसरा = ..; NSString joinString; JoinString = [NSString stringWithFormat: @ "% @ -% @ (% @)", प्रथम, द्वितीय, तीसरा]; अब मुझे joinString से तीन मूल स्ट्रिंग्स वापस करने की आवश्यकता है I मैंने कहीं पढ़ा है कि मुझे इसके लिए NSScanner का उपयोग करना चाहिए I कोई भी विचार यह कैसे काम कर सकता है? आपके प्रश्न में दिए गए उदाहरण को देखते हुए, आप निम्न कार्य कर सकते हैं : // वर्ण हम NSString * sep = @ पर विभाजित करने जा रहे हैं "- ()"; NSCharacterSet * सेट = [एनएससीआरएक्टरसैट कैरेक्टरसैटविथर्सक्टर्स इनस्ट्राइंग: एसईपी]; NSArray * स्ट्रिंग्स = [जॉबस्ट्रिटिंग कॉम्प्लेक्सस्पेरेटेडबीयरएक्टर्स इनसेट: सेट]; // यह सरल तरीका है कि तारों में उनके पास रिक्त स्थान नहीं है। मैं NSScanner का उपयोग बड़े स्ट्रिंग के साथ करूँगा जिसमें चर जानकारी है और आप उस सूखे को घास की ढंका में ढूंढना चाहते हैं।

Inspect 3rd party code in Visual Studio 2010 -

I am trying to understand a large C ++ project written by a third party. As I work my way through code in VS2010, it is easy if a new function can be opened in a new tab. This would be similar to right-clicking on a webpage link and selecting Open Link in a new tab. Open in Firefox or Firefox or in a new tab ??? Is it possible in IE? If the code is in the same file, you can use it or if you use Vimeo By opening or opening a VIM, you can just divide by type: SP unless some other extensions allow you to open the same document several times. Individual files can have more options: If you do not want to lose you come from. Just use the floating window by dragging the source file out of VS-2010 in a click on the tab, if you have multiple monitors, you can see 4 documents at the same time Very easily, if you do not already know, you can quickly align the windows in the + / windows in the press.

html - php upload - undefined index iis -

मेरा एचटीएमएल फार्म कुछ ऐसा दिखता है: & lt; form action = "dins Php "method =" get "name =" test "enctype =" multipart / form-data "& gt; & Lt; तालिका वर्ग = "फॉर्मटेबल" id = "प्रोग्रामटेबल" & gt; & LT; टीआर & gt; & Lt; td वर्ग = "ft_head" & gt; शीर्षक & lt; / td & gt; & Lt; td & gt; & lt; इनपुट प्रकार = "टेक्स्ट" आकार = "26px" नाम = "शीर्षक" आईडी = "शीर्षक" स्वत: पूर्णांक = "बंद" /> gt; & lt; / td & gt; & LT; टीडी & gt; & lt; / टीडी & gt; & Lt; / टीआर & gt; & LT; टीआर & gt; & Lt; td वर्ग = "ft_head" & gt; उद्देश्य & lt; / td & gt; & Lt; td & gt; टेक्स्ट: चौड़ाई = "26px" ऊंचाई = "18px" नाम = "obj" id = "obj" स्वत: पूर्ण = "बंद" & gt; & lt; / textarea & gt; & lt; / td ...

java - TCP connection is not reused for HTTP requests with HttpURLConnection -

I have created an application that receives a request at a URL, and then downloads the full content of that page The client sends GET for example, Stackoverflow.com, and leads a parser's response, after which there is resposability to find all the sources from the page which will later be downloaded with GET requests is required. The method below is used to send those GET requests. It is sometimes called constant, with the URL provided by the parser. Most of those URLs are located on the same host, and TCP should be able to share the connection. public static zero sendGetRequestToSubObject (string reqil) {URL url = new URL (recUrl.toString ()); URL Connection Connection = url.openConnection (); InputStreamReader isr = New InputStreamReader (connection.getInputStream ()); } Every time this method is called, a new TCP connection (with a TCP 3-way handshake) is created and GET is then sent to that connection. But I want to reuse the TCP connection to improve the performance...

c# - encryption in .net -

I was told that there is an encryption library that I can use and a couple that I can choose from ( E.g., AES, RSA, etc.). I have read anything about the key. Are there some things that you just generate, can you encrypt and decrypt a series of texts? Do you have to buy that key? Besides, is there a best practice that I should be aware of encrypting and decrypting? Is the password being encrypted? Can the performance be affected? You're right Base64 encoding is actually the world away from encrypting your data. In the past, data is changed only to use 64 unique characters, which pushes the data in the best form, while later, your data is actually converted into a representation that only the appropriate key It can only be interpreted after decrypting using. Sometimes do not encode base 64, if you want to keep something secret. Do some things that you just create, so that you can encrypt and decrypt many texts? Yes. Do you want to buy that key? No, you generat...

Protect html/php/image files from tracking -

Is there any way to keep your files (PHP files / image files) safe from tracking ?? (TeleportPRO, HTTrack, etc) - Thanks for your time! HTTrack crawls through its website, then searches for and follows all links So any user who uses the browser will see what this program will look like. PHP server side so all the clients produce HTML so you do not have to worry about anyone getting your source code with the program like HTTek to get your source the only one The method will automatically be on the system to get direct access to files for the attacker ... And because your users will be able to see your images. To download but it will affect how? If you are selling images, you can access them through the .php file that checks that the logged-in user has purchased the image and then only show it. But for images that are part of your layout / template, it is quite common for all browsers, to download it. In those programs, they have been downloaded for local viewing only.

How can I watermark an image in Java? -

How do I create a watermark on an image using Java? I need the text entered by the user to be added to the status provided on the image. Any sample code / suggestions will help you. You can see the "Watermark drawing" section or you use the GIF4J library Can use

c# - Can't find cert in local store -

I have established x509 proof after these instructions; It comes to the store of trusted root certification authorities, AuthRoot. While trying to find the cert; Open Store: X509 Store Store = New X509 Store (StoreName.Otherthoot) Search through a loop, with an X thumbprint. When this trusted root certificate is installed in the auth store, it works fine When I try to do this, but install it in a private store, store X509Store Store = new Opening in X509Store (StoreName.My), I can not get the proof. In the certification, I can see it under Personal-> Certificate. Is there a necessary configuration in IIS7 for individual certificates? Will someone tell me what I am missing? This is the storename.Root, not for StoreName.AuthRoot, Trusted Root Certification Authorities. For personal stores, you must use the X509Store Maker with the StoreLocation parameter to use the local computer, personal store, otherwise you are searching in the current user, personal store. Try: ...

r - from for loop to apply -

I'm new to using R. So I'm sure how to implement it. I would like to do with the speed of my function: for (i in 1: ncol (exp)) {for in j: length (fe)) {tmp = True id = Strsplit [i], "\\.") If (id == fe [j]) {tmp = FALSE} if (tmp == true) {only = cbind (only, c ( Name ( Edit: P> Thanks a lot for very good details and sorry for my bad description All of you feel right, but when you wanted to delete matches in FA Cup exp & lt; - data.frame (x = 1: 10, by = 10: 1, CG = 11: 20, Ez = 20 : 11) fe & lt; -LETTERS [1: 2] Then the result should be colnames with only 'C' else everything else should be removed. 1 cz 2 11 3 12 4 13 5 14 6 15 7 16 8 17 9 18 10 19 11 20 Edit: If you want to delete only the column whose name appears in the FE, then you can simply: XP> - Data .frame (x = 1: 10, by = 10: 1, cs = 11: 20, as = 20: 11) FAF & lt; -LETTERS [1: 2] id & lt; - sapply (strsplit (name (exposure), "\\."), Fu...

iphone - How do I display the information of contents from Apple App Store in my mobile website? -

I do not know how to programmatically describe the details (e.g., icon, title, value, description ...) That is, I want to show content from the Apple App Store (registered data) in my website, from the Apple App Store in the mobile website. Please, guide me to the App Store API. There are apple documents on your API.

asp.net - return parameters from function -

मेरे पास एक फ़ंक्शन है: आंतरिक स्थिर शून्य GetUserData (int userId, बाहर स्ट्रिंग उपयोगकर्ता नाम , बाहर स्ट्रिंग यूज़र ईमेल, बाहर स्ट्रिंग यूज़र पासवर्ड) {(एसक्यूएल कनेक्शन कनेक्शन = यूटिल। गेटकॉन्नेक्शन ()) {कॉन। ओपन (); (SqlCommand सीएमडी = नया SqlCommand ("usp_UD_SelectById", con)) का प्रयोग (सीएमडी। कॉमांड टाइप करें = कमांड टाईप। स्टोर्डप्रक्रियर; Cmd.Parameters.Add ("@ UD_ID", SqlDbType.Int) .Value = userId; Cmd.Parameters.Add ("@ UD_UserName", SqlDbType.NVarChar, 100)। डायरेक्शन = पैरामीटर डायरेक्शन.ऑप्टपुट; Cmd.Parameters.Add ("@ UD_Password", SqlDbType.NVarChar, 100)। डायरेक्शन = पैरामीटर डायरेक्शन.ऑप्टपुट; Cmd.Parameters.Add ("@ UD_Email", SqlDbType.NVarChar, 100)। डायरेक्शन = पैरामीटर डायरेक्शन.ऑप्टपुट; cmd.ExecuteNonQuery (); UserName = कन्वर्ट.ToString (cmd.Parameters ["@ UD_UserName"]। मान); UserEmail = कन्वर्ट.ToString (cmd.Parameters ["@ UD_Email"]। मान); UserPassword = कन्वर्ट.ToString (cmd.Par...

asp.net - Tracking Urls User Has Visited During A Session -

I have an app with an anchor tag in it, I want to see what a user clicked during a session I thought that aspnet automatically saved the information here: string sessID = System.Web.SessionState.SessionID; But there is no such thing as a session IDID in the name of the session. Is this information saved automatically, if so, how do I use it? This is my simple HTML & lt; Body & gt; & Lt; Form id = "form1" runat = "server" & gt; & Lt; Div & gt; Page 2 & lt; A href = "http://www.w3schools.com/" & gt; Go to W3Schools & lt; / A & gt; & Lt; Br / & gt; & Lt; A href = "http://www.yahoo.com/" & gt; Yahoos & lt; / A & gt; & Lt; / Div & gt; & Lt; / Form & gt; & Lt; / Body & gt; Unless these anchors are for client-side manipulation only and those round trips On the server, the IIS log is a place to view such information. The following example shows ...

javascript - Seat guests based on prioritized parameters -

The following data model represents tables with seats and guests, in an app that makes the user a table and seats , Using Blind HTML5. // data model var data = {guest: [], // id, name, tag table: [], // id, seat seats: [], // id, guest Tags: [] // id, name}; Guests have tags (types of categories) attached. These tags can be prioritized and can be set to work as a "group" or "imbalance" parameter, the user then clicks on "seat", and the guests sit (seemingly randomly) , While priority standards are respected. Fully developed example: (search for "solution goes here" in JS panel) The question is: How do I implement a function While sitting on the table, while keeping in mind that some guests are sitting next to each other and others should be seated, apart from each other to make one of the best maritime configurations? The number of guests can be more than 1000, but not 2000. Real life example, to illustrate the problem Let...

How to change behaviour of android.provider.MediaStore.ACTION_IMAGE_CAPTURE -

I am using roid.provider.MediaStore.ACTION_IMAGE_CAPTURE to capture images, however the camera activity is stopped by pressing the OK button. And I consequently received results on the result Is there a way that image capture activity can be continued by pressing the right button? Right now, I'm starting it again through my on-activative result function, is it possible that I can capture the same image after a successful image capture I can keep the capture activity on. I do not think this is possible with the ACTION_IMAGE_CAPTURE purpose instead you In the SurfaceHolder the camera preview must be controlled. Here is an example that I have found -

excel - How to Convert a Float String to Number? -

A1 is formatted as text and in the decimal number I want to convert the program into a number. "Convert the number" function (N) works only with the whole number apparently. Trying a trick like = A1 + 0 similarly only work with whole numbers. function use value (A1) Convert a string to a number.

Rendering problem with the OpenGL GL_POINTS primitive -

When using software rendering, or any graphics card in our development office, we expect GL_ pins of our small colors That are actually rendered in color. In the field, some users report points given in the wrong colors. They are fixing their problem to stop hardware acceleration, so we are putting the whole thing on the third party issue and an alternative solution (small pixel-shaped rectangles whose color is non-existent) is using. Sandalwood: We're taking a big demonstration hit. My question is, does anyone else have such a problem, and if so, do they get their GL_POINTS and color correct? I did not face such a problem, but the solution is simple: the card used by your user Receive, and set the same environment. The problem may be stupid as the old drivers. I do not know what else could provide wrong colors.

java - Problem getting GPS satellites information -

For an Android 2.2 application written in Java 2.2, when I try to get information about GPS satellites , So I have to face a problem. . To deal with GPS incidents, I declare an object generated from makeup in my main activity in the onrock function. In the execution of the listener , everything is fine when I retrieve an GpsStatus object of a getSatellites a LocationManager From : The application stops with an error message. With the same object, I can find the time to fix for the first time. Anyone help me? Thank you in advance while trying to help you. It is quite possible that GetSatelites are not giving you the work you need, even if You can work it. Check this for a method to check if you have GPS set (if you are trying to do this).

sql server - How to avoid sorting results, returned by Index Seek? -

Well, the question is not really "to avoid taxonomy" as it is necessary for business logic, but how to Do not use the initial index, and on the go. I have a query plan: | - Sort (Top 5, Order By: ([This _]. [DateAdded] DESC). --Nested Loops (Join Inner, External References: ([this _] [id], [Expr1002]) Customized with unordered prefetch. --Index research (object: .. ([storm] [dbo ..] [item] [IX_Items_ByLocationSorted] as [this_]), looking: ([this _] [condition] = (1.) and [this _] [RegionId] = (32) and [this _] [LocationId] = .. (32001)), where: [[storm] [dbo] [item] [SubcategoryTypeId] as [this _] [SubcategoryTypeId] = (88 ....) and ([storm] [dbo] [item] [......... IsHidden] as [this _] [IsHidden] & lt; (1) or [storm] [Dbo] [Item] [IsHidden] as ordered [this _] [IsHidden]> (1))) forward | - Search the clustered index (object: [[storm] [dbo] [item] [PK_Items] as [this_]), search: ... ([this _] [id] = [hurricane] [dbo] [... items]. [ID] [ID_]. [ID]) Lookup order...

jquery ui - Bind functions to elements inserted in the DOM? (Implicitly?) -

This is probably the jquery basics, but I can not find a solution after much googling. How do you attach "non-events" to the elements inserted in the DOM? For the event, like click , we can use live () or bind () . For example, how do you start tab () or addClass () in a new element? Specifically, I'm trying to get the tab () to work in the content of an AJAX-loaded dialogue, but I think the correct solution should be applied in any case . I saw a trick that was included in $ ('body'). For example, how can you add fire to a newly inserted table row? I mean it is inherent, which means that I do not want to write specific instructions for every event that adds a node to the dom, I want to "run it in the background". Tell me if this explanation is required, I get many such questions, but have not given any answers. Edit: Simple example: One page call $ ('A'). AddClass ('Highlight') which works on all anchors in...