Posts

Showing posts from March, 2010

flash - Relationship of code on first frame of main time line to class code and library objects -

Go to this point where the hole in my AS3 knowledge is getting bigger! Realizing that I have confusion about this relationship: The code body on the first frame of the AS3 file. (Which I have used Library Objects to use the laid-back and used to call the class code). Is this code called codecode? Library Objects (usually Graphical Objects) Should it be done differently? I have the following problems due to lack of understanding: A complex complex from a class, but straight forward in the main body code. Cant call function on the main body code from class code, because class code does not know that the main body code exists? So it seems that two languages ​​can communicate easily? Any indication greatly appreciated. The code on the first frame is called a 'timeline script' and it is minimized (depending on the project) The document class is different, and can be considered a special case. It is automatically called when your SWF starts. This design is se...

Is there a better update system coming for Xcode? -

Xcode 4.0.1 was released a few days ago, which means that I have to update 4.5 once again Downloading GB animal. . Does anyone know if the apple is planning to introduce a better update system? I'm not quite disappointing these days because it's 80% of the way to download and lose connection is.

java - Eclipse Javadoc Compiler Warnings from Command Line -

One of the things I was recently taken from Eclipse to another IDE that I really remember is configurable I can use Eclipse compiler as I - and I know that it is possible to configure all types - I was wondering if configuring Javadoc alerts in this way possible. I'm specifically exploring a way to configure the following settings: Missing Javadok tag for some visibility methods for a certain visibility method You can use this with an external device (such as the possibility of eclipse) or a doctor-probe douglate for it. Standard Doctate (or Javadoc Core) has no choice.

javascript - how addEventListener influences the onclick property of DOM element? -

element.onclick = function () {alert (1); } चेतावनी (element.onclick); उपरोक्त कोड आउटपुट फ़ंक्शन () {चेतावनी (1); } फिर मैं निम्न कोड निष्पादित कर रहा हूं: element.addEventListener ('क्लिक', फ़ंक्शन () {चेतावनी (2 ); }, असत्य); चेतावनी (element.onclick); आउटपुट अभी भी है फ़ंक्शन () {चेतावनी (1); } वास्तव में, जब तत्व पर क्लिक करते हुए कोड addEventListener ('click', function () {alert (2);}, झूठे); काम करता है, इसका अर्थ है कि चेतावनी (2) ने onclick इस तत्व की संपत्ति लेकिन क्यों उत्पादन अब भी अपरिवर्तित है? इसलिए, मुझे क्या जानना है, जब addEventListener निष्पादित करते हुए, कैसे onclick संपत्ति बदल गई है? आपके उत्तर की ओर अग्रसर है। OnClick एक DOM स्तर 0 संपत्ति है। AddEventListener DOM स्तर 2 परिभाषा का हिस्सा है। AddEventListener विधि के माध्यम से ईवेंट हैंडलर को जोड़ने से तत्व पर OnClick प्रॉपर्टी नहीं बदली जाती है, बल्कि यह तत्व पर ईवेंट श्रोताओं के संग्रह में श्रोता को जोड़ती है। आप DOM Level 2 ईवेंट के बारे ...

How comes 'test -n' returns 'true' in bash? -

I was wondering how it comes test -n returns 'true', for example: if test -n; Then echo "yes"; Else "No" echo; Fi "Yes" prints, even if the test is given, theoretically, there is an option with an empty-length string with -n option, which checks that String length is 0 false) or something else (true returns). Thanks This gives the correct test x for the same reason Returns correct - string -n is non-empty This is not using the -n option because -n is second Logic is required and you have not provided one. test -n "" || Echo false x = "" test -n $ x & amp; Amp; Test the truth- n "$ x" || False echo Each echo command executes; Note, in particular, in the middle!

iphone - Accessing a class' running instance from the AppDelegate -

New in Obje-C, I'm trying to trigger a method, an example of myMethod is viewControllerB = & Gt; The visual controller is instantciated to see the controller A = & Gt; I'm trying to call myMethod from AppDelegate => & gt; It seems that anyway I try to do this, this is my method triggering in a new instance of the view controller B So the question is: How to send is the current of a view controller For example a message? Please explain with code samples because I am not really comfortable with Obj-C Thank you! > ViewControllerA.m: if (_viewControllerB == zero) {self.viewControllerB = [[[ViewControllerB alloc] initWithNibName: @ "View ControllerB" bundle: [NSBindle Main bundle]] Autoreshal]; } viewControllerB.m: - (zero) myMethod {NSLog (@ "myMethod!"); } AppDelegate.m: Do not know what to put here: ( To get the same example { (See isKindOfClass) (see UIViewController * self.navigationController.viewController...

nhibernate - Preserve leading zeros when mapping NUMERIC(5,0) to string -

Hope this is a simple question I have a legacy DB2 database on AS / 400, where zones like zip codes Is deposited in the form of NUMERIC. When they mapped to NHibernate, they consider it an integer and leading zeros are lost. Usually I will use from the security table (field) to preserve leading zero, but I understand that if I Formulating the formula to correct the formatting, I force the field to be read only. What is the correct way to type NUMERIC type (with its leading digit) in a string type and again? You are trying to deal it at the wrong level. Leading zero is a performance concern; Just use "00000" as your format string.

sql - Select query too slow > 5min -

मेरे पास 29,000 पंक्तियों के साथ एक तालिका MyTable है। MyTable संरचना {StudentId bigint, ....} स्तंभों की संख्या & gt; 10 कॉलम होस्टिंग सर्वर में डेटाबेस। SSMS से मैं क्वेरी निष्पादित करता हूं: MyTable से चयन करें क्या यह सामान्य है निष्पादन 5 मिनट से अधिक समय तक रहता है? सबसे पहले, एक दूरस्थ डेटाबेस से सभी डेटा प्राप्त करना एक अच्छा विचार कभी नहीं आप बैंडविड्थ का एक महत्वपूर्ण हिस्सा उपयोग कर रहे हैं उम्मीद है कि आप जिस क्वेरी का उपयोग कर रहे हैं वह केवल डिबगिंग उद्देश्य के लिए उपयोग किया जाता है और इसे कभी भी उत्पादन नहीं करना चाहिए। आपने यह उल्लेख नहीं किया कि क्या आपको कुछ प्राप्त करना शुरू होने से 5 मिनट लग गए हैं या यदि आप अपना डेटा प्राप्त कर रहे हैं पाठ्यक्रम उस 5 मिनट में, एक स्थिर दर पर। पहली स्थिति में, सभी पंक्तियों को प्राप्त न करने से संकेत मिलता है कि किसी अन्य ऑपरेशन के कारण, आपके टेबल पर लॉक प्रभावी है। > बाद की स्थिति में, आप निरंतर पंक्तियां प्राप्त कर रहे हैं, लेकिन धीमी दर पर बैंडविड्थ और सर्वर लोड उसमें एक बड़ा हिस्सा खेलते हैं...

javascript - jquery add/delete html row -

I have a simple HTML table where I want to dynamically add rows by removing it. There is a delete icon in the HTML table, clicking on which a jquery script line is deleted. Code for table: & lt; Table id = "table1" & gt; & Lt; Tr & gt; & Lt; TD & gt; & Lt; Img class = "delete" alt = "delete" src = "delete_icon.png" /> & Lt; / TD & gt; & Lt; / TR & gt; & Lt; / Table & gt; A link adds a new line: & lt; A href = "#" name = "add-on" & gt; Add Row & lt; / A & gt; Both jquery scripts above the HTML table code: & lt; Script type = "text / javascript" & gt; / * Delete line * / $ (document) .ready (function () {$ ('# table1 td img.delete'). Click (function () {$ (this) .Parent () .Parent (). Remove ();});}); / * Add new line * / $ (document) .ready (function () between the // {// code will be done only when document $ (...

objective c - NSString encoding-name from WebDataSource? -

I have a WebDataSource and I want to get pure HTML from it. How can I do this? The way I've done it so far: It gets WebArchive, and then there is data from WebArchive but when I try to store it in string, do not know the encoding name? What should I use? I used a lot and it gives me zero how can I encode it using WebDataSource? Thank you! I'm not sure what WebDatasor really wants for you. If you want to get HTML, you should use NSURLRequest, which will drag HTML as NSData. You can encode it into a string with NSUTF8StringEncoding. Are you familiar with NSURLRequest?

python - Writing to file problems and displaying file contents -

After writing a dictionary in the file, I am currently having trouble displaying a file properly. Input for this program File should contain format: id: date: day: product name eg 1: 12/12/2011: 12: A This is the first time when I read an example file in a dictionary, but once I save the dictionay in a new file and open this file Try to get the output: 1: "Date": 12/12/2011, "Life": 12, "Name": A Does it have been written before the data formatted in the dictionary An easy way to file? Thanks for any advice def loadProduct (fileName): global cheeseDictionary f = open (fileName, "r") line = f.readline () # reads the line from the file while the line : Line = data [= 1] data = divided (line, ":") # colon line when there is a colon paneidedition [data [0]] = {"date": data [1], "life": data [2 ], "Name": data [3]} # Store each divided item lines = f.readline () # Next line f.close () Print Pennijiede...

android - getting the rel="alternate" href value from xml feed using java DocumentBuilder -

Need help ... to ensure that it will look like a dumb question to experienced XML developers I am trying to read the following feed: Using inputstream and document to explore XML such as: document Dom = db.parse (in); How the entry elemet looks like this: & Lt; link rel = "self" type = "application / atom + xml" href = "http://www.blogger.com/feeds/7793856/posts/default/7139617615025474381" /> & Lt; Link rel = "alternate" type = "text / html" href = "http://orangette.blogspot.com/2011/03/its-called-pantry.html" title = "it is called a pantry" /> ; & Lt; Author & gt; & Lt; Name & gt; Molly & lt; / Name & gt; & Lt; Uri & gt; Http: //www.blogger.com/profile/01493708300940204826< / Uri & gt; & Lt; Email & gt; Cheeseandchocolate@gmail.com< / Email & gt; & Lt; Gd: extended property xmlns: gd = "http://schemas.google.com/g/2005...

php - Does disabling unused languages [Python ASP.net CGI Perl] in PLESK8 Speed Up PHP5 on Apache server? -

Image
Partner people, Observe my PLESK 8.2 on APACHE2 with PPA 5.2.3 I saw. Being a person who loves pain, Can I disable all the stuff except PHP? Which really do I use only one thing? I will do anything to speed up my site. The buttons given in this picture are advised. In theory due to the loading of Apache modules, you can probably save some memory, but it is very marginal. He said, if you are not going to use them, then it makes sense to disable them in any way.

Authorization in Rails 3 dependent on variables (not only user and current resource) -

I use cancan and I know about the declarative authority, but it seems they depend on roles. Do not give chance to custom variables. Model: Domain (blah.qwe.com, wer.qwe.com, ert.qwe.com) - I need them Roles (each role only works in its domain) For example, I have a user , He is the owner of Blah .qwe.com domain, but he is a simple user in wer.qwe.ru and he is restricted to ert.qwe.com and can not do anything. @current_domain is loaded in the first_filter (current_domain method) is loaded by devise in the application controller and current_user. What is the solution to depend on currently requested resources (such as KickNan), current_users and current_domain (and perhaps with other first loader variables) authorization? Does the Canon have a solution or should I modify it or write my own custom authorization system? Did you check? You can include whatever you want from the request in the capability calculation.

mysql - How to get this PHP while statement to terminate? -

& lt;? Php $ pdo2 = नया पीडीओ ('mysql: host = localhost; dbname = dbname', $ उपयोगकर्ता नाम, $ पासवर्ड); $ Pdo2- & gt; सेट एट्रिब्यूट (पीडीओ :: एटीटीआरआरएआरएमओडीई, पीडीओ :: ईआरएमएमएमडीएमएक्सईईपीईपीएस); $ Sth2 = $ pdo2- & gt; तैयार करें ('चयन जानकारी, तिथि से टिप्पणी, प्रोफेसरगोटमेंट WHERE pID =? और Comment.commID = Professor_Comment.commID;'); $ Sth2- & gt; निष्पादित करें (अर्रे ($ pID2)); // हमें कोई * टिप्पणी * मिलता है जबकि ($ sth2- & gt; पंक्तिकाउंट () & gt; 0) {$ row2 = $ sth2- & gt; प्राप्त करें (पीडीओ :: FETCH_ASSOC); एखो "& lt; h2 शैली = 'मार्जिन: 0; पैडिंग: 0;' & gt; हाल ही की टिप्पणियां & lt; / h2 & gt; & lt; span & gt; टिप्पणी {$ row2 ['info']} & lt; / span & gt; & lt; br & gt; & lt; अवधि & gt; टिप्पणी {$ पंक्ति 2 ['तिथि']} & lt; / span & gt; & lt; br & gt; "; // एंड इको} अनसेट ($ sth2); ? & Gt; ऊपर दिए गए क्वेरी में सभी रि...

iphone - Problem with my app delegate -

I am trying to create an app that contains a class created in an app representative. I get started with: mobile * tmp = [[mobile allocation] init]; Mobile = tmp; [TMP release]; And after that I try to use it in other sections of my app: Delegate * (projectAppDelegate *) [ UIApplication share application] representative]; Mobile = delegate.mobile; But when I do this: [enter mobile: x: y]; it crashes ... Is there anything that I have done wrong, or there is a solution to create a class that Can use all other classes? Thanks If you want to use the examples of your object, To store as representative properties. // appdelegate.h // // ... Interface app deliitte: NSObact & lt; UIApplicationDelegate & gt; {Mobile * TMP; } // ... //appdelegate.m // // ... // - (BOOL) Application: (UIApplication *) Application FinishLaunchingWithOptions: (NSDictionary *) Launchoptions {mobile = [[Mobile Allocation] init]; } // ... - (zero) Delok [[Mobile release]; [Super...

jquery - Calculating "As the crow flies" distances wtih Google Maps API -

I am quite helpless here so that people can easily expect some good ideas executed. Actually, I have a form that is divided into Google Maps so that someone types an address and specifies a late / long I want to add someone else, both inputs To the people and then calculate the distance in the form of "cave flies". I want to give it just one address and how far the output is, the addresses are from each other, on a linear line, if it can show that everything on the map overlay, everything is better. I am hunting for examples, but I am getting a lot of features from those who are getting me. I just want some simple source code that I can study this basic type of function. This is where I am currently: Any other ideas have to be loved. computeDistanceBetween (from: LatLng, to: LatLng, radius?: Number) code>

php - ParallelCurl with CURLOPT_WRITEFUNCTION -

I'm trying to use it, with which it has been connected. Currently I have the code present: function requested ($ content, $ url, $ ch, $ user_data) {echo "request complete:", $ content, "\ n "; } $ PC = new parallel crawl (); $ Server = server :: loadNewAllFromDB (); // Server provides an array of objects that store the connection information foreign currency ($ server server $ server) {$ PC- & gt; Set Option (Array (CURLOPT_USERAGENT = & gt; 'My Userager String', Quropy_WRITEFUNCTION = & gt; Function ($ CH, $ string) {echo "Calling! |", $ String; Return Stellon ($ string);} )); // print_r ($ PC-> Option); $ PC- & gt; StartRoot ('http: //'. $ Server- & gt; Address. ':'. $ Server- & gt; Portbase. '/ Someurl'), 'Requested' ';); } $ Pc- & gt; Finihill all requests (); Now, what I hope to be, is to tell my anonymous function, when the data in the CRL is output, rather than...

fbml - Facebook Like Button On My Website To Like A Facebook Page, Not My Website -

I have a Facebook Like Button on my website, although it currently works, so it will allow users to access the current page Likes. On. Is it possible to create buttons like our Facebook page rather than our website? You create a badge for your page that a user can interact for "like" purposes .

oauth - why am I not able to create with this parameter in Rails 3? -

मेरे पास निम्न पंक्ति के साथ एक विधि है: 26 उपयोगकर्ता। बनाएँ! (: ईमेल = & gt; "token@email.com",: linkedin_uid = & gt; लिंक्डइन_यूआईडी,: पासवर्ड = & gt; Devise.friendly_token [0,20]) यहां मेरा नियंत्रक है: 20 def बनायें 21 @ यूजर = यूज़र। न्यू (पाराम [यूजर]) 22 अगर @ यूज़रसाइव 23 फ्लैश [: नोटिस] = "सफलतापूर्वक उपयोगकर्ता बनाया गया है।" 24 redirect_to @ उपयोगकर्ता 25 और 26 रेंडर: एक्शन = & gt; 'नया' 27 का अंत 28 अंत जब भी मैं पैरामीटर पारित करके इसे बनाने की कोशिश करता हूं तो रेल कंसोल से भी: linkin_uid, यह अभी भी शून्य से बाहर आता है। : ( इस रेखा के लिए संदर्भ दिया गया है: 18 def self.find_for_linked_in_oauth (omniauth_hash, sign_in_resource = nil) 19 डीबगर 20 #omniauth_hash एक हैश से पास है कॉलबैक नियंत्रक 21 [linkedin_uid = omniauth_hash] द्वारा ["omniauth_hash"] [22] डीबगर 23 अगर उपयोगकर्ता = User.find_by_linkedin_uid (linkedin_uid) 24 उपयोगकर्ता 25 और # एक स्टब पासवर्ड के साथ एक उपयोगकर्ता बनाएँ। 26 उपयोगकर...

css - How do I "hold" elements underneath jQuery bounce? -

The effect of jQuery is very good, but I have found that the remaining elements of the affected element are displaced due to divs that are wrapped. What is the effect (and scroll to "Bounce Effect" or "Shake Effect" to see it) How can I capture the rest of the document when I play the effect? OK, here's the difference: if you try to enter an anchor directly If you end up affecting other flow, if you div and animate the same element, then this is fine. See the difference between jsfiddle.net/ejwh4/4 and jsfiddle.net/ejwh4/5

How can I make an HTTP POST request in F#? -

The following code sends the GET request. It's making me crazy. Post DocRou (URL: String) (Data: String): String = Data: Byte [] = SystemText. Encoding. ASCII Gatebyte (Data); Request = webrile Request (url) request Method & lt; - "Post" request. Content type & lt; - "Application / X-www-Form-URLXD" request. Contact lamen & lt; - (int64) data ' Long use wstream = Write.GetRequestStream () wstream.write (data ', 0, (data'.Length)) wstream.Flush () wstream.Close (* Use the author = New StreamWriter (wstream) author. (Data ') Writer. Flush () Writer. Close () *) Respond = Request. Use GarethSpons () Reader = New Streammorder (Reaction GateresonsStream ()) Outlook = Reader Read android () reader Close () response Close () request .bort () output At the moment I'm not sure anyone has used F # to send an HTTP post. Has anyone seen the document about this? Works fine for me (for example posttestserver.com Actually exists...

java - How can we detect the content of ENUM field using JDBC? -

I am in the process of creating code generators for my CRUD Java Web database application In creating its form page, I want to be able to present the ENUM area data type in Therefore, it is defined in a MySQL script: 'employment status' enum ('CPNS', 'PNS') colot Latin 1_general_ci not tap, combo box ( & lt; SELEC / & gt; html input as p employment status as CPNS , PNS Type) use the form of your content. How can I tell the contents of that area from the database using JDBC ??? thanks a lot! PS: Ask me something, why do I want to create my own code generator ??? Okay, I think it will be very fun to do this, and will add our alternate options in the Java web universe .. :) database metadata meta = conn.getMetaData (); RsColumns = meta.getColumns (empty, "%", "", "%"); / * Received column (string catalog, string schema pattern, string tablename pattern, string columnname pattern) * / while (rsColumns....

c# - SharePoint Web Error -

Assembly generation failed - Contextual assembly does not have a strong name in 'ClockControlWebPart' I do not Understand the error .... The most generous name you are building is the strong name of the assembly and its As a result, they can not refer to assemblies that have not been named vigorously. Note that each error C # compiler initially generates code (such as CS1234). Searching for this code will probably give you an article on MSDN with an explanation of the error, and in the most common cases,

jQuery UI Sortables - Call Sortable Event Externally -

मेरे पास निम्न क्रमबद्ध स्निपेट है (फैंसी कुछ नहीं): $ (" # Sortable1, # sortable2 ") .sortable ({connectWith:"। कनेक्टेड एसोटेबल ", से पहले: कार्य (ईवेंट, यूआई) {console.log (event); console.log (ui);}})। DisableSelection (); आप sortable () के बाहर beforeStop: function (event, ui) {} कैसे कॉल करेंगे और तत्व को सॉर्ट किया जा रहा है और लक्ष्य sortable सूची (यानी # sortable1 या # sortable2)? मुझे event और ui वस्तुओं का उपयोग करने में सक्षम होना चाहिए। अग्रिम धन्यवाद! var संभाल पिछवाड़े = समारोह (घटना, यूआई) { console.log (घटना); console.log (यूआई); }; $ ("# Sortable1, # sortable2") .sortable ({connectWith: "। कनेक्टेड एसोटेबल", इससे पहले किःट: बैकएस्टस्टॉप, संभाल)}। DisableSelection (); फिर अपने कोड में, आप यह किसी भी मनमाना स्थान से कर सकते हैं ... var myEvent = {/ * इस घटना को आप के साथ भरें जरुरत*/}; HandleBeforeStop (myEvent, $ ("# sortable1")); आशा है कि यह आपकी मदद से मदद करता है, अपने प्रश्न से ...

android - how to check the internet connectivity in application -

I'm developing a project that uses the Internet. My problem is that check it out on the internet with the Internet Is connected or not? Code but error occurs Click on Public Zero (see V) {Connectivity Manager = CM (Connectivity Manager) getSystemService (reference. CONNECTIVITY_SERVICE); Network Info Info = CmsActactNetworkInfo (); Boolean A = CmActactNetworkEnfo () IsConnectedOrConnecting (); If (a == true) {toast ("connect"); } And {toast ("not connected"); }} Please try below the function. If the internet connection is available in the device then it will return the truth or else it will return false. Public Static Boolean CheckInnet (Reference Reference) {Connectivity Manager Connection = (Connectivity Manager) context.getSystemService (context.CONNECTIVITY_SERVICE); Android.net.NetworkInfo wifi = connec.getNetworkInfo (Connectivity Manager. TYPE_WIFI); Android.net NetworkInfo Mobile = Connection NetNetworkInfo (Connectivity Manager. TEP_MOBI...

java - Application not running on 64 bit machine -

I am woking on Windows Server 2008 R2 I installed the 32-bit MS SQL Server Express Edition and 32-bit JDK and JRE, is. After connecting to DSN (using 32-bit ODBC) and running my JAP application, the following error is displayed: Mismatch between architecture DSN and application. Under the 64-bit platform, the data source connecting to a 32-bit driver To manage, use c: \ windows \ sysWOW64 \ odbcad32.exe. To manage a data source that connects to a 64-bit driver, use c: \ windows \ system32 \ odbcad32.ex : The page goes on to say: To resolve this error, use 32-bit odbcad32.exe to configure or remove DSN. It has never happened to me, just got it with a quick Google search.

sqlplus - Getting String values from Oracle -

I have a table in the Oracle database, in which ID is the name field. This is the data: 123, 'South' 121, 'East' 445, 'Africa & amp; World ' When I select the rows where choose name from where name =' Africa & amp; Oracle asks for a replacement variable and no record returns. Please ask me to clarify your question further. Regards The problem is that & amp; is reserved as a marker for the compulsive variables you have & amp; Icons need to be avoided You can avoid empires capture SET; Choose from name where name = 'Africa' & amp; world'; Or you can set closed binding; ; * Choose from name * Name * 'Africa & amp; world';

spring 3 validation example -

क्या कोई मुझे org.springframework.validation.Validator को विस्तारित करके, स्प्रिंग 3.0 मान्यकरण के लिए एक लिंक दे सकता है या javax.validation इंटरफ़ेस और गुण फ़ाइल से त्रुटि संदेश पढ़ रहा है? धन्यवाद / शाम यह स्प्रिंग 3 सत्यापन के साथ शुरू करने का एक अच्छा लिंक है गुणों को पढ़ने के लिए फ़ाइल का उपयोग: मान्यकरण यूटिल.रेक्साइफ़एप्टी (त्रुटियाँ, "यूजरआईडी", "फ़ील्ड.रेक्वायर"); मान्यकरण कक्षा में और & lt; बीन आईडी = "संदेश स्रोत" वर्ग = "org.springframework.context.support.ResourceBundleMessageSource" & gt; & Lt; प्रॉपर्टी नाम = "बेसनेम" मान = "संदेश" / & gt; & Lt; / सेम ​​& gt; >

html - Why do browsers think this tag isn't immediately ended? -

निम्न HTML को देखते हुए: & lt; div style = "background-color: green "/ & gt; & Lt; div & gt; पाठ & lt; / div & gt; अधिकांश ब्राउज़र हरे रंग में पाठ प्रदर्शित करते हैं जो इंगित करता है कि & lt; div / & gt; शॉर्टहैंड को 'समाप्त' के रूप में मान्यता नहीं है और यह दूसरे & lt; div & gt; । या यह मानक क्या है? सख्ती से बोलते हुए, और gt; तत्व एचटीएमएल में है, अर्थात् यह स्व-बंद के लिए नहीं है यद्यपि & lt; div / & gt; मान्य XHTML है ???? / & gt; के कारण स्वयं समापन (या खाली) XML तत्व का संकेतक है ??? यह सामान्य एचटीएमएल पार्सर और कुछ मान्यताओं को एक खुला खोलने वाला टैग के रूप में परिभाषित करता है, और इसलिए अमान्य HTML 4.01 और एचटीएमएल 5। 1 वास्तव में, अपने दिए गए HTML टुकड़े को ( एचटीएमएल 5 के रूप में) इस त्रुटि संदेश में परिणाम: गैर-शून्य HTML तत्व पर उपयोग किए गए स्व-समापन सिंटैक्स (/ & gt;) स्लैश की उपेक्षा करना और प्रारंभ टैग के रूप में इलाज करना। इसलिए जो आप देखते हैं। HTML5 युक...

cpu registers - How to print -0x4(%rbp) in gdb? -

Disassembly contains such code: movl $ 0x6, -0x4 (% rbp) ) I try to print the value like this but fails: (gdb) p 0x4 (% esp) expression in one Syntax error,% esp) '. (GDB) number 0x4 + $ esp for logic arithmetic operations, no number or bullion. How to print it correctly? It looks like you, working with 64 bit code, in which case you just need Is like: (gdb) p $ rbp-0x4 $ 1 = (zero *) 0x7fff5fbff71c If you want to see that in fact at is at this address, then you must enter the zero * address, e.g. (Gdb) p / x * (int *) ($ rbp-0x4) $ 2 = 0x7fff Or in a nutshell, Instead of x , use p , such as (gdb) x / w $ rbp-0x4 0x7fff5fbff71c: 0x00007fff

cocoa - Completion handler never called for NSSavePanel beginWithCompletionHandler -

जब मैं NSSavePanel या NSOpenPanel उदाहरण को के साथ खोलता हूं शुरूआती समाप्तिहैंडलर: हेन्डलर को कभी भी नहीं कहा जाता है। इसके बजाय मुझे लगता है कि पैनल को एक सेकंड के एक अंश के लिए दिखाई देता है, इससे पहले कि उपयोगकर्ता फाइल को चुनने के बिना फिर से दूर हो जाए। जब मैं runModal से पैनल खोलता हूं तो यह ठीक काम करता है I यहां कोड: एनएसएसवेपैनेल * सहेजेंपैनेल = [एनएसएसवेपैनेल सेव पॅनेल]; // [बचा पैनल रनमॉडल]; // वर्क्स [savePanel शुरुआत के साथ समाप्तीहैंडलर: ^ (एनएसआईटीएफ़र परिणाम) {एनएसएलॉग (@ "डोन"); // कहा कभी नहीं, संवाद सही दूर गायब हो जाता है]]; क्या मुझे कुछ याद आ रही है? धन्यवाद, मार्क समस्या मिली: उपरोक्त कोड में, सहेजते हैंपैनेल उदाहरण आटोराइज्ड हो जाते हैं जैसे कि आस-पास की विधि समाप्त होती है इसके कारण पैनल गायब हो जाता है। समाधान को पैनल के संदर्भ में रखना है जब तक पूरा ब्लॉक नहीं कहा जाता है।

push notification - iphone Launch Options -

After a push notification I can not find any launching option; I have the code, but none of NSLogs is printed in the debug area. UILLocal Notification * Localization = [Launch Option ObjectForca: UIApplication Launch Option Remote Notification Key]; If (localizational) {NSString * itemName = [localNotif.userInfo objectForKey: @ "aps"]; NSLog (@ "custom:% @", titled); } Else {NSLog (@ "//////////////////////////"); } When I open the app (pressing on push notifications), then it goes on to the receivermot notification script, I'm not sure what to mean. . Thanks for reading. Depending on the status of your app, your app receives push notifications through multiple paths It has been received. If your app is not launched (even in the background is not suspended), then notification payload in the launch option (key UIApplicationLaunchSomptionRemoteNotificationKey ) Will happen . If it is already running in the background or suspended,...

php - MySQL INSERT INTO fails silently without error -

$ dotheactvity = $ db- & gt; db_exec ("गतिविधि में शामिल करें (अधिसूचना, द्वारा, अतिरिक्त, अतिरिक्त 2) मूल्य ('$ नो', '$ नोम', '$ tehtime', '$ herpdederp', '$ id2')); किसी कारण से, यह क्वेरी सिर्फ चेतावनी के बिना विफल रहता है सब कुछ काम करता है, लेकिन यह रेखा नहीं है मैंने चेक किया, और सभी चर मौजूद हैं। Itemprop = "text"> द्वारा और पर हैं। उन्हें बैक-टिक्स में संलग्न करने का प्रयास करें।

postgresql - Declare Variable Not In Function by postgres -

I want to declare variable in postgren, but not in the function ... C declare varchar; An integer; B integer; Select from the table b = count (*) table = a = 1 while a & lt; Select = c = [c] from the table where id = a if (c = '1') Select in table 2 (*) Select from the end of the table Set = a + 1 But error error: "varchar" string syntax error on or near LINE 2: c varchar; ^ I hope someone can help me If you are at 9.0 then you DO details You can use anonymous blocks by using : Before 9.0 you can not use anonymous pl / pgSQL blocks, you will need to create a function for it. In addition to this, you have a syntax for this / PgSQL is completely incorrect You can not have an assignment and a WHILE statement in the same row. You are also missing other requird keywords for the WHILE loop. Please refer to the manual to know the correct syntax: Syntax for reading one is also wrong with the value of the variable. The correct syntax is to ob...

Windows- C code to make a program run at startup -

I am creating a C program that is running with administrator privileges, another .exe to run on startup (Also in C) makes use of other answers .net in the background, for one / all user, but how do I do it in C, develop in minGW? then C code that sets a program to run on startup In the background To run the program installed (without opening the terminal) Yes, I think it's quite specific enough for myself :-) You can register your program in the Windows Registry for a list of programs running on your program startup . You must link to the window subsystem instead of the console subsystem. When adding your code to -Wl, -subsystem, windows to GCC can be done by passing .

c++ cli - C++/CLI - Ambiguous symbol of a namespace and a class -

I try to compile a C + + / CLI file, which includes the header file (native, third-party) In which a class "Foo" is defined. Apart from this, I am using C # DLL using # # "Bar.dll" in which a namespace is defined as "FU". Compiler error gives C2872 "Fu is ambiguous symbol" I do not know that the native name "foo" has been defined because the class file in the header file is not nested in fixed namespace. So I think the class "foo" can not be in a namespace (it is possible that C ++, right?). Otherwise, I will specify the "Foo" class with its namespace to make it specific to the compiler. Let me "bar." There is a possibility to rename the namespace "foo" used in, but I'm looking for a different solution to keep the namespace, actually there is a square and a namespace different elements - but I think that ++ / Not for the compiler? I'm not sure this will work, but it's a try...

architecture - Where does backend belong to in Zend Framework -

Do you have this as a separate module or just a separate controller or multiple controller for the course), or something And? Assume that backend is quite complex, that means review / confirmation / delete comments for your blog. Class = "post-text" itemprop = "text"> Definitely it is in a new module, so in my opinion it is easy to create a different layout. In a recent project, a collaborator has different admin controllers in each module with one layout defined in an admin module. This way, the main admin module can delete / remove the module from the project with autodetecting, which are installed modules and make menus based on the administrator controller found in each plug-in module. I have explained that it is bad, but it is a good system.

unix - Awk, compare 2 files and write out incomparables -

मैं आमतौर पर awk BEGIN {एफएस = ""} एनआर == एफएनआर { [$ 1] = $ 0 arry; अगले} $ 1 सरणी में & amp; amp; $ 0 = आगमन [$ 1] फ़ील्ड्स में एफएस infile1 infile2 & gt; आउटफाइल ब्याज के क्षेत्र के आधार पर 2 फ़ीड्स में आम फ़ील्ड निकालने के लिए। लेकिन इस बार मुझे अतुलनीयता की आवश्यकता है मेरे पास 2 फाइलें समान रेखाएं हैं लेकिन दूसरी फ़ाइल में 200 लाइनों में file1 जैसा कोडिंग नहीं है। मैंने कोशिश की: पेस्ट एफ 1 एफ 2 | $ 1 == $ 2 प्राप्त करने के लिए दोनों क्षेत्रों से सॉर्ट करें -n -k1,2 और असमान फ़ील्ड लेते हैं लेकिन मुझे $ 1 = = $ 2 तब भी होना चाहिए। मैं यह कैसे कर सकता हूं? चूंकि आप पहले फ़ील्ड से तुलना करते हैं और जब से मुझे नहीं पता कि आपकी डेटा फाइलें कैसा दिखती हैं, तो मैं इसे अंधा कर रहा हूं: $ cat data1 Txt dana 100 john 101 fiona 102 $ cat डेटा2.txt dana 100 john 501 fiona 102 $ बिल्ली डेटा [12] .txt | sort | uniq -u john 101 john 501 उपरोक्त समाधान पहले फ़ील्ड के आधार पर लाइनों को प्रिंट कर देगा, जो समान नहीं हैं I चूंकि मैं आपकी डेटा ...

android - erasing the selected portion of bitmap in canvas -

I want to erase the selected part of the bitrate which is dragging on the canvas .. how to do it ??? Please help me ... thanks in advance .. You can only allow draws for canvas clip In "clipped zone" you can If you clip the canvas with reset, you can attract whatever you want in the canvas, but the zone clip will only be dragged to the canvas.

How to upload a file using the BlobStore in Python App Engine? -

I specified anything in app engine documents but I could not work on the blockbuster. Perhaps some of you can find out what I am doing wrong. http: // localhost: 8080 / when I click on submit button This type of URL is seen in the address bar and an empty white page is in front of me. _ah / upload / agltb2JpbHNvcnVyGwsSFV9fQmxvYlVwbG9hZFNlc3Npb25fXxg9DA Anyone have a suggestion These are my handlers: class MainHandler (webapp.RequestHandler ): Get DEF (self): year = year Hours (). Order ("year") months = months. all (). ("SortNumber") upload_url = blobstore.create_upload_url ('/ imidergi / upload') content = {'upload': upload_url, 'yearList': year, 'monthList': month,} render_template (auto, 'imidergi.html' Content) Category AddDergi (blobstore_handlers.BlobstoreUploadHandler): def post (auto): File upload field as # 'file' is upload_files = self.get_uploads ('file') blob_info = upload_files [0...

iphone - Insert 12 objects into NSMutableArray -

I want to add 12 objects to nsmutablearray, ready for command InsertObject: atIndex: There [Self. YouTubeArrayAbject: @ ""] should be a fast way; [Self. YoutubeArray addObject: @ ""]; [Self. YoutubeArray addObject: @ ""]; [Self. YoutubeArray addObject: @ ""]; [Self. YoutubeArray addObject: @ ""]; [Self. YoutubeArray addObject: @ ""]; [Self. YoutubeArray addObject: @ ""]; [Self. YoutubeArray addObject: @ ""]; [Self. YoutubeArray addObject: @ ""]; [Self. YoutubeArray addObject: @ ""]; [Self. YoutubeArray addObject: @ ""]; [Self. YoutubeArray addObject: @ ""]; NSMutableArray * arr = [NSMutableArray arrayWithObjects: @ "" Number: 12 ];

php - Create Recurring Payment profile failed -

Hi everyone I'm applying to recurring payments with PayPal my PayPal script is already embedded recurring payments. I have a lot of research and has not discovered any useful material I got some stuff I applied the code of createrecurringpayments.php and changed the encoding variable for me. Upon completion of the transaction, I redirect this file to DEXEXTechout payment payment.FPP. But I createrecurringpayment.php always failed CreateRecurringPaymentsProfile receive the following error: Array ([TIMESTAMP] = & gt; 2011% 2d03% 2d28T11% 3a44% 3a30Z [CORRELATIONID] = & gt; 81d0c488123c4 [ACK] = & gt ; failure. [version] = & gt; 54% 2e0 [BUILD] = & gt; 1,776,465 [L_ERRORCODE0] = & gt; 10002 [L_SHORTMESSAGE0] = & gt; safety% 20error [L_LONGMESSAGE0] = & gt; safety% 20header% 20is% 20not% 20valid [L_SEVERITYCODE0] = & Gt; error) . found to be below 4 reasons for this error .. Just check it .. this can be helpful for you .. Thanks.

php - Soundcloud-style commenting on MP3 files in Drupal? -

What is a way to comment on MP3 files that they do on Soundcloud? To wit. Users can choose a point on streaming MP3, and can leave a comment at a specific point. How do anyone know this? This is probably a misunderstanding. First of all, you will need some kind of streaming player, maybe flash based is. Now, it is up to you to draw comments from your database and visualize the way you want it in your streaming player.

algorithm - C++ Graph Vertex Coloring Library or Source Code -

Is there a c ++ (or any other language) library with a portfolio of algorithms for the problem? There is undoubtedly naive hearttec color algorithms, but I am interested in more interesting algorithms: Algorithms mentioned in the algorithm "Precise Algorithm" section Approximation algorithms that take advantage of special graph properties such as graphs or a. The algorithm that detects a graph. This past one has special significance for me. The list I have found so far is but none of them is the above algorithm. Apart from this, the best one and which was implemented at the end of the 90s, so the documents API (no, it is important for the question that what is about this question, but I think I mention it I want to do) is very old in terms of This is what I see is the spirit, but if you think about them, then it has not reached the promise yet. It appears in the initial stages of development. Other common graphs are mentioned in libraries. This includes:...

jquery - Remove repeating text -

I have a SharePoint page, which is full of text string of 12:00 AM Do not want to display; The underlying code is the form: & lt; Td class = "ms-cal-workitem" & gt; & Lt; Table border = "0" cell spacing = "0" cellpadding = "0" & ​​gt; & Lt; Tbody & gt; & Lt; TR & gt; & Lt; Td class = "MS-cal-month" & gt; & Lt; A tabIndex = "5" onclick = "Goto Link (This); Return Back;" Or & lt; Nobr & gt; & Lt; B & gt; ** 12:00 AM ** & lt; Br / & gt; More text Can you remove the HTML with the time ticket now? Something like this: var newmarkup = $ ('MS-Cal-Kamitum'). Html () Replace ('12: 00am', '') $ ('.ms -cal-workitem') HTML (newMarkup).

bash - pair up files with matching extensions -

मान लें कि मेरे पास फाइलों की यह सूची है: a.1 a.2 a.3 b.1। B.2। क्या एक बास एक-लाइनर है जिसे एक 'ए' फ़ाइल मिल सकती है जिसके लिए कोई 'बी' नहीं है एक ही एक्सटेंशन? (यानी a.3: no match ) मुझे यकीन है कि मैं ऐसा करने के लिए एक छोटी बाश / पर्ल स्क्रिप्ट लिख सकता हूँ। मुझे पता है कि कोई भी " इस के लिए "चाल" (ज़ाहिर है, जीएनयू उपकरण मेरे निपटान में हैं; अक्सा, एसएडी, ढूंढें ...) आप यह कोशिश कर सकते हैं: ls -1 [ab]। * | सॉर्ट-टी -क 2 | यूनीक -यू-एस 2

java - Method for adding testCases -

मैं testcases को प्रोग्राम की तरह चला रहा हूँ, TestListenerAdapter tla = नया TestListenerAdapter (); TestNG testng = नया TestNG (); Testng.setTestClasses (नया वर्ग [] {UserGroupTest.class}); testng.addListener (TLA); testng.run (); मैंने 8 कोड के अंदर UserGroupTest.class रखा है क्या टेस्टकेस को पूरी क्लास फ़ाइल जोड़ने के बजाय testcase जोड़ना संभव है? ? क्योंकि मैं परीक्षा के आधार के तहत टेस्टकेस चलाऊँगा। यदि आप केवल इन कक्षाओं से कुछ विधियों को चलाने के लिए चाहते हैं, तो आपके पास कुछ है विकल्प: इन विधियों को एक समूह में रखें और testng.setGroups (..) को कॉल करें। एक testng.xml बनाएँ (इन-मेमोरी शायद जब आप एपीआई का उपयोग कर रहे हैं तब से सबसे आसान) जो निम्नलिखित XML की नकल करेगा: & lt; classes & gt; & Lt; class name = "test.methods.SampleMethod1" & gt; & LT; तरीकों & gt; & Lt; include name = "shouldrun1" / & gt; & Lt; include name = "shouldrun 2" / & gt;

coldfusion - CFZip Issue - Timing out before reaching Timeout Limit -

I am using cfzip to zip folders on my server, anywhere 2MB Up to 5 GB Its time is on a 1.25 GB folder and I get the following error: The request is more than the acceptable time limit tag: cfoutput These errors after 11 minutes and I have the following tags at the top of the page & lt; Cfsetting requesttimeout = "99999" & gt; . So technically 1666.65 minutes before the time should wait, okay? It is dedicated, so I can put it in the max. Any help with this will be highly appreciated. / P> thanks :) is zipping something like that probably probably a time It seems to be With a file of 5 GB size, I would also think that you will also start getting exception exception. I would like to exit Java process, and cfexecute to run it at the root level using the command line (on whatever platform you should be as easy as possible) . This is probably a good idea to leave in cfthread, and then working on some kind of alert system when it's a com...

matlab mex files and C++ dll (windows) -

मेरे पास क्लास टेस्ट के साथ एक DLL है I हेडर: वर्ग MY_EXPORT परीक्षण {सार्वजनिक: int doit (const स्ट्रिंग और str); }; और स्रोत: int test :: doit (const स्ट्रिंग और str) {वापसी int (str.length ()); } अब मैं इसे mex फ़ाइल से उपयोग करता हूं: void mexfunction (int nlhs, mxArray * plhs [], int nrhs, const mxArray * prhs []) {string str (" नमस्ते!"); टेस्ट * टी = नया टेस्ट (); टी - & gt; डॉट (str); } समस्या, उस वेरिएबल str को विधि doit से सही ढंग से पारित नहीं किया गया है विधि के अंदर यह rabish शामिल हैं मैंने पाया कि संदर्भ द्वारा पारित किसी भी ऑब्जेक्ट के साथ ऐसा होता है। क्या मैं गलत हूं? कृपया मदद करें। पीएस: अगर मैं 'इंटेलैट (' एएनएसईटी) (कॉन्स्ट चार *) 'को सब कुछ ठीक से काम करने के लिए घोषणा बदलता हूं समस्या यह है: libmex.dll (और एक संपूर्ण Matlab 2010a / 2010b) का उपयोग करता है Microsoft.VC80.CRT (संस्करण = 8.0.50727.4053) लेकिन आपका विजुअल स्टूडियो Microsoft.VC90.CRT (संस्करण = 9.0.21022.8) का उपयोग करता है यदि आप एक C ++ mex फ...

String Manipulation Problems in Java -

I have asked 2 problems yesterday in an interview 1> Given a string, calculate a new string where the corresponding characters in the original letter are different from each other by a "*" The example is as shown below: :: Function Name public string pair starter string pairStar ("hello") A ???? "Hello lo couple" ("xx") ??? "X * xy * y" partner ("AAAA") ??? "A * a * a * a" 2> Given a string, calculate a new string where all lowercase 'x' characters have been moved to the end of the string. Example: The name of the function: public string endx (string str) endX ("xxre" ) a???? "Rex" end X ("xxhixx") ??? "Hixxxx" AndX ("Xhiksha") ??? "Hihixxx" I'm not sure how to complete the given set of problems and how it is struggling to solve. for 1), here is a very simple rezox path: string in = "hello goodbye";...

winapi - set publisher field in .rc file -

Image
मुझे संदेश मिला जैसे जहां मुझे इस विंडो में दिखाने के लिए .rc (संसाधन फ़ाइल) में मेरे प्रकाशक का नाम सेट करना आवश्यक है? आपको अपनी फाइलनाम और कंपनीनाम फ़ील्ड सेट करना होगा।

matlab - replacing a value in all columns with value of that column -

How do I change all the 1s in all the columns with the number of that column? I can already make columns with columns: Output (output (:, 3) == 1,3) = 3; Output (output (,, 4) == 1,4) = 4; Output (output (,, 5) == 1,5) = 5; # Etc ... But I think writing an idiot for every single column. You can use it for: [rowIdx, ColIdx] = address (output == 1); Output (output == 1) = colled;

mysql - Ease way for user permission function php -

We want to add 4 types (or groups) of users to our website, they should access only the associated pages, To create those groups we do, we should set an array of permissions, and if the user has permission to view this page or in any other way should be checked at the top of the page, like creating DB tables or writing classes. Please help. Normally I'm not a big fan of using Zend outside of Zend The application, except Zend_Lucene, but I would recommend use in your application, which handles your work transparently to this task. It's easy to use, here's the sample code for Zend dev: $ acl = new Zend_Acl (); $ Acl- & gt; Adler (new zend_claw_roll ('guest')) - & gt; Adlerol (new zend_achel_roll ('member')) - & gt; Adrol (New Zend_Acl_Role ('Administrator')); $ Parents = array ('Guest', 'Member', 'Admin'); $ Acl- & gt; Adrol (new zend_click_roll ('some user'), $ parents); $ Acl- & gt; Add (N...

oracle - Getting Toad 9.7 to work on Windows 7 x64 -

I am trying to get Todd 9.7 to work on the new installation of Windows 7 X 64. I have installed a 64-bit Oracle instant client (manually extracting it into a folder and setting some environment variables). Things looked fine (SQL Developer worked, SQL + plus worked), but Todd was having trouble. Then I read that Todd needed a 32-bit client, so I did "install" method, but it was still not happy. It was telling me an error that I did not have Oracle Client installed, I tried several different things like setting different environment variables (LD_LIBRARY_PATH, ORACLE_HOME etc.) and nothing worked. I then abolished the manual method and downloaded the full Oracle client but only checked the "instant customer" option when I ran the setup and last worked for Todd Client and I got rid of those NVs. The variables that were set were set, and only TNS_ADMIN were set, in addition to the Oracle home folder in the system path. There was still a problem. Todd did not kn...

iphone - loading a byte array as an application/pdf mimetype into a UIWebview -

I was able to get a PDF file from a web service as a byte array. I want to load it in UIWebView for iOS, but when I try it using: [wvLetter loadData: Data MIMEType: @ "Application / pdf" textEncodingName: @ "UTF-8" baseURL: zero]; The console tells me that: Failed to find PDF header: `% PDF 'not found. I have seen this file, and it is actually a PDF file, matching the size obtained from the original size. What's going on? Thank you! is being done? The only problem I was doing was that I got some objective-c code which was a trick for me. You only have to go through the NSString of the encoded byte array and it returns the equivalent NSData object, ready to load in UIWebView. Hope that helps anyone.

objective c - Changing the text on a button when a tab is selected in a tabview -

I am trying to learn objective-by creating a GUI application using Xcode 3. I'm thinking, is it possible that which tab is selected in tab witch based on the change of the text of a button outside a tab view? As I said that I am trying to learn objective, please do something like I do not know anything in your answer. I should probably mention that I tried to make an NSObject and one. H and. I tried defining IBAction in the file but it did not seem to work. (I have tried to set some breakpoints in those files, none of which has ever come forward to think that it seems that there is nothing like that.) Longer winding Sorry for the clarification Thanks for all the help! I have actually discovered it to help Google get the right syntax for real implementation Object delegation delegation, this, and of course, what I needed was necessary.

crash - Beginner programmer; program instantly closes on switch (C++) -

I am walking around with your very basic C ++ knowledge of programming (for two days) I am trying to write a program that calculates the user input around the PHI (1.61803399). Here's the code, if it's a mess: #include using namespace std; // prototype: flat fyxpo; Flat Fig NXPO; Float opt1f (float phi, float userInput) {return userInput * phi;} float opt2f (float then, float User Input) {userUnput / phi}; float opt3f () {return phiExpo;} float opt4f () {return phiNegExpo;} Float phiExpof (float phi, float userInput) {pow (phi, userInput);} float PhiNegExpof (float then, float User Input) {Paw (FEI , -usernameinput);} / exact program: int main () {float user input; Int userChoice; Float fee = 1.61803399; Float Fiexpo; Flat Fig NXPO; Cout & lt; & Lt; "I want (press this number, then log in):" & lt; & Lt; Endl; The court's & lt; & Lt; Endl; Beginners: cout & lt; & Lt; "1. Multiplied by PHI:" & lt; & Lt; E...

asp.net mvc 2 - SelectList Object selectedValue issue -

I'm having trouble with the SelectedValue option for SelectedIllems, but for some reason this item will not select the item List ... My Controller: Public Task CreateTransformer (string editing) {var tools = GenIDQueries.FindEquipment (edit); See Data ["Feeder"] = New Selection List (Zenith Queries.GateFedder (Tools Oppressure. TowString ()), "CircuitID", "Circuit Description", Device Fidder); See Return (Tools); } is the equipment.Feeder type integer. My view: & lt; P & gt; & Lt; P & gt; & Lt;% = Html.LabelFor (M => m.Feeder)%> & Lt; / B & gt; & Lt; Font color = "red" & gt; * & Lt; / Font & gt; & Lt;% = Html.DropDownListFor (m = & gt; m.Feeder, ViewData ["Feeder"] as Selection List, "")% & gt; & Lt;% = HTML.ValidationMessageFor (m = & gt; m.Feeder)% & gt; & Lt; / P & gt; My Genre Queries.getfeder: Public Fixed IEnumera...

visual studio 2008 - Switching to webdav from frontpage extensions on IIS 7.5 -

We upgrade to SQL Server 2008 R2 64 bit with IIS 7.5 for a classic ASP website. When I browse I edit the files Can save / save Windows Explorer. You can not save with a hard one. When the unsuccessful request is being traced on the server, Active Server Pages (/system32/inetsrc/asp.dll) has been disabled under IISI and part of the CGI restrictions of IIS. Disable ASP, for some reason, I can save / save files through Visual Studio on my local box. But obviously I should be able to: i have to provide access to asp.dll file Education, but this one administrator account I'm running though.

Java, pixels in a given letter of a particular Font -

How many pixels can be determined in a specific letter of specific fonts in Java? If you have an object loaded as an object, you can create a new object (or One of your children if one is in your graphics toolkit) and its method units are not listed in the manual to determine its size, but I'm assuming pixels. Similarly, there is a method to get the width of a complete string . / div>

bash - Excluding hidden files from du command output with --exclude, grep -v or sed -

I'm trying to check with the disk usage tool how big my home directory folders are, but it's folders and files Let's start with dot. I can not filter them du -h --exclude = "?" Du-H | Grep -v "?" Du-H | Grep -ve "?" Du-H | Sed "?" Thanks in advance. Edit & gt; Thank you for SiegeX for your reply. Du-H - Max-Depth = 1 | Grep -v "./ \\." Since the dot matches any of the characters, we need to prefix it with a double backslash because it also has a special character. If running with a specified path (current dir) Use du -h --exclude ". /.*"

android - How to change application user group -

I have a program that should be part of a group Ie audio group by default the application gets the owner group , When it is installed. Say my application owner is app_46 and the group is app_46. How do I change my app group to audio or some other runtime? Is there any permission or something in Android Manifest.xml? Solution Maybe someone is interested in adding custom permissions to framework / base / core / Need to add to Ridge / Android Manifest.xm After that permission to use the permission with that user id, allow any group with permission: frameworks / date / data / etc / platform.xm In your application, use the above permission to use that group: & lt; Usage-permission Android: name = "android.permission.your_new_permission>" / & gt;

c# - populate the values of multiple rows in single row in gridview -

I am trying to populate the values ​​of multiple rows in a single line in gridview, such as the roundabout of code behind the page Fast in section: Col1 Col6 a 1 a 2 a 3 a 4 I have changed it Col1 Col6 a 1 2 3 4 Now I want to get it, any help please? Col1 Col6 a 1 2 3 4 What's wrong with the code given below? if (e.ro. seals [0]. Text == "" & amp; e.Row.Cells [5] text! = "") {For (int one = 0; a & lt; GridView1.Rows.Count; a ++) {string s = GridView1.Rows [a] .cel [5]. Text; GridView1.Rows [e.Row.RowIndex - 1] .cell [5]. Text + = s; }} What am I doing wrong, anybody? Cells [0] have call 1 cell [5] col6 I think you are coming from the wrong direction. Think of GridView as your display, you need to organize the data before sending it to GridView I'm not sure what your data is like, but You can repeat through your data and create new records which are essentially a group and can enter all the data you need in the sa...

html - css gradiant background long page -

I have a background image on my HTML with the CSS page, which is below the blue color, downward white However, the 400x800 image and page are too long, so it repeats. The page length changes at all times. Is it possible to solve this that the background somehow stretches the page length? Or do not I repeat it and make the background white with white? If yes, then please how to to set the easiest image Repeat and then set the background color to one end of the gradient: body {background: white url ('yourImage') repeat-x top left; } It is possible to take a gradient to fit the window, but more work is needed and some will require JavaScript.

flex - SecurityError: Error #2000: No active security context -

I recently had this vague error with the use of local contacts. Every time I try to connect and send data to another SDF. An internet search came up with small results related to local connections and this error and reaction was just ridiculous to some people. Apparently this error image is loading and also in the context of the file, in this case not yet. My sending code works fine, even the event. Level is returned as a status, which means that the second SWF has received the message, although a trace was not shown in the other SVF callback function, I had never triggered the callback. Image loading error I loaded the images again, once again rejected on this. This reply has been updated to decide for this too. As it turns out that it's okay. The connection name was too long. I got the cut name down in 30 characters and started working immediately. I also want to add that if there is an error in the callback function, then you will get this error. Image loadi...

java - Abort Jasper report generation on NullPointerException -

I am making reports with Jasper Reports (4.0.0) for our project (JRE 1.6.x). I'm having trouble with NullPointerException s in my scriptlets, because they do not give the reason for canceling the report, they only silently delete the field null Is evaluated for. As far as I tested, it is only for NPE. Generated reports are very important and should not have any errors. Therefore, if there is an exception (like NPE for some missing data), then it should stop the generation, and should correct the database and / or report. Such behavior can hide some reporting coding errors, unless a person is left out of an unavailable area. What is the reason for this behavior with NPE? Is there any compilation option or execution flag? Can I switch to make NPE's bubble up as other exceptions? I really want that I do not have to wrap each lipet method in a try..catch block and throw another exception on NPE. Thank you! Well, a sample report does not use this scriptlet, but ...

jquery - how to stop progress indicator after downloading a pdf -

There is a link to a PDF file on my page. Clicking on the link actually takes a long time, so I show a progress indicator GIF that there is something that takes some time. But how will you hide the pointer after the PDF is generated on the server and after downloading it? (Basically your browser now says that you are opening a PDF file and ask what you have to do) Is there an event at this point that I choose to hide the progress indicator I can? P> Javascript does not have access to information about what is being downloaded. The only thing you can do is load PDFs in IFRAME and hook up the download event on iframe. Edit : The answer is optional. If you have access to server-side you can set a cookie with feedback and you can survey the client for its value. See:

c++ cli - C++/CLI How to return ArrayList^ -

अर्रे लिस्ट ^ className :: getAll () {ArrayList ^ items = gcnew ArrayList; // अधिक कोड ... वापसी आइटम; } यह मुझे फेंकता है: c2143 त्रुटि सिंटेक्स लापता; ^ ^ त्रुटि से पहले C4430: लापता टाइप विनिर्देशक - int मान लिया गया। नोट: C ++ डिफ़ॉल्ट- int त्रुटि C4430 का समर्थन नहीं करता है: गायब टाइप विनिर्देशक - int मान लिया गया नोट: C ++ डिफ़ॉल्ट- int का समर्थन नहीं करता मैं नामस्थान सिस्टम :: संग्रह का उपयोग कर रहा हूं; मुझे पहले से ही जवाब पता है। मैं नामस्थान सिस्टम :: संग्रह का उपयोग कर रहा था, लेकिन समस्या यह थी कि मैं इसे StdAfx.h शीर्षलेख (जो className.cpp में जोड़ा गया है) में जोड़ रहा था। नेमस्पेस सिस्टम :: संग्रह होना चाहिए className.h में जोड़ा गया, सीधे । यह बहुत अच्छी तरह से काम किया।

PyQt file copy progress bar -

I am trying to get a QProgressBar to show the progress of a file copy in PyQt. I've seen and I've got to run the actual copy in QFile using a formula. I just can not get the bar to update though. Here are some code: class ProgressDialog (QtGui.QDialog): def __init __ (self, guardian, source, destination): QtGui.QDialog .__ init __ (Self, guardian) Self.parent = Parents themselves Source = source self.estination = destination self.add_diag = progress_diag.Ui_Dialog () self.add_diag.setupUi (self) self.add_diag.infoLabel.setText ("copy:% s"% (self) .source) self.sourcefile = QtCore.QFile (self.source) self.add_diag.progressbar.set Minimal (0) self.add_diag.progressbar.setMaximum (self.sourcefile.size () / 1024) self.written = 0self.show () self. Copy (): Copy_thread = CopyThread (self, self.sourcefile, self.estination) self.connect (copy_thread.destination_file, QtCore.SIGNAL ("bytes written (qint64)"), auto.update_progress) copy_thread. ProcDone.conn...