Posts

Showing posts from September, 2010

c# - Sorting by two columns with LINQ (Edited). Forget it! I'll post the answer to make things clear -

Hi my list that looks like this: val1 val2 r1 10 3 r2 5 5 r3 9 7 r4 4 r5 2 r6 1000 0 I need to get the line in which the two values ​​meet with their maximum example: < Pre> val1 val2 r1 10 3 can match any match both values ​​highe r2 5 5 any match can be more than two values ​​r3 9 7 MATCH val1 can be higher, but it lowers val2 and make viceversa r4 4 1 Both values ​​can be higher than r5 29 Any match val 2 your At the fourth, but val 1 can be more r6 1000 0 no match val1 is at its highest but val 2 could be higher In this case it is R3 Hope this time it is clear It is not clear what you are asking : 1) You do not want any pays that another pair is dominated by R. 2) You do not want items where val1 is maximum but val 2 can be high, and vice versa. 1 means that you want some pair on the upper edge of the set. 2 simply means that you abandon two endpoints it still leaves any possible number < / P> In the graph above, 2 points are strictl

c# - Validating Entries in an ASP.NET GridView without JavaScript -

background I have a gridView where in column 1 The input depends on input column 2 . If a user enters a , then Column2 will be in a system in code Column 1 . Assumptions are implemented using Regexs and custom verification. I like a verification solution that does not use JavaScript. | Column1 Column2. __________________ | | Y N __________________ | En | Y __________________ | En | N question How can I verify these entries in gridview without the use of JavaScript? "itemprop =" text "> You can use the radio button and the 'Template' column with a GridView feature. GridView markup will look like this: & lt; ASP: GridView id = "gvTest" runat = "server" AutoGenerateColumns = "false" OnRowDataBound = "gvTest_RowDataBound" & gt; & Lt; Columns & gt; & Lt; Asp: TemplateField Header Text = "Column 1" & gt; & Lt; ItemTemplate & gt; & Lt; ASP: R

html - Best practice for building a "Narrow your results" product filtering feature -

I am making the "narrow my results" feature and the best way to store the user's filter selection in that URL What is the practice that can be shared / bookmarked? The clear selection is to keep all the user's selection in the query string only. However, both of these examples, some are much more secret: Best Buy: http://www.bestbuy.com/site/olstemplatemapper.jsp?id=pcat17080&type= Page & amp; Cup = Krutktegoryid% 23% 23-1% 23% 23-1 ~~ q70726f63657373696e6774696d653a3e313930302d30312d3031 ~~ cabcat0500000% 23% 230% 23% 2311a ~~ cabcat0502000% 23% 230% 23% 23o ~~ nf518 || 24363030202d2024383939 & amp; List = y & amp; Nrp = 15 & amp; Sc = abComputerSP & amp; sp =% 2Bcurrentprice + skuid and usc = abcat0500000 It appears that they are telling a unique value for the search and are temporarily stored in their favor. Or maybe wrapping your DB ID into a bunch of garbage because they believe in security through ambiguity? Is there some in

synchronization - Mobilink error with Syncing to Production Oracle DB Options -

OK, this is the scenario. We have two developers who use the Developer version of Mobilink to sync in an integrated Oracle database using SqlAnywhere. MOBILINK VERSION Version 11.0.1.2331 Everything works well in two development environments. A Dev environment is Windows 7 x64 and Oracle 11g r1. Second xp x86 and oracle 10g2. Both work is fine and sync with the replication of the production database (took a dump file from the production server) We are now in beta state and are trying to set up sync And it remains unsuccessful. Beta environment "SQL is using anywhere Mobilink Server version 11.0.1.2044" and it's running on Windows 2003 x64. Looking at error logs on PDAs and the server confirms that the user is getting certified and that synchronization is starting, but it breaks at the same point every time. Below are some additional details from the log. I 2009-12-04 13:30:38 & lt; 1> End_download_oroz G_INV_LOCATION_DESC (no script) I 2009-12-04 13:30:3

java - Hibernate: find duplicates -

Assume that I have a lower Groovy class (or equivalent in Java) class User {long ID string name} I would like to write the hibernate query (either HQL or benchmark) which gives at least one user all users with the same name. Update The following query has been suggested Choose the minimum user (user.id), user users Username Username group grouping (user.name) & gt; However, there are some problems with this: This does not actually return user objects, only their ID and name If there are 3 users of the same name, it will only return the ID of one of them, while I want all 3 This will not work on MySQL, which is RDBMS I. Thank you, Don I will try something like this: / P> select minimum (user.id), user.name user.name From user.name count count (user.name) & gt; According to 1 , SQL functions and consolidated tasks are allowed by the clause and in sequence if they are supported by the underlying database (i.e., not in MySQL). Edit Edit

.net - ASP.NET membership providers in non-web apps? -

Does anyone know if it is using a ASP.NET subscription (and role) provider in a non-web app? Is possible (i.e. a desktop c # in)? Related questions - There is an LDAP subscription provider (it looks like SharePoint has one, but I do not think it is similar to ASP.NET provider). I'm sure the Active Directory is probably close, but I'm not sure whether it will work against Novell or Sun's LDAP servers. Thanks I have spoken the same thing and VS After doing some research in 2008. I can understand the ASPNET membership and role provider by using CAS, although I have not tried it yet. Here are some references that are useful:

django - String causes rendering exception with utf-8 defined -

One of my template tags should return a list of links; Most of the elements get their name from the database with the exception of one, which I am harsh because it will change at any time. lista_menu = '& lt; Ul class = "menu" & gt; \ N \ & lt; Li & gt; & Lt; A href = "'+ + reverse (' profilelogo ', args = (s_loja,)) +'" & gt; '+ \ Loja.nome.title () +' & lt; / A & gt; & Lt; / Li & gt; \ N & lt; Li & gt; & Lt; A href = "'+ + reverse (' index ', arg = (s_loja,)) + \'" & gt; '+' Pagina Principal '+' & lt; / A & gt; & Lt; / Li & gt; The string 'Pagina Principal' causes the following error: An exception was caught in TemplateSyntaxError rendering: ('ASCI', 'P \ xc3 \ Xa1gina principal ', 1, 2,' sequentially not in bounds (128) ') > If I define the string as Unicode (Eupagina .. . '

jquery - lock the region list? -

I have 2 lists. Country and Region I want to lock the area list when I select the country, then I will use jquery to get the area list for that country. But by then, I want to lock the area list and it will be interactive for the first time to get back the area list of that country. How do I do this with jquery? Your question is a bit unclear, but it seems that you want to disable a drop-down list Are there. If this happens, you can try it. // Disabled code: $ ('select # area'). Attri ('disabled', 'disabled'); // Enable the code: $ (select '# field'). RemoveAttr ('disabled');

python - Django Delete all but last five of queryset -

मेरे पास एक सुपर सरल डीजेन्गो मॉडल है: वर्ग अधिसूचना (मॉडल.मॉडेल) : Message = models.TextField () user = models.ForeignKey (उपयोगकर्ता) टाइमस्टैंप = मॉडल.डेटाइमफिल्ड (डिफ़ॉल्ट = datetime.datetime.now) AJAX का उपयोग करना, मैं हर नए संदेशों की जांच करता हूं मिनट। मैं किसी भी समय उपयोगकर्ता के लिए पांच सबसे हाल की सूचनाएं दिखाता हूं। मैं क्या बचने का प्रयास कर रहा हूं, यह परिदृश्य है। उपयोगकर्ता लॉग इन करता है और इसमें कोई सूचना नहीं है जब उपयोगकर्ता की विंडो ऊपर है, तो उसे 10 नए संदेश प्राप्त होते हैं। चूंकि मैं केवल उसे पांच दिखा रहा हूँ, कोई बड़ी बात नहीं है समस्या तब होती है जब उपयोगकर्ता उसकी नोटिफिकेशन को हटाना शुरू कर देता है अगर वह प्रदर्शित होने वाले पांच को हटा देता है, तो पांच पुराने लोगों को अगले एजेक्स कॉल या रीफ्रेश पर प्रदर्शित किया जाएगा। मैं अपने मॉडल की सहेजने की पद्धति को सब कुछ हटाना चाहूंगा, लेकिन 5 सबसे हाल की वस्तुओं को हटा दिया जाएगा एक नया बचा है दुर्भाग्य से, आप ऐसा करने के लिए [5:] का उपयोग नहीं कर सकते। संपादित करें मैंने ऐसा करने की कोशिश क

itemspanel - Weird ItemsPanelTemplate issue (possible Silverlight bug?) -

I am trying to create a horizontally oriented stack panel with a vertical oriented The item's stack panel is my code here. The first XAML & lt; UserControl x: Class = "SilverlightApplication1.MainPage" xmlns = "http: // Schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns: x = "http://schemas.microsoft.com/winfx/2006/ Xaml "xmlns: d =" http://schemas.microsoft.com/ expression / mix / 2008 "xmlns: mc =" http://schemas.openxmlformats.org/markup-compatibility/2006 "& gt; & Lt; UserControl.Resources & gt; & Lt; DataTemplate x: key = "squirumplate" & gt; & Lt; Border margin = "2" background = "blue" width = "80" height = "80" /> & Lt; / DataTemplate & gt; & Lt; Datamapplet X: Key = "Wertilyt Eatam Template" & gt; & Lt; Items Controlled Items Source = "{Binding}" item template = "{static resourc

Migrating from Drupal to Rails - Routing -

I have developed a new ruby ​​on the rail site for my organization. I want the new railway site Should be stopped, which were created for the old site and display a message to the user, indicating that the new site has been launched, there is a new URL link which they were trying to get the most, and a reminder Update Bookmarks So I Ray I of color when they come to train I'm asking how you will do. Is there a railway route? These are my thoughts so far. The old site does not use a clean URL, so every request goes to the default route, in the new site that the controller with a query string was thinking in the controller that I I can check if the parameters [: q] is set and then depending on what the q parameter is, it is up to the user to search and submit an information page to give new instructions contact. If the q parameter does not mean (I do not care about catching every page on the old site, only important people are) redirecting to the custom 404 page, the user

.net - Can I force memory cleanup in C#? -

I've heard that C # still does not free up memory even if you did it with it. Can I force C # to free the memory? I am using Visual Studio 2008 Express. Is this the case? P.S. I do not have problems with C # and this is how I manage memory I'm just curious. Jim, You've heard it correctly through a system Periodically clears the memory, which is called garbage collector. You can "force" the garbage collection through a call like the call below. GC Compiler (); I strongly advise you to read. Edit 1: "Force" was in the quote to be more clear in the form of another poster, it really only suggests that you can not actually do this at a specific point on time. . Therefore link to article on garbage collection. Edit in the net Edit 2: I realized that everyone here has been directly answered to your main question. The use of the Visual Studio 2008 Express for your secondary question will still use the net framework, which does the garbage

php - Mocking raw POST data -

I am writing cases of PHPUnit testing for a web application. As the tests run in a command line environment, I am joking about several predefined variables such as $ _ POST , $ _ GET , $ _ server < / Strong>, etc. My test is to ensure that my controller class reads properly JSON input (which is sent as raw via POST POST and php: // input ). The question is, how can I manipulate the value of php: // input without running a web server? Post data, whatever is fed to stdin of PHP, tells CONTENT_LENGTH PHP on the environment variable to read how many bytes are I to read (so to change the post data, you just pipe in some different) GET data is in the QUERY_STRING environment variable. Look for other environment variables is useful for using PHP to populate things like $ _SERVER

jQuery ui.draggable event/status on revert -

What is a way to get information if the dragable element has been returned? I'm stuck on this I want to make an element eligible to drop again, but only if there is a lie that goes away somewhere else (which does not make sense). It seems that it is not supported for the jQuery UI so you can add it like this: < / P> $ Ui.draggable.prototype._mouseStop = function event) {// If we are using droppables, inform the manager about drop down var = false; If ($ .ui.ddmanager & amp;! This.options.dropBehaviour) = $ .ui.ddmanager.drop dropped (this, incident); // If a drop comes from outside (a sorted) if (this.dropped) {dropped = this.dropped; This.dropped = false; } If ((this.options.revert == "invalid" & dropped) || (this.options.revert == "valid" and left & amp; amp; amp; amp; amp; amp; amp; amp; This.options.revert === True || ($ .isfunction (this.options.revert) & amp; amp; this.options.revert.call (this.ment, dropped)) {var self =

java - Making a generic parameterized type of anything -

So I'm trying to create a parameter type which will work for any type of Java in it, It is an object, and this type of old type is OK, suppose I want a primitive goal for each, so its for (int i: MyClass) Is such a thing possible? Your comment on Bozho's answer is going on, you probably want to do something like this: / P> Interface MyInterface & lt; T & gt; Offers exchange & lt; T & gt; {} And no, you can not do this for primitive types, you can simulate an iterator for a primitive type, but it will never really be worth it, as Usable in each loop is usable.

static analysis - In C macros, should one prefer do { ... } while(0,0) over do { ... } while(0)? -

A customer recently analyzed the statistical analysis of his employer's C codebase and gave us results. Between the useful patch, the famous macro was requested to change the do {...} (0,0) . I understand what their patches are doing (evaluate the value of the second "0" to evaluate the sequence operator return , the effect is the same), but it is not clear if they Why will it be in favor of the party Is there any valid reason that the second form of macro should be preferred, or does our client's static analysis be highly endangered? Well, I will go for an answer: Is there a legitimate reason that any other form should prefer the macro ...? There is no valid reason why both of them always evaluate false, and any decent compiler will probably change the second one in the assembly for the first time. If in some cases there was a reason for it being invalid, then C. has been there for a long time to discover more than me from the gurus. If you like

debugging - How do I print an array in Java's jdb debugger? -

How do I print values ​​of byte array at a time? I am reminded that I can specify memory range in GDB. Is similar functionality available in jdb? I have a Java byte array: byte [] decompressed = new byte [OUTPUT_FILE_IO_BUFFER_SIZE]; Which I populate with a string: System ArrayCopy (deccpricated stringing.getbites), 0, Decompressed, 0, Decompressed string. Lamps ()); In jdb, I want to print the contents of the byte array I tried main [1] uncompressed print which gives: example of decompressed = byte [7] (id = 342) A solution: dump uncompressed This byte values ​​are covered! :)

WPF sluggish rendering/animation performance? -

I'm trying to animate about 1000 lines that have been added to all the canvas, and to expand it It is very slow that the animation is not possible at all. At first I thought that it might be due to all the calculations, but then I tried a very simple experiment. I generated approximately 1000 random lines and I tried to move them in new random coordinates using PointAnimations. I basically ran this program on every combination of OS / hardware, which I could find and I could not get more than 4 seconds of frames. The source (and a bit more info) can be found in Has anyone found any solutions to this? Is it really too much to ask WPF? How do I handle such a situation here Do, just repaint the whole collection, but paint it in bitmap , and then block-move the view window. If you directly jump directly to 1000 windows, it can take 10-100ms, and you will probably see flashing. But if you paint on the memory bitmap, then it will probably take about that time, but it will n

How to let users add multiple tags using PHP and MySQL? -

OK, so I already have a script to let users enter the tag, but I enter many tags to users For example, a comma, for example, (html, css, php) and store each tag in the database Is there a tutorial that will show me this How can I do this or someone can give me some examples of what I can do O Thanks Assume a schema like this: post (id, author_id, post_date, post_text); Tag (id, tag_name); Post tag (id, post_id, tag_id). Post tag table for multiple-to-many relationships to be posted by tag> joining table (because a post can contain several tags And a tag can be used on many posts). The user enters a list of comma tags in an input field: $ tag = array_nank (array_map (',', $ POST [ 'Tags']), 'trim');) And you have an array of tags that the user has entered. You can allow them to convert in some more letters and / or convert them to lowercase. Then your code goes: $ post_id = ... foreach ($ tattoos $ tag) {$ tag = mysql_re

Appropriate operators for assignment semantics in a non-pure declarative language -

I am preparing a declarative language to define the signal network to represent the group of nodes in the network I want to use variable binding. It happened to me that there are two types of "assignment", which I want to do for these variables. On one side, the output of a specific group should represent one variable, this output of the signal operator can then be connected to another input. It is important for different output directives at different places, for example: a, b, c = (signal with three outputs) (signal bea) (signal c) (Signal D) In this case, there will be a signal A with three outputs, where the first and third outputs are connected to signal B and signal C respectively, and before Signal signal A Are connected to the output. The only a example of Signal A is On the other hand, a variable should represent the normal pattern of the signal operation, so that it is easy to regenerate a normal configuration. a = (signal A (signal B)) (signal

c# - Why do I only see the last value from a List in my RichTextBox? -

Why is this code only outputing an element from the list? Private Zero Button 3_Click (Object Sender, EventAgages E) {Task dozontitis = New DOSOMING (); Dosomething.calculate (); Fortate (float number dozzo. Display ()) {richTextBox1.Text = num.ToString (); }} Where dosomething.Display () return a list richTextBox1.Text = = num.ToString (); What you are doing, only the very last item will be displayed. There will be a better way to use stringbuilder stringbilder sb = new stringbilder (); Forbidden (Float number dojoeming display). {Sb.Append (num.ToString () + Environment.NewLine); } RichTextBox1.Text = sb.ToString ();

vim - How to make vimgrep do word match search? -

I have the following meaning mapped F3 to vimgrep for the word under the current cursor in the _vimrc file. Maps & lt; F3 & gt; : "Nototcommed vimgrep /" Execute Expansion ("<"> Cword & gt; ")" / gJ ** / *. " . Expansion ("%: e") & lt; Bars & gt; CW & LT; CR & gt; Now, I want to create vimgrep for the exact word match for the word under the current cursor. I changed it to the bottom but it does not work. Map & lt; Leader & gt; S: "noautocmd vimgrep / \ & lt; extension. (" Anything wrong? How do I find a word match? The problem is that you have to repeat the backslash - a single Backslash will escape the next character, and if the character has no special meaning then the backslash is removed. E.g. echo "\ < Print It works fine: Map Factor: Execute "noautocmd vimgrep / \\ & lt;" extension ("& lt; cword & gt;") &

sql - Need help to solve query (using datepart) -

Select - reduce the second, millisecond part of the minute, effectively round on the floor of the floor. Example '2017-03-17T14: 31: 25.567' gets '2017-03-17T14: 00: 00.000' DATEAD (mi, -1 * (DATEPART (mi, tab.lindt %% 60), DATEADD (SS, -1 * (DATEPART (ss, tab.logindt)), DATEADD (ms, -1 * (DATEPART (ms, tab.logindt)), tab.logindt))) as "date", COUNT (*) In the form the "Calculation" from the TableName tab WHERE tab.Lindt 'Date 1 2009 12:00 AM' and '2 December 2009 23:59 PM' by Group until DATEAD (miles, -1 * (DATEPART (miles, tab) .lindt)% 60, DATEADD (Ss, -1 * (DATEPART (ss, tab.logindt)), DATEADD (MS, -1 * (DATEPART (MS, tab.logindt)), Tab.Lindt))) < / Code> We have an application in which many people are logged in, the problem is that I want to create a query through which I can get the number of people logged into the system on a system Cull time can be counted 10 am / 11/12/14 Using the datepart above the query, t

java - does ejb commits on connection? -

I am using session bean in my application and the transaction is controlled only on the EJB layer. The problem I am facing is something committed. I am using the same connection used by EJB to include in a table, but if the transaction is committed then it is not included in the database. I can help with a problem. I am not an EJB specialist, I usually Working with plain old Java objects, but ... What is your problem with this fact that EJB does not manage transactions at the level of the connection? They use the Java transaction service to create transactions which can use multiple connections. Therefore, in order to be part of EJB's transaction, you have to obtain that transaction from the included transaction server and make your own inclusion part of that transaction. I believe how you do this, it really depends on what type of EJB environment you have (EJB 2 or 3 and so on) But if your EJB is in the environment and EJB wants to put stuff into a single transaction,

What exactly is the difference between the Dreamhost IDE and Netbeans? -

I just started using Netbeans a week ago, and in fact it is like this far. Now I'm seeing something about the Dreamhost IDE which I think is a program that is built using the Netbeans platform. What are the benefits of using Dreamhost IDE on Netbeans I use Dreamhost as hosting company for many of my projects? The documentation on the software does not exist from what I can tell (which is also not mentioned in Dreamhost Wiki). All I wanted to get was a brief description on the sourceforge download page, and I found a small silent video on YouTube that showed it. So I think I am asking, is this what is brought to the table, and what is the difference between Netbeans and this? The description on the Source Forge page is as follows (Typo is maintained) ... The PHP and Ruby built on the Dreamhost IDE Netbeans IDE is the integrated development environment and Dreamhost makes your applications easy to deploy Provides an easy way to set up these services too. Maybe the answer

Why is it important to load a JS framework from Google's AJAX Libraries API? -

I remember to remember that instead of being used locally, loading JS structures from Google's AJAX Library API Better means that:

c# - Routes MVC Problem -

I have read a lot, and I do not see my head. Could some body help me please My global. ASX Public static zero register routes {routes.IgnoreRoute ("{resource} .axd / {* pathInfo}"); New {controller = "home", action = "index", id = ""} with routes ("default", // root name "{controller} / {action} / {id}", // URL parameter / Parameter defaults); Routes.MapRoute ("user name", "account / {action} / {username}", new {action = "EditProfile", administrator = "account"}); } Protected Zero application_Start () {RegisterRout (RouteTable.Rout); } When I & lt;% = Html.ActionLink ("edit account", "edit profiles", "account", new {username} = Html.Encode (Page.User Identification.Name)}, Faucet)%> I did not get the job If I tried to call the URL directly as . My method is in my AccountController public ActionResult EditProfile (String

optimization - What's the name of the problem that relates to optimizing closures on a stack-based system? -

I remember to hear about a general optimization problem that is related to the function closure, and stating that normally It is difficult to optimize the construction of one stop using only stack-based memory management. Do any of you remember the name of this optimization problem, perhaps with an example or a link to the relevant page? It sounds like you're thinking.

wordpress - PHP regex expression for the following -

& lt; p & gt; यह एक डीबग पृष्ठ के रूप में काम करेगा। & Lt; / p & gt; & Lt; p & gt; & lt; img src = "http://mattmueller.me/blog/wp-content/uploads/2009/12/threadless.png" alt = "थ्रेडलेस" शीर्षक = "थ्रेडलेस" चौड़ाई = "650" ऊंचाई = "150" वर्ग = "अलिग्नोन आकार-पूर्ण wp-image-73" / & gt; & lt; / p & gt; & Lt; p & gt; यह डीबग पृष्ठ के रूप में काम करेगा। & Lt; / p & gt; & Lt; img src = "http://mattmueller.me/blog/wp-content/uploads/2009/12/threadless.png" alt = "थ्रेडलेस" शीर्षक = "थ्रेडलेस" चौड़ाई = "650" ऊंचाई = "150" वर्ग = "अलाइग्नोन आकार-पूर्ण wp-image-73" / & gt; आप देखेंगे कि छवि टैग के आस-पास कोई & lt; p & gt; टैग नहीं है मुझे यह पसंद है कि छवियों को लपेटने वाले & lt; p & gt; टैग को हटाने के लिए WordPress परेशान है .. अनिवार्य रूप से। अगर इसकी एक str_replace या कुछ के साथ आ

Return in Objective-C -

What is the use of returning the integer for the main in the objective-programs. I accept the same as C programs Return value is useful when you run an application from the command line So it indicates whether it has failed or not. Most commands in the shell indicate that you can then create a shell script and run your app, check the return value, and do something based on it. C was originally created to write operating systems like Unix. For example, Linux / Unix utility like ls command: & gt; Ls bla1 bla2 & gt; $ Echo? 0 & gt; Ls bla3 / bin / ls: bla3: Any such file or directory & gt; $ Echo? 1 Now you can use the return value in the shell script.

JavaScript to retrieve value from grid -

संरक्षित शून्य ग्रिड लेजर_रॉडेटाबाउंड (ऑब्जेक्ट प्रेषक, ग्रिडव्वूरूवएवेंटएरग्स ई) {if (ई। राउ। रॉ टाइप करें == डाटा कंट्रोलरव टाईप.डाटारोव ) (ई.रो.ऍटिवेट्स.एड ("ऑन-माउसडाउन", "वेर्र स्ट्रेट = डॉक्यूमेंट। गेट एलेमेंटबीआईआईडी ('" + ई.रॉ। क्लाइंटआईडी + "')। सील्स [0] .इनरीटेक्स्ट; डॉक्यूमेंट। गेट एलेमेंटबीआईआईडी ('& lt;% = TextBox1.ClientID% & gt; ')। Value = str; "); }} मैंने एक rowdattound घटना को बुलाया है जिसमें मैं इस तरह एक स्क्रिप्ट का उपयोग कर रहा हूं। मुझे त्रुटि मिलती है: वस्तु तत्व नहीं मिला है या नहीं कृपया मेरी मदद करें। < Div class = "post-text" itemprop = "text"> मैं आपको अपने जीवन को बहुत आसान बनाने के लिए jQuery पुस्तकालय या किसी अन्य जावास्क्रिप्ट रूपरेखा का उपयोग करने की सलाह देता हूं। यह त्रुटियाँ मुझे पता है कि आप या तो ऑब्जेक्ट नहीं ढूंढ सकते हैं जो आप ढूंढ रहे हैं या संपत्ति की कोशिका मौजूद नहीं हैं I यह ब्राउज़र से ब्राउज़र में भी भिन्न हो सकता है ... अपने जेनरेट

Python: Continuing to next iteration in outer loop -

I wanted to know that in Python there are no built-in ways to continue the next recurrence in the external loop, for example, code Consider: in range (200): For JS range (200, 400): ... block0 ... if anything: Continue ... block1 ... < / Code> I want to issue a statement that JG should exit the loop and ii get the next item in the loop. I can apply this argument in some other way (by setting a flag variable), but is there an easy way to do this, or is it like asking too much? for ... In the ...: If something: #Loop i In a typical case, when you have more than one level of looping and break your (Because you want to continue one of the upper extremities, not right above the current one), you can do one of the following To avoid a function, Want to refine the loops def internal (): For Jammu: For: In: ... if something: I return in ...: Internal () The disadvantage is that You can make that new function some variable, which was already in the area, you ca

javascript - jQuery check if onClick exists on element -

I found the way but it does not work on events that have not been delegated by jQuery ... < / P> When I try, $ ("a"). Data ("events"); For this. & lt; A href = "#" onClick = "warning ('hello, world!')" / & Gt; It's essentially back. Is there any way to check that elements with onClick exist with jQuery? Thank you. You can do this: if ($ (' A '). Attr ("onClick")! = Undefined) {} ​​

flash - is it possiable to use conditional operator in combo box dataprovider using flex? -

Text after " In my combo box, I have the name of the show team based on this condition. Then I will try the way dataProvider = "{usersXML.users.user. (Id = 10) .name}" but indicates some errors. But if I tried to dataProvider = "{usersXML.users.user.name}" display all names. It is working. How can I bet to display the list of plazas in Cambodia? I have to check the array of ID on this possiable dataProvider? I think the wrong way you are going about it You have tried something like this: [Bindable] TARGETLIST: XMLList function setID (id: integer): zero {var tmpList:. XMLList = usersXML.users.user (@ id = = ID); If (tmpList & amp; amp; tmpList.length () & amp; amp; tmpList @ name.toXMLString () Length) {TARGETLIST = tmpList}} Set up the ID using the above, then you can run the test to make sure that the user ID and proper name attribute are certainly present in this case. To indicate XML to this object: & lt; Mx: Combobo

java - Concat over '+' operator for string concatenation -

स्ट्रिंग आज = ​​कुछ SimpleDateFormat.format (नया दिनांक ()); कैलेंडर सहीनहीं = कैलेंडर.एस्ट इन्स्टेंस (); Int hour = rightNow.get (कैलेंडर। HOUR_OF_DAY); Int मिनट = rightNow.get (कैलेंडर.एमआईएनयूटीई); स्ट्रिंग घंटा स्ट्रिंग = स्ट्रिंग.वल्यूएफ़ (घंटा); स्ट्रिंग मिनटस्ट्रिंग = स्ट्रिंग.वल्यूएफ़ (मिनट); यदि (hourString.length () == 1) {hourString = '0'.concat (घंटा स्ट्रिंग); } अगर (मिनटस्ट्रिंग. लैंघ () == 1) {मिनटस्ट्रिंग = '0' .concat (मिनटस्ट्रिंग); } स्ट्रिंग डेहोर मिनिट = आज.कॉकेट ("_")। कॉन्सैट (घंटा स्ट्रिंग) .concat ("_")। कॉन्सैट (मिनिस्टस्ट्रिंग); मैं '+' ऑपरेटर का इस्तेमाल कर सकता था। क्या प्रोग्राम में कोई स्ट्रिंग कन्टेनटाइनेशन है और मैं 'कॉन्सैट' विधि या वाइसवर्सा पर '+' ऑपरेटर का उपयोग करता / करती हूं? किसी भी तरह से आप बहुत अनावश्यक अस्थायी बना रहे होंगे स्ट्रिंग s इसके बजाय प्रयोग करने की सशक्त रूप से सिफारिश करें। जब आप + ऑपरेटर का उपयोग करते हैं, तो संकलक वास्तव में अस्थायी StringBuilder उदा

Can I use rrdtool with Perl to make graphs from CSV files? -

नीचे मेरे सीएसवी फ़ाइल में नमूना डेटा प्रारूप है। तिथि, & lt; options & gt ; YYYY-MM-DD & lt; मूल्यों & gt; हर अगली सुबह इस सीएसवी फ़ाइल को अगली तारीख मानों के साथ अपडेट कर दिया गया है। क्या मैं ग्राफ़ को बनाने के लिए rrdtool का उपयोग कर सकता हूं, और यदि ऐसा है तो कैसे? देखो - बनाने के लिए सरल इंटरफ़ेस और आरआरडी फाइलों में डेटा स्टोर करें और देखें - आरआरडी :: सरल का इस्तेमाल करते हुए उदाहरण

javascript - Testing for parent window protocol in Opera -

I am trying to find out the protocol used by an original window in a child window. If I use window.opener.location.protocol, then it works in everything (IE8, FF3.5.5, Safari 4.0.0, Chrome 4) except Opera. In Opera: Message: Security Error: Attempted to read Protected Variable 'Protocol' It worked fine in Opera, but I It seems that he changed it. I'm using Opera 10.10. Is there any way to test the protocol, or even to determine whether the parent window is the same place and protocol as a child? You should get an error when the protocol is different. In other words: var is parentSecure; Try {isParentSecure = window.opener.location.protocol === 'https'; Hold (e) {isParentSecure = window.location.protocol! == 'https'; } I have not actually tested it.

Writing to a Text File (PHP) -

I know this question is probably straightforward but I'm new to PHP and programming ... I want to write the results I'm looking for a recursive search for a text file and also to make sure that no other search will overwrite the executed data, but add to it. Here's my code: & lt ;? Php $ it = new recurring directoryererator ("L: \ folder \ folder \ folder"); $ Display = Array ('JPG', 'JPG', 'TIF', 'TIFF', 'BMP', 'SPP', 'GIF', 'PNG'); Foreach (New recursive iterator iterator $ $ as file) {If (In_Array (SubStr ($ file, StrrPos ($ file, '.') + 1), $ display) {$ true} {echo $ file " So instead of resonating the result, I would like to write it in a text file as well, if If this is possible, resonate the result and write it in a text file. Plz let me know that I can add the code to get this thank you :) Efforts to: & lt ;? Php $ it = new recurring directoryererator

.net - Is it safe to use an Events with ThreadPool.RegisterWaitForSingleObject? -

Document To use a mutation for waitObject, Exclusion does not provide callback because the built-in Win32 API uses the default WT_EXECUTEDEFAULT flag, so each callback is sent to a different thread pool thread. Instead of a muteuse, use a semaphore with the maximum number of 1. and (in the document for WaitHandle logic) it says use one < / P> It seems that it is safe to use an event - what is it? Will there be any difference in using AutoResetEvent and a ManualResetEvent? Events are okay I think I've used events with this method any time. Auto vs manual reset events, only say that the end result of the waiting affects the object: The function modifies the state of some type of synchronization object. Modification for objects or objects only occurs when the signal state returned the function. Manual reset event never changes the state until you do it properly, okay, manually; I hope that an auto reset event is only for resetting myself, if it

.net - wcf net.p2p:// - does this work over the internet? -

Does the net.p2p protocol allow peer to connect through internet (net, firewall, etc)? I think PNRP tells this address (if it is okay to use your IPv6) but can it be done while using custom resolvers? That is: When a peer does the registers in the cloud, does it take back Net P2P: // MIPSCN / EndPoint or give Resolver / PNRP something that allows PCs behind the firewall? IM is a very difficult time finding NIT's P2P solution - and good information about its very old. Does anyone know if this is a viable technique or something that comes out of the net. -Edit- My Resolver will be available publicly, colleagues are behind NAT / Firewall. Thanks in advance: -) This is all on the document Use Microsoft's Peer Name Resolution Protocol which uses the Teredo Tunnel to solve the IP 6 / IP4 access problem. Or write your own Custom Pier Reseller Service (which is easy to do)

css selectors - Use JQuery to wrap multiple sets of elements in a Div -

I'm working on a drop-down menu and changing existing HTML markup with JQuery to enable it to be designed. Will happen. / P> Here is a simplified example: Wrap all "ul", in which there can be more than one "li" in a div (no div for each UL in the same div). & lt; Ul & gt; & Lt; Li & gt; Foo & lt; / Li & gt; & Lt; / Ul & gt; & Lt; Ul & gt; & Lt; Li & gt; Foo & lt; / Li & gt; & Lt; Li & gt; Foo & lt; / Li & gt; & Lt; / Ul & gt; & Lt; Ul & gt; & Lt; Li & gt; Foo & lt; / Li & gt; & Lt; Li & gt; Foo & lt; / Li & gt; & Lt; / Ul & gt; & Lt; Script src = "http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js" & gt; & Lt; / Script & gt; & Lt; Script & gt; My_selection = []; I = 0; // There is more than one Li ("ul") which is near all ul. Each (function () (if ($ (this) .find ("

User space access from Kernel space - get_user_pages -

I have to pass an indicator with a user location memory in the function in a kernel module, I copy_from_user Do not want to use. I have read that I should use the get_user_pages function. For example a page. struct page ** page; Pages = kmolek (1 * size (* page), GFP_KERNL); Down_read (& amp; current-> mm- & gt; mmap_sem); Get_user_pages (current, present-> mm, UADR, 1, 1, 0, pages, faucets); Up_read (& amp; current-> mm- & gt; mmap_sem); uaddr is an address in the user space. After doing this, I have permission to enter and pass Uaddr in my kernel module function? Or maybe I have to use these struct pages in any way? Why use me to read / down? I have everything after SetPageDirty () and page_cache_release () functions It is not for get_user_pages to use uaddr ). If you do not want to call copy_from_user in the calling function, simply pass a zero __user * in your module function and Do this to copy_from_user .

flex - dynamically generate ComboBox name -

I have a script that parses some complex XML when the XML element is of a certain type, then this box Creates a combo box using the XML element to populate. Then I want to see all the values ​​of all the generated comboboxes for their correct answers (which is also the information stored in the XML file). While creating ComboBoxes, I added an "id" property though, it seems that I can not use them: Dynamic Query.ID.Satched item.Labelfield To check the answers. However, I'm able to get the Label field if I know the name of the variable used to create the combo box. dynamicQuestion.selectedItem.labelField This indicates (me) that I need to dynamically generate variable names because I am new to comboboxes I'm creating examples. But how do I dynamically generate a variable name? If I use var this string: string = "box" + boxcount; Var newbox: combo box = this box as combo box; I get an underlying rape error. I also tried to change the creation

css - how to make three inside divs the same height? -

I have a container div # content, in which three divs are now, how can I make sure that the three inside Divs have the same height? Of course, I hope the height of each division can be expanded according to its content. For example: Whatever I have tried here & amp ;;; Doctype html public "- // w3c // dtd html 4.0 transitional // en" & gt; & Lt; Html & gt; & Lt; Top & gt; & Lt; Title & gt; & Lt; / Title & gt; & Lt; Style type = "text / css" & gt; #Content {Background color: #DDDDD, width: 100%; Overflow: automatic, clear: both: height: 100%;} # color 1 {background color: yellow; Width: 10%; Float: left; Height: 100%;} # Col2 {background color: red; Width: 30%; Float: left; Height: 100%;} # cola3 {background-color: # aaaaaaa; Width: 10%; Float: left ;; Height: 100%;} & lt; / Style & gt; & Lt; / Head & gt; & Lt; Body & gt; & Lt; Div id = "content" & gt; & Lt; Div id =

c++ - GCC Compiler Warning: extended initializer lists only available with c++0x -

इस सदस्य के आरम्भिकरण का उपयोग करना ... स्टैटस्की :: स्टेटस स्क्रीन (गेमस्टेट :: स्टेट स्तर): एम_ लेवल (स्तर) {... //} मुझे निम्नलिखित चेतावनी मिलती है ... विस्तारित प्रारंभिक सूची केवल साथ उपलब्ध है - Std = c ++ 0x या -std = gnu ++ 0x इस चेतावनी के बारे में कोई भी जानकारी? संपादित करें: सदस्य के एक सदस्य को हटाने के बाद चेतावनी चली गई जिसे कंस्ट्रक्टर के भीतर एक मूल्य के लिए सौंपा गया था (सदस्य प्रारंभ के माध्यम से नहीं किया जा सकता है) और यह एक क्लास सदस्य के बजाय एक स्थानीय चर बना दिया। फिर भी यह जानना चाहते हैं कि चेतावनियों का मतलब क्या है। मुझे लगता है कि आप वस्तु को आरंभ कर रहे हैं {...} के बजाय (...) : स्टैट्सस्क्रीन एसएस {...}; // केवल C ++ 0x स्टैट्सस्क्रीन एसएस (...) में उपलब्ध है; // OK में C ++ 98 अपने कोड को सी ++ 0x कोड के रूप में संकलित करने के लिए, संकलन करते समय केवल निम्नलिखित फ्लैग जोड़ें: जी ++ परीक्षण .cpp -std = c ++ 0x

asp.net - Gridview CSS borders inconsistent -

This is actually annoying me. I am using a gridview and want to format it in such a way that all Borders are displayed in browsers only. Right now, I'm changing the result between IE, FF and Chrome. I'm not sure what I'm doing wrong in my CSS (I am quite new to CSS), but something should be right because at any time the browser displays the boundaries correctly at any time. Gridview CSS is as follows: .gridViewData {height: auto; Width: 544px; Status: Relative; Text-align: center; Background color: # 7D9EBA; Border: solid thin black; Boundary-right: no 0 px black; } .gridViewData td {padding: 2px; Border-top-style: none; Border-bottom-style: solid; Border-left-style: solid; Border-right-style: none; Border-color: black; Border-width: thin; } .gridViewData th {height: 10px; Width: 544px; Status: Relative; Text-align: center; Border-top-style: dashed; Border-bottom-style: solid; Border-left-style: solid; Border-right-style: none; Border-color: black; Border-width: thin

jquery - How to move an <option> up down in a <select>? -

मैं jQuery का उपयोग कर रहा हूं। यह स्पष्ट रूप से दर्शाता है कि आइटम को ऊपर और नीचे कैसे स्थानांतरित किया जाए। यह टेबल पर किया गया है, लेकिन सूचियों के लिए समान रूप से आसानी से लागू होता है और चयन करता है।

Lock row in grid in extjs -

एक विशिष्ट पंक्ति को extjs में लॉक कैसे करें। एक तरफ क्लिक ईवेंट (या अन्य उचित घटना) को संभालना है, चयनित पंक्ति का निर्धारण करें, और यदि पंक्ति" लॉक "है तो तत्काल वापस लौटें। पंक्ति चयन मेदेल भी पंक्ति को सक्रिय करता है चुने हुए इवेंट; जैसा कि इस फोरम में अन्य लोगों ने बताया है, इस इवेंट को एक कुंजीपटल पंक्ति चयन या माउस पंक्ति चयन के लिए निकाल दिया गया है।

tortoisesvn - SVN Noob: quick summary of how to use it? -

[For those with whom the house is not at home, this is the sequel;)] So I put in TortoiseSVN and installed (to work with a friend on a project, my personal version control is alive, okay, and I have to do this work). Before anyone ever used graverly before, somebody could briefly explain to me (a link) and how to use them, and before I could work on another project with another user Should also know? I have seen and I will definitely read it, although I am looking for some "cheat sheet" or maybe the effect of being a little bigger. I forgot to mention, I'm on windows. Set up your repository with something: / tags / branch The latest version of your code is a version in Tags -Write or create tag in the named folder (consider this for read only) Branch release in one version - named folder in branch (These are written bugfixes There are branches) Tags / Branches New Revisio For those of us who are not committed to using additional space, N

What jetty jar should I use? -

I want to create an application using the embedded version of Jetty. Unfortunately, I am not getting any information about the information that I need for jar files which I have to do. There are many in the Maven repository () but what is the difference between JT-Server, JetT-Server-Sub, and JetT-WebEp? Do any of these I want for embedded access cases? This document is essential for JAR files, embedding and completely complete. I believe that you will not need ant jar file unless you surround the jets with an ant, although it says that you need it . Some JSP jar files have been named separately in binary bundles compared to that document call, but this document helps to understand how to use Jetties JSP Jar:

html - Server Internal Error : Premature end of script headers in file.cgi -

I am running Apache server when I send an HTML request from CGI to call AGX, I have no answer Are getting. I found the following error statement in the httpd / error_log file: Premiere of Script Header: File.cgi When I warned the status code, that 500 internal server returned error . How to solve it? You should set the output of a full header to CGI output format: If you are "time expired ..." error, most likely that you can Not supplying the header at the absolute minimum, you should return the content-type and then another alternate field, for example, a simple "Hello Ld "response will be: Content-Type: text / plain Hello world! Or a simple HTML example: Content type: Text / html & lt; Html & gt; & Lt; Body & gt; Hello World! & Lt; / Body & gt; & Lt; / Html & gt; With content-type you may want to return to the other headers that contain cache, cookies, redirects, etc.

java - Hibernate mapping -

I have found a table with a PK and a value "country", all my labels are fixed in another table Which is composite-IDS Does anyone have an example for me that how can I map the value of my country for the right label in another country? McKings are bound to PK, if I am not wrong. & lt; Class name = "hibernate.P1" table = "P1" & gt; & Lt; Id name = "id" type = "int" & gt; & Lt; Column name = "lfnr" exact = "7" scale = "0" /> & Lt; / Id & gt; & Lt; Property name = "land" type = "int" no-null = "true" & gt; & Lt; Column name = "LAND" exact = "1" scale = "0" /> & Lt; / Property & gt; & lt; Class name = "hibernate.P5" table = "P5" & gt; & Lt; Composite-id name = "id" class = "hibernate.P5Id" & gt; & Lt; Key-property name = &q

windows - API to get the graphics or video memory -

I want to get an adapter RAM or a graphics RAM that you can see in the device manager using the display settings or APIs. I'm in the C ++ app. I have tried to search on the net and according to my RND, I have concluded that we can get graphics memory information from 1. DirectX SDK structure DXGI_ADAPTandSESE but if I do not want to use DirectX API 2. Win32_videocontroller: But this class does not always provide adapter RAM information that the availability of video controller is offline. I checked it on Vista. Is there any other way of getting the graphics RAM? There is no way to get the graphics RAM directly on the desktop, windows prevent you from doing this. Because it shows what the control is. However, you can create a directX device. Get back the buffer surface and then lock it. After locking you can fill it with whatever you want, and then unlock and call. It's slow, however, as you just copy the video memory into the main memory, some cards also use the

theory - Algorithm to print out a shuffled list, in-place and with O(1) memory -

I am surprised: Is a scugging algorithm possible that does not modify or copy the original list? To illustrate this: Imagine you have been given a list of items, the size of the list may be uncontrollable, but assume that it is too big (say, 10,000,000 items). You must print the items in the list in random order, and you have to do as quickly as possible. However, you should not do this: Make a copy of the original list, because it is too large and copying will waste too much memory (maybe killing the available RAM borders); Modify the original list, because it is sorted in some way and is sorted later on any other part. Create an index list, because again, the list is too large and the copy is too much time and memory (explanation: this is the meaning of any other list, in which the number of elements similar to the original list is ). Is this possible? Added: More explanation. I want the list to be rotated randomly with all kinds of permutations (of course, a

html - Make iframe not to reload at page refresh -

Is there a way to create a div or iframe to reload the page on refresh? < To prevent caching, put it in your iframe: & Lt; Head & gt; & Lt; Meta http-Equiv = "Cache-Control" content = "no-cache" & gt; & Lt; Meta http-Equiv = "Pragma" content = "no-cache" & gt; & Lt; Meta-http-Equiv = "end" content = "0" & ​​gt; & Lt; / Head & gt;

c# - How do you create an echoing mock using Moq? -

I'm making a fake for my ITransformer interface. public interface iTransformer {string transformation (string input); } I can make a duplicate that gives a given string based on specific input: var mock = new mock & lt; ITransformer & gt; (); Counterfeit. Setup (S = & gt; s.Transform ("foo")). Return ("bar"); What I would like to do, to make a duplicate with a conversion () method, copy whatever gets passed to it. How would I go about doing this? Is this also possible? I realized that the way my question is competing and usually the mock is to work, because I am not specifying a specific hope. I also know that I can easily make my own class to do this, but I had the hope of using normal situations without defining the new class every time. new copy = new fake & lt; ITransformer & gt; (); Counterfeit. Setup (T = & gt; T. TransformForm (This is any such & lt; string & gt; ()) Returns (String s) = & g

php - Limit Ajax mouseover -

I would like to know what is the best way to AJAX call / time limit function load () {$ .ajax ({Type: "(Msg! = '') {DisplayStuff;}}}}}}} global How can I do this in context. In this case, why not use the now-well plug-in to prevent accidental shootout of AJAX calls on the mouseover event.

Monitor account activity for SQL Server 2005 -

I'm looking for the easiest way to see if the user is logging into my database. We have some old user accounts that are no longer being used. Instead of shutting them down and seeing who complains, instead I think that there may be some way to log on and run any kind of questions next month. What would be the easiest way to monitor and track this type of activity? Edit: I would like to do this for all the databases on the server. To know who is connected, you can use that to access you Permission is granted. To trace log events, a trace can be run for one month or two, if you are unsuccessful, restart SQL etc. However, to see if there is any connection after the connection If you are doing, then you really have to use Profiler, as Mitch said

.Net Framework v3.5, Service Pack 1 for windows 7 -

When I try to install the .Net Framework v3.5, a Windows in Service Pack 1 on my PC 7 OS error message tells me that there is a compatibility problem. How could this be done to execute ??? .NET 3.5SP1 is installed as a part of the base Windows 7 operating system. This special update is for OS, which is not installed on the basis of Net 3.5SP1, so you get an error while running on Windows 7.

What Java type to use to represent a currency value in a web service? -

I am creating a web service in Java that will be consumed by external applications, probably written in C # . In my purchase bean, I have the currency object for the total cost. However, it leads to the following error: by reason: com.sun.xml.bind.v2.runtime Illegal annotation exception: 1 invalid invalidation of errors, exception is not with java.util.Currency -arg default constructor I have to create a custom XML adapter to handle currency marching / anamarselling: Public Class Expands CurrencyAdapter XmlAdapter & lt; String, currency & gt; {Public currency unprotected (string value) throws exceptions {return Currency.getInstance (val); } Public string martial (currency val) throws exception {return val.toString ()); }} Can I use that custom XML adapter, or can I use the BigDial (or other type) object to represent the cost? You have a currency (which is a designated unit) and a cost (which is some quantity in that unit) Co-ordinate. You can not represent th

sql - Oracle bug? SELECT returns no dupes, INSERT from SELECT has duplicate rows -

I'm getting some strange behavior from the Oracle example I'm working on. It's 11 gr1 at Itanium, no rac, nothing fancy. Eventually, I am taking data from one oracle example to second place in a warehouse scenario. I have a semi-complex scene on the DB link; 4 In the interior, large eye tables are found and 5 left is found in medium-sized tables. Here's the problem: when I test the sequence in SQL Developer (or SQL * Plus) it sounds OK, there is no duplication. However, when I actually use the scene to insert the data into a table, I get a large number of dupes. Edit: - Data is going to an empty table All tables in the query are on the database link The only thing passed in the query is a date (for example, select from the target SELECT * FROM view WHERE View.datecol = dQueryDate) - I tried to add a ROW_NUMBER () function to the selected statement, all the rows returned by PK for partition view are counted as 1. Even so, the same statement run in the form of

Why does my Python class claim that I have 2 arguments instead of 1? -

#! / Usr / bin / env python आयात os आयात स्टेट आयात सीएस वर्ग chkup: def सेट (फ़ाइल): filepermission = os.stat (फ़ाइल) user_read () user_write () user_exec () def user_read (): "" 'फ़ाइल' उपयोगकर्ता द्वारा पठनीय है "# फ़ाइल की (या # निर्देशिका के) स्टेट जानकारी से अनुमतियाँ बिट्स निकालें। B = bool (filepermission.st_mode & amp; stat.S_IRUSR) प्रिंट रिटर्न बी डीईएफ़ user_write (): "" रिटर्न ट्रू यदि 'फाइल' उपयोगकर्ता द्वारा पठनीय है # "फ़ाइल की अनुमतियाँ बिट्स निकालें (या # निर्देशिका की ) स्टेट जानकारी B = bool (filepermission.st_mode & amp; stat.S_WRUSR) प्रिंट रिटर्न बी डीईआर user_exec (): "" रिटर्न ट्रू यदि 'फाइल' उपयोगकर्ता द्वारा पठनीय है # "फ़ाइल की अनुमतियाँ बिट्स निकालें (या # निर्देशिका ) स्टेट जानकारी B = bool (filepermission.st_mode और stat.S_IXUSR) प्रिंट बी रिटर्न बी डीईफ़ मुख्य (): i = chkup () स्थान = '/ नेट / होम / एफटी 8 / आईटीआर 1 / स्क्रिप्टिंगवर्क / कोटैशैक' i.set (स्थान) अगर _

asp.net - Problems with Response.TransmitFile, Response.End and IE -

I am developing an ASP.NET app that responds to the user at one point. Transmissions sends using the file. This works fine on my god machine, and even when I put it on the test server, still works on two of them; Although one of the servers (W2K3) only works on Firefox, when I try IE7, I get an error like "Internet Explorer can not open the file (server name) on sendfile.aspx." I have created a small inline ASPX page to do the problem again, here it is: & lt;% @ page language = "c #"% & Gt; & Lt; Html & gt; & Lt; Top & gt; & Lt; Script language = "cs" run = "server" & gt; Zero Page_load (Object Sender, System.EventArgs E) {string filePath = @ "C: \ temp \ export.zip"; Response.ClearHeaders (); Response.ContentType = "app / zip"; Response.Clear (); Response.AppendHeader ("content-effect", "attachment; file name = export.zip"); Response.TransmitFile (filepath); Rispa