Posts

Showing posts from August, 2012

javascript - ExtJs Window doesn't render -

Please tell me that my window does not render below is javascript that I use & Lt; Link href = "/ scripts / ext / resources / css / ext-all.css" rel = "stylesheet" type = "text / css" /> & Lt; Script src = "/ script / jquery / jquery-1.3.2.min.js" type = "text / javascript" & gt; & Lt; / Script & gt; & Lt; Script src = "/ script / ext / adapter / jquery / ext-jquery-adapter.js" type = "text / javascript" & gt; & Lt; / Script & gt; & Lt; Script src = "/ script / ext / ext-all.js" type = "text / javascript" & gt; & Lt; / Script & gt; & Lt; Script type = "text / javascript" & gt; $ (Function () {var viewport = new Ext.Viewport ({items: [[{"minimizable": true, "maximizable": true, "title": "hello world", "height": 300, "width" : 400, "xtype": "windo

javascript - How to disable (View Source) and (Ctrl + C ) from my site -

Is there a chance to disable both of these things from my site? (See source) and (Ctrl + C) It is not possible that you code in any way You can try to obscure, but you have to send something to the customer, right? You can use AJAX calls to load your html. In this way, the browser which will show that source can be almost empty, however, nothing can stop the experienced user from seeing everything you send to the customer. Actually there are so many tools in it that can be used to reconstruct the page, which will work hard to implement any technique, it will only delay it for a few minutes. Ctrl-C You can add javascript to block it, but it is useless, because the user can always disable javascript. In fact, many users will get a very troubled right-click block. All of this can have a meaning if you are building intranet applications or you can send users an integrated browser to see the app. With public HTML, I believe that it is not worth trying to create a solution with

asp.net - What response time overhead would you expect for a webservice request compared to a simple file request? -

I am developing an ASP.NET webservice application to provide JSON-formatted data which is the source of jQuery.ajax Uses Requests I am using the Firebug Net View to ensure that the request for the data takes longer. In my initial prototype I was just requesting stable JSN data files, which was clearly returned very quickly to my dev machine IIS - in approximately 2 to 5 misses, even though the browser's cache Not present in I am now connected to the website, I am worried that the data requests are very slow, because they are continuously taking back around 200ms (this is also done after the first request, which compiled the goods Is doing and takes approximately 6 whole seconds.) I have removed all the database / processing overhead from the web request, so it should take a very short time to process, and it is still running Local Dev Machine, hence no network Hundred no latency overhead release is not better to build and production servers. My question is: Is this the

Disabling/Overriding some Javascript from Webbrowser Control using Inject? -

I am attempting to access a page that contains some JavaScript that causes errors and complete the page Prevents from rendering like. & lt; Script language = "javascript" & gt; Parent.hidden.vPageState = parent.hidden.NEW_LIST; & Lt; / Script & gt; and Both of these errors are related to the fact that I am reaching the page directly and not through the frames. I have thought about this by creating my clone and hosting the page but I do not like this solution and it was thinking that there could be some kind of way Override / Alter or better yet wipe through webbrowser control using javascript injection Thanks For the download event, it will only be replaced with a new function at the bottom of the page Not. The second can be a little tricky .... If you can not delete it, then you can technically make a frame around the page that does not show So, the code will set the fire properly.

java - Dependency Injection with Guice: Something that isn't covered by any tutorial -

I just tie around with dependency injection and started integrating it into my existing application. So far, so good. I have a lot of squares that are needed, next to their dependence, strings, datacons, etc. I know that there are naming bindings, but I really do not want to create an annotation for every simple string, so I have to give constructor for every class. After that, there is one thing called Assisted Inject, factory implementation for me. Wow, but I still have to define the factory interface. Regarding the classes which are okay for those classes, but about the class of this example: public class FooBarClass {public FooBarClass (string name, string one other) {// some stuff}} In cases where I suspect how to use Guice or, more commonly, di correctly. "I've often heard: XYZ Framework is new new ." But it is underlying that I have made a every example with the D framework. Only one instance is required What if I want only one example of this clas

objective c - Where can I find a high level tutorial on iPhone game design? -

Is there a high level explanation about designing a game for the iPhone? How about open source examples for something like Pacman, etc.? There are several similar questions on stack overflow, with answers to some useful iPhone game development resources: "

ruby on rails - How do I redirect multiple actions to a single action while maintaining DRY? -

मेरे पास एक OptionsController है, जिसमें एक क्रिया खाता है संबंधित दृश्य के तीन रूप हैं, जो तीन अलग-अलग कार्रवाइयों, update_profile , update_user और change_password पर पोस्ट करते हैं। प्रत्येक क्रिया चलती है और फिर इसे वापस क्रिया पर रीडायरेक्ट कर दिया जाता है, जहां दृश्य को फिर से सेट किया जाता है और रेंडर किया जाता है। मैं सुस्त होने और after_filter रीडायरेक्ट करने के लिए: after_filter (: केवल = & gt; [: change_password,: update_profile,: update_user]) नियंत्रक | नियंत्रक.send (: redirect_to,: action = & gt;: account) end हालांकि, यह कॉल करने के लिए प्रतीत नहीं होता; इसके बजाय, कार्रवाई शिकायत करती है कि उसका दृश्य नहीं मिल सकता है। टेम्पलेट गुम टेम्पलेट विकल्प / अपडेट_यूसर.रब दृश्य पथ ऐप / दृश्य में है वहाँ किसी भी तरह से मैं इसे एक सुस्त तरीके से कर सकता हूँ, या मैं सिर्फ तीन कार्यों में से प्रत्येक में redirect_to कॉल चिपके रहना चाहिए? बस प्रत्येक कोड में redirect_to कॉल डालें सूखी और दुर्बल जादू के बीच एक अच्छी रेखा है मुझे ऐसा लगता ह

ide - Netbeans + project groups: how can I tweak, where Netbeans stores information about created project groups? -

When coding, I use Dropbox to sync the folder in which I keep my projects between 3 computers < / P> I use Netbeans as an IDE, and therefore - I create the project group very often, when I create them, I usually choose the "Project Folders" option, so it's a special folder At all found in Projects are included Is it possible to zoom Netbeans, that it will store information about the project group created at specific places? Is there a substitute that changes this setting? stores group information in netbeans: {netbeans_user_root} / Config / preferences / org / netbeans / modules / projectui / groups I doubt it can be changed.

.net - Parent/Child Relationships failing when getting data from parent class, with multiple forms open -

I have a main form, and some sub-form, and each sub-form can have some sub-form Are there. When I have several sub-forms open, and I try to get data from the parents' form, then this data returns from the wrong parent form. For example, I have two examples of mainform running subform. If I do something like a child of an example of subform, it gives data from other subforms dim l = mainform.Waff.Lifodata < P> Edit I am using Visual Studio 2008. . In my main form, I am doing this protected friend frm main menuframe firmname = as new main form I am doing this in the frame. Protected friend new subform as frmsub 'frmsub = new subform' In SubSubForm I am doing this for each item in frmmain.frmsub.listofdata \\ Something Next You want the child's property to be established Consider, and then use the parent / child relationship, which is what you're looking for the right list. Something like Me.Parent.listofdata Hope this is an op

asp.net: send an object's event from a UserControl to its Parent -

लॉगिन () और मेरे पास एक उपयोगकर्ता वर्ग है लॉगआउट () और GetData () । मेरे डिफ़ॉल्ट.aspx पर उपयोगकर्ता नियंत्रण (वे गतिशील रूप से जोड़े गए हैं) )। मेरे पास लॉग इन नामक यूज़रट्रॉंटोल है। यह उपयोगकर्ता वर्ग का उपयोग करने के लिए कार्यक्षमता प्रदान करता है: आप यहां लॉग इन / लॉगआउट कर सकते हैं। मेरे पास **** ईवेंटहैंडलर है ** के लिए ** प्रयोक्ताचांगित ***** (यदि मेरे पास कोई नहीं है, तो यह किसी ऑब्जेक्ट के साथ असफल नहीं होगा)। मुझे सचेत करने की ज़रूरत है उपयोगकर्ता के राज्य में होने वाले बदलावों के बारे में अन्य यूजर कंट्रोल मुझे किसी भी तरह से LoginCharmed से UserChanged ईवेंट को उसके माता-पिता, Default.aspx। पास करने की आवश्यकता है। मैं यह कैसे कर सकता हूं? लॉगिन .ascx.cs सार्वजनिक प्रतिनिधि शून्य OnUserChangedHandler (ऑब्जेक्ट प्रेषक); सार्वजनिक ऑन-यूज़र चेंगलहैंडर ऑनऑपर बदल गया; निजी शून्य RaiseUserChangedEvent () // इस विधि को कॉल करें जब उपयोगकर्ता बदलता है {// UserChanged घटना यदि (OnUserChanged! = नल) {OnUserChanged (this); }} डिफ़ॉल्ट.aspx.cs

debugging - Trying to locate SafeMM for Delphi -

मार्क एडिंगटन ने डेल्फीलाइन सम्मेलन में एक मेमोरी मैनेजर, सेफएमएम का उल्लेख किया। मैं किसी भी व्यक्ति को पता है कि यह कहां उपलब्ध हो सकता है। यहां एक अधिक हालिया संस्करण है (v0 .4) एम्बारकैडोरो कोड सेंट्रल से स्रोत के साथ:

.net - SecurityException(Partial Trust) running Workflow from Windows Forms Application -

I am trying to use a sequential workflow console application that is being called from a windows form when the project Runs and I click on the button which I will get to create and start the workflow I was attached security exemption that the assembly does not allow partial reliable callers. I'm calling those classes which I call on my .NET2.0 targeted apps just fine. It also works if I drop the app in the same reference .net3.5 target window. I thought that I have a clean 3.5 SP1, so I do not want this problem per Why workflow security is different from other things? I have read some articles that suggest that I add I wanted to fix the permissions requested by the workflow, where would I do this? I signed up for the workflow console and I just added [assembly: system. Security. Presentation Presentation (System.Security.Permissions.SecurityAction.RequestMinimum, name = "full trust")] Instead of the console application I get this error now when I creat

Trim blank newlines from string in Ruby -

I have a string of four empty rows, which make up eight lines in the following: str = "aaa \ n \ n \ nbbb \ n \ nccc \ ddd \ n" I want to return it all in one line, the output should be on the same line : aabbcdd I used different trim function to get the output but I still failed. Which method do I have here? Ruby (and slightly lesser Pearl-way): New_str = str.delete "\ n" ... or if you want to in-place it: str.delete! "\ N"

Jquery Slickbox toggle issue -

यहाँ मैं उपयोग कर रहा हूँ $ (document) .ready (function ( ) ($ ('# Slickbox')। Hide (); // विख्यात लिंक $ ('a # slick-show') पर क्लिक करने के लिए slickbox को टॉगल करता है। क्लिक करें (फ़ंक्शन () {$ ('# slickbox')। ('धीमी'); वापसी झूठी;}); // विख्यात लिंक $ ('एक # चालाक-छिपाने') पर क्लिक करने के लिए slickbox छुपाता है। (फ़ंक्शन () {$ ('# slickbox')। फास्ट '); वापसी झूठी;}); // विख्यात लिंक $ (' एक # चालाक टॉगल ') पर क्लिक करने के लिए स्लीकबॉक्स को टॉगल करता है। क्लिक करें (फ़ंक्शन () {$ (' # slickbox ')। टॉगल (400); विवरण झूठा है; }); }); यहां HTML कोड है: & lt; div id = "slickbox" & gt; BLARGH & lt; / div & gt; & Lt; a href = "#" id = "स्लिम-शो" & gt; दिखाएँ & lt; / a & gt; & Lt; a href = "#" id = "चालाक-छिपाना" & gt; छिपाएं & lt; / a & gt; & Lt; a href = "#" id = "स्लिम-टॉगल&quo

best way to remove '-' in oracle SP -

I have an Oracle stored procedure, which is in its form as a benchmark, which is a Social Security Number (SSN) . -xx-xxxx What is the best way to remove the hyphen, so that I change the SSN in a XXXXXXXX format? replication ('xxx-xx-xxxx', '-', '')

javascript - Adobe AIR, memory leaks -

We all know that web browsers (like Firefox) are certain to meet memory consumption because we consistently execute javascript code (From the websites) that the memory is prone to leakage I am debating in developing the desktop app, and I have given my experience with JavaScript / CSS / HTML, Give me a try Like I do not have to use Java (for example) and all of its GUI swing content is dealing with learning. The problem is that I worry about the memory leak in AIR, because the Air Bus is a web browser with an API layer to interact with the operating system. Is there a worry about memory leak in Air India? What should I do about this? My name is Rob Kristensen and I am a product manager on Adobe Air First of all, let me say that Regardless of the underlying technology, it is quite easy to create a desktop application, which does not release large amounts of memory and / or memory. In the next release of All India Radio, we will use Java-based applications AIR Runta to mak

How to design for JPA in a non-Java EE web server (e.g. Tomcat) -

EntityManager does not have any privacy content available to inject, but you need to manually manage transactions, Is this the best way to design such an application? For EntityManagerFactory / EntityManager, as far as I can see, you must accept an EntityManager in each DAO contractor like public class DAOImpl DAO {Private unit manager Applies to; DAOImpl (EntityManager em) {this.em = em; } // Follow all CRUD functions} The first question arises when you EntityManager # close () ? Point A: By the way I see it, you are doing it better at the end of the request cycle, which means that you associate EntityManager with the existing thread (Use threadlocal?) The second question is, how and when will you apply antimitagger? Keeping in mind that where we create and close the unit, we can be as a static method as follows Public Fixed EntityManager createEntityManager () { Return entityManagerFactory.createEntityManager (PERSISTENT_NAME); } But since we want to be invol

javascript - extending a specific column header to include up/down arrows -

I am using MVC with grid assistant. I'm trying to expand a column header because I've put an up and down arrow for a certain column. For example, I call my header column and using CSS in an attempt to increase it has not benefitted the following. I am thinking that someone has a better idea. I've heard about using javascript but I have not used it before. th.sh, td.sh {width: 50px; Height: 300px; Border-top: 100px; Padding-top: 100px; Text align: center; } have you checked the specificity of your selector? (See: ). Another asset may be overridden, which you are trying to set to th.sh

Unable to see Python's approximations in mathematical calculations -

समस्या: यह देखने के लिए कि कंप्यूटर जब गणितीय गणना में सन्निकटन करता है < समस्या का उदाहरण: मेरे पुराने शिक्षक ने एक बार निम्नलिखित कथन कहा आप 200 की गणना कभी नहीं कर सकते! अपने कंप्यूटर के साथ मुझे पूरा यकीन नहीं है कि आजकल यह सही है या नहीं। ऐसा लगता है कि ऐसा इसलिए है, जब से मुझे इसके लिए बहुत सारे शून्य मिलते हैं। आप कैसे देख सकते हैं जब आपका पायथन कोड अनुमान दिखाता है? पायथन को पूर्णांक के साथ गणना करने के लिए उपयोग करें, अतः यह 200 की गणना कर सकता है! वास्तविक संख्या (तथाकथित) के लिए, पायथन सटीक प्रतिनिधित्व का उपयोग नहीं करता है। यह एक द्विआधारी प्रतिनिधित्व का उपयोग करता है, जो अनिवार्य रूप से वैज्ञानिक संकेतन है, आधार 10 के बजाय बेस 2 को छोड़कर। इस प्रकार, किसी भी वास्तविक संख्या का आधार सटीक रूप से 53 बिट सटीक के साथ बेस 2 में नहीं किया जा सकता, पायथन नहीं कर सकता एक सटीक परिणाम उत्पन्न। उदाहरण के लिए, 0.1 (बेस 10 में) बेस 2, 0.0001100110011 ... में एक अनंत दशमलव है, इसलिए यह बिल्कुल प्रतिनिधित्व नहीं किया जा सकता है। इसलिए, यदि आप एक पा

Learning a language while on a project? -

Have you ever tried to learn the language on a project? To me, and from my personal experience, I can say that it does not seem to be courage, effort, time, thinking, many caffeine and sleep. Sometimes it should be done without the choice, other times you choose to do it; If you are working on a personal project for example. What I usually do in such a situation, and I believe that everyone does, "creation" is at the top of the knowledge of my current languages, structures, syntax, and logic I find it hard to face, in some cases there is a difference of integrity. In some languages ​​a good background is provided for future studies and "language studies", they present a good source of information or a frame of reference and can understand the "firms" of the upcoming versions. Other languages ​​present a new way of form or thinking, and it is hard to use. Sometimes you think unknowingly in a particular language and when a new thought is introduced,

flex - Is there a way to set TCP_NODELAY to Socket.flush(), NetConnection.call() or sendToURL()? -

I am writing a real time app using Flex / Flash client and using my own server running Linux I am I want to be able to send data from Flex Client in real time (in response to user actions) I've tried the following methods: flash.net NetConnection.call () flash.net.sendToURL () Flash. Net.Socket.write () Flash.net.Socket.flush () There is a need to always wait for the call to send the ACK to each call In other words, if you do: var nc: NetConnection; // Setup code left nc.call ("foo", someData); // Some more code left nc.call ("foo", moreData); The above second nc.call () will not send the data to the server until the ACK to receive the first data. I would like to send the data instantly without waiting for ACK If the time for the server is long-trip (like 300 mms) then I can only send data to the server three times. Ideally, I want to be able to send data up to 30 times per second, but at this time only about 30 ml That is possible with R

To get the offset values from jquery -

How do I get an image offset value, which is enclosed in a table I table has too many images I While hovering in I want to get offset - left, right, top, bottom for all the image. I need it jquery Thank you, Praveen Jay var elem = $ ("your_element"); Var offset = elem.offset (); Var leftValue = offset.left; Var topValue = offset.top; Add the width and height values ​​to the left and above to get the lower values.

sql server - SQL counts performance (sql 2000) -

I said that "something has been said like a small change made by you, which has A comment about changing from ":" SELECT U.userid, groups_in = (SELECT COUNT (*) from user group where user id = u user) Tbl_users U From: SELECT U.userid, users_from Use Us Skip (User Usage, Group_in = Counting (*) by Usergroup Group users) GROUPS.userid on groups = U I thought, "Oh, this is the way I am doing wrong !!", yet I tried both questions in the same environment and both of them gave me the same Execution time and DB execution plan looks exactly the same. Is there any better way of this operation? Are these questions completely alright? SQL Server Optimizer is getting better and better with each new version, service pack and hotfix as much as I The times I have seen it, have not seen the number used as a skilled plan [simple elegant equivalent] [frightening compressed mess]. Look at index design for saving your table and efficiency first, then clear y

What does void mean in C, C++, and C#? -

Where the word VoID comes from and why it will be called zero but want to get the basic principle, the purpose of the question is to assist the person There is no experience, and it is suddenly watching the C-based codebase. In fact it means "nothing" or "no type" 3 basic ways zero is used: function argument: int myFunc (zero) -function takes nothing without Function Return value: zero myFunc (int) - No return of function Generic Data Pointer : Zero * Data - 'Data' is an indicator for unknown type of data, and it is not dereferenced Note: In the function argument, zero is optional C ++, hence int myFunc () by the way The same is the same as int myFunc (zero) , and it is left entirely in C #. It is always necessary for a return value.

c# - Does List<T> guarantee insertion order? -

I have 3 strings in a list (for example "1", "2", "3"). Then I want to reorder them to place 1 space in place of "2", such as "2", "1", "3". I am using this code (indexToMoveTo to 1): ListInstance. Remove (itemtv); List Instant. (Institatomovato, Madtomov); It seems to work, but I sometimes get weird results; Sometimes the order is wrong or the items are being removed from the list! Any thoughts? list & lt; T & gt; Guarantee orders? related: < P> Class Guarantee Order - The list will be maintained in the list that you add, which contains duplicates, unless you explicitly sort the list. You can get strange results from your code if you are transferring the item later in the list, because your phone will move all other items in one place before calling. Do you boil down your code to do something to post?

Trac wiki page list -

Let me create some documents in the Trek Wiki. I start these pages with the same pattern (like "MyDock ..."). What is the way to do this? just see the [[TitleIndex]] macro. Your example should be: [[TitleIndex (MyDoc)]]

Sending an email attachment in memory using OpenXML -

I have an Excel file that was created using OpenXML 2 and I want to send it as an email attachment I am E.g. System.IO.MemoryStream Stream = New System.IO.MemoryStream (); Spreadsheet document package = spreadsheet document. Create (stream, spreadsheet document type workbook)) AddParts (package); To save the spreadsheet in the template file using the new system.flowstream (@ "c: Test.xlsx ", System.IO.FileMode.Create)); Works fine but the attempt to send the stream as an email attachment fails - when I do, just attach an empty file to the email System.Net.Mail.Attachment file = new System.Net.Mail. Attachment (stream, "mobilebill.xlsx", "app / vnd.ms-excel"); How to do this? OK, I have got this job, despite some efforts. To create a stream: MemoryStream Stream = new memorystream (); (Spreadsheet document package = spreadsheet document. CREATE (stream, spreadsheet document type workbook)) using {Excel.CreateSpreadsheet (package, E

PHP Date Question -

I am trying to do some math using the dates in PHP. I am modifying a shoutbox and I want to implement the following functionality. If the post date = today, the post time refund else if date = tomorrow, return "tomorrow" else date = X days Ago How many days before I would use php's date functions to calculate a timestamp (timestamp is formatted in UNIX time) < Div class = "post-text" itemprop = "text"> Try it out:

asp.net - Do validators duplicate business logic? -

I know that the waiters of an application to check the data input in the presentation layer (such as regex, required fields etc) It is possible to use. ), And to show a message and / or required marker icon. Data validation is usually in the business layer Edit: I know that presentation verification is good, and it notifies the user, and that it is not infallible fact Is it not that I see the same thing in two places effectively? Yes and no. It depends on the architecture of your application. We will assume that you are building an N-level application, because in most days these applications follow that model. Validation in the user interface is designed to provide immediate feedback - with the other input to execute at any place in the first place, to prevent functionality in lower levels, the system user For example, you would not want to try to contact the user without the authentication of the user's name and password from the Active Directory server. Validatio

javascript - Handle keyPress Accross Frames in IE -

I'm trying to handle the onkeydown event on many frames (no, I'm unfortunately Can not get rid of the frame via Javascript) (See my previous question) I am handling one document on the second frame, and setting the handler to turn it on equal to my function. No error has been thrown, but when I later check the settings of the document, onkeydown is zero. I have achieved similar results in IE 6 and IE 7 . What I am doing. function setKey Hook (doc) {try {if (doc) if (parent.TOP.handleKeypress) {Doc.onkeydown = Parent.TOP.handleKeypress; Log message ('Attendor handler'); } And {log message ('no handle's receptors'); } And log message ('no doctor'); } Hold (ex) {log message (ex.toString ()); }} call setTimeout ("setKeyHook (parent.document.getElementById (\" down \ ").);" , 1000); Output Attachment handler After execution < / Ul> BOTTOM.protocol = Hypertext Transfer Protocol BOTTOM.onkeypre

Spring custom namespaces with Maven -

I have written my custom namespace for a Spring based project, which I am working on. The project is made with Maven, and I will put my XSD files in the resource directory. The problem is that the spring schemas directory I need to define where I place my xsd file. In my dev environment this resource / schema / myschema.xsd will be. However, when I compile, the contents of the content are copied to target, not the target directory itself. So in the compiled code, I end up with the target / schema / myschema.xsd. What should my spring. Schemas file reference resource / schema / myschema.xsd? Or just schema / xsd? thanks, jeff custom for spring When creating a name space, the spring.s. schemas file should be located in META-INF with an entry like this: Http: // Www.springframework.org/schema/context/spring-context-2.5.xsd=org/springframework/context/config/spring-context-2.5.xsd Your custom schema then Src / main / resources / org / springframework / context / con

deployment - How to properly force a Blackberry Java application to install using Loader.exe -

I want to include the application loader process in a software installation, to ensure that the user has his own software on his Blackberry Install over time install our installer software. I know that this is possible because the AIR CARD loader () does this when you install your software, if your BlackBerry is connected, the application loader will come and install it on the device. Will apply the .COD file to. I can not work it Looking at the reem's own documentation, I need it: Put ALX and COD files in a subfolder here: C: \ Program Files \ General Files \ Research in Motion \ Share \ Applications \ Add path to the ALX file in HKCU \ Software \ Research In Motion \ Blackberry \ Loader \ Packages By executing it on the command line, the application should be indexed: loader.exe / index < / Li> Launch the Force Load: loader.exe / defaultUSB / forceload When I disobey that last order Adit that I, the application is not the loader comes up and says that to

Can I whitelist IP's using IIS running a PHP site? -

As mentioned in the post of this people, it is very easy. However, how can I do this, site comprehensive, using IIS? These are my (big) warnings: I do not have the access to change php.ini. So I can not use the auto_prepend feature. I'm on Windows with IIS, so I can not use .htaccess. I have no PHP "Footer" which is called on all the scripts In fact, many pages are static HTML! Is there any way that I can use IIS in the whitelist of IP? The good news is that I have a steady list of white list from IP, so I do not need to change it easily. You can enter the IP address whitelist in IIS, which should give you the desired results. In IIS 6.0, right-click on your website and select Properties. Visit the Directory Security tab. Click on edit for "IP address and domain name restrictions" Click the "Disapproved Access" radio button. Enter any IP addresses you want.

c# - namespace or class could not be found (ASP.NET WebSite "project") -

I am currently trying to clean up a corporate website which I have inherited here. I've been able to clear most errors in the website but some are still here. I have a masterpage on which this code is: using the system; Using System.Data; Using System.configuration; Using System.Collections; Using System.ComponentModel; Using System.Web; Using System.Web.Security; Using System.Web.UI; Using System.Web.UI.WebControls; Using System.Web.UI.WebControls.WebParts; Using System.Web.UI.HtmlControls; Public partial class masterpiece: System. Web. UI master page {public lists m_listsClass = new lists (); (No, this list does not have S typo). Now I have a class list in App_code. Cs using the system; Using System.Data; Using System.configuration; Using System.Linq; Using System.Web; Using System.Web.Security; Using System.Web.UI; Using System.Web.UI.HtmlControls; Using System.Web.UI.WebControls; Using System.Web.UI.WebControls.WebParts; Using System.Xml.Linq; /// & lt; Sum

c# - Why use app.config to store config data? -

I am currently completing any application that was started by another person. It's using app.config for some settings, and a custom xml file for other parts it drives me crazy, and I want to consolidate the configuration in one file. But I'm not certain to move everything into app.config and to remove the custom xml file or to move everything else to another file and forget about the app. Configure I can see two arguments, one for each option: Use the standard method provided by Visual Studio for me for anyone else Keeping is easy. I have custom file against my own XML schema, outsourcing so many tests in this way, if the config file contains all the necessary data etc. But I'm sure I can do a lot of things from him. Think about it now. That's the reason I'm asking: Use 'app' for configuring 'beneficial' or What are the losses for storing 'traditional' configuration files versus your configuration? The main advantage of using

java - How is this 13 bytes long? -

दो उद्धरण: प्रोटोकॉल में शेष सभी संदेश < कोड> & lt; लंबाई उपसर्ग & gt; & lt; संदेश आईडी & gt; & lt; पेलोड & gt; लंबाई उपसर्ग एक चार बाइट बिग एंडियन वैल्यू है। संदेश आईडी एक एकल दशमलव बाइट है। पेलोड संदेश निर्भर है अनुरोध: & lt; len = 0013 & gt; & lt; id = 6 & gt; & lt; इंडेक्स & gt; & lt; शुरू & gt; & lt; लंबाई & gt; अनुरोध संदेश लंबाई निर्धारित है, और एक ब्लॉक अनुरोध करने के लिए प्रयोग किया जाता है। पेलोड में निम्न जानकारी है: सूचकांक: शून्य-आधारित टुकड़ा अनुक्रमणिका निर्दिष्ट आरंभ: पूर्णांक शून्य-आधारित बाइट ऑफसेट को टुकड़ा के भीतर निर्दिष्ट करता है लंबाई: पूर्णांक का अनुरोध किया लंबाई निर्दिष्ट जब मैं सब कुछ लिखता हूं जो 5 बाइट्स तक चलता है। का उपयोग करना बाइटअरेऑन आउटपुटस्ट्रीम बाइटस्ट्रीम = नया बाइटअरेऑनपुटस्ट्रीम (); बाइटस्ट्रीम.लिखित (13); बाइटस्ट्रीम.लिखित (6); बाइटस्ट्रीम। लिखें (सूचकांक); बाइटस्ट्रीम.लिखित (शुरू); बाइटस्ट्रीम.लिखित (लंबाई); संदेश = बाइटस्ट्रीम.टाइबेटएरे (); सं

asp.net - "#if DEBUG" in an ASPX/ASCX page -

Which mode I want to be able to point to one of the two assemblies (upgrade or release) VS 2005 IDE (which does not work): & lt;% @ ControlEquote = "C #" AutoEventWireup = "true" CodeBehind = "VideoDialog.ascx.cs" Inherits = "Company.Web Base Control.Video Dialog"%> & Lt;% # if DEBUG% & gt; & Lt;% @ Register TagPrefix = "company" assembly = "company" namespace = "company.u. control.video control"%> & Lt;% # Lese% & gt; & Lt;% @ register tagprfix = "company" assembly = "company .u UI control.video control" namespace = "company.uii. control video control"%> & Lt;% # endif% & gt; & Lt; Company: Company Video ID = "Video1" Run = "Server" & gt; & Lt; / Company: CompanyVideo & gt; So, my question is: How do I use #IBUI correctly in ASPX or ASCX page? I do not know what you want, but I have to face t

c - Is a struct of pointers guaranteed to be represented without padding bits? -

I have a linked list that stores a set of settings for my application: typedef structure settings {straight settings * next; Four names; Four * title; Four * characters; Char * bkfolder; Char * srclist; Four * Arakol; Four * incfold; } Settings_row; Settings_row * first_profile = {0}; #defined SETTINGS_PER_ROW 7 When I load prices in this structure, I do not want to name all the elements. I would like to treat it as a designated array - values ​​are loaded in sequence from a file and placed in the structure sequentially, then, when I need to use values, then I access them by name. I am // value to be incrementally inserted into straight void read_settings_file (settings_row * settings) {char * field = settings + sizeof (zero *); Int i = 0; While (read_value_into (field [i]) and amp; i ++ & lt; SETTINGS_PER_ROW); } // Name Settings by zero Settings_Info (settings_row * settings) {printf ("Settings 'Profile':% s \ n", settings.title); Printf ("Desc

Asp.NET Development Server DirectoryNotFoundException -

Tempimage is located under the root directory of the current web app when I try to set the imageUrl of an image then down to me Error is encountered. For some reason the ASP.NET Web server is trying to detect the directory under its current root This is what I am trying to do: & lt; Asp: image ImageUrl = "~ / TempImages / ... /> Ive also tried & asp: Image ImageUrl = "/ TempImages / ... /> & Lt; Asp: image ImageUrl = "./tempimages / ... /> & lt; asp: Image ImageUrl =" TempImages / ... /> Returns to this error: No part of the path could be found: 'C: \ Program Files \ Normal Files \ Microsoft \ Shared \ DevServer \ 9.0 \ TempImage Just specify if the image is in the root of the current application: & Lt; Asp: image image url = "~ / imagename.jpg" runat = "server" />

Scala HMAC-SHA1 signing? -

I was thinking that without compiling Java class, there would be a way to get the HMAC-SHA1 signature in scale code all Any ideas used in? Not sure what you are trying to do, but here you can find an example To HMAC-SHA1 (for Oath) in

javascript - What is lexical scope? -

Can someone please give me a brief introduction to literally scoping? I understand them through examples :) zero Fun () {int x = 5; Firstly, lexical scope (also called static scope), in C-syntax: zero fun 2 () {printf ("% d", x); Every internal level can reach its external level. There is another way called the dynamic scope used by the first execution of Lisp, again in the C-syntax: zero fun () {printf (" % D ", x); } Zero dummy 1 () {int x = 5; Fun (); } Zero dummy 2 () {int x = 10; Fun (); } here funny in either x in dummy1 or dummy2 Can enter or x has been declared with funny in any function x . dummy1 (); will print 5, dummy2 (); 10 will be printed. The first is called static because it can be estimated at compiled time, the second is called dynamic because the outer radius is dynamic and the function's chain depends on the call. I find scoping static easy for the eye. In most languages ​​this way, final

c# - Treeview validation -

treeview leaf node checkboxes. I need to validate treeview at least one of the nodes checked and not Specfic is doing more (3 nodes say) One user can select the number of nodes Note: Treeview does not have an ASP.NET treeview (not an ajax treeview) OK, since you did not have it not been told what kind of legalization you want, I have both client side and server I will name my TreeView tvTest First, a CustomValidator add Asp.Net page for you: & lt; ASP: CustomValidator id = "CustomValidator1" runat = "server" ClientValidationFunction = "ClientValidate" errorCare = "CustomValidator" display = "dynamic" OnServerValidate = "CustomValidator1_ServerValidate" & gt; * & Lt; / ASP: CustomValidator & gt; Note: ControlToValidate property is not set After this, add this script to customer's party verification (even on your Asp.Net page). : & lt; Script type = "text / javascript&quo

c# - AppDomain and threading -

Actually, the little that I have understood, I have been able to search the Internet, have passed between the threads Application Domain Now, I have written the following code: const string ChildAppDomain = "BlahBlah"; Static zero main () {if (AppDomain.CurrentDomain.FriendlyName! = ChildAppDomain) {bool done = false; While (! Done) {AppDomain mainApp = AppDomain.CreateDomain (ChildAppDomain, Blank, AppDomain.CurrentDomain.SetupInformation); Try {mainApp.ExecuteAssembly (path.getFileName (application.ExecutablePath)); } Catch (Exception Pre) {// [Snip]} AppDomain.Unload (mainApp); }} Else {// snip} The rest of the program goes here}} This works fine and clicking on everything ... main thread in new version My program and main application starts running through the body My question is, how would I have to go back to parent AppDomain ? Is this possible? The one I am trying to achieve is sharing an example of a class between two domains. You can not directly sha

cross browser - Will you still support IE6 when writing webpages? -

It requires a lot of work to properly present the webpage in IE6. Other browsers (such as FF, Safari) are okay because they generally follow the W3C standard better. IE is better than 7 (although its acid test test is only 14/100). I would like to know how many people still care for IE6 during web pages development. If you still work hard to deal with IE6, then what do you think is the right time that you can get rid of it? I have to: (Some customers are still using IE6 as a company-policy , And pages should look good for them. We have a tool that allows the user to create pages using a web editor, and you do not know the support of older browsers To do this we need to write how much workout code: /

c# - How to pass a nullable type to a P/invoked function -

I have a P / Inkvend function (but I am rewriting your code at the moment, so I think it I'm writing) and I want to know how to use a tap type / pass type as one of the parameters, working with the int type is not a problem, but the following are given: < Pre> [DllImport ("setupapi.dll", Charset = Charset Auto, Setlist Error = True)] Static Extern IntPtr Set UpDiGetClassDevs (Referee Gid Classguide, Int. Enumerator, Interactive HWDP, UIIT Flags); I want to be able to pass the good parameter as an empty type. Right now I can call it as I: SetupDiGetClassDevs (Ref Tiguid, blank, IntPtr.Zero, (UIT) SetupDiFlags.DIGCF_PRESENT); But I need 1 parameter which is nonsensical. Thank you for your time. It is not possible to pass a Nullable type in a PInvoke'd function without doing anything. If you tap to require the ability to have a structure value because Netik address one of your Pinvokd declaration Announces the surcharge which takes an intake

.net - adding : notation to C# for indexing into arrays -

I use to use IDL and matlab in college and now when I have been working for a few years now I miss: for signaling arrays in the index such as array [1: 5] which will return an array from 1 to 5 elements . Another example is: stringVar.Split (")". ToCharArray ()) [1: *] which will return an array of string skipping on the first element. Has anyone seen a path to Shu-horn: this is a sign in C #? I have seen it in some interpreted language and Pearl or Python, can not remember I wonder if it should be done with some operator override Could? This is not currently applicable in BCL. For example, here's a quick and dirty example (not fully printed). Public Fixed IEnumerable & lt; T & gt; GetRange & lt; T & gt; (This is IEnumerable & lt; T & gt; calculable, string category) {var arr = range.Split (':'); Var start = int32.Parse (arr [0]); If (ARR [1] == "*") {Refundable. Skip (Start); } And {var end = int

Silverlight 3 Ria Services reference -

I have a silverlight project where the functionality is separated into several Silverlight libraries due to application size and complexity. I am having trouble finding out what is the best way to eliminate the RIA domain service arising from the website project. I need to be able to access data from other libraries because they are essentially the main Silverlight applications Will be loaded dynamically in I had finished ending the code which was generated by Visual Studio in the generating code directory of the main Silverlight application. Done and the RIA domain was finished to create multiple Silverlight libraries to separate Context, Authentication Services, Entities and other domain services. I then removed the interface for DomainContext, etc. and put them into my own library Using Microsoft's Unity Framework for Silverlight I was able to dodge all my modules from the main project. All my modules now use the interface. In the main application there is an IoC contai

swing - How to show a textbox, button, etc in a Java Applet? -

How can I show general GUI elements like: textbox Button Radios / Dropdown Label etc. In a Java applet that will be run from a web browser? It starts from the beginning, and covers. Almost all of which will include GUI work.

ruby - Rails assert that form is valid -

What is the best practices to test in a way that is valid in a model rail? For example, if I have a user model that validates the specificity of an email / addase property, how do I see the error of posting the form (or better yet, especially that An error has been returned for the field). I think something should be clear, but as I'm quickly searching, I still do not have enough vocabulary to do the Ruby questions effectively. The easiest way would be: class UserEmailAddressDuplicateTest & lt; ActiveSupport :: testcase def setup @email = "test@example.org" @ user1, @ user2 = User.create (: email = & gt; @email), User.new (: email = & gt; @email) end Def test_user_should_not_be_valid_given_duplicate_email_addresses emphasize! End def test_user_should_produce_error_for_duplicate_email_address # Testing for the default error message: Assert_equal "Already taken", @ user2.errors.on (: Email) And End Of course it is possible that you If

.net - Win-app calling a webservice vs. web-app calling the same service -

I am trying to consume data from a webservice published by a third party. I have an SDK win-app The service that is capable of calling (from my god machine) and gets results, but a web-app (running on the same machine) that has the same code, nothing is available < P> My question is: What type of app calls to the web service? Is there any difference from the server's future? No This is just a request on the server, both the apps communicate with it through HTTP and SOAP.

telerik - RadGrid: CommandItemTemplate -

राड्रिग्री के कमांडआईटैम टेम्पलेट में नियंत्रण रखना चाहिए राज्य को बनाए रखना चाहिए। मेरे पास टेम्प्लेट है और प्रारंभिक स्थिति में वापस नियंत्रण वापस करने के बाद। व्यूस्टेट को पृष्ठ स्तर या ग्रिड पर चालू नहीं किया जाता है। & lt; कमांडआईटमेम टेम्पलेट & gt; & Lt; div वर्ग = "ग्रिड क्रियाएँ" & gt; नोट्स & lt; asp: DropDownList आईडी = "cmdFilterNoteType" runat = "server" AutoPostBack = "false" / & gt; & Lt; एएसपी: चेकबॉक्स आईडी = "सीएमडी शो" सभी "रन" = "सर्वर" ऑटोपॉस्टबैक = "सच" ऑन चेक्ड चेंज = "सीएमडी दिखाओलैकहेक्टेड परिवर्तन" टेक्स्ट = "केवल नवीनतम दिखाएं" सक्षमव्यूस्टेट = "सही" / & gt; & Lt; / div & gt; & Lt; / CommandItemTemplate & gt; अगर पोस्टबैक पर कुछ नहीं होता तो राज्य को बनाए रखा जाना चाहिए। हालांकि, यदि RadGrid अपने डेटा स्रोत को पुनर्वित्त करता है (NeedDataSource ईवेंट का उपयोग करके, या कुछ अन्य विधि), तो राज्य

How do I access a Silverlight XAP file across a domain? -

I am trying to add my Silverlight application which lives on a web page in another subdomain on a subdomain. For some reason this is not working just plain ... my Silverlight app is loaded in such a page as: & Lt; Param name = "onerror" value = "onSilverlightError" /> & Lt; Param name = "background" value = "white" /> & Lt; Param name = "minRuntimeVersion" value = "2.0.31005.0" /> & Lt; Param name = "auto upgrade" value = "true" /> & Lt; Param name = "enableHtmlAccess" value = "true" /> & Lt; A href = "http://go.microsoft.com/fwlink/?LinkID=124807" style = "text-decoration: none;" & Gt; & Lt; Img src = "http://go.microsoft.com/fwlink/?LinkId=108181" alt = "get Microsoft Silverlight" style = "border-style: none" /> & Lt; / A & gt; & Lt; / Object & gt; & Lt; Ifra

c# - Sort of scheduler -

I need to implement something, something that could have done certain functions in my program, for example, every ten seconds In the file, write something in a log in the file. Of course, it seems to run in a background thread. Where should I dig? I am not very familiar with multithreading. I have heard about the category of background, but I am not sure it is appropriate .. Use the system. threading. Timer, it will run the task in a threadpile thread. This is the most effective way for this. Here's an example, every 10 seconds: timer aTimer = new system. threading. Timer (My Task, Empty, 0, 10000); Static Zero My Task (Object State) {...}

javascript - Whats the easiest way to determine if a user is online? (PHP/MYSQL) -

Is there a way that I can tell when a user is online? Ie: Use logon, I set the $ _SESSION variable, out of user times - cookie trash collector updates the database to update their status as offline. Edit: I want a solution that does not include time or dates. I want to ride some sessions or something like this. If someone is online then I am not enough to require it, so I have to guess what I want The difference between timezones is not necessary. Every time a user accesses a page, then update a field in their records in the user table, which is a previous-update-time. Then make a query for all users with the last update time within the last 5 minutes. Anything more than this, and they are considered "offline". If you use your server-time, then through the NOW () function in MySQL, you can calculate the difference between the time-zone. This is currently the standard way of tracking how many users (meaning, active in the last few minutes) online. Freque

Group by & count function in sqlalchemy -

मैं sqlalchemy में "group by and count" कमांड चाहता हूं। मैं यह कैसे कर सकता हूँ? क्वेरी में काम करेगा, लेकिन यह समूहों की संख्या की गणना करेगा, प्रत्येक समूह में पंक्तियों की संख्या नहीं। कहते हैं कि group_by प्रश्नों के लिए func.count () : सेक्लैलेमी आयात फ़ंक्शन सत्र.क्यूरी (टेबलकाउल, फ़ैशन। सीट (टेबलकाउम))। समूह_ द्वारा (टेबलकाउम) .all ()

wpf - Silverlight Canvas on Scrollviewer not triggering -

यह क्यों wpf में बहुत अच्छा काम करता है & lt; ScrollViewer क्षैतिज ScrollBarVisibility = "Auto" VerticalScrollBarVisibility = "ऑटो" & gt; & Lt; कैनवास एक्स: नाम = "मायडाइजर" & gt; & Lt; / कैनवास & gt; & Lt; / ScrollViewer & gt; अब जब मैं सिल्वरलाइट में एक ही काम करता हूं और नियंत्रण को लोड करता हूं "जिसे ड्रैग किया जा सकता है" स्क्रॉलबार चालू नहीं होते हैं, जब मैं दृश्य से बाहर खींचता हूं, कुछ भी नहीं होता ... लेकिन Wpf यह स्वचालित रूप से उन्हें दिखाता है ... यहाँ मैं पाया समाधान है कैनवास गतिशील रूप से बढ़ सकता है, लेकिन आपको स्पष्ट रूप से ऊंचाई को एक नए मान में सेट करना होगा। इसलिए, यदि आपके पास 21 की ऊँचाई वाले 20 टेक्स्टब्लॉन्स हैं, तो आपको कैनवास की ऊँचाई सेट करना होगा: कैनवास.हाइट = 22.0 * 100 ; स्क्रॉलवरकर्ता को नई ऊँचाई लेने के लिए। MainPage.xaml & lt; कैनवास कैनवास.लिफ्ट = "5" कैनवास.Top = "25" & gt; & Lt; ScrollViewer Width = "300" ऊँचाई = &

Star rating in AJAX with Ruby On Rails -

I think actions_as_ payable seems quite obsolete and does not support AJAX. I'm looking for a simple "5 star" rating system: is there a plugin or tutorial that can help? check out.

whitespace - Simple bash script to read from one file having double quotes in content -

OK, I'm really worried :( I have a file named test.txt and here's this: "/ var / lib / backup.log" "/var/lib/backup2.log" Double quotes file contains the beginning and end of each Directory and I can not delete them. I am trying to write a script to extract the files in test.txt. By this way: del Test .txt`; rm -f $ del done but it does not work as expected Does it: ( It returns this error: rm: "/var/lib/backup.log" can not be used: such a File or directory can not access RM: "/var/lib/backup.log2": Any such file or directory This will only remove the quotation character from the beginning and the end of the interval, which is better than indiscriminately removing all the quotation characters (because they can appear in filenames, of course ). And, with regard to your ITAL code, unless you really do not know when and when not. Do fname = $ {REPLY # \ "} fname = $ {fname% \"} Echo RM-F did "$ f

objective c - How to get instance of UIView subclass from app controller -

If I subclassed a UIView from the interface builder, and now there is a frequency of subclass that is in my App Controller, I How will this reference (no subclass and UIView) be found? One way to do this is to: Interface from the library Drag a UIUI object from the Builder (IB) to your Neck window (window that shows all objects in the Nib). Change from the UIView to the new object in the object sub-section (Shift-Control-i). Create an outlet in your App Controller header file: IBOutlet MySubViewClass * MyView; Connect the MyView outlet with the objects created in step in IV. You can see the object by right-clicking-a-dragging the object and clicking on the mineview in the window. Opting out which pops up.

javascript - How do polymorphic inline caches work with mutable types? -

A multiprofile inline cache (PIC) works by caching the actual method by type of object, so that expensive lookup process (usually A heshteble look on) How does some types of comparisons compare with typed objects (ie, the monkey may be different for some time)? One thought I have raised will be a "class counter", which gets adjusted every time a method, although it seems that it will be exceptionally expensive in a huge monkey patch environment because it is All the class members will kill PIC, even if the laws can not be changed for them. I am sure that it should be a good solution, because this issue is directly applied to Javascript, and APIC has PIC in all three major JavaScript virtual machines. In V8, I think the "hidden class" of the portpatching object ("map" itself Word terminology). It will work in you, the monkey patch the object himself. If you have closed the class (can you do JS?), Then I think that it invalidates all PICs, bec

reporting services - SQL Server Metrics -

We are using SQL Server as our database server. We have created a consumer product and are creating a dashboard for creating matrix based on our user base. We are a team of two and wondering if the SSAS or TSQL is the way to get the matrix. Caveats We are not up to speed on SSAS, so there will be a learning curve Need to collect data / Denormalized so that we can get DB If you have to collect data and slice it To make it available and to think at the speed of thought, you should use SSAS. In this regard, a multi-functional database (created by aka cube or SSAS) and relational There is no comparison between one. You can attach many things to SSAS. Microsoft's product performancepoint and proximity, but Excel comes with a native connector. If you have SharePoint, it can basically be attached to the SSA with the KPI. You can also use SSRs to submit data. With the cube, you will be amazed at how much you can do except for seeing some metric. It's really amazing

URL string format for connecting to Oracle database with JDBC -

I am a newbie for Java related web development, and I could not find a simple program to work with JDBC Could. I am using off-the-shelf Oracle 10G XE and Eclipse EE IDE, I have so far reduced the problem in an incorrectly written database url or a missing JAR file, from books and web pages of checks. . I am getting the following error: java.sql.SQLException: no suitable driver was found for jdbc: oracle: //127.0.0.1: 8080 < P> with the following code: import java.sql *; Public square databasestest {public static zero main (string [] args) {string URL = "jdbc: oracle: //127.0.0.1: 8080"; String user name = "hr"; String password = "sample pass"; String SQL = "Employees Select Employees where LAST_NAME = 'King'"; Connection connection; Try {connection = DriverManager.getConnection (URL, Username, Password); Description Details = connection.createStatement (); Println (statement.execute (SQL)); Connection.close (); } Hold (S

php - Concept & Algorithm: How to record only single URL for widget? -

I created a widget for my web application to get the user's code and paste that website to that website and save my widget Has worked on some websites like Twitter, Digg and other social widgets. Based on my widget post, postid for a post: 234) I am providing a single widget, so anyone can embed the widget on their website. Now I should know that for all the posts posted to my post and for which post? For this I have entered the URL of the site when my widget starts (Ollod), but the problem occurs when a person keeps the widget in the normal sidebar of his blog or website. I am recording the URL every time and so if he If there is a blog in the sidebar, then it is recording the URL for each post which is making a duplicate. Can anyone help on this? How should I go so that I have the same record for any widget on the site? I think it's a bit difficult to do something like that. Here are some ideas that pop up the mind For example, when users receive widgets, users

gsp - Why use <g:textField /> in Grails? -

If you are already familiar with the standard HTML form tag, what is the reason for using textField G in the grill? If I understand correctly, then the following two markup options are the same: & lt; Input type = "text" name = "name" value = "$ {params.name}" id = "name" /> & Lt; G: textField name = "name" value = "$ {params.name}" /> Is there a situation under which G is being used: will the textfield add value? Am I missing something? Textfield tags are provided as a convenience (slightly less than writing HTML inputs) and there There is a complete set of form tags to provide. Personally, I like writing simple HTML as much as possible in my Grails ideas and only use tags that actually provide benefits like form tags. I have not found any examples where to use the textfield to add fewer characters without any value added.

c# - Can I put commands after Form.Close()? -

In C #, suppose I'm in one form, and I pressed a button to close it. this.Close (); Some_action (); // What can I do ?? Do I close the form or the thread dies and after that everything is lost? What you are trying to do and depends on the context of the statement. If the form is being shut down, then primarily the owner of the message loop, you can not do any UI related stuff (e.g., you do not display another MessageBox If you are not doing this with any other window (which is not near the message loop), then you can do anything (even related to the UI) unless you manipulate the closed form object (You will get the ObjectDisposedException just by any Ta-like object). By the way, the thread does not die as a result of shutdown . To close the main window, the message loop ends and not the thread. For example, the following program Fixed zero main () {Application.Run (new form 1 ()); application. Rouen (new form 2 ()); } will be closed after after (us