Posts

Showing posts from May, 2015

java - JPA/Hibernate: code based validation of jpa queries -

What is the correct way to programmatically validate the JPA query in Hibernation based on all the institutions, based on all annotation based questions Validate. But how can I call this validation routine on the programmatic JPA questions to check the errors? @Entity Public Square Fu {@Id Public Anti Id; The name of the public string; } main (...) {query q = getEntityManager (). CreateQuery ("Select from E" + foo.class.getName () + "e where e.name = 'x'"); // valid q here} Do not check integration check the hell out of your code, a real Schema similar to its production environment by using the database. Think about it: If you make a wrong type query, then this is an programming bug . What are you going to do with the information? Tell the user that the JPA query is poor? You can actually do all the error log and tell the user "Something bad happened" you will know that when you later check the log, then this is a malformed query ..

c# - What is the accepted pattern for an application that can be run as a service or as a console application -

I have a project that has been deployed as a window service for production. Although it would be useful to run as a console application for local development purposes. At the moment I have a class called ReportingHost which provides my main functionality, and a reporting service called a class which is received from servicebase and I Allows to run as a service. There is also a program class with a main method that calls ServiceBase.Run on my ReportingServiceHost. I think I need to write a ReportingConsoleHost class allows me to run the functionality in the console, then to respond to the command line switch I want to have my main < / Code> to modify and select one or the other. These are two bits that I have trouble with. I tried to use that code, but my app goes out immediately, it does not show a console window and it does not wait to enter before closing. One part of the problem is that I do not have a thorough understanding of these things. A certain patter

c# - Limit the size of a user control at design time -

मेरे पास एक नेमस्पेस Company.UI.Forms जहां हमारे पास एक फॉर्म बेस क्लास है बेसफॉर्म जो कि सिस्टम। विन्डोज.फॉर्म.फ़ॉर्म से प्राप्त होता है। मुझे इस फॉर्म के आकार को सीमित करने की आवश्यकता है, ताकि एक कंक्रीट के रूप में, उदाहरणफ़ॉर्म , से बेसफ़ॉर्म प्राप्त होता है, इसमें वीएस डिजाइनर दृश्य में एक निश्चित आकार होना चाहिए। तयशुदा आकार किसी तरह से ( BaseForm ctor? में] निर्धारित या निर्धारित किया जाना चाहिए ताकि व्युत्पन्न exampleForm और डिजाइनर इसे उठाए। क्या यह संभव है? [संपादित करें] उद्देश्य ज्ञात स्क्रीन आकार के विंडोज सीई डिवाइस के लिए एक पूर्ण स्क्रीन प्रपत्र के लिए एक टेम्पलेट के रूप में आधार वर्ग का उपयोग करना है, जिसके लिए मैं रखना चाहता हूं डिजाइनर में बाल नियंत्रण बाहर। मुझे नहीं लगता है कि इस प्रकार के लिए कोई सीधा समर्थन है परिदृश्य। एक प्रपत्र पर अधिकतम आकार को नियंत्रित करने वाले सभी मान एक बच्चे के रूप में ओवरराइड किए जा सकते हैं। इसलिए इसे संपत्ति के परिप्रेक्ष्य से बाधित करने का कोई रास्ता नहीं है। जिस तरह से मैं सोच सकता हूँ वह आकार बदलकर वि

cryptography - What are the important points about cryptographic hash functions? -

I was reading on MD5 hash values ​​and the accepted answer confuses me one of the main properties, as I understand I have a cryptographic hash function, it is unable to find two different messages (input) with the same hash value. Yet the consensus answer question is why MD5 hash values ​​are not reversible? is because an infinite number of input strings will produce the same output. This seems completely contradictory to me. In addition to this, I suffer from some degree to the fact that the algorithms are public, yet the hash values ​​are still immutable. This is because there is always a loss of data in a hash function, so there is no way to tell which data was removed? What happens when the size of the input data is smaller than the specified output data size (such as the password "ABC" hashing?) edit: Ok, I have to see that this is straightforward: It is really hard to guess input from hash < Strong> Because the input strings have an infinit

Alternative to enum in Java 1.4 -

Because Java 1.4 does not have enums, I am doing something like this: Some class of public class {public fixed int SOME_VALUE_1 = 0; Public static int SOME_VALUE_2 = 1; Public static int SOME_VALUE_3 = 2; Some value of public void (value some value) {// something}} The recipient's caller should pass those 3 values, but he can pass any other int If it were an enum then the caller could pass only a valid value. Should some invalid evacuation be thrown? What are the good alternatives for Java 5? The best used in the pre-1.5 is best described in the book. Although there are some limitations, especially when you are working on different classloaders, serialization and so on. You can also look at the Apache Commons Lang project and John wrote the eponymous en class. It is the implementation of this method and helps in building your own energy.

Minimum operating system requirement for Geneva server? -

जिनेवा सर्वर के लिए न्यूनतम ऑपरेटिंग सिस्टम आवश्यकता की सूची यह अभी तक अंतिम रूप नहीं है। मुझे लगता है कि सर्वर 2003 को 2008 के साथ-साथ समर्थित किया जाएगा। हालांकि, मुझे नहीं पता कि कौन सा संस्करण होगा की आवश्यकता है। एडीएफएस v। 1 आवश्यक एंटरप्राइज़ संस्करण मुझे यकीन नहीं है कि यह एडीएफएस वी। 2 के लिए मामला होगा। 2. आपको एक एसक्यूएल सर्वर डाटाबेस की आवश्यकता होगी। मुझे नहीं पता है कि एक्सप्रेस w / अंतिम संस्करण को काम करेगा या यदि मानक या बेहतर कुछ आवश्यक होगा। आपको आईआईएस स्थापित करने के कुछ घटकों की भी ज़रूरत होगी (उदा।, प्राधिकरण मॉड्यूल, एएसपी.नेट, आदि) .नेट 3.5 सपा 1 और वाईफ यह भी देखें। दोबारा, यह कोई भी मेरे ज्ञान के लिए अंतिम रूप नहीं है।

Does Java have a limit on the class name length? -

This question has come in the spring class, in which there are some big class names. Is there a limit in the language for the length of the name of the class? Identifiers in states are unlimited in length However in practice, file systems The resulting filename will be limited to the length of the file.

http - What is a request-response pair called? -

For example in HTTP, you send a request and receive a response; Is there a name that describes the request-response? I thought about "dialogue" or "conversation", although they show multiple requests-feedback pairs, while I am searching for a word that indicates exactly one. The reason to ask is that I have to give the name of an object which explains the details of both, and the request response looks quite lame. How about "exchange"?

cruisecontrol.net - Does CC.NET detect modification when a build script performs a checkin -

I am doing some development which eventually automates our development and still is a haunting question that I The StackOverflow community can solve for me. My understanding is that when VSS checks for changes in VSS every x seconds properly and if it finds a modified file, then my work will go. I will check AssemblyInfo files for one of my tasks. And version numbers need to be updated. After updating these files, they will be checked back in VSS. Thinking about this solution does not make much sense because in my mind, I am compelling the check for the files I have changed every time. Trigger fire, is there any lapse from me? Is there a way to do this without triggering automatic build on appleinefinine check-in? You can use one to exclude some files from the trigger.

eclipse - How do I debug JSPs on remote JBoss server? -

I am debugging an application on a remote server that uses Eclipse using the Zebes my special problem A NullPointerException In a JSP there is a lot more java code inside the script script, but unfortunately, refactoring is not going to be an option. Finding the throwing line <0> NullPointerException has been incredibly challenging and I'm stuck. How can I debug this JSP remotely? > NullPointerException ? Until I wasolate this issue, I had to end the problem by commenting on JSP lines. You can enable remote debugging on some application servers by adding something like this -Xdebug -Xrunjdwp: transport = dt_socket, address = 5001, server = y, suspended = n On the command line. Then, in your IDE, connect to port 5001 for remote debugging. There are some examples for different application servers. I think debugging JSP can be done easily if you have Javascript compiled JSPs for JSP compile, check your application server's manual or compile your JSP and

iphone - Setting hidesBottomBarWhenPushed leaves bottom bar missing after View Controller is popped -

I have the following setup: A tab bar app is a navigation controller on a tab. My workflow: When I push a new view controller on the navigation controller stack, then I hide the bootbar when the property is delivered. It works great, the tab bar is "pushed" instead of the new view controller slide. Issue: When I pop the view controller and the Root View Controller displays once again, however, the tab bar is finished. The Navigation Controller has increased to fill the space left by the tab bar. Do I need to make a property tab bar again? What I have tried: Manually slip into the original view Hide setting bore the bottom when the Root Navigation Controller To resize the visual property, resize the resolution (just leave a "white space" where tab should be a bit) What "sort" has worked: < / P> If I set the selected index of any other index of tab bar controller, tab bar The cut is I know that it is still "around&

c# - How can I quickly align the controls in a WPF window? -

I saw that WPF Designer works very poorly on aligning controls compared to the Windows Form Designer. In the window below, I'm unable to align each label, so that the text has text in the text box beside the same line. The first label is correctly aligned, but WPF Designer does not give me a snap line to correctly align the second and the third. In addition, I can not align the buttons with labels. The snap line presses the left button of some pixels in comparison to the label texts. I was not getting a quick way to manually align this alignment, either by writing the XAML code, putting the control in a grid, and determining the margin of each control takes time. Do you know a faster way to align controls in the WPF window? Use a grid to exclude your controls, so make sure that someone under your control No padding ... Of course, you want some padding and you make sure that they are all too. A quick Google search returned a basic tutorial:

c++ - The "Self-Factory" Pattern -

I do not know if there is an official name for this, but what I want to call is "self-factory" pattern In this, it happens when an abstract base class acts as a factory for itself. Explain to me: I have FU objects and bar objects in my system, which are used through the interface FuFFFF and Bar Interfaces. I need to give the right type of fu and bar to my customers. The concrete few object is decided at compile time. For example, if you compile on Win32, you only want to create Win32Foo objects, and if you compile on OSX, you only want to create OSXFoo objects and so on. But, on the basis of a solid string, which is intended to make a solid bar object, it is built on the runtime. Now, my question is the best way to implement this plan in one way I use regular factories: shared_ptr Another method I call "self-factories": shared_ptr From the perspective of usability and from the Vastu perspective, what are the pros and cons of each approach?

ios - Issues with NSURL and iPhone SDK 3.0 for placing phone calls -

There is a newly introduced problem with the iPhone 3.0 SDK and how to call it automatically by the NS URL method Is related. It was used that you can call a method (ns URL), you can pass in a string with a urf prefix (telephone: //, sms, etc.) and send messages to the iPhone OS device, Like iTunes, App Store, Phone, SMS, Mail, Safari, etc ... the code is something like this: [openURL: [NSURL URLWithString: @ "tel: // 8005551212"] ]; When the method was called, the phone call will be automatically placed with the iPhone OS 3.0 when the method is called, then the app has a dialog box Asks. It breaks down many existing apps as well as one that we just pushed into the app store for review. Can anyone think of fixing this issue? What I have to do in the present and I am trying to decide what the other ways of handling this new wrench in the works. More about this suggestion that people should contact Apple and let them know about this issue. I also decide that a fri

iPhone StoreKit - invalid product id's -

I'm trying to test in app purchases in the sandbox environment. Code I has done the following to test: In the iTunes Connect, the App Purchase Test user account was created in the "Manage User" / P> I used numeric values ​​and alpha-numeric values ​​for product ID under some 'Manage Your App Craps' in App Shopping Products. The app was loaded on iPhone, go to Settings-> Store and from regular store and went into logging out to test account created in step 1 Set a breakpoint in ( zero) products Request: (SKProductsRequest *) Requested reception: (SK Projects Response *) Feedback Callback All presented product IDs are in the response.invalidProductIdentifiers property. When submitting the request, I tried the exact product ID I created during the first step 2. I also tried prefixing with the bundle ID: NSString * id2 = @ "com.super.duper.8"; NSSet * productList = [NSSet set with object: id2, @ "8", zero]; SKP

C# Const field in abstract class -

I'm having trouble declaring a single console field in an abstract class. Why is it so? Edit I should have been clear that my problem is that my classes can not see the classes Constant field: protected const string prefix = "Dynfrm_"; If I remove the const keyword, then I can get it from a grandchild. Unless you initiate it in the declaration, then there should be no issue. What is the error message you are receiving?

plugins - Joomla External HTML and Access Levels -

I am trying to use Joomla to create a website that allows users to: < / P> Submit an external website's link Search through external websites based on categories, rankings, etc. Display websites in several iframes simultaneously (such as Google Gadgets) Limit access to some external websites by the user Customize the user's homepage (Like igoogle) I am trying to pull the right Joomla plugin and component piece together. For IFrame Display I am looking for: Can you think about any extensions, plugins or components that make me Will help to create the functionality made. Thanks By default, permission to submit a link to Joomla users Lets register / login Make sure the 'Login Module' has been published. Then in the menu manager, in the user menu, make sure that there are menu items available for linking. I'm not sure what the 'search through external websites' based on category, ranking etc. ' Displaying web sites s

asp.net - How to disable future dates in WebDateChooser -

I am using WebDateChooser in my .NET application ... by default the date selector shows the current date , So that we can choose 10 years before the current year and any date after 10 years of the current year ... but I do not want to show on the future date in Webdutt Chujar. There is a property to set up MaxDates as the current date If you have any idea please help me You can use the property. In the code (which I think is relevant to your needs): WebDateChooser1.MaxDate = DateTime.Now; or in the source (if not dynamic then I have just been added for reference): update: (@ Reply to first comment from gold) Here are some code from my source file that meet the settings Does MaxDate property dynamically script runat = "server" & gt; Zero SetMaxDate (Object Sender, System.EventArgs e) {WebDateChooser1.MaxDate = DateTime.Now; } & Lt; / Script & gt; & Lt; Head runat = "server" & gt; & Lt; Title & gt; &

a simple django jquery location question -

I am setting up a project for the first time and I want to use jQuery. Is it the idea that I just create a media folder, stick jquery in it and then point it to MEDIA_ROOT? Any suggestions for a good standard location for the media folder? Django recommends keeping people very firmly in the files somewhere, where the Django They do not need to handle them, so if your app is on example.com, save static files at static.example.com. If you can not do this, follow the link given above. They explain it quite well. Cheers,

ASP.NET Sharing a user control/web page logic with multiple web applications -

I have a web application that has user control and web page logic to use on multiple web applications because it That is, I want other web applications to reference it, because html / css of their web page is different. First of all, I want to ask if this is possible because it is a web application and not a class library If it is possible then I will How to explain web applications in HTML? How about adding a web library to a class library and referencing that class library from the website? Here are instructions by Howard that the Library in the User Control Class: except for a post about Guthrie And I think it's worth a while. [Update] I found a better tutorial I think this article is by Guthri ( also Guthri )

c - Write a custom PCIe hotplug Linux 2.6.x driver -

I am writing a PCIE driver / module for a custom device, since the device is hot pluggable, it can disappear at any time is. Here I can set the pci_driver structure: struct pci_driver my_pci_driver = {.name = "my_pci_driver", .id_table = Id, .probe = "my_pci_driver_probe", .remove = "my_pci_driver_remove"}; But I do not know how to properly arrange the event to remove. When the .remove function is called, I have several processes which are opened with the driver and many are doing ioctl. So what's the right way to remove the device? How can I safely wait for the current Iioctl running and then remove the device properly from my driver? It is a very widespread question, you need to design a code that will support the removal of the device. You can take an example from any USB driver / usr / src / linux / drivers / usb / ... which is removable by nature. Give feedback: No, it is not, the USB subsystem is not responsible for synchro

Mysql Duplicate entry error on ON DUPLICATE KEY UPDATE -

I am using a memory table There are several IDs in it and the counter is all data integer My code updates counter from 1 if the data is present or creates a line with counter = 1, not so. The query I use is: INSERT INTO link_mem (id1 id2, id31, id4 cnt) values ​​(31316, 0, 557,158,967, 261,470594, 1) The key update on the duplicate cnt = cnt + 1 Sometimes (about 5%) I 'Duplicate Entry' for Key Key [Key Number] '' What could be the problem? Is there such a duplicate key update that handles the duplicate key? UPDATE: Creating table of add CREATE TABLE `linked_mem` (` li_sid` integer (10) unsigned NULL default '0', `li_id1` integer (10) unsigned NULL default '0', `li_cid1` integer (10) unsigned NULL default '0',` li_id2` integer (10) unsigned NULL default '0', `li_cid2` integer (10) unsigned NULL default '0', `cnt` et (10) unsigned not tap default '1',` li_filter` int (10) unsigned zero The default '0

sql server - Retrieve previous version of a stored procedure -

I modified a stored procedure today but after that I realized it was wrong. So I want to back it back, there is no way of getting the modified archive method already or is the stored procedure of the last date. I have no back ups. Thank you. Not directly in SQL Server Unless you have placed a script in the source control or your location somewhere The only option is to restore the old backup to another environment and to script its old version.

javascript - How do you deal with saving an attribute related to an object not yet created, via AJAX? -

I have an object that has not yet been created (hence its no id), but in the user process To make it one of the fields to fill fields, they create an attribute for this object, but that attribute requires an object's ID. This is the point where - the object is not actually created yet (in the process of filling fields to make the user), it does not have an ID when you are editing the object and In this way the object has an ID, so there is no problem creating the property. Here are the relationships: object (name, id) ^ ATTRIBUTE (name, object_id, id) How do you deal with the situation? I was thinking of adding an "temporary" field to the object so that he could get an ID from the bat, but surely there could be a better way? itemproc = "text"> Good question, in fact you have two options: Creating a client-side form status To be able to handle conservation, modify the "ATTRIBUTE" creation code. Use the "floating" field

javascript - How to make Resig's micro-templates XHTML compliant? -

I am using what works great, however, Mark-up XHTML 1.0 will not pass the transitional verification test. (In addition to other things, yield attributes of id attributes occur.) Changing tag identifiers & lt ;,> [[,]] passes verification, thus, I have a JS script Created that change square brackets back to regular markers on load time (jQuery document ready). It works fine in FF, but not IE, Chrome etc. The embedded scripts are also valid within the CDATA tag. Q: Is there a way to insert a micro-template and still pass XHTML verification? I thought that after the page was loaded, the CDATA tag was to be removed. But perhaps there are smart ways (Note: I do not want to inject HTML through JSM because it will be difficult to maintain a mark-up.) PS: I looked at other JS templates, but they either TIA is not compatible with XHTML or for any signal. Why are you going from crisis to use a micro-template instead of using a micro-template? All the ways to change? All t

Why does Java not use the out parameter in its language syntax while c# does? -

While I'm not a big fan of using parameters in C #, I'd like to know why Java did not include it Is there any special reason in its language syntax or perhaps because of it that a person can pass an object as a parameter type? Java was designed as a very simple language, with a very simple syntax - Contrary to C ++, with one of its features, which hardly understands anyone completely and fully understands (including compiler applicants). In fact, the facilities were abandoned until they were considered absolutely necessary. On the one hand, the goal was achieved - there are very few areas in which it is difficult to understand or guess the behavior of Java. On the other hand, there is work to be done around the missing facilities, which leads to the so-called Verbosis of Java, the designer of C # tried to create this experience. However, I personally do not accept standards as a major loss.

multithreading - How to keep asynchronous parallel program code manageable (for example in C++) -

I am currently working on a server application that needs to control storage devices on a network. Because of this, we need to do several parallel programming. Over time, I have learned that there are three approaches to communication between processing institutions (threads / processes / applications) Unfortunately, they have the disadvantages of all three methods . A) You get a synchronous request (call a synchronous function). In this case, the caller waits till the function is processed and the response has been received. For example: const bool successfully converted = Sync_ConvertMovie (parameter); The problem is that the caller is useless sometimes it is not just an option. For example, if the user was called by the interface thread, it would seem that until the response The application has been blocked until it arrives, which can take a long time. b) You can make a asynchronous request and wait for a callback . The client code can continue with whatever ne

actionscript 2 - Get the Number of Frames in a Dynamically Loaded Flash File -

It's been a long time since I used to flash and I'm making a small presentation in which I Some videos have been recorded and they have been exported as SSF files. I am currently able to load them dynamically into an original Flash file this.video_mc.loadMovie (movieString); The problem is that I have 6 different videos that are loaded when different buttons are pressed. I would like to change it so that when the 1 video is over the next game will be there and finally the loop will return. My question is that I have these loaded. How can I get the number of frames within the SWF video (_currentframe) that when I know that I can start the next file or is there an easy way to do this? I am using AS2bit. Once SWFs are loaded, you can view your total assets.

asp.net - Structs Vs Classes in .NET Business Layer -

Now I am stuck in the "advanced" ASP.Net class and my instructor has just given an opinion that I am not sure (I say "advanced" because he is still using HTML table for page layout And we have talked about the incredibly advanced topic of master page. I need bleach of eyes!) He says that instead, instead of saying, a person class in which all the data More methods apply You should make both the person structure and the individual square. Structure contains general properties for the individual category, and there are only methods in the class. Since the person sits on the structure stack, the data related to your person goes away as your method or stacks the stack instead of collecting it on the heap with an object. This should save memory and speed up the garbage collection process. The question is: how big can this effect and is it really worth it? There are several problems with the argument presented for the pattern you describe. First of all, stru

reporting services - Group Expressions in Reportviewer -

How do I interpret group data inside a table? For example: Bob, 23, grains Bob, 24, Ottamel Susan, 25, cream Susan, 26, Horses Above, I'm trying to find an expression to use which will allow me to group both Bobs together, and both Susan together I am assuming that doing this is a simple thing, though, I can not understand it. I will set a sort order. Edit your group and go to the Sorting tab. Then with the edge in the direction I = fields! Name. Value was put . If I do not understand the question correctly, then forgive me. If you have a fixed number of names, then you can assign your groups with a static = field! Another group with name.Value = "Bob" and = fields! Name. Value = "Susan"

multithreading - how to execute a java program on several cores? -

I had a Java program that I run thousand times based on loop (number of files compiled to create According to a Linux kernel). There was a demonstration problem because jvm was started multiple times ... What I have done is implementing a cover in Java, it is similar to my bass script It reads a line from a file and then makes the main call to my previous program ... In this way, I only have one jvm running ... The problem is now that my box Only one core is used which is another display problem ... do i have some threads Do I have to do or can I use the same method, but perhaps the "ex" can call the main in a different way? If I have to start some threads, how do I transmit them across many core? Thank you ... Your Java program needs to be multi-threaded , To take advantage of several cores. For example, create a thread pool using java.util.concurrent.Executors, explain your data items as runnables, and submit threadnables to Thunderpool.

Markdown.NET incorrectly does not escape HTML-Tags -

ऐसा लगता है कि Markdown.NET निम्न से बच नहीं सकता: & lt; script & gt; जो कि एक समस्या है ... क्या एएसपी.नेट से सर्वर पर मार्कडाउन से एचटीएमएल उत्पन्न करने का कोई अन्य तरीका है? < / Div> इसलिए मार्कडाउन: "... गलत तरीके से बच नहीं गया है ..." बिल्कुल सही नहीं है। इसका अर्थ है कि आप अपने आप को सिनिटाइज करने के लिए हुक पर हैं यदि आप चाहें तो भी इसका उपयोग कर सकते हैं।

Using nAnt to build projects containing EDMX -

I have been working to give myself training in ways to use nAnt for the past few days, and a problem Has stumbled due to. During the development process, I am using new tools such as an entity data model to use the database. When you try to make a library / executable that contains the ADMX product, you can not embed the necessary files from the Visual Studio Now, I know that I have a special project file for MASBield I can do ANAD work about, but I am trying to prepare it completely, so I am struggling to get things working. May include. I did some searching to find something to find it, and it came across that was the trick. My problem is that I do not see how you call it in the target stack to do its work, can anyone put a light on it? It will be of some great help. OK ... so I'm a bit more with this. I later came to know that the code that the gentleman has been posted should be subject to work, for which it is used to run. I'm also rendering in * .ssdl, * .csd

javascript - Firefox 3: Enable AJAX to localhost from outside domain -

I am running an HTTP server on my development machine. I have a website on the Web server on the Internet, how can I get the communication from Firefox to this website temporarily on localhost ? Thank you, Isaac Waller The approach I use in this situation is the host- The file entry mapping is to put localhost in the subdomain of the target internet site.

operators - Overriding "+=" in Python? (__iadd__() method) -

क्या अजगर पर + = ओवरराइड संभव है? हाँ, विधि को ओवरराइड करें उदाहरण: def __iadd __ (स्वयं, अन्य): स्वयं। संख्या + = अन्य। संख्या वापसी स्वयं

ruby - Disadvantages of Sequel gem -

What are the options of Sequel ORM when working on Sinatra based app? AFAIK, you are not compelled to use sequels with Sinatra. Or use any other ORM.

c# - CookieContainer bug? -

How do I confuse that the cookie controller handles the domain, so I make this test. This test shows. CookieContainer does not return any cookies for "example.com" but according to RFC it should return at least 2 cookies Is not this a bug? How to make it work Here's a discussion about this bug: ;% @ Page language = "C #"% & gt; & Lt;% @ import namespace = "System.Net"% & gt; & Lt ;; DOCTYPE HTML PUBLIC "- // W3C // DTT XHTML 1.0 Transcription // N" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> & Lt; Script runat = "server" & gt; Cookie Container Let Container () {Cookie Contender Results = New Cookie Container (); Uri Uri = new Uri ("http://sub.example.com"); String cookieH = @ "test1 = well; domain = all.example.com; path = /"; result. Set cookies (Yuri, Cookie H); Cookie.h = @ "test2 = well; domain = .example.com; path = /"; result. Set

internet explorer - IE hangs up during execution of Tests through cc.net -

I've been experiencing IE hangup for a long time. When I execute my tests directly through the test, it works fine but when I try to execute them through cc.net, they seem to hang at some point and without any reason. It closes the execution of all tests at that time. And do not even try Trudown stability in which I'm closing IE Can anyone help me in this regard? Have you tried logging in to the CC.NET box as a user under the service Is configurable to run and firing IE? You may know that to specify the initial options, an internet connection such as the user has not yet fixed on that question. Detailed instructions: Make a remote desktop connection to the server, or if you have access, using logon details, under which CC. If the NET service is configured to run, log on physically. If this is configured to run as a local system account, then you have to configure it to work as a user account to work on it. Once upon a machine, fire Internet Explorer and my gu

What happens when I'm casting an Linq to Entity query to ObjectQuery? -

सरल प्रश्न - यह वास्तव में क्या करता है? var oq = (ऑब्जेक्टसिटी & lt; TENTity & gt ;) L2EQuery; वापसी ExecuteFirstorDefault & lt; TEntity & gt; (ओक, MergeOption.AppendOnly); यह जूलिया लर्मन द्वारा पुस्तक प्रोग्रामिंग इकाई फ़्रेमवर्क से आंशिक रूप से है। नारंगी ही प्रकार की जांच करने से अधिक कुछ नहीं करता है चूंकि आपकी क्वेरी ऑब्जेक्टिकटी प्रकार की है & lt; TENTity & gt ;, यह सफल होती है मुझे लगता है कि ExecuteFirstOrDefault को उस प्रकार के तर्क की आवश्यकता होती है, इसलिए कलाकार।

wcf - Why does a Web Service DataMember's Specified Attribute need to be set for int and Data but not for String -

I have created a web service through WCF, after which I have highlighted it as a web service, which is a . Make usable with the NET 2.0 application. I have created some data contracts with the datamember which can be used by the Exploration Operation Contract. I have noticed that when I try to create a data class in the web service, each attribute for each member of the "specified" attribute is now attributed to each data contract feature. For example: [DataContract] Public category sales {[Database] Public Invoice Invoice; ...} When I make an example of a sale in the Web service client, I get the characteristic of the invoice name and the invoice is not specified. Now my question is, when the attribute is of type string, I do not need to set the corresponding "specified" attribute to the right, but when the type of attribute is an int or datetime, if I If the correct "specified" attribute is not set to true, then the value becomes zero in

java - Grails belongsTo, should I? -

We go directly to problems (with Grails 1.1.1, this should work on the previous one) < P> I have 2 domain meanings: Users and extensions like this: Class User {String userName; ..... // Another area is stable haymany = [description: detail]; } Class extension {string description name; ... // Another field is static = [user: user]; } Now if I did this: Diff user = User .get (1); Detail.findAllByUser (user); Why does this error generate? But if I am amending the detail class details {string description name; ... // other field user user; Stable relative = [user: user]; } (By adding the user) it will work as normal ... Is there any effect to insert? Or did I use the concept of mistakes here? Your example is not how you would normally get the details. Examples will be accessed through a user instance, for example: def = user. Gate (1) DIF userdifferences = User Dentistry / No details. FIDALUUSER (user);

wpf - How to animate a resource in XAML? -

In the XAML document, I have a gradient brush as a resource and there is a bunch of shapes using this resource. I want to animate the brush using the storyboard, but to set the brush in resources as the goal of the storyboard I do not know about just using its name does not work, {StaticResource name} does not even work, is it even possible? I would like an XML solution, but if this will not work, I will use the code-back. If this lets me leave the storyboard Goals and storyboards Target unassigned targeting. EDIT: I want to animate a gradient stop of the brush. The thing is that I can animate it easily when there is no resource, but is applied directly to one object, I can do this by clicking on the expression blend. I do not know how to change a consciousness when its resources (ie what is kept instead of the code in the code below) (the storyboard was made for the rectangle)) Code: & LT; UserControl.Resources & gt; & Lt; LinearGradientBrush x: key = "outl

ASP.Net 1.1 Viewstate Security -

In ASP.Net 1.1, it is possible that the end user should be sent back to the server before converting it, for example It seems that an item has been selected in the dropdown that does not exist? I have tried to manipulate the values ​​in the dropdown using the firebug but the server ignored it, because I think Victwette says that the item does not exist, if it is possible, to achieve it It is possible to change the data, so it can be more of a problem. I am asking because I have been asked to consider the security of one of our applications and if possible, then there may be a major security flaw Just to clarify I am not saying that, I do not want to break any other software, I need to know that something is worried about it. Hope this makes sense. Thanks Yes, see the state can be hacked. A feature was introduced in ASP.NET 2.0, which prevented and prevented such attacks. Description How to hack the scene status of an application.

java - How to get dependency with Ivy -

I am in the process of reviewing the use of Iv in my application. I have installed a simple configuration to pull Cobertura. & lt; Ivy-module version = "2.0" xmlns: xsi = "http://www.w3.org/2001/XMLSchema -Instance" axis: noamaspace shadow location = "http://ant.apache.org/ivy/schemas/ivy .xsd "& gt; & Lt; Info organization = "com" module = "adesa" status = "integration" & gt; & Lt; / Info & gt; & Lt; Configuration & gt; & Lt; Conf name = "runtime" description = "" /> & Lt; / Configuration & gt; & Lt; Dependency & gt; & Lt; Dependency org = "cobertura" name = "cobertura" rev = "1.8" transitive = "true" /> & Lt; / Dependencies & gt; & Lt; / Module from Vertical & gt; I know that Cobertura has reliance on other jar files. So how do these other jar files get? The only thing in my cach

vb.net - Preventing column auto sort after editing a bound DataGridView -

"itemprop =" text "> I've got a DataGridView that is a DataTable as it is the data source. Whenever I sort a column and then edit a cell, after editing the column, the column autosource so the recently edited cell is no longer in the viewable area. Is there any way to stop it from happening like this and just like when I click on the column? Many thanks in advance. Daryn I do not think there is a way to prevent type, But before you can store rows, columns, and update the values ​​of the sort grid and then restore them after the update Here is some of the code I use. Friends sub refreshGrid () dim row integer dim as integer as dim dim as gridcol integer as integer dim grid colons as integer dim rowCountOrig as integer dim rowCountNew integer line As = dgvReadOnly.CurrentRow.Index col = dgvReadOnly.CurrentCell.ColumnIndex string sortVal as string sortVal = _setSource.DefaultView.Sort rowCountOrig = _setSource.Rows.Count_setSource = _displaySet.display

linux - Automated Testing of Binaries from SVN on HPC -

I want to ask for some automated testing of tests on Forman binaries within an SVN repository, working on demand or by cron . To make this issue a little confusing, test cases will be run on a computational cluster so that each test case will need to be prepared for PBS scripts. (Linux Environment) There are so many web tests, and unit testing solutions out there, However, I can not get anything for test bills, provide input, and the required solution Compare the output with. Any suggestions on how this might be done? I agree that this is something that will be very simple for scripts how your binaries are configured Depending on how different your programs are from each other, you can also include a test script as part of your SVN repository. Since you are in the batch system, you have freedom to schedule some tests. You may want to get a general "verification" job, from which you can provide setup parameters (such as expected and for actual program output out

c# - Retrieve single Entity Framework entities using a LINQ query or GetObjectKey? -

It seems that GetObjectKey has the advantage of searching for an existing, instant object, and then store data. However, it also seems that you lose some strong typing, and your resultant object is required to be inserted: GetObjectKey int customerID = 1; EntityKey key = New EntityKey ("MyEntities.Customers", "CustomerID", customerID); Customer Customer = Reference Gate Objectbike (key) as a customer; vs. LINQ Integer Customer ID = 1; Customer customer = (In the context of C-customers, select c.CustomerID = customerID c). Before and after default (); Personally, I like the latter method due to typing. What do you use boys and girls? In addition, your DAL is the only commonality in conjunction with all available methods, though this is a personal preference. I like the latter because it is clearly clear what you want. By using EntityKey (and it is something that the ADO .Net team does not understand), we have to work around the structure w

iphone - UITableView animation issue -

I have a table on one page, but it does not take the whole screen (about 1/3). At some point I would like to show something above the table, but also keep the view below the table. This is not really a problem, though. I use UIView animation to change the size of the table's frame and move it down. The point is that when the animation starts, the last few lines are lost - the rows hidden when the animation is complete. Do anyone know a way around this? I would prefer to keep the table at the top of the visual layers, so obscuring it and keeping it the same size for the duration of the animation will not really work. > Thank you! Is your parent UIView set to a certain size? When you move the table down, if the inserted frame is not grown to adjust the new height, then it can cut your lower table cells.

Dependency Property Uses in WPF -

I find it difficult to find good reasons for the dependency property, why the system Control. Text box "text" property is a dependency property and is not a common property? What are the advantages of this as a dependency asset? One of the things I am trying to accomplish is to add a statutory rule which will include other validity rules for my UserControl. Here's how: & lt; Custom Control: Required Textbox Validity rule & gt; & Lt; Validators: NotNullOrEmptyValidationRule errormode = "first name may not be empty or empty" /> & Lt; / CustomControls: RequiredTextBox.ValidationRules & gt; The problem is I am not sure whether the validation rule should be property dependent property or just a general asset. provides the above code the following error: { "Validation rules can not add elements; zero value of the property. WPFkValidationRules Learning Object" error ". NotNullOrEmptyValidationRule 'markup'

javascript - Adding a variable to a ASP.NET CustomValidator -

I need to be a custom valitor, which can include custom variables in some ways when calling client-side JavaScript validation Are there. This verifier is used in a repeater, and every item of the repeater is required to use the custom verifier, but valid against its own variable is this possible and how can I do it? For example, I need to have JavaScript validation work such as JavaScript validation (sender, arg, merciful) or is there any way to include my variable in 'ElGs'? I'm not sure what that is. Thank you! Where are you coming from the right variable? That is, it is available in DOM? If so, can you get the value of the dom node in your custom verifier? If not, it might be best to disable the client-validate validation and just valid on the server.

c# - CryptGetProvParam PP_ENUMCONTAINERS shows me only default certificate on smart card -

I have Gemalto.NET smart card. I imported using Gemleto Tool 2 certificates in it, I suspect using Crypto API to do this when you use the IP). I certutil -key -csp "Microsoft Base Smart card crypto provider runs" The following results have Microsoft base smart card crypto provider: 7c168bc3-dc1d-a627-c218-cd45729b42cb [default container] AT_KEYEXCHANGE badd537a-a377-431b-cbc9-8699dbe15e0e AT_KEYEXCHANGE The loaded layer key is missing 0x8009000d (-2146893811) CertUtil: -key command successfully completed Now I have to find those keys in my C # program. To do this, I've written the following method, which should return all keys to specific smart cards. Fixed list & lt; String & gt; Enemment Containers (string card) {var list = new list & lt; String & gt; (); Var Provider = IntPtr.Zero; If (! CryptAcquireContext (referring provider, @ "+ \." + "+ Card + @", "Microsoft Base Smart Card Crypto Provider",

Basic Sorting Question - C# - (Java Programmer Learning C#) -

I'm working on sorting a list of items, and unfortunately, I'm not getting enough information from debugging See where I'm going. I have a custom class that I have implemented a comparison method, and I call. Class () calls on the list of items of that class. Unfortunately, my program does not really get the comparison () method ... to call it down errors and shutdowns immediately. Source (). How should I generally look? Here is the Definition of Class, Interface List. /// & lt; Summary & gt; /// Client Works Space Summary Description /// & lt; / Summary & gt; Public class client workspace: iterative {} I did not list the method of comparison because it never goes to that code. I believe the exception message will be something like this: "At least one object has an ICP interface Must be implemented "with an inevitable" failed to compare two elements in the array ". It tells you what you want: You have not declared

c# - Using Except() on a Generic collection -

I have asked to use a Linq method which is an object (first, min, max, etc.) Normal archive Now I want to be able to use the method (except linq) and I'm not sure how to do this. Maybe the answer is just in front of me but I think I need help. Is a general method that is related to related descriptive fields. Fills in dates. This method has been declared below: Public INIM Merchant & lt; T & gt; FillInMissingDates & lt; T & gt; (Ienumerable & lt; T & gt; archive, string date property name, string description property name) {type type = typef (t); Property Info dateProperty = type.GetProperty (datePropertyName); PropertyInfo DetailsProperty = Type. Gateproperty (detailsproperty_name); ...} What I want to accomplish is that datePropertyName is the name of the property that I will use to fill my date gap (not already present in the archive Add default object instance for dates). If I was working with a non-normal class, then I would do something like

WPF ListView turn off selection -

Image
I have a simple WPF ListView and a simple question: Is it possible to turn off the selection? , When the user clicks on the line, the row is not highlighted? me 1 Looks like a row, looks like row 1. Probably related: can I show hover / selection form? for example. I have found to replace the blue shield hover look (line 3) with a custom solid color and unfortunately not. is acceptable to achieve it without using (ListView. I just want to do as Suchiiwu use logical scrolling and UI virtualization I) lot for your help thanks a lot. There is XAML for the list view: & lt; ListView Height = "280" name = "list view" & gt; & Lt; ListView.Resources & gt; & Lt ;! - Attempt to override selection color - & gt; & Lt; Solid Coiler Brush x: Key = "{x: Static System Colors.} Highlight Calls" "Color =" Green "/> & Lt; /ListView.Resources> & Lt; ListView.View & gt; & Lt; GridView & g

tomcat - Java EE Jar file sharing -

At our shop, we maintain approximately 20 Java EE web applications. Most of these applications have quite a CRUD in their architecture , Some of these are very processor intensive calculation applications. For deploying these applications, we are using Hudson to monitor our CVS repository. When we have check-in, the projects are compiled and set to be deployed in our Tomcat 6.0 server ( Solaris 10, Spark Dual-Core 1.6 GHz processor, 2GB RAM ...). Do not imagine a befif machine from any segment ... ) And, if any unit-test exists for the project, then they are executed and if the unit tests are passed Project only then Of days. It works very well. Now, over time, I have seen myself that I have used the same .jar files in many projects and again (Hibernate, POI (Excel output), SQL Server JDBC driver, JSF, ICEFUS, Business Logic .z file, etc.) Our practice has been to keep a folder on just our network drive in which all the basic .jpg files have been used, and when a new project has

iphone - customized the UITableView -

I am in the process of creating a simple iPhone application that is on top of "from" and "to" table view The direction of Google Maps in the iPhone is similar to the input bar. What are the best steps to make these non-scrollable input bars? Any help, tips, or recommendation would be greatly appreciated. I do not clearly understand your question, but I first saw a second view with controllers in IB Try it and allot it to an IBotlet in the UITTable ViUIT Controller class, assign it to the table view title of the table view. Here's a good example: I hope it helps

Isn't an unchecked exception that is caught in a try block a checked exception in Java? -

I was told that in Java, unchecked exceptions can be caught in a try block, but if it has been caught, So is not it called a check exception? Unchecked exception exceptions are - hold - Blocks are unchecked exceptions or sub-classes of squares. There are exception exception exceptions that need to be caught in the try - hold block. The definition of checked and uncontrolled exceptions can be found in the following: Uncheck exception class class runtime exception and its subclass and The class error and its subclass are examining all the exception classes for class exception classes. Just because an unwanted exception is caught in a hold block, this check does not make exception - that means an uncontrolled exception was caught, and Grip was handled in the block. Anyone can hold one unchecked exception, and then throw is a new check exception, so any system called any The method where an unwanted exception can arise and compel the method that it

javascript - cross-browser standard Xml processing in Java Script -

I'm trying to figure out how to process XML in Java script so I googled for it. The problem is, I do not know that the tutorial I see will work only on IE. What is the "standard" way of processing XML data in java script? Edit: Thanks for all your answers, I would like to ask another question. Is there a third party library that writes JS code without having to worry about mutually cross-browser functionality For example (a snippet) < Code> try // Internet Explorer {xmlDoc = new ActiveXObject ("Microsoft.XMLDOM"); XmlDoc.async = "false"; XmlDoc.loadXML (txt); Back to XMLDoc; } Hold (e) {parser = new dumpparser (); XmlDoc = parser.parseFromString (txt, "text / xml"); Back to XMLDoc; } Also, just answer your straight question. This is a standard way (in the snippet above, it's in the catch block), but Internet Explorer does not support the standard .... so you got stuck with something like the above

javascript - How to trigger onclick function when user inputs keywords? Jquery -

मेरे पास एक इनपुट बॉक्स है & lt; input type = "text" name = " खोज "id =" खोज "/ & gt; & Lt; img src = "icon.png" alt = "" id = "doSearch" / & gt; मैं Jquery का उपयोग करता हूं और मेरे पास "doSearch" के लिए onclick ईवेंट है इसलिए जब मैं "एबी" जैसे कुछ शब्द डालता हूं .. और "आइकन" पर क्लिक करें यह php फ़ाइल के लिए एक अजाक्स अनुरोध भेजता है और परिणाम को वापस डोम में जोड़ देता है। $ ('# doSearch' शो ("तेज"); var इनपुट_टेक्स्ट = $ ('इनपुट [नाम = "खोज"]')। Val (); // टेक्स्ट $ पुनर्प्राप्त करें। एजेक्स ("विधि" "... ... कुछ और लाइनें}} आदि आदि मैं सोच रहा हूं कि कैसे मैं स्वचालित रूप से onclick फ़ंक्शन को ट्रिगर कर सकता हूं, जब कुछ वर्णों में प्रवेश किया जाता है इनपुट बॉक्स ताकि उपयोगकर्ताओं को परिणाम प्राप्त करने के लिए छवि आइकन पर क्लिक न करना पड़े। इसके अलावा, कैसे मैं छवि आइकन पर फ़ोकस सेट कर सकता हूं जब मैं इनपुट बॉक्स

losing css hover with jquery -

CSS hover is working properly until the menu item is clicked. I believe this problem started with this line $ ("#button li a: not (a." + Target + ")"). CSS ("background-position", "0"); css #buttons {float: left;} #buttons ul {list-style-type: none; Cursor: pointer; Overflow: hidden; } #Buttons Ul Lee {Height: 195px; Width: 40px; Float: left} #Buttons a {display: block; Height: 192 px; Width: 40px; Border: None; Cursor: Pointer;} # Bootens Ateets: Hover #buttons a.duels: hover, #buttons a.messages: hover {background-position: -40px 0;} #buttons a.settings {background: url (accountsettings.png }} #buttons a.something {background: url} (Accountsomething.png)} #buttons a.messages {background: url (accountmessages.png}} #text {width: 600px; height: 199px; overflow: hidden; float : Left;} div # text div {width: 600px; height: 199px; float: left; margin-left: 20px;} HTML A class = "setting"> & lt; / Li & gt;