Posts

Showing posts from July, 2013

vb.net - ASP.NET sync issues -

I am going to be a strange issue with a web form I'm working on some async stuff Sounds related. Basically, what I need to do: UserInputPanel.Visible = false ProgressPanel.Visible = true ResultsSet = new DataSet () GetResults (ResultsSet) FillOutput () ProgressPanel.Visible = false OutputPanel .Visible = true This code runs as a result of clicking a button on all web forms. Call GetResults (ResultsSet) is a long, thus the panel is required to show the progress panel problem is that my Prgtipanel is actually calling GetResults before it appears in. If I comment on the call to follow GetResults and lines, then no problem appears in the progress panel How can I apply the first two rows to execute and show on page before calling GetResults? It seems that you have to use control instead of trying to provide your own pace the wanted. When you click the form button, the server all the code on the side click handler runs before sending any response customer If you need som...

ASP.NET get hidden value from list view on ItemCommand -

I have Linkbtn and Hindfild a link sequence I I want to get the hidden value of HiddenField, so I session You can store and transfer a hidden value (stored in session) on a page when a LinkButton is clicked. But I get this error message "The object is not set for an instance of reference object." e.Item Protected Sub lvTimeSheet_ItemCommand (ByVal as this object, ByVal e As System.Web.UI.WebControls.ListViewCommandEventArgs) handles lvTimeSheet.ItemCommand dim ID HiddenField = TryCast (: here's function .FindControl ( "hfTimeSheetId"), HiddenField) dim MyID string = id.Value.ToString session ( "MyID") = MyID Server.Transfer ( "Destination.aspx") End Sub mark-up & lt; / ASP: LinkButton & gt; & Lt; ASP: HiddenField id = "hfTimeSheetId1" runat = "server" value = '& lt;% # Eval ( "hfTimeSheetId")% & gt; '/ & Gt; Whenever clicked Linkbtn, then it is an error in the above...

c# - What's the easiest way of making several web requests in a row? -

I have a list of URLs, and I object to an HTTP web request, and attempts to connect with it I have an 'array' of URL, and I try to connect with each one. The objective is to see who are out. It already works, but a request only starts as if the last one ends, so it is working very slow, about two requests per second In. I was thinking that I should work with 5 threads in the background, which will make it 5 times faster, which is the desired speed (to overload the shared internet band). But I have two problems: 1- I do not even know that this is the best solution to my problem. 2 - I have tried some time, but I'm new to the .NET framework, and have never used multi-thread, so I do not know how I can do it easily. I have a function started (), and for this all the checks for the URL are in existence. Data: VS 08, .NET 3.5, C #. [Edit] - Can someone tell me (if possible, with code sample) how to use five as the background is possible) threads? What's going...

Enable Unicode "globally" in Python -

Is it possible to avoid placing it in every page? Thank you in advance! In Python 3, the default encoding is UTF-8, so you will not set it explicitly now There is no way to set 'default source encoding' globally, though, and history has shown that such global options are generally a bad idea. (For example, -U and -Q options, Python, and sys.setdefaultencoding () back when we did it.) You do not control (directly) all sources imported into your program, because it includes standard library and any There are also third-party modules that you use directly or indirectly. Also keep in mind that this is not enabling Unicode according to the title of your question. What it does is source encoding UTF-8, which means that any non-ASCII characters (like u'spæm ' ) in Unicode literals will be interpreted using that encoding. This non-Unicode literal ( 'spam' and "spam" ) will not suddenly create Unicode, nor will it do anything for non-wri...

ios - Dynamic buttons of UIActionSheet -

To connect to Facebook for my app, using Facebook Connect to share something with Facebook from my app. I am here. I use the UIACtion sheet I want to change the title of the log and logout button. This means that users log on to my button title change in "login" in Facebook and when the user changes logout headline in "login" - (zero) session: (FBSession *) session didLogin: (FBUID) uid {// Change the title to log out} - (zero) sessionDidLogout: (FBSession *) session {// change title log}} You must declare in your init or viewDidLoad function then enter the value to login T Login function changed in your session to log out Similarly do the same for sessioniDidLogout buttonTitleAtIndex: Returns the title of the given index on the button. (NSString *) ButtonTitleAtoundX: (NSITEGER) Button index parameter button index index button. The button index starts at 0. Return value The title of the button specified by the index button inde...

javascript - JSON and Backslash -

Can any additional light be shed as my JSON is being given below, with the extra backslash I have ASP I'm using Net MVC, which sorts a figure when I debug in Visual Studio, it all looks fine, but when I look at the firebug then adds extra characters? Any idea anyone? "[[\" uid \ ": \" 516219026 \ ", \" pick \ ": \" http: //profile.ak.net/ \ ", \" first_name \ GetFBFriends () {FB.Connect.requireSession (function (): \ "Daniel \", \ "Last_name \": \ "James \", \ "fql_query_response_Id \": 0, \ "LifFide \": ($. {Url: "/ Facebook / GetFaceBookFriends", Type: 'POST', Data: Blank, Data Type: 'Jason', Success: Work (Results) {Data = "& lt; Table & gt;"; Warning (Result.length); (I = 0; i & lt; result.length; i ++) {data + = "& lt; tr> gt; & lt; td & gt; Lt; img src = "+ result [i] .pic +" alt = "+ r...

activex - How do I get a transparent windows dialog and drawing primitives to remain on top of a window that is drawing streaming video? -

I have an activeX control which has a window in which the video is being streamed, I have a different dialog Created in another window that I have made in a transparent or semi-transparent manner (i.e. using the Setlaired Window Properties (...) with layered property (for alpha blending of dialogue) or setting transparent property). In addition to this, I have tried to use different methods so that we can try to get the window to the dialogue, but nobody at the top of the streaming video window has worked if I have a dialogue But if there is a button or draw on the transparent surface with the lineto ((...), then they do not stay on top of the video. I want to use SetWindowPos to affect the two-window z-order Also tried to change communication window properties such as "TopMost", but there was no gain. Has anyone attempted to do something like a veiled window over the streaming video To order and z-order to always paint the front window after streaming video? Update...

flex - When do the properties in a mxml declaration get committed to the object? -

अगर मैं ऐसा कुछ करता हूं: & lt; myComponent id = "foo" title = "बार" / & gt; पैरामीटर घटक के भीतर तत्काल उपलब्ध नहीं दिखता है। जब नहीं वे उपलब्ध हो जाएं? फ़्लेक्स डॉक्स से: फ्लेक्स निर्माण को तैयार करता है घटक के लिए एक बार पूरी तरह से तैयार किया जाता है घटक के बाद निर्मित और आरम्भ किया जाता है एक बार एक घटक बनाया और आरम्भ किया गया है, आप इसके गुणों का उपयोग कर सकते हैं। याद रखें, सभी बच्चों के घटक उनके माता-पिता के पहले बनाए जाते हैं और आरम्भ होते हैं।

What defines those OpenGL render dimension limits? -

On my system, anything that pulls me out of the range around OpenGL (-32700, 32700) has not been submitted (Or What defines those limits? Can they be modified? Edit: Thanks for pointing out the right direction. That my drawing code was using GLshort values. I have given them the place of glint values ​​and I do not have those limitations now I have not seen. I do not know what you're actually doing, but it's a signed 16- Bit integer (-32768..32767).

asp.net mvc - How to get last page visited in a controller -

Is there a way to go or get to the last page? Example If I'm on a list page with a new page that loads the page with the form, if the user cancels, then you go back to the previous page (the list page). Thanks OK, in web forms, you will use: Request. UrlReferrer So I think you can also use it in MVC, accessible through the HttpContext property of RequestContext property acceptable by the controller.

php - Query executing in a loop causes script to exit after first iteration -

यहां उलझन में है .... यह कोड: $ qry = sprintf ("INSERT में समाचार_साइट्स_मुखपृष्ठ_ग्रेड मूल्य ('',% d, '% s', अब (), अब ()) ", $ site_id, mysql_real_escape_string ($ html)); ... एक पाश में निष्पादित किया जाता है जहां $ html हर बार बदलता है यह कोड एक बार क्रियान्वित करता है लेकिन अगली बार, स्क्रिप्ट केवल मर जाती है कोई चेतावनियां / त्रुटियां, कुछ भी नहीं $ html एक स्ट्रिंग है जो वेबपृष्ठ का प्रतिनिधित्व करता है, इसलिए यह बहुत लंबा हो सकता है मैंने 32M में PHP में मेमरी सीमा को बढ़ा दिया है और MySQL में max_allowed_packet को 16M पर सेट किया है लेकिन कुछ नहीं। किसी के पास कोई विचार है? धन्यवाद! अद्यतनः ये फ़ंक्शन है जिसे किसी पाश के भीतर कहा जाता है। फ़ंक्शन save_html ($ site_id, $ html) {वैश्विक $ db; कोशिश करें {$ qry = sprintf ("साइट_ग्राद मूल्यों में शामिल करें ('',% d, '% s', अब (), अब ())", $ site_id, mysql_real_escape_string ($ html)); $ Db- & gt; डालने ($ qry); } पकड़ (अपवाद $ ई) {गूंज 'अपवाद:', $...

asp.net mvc - MVC Html.DropDownList accessing the text field -

I have a problem reaching the text field in the selected value of Html.DropdownList. My ViewModel is Public class UserViewModel {public list & lt; SelectListItem & gt; Supported credits (get); Set; } Public String DefaultCurrency {get; Set; }} My administrator displays the drop down list as a bellow. Public List & lt; SelectListItem & gt; GetSupportedCurrencies (string setup value) {List & lt; SelectListItem & gt; Item = new list & lt; SelectListItem & gt; (); {IList & lt; Currency & gt; Mankhalal = Helper Gate-Reverted AmericYilink (Currency Services Forex Currency (Currency List in Currency List) {If (string! ISNLLER (setupview) and amp; c.CurrencyCode.Equals (setupValue)) {items.Add (New SelectListItem {text = c .CurrencyDescription, value = c.CurrencyCode, selected = true});} other {items.Add (new selection list} {{text = c. Query description, value = c.CurrencyCode});}}} hold (Exception pre) ( East) Items to return;} [AcceptVe...

Automated Filegroup Migration in SQL Server -

"postprint" itemprop = "text"> Recently I was not created with an old database filegroups (just trying the default primary restructuring ) And, among other things, take a new data file on any one of the cadence to stay on a SAN I know how to move data : ALTER table with MyTable drop barrier PK_MyTable ([MyDB_Data] move to) ALTER Table MyTable Add Not to hinder PK_MyTable primary key cluster (MyID) [MyDB_Data] But damned if it is not the tedious task ever had to do and it is error prone. At one time, I realized that I accidentally took a 30 GB table before joining one of the price columns in PK (I think there is no progress indicator). So I had to start again. It's even worse when there are many dependencies in the table so I can not just drop the primary key; I have to leave every foreign key and rebuild it which refers to it leads to hundreds of rows of boilerplate; Multiply 100 by the table and it becomes obviously seam. My wrist is hurt. ...

codeigniter - multidimensional array -

निम्न पंक्ति का अर्थ क्या है: $ data [0] [$ row-> gt ;] [समारोह]: [/ b] [समारोह] समारोह: समारोह getCategoriesNav [[बच्चों '] [$ पंक्ति- & gt; आईडी] = $ पंक्ति- & gt; नाम () {$ Data = array (); $ इस- & gt; db- & gt; चयन ( 'आईडी, नाम, parentid'); $ This- & gt; db- & gt; जहां ('स्थिति', 'सक्रिय'); $ इस- & gt; db- & gt; orderby ( 'parentid', 'एएससी'); $ इस- & gt; db- & gt; orderby ( 'नाम', 'एएससी'); $ इस- & gt; db- & gt; GroupBy ( 'parentid, आईडी'); $ Q = $ this- & gt; डीबी- & gt; प्राप्त करें ('श्रेणियां'); यदि ($ Q- & gt; num_rows () & gt; 0) {foreach ($ Q- & gt; परिणाम $ पंक्ति के रूप में) {if ($ row-> parentid & gt; 0) {$ data [0] [$ पंक्ति- & gt; पैरेंटिड] ['बच्चों'] [$ पंक्ति- & gt; आईडी] = $ पंक्ति- & gt; नाम; } और {$ डेटा [0] [$ पंक्ति- & gt; आईडी] ['नाम'] = $ पंक्ति- & gt; नाम; }}} ...

mysql template in php -

I have come into this PHP code in a PHP software. What does #section_filter mean? Is this a valid mysql syntax? Or just a template system? $ filterid = ac_sql_select_one ("SELECT id FROM #section_filter WHERE userid = '$ ary [userid]' and sectionid = 'text' and conds = '$ conds_esc'"); thanks This is a valid SQL syntax but the problem is I Doubt is that the hash # character creates a comment in SQL queries, so this query can not be executed. Another possibility is that the program that you viewed this query should be dynamically enabled before changing #section_filter with some table names on mysql engine And then the query should run fine. This is the highest probability in my view.

Need to disable JQuery Table navigation when focus in on an input field -

I have to disable an input field when I have a focus, I could tie it in the keypress / key down event and What table navigation does this support for some? Any other suggestions are welcome. The appearance of the documentation appears to be such that you can do something like this: $ (": input.myField"). Focus (function {$ .tableNavigation ({disabled: true}}} .blur (function () {$ .table navigation ({disabled: wrong}};}); This assumption is based on the documentation based on the following statement: Just call jQuery.tableNavigation to update the options used New options.

sql - insert a picture into database(sqlite) with java code. what should i do? -

In the sqlite database, I set a field type blob. Then, I have written the Java code: include prestmt = con.prepareStatement ("zz (pic) values ​​in the prepared place (?)"); PreStmt.setBinaryStream (1, New FileInputStream (file), file.length ()); I got an exception: java.lang.AbstractMethodError: org.sqlite.PrepStmt.setBinaryStream (ILjava / IO / InputStream; J) V Any suggestions? Or, what code should I write if I want to save the binary number in sqlite? Zerial SQLite JDBC implementation has been prepared. State bits (index), byte []). You should be able to get a byte array from your file intstream using the code on the following file: When things are stored as blops, beware of the following issues: I hope it helps. -एक्सक्स

error in compiled in swig for connect c with php -

swig -php example.i यह 3 फाइलें example_wrap.c, php_example.h और example.php। पहली फ़ाइल, example_wrap.c में एक PHP एक्सटेंशन बनाने के लिए आवश्यक सभी सी कोड हैं। दूसरी फ़ाइल, php_example.h में हेडर की जानकारी आवश्यक है, यदि आप स्थिर php interpreter में विस्तार से लिंक करना चाहते हैं। तीसरी फाइल, example.php को PHP लिपियों द्वारा शामिल किया जा सकता है। या तो तीन फाइलें बनाई जाती हैं, फिर निम्नलिखित कोडिंग निष्पादित करें। इसका उपयोग उदाहरण के लिए किया जाता है। फ़ाइल। जीसीसी `php-config --includes` -fpic -c example_wrap.c gcc -shared example_wrap.o -o example.so मुझे लगता है कि उदाहरण के साथ, उदाहरण के साथ एक कदम को याद कर रहे हैं। [एचसी] ताकि आपके संकलन को कुछ करना चाहिए: gcc -c example.c -o example.o gcc ` Php-config --includes` -fpic -c example_wrap.c gcc -shared example_wrap.o example.o -o example.so

vb.net - Create Mysql Stored Procedure using in vb .NET -

How do I create a stored procedure by using virtual VB.NET programming? EDIT: I apologize for being so brief. I've tried to use ExecuteNonQuery provided by the MySQL .NET connector. It tells me an error, maybe this is because I have kept "Delimiter $ $"? I know that I can create a script (batch file) if I want to send it to my customer (as commented below) but my purpose is to keep MySQL password secure Then the script is not the way Connect to the database. Create Process SQL Command Run ExecuteNonQuery

apache - Rewrite rule with the exception of static content -

मेरी वर्तमान htaccess फ़ाइल इस तरह दिखती है: पुनर्लेखन पर पुनर्लेखन कोड% {REQUEST_FILENAME}! -एफ [एनसी] रीवाइटकॉन्ड% {REQUEST_FILENAME}! -d [एनसी] रिवेराइटियम ^ (। *) $ Index.php? पेज = $ 1 [एल, क्यूएसए] यह काम ठीक है हालांकि, मैं कोशिश करूँगा और सर्वर लोड को कम कर दूंगा इसलिए मैंने इस लाइन को रेवरइटइजइन ऑन लाइन के ठीक नीचे जोड़ दिया है ताकि स्थिर सामग्री लोड करने पर प्रोसेसिंग बंद हो जाये। RewriteCond% {REQUEST_FILENAME}!। Jpg $ |। * $ Gif $। * Png $।। Css $।। * Js $। * * Txt $। * Ico $। * Pdf $ [nc] क्या यह लिखने का सबसे कारगर तरीका है? धन्यवाद पंक्ति 2 में आप पहले से ही अनुरोधित फाइल ( ! - f ), इसलिए आपकी लाइन जोड़ने की कोई आवश्यकता नहीं है, लेकिन यदि आप .php फ़ाइलों की तरह अन्य फ़ाइलों को लौटने से बचना चाहते हैं, तो आप अपने नए पुनर्लेखन स्थिति के साथ लाइन 2 की जगह ले सकते हैं। निष्पादन योग्य मुझे नहीं लगता है कि यह अपाचे अप को गति देगा हालांकि, और आपके वेब अनुप्रयोग में कुछ अन्य प्रदर्शन छेद है। उस ने कहा, आपका पैटर्न संभवत: नहीं है जो आप होने की उम्मीद करते ...

sql - SQLite select next and previous row based on a where clause -

I want to be able to be able to get the next and previous row using SQLite. ID Status Date 168 1 2010-01-28 16: 42: 27.167 164 1 2010-01-28 08:52 52: 07.207 163 1 2010-01-28 08:51 51: 20.813 161 1 2010-01-28 07:10 10: 35.373 160 1 2010-01-27 16: 9: 32.550 46 2 2010-01-30 17:13 13:45 4550 145 2 2010-01-30 17:13 13:42 427.00 142 2 2010 For example: ID 46 strong> I 160 (last one) And 145 (next one) ID ID 160 I 161 (last one) and 46 (next one) etc. would like to come back from to @ status ID and Expertise is Stisel test data server is built ... set nocount; Set dateform ymd; Announce @t table (id int, status entry, date sorted datetime) @t in selection 168,1, '2010-01-28 16: 42: 27.167' Select Union 164,1, '2010-01- 28 08:52: 07.207 'Selecting the Association 163.1,' 2010-01-28 08: 51: 20.813 'Selecting the Union 161,1,' 2010-01-28 07:10 10: 35.373 'Select the Union 160.1,' 2010-01- 27 16: 09: 32.550 'Ass...

ASP.NET MVC 2 RC areas and shared models -

Once the new area is created through Visual Studio context menu, there are three folders: controller, model, View . Is it supposed to be a model class in every field? P> model folder contains visual models. And yes, many views in many areas share the same visual-model in some way. If your visual model is shared with many areas, then they ~ / models - there is no restructuring in it

iphone - How to rotate an Info Button with the view? -

I'm just trying to write a visual based application, which uses only landscape orientation. Using this code: application.statusBarOrientation = UIInterfaceOrientationLandscapeRight; Application Start application in landscape orientation The problem is, if I create a landscape view in interface builder, the scene was made by the I way She did not see ... I have to create a scene in portrait mode and imagine that when it is in portrait mode (hope you understand what I mean?) - I include the rotated images already . So, I've got everything now, but Infobaton is not rotated (other buttons, but others have already rotated the images) ... Is my fault? Thank you very much. is related to Depending on your view (button) orientation : UIInterfaceOrientation orientation = [UIDevice currentDevice]. Consideration; CGAffineTransform changes; Switches (Orientation) {Case UIDwise Orientation Portrait: Transforms = Cigfeint Transform Identity; break; Case UIDeviceOri...

iphone - Sanity Check an MKCoordinateRegion -

Is there any way to quickly test whether a MKCoordinateRegion is good or is not? I swap latitude for longitude and cause an application accident. I want to see whether it is possible before it is possible to perform a setRegion to do this before I actually do it. MKCoordinateRegionMake Will the values ​​I test give to it? Thank you. "itemprop =" text "> It was discovered that I had switched my latitude and longitude somewhere. Here the code has ended using I: // checks for the sensible term values, then (currentRegion.span.latitudeDelta

List of oEmbed providers -

I am trying to find out where all the ombuds providers are. I went to the Omd Spake site and they got something, but I found out some other which were not specified, like 5 minutes of video: Provider: 5min URL scheme: http: //wwwwmin.com/video/* APP EndPaint: http://api.5min.com/oembed.{format} Docs: http://www.5min.com/APIDocs/Embed.aspx Nothing better than asking the developer community to stack overflow Good collection:

PartCover and TeamCity -

I am using TeamCity to build a solution file. I " I am trying to get It is easy enough to point out partcover.exe, I am only unsure how to get team city to prepare a proper report from the results of our NUNIT exam. I have added our file and it is displaying the correct information, though the information displayed under the Code coverage tab is only "coverage by assembly" and nothing else would be great help or idea. It seems that TeamCity has just improved its support for code coverage, check out the following blog post To see if it helps:

firefox - Displaying images and documents using asp.net across several browsers -

मेरे पास डिस्प्लेबरीडाटाटा। एस्पक्स नामक एक वेबपेज है - इस पृष्ठ का उद्देश्य किसी भी शब्द को प्रदर्शित करना / डाउनलोड करना, एक्सेल, पीडीएफ या इमेजिस। मैं इस वेबपेज को कॉल करता हूं और एक क्वेरी स्ट्रिंग का उपयोग कर अपने बाइनरीडेटा इकाई का आईडी पास करता हूं। BinaryData इकाई फ़ाइल, फ़ाइल नाम और contenttype शामिल है asp.net fileUploadControl का उपयोग कर अपलोड कर दिया। पृष्ठ लोड में कोड नीचे दिया गया है: BinaryData obj = GetBinaryObjectById (int.Parse (Request.QueryString ["id"])); Response.Clear (); Response.BufferOutput = सच; Response.AddHeader ("सामग्री-विवाद", "अनुलग्नक; फ़ाइल नाम =" + obj.FileName); प्रतिक्रिया। कंटेंट टाइप = obj.FileContentType; Response.BinaryWrite (obj.BinaryFile); Response.Flush (); Response.Close (); Response.End (); यह कोड IE में पूर्ण निष्पादित करता है, लेकिन फ़ायरफ़ॉक्स में निष्पादित होने में विफल रहता है। IE उपयोगकर्ता को संकेत देता है, या तो सामग्री को बचाने या खोलने के लिए। फ़ायरफ़ॉक्स उपयोगकर्ता को भी संकेत देता है, ल...

php - how i can upload a file in zip archive -

Now I am working with PHP: How do I add a ZIP archive and a function call And I can get content from TMP, then add it to the collection. I think what file_get_content will do? Or how can I create this by using the copy function using the file you uploaded And then use it to add the logic behind it to zip that the TMP files can be difficult to read and manipulate based on the server's configuration. Once the file is added to the zip, you should delete the uploaded file, the upload process.

sql - simple table design question -

I am trying to think a bit further and if possible I am trying to avoid some extra pain. I have found this problem in previous applications and are generally chosen for most verbose approaches, but others would like to have opinions. If you have a basic table such as below, it is intelligent, and / or more efficient to include a field in which information is included in the calculation which can be found in two other columns ie: + ----- + --------- + ------------ + ------- + - ------ + ------- + | ID | Room_id | Bookit | Price | People | Total. + ----- + --------- + ------------ + ------- + -------- + --- ---- + | 414 | 132 | 2010-03-01 | 14.55 | 2 | 29.10 | | 415 | 132 | 2010-03-02 | 14.55 | 2 | 29.10 | | 416 | 132 | 2010-03-03 | 14.55 | 2 | 29.10 | + ----- + --------- + ------------ + ------- + -------- + --- ---- + The information in the previous field can be removed from the product of the previous two, so it is unnecessary and unnecessary. What are the examples when ...

Printing at a specific location using Java -

I am developing an application that prints data on the check basically. The data is obtained from the database and the Java application (or an applet) has to print the data (name, amount, date etc.) on the appropriate conditions on the check. I use a specific location on a paper using Java? How can you do this? Search the web, there are lots of tutorials.

How can I remove all instances of an element from a list in Python? -

इस सवाल का पहले से ही एक उत्तर है: 15 उत्तर कहें कि मेरे पास एक सूची है a : a = [[1, 1], [2, 2], [1, 1], [3, 3], [1, 1] ]] क्या कोई ऐसा कार्य है जो [1, 1] ? यदि आप इन-प्लेस सूची को संशोधित करना चाहते हैं, तो a [:] = [x के लिए एक्स में x if =! = [1, 1]]

javascript - JS doc with ant -

I'm trying to get an ant to run my jsdoc toolkit. After creating my build.xml from the site, I end up with it: & lt; Taskdef name = "jsdoctoolkit" classname = "uk.co.darrenhurley.ant.tasks.jsDocToolkit" classpath = "/ jsdoc / jsrun.jar; /jsdoc/java/classes/js.jar" /> As I run #ant, I get the following error: /pathto/jsdoc_toolkit-2.3.2 / Build Xml: 1: I'm just a Java developer as an unexpected element "{} taskdef" {antlib: org.apache.tools.ant} taskdef I can only guess That's my classname (which I have taken from the website) is wrong. But now I have to find out where it is to replace it. Can anyone help me with it? I do not have much luck jsdoctoolkit work is either working Fortunately this JSDoc toolkit is easy to run directly from ant without using the work. & lt; Property name = "source.dir" value = "source" /> & Lt; Property Name = "doc.dir" value = "Do...

vb.net - hyperlink in asp.net that takes the value to the next page -

With asp.net in PSX with IPL. On my first page, I display the names of all employees. I want to give it a hyperlink when it is clicked, open the next page, open a query string and record only that employee. Apart from this, I want to save the employee on the second page (which is not shown on page 1), when I update on the second page, then I use that employee id for "where" section for the update or insert statement Have to do in Any ideas? If you are not concerned about people messing with query strings, then you can use it And then get data in the next page while using Page_init or Page_load: HttpContext.Current.Request.Item ("EmployeeID") However, I'm a fan of not using query string because people tamper with it, you can post your HyperLink PostBackUrl property. You can use (if you use ASP linkbutton), and in the next page you have to access the page from any page to access the page You can use prepay objects. & lt; Asp: LinkButton id = ...

LIttle problem with Flex and sqlite query? -

Just a quick question about a small problem I'm making a Flex app that I'm making. This is my first time tying to create an app using a local database and I'm getting an error in my query. Private function empty-rows (eventObj: CloseEvent): zero {var stmt: SQLStatement = new SQLStatement (); Id = datagrid_id.selectedItem.personid; If (eventObj.detail == Warning. Oak) {stmt.sqlConnection = sqlCon; Stmt.text = "Delete person WHERE pers_id =" Id; Stmt.execute (); retrieve data(); }} The error message I'm getting - possibly undefined property ID will be entered through a static type of reference I am doing wrong. Thanks! You must declare the same as the ID variable Blank (Event obih: CloseEvent): Zero {var stmt: SQLStatement = New SQLStatement (); Var ID: string = datagrid_ID.edited item.personid; If (eventObj.detail == Warning. Oak) {stmt.sqlConnection = sqlCon; Stmt.text = "Delete person WHERE pers_id =" + id; Stmt.execute (); ret...

Is using fieldset and labels in XHTML discouraged? -

I've heard that there was a fundamental lack of understanding of those web browsers, and often displaying IE 6,7, Opera Was trying to Is this really true? Should they be avoided? And when we are on that, what form does they have when they use the form? (Better than square frame) It seems inappropriate, in fact, XHTML 1.x to STRICT Block-level elements of field input elements like input elements are required for labels, they are valuable to users with screen readers. I will not replace the tag.

php - Trying to insert IP address but get an error -

I am trying to include the IP address in the last (last signed integer) INSERT User_net (UPC, StateID, StoreID, CIID, Price, Calculation, LastIP) values ​​(885 9 0 9 37,38,1,1,1,0,0,0, INEETN (127.0.0.1) ) Error: 1064 - There is an error in your SQL syntax; You need to add quotes: User_entry (UPC, StateID, StoreID, CID, Price, Calculation, LastIP) INSERT values ​​(885 9 0301378,1,1 , 1,170,0, INET_ATON ("127.0.0.1")) Source:

caching - Is it possible to clear the ASP.NET application Cache without resetting the AppDomain? -

I want to reset / clear an item in the cache, but without any reset application or write a particular page for . I.e., a non-programmatic solution Is this possible? short answer: no. ASP.NET caches does not have any administrative interface to manage it. You will need to recycle your application pool, or to create a simple page to do Edit : Inspired by Mick reply, you can get a page like this ( RemoveCache.aspx ): & lt;% @ page language = "c #"% & gt; & Lt; Script runat = "server" & gt; Zero Page_load (Object Sender, EventErgus E) {if (string.isnelloracquity (request.nuclear string ["name"])) {foreach (dictionary entry item in cache) {cache. Remove (item.cttestring ()); Response. Type (item.c.To string () + "deleted & gt;); }} And {cache}. Remove (request .jQuery string ["name"]); }} & Lt; / Script & gt; If you call RemoveCache.aspx , all your cache will be deleted; RemoveCache.aspx? Name =...

css - A bordered box shows up in a stand alone html page but does not show when placed in an iframe -

I have this CSS code and it works as expected on a plain old stand alone page, but only text in an iframe Shows Displays the same in Firefox 3 and IE8. any idea? #MyBox {status: Completed; Display area; Left: 0 pixels; Top: 90px; Width: 150px; Height: 150px; color blue; Border-style: solid; Border color: red; Border-width: 3px; Background image: url (images / blu_grad.gif); / * Large picture may take a lot of time to load * /} This is my box! Are you crossing the server? It is possible, depending on your setup, that image can not be found through the relative path.

Getting Short-Filename of Command-Line Argument from Batch-File -

बैच फ़ाइल में निम्न कमांड अपेक्षित / उम्मीद के अनुसार काम नहीं करता: इको% ~ एनएक्सएस 1 यहां मैं जो प्राप्त करने की कोशिश कर रहा हूं उसका नमूना प्रदर्शन है: C : \ & Gt; टाइप करें test.bat @dir / b% 1 @echo% ~ nxs1 C: \ & gt; परीक्षा "सी: \ दस्तावेज़ और सेटिंग्स \ सभी उपयोगकर्ता \ ntuser.dat" ntuser.dat NTUSER.DAT C: \ & gt ; परीक्षा "सी: \ दस्तावेज़ और सेटिंग्स \ सभी उपयोगकर्ता \ ntuser.data" ntuser.data NTUSER ~ 1.DA ~ C: \ & gt; परीक्षण "सी: \ दस्तावेज़ और सेटिंग्स \ सभी उपयोगकर्ता \ ntuser.dat.baz" ntuser .dat.baz NTUSER ~ 1.BAZ सी: \ & gt; परीक्षण "सी: \ दस्तावेज़ और सेटिंग्स \ सभी उपयोगकर्ता \ foo.bar.baz" फ़ाइल नहीं मिली foo.bar.baz (या FOO ~ 1.BAZ या जो भी हो, इसके बजाय मैं जो कुछ प्राप्त करता हूं, वह निम्नलिखित जैसा होता है (नियुक्त लघु फ़ाइलनामों के आधार पर): सी: \ & gt; टाइप करें test.bat @dir / b% 1 @echo% ~ nxs1 सी: \ & gt; परीक्षा "सी: \ दस्तावेज़ और सेटिंग्स \ सभी उपयोगकर्ता \ nt...

Network programming with C# -

I have a project that has packet monitoring. I want to get every packet obtained from the specified network interface. I want to know how should I start my project ... Should I learn socket programming first or what? I should learn to use winpcap under C # or just do my own job. Please advise me where I should start! I know that there are many codes in C # for the Internet, but I want to learn it myself but I do not know where the stars are from! You definitely want to learn the fundamentals of socket programming first, so that you understand what happens. Used to be. After this, I will use programming, which is a packet capturing library. It is not designed for .NET directly, but I can trust, .NET wrappers or if you can not call anything using COM interop.

browser - a c++ Google chrome event listener -

Anyone can help me understand how Google is connected to Chrome. I would like to create a standalone C ++ application (probably a DLL) which will list the events made by the browser. Probably like the implementation of IH's BHO Anyone can take the first step or step to do about it ?! Thank you very much :) Very much appreciated PS: I already know that Google Chrome is supporting MSSA By automation provider: src \ chrome \ browser \ automation \ Automation_provider.cc /.h

naming conventions - What is the correct generic name for the data structure in a calculator app that holds the numeric display -

This will hold a string and add letters (numerical, or decimal point) and will be removed from the right. Ignore the case of negative numbers for simplicity. Is there a consensus name on this type of data structure? register? Buffer? Display? anything else? Update: This is an internal representation and there is no final form of some calculation. It can be input for a later calculation (by changing it in a number, of course). You can apply it using a stack. A stack is the last-out-first-out (LIFO), as you are describing with performance. But if you are looking for something to name your calculation results, then I agree that most of the answers which were said "result" or "performance": - P

c# - How to make a generic list equal another generic list -

यह मेरा सेट अप है, वर्ग की लागत की अवधि: आईपीएरियोडक्ल्यूलेशन {सार्वजनिक दशमलव} एक {प्राप्त; सेट; } सार्वजनिक दशमलव? बी {प्राप्त; सेट; } सार्वजनिक दशमलव? सी {प्राप्त; सेट; } सार्वजनिक दशमलव? डी {प्राप्त करें; सेट; }} इंटरफेस आईपीएरियोडक्ल्यूलेशन {दशमलव} एक {प्राप्त; सेट; } दशमलव? बी {प्राप्त; सेट; }} वर्ग myDto {सार्वजनिक सूची & lt; CostPeriodDto & gt; CostPeriodList {प्राप्त करें; सेट; } सार्वजनिक सूची & lt; IPeriodCalculation & gt; अवधिसील्लिक सूची {प्राप्त करें this.costPeriodList; // compile error}}} ऐसा करने का सबसे अच्छा तरीका क्या होगा? कास्ट & lt; IPeriodCalculation & gt; () : सार्वजनिक वर्ग का उपयोग करें CostPeriodDo: IPeriodCalculation {सार्वजनिक दशमलव} एक {प्राप्त; सेट; } सार्वजनिक दशमलव? बी {प्राप्त; सेट; } सार्वजनिक दशमलव? सी {प्राप्त; सेट; } सार्वजनिक दशमलव? डी {प्राप्त करें; सेट; }} सार्वजनिक इंटरफ़ेस IPeriodCalculation {दशमलव? एक {प्राप्त; सेट; } दशमलव? बी {प्राप्त; सेट; }} सार्वजनिक वर्ग myDto {सार्वजनिक सूची & lt; CostPeri...

types - Recommend datatype Number vs Varchar for a surrogate key -

Can any of you tell me what is the best data type for the surrogate key (number or code 2) Is a bit I have read that the surrogate key works best with number type. But performance has a serious impact on data types. And is this database too dependent? The answer will be very appreciated! A numeric datatype is going to be faster than in any database that I can imagine I think - consider the task of comparison - but whatever you fit in your situation, you have to do it. If the behavior is understood, go for it. If you fit equally well, then stay with a numeric.

Debug on symbian -

I am using trk for phone debug This works well for the Holorld project But when I start the project in phone debug mode 1) the load failed 2) TrkProtocolPlugin: to target the specified file Failure (please verify If any body understands what problem I am experiencing, then this problem helps me Pre-release If the application has the privileges assigned (with the appropriate certificate) itemprop = "text" > In your case, I will check: / li> If there is no conflict of application ID with any other application of device If there are problematic commands in the installation package (for example copy copy for non-accessible directories)

sql - Query parent and child entries of one element in a single row -

I am looking for the best way to display parent and child entries in a line Example: table an ID | PARENT_ID | VALUE ============================= 1 | | A2 1 | B3 | 2 | C4 | | D5 | 4 | E So I have to get the following result: id | Parents Children VALUE ========================================= 2 | 1 | 3 | A5 | 4 | | E How do you solve it? Daniel with self-affiliation It can be easily done by: SQL & gt; With 2 table (2 select 1 id, tap parent_id, 'Select all from dual 3 union 2, 1,' b 'two to 4 union all select 3, 2,' c 'to dual union 5 select all 4 , Tap, select all from 'D' Dual 6 union 5, 4, repeat with 'E' 7) Select 8 children. Children, Parents, 9 grand_children.id, children.value 10 FROM (Table of SELECT ID, parent_id, VALUE 11 WHERE LEVEL = 2 13 connect by parent_id = First ID starts with 14 parent_id NULL) Child 15 left Join table_a grand_children at 16 children.id = grand_children.parent_id; ID PARENT_ID id VA...

.net - What is the difference between framework and architecture? -

Image
I want to know the difference between architecture and architecture. For example: dotnetnuke is the structure and architecture is mvc . So if we take this as an example, can someone tell me the difference between them? When and where to use? User requirements are good in terms of satisfaction? Let me describe the difference. Framework: architecture:

java - Spring file upload in a mixed form -

I want to upload a file in my spring 3.0 application (made with cry). I already have the following unit: @Antity @ RUJAVABIAN @ RUTHOSTRING @ RUNTTT Public Class Selenimphile {@ManyToOne (TargetIntytti = Showcase.Class) @ Zone Column Private Showcase Showcase; @ Lab @basic (fetch = fetchType.LAZY) private byte [] file; Name of the @notational private string; } but I'm not sure how to implement it / execute on the controller side. Can I do & lt; Input type = file ... & gt; & lt; with normal tags like Form: input & gt; I can mix spring-form tags independently I have seen good in MVC-documentation but still need some help to apply it in my specific case. Update: I think my question was badly prepared. What I wanted to do is make the spring I came to know how to do this in the old Spring Documents and how it has been implemented in the new Spring 3.0 MVC. Basically it means that you have to register a PropertyEditor in your controllers @InitBinder...

mysqldump not restoring data in MySql 5.0.19 -

I have production and a development server, each server has its own MySql server. I am not the administrator of any server, some I'm also not installing. I have to take schema and data from development to production, but myslqdump does not restore any data! I tried to add SET FOREIGN_KEY_CHECKS = 0; Without the result, then I removed the only trigger, nothing. Then I removed two foreign keys which made and error (when importing phpMyAdmin). Then I was able to import the data. It is quite scary. I can not trust mysqldump, right? Do you have such problems? Any advice? Are you dumping and reinstalling with phpmyadmin? > HTML>

python - How to match info from a string -

I have a string whose version number I want to read the version number from this code so that I compare it with the second code I can use what I am using. I have been coded down but this can not work, can anyone see the problem? Print result for r = re.compile (r '(version \ s * \ s *) (\ S +)') In the result: M1 = R.Match (L) If the M1: ID = map (int, M1group (2) .split (".")) For the id in L = r.sub (r '\ g is the result variable: name information type call version 1.0.40.437 Venus 2 October 10: 54:35 bst 200 I have done this in this way because I need numbers in the ID groups to enter the id number of ID In the second file and need to be compared to another number. The answers given below are useful, but the way I was, read a file and put all the numbers out and put them in a list so that everyone would have to compare two numbers in the list. Sorry if the question was not clear, but I do not want the version number string to be. OK I made t...

asp.net - .Net Assembly Binding Redirect with Differing Public Key Tokens -

Is it possible to redirect an assembly binding between different versions of a referenced assembly if the public key token is outdated in the old version and the new Set to version? For example, I have two assemblies ... The system. Web. MVC, version = 1.0.0.0, culture = neutral, public token = null and system.web.mvc, version = 2.0.0.0, culture = neutral, public keycut = 31bf3856ad364e35 Should the following assembly work in compulsory work asp.Net web.config ... & lt; Runtime & gt; & Lt; Assembly binding xmlns = "karash: schema-microsoft-com: asm.v1" & gt; & Lt; DependentAssembly & gt; & Lt; Assembly ID name = "System.Web.Mvc" publicKeyToken = "31bf3856ad364e35" /> & Lt; Compulsive Redirect Old Version = "1.0.0.0" newVersion = "2.0.0.0" /> & Lt; / DependentAssembly & gt; & Lt; / AssemblyBinding & gt; & Lt; / Order & gt; No, this is not possible. The...

Is there a jQuery equivalent to the YUI, ASP.NET, or Google DataSource? -

One of the things I like about is the control general widget which wisely receives data from different sources and Plugs in other UI widgets in a standard way. So ... you bring the tabular data into a datasource, and then there is the option to plug that data into a table, a chart, an autocomplete widget, a straightforward list. All right jQuery does not appear to be an equivalent. Is it true? It seems that each widget basically applies its datasource or depends on the data provided in a particular format. I have definitely erased something. [I highlighted YUI here, but definitely not a "datasource" Yahoo is not special - it's just MVC way of working) It seems that I have to answer my question. :) I have made a round around and searched through the jQuery forum and I have not come across a standalone Datasource plugin of the same type (and name) that is available in Yahoo, NET, And Google Javascript frameworks. I think the reason for this is that othe...

tsql - problem with IN and LIKE in SQL when arguments contain special characters for a language -

I've got a key word table (MS SQL): Keygide qualifier primary that DA7E4E27-FDE5-4D43-A365-8A789164A816 tit kirkäna EED58875-FE41-4A18-A93C-A44AA62CEEEE htit kirkänbh A0EB795E-EE23-4990- BAB9 -897C93C70CE3 hit Kirknah F7F4632B-AC82-4DEB-B966-BBA8EF4D2C9E step Kerknab C0EB795E-EE23-4990-BAB9-897C93C70CE3 called Kirkns E2F4632B-AC82-4DEB-B966-BBA8EF4D2C9E nam kirkänbs A222795E-EE23-4990-BAB9-897C93C70CE3 tit kirkacb B333632B-AC82-4DEB-B966-BBA8EF4D2C9E Tit kirkaca 1222795E-EE23-4990-BAB9-897C93C70C81 htit kirkacbh E533632B-AC82-4DEB-B966- BBA8EF4D2C82 htit kirkacah This simple query returns all the relevant records correctly: Select * From the key word where 'kirkan%' like ' Code> DA7 A4E27-FDI-4 4D 43-A365-8A 789164A 816 Title Ridness EED58875-FE41-4A18-A 9 3 C A44AA62 Siiiii HIT Kirkgb A0EB795E-EE23-4990-BAB9-897C93C70CE3 Hate Kirknah F7F4632B-AC82-4DEB-B966-BBA8EF4D2C9E step Krkanb C0EB795E- EE23-4990-BAB9-897C93C70CE3 nam...

.net - c# event handling between two forms -

I have two forms and I am trying to capture the event that occurs in frmEventReceive.cs from frmEventGenerate.cs I am In this example I can get the event from frmEventGenerate.cs but not sure how can I capture it in frmEventReceive.cs? FrmEventReceive.cs is my startup form which creates frmEventGenerate.cs. Can someone tell me in the right direction, I think I'm stupid! thanks frmEventGenerate.cs: using the system; Using System.Collections.Generic; Using System.ComponentModel; Using System.Data; Using System.Drawing; Using System.Linq; Using System.Text; Using System.Windows.Forms; Namespace Event {Public Representative Zero LinkToEventHandler (); Public partial class frmEventGenerate: form {public static event LinkToEventHandler Evt; Public frmEventGenerate () {InitializeComponent (); Evt + = new LinkToEventHandler (ReceiveEvent); SendEvent (); } Public static zero SendEvent () {if (Evt! = Null) {Evt (); }} Public Zero Recipient () {System.Console.WriteLine (...

jquery - ASP.NET MVC Postback on Modal Dialog/ Popup -

I have a link on an asp.net mvc view that opens a modal popup in which another MVC view is provided . / P> The view in the modal popup displays many features that trigger a postback. Postbacks ignite the right control methods but when I return the updated view, it shows the renderer itself, as shown in the modal popup. This popup is closed, I am no longer on the "original page" but loaded instead of a standalone url to look in the modal popup. What would I want to achieve is that in a modal popup, a postback in the scene loads the updated view back into the modal window? Can anyone help? I have seen reference to partial ideas and AJAX calls but are not sure how they are best fit? Thanks, Griff First of all, MVC does not postback, it's just regular Appearance can look like cement, but there is a basic difference. To answer your question, if you want to update the modal window, then you have to go Ajax route. What you want to do is send a request th...

c# - Digest authentication not working on IE8, Firefox and Chrome are fine -

I have a website with the need for digest authentication and when I browse it with IE8, The password is right. Firefox and Chrome works correctly I checked the authorization header with Fidler, everything looks fine Can you give me an indication of the problem? In addition, I have the same problem with implementing Digest authentication in C #, I do not know that these two are related. I had the same problem in my case, I used to use diggers for my entire site "Lift / directory /> or" & lt; Location /> "Any method works for Firefox and Safari on Mac, PC and IOS." Unfortunately, IE8 is having trouble with this. After trying several other changes, I finally found out that If I need certification on a subdirectory (such as "location / private & gt;"), and to transfer my content to protected directories, IE8 started working Incidentally, this It is worth mentioning that a TCPDump has shown that IE8 was also not trying to submit a ...

Why are search results in MediaWiki displaying without formatting? -

I have installed MediaWiki and I have found that the search results are not being formatted, it means, if I have an article in which the following text: '' 'This is an exam' '' ' When you are viewing the original article, it is bold , But when you search for example: Examination, search results will be displayed without formatting and with full code , Which means that in the search results, it is shown: the name of the article "This is a test" '' ' I clearly want to see it like this: Name of the article This is an exam I have not modified any of the mediawiki codes yet How can I get it? Thanks Which version of MediaWiki are you using? You may need to install the MWSearch extension to get results without formatting.

java - How to import a class from default package -

संभावित डुप्लिकेट: मैं ईक्लिप्स 3.5 और मैंने डिफ़ॉल्ट पैकेज के साथ कुछ पैकेज संरचना के साथ एक परियोजना बनाई है। मेरे पास डिफ़ॉल्ट पैकेज में एक वर्ग है - Calculations.java और मैं किसी भी पैकेज में उस क्लास का उपयोग करना चाहता हूं (उदाहरण के लिए com.company.calc ) । जब मैं डिफ़ॉल्ट पैकेज में है जो वर्ग का उपयोग करने का प्रयास करता है, तो यह मुझे एक कंपाइलर त्रुटि दे रहा है यह डिफ़ॉल्ट पैकेज में कक्षा को पहचानने में सक्षम नहीं है। समस्या कहां है? परिकलन.जावा - स्रोत कोड सार्वजनिक वर्ग की गणना {देशी सार्वजनिक int गणना (पूर्णांक संदर्भित); देशी सार्वजनिक डबल गेटप्रग्रेज (आईटी संदर्भ आईडी); स्थिर {System.loadLibrary ("कैल्क"); }} मैं किसी भी अन्य पैकेज में अपनी कक्षा नहीं डाल सकता। इस वर्ग के कुछ मूल विधियां हैं जो डेल्फी में कार्यान्वित हैं अगर मैं उस वर्ग को किसी भी फ़ोल्डर्स में डाल देता हूं, तो मुझे उस DLL में बदलाव करना होगा जो मैं बचाना चाहता हूं (वास्तव में - मैं नहीं कर सकता)। यही कारण है कि मैं अपना पैकेज मूल पैकेज में रखता हूं। से: यह अज्ञात पै...

regex - Javascript match changing the value of a different array -

I have problems with some combination arrays and match method below. I call the checkout () function on my page And it sets a temporary array equal to the array I created with different options. This is the threshold through the temporary array and removes the html in one of the elements. The issue is that when I remotely arrange the array. Alert the cart before the loop, as it was created at all, but when I call the function again, new updated values ​​are shown in the same warning, although I do not modify the remote I am here. Cart.products array anywhere in the function. function checkout () {tmp = null; Tmp = Remote. Cart Products; Warning (Remote Cart Product); (I = 0, li = tmp.length; i & lt; li; i ++) {for (j = 0, lj = tmp [i] [1] .length; j & lt; lj; j + +) {Tmp [i] [1] [j] [1] = tmp [ii] [1] [j] [1]. Milan (/lt; a \ s [^ & gt;] * href = "([^ \"] *) "[^ & gt;] *> (. *) & Lt; \ / a & gt; / I) [2];}} } Your help / insight is g...

sql server - Relational database data explorer / visualization? -

Image
Is a device that can browse a relational data as a graph of the connected node? For example, I am faced with trying to clean some informal data. I could start with two offensive lines in this particular example, transactionId is required, the rules of business, are unique to the table, but I would violate a deal that rule: SELECT * affect where LCTTrans transactionId = 1075048 LCTID transactionId ========= ============= 4358 1075048 4359 1075048 2 row (s) But in reality I want to start hunting all related data, to see what is right. After this, I want to see that the transaction is linked in this table: will start showing both rows / P> now this transaction indicates a MAL, so I show it: now add the two LCI, that the transaction is "current" transaction can be only one LCT, even though it is pointing to a two: OK computer, both a stool au those LCTs Transaction that created them, they both point to the show: Those last two transactions, they als...

"Debug certificate expired" error in Eclipse Android plugins -

I am using Eclipse Android plugins to create a project, but I'm getting this error in the console window: [2010-02-03 10:31:14 - androidVNC] Error generating final archive: Debug certificate ends on 1/30/10 2:35 AM! How do I fix this? Delete your debug certificate Linux and Mac OS X on ~ / .android / debug.keystore ; Directory Some % USERPROFILE% /. Android is similar to Windows . When you try to create the next time, the Eclipse plugin should create a new certificate. A debug package may require you to clean up and then create a certificate.

What is ORM as related to Ruby on Rails? -

What is the ORM because it applies to the rail and what does it mean? The ORM object is a relational mapper. This means that you do not have to manually call the database itself; ORM handles it for you. Ruby on Rail is used by an active EricRecord, and it's really good. / P>

python - Saving an image of what a device context drew, wxPython -

I need to be able to save an image of the device context canvas (the format does not make any difference). Have tried but this invalid bitmap returns how can I do this? I believe this should do the trick: Def saveSnapshot (dcSource): # based on wxpython by Andrew Gavana- Users # 2006-11-08 size = dcSource.Size # Create a bitmap that will hold the screenshot image later # Note Make sure that the bitmap screenshot # 1 is a big size to catch, which means that the current default color depth is BMP = wx.EmptyBitmap (size.width, size.height) # Make the memory of the DC Which will actually be used to take the screenshot memDC = wx. Tell us how to use the memory DC to use our bitmap. # Memory will go to all drawing action bitmaps on DC now memDC.SelectObject (BMP) #Blit ( In this case copy) the actual screen on memory DC # and thus copy the bitmap memDC.Blit (0, # in the X coordinate 0, copy this into # Y coordinate size, # come to this width Copy the car. Hey, copy this height to...

What is the most Oracle compatible open source DBMS? -

My organization is considering using a new open source DBMS (if it is possible, but not mandatory) That is what we grow. Since we already have some apps that connect to an Oracle server, we want to use a DBMS which is probably compatible with Oracle. So we can port the app at least in the oracle with work, as if we do not get the same performance or do not like how it responds. Apart from this, most developers experience only with Oracle. Whom will you recommend? We are trying to cut costs. Postgreschel has always proved to be a good option in my experience Read on Provides more information and links to tools for migration. Specifically of the PostgreSQL manual.

language agnostic - What's your longest-lasting bug that you created or encountered? -

What bug is that you created or encountered inadvertently which remained the longest unseen? How about this vulnerability was left unknowingly for 17 years: "drag-and-drop" vulnerability, which was permitted for remote code execution in IE, which was used for many years, is also "SMB" vulnerability, which ignored Microsoft 2000-2007 In both cases, Microsoft denied that the hackers would be happy for pw3n box of neglected windows There was a vulnerability on the field. Three of these are now patch

javascript - How can I determine/use $(this) in js callback script -

I am using Rail and jQuery, so that an AJAX call can be initiated by clicking on a link. I set up my application.js file to look like the proposed one and it works great. The problem I am facing is how can I use $ (this) in my saying .. to update the .js.erb file I clicked to represent the link? I do not have to assign an ID to every one, then compile that ID in the callback script. Edit To give a simple example of doing something like this I'm trying to (and more easy to understand): If a user clicks on a link, then removes that element from the list, the controller has to handle the callback, and the callback (here in question ) Will remove the element On principle I clicked, so the callback only $ (this) .fadeOut (in delete.js.erb); This is the reason I want to use $ (this) so that I do not assign an ID to every element (which will be the end of the world, more verbose markup) Application.js jQuery.ajaxSetup ({'Already before': function (xhr) {xhr.setReq...

iphone - How to set the text of a back button on a UINavigationBar? -

संभव डुप्लिकेट: स्थिति: मेरे पास एक UIViewController है जो एक नेविगेशन नियंत्रक द्वारा संचालित है I मैं बस self.title = @ "title" को कॉल करके UIViewController को कवर करते हुए नेविगेशन बार के शीर्षक सेट करने में सक्षम हूं। लेकिन, मैं नेविगेशन पट्टी के बैक बटन टेक्स्ट को सेट करने में सक्षम होना चाहता हूं (अलग-अलग भाषाओं के लिए एन 'जैसे ..) समस्या: मुझे नहीं पता कि वापस बटन के पाठ को कैसे सेट करना है। प्रश्न: मैं इसके पीछे के बटन को कैसे सेट करूं यूआईनेविगेशन पट्टी (प्रोग्राम आईबी में नहीं)? सेटटिटल मार्ग - यद्यपि काम लग सकता है, यह गलत है । यदि आप बारीकी से ध्यान देते हैं, तो आप देखेंगे कि नेविगेशन आइटम नए शीर्षक में बदल जाता है, जबकि नए दृश्य को पुश ViewController के माध्यम से देखने में एनिमेटेड किया जाता है। तथ्य यह है कि आपको अपने शीर्षक को देखने के लिए बहाल करना हैव्लैपीपीर कुल्डी है, जो इसके हैक प्रकृति का सुझाव देता है। सही तरीके से आपके पुश ViewController से पहले करना है: UIBarButtonItem * backButton = [[UIBarButtonItem alloc] i...