Posts

Showing posts from September, 2010

javascript - Does anybody use Clamato? -

I have any interest if someone uses it in a production environment? author () used (which was recently done by Twitter). Although, there has been no official change in a few months, but changes have been noticed in the last month. Clamato has recently given some attention to Yehuda Katz, which connects Evey to DJGenone.

database - SQL: Using NULL values vs. default values -

पेशेवर और विपक्ष का उपयोग करने के लिए < डिफ़ॉल्ट मान ? पीएस के विरोध में एसक्यूएल में उन्हें NULL मान यहां बहुत सारे सवाल पूछे गए हैं लेकिन कोई भी मेरे प्रश्न का उत्तर नहीं देता। एक शून्य मूल्य डेटाबेस एक सिस्टम मान है जो भंडारण के एक बाइट को लेता है और यह इंगित करता है कि कोई स्थान या शून्य या किसी अन्य डिफ़ॉल्ट मान के विपरीत मूल्य मौजूद नहीं है। शून्य मूल्य वाले डेटाबेस में फ़ील्ड का मतलब है कि इस सेल की सामग्री को देखे जाने के समय अज्ञात है। एक कॉलम जो शून्य मान की अनुमति देता है, उस कॉलम में सभी मूल्यों के साथ पंक्तियों को सम्मिलित करने की अनुमति देता है। डिफ़ॉल्ट मूल्यों के विपरीत नाउल मूल्यों का उपयोग करने के कई पेशेवर और विपक्ष हैं: पेशेवरों NULL मान में डेटा प्रकार नहीं है, इसलिए हो सकता है किसी भी डेटा संरचना और किसी भी डेटाबेस कॉलम पर डाला दूसरी ओर, डिफ़ॉल्ट मानों को उनके डेटा प्रकार को निर्दिष्ट करने की आवश्यकता होती है और एक कॉलम में एक डिफ़ॉल्ट मान दूसरे कॉलम में समान दिख सकता है, लेकिन यह एक अलग प्रकार का हो सकता है। नल अक्सर स्कीमा में उ

c# - Transform a delegate to a Expression Tree -

I wonder if you can make and modify the expression tree outside an existing representative. Like Public Zero Foo () {Console.WriteLine (1000); } .... Expression exp = Foo.GetExpression (); // Now do something that changes from 1000 to 2000 ... So I would like to reverse engineer a universal stimulus system. My problem is that I have such a construction: var work = new action [20]; (I.e. = 20; i ++) works for [i] = () = & gt; {Console.light line (i); }; And the way C # works all the same (print 20). But I want to work [5] () print 5 works [ 11] () print 11 and so on. So I need to calculate 20 different representatives and I wonder what is a "good" approach to do this. Of course I could just write: works [0] = () => Console.WriteLine (0); Works [1] = () = & gt; Console.WriteLine (1); Works [2] = () = & gt; Console.WriteLine (2); Works [3] = () = & gt; Console.WriteLine (3); .... But this is not a good way in my eyes ...

Default Scope on Sharepoint Advanced Search -

Whether to automatically select a specific area on the Sharepoint Advanced Search interface without choosing a search box via JavaPo Any way? I found, but I could not find the XML file that he was talking anywhere. The XML link that she talks to is located here: Advanced Search page => Edit page => Modified shared webpart (Advanced Search Form WebPart) => (Attribute group) => Properties field. This & lt; The root begins with xmlns: ...

jquery - sortable lists, with sortable lists -

I am trying to list lists of 3 levels that are all ordered & amp; Trying to establish an easy way to manage navigation menus with multiple levels, in fact, dragging each other. It has 90%, but for some reason this item can not be saved in any child list, it seems to get only the parent ID of that list ?! That is, a pink object in the third (blue) level in a green stream. However, I can add that item to that level with the camera or the level of his parents. Can a blue object go to the list of other blue items or to pink level?! Anand I have just seen that this works if you put a pink object in a different green section frm in the pink square ..! Any help appreciated! DC. $ (function () {$ ("div.sortable"). (Function (i) {makeSortable ("#" + $ (this) .attr ("id")) ; // $ ("#fdbk"). Append ("<+" $ (this) .attr ("id") + "& lt; / li & gt;");});}); Function MesortTable (ID). Sourceable

java - How should I implement a string hashing function for these requirements? -

OK, I need a hashing function to meet the following requirements. I consider part of the same logical structure, But files in different physical areas of the file system have the ability to be linked together. I need to implement it in Java, it should be consistent with execution sessions and this can return a long time. I will be getting directory names / strings that should work so that "somefolder1" and "somefolder2" will return a different hash, as "Jjk" and "jjl" . Any suggestions? Thank you For the skirmishes, just see how many large hash outputs have Java's own Hashod () returns a int , so you expect that there is more conflict than this, for example For those who generate 128 and 160 bits respectively, You should not try to create such a function from scratch, though. However, I understand a lot Did not come whether there should never be a confrontation in your use or if it is acceptable if they are acce

windows - What is the 64 bit version of GetTextExtent -

I'm porting my 32 bit window app to 64 bit, and trying to clear all warnings . I have received calls in our code in the CDC :: GetTextExtent, which take an integer as a parameter. I have seen that GetTextExtent just calls GetTextExtentPoint32. 32 scares me, so I started looking for a 64-bit version of GetTextExtent but I can not find one. Can anyone tell me that GetTextExtent is totally safe in 64 bit? Or is there any other way we should get information? Thanks

javascript - How to uncheck a radio button? -

I have radio buttons that I want to submit using an Ajax form after the use of jQuery. I have the following functions: function clearForm () {$ ('# frm input [type = "text"]'). Each (function () {$ (this) .val ("");}); $ ('#frm input [type = "radio": checked' '). Each (function () {$ (this). Checked = false;}); } With the help of this function, I can clear the value on the text box, but I can not remove the values ​​of the radio button. By the way, I also have $ (this) .value (""); , but it does not work. Either (plain JS) this.checked = False; or (jQuery) $ (this) .prop ('check', wrong); // Note that pre-jQuery 1.6 idioms // $ (this) .attr ('checked', false); See for clarification on difference between attr () and prop () and why Sahara () is now better. Br> prop () was introduced in May 2011 with jQuery 1.6.

how to calculate cos , sin , tan in IPhone SDK? -

How can you calculate trig function like cos, sin, tan in an iPhone SDK? I tried tan (45) but it gives wrong output? Any help? Most math libraries do not use degrees.

windows mobile - Get a "sqlceqp35.dll" error when debugging but not when running deployed code -

Problems with our current Windows Mobile Project during recent debugging. When trying to debug the code, it throws an exception to the open command on the connection of the local database. The message is "A SQL Server Compact DLL could not be loaded. SQL Server Compact Reinstall Edition. [DLL name = sqlceqp35.dll]" . Instead, in the context of the same file, there is an unknown error instead. If you execute binary, on the device deployed during debug, it runs without problems. I 'have tried: Restore both nets and sqlce on the device. The "special edition" on the reference properties has been changed in the project. The hardware I am using is a Motorola MC70 that has Windows Mobile 5.0. EDIT: I can debug it when I try to do it on MC75. MC70 got OS version: 05.01.0478 and MC 75 05.01.0478. My best estimate is that it is related to anything OS version or actual device. It was probably a memory issue, even when there were slight problems in the a

Page unload event in asp.net -

Is it possible to write page_upload events of code similar to page_load event? I wanted to call a method on unloading the page. How do I get it? with AutoEventWireup which is turned on by default on a page Just add the pages you have prepared with page _ *** event * and connect with ASP.NET for you. In case of opening the method signature: Secure Zero Page_download (Object Sender, Eventarges e) For details see .

ASP.net MVC Controller Actions and Web Methods -

I am in the ongoing discussion about what to use in connection with calling "administrator actions" in particular What is the best terminology for what we are talking about controller action which only accept 'POST' actions. One of my colleagues calls them "web methods", I suspect that this is due to the old days of web services. So I believe that: Is it correct that the operation of the controller, which accepts the 'POST' verb as a web method? Any consideration greatly appreciates. Distinguishing is not very clear PUT , MERGE > How are you going to refer to the method that accepts DELETE or other action (seems REST)? We call these "post-action", "mirage-action", etc. This is how it is said in both ASP.NET MVC framework and gives additional information about how these actions work.

svn - How do I tell subversion to always select my local version for conflicted merges on a specific file? -

I'm looking for a way to specify that the subset of files did not change when merged with modifications in a particular branch Should I go, using subversion is asking me any single question. What do I have to do Maven pom.xml files, which are made of the branch and updated for each release from the branch when I switch back from the branch to the trunk, then in these files I Do not want to merge the change (and they will really be in conflict because version numbers have also been updated on the trunk). Is there any way to tell any kind of splitting to accept the basis for the basis of these files, as provided in the answer form, for the same effect? Someone has asked another, but put it in the context where the question was asking the wrong code (Generated Code). You can either set the script to svn: Mergeinfo property To keep it on file, leave the merger of the changes made on this branch. (See) When I combine Maven projects, I use TortoiseSVN, and uncheck the ch

openexr - Using EXR images in OpenCV -

I am currently working on a project with OpenEXR and I want to apply some Blob detection algorithms. To do this, I thought I could use OpenCV because it says in the documentation that it can open the OpenXR format file. I have to install and work all the libraries because I am doing other things. I open a simple jpg file with openCV cvLoadImage. it works fine. But when I try to open any .exr file it does not seem to seam it. I get a gray window where the image should be displayed. Has anyone done a test to work with OpenCV and OpenXR libraries? Did they work for you? What do you think? Thank you. Yes, I did, I posted a Willow garage at a ticket in the OpenCivi project and they all Made the necessary changes, now you can use OpenCV with OpenXR first! Great My HDR tone mapping algorithm will work again, do a good programming now; O) Alex

Access specific file in Flash with fileReference -

I need to create a flash applet that automatically captures a specific file on a user's system (iTunes XML file) Takes it and uploads it on my server so far I have been able to complete this file with the user, but I was wondering how to upload a specific file without any user that the user should go to It is without locating. I believe it is possible to consider the effect of security.

ranking - Voting algorithm: how to calculate rank? -

I am trying to understand a way to calculate the rank. It now only takes the ratio of the win / losses of each individual entry, so one won 99 out of 100, it has a 99% winning rank, but if one entry has won 1 of the total 1 vote. , Then it will have a 100% winning rank, but of course it can not be more than 99 times the person who wins. What would be a better way to do this? Depending on how you want to create it, use the Aloe system chess (or something similar) ) What you want to do: Even if a person has won 1-1 matches, then the rating will be very low, opponents, for example.

switch DLL based on environment - .net -

I want to release a DLL that includes some classes for the use of other developers. Behind these sections is another DLL which is contatain of the referenced functionality. In the development environment I want this backend DLL development oriented function, but when the code migrates into the production environment, I want the backend DLL to be the real one. What is the best way to switch backend DLL? Thanks for any help. Use a .config file to run the assembly name and empty / missing backend version During loading [More] It is easy to do this with another assembly in which the interfaces are shared.

oop - what's interface vs. methods, abstraction vs. encapsulation in C++ -

I'm confused about such concepts when I talked with my friend. My friend is of the opinion 1) The intangible net virtual function is about. 2) The interface is not a member function, but the interface is the pure virtual function. I have found that in the C ++ primer, the interface is the type of operation that is the type of data support, so the member functions are the interface I My opinion is 1) About intangible interface and implementation, 2) There are member work interfaces. 2) The difference between the interface and the member functions. 3) The difference between intangible and encapsulation. I think your main problem is that you and your friend use the word "interface" -Using different definitions, so both of you are correct in different ways. You are using the "interface" everyday in the sense of "with some inter-operated", like "the interface between my computer and my keyboard is USB" or "vacuu

actionscript 3 - as3, doing tasks in certain order -

मेरे पास यहां एक सरल कार्य है। import fl.transitions.Tween; आयात fl.transitions.easing। *; फ़ंक्शन goBack (e: MouseEvent): शून्य {var backAlpha: ट्विल = नया ट्विव (मूवी क्लिप (माता पिता)। ब्लू ओवरले, "अल्फा", स्ट्रॉन्ग.शक्तिओट, 1, 0, 2, सत्य); मूवीक्लिप (पैरेंट) .gotoAndStop ( "घर"); } BtnBack.addEventListener (MouseEvent.CLICK, goBack); यह अभी क्या कर रहा है: जैसे ही बीटीएन बैक क्लिक किया जाता है, यह "होम" लेबल पर जा रहा है, जिसका अर्थ है कि यह पूरी तरह से अल्फा भाग को अनदेखा कर रहा है। < P> मुझे यह करने की क्या ज़रूरत है: अल्फा भाग पहले करना है, उसके ठीक बाद के पूरा होने के बाद, दूसरे भाग में जहां यह "होम" फ़्रेम पर कूदता है। धन्यवाद, वेड के लिए दस्तावेज़ीकरण देखें विशेष रूप से, प्रस्ताव फ़िनिश इवेंट देखें असल में, आप क्या करना चाहते हैं ऐसा कुछ है: आयात करें fl.transitions.Tween; आयात fl.transitions.easing। *; फ़ंक्शन goBackStart (e: MouseEvent): शून्य {var backAlpha: टवीन = नया टिविइन (यह पीपीआर। ब्लू ओवरले, &quo

c# - Handler for Custom Attached Event -

I am using a custom attachment event that I have created and I am trying to add a handler to this event Public partial square main window: window {public main window ()} {initial timeliness}; } Private Zero dataGridTasks_Drop (Object Sender, RoutedEventArgs E) {}} XAML Code Here & lt; ListView util: DragDropHelper.Drop = "dataGridTasks_Drop" & gt; I have this error in order in InitializeComponent type 'System.String' can not be changed to type 'System.Windows.RoutedEventHandler' The object of Anyone knows why I am getting this error? Thanks! My Event Code Public static read-only RoutedEvent DropEvent = EventManager.RegisterRoutedEvent ("Drop", RoutingStrategy.Bubble, typeof (DropEventArgs), typeof (DragDropHelper )); Public Static Zero AddDropHandler (Dependent Object D, Routing Avent Handler Handler) {UIElement uie = D as UIElement; If (UA! = Null) {U.A. Edhandsler (Dragafhalper. DoPevent, Handler); }} Public Stati

Worth learning Ruby if not using Rails? -

So I took a quick look at Ruby a few days ago. At first I was very surprised by some such things which actually seem to make the programmer's life easier. (Use of block, object model, ...) But then this is a big problem: no one is using Ruby without the rail! The #Ruby (-lang) channel is dead , people are only talking in #Riles I want to be with Web for web development, there is no question, But Really uses Ruby as a language for general purpose and not for web development? There are Ruby (good) libraries for the "Offline" application? It may be subjective, but should I just be living with Python for non-web scripting? I do not want to know Ruby for knowing that this normal purpose portion is really dead Best regards, Lama I like Python for general scripting and calculation. I feel a little smoother to use Ruby, though Python has its market in non-web applications. There are some good sales points without the Ruby railway (note that I do not use

c# - How to save file in SQL Server database if have file path? -

I am creating some C # desktop applications and I have to save the file to the database. I have come up with some file selector who is giving me the correct path of the file. Now I have a question about how to use that file using its database and its path. filestream fs = new filestream (filename, filemodel, open, fileaccess read); Binaryreader BR = new binary reader (FS); Int numBytes = new FileInfo (fileName) Lamps; Byte [] chef = br.ReadBytes (numBytes); Then you upload it to DB in something else, I think you are using a varbinary column (Blob) Are

how to drop all indexes of a sqlite table -

I have a simple question: how to leave all indexes in a SQLite table? I have several indexes with random names. Regards, Pentium 10 I do not know that all of you You can leave the instructions in an order - IMO you have to leave each by the name. Also see: For additional information, see this:

.net - Is the C# language a Microsoft product? -

I am certifying my thesis and I am thinking that how should I describe that language C # and Microsoft C # and Microsoft (C #) C-Secret (C #) C # . Net Framework Combination, or something else? The C # language is an ECMA standard introduced by Standard Hewlett-Packard, Intel and Microsoft and It was developed within Microsoft. The standard does not use the term "Microsoft C #", so I initially label it as " " C # Programming Language developed by Microsoft "and later I only call it " C # " or "C # programming language" , as standard ().

visual studio - VS C#: Prompts me to resave, then refuses to open the file -

Sometimes when I hit save (ctrl + s) or just save all, Visual Studio C # let me edit the file Inspires for the past. I can not save it in the form of it, because it already exists (and it should be), and if I save it as something else, then VS I will try to create the file every time. If I turn off Visual Studio and try to access the file with Notepad, this gives me the "Access denied" message. Since I started several things again, is it starting to shut me off any known reason? I am using Windows Vista (logged by 32-bit and administrator account). is messing with some file, Visual Studio is not using SysInternals to detect it What is the usefulness for this Pop up the network cable to block colleagues with strange expressions.

Set Global Variable in jQuery -

वैश्विक चर सेट कैसे करें $ (document) .ready (function () {$ ("A.action")। क्लिक करें (फ़ंक्शन (इवेंट) {var tempResponse = ""; $ .get ("", फ़ंक्शन (प्रतिक्रिया) {tempResponse = response;}); चेतावनी ("प्रतिक्रिया" + tempResponse) ;} मैंने घोषित ग्लोब चर tempResponse घोषित किया है और मैं कॉल वापस फ़ंक्शन प्राप्त करता हूं। tempResponse = response; लेकिन जब तक मैं प्रतिक्रिया को देखने के लिए कोई भी डेटा प्रदर्शित नहीं करता। मैं भी इस समाधान का प्रयास करता हूं। मैं परिवर्तनीय घोषणा को बदलता हूं $ .tempResponse और सेट स्क्रिप्ट बदल $। TempResponse = response; लेकिन यह काम नहीं करता है। ऐसा क्यों हो सकता है क्या हुआ? क्योंकि आप चर से पहले चेतावनी कहते हैं Ctually सेट याद रखें कि जब आप कॉल करते हैं तो आप एक एसिंक्रोनस क्वेरी कर रहे हैं $। Get । इसके बजाय इसे आज़माएं: $ (दस्तावेज़) .ready (function () {$ .get ('/ somescript.cgi', फ़ंक्शन (प्रतिक्रिया) {चेतावनी ('प्रतिक्रिया' + प्रतिक्रिया); });});

iphone sdk 3.0 - passing user from UITableView to UIWebView based on selection -

I am trying to get the user to go to the interface based on my cell selection in UITableView i.e. , They are taken to view model 2 with UIWebView. UIWebView then displays the local file, cell1.html. Currently, I have managed to use the placeholder: selected CallText.text = selectedCell; How to display the name of the selected cell, how can I access it directly on the UIWebView, stick to UIWebView in the interface and link to its use: UIWebView * MyWebView = [[UIWebView alloc] initWithFrame: frame]; NSBundle * Main Bundle = [NSBundle Main Bundle]; NSString * stringUrl = [Main Bundle Pathfosser resource: @ Type of "Selected cell": @ "HTML"]; NSURL * baseUrl = [NSU file file path: string URL]; NSURLRequest * urlRequest = [NSRR request request with url: base URL]; [MyWebView loadRequest: urlRequest]; My second problem is that they have free space in some cell names, and for simplicity, I would like to ensure that there is no free space (in fact, is it emp

C# does not exist in the current context -

सार्वजनिक शून्य डस्टफ () {सूची & lt; लेबल & gt; RpmList = नई सूची & lt; लेबल & gt; (); RpmList.Add (label0x0); RpmList.Add (label0x1); RpmList.Add (label0x2); आरपीएलआईलिस्ट [0]। बैकएल्लोर = सिस्टम। ड्रॉइंग। कॉलर। येलो; } सार्वजनिक शून्य फॉर्म 1_लोड (ऑब्जेक्ट प्रेषक, इवेंटएरग्स ई) {डस्टफ (); आरपीएल लिस्ट [1]। बैकएल्लोर = सिस्टम। ड्रॉइंग। कॉलर। येलो; // & lt; --- यह एक} मैं अपने सभी अन्य वर्गों से डस्टफ () विधि के अंदर सूची कैसे प्राप्त कर सकता / सकती हूं? DoStuff () विधि का उपयोग Form1 लेबल्स। आपको

math - Calculate distance between two x/y coordinates? -

I would like to calculate the distance between two x / y coordinates on the surface of. Therefore, this is a common grid whose asset is, whose corners and sides are 'connected'. For example, on a 500x500 grid, (49 9, 499) is connected to the point (0, 0) and the distance between the example (0,0) and (0, 495) then is 5. Is there a good mathematical way to calculate this? So you are looking for Euclidean distance on the two-dimensional surface of Torus, I am gathered. sqrt (minus (| x1 - x2 |, w - | x1 - x2 |) ^ 2 + min (| y1 - y2 |, h - | y1 - y2.) ^ 2) Where w and h are grid width (x) and height (Y) respectively.

python - Enabling overriding of app template in django? -

I am writing a simple site to display some data, and I found an app called "statistics" That is, I want to write the default template (stats / templates / places), but I want to overdry them to be the template for the admin app in the same way. IE: If I put a statistic / view html in my project's template directory, then it will be used instead of one in my app directory. I can not seem to understand how to do it. Before this app can be found before finding the project TEMPLATE_DIRS TEMPLATE_DIRS? EDIT: Problem found, using the OS module saw anyone's tutorial to set up template directories. They were: TEMPLATE_DIRS = (os.path.join (os.path.basename (__ file__), 'template')) Which Should be: TEMPLATE_DIRS = (os.path.join (os.path.dirname (__ file__), 'template')) < P> Before you file system loader app_directories loader Your TEMPLATE_LOADERS settings. TEMPLATE_LOADERS = ('django.template.loaders.filesystem.load_t

How to include font to clickOnce installation -

Whether there is a way to include a font for the clickon installation of a Winform application in Visual Studio. The program that we are developing requires a font that is not installed in windows by default. You can load the font in a file and see it is loaded without installing it on the computer and

iPhone, Where do I have to save user generated files if I want them to stay there after an app Upgrade (new release)? is Documents directory good? -

I have an app that lets the user record their audio so far I am saving those files in the document directory . My question is, if I release a new version of that app, will the user remove the recorded files? Is there a better place to store user-generated audio files? Use NSUserDefaults for data that remains after the app upgrade? thx NSUserDefaults is the storage settings ( key-value coding < / Em> Objects of compliant classes) Other data Files that you must store in the Documents folder, which are alive between updates (if you do not delete it yourself, then surely :)

sql - PostgreSQL: purge all tables -

संभव डुप्लिकेट: डीबी में सभी तालिकाओं के सभी अभिलेखों को नष्ट करने का सबसे तेज़ तरीका क्या है, यह मानते हैं कि उनके पास बहुत अधिक डेटा नहीं है (कुछ टेबल में कुछ रिकॉर्ड हो सकते हैं लेकिन अब और नहीं)? मुझे विश्वास है कि संरचना डंप से डेटाबेस बहुत लंबा है। तालिका नाम 1, नाम 2, ... कास्केड तालिकाओं के सेट से सभी पंक्तियों को जल्दी से हटा दें TRUNCATE प्रत्येक मेज पर एक अयोग्य जुर्माना के रूप में इसका एक ही प्रभाव है, लेकिन चूंकि यह वास्तव में तालिकाओं को स्कैन नहीं करता है, यह तेज़ है यह बड़े तालिकाओं पर सबसे अधिक उपयोगी है। यदि आपके पास बहुत सी तालिकाओं हैं, तो आप तालिकाओं की सूची के लिए क्वेरी जान सकते हैं और गतिशील रूप से त्रिकोण क्वेरी का निर्माण कर सकते हैं, लेकिन थोड़ी सी तालिकाओं के लिए आप केवल नामों को हाथ से लिख सकते हैं। सभी तालिकाओं को चुनने और एक क्वेरी को गतिशील रूप से चलाने पर जानकारी के लिए देखें दिया गया उदाहरण grantall के लिए है लेकिन विचार समान है।

sql - Returning rows that has matching record in another table -

I have table students with student ID and student names. I have table events with table id, student ID and event. Now, I want to write a query that will return only the rows from the student table, in which the student ID is present in the event table. I'm running MySql 5 +. Join and besides you you can also use EXISTS

java - Change Spring email settings based on dev/test/prod mode -

I often test my application with a copy of a live database, but not to do any work Be careful, it would be great to have a way of configuring spring to send an email to a user, when I am in Dev or Trial mode, no email will be sent to real users. Ideally, I would like all those emails which should go to the user rather than the mailbox I can check. And I do not want to change any code to do this, just XML config files. I am already using Property Placeholder Configurator and I am reading in separate property files, if I am running in production, test, or dev mode Based on a JavaMailSenderImpl configurable. I am also using simple mail message to create a template from this address. Ideally if I am running in Dev or in a test account, all the outgoing email addresses will be rewritten in the test mode. My first thought was to use a separate SMTP server for Dev and Trial. But then I have to manage another mail server, and it needs to customize it so that it will not send mail any

jquery - watermark that is deleted first on keypress? -

There is a watermark jquery plugin that does not remove the watermark text while keeping the text in focus, but for the first time the watermark text Deletes the user typing something into it? Then the first watermark will also appear when the first text field is automatically selected. If you can not find the exact plugin you are looking for, it may be easy to manipulate needed. For example, the actual clear message event is as follows: input.focus (clear message); Input.blur (insertMessage); Input.change (insertMessage); You can make changes just to say: input.keypress (clear message); Input.blur (insertMessage); Input.change (insertMessage);

html - What is the best accessible and W3C valid way to code a one simple search input box with image button? -

What is the best accessible to code a simple search input box with image buttons and W3C HTML 4.01 strict valid way Accessible and W3C HTML 4.01 strict valid both. & lt; Span class = "search" & gt; & Lt; Input type = "text" ... & gt; & Lt; Input type = "picture" .. & Gt; & Lt; / Span & gt; Where they are the only non-hidden information in the form (submit-on-enter behavior). .search {border: 1px solid silver; Display: Inline-Block;} . Search input {limit: 0; Background: transparent;} ... search or move (-moz-) border-radius and background. Search.

c# - LINQ-To-SQL Business-Layer Object DataContext -

Basically, I was using my datacentact object as a global singleton. While using this in ASP.NET, I was running into disputes due to the multi-threaded nature of ASP.NET. So I searched something for better options, and the "per object" scenario. Therefore, in each of my objects, there will be local datacontact for the class. So I have found most of these, but my question comes in an attempt to get an example of the object. Since there are examples of ways in all methods, I have to meet an example of class first. Customer customer = new customer (); Cust = cust.GetCustomer (PrimaryKIID); // data is obtained using LINQ-to-SQL This is just a way to call back a real example for me to make an example of class Looks redundant Is this the right way to do it? I think there is a different way that still follows the method in his blog post that uses Rick. Sample class code: public partial class customer {MyDataContext db = New MyDataContext (settings. MyConnection

javascript - jQuery External RSS Feed Parser? -

I'm looking for a decent jQuery feed / XML parser and good plugins like JFID and Jepers (some of them) . None of these supports are able to retrieve external feeds, however, whatever I am doing after that. Very sure that the plugins themselves instead of jQuery $ by this). Is there any type of hack that I can use to override jQuery, or is there a raw Javascript option? Better still be a better plugin, but whatever I have found, it also does not support it. Thanks Try this tuturial:

Moving widgets in runtime on Android -

I have a simple demo with two buttons, they are placed in the upper and lower part of the screen with a relative layout. . When I click on one of them, I want to switch them to locations. What is the best way to do this? This is my rage / layout / main. Xml is: & lt ;? Xml version = "1.0" encoding = "UTF-8" & gt; & Lt; RelativeLayout xmlns: Android = "http://schemas.android.com/apk/res/android" Android: layout_width = "fill_parent" Android: layout_height = "fill_parent" & gt; Android: layout_alignParentTop = "true" /> & Lt; Image button Android: Android: layout_width = "200dp" Android: layout_heat = "wrap-content" Android: Android: Android: layout_alignParentBottom = "true" /> & Lt; ImageButton Android: Android: layout_width = "200dp" Android: layout_height = "wrap_content" Android: src = "@drawable / icon 2" & lt; / Relativ

C#/.NET library for source code formatting, like the one used by ?

I'm writing command line tool to convert markdown text to html output, which sounds quite easy. However, I'm thinking how to get good syntax colors for embedded code blocks, such as any used by stack overflow. Do anyone know either: Is the library stack overflow Or if there is a library that I can easily reuse Can I use it? Actually it is one of the few "wits" that uses stack overflow, trying the best to use the language in the basically using the right keywords to choose is. Actually, what I want is for my program, such as to handle the block: If the truth (a == 0) comes back is; If (A == 1) wrong return; Sharp Markandow, I'm using the library, by default, outputs as a simple pre / code html block, without any syntax color. I want the same types of handling as formatting on stack overflow; blue "return" keywords in the above version are for example. Or, after hmm, after adding the code example after checking the source of this sta

terminology - What does it mean to vacuum a database? -

What is the function of clearing the database? Is this operation supported by all modern database software or just a few people? Databases that use to differentiate transactions from each other to periodic rows of old The tables need to be periodically scanned to remove copies. In MVCC, when a line is updated or removed, it can not be recycled immediately, because there can be active transactions, which can still see the old version of the row. If this is the case, instead of checking it, which is Can be quite expensive, old rows are considered to be relevant. The process of retrieving space becomes postponed until the table is blank, which can be started automatically or explicitly, depending on the database.

Writing a custom MSBuild task which contains arbitrary XML -

Is this possible? And if so, should I recover the raw XML within the execution method? & lt; My Tasks & gt; & Lt; Arbitrary Xml = "here" /> & Lt; / MyTask & gt; I doubt there is no answer. you are right :) :) You have to put your XML in the property And then it needs to be sent to work because all other qualities are passed in the work.

.net - How do I transition from mainframe programmer to client server programmer? -

I was an Adabas / Natural and Cobol mainframe programmer for 16 years ending in 2002. I have a huge experience analysis, design, development, testing, implementation and documentation of online and batch applications. I want to go back to software development after a gap of 7 years to raise my children. I am told that the demand for NET language these days is very high. Can someone advise me in which class I should get concrete knowledge of NIT languages? Can I start with ASP.NET or VB.NET, and which version? Or, for one of the advice, could anyone have to upgrade their programming skills to the mainframe environment in a client-server environment? Thanks in advance for any and all input! I can not suggest, but there are at least three main types of programmers: "Get it People", which will be the code in Rail, Grails or php "People of the framework", which will give code in Java and create design patterns with everything ( With pros and cons). Ther

save javascript function to mysql -

How can I save mysql from the javascript function ?? var macs = {GetMacAddress: function () {document.macaddressapplet.SetSep ("-"); Return (document.macaddressapplet.getMacAddress ()); }} Document.write (macs.getMacAddress ()); Someone told me to use Ajax, but ive tried to find out but found nothing. Nobody would be good to help me. AJAX The way to do this is that you can do this with vanilla javascript, but this is dirty. Personally, I always use a library for which my favorite choice is mine. Then your code goes: & lt; Input type = "button" id = "sendmac" value = "send MAC address" & gt; With : $ (function () {$ ("# sendmac") click (function () {document.macaddressapplet.SetSep ( "-"); $ .post ("savemacaddress.php", {getMacAddress: document.macaddressapplet.getMacAddress ()});});}); savemacaddress.php: Assume that you are using PHP.

integral - C++ Integration Solution using Riemann Sum : Loses validity for greater than 10 partitions -

In an attempt to give a concise solution to an approximation of integral using the sum of Riemann, I ran into a strange problem Gone: If the user requested a partition number of more than 10, the program failed any idea? Here's the code: // Integral #include & lt; Algorithm & gt; # Include & lt; Iomanip & gt; # Include & lt; IOS & gt; # Include & lt; Iostream & gt; # Include & lt; Stdexcept & gt; # Include & lt; Iomanip & gt; Using std :: cin; Using std :: cout; Using the Std :: endl; Int func (int x); Int main () {cout & lt; & Lt; "Please enter the left and right border:"; Int left, right; Cin & gt; & Gt; Left & gt; & Gt; right; Cout & lt; & Lt; "Please enter # (& gt; 0) from the partitions:"; Int r; Cin & gt; & Gt; R; Int width = (right - left) / R; Integer = 0; For (int i = 0; i Using partition size greater than 10 is not your actual problem. You are usi

html - Python Qt: Qprinter not defined -

I am trying to run the printer output from the HTML document. Here's one small function to do this: def callPrinterHtml (auto, document): self.printer = QPrinter () self.printer.setPageSize (QPrinter. Letter dialog = QPrintDialog (self.printer, self) if dialog.exec_ (): document.print_ (self.printer) Although the message is pop up: self.printer = QPrinter () Name Error: Global Name 'QPrinter' is not defined The printer is clearly inside the definition definition function. So, what am I missing here? All comments and suggestions are highly appreciated. Did you import the module that contains the QPrinter? Using an Import Directive? Is the QPrinter containing the module in your dragon path?

java - how to append a list in href url? -

I want to add a list to URL which is an href, how can I do this and how do I code it .getParameter () ? Or a complete bean object in the URL? Use the same name for each item, create something like this: http: / /example.com/somepath?amt=1&amt=2&amt=3 . And then you can use HttpServletRequest.getParameterMap () . Or alternatively, you can use the HttpServletRequest.getParameterValues ​​(name) . You may want to use the latter by specifying the name, for example, string [] amts = request.getParameterValues ​​("amt"); By the way, getParameterMap () gives you a map object in the form of the parameter names as it will have all other request parameters as well as your 'AMT'. Map map = request.getParameterMap (); String [] amts = map.get ("AMT");

javascript - Detect target treenode when dragging items to the TreePanel instance -

I have gridpanel and trippanel examples. Elements of gridpanel can be drawn in the paperpanel but I did not know that these trees How nodes get these dragged items. I start Paid Panel DD with the following code (Extractory method of the class obtained from the tree panel): initDD: function () {var treePanelDropTargetEl = This.getEl (); Var treePanelDropTarget = new Ext.dd.DropTarget (tree pedal-droop-target-AL, {ddGroup: 'ddgroup-1', notified: function (ddSource, e, data) {// do something with data, here's the goal tree node Need to know the return;}}); } How can I find out which item is dragged into the "Notified" handler, which can take e.getTarget () and calculate the node, but I do not like that method. If you use TreeDropZone (instead of DropTarget ) You will have more tree-specific options and events like onNodeDrop . Note that there are several ways to do DND Ext JS.

ctypes - posix_memalign within python -

I do not understand why the following does not work import ctypes From ctypes.util import find_library libc = ctypes.CDLL (find_library ('c')) userpointer = ctypes.c_void_p sizeimage = 320 * 240 * 2 if libc.posix_memalign (userpointer, libc.getpagesize (), size) = 0: raise Exception ('isom') I'm trying to capture using v4l2. I can not allocate the memory ctypes.addressof (userpointer) tried to pass I tried cvvoid_p to put userpointer but still nothing. In your code, you have two problems: You can use the userpointer instead of an example ctypes.c_void_p < Em> type , and you are going through zero * which is directly posix_memalign to userpointer, instead of zero ** that requires posix_memalign The following is what you want to do: < Code> ctypes.util import from import ctypes import_library libc = ctypes.CDLL (find_library ('c')) userpointer = ctypes.c_void_p () sizeimage = 320 * 240 * 2 if libc.posix_memalign (ctypes.byref (us

asp.net - Will a REST interface slow down my search engine? -

To get a search website quickly created, I plan to divide work between two teams: Creating a search engine and creating a web UI (mobile / desktop) is my plan to build search engines as a set of services that rely based on NEAT 3.5. The UI can be created using some other technology. Question: Is there a possibility of a display interface? What is REST to become an obstacle in this scenario? It was not clear from your post that you were calling the customer directly from your HTML UI, Or were you calling server-to-server rest on back end? Therefore I will cover both cases below. If you are being charged between your client UI and your server, then using reverse or other HTM remote viewing approach is relatively less - it takes time to execute the search at the end of the back And then send the results back to the client and reduce the effect of the rest of the call. If you want to improve perf, focus on client-side networking tricks (such as HTTP compression, proper caching

javascript - How to hide the URL address which shows on the bottom of the papers when printing something from a website? -

Print a web page without showing the URL at the bottom of the printed pages? Or hide the page number if possible, which shows at the top? This is a browser setting, configurable from the browser (special which Depends on the browser) and the page is not in the control of the authors.

Rails CanCan Auth Problem -

I am using the Cancun authorization plugin () for my application and have done great work till now. I set it up like this: The eligibility of the class includes CanCan :: Ability def initialize (user) user || = User.new # guest user if user.role == "admin" can: manage, all others can: Read, all end end end this gives me some users Administrators are allowed to nominate and only they can use writing works. Now I want to take this one more step and make it so that people who are not logged in all (current user / user_session is not present) ) Can not access some controllers of the site Not. I know that it should be some type of Alsif, which should be finalized for the user with the middle part of the code and everyone else, however, I did not understand the best way to go about setting it up . Anyone familiar with cancun and how to recognize such a situation in the best manner has some ideas. Thanks guys, every bit helps me to know more about rail and development in g

php - How preg_match works exactly? -

I have written a simple task to check whether the sender string should be "valid" or not. // This works without issues validate_email ($ value) {return preg_match ("/ ^ [^ 0-9] [A-z0-9 _] + ([[[[[ [A-z0-9_] +) * [@] [A-0-9 _] + ([.] [A-0-9 _] +) * [.] [Ed] {2,4} $ / ", $ Value); } // This function does not work validate_string ($ value) {return preg_match ("([^ [< If I send an email to validate_email the first function works well, it is used to validate me, I can get back 1 or 0 if not. Do validate_string with all strings, but without ? = & Lt; > / \ . If I check the function, then I return 1 in any way, why? Valid_string ("Tonino"); // Return 1 ok validate_string ("ton \ ino \"); // Why return 1? Validate_string ("tons? Ed = 3"); // Why return 1? ^ Around ([^ should not mean characters after it ( Or There are many errors in your code except that "ton \ ino \ " is not a va

Is MATLAB faster than Python? -

I want to calculate the magnetic field of some conductor and I want to use 1000x1000x1000 matrix. Before I use MATLAB, but now I want to use Python. Python is slow to MATLAB? How can I make Python faster? Edit: The best way is to calculate the large array with C / C + + and then move them to Python. I want to imagine it. EDIT2: Which is better in my case: C or C ++? You can find some useful results below this link , By introduction, Comparing knitting with NumPy, Pyrex, Psyco, Fortran (77 and 90) and C ++ to solve the equation of Loopless. This also compares MATLAB and shows the same speed while using the python. Of course this is just a specific example, your app may allow better or poor performance. There is no other harm in running the same test on both. You can also compile NumPy with customized programs such as some / routines that should be of comparative speed for MATLAB. I'm not sure if NumPy downloads have already been made against it, but I thin

How to know my Android application has been upgraded in order to reset an alarm? -

I noticed that an alarm is disabled when this alarm-setting application has been upgraded is this true is? So far, I used to know if this is, I used the shared context with a FIRS_RN key If I do not get this key, then I enable the alarm and set the FIRST_RUN to false, otherwise I do nothing. But I also noticed that these preferences are intact between the app upgrade! After the upgrade, the FIRST_RUN key is already incorrect, so I do not do anything, while my alarm should be enabled. How to manage such a matter? Thank you in advance I never tried it, Code> About creating a broadcast receiver? What does that matter? I have thought of trying it before, but I am not sure if this is the problem of chicken and egg (for example, what is the intent before receiving new upgraded applications It is possible?). Try though.

Any tool(s) for knowing the layout (segments) of running process in Windows? -

I am always keen about How does the process look in memory? What are the different segments in it? How will the program (on disk) & amp; Are the processes related (in memory)? My previous question: In my search, I finally got an answer. I found this great article that cleared most of my queries: In the above article, the author shows how to obtain different sections of the process (LINUX) and; He compared this with its ELF file, I am quoting this section here: Motivator to see the actual layout of the process segment? We can use the file / proc / maps to reveal it. PID of the process that we want to inspect Before proceeding, we have a small problem here. Our test program runs so fast that before we can dump related / proc entry. I use gdb to solve it A console (or a terminal emulator such as xterm) do this: $ gdb test ( Gdb) main breakpoint 1 0x8048376 at (gdb) r breakpoint 1, 0x08048376 in main () right here, open another console and find the progra

How do I serialize data with Sequel and Ruby? -

I have a table that should store IDs, a name and a hash. How can I serialize the hash? (I am using it as Ruby and ORM). If you use Sequel :: Are using, should do the trick.

asp.net - Check under which account resources are accessed -

Is there any way how I can check the program, which user is used when my application resources Reaches? I have a production system that can only use our administrator. Sometimes it is unclear what part of system is wrong: Let's say logging is not working. It is always possible that web.config is incorrect, but the directory is sometimes unreachable. I'm not talking about User.Identity. You can return the underlying system account that you are running: Answer Unless you are using impersonation, it should always be ASP.NET process user.

c++ - What Linux library supports sockets, ioctl calls, tuntap, etc...? -

रनटाइम लाइब्रेरी का नाम क्या है जो लिनक्स नेटवर्क इंटरफेस, सॉकेट, ट्यूनैप्स, नेटलिंक इत्यादि को लागू करता है ...? उदाहरण के लिए जब मैं एक यूडीपी सॉकेट बना और नेटवर्क इंटरफेस जानकारी लाने के लिए एक ioctl कॉल करता हूं, तो कौन से पुस्तकालय वास्तव में कॉल करता है? ज्यादातर लिनक्स डीएसटीआईआरबीएशन पर संबंधित * .so फाइलें क्या हैं? ये लाइब्रेरी कॉल हैं, और जैसे कि libc लाइब्रेरी में हैं।

user interface - creating a nice GUI in WPF -

I need to create a desktop CAD app that should be a good modern GUI. I'm thinking of creating a WPF application so that I have a rich user interface. Can anyone suggest me a well-designed desktop application GUI framework in WPF? I found some cool GUI in this video but it is not certain about the controls used in their application. Did anyone have an idea on which he had control? Is there a property grid control in WPF? I tried to use the grid in windows form, it seems difficult to optimize this grid to meet my requirement. It shows all the properties of the object directly from the very base class to the most derivative. With WPF, there is a lot more possible. You will see a wide variety of different applications due to this fact, as opposed to the Windows Forms, WPF can be styled like a template and HTML. Real designers can easily have a look and feel which is very hard to complete in a Windows form. Naturally, since it is very flexible, the attitude of highly styled a

c++ - gcc reverse_iterator comparison operators missing? -

I have a problem using Constant reverse iterators on non -content containers with GCC. OK, only some versions of GCC #include & lt; Vector & gt; # Include & lt; Iostream & gt; using namespace std; Int main () {const char v0 [4] = "abc"; Of vector & lt; Four & gt; V (v0, v0 + 3); // this block ok vector & lt; Char & gt; :: const_iterator i; For (i = v.begin (); i! = V.end (); ++ i) COAT & LT; & Lt; * I; Cout & lt; & Lt; Endl; // This block is GCC 3.4.4 and GCC 4.0.1 vector & lt; Char & gt; :: Compile error with const_reverse_iterator r; For (r = v.rbegin (); r! = V.rend (); ++ r) COAT & LT; & Lt; * R; Cout & lt; & Lt; Endl; Return 0; } This program compile properly and with GCC 4.2.1 (Mac Leopard) and with Visual Studio 8 and 9 (Windows) and with GCC 4.1.2 (Linux) Runs. However, there is a compilation error with gcc 3.4.4 (Saigwin) and GCC 4.0.1 (Mac Snow Leopard). test.cpp: 18: Error: '

java - Disk partition structure -

There is any path in Java (1.6+) to regain partition disk structure ? (For example: NTFS, FAT32, HFS +, or EXT3.) External libraries are allowed. Thanks, Gianni The output of "mount" under OS X includes a file system: : Devices (devfs, locally, assigned) on map / host (nfs) on the / net (autofs, nosuid, automounted) / rabin $ mount / on dev / disk0s2 / (hfs, local, magazine) , Mentioned on the map auto_home / home (autofs, automounted, nobrowse) here / is of type hfs

sql - Querying for tables & columns named as keywords -

एसक्यूएल सर्वर 2005 + मान। भाग ए: किसी भी उपयोगकर्ता तालिका के लिए सिस्टम / आंतरिक / मेटा / जो तालिकाओं / दृश्यों (माफ करना, नहीं एक डेटाबेस निनजा) से क्वेरी करने का वैधानिक तरीका क्या है या कॉलम नाम जो एसक्यूएल सर्वर कीवर्ड्स (जैसे मामला ) का उपयोग करते हैं? मुझे खोजशब्दों की सूची को बनाए रखने में कोई दिक्कत नहीं है अगर यह क्वेरी-योग्य नहीं है, क्योंकि यह केवल एसक्यूएल सर्वर के संस्करणों के साथ बदलता है (सही?)। SQL सर्वर 2005 में उपलब्ध दृश्यों को देखते हुए, मैं आसानी से INFORMATION_SCHEMA.COLUMNS से इस जानकारी की क्वेरी कर सकता हूं और INFORMATION_SCHEMA.TABLES , लेकिन मैं यह सुनिश्चित करना चाहता हूं कि यह भविष्य-प्रूफिंग के लिए सर्वोत्तम स्थान से है। भाग बी: < P> क्या क्वेरी के माध्यम से कीवर्ड की सूची प्राप्त करना संभव है? अद्यतन: एक उपयोगी अवधारणा है, जबकि मैं विशेष रूप से नहीं से बचने में दिलचस्पी रहा हूं कॉलम N / table / etc नामों पर सवाल है क्योंकि मैं एक उपकरण लिखने की उम्मीद कर रहा हूं जो कि तालिकाओं / कॉलम / आदि की जांच करेगा, जो कीवर्

Adding a project reference to an android project -

I'm a C # developer and starting with Android I already have VS I am trying to duplicate some couple applications. This project is made up of 2 executables and 1 common assembly; 2 executables have application specific logic, whereas in general there is centralized form and logic (such as entry form). How do I complete this layout if I am using Eclipse? In Eclipse, the selected project in navigation or Package Explorer view: < / P> Project -> Properties -> Java Build Path Here you can add references to libraries (Jar files which I believe for C # assemblies Are similar in concept) or other projects that you have opened in Eclipse. Then refer to the jar files exported from those projects in those other projects, or those Java build paths for the layout of your program, and the main Android project one where the manifest file of your application is present).

oracle - How to export the result into different tabs of Excel in Toad for Data Analyst? -

Does anyone know that using more than one query in Tuda using report automation, in different sheets of the same Excel workbook How to export data analyzer? Thank you I'm not sure that you can do this automatically with Todd but a little The trick that you can do with Excel. Type the first query and execute it in tod, then right-click on the query result data grid and select "export dataset ...", select "Excel example" under Excel format and click OK Make it open Excel and add a sheet to the data from your query. Repeat this process for the second query and it will add the same document to the same document and fill the data from the second query. After you execute all the questions and add the Excel document to Excel in Excel. If you want to do it completely automatically, then there is another solution that you can use to create an Excel document with several sheets. Purchase third party PL / SQL package, ORA_EXCEL with data from various queri

metaprogramming - Cross-cutting logging in Ruby -

I'm trying to add logging to a method from the outside (aspect-oriented style) puts square AF test "I'm doing something ..." with end and class A # logging! Alias_method: test_orig ,: test def test "log message!" The test_orig end end a = ANU a.test The above work is fine, except that if I ever need to nick the method, then it goes into an infinite loop is. I want something more super, where I can expand it according to its requirement, and with its expansion its parent parent using another option unbound method: class is a original_test = Instance_method (: test) define_method (: test) "log messages!" Original_test.bind (self) .call end end class A original_test = instance_method (: test) counter = 0 define_method (: test) puts counter + = 1 "counter = # {counter}" original_test.bind (self) Kcol end End IRB & gt; A.new.test counter = 1 log message! # = & Gt; # .... irb & gt; A.new.test counter = 2 log messag

c# - Mixing XML and JSON in RESTful WCF without separate methods -

I have a secure WCF service, which can return XML, JSON or JSONP based on arguments, e.g. /service.svc/stuff?format=xml or service.svc / stuff? Format = json & callback = my callback . To do this, I have created a custom behavior, method encoder, and method encoder that prepares JSONP callback and selects the author based on format logic. In the WriteMessage () method of my encoder, I do something like this XmlWriter author = IsXmlRequested ()? XmlDictionaryWriter.CreateTextWriter (stream): JsonReaderWriterFactory.CreateJsonWriter (stream) message. Write message (author); After that, I define my service methods as if they just return to JSON but use my custom binding element: .Json, UriTemplate = "stuff") Public listing & lt; Thing & gt; GetStuff () {...} And it works almost exactly when I ask for XML or JSON, I get something in the right format, but I hope that XML It has not been serialed here as to how XML looks: & lt; Root type = "

biztalk - What could be wrong with this xsd? -

I have an xsd when I try to validate it in BizTalk, these errors: Error BEC2009: The node "schema"; - The schema reference "http://www.w3.org/2001/xml.xsd" is not a valid reference or is not present in the current project. Error BEC2009: The node "schema"; - The schema reference "http://www.w3.org/2001/xml.xsd" is not a valid reference or is not present in the current project. Warning BEC999: 'schema location' attribute can not be resolved Error BEC3001: 'http://www.w3.org/XML/1998/namespace:space' attribute has not been declared. Warning BEC999: 'schema location' attribute can not be resolved Warning BEC1007: The node "schema"; - The target namespace is empty I think this is talking about namespace that looks like this: To ensure that there is enough information to go to it ... EDIT: I came to know which program I agree with XML sometimes works for example. If I make some pure code to validat

forms - Create an Acrobat button to insert the current date -

I am creating a report form in Acrobat and I have a date field that I click on the Form button on the page to update Want to do (What I was thinking was a non-printing button.) Clicking on this button will require Javascript. One option: Enter JS on the Actions tab of the var fld = this.getField (" fld.value = util.printd ("yyyy / mm / dd", new date ()); Hope this helps, Dimitri www.pdfscripting.com