Posts

Showing posts from July, 2014

java - Spring Remoting - HTTP Invokers -

What do you think about the Spring Inbound Inboxers? I think that two Tomato server exchanges objects, through one service, via HTTPS, do you think that spring HTV invobar is a good option? Thx Using HTTP incomputers is easy, and quicker still Its going on. However, they are suffering from the same major warning that affects the RMI, which is to be carefully managed by your object serialization. If a different version of the end code of the connection is running, then it should be consistent with the other end to be sorted. This is a common "problem" with Java serialization, and is not specific for spring remoting.

javascript - GWT doesn't work in Internet Explorer 8 -

Today I try to compile my first GWT project (using Eclipse) in it's default 'N' location and ' BG 'place is also there. I am using UI files with files containing related assets. I have the only problem that the project does not work in Internet Explorer 8. There is no problem with Firefox and Chrome. The start screen is fine, but when I upload a file to my servicel and get feedback, then JSN is happening and I get a JS error error report user agent: mozilla / 4.0 (compatible; MSIE 8.0; Windows NT 5.1; teddent / 4.0; GTB 6.5; NAT CLR 1.1.4322; NAT CLR 2.0.50727; NAT CLR 3.0.04506.30; NAT CLA R 3.0.04506.648; NAT CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET4.0C) Timestamp: Tuesday, 27 July 2010 12:57:53 UTC Message: Expected Identifier, String or Number Line: 754 Four: 26 Code: 0 URI: Http://127.0.0.1:8888/infonotarywebservices/AD560C7F0D3FD1787F6B5CDB74891CDC.cache.html The row with the error is: function oaks (a, b) {var c, d; C = eval ...

Modify Lisp function without rewriting it? -

I wrote a LisPF function in which there was an error. The first challenge was to look at the function again. The solution to that challenge is now, when I see what I have done, then I want to modify the contents of the defined function without having to re-write the whole thing? As Lisp seems wise, there is a way to do this, I do not know what this is because I am new to language. Can it be done? Looking at the question, I think that you have a strange setup. Writing your work on REPL Do not do this. General setup should have an IDE (for example, sludge with Emacs) where you edit a source file, and then "send" top-level forms (such as function definitions) of REPL for.

sharepoint 2007 - problem with Enterprise Portal and Role Center installation -

मैंने निम्नलिखित को स्थापित किया है: .Net Framework 3.5, Windows Installer 3.1, IIS 7.0, ASP .NET, माइक्रोसॉफ्ट डायनेमिक्सएक्स। नेट व्यापार कनेक्टर, एएमओ, एओएस और माइक्रोसॉफ्ट ऑफिस शेयर प्वाइंट सर्वर 2007 जब OfficePoint सर्वर पर एंटरप्राइज़ पोर्टल और रोल सेंटर स्थापित करने का प्रयास करते हैं, तो मुझे एक चेतावनी मिलती है जब स्थापना समाप्त हो जाती है। ओडीसी परिनियोजित करने की कोशिश करते समय, मुझे एक त्रुटि मिलती है मुझे लगता है कि यह इस तथ्य से संबंधित है कि मैं साइट को याद कर रहा हूं: अब सवाल: मैं साइट / डायनेमिक्सएक्स साइट कैसे बना सकता हूँ? (मैं एंटरप्राइज़ पोर्टल और रोलर्स सेंटर में Office शेयरपॉइंट सर्वर इंस्टॉलेशन गाइड में देखा था मुझे इसे कॉन्फ़िगर करने की आवश्यकता है, लेकिन इसे वास्तविक सेटअप में नहीं मिला) क्या इसका कारण है कृपया अगर आपके पास कोई विचार है? धन्यवाद, यूबी । आपको एंटरप्राइज पोर्टल इंस्टॉलेशन प्रोग्राम को अपनी साइट बनाने में सक्षम होना चाहिए। लेकिन चूंकि अधिष्ठापन एक चेतावनी के साथ समाप्त हो गया है, संभवतः आपको साइट बनाई नहीं मिली। ...

Why does my sql server database "full backup" not contain recent data? -

I migrate just one SQL Server 2008 database, while the sales staff went for lunch. I did a full backup and then copied the backup to the new server, where I restored it in the new SQL Server installation. The employee returned from lunch and told me that some of the recent deals were not visible in the system before lunch. On the investigation it seems that the complete backup did not include some recent data that was added to the database before the performance of the backup. I suspect that I am not writing account for that transaction log, but is not an MSSQL expert, I'm not completely sure what I'm doing wrong. Can anyone tell me in the right direction? Do you have only a database, or transaction log? My guess is that you have not done backup transaction logs, which will not include recent transactions, which have not yet been added to the MDB file.

c# - How to implement databinding for windows custom control? -

Actually, I'm confused about implementing the database on the control side. I'm trying to write a custom list control in C #, which implements the database, I want it to end the same functionality of ListView, but with an interface similar to ListBox. I have a private nested class called "Linxu", which renders each line. Is an internal binding source that changes the data and invalidates the control when necessary. The problem is now that I want to add a checkbox to the ListRow, and I'm sure it's the best way to implement it so that the property of the underlying object changes. Try following this example.

multithreading - ASP C# update content -

I think this is a simple question for you: Here we are going: My .aspx On the page, I have a label Label1 and a button button 1 is surrounded by an updated panel. A click on the button calls the code-back method that looks as follows: click protected zero (object sender, EventArgs e) {ThreadProx (" Hello "); Thread.Sleep (2000); ThreadProc ("Hello2"); Thread.Sleep (2000); ThreadProc ("Hello3"); } Zero thread process (string information) {Label1.Text = info; // UpdatePanel1.Update (); } What I would like to see is that the label is updated and displayed (coded) So it should be Hello , Hello2 and Hello3 to display for 2 seconds. It appears that only the last Hello3 has been provided. Can anyone explain why this happens and how can I apply my thoughts? The work I have tried to accomplish is that a click on the button calls a multi-threaded function that checks for different pages. Whenever a worker thread comes back from its mission...

c# - read sniffing data over tcp -

I'm developing an application that either the incoming data on the PC and then when I'm trying does it decodes the data to use the software with any sniffing have been stored in the dB and I can read it ... but in my code .... I read it that I, like 169111105593578237128149247656716515892402149313981514422514376229471329176200111381472051621604112016991231791487816757139210351011838658952191062131962227415897153846520616813 9190127867123282255271781242497522124211517622131122113236255230254211206911242051832545515823012124925217318223920523316923122925514321122343602492471242 ........ Any one can tell me what kind of data ?? To resolve it out That's a real packet to see Sniffer Check out what it looks like. There are several different protocols on TCP, and many of them are binary. People who are not using Unicode characters, which are two-byte characters, so one of them is meaningless demonstration. However, the data you are displaying is very meaningless, it ...

java - Socket performance on linux -

From my last query, the following: I see linux Socket display with the above example I get round travel time of ~ 65μsec. If I do two fees on file system then it goes down to ~ 45μsec, should be extra time using localhost sockets because I hit network stack I am here. Is there an OS configuration that can fasten the local host socket as a named pipe? uname -a Linux fiatpap1d 2.4.21-63.ELhugemem # 1 SMP Mercury Oct 28 23:12:58 EDT 2009 i686 Athlon i386 GNU / Linux Thanks advance! With the above example, I get round travel time of 65 μsec i if i file If I make two fees on the system then it goes down to ~ 45μsec, it should be extra time using localhost sockets because I'm killing a network stack. Yes, and it should be expected. FIFO, rather the initial communication method His state is essentially a bool variable reads and writes, like fixed size, go through pre-allocated buffer. Thus OS can optimize operation. Sockets are more complex than the state mach...

Python urllib2: How to ignore HTTPError 401 -

I want to use a web page with urllib2 and I am receiving a HTTP error 401: unauthorized. Now, my problem is that this page does not require any authentication when using browsers like Firefox. Only when I use Google Chrome, a certification dialogue pops up, though this happens after the page is completely filled. So I can only cancel the authentication and normally use the page. Do anyone know how I can open this webpage without authentication? Thanks a lot! P.S. Pages url: $ sitepreview / sampran.go.th/ This is one of the best articles Out there on authentication

ADO.net Connection Pooling -

In the code below, the provider object is only an example of a DbConnection. Each reader will reference the same connection example. According to the Microsoft documentation, the second reader will get a second connection from the connection pool. It works correctly. (idataReader = Provider.GetReader (sqlStatement1) as using var reader1) {while (reader1.Read ()) {(idreader = provider using var reader2.)) {While reader2.Read ()} {// stuff with the two statements}}}} By the time I am using the connection will be open however the provider object I do not want to waste the connection in connection pool. The provider will call. DB Connection Attempt to return both connections in the closed () pool? If so, how can I return the second connection to the connection pool? After testing various connection providers, I have received my answer. The OLEB Provider maintains its connection pool separately from the SQL client provider. Typically, the SqlClient provider should create a ...

how to add "did you mean" in nutch-lucene search engine -

I am having trouble implementing this suggestion in my bungalow search engine, can anyone please help me? "post-text" itemprop = "text"> Look (Created using Lucene), it gives you this. To do this, using Lucene will require considerable effort and knowledge of N-grams, string distance, etc. So why to replace the wheel again, if the solar does it for you.

c# - WPF SimpleCommand possible with generics? -

I am using this code to create a simple command: public Class SimpleCommand: ICommand {Public Prophecy & amp; Object & gt; CanExecuteDelegate {get; Set; } Public Action & lt; Object & gt; ExecuteDelegate {get; Set; } #region ICommand Member Public Bull CanExecute {Object Parameter} {If CanExecuteDelegate! = Faucet} Return CanExecuteDelegate (parameter); Return true; // if there is no one can execute the default to correct} Public Event EventHandler CanExecuteChanged {addManager.RequerySuggested = value; } Remove {CommandManager.RequerySuggested - = Value; }} Execute Public Zero (Object Parameter) {If (ExecuteDelegate! = Null) ExecuteDelegate (Parameter); } #endregion} I did not write this down. But I enjoy using it when I use it so it ends in this way: // This is the value that the UI sets in command in the public SimpleCommand DoSomethingCommand {get; Set; } Public DoSomethingCommandConstructor () {DoSomethingCommand = New SimpleCommand {ExecuteDelegate = ...

clojure - How do I pass variables as variable names to a function? -

I want to be able to do the following pseudo-coding: Pass the symbol a . Pass in Pass B. Pass in expression using A and B As I changed the value of A and B, print out the output of C every moment. Ideally, I want a signature to see it: (runner AB (+ AB)) But I'm not sure I'm passing it correctly ... I have tried to change the function (Runner 'A' B (+ 'A') B)) And this is a more complex example: (runner 'A' B (+ (* 'A' B) 'A)) But before stepping into the runner, it does one on 'a and' b. Here is my first rip on some closures: (rival runner [abc] (([i (grade 10) j (range 10)] (printlen i.जे. Siz)) What is the concept of closure I am missing? The debate is always evaluated before the function function is called. If you want to postpone the assessment or want to represent some calculation or code in the form of the object , Then you have a few options: Use a function (see my code below) ...

Why does a method prefixed with the interface name not compile in C#? -

निम्नलिखित क्यों संकलन नहीं करता है? इंटरफ़ेस IFoo {void Foo (); } वर्ग FooClass: IFoo {शून्य IFoo.Foo () {वापसी; } शून्य अन्य () {फू (); // ERROR}} कंपाइलर शिकायत करता है कि "वर्तमान संदर्भ में नाम 'फूमडिथ' मौजूद नहीं है। हालांकि, यदि फ़ू विधि को इन्हें बदल दिया गया है: सार्वजनिक शून्य Foo () {return; } यह ठीक से तैयार करता है। मुझे समझ में नहीं आ रहा है कि कोई क्यों काम करता है और दूसरा नहीं करता। क्योंकि जब आप "इंटरफ़ेस को" स्पष्ट रूप से कार्यान्वित करते हैं, तो आप केवल इंटरफ़ेस प्रकार को कास्टिंग करके विधि तक पहुंच सकते हैं। अंतर्निहित कास्टिंग विधि नहीं मिलेगा। शून्य से अन्य () {IFoo f = (IFoo) यह: f.Foo (); } आगे पढ़ें:

how to display progress of service in android -

In my Android application, I am using tabs view and so I have two tabs: Parameters and results. The user enters various parameters on the first tab and then goes to the second tab to see the results. I have a service that calculates something that the user enters into the parameters on the first tab and hits 'calculate' they can make adjustments and affect 'recalculation' And the service is updated with the new parameters. As these calculations progress, I want the user to be able to switch to the tabs of the results. They will see results after the latest calculation and make adjustments to switch back to the parameters tab. I can think of two ways: - Register with the 'Results tab' service and when the service reaches a milestone, then it will be directly 'results Tab '. - There is a timer running in the 'Results tab' and it is a query against the bound service at regular intervals and update accordingly. Do people have commen...

Is there a small css 1 javascript function/library to retrieve elements? -

Also do you know about some useful javascript tutorials? There is also a tutorial which tells jquery library line by line? A lot of information is available, one of these lists, and for the general JavaScript content, I think That there is a lot of information on it, as well as with the ability to try things yourself for the work you are doing, you have a better handle After that, you can try to exclude the code with frameworks.

java - Multiple threads vs single thread -

I am currently working on a server client application (just for learning), and one of the threads in this application Design Decision In Currently, I have a thread in charge of all non-blocking IOs with customers. When it receives any data, it sends it to a worker thread, which creates "instructions set" from those bytes, then works accordingly. However, according to the instruction set, it can work on any hundred objects (each object will caps between anywhere between 2 and 12 clients, which can communicate with it). I am trying to figure out how to handle all the instructions set on that thread, and whenever I handle every set, or if each object should create different threads, and then get each Passed Instructions Object Threads for Handling My question is, at what point (if any) are more passive threads waiting for data, one employee Re-threaded all the data (handling each instruction set) If I have created a separate thread for each object, then I am thinking t...

utf 8 - UTF-8 file: Filter everything but the image -

I have a UTF-8 encoded file and want to pop an output stream on the image part of the file. Any suggestions on how to filter everything except image data? Scan for file Try to decode various image file magic numbers, and from that position.

php - Save OAuth WRAP access tokens directly on client machine in a cookie? -

I am planning to set up a website that can access an ohth wrap framework. I was thinking of storing an access token on the client machine, as it is. I do not want to maintain the database of temporary tokens etc on the server. What should I do? Or should I encrypt it? First of all, why are not they using Oath 2.0 ... You can store OAuth credentials in a cookie or better yet, HTML5 local storage. It should be encrypted so that only the server has access to this cookie and can only use the server token. Also, it should be a safe cookie to prevent it from leaking. Make at least one of these two (secure, encrypt). But keep in mind that cookies can be lost, and if users enter your site, then it will not work from other machines. >

how to change image on tap in table view for iphone -

I have an image view in the table cell, how do I now have to touch the image on the image how to do it switch (indexPath.section) case 0: CGR frame; Frame = CGRactam (20, 10, 270, 180); // 277 182 UIMviewview * IIMAJview = [[UIMAge Week Alok] IIT]; MyImageView.image = [UIImage imageNamed: @ "Abe1.jpg"]; // abe2, abe3.png myImageView.frame = frames; // UIImageView * imageView = [[UIImageView alloc] initWithImage: [UIImage imageNamed: @ "bowl.png"]]; [Cell.contentView addSubview: myImageView]; [MyImageView release]; How to change the image on the tap (abe1.png, abe2.png, abe3.png) ?? You need to do the following: // Will check whether the user started touching something - (zero) touches the brinze: (NSSet *) touches the event: (UIEvent *) event {UIT * touch = [touches any object]; // Checks that the user has touched your image if ([[Touch View] == myImageView) {// Create an integer that will keep track of your image Start at zero for Abe1 if (counter...

Are there things that JavaScript can do that JQuery can't? -

संभव डुप्लिकेट: अब हर दिन केवल मेरे काम के स्थान पर ही jQuery के बारे में बात कर रहे हैं, कुछ सीनियर डेवलपर हैं जो ज़्यादातर जावास्क्रिप्ट के साथ काम करते हैं और उनके पास उनके jQuery के लिए आरक्षित अधिकार हैं। मैं jQuery बनाम जावास्क्रिप्ट के बीच थोड़ी उलझन में हूं प्रोग्रामिंग चुनौतियां कौन सी हैं जिन्हें jQuery द्वारा हल नहीं किया जा सकता है और किसी को केवल जावास्क्रिप्ट पर जाना है या इसके पेशेवरों और विपक्ष क्या हैं jQuery बनाम जावास्क्रिप्ट का उपयोग करना अपडेट - क्या यह कहना उचित होगा कि कोई प्रोग्रामिंग समस्या नहीं है जिसे जावास्क्रिप्ट द्वारा हल किया जा सकता है JQuery के फ़्रेमवर्क का उपयोग कर? अपडेट 2 - अब तक उत्तर से मुझे लगता है कि यह ठीक है कि जावा में जावास्क्रिप्ट में हम क्या कर सकते हैं, इस पर मुझे सही करें अगर जावास्क्रिप्ट की तुलना में jQuery का उपयोग करने के साथ जो प्रोग्रामिंग चुनौतियों का सामना नहीं किया जा सकता है, उन्हें गलत सूचीबद्ध करना गलत है? "post-text" itemprop = "text"> jQuery जावास्क्रिप्ट में लिखित एक लाइब्...

How to run a c program on apache 2.2 server? -

I am doing an OpenSSL project and I'm totally new to the web server. I have a client.c Found and server.c . Creates a connection to the server at client.c port 6008 and reads the data from stdin and then sends the data to the server server.c Reads the data from the socket and writes it back to stdout . I was compiled on the server's code code Unix Terminal (Solaris 9) but I can not understand how to run it on Apache 2.2. PS I have installed Apache 2.2.15 and OpenSSL 1.0.0A and they are all working. Any help would be greatly appreciated! Z Jane If the server reads data from a socket, then it does not need to be run by Apache. Just run it from the command line. You see, Apache is an HTTP server. If a program communicates its network, then it does not require an HTTP interface.

How to initialize an array in Tcl? -

What is the proper way to start an empty array in TCL? I have the following code (simplified): proc parseFile {filename results_array} {upvar $ results_array result set result (key) $ value} set r1 {} parseFile "Filename" r1 and I get the error: Error: "Result (key)" can not be set: variable is not the array You do not start the arrays in TCL, when you set up a member They look like: proc stash {key array_name}} {upvar $ array_name one set ( $ Key} $ value} stash one pvr 1 hide two PVR 2 array name PVR yield: two one

Is there a faster way to get subtrees from tree like structures in python than the standard "recursive"? -

आइए, निम्न डेटा स्ट्रक्चर को तीन numpy arrays (id, parent_id) (मूल तत्व का parent_id -1) के साथ मान लें: np वर्ग के रूप में numpy आयात करें MyStructure (वस्तु): def __init __ (स्वयं): "" "अब के लिए डिफ़ॉल्ट संरचना: 1 / \ 2 3 / \ 4 5" "" self.ids = Np.array ([1,2,3,4,5]) self.parent_ids = np.array ([- 1, 1, 1, 3, 3]) def id_successors (स्वयं, idOfInterest): "" "तार्किक लौटें इंडेक्स। "" रिटर्न स्व। Parent_ids == idOfInterest def subtree (self, newRootElement): "" "सबट्री के तत्वों की ओर इशारा करते हुए तार्किक सूचकांक लौटें।" "Init_vector = np.zeros (लेन (स्वयं।), बूल ) Init_vector [np.where (self.ids == newRootElement) [0] अगर राशि (self.id_successors (newRootElement)) == 0: return init_vector else: subtree_vec = init_vector स्वयं के लिए su.ids में [स्व। id_successors (newRootElement) == 1]: Subtree_vec + = self.subtree (sucs) वापसी subtree_vec यह कई आईडी (> 1000) के लिए वास्तव में धीमा है। क्...

c# - How to force Sgen to create .net 3.5 serializers assembly -

मेरे पास मेरे .NET 3.5 लाइब्रेरी में एक sgen बिल्ड चरण है I VS2010 में यह .NET 4 MyLib.XmlSerializers.dll उत्पन्न करता है, जो .NET 3.5 ऐप से लोड नहीं किया जा सकता है। क्या किसी को पता है कि कैसे विधानसभा के सही संस्करण पाने के लिए कदम का निर्माण बदलने के लिए? क्या आईएल को सीरियलआइज़र असेंबली और पुस्तकालय को एकल डीएलएल में मिलाया जा सकता है? यह मेरा sgen बिल्ड चरण है: & lt; लक्ष्य नाम = "AfterBuild" DependsOnTargets = "AssignTargetPaths; संकलन; ResolveKeySource" इनपुट = "$ (MSBuildAllProjects); @ (मध्यवर्ती विधानसभा) "आउटपुट =" $ (आउटपुटपथ) $ (_ SGenDllName) "& gt; & Lt;! - फ़ाइल को हटाना क्योंकि मैं समझ नहीं सकता कि SGen कार्य को कैसे लागू किया जाए - & gt; & Lt; फ़ाइलें हटाएं = "$ (लक्ष्यडिआईर) $ (लक्ष्यनाम) .XmlSerializers.dll" जारी रखेंअरेरे = "सत्य" / & gt; & Lt; SGen BuildAssemblyName = "$ (TargetFileName)" BuildAssemblyPath = "$ (आउटपुटपैथ)" संदर्भ = "@ (संदर्भ...

jquery - jqGrid does not display search button(icon) -

This is the following code to show me the data, it works fine, but it does not show the search icon, which I have lost JqGrid ({url: 'post2.php', datatype: "Jason", colNames: ['id', 'lastname', 'fname'], colmodel: [{name: 'id', index: ' Id ', hidden: true, width: 90}, {name:' fname ', index:' fname ', width: 90}, {name:' last name ', index:' last name ', width: 100}] , Line number: 10, line list: [10,20,30], pager: '# pager', height: '100%', serial name: 'id' viewer: true, serial: "esque", ca Passion: "example 1"}); JQuery ("# ​​list2"). JqGrid ('navigrid', '# pager', {search: true, search text: "search"}); thanks thanks oleg I found the problem, the search icon with jqgrid 3.7 dose jquery-ui-1.8.2.custom is not displayed and jquery-ui-1.7.3.custom with its word OK

Python: Urllib.urlopen nonnumeric port -

निम्न कोड के लिए theurl = "https: //% s:% s @ Members.dyndns.org / nic / update? Hostname =% s & amp; myip =% s & amp; वाइल्डकार्ड = NOCHG और एमएक्स = NOCHG और backmx = NOCHG "% (उपयोगकर्ता नाम, पासवर्ड, होस्टनाम, थीप) conn = urlopen (theurl) # यूआरएल प्रिंट (conn.read ()) के लिए अनुरोध भेजें # पढ़ें प्रतिक्रिया conn.close () # कनेक्शन बंद करें मुझे निम्न त्रुटि मिलती है फ़ाइल "c: \ Python31 \ lib \ http \ client.py", पंक्ति 667, _set_hostport में अमान्यURL बढ़ाएं ("गैर-संख्यात्मक पोर्ट: '% s'"% होस्ट [i + 1:]) कोई भी विचार ??? आपको पासवर्ड को url-encode करने की आवश्यकता है आपको एक त्रुटि दिखाई देगी जैसे कि '/' को पासवर्ड में शामिल किया जाता है। यहां एक स्थानीय उदाहरण (वास्तविक मूल्य redacted) है: & gt; & gt; & gt; सलामी बल्लेबाज & lt; urllib.FancyURLopener उदाहरण 0xb6f0e2ac & gt; & Gt; & gt; & gt; Opener.open ('http: // admin: somepass@example.com') & lt; addinfo...

shell exec - shell_exec() in PHP doesn't execute my specific command -

I am currently building a class in PHP which generates PDF documents using the command line app. To do this, I am using call to shell_exec to call WKHTMLTOPDF executable. However, this special call is not executed; It returns almost immediately. I gave me the following results for a small test: var_dump (shell_exec ('ping nu.nl')); // It prints a string, in which the ping command var_dump (shell_exec ('"c: /wkhtmltopdf/wkhtmltopdf.exe" - Estimate "Landscape" - Page Size "A2" - Margin-Top "25mm" - Margin- Left "20mm" - margin-down "20mm" - margin-right "20mm" "http://www.nu.nl/" "C: /Temp/1280310218.pdf" ')); // It prints zero , therefore shell_exec () is working, this is also closed safe_mode , and complete The command pastes the command does command in Cmd.exe runs properly. If any of the above problems (safe mode, a defective command, or shell_exec () itself...

regex - Is "@" a special character in regular expressions? -

I am working on an email filter and I've got a list of regular expressions that can be used to block all email While browsing through the list of senders that match a record in that list, I've found that all events @ events \ . Does @ mean something special in regular expressions and so many need to avoid \ @ ? This normally is not a special character, but to avoid it There is no problem, perhaps this is the reason why many people do this, they just want to be safe (or they think this is a special character).

oop - What mathematical duals are there in OO programming? -

If you have recently seen, then a very frequently mentioned topic is in programming. Good about dualism in tomasp object-oriented programming. Microsoft Research has found that the supervisor design pattern is actually a mathematical double Iterator pattern What are the mathematical double elements in programming? My question is this: Object-oriented programming is a good start: major Gough design patterns are: decorator, state, iterator, mask, strategy, proxy, factory method , Adapter, observer, template method, composite, singleton, abstract factory and command. There is a good object-graph-poster. I would say that programming is the primary dual code - data duel, most obviously in Lisp , But is also evident in most contemporary languages ​​that provide introspection functionality.

php - Stack overflow in Internet Explorer -

Yesterday I found a mistake on which I was bothered and laughing a little bit. I opened my website in Internet Explorer (I used Chrome 99% of the time) and got a "stack overflow" error I was just thinking that this is a bad thing That's because when I open it in Chrome or Firefox it's okay. Does this happen to anyone else? The website is, This is only bad if you have a user Internet Explorer Use Yes then

Verifying mime type of pdf files on upload in PHP -

I am working on the project for which file upload is required to ensure that it is safe and only Uploading PDF files I'm already checking file extensions, but I have to make sure that the file is actually a PDF file. What is the best way to check mime type in php? I am using PHP 5.2.5 and can not seem to be working in the fileinfo or mime_sign_type (). I am receiving it for fileinfo: WARNING: finfo_open () [Function.finfo-open]: Loading the Magic Database on '(empty)' Failed in 35 [[filename] [35] Mime type type checking Files are not reliable for A customer's browser may report it incorrectly. The PDF file starts with "% PDF" (25 50 44 46).

c# - Get all classes inside a namespace -

इस सवाल का पहले से ही एक उत्तर है: 11 उत्तर मैं सभी वर्गों को कैसे प्राप्त करूं एक नेमस्पेस के अंदर? जैसा कि @ हॉक ने उल्लेख किया है, इसका जवाब यहां पर है, नमूना कोड जिसे आप उपयोग कर सकते हैं:

jsf - rich:Jquery not working when use in a facelet component -

I have created a component that uses postal code with a rich mask: jquery, The component code here: & lt; H: inputText id = "# {id} -postal code" value = "# {myBeanPath.postalCode}" size = "7" /> & Lt; Rich: jQuery selector = "# postal code" query = "mask ('A9A 9A9')" timing = "onload" /> This works fine in standard JSF pages, but when it is not in the Facet component What is the way to enrich: jQuery in the Facet component work? After playing for a while with component component it seems that the jquery code page is directly on the Facet component. Is generated in different ways. The HTML on the standbyte JSF page will look like this: & lt; Td> & Lt; Script type = "text / javascript" & gt; // & lt ;! [CDATA [jQuery] .ready (function () {var selector = "#clientForm \\: postalCode"} {selector = eval ("# clientForm \\: postalCode");} hold (e)...

.net - Deleting old user settings -

I am using the functionality of standard .NET settings, which allow users to store settings under app scope gives. I have noticed that every time I establish a new build, it creates a new folder for settings and a new settings file. How do I use upgrade method update? New settings with older people Although I want to delete older folders so that they do not mess up the system. I can manually delete files and folders using the IO's capabilities. Net, but I was thinking that there is anyone in it Many thanks, Matt Div class = "post-text" itemprop = "text"> A non-direct answer is to use custom SettingsProvider such as Apadata \ Local Company Name \ Product Name Name and other hash strings without default version In this way, you can always ensure that you Using a user setting. The downside is that you can run into issues like collision with other apps or spoofing.

javascript - HTML select element onchange trigger for already selected option -

मेरे पास एक HTML ड्रॉप डाउन सूची है (एकल चयन) & lt; स्क्रिप्ट टाइप = "टेक्स्ट / जावास्क्रिप्ट" & gt; $ (दस्तावेज़) .ready (function () {$ ("# garden")। बाँध ('परिवर्तन', फ़ंक्शन () {चेतावनी ("बदला");});}); & Lt; / स्क्रिप्ट & gt; & LT; बॉडी & gt; & Lt; div id = "content" & gt; & Lt; चुनें आईडी = "बगीचे" & gt; & Lt; विकल्प मान = "फूल" & gt; फूल & lt; / विकल्प & gt; & Lt; विकल्प मान = "झाड़ियां" & gt; झाड़ियों & lt; / विकल्प & gt; & Lt; विकल्प मान = "पेड़" & gt; पेड़ & lt; / विकल्प & gt; & Lt; विकल्प मान = "झाड़ियों" & gt; झाश & lt; / विकल्प & gt; & Lt; / चयन & gt; & Lt; / div & gt; & Lt; / body & gt; & Lt; / html & gt; जब HTML पृष्ठ प्रदान किया जाता है, तो फूल डिफ़ॉल्ट रूप से ड्रॉप-डाउन में पहले से चयनित तत्व है (पहले वाला है)। अगर मैं किसी अन्य...

sharepoint - MOSS 2007 - Custom Aspx Pages Created With Feature -

(I have also asked this question.) I have a SharePoint feature that I can use To add some custom ASPX files to the Library Library. When I activate this feature, I can see the pages in the in-browser and they can appear in the SPDsizer, but when I see "all site contents" Feature element file: & lt ;? Xml version = "1.0" encoding = "utf-8" & gt; & Lt; Element id = "9e85eb79-6d8d-4ff3-b0d4-64d55c3bb577" xmlns = "http://schemas.microsoft.com/sharepoint/" & gt; & Lt; Module name = "page" url = "page" & gt; & Lt; File path = "example.aspx" Url = "Example.aspx" IgnoreIfAlreadyExists = "False" & gt; & Lt; Property name = "title" value = "example" /> & Lt; Property name = "content type" value = "page" /> & Lt; / File & gt; & Lt; / Module & gt; & Lt; / Elements & gt; Aspx ...

N Top Record Selection Based on Own SQL Statement in MS-Access -

I rewriting a small MS-Access application to take the exams. Based on the size of the test size, what they want to achieve a set of random questions. If each test had a certain number of questions, then I should just leave the number given in the head and be done with it, but for each exam, a number of There are questions, so I want to change the number continuously next to the head with a field in the query What I basically want is that: SELECT TOP tblExam. [ExamSize] * TblExamQuestions at INNER TblExam on tblExamQuestions.ExamID = TblExam.ExamID WHERE tblExam.ExamID = Rnd (tblExamQuestions.ExamQuestionID) from 10th order; When I open the report, I am supplying this new ExamID for each exam session, so it will probably be on the way. DoCmd.OpenForm strExamName, "tblExam.ExamID =" & amp; I think you have to create dynamic queries. ex> sSQL = "select top" & amp; DlookUp ("ExamSize", "TblExam", "ExamID...

payment gateway - Purchase physical product from iPhone app without Apple in app purchase -

Can an iPhone app purchase a physical product from within the user's app (say pen or mouse), without Using Apple in the App Purchase? Is Apple allowed? If so, do you have an API address that supports it? Thank you After the goods you purchased through this method You are not allowed to sell physical goods or services using 'in-app purchasing'. You are free to apply your own payment management system to sell physical goods - instace If you already have a website for this purpose you have to pay them on that too Can forward - even though it is very user may reduce the quality of the experience.

firefox addon - How do skype extensions for browsers actually work? -

We plan to develop a web application that has to be communicated with our locally run application. One of the potential options is using a browser extension. I was watching the Skype add-on to communicate with the Skype client. In Firefox, Skype add-on incorporates a piece of HTML when facing a phone number. & lt; Span skypection = "..." & gt; Calls using the Skype API which is processed by a Skype extension? Do extensions for other browsers use the Skype API or other communication system? I did some research and here is what I found. When the user clicks on the injected Skype link, the extension creates a new Skype process and this parameter specifies that the action and the number are specified. Custom protocol handlers are not used.

java - Equal and hashcode in inherited class -

In my understanding, implementation under the same and hashed is safe because the correct method will apply in the acquired category (rather than the parent ), Even if I call it through the original pointers provided the parent is considered as an intangible class (use in the JAPA-Habir base base) Please see this assumption on the basis given below. Confirm it. @Entity @ Inheritance class A {string type; } @ Entity Class B extension A {String uniqueName; ....... @ Override Public Boolean Barrage {.} @ Override Public Ent Hashod () {}} @Entity Class C Expands One {String Exclusive Name; ....... @ Override Public Boolean Parbar (object obj) {.} @ Override Public Ent Hashod () {}} Category D {AA; String name; } Since writing a similar / hash method for A, B can accept both A and C examples, it is fine with the above implementation (in B & C only, Not in) There will be no such case, where A starts immediately (New A). Thank you. I think your example code is incomplete b...

list - python: iterating through array -

मेरे पास ऐसा एक सूची है: brand_names = {'morphine': [' ASTRAMORPH ',' AVINZA ',' Contin ',' DURAMORPH ',' INFUMORPH ',' कादियान ',' एमएस Contin ',' MSER ',' MSIR ',' ORAMORPH ',' ORAMORPH एसआर ',' ROXANOL ',' ROXANOL 100 '],' oxycodone ': [' COMBUNOX ',' DIHYDRONE ',' DINARCON ',' ENDOCET ',' ENDODAN ',' EUBINE ',' EUCODAL ',' EUKODAL ',' EUTAGEN ',' एसिटामिनोफेन के साथ oxycodone कैप्सूल ',' oxycodone एस्पिरिन, ',' OxyContin ',' OXYDOSE ',' OXYFAST ',' OXYIR ',' PANCODINE ',' Percocet ',' PERCODAN ',' PROLADONE ',' ROXICET ',' ROXICODONE ', 'ROXIPRIM', 'ROXIPRIN', 'TECODIN', 'TEKODIN', 'THECODIN', 'THEKOKIN', 'TYLOX'], 'OXYMORPHONE':...

apache - How do I redirect a subdirectory and all files in it to the root using htaccess? -

I am trying to restore all the instructions to the subdirectory and any file in the root file, using htaccess . Currently, I have redirected to 301 / directory / / but it redirects with the request added to it in the root .. ie www.domain.com/directory/this.html Redirect www.domain.com/this.html I don not want to request that file at all. Is there any way to do this? thanks You probably use mod_rewrite Have to do. Assume that you keep .htaccess in the root directory, something like that should be done. & lt; Ifmodule mod_rewrite.c & gt; Riverlighting On Rewrite Raul ^ Name-The Subfolder /.*$ / [R = 302] & lt; / IfModule & gt; NB I have kept 302, because it is always usable for testing, 301 can change the pain test with your browser. Feeling free to change to 302 after working.

image processing - Band-pass convolution/diff of Gaussians filter -

I am reading a call to use a band-pass compilation using the difference from the Gaussian filter. How does the image processing operation work? This is probably the difference of the gauses filter. See signal processing as a conversion of the original signal with a filter kernel. This frequency is equal to the conversion signal and filter in the domain, where it multiplies and later it turns into a local domain.

.net 3.5 - Comparing 2 CSV files in C# advice? -

I need to develop an application where two CSV files are compared. A list of email addresses in the first file The second list contains email addresses, but names and address information are included. The first list contains email addresses that should be removed from the second list. I have a Fast CSV reader from the CodeProject site that works very well, the application will not have access to a database server. A new file will be prepared with the data that is verified. Meaning, it will not contain any information from the first file. If you read both lists, you use Linq to define the subset of the address can do. Here is a quick example class which I have alerted for you. using the system; Using System.Linq; Using System.Collections.Generic; Remove public class example {public list & lt; Items & gt; RemoveAddresses (list & amp; lt; item & gt; source list, list & lt; string & gt; remove email address add-on) {list & lt; Items & gt; NewL...

Print commit message of a given commit in git -

I need a plumbing command to print a committed message given to me - nothing, nothing less No. This is not a "pipeline", but it will do exactly what you want: $ git log - format =% b-n 1 If you need a "pipeline" command, you can use rev-list : $ Git rev-list --format =% B - max-count = 1 & lt; Commit & gt; Although rev-list will also commit commit sha (on the first line) in addition to committed messages.

.net - DRY LINQ Predicate Filters for Multiple Tables -

Suppose I have two tables, tables, and tables, each record B has one or more related records in IA. I should use a reusable filter which predicts. I can do something like this (like Lin-to-SQL): Private expression & lt; Func & lt; ARERORD, bool & gt; & Gt; Filter aggravated () {return x = & gt; X.Name == "Test"; } Private IQueryable & lt; ARERORD & gt; GetRecords () {DataContext.TableA.Where Return (Filter Implant ()); } This works fine, but I want to find TableB, but use the same "filter" on the foreign key to know how I relate to the telephone. To complete the question below. Select var query = from b in DataContext.B where b.A.Name == "test" b; I'm just thinking that there is a best method to make reusable "ou" sections that will help in many tables. Edit - To clarify, I'm not looking for a way to apply uniforms for ARecord and BRecord types. Private expression & lt; Func & lt; B...

PHP Session Variables - At Wit's End -

I'm just getting in MySQL and PHP - and I'm just trying to create a simple login system I am connected to log in logic and made, just fine, but now I can not get the session variable to move to new pages for my life. Can anyone show me the right way to do this? This is my login script - which is active by submitting a form: And here is the page that redirects it: & Lt; Title & gt; Untitled document & lt; / Title & gt; & Lt; / Head & gt; & Lt; Body & gt; By & lt;? $ _SESSION ['status'] echo; ? & Gt; & Lt; / Body & gt; & Lt; / Html & gt; In this case, I am still trying to get the session variable to register, so I am trying to print the variable data. I am trying to use isset and it has been redirected to the re-login page. Redirect works, but this happens every time since the registration of the session variable. PHP Verion 5.2.12 At a quick glance, three things: You can not remember th...

java - Regex class not working on server side of GWT -

I have the following part of the code in the module's server folder. pattern regex = Pattern.compile ("/ (B [A-Z0- 9] {9}) /"); Matcher matcher = regex.matcher (detailPageUrl); But I still get the following errors: [error] line 14: import java.util.regex can not be resolved [error ] Line 15: Import java.util.regex can not be fixed [ERROR] Line 202: Pattern can not be sorted by one type [ERROR] Line 202: Pattern can not be resolved [Error] Line 203 : A kind of solution can not be solved I have imported import java.util.regex.Mat Cher; Import java.util.regex.Pattern; In the code I thought Regex would work on the server side. Why is not it working? First look at the Java environment like Java version, CellPath, etc. The error clearly states that the package can not be imported due to some reason.

Windows Forms look different in Powershell and Powershell ISE. Why? -

I wrote a script, which is basically a small voice signing signature for Outlook. We want our signatures to be in corporate colors and are semi-standardized - hence its requirement. I did the development work in PowerShell ISE and all looked good, however, when I run the script using PowerShell (as the users would have) it looks completely different: The top was born in the ISE, and looks like, I want it. The bottom was directly driven from a power shell and visually seems to be for five years! How can I get the script to see PowerShell as ISE in PowerShell as a snack? Thank you, the following in your script Add form before showing the row: [System.Windows.Forms.Application] :: EnableVisualStyles ();

Display a variable-sized collection of TextBlocks/ComboBoxes in Silverlight 3 -

I have a list of text descriptions, each of which must score on a scale of 1-5 Number is variable, so I can not just define a stable grid in XAM. The following image shows what I am doing next: "http: //imgur.com/mPfsQ.png" alt = "alt text "> In ASP.NET, I could tie my list of text objects in a repeater control. For each line, the text will be displayed in a label, and there will be a dropdown list next to it that has a stable list of items. Is there any equal control available in Silverlight? Should I use one of these? List control Custom control obtained from item control (other) I solved this by controlling the items, and in the item template, I kept the text block and combo box control. The only wrinkle for me was that the combo box was dependent on a different datacontext, so I had to resort to using the DataContactProxy described in

python - Convert multiline string to single line string -

I am using Google App Engine and I have to put a multiline string in the datastore. Unfortunately, GAE does not allow that I need this string multipurpose, so is there any way to convert and store any single string in a row string? You do not need a conversion: (multiline = true) / P>

ruby on rails - Testing Paperclip file uploading with RSpec -

I do not really care about uploading files, but I have validates_attachment_presence etc. . In my model, RSPC is complaining. So now I will try and make my model with these attributes in the device to turn it off: @attr = {: name = & gt; "Value for Name",: Title = & gt; "Price for Title" ,: Content => "Value for content" ,: pic_file_name = & gt; "Example.jpg" ,: pic_content_type = & gt; "Image / jpg" ,: pic_file_size = & gt; "8192" ,: pic_updated_at => This does not work, though. I found this: So I tried to do something like this: post. Should_receive (: save_attached_files) .and_return (true) How can I please RSPC, which does not work? If the model is the_name_file: picture , then you will be in some file pic should be able to point out the attribute and all should be stacked. @attr = {: pic = & gt; File.open (File Join (Rails.root, 'spec', 'fixtures...

razor - Creating and Simple Class and Calling a Method from a cshtml File -

Can anyone give a simple example of simple method and a simple example of how to call method from cshtml file in WebMetrics is? I am trying to figure out that Webmatrix can be used in an object-oriented manner, allowing me to take advantage of Razor Citex, which is a visual engine option of MVC framework As a web application, at the end of the web application, I can use the combination of the power and productivity of webforms and the pages facing the public. And will be really good. I have limited knowledge of asp.net, but webmattics intrigues me but I do not think One in App_Code with just a few types. Insert cc file ... Public square some {public zero doIt () {}} Then just call a .cshtml file in .. . var something = new (); Something.DoIt (); You can only make it stable and make some calls. Straighten it. Hope that helps.

php - How to give a user's question a URL based on it's ID in MySQL, so one may access it in the future? -

For some reason, I can not get my head about this concept. Any advice / signal will be appreciated if I currently have this code: if (isset ($ _ GET ['id']) // Check that id $ _GET $ Id = mysql_real_escape_string ($ _GET ['id']); // SQL injection to stop $ resc = mysql_query ("select message, title, discussion from where id = '$ id' range 1"); // query the DB for the record if (mysql_num_rows ($ resc) == 1) {// Make sure the question $ ques = mysql_fetch_assoc ($ resc) exists; // mysql converts resource into array that can be used in whole script}} OK, so the code above is given to me in this case a special line , and from that, can get the necessary information that I may need but what I want to know, what if I want to give the URL to that question? For example, when I post my question on the StackVareflow, it will probably be saved in a database, and will have to adopt an ID or some similarity, so community members and I can refer to it la...

javascript - Firebug console shortening strings in array logged? -

I have a custom logging function to enter the Firebug console that looks like this: // Here the name is for fun function ninjaConsoleLog () {var slicer = Array.prototype.slice; Var args = slicer call (logic); Console.log (args); } And it works just as I want it ... except that if I have string values ​​over 7 words in the array, then the firebug console string value Except for the first two words and the last two words (approx.) Example: Ninja console log ("This is a long string, like energetic, It only keeps on moving and going. "); Function call result in the following output in the FireBug console: ["It is a long duration ... going and going. " ] It would be fine, except that sometimes the part of the string which is important in the console briefly First of all, why is this? Second, with my current logging function, can I force the console to output the full string value for each item array? Or look at the entire string when viewing t...

c# - How many instances and references are created for a Base-Sub Class? -

In C # .NET, I have 2 concrete classes I class A and B class B. A subclass of class A is. How many examples (objects on a pile) and stack objects from the stack are made for each line code: class bb = New class b (); class A = new square b (); The object that is going with an analogy The balloon and reference is a string that is bound to the sand, in each of the following cases there will be a balloon and a string: square bb = new square b (); // a reference, a heap object class AA = new classbie (); // One reference, a heap object Running both at the same time will therefore create two objects and two references. EDIT generated from the ClassB constructor at a glance on this IL: .method Public Hidden Reader Special Name rtspecialname Example zero () Cil Managed {// Code Size 7 (0x7) .maxstack 8 IL_0000: ldarg.0 IL_0001: Call Instance Zero InheritanceTest Class A :: CTOr (IL_0006: ret} method's // and classbie :: CTOR call installation vo...

logic - ADT properties in Mercury -

I do not know why Mercury (10.04) can not predict the determination of the next snippet: : - pred load_freqs (int :: in, io.res (list): out, io :: di, io :: uo Load_freqs (CPU, ResFreqs, IO): - open_input (cpu_fn (cpu, "Available_fractures"), resstream, IO), (resistor = IoOk (stream) -> gt; recefrec = io.ok ([]); ResStream = io.error (error), ResFreqs = io.error (Err) . This complains: cpugear.m: 075: in 'load_freqs' (inside, out, die, u): cpugear.m: 075: Error: determinism Announcement is not satisfied Cpugear.m: 075: Declaration of 'DAT', Estimated 'Assured' Cpugear.m: 080: Integration of 'Ristream' and 'io.error (Err)' may fail Cpugear.m: 076 : The prediction for 'cpugear.load_freqs' / 4: section of cpugear.m: 076: Warning: The variable' CPU 'occurs only once in this area. Cpugear.m: 078: Segment `cpugear.load_freqs' / 4: Cpugear.m: 078: For warnings: The variable `stream 'occurs only once in thi...

Accessing and sharing data between multiple sites in django from different databases -

I currently have three sites, for example it should be site 1, site 2 and site 3. Each site requires authentication Both site 1 and site 2 take a database, when it has a separate database in the "portfolio" database and site 3, it creates a "Site 3 Specific" database. I am planning to keep a common account database in order to keep the user's credentials available for all the different sites available so that each site (such as Site 1, Site 2 and Site 3) Use the common account database to authenticate. I am planning to keep the user's details in a separate database because all three sites in development, testing and live environments can share the same user credentials without redundancy. Also, each site may have its own specific data, which we can enter, register or enter in different ways in the development, scaffolding and live environment. There is also the possibility of sharing some data between sites. Can anybody please tell me how can I get...

jquery - How to wrap return type of ajax call in success with function -

I have a web service and it always brings back an object from my class that I define on the server side. success method $ Ajax function I always get this object and on the client side, I want to add some functions to show off my properties faster. Is there any such way? (JSON object will come back, I am concerned about it) You expand the javascript object You can add more ways to: var json = {name: 'john'}; Json.print = function () {Warning ('my name is' + this.name); }; Json.print ();

c# - How to pass parameters to ThreadStart method in Thread? -

थ्रेड में मापदंडों को कैसे पार करें। थ्रेड स्टार्ट () विधि सी # में? मान लीजिए कि मुझे 'डाउनलोड' नामक विधि है I / P> सार्वजनिक शून्य डाउनलोड (स्ट्रिंग फाइलनाम) {// download code} अब मैंने एक धागा बनाया है मुख्य विधि में: थ्रेड धागा = नया थ्रेड (नया थ्रेडस्टार्ट (डाउनलोड करें (फ़ाइल नाम)); त्रुटि विधि प्रकार की उम्मीद है। मैं मापदंडों के साथ लक्ष्य विधि के साथ थ्रेडस्टार्ट को पैरामीटर कैसे पारित कर सकता हूं? सरलतम स्ट्रिंग फ़ाइल नाम = ... थ्रेड धागा = नया थ्रेड ((=) = डाउनलोड (फ़ाइल नाम)); thread.start ( ); इस (अधिक ParameterizedThreadStart से अधिक है) यह है कि आप कई मापदंडों को पार कर सकते हैं, और आप को संकलित करने की ज़रूरत के बिना संकलन-समय की जांच कर सकते हैं हर समय ऑब्जेक्ट से

url - Java Load image from URLConnection -

मेरे पास URLConnection है, जो एक वेब पेज को एक्सेस करता है। यूआरएल यूआरएल = नया यूआरएल ( "https: // डोमेन"); Con = url.openConnection (); con.setDoOutput (सही); फिर मैंने con.setRequestProperty () का उपयोग करके सर्वर को कुछ डेटा भेजा है स्ट्रिंग headerValue = con.getHeaderField (6); मुझे html भी मिलता है और वहां से एक छवि यूआरएल को पार्स करता है। लेकिन यहां एक समस्या है। मैं केवल, सर्वर को वापस कैश डेटा भेजने जब मैं मेरी छवि acces से इस छवि को मिल सकती है। तो मैं एक नया कनेक्शन यूआरएल URL1 = नए URL खोलने ( "Https: // domain / image); URLConnection con1 = url1.openConnection (); मैं कुकीज़ को सर्वर पर वापस भेजता हूं con1.setRequestProperty (" cookie ", headerValue ); और अंत में मैं BufferedInputStream का उपयोग कर छवि को प्राप्त करने की कोशिश करता हूं और फिर एक जेलैबल में एक इमाज बना रहा हूं BufferedInputStream = new BufferedInputStream (con1.getInputStream) ()); ByteArrayOutputStream byteArrayOut = नए ByteArrayOutputStream (); ...

php - How to remove unwanted characters -

I am using KPPP 1.2. I'm using httpsocket method, it works great. But the content is surrounded by quotation marks. string (123) ".. this is where the content is". I think this is telling the type of reaction and number of output characters I have in my production setup. How can I remove it? I appreciate any help. Thank you. it seems that var_dump is being done on the other end either , Or draw out the text. preg_match ('~' (. *) "~ S, $ string, $ matches"; if (! Blank ($ match)) $ $ $ = $ match [1]; } Echo $ returned; Hopefully my regex is not terrible.

java - string memory allocation -

जो एक बेहतर है System.out.println ("हैलो वर्ल्ड"); या स्ट्रिंग s = "हैलो वर्ल्ड"; Println (रों); इस सरल उदाहरण के लिए स्मृति आवंटन के संदर्भ में कोई अंतर नहीं है।

how can I disable windows key in c#? -

How can I disable or lock windows buttons? /// & lt; Summary & gt; /// Security routines related to the Windows key on a standard personal computer keyboard are /// & lt; / Summary & gt; Public Static Class WindowsKey {/// & lt; Summary & gt; /// disables Windows key /// & lt; / Summary & gt; /// & LT; Comment & gt; The current user may need to turn off or restart the system & lt; / Comment & gt; Disable Public Static Zero () {Registry key = zero; (Try "system \\ CurrentControlSet \\ control \\ keyboard layout" true) {key = Registry.LocalMachine.OpenSubKey; Byte [] Binary = new byte [] {0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x5B, 0xE0, 0x00, 0x00, 0x5C, 0xE0, 0x00, 0x00, 0x00, 0x00}; Key.SetValue ("Scancode Map", Binary, Registry Value. Binary); } Hold (System.Exception pre) {Debug.Assert (wrong, ex.ToString ()); } Finally {key.Close (); }} /// & lt; Summary ...

iphone - How to creat UITable, UIButton, UILable, UIImage, UIText, UISlider, UINavigationBar, UITabBar programiticly? -

I am new to iPhone programming and I am trying to figure out how to use all these (UI) Without IB, so I'm only asking for code lines which will make each of them. For each of these classes, the best way to know this is through documentation, for example , They can be started with subclasses of UIView .

Custom Attribute in C# : How to create an Attribute which defines several other Attributes? -

The following attributes are defined on the My Name field: [Required (ErrorMessageResourceName = "ValidationErrorRequiredField", ErrorMessageResourceType = typeof (MyResources)] [Display (Order = 0, name = ResxStrings.UserName, ResourceType = typeof (MyResources))] Public string name {get; Set; } I want to create a custom attribute that looks like this: [MyAttribute (DisplayName = "username", error message = "validation Errurpeerfield ", resource type = MyResources)] public string name {get; Set; } defines the code in the second two ( required and displayed ) attributes. How to apply it? UPDATE This is not possible. Thanks to all those people who help answer my question. I do not think you can because the characteristics of the user often type them, so your new The attribute both must be a required attribute and a DisplayAttribute. C # does not support multiple legacy, so there is no way to create such a square.

asp.net mvc 2 - Displaying data objects mapped by ID elegantly in views -

मेरे पास समर्थन का एक गुच्छा मामले और उपयोगकर्ता है। प्रत्येक केस एक अद्वितीय आईडी के साथ उपयोगकर्ता को सौंपा गया है मेरा डेटा मॉडल यह एक असाइन यूज़र प्रयोक्ता आईडी संदर्भ से दर्शाता है। यह स्टोर करना और पुनः प्राप्त करना आसान है, लेकिन प्रदर्शित करने के लिए सुविधाजनक नहीं है। जब मैं मामले की एक सूची प्रदर्शित करना चाहता हूं, उपयोगकर्ता की संपत्ति को उपयोगकर्ता के उपयोगकर्ता नाम के रूप में स्वरूपित किया जाना चाहिए और नहीं उनकी पहचान पत्र, लेकिन यह जानकारी मामले के अंदर उपलब्ध नहीं है। मामले भंडार के अंदर उपयोगकर्ता नामों को पुनः प्राप्त करना मुश्किल है, क्योंकि यह एक अलग उपयोगकर्ता रिपॉजिटरी द्वारा प्रदान किया जाता है। फिलहाल, मैं DisplayFor (...) बनाकर ऐसा कर रहा हूं एक केस के असाइन यूज़र संपत्ति के लिए टेम्पलेट और ऑन एक्शन एक्सपेंटींग में एचटीटीपीकॉन्टेक्स्ट में उपयोगकर्ताओं के एक शब्दकोश का निर्माण किया जाता है, जिसे तब टेम्पलेट द्वारा संदर्भित किया जाता है और उपयोगकर्ता नाम के लिए अनुवाद किया जाता है यह काफी अच्छी तरह से काम करता है, लेकिन इस दृष्टिकोण के अन...

performance testing - Parameterize link elements in QTP -

How to parametrise the link elements in the QPP? I have an order number in my application. To find the number, I click on that number. QPP save it as a link. Now I want to see the details of another order. The number is parametrizes now raises the new number from the ktp datasheet. But as the link has been saved, it is for the previous order so that order is being opened and not new If you use descriptive programming, then parameter description the object through the variable. Example: [...] link ("name: = order" & intOrderNumber) If you are using the repository If you use mapping through the medium, then dataset the dataet directly for datat. You can find a very good explanation with the screenshot in QTP Help.