Posts

Showing posts from September, 2014

Flash or Silverlight for RIA Apps? -

क्या सबसे अच्छा होगा? फ्लैश या माइक्रोसॉफ्ट सिल्वरलाइट? ! भविष्य के लिए लड़ो!

blackberry - invoking web services from eclipse -

I have to open web services already created with my code and in turn receive feedback. How can I do this? I am working on Eclipse for the Blackberry Phone Simulator. You can go to ksoap2 for web service calls from Blackberry. Check

c# - WCF Service for many concurrent clients and database access -

I'm new to WCF services and I wonder what would be the best way to deal with the following. I have a lot of customers (~ 200 - 500) who are continuously continuing all my service requests during the working day. Most requests include the query of an underlying database to feed the correct response back. The relation I have is the possible number of database connections generated from incoming requests. If all the customers make a request together then the database server will be hit hard if possible, so I would like to avoid a silly number of databases. Would it be better to restrict the number of concurrent connections for WCF service and therefore reduce the possible number of unknowable database connections? I have seen service on making a singleton which spawns threads for database transactions, so I can control the number of threads, but is it a redundancy and connection to the service Will restrict? Many thanks for any advice. As mentioned earlier - WCF has a bu

performance - How to explain at your boss that code/resources optimization is important? -

Ah, every time it is so frustrating .. In our hosting company, we have a dedicated server And every time I have to write a new app (or add to a pre-existing app), I lose some time to optimize the code for many behaviors (to reduce the DB query, to optimize the DB structure, Bandwish etc.) depending on what the app should do. Of course, it is not that I write bad codes and want to recreate it, it can be found only after the completion of the project, all the things that are better can be done. And every, if my boss caught me to do this then he would say, 'Your time is wasting! If the app needs more resources, then we buy more RAM, more CPU or more bandwidth! '. Optimization is still important, and what is the best way to explain it is so easy or is it automatically upgrading (production!) Server hardware? Edit : Not just talking about database optimization, but every aspect of an app The next time you move / renovate a server, and each minute of the protocol

How to log an c++ exception -

Do you know how can I log exceptions? Message is currently printed on the catch statement, but I do not understand why manage. (; Equals & amp; acc acc, commonman, comando, runcomand, login, and; & amp;; party; comandosS, runcomomandosuper, true) Manager.Gere try {; } Hold (...) {log ("enter error" *****); } Perif :: Gere (cstring * equals, cstring * acc, hand handle, handle handle handle, RunComando, log & amp; login, cstring * party handle comandosS handle RunComandosSuper, bool first) {log-> LogD ("Perif :: Enter ******"); // It does not print} The exceptions which you first need Manage Gear can throw . Then hold specially grip (first EXEXGRESSERAPRO F) and when you capture all possible exceptions, you will know that manage. What has failed in . hold (first concept and a) {log & Lt; "Failed because first exception \ n"; } Catch (secondexception and f) {log & Lt; "Failed because the second is \ n"; }

ide - Intellij Idea: Highlight usage of element at caret option. Change color -

I have just turned on "highlighting the element on the carat". (Settings -> Editor) But the default color is a light blue. I would really like to highlight it on bold and easy to see. I did not find any option in the color menu. Is this possible? Yes. Settings> Editor> Color & amp; Fonts> General> Identifier under carat

sql server 2005 - Slow performance of Reporting Services, very fast in QueryAnalyser -

We are using SQL Server 2005 with reporting services. We have many reports, each containing a relatively simple SQL query - by "relatively" - I mean we get something, but nothing is worse than this. Also do not call the stored procedure - this is not a case of sniffing the parameter. By executing one of these reports through reporting services (we call it Report A), it takes a very long time to complete - Tens of tens or hours of order to complete On. When executing related SQL queries in Query Analyzer, this completes in a few seconds. The number of rows returning from the database can be as 1 - However, the report is never complete. Other reports are working fine. Looking at the reporting table on the reporting services, I can see that the timeadata is in recovery most of the time (and we're talking here for hundreds of millions of minutes ..) - the report actually gets completed at that time If the report has been manually canceled, the timeout recovery i

caching - Cache-oblivious data structures and dynamic languages - effective? -

I have recently read about cache-forgotten data structures such as an assist buffer pile, in this data structure cache memory Most recently work by keeping access elements, so any subsequent access becomes faster. More of these data structures are implemented with low-level language like C-C ++. Are these data structures trying to keep the dynamic language on a port like Python, or the upper part of the running on a virtual machine is ruined by all the performance benefits of these data structures? It seems that the latter, but I thought I would ask to ask if it really has some experience in it. You have better control over the exact size of each data structure in C (or C ++); itemprop = "text"> There is also the possibility of proper control over the storage allocation. In most dynamic languages ​​(such as Python) you have no control over the exact size, there is very little space You may have some temporary areas in Python, but You do not have less or no spa

Silverlight - partial or progressive loading large images for thumbnails? -

I have some large images (in MB) which I want to quickly see in the form of thumbnails (KB ) In. I would like to avoid storing 2 images on the server (one for a larger image and one for thumbnails). Images are stored with Ezur Blobs Seen in deep zoom, it does not seem to handle dynamic images. EDIT: The content type of images on blue is "application / octet-stream" maybe it will help change? Any thoughts? The option to download does not store the full image and on a supplementary thumbnail A thumbnail will be generated while flying on the server. It would be expensive to guess but I doubt what you really mean that you do not want to provide two images for the provider of images Here is a part of a code which I Use server-side to scale an image: - Personal bitmap scale image (image img, int divisor) {int toWidth = Math.Max ​​(IMG. / Separator, 1); Int toHeight = Math.Max ​​(img.Height / divisor, 1); Bitmap result = new bitmap (toWidth, toHeight); (Us

Ruby and console output -

It is possible to output a symbol to a specific location on a common Windows console screen via the Ruby Library, which Does that seem 80x25? The problem came with the need to attract a specific 'tree' structure, for example: │ ├──x── Y──z │ │ │ ├── ├── ── │ │ │ └── └── └── │ └── └── └── └── └── └── └── └── └── └── └── └── └── └── └── └── P> If you are interested in creating a tree in the console, then shows you how to do it.

java - How to learn JSP/MVC, with previous experience in ASP.Net MVC? -

I have just started entering the door of the Java world. I have been programming in C # for the last 3 years, and I have been doing 3 months of ASP.NET MVC. I like it at all, but the fact is that I need Windows to run the latest and biggest library for this one bit of a turn ... Plus I think learning another language helps in understanding concepts That's because you compare. I want to learn JSP / MVC. I was thinking that it is similar to ASP.NET MVC, and if I want to write JSP / MVC web applications without another I can write to start framework (like spring). Besides, which is a better way to learn JSP / MVC than my C # background? Any suggestions are welcome Thanks in advance! JSP is an visual technique , which is the best "classic ASP" Compare with Microsoft ASP.NET Sun Java equivalents of MVC are actually JavaAserver Face (JSF). For a brief and quick introduction of JSP / Servlet / JSF, to learn more about JSF, go ahead. Another visual technique

Connection error in sql server 2005 -

I have a problem, I run the application C # and I get an error "A network-related or instance-specific error occurred when installing a connection to SQL Server.The server was not found or was not accessible. Verify that the name of the instance is correct and the SQL Server has a remote connection Is configured to allow. (Provider: SQL Network Int. Faces, Error: 26 - Error specifying server / instance) What? Thanks The error message says a lot: Make sure the example name is correct (if your SQL Server is using examples) and make sure your server is configured to allow remote connection .

c# - Switching Database in LinqToSql -

How can we change the underlying database for Linq based WebApp? For example: When we leave our web application, the ado Using the net, being released from production, the strong connection string in the web is as simple as configuring to point to the live database. Are there. Note; using c # P> thanks I will highly recommend the data reference with connection encryption in your app immediately. I will create an auxiliary component which: public static class DCHelper {create public static MyDataContext (return new MyDataContext (Configuration Manager Connectivity ["CS"]. ConnectionString);} < / Code> In this way, I have only one place in which the reference is referred, or I can change the configuration file to switch the database. Or, to determine the connection .

javascript - Check the parent checkbox with jQuery -

Basically I'm trying to write a JS Funk that if I check a child check box, then checks the parents' checkboxes also, if not already checked . I am using jQuery here my html: & lt; Ul id = "ulParent" style = "margin: 0; padding: 0; list-style: none;" & Gt; & Lt; Li style = "margin: 0 px 0;" & Gt; & Lt; Input type = "checkbox" check = "checked" class = "laser" id = "p1" /> Parents 1 & lt; Ul id = "ulParent" style = "margin: 0; padding: 0; list-style: none;" & gt; & Lt; Li & gt; & Lt; Input type = "checkbox" checked = "check" class = "li chald" id = "c1" onclick = "demand demand (this);" / & Gt; Child 1 & lt; / Li & gt; & Lt; Li & gt; & Lt; Input type = "checkbox" checked = "check" class = "li chald" id = "c2" onclick = "spinac

Does Hibernate auto-rollback programmatic transactions when unhandled exception occurs? -

When working with programmatic transactions in Hibernate, it is necessary to make a rollback call explicitly when an exception occurs, or Will there be any uncontrollable exception to rollback calls in mind? The code below seems like a secure approach (albeit ugly code) to ensure rollback, but I'm wondering if this is another great way to coding, thoughts? applicationContact AC = new classpath XmlApplicationContext ("hibernate-config.xml"); Session Factory Factory = (Sassfinti) ACATABA.N. ("Sessionfactor"); Session session = factory .getCurrentSession (); Transaction txn = Faucet; Try {txn = session.beginTransaction (); // & lt; Insert transaction tasks here & gt; Txn.commit (); } Hold (exception e) {try {txn.rollback (); } Hold (exception eAny) {} throw (e); } Finally {session.close (); } How about using? Runtime due to all runtime exceptions by default, but you can tune it to rollback to all exceptions. AFAIK should be aware of somet

c# - How to sharpen/complete/correct text in image -

I have some scanned images that contain text, after scanning, the text is sluggish and in some places the text Some pixels are missing The loss of pixels is really small but not enough to accelerate the image. I would like to find an algorithm that will try to correct or correct the pixels lost during sharpening and scanning the text. I know this is a long order, but I was hoping someone could tell me in the right direction. I am using C # I know how to accelerate an image, but not particularly for the text. If there are other benefits then I am open to other languages ​​I have seen in imaging and some scripts have been found to help in duplicate and clean text. I really need to "repair" compared to something, please let me know if you have any suggestions. It may be that we use the poet's imaging imaging products, And this can make them like this kind of thing. Especially, look at the smoothing features and character enhancements, what is it necessary for yo

pipe - Detecting death of spawned process using Window CRT -

Executive Summary: I have a need to determine whether I created a Windows project through _spawnl and I'm communicating using FDs from _ PIP has died. Description: I am using a low-level CRT function in windows (_eof, _read) which via a call to communicate with a process, _spellel ( P_NOWAIT) with flag I am using _pip to create a file descriptor to communicate with this spanned process and passing those descriptor (FD #) on the command line. It is worth mentioning that I have a spanded process. This is a black box for me. It has been found that we are sometimes hunting for accidents. I am trying to strengthen my code by detecting the accident. Unfortunately, I do not have a way to do this Can see To expect this I think it would return an error error status (-1) to say or read one of those descriptors if the process died. Unfortunately, this is not the case. It appears that the descriptors are independent of the living process, even if the process on the other end has

uitableview - iphone UITableViewCellStyleValue1 detailTextLabel overlapping textLabel -

I am using UITableViewCellStyleValue1 in my table and I am setting some text for both textLabel and detailTextLabel In the Expanded Text Label is a long URL, which overlaps with textlabel (usually "URL" and then "U."), which is useless. Is there no way to stop it, except that I make my own label and put it in the same place where the default is? Thank you! You have to set the minimum font size for text label. Adjusts fontizhosphitvitha The font size should be reduced to fit the title string in the label's rectangle, this indicates Boolean value. Adjusts @ property (non-standard) BOOL FontSizeToFitWith Discussion Generally, the label text is drawn with the font specified in the property of the font If this property is set to YES, however, and if the text label's limit of text labels is greater than the rectangle, the receiver starts decreasing the font size until the string is fitted or it reaches the minimum font size is. The default

c# - To Constructor Inject Or Not With TDD? -

I have a method that I'm trying to test the unit using a query object, I type this query object I would like to stub my unit tests for this query object in a dependency (unitofwork) I'm using IOC / DI container to instantaneously my items in the app, however I do not use container while doing TDD I like the way I look at it, I have 2 choices: Add a query object to the query object as a field or property, and it's the CTOR argument Inject in form. Although it does not seem right that this 1 method is the only method that will use it, and if I ever need to add another method that used this query object, then the object Add the query object to the signature of the method. odor? Is there any other option or petter for this? Or am I doing it wrong? Here are some pseudo codes: Option # 1 Public Class Order Controller {Public Order Controller (IORDCF Query) {This.query = Query; } Private Readonly IOrderQuery query; Public quiz & lt; Order & gt; Ord

c# - WebClient throws exception on second download atttempt -

I am trying to write a random wallpaper downloader for my desktop. The code works fine on the first download but hangs and throws an exception on the second attempt. I tried to dip a customer and start with a new web client. Thanks also in advance I tried without settlement. Public class ChangeWallpaper {[DllImport ("user32.dll", Charset = Charset.auto)] Stable extern int system ParametersInfo (int uAction, int uParam, string lpvParam, int fuWinIni); Public Stable Zero Main () {Random fileNumber = New Random (); String pathstart = "http://www.starcraft2.com/images/screenshots/ss"; String pathind = "-heres.jpg"; While (true) // always loop {string randomFile = fileNumber.Next (1, 126) .toString (); Web client client = new webclient (); // OK the first time - & gt; The second challenge is to reprimand! Client Download file (PathStart + Undfinite + Pathind, "Picture .JPG"); Client.Dispose (); Try removing // bitmap BM = new bitmap (Image.Fro

jQuery UI Dialog with AJAX Tabs Problem -

Using the jQuery Tools tab (AJAX) with jQuery UI Dialog (Manually doing AJAX Loading I dialog). The problem is that the dialog is loading and specially set for the current tab (loaded on tab requests via AJAX with tab content). The jQuery UI, when creating a dialogue, removes the container from its original state, adds its markup, and adds it to the body The problem is that the dialog is now outside the contents of the tab and later the tab Changes will not be replaced / removed. If the user clicks on another tab, or back button (there is an AJAX history using the tab URL hash, the page is not actually reloaded), the dialog has been broken, but it has not been deleted Because the jQuery UI dialogue has taken it out of the tab content it now appears in the lower part of the body. I wrote 'hack around' for it if the user physically closes Does not click, but it also has pressed the back button or load any other tabs through AJAX and jQuery UI, it is not removed. Body (Not sure

c# - Why is dbml generating extra classes -

I'm having a small problem here. The table that is using the dbml (LinqToSql designer) columns (foreign keys), for which it generates two things for the affiliate blogs table (1: 1) in the DB, Table Author: Author ID INT, Name varchar (20), BlogID INT and < Code> table blog: BlogID INT, name varchar (MAX) blog {string name; Int id} Blog 1 {string name; Int id} It also appears in intellisense that I have also removed and added a new DBML, but still the same result. What's up I had the same time when I have two FK references in the database (I have multiple columns one in one database. Only point through the FK in the table), either I did intentionally or had two references to my accident. HH.

How do I add All new Files to svn -

I am using an ORM which generates large amounts of files from CII. Is there an easy way to add svn to all files in a directory which appears as? When do I run svn status? Edit This file is present in a directory tree therefore * will not work for a directory You can only assign a code svn add path / to / dir / * You will warn about something already in version control but this Anything that is not there will add them.

php - Show warning/error to user without using wp_die -

I'm currently developing a WordPress plugin to work for my plugin, I need some information on settings information is. Is there a way to throw a warning / error that the blog administrator can see his message on his dashboard? Is there any other way to show errors other than wp_die ()? Just in case of my plugins (or someone else's) screws and I want to inform that in a fashion well;) I would recommend using the admin_notices operation to allow you to display warnings and errors and to direct your users to a page: Add_action ('admin_notices', 'my_custom_warning'); Function my_custom_warning () {if (true == true) {echo '& lt; Div id = "my-custom-warning" class = "error fade" & gt; & Lt; P & gt; This is a test & lt; / P & gt; & Lt; / Div & gt; '; }} This method ensures that your users can still use WordPress but they will tell them where they can get a potential problem. Html

How does Cappuccino manages to layout views like in Cocoa? -

How does the layout support of CAPPOSCONO work? For example, Center and Automatic Resizing Autoresizing masks in this method apply more or less: One more At the conceptual level, all the scenes in Cappuccino are positioned exactly. Depending on the browser to exclude things, we always know where everything is, and can decide accordingly.

security - Is there a built in function to hash passwords in .NET? -

I saw this question and I know that I do not have MD5 ("salt" + password) should do) ; And I look at an implementation in Python for a solution. Is there a .NET built in functions with a parameter, can I use instead of writing my own? checkout string hashMD5 = FormsAuthentication.HashPasswordForStoringInConfigFile (pass + Salt, "MD5"); String hashsha 1 = form attestation. Hashpswordforstoring configuration file (pass + salt, "SHA1");

c++ - Are function-local typedefs visible inside C++0x lambdas? -

I have participated in a strange problem The following simplified code reproduces the problem in MSWC 2010: template & lt; Typename T & gt; Structure dummy {static tu fu (zero) {return t (); }}; Int main (empty) {typingf dummy & lt; Balls & gt; Dummy_type; Auto x = [] {bool b = dummy_type :: foo (); }; // auto x = [] {bool b = dummy & lt; Bool & gt; :: foo (); }; // works} I do not see the locally built typedef in lambda functions. If I replace typedef with the actual code, then it works as expected. Here are some other test cases: // Crash creates the main for the compiler, Terredon (zero) {struct dummy {}; Auto X = [] {Dummy D; }; } // Expected et main (zero) works as {typingf int integer; Auto x = [] {integer I = 0; }; } I do not have G ++ available for testing now, is it just some strange rule in C ++ 0x, or just a bug in the compiler? With the above results, I am tilting towards the bug though the crash is definitely a bug. For no

apache - sub-domain directory redirection using htaccess -

I'm trying to redirect something like this subdomain.domain.com/directory Domain .com / directory I tried to redial the [htaccess file] that was placed in the 301 / domain.com/directory [subdomain, it works fine for the sub-domain But the subdomain will not work in the directory, the domain Can anyone help me with the contents of the .htaccess file? Thanks If you just go to xxx.domain.com/yyy from www Want to redirect all requests. Domain.com/yyy You can use: RewityCand% {HTTP_HOST}! ^ Www \ .domain \ .com [NC] rewrite% {HTTP_HOST}! ^ $ Rev. rt ^ / (. *) Http: //www.domain/com/$1 [L, R] NB: You will need to make sure the rewriting engine for the first time Is it Updated .. If you want 301 now, change [L, R = 301] to the last line [ L, R]

django - how to save form (not a modelForm) -

Maybe there is a silly question, but I'm not sure how this can handle 'right'. I have found a general form with some areas. I can insert data without problems when I want to edit a record, I am using "Model_to_dict" - to populate the form. After editing the record, I want to save it, and here my problems begin. The Dzegoo Docs says that a model updates the record on its own or PK-value basis. If pk-value is present, then an update of it, otherwise putting one. So I have created this saved-function: def save (self, primary_key = 0): mymodel = somedellel (pk = primary_key, sample field = self.cleaned_data ['samplefield'],) Mymodel .seave () Print 'PK:' + str (DPK) # Handle yourself in multiple ChoiceField X. ScaledDedata ['Payment Method']: x.mymodel_set.add (d) So, when I edit a record it works fine but when I put a new record I'm justified, but mymodel.id = 0 means that I can not save the relationships of multiple Swissfie

Python - uniquifying(!) dictionary keys -

I'm coming from a machine (via paxpackets) and I parse it using a regexes in a dictionary For the line in the stream: If in the '/' line: # some mailing, the name of the # machine, the interface and the data for that interface = str (hostname) + results in receiving the data "+": "+ R.groups () [0] [0: 2] + r.groups () [2] dict [key] = str (line [3]) And all this Works fine, I like so many lines I get it when I read it back machine1: fe0 & lt; data & gt; & lt; data & gt; < / Code> is a string or integer Now I know that many data may be present for the interface, and it seems that in this case, whenever I encounter it, I still I am overwriting the value for the price. What I would like to do is to make something unique in such a way that there is a lot of information available for this interface. If there is 3 example or fe1 in fe0 4 machine1: fe0: 3 At that interval I have no problem that after an example tell me t

php - is_writable() return false -

मुझे PHP फ़ंक्शन Fwrite () $ filename = 'rss.xml'; यदि (file_exists ($ filename)) {गूंजती "फ़ाइल $ फ़ाइलनाम मौजूद है"; } यदि (is_writable ($ filename)) {$ fp = fopen ($ filename, 'w'); फ़िलिट ($ एफपी, $ फीड); fclose ($ एफपी); } Else {गूंजती & lt; br / & gt; नहीं लिखित है ... '; अगर (! Is_readable ($ filename)) {ईको 'और पठनीय नहीं है!'; }} एक बार स्क्रिप्ट वापसी निष्पादित की गई: फ़ाइल rss.xml लिखी जाने योग्य नहीं है .. आरएसएस.एक्सएमएल के लिए chmod 755 और सफ़ेमोड बंद है। मुझे (डीटी) पर (एमटी) mediatemple.com पर होस्ट किया गया है और जब मैं (जीएस) पर होस्ट किया गया था तो स्क्रिप्ट ठीक काम कर रहा था समाधान। मुझे पता नहीं है कि क्या गलत है / / सीएमओडी 0,55 का मतलब कि केवल फ़ाइल मालिक इसमें लिख सकते हैं (समूह और अन्य पढ़ सकते हैं और निष्पादित कर सकते हैं)। उपयोगकर्ता / समूह के आधार पर आपको सीएएमओडी को 0775 या 0777 में बदलना चाहिए।

ado.net - Can I use SQLParameter when having a variable quantity of fields to update? -

I have a table with eighty fields, seventy of them can change based on an update process. To: if (process.result == 1) cmd.CommandText = "Update T set f1 = 1, f6 = 'S'"; Else if (Process.result == 2) cmd.CommandText = string.Format ("UPTATE T SET F1 = 2, f12 = {0}, f70 = '{1}'", getData (), st); And if ....... I can customize the building process of the UPDATE statement, however I would like to use SQLParameter ; Is it possible and convenient that you see the variety of data to update? Thank you. If you are currently using inline string formats for each statement, Just add the SQL parameters. The formatting of the UPDATE string can be substituted. You need to update them to the selected SQL parameters.

c# - What is the accepted standard for dictating lambda expressions? -

संभव डुप्लिकेट: कभी-कभी, जब किसी अन्य प्रोग्रामर को कोड लिखने में मदद करते हैं, तो मैं उसे निर्देशित करता हूं कि मैं उन्हें किस प्रकार टाइप करना चाहता हूं। कभी-कभी यह एक निराशाजनक अभ्यास हो सकता है जब तक कि प्रोग्रामर को आपके द्वारा कोड की व्याख्या करने के लिए उपयोग किया जाता है (अर्थात "5 से x" बनाम "एक्स बराबर 5" ")। एक बात जो मुझे नहीं पता है कि सी # में लैम्ब्डा एक्सप्रेशंस कैसे प्रभावी रूप से उच्चारण है उदाहरण के लिए, अगर मुझे (x, y) = & gt; X * y टाइप किया हुआ है, यहां पर मैंने कई चीजों की कोशिश की है: मुझे: लम्बाडा एक्स और वाई लेना अभिव्यक्ति, x बार y उसे: "हुह?" मुझे: प्रतिनिधि और एक्स ले जा रहा है, एक्स बार लौट रहा है उसे: प्रतिनिधि (x, y) {return x * y; } , किस प्रकार x और y हैं? मुझे: एक्स और वाई के ट्यूपल, दाएं तीर x बार y उसे: "एह?" मुझे: खुले पैर, एक्स, अल्पविराम, y, क्लोज-पेरानेवाले, राइट-ऐरो x बार y Him: (x, y) -> x * y मुझे: एर, डबल-तीर? उसे: >> मुझे: सघ ... बराबर-से अधिक

language agnostic - What is the key combination to send NUL byte from a terminal? -

यह हास्यास्पद लग सकता है लेकिन मुझे & lt; policy-file-request / & gt; एक टर्मिनल से एक्सएमएल सॉकेट सर्वर पर एक नूल बाइट के बाद। मैं पुटीटी का उपयोग कर रहा हूं लेकिन मैंने सभी प्रकार के संयोजनों जैसे \ 0 या / 0 या \ u0000 लेकिन कोई फायदा नहीं हुआ। मैं सोच रहा हूं कि इसके लिए एक विशिष्ट कुंजी संयोजन है या क्या मैं कहीं गड़बड़ रहा हूं? < यह उस चीज़ पर निर्भर करता है जो पुटी की नकल कर रहा है (अलग-अलग emulators इसे अलग तरीके से मैप कर सकते हैं), लेकिन यह आमतौर पर ^ @ - वह है, Ctrl + @ ।

c++ - How to ensure a member is 4-byte aligned? -

To use the OSAtomicDecrement (MAC-specific nuclear operation), I need to provide a 4-byte alliance SInt32 . Is there such a cooking job? Another way to deal with alignment issues? struct SomeClass {SomeClass () {member_ = & amp; Collection_ + ((4 - (and storage_% 4))% 4); * Member_ = 0; } SInt32 * member_; Struct {SInt32 a; SInt32b; } Storage_; }; If you are on a Mac, this means GCC. GCC can auto-align for you: __ distributed (__ aligned __ (4)) int32_t member_; Please note that this is not portable for compilers because it's GCC specific.

Global variables in C++ -

I should write a program that should be read from the input number in the main () part, and then counting some other boolean work numbers I do not want to include all the other parameters in the entire array and function while I call them. My question is: Can I create some variables in C ++ to read the input, but in a way that other functions outside of main () also give these variables "address "And what is inside them? When I call the function, do not have to put too many arguments? This code is: #include & lt; Iostream & gt; using namespace std; Inline bool del (int n) {int i; {If ((n% a [i]) == 0) back to true (I = 0; i & lt; s1; i ++); } return false; } Inline Bull Ned (Int N) {int i; (I (i =); i (i <) i ++) (if ((n% b [i]) = 0) true true;} description is false;} main main (zero) {intrate s 1, S2, a [25], b [25]; int m, n, i, k = 0; bool d, nd; cin> gt; s1> gt; s2> For i & lt; i ++) cin & gt; & gt; A [i]; for (i = 0; i &

Xcode: I lost file type on one of my Objective-C .m files-- no more formatting, breakpoints, etc -

I do not have any clear steps about which I know, Xcode has decided that one of my class implementations ( M ) files are of unknown file type. So I suddenly lost the ability to recognize the breakpoint in that file for all colors / highlighting / autocomplete and opened (more problematic) debugger. Right-click on the file and find the information I want to type as sourcecode.c.objc forcibly type, which temporarily restores syntax highlighting. , But it will eventually be voluntary only black on white text. Breakpoints will not work yet Restarting Xcode does not clarify this situation. I've opened my project.pbxproj file, and have ensured that the attributes on that file are similar to all other .m files then resume Xcode again, no dice. Anyone can before and / or tell me how to forcibly go out of this state? Thank you! What if you save it under any other name?

c - How to get the running of time of my program with gettimeofday() -

So I get time at the beginning of the code, run it, and then get time. Structure deadlines start, end; Gettimeofday (and start, tap); // time for code gettimeofday (and end, tap); // Get the total number of MS which took the code: unsigned int t = end.tv_usec - begin.tv_usec; Now I want to print "** 0.007 seconds to run the code" or print something like this. Then two problems: 1) T contains the value of the order of 6000, and I know that the code did not take 6 seconds to run. 2) How can I change it in two, is this an unsigned int? Or is there an easy way to print the output the way I wanted it? 1) That's because usec is not 6000 milliseconds, it's 6000 Is Microsoft (6 milliseconds or 6-second one-thousandths). 2) Try this: (double) t / 1000000 it will convert to a double, and then the number of seconds instead of the number of microsoft to divide by one million. Find out.

How to make Visual Studio stop "compiling" .js and .css files -

I Use visual studio as my editor for CSS and .js files .. It really saves especially with .js files, because it He is insisting on inducting them very funny, but I find that the first alt-tab always has a browser instead of the other editor, and that ctrl-tab is always either code file or CSS / JS. Anyway, in all their divine knowledge, it decides to check them along with syntax errors, and every time I compile my project, it gives many "errors" that push. Below the actual errors of the compilation, so every time I make a syntax error in the code file, let me see what is wrong, scroll through all JS / CSS errors Right. Examples of such errors are not actually errors): Error 7 Verification (CSS 2.1): 'Text Presentation' is not a known CSS property name. Error 8 Validation (CSS 2.1): 'Opacity' is not a known CSS property name. The situation has recently worsened, because for some reason any .js file is now. Css file, so I get such errors: Error 1

java - Android Button Doesn't Respond After Animation -

I have a basic animation of a button after it is pressed currently in my application. After finishing the button animating, I can not click on it anymore It also does not press with an orange highlight any help here is my code:.? Public Zero onCreate (bundled savedInstanceState) {super.onCreate (savedInstanceState); SetContentView (R.layout.main); Animation = new animation set (true); Animation.setFillAfter (right); Translation of animation = New TranslationAnimation (Animation.RELATIVE_TO_SELF, 0.0f, Animation.RELATIVE_TO_SELF, 0.0f, Animation.RELATIVE_TO_SELF, 0.0f, Animation.RELATIVE_TO_SELF, 5.0f); Translate.setDuration (500); Animation.addAnimation (translate); Layout Animation Controller Controller = New Layout Animation Controller (Animation, 0.25F); Generate = (button) Find VBID (RID Button); Gener.setOnClickListener (New View.OnClickListener) {Public Zero onClick (see v) {keyFromTop ();}}); } Public Zero Keystorm () {generate.setAnimation (Animation); } Text after &

php - Wordpress loop inside of function = fatal error -

I have my WordPress blog at blog.mysite.com, and on www a completely different site (in my framework Created) mysite.com. I know that blogs and other sites are on the same server, and there are correct permissions, so I can experiment with non-blog sites to syndicate the following blogs "blog": < / P> Define ('WP_USE_THEMES', Incorrect); Required ('/ var / www / vhosts / mysite / subdomain / blog / httpdocs / wp-config.php'); Query_posts ('showposts = 5'); ... and then run a loop on the page. The problem is that since my non blog site is a framework, everything except the controller in front of me remains in the function - and this is causing the following error for me: (BTW, I'm quite a fact that this code is said inside a function that generates errors ... when I put the code on the front controller (not in the function) Ruti vanishes) I have no idea how to do this should indite recent blog entries on your non-blog site?

multithreading - How to create custom objects/list of custom objects in VB.NET? -

I need two separate lists, which are the integer, string, bitmap of each item - and that's every item integer , String string Although I do not know how to do this, or even to see - I have googled for custom objects and custom object lists. What I'm trying to do is to use Custom Object1 integer, string, bitmap custom Object2 is integer, string, string I will add items to List1 (Object1's), and processing them, and adding 2 results to List2 (2 of the object), but me To see the list needs to be enabled from the other thread and say only to give me the item where the integer = (my thread id), is it possible? Any help, or even links to information that would be relevant to this request? Do something like this: public class type 1 private _ThreadID Integer public property (threadid) meets as integer as return return _ThreadID termination set _ThreadID = value ending set end property private _MyString go string string as public property () as MyString _MyString termi

javascript - Setting document.body.className as a variable -

When a user clicks on a link, this is my code to switch to my body tags class. function switchBodycore () {if (document.body.className == 'blue') document.body.className = 'red'; Else if (document.body.className == 'red') document.body.className = 'green'; Else if (document.body.className == 'green') document.body.className = 'blue'; } I want to set the resulting color as a variable named bodyColor. So if the body class is "blue" and the user clicks on and switches it to "red" then I want red to be red later in the form of variables for other uses. Or better yet, set the document. Body.className as a self, and then switch the document. In that computer with the BowdierColver () function. Call.ClassName. I thought on the lines of this: if (document.body.className == 'blue') document.body.className = 'red', var bodyColor = Red; To set the body class as a variable, or color = color =

ruby - Jruby Gem For Heroku -

I'm trying to install a gurabi app on everybody. Unfortunately, when I try to install a gem for Heroes using the necessary, I get the following error: /proj/jruby-1.3.1/lib/ruby/1.8/mkmf .rb: 7: Check wiki.jruby.org for native extension options that does not support JerRubi. 'Requirement' from extconf.rb (NotImplementedError) /proj/jruby-1.3.1/lib/ruby/1.8/mkmf.rb:1:in Error 1: Installing Heroko: Error: Creating Mani Extension Failed Is there any way to install Heroko Mani? Any help will be great. Cheers The problem is that heroku gem depends on some other gems The original are the extensions, which certainly do not work in JRUB. I also believe in a great extent that Heroko does not support JRB in any way.

Rails: Where to place plugin files -

I am relatively new to rail and recently found some useful gems such as achieving the project and really fast To However, I was wondering where plug-in dependent models, views and controller files are located, but the main concept of my project is. For example, it is better to place the user, role, session, etc. Models and related controllers with the plugin inside the vendor / directory, or I use them to root model / , view / , and controllers / directory respectively? Even models / plugins dependent thoughts / controllers with their other code Apes / Models , App / Views , and App / Controller should be placed in the directory. The "structural" reason is that the bulk of all those files will still be specific to your application, you may end up adding the field to the user, or your users Add the_image statement to the model, etc. You want that code to be entered in all the core application code in the App directory. The "functional" r

database - If I want to get a Facebook user's "info" and "posts"...do I need Facebook Connect or Facebook Application? -

Preferably, I should work at least! To bring user information from Facebook, should be a valid session sign of any type You can not obtain user information without it, and Reference to session token this Determines what kind of information is available to you, for example, you can use it to use different API methods, but it will always be in the context of your own Facebook user id, so any user can block / Private, which will not be available. With Facebook Connect, you receive a valid token when the user clicks on your Facebook Connect is connected to a Web site. With a Facebook application, the token is provided when users come within Facebook in your app. After you have a token, you can ask it for API services and use the user's You can get information about. Every implementation has to face various challenges for a Facebook Connect site, you have to understand users to come to your web site and "connect" using their Facebook accounts. For a regular app

Bulk DELETE on SQL Server 2008 (Is there anything like Bulk Copy (bcp) for delete data?) -

Is there a solution for bulk delete in SQL Server? I can not use TRUNCATE because I is there anything like Bulk Copy (BCP) to delete data? no. You want DELETE with a WHERE segment: it's standard SQL. What you can do is remove the batch like this: select 'start' --sets @@ ROWCOUNT WHILE @@ ROWCOUNT & lt; & Gt; 0 Remove Top (xxx) Matables where ... Or if you want to remove a very high percentage of rows ... SELECT col1 , # Holdingbat from Maitable in Call 2, .... Main condition .. Select the Transaction Table Methyl Intest Miteable (Call 1, Cola 2, ...), call 1, Cola 2, ... #holdingtable

ruby on rails - Validates uniqueness of :link -

I have a model whose name has the following validation in my model validates_uniqueness_of: link ,: Case_sensitive = & gt; False When I put "", it goes well. Now when I put "" (with a trail slatch), it is also accepted as unique but I want it to be invalid, but what is "/" in the end? I recommend that you submit your url before submitting them in DB and before verification Slash, slash, etc.). validates_uniqueness_of: link ,: case_sensitive => Wrong before_validation: normalize_urls self.link.strip DRF normalize_urls! Self.link.gsub! (/ \ / $ /, '') End It is not enough that what you were asking, but if you do not store normalized URLs, For changes you will have to ask your DB and it can be expensive quickly.

validation - On Page Button To Validate HTML -

I validate my page using Y3 verification while my site is in development, I can easily One way to get a validation, I find myself copying / pasting to copy and generally spend about 5 seconds to validate a page. Is there a JavaScript code that I can stick to the source and validate this link at the bottom of every page? This makes things even more enjoyable. Gresamani Solutions are accepted. I prefer to stay away from non-governmental beliefs until they are known to be very stable and good. Many useful tools, one of which allows you to firefox (remote web page and even Local web page! ) )

How to start android service on installation -

I have a tool management application, which basically runs from boot as a service in the background. I want to start this app immediately after installation. How do I get it? You can not do this - there is no way to start your service automatically only That it was established. The application must be brought first by the user through some kind of activity. Or, you need to get hooked in some related broadcast intent through the manifest, so that you can control one of those events and kick your service in such a way. Or, you will need to reboot the user so that your BOOT_COMPLETED intent can get filter controls.

repository - git: Simple solution for pushing between working copies -

What do I do: from my (SSH remote access) university project on a machine I have put in GIT source control ( git init , then git commit -a after every change, all work is fine). Now I want to work on that project on my personal machine at home. Should be easy, because GIT is VCS delivered, okay? I read, which suggests to do git pull in the university to get the changes made at home. This will not work, because my machine is not remotely accessible at home. So I thought I would do git push at home, it works, but it is complicated (later university requires git reset, etc.). Question 1: What is an extra bare store in my setup (which means that: (1) "main" bare repository, (2) university working copy, ( 3) Home Working Copy)? & lt; Rant> If I really need setup, then I could live with SVN. & Lt; Question 2: If this setup is really necessary, I would like that coconut repository ( git clone - bay , How do I think) and to make it the "main"

Python - Moving entire text between two .doc files -

I am having this problem for a while and can not understand how I should start doing this with Python? My OS is Windows XP Pro. I need a script which takes the whole (100% lesson) text from one .doc file to another. But this is not as easy as the target .doc file is not just one, but many of them may be. All target .doc files are always in the same folder (similar paths), but not all of them have the same name .doc file from which I want to move the whole text is only one, always in the same folder (The same path) and always with the same file name. The names of the goal are the same, but as I said earlier, not the same. Here's the full script: the names of the target.doc files are: HD1.doc HD2.doc HD3.doc HD4.doc and so on On The whole text in the .doc file with the highest (!) Number (but all text in fact, 100% must be all) I want to do. The target .doc files always start with "HD" and are always similar to the above examples. It is possible that the doctor

iphone - Is it possible to share a settings bundle and NSUserDictionary object between applications? -

I guess the answer is "no" but I thought I would ask anyway. Let's say that I have a shared library that builds multiple applications in my executable, now tells that this shared library provides an API for some web services, all of which use the library Uses the same username / password for NFX. Is it possible to set username / password in one place and multiple applications are allowed to access settings, or is NSUserDefaults still completely sandboxed? It seems that the key is for the bunch, but can you use it arbitrarily in the data versus just the authentication data? Can a setting bundle be used to replace shared keychain data between apps with the same Apple ID prefix? You can archive data arbitrarily in the keychain, and I swear that I I read somewhere that the app with the same bundle ID root can share a keychain for a reference. Now the reference can not be found for my life. Perhaps I dreamed it. Edit I am pretty sure that this key has gon

c# - Manually fetch values from asp.net control -

I have a FormView control with two text boxes. Data source control is a ObjectDataSource I want to get the two text boxes for these values, a user Create an object and pass it Objektdeta source, in which an input method that accepts a user object I think I would do it safety Objektdeta source Ughrrt Insrting (object sender, Objektdetasorsav Ntargs e) {// string _ussernam = form Viuuuaiaderdayfl? // string_password = form VUUder details? User User = New User {UserName = _userName, Password = _password}; E.InputParameters.Add (user); } Thank you If you control in the form, you TextBox myTextBox = (TextBox) can use MyFormView.Row.FindControl ( "controlID");

Is it necessary to have selector's name in same case in css and html? -

Is it the name of the selector in the same case in CSS and HTML? Is that okay? & lt; Div id = "HEADER" & gt; & Lt; / Div & gt; #header {...} Or is it necessary? & lt; Div id = "HEADER" & gt; & Lt; / Div & gt; #HEADER {...} Category name and id are case sensitive, so they Therefore, div.MyClass no as div.myClass . Elements (in HTML) and pseudo-category (everywhere) names are not sensitive, therefore DIV: hover is as div : Hover . For more information, read.

python - What's the difference between filter and filter_by in SQLAlchemy? -

Do any difference in SQLAlchemy in any filter and filter_by function Can explain? I am confused and can not really see the difference, which one should I use? filter_by is used for simple questions db.users.filter_by (name = 'joe') This way the filter can be completed with , of the quad , But instead using the '==' equality operator, which is overloaded on the db.users.name object: db.users.filter (Db.users .name == 'Joe') You can also write more powerful questions by using the filter Expressions: db.users.filter (or_ (db.users.name == 'Ryan', db.users.country == 'England'))

Django-way for building a "News Feed" / "Status update" / "Activity Stream" -

I would like to create a reusable Django app that manages the status updates of users. Much like Facebook's "news feed" Use cases, for example: Due to a specific date a professor can create assignments and each student New PDF can upload, according to the news feed, with a brief description, due to that date and the link to see the full details Seeks interesting for its students On the news feed, information about this should be displayed, for example For details of the PDF, A link to the link and preview for download . A link youtube video can be posted and a small thumbnail is displayed on the news feed and, with one click, using the video javascript One concern is how to control different types of updates and display the correct "html snippet" for it. Second, which is more important, this " How to design a model of "Diego Margo". About the first, I can think of two ways to do this: Using model succession; Using nor

php - Regular expression to exclude chars for a valid URL -

I want to create a filter which allows almost all characters but without / < >? = I have read in some site, I shoud using posts ^^ inside, but if I try it does not work properly: mod_rewrite: RewriteRule ^ (user /) ([^ \ & lt; \ & gt; \? =] +) ([/]?) $ User.php? Username = $ 2 Php for verification: return eregi ("[^ \ How do I write to set the correct filter to allow all letters, but & lt; >? = / in my range? Can someone please alert me? Do not include some other characters on the URL string for security or compatibility? Consider that I should work with URL: Both of these mod_rewrite must be sufficient for PHP: ([^ / BTW, you do not use eregi () in PHP Instead, use i preg_match () instead modifier.

javascript - good jquery exention for on-the-fly CRUD -

I have a user profile page, and I want to give an extension that allows the user to edit their description page, On the fly The way I am done, the same value is clicked once (i.e., "my nickname"), it is converted into an editable textarea And said that the blurring of textarea , the data is broken through Ajax, and the form will be returned in plain text with updated data. Has anyone heard of an extention it does this? Thank you! It is often known as inline editing. Here's an example:

compiler construction - GLR parsing algorithm resources -

A and both on the diversity of the Internet and the dead tree, would like some advice on resources related to this algorithm (books by GEX-speaking Unrecognized). I know that the seeding can generate the GLR parser, and it is given under GPL, I can check its code, though it would be good to describe the algorithm in full. So, is anyone aware of any good resources that I can use? Thank you. Some good things that I have come online before: About Open Source GLR Parser: Scott McCrack, George C. Necula In the proceedings of the compiler constructor (CC 04), April 2004. For more detail: Paper which is an extended version of the above; The paper referenced in: Elizabeth Scott, Adrian Johnston and Shamsa Sadaf Hussain. TR-200-12, Royal Holloway, University of London, Department of Computer Science, December 2000. And I know of a third open source GLR parser:.

Rails/ActiveRecord: Return order with ActiveRecord#find(Array) -

I am using Ruby on Rails / ActiveRecord and I'm having trouble with an ActiveRecord # find call. I am storing in the database A serial array ID of recently viewed document ID is stored in descending order in order of last seen, so the most recently viewed document id is in the first array. The array contains up to 10 IDs. So far, the problem is that ActiveRecord # find (Array) is ignoring the order in which ideas appear in the array. So if I type Document.find ([1, 2, 3]), then I get the same result as if I document. Remove ([3, 2, 1]). My question, then, is this: How can I get an ActiveRecord result array which has sent the ID to #Fund? Or, if ActiveRecord does not do this directly, how can I sort out Array as a result after this fact? Thank you very much for the contribution of people! ActiveRecord is an interface for your database and in the same order you have the archive that gives them the database If you do not supply the 'order' parameter, the returne

code review - can I declare an array where one of the array elements is undeclared variable? (ruby) -

#input_from_the_net = "" my_array = [[हैडर का नाम \ ", इनपुट_फ्रेम_नेट]] input_from_the_net =" एक मान स्क्रैप किया गया शुद्ध "डालता" # {my_array [0] [0]} से # {my_array [0] [1]} " संपादित करें: मैं उपयोग करता हूं बाद में पाश में चर input_from_the_net और एक हैश में इसके मान असाइन करें। उस हैश को एक और हैश में संग्रहीत किया जाता है। अगर मैं input_from_the_net.replace ("शुद्ध से स्क्रैप किया गया मान") का उपयोग करता हूं तो यह सभी हैश के अंदर मान को बदल देता है यह वांछित नहीं है मैं सही मान रखने के लिए सभी हैश चाहता हूं। EDIT2: अधिक विस्तृत नमूना कोड `अपेक्षित 'पीपी' input_from_the_net =" "def parse_the_website () (0 .. 5) .ईईई | इंडेक्स | Input_from_the_net = अनुक्रमणिका + 23 @ my_hash [अनुक्रमणिका] = {@my_array [0] [0] = & gt; Input_from_the_net}} end @ my_array = [["हेडर का नाम", इनपुट_फ्रेम_थ_नेट]] #my_array कोड @my_hash = {} के विभिन्न स्थानों पर उपयोग किया जाता है parse_the_website pp @my_h

wcf - Anatomy of <system.serviceModel>? -

Can you please provide me with a brief breakdown of the system.serviceModel section in the WCF config file? What are valid subclasses, and what do they do? sign:

Capturing video with cell phone integrated camera via Java ME -

I am trying to capture a video stream using a video camera on a Java ME enabled cell phone. How do I go about doing this? I've read about using MMAPI to capture still images through a live camera feed, but I'm not sure that it can capture a video stream that can be saved (with sound ) And forwarded to the remote server. Write a good topic. Hope that helps, Petri

c++ - In wxwidgets, how do I lock a vector that is shared between gui thread and worker thread? -

If I can not lock on a mute x in the main application thread (my event handler because you can not lock main gia Thread), how can I share any information between my worker and my main thread? Just your worker bag communicates with the main thread through event handling system. Use to send status messages back to the main thread and handle updates.

c++ - Would These Be Considered Magic Numbers? -

I have finished writing programs for the programming category, and I do not want to use magic numbers, so here's mine Question: In the function given below, will my array index be considered a magic number? Code: String CuckooGrid (int s1, intel s2, int s3, double medians) {int int SIZE = 23; Const int LETTER_GRADE_BARRIERS [SIZE] = {400, 381, 380, 361, 360, 341, 340, 321, 320, 301, 300, 281, 280, 261, 260, 241, 240, 221, 220, 201, 200, 181, 180}; Double final grade; String sheet; Final grade = s1 + s2 + s3 + average; If (final grade> = LETTER_GRADE_BARRIERS [1] & amp; amp; and & amp; amp; end grades & lt; = LETTER_GRADE_BARRIERS [0]) {letterGrade = "A"; } And if (final grade> = LETTER_GRADE_BARRIERS [3] & amp; and & amp; final grades & lt; = LETTER_GRADE_BARRIERS [2]) {letterGrade = "A-"; } And if (final grade> = LETTER_GRADE_BARRIERS [5] & amp; amp; and & amp; amp; amp; amp; amp; amp; & amp; last grade &a

How we use Shift+Enter for line break in NSTextField- Cocoa -

I want to enter break + by using the change + Enter in TextField (control + enter is working) I TextView Because the action of this entry is not being used. The standard way to do this The alternative is the return, and it works for free.

hibernate - NHibernate: How to exclude a class which is part of a join using the Criteria API -

I'm still new to hibernate and I'm trying to use it for a legacy web site . Unfortunately, this means that sometimes DB schemas do not always understand. With this, I am trying to create the following HQL query using the Benchmark API from TableB B where b.id =: id and b TableAroperty.UserId =: userId The above HQL statement generates SQL which will only select the tabback and return what I have to do. However, using the Quetta API details shown below, the selected SQL statement selects the field for table and table. DataProvider.Session .CreateCriteria & lt; TableB & gt; () .Add (Expression.Eq ("Id", ID)) .Create Cerataria ("Table A"). Add (Expression One ("UserID", User ID)). Unicrus result & lt; Tableb & gt; (); In a whole world, I can update the DB schema to understand more, but alas I can not. Your question does not show the sections associated with the table and TableB, so I'm assuming that the clas

c# - DWS CreateFolder() files are getting created on shareppoint "Style Library" -

मैं SharePoint पर फ़ोल्डर बना रहा हूं: Dws ds = new Dws (); Ds.Credentials = नया नेटवर्क क्रेडेंशियल (लॉगिन, पासवर्ड); Ds.Url = "http: //myservername/_vti_bin/DWS.asmx"; Ds.PreAuthenticate = सच; स्ट्रिंग strResult = ""; StrResult = ds.CreateFolder ("SiteName / Documents / NewFolderName"); मुझे strResult मान "RESULT" के रूप में मिल रहा है। यहां फ़ोल्डरों का निर्माण हो रहा है लेकिन इसमें नहीं है निर्दिष्ट पथ से ऊपर Sharepoint के "स्टाइल लाइब्रेरी" में इसे बनाया जा रहा है। लेकिन क्यों? यह कोशिश करें: strResult = ds.CreateFolder ("दस्तावेज़ / नयाफ़ोल्डरनाम"); मेरे पास रूट साइट संग्रह पर "डीडब्लूएस" नामक एक साइट है (आपके कोड और मेरा के बीच डी। यूआरएल में अंतर को ध्यान दें): Dws डीएस = नया डीडब्ल्यूएस (); Ds.Credentials = नया नेटवर्क क्रेडेंशियल (लॉगिन, पासवर्ड); Ds.Url = "http: //myservername/DWS/_vti_bin/DWS.asmx"; Ds.PreAuthenticate = सच; स्ट्रिंग strResult = ""; StrRe